configure 238 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829
  1. #! /bin/sh
  2. # From configure.in Revision.
  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. CFLAGS_AR
  577. DLLEXT
  578. PCRE_CFLAGS
  579. PCRE_LIBS
  580. PCRE_VERSION
  581. HAVE_PCRE
  582. MYSQL_LIBS
  583. MYSQL_CFLAGS
  584. MYSQL_VERSION
  585. HAVE_MYSQL
  586. MYSQL_CONFIG_HOME
  587. CXXCPP
  588. WITH_PLUGINS
  589. SOFLAGS
  590. AR
  591. ac_ct_CXX
  592. CXXFLAGS
  593. CXX
  594. SET_MAKE
  595. OMAP
  596. OCHR
  597. OLOG
  598. EGREP
  599. GREP
  600. CPP
  601. OBJEXT
  602. EXEEXT
  603. ac_ct_CC
  604. CPPFLAGS
  605. LDFLAGS
  606. CFLAGS
  607. CC
  608. target_alias
  609. host_alias
  610. build_alias
  611. LIBS
  612. ECHO_T
  613. ECHO_N
  614. ECHO_C
  615. DEFS
  616. mandir
  617. localedir
  618. libdir
  619. psdir
  620. pdfdir
  621. dvidir
  622. htmldir
  623. infodir
  624. docdir
  625. oldincludedir
  626. includedir
  627. runstatedir
  628. localstatedir
  629. sharedstatedir
  630. sysconfdir
  631. datadir
  632. datarootdir
  633. libexecdir
  634. sbindir
  635. bindir
  636. program_transform_name
  637. prefix
  638. exec_prefix
  639. PACKAGE_URL
  640. PACKAGE_BUGREPORT
  641. PACKAGE_STRING
  642. PACKAGE_VERSION
  643. PACKAGE_TARNAME
  644. PACKAGE_NAME
  645. PATH_SEPARATOR
  646. SHELL'
  647. ac_subst_files=''
  648. ac_user_opts='
  649. enable_option_checking
  650. enable_manager
  651. enable_packetver
  652. enable_debug
  653. enable_prere
  654. enable_vip
  655. enable_warn
  656. enable_buildbot
  657. enable_rdtsc
  658. enable_profiler
  659. enable_64bit
  660. enable_lto
  661. with_maxconn
  662. with_outputlogin
  663. with_outputchar
  664. with_outputmap
  665. with_mysql
  666. with_MYSQL_CFLAGS
  667. with_MYSQL_LIBS
  668. with_pcre
  669. with_zlib
  670. '
  671. ac_precious_vars='build_alias
  672. host_alias
  673. target_alias
  674. CC
  675. CFLAGS
  676. LDFLAGS
  677. LIBS
  678. CPPFLAGS
  679. CPP
  680. CXX
  681. CXXFLAGS
  682. CCC
  683. CXXCPP'
  684. # Initialize some variables set by options.
  685. ac_init_help=
  686. ac_init_version=false
  687. ac_unrecognized_opts=
  688. ac_unrecognized_sep=
  689. # The variables have the same names as the options, with
  690. # dashes changed to underlines.
  691. cache_file=/dev/null
  692. exec_prefix=NONE
  693. no_create=
  694. no_recursion=
  695. prefix=NONE
  696. program_prefix=NONE
  697. program_suffix=NONE
  698. program_transform_name=s,x,x,
  699. silent=
  700. site=
  701. srcdir=
  702. verbose=
  703. x_includes=NONE
  704. x_libraries=NONE
  705. # Installation directory options.
  706. # These are left unexpanded so users can "make install exec_prefix=/foo"
  707. # and all the variables that are supposed to be based on exec_prefix
  708. # by default will actually change.
  709. # Use braces instead of parens because sh, perl, etc. also accept them.
  710. # (The list follows the same order as the GNU Coding Standards.)
  711. bindir='${exec_prefix}/bin'
  712. sbindir='${exec_prefix}/sbin'
  713. libexecdir='${exec_prefix}/libexec'
  714. datarootdir='${prefix}/share'
  715. datadir='${datarootdir}'
  716. sysconfdir='${prefix}/etc'
  717. sharedstatedir='${prefix}/com'
  718. localstatedir='${prefix}/var'
  719. runstatedir='${localstatedir}/run'
  720. includedir='${prefix}/include'
  721. oldincludedir='/usr/include'
  722. docdir='${datarootdir}/doc/${PACKAGE}'
  723. infodir='${datarootdir}/info'
  724. htmldir='${docdir}'
  725. dvidir='${docdir}'
  726. pdfdir='${docdir}'
  727. psdir='${docdir}'
  728. libdir='${exec_prefix}/lib'
  729. localedir='${datarootdir}/locale'
  730. mandir='${datarootdir}/man'
  731. ac_prev=
  732. ac_dashdash=
  733. for ac_option
  734. do
  735. # If the previous option needs an argument, assign it.
  736. if test -n "$ac_prev"; then
  737. eval $ac_prev=\$ac_option
  738. ac_prev=
  739. continue
  740. fi
  741. case $ac_option in
  742. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  743. *=) ac_optarg= ;;
  744. *) ac_optarg=yes ;;
  745. esac
  746. # Accept the important Cygnus configure options, so we can diagnose typos.
  747. case $ac_dashdash$ac_option in
  748. --)
  749. ac_dashdash=yes ;;
  750. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  751. ac_prev=bindir ;;
  752. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  753. bindir=$ac_optarg ;;
  754. -build | --build | --buil | --bui | --bu)
  755. ac_prev=build_alias ;;
  756. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  757. build_alias=$ac_optarg ;;
  758. -cache-file | --cache-file | --cache-fil | --cache-fi \
  759. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  760. ac_prev=cache_file ;;
  761. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  762. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  763. cache_file=$ac_optarg ;;
  764. --config-cache | -C)
  765. cache_file=config.cache ;;
  766. -datadir | --datadir | --datadi | --datad)
  767. ac_prev=datadir ;;
  768. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  769. datadir=$ac_optarg ;;
  770. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  771. | --dataroo | --dataro | --datar)
  772. ac_prev=datarootdir ;;
  773. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  774. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  775. datarootdir=$ac_optarg ;;
  776. -disable-* | --disable-*)
  777. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  778. # Reject names that are not valid shell variable names.
  779. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  780. as_fn_error $? "invalid feature name: $ac_useropt"
  781. ac_useropt_orig=$ac_useropt
  782. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  783. case $ac_user_opts in
  784. *"
  785. "enable_$ac_useropt"
  786. "*) ;;
  787. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  788. ac_unrecognized_sep=', ';;
  789. esac
  790. eval enable_$ac_useropt=no ;;
  791. -docdir | --docdir | --docdi | --doc | --do)
  792. ac_prev=docdir ;;
  793. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  794. docdir=$ac_optarg ;;
  795. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  796. ac_prev=dvidir ;;
  797. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  798. dvidir=$ac_optarg ;;
  799. -enable-* | --enable-*)
  800. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  801. # Reject names that are not valid shell variable names.
  802. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  803. as_fn_error $? "invalid feature name: $ac_useropt"
  804. ac_useropt_orig=$ac_useropt
  805. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  806. case $ac_user_opts in
  807. *"
  808. "enable_$ac_useropt"
  809. "*) ;;
  810. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  811. ac_unrecognized_sep=', ';;
  812. esac
  813. eval enable_$ac_useropt=\$ac_optarg ;;
  814. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  815. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  816. | --exec | --exe | --ex)
  817. ac_prev=exec_prefix ;;
  818. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  819. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  820. | --exec=* | --exe=* | --ex=*)
  821. exec_prefix=$ac_optarg ;;
  822. -gas | --gas | --ga | --g)
  823. # Obsolete; use --with-gas.
  824. with_gas=yes ;;
  825. -help | --help | --hel | --he | -h)
  826. ac_init_help=long ;;
  827. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  828. ac_init_help=recursive ;;
  829. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  830. ac_init_help=short ;;
  831. -host | --host | --hos | --ho)
  832. ac_prev=host_alias ;;
  833. -host=* | --host=* | --hos=* | --ho=*)
  834. host_alias=$ac_optarg ;;
  835. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  836. ac_prev=htmldir ;;
  837. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  838. | --ht=*)
  839. htmldir=$ac_optarg ;;
  840. -includedir | --includedir | --includedi | --included | --include \
  841. | --includ | --inclu | --incl | --inc)
  842. ac_prev=includedir ;;
  843. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  844. | --includ=* | --inclu=* | --incl=* | --inc=*)
  845. includedir=$ac_optarg ;;
  846. -infodir | --infodir | --infodi | --infod | --info | --inf)
  847. ac_prev=infodir ;;
  848. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  849. infodir=$ac_optarg ;;
  850. -libdir | --libdir | --libdi | --libd)
  851. ac_prev=libdir ;;
  852. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  853. libdir=$ac_optarg ;;
  854. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  855. | --libexe | --libex | --libe)
  856. ac_prev=libexecdir ;;
  857. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  858. | --libexe=* | --libex=* | --libe=*)
  859. libexecdir=$ac_optarg ;;
  860. -localedir | --localedir | --localedi | --localed | --locale)
  861. ac_prev=localedir ;;
  862. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  863. localedir=$ac_optarg ;;
  864. -localstatedir | --localstatedir | --localstatedi | --localstated \
  865. | --localstate | --localstat | --localsta | --localst | --locals)
  866. ac_prev=localstatedir ;;
  867. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  868. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  869. localstatedir=$ac_optarg ;;
  870. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  871. ac_prev=mandir ;;
  872. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  873. mandir=$ac_optarg ;;
  874. -nfp | --nfp | --nf)
  875. # Obsolete; use --without-fp.
  876. with_fp=no ;;
  877. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  878. | --no-cr | --no-c | -n)
  879. no_create=yes ;;
  880. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  881. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  882. no_recursion=yes ;;
  883. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  884. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  885. | --oldin | --oldi | --old | --ol | --o)
  886. ac_prev=oldincludedir ;;
  887. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  888. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  889. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  890. oldincludedir=$ac_optarg ;;
  891. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  892. ac_prev=prefix ;;
  893. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  894. prefix=$ac_optarg ;;
  895. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  896. | --program-pre | --program-pr | --program-p)
  897. ac_prev=program_prefix ;;
  898. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  899. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  900. program_prefix=$ac_optarg ;;
  901. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  902. | --program-suf | --program-su | --program-s)
  903. ac_prev=program_suffix ;;
  904. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  905. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  906. program_suffix=$ac_optarg ;;
  907. -program-transform-name | --program-transform-name \
  908. | --program-transform-nam | --program-transform-na \
  909. | --program-transform-n | --program-transform- \
  910. | --program-transform | --program-transfor \
  911. | --program-transfo | --program-transf \
  912. | --program-trans | --program-tran \
  913. | --progr-tra | --program-tr | --program-t)
  914. ac_prev=program_transform_name ;;
  915. -program-transform-name=* | --program-transform-name=* \
  916. | --program-transform-nam=* | --program-transform-na=* \
  917. | --program-transform-n=* | --program-transform-=* \
  918. | --program-transform=* | --program-transfor=* \
  919. | --program-transfo=* | --program-transf=* \
  920. | --program-trans=* | --program-tran=* \
  921. | --progr-tra=* | --program-tr=* | --program-t=*)
  922. program_transform_name=$ac_optarg ;;
  923. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  924. ac_prev=pdfdir ;;
  925. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  926. pdfdir=$ac_optarg ;;
  927. -psdir | --psdir | --psdi | --psd | --ps)
  928. ac_prev=psdir ;;
  929. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  930. psdir=$ac_optarg ;;
  931. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  932. | -silent | --silent | --silen | --sile | --sil)
  933. silent=yes ;;
  934. -runstatedir | --runstatedir | --runstatedi | --runstated \
  935. | --runstate | --runstat | --runsta | --runst | --runs \
  936. | --run | --ru | --r)
  937. ac_prev=runstatedir ;;
  938. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  939. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  940. | --run=* | --ru=* | --r=*)
  941. runstatedir=$ac_optarg ;;
  942. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  943. ac_prev=sbindir ;;
  944. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  945. | --sbi=* | --sb=*)
  946. sbindir=$ac_optarg ;;
  947. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  948. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  949. | --sharedst | --shareds | --shared | --share | --shar \
  950. | --sha | --sh)
  951. ac_prev=sharedstatedir ;;
  952. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  953. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  954. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  955. | --sha=* | --sh=*)
  956. sharedstatedir=$ac_optarg ;;
  957. -site | --site | --sit)
  958. ac_prev=site ;;
  959. -site=* | --site=* | --sit=*)
  960. site=$ac_optarg ;;
  961. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  962. ac_prev=srcdir ;;
  963. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  964. srcdir=$ac_optarg ;;
  965. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  966. | --syscon | --sysco | --sysc | --sys | --sy)
  967. ac_prev=sysconfdir ;;
  968. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  969. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  970. sysconfdir=$ac_optarg ;;
  971. -target | --target | --targe | --targ | --tar | --ta | --t)
  972. ac_prev=target_alias ;;
  973. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  974. target_alias=$ac_optarg ;;
  975. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  976. verbose=yes ;;
  977. -version | --version | --versio | --versi | --vers | -V)
  978. ac_init_version=: ;;
  979. -with-* | --with-*)
  980. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  981. # Reject names that are not valid shell variable names.
  982. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  983. as_fn_error $? "invalid package name: $ac_useropt"
  984. ac_useropt_orig=$ac_useropt
  985. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  986. case $ac_user_opts in
  987. *"
  988. "with_$ac_useropt"
  989. "*) ;;
  990. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  991. ac_unrecognized_sep=', ';;
  992. esac
  993. eval with_$ac_useropt=\$ac_optarg ;;
  994. -without-* | --without-*)
  995. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  996. # Reject names that are not valid shell variable names.
  997. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  998. as_fn_error $? "invalid package name: $ac_useropt"
  999. ac_useropt_orig=$ac_useropt
  1000. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1001. case $ac_user_opts in
  1002. *"
  1003. "with_$ac_useropt"
  1004. "*) ;;
  1005. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1006. ac_unrecognized_sep=', ';;
  1007. esac
  1008. eval with_$ac_useropt=no ;;
  1009. --x)
  1010. # Obsolete; use --with-x.
  1011. with_x=yes ;;
  1012. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1013. | --x-incl | --x-inc | --x-in | --x-i)
  1014. ac_prev=x_includes ;;
  1015. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1016. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1017. x_includes=$ac_optarg ;;
  1018. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1019. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1020. ac_prev=x_libraries ;;
  1021. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1022. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1023. x_libraries=$ac_optarg ;;
  1024. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1025. Try \`$0 --help' for more information"
  1026. ;;
  1027. *=*)
  1028. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1029. # Reject names that are not valid shell variable names.
  1030. case $ac_envvar in #(
  1031. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1032. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1033. esac
  1034. eval $ac_envvar=\$ac_optarg
  1035. export $ac_envvar ;;
  1036. *)
  1037. # FIXME: should be removed in autoconf 3.0.
  1038. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1039. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1040. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1041. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1042. ;;
  1043. esac
  1044. done
  1045. if test -n "$ac_prev"; then
  1046. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1047. as_fn_error $? "missing argument to $ac_option"
  1048. fi
  1049. if test -n "$ac_unrecognized_opts"; then
  1050. case $enable_option_checking in
  1051. no) ;;
  1052. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1053. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1054. esac
  1055. fi
  1056. # Check all directory arguments for consistency.
  1057. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1058. datadir sysconfdir sharedstatedir localstatedir includedir \
  1059. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1060. libdir localedir mandir runstatedir
  1061. do
  1062. eval ac_val=\$$ac_var
  1063. # Remove trailing slashes.
  1064. case $ac_val in
  1065. */ )
  1066. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1067. eval $ac_var=\$ac_val;;
  1068. esac
  1069. # Be sure to have absolute directory names.
  1070. case $ac_val in
  1071. [\\/$]* | ?:[\\/]* ) continue;;
  1072. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1073. esac
  1074. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1075. done
  1076. # There might be people who depend on the old broken behavior: `$host'
  1077. # used to hold the argument of --host etc.
  1078. # FIXME: To remove some day.
  1079. build=$build_alias
  1080. host=$host_alias
  1081. target=$target_alias
  1082. # FIXME: To remove some day.
  1083. if test "x$host_alias" != x; then
  1084. if test "x$build_alias" = x; then
  1085. cross_compiling=maybe
  1086. elif test "x$build_alias" != "x$host_alias"; then
  1087. cross_compiling=yes
  1088. fi
  1089. fi
  1090. ac_tool_prefix=
  1091. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1092. test "$silent" = yes && exec 6>/dev/null
  1093. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1094. ac_ls_di=`ls -di .` &&
  1095. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1096. as_fn_error $? "working directory cannot be determined"
  1097. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1098. as_fn_error $? "pwd does not report name of working directory"
  1099. # Find the source files, if location was not specified.
  1100. if test -z "$srcdir"; then
  1101. ac_srcdir_defaulted=yes
  1102. # Try the directory containing this script, then the parent directory.
  1103. ac_confdir=`$as_dirname -- "$as_myself" ||
  1104. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1105. X"$as_myself" : 'X\(//\)[^/]' \| \
  1106. X"$as_myself" : 'X\(//\)$' \| \
  1107. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1108. $as_echo X"$as_myself" |
  1109. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1110. s//\1/
  1111. q
  1112. }
  1113. /^X\(\/\/\)[^/].*/{
  1114. s//\1/
  1115. q
  1116. }
  1117. /^X\(\/\/\)$/{
  1118. s//\1/
  1119. q
  1120. }
  1121. /^X\(\/\).*/{
  1122. s//\1/
  1123. q
  1124. }
  1125. s/.*/./; q'`
  1126. srcdir=$ac_confdir
  1127. if test ! -r "$srcdir/$ac_unique_file"; then
  1128. srcdir=..
  1129. fi
  1130. else
  1131. ac_srcdir_defaulted=no
  1132. fi
  1133. if test ! -r "$srcdir/$ac_unique_file"; then
  1134. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1135. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1136. fi
  1137. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1138. ac_abs_confdir=`(
  1139. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1140. pwd)`
  1141. # When building in place, set srcdir=.
  1142. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1143. srcdir=.
  1144. fi
  1145. # Remove unnecessary trailing slashes from srcdir.
  1146. # Double slashes in file names in object file debugging info
  1147. # mess up M-x gdb in Emacs.
  1148. case $srcdir in
  1149. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1150. esac
  1151. for ac_var in $ac_precious_vars; do
  1152. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1153. eval ac_env_${ac_var}_value=\$${ac_var}
  1154. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1155. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1156. done
  1157. #
  1158. # Report the --help message.
  1159. #
  1160. if test "$ac_init_help" = "long"; then
  1161. # Omit some internal or obsolete options to make the list less imposing.
  1162. # This message is too long to be a string in the A/UX 3.1 sh.
  1163. cat <<_ACEOF
  1164. \`configure' configures this package to adapt to many kinds of systems.
  1165. Usage: $0 [OPTION]... [VAR=VALUE]...
  1166. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1167. VAR=VALUE. See below for descriptions of some of the useful variables.
  1168. Defaults for the options are specified in brackets.
  1169. Configuration:
  1170. -h, --help display this help and exit
  1171. --help=short display options specific to this package
  1172. --help=recursive display the short help of all the included packages
  1173. -V, --version display version information and exit
  1174. -q, --quiet, --silent do not print \`checking ...' messages
  1175. --cache-file=FILE cache test results in FILE [disabled]
  1176. -C, --config-cache alias for \`--cache-file=config.cache'
  1177. -n, --no-create do not create output files
  1178. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1179. Installation directories:
  1180. --prefix=PREFIX install architecture-independent files in PREFIX
  1181. [$ac_default_prefix]
  1182. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1183. [PREFIX]
  1184. By default, \`make install' will install all the files in
  1185. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1186. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1187. for instance \`--prefix=\$HOME'.
  1188. For better control, use the options below.
  1189. Fine tuning of the installation directories:
  1190. --bindir=DIR user executables [EPREFIX/bin]
  1191. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1192. --libexecdir=DIR program executables [EPREFIX/libexec]
  1193. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1194. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1195. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1196. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1197. --libdir=DIR object code libraries [EPREFIX/lib]
  1198. --includedir=DIR C header files [PREFIX/include]
  1199. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1200. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1201. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1202. --infodir=DIR info documentation [DATAROOTDIR/info]
  1203. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1204. --mandir=DIR man documentation [DATAROOTDIR/man]
  1205. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1206. --htmldir=DIR html documentation [DOCDIR]
  1207. --dvidir=DIR dvi documentation [DOCDIR]
  1208. --pdfdir=DIR pdf documentation [DOCDIR]
  1209. --psdir=DIR ps documentation [DOCDIR]
  1210. _ACEOF
  1211. cat <<\_ACEOF
  1212. _ACEOF
  1213. fi
  1214. if test -n "$ac_init_help"; then
  1215. cat <<\_ACEOF
  1216. Optional Features:
  1217. --disable-option-checking ignore unrecognized --enable/--with options
  1218. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1219. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1220. --enable-manager=ARG memory managers: no, builtin, memwatch, dmalloc,
  1221. gcollect, bcheck (defaults to builtin)
  1222. --enable-packetver=ARG Sets the PACKETVER define. (see src/common/mmo.h)
  1223. --enable-debug[=ARG] Compiles extra debug code. (disabled by default)
  1224. (available options: yes, no, gdb)
  1225. --enable-prere[=ARG] Compiles serv in prere mode. (disabled by default)
  1226. (available options: yes, no)
  1227. --enable-vip[=ARG] Compiles serv with vip features. (disabled by
  1228. default) (available options: yes, no)
  1229. --enable-warn[=ARG] Compiles with warnings. (disabled by default)
  1230. (available options: yes, no, extra)
  1231. --enable-buildbot[=ARG] (available options: yes, no)
  1232. --enable-rdtsc Uses rdtsc as timing source (disabled by default)
  1233. Enable it when you've timing issues. (For example:
  1234. in conjunction with XEN or Other Virtualization
  1235. mechanisms) Note: Please ensure that you've disabled
  1236. dynamic CPU-Frequencys, such as power saving
  1237. options. (On the most modern Dedicated Servers
  1238. cpufreq is preconfigured, see your distribution's
  1239. manual how to disable it)
  1240. --enable-profiler=ARG Profilers: no, gprof (disabled by default)
  1241. --disable-64bit Enforce 32bit output on x86_64 systems.
  1242. --enable-lto Enables or Disables Linktime Code Optimization (LTO
  1243. is enabled by default)
  1244. Optional Packages:
  1245. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1246. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1247. --with-maxconn[=ARG] optionally set the maximum connections the core can
  1248. handle (default: 16384) NOT USED YET - EXPERIMENTAL
  1249. --with-outputlogin[=ARG]
  1250. Specify the login-serv output name (defaults to
  1251. login-server)
  1252. --with-outputchar[=ARG] Specify the char-serv output name (defaults to
  1253. char-server)
  1254. --with-outputmap[=ARG] Specify the map-serv output name (defaults to
  1255. map-server)
  1256. --with-mysql[=ARG] optionally specify the path to the mysql_config
  1257. executable
  1258. --with-MYSQL_CFLAGS=ARG specify MYSQL_CFLAGS manually (instead of using
  1259. "mysql_config --include")
  1260. --with-MYSQL_LIBS=ARG specify MYSQL_LIBS manually (instead of using
  1261. "mysql_config --libs")
  1262. --with-pcre[=ARG] use PCRE library, optionally specify the full path
  1263. of pcre installation directory (by default pcre is
  1264. used if found)
  1265. --with-zlib=DIR root directory path of zlib installation (defaults
  1266. to /usr/local or /usr if not found in /usr/local).
  1267. Assumes that the header files are in DIR/include and
  1268. the library files are in DIR/lib
  1269. Some influential environment variables:
  1270. CC C compiler command
  1271. CFLAGS C compiler flags
  1272. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1273. nonstandard directory <lib dir>
  1274. LIBS libraries to pass to the linker, e.g. -l<library>
  1275. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1276. you have headers in a nonstandard directory <include dir>
  1277. CPP C preprocessor
  1278. CXX C++ compiler command
  1279. CXXFLAGS C++ compiler flags
  1280. CXXCPP C++ preprocessor
  1281. Use these variables to override the choices made by `configure' or to help
  1282. it to find libraries and programs with nonstandard names/locations.
  1283. Report bugs to the package provider.
  1284. _ACEOF
  1285. ac_status=$?
  1286. fi
  1287. if test "$ac_init_help" = "recursive"; then
  1288. # If there are subdirs, report their specific --help.
  1289. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1290. test -d "$ac_dir" ||
  1291. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1292. continue
  1293. ac_builddir=.
  1294. case "$ac_dir" in
  1295. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1296. *)
  1297. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1298. # A ".." for each directory in $ac_dir_suffix.
  1299. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1300. case $ac_top_builddir_sub in
  1301. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1302. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1303. esac ;;
  1304. esac
  1305. ac_abs_top_builddir=$ac_pwd
  1306. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1307. # for backward compatibility:
  1308. ac_top_builddir=$ac_top_build_prefix
  1309. case $srcdir in
  1310. .) # We are building in place.
  1311. ac_srcdir=.
  1312. ac_top_srcdir=$ac_top_builddir_sub
  1313. ac_abs_top_srcdir=$ac_pwd ;;
  1314. [\\/]* | ?:[\\/]* ) # Absolute name.
  1315. ac_srcdir=$srcdir$ac_dir_suffix;
  1316. ac_top_srcdir=$srcdir
  1317. ac_abs_top_srcdir=$srcdir ;;
  1318. *) # Relative name.
  1319. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1320. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1321. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1322. esac
  1323. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1324. cd "$ac_dir" || { ac_status=$?; continue; }
  1325. # Check for guested configure.
  1326. if test -f "$ac_srcdir/configure.gnu"; then
  1327. echo &&
  1328. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1329. elif test -f "$ac_srcdir/configure"; then
  1330. echo &&
  1331. $SHELL "$ac_srcdir/configure" --help=recursive
  1332. else
  1333. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1334. fi || ac_status=$?
  1335. cd "$ac_pwd" || { ac_status=$?; break; }
  1336. done
  1337. fi
  1338. test -n "$ac_init_help" && exit $ac_status
  1339. if $ac_init_version; then
  1340. cat <<\_ACEOF
  1341. configure
  1342. generated by GNU Autoconf 2.69
  1343. Copyright (C) 2012 Free Software Foundation, Inc.
  1344. This configure script is free software; the Free Software Foundation
  1345. gives unlimited permission to copy, distribute and modify it.
  1346. _ACEOF
  1347. exit
  1348. fi
  1349. ## ------------------------ ##
  1350. ## Autoconf initialization. ##
  1351. ## ------------------------ ##
  1352. # ac_fn_c_try_compile LINENO
  1353. # --------------------------
  1354. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1355. ac_fn_c_try_compile ()
  1356. {
  1357. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1358. rm -f conftest.$ac_objext
  1359. if { { ac_try="$ac_compile"
  1360. case "(($ac_try" in
  1361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1362. *) ac_try_echo=$ac_try;;
  1363. esac
  1364. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1365. $as_echo "$ac_try_echo"; } >&5
  1366. (eval "$ac_compile") 2>conftest.err
  1367. ac_status=$?
  1368. if test -s conftest.err; then
  1369. grep -v '^ *+' conftest.err >conftest.er1
  1370. cat conftest.er1 >&5
  1371. mv -f conftest.er1 conftest.err
  1372. fi
  1373. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1374. test $ac_status = 0; } && {
  1375. test -z "$ac_c_werror_flag" ||
  1376. test ! -s conftest.err
  1377. } && test -s conftest.$ac_objext; then :
  1378. ac_retval=0
  1379. else
  1380. $as_echo "$as_me: failed program was:" >&5
  1381. sed 's/^/| /' conftest.$ac_ext >&5
  1382. ac_retval=1
  1383. fi
  1384. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1385. as_fn_set_status $ac_retval
  1386. } # ac_fn_c_try_compile
  1387. # ac_fn_c_try_cpp LINENO
  1388. # ----------------------
  1389. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1390. ac_fn_c_try_cpp ()
  1391. {
  1392. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1393. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1394. case "(($ac_try" in
  1395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1396. *) ac_try_echo=$ac_try;;
  1397. esac
  1398. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1399. $as_echo "$ac_try_echo"; } >&5
  1400. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1401. ac_status=$?
  1402. if test -s conftest.err; then
  1403. grep -v '^ *+' conftest.err >conftest.er1
  1404. cat conftest.er1 >&5
  1405. mv -f conftest.er1 conftest.err
  1406. fi
  1407. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1408. test $ac_status = 0; } > conftest.i && {
  1409. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1410. test ! -s conftest.err
  1411. }; then :
  1412. ac_retval=0
  1413. else
  1414. $as_echo "$as_me: failed program was:" >&5
  1415. sed 's/^/| /' conftest.$ac_ext >&5
  1416. ac_retval=1
  1417. fi
  1418. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1419. as_fn_set_status $ac_retval
  1420. } # ac_fn_c_try_cpp
  1421. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1422. # -------------------------------------------------------
  1423. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1424. # the include files in INCLUDES and setting the cache variable VAR
  1425. # accordingly.
  1426. ac_fn_c_check_header_mongrel ()
  1427. {
  1428. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1429. if eval \${$3+:} false; then :
  1430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1431. $as_echo_n "checking for $2... " >&6; }
  1432. if eval \${$3+:} false; then :
  1433. $as_echo_n "(cached) " >&6
  1434. fi
  1435. eval ac_res=\$$3
  1436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1437. $as_echo "$ac_res" >&6; }
  1438. else
  1439. # Is the header compilable?
  1440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1441. $as_echo_n "checking $2 usability... " >&6; }
  1442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1443. /* end confdefs.h. */
  1444. $4
  1445. #include <$2>
  1446. _ACEOF
  1447. if ac_fn_c_try_compile "$LINENO"; then :
  1448. ac_header_compiler=yes
  1449. else
  1450. ac_header_compiler=no
  1451. fi
  1452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1454. $as_echo "$ac_header_compiler" >&6; }
  1455. # Is the header present?
  1456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1457. $as_echo_n "checking $2 presence... " >&6; }
  1458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1459. /* end confdefs.h. */
  1460. #include <$2>
  1461. _ACEOF
  1462. if ac_fn_c_try_cpp "$LINENO"; then :
  1463. ac_header_preproc=yes
  1464. else
  1465. ac_header_preproc=no
  1466. fi
  1467. rm -f conftest.err conftest.i conftest.$ac_ext
  1468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1469. $as_echo "$ac_header_preproc" >&6; }
  1470. # So? What about this header?
  1471. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1472. yes:no: )
  1473. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1474. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1476. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1477. ;;
  1478. no:yes:* )
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1480. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1482. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1484. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1485. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1486. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1488. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1489. ;;
  1490. esac
  1491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1492. $as_echo_n "checking for $2... " >&6; }
  1493. if eval \${$3+:} false; then :
  1494. $as_echo_n "(cached) " >&6
  1495. else
  1496. eval "$3=\$ac_header_compiler"
  1497. fi
  1498. eval ac_res=\$$3
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1500. $as_echo "$ac_res" >&6; }
  1501. fi
  1502. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1503. } # ac_fn_c_check_header_mongrel
  1504. # ac_fn_c_try_run LINENO
  1505. # ----------------------
  1506. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1507. # that executables *can* be run.
  1508. ac_fn_c_try_run ()
  1509. {
  1510. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1511. if { { ac_try="$ac_link"
  1512. case "(($ac_try" in
  1513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1514. *) ac_try_echo=$ac_try;;
  1515. esac
  1516. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1517. $as_echo "$ac_try_echo"; } >&5
  1518. (eval "$ac_link") 2>&5
  1519. ac_status=$?
  1520. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1521. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1522. { { case "(($ac_try" in
  1523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1524. *) ac_try_echo=$ac_try;;
  1525. esac
  1526. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1527. $as_echo "$ac_try_echo"; } >&5
  1528. (eval "$ac_try") 2>&5
  1529. ac_status=$?
  1530. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1531. test $ac_status = 0; }; }; then :
  1532. ac_retval=0
  1533. else
  1534. $as_echo "$as_me: program exited with status $ac_status" >&5
  1535. $as_echo "$as_me: failed program was:" >&5
  1536. sed 's/^/| /' conftest.$ac_ext >&5
  1537. ac_retval=$ac_status
  1538. fi
  1539. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1540. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1541. as_fn_set_status $ac_retval
  1542. } # ac_fn_c_try_run
  1543. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1544. # -------------------------------------------------------
  1545. # Tests whether HEADER exists and can be compiled using the include files in
  1546. # INCLUDES, setting the cache variable VAR accordingly.
  1547. ac_fn_c_check_header_compile ()
  1548. {
  1549. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1551. $as_echo_n "checking for $2... " >&6; }
  1552. if eval \${$3+:} false; then :
  1553. $as_echo_n "(cached) " >&6
  1554. else
  1555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1556. /* end confdefs.h. */
  1557. $4
  1558. #include <$2>
  1559. _ACEOF
  1560. if ac_fn_c_try_compile "$LINENO"; then :
  1561. eval "$3=yes"
  1562. else
  1563. eval "$3=no"
  1564. fi
  1565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1566. fi
  1567. eval ac_res=\$$3
  1568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1569. $as_echo "$ac_res" >&6; }
  1570. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1571. } # ac_fn_c_check_header_compile
  1572. # ac_fn_cxx_try_compile LINENO
  1573. # ----------------------------
  1574. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1575. ac_fn_cxx_try_compile ()
  1576. {
  1577. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1578. rm -f conftest.$ac_objext
  1579. if { { ac_try="$ac_compile"
  1580. case "(($ac_try" in
  1581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1582. *) ac_try_echo=$ac_try;;
  1583. esac
  1584. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1585. $as_echo "$ac_try_echo"; } >&5
  1586. (eval "$ac_compile") 2>conftest.err
  1587. ac_status=$?
  1588. if test -s conftest.err; then
  1589. grep -v '^ *+' conftest.err >conftest.er1
  1590. cat conftest.er1 >&5
  1591. mv -f conftest.er1 conftest.err
  1592. fi
  1593. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1594. test $ac_status = 0; } && {
  1595. test -z "$ac_cxx_werror_flag" ||
  1596. test ! -s conftest.err
  1597. } && test -s conftest.$ac_objext; then :
  1598. ac_retval=0
  1599. else
  1600. $as_echo "$as_me: failed program was:" >&5
  1601. sed 's/^/| /' conftest.$ac_ext >&5
  1602. ac_retval=1
  1603. fi
  1604. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1605. as_fn_set_status $ac_retval
  1606. } # ac_fn_cxx_try_compile
  1607. # ac_fn_cxx_try_run LINENO
  1608. # ------------------------
  1609. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1610. # that executables *can* be run.
  1611. ac_fn_cxx_try_run ()
  1612. {
  1613. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1614. if { { ac_try="$ac_link"
  1615. case "(($ac_try" in
  1616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1617. *) ac_try_echo=$ac_try;;
  1618. esac
  1619. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1620. $as_echo "$ac_try_echo"; } >&5
  1621. (eval "$ac_link") 2>&5
  1622. ac_status=$?
  1623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1624. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1625. { { case "(($ac_try" in
  1626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1627. *) ac_try_echo=$ac_try;;
  1628. esac
  1629. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1630. $as_echo "$ac_try_echo"; } >&5
  1631. (eval "$ac_try") 2>&5
  1632. ac_status=$?
  1633. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1634. test $ac_status = 0; }; }; then :
  1635. ac_retval=0
  1636. else
  1637. $as_echo "$as_me: program exited with status $ac_status" >&5
  1638. $as_echo "$as_me: failed program was:" >&5
  1639. sed 's/^/| /' conftest.$ac_ext >&5
  1640. ac_retval=$ac_status
  1641. fi
  1642. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1643. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1644. as_fn_set_status $ac_retval
  1645. } # ac_fn_cxx_try_run
  1646. # ac_fn_cxx_try_link LINENO
  1647. # -------------------------
  1648. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1649. ac_fn_cxx_try_link ()
  1650. {
  1651. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1652. rm -f conftest.$ac_objext conftest$ac_exeext
  1653. if { { ac_try="$ac_link"
  1654. case "(($ac_try" in
  1655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1656. *) ac_try_echo=$ac_try;;
  1657. esac
  1658. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1659. $as_echo "$ac_try_echo"; } >&5
  1660. (eval "$ac_link") 2>conftest.err
  1661. ac_status=$?
  1662. if test -s conftest.err; then
  1663. grep -v '^ *+' conftest.err >conftest.er1
  1664. cat conftest.er1 >&5
  1665. mv -f conftest.er1 conftest.err
  1666. fi
  1667. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1668. test $ac_status = 0; } && {
  1669. test -z "$ac_cxx_werror_flag" ||
  1670. test ! -s conftest.err
  1671. } && test -s conftest$ac_exeext && {
  1672. test "$cross_compiling" = yes ||
  1673. test -x conftest$ac_exeext
  1674. }; then :
  1675. ac_retval=0
  1676. else
  1677. $as_echo "$as_me: failed program was:" >&5
  1678. sed 's/^/| /' conftest.$ac_ext >&5
  1679. ac_retval=1
  1680. fi
  1681. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1682. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1683. # interfere with the next link command; also delete a directory that is
  1684. # left behind by Apple's compiler. We do this before executing the actions.
  1685. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1686. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1687. as_fn_set_status $ac_retval
  1688. } # ac_fn_cxx_try_link
  1689. # ac_fn_cxx_check_func LINENO FUNC VAR
  1690. # ------------------------------------
  1691. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1692. ac_fn_cxx_check_func ()
  1693. {
  1694. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1696. $as_echo_n "checking for $2... " >&6; }
  1697. if eval \${$3+:} false; then :
  1698. $as_echo_n "(cached) " >&6
  1699. else
  1700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1701. /* end confdefs.h. */
  1702. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1703. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1704. #define $2 innocuous_$2
  1705. /* System header to define __stub macros and hopefully few prototypes,
  1706. which can conflict with char $2 (); below.
  1707. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1708. <limits.h> exists even on freestanding compilers. */
  1709. #ifdef __STDC__
  1710. # include <limits.h>
  1711. #else
  1712. # include <assert.h>
  1713. #endif
  1714. #undef $2
  1715. /* Override any GCC internal prototype to avoid an error.
  1716. Use char because int might match the return type of a GCC
  1717. builtin and then its argument prototype would still apply. */
  1718. #ifdef __cplusplus
  1719. extern "C"
  1720. #endif
  1721. char $2 ();
  1722. /* The GNU C library defines this for functions which it implements
  1723. to always fail with ENOSYS. Some functions are actually named
  1724. something starting with __ and the normal name is an alias. */
  1725. #if defined __stub_$2 || defined __stub___$2
  1726. choke me
  1727. #endif
  1728. int
  1729. main ()
  1730. {
  1731. return $2 ();
  1732. ;
  1733. return 0;
  1734. }
  1735. _ACEOF
  1736. if ac_fn_cxx_try_link "$LINENO"; then :
  1737. eval "$3=yes"
  1738. else
  1739. eval "$3=no"
  1740. fi
  1741. rm -f core conftest.err conftest.$ac_objext \
  1742. conftest$ac_exeext conftest.$ac_ext
  1743. fi
  1744. eval ac_res=\$$3
  1745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1746. $as_echo "$ac_res" >&6; }
  1747. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1748. } # ac_fn_cxx_check_func
  1749. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1750. # ---------------------------------------------------------
  1751. # Tests whether HEADER exists and can be compiled using the include files in
  1752. # INCLUDES, setting the cache variable VAR accordingly.
  1753. ac_fn_cxx_check_header_compile ()
  1754. {
  1755. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1757. $as_echo_n "checking for $2... " >&6; }
  1758. if eval \${$3+:} false; then :
  1759. $as_echo_n "(cached) " >&6
  1760. else
  1761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1762. /* end confdefs.h. */
  1763. $4
  1764. #include <$2>
  1765. _ACEOF
  1766. if ac_fn_cxx_try_compile "$LINENO"; then :
  1767. eval "$3=yes"
  1768. else
  1769. eval "$3=no"
  1770. fi
  1771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1772. fi
  1773. eval ac_res=\$$3
  1774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1775. $as_echo "$ac_res" >&6; }
  1776. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1777. } # ac_fn_cxx_check_header_compile
  1778. # ac_fn_cxx_try_cpp LINENO
  1779. # ------------------------
  1780. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1781. ac_fn_cxx_try_cpp ()
  1782. {
  1783. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1784. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1785. case "(($ac_try" in
  1786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1787. *) ac_try_echo=$ac_try;;
  1788. esac
  1789. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1790. $as_echo "$ac_try_echo"; } >&5
  1791. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1792. ac_status=$?
  1793. if test -s conftest.err; then
  1794. grep -v '^ *+' conftest.err >conftest.er1
  1795. cat conftest.er1 >&5
  1796. mv -f conftest.er1 conftest.err
  1797. fi
  1798. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1799. test $ac_status = 0; } > conftest.i && {
  1800. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1801. test ! -s conftest.err
  1802. }; then :
  1803. ac_retval=0
  1804. else
  1805. $as_echo "$as_me: failed program was:" >&5
  1806. sed 's/^/| /' conftest.$ac_ext >&5
  1807. ac_retval=1
  1808. fi
  1809. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1810. as_fn_set_status $ac_retval
  1811. } # ac_fn_cxx_try_cpp
  1812. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1813. # ---------------------------------------------------------
  1814. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1815. # the include files in INCLUDES and setting the cache variable VAR
  1816. # accordingly.
  1817. ac_fn_cxx_check_header_mongrel ()
  1818. {
  1819. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1820. if eval \${$3+:} false; then :
  1821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1822. $as_echo_n "checking for $2... " >&6; }
  1823. if eval \${$3+:} false; then :
  1824. $as_echo_n "(cached) " >&6
  1825. fi
  1826. eval ac_res=\$$3
  1827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1828. $as_echo "$ac_res" >&6; }
  1829. else
  1830. # Is the header compilable?
  1831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1832. $as_echo_n "checking $2 usability... " >&6; }
  1833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1834. /* end confdefs.h. */
  1835. $4
  1836. #include <$2>
  1837. _ACEOF
  1838. if ac_fn_cxx_try_compile "$LINENO"; then :
  1839. ac_header_compiler=yes
  1840. else
  1841. ac_header_compiler=no
  1842. fi
  1843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1845. $as_echo "$ac_header_compiler" >&6; }
  1846. # Is the header present?
  1847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1848. $as_echo_n "checking $2 presence... " >&6; }
  1849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1850. /* end confdefs.h. */
  1851. #include <$2>
  1852. _ACEOF
  1853. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1854. ac_header_preproc=yes
  1855. else
  1856. ac_header_preproc=no
  1857. fi
  1858. rm -f conftest.err conftest.i conftest.$ac_ext
  1859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1860. $as_echo "$ac_header_preproc" >&6; }
  1861. # So? What about this header?
  1862. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1863. yes:no: )
  1864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1865. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1866. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1867. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1868. ;;
  1869. no:yes:* )
  1870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1871. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1873. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1874. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1875. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1876. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1877. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1879. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1880. ;;
  1881. esac
  1882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1883. $as_echo_n "checking for $2... " >&6; }
  1884. if eval \${$3+:} false; then :
  1885. $as_echo_n "(cached) " >&6
  1886. else
  1887. eval "$3=\$ac_header_compiler"
  1888. fi
  1889. eval ac_res=\$$3
  1890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1891. $as_echo "$ac_res" >&6; }
  1892. fi
  1893. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1894. } # ac_fn_cxx_check_header_mongrel
  1895. cat >config.log <<_ACEOF
  1896. This file contains any messages produced by compilers while
  1897. running configure, to aid debugging if configure makes a mistake.
  1898. It was created by $as_me, which was
  1899. generated by GNU Autoconf 2.69. Invocation command line was
  1900. $ $0 $@
  1901. _ACEOF
  1902. exec 5>>config.log
  1903. {
  1904. cat <<_ASUNAME
  1905. ## --------- ##
  1906. ## Platform. ##
  1907. ## --------- ##
  1908. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1909. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1910. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1911. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1912. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1913. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1914. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1915. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1916. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1917. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1918. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1919. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1920. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1921. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1922. _ASUNAME
  1923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1924. for as_dir in $PATH
  1925. do
  1926. IFS=$as_save_IFS
  1927. test -z "$as_dir" && as_dir=.
  1928. $as_echo "PATH: $as_dir"
  1929. done
  1930. IFS=$as_save_IFS
  1931. } >&5
  1932. cat >&5 <<_ACEOF
  1933. ## ----------- ##
  1934. ## Core tests. ##
  1935. ## ----------- ##
  1936. _ACEOF
  1937. # Keep a trace of the command line.
  1938. # Strip out --no-create and --no-recursion so they do not pile up.
  1939. # Strip out --silent because we don't want to record it for future runs.
  1940. # Also quote any args containing shell meta-characters.
  1941. # Make two passes to allow for proper duplicate-argument suppression.
  1942. ac_configure_args=
  1943. ac_configure_args0=
  1944. ac_configure_args1=
  1945. ac_must_keep_next=false
  1946. for ac_pass in 1 2
  1947. do
  1948. for ac_arg
  1949. do
  1950. case $ac_arg in
  1951. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1952. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1953. | -silent | --silent | --silen | --sile | --sil)
  1954. continue ;;
  1955. *\'*)
  1956. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1957. esac
  1958. case $ac_pass in
  1959. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1960. 2)
  1961. as_fn_append ac_configure_args1 " '$ac_arg'"
  1962. if test $ac_must_keep_next = true; then
  1963. ac_must_keep_next=false # Got value, back to normal.
  1964. else
  1965. case $ac_arg in
  1966. *=* | --config-cache | -C | -disable-* | --disable-* \
  1967. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1968. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1969. | -with-* | --with-* | -without-* | --without-* | --x)
  1970. case "$ac_configure_args0 " in
  1971. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1972. esac
  1973. ;;
  1974. -* ) ac_must_keep_next=true ;;
  1975. esac
  1976. fi
  1977. as_fn_append ac_configure_args " '$ac_arg'"
  1978. ;;
  1979. esac
  1980. done
  1981. done
  1982. { ac_configure_args0=; unset ac_configure_args0;}
  1983. { ac_configure_args1=; unset ac_configure_args1;}
  1984. # When interrupted or exit'd, cleanup temporary files, and complete
  1985. # config.log. We remove comments because anyway the quotes in there
  1986. # would cause problems or look ugly.
  1987. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1988. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1989. trap 'exit_status=$?
  1990. # Save into config.log some information that might help in debugging.
  1991. {
  1992. echo
  1993. $as_echo "## ---------------- ##
  1994. ## Cache variables. ##
  1995. ## ---------------- ##"
  1996. echo
  1997. # The following way of writing the cache mishandles newlines in values,
  1998. (
  1999. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2000. eval ac_val=\$$ac_var
  2001. case $ac_val in #(
  2002. *${as_nl}*)
  2003. case $ac_var in #(
  2004. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2005. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2006. esac
  2007. case $ac_var in #(
  2008. _ | IFS | as_nl) ;; #(
  2009. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2010. *) { eval $ac_var=; unset $ac_var;} ;;
  2011. esac ;;
  2012. esac
  2013. done
  2014. (set) 2>&1 |
  2015. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2016. *${as_nl}ac_space=\ *)
  2017. sed -n \
  2018. "s/'\''/'\''\\\\'\'''\''/g;
  2019. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2020. ;; #(
  2021. *)
  2022. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2023. ;;
  2024. esac |
  2025. sort
  2026. )
  2027. echo
  2028. $as_echo "## ----------------- ##
  2029. ## Output variables. ##
  2030. ## ----------------- ##"
  2031. echo
  2032. for ac_var in $ac_subst_vars
  2033. do
  2034. eval ac_val=\$$ac_var
  2035. case $ac_val in
  2036. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2037. esac
  2038. $as_echo "$ac_var='\''$ac_val'\''"
  2039. done | sort
  2040. echo
  2041. if test -n "$ac_subst_files"; then
  2042. $as_echo "## ------------------- ##
  2043. ## File substitutions. ##
  2044. ## ------------------- ##"
  2045. echo
  2046. for ac_var in $ac_subst_files
  2047. do
  2048. eval ac_val=\$$ac_var
  2049. case $ac_val in
  2050. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2051. esac
  2052. $as_echo "$ac_var='\''$ac_val'\''"
  2053. done | sort
  2054. echo
  2055. fi
  2056. if test -s confdefs.h; then
  2057. $as_echo "## ----------- ##
  2058. ## confdefs.h. ##
  2059. ## ----------- ##"
  2060. echo
  2061. cat confdefs.h
  2062. echo
  2063. fi
  2064. test "$ac_signal" != 0 &&
  2065. $as_echo "$as_me: caught signal $ac_signal"
  2066. $as_echo "$as_me: exit $exit_status"
  2067. } >&5
  2068. rm -f core *.core core.conftest.* &&
  2069. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2070. exit $exit_status
  2071. ' 0
  2072. for ac_signal in 1 2 13 15; do
  2073. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2074. done
  2075. ac_signal=0
  2076. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2077. rm -f -r conftest* confdefs.h
  2078. $as_echo "/* confdefs.h */" > confdefs.h
  2079. # Predefined preprocessor variables.
  2080. cat >>confdefs.h <<_ACEOF
  2081. #define PACKAGE_NAME "$PACKAGE_NAME"
  2082. _ACEOF
  2083. cat >>confdefs.h <<_ACEOF
  2084. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2085. _ACEOF
  2086. cat >>confdefs.h <<_ACEOF
  2087. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2088. _ACEOF
  2089. cat >>confdefs.h <<_ACEOF
  2090. #define PACKAGE_STRING "$PACKAGE_STRING"
  2091. _ACEOF
  2092. cat >>confdefs.h <<_ACEOF
  2093. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2094. _ACEOF
  2095. cat >>confdefs.h <<_ACEOF
  2096. #define PACKAGE_URL "$PACKAGE_URL"
  2097. _ACEOF
  2098. # Let the site file select an alternate cache file if it wants to.
  2099. # Prefer an explicitly selected file to automatically selected ones.
  2100. ac_site_file1=NONE
  2101. ac_site_file2=NONE
  2102. if test -n "$CONFIG_SITE"; then
  2103. # We do not want a PATH search for config.site.
  2104. case $CONFIG_SITE in #((
  2105. -*) ac_site_file1=./$CONFIG_SITE;;
  2106. */*) ac_site_file1=$CONFIG_SITE;;
  2107. *) ac_site_file1=./$CONFIG_SITE;;
  2108. esac
  2109. elif test "x$prefix" != xNONE; then
  2110. ac_site_file1=$prefix/share/config.site
  2111. ac_site_file2=$prefix/etc/config.site
  2112. else
  2113. ac_site_file1=$ac_default_prefix/share/config.site
  2114. ac_site_file2=$ac_default_prefix/etc/config.site
  2115. fi
  2116. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2117. do
  2118. test "x$ac_site_file" = xNONE && continue
  2119. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2121. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2122. sed 's/^/| /' "$ac_site_file" >&5
  2123. . "$ac_site_file" \
  2124. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2125. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2126. as_fn_error $? "failed to load site script $ac_site_file
  2127. See \`config.log' for more details" "$LINENO" 5; }
  2128. fi
  2129. done
  2130. if test -r "$cache_file"; then
  2131. # Some versions of bash will fail to source /dev/null (special files
  2132. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2133. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2135. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2136. case $cache_file in
  2137. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2138. *) . "./$cache_file";;
  2139. esac
  2140. fi
  2141. else
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2143. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2144. >$cache_file
  2145. fi
  2146. # Check that the precious variables saved in the cache have kept the same
  2147. # value.
  2148. ac_cache_corrupted=false
  2149. for ac_var in $ac_precious_vars; do
  2150. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2151. eval ac_new_set=\$ac_env_${ac_var}_set
  2152. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2153. eval ac_new_val=\$ac_env_${ac_var}_value
  2154. case $ac_old_set,$ac_new_set in
  2155. set,)
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2157. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2158. ac_cache_corrupted=: ;;
  2159. ,set)
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2161. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2162. ac_cache_corrupted=: ;;
  2163. ,);;
  2164. *)
  2165. if test "x$ac_old_val" != "x$ac_new_val"; then
  2166. # differences in whitespace do not lead to failure.
  2167. ac_old_val_w=`echo x $ac_old_val`
  2168. ac_new_val_w=`echo x $ac_new_val`
  2169. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2170. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2171. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2172. ac_cache_corrupted=:
  2173. else
  2174. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2175. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2176. eval $ac_var=\$ac_old_val
  2177. fi
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2179. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2181. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2182. fi;;
  2183. esac
  2184. # Pass precious variables to config.status.
  2185. if test "$ac_new_set" = set; then
  2186. case $ac_new_val in
  2187. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2188. *) ac_arg=$ac_var=$ac_new_val ;;
  2189. esac
  2190. case " $ac_configure_args " in
  2191. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2192. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2193. esac
  2194. fi
  2195. done
  2196. if $ac_cache_corrupted; then
  2197. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2198. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2200. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2201. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2202. fi
  2203. ## -------------------- ##
  2204. ## Main body of script. ##
  2205. ## -------------------- ##
  2206. ac_ext=c
  2207. ac_cpp='$CPP $CPPFLAGS'
  2208. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2209. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2210. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2211. ac_config_files="$ac_config_files Makefile src/common/Makefile"
  2212. ac_config_files="$ac_config_files 3rdparty/mt19937ar/Makefile 3rdparty/libconfig/Makefile 3rdparty/yaml-cpp/Makefile"
  2213. ac_config_files="$ac_config_files src/char/Makefile src/login/Makefile"
  2214. ac_config_files="$ac_config_files src/map/Makefile src/tool/Makefile"
  2215. ac_ext=c
  2216. ac_cpp='$CPP $CPPFLAGS'
  2217. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2218. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2219. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2220. if test -n "$ac_tool_prefix"; then
  2221. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2222. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2224. $as_echo_n "checking for $ac_word... " >&6; }
  2225. if ${ac_cv_prog_CC+:} false; then :
  2226. $as_echo_n "(cached) " >&6
  2227. else
  2228. if test -n "$CC"; then
  2229. ac_cv_prog_CC="$CC" # Let the user override the test.
  2230. else
  2231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2232. for as_dir in $PATH
  2233. do
  2234. IFS=$as_save_IFS
  2235. test -z "$as_dir" && as_dir=.
  2236. for ac_exec_ext in '' $ac_executable_extensions; do
  2237. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2238. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2240. break 2
  2241. fi
  2242. done
  2243. done
  2244. IFS=$as_save_IFS
  2245. fi
  2246. fi
  2247. CC=$ac_cv_prog_CC
  2248. if test -n "$CC"; then
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2250. $as_echo "$CC" >&6; }
  2251. else
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2253. $as_echo "no" >&6; }
  2254. fi
  2255. fi
  2256. if test -z "$ac_cv_prog_CC"; then
  2257. ac_ct_CC=$CC
  2258. # Extract the first word of "gcc", so it can be a program name with args.
  2259. set dummy gcc; ac_word=$2
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2261. $as_echo_n "checking for $ac_word... " >&6; }
  2262. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2263. $as_echo_n "(cached) " >&6
  2264. else
  2265. if test -n "$ac_ct_CC"; then
  2266. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2267. else
  2268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2269. for as_dir in $PATH
  2270. do
  2271. IFS=$as_save_IFS
  2272. test -z "$as_dir" && as_dir=.
  2273. for ac_exec_ext in '' $ac_executable_extensions; do
  2274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2275. ac_cv_prog_ac_ct_CC="gcc"
  2276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2277. break 2
  2278. fi
  2279. done
  2280. done
  2281. IFS=$as_save_IFS
  2282. fi
  2283. fi
  2284. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2285. if test -n "$ac_ct_CC"; then
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2287. $as_echo "$ac_ct_CC" >&6; }
  2288. else
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2290. $as_echo "no" >&6; }
  2291. fi
  2292. if test "x$ac_ct_CC" = x; then
  2293. CC=""
  2294. else
  2295. case $cross_compiling:$ac_tool_warned in
  2296. yes:)
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2298. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2299. ac_tool_warned=yes ;;
  2300. esac
  2301. CC=$ac_ct_CC
  2302. fi
  2303. else
  2304. CC="$ac_cv_prog_CC"
  2305. fi
  2306. if test -z "$CC"; then
  2307. if test -n "$ac_tool_prefix"; then
  2308. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2309. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2311. $as_echo_n "checking for $ac_word... " >&6; }
  2312. if ${ac_cv_prog_CC+:} false; then :
  2313. $as_echo_n "(cached) " >&6
  2314. else
  2315. if test -n "$CC"; then
  2316. ac_cv_prog_CC="$CC" # Let the user override the test.
  2317. else
  2318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2319. for as_dir in $PATH
  2320. do
  2321. IFS=$as_save_IFS
  2322. test -z "$as_dir" && as_dir=.
  2323. for ac_exec_ext in '' $ac_executable_extensions; do
  2324. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2325. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2326. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2327. break 2
  2328. fi
  2329. done
  2330. done
  2331. IFS=$as_save_IFS
  2332. fi
  2333. fi
  2334. CC=$ac_cv_prog_CC
  2335. if test -n "$CC"; then
  2336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2337. $as_echo "$CC" >&6; }
  2338. else
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2340. $as_echo "no" >&6; }
  2341. fi
  2342. fi
  2343. fi
  2344. if test -z "$CC"; then
  2345. # Extract the first word of "cc", so it can be a program name with args.
  2346. set dummy cc; ac_word=$2
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2348. $as_echo_n "checking for $ac_word... " >&6; }
  2349. if ${ac_cv_prog_CC+:} false; then :
  2350. $as_echo_n "(cached) " >&6
  2351. else
  2352. if test -n "$CC"; then
  2353. ac_cv_prog_CC="$CC" # Let the user override the test.
  2354. else
  2355. ac_prog_rejected=no
  2356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2357. for as_dir in $PATH
  2358. do
  2359. IFS=$as_save_IFS
  2360. test -z "$as_dir" && as_dir=.
  2361. for ac_exec_ext in '' $ac_executable_extensions; do
  2362. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2363. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2364. ac_prog_rejected=yes
  2365. continue
  2366. fi
  2367. ac_cv_prog_CC="cc"
  2368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2369. break 2
  2370. fi
  2371. done
  2372. done
  2373. IFS=$as_save_IFS
  2374. if test $ac_prog_rejected = yes; then
  2375. # We found a bogon in the path, so make sure we never use it.
  2376. set dummy $ac_cv_prog_CC
  2377. shift
  2378. if test $# != 0; then
  2379. # We chose a different compiler from the bogus one.
  2380. # However, it has the same basename, so the bogon will be chosen
  2381. # first if we set CC to just the basename; use the full file name.
  2382. shift
  2383. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2384. fi
  2385. fi
  2386. fi
  2387. fi
  2388. CC=$ac_cv_prog_CC
  2389. if test -n "$CC"; then
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2391. $as_echo "$CC" >&6; }
  2392. else
  2393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2394. $as_echo "no" >&6; }
  2395. fi
  2396. fi
  2397. if test -z "$CC"; then
  2398. if test -n "$ac_tool_prefix"; then
  2399. for ac_prog in cl.exe
  2400. do
  2401. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2402. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2404. $as_echo_n "checking for $ac_word... " >&6; }
  2405. if ${ac_cv_prog_CC+:} false; then :
  2406. $as_echo_n "(cached) " >&6
  2407. else
  2408. if test -n "$CC"; then
  2409. ac_cv_prog_CC="$CC" # Let the user override the test.
  2410. else
  2411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2412. for as_dir in $PATH
  2413. do
  2414. IFS=$as_save_IFS
  2415. test -z "$as_dir" && as_dir=.
  2416. for ac_exec_ext in '' $ac_executable_extensions; do
  2417. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2418. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2419. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2420. break 2
  2421. fi
  2422. done
  2423. done
  2424. IFS=$as_save_IFS
  2425. fi
  2426. fi
  2427. CC=$ac_cv_prog_CC
  2428. if test -n "$CC"; then
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2430. $as_echo "$CC" >&6; }
  2431. else
  2432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2433. $as_echo "no" >&6; }
  2434. fi
  2435. test -n "$CC" && break
  2436. done
  2437. fi
  2438. if test -z "$CC"; then
  2439. ac_ct_CC=$CC
  2440. for ac_prog in cl.exe
  2441. do
  2442. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2443. set dummy $ac_prog; ac_word=$2
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2445. $as_echo_n "checking for $ac_word... " >&6; }
  2446. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2447. $as_echo_n "(cached) " >&6
  2448. else
  2449. if test -n "$ac_ct_CC"; then
  2450. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2451. else
  2452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2453. for as_dir in $PATH
  2454. do
  2455. IFS=$as_save_IFS
  2456. test -z "$as_dir" && as_dir=.
  2457. for ac_exec_ext in '' $ac_executable_extensions; do
  2458. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2459. ac_cv_prog_ac_ct_CC="$ac_prog"
  2460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2461. break 2
  2462. fi
  2463. done
  2464. done
  2465. IFS=$as_save_IFS
  2466. fi
  2467. fi
  2468. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2469. if test -n "$ac_ct_CC"; then
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2471. $as_echo "$ac_ct_CC" >&6; }
  2472. else
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2474. $as_echo "no" >&6; }
  2475. fi
  2476. test -n "$ac_ct_CC" && break
  2477. done
  2478. if test "x$ac_ct_CC" = x; then
  2479. CC=""
  2480. else
  2481. case $cross_compiling:$ac_tool_warned in
  2482. yes:)
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2484. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2485. ac_tool_warned=yes ;;
  2486. esac
  2487. CC=$ac_ct_CC
  2488. fi
  2489. fi
  2490. fi
  2491. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2492. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2493. as_fn_error $? "no acceptable C compiler found in \$PATH
  2494. See \`config.log' for more details" "$LINENO" 5; }
  2495. # Provide some information about the compiler.
  2496. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2497. set X $ac_compile
  2498. ac_compiler=$2
  2499. for ac_option in --version -v -V -qversion; do
  2500. { { ac_try="$ac_compiler $ac_option >&5"
  2501. case "(($ac_try" in
  2502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2503. *) ac_try_echo=$ac_try;;
  2504. esac
  2505. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2506. $as_echo "$ac_try_echo"; } >&5
  2507. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2508. ac_status=$?
  2509. if test -s conftest.err; then
  2510. sed '10a\
  2511. ... rest of stderr output deleted ...
  2512. 10q' conftest.err >conftest.er1
  2513. cat conftest.er1 >&5
  2514. fi
  2515. rm -f conftest.er1 conftest.err
  2516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2517. test $ac_status = 0; }
  2518. done
  2519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2520. /* end confdefs.h. */
  2521. int
  2522. main ()
  2523. {
  2524. ;
  2525. return 0;
  2526. }
  2527. _ACEOF
  2528. ac_clean_files_save=$ac_clean_files
  2529. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2530. # Try to create an executable without -o first, disregard a.out.
  2531. # It will help us diagnose broken compilers, and finding out an intuition
  2532. # of exeext.
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2534. $as_echo_n "checking whether the C compiler works... " >&6; }
  2535. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2536. # The possible output files:
  2537. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2538. ac_rmfiles=
  2539. for ac_file in $ac_files
  2540. do
  2541. case $ac_file in
  2542. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2543. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2544. esac
  2545. done
  2546. rm -f $ac_rmfiles
  2547. if { { ac_try="$ac_link_default"
  2548. case "(($ac_try" in
  2549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2550. *) ac_try_echo=$ac_try;;
  2551. esac
  2552. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2553. $as_echo "$ac_try_echo"; } >&5
  2554. (eval "$ac_link_default") 2>&5
  2555. ac_status=$?
  2556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2557. test $ac_status = 0; }; then :
  2558. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2559. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2560. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2561. # so that the user can short-circuit this test for compilers unknown to
  2562. # Autoconf.
  2563. for ac_file in $ac_files ''
  2564. do
  2565. test -f "$ac_file" || continue
  2566. case $ac_file in
  2567. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2568. ;;
  2569. [ab].out )
  2570. # We found the default executable, but exeext='' is most
  2571. # certainly right.
  2572. break;;
  2573. *.* )
  2574. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2575. then :; else
  2576. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2577. fi
  2578. # We set ac_cv_exeext here because the later test for it is not
  2579. # safe: cross compilers may not add the suffix if given an `-o'
  2580. # argument, so we may need to know it at that point already.
  2581. # Even if this section looks crufty: it has the advantage of
  2582. # actually working.
  2583. break;;
  2584. * )
  2585. break;;
  2586. esac
  2587. done
  2588. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2589. else
  2590. ac_file=''
  2591. fi
  2592. if test -z "$ac_file"; then :
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2594. $as_echo "no" >&6; }
  2595. $as_echo "$as_me: failed program was:" >&5
  2596. sed 's/^/| /' conftest.$ac_ext >&5
  2597. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2598. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2599. as_fn_error 77 "C compiler cannot create executables
  2600. See \`config.log' for more details" "$LINENO" 5; }
  2601. else
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2603. $as_echo "yes" >&6; }
  2604. fi
  2605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2606. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2608. $as_echo "$ac_file" >&6; }
  2609. ac_exeext=$ac_cv_exeext
  2610. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2611. ac_clean_files=$ac_clean_files_save
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2613. $as_echo_n "checking for suffix of executables... " >&6; }
  2614. if { { ac_try="$ac_link"
  2615. case "(($ac_try" in
  2616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2617. *) ac_try_echo=$ac_try;;
  2618. esac
  2619. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2620. $as_echo "$ac_try_echo"; } >&5
  2621. (eval "$ac_link") 2>&5
  2622. ac_status=$?
  2623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2624. test $ac_status = 0; }; then :
  2625. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2626. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2627. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2628. # `rm'.
  2629. for ac_file in conftest.exe conftest conftest.*; do
  2630. test -f "$ac_file" || continue
  2631. case $ac_file in
  2632. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2633. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2634. break;;
  2635. * ) break;;
  2636. esac
  2637. done
  2638. else
  2639. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2640. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2641. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2642. See \`config.log' for more details" "$LINENO" 5; }
  2643. fi
  2644. rm -f conftest conftest$ac_cv_exeext
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2646. $as_echo "$ac_cv_exeext" >&6; }
  2647. rm -f conftest.$ac_ext
  2648. EXEEXT=$ac_cv_exeext
  2649. ac_exeext=$EXEEXT
  2650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2651. /* end confdefs.h. */
  2652. #include <stdio.h>
  2653. int
  2654. main ()
  2655. {
  2656. FILE *f = fopen ("conftest.out", "w");
  2657. return ferror (f) || fclose (f) != 0;
  2658. ;
  2659. return 0;
  2660. }
  2661. _ACEOF
  2662. ac_clean_files="$ac_clean_files conftest.out"
  2663. # Check that the compiler produces executables we can run. If not, either
  2664. # the compiler is broken, or we cross compile.
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2666. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2667. if test "$cross_compiling" != yes; then
  2668. { { ac_try="$ac_link"
  2669. case "(($ac_try" in
  2670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2671. *) ac_try_echo=$ac_try;;
  2672. esac
  2673. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2674. $as_echo "$ac_try_echo"; } >&5
  2675. (eval "$ac_link") 2>&5
  2676. ac_status=$?
  2677. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2678. test $ac_status = 0; }
  2679. if { ac_try='./conftest$ac_cv_exeext'
  2680. { { case "(($ac_try" in
  2681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2682. *) ac_try_echo=$ac_try;;
  2683. esac
  2684. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2685. $as_echo "$ac_try_echo"; } >&5
  2686. (eval "$ac_try") 2>&5
  2687. ac_status=$?
  2688. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2689. test $ac_status = 0; }; }; then
  2690. cross_compiling=no
  2691. else
  2692. if test "$cross_compiling" = maybe; then
  2693. cross_compiling=yes
  2694. else
  2695. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2696. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2697. as_fn_error $? "cannot run C compiled programs.
  2698. If you meant to cross compile, use \`--host'.
  2699. See \`config.log' for more details" "$LINENO" 5; }
  2700. fi
  2701. fi
  2702. fi
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2704. $as_echo "$cross_compiling" >&6; }
  2705. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2706. ac_clean_files=$ac_clean_files_save
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2708. $as_echo_n "checking for suffix of object files... " >&6; }
  2709. if ${ac_cv_objext+:} false; then :
  2710. $as_echo_n "(cached) " >&6
  2711. else
  2712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2713. /* end confdefs.h. */
  2714. int
  2715. main ()
  2716. {
  2717. ;
  2718. return 0;
  2719. }
  2720. _ACEOF
  2721. rm -f conftest.o conftest.obj
  2722. if { { ac_try="$ac_compile"
  2723. case "(($ac_try" in
  2724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2725. *) ac_try_echo=$ac_try;;
  2726. esac
  2727. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2728. $as_echo "$ac_try_echo"; } >&5
  2729. (eval "$ac_compile") 2>&5
  2730. ac_status=$?
  2731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2732. test $ac_status = 0; }; then :
  2733. for ac_file in conftest.o conftest.obj conftest.*; do
  2734. test -f "$ac_file" || continue;
  2735. case $ac_file in
  2736. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2737. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2738. break;;
  2739. esac
  2740. done
  2741. else
  2742. $as_echo "$as_me: failed program was:" >&5
  2743. sed 's/^/| /' conftest.$ac_ext >&5
  2744. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2745. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2746. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2747. See \`config.log' for more details" "$LINENO" 5; }
  2748. fi
  2749. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2750. fi
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2752. $as_echo "$ac_cv_objext" >&6; }
  2753. OBJEXT=$ac_cv_objext
  2754. ac_objext=$OBJEXT
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2756. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2757. if ${ac_cv_c_compiler_gnu+:} false; then :
  2758. $as_echo_n "(cached) " >&6
  2759. else
  2760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2761. /* end confdefs.h. */
  2762. int
  2763. main ()
  2764. {
  2765. #ifndef __GNUC__
  2766. choke me
  2767. #endif
  2768. ;
  2769. return 0;
  2770. }
  2771. _ACEOF
  2772. if ac_fn_c_try_compile "$LINENO"; then :
  2773. ac_compiler_gnu=yes
  2774. else
  2775. ac_compiler_gnu=no
  2776. fi
  2777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2778. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2779. fi
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2781. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2782. if test $ac_compiler_gnu = yes; then
  2783. GCC=yes
  2784. else
  2785. GCC=
  2786. fi
  2787. ac_test_CFLAGS=${CFLAGS+set}
  2788. ac_save_CFLAGS=$CFLAGS
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2790. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2791. if ${ac_cv_prog_cc_g+:} false; then :
  2792. $as_echo_n "(cached) " >&6
  2793. else
  2794. ac_save_c_werror_flag=$ac_c_werror_flag
  2795. ac_c_werror_flag=yes
  2796. ac_cv_prog_cc_g=no
  2797. CFLAGS="-g"
  2798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2799. /* end confdefs.h. */
  2800. int
  2801. main ()
  2802. {
  2803. ;
  2804. return 0;
  2805. }
  2806. _ACEOF
  2807. if ac_fn_c_try_compile "$LINENO"; then :
  2808. ac_cv_prog_cc_g=yes
  2809. else
  2810. CFLAGS=""
  2811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2812. /* end confdefs.h. */
  2813. int
  2814. main ()
  2815. {
  2816. ;
  2817. return 0;
  2818. }
  2819. _ACEOF
  2820. if ac_fn_c_try_compile "$LINENO"; then :
  2821. else
  2822. ac_c_werror_flag=$ac_save_c_werror_flag
  2823. CFLAGS="-g"
  2824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2825. /* end confdefs.h. */
  2826. int
  2827. main ()
  2828. {
  2829. ;
  2830. return 0;
  2831. }
  2832. _ACEOF
  2833. if ac_fn_c_try_compile "$LINENO"; then :
  2834. ac_cv_prog_cc_g=yes
  2835. fi
  2836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2837. fi
  2838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2839. fi
  2840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2841. ac_c_werror_flag=$ac_save_c_werror_flag
  2842. fi
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2844. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2845. if test "$ac_test_CFLAGS" = set; then
  2846. CFLAGS=$ac_save_CFLAGS
  2847. elif test $ac_cv_prog_cc_g = yes; then
  2848. if test "$GCC" = yes; then
  2849. CFLAGS="-g -O2"
  2850. else
  2851. CFLAGS="-g"
  2852. fi
  2853. else
  2854. if test "$GCC" = yes; then
  2855. CFLAGS="-O2"
  2856. else
  2857. CFLAGS=
  2858. fi
  2859. fi
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2861. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2862. if ${ac_cv_prog_cc_c89+:} false; then :
  2863. $as_echo_n "(cached) " >&6
  2864. else
  2865. ac_cv_prog_cc_c89=no
  2866. ac_save_CC=$CC
  2867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2868. /* end confdefs.h. */
  2869. #include <stdarg.h>
  2870. #include <stdio.h>
  2871. struct stat;
  2872. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2873. struct buf { int x; };
  2874. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2875. static char *e (p, i)
  2876. char **p;
  2877. int i;
  2878. {
  2879. return p[i];
  2880. }
  2881. static char *f (char * (*g) (char **, int), char **p, ...)
  2882. {
  2883. char *s;
  2884. va_list v;
  2885. va_start (v,p);
  2886. s = g (p, va_arg (v,int));
  2887. va_end (v);
  2888. return s;
  2889. }
  2890. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2891. function prototypes and stuff, but not '\xHH' hex character constants.
  2892. These don't provoke an error unfortunately, instead are silently treated
  2893. as 'x'. The following induces an error, until -std is added to get
  2894. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2895. array size at least. It's necessary to write '\x00'==0 to get something
  2896. that's true only with -std. */
  2897. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2898. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2899. inside strings and character constants. */
  2900. #define FOO(x) 'x'
  2901. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2902. int test (int i, double x);
  2903. struct s1 {int (*f) (int a);};
  2904. struct s2 {int (*f) (double a);};
  2905. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2906. int argc;
  2907. char **argv;
  2908. int
  2909. main ()
  2910. {
  2911. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2912. ;
  2913. return 0;
  2914. }
  2915. _ACEOF
  2916. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2917. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2918. do
  2919. CC="$ac_save_CC $ac_arg"
  2920. if ac_fn_c_try_compile "$LINENO"; then :
  2921. ac_cv_prog_cc_c89=$ac_arg
  2922. fi
  2923. rm -f core conftest.err conftest.$ac_objext
  2924. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2925. done
  2926. rm -f conftest.$ac_ext
  2927. CC=$ac_save_CC
  2928. fi
  2929. # AC_CACHE_VAL
  2930. case "x$ac_cv_prog_cc_c89" in
  2931. x)
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2933. $as_echo "none needed" >&6; } ;;
  2934. xno)
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2936. $as_echo "unsupported" >&6; } ;;
  2937. *)
  2938. CC="$CC $ac_cv_prog_cc_c89"
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2940. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2941. esac
  2942. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2943. fi
  2944. ac_ext=c
  2945. ac_cpp='$CPP $CPPFLAGS'
  2946. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2947. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2948. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2949. ac_ext=c
  2950. ac_cpp='$CPP $CPPFLAGS'
  2951. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2952. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2953. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2955. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2956. # On Suns, sometimes $CPP names a directory.
  2957. if test -n "$CPP" && test -d "$CPP"; then
  2958. CPP=
  2959. fi
  2960. if test -z "$CPP"; then
  2961. if ${ac_cv_prog_CPP+:} false; then :
  2962. $as_echo_n "(cached) " >&6
  2963. else
  2964. # Double quotes because CPP needs to be expanded
  2965. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2966. do
  2967. ac_preproc_ok=false
  2968. for ac_c_preproc_warn_flag in '' yes
  2969. do
  2970. # Use a header file that comes with gcc, so configuring glibc
  2971. # with a fresh cross-compiler works.
  2972. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2973. # <limits.h> exists even on freestanding compilers.
  2974. # On the NeXT, cc -E runs the code through the compiler's parser,
  2975. # not just through cpp. "Syntax error" is here to catch this case.
  2976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2977. /* end confdefs.h. */
  2978. #ifdef __STDC__
  2979. # include <limits.h>
  2980. #else
  2981. # include <assert.h>
  2982. #endif
  2983. Syntax error
  2984. _ACEOF
  2985. if ac_fn_c_try_cpp "$LINENO"; then :
  2986. else
  2987. # Broken: fails on valid input.
  2988. continue
  2989. fi
  2990. rm -f conftest.err conftest.i conftest.$ac_ext
  2991. # OK, works on sane cases. Now check whether nonexistent headers
  2992. # can be detected and how.
  2993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2994. /* end confdefs.h. */
  2995. #include <ac_nonexistent.h>
  2996. _ACEOF
  2997. if ac_fn_c_try_cpp "$LINENO"; then :
  2998. # Broken: success on invalid input.
  2999. continue
  3000. else
  3001. # Passes both tests.
  3002. ac_preproc_ok=:
  3003. break
  3004. fi
  3005. rm -f conftest.err conftest.i conftest.$ac_ext
  3006. done
  3007. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3008. rm -f conftest.i conftest.err conftest.$ac_ext
  3009. if $ac_preproc_ok; then :
  3010. break
  3011. fi
  3012. done
  3013. ac_cv_prog_CPP=$CPP
  3014. fi
  3015. CPP=$ac_cv_prog_CPP
  3016. else
  3017. ac_cv_prog_CPP=$CPP
  3018. fi
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3020. $as_echo "$CPP" >&6; }
  3021. ac_preproc_ok=false
  3022. for ac_c_preproc_warn_flag in '' yes
  3023. do
  3024. # Use a header file that comes with gcc, so configuring glibc
  3025. # with a fresh cross-compiler works.
  3026. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3027. # <limits.h> exists even on freestanding compilers.
  3028. # On the NeXT, cc -E runs the code through the compiler's parser,
  3029. # not just through cpp. "Syntax error" is here to catch this case.
  3030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3031. /* end confdefs.h. */
  3032. #ifdef __STDC__
  3033. # include <limits.h>
  3034. #else
  3035. # include <assert.h>
  3036. #endif
  3037. Syntax error
  3038. _ACEOF
  3039. if ac_fn_c_try_cpp "$LINENO"; then :
  3040. else
  3041. # Broken: fails on valid input.
  3042. continue
  3043. fi
  3044. rm -f conftest.err conftest.i conftest.$ac_ext
  3045. # OK, works on sane cases. Now check whether nonexistent headers
  3046. # can be detected and how.
  3047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3048. /* end confdefs.h. */
  3049. #include <ac_nonexistent.h>
  3050. _ACEOF
  3051. if ac_fn_c_try_cpp "$LINENO"; then :
  3052. # Broken: success on invalid input.
  3053. continue
  3054. else
  3055. # Passes both tests.
  3056. ac_preproc_ok=:
  3057. break
  3058. fi
  3059. rm -f conftest.err conftest.i conftest.$ac_ext
  3060. done
  3061. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3062. rm -f conftest.i conftest.err conftest.$ac_ext
  3063. if $ac_preproc_ok; then :
  3064. else
  3065. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3066. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3067. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3068. See \`config.log' for more details" "$LINENO" 5; }
  3069. fi
  3070. ac_ext=c
  3071. ac_cpp='$CPP $CPPFLAGS'
  3072. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3073. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3074. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3076. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3077. if ${ac_cv_path_GREP+:} false; then :
  3078. $as_echo_n "(cached) " >&6
  3079. else
  3080. if test -z "$GREP"; then
  3081. ac_path_GREP_found=false
  3082. # Loop through the user's path and test for each of PROGNAME-LIST
  3083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3084. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3085. do
  3086. IFS=$as_save_IFS
  3087. test -z "$as_dir" && as_dir=.
  3088. for ac_prog in grep ggrep; do
  3089. for ac_exec_ext in '' $ac_executable_extensions; do
  3090. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3091. as_fn_executable_p "$ac_path_GREP" || continue
  3092. # Check for GNU ac_path_GREP and select it if it is found.
  3093. # Check for GNU $ac_path_GREP
  3094. case `"$ac_path_GREP" --version 2>&1` in
  3095. *GNU*)
  3096. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3097. *)
  3098. ac_count=0
  3099. $as_echo_n 0123456789 >"conftest.in"
  3100. while :
  3101. do
  3102. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3103. mv "conftest.tmp" "conftest.in"
  3104. cp "conftest.in" "conftest.nl"
  3105. $as_echo 'GREP' >> "conftest.nl"
  3106. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3107. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3108. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3109. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3110. # Best one so far, save it but keep looking for a better one
  3111. ac_cv_path_GREP="$ac_path_GREP"
  3112. ac_path_GREP_max=$ac_count
  3113. fi
  3114. # 10*(2^10) chars as input seems more than enough
  3115. test $ac_count -gt 10 && break
  3116. done
  3117. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3118. esac
  3119. $ac_path_GREP_found && break 3
  3120. done
  3121. done
  3122. done
  3123. IFS=$as_save_IFS
  3124. if test -z "$ac_cv_path_GREP"; then
  3125. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3126. fi
  3127. else
  3128. ac_cv_path_GREP=$GREP
  3129. fi
  3130. fi
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3132. $as_echo "$ac_cv_path_GREP" >&6; }
  3133. GREP="$ac_cv_path_GREP"
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3135. $as_echo_n "checking for egrep... " >&6; }
  3136. if ${ac_cv_path_EGREP+:} false; then :
  3137. $as_echo_n "(cached) " >&6
  3138. else
  3139. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3140. then ac_cv_path_EGREP="$GREP -E"
  3141. else
  3142. if test -z "$EGREP"; then
  3143. ac_path_EGREP_found=false
  3144. # Loop through the user's path and test for each of PROGNAME-LIST
  3145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3146. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3147. do
  3148. IFS=$as_save_IFS
  3149. test -z "$as_dir" && as_dir=.
  3150. for ac_prog in egrep; do
  3151. for ac_exec_ext in '' $ac_executable_extensions; do
  3152. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3153. as_fn_executable_p "$ac_path_EGREP" || continue
  3154. # Check for GNU ac_path_EGREP and select it if it is found.
  3155. # Check for GNU $ac_path_EGREP
  3156. case `"$ac_path_EGREP" --version 2>&1` in
  3157. *GNU*)
  3158. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3159. *)
  3160. ac_count=0
  3161. $as_echo_n 0123456789 >"conftest.in"
  3162. while :
  3163. do
  3164. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3165. mv "conftest.tmp" "conftest.in"
  3166. cp "conftest.in" "conftest.nl"
  3167. $as_echo 'EGREP' >> "conftest.nl"
  3168. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3169. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3170. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3171. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3172. # Best one so far, save it but keep looking for a better one
  3173. ac_cv_path_EGREP="$ac_path_EGREP"
  3174. ac_path_EGREP_max=$ac_count
  3175. fi
  3176. # 10*(2^10) chars as input seems more than enough
  3177. test $ac_count -gt 10 && break
  3178. done
  3179. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3180. esac
  3181. $ac_path_EGREP_found && break 3
  3182. done
  3183. done
  3184. done
  3185. IFS=$as_save_IFS
  3186. if test -z "$ac_cv_path_EGREP"; then
  3187. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3188. fi
  3189. else
  3190. ac_cv_path_EGREP=$EGREP
  3191. fi
  3192. fi
  3193. fi
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3195. $as_echo "$ac_cv_path_EGREP" >&6; }
  3196. EGREP="$ac_cv_path_EGREP"
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3198. $as_echo_n "checking for ANSI C header files... " >&6; }
  3199. if ${ac_cv_header_stdc+:} false; then :
  3200. $as_echo_n "(cached) " >&6
  3201. else
  3202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3203. /* end confdefs.h. */
  3204. #include <stdlib.h>
  3205. #include <stdarg.h>
  3206. #include <string.h>
  3207. #include <float.h>
  3208. int
  3209. main ()
  3210. {
  3211. ;
  3212. return 0;
  3213. }
  3214. _ACEOF
  3215. if ac_fn_c_try_compile "$LINENO"; then :
  3216. ac_cv_header_stdc=yes
  3217. else
  3218. ac_cv_header_stdc=no
  3219. fi
  3220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3221. if test $ac_cv_header_stdc = yes; then
  3222. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3224. /* end confdefs.h. */
  3225. #include <string.h>
  3226. _ACEOF
  3227. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3228. $EGREP "memchr" >/dev/null 2>&1; then :
  3229. else
  3230. ac_cv_header_stdc=no
  3231. fi
  3232. rm -f conftest*
  3233. fi
  3234. if test $ac_cv_header_stdc = yes; then
  3235. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3237. /* end confdefs.h. */
  3238. #include <stdlib.h>
  3239. _ACEOF
  3240. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3241. $EGREP "free" >/dev/null 2>&1; then :
  3242. else
  3243. ac_cv_header_stdc=no
  3244. fi
  3245. rm -f conftest*
  3246. fi
  3247. if test $ac_cv_header_stdc = yes; then
  3248. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3249. if test "$cross_compiling" = yes; then :
  3250. :
  3251. else
  3252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3253. /* end confdefs.h. */
  3254. #include <ctype.h>
  3255. #include <stdlib.h>
  3256. #if ((' ' & 0x0FF) == 0x020)
  3257. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3258. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3259. #else
  3260. # define ISLOWER(c) \
  3261. (('a' <= (c) && (c) <= 'i') \
  3262. || ('j' <= (c) && (c) <= 'r') \
  3263. || ('s' <= (c) && (c) <= 'z'))
  3264. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3265. #endif
  3266. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3267. int
  3268. main ()
  3269. {
  3270. int i;
  3271. for (i = 0; i < 256; i++)
  3272. if (XOR (islower (i), ISLOWER (i))
  3273. || toupper (i) != TOUPPER (i))
  3274. return 2;
  3275. return 0;
  3276. }
  3277. _ACEOF
  3278. if ac_fn_c_try_run "$LINENO"; then :
  3279. else
  3280. ac_cv_header_stdc=no
  3281. fi
  3282. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3283. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3284. fi
  3285. fi
  3286. fi
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3288. $as_echo "$ac_cv_header_stdc" >&6; }
  3289. if test $ac_cv_header_stdc = yes; then
  3290. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3291. fi
  3292. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3293. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3294. inttypes.h stdint.h unistd.h
  3295. do :
  3296. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3297. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3298. "
  3299. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3300. cat >>confdefs.h <<_ACEOF
  3301. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3302. _ACEOF
  3303. fi
  3304. done
  3305. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3306. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3307. MINIX=yes
  3308. else
  3309. MINIX=
  3310. fi
  3311. if test "$MINIX" = yes; then
  3312. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3313. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3314. $as_echo "#define _MINIX 1" >>confdefs.h
  3315. fi
  3316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3317. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3318. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3319. $as_echo_n "(cached) " >&6
  3320. else
  3321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3322. /* end confdefs.h. */
  3323. # define __EXTENSIONS__ 1
  3324. $ac_includes_default
  3325. int
  3326. main ()
  3327. {
  3328. ;
  3329. return 0;
  3330. }
  3331. _ACEOF
  3332. if ac_fn_c_try_compile "$LINENO"; then :
  3333. ac_cv_safe_to_define___extensions__=yes
  3334. else
  3335. ac_cv_safe_to_define___extensions__=no
  3336. fi
  3337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3338. fi
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3340. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3341. test $ac_cv_safe_to_define___extensions__ = yes &&
  3342. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3343. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3344. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3345. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3346. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3347. #
  3348. # Memory managers
  3349. #
  3350. # Check whether --enable-manager was given.
  3351. if test "${enable_manager+set}" = set; then :
  3352. enableval=$enable_manager;
  3353. enable_manager="$enableval"
  3354. case $enableval in
  3355. "no");;
  3356. "builtin");;
  3357. "memwatch");;
  3358. "dmalloc");;
  3359. "gcollect");;
  3360. "bcheck");;
  3361. *) as_fn_error $? "unknown memory manager '$enableval'... stopping" "$LINENO" 5;;
  3362. esac
  3363. else
  3364. enable_manager="builtin"
  3365. fi
  3366. #
  3367. # packetver
  3368. #
  3369. # Check whether --enable-packetver was given.
  3370. if test "${enable_packetver+set}" = set; then :
  3371. enableval=$enable_packetver; enable_packetver="$enableval"
  3372. else
  3373. enable_packetver=""
  3374. fi
  3375. #
  3376. # debug
  3377. #
  3378. # Check whether --enable-debug was given.
  3379. if test "${enable_debug+set}" = set; then :
  3380. enableval=$enable_debug;
  3381. enable_debug="$enableval"
  3382. case $enableval in
  3383. "no");;
  3384. "yes");;
  3385. "gdb");;
  3386. *) as_fn_error $? "invalid argument --enable-debug=$enableval... stopping" "$LINENO" 5;;
  3387. esac
  3388. else
  3389. enable_debug="no"
  3390. fi
  3391. #
  3392. # renewal
  3393. #
  3394. # Check whether --enable-prere was given.
  3395. if test "${enable_prere+set}" = set; then :
  3396. enableval=$enable_prere;
  3397. enable_prere="$enableval"
  3398. case $enableval in
  3399. "no");;
  3400. "yes");;
  3401. *) as_fn_error $? "invalid argument --enable-prere=$enableval... stopping" "$LINENO" 5;;
  3402. esac
  3403. else
  3404. enable_prere="no"
  3405. fi
  3406. #
  3407. # VIP
  3408. #
  3409. # Check whether --enable-vip was given.
  3410. if test "${enable_vip+set}" = set; then :
  3411. enableval=$enable_vip;
  3412. enable_vip="$enableval"
  3413. case $enableval in
  3414. "no");;
  3415. "yes");;
  3416. *) as_fn_error $? "invalid argument --enable-vip=$enableval... stopping" "$LINENO" 5;;
  3417. esac
  3418. else
  3419. enable_vip="no"
  3420. fi
  3421. #
  3422. # warn
  3423. #
  3424. # Check whether --enable-warn was given.
  3425. if test "${enable_warn+set}" = set; then :
  3426. enableval=$enable_warn;
  3427. enable_warn="$enableval"
  3428. case $enableval in
  3429. "no");;
  3430. "yes");;
  3431. "extra");;
  3432. *) as_fn_error $? "invalid argument --enable-warn=$enableval... stopping" "$LINENO" 5;;
  3433. esac
  3434. else
  3435. enable_warn="no"
  3436. fi
  3437. #
  3438. # Buildbot
  3439. #
  3440. # Check whether --enable-buildbot was given.
  3441. if test "${enable_buildbot+set}" = set; then :
  3442. enableval=$enable_buildbot;
  3443. enable_buildbot="$enableval"
  3444. case $enableval in
  3445. "no");;
  3446. "yes");;
  3447. *) as_fn_error $? "invalid argument --enable-buildbot=$enableval... stopping" "$LINENO" 5;;
  3448. esac
  3449. else
  3450. enable_buildbot="no"
  3451. fi
  3452. #
  3453. # RDTSC as Tick Source
  3454. #
  3455. # Check whether --enable-rdtsc was given.
  3456. if test "${enable_rdtsc+set}" = set; then :
  3457. enableval=$enable_rdtsc;
  3458. enable_rdtsc=1
  3459. else
  3460. enable_rdtsc=0
  3461. fi
  3462. #
  3463. # Profiler
  3464. #
  3465. # Check whether --enable-profiler was given.
  3466. if test "${enable_profiler+set}" = set; then :
  3467. enableval=$enable_profiler;
  3468. enable_profiler="$enableval"
  3469. case $enableval in
  3470. "no");;
  3471. "gprof");;
  3472. *) as_fn_error $? "invalid argument --enable-profiler=$enableval... stopping" "$LINENO" 5;;
  3473. esac
  3474. else
  3475. enable_profiler="no"
  3476. fi
  3477. #
  3478. # 64bit
  3479. #
  3480. # Check whether --enable-64bit was given.
  3481. if test "${enable_64bit+set}" = set; then :
  3482. enableval=$enable_64bit;
  3483. enable_64bit="$enableval"
  3484. case $enableval in
  3485. "no");;
  3486. "yes");;
  3487. *) as_fn_error $? "invalid argument --enable-64bit=$enableval... stopping" "$LINENO" 5;;
  3488. esac
  3489. else
  3490. enable_64bit="yes"
  3491. fi
  3492. #
  3493. # LTO
  3494. #
  3495. # Check whether --enable-lto was given.
  3496. if test "${enable_lto+set}" = set; then :
  3497. enableval=$enable_lto;
  3498. enable_lto="$enableval"
  3499. case $enableval in
  3500. "no");;
  3501. "yes");;
  3502. *) as_fn_error $? "invalid argument --enable-lto=$disableval... stopping" "$LINENO" 5;;
  3503. esac
  3504. else
  3505. enable_lto="yes"
  3506. fi
  3507. #
  3508. # Optionally set the max number of network conenctions
  3509. # the core will be support
  3510. #
  3511. # Check whether --with-maxconn was given.
  3512. if test "${with_maxconn+set}" = set; then :
  3513. withval=$with_maxconn;
  3514. if test "$withval" == "no"; then
  3515. CPPFLAGS="$CPPFLAGS -DMAXCONN=16384"
  3516. else
  3517. if ! test "$withval" -ge 0 -o "$withval" -lt 0 2>&- ; then
  3518. as_fn_error $? "Invalid argument --with-maxconn=$withval ... stopping" "$LINENO" 5
  3519. else
  3520. CPPFLAGS="$CPPFLAGS -DMAXCONN=$withval"
  3521. fi
  3522. fi
  3523. else
  3524. CPPFLAGS="$CPPFLAGS -DMAXCONN=16384"
  3525. fi
  3526. #
  3527. # output bin name
  3528. #
  3529. # Check whether --with-outputlogin was given.
  3530. if test "${with_outputlogin+set}" = set; then :
  3531. withval=$with_outputlogin; output_login="$withval"
  3532. else
  3533. output_login="login-server"
  3534. fi
  3535. OLOG=$output_login
  3536. # Check whether --with-outputchar was given.
  3537. if test "${with_outputchar+set}" = set; then :
  3538. withval=$with_outputchar; output_char="$withval"
  3539. else
  3540. output_char="char-server"
  3541. fi
  3542. OCHR=$output_char
  3543. # Check whether --with-outputmap was given.
  3544. if test "${with_outputmap+set}" = set; then :
  3545. withval=$with_outputmap; output_map="$withval"
  3546. else
  3547. output_map="map-server"
  3548. fi
  3549. OMAP=$output_map
  3550. #
  3551. # Optionally specify the path to mysql_config
  3552. #
  3553. # Check whether --with-mysql was given.
  3554. if test "${with_mysql+set}" = set; then :
  3555. withval=$with_mysql;
  3556. if test "$withval" != "no" ; then
  3557. if test ! -x "$withval" ; then
  3558. as_fn_error $? "$withval is not an executable file" "$LINENO" 5
  3559. fi
  3560. MYSQL_CONFIG_HOME="$withval"
  3561. fi
  3562. fi
  3563. #
  3564. # Manual MYSQL_CFLAGS (optional)
  3565. #
  3566. # Check whether --with-MYSQL_CFLAGS was given.
  3567. if test "${with_MYSQL_CFLAGS+set}" = set; then :
  3568. withval=$with_MYSQL_CFLAGS;
  3569. manual_MYSQL_CFLAGS="yes"
  3570. MYSQL_CFLAGS="$withval"
  3571. else
  3572. manual_MYSQL_CFLAGS="no"
  3573. fi
  3574. #
  3575. # Manual MYSQL_LIBS (optional)
  3576. #
  3577. # Check whether --with-MYSQL_LIBS was given.
  3578. if test "${with_MYSQL_LIBS+set}" = set; then :
  3579. withval=$with_MYSQL_LIBS;
  3580. manual_MYSQL_LIBS="yes"
  3581. MYSQL_LIBS="$withval"
  3582. else
  3583. manual_MYSQL_LIBS="no"
  3584. fi
  3585. #
  3586. # Enable/disable PCRE and optionally specify the path (optional library)
  3587. #
  3588. # Check whether --with-pcre was given.
  3589. if test "${with_pcre+set}" = set; then :
  3590. withval=$with_pcre;
  3591. if test "$withval" = "no" ; then
  3592. want_pcre="no"
  3593. else
  3594. want_pcre="yes"
  3595. require_pcre="yes"
  3596. if test "$withval" != "yes" ; then
  3597. if test ! -d "$withval" ; then
  3598. as_fn_error $? "$withval is not a directoy" "$LINENO" 5
  3599. fi
  3600. PCRE_HOME="$withval"
  3601. fi
  3602. fi
  3603. else
  3604. want_pcre="yes" require_pcre="no"
  3605. fi
  3606. #
  3607. # Specify the path of the zlib library (required library)
  3608. #
  3609. # Check whether --with-zlib was given.
  3610. if test "${with_zlib+set}" = set; then :
  3611. withval=$with_zlib;
  3612. test -n "$withval" && ZLIB_HOME="$withval"
  3613. else
  3614. ZLIB_HOME=/usr/local
  3615. test ! -f "${ZLIB_HOME}/include/zlib.h" && ZLIB_HOME=/usr
  3616. fi
  3617. ###############################################################################
  3618. # Check for programs and types.
  3619. #
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3621. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3622. set x ${MAKE-make}
  3623. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3624. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3625. $as_echo_n "(cached) " >&6
  3626. else
  3627. cat >conftest.make <<\_ACEOF
  3628. SHELL = /bin/sh
  3629. all:
  3630. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3631. _ACEOF
  3632. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3633. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3634. *@@@%%%=?*=@@@%%%*)
  3635. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3636. *)
  3637. eval ac_cv_prog_make_${ac_make}_set=no;;
  3638. esac
  3639. rm -f conftest.make
  3640. fi
  3641. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3643. $as_echo "yes" >&6; }
  3644. SET_MAKE=
  3645. else
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3647. $as_echo "no" >&6; }
  3648. SET_MAKE="MAKE=${MAKE-make}"
  3649. fi
  3650. ac_ext=c
  3651. ac_cpp='$CPP $CPPFLAGS'
  3652. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3653. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3654. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3655. if test -n "$ac_tool_prefix"; then
  3656. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3657. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3659. $as_echo_n "checking for $ac_word... " >&6; }
  3660. if ${ac_cv_prog_CC+:} false; then :
  3661. $as_echo_n "(cached) " >&6
  3662. else
  3663. if test -n "$CC"; then
  3664. ac_cv_prog_CC="$CC" # Let the user override the test.
  3665. else
  3666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3667. for as_dir in $PATH
  3668. do
  3669. IFS=$as_save_IFS
  3670. test -z "$as_dir" && as_dir=.
  3671. for ac_exec_ext in '' $ac_executable_extensions; do
  3672. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3673. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3675. break 2
  3676. fi
  3677. done
  3678. done
  3679. IFS=$as_save_IFS
  3680. fi
  3681. fi
  3682. CC=$ac_cv_prog_CC
  3683. if test -n "$CC"; then
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3685. $as_echo "$CC" >&6; }
  3686. else
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3688. $as_echo "no" >&6; }
  3689. fi
  3690. fi
  3691. if test -z "$ac_cv_prog_CC"; then
  3692. ac_ct_CC=$CC
  3693. # Extract the first word of "gcc", so it can be a program name with args.
  3694. set dummy gcc; ac_word=$2
  3695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3696. $as_echo_n "checking for $ac_word... " >&6; }
  3697. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3698. $as_echo_n "(cached) " >&6
  3699. else
  3700. if test -n "$ac_ct_CC"; then
  3701. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3702. else
  3703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3704. for as_dir in $PATH
  3705. do
  3706. IFS=$as_save_IFS
  3707. test -z "$as_dir" && as_dir=.
  3708. for ac_exec_ext in '' $ac_executable_extensions; do
  3709. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3710. ac_cv_prog_ac_ct_CC="gcc"
  3711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3712. break 2
  3713. fi
  3714. done
  3715. done
  3716. IFS=$as_save_IFS
  3717. fi
  3718. fi
  3719. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3720. if test -n "$ac_ct_CC"; then
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3722. $as_echo "$ac_ct_CC" >&6; }
  3723. else
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3725. $as_echo "no" >&6; }
  3726. fi
  3727. if test "x$ac_ct_CC" = x; then
  3728. CC=""
  3729. else
  3730. case $cross_compiling:$ac_tool_warned in
  3731. yes:)
  3732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3733. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3734. ac_tool_warned=yes ;;
  3735. esac
  3736. CC=$ac_ct_CC
  3737. fi
  3738. else
  3739. CC="$ac_cv_prog_CC"
  3740. fi
  3741. if test -z "$CC"; then
  3742. if test -n "$ac_tool_prefix"; then
  3743. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3744. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3746. $as_echo_n "checking for $ac_word... " >&6; }
  3747. if ${ac_cv_prog_CC+:} false; then :
  3748. $as_echo_n "(cached) " >&6
  3749. else
  3750. if test -n "$CC"; then
  3751. ac_cv_prog_CC="$CC" # Let the user override the test.
  3752. else
  3753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3754. for as_dir in $PATH
  3755. do
  3756. IFS=$as_save_IFS
  3757. test -z "$as_dir" && as_dir=.
  3758. for ac_exec_ext in '' $ac_executable_extensions; do
  3759. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3760. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3762. break 2
  3763. fi
  3764. done
  3765. done
  3766. IFS=$as_save_IFS
  3767. fi
  3768. fi
  3769. CC=$ac_cv_prog_CC
  3770. if test -n "$CC"; then
  3771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3772. $as_echo "$CC" >&6; }
  3773. else
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3775. $as_echo "no" >&6; }
  3776. fi
  3777. fi
  3778. fi
  3779. if test -z "$CC"; then
  3780. # Extract the first word of "cc", so it can be a program name with args.
  3781. set dummy cc; ac_word=$2
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3783. $as_echo_n "checking for $ac_word... " >&6; }
  3784. if ${ac_cv_prog_CC+:} false; then :
  3785. $as_echo_n "(cached) " >&6
  3786. else
  3787. if test -n "$CC"; then
  3788. ac_cv_prog_CC="$CC" # Let the user override the test.
  3789. else
  3790. ac_prog_rejected=no
  3791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3792. for as_dir in $PATH
  3793. do
  3794. IFS=$as_save_IFS
  3795. test -z "$as_dir" && as_dir=.
  3796. for ac_exec_ext in '' $ac_executable_extensions; do
  3797. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3798. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3799. ac_prog_rejected=yes
  3800. continue
  3801. fi
  3802. ac_cv_prog_CC="cc"
  3803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3804. break 2
  3805. fi
  3806. done
  3807. done
  3808. IFS=$as_save_IFS
  3809. if test $ac_prog_rejected = yes; then
  3810. # We found a bogon in the path, so make sure we never use it.
  3811. set dummy $ac_cv_prog_CC
  3812. shift
  3813. if test $# != 0; then
  3814. # We chose a different compiler from the bogus one.
  3815. # However, it has the same basename, so the bogon will be chosen
  3816. # first if we set CC to just the basename; use the full file name.
  3817. shift
  3818. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3819. fi
  3820. fi
  3821. fi
  3822. fi
  3823. CC=$ac_cv_prog_CC
  3824. if test -n "$CC"; then
  3825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3826. $as_echo "$CC" >&6; }
  3827. else
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3829. $as_echo "no" >&6; }
  3830. fi
  3831. fi
  3832. if test -z "$CC"; then
  3833. if test -n "$ac_tool_prefix"; then
  3834. for ac_prog in cl.exe
  3835. do
  3836. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3837. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3839. $as_echo_n "checking for $ac_word... " >&6; }
  3840. if ${ac_cv_prog_CC+:} false; then :
  3841. $as_echo_n "(cached) " >&6
  3842. else
  3843. if test -n "$CC"; then
  3844. ac_cv_prog_CC="$CC" # Let the user override the test.
  3845. else
  3846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3847. for as_dir in $PATH
  3848. do
  3849. IFS=$as_save_IFS
  3850. test -z "$as_dir" && as_dir=.
  3851. for ac_exec_ext in '' $ac_executable_extensions; do
  3852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3853. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3855. break 2
  3856. fi
  3857. done
  3858. done
  3859. IFS=$as_save_IFS
  3860. fi
  3861. fi
  3862. CC=$ac_cv_prog_CC
  3863. if test -n "$CC"; then
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3865. $as_echo "$CC" >&6; }
  3866. else
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3868. $as_echo "no" >&6; }
  3869. fi
  3870. test -n "$CC" && break
  3871. done
  3872. fi
  3873. if test -z "$CC"; then
  3874. ac_ct_CC=$CC
  3875. for ac_prog in cl.exe
  3876. do
  3877. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3878. set dummy $ac_prog; ac_word=$2
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3880. $as_echo_n "checking for $ac_word... " >&6; }
  3881. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3882. $as_echo_n "(cached) " >&6
  3883. else
  3884. if test -n "$ac_ct_CC"; then
  3885. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3886. else
  3887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3888. for as_dir in $PATH
  3889. do
  3890. IFS=$as_save_IFS
  3891. test -z "$as_dir" && as_dir=.
  3892. for ac_exec_ext in '' $ac_executable_extensions; do
  3893. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3894. ac_cv_prog_ac_ct_CC="$ac_prog"
  3895. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3896. break 2
  3897. fi
  3898. done
  3899. done
  3900. IFS=$as_save_IFS
  3901. fi
  3902. fi
  3903. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3904. if test -n "$ac_ct_CC"; then
  3905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3906. $as_echo "$ac_ct_CC" >&6; }
  3907. else
  3908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3909. $as_echo "no" >&6; }
  3910. fi
  3911. test -n "$ac_ct_CC" && break
  3912. done
  3913. if test "x$ac_ct_CC" = x; then
  3914. CC=""
  3915. else
  3916. case $cross_compiling:$ac_tool_warned in
  3917. yes:)
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3919. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3920. ac_tool_warned=yes ;;
  3921. esac
  3922. CC=$ac_ct_CC
  3923. fi
  3924. fi
  3925. fi
  3926. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3927. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3928. as_fn_error $? "no acceptable C compiler found in \$PATH
  3929. See \`config.log' for more details" "$LINENO" 5; }
  3930. # Provide some information about the compiler.
  3931. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3932. set X $ac_compile
  3933. ac_compiler=$2
  3934. for ac_option in --version -v -V -qversion; do
  3935. { { ac_try="$ac_compiler $ac_option >&5"
  3936. case "(($ac_try" in
  3937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3938. *) ac_try_echo=$ac_try;;
  3939. esac
  3940. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3941. $as_echo "$ac_try_echo"; } >&5
  3942. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3943. ac_status=$?
  3944. if test -s conftest.err; then
  3945. sed '10a\
  3946. ... rest of stderr output deleted ...
  3947. 10q' conftest.err >conftest.er1
  3948. cat conftest.er1 >&5
  3949. fi
  3950. rm -f conftest.er1 conftest.err
  3951. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3952. test $ac_status = 0; }
  3953. done
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3955. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3956. if ${ac_cv_c_compiler_gnu+:} false; then :
  3957. $as_echo_n "(cached) " >&6
  3958. else
  3959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3960. /* end confdefs.h. */
  3961. int
  3962. main ()
  3963. {
  3964. #ifndef __GNUC__
  3965. choke me
  3966. #endif
  3967. ;
  3968. return 0;
  3969. }
  3970. _ACEOF
  3971. if ac_fn_c_try_compile "$LINENO"; then :
  3972. ac_compiler_gnu=yes
  3973. else
  3974. ac_compiler_gnu=no
  3975. fi
  3976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3977. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3978. fi
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3980. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3981. if test $ac_compiler_gnu = yes; then
  3982. GCC=yes
  3983. else
  3984. GCC=
  3985. fi
  3986. ac_test_CFLAGS=${CFLAGS+set}
  3987. ac_save_CFLAGS=$CFLAGS
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3989. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3990. if ${ac_cv_prog_cc_g+:} false; then :
  3991. $as_echo_n "(cached) " >&6
  3992. else
  3993. ac_save_c_werror_flag=$ac_c_werror_flag
  3994. ac_c_werror_flag=yes
  3995. ac_cv_prog_cc_g=no
  3996. CFLAGS="-g"
  3997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3998. /* end confdefs.h. */
  3999. int
  4000. main ()
  4001. {
  4002. ;
  4003. return 0;
  4004. }
  4005. _ACEOF
  4006. if ac_fn_c_try_compile "$LINENO"; then :
  4007. ac_cv_prog_cc_g=yes
  4008. else
  4009. CFLAGS=""
  4010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4011. /* end confdefs.h. */
  4012. int
  4013. main ()
  4014. {
  4015. ;
  4016. return 0;
  4017. }
  4018. _ACEOF
  4019. if ac_fn_c_try_compile "$LINENO"; then :
  4020. else
  4021. ac_c_werror_flag=$ac_save_c_werror_flag
  4022. CFLAGS="-g"
  4023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4024. /* end confdefs.h. */
  4025. int
  4026. main ()
  4027. {
  4028. ;
  4029. return 0;
  4030. }
  4031. _ACEOF
  4032. if ac_fn_c_try_compile "$LINENO"; then :
  4033. ac_cv_prog_cc_g=yes
  4034. fi
  4035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4036. fi
  4037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4038. fi
  4039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4040. ac_c_werror_flag=$ac_save_c_werror_flag
  4041. fi
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4043. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4044. if test "$ac_test_CFLAGS" = set; then
  4045. CFLAGS=$ac_save_CFLAGS
  4046. elif test $ac_cv_prog_cc_g = yes; then
  4047. if test "$GCC" = yes; then
  4048. CFLAGS="-g -O2"
  4049. else
  4050. CFLAGS="-g"
  4051. fi
  4052. else
  4053. if test "$GCC" = yes; then
  4054. CFLAGS="-O2"
  4055. else
  4056. CFLAGS=
  4057. fi
  4058. fi
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4060. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4061. if ${ac_cv_prog_cc_c89+:} false; then :
  4062. $as_echo_n "(cached) " >&6
  4063. else
  4064. ac_cv_prog_cc_c89=no
  4065. ac_save_CC=$CC
  4066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4067. /* end confdefs.h. */
  4068. #include <stdarg.h>
  4069. #include <stdio.h>
  4070. struct stat;
  4071. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4072. struct buf { int x; };
  4073. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4074. static char *e (p, i)
  4075. char **p;
  4076. int i;
  4077. {
  4078. return p[i];
  4079. }
  4080. static char *f (char * (*g) (char **, int), char **p, ...)
  4081. {
  4082. char *s;
  4083. va_list v;
  4084. va_start (v,p);
  4085. s = g (p, va_arg (v,int));
  4086. va_end (v);
  4087. return s;
  4088. }
  4089. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4090. function prototypes and stuff, but not '\xHH' hex character constants.
  4091. These don't provoke an error unfortunately, instead are silently treated
  4092. as 'x'. The following induces an error, until -std is added to get
  4093. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4094. array size at least. It's necessary to write '\x00'==0 to get something
  4095. that's true only with -std. */
  4096. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4097. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4098. inside strings and character constants. */
  4099. #define FOO(x) 'x'
  4100. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4101. int test (int i, double x);
  4102. struct s1 {int (*f) (int a);};
  4103. struct s2 {int (*f) (double a);};
  4104. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4105. int argc;
  4106. char **argv;
  4107. int
  4108. main ()
  4109. {
  4110. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4111. ;
  4112. return 0;
  4113. }
  4114. _ACEOF
  4115. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4116. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4117. do
  4118. CC="$ac_save_CC $ac_arg"
  4119. if ac_fn_c_try_compile "$LINENO"; then :
  4120. ac_cv_prog_cc_c89=$ac_arg
  4121. fi
  4122. rm -f core conftest.err conftest.$ac_objext
  4123. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4124. done
  4125. rm -f conftest.$ac_ext
  4126. CC=$ac_save_CC
  4127. fi
  4128. # AC_CACHE_VAL
  4129. case "x$ac_cv_prog_cc_c89" in
  4130. x)
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4132. $as_echo "none needed" >&6; } ;;
  4133. xno)
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4135. $as_echo "unsupported" >&6; } ;;
  4136. *)
  4137. CC="$CC $ac_cv_prog_cc_c89"
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4139. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4140. esac
  4141. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4142. fi
  4143. ac_ext=c
  4144. ac_cpp='$CPP $CPPFLAGS'
  4145. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4146. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4147. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4148. ac_ext=cpp
  4149. ac_cpp='$CXXCPP $CPPFLAGS'
  4150. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4151. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4152. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4153. if test -z "$CXX"; then
  4154. if test -n "$CCC"; then
  4155. CXX=$CCC
  4156. else
  4157. if test -n "$ac_tool_prefix"; then
  4158. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4159. do
  4160. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4161. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4163. $as_echo_n "checking for $ac_word... " >&6; }
  4164. if ${ac_cv_prog_CXX+:} false; then :
  4165. $as_echo_n "(cached) " >&6
  4166. else
  4167. if test -n "$CXX"; then
  4168. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4169. else
  4170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4171. for as_dir in $PATH
  4172. do
  4173. IFS=$as_save_IFS
  4174. test -z "$as_dir" && as_dir=.
  4175. for ac_exec_ext in '' $ac_executable_extensions; do
  4176. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4177. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4179. break 2
  4180. fi
  4181. done
  4182. done
  4183. IFS=$as_save_IFS
  4184. fi
  4185. fi
  4186. CXX=$ac_cv_prog_CXX
  4187. if test -n "$CXX"; then
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4189. $as_echo "$CXX" >&6; }
  4190. else
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4192. $as_echo "no" >&6; }
  4193. fi
  4194. test -n "$CXX" && break
  4195. done
  4196. fi
  4197. if test -z "$CXX"; then
  4198. ac_ct_CXX=$CXX
  4199. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4200. do
  4201. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4202. set dummy $ac_prog; ac_word=$2
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4204. $as_echo_n "checking for $ac_word... " >&6; }
  4205. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4206. $as_echo_n "(cached) " >&6
  4207. else
  4208. if test -n "$ac_ct_CXX"; then
  4209. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4210. else
  4211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4212. for as_dir in $PATH
  4213. do
  4214. IFS=$as_save_IFS
  4215. test -z "$as_dir" && as_dir=.
  4216. for ac_exec_ext in '' $ac_executable_extensions; do
  4217. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4218. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4220. break 2
  4221. fi
  4222. done
  4223. done
  4224. IFS=$as_save_IFS
  4225. fi
  4226. fi
  4227. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4228. if test -n "$ac_ct_CXX"; then
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4230. $as_echo "$ac_ct_CXX" >&6; }
  4231. else
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4233. $as_echo "no" >&6; }
  4234. fi
  4235. test -n "$ac_ct_CXX" && break
  4236. done
  4237. if test "x$ac_ct_CXX" = x; then
  4238. CXX="g++"
  4239. else
  4240. case $cross_compiling:$ac_tool_warned in
  4241. yes:)
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4243. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4244. ac_tool_warned=yes ;;
  4245. esac
  4246. CXX=$ac_ct_CXX
  4247. fi
  4248. fi
  4249. fi
  4250. fi
  4251. # Provide some information about the compiler.
  4252. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4253. set X $ac_compile
  4254. ac_compiler=$2
  4255. for ac_option in --version -v -V -qversion; do
  4256. { { ac_try="$ac_compiler $ac_option >&5"
  4257. case "(($ac_try" in
  4258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4259. *) ac_try_echo=$ac_try;;
  4260. esac
  4261. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4262. $as_echo "$ac_try_echo"; } >&5
  4263. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4264. ac_status=$?
  4265. if test -s conftest.err; then
  4266. sed '10a\
  4267. ... rest of stderr output deleted ...
  4268. 10q' conftest.err >conftest.er1
  4269. cat conftest.er1 >&5
  4270. fi
  4271. rm -f conftest.er1 conftest.err
  4272. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4273. test $ac_status = 0; }
  4274. done
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4276. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4277. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4278. $as_echo_n "(cached) " >&6
  4279. else
  4280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4281. /* end confdefs.h. */
  4282. int
  4283. main ()
  4284. {
  4285. #ifndef __GNUC__
  4286. choke me
  4287. #endif
  4288. ;
  4289. return 0;
  4290. }
  4291. _ACEOF
  4292. if ac_fn_cxx_try_compile "$LINENO"; then :
  4293. ac_compiler_gnu=yes
  4294. else
  4295. ac_compiler_gnu=no
  4296. fi
  4297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4298. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4299. fi
  4300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4301. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4302. if test $ac_compiler_gnu = yes; then
  4303. GXX=yes
  4304. else
  4305. GXX=
  4306. fi
  4307. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4308. ac_save_CXXFLAGS=$CXXFLAGS
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4310. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4311. if ${ac_cv_prog_cxx_g+:} false; then :
  4312. $as_echo_n "(cached) " >&6
  4313. else
  4314. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4315. ac_cxx_werror_flag=yes
  4316. ac_cv_prog_cxx_g=no
  4317. CXXFLAGS="-g"
  4318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4319. /* end confdefs.h. */
  4320. int
  4321. main ()
  4322. {
  4323. ;
  4324. return 0;
  4325. }
  4326. _ACEOF
  4327. if ac_fn_cxx_try_compile "$LINENO"; then :
  4328. ac_cv_prog_cxx_g=yes
  4329. else
  4330. CXXFLAGS=""
  4331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4332. /* end confdefs.h. */
  4333. int
  4334. main ()
  4335. {
  4336. ;
  4337. return 0;
  4338. }
  4339. _ACEOF
  4340. if ac_fn_cxx_try_compile "$LINENO"; then :
  4341. else
  4342. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4343. CXXFLAGS="-g"
  4344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4345. /* end confdefs.h. */
  4346. int
  4347. main ()
  4348. {
  4349. ;
  4350. return 0;
  4351. }
  4352. _ACEOF
  4353. if ac_fn_cxx_try_compile "$LINENO"; then :
  4354. ac_cv_prog_cxx_g=yes
  4355. fi
  4356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4357. fi
  4358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4359. fi
  4360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4361. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4362. fi
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4364. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4365. if test "$ac_test_CXXFLAGS" = set; then
  4366. CXXFLAGS=$ac_save_CXXFLAGS
  4367. elif test $ac_cv_prog_cxx_g = yes; then
  4368. if test "$GXX" = yes; then
  4369. CXXFLAGS="-g -O2"
  4370. else
  4371. CXXFLAGS="-g"
  4372. fi
  4373. else
  4374. if test "$GXX" = yes; then
  4375. CXXFLAGS="-O2"
  4376. else
  4377. CXXFLAGS=
  4378. fi
  4379. fi
  4380. ac_ext=c
  4381. ac_cpp='$CPP $CPPFLAGS'
  4382. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4383. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4384. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4385. # Extract the first word of "ar", so it can be a program name with args.
  4386. set dummy ar; ac_word=$2
  4387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4388. $as_echo_n "checking for $ac_word... " >&6; }
  4389. if ${ac_cv_path_AR+:} false; then :
  4390. $as_echo_n "(cached) " >&6
  4391. else
  4392. case $AR in
  4393. [\\/]* | ?:[\\/]*)
  4394. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  4395. ;;
  4396. *)
  4397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4398. for as_dir in $PATH
  4399. do
  4400. IFS=$as_save_IFS
  4401. test -z "$as_dir" && as_dir=.
  4402. for ac_exec_ext in '' $ac_executable_extensions; do
  4403. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4404. ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  4405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4406. break 2
  4407. fi
  4408. done
  4409. done
  4410. IFS=$as_save_IFS
  4411. ;;
  4412. esac
  4413. fi
  4414. AR=$ac_cv_path_AR
  4415. if test -n "$AR"; then
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4417. $as_echo "$AR" >&6; }
  4418. else
  4419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4420. $as_echo "no" >&6; }
  4421. fi
  4422. ac_ext=cpp
  4423. ac_cpp='$CXXCPP $CPPFLAGS'
  4424. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4425. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4426. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4427. CFLAGS="$CFLAGS -pipe -ffast-math -Wall"
  4428. CPPFLAGS="$CPPFLAGS -I../common"
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4430. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4431. if ${ac_cv_c_bigendian+:} false; then :
  4432. $as_echo_n "(cached) " >&6
  4433. else
  4434. ac_cv_c_bigendian=unknown
  4435. # See if we're dealing with a universal compiler.
  4436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4437. /* end confdefs.h. */
  4438. #ifndef __APPLE_CC__
  4439. not a universal capable compiler
  4440. #endif
  4441. typedef int dummy;
  4442. _ACEOF
  4443. if ac_fn_cxx_try_compile "$LINENO"; then :
  4444. # Check for potential -arch flags. It is not universal unless
  4445. # there are at least two -arch flags with different values.
  4446. ac_arch=
  4447. ac_prev=
  4448. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4449. if test -n "$ac_prev"; then
  4450. case $ac_word in
  4451. i?86 | x86_64 | ppc | ppc64)
  4452. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4453. ac_arch=$ac_word
  4454. else
  4455. ac_cv_c_bigendian=universal
  4456. break
  4457. fi
  4458. ;;
  4459. esac
  4460. ac_prev=
  4461. elif test "x$ac_word" = "x-arch"; then
  4462. ac_prev=arch
  4463. fi
  4464. done
  4465. fi
  4466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4467. if test $ac_cv_c_bigendian = unknown; then
  4468. # See if sys/param.h defines the BYTE_ORDER macro.
  4469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4470. /* end confdefs.h. */
  4471. #include <sys/types.h>
  4472. #include <sys/param.h>
  4473. int
  4474. main ()
  4475. {
  4476. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4477. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4478. && LITTLE_ENDIAN)
  4479. bogus endian macros
  4480. #endif
  4481. ;
  4482. return 0;
  4483. }
  4484. _ACEOF
  4485. if ac_fn_cxx_try_compile "$LINENO"; then :
  4486. # It does; now see whether it defined to BIG_ENDIAN or not.
  4487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4488. /* end confdefs.h. */
  4489. #include <sys/types.h>
  4490. #include <sys/param.h>
  4491. int
  4492. main ()
  4493. {
  4494. #if BYTE_ORDER != BIG_ENDIAN
  4495. not big endian
  4496. #endif
  4497. ;
  4498. return 0;
  4499. }
  4500. _ACEOF
  4501. if ac_fn_cxx_try_compile "$LINENO"; then :
  4502. ac_cv_c_bigendian=yes
  4503. else
  4504. ac_cv_c_bigendian=no
  4505. fi
  4506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4507. fi
  4508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4509. fi
  4510. if test $ac_cv_c_bigendian = unknown; then
  4511. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4513. /* end confdefs.h. */
  4514. #include <limits.h>
  4515. int
  4516. main ()
  4517. {
  4518. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4519. bogus endian macros
  4520. #endif
  4521. ;
  4522. return 0;
  4523. }
  4524. _ACEOF
  4525. if ac_fn_cxx_try_compile "$LINENO"; then :
  4526. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4528. /* end confdefs.h. */
  4529. #include <limits.h>
  4530. int
  4531. main ()
  4532. {
  4533. #ifndef _BIG_ENDIAN
  4534. not big endian
  4535. #endif
  4536. ;
  4537. return 0;
  4538. }
  4539. _ACEOF
  4540. if ac_fn_cxx_try_compile "$LINENO"; then :
  4541. ac_cv_c_bigendian=yes
  4542. else
  4543. ac_cv_c_bigendian=no
  4544. fi
  4545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4546. fi
  4547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4548. fi
  4549. if test $ac_cv_c_bigendian = unknown; then
  4550. # Compile a test program.
  4551. if test "$cross_compiling" = yes; then :
  4552. # Try to guess by grepping values from an object file.
  4553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4554. /* end confdefs.h. */
  4555. short int ascii_mm[] =
  4556. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4557. short int ascii_ii[] =
  4558. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4559. int use_ascii (int i) {
  4560. return ascii_mm[i] + ascii_ii[i];
  4561. }
  4562. short int ebcdic_ii[] =
  4563. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4564. short int ebcdic_mm[] =
  4565. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4566. int use_ebcdic (int i) {
  4567. return ebcdic_mm[i] + ebcdic_ii[i];
  4568. }
  4569. extern int foo;
  4570. int
  4571. main ()
  4572. {
  4573. return use_ascii (foo) == use_ebcdic (foo);
  4574. ;
  4575. return 0;
  4576. }
  4577. _ACEOF
  4578. if ac_fn_cxx_try_compile "$LINENO"; then :
  4579. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4580. ac_cv_c_bigendian=yes
  4581. fi
  4582. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4583. if test "$ac_cv_c_bigendian" = unknown; then
  4584. ac_cv_c_bigendian=no
  4585. else
  4586. # finding both strings is unlikely to happen, but who knows?
  4587. ac_cv_c_bigendian=unknown
  4588. fi
  4589. fi
  4590. fi
  4591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4592. else
  4593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4594. /* end confdefs.h. */
  4595. $ac_includes_default
  4596. int
  4597. main ()
  4598. {
  4599. /* Are we little or big endian? From Harbison&Steele. */
  4600. union
  4601. {
  4602. long int l;
  4603. char c[sizeof (long int)];
  4604. } u;
  4605. u.l = 1;
  4606. return u.c[sizeof (long int) - 1] == 1;
  4607. ;
  4608. return 0;
  4609. }
  4610. _ACEOF
  4611. if ac_fn_cxx_try_run "$LINENO"; then :
  4612. ac_cv_c_bigendian=no
  4613. else
  4614. ac_cv_c_bigendian=yes
  4615. fi
  4616. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4617. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4618. fi
  4619. fi
  4620. fi
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4622. $as_echo "$ac_cv_c_bigendian" >&6; }
  4623. case $ac_cv_c_bigendian in #(
  4624. yes)
  4625. as_fn_error $? "bigendian is not supported... stopping" "$LINENO" 5;; #(
  4626. no)
  4627. ;; #(
  4628. universal)
  4629. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4630. ;; #(
  4631. *)
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to determine endianess, only little endian is supported" >&5
  4633. $as_echo "$as_me: WARNING: unable to determine endianess, only little endian is supported" >&2;}
  4634. ;;
  4635. esac
  4636. if test "$enable_64bit" = "no" ; then
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pointers can be stored in ints (old code)" >&5
  4638. $as_echo_n "checking whether pointers can be stored in ints (old code)... " >&6; }
  4639. pointers_fit_in_ints="no"
  4640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4641. /* end confdefs.h. */
  4642. static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void*)) ? 1 : -1];
  4643. int
  4644. main ()
  4645. {
  4646. ;
  4647. return 0;
  4648. }
  4649. _ACEOF
  4650. if ac_fn_cxx_try_compile "$LINENO"; then :
  4651. pointers_fit_in_ints="yes"
  4652. fi
  4653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4654. if test "$pointers_fit_in_ints" = "no" ; then
  4655. CFLAGS="$CFLAGS -m32"
  4656. LDFLAGS="$LDFLAGS -m32"
  4657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4658. /* end confdefs.h. */
  4659. static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void *)) ? 1 : -1];
  4660. int
  4661. main ()
  4662. {
  4663. ;
  4664. return 0;
  4665. }
  4666. _ACEOF
  4667. if ac_fn_cxx_try_compile "$LINENO"; then :
  4668. pointers_fit_in_ints="yes (with -m32)"
  4669. fi
  4670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4671. fi
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pointers_fit_in_ints" >&5
  4673. $as_echo "$pointers_fit_in_ints" >&6; }
  4674. if test "$pointers_fit_in_ints" = "no" ; then
  4675. as_fn_error $? "pointers cannot be stored in ints, required for old code... stopping" "$LINENO" 5
  4676. fi
  4677. fi
  4678. #
  4679. # check if we're producing 32bit code - so well produce binarys for at least i686 (speedup: cmovs, and cmpchg8 support)
  4680. #
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC produces 32bit code" >&5
  4682. $as_echo_n "checking whether $CC produces 32bit code... " >&6; }
  4683. if test "$cross_compiling" = yes; then :
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: guessing no" >&5
  4685. $as_echo "guessing no" >&6; }
  4686. else
  4687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4688. /* end confdefs.h. */
  4689. int main(int argc, char **argv){
  4690. if(sizeof(void*) == 4) return 0;
  4691. else return 1;
  4692. }
  4693. _ACEOF
  4694. if ac_fn_cxx_try_run "$LINENO"; then :
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4696. $as_echo "yes" >&6; }
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -march=i686 (and we can run it)" >&5
  4698. $as_echo_n "checking whether $CC supports -march=i686 (and we can run it)... " >&6; }
  4699. OLD_CFLAGS="$CFLAGS"
  4700. OLD_LDFLAGS="$LDFLAGS"
  4701. CFLAGS="$CFLAGS -march=i686"
  4702. LDFLAGS="$LDFLAGS -march=i686"
  4703. if test "$cross_compiling" = yes; then :
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: guessing no" >&5
  4705. $as_echo "guessing no" >&6; }
  4706. CFLAGS="$OLD_CFLAGS"
  4707. LDFLAGS="$OLD_LDFLAGS"
  4708. else
  4709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4710. /* end confdefs.h. */
  4711. int main(int argc, char **argv) { return 0; }
  4712. _ACEOF
  4713. if ac_fn_cxx_try_run "$LINENO"; then :
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4715. $as_echo "yes" >&6; }
  4716. else
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4718. $as_echo "no" >&6; }
  4719. CFLAGS="$OLD_CFLAGS"
  4720. LDFLAGS="$OLD_LDFLAGS"
  4721. fi
  4722. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4723. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4724. fi
  4725. else
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4727. $as_echo "no" >&6; }
  4728. fi
  4729. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4730. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4731. fi
  4732. #
  4733. # Check if CC supports __thread attribute (Thread Local Storage)
  4734. # (Usually our OSX friends 're lacking support of it in older llvm versions ..)
  4735. #
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __thread specifier (TLS)" >&5
  4737. $as_echo_n "checking whether $CC supports __thread specifier (TLS)... " >&6; }
  4738. if test "$cross_compiling" = yes; then :
  4739. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4740. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4741. as_fn_error $? "cannot run test program while cross compiling
  4742. See \`config.log' for more details" "$LINENO" 5; }
  4743. else
  4744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4745. /* end confdefs.h. */
  4746. __thread int g_Test = -1;
  4747. int main(int argc, char **argv){
  4748. g_Test = 0;
  4749. return g_Test;
  4750. }
  4751. _ACEOF
  4752. if ac_fn_cxx_try_run "$LINENO"; then :
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4754. $as_echo "yes" >&6; }
  4755. CPPFLAGS="$CPPFLAGS -DHAS_TLS"
  4756. else
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4758. $as_echo "no" >&6; }
  4759. fi
  4760. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4761. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4762. fi
  4763. #
  4764. # LTO Support test
  4765. #
  4766. if test "$enable_lto" != "no" ; then
  4767. OPT_LTO_AR=""
  4768. OPT_LTO=""
  4769. OLD_CFLAGS="$CFLAGS"
  4770. CFLAGS="$CFLAGS -flto -fuse-linker-plugin -ffat-lto-objects"
  4771. OLD_LDFLAGS="$LDFLAGS"
  4772. LDFLAGS="$LDFLAGS -flto -fuse-linker-plugin -ffat-lto-objects"
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ffat-lto-objects" >&5
  4774. $as_echo_n "checking whether $CC supports -ffat-lto-objects... " >&6; }
  4775. if test "$cross_compiling" = yes; then :
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: guessing no" >&5
  4777. $as_echo "guessing no" >&6; }
  4778. else
  4779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4780. /* end confdefs.h. */
  4781. int main(int argc, char **argv){
  4782. return 0;
  4783. }
  4784. _ACEOF
  4785. if ac_fn_cxx_try_run "$LINENO"; then :
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4787. $as_echo "yes" >&6; }
  4788. OPT_LTO_AR="-ffat-lto-objects"
  4789. else
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4791. $as_echo "no" >&6; }
  4792. fi
  4793. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4794. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4795. fi
  4796. CFLAGS="$OLD_CFLAGS"
  4797. LDFLAGS="$OLD_LDFLAGS"
  4798. CFLAGS="$CFLAGS -flto -fuse-linker-plugin"
  4799. LDFLAGS="$LDFLAGS -flto -fuse-linker-plugin"
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -flto -fuse-linker-plugin" >&5
  4801. $as_echo_n "checking whether $CC supports -flto -fuse-linker-plugin... " >&6; }
  4802. if test "$cross_compiling" = yes; then :
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: guessing no" >&5
  4804. $as_echo "guessing no" >&6; }
  4805. else
  4806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4807. /* end confdefs.h. */
  4808. int main(int argc, char **argv){
  4809. return 0;
  4810. }
  4811. _ACEOF
  4812. if ac_fn_cxx_try_run "$LINENO"; then :
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4814. $as_echo "yes" >&6; }
  4815. OPT_LTO_AR="-flto -fuse-linker-plugin $OPT_LTO_AR"
  4816. OPT_LTO="-flto -fuse-linker-plugin"
  4817. else
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4819. $as_echo "no" >&6; }
  4820. fi
  4821. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4822. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4823. fi
  4824. CFLAGS="$OLD_CFLAGS"
  4825. LDFLAGS="$OLD_LDFLAGS"
  4826. fi
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-unused-parameter" >&5
  4828. $as_echo_n "checking whether $CC supports -Wno-unused-parameter... " >&6; }
  4829. OLD_CFLAGS="$CFLAGS"
  4830. CFLAGS="$CFLAGS -Werror -Wno-unused-parameter"
  4831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4832. /* end confdefs.h. */
  4833. int foo;
  4834. _ACEOF
  4835. if ac_fn_cxx_try_compile "$LINENO"; then :
  4836. # Recent versions of gcc don't fail if -Wno-foo is not recognized
  4837. # (unless there are also other warnings), so we also check for -Wfoo
  4838. # which always fails if not supported
  4839. CFLAGS="$OLD_CFLAGS -Werror -Wunused-parameter"
  4840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4841. /* end confdefs.h. */
  4842. int foo;
  4843. _ACEOF
  4844. if ac_fn_cxx_try_compile "$LINENO"; then :
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4846. $as_echo "yes" >&6; }
  4847. CFLAGS="$OLD_CFLAGS -Wno-unused-parameter"
  4848. # Optionally, run a test
  4849. if test "xint foo(int bar) { return 0; }" != "x"; then
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wno-unused-parameter" >&5
  4851. $as_echo_n "checking whether $CC can actually use -Wno-unused-parameter... " >&6; }
  4852. CFLAGS="$OLD_CFLAGS -Werror -Wunused-parameter"
  4853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4854. /* end confdefs.h. */
  4855. int foo(int bar) { return 0; }
  4856. _ACEOF
  4857. if ac_fn_cxx_try_compile "$LINENO"; then :
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed but enabled" >&5
  4859. $as_echo "not needed but enabled" >&6; }
  4860. CFLAGS="$OLD_CFLAGS"
  4861. else
  4862. CFLAGS="$OLD_CFLAGS -Werror -Wno-unused-parameter"
  4863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4864. /* end confdefs.h. */
  4865. int foo(int bar) { return 0; }
  4866. _ACEOF
  4867. if ac_fn_cxx_try_compile "$LINENO"; then :
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4869. $as_echo "yes" >&6; }
  4870. CFLAGS="$OLD_CFLAGS -Wno-unused-parameter"
  4871. else
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4873. $as_echo "no" >&6; }
  4874. CFLAGS="$OLD_CFLAGS"
  4875. fi
  4876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4877. fi
  4878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4879. fi
  4880. else
  4881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4882. $as_echo "no" >&6; }
  4883. CFLAGS="$OLD_CFLAGS"
  4884. fi
  4885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4886. else
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4888. $as_echo "no" >&6; }
  4889. CFLAGS="$OLD_CFLAGS"
  4890. fi
  4891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wempty-body" >&5
  4893. $as_echo_n "checking whether $CC supports -Wempty-body... " >&6; }
  4894. OLD_CFLAGS="$CFLAGS"
  4895. CFLAGS="$CFLAGS -Werror -Wempty-body"
  4896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4897. /* end confdefs.h. */
  4898. int foo;
  4899. _ACEOF
  4900. if ac_fn_cxx_try_compile "$LINENO"; then :
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4902. $as_echo "yes" >&6; }
  4903. CFLAGS="$OLD_CFLAGS -Wempty-body"
  4904. # Optionally, run a test
  4905. if test "x" != "x"; then
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wempty-body" >&5
  4907. $as_echo_n "checking whether $CC can actually use -Wempty-body... " >&6; }
  4908. CFLAGS="$OLD_CFLAGS -Werror -Wempty-body"
  4909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4910. /* end confdefs.h. */
  4911. _ACEOF
  4912. if ac_fn_cxx_try_compile "$LINENO"; then :
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4914. $as_echo "no" >&6; }
  4915. CFLAGS="$OLD_CFLAGS"
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4917. $as_echo "yes" >&6; }
  4918. CFLAGS="$OLD_CFLAGS -Wempty-body"
  4919. fi
  4920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4921. fi
  4922. else
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4924. $as_echo "no" >&6; }
  4925. CFLAGS="$OLD_CFLAGS"
  4926. fi
  4927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-switch" >&5
  4929. $as_echo_n "checking whether $CC supports -Wno-switch... " >&6; }
  4930. OLD_CFLAGS="$CFLAGS"
  4931. CFLAGS="$CFLAGS -Werror -Wno-switch"
  4932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4933. /* end confdefs.h. */
  4934. int foo;
  4935. _ACEOF
  4936. if ac_fn_cxx_try_compile "$LINENO"; then :
  4937. # Recent versions of gcc don't fail if -Wno-foo is not recognized
  4938. # (unless there are also other warnings), so we also check for -Wfoo
  4939. # which always fails if not supported
  4940. CFLAGS="$OLD_CFLAGS -Werror -Wswitch"
  4941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4942. /* end confdefs.h. */
  4943. int foo;
  4944. _ACEOF
  4945. if ac_fn_cxx_try_compile "$LINENO"; then :
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4947. $as_echo "yes" >&6; }
  4948. CFLAGS="$OLD_CFLAGS -Wno-switch"
  4949. # Optionally, run a test
  4950. if test "x" != "x"; then
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wno-switch" >&5
  4952. $as_echo_n "checking whether $CC can actually use -Wno-switch... " >&6; }
  4953. CFLAGS="$OLD_CFLAGS -Werror -Wswitch"
  4954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4955. /* end confdefs.h. */
  4956. _ACEOF
  4957. if ac_fn_cxx_try_compile "$LINENO"; then :
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed but enabled" >&5
  4959. $as_echo "not needed but enabled" >&6; }
  4960. CFLAGS="$OLD_CFLAGS"
  4961. else
  4962. CFLAGS="$OLD_CFLAGS -Werror -Wno-switch"
  4963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4964. /* end confdefs.h. */
  4965. _ACEOF
  4966. if ac_fn_cxx_try_compile "$LINENO"; then :
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4968. $as_echo "yes" >&6; }
  4969. CFLAGS="$OLD_CFLAGS -Wno-switch"
  4970. else
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4972. $as_echo "no" >&6; }
  4973. CFLAGS="$OLD_CFLAGS"
  4974. fi
  4975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4976. fi
  4977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4978. fi
  4979. else
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4981. $as_echo "no" >&6; }
  4982. CFLAGS="$OLD_CFLAGS"
  4983. fi
  4984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4985. else
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4987. $as_echo "no" >&6; }
  4988. CFLAGS="$OLD_CFLAGS"
  4989. fi
  4990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-missing-field-initializers" >&5
  4992. $as_echo_n "checking whether $CC supports -Wno-missing-field-initializers... " >&6; }
  4993. OLD_CFLAGS="$CFLAGS"
  4994. CFLAGS="$CFLAGS -Werror -Wno-missing-field-initializers"
  4995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4996. /* end confdefs.h. */
  4997. int foo;
  4998. _ACEOF
  4999. if ac_fn_cxx_try_compile "$LINENO"; then :
  5000. # Recent versions of gcc don't fail if -Wno-foo is not recognized
  5001. # (unless there are also other warnings), so we also check for -Wfoo
  5002. # which always fails if not supported
  5003. CFLAGS="$OLD_CFLAGS -Werror -Wmissing-field-initializers"
  5004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5005. /* end confdefs.h. */
  5006. int foo;
  5007. _ACEOF
  5008. if ac_fn_cxx_try_compile "$LINENO"; then :
  5009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5010. $as_echo "yes" >&6; }
  5011. CFLAGS="$OLD_CFLAGS -Wno-missing-field-initializers"
  5012. # Optionally, run a test
  5013. if test "x" != "x"; then
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wno-missing-field-initializers" >&5
  5015. $as_echo_n "checking whether $CC can actually use -Wno-missing-field-initializers... " >&6; }
  5016. CFLAGS="$OLD_CFLAGS -Werror -Wmissing-field-initializers"
  5017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5018. /* end confdefs.h. */
  5019. _ACEOF
  5020. if ac_fn_cxx_try_compile "$LINENO"; then :
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed but enabled" >&5
  5022. $as_echo "not needed but enabled" >&6; }
  5023. CFLAGS="$OLD_CFLAGS"
  5024. else
  5025. CFLAGS="$OLD_CFLAGS -Werror -Wno-missing-field-initializers"
  5026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5027. /* end confdefs.h. */
  5028. _ACEOF
  5029. if ac_fn_cxx_try_compile "$LINENO"; then :
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5031. $as_echo "yes" >&6; }
  5032. CFLAGS="$OLD_CFLAGS -Wno-missing-field-initializers"
  5033. else
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5035. $as_echo "no" >&6; }
  5036. CFLAGS="$OLD_CFLAGS"
  5037. fi
  5038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5039. fi
  5040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5041. fi
  5042. else
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5044. $as_echo "no" >&6; }
  5045. CFLAGS="$OLD_CFLAGS"
  5046. fi
  5047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5048. else
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5050. $as_echo "no" >&6; }
  5051. CFLAGS="$OLD_CFLAGS"
  5052. fi
  5053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is clang" >&5
  5055. $as_echo_n "checking whether compiler is clang... " >&6; }
  5056. if test -n "`$CC --version | grep -i clang`" ; then
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, skipping some flags.." >&5
  5058. $as_echo "yes, skipping some flags.." >&6; }
  5059. else
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5061. $as_echo "no" >&6; }
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-maybe-uninitialized" >&5
  5063. $as_echo_n "checking whether $CC supports -Wno-maybe-uninitialized... " >&6; }
  5064. OLD_CFLAGS="$CFLAGS"
  5065. CFLAGS="$CFLAGS -Werror -Wno-maybe-uninitialized"
  5066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5067. /* end confdefs.h. */
  5068. int foo;
  5069. _ACEOF
  5070. if ac_fn_cxx_try_compile "$LINENO"; then :
  5071. # Recent versions of gcc don't fail if -Wno-foo is not recognized
  5072. # (unless there are also other warnings), so we also check for -Wfoo
  5073. # which always fails if not supported
  5074. CFLAGS="$OLD_CFLAGS -Werror -Wmaybe-uninitialized"
  5075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5076. /* end confdefs.h. */
  5077. int foo;
  5078. _ACEOF
  5079. if ac_fn_cxx_try_compile "$LINENO"; then :
  5080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5081. $as_echo "yes" >&6; }
  5082. CFLAGS="$OLD_CFLAGS -Wno-maybe-uninitialized"
  5083. # Optionally, run a test
  5084. if test "x" != "x"; then
  5085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wno-maybe-uninitialized" >&5
  5086. $as_echo_n "checking whether $CC can actually use -Wno-maybe-uninitialized... " >&6; }
  5087. CFLAGS="$OLD_CFLAGS -Werror -Wmaybe-uninitialized"
  5088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5089. /* end confdefs.h. */
  5090. _ACEOF
  5091. if ac_fn_cxx_try_compile "$LINENO"; then :
  5092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed but enabled" >&5
  5093. $as_echo "not needed but enabled" >&6; }
  5094. CFLAGS="$OLD_CFLAGS"
  5095. else
  5096. CFLAGS="$OLD_CFLAGS -Werror -Wno-maybe-uninitialized"
  5097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5098. /* end confdefs.h. */
  5099. _ACEOF
  5100. if ac_fn_cxx_try_compile "$LINENO"; then :
  5101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5102. $as_echo "yes" >&6; }
  5103. CFLAGS="$OLD_CFLAGS -Wno-maybe-uninitialized"
  5104. else
  5105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5106. $as_echo "no" >&6; }
  5107. CFLAGS="$OLD_CFLAGS"
  5108. fi
  5109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5110. fi
  5111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5112. fi
  5113. else
  5114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5115. $as_echo "no" >&6; }
  5116. CFLAGS="$OLD_CFLAGS"
  5117. fi
  5118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5119. else
  5120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5121. $as_echo "no" >&6; }
  5122. CFLAGS="$OLD_CFLAGS"
  5123. fi
  5124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-clobbered" >&5
  5126. $as_echo_n "checking whether $CC supports -Wno-clobbered... " >&6; }
  5127. OLD_CFLAGS="$CFLAGS"
  5128. CFLAGS="$CFLAGS -Werror -Wno-clobbered"
  5129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5130. /* end confdefs.h. */
  5131. int foo;
  5132. _ACEOF
  5133. if ac_fn_cxx_try_compile "$LINENO"; then :
  5134. # Recent versions of gcc don't fail if -Wno-foo is not recognized
  5135. # (unless there are also other warnings), so we also check for -Wfoo
  5136. # which always fails if not supported
  5137. CFLAGS="$OLD_CFLAGS -Werror -Wclobbered"
  5138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5139. /* end confdefs.h. */
  5140. int foo;
  5141. _ACEOF
  5142. if ac_fn_cxx_try_compile "$LINENO"; then :
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5144. $as_echo "yes" >&6; }
  5145. CFLAGS="$OLD_CFLAGS -Wno-clobbered"
  5146. # Optionally, run a test
  5147. if test "x" != "x"; then
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wno-clobbered" >&5
  5149. $as_echo_n "checking whether $CC can actually use -Wno-clobbered... " >&6; }
  5150. CFLAGS="$OLD_CFLAGS -Werror -Wclobbered"
  5151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5152. /* end confdefs.h. */
  5153. _ACEOF
  5154. if ac_fn_cxx_try_compile "$LINENO"; then :
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed but enabled" >&5
  5156. $as_echo "not needed but enabled" >&6; }
  5157. CFLAGS="$OLD_CFLAGS"
  5158. else
  5159. CFLAGS="$OLD_CFLAGS -Werror -Wno-clobbered"
  5160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5161. /* end confdefs.h. */
  5162. _ACEOF
  5163. if ac_fn_cxx_try_compile "$LINENO"; then :
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5165. $as_echo "yes" >&6; }
  5166. CFLAGS="$OLD_CFLAGS -Wno-clobbered"
  5167. else
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5169. $as_echo "no" >&6; }
  5170. CFLAGS="$OLD_CFLAGS"
  5171. fi
  5172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5173. fi
  5174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5175. fi
  5176. else
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5178. $as_echo "no" >&6; }
  5179. CFLAGS="$OLD_CFLAGS"
  5180. fi
  5181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5182. else
  5183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5184. $as_echo "no" >&6; }
  5185. CFLAGS="$OLD_CFLAGS"
  5186. fi
  5187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5188. fi
  5189. # Certain versions of gcc make -Wshadow completely useless by making it flood
  5190. # you with unnecessary warnings <https://lkml.org/lkml/2006/11/28/239>
  5191. # Let's check if we can really use it
  5192. SAVED_OLD_CFLAGS="$CFLAGS"
  5193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wshadow" >&5
  5194. $as_echo_n "checking whether $CC supports -Wshadow... " >&6; }
  5195. OLD_CFLAGS="$CFLAGS"
  5196. CFLAGS="$CFLAGS -Werror -Wshadow"
  5197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5198. /* end confdefs.h. */
  5199. int foo;
  5200. _ACEOF
  5201. if ac_fn_cxx_try_compile "$LINENO"; then :
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5203. $as_echo "yes" >&6; }
  5204. CFLAGS="$OLD_CFLAGS -Wshadow"
  5205. # Optionally, run a test
  5206. if test "x" != "x"; then
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wshadow" >&5
  5208. $as_echo_n "checking whether $CC can actually use -Wshadow... " >&6; }
  5209. CFLAGS="$OLD_CFLAGS -Werror -Wshadow"
  5210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5211. /* end confdefs.h. */
  5212. _ACEOF
  5213. if ac_fn_cxx_try_compile "$LINENO"; then :
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5215. $as_echo "no" >&6; }
  5216. CFLAGS="$OLD_CFLAGS"
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5218. $as_echo "yes" >&6; }
  5219. CFLAGS="$OLD_CFLAGS -Wshadow"
  5220. fi
  5221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5222. fi
  5223. else
  5224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5225. $as_echo "no" >&6; }
  5226. CFLAGS="$OLD_CFLAGS"
  5227. fi
  5228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5229. if test "x$CFLAGS" != "x$SAVED_OLD_CFLAGS"; then
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can efficiently use -Wshadow" >&5
  5231. $as_echo_n "checking whether $CC can efficiently use -Wshadow... " >&6; }
  5232. NEW_CFLAGS="$CFLAGS"
  5233. CFLAGS="$CFLAGS -Werror -Wshadow"
  5234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5235. /* end confdefs.h. */
  5236. int foo(void) {
  5237. return 0;
  5238. }
  5239. int bar(void) {
  5240. int foo = 0;
  5241. return foo + 1;
  5242. }
  5243. _ACEOF
  5244. if ac_fn_cxx_try_compile "$LINENO"; then :
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5246. $as_echo "yes" >&6; }
  5247. CFLAGS="$NEW_CFLAGS"
  5248. else
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5250. $as_echo "no" >&6; }
  5251. CFLAGS="$SAVED_OLD_CFLAGS"
  5252. fi
  5253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5254. fi
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fPIC" >&5
  5256. $as_echo_n "checking whether $CC supports -fPIC... " >&6; }
  5257. OLD_CFLAGS="$CFLAGS"
  5258. CFLAGS="$CFLAGS -fPIC"
  5259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5260. /* end confdefs.h. */
  5261. int foo;
  5262. _ACEOF
  5263. if ac_fn_cxx_try_compile "$LINENO"; then :
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5265. $as_echo "yes" >&6; }
  5266. compiler_supports_pic="yes"
  5267. else
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5269. $as_echo "no" >&6; }
  5270. compiler_supports_pic="no"
  5271. fi
  5272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5273. CFLAGS="$OLD_CFLAGS"
  5274. #
  5275. # option for shared objects
  5276. #
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to make shared objects" >&5
  5278. $as_echo_n "checking how to make shared objects... " >&6; }
  5279. OLD_CFLAGS="$CFLAGS"
  5280. compiler_shared_objects=""
  5281. compiler_supports_shared_objects="no"
  5282. if test "$compiler_supports_pic" = "yes" ; then
  5283. my_shared_test_flags="$CFLAGS -fPIC"
  5284. fi
  5285. # default
  5286. CFLAGS="$my_shared_test_flags -shared"
  5287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5288. /* end confdefs.h. */
  5289. int bar = 0;
  5290. int foo(void)
  5291. {
  5292. return bar;
  5293. }
  5294. _ACEOF
  5295. if ac_fn_cxx_try_link "$LINENO"; then :
  5296. compiler_shared_objects="-shared"
  5297. compiler_supports_shared_objects="yes"
  5298. fi
  5299. rm -f core conftest.err conftest.$ac_objext \
  5300. conftest$ac_exeext conftest.$ac_ext
  5301. # BeOS specific
  5302. CFLAGS="$my_shared_test_flags -nostart"
  5303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5304. /* end confdefs.h. */
  5305. int bar = 0;
  5306. int foo(void)
  5307. {
  5308. return bar;
  5309. }
  5310. _ACEOF
  5311. if ac_fn_cxx_try_link "$LINENO"; then :
  5312. compiler_shared_objects="-nostart"
  5313. compiler_supports_shared_objects="yes"
  5314. fi
  5315. rm -f core conftest.err conftest.$ac_objext \
  5316. conftest$ac_exeext conftest.$ac_ext
  5317. CFLAGS="$OLD_CFLAGS"
  5318. if test "$compiler_supports_shared_objects" = "no" ; then
  5319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
  5320. $as_echo "not supported" >&6; }
  5321. { $as_echo "$as_me:${as_lineno-$LINENO}: compiler is unable to generate shared objects, disabled plugins (optional)" >&5
  5322. $as_echo "$as_me: compiler is unable to generate shared objects, disabled plugins (optional)" >&6;}
  5323. WITH_PLUGINS="no"
  5324. else
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler_shared_objects $compiler_supports_shared_objects" >&5
  5326. $as_echo "$compiler_shared_objects $compiler_supports_shared_objects" >&6; }
  5327. SOFLAGS="$SOFLAGS $compiler_shared_objects"
  5328. #
  5329. # On certain platforms, undefined references on shared libraries won't be checked
  5330. # unless explicitly required with the --no-undefined linker option
  5331. #
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -Wl,--no-undefined to check for undefined references in shared objects" >&5
  5333. $as_echo_n "checking whether $CC needs -Wl,--no-undefined to check for undefined references in shared objects... " >&6; }
  5334. OLD_CFLAGS="$CFLAGS"
  5335. CFLAGS="$SOFLAGS"
  5336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5337. /* end confdefs.h. */
  5338. void foo(void) {
  5339. foobar();
  5340. }
  5341. _ACEOF
  5342. if ac_fn_cxx_try_link "$LINENO"; then :
  5343. CFLAGS="$SOFLAGS -Wl,--no-undefined"
  5344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5345. /* end confdefs.h. */
  5346. int bar = 0;
  5347. int foo(void) {
  5348. return bar;
  5349. }
  5350. _ACEOF
  5351. if ac_fn_cxx_try_link "$LINENO"; then :
  5352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5353. $as_echo "yes" >&6; }
  5354. SOFLAGS="$SOFLAGS -Wl,--no-undefined"
  5355. else
  5356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (undefined references check will be ignored)" >&5
  5357. $as_echo "unsupported (undefined references check will be ignored)" >&6; }
  5358. fi
  5359. rm -f core conftest.err conftest.$ac_objext \
  5360. conftest$ac_exeext conftest.$ac_ext
  5361. else
  5362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5363. $as_echo "no" >&6; }
  5364. fi
  5365. rm -f core conftest.err conftest.$ac_objext \
  5366. conftest$ac_exeext conftest.$ac_ext
  5367. CFLAGS="$OLD_CFLAGS"
  5368. #
  5369. # shared objects need position independent code; some platforms emit
  5370. # it always, others need -fPIC
  5371. #
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -fPIC for shared objects" >&5
  5373. $as_echo_n "checking whether $CC needs -fPIC for shared objects... " >&6; }
  5374. OLD_CFLAGS="$CFLAGS"
  5375. CFLAGS="$CFLAGS $SOFLAGS"
  5376. WITH_PLUGINS="yes"
  5377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5378. /* end confdefs.h. */
  5379. int bar = 0;
  5380. int foo(void)
  5381. {
  5382. return bar;
  5383. }
  5384. _ACEOF
  5385. if ac_fn_cxx_try_link "$LINENO"; then :
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5387. $as_echo "no" >&6; }
  5388. CFLAGS="$OLD_CFLAGS"
  5389. else
  5390. if test "$compiler_supports_pic" = "yes" ; then
  5391. # Verify if -shared really fails due to lack of -fPIC or something else
  5392. CFLAGS="$CFLAGS -fPIC"
  5393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5394. /* end confdefs.h. */
  5395. int bar = 0;
  5396. int foo(void)
  5397. {
  5398. return bar;
  5399. }
  5400. _ACEOF
  5401. if ac_fn_cxx_try_link "$LINENO"; then :
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5403. $as_echo "yes" >&6; }
  5404. CFLAGS="$OLD_CFLAGS -fPIC"
  5405. else
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, but fails for another reason" >&5
  5407. $as_echo "no, but fails for another reason" >&6; }
  5408. as_fn_error $? "compiler is unable to compile shared objects for an unhandled reason, please report this with attached config.log... stopping" "$LINENO" 5
  5409. fi
  5410. rm -f core conftest.err conftest.$ac_objext \
  5411. conftest$ac_exeext conftest.$ac_ext
  5412. else
  5413. # Disable compilation of plugins (optional), so 'make all' does not fail
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, but unsupported" >&5
  5415. $as_echo "yes, but unsupported" >&6; }
  5416. { $as_echo "$as_me:${as_lineno-$LINENO}: compiler is unable to generate position independent code, disabled plugins (optional)" >&5
  5417. $as_echo "$as_me: compiler is unable to generate position independent code, disabled plugins (optional)" >&6;}
  5418. WITH_PLUGINS="no"
  5419. fi
  5420. fi
  5421. rm -f core conftest.err conftest.$ac_objext \
  5422. conftest$ac_exeext conftest.$ac_ext
  5423. fi
  5424. my_shared_test_flags=""
  5425. #
  5426. # -O2 implies -fstrict-aliasing, but the code is not safe for that
  5427. #
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
  5429. $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
  5430. OLD_CFLAGS="$CFLAGS"
  5431. CFLAGS="$CFLAGS -fno-strict-aliasing"
  5432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5433. /* end confdefs.h. */
  5434. int foo;
  5435. _ACEOF
  5436. if ac_fn_cxx_try_compile "$LINENO"; then :
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5438. $as_echo "yes" >&6; }
  5439. else
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5441. $as_echo "no" >&6; }
  5442. CFLAGS="$OLD_CFLAGS"
  5443. fi
  5444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5445. ###############################################################################
  5446. # Check for libraries and header files.
  5447. #
  5448. #
  5449. # setrlimit - used to set the socket limit
  5450. #
  5451. ac_fn_cxx_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
  5452. if test "x$ac_cv_func_setrlimit" = xyes; then :
  5453. CPPFLAGS="$CPPFLAGS -DHAVE_SETRLIMIT"
  5454. fi
  5455. #
  5456. # strnlen - string length with upper scan bound
  5457. #
  5458. ac_fn_cxx_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
  5459. if test "x$ac_cv_func_strnlen" = xyes; then :
  5460. CPPFLAGS="$CPPFLAGS -DHAVE_STRNLEN"
  5461. fi
  5462. # libconfig
  5463. for ac_func in uselocale
  5464. do :
  5465. ac_fn_cxx_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
  5466. if test "x$ac_cv_func_uselocale" = xyes; then :
  5467. cat >>confdefs.h <<_ACEOF
  5468. #define HAVE_USELOCALE 1
  5469. _ACEOF
  5470. fi
  5471. done
  5472. for ac_func in newlocale
  5473. do :
  5474. ac_fn_cxx_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale"
  5475. if test "x$ac_cv_func_newlocale" = xyes; then :
  5476. cat >>confdefs.h <<_ACEOF
  5477. #define HAVE_NEWLOCALE 1
  5478. _ACEOF
  5479. fi
  5480. done
  5481. for ac_func in freelocale
  5482. do :
  5483. ac_fn_cxx_check_func "$LINENO" "freelocale" "ac_cv_func_freelocale"
  5484. if test "x$ac_cv_func_freelocale" = xyes; then :
  5485. cat >>confdefs.h <<_ACEOF
  5486. #define HAVE_FREELOCALE 1
  5487. _ACEOF
  5488. fi
  5489. done
  5490. for ac_header in xlocale.h
  5491. do :
  5492. ac_fn_cxx_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "
  5493. #ifdef HAVE_XLOCALE_H
  5494. # include <xlocale.h>
  5495. #endif
  5496. "
  5497. if test "x$ac_cv_header_xlocale_h" = xyes; then :
  5498. cat >>confdefs.h <<_ACEOF
  5499. #define HAVE_XLOCALE_H 1
  5500. _ACEOF
  5501. fi
  5502. done
  5503. #
  5504. # Memory manager
  5505. #
  5506. case $enable_manager in
  5507. "no")
  5508. CPPFLAGS="$CPPFLAGS -DNO_MEMMGR"
  5509. ;;
  5510. "builtin")
  5511. # enabled by default
  5512. ;;
  5513. "memwatch")
  5514. CPPFLAGS="$CPPFLAGS -DMEMWATCH"
  5515. ac_ext=cpp
  5516. ac_cpp='$CXXCPP $CPPFLAGS'
  5517. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5518. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5519. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  5521. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  5522. if test -z "$CXXCPP"; then
  5523. if ${ac_cv_prog_CXXCPP+:} false; then :
  5524. $as_echo_n "(cached) " >&6
  5525. else
  5526. # Double quotes because CXXCPP needs to be expanded
  5527. for CXXCPP in "$CXX -E" "/lib/cpp"
  5528. do
  5529. ac_preproc_ok=false
  5530. for ac_cxx_preproc_warn_flag in '' yes
  5531. do
  5532. # Use a header file that comes with gcc, so configuring glibc
  5533. # with a fresh cross-compiler works.
  5534. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5535. # <limits.h> exists even on freestanding compilers.
  5536. # On the NeXT, cc -E runs the code through the compiler's parser,
  5537. # not just through cpp. "Syntax error" is here to catch this case.
  5538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5539. /* end confdefs.h. */
  5540. #ifdef __STDC__
  5541. # include <limits.h>
  5542. #else
  5543. # include <assert.h>
  5544. #endif
  5545. Syntax error
  5546. _ACEOF
  5547. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5548. else
  5549. # Broken: fails on valid input.
  5550. continue
  5551. fi
  5552. rm -f conftest.err conftest.i conftest.$ac_ext
  5553. # OK, works on sane cases. Now check whether nonexistent headers
  5554. # can be detected and how.
  5555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5556. /* end confdefs.h. */
  5557. #include <ac_nonexistent.h>
  5558. _ACEOF
  5559. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5560. # Broken: success on invalid input.
  5561. continue
  5562. else
  5563. # Passes both tests.
  5564. ac_preproc_ok=:
  5565. break
  5566. fi
  5567. rm -f conftest.err conftest.i conftest.$ac_ext
  5568. done
  5569. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5570. rm -f conftest.i conftest.err conftest.$ac_ext
  5571. if $ac_preproc_ok; then :
  5572. break
  5573. fi
  5574. done
  5575. ac_cv_prog_CXXCPP=$CXXCPP
  5576. fi
  5577. CXXCPP=$ac_cv_prog_CXXCPP
  5578. else
  5579. ac_cv_prog_CXXCPP=$CXXCPP
  5580. fi
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  5582. $as_echo "$CXXCPP" >&6; }
  5583. ac_preproc_ok=false
  5584. for ac_cxx_preproc_warn_flag in '' yes
  5585. do
  5586. # Use a header file that comes with gcc, so configuring glibc
  5587. # with a fresh cross-compiler works.
  5588. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5589. # <limits.h> exists even on freestanding compilers.
  5590. # On the NeXT, cc -E runs the code through the compiler's parser,
  5591. # not just through cpp. "Syntax error" is here to catch this case.
  5592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5593. /* end confdefs.h. */
  5594. #ifdef __STDC__
  5595. # include <limits.h>
  5596. #else
  5597. # include <assert.h>
  5598. #endif
  5599. Syntax error
  5600. _ACEOF
  5601. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5602. else
  5603. # Broken: fails on valid input.
  5604. continue
  5605. fi
  5606. rm -f conftest.err conftest.i conftest.$ac_ext
  5607. # OK, works on sane cases. Now check whether nonexistent headers
  5608. # can be detected and how.
  5609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5610. /* end confdefs.h. */
  5611. #include <ac_nonexistent.h>
  5612. _ACEOF
  5613. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5614. # Broken: success on invalid input.
  5615. continue
  5616. else
  5617. # Passes both tests.
  5618. ac_preproc_ok=:
  5619. break
  5620. fi
  5621. rm -f conftest.err conftest.i conftest.$ac_ext
  5622. done
  5623. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5624. rm -f conftest.i conftest.err conftest.$ac_ext
  5625. if $ac_preproc_ok; then :
  5626. else
  5627. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5628. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5629. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  5630. See \`config.log' for more details" "$LINENO" 5; }
  5631. fi
  5632. ac_ext=cpp
  5633. ac_cpp='$CXXCPP $CPPFLAGS'
  5634. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5635. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5636. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5637. ac_fn_cxx_check_header_mongrel "$LINENO" "memwatch.h" "ac_cv_header_memwatch_h" "$ac_includes_default"
  5638. if test "x$ac_cv_header_memwatch_h" = xyes; then :
  5639. else
  5640. as_fn_error $? "memwatch header not found... stopping" "$LINENO" 5
  5641. fi
  5642. ;;
  5643. "dmalloc")
  5644. CPPFLAGS="$CPPFLAGS -DDMALLOC -DDMALLOC_FUNC_CHECK"
  5645. LIBS="$LIBS -ldmalloc"
  5646. ac_fn_cxx_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
  5647. if test "x$ac_cv_header_dmalloc_h" = xyes; then :
  5648. else
  5649. as_fn_error $? "dmalloc header not found... stopping" "$LINENO" 5
  5650. fi
  5651. ;;
  5652. "gcollect")
  5653. CPPFLAGS="$CPPFLAGS -DGCOLLECT"
  5654. LIBS="$LIBS -lgc"
  5655. ac_fn_cxx_check_header_mongrel "$LINENO" "gc.h" "ac_cv_header_gc_h" "$ac_includes_default"
  5656. if test "x$ac_cv_header_gc_h" = xyes; then :
  5657. else
  5658. as_fn_error $? "gcollect header not found... stopping" "$LINENO" 5
  5659. fi
  5660. ;;
  5661. "bcheck")
  5662. CPPFLAGS="$CPPFLAGS -DBCHECK"
  5663. ;;
  5664. esac
  5665. #
  5666. # Packetver
  5667. #
  5668. if test -n "$enable_packetver" ; then
  5669. CPPFLAGS="$CPPFLAGS -DPACKETVER=$enable_packetver"
  5670. fi
  5671. #
  5672. # Debug
  5673. #
  5674. case $enable_debug in
  5675. "no")
  5676. # default value
  5677. CPPFLAGS="$CPPFLAGS"
  5678. ;;
  5679. "yes")
  5680. if test $ac_cv_prog_cc_g = yes; then
  5681. CPPFLAGS="$CPPFLAGS -g -DDEBUG"
  5682. LDFLAGS="$LDFLAGS -g"
  5683. else
  5684. echo "error: --enable-debug flag=$enable_debug entered but the compiler does not support -g"
  5685. exit 1
  5686. fi
  5687. ;;
  5688. "gdb")
  5689. if test $ac_cv_prog_cc_g = yes; then
  5690. CPPFLAGS="$CPPFLAGS -ggdb -DDEBUG"
  5691. LDFLAGS="$LDFLAGS -g"
  5692. else
  5693. echo "error: --enable-debug flag=$enable_debug entered but the compiler does not support -g"
  5694. exit 1
  5695. fi
  5696. ;;
  5697. esac
  5698. #
  5699. # Renewal
  5700. #
  5701. case $enable_prere in
  5702. "no")
  5703. # default value
  5704. CPPFLAGS="$CPPFLAGS"
  5705. ;;
  5706. "yes")
  5707. CPPFLAGS="$CPPFLAGS -DPRERE"
  5708. ;;
  5709. esac
  5710. #
  5711. # VIP
  5712. #
  5713. case $enable_vip in
  5714. "no")
  5715. # default value
  5716. CPPFLAGS="$CPPFLAGS"
  5717. ;;
  5718. "yes")
  5719. CPPFLAGS="$CPPFLAGS -DVIP_ENABLE"
  5720. ;;
  5721. esac
  5722. #
  5723. # Warnings
  5724. #
  5725. case $enable_warn in
  5726. "no") #default
  5727. CPPFLAGS="$CPPFLAGS $PROD_WARN"
  5728. ;;
  5729. "yes")
  5730. CPPFLAGS="$CPPFLAGS"
  5731. ;;
  5732. "extra")
  5733. CPPFLAGS="$CPPFLAGS $EXTRA_WARN"
  5734. ;;
  5735. esac
  5736. #
  5737. # Buildbot
  5738. #
  5739. case $enable_buildbot in
  5740. "no")
  5741. # default value
  5742. ;;
  5743. "yes")
  5744. CPPFLAGS="$CPPFLAGS -DBUILDBOT"
  5745. ;;
  5746. esac
  5747. #
  5748. # RDTSC
  5749. #
  5750. case $enable_rdtsc in
  5751. 0)
  5752. #default value
  5753. ;;
  5754. 1)
  5755. CPPFLAGS="$CPPFLAGS -DENABLE_RDTSC"
  5756. ;;
  5757. esac
  5758. #
  5759. # Profiler
  5760. #
  5761. case $enable_profiler in
  5762. "no")
  5763. # default value
  5764. ;;
  5765. "gprof")
  5766. CFLAGS="$CFLAGS -pg"
  5767. LDFLAGS="$LDFLAGS -pg"
  5768. ;;
  5769. esac
  5770. #
  5771. # zlib library (required)
  5772. #
  5773. if test -n "${ZLIB_HOME}" ; then
  5774. LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
  5775. CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
  5776. fi
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
  5778. $as_echo_n "checking for library containing inflateEnd... " >&6; }
  5779. if ${ac_cv_search_inflateEnd+:} false; then :
  5780. $as_echo_n "(cached) " >&6
  5781. else
  5782. ac_func_search_save_LIBS=$LIBS
  5783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5784. /* end confdefs.h. */
  5785. /* Override any GCC internal prototype to avoid an error.
  5786. Use char because int might match the return type of a GCC
  5787. builtin and then its argument prototype would still apply. */
  5788. #ifdef __cplusplus
  5789. extern "C"
  5790. #endif
  5791. char inflateEnd ();
  5792. int
  5793. main ()
  5794. {
  5795. return inflateEnd ();
  5796. ;
  5797. return 0;
  5798. }
  5799. _ACEOF
  5800. for ac_lib in '' z; do
  5801. if test -z "$ac_lib"; then
  5802. ac_res="none required"
  5803. else
  5804. ac_res=-l$ac_lib
  5805. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5806. fi
  5807. if ac_fn_cxx_try_link "$LINENO"; then :
  5808. ac_cv_search_inflateEnd=$ac_res
  5809. fi
  5810. rm -f core conftest.err conftest.$ac_objext \
  5811. conftest$ac_exeext
  5812. if ${ac_cv_search_inflateEnd+:} false; then :
  5813. break
  5814. fi
  5815. done
  5816. if ${ac_cv_search_inflateEnd+:} false; then :
  5817. else
  5818. ac_cv_search_inflateEnd=no
  5819. fi
  5820. rm conftest.$ac_ext
  5821. LIBS=$ac_func_search_save_LIBS
  5822. fi
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
  5824. $as_echo "$ac_cv_search_inflateEnd" >&6; }
  5825. ac_res=$ac_cv_search_inflateEnd
  5826. if test "$ac_res" != no; then :
  5827. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5828. else
  5829. as_fn_error $? "zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping" "$LINENO" 5
  5830. fi
  5831. ac_fn_cxx_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "#ifdef HAVE_ZLIB_H
  5832. # include <zlib.h>
  5833. #endif
  5834. "
  5835. if test "x$ac_cv_header_zlib_h" = xyes; then :
  5836. else
  5837. as_fn_error $? "zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" "$LINENO" 5
  5838. fi
  5839. #
  5840. # math library (required)
  5841. #
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
  5843. $as_echo_n "checking for library containing sqrt... " >&6; }
  5844. if ${ac_cv_search_sqrt+:} false; then :
  5845. $as_echo_n "(cached) " >&6
  5846. else
  5847. ac_func_search_save_LIBS=$LIBS
  5848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5849. /* end confdefs.h. */
  5850. /* Override any GCC internal prototype to avoid an error.
  5851. Use char because int might match the return type of a GCC
  5852. builtin and then its argument prototype would still apply. */
  5853. #ifdef __cplusplus
  5854. extern "C"
  5855. #endif
  5856. char sqrt ();
  5857. int
  5858. main ()
  5859. {
  5860. return sqrt ();
  5861. ;
  5862. return 0;
  5863. }
  5864. _ACEOF
  5865. for ac_lib in '' m; do
  5866. if test -z "$ac_lib"; then
  5867. ac_res="none required"
  5868. else
  5869. ac_res=-l$ac_lib
  5870. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5871. fi
  5872. if ac_fn_cxx_try_link "$LINENO"; then :
  5873. ac_cv_search_sqrt=$ac_res
  5874. fi
  5875. rm -f core conftest.err conftest.$ac_objext \
  5876. conftest$ac_exeext
  5877. if ${ac_cv_search_sqrt+:} false; then :
  5878. break
  5879. fi
  5880. done
  5881. if ${ac_cv_search_sqrt+:} false; then :
  5882. else
  5883. ac_cv_search_sqrt=no
  5884. fi
  5885. rm conftest.$ac_ext
  5886. LIBS=$ac_func_search_save_LIBS
  5887. fi
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
  5889. $as_echo "$ac_cv_search_sqrt" >&6; }
  5890. ac_res=$ac_cv_search_sqrt
  5891. if test "$ac_res" != no; then :
  5892. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5893. else
  5894. as_fn_error $? "math library not found... stopping" "$LINENO" 5
  5895. fi
  5896. #
  5897. # clock_gettime (optional, rt on Debian)
  5898. #
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  5900. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  5901. if ${ac_cv_search_clock_gettime+:} false; then :
  5902. $as_echo_n "(cached) " >&6
  5903. else
  5904. ac_func_search_save_LIBS=$LIBS
  5905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5906. /* end confdefs.h. */
  5907. /* Override any GCC internal prototype to avoid an error.
  5908. Use char because int might match the return type of a GCC
  5909. builtin and then its argument prototype would still apply. */
  5910. #ifdef __cplusplus
  5911. extern "C"
  5912. #endif
  5913. char clock_gettime ();
  5914. int
  5915. main ()
  5916. {
  5917. return clock_gettime ();
  5918. ;
  5919. return 0;
  5920. }
  5921. _ACEOF
  5922. for ac_lib in '' rt; do
  5923. if test -z "$ac_lib"; then
  5924. ac_res="none required"
  5925. else
  5926. ac_res=-l$ac_lib
  5927. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5928. fi
  5929. if ac_fn_cxx_try_link "$LINENO"; then :
  5930. ac_cv_search_clock_gettime=$ac_res
  5931. fi
  5932. rm -f core conftest.err conftest.$ac_objext \
  5933. conftest$ac_exeext
  5934. if ${ac_cv_search_clock_gettime+:} false; then :
  5935. break
  5936. fi
  5937. done
  5938. if ${ac_cv_search_clock_gettime+:} false; then :
  5939. else
  5940. ac_cv_search_clock_gettime=no
  5941. fi
  5942. rm conftest.$ac_ext
  5943. LIBS=$ac_func_search_save_LIBS
  5944. fi
  5945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  5946. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  5947. ac_res=$ac_cv_search_clock_gettime
  5948. if test "$ac_res" != no; then :
  5949. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5950. fi
  5951. #
  5952. # CLOCK_MONOTONIC clock for clock_gettime
  5953. # Normally defines _POSIX_TIMERS > 0 and _POSIX_MONOTONIC_CLOCK (for posix
  5954. # compliant systems) and __FreeBSD_cc_version >= 500005 (for FreeBSD
  5955. # >= 5.1.0, which does not have the posix defines (ref. r11983)) would be
  5956. # checked but some systems define them even when they do not support it
  5957. # (ref. bugreport:1003).
  5958. #
  5959. if test "$ac_cv_search_clock_gettime" != "no" ; then
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CLOCK_MONOTONIC is supported and works" >&5
  5961. $as_echo_n "checking whether CLOCK_MONOTONIC is supported and works... " >&6; }
  5962. if test "$cross_compiling" = yes; then :
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: guessing no" >&5
  5964. $as_echo "guessing no" >&6; }
  5965. else
  5966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5967. /* end confdefs.h. */
  5968. #include <sys/time.h>
  5969. #include <time.h>
  5970. #include <unistd.h>
  5971. int main(int argc, char** argv)
  5972. {
  5973. struct timespec tval;
  5974. return clock_gettime(CLOCK_MONOTONIC, &tval);
  5975. }
  5976. _ACEOF
  5977. if ac_fn_cxx_try_run "$LINENO"; then :
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5979. $as_echo "yes" >&6; }
  5980. CPPFLAGS="$CPPFLAGS -DHAVE_MONOTONIC_CLOCK"
  5981. else
  5982. # either it failed to compile (CLOCK_MONOTONIC undefined)
  5983. # or clock_gettime has returned a non-zero value
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5985. $as_echo "no" >&6; }
  5986. fi
  5987. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5988. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5989. fi
  5990. fi
  5991. #
  5992. # pthread
  5993. #
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
  5995. $as_echo_n "checking for library containing pthread_create... " >&6; }
  5996. if ${ac_cv_search_pthread_create+:} false; then :
  5997. $as_echo_n "(cached) " >&6
  5998. else
  5999. ac_func_search_save_LIBS=$LIBS
  6000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6001. /* end confdefs.h. */
  6002. /* Override any GCC internal prototype to avoid an error.
  6003. Use char because int might match the return type of a GCC
  6004. builtin and then its argument prototype would still apply. */
  6005. #ifdef __cplusplus
  6006. extern "C"
  6007. #endif
  6008. char pthread_create ();
  6009. int
  6010. main ()
  6011. {
  6012. return pthread_create ();
  6013. ;
  6014. return 0;
  6015. }
  6016. _ACEOF
  6017. for ac_lib in '' pthread; do
  6018. if test -z "$ac_lib"; then
  6019. ac_res="none required"
  6020. else
  6021. ac_res=-l$ac_lib
  6022. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6023. fi
  6024. if ac_fn_cxx_try_link "$LINENO"; then :
  6025. ac_cv_search_pthread_create=$ac_res
  6026. fi
  6027. rm -f core conftest.err conftest.$ac_objext \
  6028. conftest$ac_exeext
  6029. if ${ac_cv_search_pthread_create+:} false; then :
  6030. break
  6031. fi
  6032. done
  6033. if ${ac_cv_search_pthread_create+:} false; then :
  6034. else
  6035. ac_cv_search_pthread_create=no
  6036. fi
  6037. rm conftest.$ac_ext
  6038. LIBS=$ac_func_search_save_LIBS
  6039. fi
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
  6041. $as_echo "$ac_cv_search_pthread_create" >&6; }
  6042. ac_res=$ac_cv_search_pthread_create
  6043. if test "$ac_res" != no; then :
  6044. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6045. else
  6046. as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  6047. fi
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_sigmask" >&5
  6049. $as_echo_n "checking for library containing pthread_sigmask... " >&6; }
  6050. if ${ac_cv_search_pthread_sigmask+:} false; then :
  6051. $as_echo_n "(cached) " >&6
  6052. else
  6053. ac_func_search_save_LIBS=$LIBS
  6054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6055. /* end confdefs.h. */
  6056. /* Override any GCC internal prototype to avoid an error.
  6057. Use char because int might match the return type of a GCC
  6058. builtin and then its argument prototype would still apply. */
  6059. #ifdef __cplusplus
  6060. extern "C"
  6061. #endif
  6062. char pthread_sigmask ();
  6063. int
  6064. main ()
  6065. {
  6066. return pthread_sigmask ();
  6067. ;
  6068. return 0;
  6069. }
  6070. _ACEOF
  6071. for ac_lib in '' pthread; do
  6072. if test -z "$ac_lib"; then
  6073. ac_res="none required"
  6074. else
  6075. ac_res=-l$ac_lib
  6076. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6077. fi
  6078. if ac_fn_cxx_try_link "$LINENO"; then :
  6079. ac_cv_search_pthread_sigmask=$ac_res
  6080. fi
  6081. rm -f core conftest.err conftest.$ac_objext \
  6082. conftest$ac_exeext
  6083. if ${ac_cv_search_pthread_sigmask+:} false; then :
  6084. break
  6085. fi
  6086. done
  6087. if ${ac_cv_search_pthread_sigmask+:} false; then :
  6088. else
  6089. ac_cv_search_pthread_sigmask=no
  6090. fi
  6091. rm conftest.$ac_ext
  6092. LIBS=$ac_func_search_save_LIBS
  6093. fi
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_sigmask" >&5
  6095. $as_echo "$ac_cv_search_pthread_sigmask" >&6; }
  6096. ac_res=$ac_cv_search_pthread_sigmask
  6097. if test "$ac_res" != no; then :
  6098. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6099. else
  6100. as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  6101. fi
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_attr_init" >&5
  6103. $as_echo_n "checking for library containing pthread_attr_init... " >&6; }
  6104. if ${ac_cv_search_pthread_attr_init+:} false; then :
  6105. $as_echo_n "(cached) " >&6
  6106. else
  6107. ac_func_search_save_LIBS=$LIBS
  6108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6109. /* end confdefs.h. */
  6110. /* Override any GCC internal prototype to avoid an error.
  6111. Use char because int might match the return type of a GCC
  6112. builtin and then its argument prototype would still apply. */
  6113. #ifdef __cplusplus
  6114. extern "C"
  6115. #endif
  6116. char pthread_attr_init ();
  6117. int
  6118. main ()
  6119. {
  6120. return pthread_attr_init ();
  6121. ;
  6122. return 0;
  6123. }
  6124. _ACEOF
  6125. for ac_lib in '' pthread; do
  6126. if test -z "$ac_lib"; then
  6127. ac_res="none required"
  6128. else
  6129. ac_res=-l$ac_lib
  6130. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6131. fi
  6132. if ac_fn_cxx_try_link "$LINENO"; then :
  6133. ac_cv_search_pthread_attr_init=$ac_res
  6134. fi
  6135. rm -f core conftest.err conftest.$ac_objext \
  6136. conftest$ac_exeext
  6137. if ${ac_cv_search_pthread_attr_init+:} false; then :
  6138. break
  6139. fi
  6140. done
  6141. if ${ac_cv_search_pthread_attr_init+:} false; then :
  6142. else
  6143. ac_cv_search_pthread_attr_init=no
  6144. fi
  6145. rm conftest.$ac_ext
  6146. LIBS=$ac_func_search_save_LIBS
  6147. fi
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_attr_init" >&5
  6149. $as_echo "$ac_cv_search_pthread_attr_init" >&6; }
  6150. ac_res=$ac_cv_search_pthread_attr_init
  6151. if test "$ac_res" != no; then :
  6152. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6153. else
  6154. as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  6155. fi
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_attr_setstacksize" >&5
  6157. $as_echo_n "checking for library containing pthread_attr_setstacksize... " >&6; }
  6158. if ${ac_cv_search_pthread_attr_setstacksize+:} false; then :
  6159. $as_echo_n "(cached) " >&6
  6160. else
  6161. ac_func_search_save_LIBS=$LIBS
  6162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6163. /* end confdefs.h. */
  6164. /* Override any GCC internal prototype to avoid an error.
  6165. Use char because int might match the return type of a GCC
  6166. builtin and then its argument prototype would still apply. */
  6167. #ifdef __cplusplus
  6168. extern "C"
  6169. #endif
  6170. char pthread_attr_setstacksize ();
  6171. int
  6172. main ()
  6173. {
  6174. return pthread_attr_setstacksize ();
  6175. ;
  6176. return 0;
  6177. }
  6178. _ACEOF
  6179. for ac_lib in '' pthread; do
  6180. if test -z "$ac_lib"; then
  6181. ac_res="none required"
  6182. else
  6183. ac_res=-l$ac_lib
  6184. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6185. fi
  6186. if ac_fn_cxx_try_link "$LINENO"; then :
  6187. ac_cv_search_pthread_attr_setstacksize=$ac_res
  6188. fi
  6189. rm -f core conftest.err conftest.$ac_objext \
  6190. conftest$ac_exeext
  6191. if ${ac_cv_search_pthread_attr_setstacksize+:} false; then :
  6192. break
  6193. fi
  6194. done
  6195. if ${ac_cv_search_pthread_attr_setstacksize+:} false; then :
  6196. else
  6197. ac_cv_search_pthread_attr_setstacksize=no
  6198. fi
  6199. rm conftest.$ac_ext
  6200. LIBS=$ac_func_search_save_LIBS
  6201. fi
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_attr_setstacksize" >&5
  6203. $as_echo "$ac_cv_search_pthread_attr_setstacksize" >&6; }
  6204. ac_res=$ac_cv_search_pthread_attr_setstacksize
  6205. if test "$ac_res" != no; then :
  6206. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6207. else
  6208. as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  6209. fi
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_attr_destroy" >&5
  6211. $as_echo_n "checking for library containing pthread_attr_destroy... " >&6; }
  6212. if ${ac_cv_search_pthread_attr_destroy+:} false; then :
  6213. $as_echo_n "(cached) " >&6
  6214. else
  6215. ac_func_search_save_LIBS=$LIBS
  6216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6217. /* end confdefs.h. */
  6218. /* Override any GCC internal prototype to avoid an error.
  6219. Use char because int might match the return type of a GCC
  6220. builtin and then its argument prototype would still apply. */
  6221. #ifdef __cplusplus
  6222. extern "C"
  6223. #endif
  6224. char pthread_attr_destroy ();
  6225. int
  6226. main ()
  6227. {
  6228. return pthread_attr_destroy ();
  6229. ;
  6230. return 0;
  6231. }
  6232. _ACEOF
  6233. for ac_lib in '' pthread; do
  6234. if test -z "$ac_lib"; then
  6235. ac_res="none required"
  6236. else
  6237. ac_res=-l$ac_lib
  6238. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6239. fi
  6240. if ac_fn_cxx_try_link "$LINENO"; then :
  6241. ac_cv_search_pthread_attr_destroy=$ac_res
  6242. fi
  6243. rm -f core conftest.err conftest.$ac_objext \
  6244. conftest$ac_exeext
  6245. if ${ac_cv_search_pthread_attr_destroy+:} false; then :
  6246. break
  6247. fi
  6248. done
  6249. if ${ac_cv_search_pthread_attr_destroy+:} false; then :
  6250. else
  6251. ac_cv_search_pthread_attr_destroy=no
  6252. fi
  6253. rm conftest.$ac_ext
  6254. LIBS=$ac_func_search_save_LIBS
  6255. fi
  6256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_attr_destroy" >&5
  6257. $as_echo "$ac_cv_search_pthread_attr_destroy" >&6; }
  6258. ac_res=$ac_cv_search_pthread_attr_destroy
  6259. if test "$ac_res" != no; then :
  6260. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6261. else
  6262. as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  6263. fi
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_cancel" >&5
  6265. $as_echo_n "checking for library containing pthread_cancel... " >&6; }
  6266. if ${ac_cv_search_pthread_cancel+:} false; then :
  6267. $as_echo_n "(cached) " >&6
  6268. else
  6269. ac_func_search_save_LIBS=$LIBS
  6270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6271. /* end confdefs.h. */
  6272. /* Override any GCC internal prototype to avoid an error.
  6273. Use char because int might match the return type of a GCC
  6274. builtin and then its argument prototype would still apply. */
  6275. #ifdef __cplusplus
  6276. extern "C"
  6277. #endif
  6278. char pthread_cancel ();
  6279. int
  6280. main ()
  6281. {
  6282. return pthread_cancel ();
  6283. ;
  6284. return 0;
  6285. }
  6286. _ACEOF
  6287. for ac_lib in '' pthread; do
  6288. if test -z "$ac_lib"; then
  6289. ac_res="none required"
  6290. else
  6291. ac_res=-l$ac_lib
  6292. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6293. fi
  6294. if ac_fn_cxx_try_link "$LINENO"; then :
  6295. ac_cv_search_pthread_cancel=$ac_res
  6296. fi
  6297. rm -f core conftest.err conftest.$ac_objext \
  6298. conftest$ac_exeext
  6299. if ${ac_cv_search_pthread_cancel+:} false; then :
  6300. break
  6301. fi
  6302. done
  6303. if ${ac_cv_search_pthread_cancel+:} false; then :
  6304. else
  6305. ac_cv_search_pthread_cancel=no
  6306. fi
  6307. rm conftest.$ac_ext
  6308. LIBS=$ac_func_search_save_LIBS
  6309. fi
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_cancel" >&5
  6311. $as_echo "$ac_cv_search_pthread_cancel" >&6; }
  6312. ac_res=$ac_cv_search_pthread_cancel
  6313. if test "$ac_res" != no; then :
  6314. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6315. else
  6316. as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  6317. fi
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_join" >&5
  6319. $as_echo_n "checking for library containing pthread_join... " >&6; }
  6320. if ${ac_cv_search_pthread_join+:} false; then :
  6321. $as_echo_n "(cached) " >&6
  6322. else
  6323. ac_func_search_save_LIBS=$LIBS
  6324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6325. /* end confdefs.h. */
  6326. /* Override any GCC internal prototype to avoid an error.
  6327. Use char because int might match the return type of a GCC
  6328. builtin and then its argument prototype would still apply. */
  6329. #ifdef __cplusplus
  6330. extern "C"
  6331. #endif
  6332. char pthread_join ();
  6333. int
  6334. main ()
  6335. {
  6336. return pthread_join ();
  6337. ;
  6338. return 0;
  6339. }
  6340. _ACEOF
  6341. for ac_lib in '' pthread; do
  6342. if test -z "$ac_lib"; then
  6343. ac_res="none required"
  6344. else
  6345. ac_res=-l$ac_lib
  6346. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6347. fi
  6348. if ac_fn_cxx_try_link "$LINENO"; then :
  6349. ac_cv_search_pthread_join=$ac_res
  6350. fi
  6351. rm -f core conftest.err conftest.$ac_objext \
  6352. conftest$ac_exeext
  6353. if ${ac_cv_search_pthread_join+:} false; then :
  6354. break
  6355. fi
  6356. done
  6357. if ${ac_cv_search_pthread_join+:} false; then :
  6358. else
  6359. ac_cv_search_pthread_join=no
  6360. fi
  6361. rm conftest.$ac_ext
  6362. LIBS=$ac_func_search_save_LIBS
  6363. fi
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_join" >&5
  6365. $as_echo "$ac_cv_search_pthread_join" >&6; }
  6366. ac_res=$ac_cv_search_pthread_join
  6367. if test "$ac_res" != no; then :
  6368. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6369. else
  6370. as_fn_error $? "pthread library not found or incompatible" "$LINENO" 5
  6371. fi
  6372. #
  6373. # MySQL library
  6374. #
  6375. if test -z "$MYSQL_CONFIG_HOME"; then
  6376. # Extract the first word of "mysql_config", so it can be a program name with args.
  6377. set dummy mysql_config; ac_word=$2
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6379. $as_echo_n "checking for $ac_word... " >&6; }
  6380. if ${ac_cv_path_MYSQL_CONFIG_HOME+:} false; then :
  6381. $as_echo_n "(cached) " >&6
  6382. else
  6383. case $MYSQL_CONFIG_HOME in
  6384. [\\/]* | ?:[\\/]*)
  6385. ac_cv_path_MYSQL_CONFIG_HOME="$MYSQL_CONFIG_HOME" # Let the user override the test with a path.
  6386. ;;
  6387. *)
  6388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6389. for as_dir in $PATH
  6390. do
  6391. IFS=$as_save_IFS
  6392. test -z "$as_dir" && as_dir=.
  6393. for ac_exec_ext in '' $ac_executable_extensions; do
  6394. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6395. ac_cv_path_MYSQL_CONFIG_HOME="$as_dir/$ac_word$ac_exec_ext"
  6396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6397. break 2
  6398. fi
  6399. done
  6400. done
  6401. IFS=$as_save_IFS
  6402. test -z "$ac_cv_path_MYSQL_CONFIG_HOME" && ac_cv_path_MYSQL_CONFIG_HOME="no"
  6403. ;;
  6404. esac
  6405. fi
  6406. MYSQL_CONFIG_HOME=$ac_cv_path_MYSQL_CONFIG_HOME
  6407. if test -n "$MYSQL_CONFIG_HOME"; then
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG_HOME" >&5
  6409. $as_echo "$MYSQL_CONFIG_HOME" >&6; }
  6410. else
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6412. $as_echo "no" >&6; }
  6413. fi
  6414. fi
  6415. if test "$MYSQL_CONFIG_HOME" != "no" ; then
  6416. MYSQL_VERSION="`$MYSQL_CONFIG_HOME --version`"
  6417. if test "$manual_MYSQL_CFLAGS" = "no" ; then
  6418. MYSQL_CFLAGS="`$MYSQL_CONFIG_HOME --include`"
  6419. fi
  6420. if test "$manual_MYSQL_LIBS" = "no" ; then
  6421. MYSQL_LIBS="`$MYSQL_CONFIG_HOME --libs`"
  6422. fi
  6423. else
  6424. MYSQL_VERSION="unknown"
  6425. fi
  6426. MYSQL_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS $MYSQL_LIBS"
  6427. MYSQL_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS $MYSQL_CFLAGS"
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5
  6429. $as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; }
  6430. if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then :
  6431. $as_echo_n "(cached) " >&6
  6432. else
  6433. ac_check_lib_save_LIBS=$LIBS
  6434. LIBS="-lmysqlclient $LIBS"
  6435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6436. /* end confdefs.h. */
  6437. /* Override any GCC internal prototype to avoid an error.
  6438. Use char because int might match the return type of a GCC
  6439. builtin and then its argument prototype would still apply. */
  6440. #ifdef __cplusplus
  6441. extern "C"
  6442. #endif
  6443. char mysql_init ();
  6444. int
  6445. main ()
  6446. {
  6447. return mysql_init ();
  6448. ;
  6449. return 0;
  6450. }
  6451. _ACEOF
  6452. if ac_fn_cxx_try_link "$LINENO"; then :
  6453. ac_cv_lib_mysqlclient_mysql_init=yes
  6454. else
  6455. ac_cv_lib_mysqlclient_mysql_init=no
  6456. fi
  6457. rm -f core conftest.err conftest.$ac_objext \
  6458. conftest$ac_exeext conftest.$ac_ext
  6459. LIBS=$ac_check_lib_save_LIBS
  6460. fi
  6461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
  6462. $as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; }
  6463. if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then :
  6464. HAVE_MYSQL="yes"
  6465. fi
  6466. ac_fn_cxx_check_header_mongrel "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default"
  6467. if test "x$ac_cv_header_mysql_h" = xyes; then :
  6468. else
  6469. HAVE_MYSQL=""
  6470. fi
  6471. CPPFLAGS="$MYSQL_OLD_CPPFLAGS"
  6472. LDFLAGS="$MYSQL_OLD_LDFLAGS"
  6473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MySQL library (required)" >&5
  6474. $as_echo_n "checking MySQL library (required)... " >&6; }
  6475. if test "$HAVE_MYSQL" = "yes" ; then
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($MYSQL_VERSION)" >&5
  6477. $as_echo "yes ($MYSQL_VERSION)" >&6; }
  6478. else
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6480. $as_echo "no" >&6; }
  6481. as_fn_error $? "MySQL not found or incompatible" "$LINENO" 5
  6482. fi
  6483. #
  6484. # PCRE library (optional)
  6485. #
  6486. PCRE_LIBS=""
  6487. PCRE_CFLAGS=""
  6488. if test "$want_pcre" = "no" ; then
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: ignoring PCRE (optional)" >&5
  6490. $as_echo "$as_me: ignoring PCRE (optional)" >&6;}
  6491. else
  6492. host_os="`uname`"
  6493. if test "$host_os" = "FreeBSD" ; then
  6494. if test -z "$PCRE_HOME" ; then PCRE_HOME="/usr/local"; fi
  6495. fi
  6496. if test -z "$PCRE_HOME" ; then
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5
  6498. $as_echo_n "checking for library containing pcre_study... " >&6; }
  6499. if ${ac_cv_search_pcre_study+:} false; then :
  6500. $as_echo_n "(cached) " >&6
  6501. else
  6502. ac_func_search_save_LIBS=$LIBS
  6503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6504. /* end confdefs.h. */
  6505. /* Override any GCC internal prototype to avoid an error.
  6506. Use char because int might match the return type of a GCC
  6507. builtin and then its argument prototype would still apply. */
  6508. #ifdef __cplusplus
  6509. extern "C"
  6510. #endif
  6511. char pcre_study ();
  6512. int
  6513. main ()
  6514. {
  6515. return pcre_study ();
  6516. ;
  6517. return 0;
  6518. }
  6519. _ACEOF
  6520. for ac_lib in '' pcre; do
  6521. if test -z "$ac_lib"; then
  6522. ac_res="none required"
  6523. else
  6524. ac_res=-l$ac_lib
  6525. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6526. fi
  6527. if ac_fn_cxx_try_link "$LINENO"; then :
  6528. ac_cv_search_pcre_study=$ac_res
  6529. fi
  6530. rm -f core conftest.err conftest.$ac_objext \
  6531. conftest$ac_exeext
  6532. if ${ac_cv_search_pcre_study+:} false; then :
  6533. break
  6534. fi
  6535. done
  6536. if ${ac_cv_search_pcre_study+:} false; then :
  6537. else
  6538. ac_cv_search_pcre_study=no
  6539. fi
  6540. rm conftest.$ac_ext
  6541. LIBS=$ac_func_search_save_LIBS
  6542. fi
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5
  6544. $as_echo "$ac_cv_search_pcre_study" >&6; }
  6545. ac_res=$ac_cv_search_pcre_study
  6546. if test "$ac_res" != no; then :
  6547. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6548. HAVE_PCRE="yes"
  6549. fi
  6550. if test "$HAVE_PCRE" = "yes" ; then
  6551. PCRE_LIBS="-lpcre"
  6552. fi
  6553. else
  6554. PCRE_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$PCRE_HOME/lib"
  6555. PCRE_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$PCRE_HOME/include"
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
  6557. $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
  6558. if ${ac_cv_lib_pcre_pcre_compile+:} false; then :
  6559. $as_echo_n "(cached) " >&6
  6560. else
  6561. ac_check_lib_save_LIBS=$LIBS
  6562. LIBS="-lpcre $LIBS"
  6563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6564. /* end confdefs.h. */
  6565. /* Override any GCC internal prototype to avoid an error.
  6566. Use char because int might match the return type of a GCC
  6567. builtin and then its argument prototype would still apply. */
  6568. #ifdef __cplusplus
  6569. extern "C"
  6570. #endif
  6571. char pcre_compile ();
  6572. int
  6573. main ()
  6574. {
  6575. return pcre_compile ();
  6576. ;
  6577. return 0;
  6578. }
  6579. _ACEOF
  6580. if ac_fn_cxx_try_link "$LINENO"; then :
  6581. ac_cv_lib_pcre_pcre_compile=yes
  6582. else
  6583. ac_cv_lib_pcre_pcre_compile=no
  6584. fi
  6585. rm -f core conftest.err conftest.$ac_objext \
  6586. conftest$ac_exeext conftest.$ac_ext
  6587. LIBS=$ac_check_lib_save_LIBS
  6588. fi
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
  6590. $as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
  6591. if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then :
  6592. HAVE_PCRE="yes"
  6593. fi
  6594. CPPFLAGS="$PCRE_OLD_CPPFLAGS"
  6595. LDFLAGS="$PCRE_OLD_LDFLAGS"
  6596. if test "$HAVE_PCRE" = "yes" ; then
  6597. PCRE_LIBS="-L$PCRE_HOME/lib -lpcre"
  6598. test -d "$PCRE_HOME/include" && PCRE_CFLAGS="-I$PCRE_HOME/include"
  6599. fi
  6600. fi
  6601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking PCRE library (optional)" >&5
  6602. $as_echo_n "checking PCRE library (optional)... " >&6; }
  6603. if test "$HAVE_PCRE" = "yes" ; then
  6604. PCRE_VERSION="`pcre-config --version`"
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($PCRE_VERSION)" >&5
  6606. $as_echo "yes ($PCRE_VERSION)" >&6; }
  6607. else
  6608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6609. $as_echo "no" >&6; }
  6610. if test "$require_pcre" = "yes" ; then
  6611. as_fn_error $? "PCRE not found or incompatible (requested)" "$LINENO" 5
  6612. else
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: disabling PCRE (optional)" >&5
  6614. $as_echo "$as_me: disabling PCRE (optional)" >&6;}
  6615. fi
  6616. fi
  6617. fi
  6618. #
  6619. # Host specific stuff
  6620. #
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host OS" >&5
  6622. $as_echo_n "checking host OS... " >&6; }
  6623. host_os="`uname`"
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_os" >&5
  6625. $as_echo "$host_os" >&6; }
  6626. fd_setsize=""
  6627. DLLEXT=".so"
  6628. case $host_os in
  6629. Solaris* )
  6630. LIBS="$LIBS -lsocket -lnsl -ldl"
  6631. ;;
  6632. Linux* )
  6633. LIBS="$LIBS -ldl"
  6634. ;;
  6635. FreeBSD*)
  6636. CPPFLAGS="$CPPFLAGS -D__FREEBSD__"
  6637. ;;
  6638. NetBSD*)
  6639. CPPFLAGS="$CPPFLAGS -D__NETBSD__"
  6640. ;;
  6641. CYGWIN*)
  6642. CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096 -DCYGWIN"
  6643. fd_setsize="done"
  6644. DLLEXT=".dll"
  6645. ;;
  6646. esac
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MinGW" >&5
  6648. $as_echo_n "checking for MinGW... " >&6; }
  6649. if test -n "`$CC --version | grep -i mingw`" ; then
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6651. $as_echo "yes" >&6; }
  6652. CPPFLAGS="$CPPFLAGS -DMINGW"
  6653. if test -z "$fd_setsize" ; then
  6654. CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096"
  6655. fi
  6656. LIBS="$LIBS -lws2_32"
  6657. else
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6659. $as_echo "no" >&6; }
  6660. fi
  6661. CFLAGS="$OPT_LTO $CFLAGS"
  6662. CFLAGS_AR="$OPT_LTO_AR $CFLAGS"
  6663. { $as_echo "$as_me:${as_lineno-$LINENO}: Configure finish" >&5
  6664. $as_echo "$as_me: Configure finish" >&6;}
  6665. { $as_echo "$as_me:${as_lineno-$LINENO}: CPPFLAGS= $CPPFLAGS" >&5
  6666. $as_echo "$as_me: CPPFLAGS= $CPPFLAGS" >&6;}
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: CFLAGS= $CFLAGS" >&5
  6668. $as_echo "$as_me: CFLAGS= $CFLAGS" >&6;}
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: CFLAGS_AR= $CFLAGS_AR" >&5
  6670. $as_echo "$as_me: CFLAGS_AR= $CFLAGS_AR" >&6;}
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: LDFLAGS= $LDFLAGS" >&5
  6672. $as_echo "$as_me: LDFLAGS= $LDFLAGS" >&6;}
  6673. #AC_MSG_NOTICE([PROD_WARN= $PROD_WARN])
  6674. #AC_MSG_NOTICE([EXTRA_WARN= $EXTRA_WARN])
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: output name = $output_login, $output_char, $output_map" >&5
  6676. $as_echo "$as_me: output name = $output_login, $output_char, $output_map" >&6;}
  6677. ###############################################################################
  6678. cat >confcache <<\_ACEOF
  6679. # This file is a shell script that caches the results of configure
  6680. # tests run on this system so they can be shared between configure
  6681. # scripts and configure runs, see configure's option --config-cache.
  6682. # It is not useful on other systems. If it contains results you don't
  6683. # want to keep, you may remove or edit it.
  6684. #
  6685. # config.status only pays attention to the cache file if you give it
  6686. # the --recheck option to rerun configure.
  6687. #
  6688. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6689. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6690. # following values.
  6691. _ACEOF
  6692. # The following way of writing the cache mishandles newlines in values,
  6693. # but we know of no workaround that is simple, portable, and efficient.
  6694. # So, we kill variables containing newlines.
  6695. # Ultrix sh set writes to stderr and can't be redirected directly,
  6696. # and sets the high bit in the cache file unless we assign to the vars.
  6697. (
  6698. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6699. eval ac_val=\$$ac_var
  6700. case $ac_val in #(
  6701. *${as_nl}*)
  6702. case $ac_var in #(
  6703. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6704. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6705. esac
  6706. case $ac_var in #(
  6707. _ | IFS | as_nl) ;; #(
  6708. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6709. *) { eval $ac_var=; unset $ac_var;} ;;
  6710. esac ;;
  6711. esac
  6712. done
  6713. (set) 2>&1 |
  6714. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6715. *${as_nl}ac_space=\ *)
  6716. # `set' does not quote correctly, so add quotes: double-quote
  6717. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6718. sed -n \
  6719. "s/'/'\\\\''/g;
  6720. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6721. ;; #(
  6722. *)
  6723. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6724. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6725. ;;
  6726. esac |
  6727. sort
  6728. ) |
  6729. sed '
  6730. /^ac_cv_env_/b end
  6731. t clear
  6732. :clear
  6733. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6734. t end
  6735. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6736. :end' >>confcache
  6737. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6738. if test -w "$cache_file"; then
  6739. if test "x$cache_file" != "x/dev/null"; then
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6741. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6742. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6743. cat confcache >"$cache_file"
  6744. else
  6745. case $cache_file in #(
  6746. */* | ?:*)
  6747. mv -f confcache "$cache_file"$$ &&
  6748. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6749. *)
  6750. mv -f confcache "$cache_file" ;;
  6751. esac
  6752. fi
  6753. fi
  6754. else
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6756. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6757. fi
  6758. fi
  6759. rm -f confcache
  6760. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6761. # Let make expand exec_prefix.
  6762. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6763. # Transform confdefs.h into DEFS.
  6764. # Protect against shell expansion while executing Makefile rules.
  6765. # Protect against Makefile macro expansion.
  6766. #
  6767. # If the first sed substitution is executed (which looks for macros that
  6768. # take arguments), then branch to the quote section. Otherwise,
  6769. # look for a macro that doesn't take arguments.
  6770. ac_script='
  6771. :mline
  6772. /\\$/{
  6773. N
  6774. s,\\\n,,
  6775. b mline
  6776. }
  6777. t clear
  6778. :clear
  6779. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  6780. t quote
  6781. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  6782. t quote
  6783. b any
  6784. :quote
  6785. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  6786. s/\[/\\&/g
  6787. s/\]/\\&/g
  6788. s/\$/$$/g
  6789. H
  6790. :any
  6791. ${
  6792. g
  6793. s/^\n//
  6794. s/\n/ /g
  6795. p
  6796. }
  6797. '
  6798. DEFS=`sed -n "$ac_script" confdefs.h`
  6799. ac_libobjs=
  6800. ac_ltlibobjs=
  6801. U=
  6802. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6803. # 1. Remove the extension, and $U if already installed.
  6804. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6805. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6806. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  6807. # will be set to the directory where LIBOBJS objects are built.
  6808. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6809. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6810. done
  6811. LIBOBJS=$ac_libobjs
  6812. LTLIBOBJS=$ac_ltlibobjs
  6813. : "${CONFIG_STATUS=./config.status}"
  6814. ac_write_fail=0
  6815. ac_clean_files_save=$ac_clean_files
  6816. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6817. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6818. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6819. as_write_fail=0
  6820. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6821. #! $SHELL
  6822. # Generated by $as_me.
  6823. # Run this file to recreate the current configuration.
  6824. # Compiler output produced by configure, useful for debugging
  6825. # configure, is in config.log if it exists.
  6826. debug=false
  6827. ac_cs_recheck=false
  6828. ac_cs_silent=false
  6829. SHELL=\${CONFIG_SHELL-$SHELL}
  6830. export SHELL
  6831. _ASEOF
  6832. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6833. ## -------------------- ##
  6834. ## M4sh Initialization. ##
  6835. ## -------------------- ##
  6836. # Be more Bourne compatible
  6837. DUALCASE=1; export DUALCASE # for MKS sh
  6838. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6839. emulate sh
  6840. NULLCMD=:
  6841. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6842. # is contrary to our usage. Disable this feature.
  6843. alias -g '${1+"$@"}'='"$@"'
  6844. setopt NO_GLOB_SUBST
  6845. else
  6846. case `(set -o) 2>/dev/null` in #(
  6847. *posix*) :
  6848. set -o posix ;; #(
  6849. *) :
  6850. ;;
  6851. esac
  6852. fi
  6853. as_nl='
  6854. '
  6855. export as_nl
  6856. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  6857. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6858. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6859. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6860. # Prefer a ksh shell builtin over an external printf program on Solaris,
  6861. # but without wasting forks for bash or zsh.
  6862. if test -z "$BASH_VERSION$ZSH_VERSION" \
  6863. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6864. as_echo='print -r --'
  6865. as_echo_n='print -rn --'
  6866. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6867. as_echo='printf %s\n'
  6868. as_echo_n='printf %s'
  6869. else
  6870. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  6871. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  6872. as_echo_n='/usr/ucb/echo -n'
  6873. else
  6874. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6875. as_echo_n_body='eval
  6876. arg=$1;
  6877. case $arg in #(
  6878. *"$as_nl"*)
  6879. expr "X$arg" : "X\\(.*\\)$as_nl";
  6880. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6881. esac;
  6882. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  6883. '
  6884. export as_echo_n_body
  6885. as_echo_n='sh -c $as_echo_n_body as_echo'
  6886. fi
  6887. export as_echo_body
  6888. as_echo='sh -c $as_echo_body as_echo'
  6889. fi
  6890. # The user is always right.
  6891. if test "${PATH_SEPARATOR+set}" != set; then
  6892. PATH_SEPARATOR=:
  6893. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  6894. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  6895. PATH_SEPARATOR=';'
  6896. }
  6897. fi
  6898. # IFS
  6899. # We need space, tab and new line, in precisely that order. Quoting is
  6900. # there to prevent editors from complaining about space-tab.
  6901. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  6902. # splitting by setting IFS to empty value.)
  6903. IFS=" "" $as_nl"
  6904. # Find who we are. Look in the path if we contain no directory separator.
  6905. as_myself=
  6906. case $0 in #((
  6907. *[\\/]* ) as_myself=$0 ;;
  6908. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6909. for as_dir in $PATH
  6910. do
  6911. IFS=$as_save_IFS
  6912. test -z "$as_dir" && as_dir=.
  6913. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6914. done
  6915. IFS=$as_save_IFS
  6916. ;;
  6917. esac
  6918. # We did not find ourselves, most probably we were run as `sh COMMAND'
  6919. # in which case we are not to be found in the path.
  6920. if test "x$as_myself" = x; then
  6921. as_myself=$0
  6922. fi
  6923. if test ! -f "$as_myself"; then
  6924. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  6925. exit 1
  6926. fi
  6927. # Unset variables that we do not need and which cause bugs (e.g. in
  6928. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  6929. # suppresses any "Segmentation fault" message there. '((' could
  6930. # trigger a bug in pdksh 5.2.14.
  6931. for as_var in BASH_ENV ENV MAIL MAILPATH
  6932. do eval test x\${$as_var+set} = xset \
  6933. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  6934. done
  6935. PS1='$ '
  6936. PS2='> '
  6937. PS4='+ '
  6938. # NLS nuisances.
  6939. LC_ALL=C
  6940. export LC_ALL
  6941. LANGUAGE=C
  6942. export LANGUAGE
  6943. # CDPATH.
  6944. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6945. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  6946. # ----------------------------------------
  6947. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6948. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6949. # script with STATUS, using 1 if that was 0.
  6950. as_fn_error ()
  6951. {
  6952. as_status=$1; test $as_status -eq 0 && as_status=1
  6953. if test "$4"; then
  6954. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6955. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  6956. fi
  6957. $as_echo "$as_me: error: $2" >&2
  6958. as_fn_exit $as_status
  6959. } # as_fn_error
  6960. # as_fn_set_status STATUS
  6961. # -----------------------
  6962. # Set $? to STATUS, without forking.
  6963. as_fn_set_status ()
  6964. {
  6965. return $1
  6966. } # as_fn_set_status
  6967. # as_fn_exit STATUS
  6968. # -----------------
  6969. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  6970. as_fn_exit ()
  6971. {
  6972. set +e
  6973. as_fn_set_status $1
  6974. exit $1
  6975. } # as_fn_exit
  6976. # as_fn_unset VAR
  6977. # ---------------
  6978. # Portably unset VAR.
  6979. as_fn_unset ()
  6980. {
  6981. { eval $1=; unset $1;}
  6982. }
  6983. as_unset=as_fn_unset
  6984. # as_fn_append VAR VALUE
  6985. # ----------------------
  6986. # Append the text in VALUE to the end of the definition contained in VAR. Take
  6987. # advantage of any shell optimizations that allow amortized linear growth over
  6988. # repeated appends, instead of the typical quadratic growth present in naive
  6989. # implementations.
  6990. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  6991. eval 'as_fn_append ()
  6992. {
  6993. eval $1+=\$2
  6994. }'
  6995. else
  6996. as_fn_append ()
  6997. {
  6998. eval $1=\$$1\$2
  6999. }
  7000. fi # as_fn_append
  7001. # as_fn_arith ARG...
  7002. # ------------------
  7003. # Perform arithmetic evaluation on the ARGs, and store the result in the
  7004. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  7005. # must be portable across $(()) and expr.
  7006. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  7007. eval 'as_fn_arith ()
  7008. {
  7009. as_val=$(( $* ))
  7010. }'
  7011. else
  7012. as_fn_arith ()
  7013. {
  7014. as_val=`expr "$@" || test $? -eq 1`
  7015. }
  7016. fi # as_fn_arith
  7017. if expr a : '\(a\)' >/dev/null 2>&1 &&
  7018. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  7019. as_expr=expr
  7020. else
  7021. as_expr=false
  7022. fi
  7023. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  7024. as_basename=basename
  7025. else
  7026. as_basename=false
  7027. fi
  7028. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  7029. as_dirname=dirname
  7030. else
  7031. as_dirname=false
  7032. fi
  7033. as_me=`$as_basename -- "$0" ||
  7034. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7035. X"$0" : 'X\(//\)$' \| \
  7036. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  7037. $as_echo X/"$0" |
  7038. sed '/^.*\/\([^/][^/]*\)\/*$/{
  7039. s//\1/
  7040. q
  7041. }
  7042. /^X\/\(\/\/\)$/{
  7043. s//\1/
  7044. q
  7045. }
  7046. /^X\/\(\/\).*/{
  7047. s//\1/
  7048. q
  7049. }
  7050. s/.*/./; q'`
  7051. # Avoid depending upon Character Ranges.
  7052. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7053. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7054. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7055. as_cr_digits='0123456789'
  7056. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7057. ECHO_C= ECHO_N= ECHO_T=
  7058. case `echo -n x` in #(((((
  7059. -n*)
  7060. case `echo 'xy\c'` in
  7061. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  7062. xy) ECHO_C='\c';;
  7063. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  7064. ECHO_T=' ';;
  7065. esac;;
  7066. *)
  7067. ECHO_N='-n';;
  7068. esac
  7069. rm -f conf$$ conf$$.exe conf$$.file
  7070. if test -d conf$$.dir; then
  7071. rm -f conf$$.dir/conf$$.file
  7072. else
  7073. rm -f conf$$.dir
  7074. mkdir conf$$.dir 2>/dev/null
  7075. fi
  7076. if (echo >conf$$.file) 2>/dev/null; then
  7077. if ln -s conf$$.file conf$$ 2>/dev/null; then
  7078. as_ln_s='ln -s'
  7079. # ... but there are two gotchas:
  7080. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  7081. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  7082. # In both cases, we have to default to `cp -pR'.
  7083. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  7084. as_ln_s='cp -pR'
  7085. elif ln conf$$.file conf$$ 2>/dev/null; then
  7086. as_ln_s=ln
  7087. else
  7088. as_ln_s='cp -pR'
  7089. fi
  7090. else
  7091. as_ln_s='cp -pR'
  7092. fi
  7093. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  7094. rmdir conf$$.dir 2>/dev/null
  7095. # as_fn_mkdir_p
  7096. # -------------
  7097. # Create "$as_dir" as a directory, including parents if necessary.
  7098. as_fn_mkdir_p ()
  7099. {
  7100. case $as_dir in #(
  7101. -*) as_dir=./$as_dir;;
  7102. esac
  7103. test -d "$as_dir" || eval $as_mkdir_p || {
  7104. as_dirs=
  7105. while :; do
  7106. case $as_dir in #(
  7107. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  7108. *) as_qdir=$as_dir;;
  7109. esac
  7110. as_dirs="'$as_qdir' $as_dirs"
  7111. as_dir=`$as_dirname -- "$as_dir" ||
  7112. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7113. X"$as_dir" : 'X\(//\)[^/]' \| \
  7114. X"$as_dir" : 'X\(//\)$' \| \
  7115. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  7116. $as_echo X"$as_dir" |
  7117. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7118. s//\1/
  7119. q
  7120. }
  7121. /^X\(\/\/\)[^/].*/{
  7122. s//\1/
  7123. q
  7124. }
  7125. /^X\(\/\/\)$/{
  7126. s//\1/
  7127. q
  7128. }
  7129. /^X\(\/\).*/{
  7130. s//\1/
  7131. q
  7132. }
  7133. s/.*/./; q'`
  7134. test -d "$as_dir" && break
  7135. done
  7136. test -z "$as_dirs" || eval "mkdir $as_dirs"
  7137. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  7138. } # as_fn_mkdir_p
  7139. if mkdir -p . 2>/dev/null; then
  7140. as_mkdir_p='mkdir -p "$as_dir"'
  7141. else
  7142. test -d ./-p && rmdir ./-p
  7143. as_mkdir_p=false
  7144. fi
  7145. # as_fn_executable_p FILE
  7146. # -----------------------
  7147. # Test if FILE is an executable regular file.
  7148. as_fn_executable_p ()
  7149. {
  7150. test -f "$1" && test -x "$1"
  7151. } # as_fn_executable_p
  7152. as_test_x='test -x'
  7153. as_executable_p=as_fn_executable_p
  7154. # Sed expression to map a string onto a valid CPP name.
  7155. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  7156. # Sed expression to map a string onto a valid variable name.
  7157. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  7158. exec 6>&1
  7159. ## ----------------------------------- ##
  7160. ## Main body of $CONFIG_STATUS script. ##
  7161. ## ----------------------------------- ##
  7162. _ASEOF
  7163. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  7164. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7165. # Save the log message, to keep $0 and so on meaningful, and to
  7166. # report actual input values of CONFIG_FILES etc. instead of their
  7167. # values after options handling.
  7168. ac_log="
  7169. This file was extended by $as_me, which was
  7170. generated by GNU Autoconf 2.69. Invocation command line was
  7171. CONFIG_FILES = $CONFIG_FILES
  7172. CONFIG_HEADERS = $CONFIG_HEADERS
  7173. CONFIG_LINKS = $CONFIG_LINKS
  7174. CONFIG_COMMANDS = $CONFIG_COMMANDS
  7175. $ $0 $@
  7176. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  7177. "
  7178. _ACEOF
  7179. case $ac_config_files in *"
  7180. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  7181. esac
  7182. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7183. # Files that config.status was made for.
  7184. config_files="$ac_config_files"
  7185. _ACEOF
  7186. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7187. ac_cs_usage="\
  7188. \`$as_me' instantiates files and other configuration actions
  7189. from templates according to the current configuration. Unless the files
  7190. and actions are specified as TAGs, all are instantiated by default.
  7191. Usage: $0 [OPTION]... [TAG]...
  7192. -h, --help print this help, then exit
  7193. -V, --version print version number and configuration settings, then exit
  7194. --config print configuration, then exit
  7195. -q, --quiet, --silent
  7196. do not print progress messages
  7197. -d, --debug don't remove temporary files
  7198. --recheck update $as_me by reconfiguring in the same conditions
  7199. --file=FILE[:TEMPLATE]
  7200. instantiate the configuration file FILE
  7201. Configuration files:
  7202. $config_files
  7203. Report bugs to the package provider."
  7204. _ACEOF
  7205. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7206. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  7207. ac_cs_version="\\
  7208. config.status
  7209. configured by $0, generated by GNU Autoconf 2.69,
  7210. with options \\"\$ac_cs_config\\"
  7211. Copyright (C) 2012 Free Software Foundation, Inc.
  7212. This config.status script is free software; the Free Software Foundation
  7213. gives unlimited permission to copy, distribute and modify it."
  7214. ac_pwd='$ac_pwd'
  7215. srcdir='$srcdir'
  7216. test -n "\$AWK" || AWK=awk
  7217. _ACEOF
  7218. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7219. # The default lists apply if the user does not specify any file.
  7220. ac_need_defaults=:
  7221. while test $# != 0
  7222. do
  7223. case $1 in
  7224. --*=?*)
  7225. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7226. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  7227. ac_shift=:
  7228. ;;
  7229. --*=)
  7230. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7231. ac_optarg=
  7232. ac_shift=:
  7233. ;;
  7234. *)
  7235. ac_option=$1
  7236. ac_optarg=$2
  7237. ac_shift=shift
  7238. ;;
  7239. esac
  7240. case $ac_option in
  7241. # Handling of the options.
  7242. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7243. ac_cs_recheck=: ;;
  7244. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  7245. $as_echo "$ac_cs_version"; exit ;;
  7246. --config | --confi | --conf | --con | --co | --c )
  7247. $as_echo "$ac_cs_config"; exit ;;
  7248. --debug | --debu | --deb | --de | --d | -d )
  7249. debug=: ;;
  7250. --file | --fil | --fi | --f )
  7251. $ac_shift
  7252. case $ac_optarg in
  7253. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7254. '') as_fn_error $? "missing file argument" ;;
  7255. esac
  7256. as_fn_append CONFIG_FILES " '$ac_optarg'"
  7257. ac_need_defaults=false;;
  7258. --he | --h | --help | --hel | -h )
  7259. $as_echo "$ac_cs_usage"; exit ;;
  7260. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7261. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7262. ac_cs_silent=: ;;
  7263. # This is an error.
  7264. -*) as_fn_error $? "unrecognized option: \`$1'
  7265. Try \`$0 --help' for more information." ;;
  7266. *) as_fn_append ac_config_targets " $1"
  7267. ac_need_defaults=false ;;
  7268. esac
  7269. shift
  7270. done
  7271. ac_configure_extra_args=
  7272. if $ac_cs_silent; then
  7273. exec 6>/dev/null
  7274. ac_configure_extra_args="$ac_configure_extra_args --silent"
  7275. fi
  7276. _ACEOF
  7277. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7278. if \$ac_cs_recheck; then
  7279. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7280. shift
  7281. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  7282. CONFIG_SHELL='$SHELL'
  7283. export CONFIG_SHELL
  7284. exec "\$@"
  7285. fi
  7286. _ACEOF
  7287. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7288. exec 5>>config.log
  7289. {
  7290. echo
  7291. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7292. ## Running $as_me. ##
  7293. _ASBOX
  7294. $as_echo "$ac_log"
  7295. } >&5
  7296. _ACEOF
  7297. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7298. _ACEOF
  7299. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7300. # Handling of arguments.
  7301. for ac_config_target in $ac_config_targets
  7302. do
  7303. case $ac_config_target in
  7304. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7305. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  7306. "3rdparty/mt19937ar/Makefile") CONFIG_FILES="$CONFIG_FILES 3rdparty/mt19937ar/Makefile" ;;
  7307. "3rdparty/libconfig/Makefile") CONFIG_FILES="$CONFIG_FILES 3rdparty/libconfig/Makefile" ;;
  7308. "3rdparty/yaml-cpp/Makefile") CONFIG_FILES="$CONFIG_FILES 3rdparty/yaml-cpp/Makefile" ;;
  7309. "src/char/Makefile") CONFIG_FILES="$CONFIG_FILES src/char/Makefile" ;;
  7310. "src/login/Makefile") CONFIG_FILES="$CONFIG_FILES src/login/Makefile" ;;
  7311. "src/map/Makefile") CONFIG_FILES="$CONFIG_FILES src/map/Makefile" ;;
  7312. "src/tool/Makefile") CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  7313. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  7314. esac
  7315. done
  7316. # If the user did not use the arguments to specify the items to instantiate,
  7317. # then the envvar interface is used. Set only those that are not.
  7318. # We use the long form for the default assignment because of an extremely
  7319. # bizarre bug on SunOS 4.1.3.
  7320. if $ac_need_defaults; then
  7321. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7322. fi
  7323. # Have a temporary directory for convenience. Make it in the build tree
  7324. # simply because there is no reason against having it here, and in addition,
  7325. # creating and moving files from /tmp can sometimes cause problems.
  7326. # Hook for its removal unless debugging.
  7327. # Note that there is a small window in which the directory will not be cleaned:
  7328. # after its creation but before its name has been assigned to `$tmp'.
  7329. $debug ||
  7330. {
  7331. tmp= ac_tmp=
  7332. trap 'exit_status=$?
  7333. : "${ac_tmp:=$tmp}"
  7334. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  7335. ' 0
  7336. trap 'as_fn_exit 1' 1 2 13 15
  7337. }
  7338. # Create a (secure) tmp directory for tmp files.
  7339. {
  7340. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7341. test -d "$tmp"
  7342. } ||
  7343. {
  7344. tmp=./conf$$-$RANDOM
  7345. (umask 077 && mkdir "$tmp")
  7346. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  7347. ac_tmp=$tmp
  7348. # Set up the scripts for CONFIG_FILES section.
  7349. # No need to generate them if there are no CONFIG_FILES.
  7350. # This happens for instance with `./config.status config.h'.
  7351. if test -n "$CONFIG_FILES"; then
  7352. ac_cr=`echo X | tr X '\015'`
  7353. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7354. # But we know of no other shell where ac_cr would be empty at this
  7355. # point, so we can use a bashism as a fallback.
  7356. if test "x$ac_cr" = x; then
  7357. eval ac_cr=\$\'\\r\'
  7358. fi
  7359. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7360. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7361. ac_cs_awk_cr='\\r'
  7362. else
  7363. ac_cs_awk_cr=$ac_cr
  7364. fi
  7365. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  7366. _ACEOF
  7367. {
  7368. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7369. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7370. echo "_ACEOF"
  7371. } >conf$$subs.sh ||
  7372. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7373. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  7374. ac_delim='%!_!# '
  7375. for ac_last_try in false false false false false :; do
  7376. . ./conf$$subs.sh ||
  7377. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7378. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7379. if test $ac_delim_n = $ac_delim_num; then
  7380. break
  7381. elif $ac_last_try; then
  7382. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7383. else
  7384. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7385. fi
  7386. done
  7387. rm -f conf$$subs.sh
  7388. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7389. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  7390. _ACEOF
  7391. sed -n '
  7392. h
  7393. s/^/S["/; s/!.*/"]=/
  7394. p
  7395. g
  7396. s/^[^!]*!//
  7397. :repl
  7398. t repl
  7399. s/'"$ac_delim"'$//
  7400. t delim
  7401. :nl
  7402. h
  7403. s/\(.\{148\}\)..*/\1/
  7404. t more1
  7405. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7406. p
  7407. n
  7408. b repl
  7409. :more1
  7410. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7411. p
  7412. g
  7413. s/.\{148\}//
  7414. t nl
  7415. :delim
  7416. h
  7417. s/\(.\{148\}\)..*/\1/
  7418. t more2
  7419. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7420. p
  7421. b
  7422. :more2
  7423. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7424. p
  7425. g
  7426. s/.\{148\}//
  7427. t delim
  7428. ' <conf$$subs.awk | sed '
  7429. /^[^""]/{
  7430. N
  7431. s/\n//
  7432. }
  7433. ' >>$CONFIG_STATUS || ac_write_fail=1
  7434. rm -f conf$$subs.awk
  7435. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7436. _ACAWK
  7437. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  7438. for (key in S) S_is_set[key] = 1
  7439. FS = ""
  7440. }
  7441. {
  7442. line = $ 0
  7443. nfields = split(line, field, "@")
  7444. substed = 0
  7445. len = length(field[1])
  7446. for (i = 2; i < nfields; i++) {
  7447. key = field[i]
  7448. keylen = length(key)
  7449. if (S_is_set[key]) {
  7450. value = S[key]
  7451. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  7452. len += length(value) + length(field[++i])
  7453. substed = 1
  7454. } else
  7455. len += 1 + keylen
  7456. }
  7457. print line
  7458. }
  7459. _ACAWK
  7460. _ACEOF
  7461. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7462. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7463. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7464. else
  7465. cat
  7466. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  7467. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  7468. _ACEOF
  7469. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  7470. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  7471. # trailing colons and then remove the whole line if VPATH becomes empty
  7472. # (actually we leave an empty line to preserve line numbers).
  7473. if test "x$srcdir" = x.; then
  7474. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  7475. h
  7476. s///
  7477. s/^/:/
  7478. s/[ ]*$/:/
  7479. s/:\$(srcdir):/:/g
  7480. s/:\${srcdir}:/:/g
  7481. s/:@srcdir@:/:/g
  7482. s/^:*//
  7483. s/:*$//
  7484. x
  7485. s/\(=[ ]*\).*/\1/
  7486. G
  7487. s/\n//
  7488. s/^[^=]*=[ ]*$//
  7489. }'
  7490. fi
  7491. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7492. fi # test -n "$CONFIG_FILES"
  7493. eval set X " :F $CONFIG_FILES "
  7494. shift
  7495. for ac_tag
  7496. do
  7497. case $ac_tag in
  7498. :[FHLC]) ac_mode=$ac_tag; continue;;
  7499. esac
  7500. case $ac_mode$ac_tag in
  7501. :[FHL]*:*);;
  7502. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  7503. :[FH]-) ac_tag=-:-;;
  7504. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7505. esac
  7506. ac_save_IFS=$IFS
  7507. IFS=:
  7508. set x $ac_tag
  7509. IFS=$ac_save_IFS
  7510. shift
  7511. ac_file=$1
  7512. shift
  7513. case $ac_mode in
  7514. :L) ac_source=$1;;
  7515. :[FH])
  7516. ac_file_inputs=
  7517. for ac_f
  7518. do
  7519. case $ac_f in
  7520. -) ac_f="$ac_tmp/stdin";;
  7521. *) # Look for the file first in the build tree, then in the source tree
  7522. # (if the path is not absolute). The absolute path cannot be DOS-style,
  7523. # because $ac_f cannot contain `:'.
  7524. test -f "$ac_f" ||
  7525. case $ac_f in
  7526. [\\/$]*) false;;
  7527. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7528. esac ||
  7529. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  7530. esac
  7531. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7532. as_fn_append ac_file_inputs " '$ac_f'"
  7533. done
  7534. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7535. # use $as_me), people would be surprised to read:
  7536. # /* config.h. Generated by config.status. */
  7537. configure_input='Generated from '`
  7538. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7539. `' by configure.'
  7540. if test x"$ac_file" != x-; then
  7541. configure_input="$ac_file. $configure_input"
  7542. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7543. $as_echo "$as_me: creating $ac_file" >&6;}
  7544. fi
  7545. # Neutralize special characters interpreted by sed in replacement strings.
  7546. case $configure_input in #(
  7547. *\&* | *\|* | *\\* )
  7548. ac_sed_conf_input=`$as_echo "$configure_input" |
  7549. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7550. *) ac_sed_conf_input=$configure_input;;
  7551. esac
  7552. case $ac_tag in
  7553. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  7554. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  7555. esac
  7556. ;;
  7557. esac
  7558. ac_dir=`$as_dirname -- "$ac_file" ||
  7559. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7560. X"$ac_file" : 'X\(//\)[^/]' \| \
  7561. X"$ac_file" : 'X\(//\)$' \| \
  7562. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7563. $as_echo X"$ac_file" |
  7564. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7565. s//\1/
  7566. q
  7567. }
  7568. /^X\(\/\/\)[^/].*/{
  7569. s//\1/
  7570. q
  7571. }
  7572. /^X\(\/\/\)$/{
  7573. s//\1/
  7574. q
  7575. }
  7576. /^X\(\/\).*/{
  7577. s//\1/
  7578. q
  7579. }
  7580. s/.*/./; q'`
  7581. as_dir="$ac_dir"; as_fn_mkdir_p
  7582. ac_builddir=.
  7583. case "$ac_dir" in
  7584. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7585. *)
  7586. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7587. # A ".." for each directory in $ac_dir_suffix.
  7588. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7589. case $ac_top_builddir_sub in
  7590. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7591. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  7592. esac ;;
  7593. esac
  7594. ac_abs_top_builddir=$ac_pwd
  7595. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  7596. # for backward compatibility:
  7597. ac_top_builddir=$ac_top_build_prefix
  7598. case $srcdir in
  7599. .) # We are building in place.
  7600. ac_srcdir=.
  7601. ac_top_srcdir=$ac_top_builddir_sub
  7602. ac_abs_top_srcdir=$ac_pwd ;;
  7603. [\\/]* | ?:[\\/]* ) # Absolute name.
  7604. ac_srcdir=$srcdir$ac_dir_suffix;
  7605. ac_top_srcdir=$srcdir
  7606. ac_abs_top_srcdir=$srcdir ;;
  7607. *) # Relative name.
  7608. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  7609. ac_top_srcdir=$ac_top_build_prefix$srcdir
  7610. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  7611. esac
  7612. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  7613. case $ac_mode in
  7614. :F)
  7615. #
  7616. # CONFIG_FILE
  7617. #
  7618. _ACEOF
  7619. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7620. # If the template does not know about datarootdir, expand it.
  7621. # FIXME: This hack should be removed a few years after 2.60.
  7622. ac_datarootdir_hack=; ac_datarootdir_seen=
  7623. ac_sed_dataroot='
  7624. /datarootdir/ {
  7625. p
  7626. q
  7627. }
  7628. /@datadir@/p
  7629. /@docdir@/p
  7630. /@infodir@/p
  7631. /@localedir@/p
  7632. /@mandir@/p'
  7633. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  7634. *datarootdir*) ac_datarootdir_seen=yes;;
  7635. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  7636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  7637. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  7638. _ACEOF
  7639. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7640. ac_datarootdir_hack='
  7641. s&@datadir@&$datadir&g
  7642. s&@docdir@&$docdir&g
  7643. s&@infodir@&$infodir&g
  7644. s&@localedir@&$localedir&g
  7645. s&@mandir@&$mandir&g
  7646. s&\\\${datarootdir}&$datarootdir&g' ;;
  7647. esac
  7648. _ACEOF
  7649. # Neutralize VPATH when `$srcdir' = `.'.
  7650. # Shell code in configure.ac might set extrasub.
  7651. # FIXME: do we really want to maintain this feature?
  7652. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7653. ac_sed_extra="$ac_vpsub
  7654. $extrasub
  7655. _ACEOF
  7656. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7657. :t
  7658. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7659. s|@configure_input@|$ac_sed_conf_input|;t t
  7660. s&@top_builddir@&$ac_top_builddir_sub&;t t
  7661. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  7662. s&@srcdir@&$ac_srcdir&;t t
  7663. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  7664. s&@top_srcdir@&$ac_top_srcdir&;t t
  7665. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  7666. s&@builddir@&$ac_builddir&;t t
  7667. s&@abs_builddir@&$ac_abs_builddir&;t t
  7668. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  7669. $ac_datarootdir_hack
  7670. "
  7671. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  7672. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7673. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  7674. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  7675. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  7676. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  7677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7678. which seems to be undefined. Please make sure it is defined" >&5
  7679. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7680. which seems to be undefined. Please make sure it is defined" >&2;}
  7681. rm -f "$ac_tmp/stdin"
  7682. case $ac_file in
  7683. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  7684. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  7685. esac \
  7686. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7687. ;;
  7688. esac
  7689. done # for ac_tag
  7690. as_fn_exit 0
  7691. _ACEOF
  7692. ac_clean_files=$ac_clean_files_save
  7693. test $ac_write_fail = 0 ||
  7694. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7695. # configure is writing to config.log, and then calls config.status.
  7696. # config.status does its own redirection, appending to config.log.
  7697. # Unfortunately, on DOS this fails, as config.log is still kept open
  7698. # by configure, so config.status won't be able to write to it; its
  7699. # output is simply discarded. So we exec the FD to /dev/null,
  7700. # effectively closing config.log, so it can be properly (re)opened and
  7701. # appended to by config.status. When coming back to configure, we
  7702. # need to make the FD available again.
  7703. if test "$no_create" != yes; then
  7704. ac_cs_success=:
  7705. ac_config_status_args=
  7706. test "$silent" = yes &&
  7707. ac_config_status_args="$ac_config_status_args --quiet"
  7708. exec 5>/dev/null
  7709. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7710. exec 5>>config.log
  7711. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7712. # would make configure fail if this is the last instruction.
  7713. $ac_cs_success || as_fn_exit 1
  7714. fi
  7715. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7717. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  7718. fi