configure 220 KB

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