configure 198 KB

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