configure 223 KB

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