configure 371 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME=
  531. PACKAGE_TARNAME=
  532. PACKAGE_VERSION=
  533. PACKAGE_STRING=
  534. PACKAGE_BUGREPORT=
  535. PACKAGE_URL=
  536. ac_unique_file="Makefile.in"
  537. # Factoring default headers for most tests.
  538. ac_includes_default="\
  539. #include <stdio.h>
  540. #ifdef HAVE_SYS_TYPES_H
  541. # include <sys/types.h>
  542. #endif
  543. #ifdef HAVE_SYS_STAT_H
  544. # include <sys/stat.h>
  545. #endif
  546. #ifdef STDC_HEADERS
  547. # include <stdlib.h>
  548. # include <stddef.h>
  549. #else
  550. # ifdef HAVE_STDLIB_H
  551. # include <stdlib.h>
  552. # endif
  553. #endif
  554. #ifdef HAVE_STRING_H
  555. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  556. # include <memory.h>
  557. # endif
  558. # include <string.h>
  559. #endif
  560. #ifdef HAVE_STRINGS_H
  561. # include <strings.h>
  562. #endif
  563. #ifdef HAVE_INTTYPES_H
  564. # include <inttypes.h>
  565. #endif
  566. #ifdef HAVE_STDINT_H
  567. # include <stdint.h>
  568. #endif
  569. #ifdef HAVE_UNISTD_H
  570. # include <unistd.h>
  571. #endif"
  572. ac_subst_vars='LTLIBOBJS
  573. LIBOBJS
  574. cfgoutputs_out
  575. cfgoutputs_in
  576. cfghdrs_out
  577. cfghdrs_in
  578. enable_initial_exec_tls
  579. enable_zone_allocator
  580. enable_tls
  581. enable_lazy_lock
  582. libdl
  583. enable_opt_safety_checks
  584. enable_readlinkat
  585. enable_log
  586. enable_cache_oblivious
  587. enable_xmalloc
  588. enable_utrace
  589. enable_fill
  590. enable_prof
  591. enable_experimental_smallocx
  592. enable_stats
  593. enable_debug
  594. je_
  595. install_suffix
  596. private_namespace
  597. JEMALLOC_CPREFIX
  598. JEMALLOC_PREFIX
  599. enable_static
  600. enable_shared
  601. enable_doc
  602. AUTOCONF
  603. LD
  604. RANLIB
  605. INSTALL_DATA
  606. INSTALL_SCRIPT
  607. INSTALL_PROGRAM
  608. enable_autogen
  609. RPATH_EXTRA
  610. LM
  611. CC_MM
  612. DUMP_SYMS
  613. AROUT
  614. ARFLAGS
  615. MKLIB
  616. TEST_LD_MODE
  617. LDTARGET
  618. CTARGET
  619. PIC_CFLAGS
  620. SOREV
  621. EXTRA_LDFLAGS
  622. DSO_LDFLAGS
  623. link_whole_archive
  624. libprefix
  625. exe
  626. a
  627. o
  628. importlib
  629. so
  630. LD_PRELOAD_VAR
  631. RPATH
  632. abi
  633. jemalloc_version_gid
  634. jemalloc_version_nrev
  635. jemalloc_version_bugfix
  636. jemalloc_version_minor
  637. jemalloc_version_major
  638. jemalloc_version
  639. AWK
  640. NM
  641. AR
  642. host_os
  643. host_vendor
  644. host_cpu
  645. host
  646. build_os
  647. build_vendor
  648. build_cpu
  649. build
  650. EGREP
  651. GREP
  652. EXTRA_CXXFLAGS
  653. SPECIFIED_CXXFLAGS
  654. CONFIGURE_CXXFLAGS
  655. enable_cxx
  656. HAVE_CXX14
  657. ac_ct_CXX
  658. CXXFLAGS
  659. CXX
  660. CPP
  661. EXTRA_CFLAGS
  662. SPECIFIED_CFLAGS
  663. CONFIGURE_CFLAGS
  664. OBJEXT
  665. EXEEXT
  666. ac_ct_CC
  667. CPPFLAGS
  668. LDFLAGS
  669. CFLAGS
  670. CC
  671. XSLROOT
  672. XSLTPROC
  673. MANDIR
  674. DATADIR
  675. LIBDIR
  676. INCLUDEDIR
  677. BINDIR
  678. PREFIX
  679. abs_objroot
  680. objroot
  681. abs_srcroot
  682. srcroot
  683. rev
  684. CONFIG
  685. target_alias
  686. host_alias
  687. build_alias
  688. LIBS
  689. ECHO_T
  690. ECHO_N
  691. ECHO_C
  692. DEFS
  693. mandir
  694. localedir
  695. libdir
  696. psdir
  697. pdfdir
  698. dvidir
  699. htmldir
  700. infodir
  701. docdir
  702. oldincludedir
  703. includedir
  704. runstatedir
  705. localstatedir
  706. sharedstatedir
  707. sysconfdir
  708. datadir
  709. datarootdir
  710. libexecdir
  711. sbindir
  712. bindir
  713. program_transform_name
  714. prefix
  715. exec_prefix
  716. PACKAGE_URL
  717. PACKAGE_BUGREPORT
  718. PACKAGE_STRING
  719. PACKAGE_VERSION
  720. PACKAGE_TARNAME
  721. PACKAGE_NAME
  722. PATH_SEPARATOR
  723. SHELL'
  724. ac_subst_files=''
  725. ac_user_opts='
  726. enable_option_checking
  727. with_xslroot
  728. enable_cxx
  729. with_lg_vaddr
  730. with_version
  731. with_rpath
  732. enable_autogen
  733. enable_doc
  734. enable_shared
  735. enable_static
  736. with_mangling
  737. with_jemalloc_prefix
  738. with_export
  739. with_private_namespace
  740. with_install_suffix
  741. with_malloc_conf
  742. enable_debug
  743. enable_stats
  744. enable_experimental_smallocx
  745. enable_prof
  746. enable_prof_libunwind
  747. with_static_libunwind
  748. enable_prof_libgcc
  749. enable_prof_gcc
  750. enable_fill
  751. enable_utrace
  752. enable_xmalloc
  753. enable_cache_oblivious
  754. enable_log
  755. enable_readlinkat
  756. enable_opt_safety_checks
  757. with_lg_quantum
  758. with_lg_page
  759. with_lg_hugepage
  760. enable_libdl
  761. enable_syscall
  762. enable_lazy_lock
  763. enable_zone_allocator
  764. enable_initial_exec_tls
  765. '
  766. ac_precious_vars='build_alias
  767. host_alias
  768. target_alias
  769. CC
  770. CFLAGS
  771. LDFLAGS
  772. LIBS
  773. CPPFLAGS
  774. CPP
  775. CXX
  776. CXXFLAGS
  777. CCC'
  778. # Initialize some variables set by options.
  779. ac_init_help=
  780. ac_init_version=false
  781. ac_unrecognized_opts=
  782. ac_unrecognized_sep=
  783. # The variables have the same names as the options, with
  784. # dashes changed to underlines.
  785. cache_file=/dev/null
  786. exec_prefix=NONE
  787. no_create=
  788. no_recursion=
  789. prefix=NONE
  790. program_prefix=NONE
  791. program_suffix=NONE
  792. program_transform_name=s,x,x,
  793. silent=
  794. site=
  795. srcdir=
  796. verbose=
  797. x_includes=NONE
  798. x_libraries=NONE
  799. # Installation directory options.
  800. # These are left unexpanded so users can "make install exec_prefix=/foo"
  801. # and all the variables that are supposed to be based on exec_prefix
  802. # by default will actually change.
  803. # Use braces instead of parens because sh, perl, etc. also accept them.
  804. # (The list follows the same order as the GNU Coding Standards.)
  805. bindir='${exec_prefix}/bin'
  806. sbindir='${exec_prefix}/sbin'
  807. libexecdir='${exec_prefix}/libexec'
  808. datarootdir='${prefix}/share'
  809. datadir='${datarootdir}'
  810. sysconfdir='${prefix}/etc'
  811. sharedstatedir='${prefix}/com'
  812. localstatedir='${prefix}/var'
  813. runstatedir='${localstatedir}/run'
  814. includedir='${prefix}/include'
  815. oldincludedir='/usr/include'
  816. docdir='${datarootdir}/doc/${PACKAGE}'
  817. infodir='${datarootdir}/info'
  818. htmldir='${docdir}'
  819. dvidir='${docdir}'
  820. pdfdir='${docdir}'
  821. psdir='${docdir}'
  822. libdir='${exec_prefix}/lib'
  823. localedir='${datarootdir}/locale'
  824. mandir='${datarootdir}/man'
  825. ac_prev=
  826. ac_dashdash=
  827. for ac_option
  828. do
  829. # If the previous option needs an argument, assign it.
  830. if test -n "$ac_prev"; then
  831. eval $ac_prev=\$ac_option
  832. ac_prev=
  833. continue
  834. fi
  835. case $ac_option in
  836. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  837. *=) ac_optarg= ;;
  838. *) ac_optarg=yes ;;
  839. esac
  840. # Accept the important Cygnus configure options, so we can diagnose typos.
  841. case $ac_dashdash$ac_option in
  842. --)
  843. ac_dashdash=yes ;;
  844. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  845. ac_prev=bindir ;;
  846. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  847. bindir=$ac_optarg ;;
  848. -build | --build | --buil | --bui | --bu)
  849. ac_prev=build_alias ;;
  850. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  851. build_alias=$ac_optarg ;;
  852. -cache-file | --cache-file | --cache-fil | --cache-fi \
  853. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  854. ac_prev=cache_file ;;
  855. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  856. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  857. cache_file=$ac_optarg ;;
  858. --config-cache | -C)
  859. cache_file=config.cache ;;
  860. -datadir | --datadir | --datadi | --datad)
  861. ac_prev=datadir ;;
  862. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  863. datadir=$ac_optarg ;;
  864. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  865. | --dataroo | --dataro | --datar)
  866. ac_prev=datarootdir ;;
  867. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  868. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  869. datarootdir=$ac_optarg ;;
  870. -disable-* | --disable-*)
  871. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  872. # Reject names that are not valid shell variable names.
  873. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  874. as_fn_error $? "invalid feature name: $ac_useropt"
  875. ac_useropt_orig=$ac_useropt
  876. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  877. case $ac_user_opts in
  878. *"
  879. "enable_$ac_useropt"
  880. "*) ;;
  881. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  882. ac_unrecognized_sep=', ';;
  883. esac
  884. eval enable_$ac_useropt=no ;;
  885. -docdir | --docdir | --docdi | --doc | --do)
  886. ac_prev=docdir ;;
  887. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  888. docdir=$ac_optarg ;;
  889. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  890. ac_prev=dvidir ;;
  891. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  892. dvidir=$ac_optarg ;;
  893. -enable-* | --enable-*)
  894. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  895. # Reject names that are not valid shell variable names.
  896. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  897. as_fn_error $? "invalid feature name: $ac_useropt"
  898. ac_useropt_orig=$ac_useropt
  899. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  900. case $ac_user_opts in
  901. *"
  902. "enable_$ac_useropt"
  903. "*) ;;
  904. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  905. ac_unrecognized_sep=', ';;
  906. esac
  907. eval enable_$ac_useropt=\$ac_optarg ;;
  908. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  909. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  910. | --exec | --exe | --ex)
  911. ac_prev=exec_prefix ;;
  912. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  913. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  914. | --exec=* | --exe=* | --ex=*)
  915. exec_prefix=$ac_optarg ;;
  916. -gas | --gas | --ga | --g)
  917. # Obsolete; use --with-gas.
  918. with_gas=yes ;;
  919. -help | --help | --hel | --he | -h)
  920. ac_init_help=long ;;
  921. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  922. ac_init_help=recursive ;;
  923. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  924. ac_init_help=short ;;
  925. -host | --host | --hos | --ho)
  926. ac_prev=host_alias ;;
  927. -host=* | --host=* | --hos=* | --ho=*)
  928. host_alias=$ac_optarg ;;
  929. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  930. ac_prev=htmldir ;;
  931. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  932. | --ht=*)
  933. htmldir=$ac_optarg ;;
  934. -includedir | --includedir | --includedi | --included | --include \
  935. | --includ | --inclu | --incl | --inc)
  936. ac_prev=includedir ;;
  937. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  938. | --includ=* | --inclu=* | --incl=* | --inc=*)
  939. includedir=$ac_optarg ;;
  940. -infodir | --infodir | --infodi | --infod | --info | --inf)
  941. ac_prev=infodir ;;
  942. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  943. infodir=$ac_optarg ;;
  944. -libdir | --libdir | --libdi | --libd)
  945. ac_prev=libdir ;;
  946. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  947. libdir=$ac_optarg ;;
  948. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  949. | --libexe | --libex | --libe)
  950. ac_prev=libexecdir ;;
  951. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  952. | --libexe=* | --libex=* | --libe=*)
  953. libexecdir=$ac_optarg ;;
  954. -localedir | --localedir | --localedi | --localed | --locale)
  955. ac_prev=localedir ;;
  956. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  957. localedir=$ac_optarg ;;
  958. -localstatedir | --localstatedir | --localstatedi | --localstated \
  959. | --localstate | --localstat | --localsta | --localst | --locals)
  960. ac_prev=localstatedir ;;
  961. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  962. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  963. localstatedir=$ac_optarg ;;
  964. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  965. ac_prev=mandir ;;
  966. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  967. mandir=$ac_optarg ;;
  968. -nfp | --nfp | --nf)
  969. # Obsolete; use --without-fp.
  970. with_fp=no ;;
  971. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  972. | --no-cr | --no-c | -n)
  973. no_create=yes ;;
  974. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  975. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  976. no_recursion=yes ;;
  977. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  978. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  979. | --oldin | --oldi | --old | --ol | --o)
  980. ac_prev=oldincludedir ;;
  981. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  982. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  983. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  984. oldincludedir=$ac_optarg ;;
  985. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  986. ac_prev=prefix ;;
  987. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  988. prefix=$ac_optarg ;;
  989. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  990. | --program-pre | --program-pr | --program-p)
  991. ac_prev=program_prefix ;;
  992. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  993. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  994. program_prefix=$ac_optarg ;;
  995. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  996. | --program-suf | --program-su | --program-s)
  997. ac_prev=program_suffix ;;
  998. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  999. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1000. program_suffix=$ac_optarg ;;
  1001. -program-transform-name | --program-transform-name \
  1002. | --program-transform-nam | --program-transform-na \
  1003. | --program-transform-n | --program-transform- \
  1004. | --program-transform | --program-transfor \
  1005. | --program-transfo | --program-transf \
  1006. | --program-trans | --program-tran \
  1007. | --progr-tra | --program-tr | --program-t)
  1008. ac_prev=program_transform_name ;;
  1009. -program-transform-name=* | --program-transform-name=* \
  1010. | --program-transform-nam=* | --program-transform-na=* \
  1011. | --program-transform-n=* | --program-transform-=* \
  1012. | --program-transform=* | --program-transfor=* \
  1013. | --program-transfo=* | --program-transf=* \
  1014. | --program-trans=* | --program-tran=* \
  1015. | --progr-tra=* | --program-tr=* | --program-t=*)
  1016. program_transform_name=$ac_optarg ;;
  1017. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1018. ac_prev=pdfdir ;;
  1019. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1020. pdfdir=$ac_optarg ;;
  1021. -psdir | --psdir | --psdi | --psd | --ps)
  1022. ac_prev=psdir ;;
  1023. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1024. psdir=$ac_optarg ;;
  1025. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1026. | -silent | --silent | --silen | --sile | --sil)
  1027. silent=yes ;;
  1028. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1029. | --runstate | --runstat | --runsta | --runst | --runs \
  1030. | --run | --ru | --r)
  1031. ac_prev=runstatedir ;;
  1032. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1033. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1034. | --run=* | --ru=* | --r=*)
  1035. runstatedir=$ac_optarg ;;
  1036. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1037. ac_prev=sbindir ;;
  1038. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1039. | --sbi=* | --sb=*)
  1040. sbindir=$ac_optarg ;;
  1041. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1042. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1043. | --sharedst | --shareds | --shared | --share | --shar \
  1044. | --sha | --sh)
  1045. ac_prev=sharedstatedir ;;
  1046. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1047. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1048. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1049. | --sha=* | --sh=*)
  1050. sharedstatedir=$ac_optarg ;;
  1051. -site | --site | --sit)
  1052. ac_prev=site ;;
  1053. -site=* | --site=* | --sit=*)
  1054. site=$ac_optarg ;;
  1055. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1056. ac_prev=srcdir ;;
  1057. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1058. srcdir=$ac_optarg ;;
  1059. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1060. | --syscon | --sysco | --sysc | --sys | --sy)
  1061. ac_prev=sysconfdir ;;
  1062. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1063. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1064. sysconfdir=$ac_optarg ;;
  1065. -target | --target | --targe | --targ | --tar | --ta | --t)
  1066. ac_prev=target_alias ;;
  1067. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1068. target_alias=$ac_optarg ;;
  1069. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1070. verbose=yes ;;
  1071. -version | --version | --versio | --versi | --vers | -V)
  1072. ac_init_version=: ;;
  1073. -with-* | --with-*)
  1074. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1075. # Reject names that are not valid shell variable names.
  1076. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1077. as_fn_error $? "invalid package name: $ac_useropt"
  1078. ac_useropt_orig=$ac_useropt
  1079. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1080. case $ac_user_opts in
  1081. *"
  1082. "with_$ac_useropt"
  1083. "*) ;;
  1084. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1085. ac_unrecognized_sep=', ';;
  1086. esac
  1087. eval with_$ac_useropt=\$ac_optarg ;;
  1088. -without-* | --without-*)
  1089. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1090. # Reject names that are not valid shell variable names.
  1091. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1092. as_fn_error $? "invalid package name: $ac_useropt"
  1093. ac_useropt_orig=$ac_useropt
  1094. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1095. case $ac_user_opts in
  1096. *"
  1097. "with_$ac_useropt"
  1098. "*) ;;
  1099. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1100. ac_unrecognized_sep=', ';;
  1101. esac
  1102. eval with_$ac_useropt=no ;;
  1103. --x)
  1104. # Obsolete; use --with-x.
  1105. with_x=yes ;;
  1106. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1107. | --x-incl | --x-inc | --x-in | --x-i)
  1108. ac_prev=x_includes ;;
  1109. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1110. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1111. x_includes=$ac_optarg ;;
  1112. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1113. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1114. ac_prev=x_libraries ;;
  1115. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1116. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1117. x_libraries=$ac_optarg ;;
  1118. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1119. Try \`$0 --help' for more information"
  1120. ;;
  1121. *=*)
  1122. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1123. # Reject names that are not valid shell variable names.
  1124. case $ac_envvar in #(
  1125. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1126. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1127. esac
  1128. eval $ac_envvar=\$ac_optarg
  1129. export $ac_envvar ;;
  1130. *)
  1131. # FIXME: should be removed in autoconf 3.0.
  1132. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1133. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1134. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1135. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1136. ;;
  1137. esac
  1138. done
  1139. if test -n "$ac_prev"; then
  1140. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1141. as_fn_error $? "missing argument to $ac_option"
  1142. fi
  1143. if test -n "$ac_unrecognized_opts"; then
  1144. case $enable_option_checking in
  1145. no) ;;
  1146. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1147. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1148. esac
  1149. fi
  1150. # Check all directory arguments for consistency.
  1151. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1152. datadir sysconfdir sharedstatedir localstatedir includedir \
  1153. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1154. libdir localedir mandir runstatedir
  1155. do
  1156. eval ac_val=\$$ac_var
  1157. # Remove trailing slashes.
  1158. case $ac_val in
  1159. */ )
  1160. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1161. eval $ac_var=\$ac_val;;
  1162. esac
  1163. # Be sure to have absolute directory names.
  1164. case $ac_val in
  1165. [\\/$]* | ?:[\\/]* ) continue;;
  1166. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1167. esac
  1168. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1169. done
  1170. # There might be people who depend on the old broken behavior: `$host'
  1171. # used to hold the argument of --host etc.
  1172. # FIXME: To remove some day.
  1173. build=$build_alias
  1174. host=$host_alias
  1175. target=$target_alias
  1176. # FIXME: To remove some day.
  1177. if test "x$host_alias" != x; then
  1178. if test "x$build_alias" = x; then
  1179. cross_compiling=maybe
  1180. elif test "x$build_alias" != "x$host_alias"; then
  1181. cross_compiling=yes
  1182. fi
  1183. fi
  1184. ac_tool_prefix=
  1185. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1186. test "$silent" = yes && exec 6>/dev/null
  1187. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1188. ac_ls_di=`ls -di .` &&
  1189. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1190. as_fn_error $? "working directory cannot be determined"
  1191. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1192. as_fn_error $? "pwd does not report name of working directory"
  1193. # Find the source files, if location was not specified.
  1194. if test -z "$srcdir"; then
  1195. ac_srcdir_defaulted=yes
  1196. # Try the directory containing this script, then the parent directory.
  1197. ac_confdir=`$as_dirname -- "$as_myself" ||
  1198. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1199. X"$as_myself" : 'X\(//\)[^/]' \| \
  1200. X"$as_myself" : 'X\(//\)$' \| \
  1201. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1202. $as_echo X"$as_myself" |
  1203. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1204. s//\1/
  1205. q
  1206. }
  1207. /^X\(\/\/\)[^/].*/{
  1208. s//\1/
  1209. q
  1210. }
  1211. /^X\(\/\/\)$/{
  1212. s//\1/
  1213. q
  1214. }
  1215. /^X\(\/\).*/{
  1216. s//\1/
  1217. q
  1218. }
  1219. s/.*/./; q'`
  1220. srcdir=$ac_confdir
  1221. if test ! -r "$srcdir/$ac_unique_file"; then
  1222. srcdir=..
  1223. fi
  1224. else
  1225. ac_srcdir_defaulted=no
  1226. fi
  1227. if test ! -r "$srcdir/$ac_unique_file"; then
  1228. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1229. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1230. fi
  1231. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1232. ac_abs_confdir=`(
  1233. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1234. pwd)`
  1235. # When building in place, set srcdir=.
  1236. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1237. srcdir=.
  1238. fi
  1239. # Remove unnecessary trailing slashes from srcdir.
  1240. # Double slashes in file names in object file debugging info
  1241. # mess up M-x gdb in Emacs.
  1242. case $srcdir in
  1243. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1244. esac
  1245. for ac_var in $ac_precious_vars; do
  1246. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1247. eval ac_env_${ac_var}_value=\$${ac_var}
  1248. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1249. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1250. done
  1251. #
  1252. # Report the --help message.
  1253. #
  1254. if test "$ac_init_help" = "long"; then
  1255. # Omit some internal or obsolete options to make the list less imposing.
  1256. # This message is too long to be a string in the A/UX 3.1 sh.
  1257. cat <<_ACEOF
  1258. \`configure' configures this package to adapt to many kinds of systems.
  1259. Usage: $0 [OPTION]... [VAR=VALUE]...
  1260. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1261. VAR=VALUE. See below for descriptions of some of the useful variables.
  1262. Defaults for the options are specified in brackets.
  1263. Configuration:
  1264. -h, --help display this help and exit
  1265. --help=short display options specific to this package
  1266. --help=recursive display the short help of all the included packages
  1267. -V, --version display version information and exit
  1268. -q, --quiet, --silent do not print \`checking ...' messages
  1269. --cache-file=FILE cache test results in FILE [disabled]
  1270. -C, --config-cache alias for \`--cache-file=config.cache'
  1271. -n, --no-create do not create output files
  1272. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1273. Installation directories:
  1274. --prefix=PREFIX install architecture-independent files in PREFIX
  1275. [$ac_default_prefix]
  1276. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1277. [PREFIX]
  1278. By default, \`make install' will install all the files in
  1279. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1280. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1281. for instance \`--prefix=\$HOME'.
  1282. For better control, use the options below.
  1283. Fine tuning of the installation directories:
  1284. --bindir=DIR user executables [EPREFIX/bin]
  1285. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1286. --libexecdir=DIR program executables [EPREFIX/libexec]
  1287. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1288. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1289. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1290. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1291. --libdir=DIR object code libraries [EPREFIX/lib]
  1292. --includedir=DIR C header files [PREFIX/include]
  1293. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1294. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1295. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1296. --infodir=DIR info documentation [DATAROOTDIR/info]
  1297. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1298. --mandir=DIR man documentation [DATAROOTDIR/man]
  1299. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1300. --htmldir=DIR html documentation [DOCDIR]
  1301. --dvidir=DIR dvi documentation [DOCDIR]
  1302. --pdfdir=DIR pdf documentation [DOCDIR]
  1303. --psdir=DIR ps documentation [DOCDIR]
  1304. _ACEOF
  1305. cat <<\_ACEOF
  1306. System types:
  1307. --build=BUILD configure for building on BUILD [guessed]
  1308. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1309. _ACEOF
  1310. fi
  1311. if test -n "$ac_init_help"; then
  1312. cat <<\_ACEOF
  1313. Optional Features:
  1314. --disable-option-checking ignore unrecognized --enable/--with options
  1315. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1316. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1317. --disable-cxx Disable C++ integration
  1318. --enable-autogen Automatically regenerate configure output
  1319. --enable-documentation Build documentation
  1320. --enable-shared Build shared libaries
  1321. --enable-static Build static libaries
  1322. --enable-debug Build debugging code
  1323. --disable-stats Disable statistics calculation/reporting
  1324. --enable-experimental-smallocx
  1325. Enable experimental smallocx API
  1326. --enable-prof Enable allocation profiling
  1327. --enable-prof-libunwind Use libunwind for backtracing
  1328. --disable-prof-libgcc Do not use libgcc for backtracing
  1329. --disable-prof-gcc Do not use gcc intrinsics for backtracing
  1330. --disable-fill Disable support for junk/zero filling
  1331. --enable-utrace Enable utrace(2)-based tracing
  1332. --enable-xmalloc Support xmalloc option
  1333. --disable-cache-oblivious
  1334. Disable support for cache-oblivious allocation
  1335. alignment
  1336. --enable-log Support debug logging
  1337. --enable-readlinkat Use readlinkat over readlink
  1338. --enable-opt-safety-checks
  1339. Perform certain low-overhead checks, even in opt
  1340. mode
  1341. --disable-libdl Do not use libdl
  1342. --disable-syscall Disable use of syscall(2)
  1343. --enable-lazy-lock Enable lazy locking (only lock when multi-threaded)
  1344. --disable-zone-allocator
  1345. Disable zone allocator for Darwin
  1346. --disable-initial-exec-tls
  1347. Disable the initial-exec tls model
  1348. Optional Packages:
  1349. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1350. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1351. --with-xslroot=<path> XSL stylesheet root path
  1352. --with-lg-vaddr=<lg-vaddr>
  1353. Number of significant virtual address bits
  1354. --with-version=<major>.<minor>.<bugfix>-<nrev>-g<gid>
  1355. Version string
  1356. --with-rpath=<rpath> Colon-separated rpath (ELF systems only)
  1357. --with-mangling=<map> Mangle symbols in <map>
  1358. --with-jemalloc-prefix=<prefix>
  1359. Prefix to prepend to all public APIs
  1360. --without-export disable exporting jemalloc public APIs
  1361. --with-private-namespace=<prefix>
  1362. Prefix to prepend to all library-private APIs
  1363. --with-install-suffix=<suffix>
  1364. Suffix to append to all installed files
  1365. --with-malloc-conf=<malloc_conf>
  1366. config.malloc_conf options string
  1367. --with-static-libunwind=<libunwind.a>
  1368. Path to static libunwind library; use rather than
  1369. dynamically linking
  1370. --with-lg-quantum=<lg-quantum>
  1371. Base 2 log of minimum allocation alignment
  1372. --with-lg-page=<lg-page>
  1373. Base 2 log of system page size
  1374. --with-lg-hugepage=<lg-hugepage>
  1375. Base 2 log of system huge page size
  1376. Some influential environment variables:
  1377. CC C compiler command
  1378. CFLAGS C compiler flags
  1379. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1380. nonstandard directory <lib dir>
  1381. LIBS libraries to pass to the linker, e.g. -l<library>
  1382. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1383. you have headers in a nonstandard directory <include dir>
  1384. CPP C preprocessor
  1385. CXX C++ compiler command
  1386. CXXFLAGS C++ compiler flags
  1387. Use these variables to override the choices made by `configure' or to help
  1388. it to find libraries and programs with nonstandard names/locations.
  1389. Report bugs to the package provider.
  1390. _ACEOF
  1391. ac_status=$?
  1392. fi
  1393. if test "$ac_init_help" = "recursive"; then
  1394. # If there are subdirs, report their specific --help.
  1395. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1396. test -d "$ac_dir" ||
  1397. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1398. continue
  1399. ac_builddir=.
  1400. case "$ac_dir" in
  1401. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1402. *)
  1403. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1404. # A ".." for each directory in $ac_dir_suffix.
  1405. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1406. case $ac_top_builddir_sub in
  1407. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1408. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1409. esac ;;
  1410. esac
  1411. ac_abs_top_builddir=$ac_pwd
  1412. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1413. # for backward compatibility:
  1414. ac_top_builddir=$ac_top_build_prefix
  1415. case $srcdir in
  1416. .) # We are building in place.
  1417. ac_srcdir=.
  1418. ac_top_srcdir=$ac_top_builddir_sub
  1419. ac_abs_top_srcdir=$ac_pwd ;;
  1420. [\\/]* | ?:[\\/]* ) # Absolute name.
  1421. ac_srcdir=$srcdir$ac_dir_suffix;
  1422. ac_top_srcdir=$srcdir
  1423. ac_abs_top_srcdir=$srcdir ;;
  1424. *) # Relative name.
  1425. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1426. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1427. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1428. esac
  1429. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1430. cd "$ac_dir" || { ac_status=$?; continue; }
  1431. # Check for guested configure.
  1432. if test -f "$ac_srcdir/configure.gnu"; then
  1433. echo &&
  1434. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1435. elif test -f "$ac_srcdir/configure"; then
  1436. echo &&
  1437. $SHELL "$ac_srcdir/configure" --help=recursive
  1438. else
  1439. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1440. fi || ac_status=$?
  1441. cd "$ac_pwd" || { ac_status=$?; break; }
  1442. done
  1443. fi
  1444. test -n "$ac_init_help" && exit $ac_status
  1445. if $ac_init_version; then
  1446. cat <<\_ACEOF
  1447. configure
  1448. generated by GNU Autoconf 2.69
  1449. Copyright (C) 2012 Free Software Foundation, Inc.
  1450. This configure script is free software; the Free Software Foundation
  1451. gives unlimited permission to copy, distribute and modify it.
  1452. _ACEOF
  1453. exit
  1454. fi
  1455. ## ------------------------ ##
  1456. ## Autoconf initialization. ##
  1457. ## ------------------------ ##
  1458. # ac_fn_c_try_compile LINENO
  1459. # --------------------------
  1460. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1461. ac_fn_c_try_compile ()
  1462. {
  1463. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1464. rm -f conftest.$ac_objext
  1465. if { { ac_try="$ac_compile"
  1466. case "(($ac_try" in
  1467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1468. *) ac_try_echo=$ac_try;;
  1469. esac
  1470. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1471. $as_echo "$ac_try_echo"; } >&5
  1472. (eval "$ac_compile") 2>conftest.err
  1473. ac_status=$?
  1474. if test -s conftest.err; then
  1475. grep -v '^ *+' conftest.err >conftest.er1
  1476. cat conftest.er1 >&5
  1477. mv -f conftest.er1 conftest.err
  1478. fi
  1479. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1480. test $ac_status = 0; } && {
  1481. test -z "$ac_c_werror_flag" ||
  1482. test ! -s conftest.err
  1483. } && test -s conftest.$ac_objext; then :
  1484. ac_retval=0
  1485. else
  1486. $as_echo "$as_me: failed program was:" >&5
  1487. sed 's/^/| /' conftest.$ac_ext >&5
  1488. ac_retval=1
  1489. fi
  1490. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1491. as_fn_set_status $ac_retval
  1492. } # ac_fn_c_try_compile
  1493. # ac_fn_c_try_cpp LINENO
  1494. # ----------------------
  1495. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1496. ac_fn_c_try_cpp ()
  1497. {
  1498. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1499. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1500. case "(($ac_try" in
  1501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1502. *) ac_try_echo=$ac_try;;
  1503. esac
  1504. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1505. $as_echo "$ac_try_echo"; } >&5
  1506. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1507. ac_status=$?
  1508. if test -s conftest.err; then
  1509. grep -v '^ *+' conftest.err >conftest.er1
  1510. cat conftest.er1 >&5
  1511. mv -f conftest.er1 conftest.err
  1512. fi
  1513. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1514. test $ac_status = 0; } > conftest.i && {
  1515. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1516. test ! -s conftest.err
  1517. }; then :
  1518. ac_retval=0
  1519. else
  1520. $as_echo "$as_me: failed program was:" >&5
  1521. sed 's/^/| /' conftest.$ac_ext >&5
  1522. ac_retval=1
  1523. fi
  1524. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1525. as_fn_set_status $ac_retval
  1526. } # ac_fn_c_try_cpp
  1527. # ac_fn_cxx_try_compile LINENO
  1528. # ----------------------------
  1529. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1530. ac_fn_cxx_try_compile ()
  1531. {
  1532. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1533. rm -f conftest.$ac_objext
  1534. if { { ac_try="$ac_compile"
  1535. case "(($ac_try" in
  1536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1537. *) ac_try_echo=$ac_try;;
  1538. esac
  1539. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1540. $as_echo "$ac_try_echo"; } >&5
  1541. (eval "$ac_compile") 2>conftest.err
  1542. ac_status=$?
  1543. if test -s conftest.err; then
  1544. grep -v '^ *+' conftest.err >conftest.er1
  1545. cat conftest.er1 >&5
  1546. mv -f conftest.er1 conftest.err
  1547. fi
  1548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1549. test $ac_status = 0; } && {
  1550. test -z "$ac_cxx_werror_flag" ||
  1551. test ! -s conftest.err
  1552. } && test -s conftest.$ac_objext; then :
  1553. ac_retval=0
  1554. else
  1555. $as_echo "$as_me: failed program was:" >&5
  1556. sed 's/^/| /' conftest.$ac_ext >&5
  1557. ac_retval=1
  1558. fi
  1559. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1560. as_fn_set_status $ac_retval
  1561. } # ac_fn_cxx_try_compile
  1562. # ac_fn_c_try_link LINENO
  1563. # -----------------------
  1564. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1565. ac_fn_c_try_link ()
  1566. {
  1567. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1568. rm -f conftest.$ac_objext conftest$ac_exeext
  1569. if { { ac_try="$ac_link"
  1570. case "(($ac_try" in
  1571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1572. *) ac_try_echo=$ac_try;;
  1573. esac
  1574. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1575. $as_echo "$ac_try_echo"; } >&5
  1576. (eval "$ac_link") 2>conftest.err
  1577. ac_status=$?
  1578. if test -s conftest.err; then
  1579. grep -v '^ *+' conftest.err >conftest.er1
  1580. cat conftest.er1 >&5
  1581. mv -f conftest.er1 conftest.err
  1582. fi
  1583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1584. test $ac_status = 0; } && {
  1585. test -z "$ac_c_werror_flag" ||
  1586. test ! -s conftest.err
  1587. } && test -s conftest$ac_exeext && {
  1588. test "$cross_compiling" = yes ||
  1589. test -x conftest$ac_exeext
  1590. }; then :
  1591. ac_retval=0
  1592. else
  1593. $as_echo "$as_me: failed program was:" >&5
  1594. sed 's/^/| /' conftest.$ac_ext >&5
  1595. ac_retval=1
  1596. fi
  1597. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1598. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1599. # interfere with the next link command; also delete a directory that is
  1600. # left behind by Apple's compiler. We do this before executing the actions.
  1601. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1602. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1603. as_fn_set_status $ac_retval
  1604. } # ac_fn_c_try_link
  1605. # ac_fn_c_try_run LINENO
  1606. # ----------------------
  1607. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1608. # that executables *can* be run.
  1609. ac_fn_c_try_run ()
  1610. {
  1611. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1612. if { { ac_try="$ac_link"
  1613. case "(($ac_try" in
  1614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1615. *) ac_try_echo=$ac_try;;
  1616. esac
  1617. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1618. $as_echo "$ac_try_echo"; } >&5
  1619. (eval "$ac_link") 2>&5
  1620. ac_status=$?
  1621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1622. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1623. { { case "(($ac_try" in
  1624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1625. *) ac_try_echo=$ac_try;;
  1626. esac
  1627. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1628. $as_echo "$ac_try_echo"; } >&5
  1629. (eval "$ac_try") 2>&5
  1630. ac_status=$?
  1631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1632. test $ac_status = 0; }; }; then :
  1633. ac_retval=0
  1634. else
  1635. $as_echo "$as_me: program exited with status $ac_status" >&5
  1636. $as_echo "$as_me: failed program was:" >&5
  1637. sed 's/^/| /' conftest.$ac_ext >&5
  1638. ac_retval=$ac_status
  1639. fi
  1640. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1641. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1642. as_fn_set_status $ac_retval
  1643. } # ac_fn_c_try_run
  1644. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1645. # -------------------------------------------------------
  1646. # Tests whether HEADER exists and can be compiled using the include files in
  1647. # INCLUDES, setting the cache variable VAR accordingly.
  1648. ac_fn_c_check_header_compile ()
  1649. {
  1650. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1652. $as_echo_n "checking for $2... " >&6; }
  1653. if eval \${$3+:} false; then :
  1654. $as_echo_n "(cached) " >&6
  1655. else
  1656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1657. /* end confdefs.h. */
  1658. $4
  1659. #include <$2>
  1660. _ACEOF
  1661. if ac_fn_c_try_compile "$LINENO"; then :
  1662. eval "$3=yes"
  1663. else
  1664. eval "$3=no"
  1665. fi
  1666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1667. fi
  1668. eval ac_res=\$$3
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1670. $as_echo "$ac_res" >&6; }
  1671. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1672. } # ac_fn_c_check_header_compile
  1673. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1674. # --------------------------------------------
  1675. # Tries to find the compile-time value of EXPR in a program that includes
  1676. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1677. # computed
  1678. ac_fn_c_compute_int ()
  1679. {
  1680. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1681. if test "$cross_compiling" = yes; then
  1682. # Depending upon the size, compute the lo and hi bounds.
  1683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1684. /* end confdefs.h. */
  1685. $4
  1686. int
  1687. main ()
  1688. {
  1689. static int test_array [1 - 2 * !(($2) >= 0)];
  1690. test_array [0] = 0;
  1691. return test_array [0];
  1692. ;
  1693. return 0;
  1694. }
  1695. _ACEOF
  1696. if ac_fn_c_try_compile "$LINENO"; then :
  1697. ac_lo=0 ac_mid=0
  1698. while :; do
  1699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1700. /* end confdefs.h. */
  1701. $4
  1702. int
  1703. main ()
  1704. {
  1705. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1706. test_array [0] = 0;
  1707. return test_array [0];
  1708. ;
  1709. return 0;
  1710. }
  1711. _ACEOF
  1712. if ac_fn_c_try_compile "$LINENO"; then :
  1713. ac_hi=$ac_mid; break
  1714. else
  1715. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1716. if test $ac_lo -le $ac_mid; then
  1717. ac_lo= ac_hi=
  1718. break
  1719. fi
  1720. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1721. fi
  1722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1723. done
  1724. else
  1725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1726. /* end confdefs.h. */
  1727. $4
  1728. int
  1729. main ()
  1730. {
  1731. static int test_array [1 - 2 * !(($2) < 0)];
  1732. test_array [0] = 0;
  1733. return test_array [0];
  1734. ;
  1735. return 0;
  1736. }
  1737. _ACEOF
  1738. if ac_fn_c_try_compile "$LINENO"; then :
  1739. ac_hi=-1 ac_mid=-1
  1740. while :; do
  1741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1742. /* end confdefs.h. */
  1743. $4
  1744. int
  1745. main ()
  1746. {
  1747. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1748. test_array [0] = 0;
  1749. return test_array [0];
  1750. ;
  1751. return 0;
  1752. }
  1753. _ACEOF
  1754. if ac_fn_c_try_compile "$LINENO"; then :
  1755. ac_lo=$ac_mid; break
  1756. else
  1757. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1758. if test $ac_mid -le $ac_hi; then
  1759. ac_lo= ac_hi=
  1760. break
  1761. fi
  1762. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1763. fi
  1764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1765. done
  1766. else
  1767. ac_lo= ac_hi=
  1768. fi
  1769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1770. fi
  1771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1772. # Binary search between lo and hi bounds.
  1773. while test "x$ac_lo" != "x$ac_hi"; do
  1774. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1776. /* end confdefs.h. */
  1777. $4
  1778. int
  1779. main ()
  1780. {
  1781. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1782. test_array [0] = 0;
  1783. return test_array [0];
  1784. ;
  1785. return 0;
  1786. }
  1787. _ACEOF
  1788. if ac_fn_c_try_compile "$LINENO"; then :
  1789. ac_hi=$ac_mid
  1790. else
  1791. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1792. fi
  1793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1794. done
  1795. case $ac_lo in #((
  1796. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1797. '') ac_retval=1 ;;
  1798. esac
  1799. else
  1800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1801. /* end confdefs.h. */
  1802. $4
  1803. static long int longval () { return $2; }
  1804. static unsigned long int ulongval () { return $2; }
  1805. #include <stdio.h>
  1806. #include <stdlib.h>
  1807. int
  1808. main ()
  1809. {
  1810. FILE *f = fopen ("conftest.val", "w");
  1811. if (! f)
  1812. return 1;
  1813. if (($2) < 0)
  1814. {
  1815. long int i = longval ();
  1816. if (i != ($2))
  1817. return 1;
  1818. fprintf (f, "%ld", i);
  1819. }
  1820. else
  1821. {
  1822. unsigned long int i = ulongval ();
  1823. if (i != ($2))
  1824. return 1;
  1825. fprintf (f, "%lu", i);
  1826. }
  1827. /* Do not output a trailing newline, as this causes \r\n confusion
  1828. on some platforms. */
  1829. return ferror (f) || fclose (f) != 0;
  1830. ;
  1831. return 0;
  1832. }
  1833. _ACEOF
  1834. if ac_fn_c_try_run "$LINENO"; then :
  1835. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1836. else
  1837. ac_retval=1
  1838. fi
  1839. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1840. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1841. rm -f conftest.val
  1842. fi
  1843. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1844. as_fn_set_status $ac_retval
  1845. } # ac_fn_c_compute_int
  1846. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1847. # -------------------------------------------------------
  1848. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1849. # the include files in INCLUDES and setting the cache variable VAR
  1850. # accordingly.
  1851. ac_fn_c_check_header_mongrel ()
  1852. {
  1853. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1854. if eval \${$3+:} false; then :
  1855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1856. $as_echo_n "checking for $2... " >&6; }
  1857. if eval \${$3+:} false; then :
  1858. $as_echo_n "(cached) " >&6
  1859. fi
  1860. eval ac_res=\$$3
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1862. $as_echo "$ac_res" >&6; }
  1863. else
  1864. # Is the header compilable?
  1865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1866. $as_echo_n "checking $2 usability... " >&6; }
  1867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1868. /* end confdefs.h. */
  1869. $4
  1870. #include <$2>
  1871. _ACEOF
  1872. if ac_fn_c_try_compile "$LINENO"; then :
  1873. ac_header_compiler=yes
  1874. else
  1875. ac_header_compiler=no
  1876. fi
  1877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1879. $as_echo "$ac_header_compiler" >&6; }
  1880. # Is the header present?
  1881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1882. $as_echo_n "checking $2 presence... " >&6; }
  1883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1884. /* end confdefs.h. */
  1885. #include <$2>
  1886. _ACEOF
  1887. if ac_fn_c_try_cpp "$LINENO"; then :
  1888. ac_header_preproc=yes
  1889. else
  1890. ac_header_preproc=no
  1891. fi
  1892. rm -f conftest.err conftest.i conftest.$ac_ext
  1893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1894. $as_echo "$ac_header_preproc" >&6; }
  1895. # So? What about this header?
  1896. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1897. yes:no: )
  1898. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1899. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1900. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1901. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1902. ;;
  1903. no:yes:* )
  1904. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1905. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1906. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1907. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1908. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1909. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1910. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1911. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1912. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1913. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1914. ;;
  1915. esac
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1917. $as_echo_n "checking for $2... " >&6; }
  1918. if eval \${$3+:} false; then :
  1919. $as_echo_n "(cached) " >&6
  1920. else
  1921. eval "$3=\$ac_header_compiler"
  1922. fi
  1923. eval ac_res=\$$3
  1924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1925. $as_echo "$ac_res" >&6; }
  1926. fi
  1927. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1928. } # ac_fn_c_check_header_mongrel
  1929. # ac_fn_c_check_func LINENO FUNC VAR
  1930. # ----------------------------------
  1931. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1932. ac_fn_c_check_func ()
  1933. {
  1934. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1936. $as_echo_n "checking for $2... " >&6; }
  1937. if eval \${$3+:} false; then :
  1938. $as_echo_n "(cached) " >&6
  1939. else
  1940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1941. /* end confdefs.h. */
  1942. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1943. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1944. #define $2 innocuous_$2
  1945. /* System header to define __stub macros and hopefully few prototypes,
  1946. which can conflict with char $2 (); below.
  1947. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1948. <limits.h> exists even on freestanding compilers. */
  1949. #ifdef __STDC__
  1950. # include <limits.h>
  1951. #else
  1952. # include <assert.h>
  1953. #endif
  1954. #undef $2
  1955. /* Override any GCC internal prototype to avoid an error.
  1956. Use char because int might match the return type of a GCC
  1957. builtin and then its argument prototype would still apply. */
  1958. #ifdef __cplusplus
  1959. extern "C"
  1960. #endif
  1961. char $2 ();
  1962. /* The GNU C library defines this for functions which it implements
  1963. to always fail with ENOSYS. Some functions are actually named
  1964. something starting with __ and the normal name is an alias. */
  1965. #if defined __stub_$2 || defined __stub___$2
  1966. choke me
  1967. #endif
  1968. int
  1969. main ()
  1970. {
  1971. return $2 ();
  1972. ;
  1973. return 0;
  1974. }
  1975. _ACEOF
  1976. if ac_fn_c_try_link "$LINENO"; then :
  1977. eval "$3=yes"
  1978. else
  1979. eval "$3=no"
  1980. fi
  1981. rm -f core conftest.err conftest.$ac_objext \
  1982. conftest$ac_exeext conftest.$ac_ext
  1983. fi
  1984. eval ac_res=\$$3
  1985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1986. $as_echo "$ac_res" >&6; }
  1987. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1988. } # ac_fn_c_check_func
  1989. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1990. # -------------------------------------------
  1991. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1992. # variable VAR accordingly.
  1993. ac_fn_c_check_type ()
  1994. {
  1995. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1997. $as_echo_n "checking for $2... " >&6; }
  1998. if eval \${$3+:} false; then :
  1999. $as_echo_n "(cached) " >&6
  2000. else
  2001. eval "$3=no"
  2002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2003. /* end confdefs.h. */
  2004. $4
  2005. int
  2006. main ()
  2007. {
  2008. if (sizeof ($2))
  2009. return 0;
  2010. ;
  2011. return 0;
  2012. }
  2013. _ACEOF
  2014. if ac_fn_c_try_compile "$LINENO"; then :
  2015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2016. /* end confdefs.h. */
  2017. $4
  2018. int
  2019. main ()
  2020. {
  2021. if (sizeof (($2)))
  2022. return 0;
  2023. ;
  2024. return 0;
  2025. }
  2026. _ACEOF
  2027. if ac_fn_c_try_compile "$LINENO"; then :
  2028. else
  2029. eval "$3=yes"
  2030. fi
  2031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2032. fi
  2033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2034. fi
  2035. eval ac_res=\$$3
  2036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2037. $as_echo "$ac_res" >&6; }
  2038. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2039. } # ac_fn_c_check_type
  2040. cat >config.log <<_ACEOF
  2041. This file contains any messages produced by compilers while
  2042. running configure, to aid debugging if configure makes a mistake.
  2043. It was created by $as_me, which was
  2044. generated by GNU Autoconf 2.69. Invocation command line was
  2045. $ $0 $@
  2046. _ACEOF
  2047. exec 5>>config.log
  2048. {
  2049. cat <<_ASUNAME
  2050. ## --------- ##
  2051. ## Platform. ##
  2052. ## --------- ##
  2053. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2054. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2055. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2056. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2057. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2058. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2059. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2060. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2061. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2062. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2063. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2064. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2065. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2066. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2067. _ASUNAME
  2068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2069. for as_dir in $PATH
  2070. do
  2071. IFS=$as_save_IFS
  2072. test -z "$as_dir" && as_dir=.
  2073. $as_echo "PATH: $as_dir"
  2074. done
  2075. IFS=$as_save_IFS
  2076. } >&5
  2077. cat >&5 <<_ACEOF
  2078. ## ----------- ##
  2079. ## Core tests. ##
  2080. ## ----------- ##
  2081. _ACEOF
  2082. # Keep a trace of the command line.
  2083. # Strip out --no-create and --no-recursion so they do not pile up.
  2084. # Strip out --silent because we don't want to record it for future runs.
  2085. # Also quote any args containing shell meta-characters.
  2086. # Make two passes to allow for proper duplicate-argument suppression.
  2087. ac_configure_args=
  2088. ac_configure_args0=
  2089. ac_configure_args1=
  2090. ac_must_keep_next=false
  2091. for ac_pass in 1 2
  2092. do
  2093. for ac_arg
  2094. do
  2095. case $ac_arg in
  2096. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2097. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2098. | -silent | --silent | --silen | --sile | --sil)
  2099. continue ;;
  2100. *\'*)
  2101. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2102. esac
  2103. case $ac_pass in
  2104. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2105. 2)
  2106. as_fn_append ac_configure_args1 " '$ac_arg'"
  2107. if test $ac_must_keep_next = true; then
  2108. ac_must_keep_next=false # Got value, back to normal.
  2109. else
  2110. case $ac_arg in
  2111. *=* | --config-cache | -C | -disable-* | --disable-* \
  2112. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2113. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2114. | -with-* | --with-* | -without-* | --without-* | --x)
  2115. case "$ac_configure_args0 " in
  2116. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2117. esac
  2118. ;;
  2119. -* ) ac_must_keep_next=true ;;
  2120. esac
  2121. fi
  2122. as_fn_append ac_configure_args " '$ac_arg'"
  2123. ;;
  2124. esac
  2125. done
  2126. done
  2127. { ac_configure_args0=; unset ac_configure_args0;}
  2128. { ac_configure_args1=; unset ac_configure_args1;}
  2129. # When interrupted or exit'd, cleanup temporary files, and complete
  2130. # config.log. We remove comments because anyway the quotes in there
  2131. # would cause problems or look ugly.
  2132. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2133. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2134. trap 'exit_status=$?
  2135. # Save into config.log some information that might help in debugging.
  2136. {
  2137. echo
  2138. $as_echo "## ---------------- ##
  2139. ## Cache variables. ##
  2140. ## ---------------- ##"
  2141. echo
  2142. # The following way of writing the cache mishandles newlines in values,
  2143. (
  2144. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2145. eval ac_val=\$$ac_var
  2146. case $ac_val in #(
  2147. *${as_nl}*)
  2148. case $ac_var in #(
  2149. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2150. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2151. esac
  2152. case $ac_var in #(
  2153. _ | IFS | as_nl) ;; #(
  2154. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2155. *) { eval $ac_var=; unset $ac_var;} ;;
  2156. esac ;;
  2157. esac
  2158. done
  2159. (set) 2>&1 |
  2160. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2161. *${as_nl}ac_space=\ *)
  2162. sed -n \
  2163. "s/'\''/'\''\\\\'\'''\''/g;
  2164. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2165. ;; #(
  2166. *)
  2167. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2168. ;;
  2169. esac |
  2170. sort
  2171. )
  2172. echo
  2173. $as_echo "## ----------------- ##
  2174. ## Output variables. ##
  2175. ## ----------------- ##"
  2176. echo
  2177. for ac_var in $ac_subst_vars
  2178. do
  2179. eval ac_val=\$$ac_var
  2180. case $ac_val in
  2181. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2182. esac
  2183. $as_echo "$ac_var='\''$ac_val'\''"
  2184. done | sort
  2185. echo
  2186. if test -n "$ac_subst_files"; then
  2187. $as_echo "## ------------------- ##
  2188. ## File substitutions. ##
  2189. ## ------------------- ##"
  2190. echo
  2191. for ac_var in $ac_subst_files
  2192. do
  2193. eval ac_val=\$$ac_var
  2194. case $ac_val in
  2195. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2196. esac
  2197. $as_echo "$ac_var='\''$ac_val'\''"
  2198. done | sort
  2199. echo
  2200. fi
  2201. if test -s confdefs.h; then
  2202. $as_echo "## ----------- ##
  2203. ## confdefs.h. ##
  2204. ## ----------- ##"
  2205. echo
  2206. cat confdefs.h
  2207. echo
  2208. fi
  2209. test "$ac_signal" != 0 &&
  2210. $as_echo "$as_me: caught signal $ac_signal"
  2211. $as_echo "$as_me: exit $exit_status"
  2212. } >&5
  2213. rm -f core *.core core.conftest.* &&
  2214. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2215. exit $exit_status
  2216. ' 0
  2217. for ac_signal in 1 2 13 15; do
  2218. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2219. done
  2220. ac_signal=0
  2221. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2222. rm -f -r conftest* confdefs.h
  2223. $as_echo "/* confdefs.h */" > confdefs.h
  2224. # Predefined preprocessor variables.
  2225. cat >>confdefs.h <<_ACEOF
  2226. #define PACKAGE_NAME "$PACKAGE_NAME"
  2227. _ACEOF
  2228. cat >>confdefs.h <<_ACEOF
  2229. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2230. _ACEOF
  2231. cat >>confdefs.h <<_ACEOF
  2232. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2233. _ACEOF
  2234. cat >>confdefs.h <<_ACEOF
  2235. #define PACKAGE_STRING "$PACKAGE_STRING"
  2236. _ACEOF
  2237. cat >>confdefs.h <<_ACEOF
  2238. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2239. _ACEOF
  2240. cat >>confdefs.h <<_ACEOF
  2241. #define PACKAGE_URL "$PACKAGE_URL"
  2242. _ACEOF
  2243. # Let the site file select an alternate cache file if it wants to.
  2244. # Prefer an explicitly selected file to automatically selected ones.
  2245. ac_site_file1=NONE
  2246. ac_site_file2=NONE
  2247. if test -n "$CONFIG_SITE"; then
  2248. # We do not want a PATH search for config.site.
  2249. case $CONFIG_SITE in #((
  2250. -*) ac_site_file1=./$CONFIG_SITE;;
  2251. */*) ac_site_file1=$CONFIG_SITE;;
  2252. *) ac_site_file1=./$CONFIG_SITE;;
  2253. esac
  2254. elif test "x$prefix" != xNONE; then
  2255. ac_site_file1=$prefix/share/config.site
  2256. ac_site_file2=$prefix/etc/config.site
  2257. else
  2258. ac_site_file1=$ac_default_prefix/share/config.site
  2259. ac_site_file2=$ac_default_prefix/etc/config.site
  2260. fi
  2261. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2262. do
  2263. test "x$ac_site_file" = xNONE && continue
  2264. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2265. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2266. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2267. sed 's/^/| /' "$ac_site_file" >&5
  2268. . "$ac_site_file" \
  2269. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2270. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2271. as_fn_error $? "failed to load site script $ac_site_file
  2272. See \`config.log' for more details" "$LINENO" 5; }
  2273. fi
  2274. done
  2275. if test -r "$cache_file"; then
  2276. # Some versions of bash will fail to source /dev/null (special files
  2277. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2278. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2279. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2280. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2281. case $cache_file in
  2282. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2283. *) . "./$cache_file";;
  2284. esac
  2285. fi
  2286. else
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2288. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2289. >$cache_file
  2290. fi
  2291. # Check that the precious variables saved in the cache have kept the same
  2292. # value.
  2293. ac_cache_corrupted=false
  2294. for ac_var in $ac_precious_vars; do
  2295. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2296. eval ac_new_set=\$ac_env_${ac_var}_set
  2297. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2298. eval ac_new_val=\$ac_env_${ac_var}_value
  2299. case $ac_old_set,$ac_new_set in
  2300. set,)
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2302. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2303. ac_cache_corrupted=: ;;
  2304. ,set)
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2306. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2307. ac_cache_corrupted=: ;;
  2308. ,);;
  2309. *)
  2310. if test "x$ac_old_val" != "x$ac_new_val"; then
  2311. # differences in whitespace do not lead to failure.
  2312. ac_old_val_w=`echo x $ac_old_val`
  2313. ac_new_val_w=`echo x $ac_new_val`
  2314. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2315. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2316. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2317. ac_cache_corrupted=:
  2318. else
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2320. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2321. eval $ac_var=\$ac_old_val
  2322. fi
  2323. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2324. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2326. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2327. fi;;
  2328. esac
  2329. # Pass precious variables to config.status.
  2330. if test "$ac_new_set" = set; then
  2331. case $ac_new_val in
  2332. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2333. *) ac_arg=$ac_var=$ac_new_val ;;
  2334. esac
  2335. case " $ac_configure_args " in
  2336. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2337. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2338. esac
  2339. fi
  2340. done
  2341. if $ac_cache_corrupted; then
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2343. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2345. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2346. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2347. fi
  2348. ## -------------------- ##
  2349. ## Main body of script. ##
  2350. ## -------------------- ##
  2351. ac_ext=c
  2352. ac_cpp='$CPP $CPPFLAGS'
  2353. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2354. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2355. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2356. ac_aux_dir=
  2357. for ac_dir in build-aux "$srcdir"/build-aux; do
  2358. if test -f "$ac_dir/install-sh"; then
  2359. ac_aux_dir=$ac_dir
  2360. ac_install_sh="$ac_aux_dir/install-sh -c"
  2361. break
  2362. elif test -f "$ac_dir/install.sh"; then
  2363. ac_aux_dir=$ac_dir
  2364. ac_install_sh="$ac_aux_dir/install.sh -c"
  2365. break
  2366. elif test -f "$ac_dir/shtool"; then
  2367. ac_aux_dir=$ac_dir
  2368. ac_install_sh="$ac_aux_dir/shtool install -c"
  2369. break
  2370. fi
  2371. done
  2372. if test -z "$ac_aux_dir"; then
  2373. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  2374. fi
  2375. # These three variables are undocumented and unsupported,
  2376. # and are intended to be withdrawn in a future Autoconf release.
  2377. # They can cause serious problems if a builder's source tree is in a directory
  2378. # whose full name contains unusual characters.
  2379. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2380. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2381. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2382. CONFIGURE_CFLAGS=
  2383. SPECIFIED_CFLAGS="${CFLAGS}"
  2384. CONFIGURE_CXXFLAGS=
  2385. SPECIFIED_CXXFLAGS="${CXXFLAGS}"
  2386. CONFIG=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'`
  2387. rev=2
  2388. srcroot=$srcdir
  2389. if test "x${srcroot}" = "x." ; then
  2390. srcroot=""
  2391. else
  2392. srcroot="${srcroot}/"
  2393. fi
  2394. abs_srcroot="`cd \"${srcdir}\"; pwd`/"
  2395. objroot=""
  2396. abs_objroot="`pwd`/"
  2397. if test "x$prefix" = "xNONE" ; then
  2398. prefix="/usr/local"
  2399. fi
  2400. if test "x$exec_prefix" = "xNONE" ; then
  2401. exec_prefix=$prefix
  2402. fi
  2403. PREFIX=$prefix
  2404. BINDIR=`eval echo $bindir`
  2405. BINDIR=`eval echo $BINDIR`
  2406. INCLUDEDIR=`eval echo $includedir`
  2407. INCLUDEDIR=`eval echo $INCLUDEDIR`
  2408. LIBDIR=`eval echo $libdir`
  2409. LIBDIR=`eval echo $LIBDIR`
  2410. DATADIR=`eval echo $datadir`
  2411. DATADIR=`eval echo $DATADIR`
  2412. MANDIR=`eval echo $mandir`
  2413. MANDIR=`eval echo $MANDIR`
  2414. # Extract the first word of "xsltproc", so it can be a program name with args.
  2415. set dummy xsltproc; ac_word=$2
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2417. $as_echo_n "checking for $ac_word... " >&6; }
  2418. if ${ac_cv_path_XSLTPROC+:} false; then :
  2419. $as_echo_n "(cached) " >&6
  2420. else
  2421. case $XSLTPROC in
  2422. [\\/]* | ?:[\\/]*)
  2423. ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
  2424. ;;
  2425. *)
  2426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2427. for as_dir in $PATH
  2428. do
  2429. IFS=$as_save_IFS
  2430. test -z "$as_dir" && as_dir=.
  2431. for ac_exec_ext in '' $ac_executable_extensions; do
  2432. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2433. ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
  2434. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2435. break 2
  2436. fi
  2437. done
  2438. done
  2439. IFS=$as_save_IFS
  2440. test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false"
  2441. ;;
  2442. esac
  2443. fi
  2444. XSLTPROC=$ac_cv_path_XSLTPROC
  2445. if test -n "$XSLTPROC"; then
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
  2447. $as_echo "$XSLTPROC" >&6; }
  2448. else
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2450. $as_echo "no" >&6; }
  2451. fi
  2452. if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then
  2453. DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
  2454. elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then
  2455. DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets"
  2456. else
  2457. DEFAULT_XSLROOT=""
  2458. fi
  2459. # Check whether --with-xslroot was given.
  2460. if test "${with_xslroot+set}" = set; then :
  2461. withval=$with_xslroot;
  2462. if test "x$with_xslroot" = "xno" ; then
  2463. XSLROOT="${DEFAULT_XSLROOT}"
  2464. else
  2465. XSLROOT="${with_xslroot}"
  2466. fi
  2467. else
  2468. XSLROOT="${DEFAULT_XSLROOT}"
  2469. fi
  2470. if test "x$XSLTPROC" = "xfalse" ; then
  2471. XSLROOT=""
  2472. fi
  2473. CFLAGS=$CFLAGS
  2474. ac_ext=c
  2475. ac_cpp='$CPP $CPPFLAGS'
  2476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2479. if test -n "$ac_tool_prefix"; then
  2480. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2481. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2483. $as_echo_n "checking for $ac_word... " >&6; }
  2484. if ${ac_cv_prog_CC+:} false; then :
  2485. $as_echo_n "(cached) " >&6
  2486. else
  2487. if test -n "$CC"; then
  2488. ac_cv_prog_CC="$CC" # Let the user override the test.
  2489. else
  2490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2491. for as_dir in $PATH
  2492. do
  2493. IFS=$as_save_IFS
  2494. test -z "$as_dir" && as_dir=.
  2495. for ac_exec_ext in '' $ac_executable_extensions; do
  2496. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2497. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2498. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2499. break 2
  2500. fi
  2501. done
  2502. done
  2503. IFS=$as_save_IFS
  2504. fi
  2505. fi
  2506. CC=$ac_cv_prog_CC
  2507. if test -n "$CC"; then
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2509. $as_echo "$CC" >&6; }
  2510. else
  2511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2512. $as_echo "no" >&6; }
  2513. fi
  2514. fi
  2515. if test -z "$ac_cv_prog_CC"; then
  2516. ac_ct_CC=$CC
  2517. # Extract the first word of "gcc", so it can be a program name with args.
  2518. set dummy gcc; ac_word=$2
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2520. $as_echo_n "checking for $ac_word... " >&6; }
  2521. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2522. $as_echo_n "(cached) " >&6
  2523. else
  2524. if test -n "$ac_ct_CC"; then
  2525. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2526. else
  2527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2528. for as_dir in $PATH
  2529. do
  2530. IFS=$as_save_IFS
  2531. test -z "$as_dir" && as_dir=.
  2532. for ac_exec_ext in '' $ac_executable_extensions; do
  2533. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2534. ac_cv_prog_ac_ct_CC="gcc"
  2535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2536. break 2
  2537. fi
  2538. done
  2539. done
  2540. IFS=$as_save_IFS
  2541. fi
  2542. fi
  2543. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2544. if test -n "$ac_ct_CC"; then
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2546. $as_echo "$ac_ct_CC" >&6; }
  2547. else
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2549. $as_echo "no" >&6; }
  2550. fi
  2551. if test "x$ac_ct_CC" = x; then
  2552. CC=""
  2553. else
  2554. case $cross_compiling:$ac_tool_warned in
  2555. yes:)
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2557. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2558. ac_tool_warned=yes ;;
  2559. esac
  2560. CC=$ac_ct_CC
  2561. fi
  2562. else
  2563. CC="$ac_cv_prog_CC"
  2564. fi
  2565. if test -z "$CC"; then
  2566. if test -n "$ac_tool_prefix"; then
  2567. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2568. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2570. $as_echo_n "checking for $ac_word... " >&6; }
  2571. if ${ac_cv_prog_CC+:} false; then :
  2572. $as_echo_n "(cached) " >&6
  2573. else
  2574. if test -n "$CC"; then
  2575. ac_cv_prog_CC="$CC" # Let the user override the test.
  2576. else
  2577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2578. for as_dir in $PATH
  2579. do
  2580. IFS=$as_save_IFS
  2581. test -z "$as_dir" && as_dir=.
  2582. for ac_exec_ext in '' $ac_executable_extensions; do
  2583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2584. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2586. break 2
  2587. fi
  2588. done
  2589. done
  2590. IFS=$as_save_IFS
  2591. fi
  2592. fi
  2593. CC=$ac_cv_prog_CC
  2594. if test -n "$CC"; then
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2596. $as_echo "$CC" >&6; }
  2597. else
  2598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2599. $as_echo "no" >&6; }
  2600. fi
  2601. fi
  2602. fi
  2603. if test -z "$CC"; then
  2604. # Extract the first word of "cc", so it can be a program name with args.
  2605. set dummy cc; ac_word=$2
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2607. $as_echo_n "checking for $ac_word... " >&6; }
  2608. if ${ac_cv_prog_CC+:} false; then :
  2609. $as_echo_n "(cached) " >&6
  2610. else
  2611. if test -n "$CC"; then
  2612. ac_cv_prog_CC="$CC" # Let the user override the test.
  2613. else
  2614. ac_prog_rejected=no
  2615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2616. for as_dir in $PATH
  2617. do
  2618. IFS=$as_save_IFS
  2619. test -z "$as_dir" && as_dir=.
  2620. for ac_exec_ext in '' $ac_executable_extensions; do
  2621. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2622. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2623. ac_prog_rejected=yes
  2624. continue
  2625. fi
  2626. ac_cv_prog_CC="cc"
  2627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2628. break 2
  2629. fi
  2630. done
  2631. done
  2632. IFS=$as_save_IFS
  2633. if test $ac_prog_rejected = yes; then
  2634. # We found a bogon in the path, so make sure we never use it.
  2635. set dummy $ac_cv_prog_CC
  2636. shift
  2637. if test $# != 0; then
  2638. # We chose a different compiler from the bogus one.
  2639. # However, it has the same basename, so the bogon will be chosen
  2640. # first if we set CC to just the basename; use the full file name.
  2641. shift
  2642. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2643. fi
  2644. fi
  2645. fi
  2646. fi
  2647. CC=$ac_cv_prog_CC
  2648. if test -n "$CC"; then
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2650. $as_echo "$CC" >&6; }
  2651. else
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2653. $as_echo "no" >&6; }
  2654. fi
  2655. fi
  2656. if test -z "$CC"; then
  2657. if test -n "$ac_tool_prefix"; then
  2658. for ac_prog in cl.exe
  2659. do
  2660. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2661. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2663. $as_echo_n "checking for $ac_word... " >&6; }
  2664. if ${ac_cv_prog_CC+:} false; then :
  2665. $as_echo_n "(cached) " >&6
  2666. else
  2667. if test -n "$CC"; then
  2668. ac_cv_prog_CC="$CC" # Let the user override the test.
  2669. else
  2670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2671. for as_dir in $PATH
  2672. do
  2673. IFS=$as_save_IFS
  2674. test -z "$as_dir" && as_dir=.
  2675. for ac_exec_ext in '' $ac_executable_extensions; do
  2676. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2677. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2678. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2679. break 2
  2680. fi
  2681. done
  2682. done
  2683. IFS=$as_save_IFS
  2684. fi
  2685. fi
  2686. CC=$ac_cv_prog_CC
  2687. if test -n "$CC"; then
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2689. $as_echo "$CC" >&6; }
  2690. else
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2692. $as_echo "no" >&6; }
  2693. fi
  2694. test -n "$CC" && break
  2695. done
  2696. fi
  2697. if test -z "$CC"; then
  2698. ac_ct_CC=$CC
  2699. for ac_prog in cl.exe
  2700. do
  2701. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2702. set dummy $ac_prog; ac_word=$2
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2704. $as_echo_n "checking for $ac_word... " >&6; }
  2705. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2706. $as_echo_n "(cached) " >&6
  2707. else
  2708. if test -n "$ac_ct_CC"; then
  2709. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2710. else
  2711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2712. for as_dir in $PATH
  2713. do
  2714. IFS=$as_save_IFS
  2715. test -z "$as_dir" && as_dir=.
  2716. for ac_exec_ext in '' $ac_executable_extensions; do
  2717. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2718. ac_cv_prog_ac_ct_CC="$ac_prog"
  2719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2720. break 2
  2721. fi
  2722. done
  2723. done
  2724. IFS=$as_save_IFS
  2725. fi
  2726. fi
  2727. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2728. if test -n "$ac_ct_CC"; then
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2730. $as_echo "$ac_ct_CC" >&6; }
  2731. else
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2733. $as_echo "no" >&6; }
  2734. fi
  2735. test -n "$ac_ct_CC" && break
  2736. done
  2737. if test "x$ac_ct_CC" = x; then
  2738. CC=""
  2739. else
  2740. case $cross_compiling:$ac_tool_warned in
  2741. yes:)
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2743. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2744. ac_tool_warned=yes ;;
  2745. esac
  2746. CC=$ac_ct_CC
  2747. fi
  2748. fi
  2749. fi
  2750. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2751. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2752. as_fn_error $? "no acceptable C compiler found in \$PATH
  2753. See \`config.log' for more details" "$LINENO" 5; }
  2754. # Provide some information about the compiler.
  2755. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2756. set X $ac_compile
  2757. ac_compiler=$2
  2758. for ac_option in --version -v -V -qversion; do
  2759. { { ac_try="$ac_compiler $ac_option >&5"
  2760. case "(($ac_try" in
  2761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2762. *) ac_try_echo=$ac_try;;
  2763. esac
  2764. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2765. $as_echo "$ac_try_echo"; } >&5
  2766. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2767. ac_status=$?
  2768. if test -s conftest.err; then
  2769. sed '10a\
  2770. ... rest of stderr output deleted ...
  2771. 10q' conftest.err >conftest.er1
  2772. cat conftest.er1 >&5
  2773. fi
  2774. rm -f conftest.er1 conftest.err
  2775. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2776. test $ac_status = 0; }
  2777. done
  2778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2779. /* end confdefs.h. */
  2780. int
  2781. main ()
  2782. {
  2783. ;
  2784. return 0;
  2785. }
  2786. _ACEOF
  2787. ac_clean_files_save=$ac_clean_files
  2788. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2789. # Try to create an executable without -o first, disregard a.out.
  2790. # It will help us diagnose broken compilers, and finding out an intuition
  2791. # of exeext.
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2793. $as_echo_n "checking whether the C compiler works... " >&6; }
  2794. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2795. # The possible output files:
  2796. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2797. ac_rmfiles=
  2798. for ac_file in $ac_files
  2799. do
  2800. case $ac_file in
  2801. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2802. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2803. esac
  2804. done
  2805. rm -f $ac_rmfiles
  2806. if { { ac_try="$ac_link_default"
  2807. case "(($ac_try" in
  2808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2809. *) ac_try_echo=$ac_try;;
  2810. esac
  2811. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2812. $as_echo "$ac_try_echo"; } >&5
  2813. (eval "$ac_link_default") 2>&5
  2814. ac_status=$?
  2815. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2816. test $ac_status = 0; }; then :
  2817. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2818. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2819. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2820. # so that the user can short-circuit this test for compilers unknown to
  2821. # Autoconf.
  2822. for ac_file in $ac_files ''
  2823. do
  2824. test -f "$ac_file" || continue
  2825. case $ac_file in
  2826. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2827. ;;
  2828. [ab].out )
  2829. # We found the default executable, but exeext='' is most
  2830. # certainly right.
  2831. break;;
  2832. *.* )
  2833. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2834. then :; else
  2835. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2836. fi
  2837. # We set ac_cv_exeext here because the later test for it is not
  2838. # safe: cross compilers may not add the suffix if given an `-o'
  2839. # argument, so we may need to know it at that point already.
  2840. # Even if this section looks crufty: it has the advantage of
  2841. # actually working.
  2842. break;;
  2843. * )
  2844. break;;
  2845. esac
  2846. done
  2847. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2848. else
  2849. ac_file=''
  2850. fi
  2851. if test -z "$ac_file"; then :
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2853. $as_echo "no" >&6; }
  2854. $as_echo "$as_me: failed program was:" >&5
  2855. sed 's/^/| /' conftest.$ac_ext >&5
  2856. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2857. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2858. as_fn_error 77 "C compiler cannot create executables
  2859. See \`config.log' for more details" "$LINENO" 5; }
  2860. else
  2861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2862. $as_echo "yes" >&6; }
  2863. fi
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2865. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2867. $as_echo "$ac_file" >&6; }
  2868. ac_exeext=$ac_cv_exeext
  2869. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2870. ac_clean_files=$ac_clean_files_save
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2872. $as_echo_n "checking for suffix of executables... " >&6; }
  2873. if { { ac_try="$ac_link"
  2874. case "(($ac_try" in
  2875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2876. *) ac_try_echo=$ac_try;;
  2877. esac
  2878. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2879. $as_echo "$ac_try_echo"; } >&5
  2880. (eval "$ac_link") 2>&5
  2881. ac_status=$?
  2882. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2883. test $ac_status = 0; }; then :
  2884. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2885. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2886. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2887. # `rm'.
  2888. for ac_file in conftest.exe conftest conftest.*; do
  2889. test -f "$ac_file" || continue
  2890. case $ac_file in
  2891. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2892. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2893. break;;
  2894. * ) break;;
  2895. esac
  2896. done
  2897. else
  2898. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2899. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2900. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2901. See \`config.log' for more details" "$LINENO" 5; }
  2902. fi
  2903. rm -f conftest conftest$ac_cv_exeext
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2905. $as_echo "$ac_cv_exeext" >&6; }
  2906. rm -f conftest.$ac_ext
  2907. EXEEXT=$ac_cv_exeext
  2908. ac_exeext=$EXEEXT
  2909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2910. /* end confdefs.h. */
  2911. #include <stdio.h>
  2912. int
  2913. main ()
  2914. {
  2915. FILE *f = fopen ("conftest.out", "w");
  2916. return ferror (f) || fclose (f) != 0;
  2917. ;
  2918. return 0;
  2919. }
  2920. _ACEOF
  2921. ac_clean_files="$ac_clean_files conftest.out"
  2922. # Check that the compiler produces executables we can run. If not, either
  2923. # the compiler is broken, or we cross compile.
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2925. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2926. if test "$cross_compiling" != yes; then
  2927. { { ac_try="$ac_link"
  2928. case "(($ac_try" in
  2929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2930. *) ac_try_echo=$ac_try;;
  2931. esac
  2932. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2933. $as_echo "$ac_try_echo"; } >&5
  2934. (eval "$ac_link") 2>&5
  2935. ac_status=$?
  2936. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2937. test $ac_status = 0; }
  2938. if { ac_try='./conftest$ac_cv_exeext'
  2939. { { case "(($ac_try" in
  2940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2941. *) ac_try_echo=$ac_try;;
  2942. esac
  2943. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2944. $as_echo "$ac_try_echo"; } >&5
  2945. (eval "$ac_try") 2>&5
  2946. ac_status=$?
  2947. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2948. test $ac_status = 0; }; }; then
  2949. cross_compiling=no
  2950. else
  2951. if test "$cross_compiling" = maybe; then
  2952. cross_compiling=yes
  2953. else
  2954. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2955. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2956. as_fn_error $? "cannot run C compiled programs.
  2957. If you meant to cross compile, use \`--host'.
  2958. See \`config.log' for more details" "$LINENO" 5; }
  2959. fi
  2960. fi
  2961. fi
  2962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2963. $as_echo "$cross_compiling" >&6; }
  2964. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2965. ac_clean_files=$ac_clean_files_save
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2967. $as_echo_n "checking for suffix of object files... " >&6; }
  2968. if ${ac_cv_objext+:} false; then :
  2969. $as_echo_n "(cached) " >&6
  2970. else
  2971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2972. /* end confdefs.h. */
  2973. int
  2974. main ()
  2975. {
  2976. ;
  2977. return 0;
  2978. }
  2979. _ACEOF
  2980. rm -f conftest.o conftest.obj
  2981. if { { ac_try="$ac_compile"
  2982. case "(($ac_try" in
  2983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2984. *) ac_try_echo=$ac_try;;
  2985. esac
  2986. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2987. $as_echo "$ac_try_echo"; } >&5
  2988. (eval "$ac_compile") 2>&5
  2989. ac_status=$?
  2990. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2991. test $ac_status = 0; }; then :
  2992. for ac_file in conftest.o conftest.obj conftest.*; do
  2993. test -f "$ac_file" || continue;
  2994. case $ac_file in
  2995. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2996. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2997. break;;
  2998. esac
  2999. done
  3000. else
  3001. $as_echo "$as_me: failed program was:" >&5
  3002. sed 's/^/| /' conftest.$ac_ext >&5
  3003. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3004. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3005. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3006. See \`config.log' for more details" "$LINENO" 5; }
  3007. fi
  3008. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3009. fi
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3011. $as_echo "$ac_cv_objext" >&6; }
  3012. OBJEXT=$ac_cv_objext
  3013. ac_objext=$OBJEXT
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3015. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3016. if ${ac_cv_c_compiler_gnu+:} false; then :
  3017. $as_echo_n "(cached) " >&6
  3018. else
  3019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3020. /* end confdefs.h. */
  3021. int
  3022. main ()
  3023. {
  3024. #ifndef __GNUC__
  3025. choke me
  3026. #endif
  3027. ;
  3028. return 0;
  3029. }
  3030. _ACEOF
  3031. if ac_fn_c_try_compile "$LINENO"; then :
  3032. ac_compiler_gnu=yes
  3033. else
  3034. ac_compiler_gnu=no
  3035. fi
  3036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3037. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3038. fi
  3039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3040. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3041. if test $ac_compiler_gnu = yes; then
  3042. GCC=yes
  3043. else
  3044. GCC=
  3045. fi
  3046. ac_test_CFLAGS=${CFLAGS+set}
  3047. ac_save_CFLAGS=$CFLAGS
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3049. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3050. if ${ac_cv_prog_cc_g+:} false; then :
  3051. $as_echo_n "(cached) " >&6
  3052. else
  3053. ac_save_c_werror_flag=$ac_c_werror_flag
  3054. ac_c_werror_flag=yes
  3055. ac_cv_prog_cc_g=no
  3056. CFLAGS="-g"
  3057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3058. /* end confdefs.h. */
  3059. int
  3060. main ()
  3061. {
  3062. ;
  3063. return 0;
  3064. }
  3065. _ACEOF
  3066. if ac_fn_c_try_compile "$LINENO"; then :
  3067. ac_cv_prog_cc_g=yes
  3068. else
  3069. CFLAGS=""
  3070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3071. /* end confdefs.h. */
  3072. int
  3073. main ()
  3074. {
  3075. ;
  3076. return 0;
  3077. }
  3078. _ACEOF
  3079. if ac_fn_c_try_compile "$LINENO"; then :
  3080. else
  3081. ac_c_werror_flag=$ac_save_c_werror_flag
  3082. CFLAGS="-g"
  3083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3084. /* end confdefs.h. */
  3085. int
  3086. main ()
  3087. {
  3088. ;
  3089. return 0;
  3090. }
  3091. _ACEOF
  3092. if ac_fn_c_try_compile "$LINENO"; then :
  3093. ac_cv_prog_cc_g=yes
  3094. fi
  3095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3096. fi
  3097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3098. fi
  3099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3100. ac_c_werror_flag=$ac_save_c_werror_flag
  3101. fi
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3103. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3104. if test "$ac_test_CFLAGS" = set; then
  3105. CFLAGS=$ac_save_CFLAGS
  3106. elif test $ac_cv_prog_cc_g = yes; then
  3107. if test "$GCC" = yes; then
  3108. CFLAGS="-g -O2"
  3109. else
  3110. CFLAGS="-g"
  3111. fi
  3112. else
  3113. if test "$GCC" = yes; then
  3114. CFLAGS="-O2"
  3115. else
  3116. CFLAGS=
  3117. fi
  3118. fi
  3119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3120. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3121. if ${ac_cv_prog_cc_c89+:} false; then :
  3122. $as_echo_n "(cached) " >&6
  3123. else
  3124. ac_cv_prog_cc_c89=no
  3125. ac_save_CC=$CC
  3126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3127. /* end confdefs.h. */
  3128. #include <stdarg.h>
  3129. #include <stdio.h>
  3130. struct stat;
  3131. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3132. struct buf { int x; };
  3133. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3134. static char *e (p, i)
  3135. char **p;
  3136. int i;
  3137. {
  3138. return p[i];
  3139. }
  3140. static char *f (char * (*g) (char **, int), char **p, ...)
  3141. {
  3142. char *s;
  3143. va_list v;
  3144. va_start (v,p);
  3145. s = g (p, va_arg (v,int));
  3146. va_end (v);
  3147. return s;
  3148. }
  3149. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3150. function prototypes and stuff, but not '\xHH' hex character constants.
  3151. These don't provoke an error unfortunately, instead are silently treated
  3152. as 'x'. The following induces an error, until -std is added to get
  3153. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3154. array size at least. It's necessary to write '\x00'==0 to get something
  3155. that's true only with -std. */
  3156. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3157. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3158. inside strings and character constants. */
  3159. #define FOO(x) 'x'
  3160. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3161. int test (int i, double x);
  3162. struct s1 {int (*f) (int a);};
  3163. struct s2 {int (*f) (double a);};
  3164. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3165. int argc;
  3166. char **argv;
  3167. int
  3168. main ()
  3169. {
  3170. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3171. ;
  3172. return 0;
  3173. }
  3174. _ACEOF
  3175. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3176. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3177. do
  3178. CC="$ac_save_CC $ac_arg"
  3179. if ac_fn_c_try_compile "$LINENO"; then :
  3180. ac_cv_prog_cc_c89=$ac_arg
  3181. fi
  3182. rm -f core conftest.err conftest.$ac_objext
  3183. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3184. done
  3185. rm -f conftest.$ac_ext
  3186. CC=$ac_save_CC
  3187. fi
  3188. # AC_CACHE_VAL
  3189. case "x$ac_cv_prog_cc_c89" in
  3190. x)
  3191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3192. $as_echo "none needed" >&6; } ;;
  3193. xno)
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3195. $as_echo "unsupported" >&6; } ;;
  3196. *)
  3197. CC="$CC $ac_cv_prog_cc_c89"
  3198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3199. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3200. esac
  3201. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3202. fi
  3203. ac_ext=c
  3204. ac_cpp='$CPP $CPPFLAGS'
  3205. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3206. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3207. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3208. if test "x$GCC" != "xyes" ; then
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5
  3210. $as_echo_n "checking whether compiler is MSVC... " >&6; }
  3211. if ${je_cv_msvc+:} false; then :
  3212. $as_echo_n "(cached) " >&6
  3213. else
  3214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3215. /* end confdefs.h. */
  3216. int
  3217. main ()
  3218. {
  3219. #ifndef _MSC_VER
  3220. int fail-1;
  3221. #endif
  3222. ;
  3223. return 0;
  3224. }
  3225. _ACEOF
  3226. if ac_fn_c_try_compile "$LINENO"; then :
  3227. je_cv_msvc=yes
  3228. else
  3229. je_cv_msvc=no
  3230. fi
  3231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3232. fi
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5
  3234. $as_echo "$je_cv_msvc" >&6; }
  3235. fi
  3236. je_cv_cray_prgenv_wrapper=""
  3237. if test "x${PE_ENV}" != "x" ; then
  3238. case "${CC}" in
  3239. CC|cc)
  3240. je_cv_cray_prgenv_wrapper="yes"
  3241. ;;
  3242. *)
  3243. ;;
  3244. esac
  3245. fi
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is cray" >&5
  3247. $as_echo_n "checking whether compiler is cray... " >&6; }
  3248. if ${je_cv_cray+:} false; then :
  3249. $as_echo_n "(cached) " >&6
  3250. else
  3251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3252. /* end confdefs.h. */
  3253. int
  3254. main ()
  3255. {
  3256. #ifndef _CRAYC
  3257. int fail-1;
  3258. #endif
  3259. ;
  3260. return 0;
  3261. }
  3262. _ACEOF
  3263. if ac_fn_c_try_compile "$LINENO"; then :
  3264. je_cv_cray=yes
  3265. else
  3266. je_cv_cray=no
  3267. fi
  3268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3269. fi
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray" >&5
  3271. $as_echo "$je_cv_cray" >&6; }
  3272. if test "x${je_cv_cray}" = "xyes" ; then
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cray compiler version is 8.4" >&5
  3274. $as_echo_n "checking whether cray compiler version is 8.4... " >&6; }
  3275. if ${je_cv_cray_84+:} false; then :
  3276. $as_echo_n "(cached) " >&6
  3277. else
  3278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3279. /* end confdefs.h. */
  3280. int
  3281. main ()
  3282. {
  3283. #if !(_RELEASE_MAJOR == 8 && _RELEASE_MINOR == 4)
  3284. int fail-1;
  3285. #endif
  3286. ;
  3287. return 0;
  3288. }
  3289. _ACEOF
  3290. if ac_fn_c_try_compile "$LINENO"; then :
  3291. je_cv_cray_84=yes
  3292. else
  3293. je_cv_cray_84=no
  3294. fi
  3295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3296. fi
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray_84" >&5
  3298. $as_echo "$je_cv_cray_84" >&6; }
  3299. fi
  3300. if test "x$GCC" = "xyes" ; then
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu11" >&5
  3302. $as_echo_n "checking whether compiler supports -std=gnu11... " >&6; }
  3303. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3304. T_APPEND_V=-std=gnu11
  3305. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3306. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3307. else
  3308. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3309. fi
  3310. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3311. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3312. else
  3313. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3314. fi
  3315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3316. /* end confdefs.h. */
  3317. int
  3318. main ()
  3319. {
  3320. return 0;
  3321. ;
  3322. return 0;
  3323. }
  3324. _ACEOF
  3325. if ac_fn_c_try_compile "$LINENO"; then :
  3326. je_cv_cflags_added=-std=gnu11
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3328. $as_echo "yes" >&6; }
  3329. else
  3330. je_cv_cflags_added=
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3332. $as_echo "no" >&6; }
  3333. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3334. fi
  3335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3336. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3337. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3338. else
  3339. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3340. fi
  3341. if test "x$je_cv_cflags_added" = "x-std=gnu11" ; then
  3342. cat >>confdefs.h <<_ACEOF
  3343. #define JEMALLOC_HAS_RESTRICT 1
  3344. _ACEOF
  3345. else
  3346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
  3347. $as_echo_n "checking whether compiler supports -std=gnu99... " >&6; }
  3348. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3349. T_APPEND_V=-std=gnu99
  3350. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3351. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3352. else
  3353. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3354. fi
  3355. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3356. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3357. else
  3358. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3359. fi
  3360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3361. /* end confdefs.h. */
  3362. int
  3363. main ()
  3364. {
  3365. return 0;
  3366. ;
  3367. return 0;
  3368. }
  3369. _ACEOF
  3370. if ac_fn_c_try_compile "$LINENO"; then :
  3371. je_cv_cflags_added=-std=gnu99
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3373. $as_echo "yes" >&6; }
  3374. else
  3375. je_cv_cflags_added=
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3377. $as_echo "no" >&6; }
  3378. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3379. fi
  3380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3381. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3382. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3383. else
  3384. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3385. fi
  3386. if test "x$je_cv_cflags_added" = "x-std=gnu99" ; then
  3387. cat >>confdefs.h <<_ACEOF
  3388. #define JEMALLOC_HAS_RESTRICT 1
  3389. _ACEOF
  3390. fi
  3391. fi
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
  3393. $as_echo_n "checking whether compiler supports -Wall... " >&6; }
  3394. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3395. T_APPEND_V=-Wall
  3396. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3397. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3398. else
  3399. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3400. fi
  3401. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3402. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3403. else
  3404. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3405. fi
  3406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3407. /* end confdefs.h. */
  3408. int
  3409. main ()
  3410. {
  3411. return 0;
  3412. ;
  3413. return 0;
  3414. }
  3415. _ACEOF
  3416. if ac_fn_c_try_compile "$LINENO"; then :
  3417. je_cv_cflags_added=-Wall
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3419. $as_echo "yes" >&6; }
  3420. else
  3421. je_cv_cflags_added=
  3422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3423. $as_echo "no" >&6; }
  3424. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3425. fi
  3426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3427. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3428. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3429. else
  3430. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3431. fi
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wextra" >&5
  3433. $as_echo_n "checking whether compiler supports -Wextra... " >&6; }
  3434. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3435. T_APPEND_V=-Wextra
  3436. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3437. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3438. else
  3439. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3440. fi
  3441. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3442. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3443. else
  3444. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3445. fi
  3446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3447. /* end confdefs.h. */
  3448. int
  3449. main ()
  3450. {
  3451. return 0;
  3452. ;
  3453. return 0;
  3454. }
  3455. _ACEOF
  3456. if ac_fn_c_try_compile "$LINENO"; then :
  3457. je_cv_cflags_added=-Wextra
  3458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3459. $as_echo "yes" >&6; }
  3460. else
  3461. je_cv_cflags_added=
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3463. $as_echo "no" >&6; }
  3464. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3465. fi
  3466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3467. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3468. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3469. else
  3470. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3471. fi
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshorten-64-to-32" >&5
  3473. $as_echo_n "checking whether compiler supports -Wshorten-64-to-32... " >&6; }
  3474. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3475. T_APPEND_V=-Wshorten-64-to-32
  3476. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3477. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3478. else
  3479. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3480. fi
  3481. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3482. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3483. else
  3484. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3485. fi
  3486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3487. /* end confdefs.h. */
  3488. int
  3489. main ()
  3490. {
  3491. return 0;
  3492. ;
  3493. return 0;
  3494. }
  3495. _ACEOF
  3496. if ac_fn_c_try_compile "$LINENO"; then :
  3497. je_cv_cflags_added=-Wshorten-64-to-32
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3499. $as_echo "yes" >&6; }
  3500. else
  3501. je_cv_cflags_added=
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3503. $as_echo "no" >&6; }
  3504. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3505. fi
  3506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3507. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3508. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3509. else
  3510. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3511. fi
  3512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-compare" >&5
  3513. $as_echo_n "checking whether compiler supports -Wsign-compare... " >&6; }
  3514. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3515. T_APPEND_V=-Wsign-compare
  3516. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3517. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3518. else
  3519. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3520. fi
  3521. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3522. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3523. else
  3524. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3525. fi
  3526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3527. /* end confdefs.h. */
  3528. int
  3529. main ()
  3530. {
  3531. return 0;
  3532. ;
  3533. return 0;
  3534. }
  3535. _ACEOF
  3536. if ac_fn_c_try_compile "$LINENO"; then :
  3537. je_cv_cflags_added=-Wsign-compare
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3539. $as_echo "yes" >&6; }
  3540. else
  3541. je_cv_cflags_added=
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3543. $as_echo "no" >&6; }
  3544. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3545. fi
  3546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3547. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3548. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3549. else
  3550. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3551. fi
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wundef" >&5
  3553. $as_echo_n "checking whether compiler supports -Wundef... " >&6; }
  3554. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3555. T_APPEND_V=-Wundef
  3556. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3557. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3558. else
  3559. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3560. fi
  3561. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3562. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3563. else
  3564. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3565. fi
  3566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3567. /* end confdefs.h. */
  3568. int
  3569. main ()
  3570. {
  3571. return 0;
  3572. ;
  3573. return 0;
  3574. }
  3575. _ACEOF
  3576. if ac_fn_c_try_compile "$LINENO"; then :
  3577. je_cv_cflags_added=-Wundef
  3578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3579. $as_echo "yes" >&6; }
  3580. else
  3581. je_cv_cflags_added=
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3583. $as_echo "no" >&6; }
  3584. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3585. fi
  3586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3587. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3588. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3589. else
  3590. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3591. fi
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-zero-length" >&5
  3593. $as_echo_n "checking whether compiler supports -Wno-format-zero-length... " >&6; }
  3594. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3595. T_APPEND_V=-Wno-format-zero-length
  3596. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3597. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3598. else
  3599. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3600. fi
  3601. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3602. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3603. else
  3604. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3605. fi
  3606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3607. /* end confdefs.h. */
  3608. int
  3609. main ()
  3610. {
  3611. return 0;
  3612. ;
  3613. return 0;
  3614. }
  3615. _ACEOF
  3616. if ac_fn_c_try_compile "$LINENO"; then :
  3617. je_cv_cflags_added=-Wno-format-zero-length
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3619. $as_echo "yes" >&6; }
  3620. else
  3621. je_cv_cflags_added=
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3623. $as_echo "no" >&6; }
  3624. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3625. fi
  3626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3627. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3628. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3629. else
  3630. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3631. fi
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
  3633. $as_echo_n "checking whether compiler supports -pipe... " >&6; }
  3634. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3635. T_APPEND_V=-pipe
  3636. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3637. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3638. else
  3639. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3640. fi
  3641. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3642. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3643. else
  3644. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3645. fi
  3646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3647. /* end confdefs.h. */
  3648. int
  3649. main ()
  3650. {
  3651. return 0;
  3652. ;
  3653. return 0;
  3654. }
  3655. _ACEOF
  3656. if ac_fn_c_try_compile "$LINENO"; then :
  3657. je_cv_cflags_added=-pipe
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3659. $as_echo "yes" >&6; }
  3660. else
  3661. je_cv_cflags_added=
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3663. $as_echo "no" >&6; }
  3664. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3665. fi
  3666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3667. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3668. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3669. else
  3670. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3671. fi
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
  3673. $as_echo_n "checking whether compiler supports -g3... " >&6; }
  3674. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3675. T_APPEND_V=-g3
  3676. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3677. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3678. else
  3679. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3680. fi
  3681. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3682. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3683. else
  3684. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3685. fi
  3686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3687. /* end confdefs.h. */
  3688. int
  3689. main ()
  3690. {
  3691. return 0;
  3692. ;
  3693. return 0;
  3694. }
  3695. _ACEOF
  3696. if ac_fn_c_try_compile "$LINENO"; then :
  3697. je_cv_cflags_added=-g3
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3699. $as_echo "yes" >&6; }
  3700. else
  3701. je_cv_cflags_added=
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3703. $as_echo "no" >&6; }
  3704. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3705. fi
  3706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3707. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3708. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3709. else
  3710. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3711. fi
  3712. elif test "x$je_cv_msvc" = "xyes" ; then
  3713. CC="$CC -nologo"
  3714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5
  3715. $as_echo_n "checking whether compiler supports -Zi... " >&6; }
  3716. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3717. T_APPEND_V=-Zi
  3718. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3719. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3720. else
  3721. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3722. fi
  3723. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3724. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3725. else
  3726. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3727. fi
  3728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3729. /* end confdefs.h. */
  3730. int
  3731. main ()
  3732. {
  3733. return 0;
  3734. ;
  3735. return 0;
  3736. }
  3737. _ACEOF
  3738. if ac_fn_c_try_compile "$LINENO"; then :
  3739. je_cv_cflags_added=-Zi
  3740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3741. $as_echo "yes" >&6; }
  3742. else
  3743. je_cv_cflags_added=
  3744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3745. $as_echo "no" >&6; }
  3746. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3747. fi
  3748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3749. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3750. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3751. else
  3752. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3753. fi
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5
  3755. $as_echo_n "checking whether compiler supports -MT... " >&6; }
  3756. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3757. T_APPEND_V=-MT
  3758. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3759. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3760. else
  3761. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3762. fi
  3763. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3764. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3765. else
  3766. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3767. fi
  3768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3769. /* end confdefs.h. */
  3770. int
  3771. main ()
  3772. {
  3773. return 0;
  3774. ;
  3775. return 0;
  3776. }
  3777. _ACEOF
  3778. if ac_fn_c_try_compile "$LINENO"; then :
  3779. je_cv_cflags_added=-MT
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3781. $as_echo "yes" >&6; }
  3782. else
  3783. je_cv_cflags_added=
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3785. $as_echo "no" >&6; }
  3786. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3787. fi
  3788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3789. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3790. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3791. else
  3792. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3793. fi
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5
  3795. $as_echo_n "checking whether compiler supports -W3... " >&6; }
  3796. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3797. T_APPEND_V=-W3
  3798. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3799. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3800. else
  3801. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3802. fi
  3803. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3804. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3805. else
  3806. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3807. fi
  3808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3809. /* end confdefs.h. */
  3810. int
  3811. main ()
  3812. {
  3813. return 0;
  3814. ;
  3815. return 0;
  3816. }
  3817. _ACEOF
  3818. if ac_fn_c_try_compile "$LINENO"; then :
  3819. je_cv_cflags_added=-W3
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3821. $as_echo "yes" >&6; }
  3822. else
  3823. je_cv_cflags_added=
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3825. $as_echo "no" >&6; }
  3826. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3827. fi
  3828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3829. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3830. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3831. else
  3832. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3833. fi
  3834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5
  3835. $as_echo_n "checking whether compiler supports -FS... " >&6; }
  3836. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3837. T_APPEND_V=-FS
  3838. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3839. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3840. else
  3841. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3842. fi
  3843. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3844. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3845. else
  3846. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3847. fi
  3848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3849. /* end confdefs.h. */
  3850. int
  3851. main ()
  3852. {
  3853. return 0;
  3854. ;
  3855. return 0;
  3856. }
  3857. _ACEOF
  3858. if ac_fn_c_try_compile "$LINENO"; then :
  3859. je_cv_cflags_added=-FS
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3861. $as_echo "yes" >&6; }
  3862. else
  3863. je_cv_cflags_added=
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3865. $as_echo "no" >&6; }
  3866. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3867. fi
  3868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3869. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3870. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3871. else
  3872. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3873. fi
  3874. T_APPEND_V=-I${srcdir}/include/msvc_compat
  3875. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3876. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  3877. else
  3878. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  3879. fi
  3880. fi
  3881. if test "x$je_cv_cray" = "xyes" ; then
  3882. if test "x$je_cv_cray_84" = "xyes" ; then
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hipa2" >&5
  3884. $as_echo_n "checking whether compiler supports -hipa2... " >&6; }
  3885. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3886. T_APPEND_V=-hipa2
  3887. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3888. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3889. else
  3890. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3891. fi
  3892. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3893. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3894. else
  3895. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3896. fi
  3897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3898. /* end confdefs.h. */
  3899. int
  3900. main ()
  3901. {
  3902. return 0;
  3903. ;
  3904. return 0;
  3905. }
  3906. _ACEOF
  3907. if ac_fn_c_try_compile "$LINENO"; then :
  3908. je_cv_cflags_added=-hipa2
  3909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3910. $as_echo "yes" >&6; }
  3911. else
  3912. je_cv_cflags_added=
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3914. $as_echo "no" >&6; }
  3915. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3916. fi
  3917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3918. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3919. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3920. else
  3921. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3922. fi
  3923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnognu" >&5
  3924. $as_echo_n "checking whether compiler supports -hnognu... " >&6; }
  3925. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3926. T_APPEND_V=-hnognu
  3927. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3928. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3929. else
  3930. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3931. fi
  3932. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3933. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3934. else
  3935. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3936. fi
  3937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3938. /* end confdefs.h. */
  3939. int
  3940. main ()
  3941. {
  3942. return 0;
  3943. ;
  3944. return 0;
  3945. }
  3946. _ACEOF
  3947. if ac_fn_c_try_compile "$LINENO"; then :
  3948. je_cv_cflags_added=-hnognu
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3950. $as_echo "yes" >&6; }
  3951. else
  3952. je_cv_cflags_added=
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3954. $as_echo "no" >&6; }
  3955. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3956. fi
  3957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3958. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3959. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3960. else
  3961. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3962. fi
  3963. fi
  3964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=128" >&5
  3965. $as_echo_n "checking whether compiler supports -hnomessage=128... " >&6; }
  3966. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3967. T_APPEND_V=-hnomessage=128
  3968. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3969. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3970. else
  3971. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3972. fi
  3973. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3974. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3975. else
  3976. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3977. fi
  3978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3979. /* end confdefs.h. */
  3980. int
  3981. main ()
  3982. {
  3983. return 0;
  3984. ;
  3985. return 0;
  3986. }
  3987. _ACEOF
  3988. if ac_fn_c_try_compile "$LINENO"; then :
  3989. je_cv_cflags_added=-hnomessage=128
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3991. $as_echo "yes" >&6; }
  3992. else
  3993. je_cv_cflags_added=
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3995. $as_echo "no" >&6; }
  3996. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3997. fi
  3998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3999. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4000. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4001. else
  4002. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4003. fi
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=1357" >&5
  4005. $as_echo_n "checking whether compiler supports -hnomessage=1357... " >&6; }
  4006. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  4007. T_APPEND_V=-hnomessage=1357
  4008. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  4009. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  4010. else
  4011. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  4012. fi
  4013. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4014. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4015. else
  4016. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4017. fi
  4018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4019. /* end confdefs.h. */
  4020. int
  4021. main ()
  4022. {
  4023. return 0;
  4024. ;
  4025. return 0;
  4026. }
  4027. _ACEOF
  4028. if ac_fn_c_try_compile "$LINENO"; then :
  4029. je_cv_cflags_added=-hnomessage=1357
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4031. $as_echo "yes" >&6; }
  4032. else
  4033. je_cv_cflags_added=
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4035. $as_echo "no" >&6; }
  4036. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  4037. fi
  4038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4039. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  4040. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  4041. else
  4042. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  4043. fi
  4044. fi
  4045. ac_ext=c
  4046. ac_cpp='$CPP $CPPFLAGS'
  4047. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4048. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4049. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4051. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4052. # On Suns, sometimes $CPP names a directory.
  4053. if test -n "$CPP" && test -d "$CPP"; then
  4054. CPP=
  4055. fi
  4056. if test -z "$CPP"; then
  4057. if ${ac_cv_prog_CPP+:} false; then :
  4058. $as_echo_n "(cached) " >&6
  4059. else
  4060. # Double quotes because CPP needs to be expanded
  4061. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4062. do
  4063. ac_preproc_ok=false
  4064. for ac_c_preproc_warn_flag in '' yes
  4065. do
  4066. # Use a header file that comes with gcc, so configuring glibc
  4067. # with a fresh cross-compiler works.
  4068. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4069. # <limits.h> exists even on freestanding compilers.
  4070. # On the NeXT, cc -E runs the code through the compiler's parser,
  4071. # not just through cpp. "Syntax error" is here to catch this case.
  4072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4073. /* end confdefs.h. */
  4074. #ifdef __STDC__
  4075. # include <limits.h>
  4076. #else
  4077. # include <assert.h>
  4078. #endif
  4079. Syntax error
  4080. _ACEOF
  4081. if ac_fn_c_try_cpp "$LINENO"; then :
  4082. else
  4083. # Broken: fails on valid input.
  4084. continue
  4085. fi
  4086. rm -f conftest.err conftest.i conftest.$ac_ext
  4087. # OK, works on sane cases. Now check whether nonexistent headers
  4088. # can be detected and how.
  4089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4090. /* end confdefs.h. */
  4091. #include <ac_nonexistent.h>
  4092. _ACEOF
  4093. if ac_fn_c_try_cpp "$LINENO"; then :
  4094. # Broken: success on invalid input.
  4095. continue
  4096. else
  4097. # Passes both tests.
  4098. ac_preproc_ok=:
  4099. break
  4100. fi
  4101. rm -f conftest.err conftest.i conftest.$ac_ext
  4102. done
  4103. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4104. rm -f conftest.i conftest.err conftest.$ac_ext
  4105. if $ac_preproc_ok; then :
  4106. break
  4107. fi
  4108. done
  4109. ac_cv_prog_CPP=$CPP
  4110. fi
  4111. CPP=$ac_cv_prog_CPP
  4112. else
  4113. ac_cv_prog_CPP=$CPP
  4114. fi
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4116. $as_echo "$CPP" >&6; }
  4117. ac_preproc_ok=false
  4118. for ac_c_preproc_warn_flag in '' yes
  4119. do
  4120. # Use a header file that comes with gcc, so configuring glibc
  4121. # with a fresh cross-compiler works.
  4122. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4123. # <limits.h> exists even on freestanding compilers.
  4124. # On the NeXT, cc -E runs the code through the compiler's parser,
  4125. # not just through cpp. "Syntax error" is here to catch this case.
  4126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4127. /* end confdefs.h. */
  4128. #ifdef __STDC__
  4129. # include <limits.h>
  4130. #else
  4131. # include <assert.h>
  4132. #endif
  4133. Syntax error
  4134. _ACEOF
  4135. if ac_fn_c_try_cpp "$LINENO"; then :
  4136. else
  4137. # Broken: fails on valid input.
  4138. continue
  4139. fi
  4140. rm -f conftest.err conftest.i conftest.$ac_ext
  4141. # OK, works on sane cases. Now check whether nonexistent headers
  4142. # can be detected and how.
  4143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4144. /* end confdefs.h. */
  4145. #include <ac_nonexistent.h>
  4146. _ACEOF
  4147. if ac_fn_c_try_cpp "$LINENO"; then :
  4148. # Broken: success on invalid input.
  4149. continue
  4150. else
  4151. # Passes both tests.
  4152. ac_preproc_ok=:
  4153. break
  4154. fi
  4155. rm -f conftest.err conftest.i conftest.$ac_ext
  4156. done
  4157. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4158. rm -f conftest.i conftest.err conftest.$ac_ext
  4159. if $ac_preproc_ok; then :
  4160. else
  4161. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4162. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4163. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4164. See \`config.log' for more details" "$LINENO" 5; }
  4165. fi
  4166. ac_ext=c
  4167. ac_cpp='$CPP $CPPFLAGS'
  4168. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4169. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4170. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4171. # Check whether --enable-cxx was given.
  4172. if test "${enable_cxx+set}" = set; then :
  4173. enableval=$enable_cxx; if test "x$enable_cxx" = "xno" ; then
  4174. enable_cxx="0"
  4175. else
  4176. enable_cxx="1"
  4177. fi
  4178. else
  4179. enable_cxx="1"
  4180. fi
  4181. if test "x$enable_cxx" = "x1" ; then
  4182. # ===========================================================================
  4183. # http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
  4184. # ===========================================================================
  4185. #
  4186. # SYNOPSIS
  4187. #
  4188. # AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
  4189. #
  4190. # DESCRIPTION
  4191. #
  4192. # Check for baseline language coverage in the compiler for the specified
  4193. # version of the C++ standard. If necessary, add switches to CXX and
  4194. # CXXCPP to enable support. VERSION may be '11' (for the C++11 standard)
  4195. # or '14' (for the C++14 standard).
  4196. #
  4197. # The second argument, if specified, indicates whether you insist on an
  4198. # extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
  4199. # -std=c++11). If neither is specified, you get whatever works, with
  4200. # preference for an extended mode.
  4201. #
  4202. # The third argument, if specified 'mandatory' or if left unspecified,
  4203. # indicates that baseline support for the specified C++ standard is
  4204. # required and that the macro should error out if no mode with that
  4205. # support is found. If specified 'optional', then configuration proceeds
  4206. # regardless, after defining HAVE_CXX${VERSION} if and only if a
  4207. # supporting mode is found.
  4208. #
  4209. # LICENSE
  4210. #
  4211. # Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
  4212. # Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
  4213. # Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
  4214. # Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com>
  4215. # Copyright (c) 2015 Paul Norman <penorman@mac.com>
  4216. # Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu>
  4217. #
  4218. # Copying and distribution of this file, with or without modification, are
  4219. # permitted in any medium without royalty provided the copyright notice
  4220. # and this notice are preserved. This file is offered as-is, without any
  4221. # warranty.
  4222. #serial 4
  4223. ac_ext=cpp
  4224. ac_cpp='$CXXCPP $CPPFLAGS'
  4225. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4226. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4227. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4228. if test -z "$CXX"; then
  4229. if test -n "$CCC"; then
  4230. CXX=$CCC
  4231. else
  4232. if test -n "$ac_tool_prefix"; then
  4233. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4234. do
  4235. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4236. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4238. $as_echo_n "checking for $ac_word... " >&6; }
  4239. if ${ac_cv_prog_CXX+:} false; then :
  4240. $as_echo_n "(cached) " >&6
  4241. else
  4242. if test -n "$CXX"; then
  4243. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4244. else
  4245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4246. for as_dir in $PATH
  4247. do
  4248. IFS=$as_save_IFS
  4249. test -z "$as_dir" && as_dir=.
  4250. for ac_exec_ext in '' $ac_executable_extensions; do
  4251. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4252. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4253. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4254. break 2
  4255. fi
  4256. done
  4257. done
  4258. IFS=$as_save_IFS
  4259. fi
  4260. fi
  4261. CXX=$ac_cv_prog_CXX
  4262. if test -n "$CXX"; then
  4263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4264. $as_echo "$CXX" >&6; }
  4265. else
  4266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4267. $as_echo "no" >&6; }
  4268. fi
  4269. test -n "$CXX" && break
  4270. done
  4271. fi
  4272. if test -z "$CXX"; then
  4273. ac_ct_CXX=$CXX
  4274. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4275. do
  4276. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4277. set dummy $ac_prog; ac_word=$2
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4279. $as_echo_n "checking for $ac_word... " >&6; }
  4280. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4281. $as_echo_n "(cached) " >&6
  4282. else
  4283. if test -n "$ac_ct_CXX"; then
  4284. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4285. else
  4286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4287. for as_dir in $PATH
  4288. do
  4289. IFS=$as_save_IFS
  4290. test -z "$as_dir" && as_dir=.
  4291. for ac_exec_ext in '' $ac_executable_extensions; do
  4292. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4293. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4294. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4295. break 2
  4296. fi
  4297. done
  4298. done
  4299. IFS=$as_save_IFS
  4300. fi
  4301. fi
  4302. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4303. if test -n "$ac_ct_CXX"; then
  4304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4305. $as_echo "$ac_ct_CXX" >&6; }
  4306. else
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4308. $as_echo "no" >&6; }
  4309. fi
  4310. test -n "$ac_ct_CXX" && break
  4311. done
  4312. if test "x$ac_ct_CXX" = x; then
  4313. CXX="g++"
  4314. else
  4315. case $cross_compiling:$ac_tool_warned in
  4316. yes:)
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4318. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4319. ac_tool_warned=yes ;;
  4320. esac
  4321. CXX=$ac_ct_CXX
  4322. fi
  4323. fi
  4324. fi
  4325. fi
  4326. # Provide some information about the compiler.
  4327. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4328. set X $ac_compile
  4329. ac_compiler=$2
  4330. for ac_option in --version -v -V -qversion; do
  4331. { { ac_try="$ac_compiler $ac_option >&5"
  4332. case "(($ac_try" in
  4333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4334. *) ac_try_echo=$ac_try;;
  4335. esac
  4336. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4337. $as_echo "$ac_try_echo"; } >&5
  4338. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4339. ac_status=$?
  4340. if test -s conftest.err; then
  4341. sed '10a\
  4342. ... rest of stderr output deleted ...
  4343. 10q' conftest.err >conftest.er1
  4344. cat conftest.er1 >&5
  4345. fi
  4346. rm -f conftest.er1 conftest.err
  4347. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4348. test $ac_status = 0; }
  4349. done
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4351. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4352. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4353. $as_echo_n "(cached) " >&6
  4354. else
  4355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4356. /* end confdefs.h. */
  4357. int
  4358. main ()
  4359. {
  4360. #ifndef __GNUC__
  4361. choke me
  4362. #endif
  4363. ;
  4364. return 0;
  4365. }
  4366. _ACEOF
  4367. if ac_fn_cxx_try_compile "$LINENO"; then :
  4368. ac_compiler_gnu=yes
  4369. else
  4370. ac_compiler_gnu=no
  4371. fi
  4372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4373. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4374. fi
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4376. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4377. if test $ac_compiler_gnu = yes; then
  4378. GXX=yes
  4379. else
  4380. GXX=
  4381. fi
  4382. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4383. ac_save_CXXFLAGS=$CXXFLAGS
  4384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4385. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4386. if ${ac_cv_prog_cxx_g+:} false; then :
  4387. $as_echo_n "(cached) " >&6
  4388. else
  4389. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4390. ac_cxx_werror_flag=yes
  4391. ac_cv_prog_cxx_g=no
  4392. CXXFLAGS="-g"
  4393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4394. /* end confdefs.h. */
  4395. int
  4396. main ()
  4397. {
  4398. ;
  4399. return 0;
  4400. }
  4401. _ACEOF
  4402. if ac_fn_cxx_try_compile "$LINENO"; then :
  4403. ac_cv_prog_cxx_g=yes
  4404. else
  4405. CXXFLAGS=""
  4406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4407. /* end confdefs.h. */
  4408. int
  4409. main ()
  4410. {
  4411. ;
  4412. return 0;
  4413. }
  4414. _ACEOF
  4415. if ac_fn_cxx_try_compile "$LINENO"; then :
  4416. else
  4417. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4418. CXXFLAGS="-g"
  4419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4420. /* end confdefs.h. */
  4421. int
  4422. main ()
  4423. {
  4424. ;
  4425. return 0;
  4426. }
  4427. _ACEOF
  4428. if ac_fn_cxx_try_compile "$LINENO"; then :
  4429. ac_cv_prog_cxx_g=yes
  4430. fi
  4431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4432. fi
  4433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4434. fi
  4435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4436. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4437. fi
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4439. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4440. if test "$ac_test_CXXFLAGS" = set; then
  4441. CXXFLAGS=$ac_save_CXXFLAGS
  4442. elif test $ac_cv_prog_cxx_g = yes; then
  4443. if test "$GXX" = yes; then
  4444. CXXFLAGS="-g -O2"
  4445. else
  4446. CXXFLAGS="-g"
  4447. fi
  4448. else
  4449. if test "$GXX" = yes; then
  4450. CXXFLAGS="-O2"
  4451. else
  4452. CXXFLAGS=
  4453. fi
  4454. fi
  4455. ac_ext=cpp
  4456. ac_cpp='$CXXCPP $CPPFLAGS'
  4457. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4458. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4459. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4460. ax_cxx_compile_cxx14_required=false
  4461. ac_ext=cpp
  4462. ac_cpp='$CXXCPP $CPPFLAGS'
  4463. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4464. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4465. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4466. ac_success=no
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
  4468. $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
  4469. if ${ax_cv_cxx_compile_cxx14+:} false; then :
  4470. $as_echo_n "(cached) " >&6
  4471. else
  4472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4473. /* end confdefs.h. */
  4474. // If the compiler admits that it is not ready for C++11, why torture it?
  4475. // Hopefully, this will speed up the test.
  4476. #ifndef __cplusplus
  4477. #error "This is not a C++ compiler"
  4478. #elif __cplusplus < 201103L
  4479. #error "This is not a C++11 compiler"
  4480. #else
  4481. namespace cxx11
  4482. {
  4483. namespace test_static_assert
  4484. {
  4485. template <typename T>
  4486. struct check
  4487. {
  4488. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  4489. };
  4490. }
  4491. namespace test_final_override
  4492. {
  4493. struct Base
  4494. {
  4495. virtual void f() {}
  4496. };
  4497. struct Derived : public Base
  4498. {
  4499. virtual void f() override {}
  4500. };
  4501. }
  4502. namespace test_double_right_angle_brackets
  4503. {
  4504. template < typename T >
  4505. struct check {};
  4506. typedef check<void> single_type;
  4507. typedef check<check<void>> double_type;
  4508. typedef check<check<check<void>>> triple_type;
  4509. typedef check<check<check<check<void>>>> quadruple_type;
  4510. }
  4511. namespace test_decltype
  4512. {
  4513. int
  4514. f()
  4515. {
  4516. int a = 1;
  4517. decltype(a) b = 2;
  4518. return a + b;
  4519. }
  4520. }
  4521. namespace test_type_deduction
  4522. {
  4523. template < typename T1, typename T2 >
  4524. struct is_same
  4525. {
  4526. static const bool value = false;
  4527. };
  4528. template < typename T >
  4529. struct is_same<T, T>
  4530. {
  4531. static const bool value = true;
  4532. };
  4533. template < typename T1, typename T2 >
  4534. auto
  4535. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  4536. {
  4537. return a1 + a2;
  4538. }
  4539. int
  4540. test(const int c, volatile int v)
  4541. {
  4542. static_assert(is_same<int, decltype(0)>::value == true, "");
  4543. static_assert(is_same<int, decltype(c)>::value == false, "");
  4544. static_assert(is_same<int, decltype(v)>::value == false, "");
  4545. auto ac = c;
  4546. auto av = v;
  4547. auto sumi = ac + av + 'x';
  4548. auto sumf = ac + av + 1.0;
  4549. static_assert(is_same<int, decltype(ac)>::value == true, "");
  4550. static_assert(is_same<int, decltype(av)>::value == true, "");
  4551. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  4552. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  4553. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  4554. return (sumf > 0.0) ? sumi : add(c, v);
  4555. }
  4556. }
  4557. namespace test_noexcept
  4558. {
  4559. int f() { return 0; }
  4560. int g() noexcept { return 0; }
  4561. static_assert(noexcept(f()) == false, "");
  4562. static_assert(noexcept(g()) == true, "");
  4563. }
  4564. namespace test_constexpr
  4565. {
  4566. template < typename CharT >
  4567. unsigned long constexpr
  4568. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  4569. {
  4570. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  4571. }
  4572. template < typename CharT >
  4573. unsigned long constexpr
  4574. strlen_c(const CharT *const s) noexcept
  4575. {
  4576. return strlen_c_r(s, 0UL);
  4577. }
  4578. static_assert(strlen_c("") == 0UL, "");
  4579. static_assert(strlen_c("1") == 1UL, "");
  4580. static_assert(strlen_c("example") == 7UL, "");
  4581. static_assert(strlen_c("another\0example") == 7UL, "");
  4582. }
  4583. namespace test_rvalue_references
  4584. {
  4585. template < int N >
  4586. struct answer
  4587. {
  4588. static constexpr int value = N;
  4589. };
  4590. answer<1> f(int&) { return answer<1>(); }
  4591. answer<2> f(const int&) { return answer<2>(); }
  4592. answer<3> f(int&&) { return answer<3>(); }
  4593. void
  4594. test()
  4595. {
  4596. int i = 0;
  4597. const int c = 0;
  4598. static_assert(decltype(f(i))::value == 1, "");
  4599. static_assert(decltype(f(c))::value == 2, "");
  4600. static_assert(decltype(f(0))::value == 3, "");
  4601. }
  4602. }
  4603. namespace test_uniform_initialization
  4604. {
  4605. struct test
  4606. {
  4607. static const int zero {};
  4608. static const int one {1};
  4609. };
  4610. static_assert(test::zero == 0, "");
  4611. static_assert(test::one == 1, "");
  4612. }
  4613. namespace test_lambdas
  4614. {
  4615. void
  4616. test1()
  4617. {
  4618. auto lambda1 = [](){};
  4619. auto lambda2 = lambda1;
  4620. lambda1();
  4621. lambda2();
  4622. }
  4623. int
  4624. test2()
  4625. {
  4626. auto a = [](int i, int j){ return i + j; }(1, 2);
  4627. auto b = []() -> int { return '0'; }();
  4628. auto c = [=](){ return a + b; }();
  4629. auto d = [&](){ return c; }();
  4630. auto e = [a, &b](int x) mutable {
  4631. const auto identity = [](int y){ return y; };
  4632. for (auto i = 0; i < a; ++i)
  4633. a += b--;
  4634. return x + identity(a + b);
  4635. }(0);
  4636. return a + b + c + d + e;
  4637. }
  4638. int
  4639. test3()
  4640. {
  4641. const auto nullary = [](){ return 0; };
  4642. const auto unary = [](int x){ return x; };
  4643. using nullary_t = decltype(nullary);
  4644. using unary_t = decltype(unary);
  4645. const auto higher1st = [](nullary_t f){ return f(); };
  4646. const auto higher2nd = [unary](nullary_t f1){
  4647. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  4648. };
  4649. return higher1st(nullary) + higher2nd(nullary)(unary);
  4650. }
  4651. }
  4652. namespace test_variadic_templates
  4653. {
  4654. template <int...>
  4655. struct sum;
  4656. template <int N0, int... N1toN>
  4657. struct sum<N0, N1toN...>
  4658. {
  4659. static constexpr auto value = N0 + sum<N1toN...>::value;
  4660. };
  4661. template <>
  4662. struct sum<>
  4663. {
  4664. static constexpr auto value = 0;
  4665. };
  4666. static_assert(sum<>::value == 0, "");
  4667. static_assert(sum<1>::value == 1, "");
  4668. static_assert(sum<23>::value == 23, "");
  4669. static_assert(sum<1, 2>::value == 3, "");
  4670. static_assert(sum<5, 5, 11>::value == 21, "");
  4671. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  4672. }
  4673. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  4674. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  4675. // because of this.
  4676. namespace test_template_alias_sfinae
  4677. {
  4678. struct foo {};
  4679. template<typename T>
  4680. using member = typename T::member_type;
  4681. template<typename T>
  4682. void func(...) {}
  4683. template<typename T>
  4684. void func(member<T>*) {}
  4685. void test();
  4686. void test() { func<foo>(0); }
  4687. }
  4688. } // namespace cxx11
  4689. #endif // __cplusplus >= 201103L
  4690. // If the compiler admits that it is not ready for C++14, why torture it?
  4691. // Hopefully, this will speed up the test.
  4692. #ifndef __cplusplus
  4693. #error "This is not a C++ compiler"
  4694. #elif __cplusplus < 201402L
  4695. #error "This is not a C++14 compiler"
  4696. #else
  4697. namespace cxx14
  4698. {
  4699. namespace test_polymorphic_lambdas
  4700. {
  4701. int
  4702. test()
  4703. {
  4704. const auto lambda = [](auto&&... args){
  4705. const auto istiny = [](auto x){
  4706. return (sizeof(x) == 1UL) ? 1 : 0;
  4707. };
  4708. const int aretiny[] = { istiny(args)... };
  4709. return aretiny[0];
  4710. };
  4711. return lambda(1, 1L, 1.0f, '1');
  4712. }
  4713. }
  4714. namespace test_binary_literals
  4715. {
  4716. constexpr auto ivii = 0b0000000000101010;
  4717. static_assert(ivii == 42, "wrong value");
  4718. }
  4719. namespace test_generalized_constexpr
  4720. {
  4721. template < typename CharT >
  4722. constexpr unsigned long
  4723. strlen_c(const CharT *const s) noexcept
  4724. {
  4725. auto length = 0UL;
  4726. for (auto p = s; *p; ++p)
  4727. ++length;
  4728. return length;
  4729. }
  4730. static_assert(strlen_c("") == 0UL, "");
  4731. static_assert(strlen_c("x") == 1UL, "");
  4732. static_assert(strlen_c("test") == 4UL, "");
  4733. static_assert(strlen_c("another\0test") == 7UL, "");
  4734. }
  4735. namespace test_lambda_init_capture
  4736. {
  4737. int
  4738. test()
  4739. {
  4740. auto x = 0;
  4741. const auto lambda1 = [a = x](int b){ return a + b; };
  4742. const auto lambda2 = [a = lambda1(x)](){ return a; };
  4743. return lambda2();
  4744. }
  4745. }
  4746. namespace test_digit_seperators
  4747. {
  4748. constexpr auto ten_million = 100'000'000;
  4749. static_assert(ten_million == 100000000, "");
  4750. }
  4751. namespace test_return_type_deduction
  4752. {
  4753. auto f(int& x) { return x; }
  4754. decltype(auto) g(int& x) { return x; }
  4755. template < typename T1, typename T2 >
  4756. struct is_same
  4757. {
  4758. static constexpr auto value = false;
  4759. };
  4760. template < typename T >
  4761. struct is_same<T, T>
  4762. {
  4763. static constexpr auto value = true;
  4764. };
  4765. int
  4766. test()
  4767. {
  4768. auto x = 0;
  4769. static_assert(is_same<int, decltype(f(x))>::value, "");
  4770. static_assert(is_same<int&, decltype(g(x))>::value, "");
  4771. return x;
  4772. }
  4773. }
  4774. } // namespace cxx14
  4775. #endif // __cplusplus >= 201402L
  4776. _ACEOF
  4777. if ac_fn_cxx_try_compile "$LINENO"; then :
  4778. ax_cv_cxx_compile_cxx14=yes
  4779. else
  4780. ax_cv_cxx_compile_cxx14=no
  4781. fi
  4782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4783. fi
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
  4785. $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
  4786. if test x$ax_cv_cxx_compile_cxx14 = xyes; then
  4787. ac_success=yes
  4788. fi
  4789. if test x$ac_success = xno; then
  4790. for switch in -std=c++14 -std=c++0x +std=c++14 "-h std=c++14"; do
  4791. cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
  4793. $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
  4794. if eval \${$cachevar+:} false; then :
  4795. $as_echo_n "(cached) " >&6
  4796. else
  4797. ac_save_CXX="$CXX"
  4798. CXX="$CXX $switch"
  4799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4800. /* end confdefs.h. */
  4801. // If the compiler admits that it is not ready for C++11, why torture it?
  4802. // Hopefully, this will speed up the test.
  4803. #ifndef __cplusplus
  4804. #error "This is not a C++ compiler"
  4805. #elif __cplusplus < 201103L
  4806. #error "This is not a C++11 compiler"
  4807. #else
  4808. namespace cxx11
  4809. {
  4810. namespace test_static_assert
  4811. {
  4812. template <typename T>
  4813. struct check
  4814. {
  4815. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  4816. };
  4817. }
  4818. namespace test_final_override
  4819. {
  4820. struct Base
  4821. {
  4822. virtual void f() {}
  4823. };
  4824. struct Derived : public Base
  4825. {
  4826. virtual void f() override {}
  4827. };
  4828. }
  4829. namespace test_double_right_angle_brackets
  4830. {
  4831. template < typename T >
  4832. struct check {};
  4833. typedef check<void> single_type;
  4834. typedef check<check<void>> double_type;
  4835. typedef check<check<check<void>>> triple_type;
  4836. typedef check<check<check<check<void>>>> quadruple_type;
  4837. }
  4838. namespace test_decltype
  4839. {
  4840. int
  4841. f()
  4842. {
  4843. int a = 1;
  4844. decltype(a) b = 2;
  4845. return a + b;
  4846. }
  4847. }
  4848. namespace test_type_deduction
  4849. {
  4850. template < typename T1, typename T2 >
  4851. struct is_same
  4852. {
  4853. static const bool value = false;
  4854. };
  4855. template < typename T >
  4856. struct is_same<T, T>
  4857. {
  4858. static const bool value = true;
  4859. };
  4860. template < typename T1, typename T2 >
  4861. auto
  4862. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  4863. {
  4864. return a1 + a2;
  4865. }
  4866. int
  4867. test(const int c, volatile int v)
  4868. {
  4869. static_assert(is_same<int, decltype(0)>::value == true, "");
  4870. static_assert(is_same<int, decltype(c)>::value == false, "");
  4871. static_assert(is_same<int, decltype(v)>::value == false, "");
  4872. auto ac = c;
  4873. auto av = v;
  4874. auto sumi = ac + av + 'x';
  4875. auto sumf = ac + av + 1.0;
  4876. static_assert(is_same<int, decltype(ac)>::value == true, "");
  4877. static_assert(is_same<int, decltype(av)>::value == true, "");
  4878. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  4879. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  4880. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  4881. return (sumf > 0.0) ? sumi : add(c, v);
  4882. }
  4883. }
  4884. namespace test_noexcept
  4885. {
  4886. int f() { return 0; }
  4887. int g() noexcept { return 0; }
  4888. static_assert(noexcept(f()) == false, "");
  4889. static_assert(noexcept(g()) == true, "");
  4890. }
  4891. namespace test_constexpr
  4892. {
  4893. template < typename CharT >
  4894. unsigned long constexpr
  4895. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  4896. {
  4897. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  4898. }
  4899. template < typename CharT >
  4900. unsigned long constexpr
  4901. strlen_c(const CharT *const s) noexcept
  4902. {
  4903. return strlen_c_r(s, 0UL);
  4904. }
  4905. static_assert(strlen_c("") == 0UL, "");
  4906. static_assert(strlen_c("1") == 1UL, "");
  4907. static_assert(strlen_c("example") == 7UL, "");
  4908. static_assert(strlen_c("another\0example") == 7UL, "");
  4909. }
  4910. namespace test_rvalue_references
  4911. {
  4912. template < int N >
  4913. struct answer
  4914. {
  4915. static constexpr int value = N;
  4916. };
  4917. answer<1> f(int&) { return answer<1>(); }
  4918. answer<2> f(const int&) { return answer<2>(); }
  4919. answer<3> f(int&&) { return answer<3>(); }
  4920. void
  4921. test()
  4922. {
  4923. int i = 0;
  4924. const int c = 0;
  4925. static_assert(decltype(f(i))::value == 1, "");
  4926. static_assert(decltype(f(c))::value == 2, "");
  4927. static_assert(decltype(f(0))::value == 3, "");
  4928. }
  4929. }
  4930. namespace test_uniform_initialization
  4931. {
  4932. struct test
  4933. {
  4934. static const int zero {};
  4935. static const int one {1};
  4936. };
  4937. static_assert(test::zero == 0, "");
  4938. static_assert(test::one == 1, "");
  4939. }
  4940. namespace test_lambdas
  4941. {
  4942. void
  4943. test1()
  4944. {
  4945. auto lambda1 = [](){};
  4946. auto lambda2 = lambda1;
  4947. lambda1();
  4948. lambda2();
  4949. }
  4950. int
  4951. test2()
  4952. {
  4953. auto a = [](int i, int j){ return i + j; }(1, 2);
  4954. auto b = []() -> int { return '0'; }();
  4955. auto c = [=](){ return a + b; }();
  4956. auto d = [&](){ return c; }();
  4957. auto e = [a, &b](int x) mutable {
  4958. const auto identity = [](int y){ return y; };
  4959. for (auto i = 0; i < a; ++i)
  4960. a += b--;
  4961. return x + identity(a + b);
  4962. }(0);
  4963. return a + b + c + d + e;
  4964. }
  4965. int
  4966. test3()
  4967. {
  4968. const auto nullary = [](){ return 0; };
  4969. const auto unary = [](int x){ return x; };
  4970. using nullary_t = decltype(nullary);
  4971. using unary_t = decltype(unary);
  4972. const auto higher1st = [](nullary_t f){ return f(); };
  4973. const auto higher2nd = [unary](nullary_t f1){
  4974. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  4975. };
  4976. return higher1st(nullary) + higher2nd(nullary)(unary);
  4977. }
  4978. }
  4979. namespace test_variadic_templates
  4980. {
  4981. template <int...>
  4982. struct sum;
  4983. template <int N0, int... N1toN>
  4984. struct sum<N0, N1toN...>
  4985. {
  4986. static constexpr auto value = N0 + sum<N1toN...>::value;
  4987. };
  4988. template <>
  4989. struct sum<>
  4990. {
  4991. static constexpr auto value = 0;
  4992. };
  4993. static_assert(sum<>::value == 0, "");
  4994. static_assert(sum<1>::value == 1, "");
  4995. static_assert(sum<23>::value == 23, "");
  4996. static_assert(sum<1, 2>::value == 3, "");
  4997. static_assert(sum<5, 5, 11>::value == 21, "");
  4998. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  4999. }
  5000. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  5001. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  5002. // because of this.
  5003. namespace test_template_alias_sfinae
  5004. {
  5005. struct foo {};
  5006. template<typename T>
  5007. using member = typename T::member_type;
  5008. template<typename T>
  5009. void func(...) {}
  5010. template<typename T>
  5011. void func(member<T>*) {}
  5012. void test();
  5013. void test() { func<foo>(0); }
  5014. }
  5015. } // namespace cxx11
  5016. #endif // __cplusplus >= 201103L
  5017. // If the compiler admits that it is not ready for C++14, why torture it?
  5018. // Hopefully, this will speed up the test.
  5019. #ifndef __cplusplus
  5020. #error "This is not a C++ compiler"
  5021. #elif __cplusplus < 201402L
  5022. #error "This is not a C++14 compiler"
  5023. #else
  5024. namespace cxx14
  5025. {
  5026. namespace test_polymorphic_lambdas
  5027. {
  5028. int
  5029. test()
  5030. {
  5031. const auto lambda = [](auto&&... args){
  5032. const auto istiny = [](auto x){
  5033. return (sizeof(x) == 1UL) ? 1 : 0;
  5034. };
  5035. const int aretiny[] = { istiny(args)... };
  5036. return aretiny[0];
  5037. };
  5038. return lambda(1, 1L, 1.0f, '1');
  5039. }
  5040. }
  5041. namespace test_binary_literals
  5042. {
  5043. constexpr auto ivii = 0b0000000000101010;
  5044. static_assert(ivii == 42, "wrong value");
  5045. }
  5046. namespace test_generalized_constexpr
  5047. {
  5048. template < typename CharT >
  5049. constexpr unsigned long
  5050. strlen_c(const CharT *const s) noexcept
  5051. {
  5052. auto length = 0UL;
  5053. for (auto p = s; *p; ++p)
  5054. ++length;
  5055. return length;
  5056. }
  5057. static_assert(strlen_c("") == 0UL, "");
  5058. static_assert(strlen_c("x") == 1UL, "");
  5059. static_assert(strlen_c("test") == 4UL, "");
  5060. static_assert(strlen_c("another\0test") == 7UL, "");
  5061. }
  5062. namespace test_lambda_init_capture
  5063. {
  5064. int
  5065. test()
  5066. {
  5067. auto x = 0;
  5068. const auto lambda1 = [a = x](int b){ return a + b; };
  5069. const auto lambda2 = [a = lambda1(x)](){ return a; };
  5070. return lambda2();
  5071. }
  5072. }
  5073. namespace test_digit_seperators
  5074. {
  5075. constexpr auto ten_million = 100'000'000;
  5076. static_assert(ten_million == 100000000, "");
  5077. }
  5078. namespace test_return_type_deduction
  5079. {
  5080. auto f(int& x) { return x; }
  5081. decltype(auto) g(int& x) { return x; }
  5082. template < typename T1, typename T2 >
  5083. struct is_same
  5084. {
  5085. static constexpr auto value = false;
  5086. };
  5087. template < typename T >
  5088. struct is_same<T, T>
  5089. {
  5090. static constexpr auto value = true;
  5091. };
  5092. int
  5093. test()
  5094. {
  5095. auto x = 0;
  5096. static_assert(is_same<int, decltype(f(x))>::value, "");
  5097. static_assert(is_same<int&, decltype(g(x))>::value, "");
  5098. return x;
  5099. }
  5100. }
  5101. } // namespace cxx14
  5102. #endif // __cplusplus >= 201402L
  5103. _ACEOF
  5104. if ac_fn_cxx_try_compile "$LINENO"; then :
  5105. eval $cachevar=yes
  5106. else
  5107. eval $cachevar=no
  5108. fi
  5109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5110. CXX="$ac_save_CXX"
  5111. fi
  5112. eval ac_res=\$$cachevar
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5114. $as_echo "$ac_res" >&6; }
  5115. if eval test x\$$cachevar = xyes; then
  5116. CXX="$CXX $switch"
  5117. if test -n "$CXXCPP" ; then
  5118. CXXCPP="$CXXCPP $switch"
  5119. fi
  5120. ac_success=yes
  5121. break
  5122. fi
  5123. done
  5124. fi
  5125. ac_ext=c
  5126. ac_cpp='$CPP $CPPFLAGS'
  5127. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5128. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5129. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5130. if test x$ax_cxx_compile_cxx14_required = xtrue; then
  5131. if test x$ac_success = xno; then
  5132. as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
  5133. fi
  5134. fi
  5135. if test x$ac_success = xno; then
  5136. HAVE_CXX14=0
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
  5138. $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
  5139. else
  5140. HAVE_CXX14=1
  5141. $as_echo "#define HAVE_CXX14 1" >>confdefs.h
  5142. fi
  5143. if test "x${HAVE_CXX14}" = "x1" ; then
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
  5145. $as_echo_n "checking whether compiler supports -Wall... " >&6; }
  5146. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  5147. T_APPEND_V=-Wall
  5148. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  5149. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  5150. else
  5151. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  5152. fi
  5153. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  5154. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  5155. else
  5156. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  5157. fi
  5158. ac_ext=cpp
  5159. ac_cpp='$CXXCPP $CPPFLAGS'
  5160. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5161. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5162. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5164. /* end confdefs.h. */
  5165. int
  5166. main ()
  5167. {
  5168. return 0;
  5169. ;
  5170. return 0;
  5171. }
  5172. _ACEOF
  5173. if ac_fn_cxx_try_compile "$LINENO"; then :
  5174. je_cv_cxxflags_added=-Wall
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5176. $as_echo "yes" >&6; }
  5177. else
  5178. je_cv_cxxflags_added=
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5180. $as_echo "no" >&6; }
  5181. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  5182. fi
  5183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5184. ac_ext=c
  5185. ac_cpp='$CPP $CPPFLAGS'
  5186. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5187. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5188. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5189. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  5190. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  5191. else
  5192. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  5193. fi
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wextra" >&5
  5195. $as_echo_n "checking whether compiler supports -Wextra... " >&6; }
  5196. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  5197. T_APPEND_V=-Wextra
  5198. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  5199. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  5200. else
  5201. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  5202. fi
  5203. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  5204. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  5205. else
  5206. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  5207. fi
  5208. ac_ext=cpp
  5209. ac_cpp='$CXXCPP $CPPFLAGS'
  5210. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5211. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5212. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5214. /* end confdefs.h. */
  5215. int
  5216. main ()
  5217. {
  5218. return 0;
  5219. ;
  5220. return 0;
  5221. }
  5222. _ACEOF
  5223. if ac_fn_cxx_try_compile "$LINENO"; then :
  5224. je_cv_cxxflags_added=-Wextra
  5225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5226. $as_echo "yes" >&6; }
  5227. else
  5228. je_cv_cxxflags_added=
  5229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5230. $as_echo "no" >&6; }
  5231. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  5232. fi
  5233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5234. ac_ext=c
  5235. ac_cpp='$CPP $CPPFLAGS'
  5236. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5237. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5238. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5239. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  5240. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  5241. else
  5242. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  5243. fi
  5244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
  5245. $as_echo_n "checking whether compiler supports -g3... " >&6; }
  5246. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  5247. T_APPEND_V=-g3
  5248. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  5249. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  5250. else
  5251. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  5252. fi
  5253. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  5254. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  5255. else
  5256. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  5257. fi
  5258. ac_ext=cpp
  5259. ac_cpp='$CXXCPP $CPPFLAGS'
  5260. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5261. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5262. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5264. /* end confdefs.h. */
  5265. int
  5266. main ()
  5267. {
  5268. return 0;
  5269. ;
  5270. return 0;
  5271. }
  5272. _ACEOF
  5273. if ac_fn_cxx_try_compile "$LINENO"; then :
  5274. je_cv_cxxflags_added=-g3
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5276. $as_echo "yes" >&6; }
  5277. else
  5278. je_cv_cxxflags_added=
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5280. $as_echo "no" >&6; }
  5281. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  5282. fi
  5283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5284. ac_ext=c
  5285. ac_cpp='$CPP $CPPFLAGS'
  5286. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5287. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5288. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5289. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  5290. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  5291. else
  5292. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  5293. fi
  5294. SAVED_LIBS="${LIBS}"
  5295. T_APPEND_V=-lstdc++
  5296. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  5297. LIBS="${LIBS}${T_APPEND_V}"
  5298. else
  5299. LIBS="${LIBS} ${T_APPEND_V}"
  5300. fi
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libstdc++ linkage is compilable" >&5
  5302. $as_echo_n "checking whether libstdc++ linkage is compilable... " >&6; }
  5303. if ${je_cv_libstdcxx+:} false; then :
  5304. $as_echo_n "(cached) " >&6
  5305. else
  5306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5307. /* end confdefs.h. */
  5308. #include <stdlib.h>
  5309. int
  5310. main ()
  5311. {
  5312. int *arr = (int *)malloc(sizeof(int) * 42);
  5313. if (arr == NULL)
  5314. return 1;
  5315. ;
  5316. return 0;
  5317. }
  5318. _ACEOF
  5319. if ac_fn_c_try_link "$LINENO"; then :
  5320. je_cv_libstdcxx=yes
  5321. else
  5322. je_cv_libstdcxx=no
  5323. fi
  5324. rm -f core conftest.err conftest.$ac_objext \
  5325. conftest$ac_exeext conftest.$ac_ext
  5326. fi
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_libstdcxx" >&5
  5328. $as_echo "$je_cv_libstdcxx" >&6; }
  5329. if test "x${je_cv_libstdcxx}" = "xno" ; then
  5330. LIBS="${SAVED_LIBS}"
  5331. fi
  5332. else
  5333. enable_cxx="0"
  5334. fi
  5335. fi
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5337. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5338. if ${ac_cv_path_GREP+:} false; then :
  5339. $as_echo_n "(cached) " >&6
  5340. else
  5341. if test -z "$GREP"; then
  5342. ac_path_GREP_found=false
  5343. # Loop through the user's path and test for each of PROGNAME-LIST
  5344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5345. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5346. do
  5347. IFS=$as_save_IFS
  5348. test -z "$as_dir" && as_dir=.
  5349. for ac_prog in grep ggrep; do
  5350. for ac_exec_ext in '' $ac_executable_extensions; do
  5351. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5352. as_fn_executable_p "$ac_path_GREP" || continue
  5353. # Check for GNU ac_path_GREP and select it if it is found.
  5354. # Check for GNU $ac_path_GREP
  5355. case `"$ac_path_GREP" --version 2>&1` in
  5356. *GNU*)
  5357. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5358. *)
  5359. ac_count=0
  5360. $as_echo_n 0123456789 >"conftest.in"
  5361. while :
  5362. do
  5363. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5364. mv "conftest.tmp" "conftest.in"
  5365. cp "conftest.in" "conftest.nl"
  5366. $as_echo 'GREP' >> "conftest.nl"
  5367. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5368. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5369. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5370. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5371. # Best one so far, save it but keep looking for a better one
  5372. ac_cv_path_GREP="$ac_path_GREP"
  5373. ac_path_GREP_max=$ac_count
  5374. fi
  5375. # 10*(2^10) chars as input seems more than enough
  5376. test $ac_count -gt 10 && break
  5377. done
  5378. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5379. esac
  5380. $ac_path_GREP_found && break 3
  5381. done
  5382. done
  5383. done
  5384. IFS=$as_save_IFS
  5385. if test -z "$ac_cv_path_GREP"; then
  5386. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5387. fi
  5388. else
  5389. ac_cv_path_GREP=$GREP
  5390. fi
  5391. fi
  5392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5393. $as_echo "$ac_cv_path_GREP" >&6; }
  5394. GREP="$ac_cv_path_GREP"
  5395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5396. $as_echo_n "checking for egrep... " >&6; }
  5397. if ${ac_cv_path_EGREP+:} false; then :
  5398. $as_echo_n "(cached) " >&6
  5399. else
  5400. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5401. then ac_cv_path_EGREP="$GREP -E"
  5402. else
  5403. if test -z "$EGREP"; then
  5404. ac_path_EGREP_found=false
  5405. # Loop through the user's path and test for each of PROGNAME-LIST
  5406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5407. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5408. do
  5409. IFS=$as_save_IFS
  5410. test -z "$as_dir" && as_dir=.
  5411. for ac_prog in egrep; do
  5412. for ac_exec_ext in '' $ac_executable_extensions; do
  5413. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5414. as_fn_executable_p "$ac_path_EGREP" || continue
  5415. # Check for GNU ac_path_EGREP and select it if it is found.
  5416. # Check for GNU $ac_path_EGREP
  5417. case `"$ac_path_EGREP" --version 2>&1` in
  5418. *GNU*)
  5419. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5420. *)
  5421. ac_count=0
  5422. $as_echo_n 0123456789 >"conftest.in"
  5423. while :
  5424. do
  5425. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5426. mv "conftest.tmp" "conftest.in"
  5427. cp "conftest.in" "conftest.nl"
  5428. $as_echo 'EGREP' >> "conftest.nl"
  5429. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5430. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5431. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5432. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5433. # Best one so far, save it but keep looking for a better one
  5434. ac_cv_path_EGREP="$ac_path_EGREP"
  5435. ac_path_EGREP_max=$ac_count
  5436. fi
  5437. # 10*(2^10) chars as input seems more than enough
  5438. test $ac_count -gt 10 && break
  5439. done
  5440. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5441. esac
  5442. $ac_path_EGREP_found && break 3
  5443. done
  5444. done
  5445. done
  5446. IFS=$as_save_IFS
  5447. if test -z "$ac_cv_path_EGREP"; then
  5448. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5449. fi
  5450. else
  5451. ac_cv_path_EGREP=$EGREP
  5452. fi
  5453. fi
  5454. fi
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5456. $as_echo "$ac_cv_path_EGREP" >&6; }
  5457. EGREP="$ac_cv_path_EGREP"
  5458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5459. $as_echo_n "checking for ANSI C header files... " >&6; }
  5460. if ${ac_cv_header_stdc+:} false; then :
  5461. $as_echo_n "(cached) " >&6
  5462. else
  5463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5464. /* end confdefs.h. */
  5465. #include <stdlib.h>
  5466. #include <stdarg.h>
  5467. #include <string.h>
  5468. #include <float.h>
  5469. int
  5470. main ()
  5471. {
  5472. ;
  5473. return 0;
  5474. }
  5475. _ACEOF
  5476. if ac_fn_c_try_compile "$LINENO"; then :
  5477. ac_cv_header_stdc=yes
  5478. else
  5479. ac_cv_header_stdc=no
  5480. fi
  5481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5482. if test $ac_cv_header_stdc = yes; then
  5483. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5485. /* end confdefs.h. */
  5486. #include <string.h>
  5487. _ACEOF
  5488. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5489. $EGREP "memchr" >/dev/null 2>&1; then :
  5490. else
  5491. ac_cv_header_stdc=no
  5492. fi
  5493. rm -f conftest*
  5494. fi
  5495. if test $ac_cv_header_stdc = yes; then
  5496. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5498. /* end confdefs.h. */
  5499. #include <stdlib.h>
  5500. _ACEOF
  5501. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5502. $EGREP "free" >/dev/null 2>&1; then :
  5503. else
  5504. ac_cv_header_stdc=no
  5505. fi
  5506. rm -f conftest*
  5507. fi
  5508. if test $ac_cv_header_stdc = yes; then
  5509. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5510. if test "$cross_compiling" = yes; then :
  5511. :
  5512. else
  5513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5514. /* end confdefs.h. */
  5515. #include <ctype.h>
  5516. #include <stdlib.h>
  5517. #if ((' ' & 0x0FF) == 0x020)
  5518. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5519. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5520. #else
  5521. # define ISLOWER(c) \
  5522. (('a' <= (c) && (c) <= 'i') \
  5523. || ('j' <= (c) && (c) <= 'r') \
  5524. || ('s' <= (c) && (c) <= 'z'))
  5525. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5526. #endif
  5527. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5528. int
  5529. main ()
  5530. {
  5531. int i;
  5532. for (i = 0; i < 256; i++)
  5533. if (XOR (islower (i), ISLOWER (i))
  5534. || toupper (i) != TOUPPER (i))
  5535. return 2;
  5536. return 0;
  5537. }
  5538. _ACEOF
  5539. if ac_fn_c_try_run "$LINENO"; then :
  5540. else
  5541. ac_cv_header_stdc=no
  5542. fi
  5543. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5544. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5545. fi
  5546. fi
  5547. fi
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5549. $as_echo "$ac_cv_header_stdc" >&6; }
  5550. if test $ac_cv_header_stdc = yes; then
  5551. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5552. fi
  5553. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5554. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5555. inttypes.h stdint.h unistd.h
  5556. do :
  5557. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5558. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5559. "
  5560. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5561. cat >>confdefs.h <<_ACEOF
  5562. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5563. _ACEOF
  5564. fi
  5565. done
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  5567. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5568. if ${ac_cv_c_bigendian+:} false; then :
  5569. $as_echo_n "(cached) " >&6
  5570. else
  5571. ac_cv_c_bigendian=unknown
  5572. # See if we're dealing with a universal compiler.
  5573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5574. /* end confdefs.h. */
  5575. #ifndef __APPLE_CC__
  5576. not a universal capable compiler
  5577. #endif
  5578. typedef int dummy;
  5579. _ACEOF
  5580. if ac_fn_c_try_compile "$LINENO"; then :
  5581. # Check for potential -arch flags. It is not universal unless
  5582. # there are at least two -arch flags with different values.
  5583. ac_arch=
  5584. ac_prev=
  5585. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  5586. if test -n "$ac_prev"; then
  5587. case $ac_word in
  5588. i?86 | x86_64 | ppc | ppc64)
  5589. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  5590. ac_arch=$ac_word
  5591. else
  5592. ac_cv_c_bigendian=universal
  5593. break
  5594. fi
  5595. ;;
  5596. esac
  5597. ac_prev=
  5598. elif test "x$ac_word" = "x-arch"; then
  5599. ac_prev=arch
  5600. fi
  5601. done
  5602. fi
  5603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5604. if test $ac_cv_c_bigendian = unknown; then
  5605. # See if sys/param.h defines the BYTE_ORDER macro.
  5606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5607. /* end confdefs.h. */
  5608. #include <sys/types.h>
  5609. #include <sys/param.h>
  5610. int
  5611. main ()
  5612. {
  5613. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5614. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5615. && LITTLE_ENDIAN)
  5616. bogus endian macros
  5617. #endif
  5618. ;
  5619. return 0;
  5620. }
  5621. _ACEOF
  5622. if ac_fn_c_try_compile "$LINENO"; then :
  5623. # It does; now see whether it defined to BIG_ENDIAN or not.
  5624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5625. /* end confdefs.h. */
  5626. #include <sys/types.h>
  5627. #include <sys/param.h>
  5628. int
  5629. main ()
  5630. {
  5631. #if BYTE_ORDER != BIG_ENDIAN
  5632. not big endian
  5633. #endif
  5634. ;
  5635. return 0;
  5636. }
  5637. _ACEOF
  5638. if ac_fn_c_try_compile "$LINENO"; then :
  5639. ac_cv_c_bigendian=yes
  5640. else
  5641. ac_cv_c_bigendian=no
  5642. fi
  5643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5644. fi
  5645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5646. fi
  5647. if test $ac_cv_c_bigendian = unknown; then
  5648. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  5649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5650. /* end confdefs.h. */
  5651. #include <limits.h>
  5652. int
  5653. main ()
  5654. {
  5655. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  5656. bogus endian macros
  5657. #endif
  5658. ;
  5659. return 0;
  5660. }
  5661. _ACEOF
  5662. if ac_fn_c_try_compile "$LINENO"; then :
  5663. # It does; now see whether it defined to _BIG_ENDIAN or not.
  5664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5665. /* end confdefs.h. */
  5666. #include <limits.h>
  5667. int
  5668. main ()
  5669. {
  5670. #ifndef _BIG_ENDIAN
  5671. not big endian
  5672. #endif
  5673. ;
  5674. return 0;
  5675. }
  5676. _ACEOF
  5677. if ac_fn_c_try_compile "$LINENO"; then :
  5678. ac_cv_c_bigendian=yes
  5679. else
  5680. ac_cv_c_bigendian=no
  5681. fi
  5682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5683. fi
  5684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5685. fi
  5686. if test $ac_cv_c_bigendian = unknown; then
  5687. # Compile a test program.
  5688. if test "$cross_compiling" = yes; then :
  5689. # Try to guess by grepping values from an object file.
  5690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5691. /* end confdefs.h. */
  5692. short int ascii_mm[] =
  5693. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5694. short int ascii_ii[] =
  5695. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5696. int use_ascii (int i) {
  5697. return ascii_mm[i] + ascii_ii[i];
  5698. }
  5699. short int ebcdic_ii[] =
  5700. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5701. short int ebcdic_mm[] =
  5702. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5703. int use_ebcdic (int i) {
  5704. return ebcdic_mm[i] + ebcdic_ii[i];
  5705. }
  5706. extern int foo;
  5707. int
  5708. main ()
  5709. {
  5710. return use_ascii (foo) == use_ebcdic (foo);
  5711. ;
  5712. return 0;
  5713. }
  5714. _ACEOF
  5715. if ac_fn_c_try_compile "$LINENO"; then :
  5716. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  5717. ac_cv_c_bigendian=yes
  5718. fi
  5719. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5720. if test "$ac_cv_c_bigendian" = unknown; then
  5721. ac_cv_c_bigendian=no
  5722. else
  5723. # finding both strings is unlikely to happen, but who knows?
  5724. ac_cv_c_bigendian=unknown
  5725. fi
  5726. fi
  5727. fi
  5728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5729. else
  5730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5731. /* end confdefs.h. */
  5732. $ac_includes_default
  5733. int
  5734. main ()
  5735. {
  5736. /* Are we little or big endian? From Harbison&Steele. */
  5737. union
  5738. {
  5739. long int l;
  5740. char c[sizeof (long int)];
  5741. } u;
  5742. u.l = 1;
  5743. return u.c[sizeof (long int) - 1] == 1;
  5744. ;
  5745. return 0;
  5746. }
  5747. _ACEOF
  5748. if ac_fn_c_try_run "$LINENO"; then :
  5749. ac_cv_c_bigendian=no
  5750. else
  5751. ac_cv_c_bigendian=yes
  5752. fi
  5753. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5754. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5755. fi
  5756. fi
  5757. fi
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  5759. $as_echo "$ac_cv_c_bigendian" >&6; }
  5760. case $ac_cv_c_bigendian in #(
  5761. yes)
  5762. ac_cv_big_endian=1;; #(
  5763. no)
  5764. ac_cv_big_endian=0 ;; #(
  5765. universal)
  5766. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  5767. ;; #(
  5768. *)
  5769. as_fn_error $? "unknown endianness
  5770. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  5771. esac
  5772. if test "x${ac_cv_big_endian}" = "x1" ; then
  5773. cat >>confdefs.h <<_ACEOF
  5774. #define JEMALLOC_BIG_ENDIAN
  5775. _ACEOF
  5776. fi
  5777. if test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then
  5778. T_APPEND_V=-I${srcdir}/include/msvc_compat/C99
  5779. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  5780. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  5781. else
  5782. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  5783. fi
  5784. fi
  5785. if test "x${je_cv_msvc}" = "xyes" ; then
  5786. LG_SIZEOF_PTR=LG_SIZEOF_PTR_WIN
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&5
  5788. $as_echo "Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&6; }
  5789. else
  5790. # The cast to long int works around a bug in the HP C Compiler
  5791. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5792. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5793. # This bug is HP SR number 8606223364.
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  5795. $as_echo_n "checking size of void *... " >&6; }
  5796. if ${ac_cv_sizeof_void_p+:} false; then :
  5797. $as_echo_n "(cached) " >&6
  5798. else
  5799. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  5800. else
  5801. if test "$ac_cv_type_void_p" = yes; then
  5802. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5803. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5804. as_fn_error 77 "cannot compute sizeof (void *)
  5805. See \`config.log' for more details" "$LINENO" 5; }
  5806. else
  5807. ac_cv_sizeof_void_p=0
  5808. fi
  5809. fi
  5810. fi
  5811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  5812. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  5813. cat >>confdefs.h <<_ACEOF
  5814. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  5815. _ACEOF
  5816. if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
  5817. LG_SIZEOF_PTR=3
  5818. elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
  5819. LG_SIZEOF_PTR=2
  5820. else
  5821. as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
  5822. fi
  5823. fi
  5824. cat >>confdefs.h <<_ACEOF
  5825. #define LG_SIZEOF_PTR $LG_SIZEOF_PTR
  5826. _ACEOF
  5827. # The cast to long int works around a bug in the HP C Compiler
  5828. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5829. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5830. # This bug is HP SR number 8606223364.
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  5832. $as_echo_n "checking size of int... " >&6; }
  5833. if ${ac_cv_sizeof_int+:} false; then :
  5834. $as_echo_n "(cached) " >&6
  5835. else
  5836. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  5837. else
  5838. if test "$ac_cv_type_int" = yes; then
  5839. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5840. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5841. as_fn_error 77 "cannot compute sizeof (int)
  5842. See \`config.log' for more details" "$LINENO" 5; }
  5843. else
  5844. ac_cv_sizeof_int=0
  5845. fi
  5846. fi
  5847. fi
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  5849. $as_echo "$ac_cv_sizeof_int" >&6; }
  5850. cat >>confdefs.h <<_ACEOF
  5851. #define SIZEOF_INT $ac_cv_sizeof_int
  5852. _ACEOF
  5853. if test "x${ac_cv_sizeof_int}" = "x8" ; then
  5854. LG_SIZEOF_INT=3
  5855. elif test "x${ac_cv_sizeof_int}" = "x4" ; then
  5856. LG_SIZEOF_INT=2
  5857. else
  5858. as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
  5859. fi
  5860. cat >>confdefs.h <<_ACEOF
  5861. #define LG_SIZEOF_INT $LG_SIZEOF_INT
  5862. _ACEOF
  5863. # The cast to long int works around a bug in the HP C Compiler
  5864. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5865. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5866. # This bug is HP SR number 8606223364.
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  5868. $as_echo_n "checking size of long... " >&6; }
  5869. if ${ac_cv_sizeof_long+:} false; then :
  5870. $as_echo_n "(cached) " >&6
  5871. else
  5872. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  5873. else
  5874. if test "$ac_cv_type_long" = yes; then
  5875. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5876. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5877. as_fn_error 77 "cannot compute sizeof (long)
  5878. See \`config.log' for more details" "$LINENO" 5; }
  5879. else
  5880. ac_cv_sizeof_long=0
  5881. fi
  5882. fi
  5883. fi
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  5885. $as_echo "$ac_cv_sizeof_long" >&6; }
  5886. cat >>confdefs.h <<_ACEOF
  5887. #define SIZEOF_LONG $ac_cv_sizeof_long
  5888. _ACEOF
  5889. if test "x${ac_cv_sizeof_long}" = "x8" ; then
  5890. LG_SIZEOF_LONG=3
  5891. elif test "x${ac_cv_sizeof_long}" = "x4" ; then
  5892. LG_SIZEOF_LONG=2
  5893. else
  5894. as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
  5895. fi
  5896. cat >>confdefs.h <<_ACEOF
  5897. #define LG_SIZEOF_LONG $LG_SIZEOF_LONG
  5898. _ACEOF
  5899. # The cast to long int works around a bug in the HP C Compiler
  5900. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5901. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5902. # This bug is HP SR number 8606223364.
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  5904. $as_echo_n "checking size of long long... " >&6; }
  5905. if ${ac_cv_sizeof_long_long+:} false; then :
  5906. $as_echo_n "(cached) " >&6
  5907. else
  5908. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  5909. else
  5910. if test "$ac_cv_type_long_long" = yes; then
  5911. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5912. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5913. as_fn_error 77 "cannot compute sizeof (long long)
  5914. See \`config.log' for more details" "$LINENO" 5; }
  5915. else
  5916. ac_cv_sizeof_long_long=0
  5917. fi
  5918. fi
  5919. fi
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  5921. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  5922. cat >>confdefs.h <<_ACEOF
  5923. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  5924. _ACEOF
  5925. if test "x${ac_cv_sizeof_long_long}" = "x8" ; then
  5926. LG_SIZEOF_LONG_LONG=3
  5927. elif test "x${ac_cv_sizeof_long_long}" = "x4" ; then
  5928. LG_SIZEOF_LONG_LONG=2
  5929. else
  5930. as_fn_error $? "Unsupported long long size: ${ac_cv_sizeof_long_long}" "$LINENO" 5
  5931. fi
  5932. cat >>confdefs.h <<_ACEOF
  5933. #define LG_SIZEOF_LONG_LONG $LG_SIZEOF_LONG_LONG
  5934. _ACEOF
  5935. # The cast to long int works around a bug in the HP C Compiler
  5936. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5937. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5938. # This bug is HP SR number 8606223364.
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
  5940. $as_echo_n "checking size of intmax_t... " >&6; }
  5941. if ${ac_cv_sizeof_intmax_t+:} false; then :
  5942. $as_echo_n "(cached) " >&6
  5943. else
  5944. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
  5945. else
  5946. if test "$ac_cv_type_intmax_t" = yes; then
  5947. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5948. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5949. as_fn_error 77 "cannot compute sizeof (intmax_t)
  5950. See \`config.log' for more details" "$LINENO" 5; }
  5951. else
  5952. ac_cv_sizeof_intmax_t=0
  5953. fi
  5954. fi
  5955. fi
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
  5957. $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
  5958. cat >>confdefs.h <<_ACEOF
  5959. #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
  5960. _ACEOF
  5961. if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then
  5962. LG_SIZEOF_INTMAX_T=4
  5963. elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then
  5964. LG_SIZEOF_INTMAX_T=3
  5965. elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then
  5966. LG_SIZEOF_INTMAX_T=2
  5967. else
  5968. as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5
  5969. fi
  5970. cat >>confdefs.h <<_ACEOF
  5971. #define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T
  5972. _ACEOF
  5973. # Make sure we can run config.sub.
  5974. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  5975. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  5977. $as_echo_n "checking build system type... " >&6; }
  5978. if ${ac_cv_build+:} false; then :
  5979. $as_echo_n "(cached) " >&6
  5980. else
  5981. ac_build_alias=$build_alias
  5982. test "x$ac_build_alias" = x &&
  5983. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  5984. test "x$ac_build_alias" = x &&
  5985. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  5986. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  5987. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  5988. fi
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  5990. $as_echo "$ac_cv_build" >&6; }
  5991. case $ac_cv_build in
  5992. *-*-*) ;;
  5993. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  5994. esac
  5995. build=$ac_cv_build
  5996. ac_save_IFS=$IFS; IFS='-'
  5997. set x $ac_cv_build
  5998. shift
  5999. build_cpu=$1
  6000. build_vendor=$2
  6001. shift; shift
  6002. # Remember, the first character of IFS is used to create $*,
  6003. # except with old shells:
  6004. build_os=$*
  6005. IFS=$ac_save_IFS
  6006. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  6008. $as_echo_n "checking host system type... " >&6; }
  6009. if ${ac_cv_host+:} false; then :
  6010. $as_echo_n "(cached) " >&6
  6011. else
  6012. if test "x$host_alias" = x; then
  6013. ac_cv_host=$ac_cv_build
  6014. else
  6015. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6016. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  6017. fi
  6018. fi
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  6020. $as_echo "$ac_cv_host" >&6; }
  6021. case $ac_cv_host in
  6022. *-*-*) ;;
  6023. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  6024. esac
  6025. host=$ac_cv_host
  6026. ac_save_IFS=$IFS; IFS='-'
  6027. set x $ac_cv_host
  6028. shift
  6029. host_cpu=$1
  6030. host_vendor=$2
  6031. shift; shift
  6032. # Remember, the first character of IFS is used to create $*,
  6033. # except with old shells:
  6034. host_os=$*
  6035. IFS=$ac_save_IFS
  6036. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6037. CPU_SPINWAIT=""
  6038. case "${host_cpu}" in
  6039. i686|x86_64)
  6040. HAVE_CPU_SPINWAIT=1
  6041. if test "x${je_cv_msvc}" = "xyes" ; then
  6042. if ${je_cv_pause_msvc+:} false; then :
  6043. $as_echo_n "(cached) " >&6
  6044. else
  6045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction MSVC is compilable" >&5
  6046. $as_echo_n "checking whether pause instruction MSVC is compilable... " >&6; }
  6047. if ${je_cv_pause_msvc+:} false; then :
  6048. $as_echo_n "(cached) " >&6
  6049. else
  6050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6051. /* end confdefs.h. */
  6052. int
  6053. main ()
  6054. {
  6055. _mm_pause(); return 0;
  6056. ;
  6057. return 0;
  6058. }
  6059. _ACEOF
  6060. if ac_fn_c_try_link "$LINENO"; then :
  6061. je_cv_pause_msvc=yes
  6062. else
  6063. je_cv_pause_msvc=no
  6064. fi
  6065. rm -f core conftest.err conftest.$ac_objext \
  6066. conftest$ac_exeext conftest.$ac_ext
  6067. fi
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause_msvc" >&5
  6069. $as_echo "$je_cv_pause_msvc" >&6; }
  6070. fi
  6071. if test "x${je_cv_pause_msvc}" = "xyes" ; then
  6072. CPU_SPINWAIT='_mm_pause()'
  6073. fi
  6074. else
  6075. if ${je_cv_pause+:} false; then :
  6076. $as_echo_n "(cached) " >&6
  6077. else
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5
  6079. $as_echo_n "checking whether pause instruction is compilable... " >&6; }
  6080. if ${je_cv_pause+:} false; then :
  6081. $as_echo_n "(cached) " >&6
  6082. else
  6083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6084. /* end confdefs.h. */
  6085. int
  6086. main ()
  6087. {
  6088. __asm__ volatile("pause"); return 0;
  6089. ;
  6090. return 0;
  6091. }
  6092. _ACEOF
  6093. if ac_fn_c_try_link "$LINENO"; then :
  6094. je_cv_pause=yes
  6095. else
  6096. je_cv_pause=no
  6097. fi
  6098. rm -f core conftest.err conftest.$ac_objext \
  6099. conftest$ac_exeext conftest.$ac_ext
  6100. fi
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5
  6102. $as_echo "$je_cv_pause" >&6; }
  6103. fi
  6104. if test "x${je_cv_pause}" = "xyes" ; then
  6105. CPU_SPINWAIT='__asm__ volatile("pause")'
  6106. fi
  6107. fi
  6108. ;;
  6109. *)
  6110. HAVE_CPU_SPINWAIT=0
  6111. ;;
  6112. esac
  6113. cat >>confdefs.h <<_ACEOF
  6114. #define HAVE_CPU_SPINWAIT $HAVE_CPU_SPINWAIT
  6115. _ACEOF
  6116. cat >>confdefs.h <<_ACEOF
  6117. #define CPU_SPINWAIT $CPU_SPINWAIT
  6118. _ACEOF
  6119. # Check whether --with-lg_vaddr was given.
  6120. if test "${with_lg_vaddr+set}" = set; then :
  6121. withval=$with_lg_vaddr; LG_VADDR="$with_lg_vaddr"
  6122. else
  6123. LG_VADDR="detect"
  6124. fi
  6125. case "${host_cpu}" in
  6126. aarch64)
  6127. if test "x$LG_VADDR" = "xdetect"; then
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
  6129. $as_echo_n "checking number of significant virtual address bits... " >&6; }
  6130. if test "x${LG_SIZEOF_PTR}" = "x2" ; then
  6131. #aarch64 ILP32
  6132. LG_VADDR=32
  6133. else
  6134. #aarch64 LP64
  6135. LG_VADDR=48
  6136. fi
  6137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
  6138. $as_echo "$LG_VADDR" >&6; }
  6139. fi
  6140. ;;
  6141. x86_64)
  6142. if test "x$LG_VADDR" = "xdetect"; then
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
  6144. $as_echo_n "checking number of significant virtual address bits... " >&6; }
  6145. if ${je_cv_lg_vaddr+:} false; then :
  6146. $as_echo_n "(cached) " >&6
  6147. else
  6148. if test "$cross_compiling" = yes; then :
  6149. je_cv_lg_vaddr=57
  6150. else
  6151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6152. /* end confdefs.h. */
  6153. #include <stdio.h>
  6154. #ifdef _WIN32
  6155. #include <limits.h>
  6156. #include <intrin.h>
  6157. typedef unsigned __int32 uint32_t;
  6158. #else
  6159. #include <stdint.h>
  6160. #endif
  6161. int
  6162. main ()
  6163. {
  6164. uint32_t r[4];
  6165. uint32_t eax_in = 0x80000008U;
  6166. #ifdef _WIN32
  6167. __cpuid((int *)r, (int)eax_in);
  6168. #else
  6169. asm volatile ("cpuid"
  6170. : "=a" (r[0]), "=b" (r[1]), "=c" (r[2]), "=d" (r[3])
  6171. : "a" (eax_in), "c" (0)
  6172. );
  6173. #endif
  6174. uint32_t eax_out = r[0];
  6175. uint32_t vaddr = ((eax_out & 0x0000ff00U) >> 8);
  6176. FILE *f = fopen("conftest.out", "w");
  6177. if (f == NULL) {
  6178. return 1;
  6179. }
  6180. if (vaddr > (sizeof(void *) << 3)) {
  6181. vaddr = sizeof(void *) << 3;
  6182. }
  6183. fprintf(f, "%u", vaddr);
  6184. fclose(f);
  6185. return 0;
  6186. ;
  6187. return 0;
  6188. }
  6189. _ACEOF
  6190. if ac_fn_c_try_run "$LINENO"; then :
  6191. je_cv_lg_vaddr=`cat conftest.out`
  6192. else
  6193. je_cv_lg_vaddr=error
  6194. fi
  6195. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6196. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6197. fi
  6198. fi
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_vaddr" >&5
  6200. $as_echo "$je_cv_lg_vaddr" >&6; }
  6201. if test "x${je_cv_lg_vaddr}" != "x" ; then
  6202. LG_VADDR="${je_cv_lg_vaddr}"
  6203. fi
  6204. if test "x${LG_VADDR}" != "xerror" ; then
  6205. cat >>confdefs.h <<_ACEOF
  6206. #define LG_VADDR $LG_VADDR
  6207. _ACEOF
  6208. else
  6209. as_fn_error $? "cannot determine number of significant virtual address bits" "$LINENO" 5
  6210. fi
  6211. fi
  6212. ;;
  6213. *)
  6214. if test "x$LG_VADDR" = "xdetect"; then
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
  6216. $as_echo_n "checking number of significant virtual address bits... " >&6; }
  6217. if test "x${LG_SIZEOF_PTR}" = "x3" ; then
  6218. LG_VADDR=64
  6219. elif test "x${LG_SIZEOF_PTR}" = "x2" ; then
  6220. LG_VADDR=32
  6221. elif test "x${LG_SIZEOF_PTR}" = "xLG_SIZEOF_PTR_WIN" ; then
  6222. LG_VADDR="(1U << (LG_SIZEOF_PTR_WIN+3))"
  6223. else
  6224. as_fn_error $? "Unsupported lg(pointer size): ${LG_SIZEOF_PTR}" "$LINENO" 5
  6225. fi
  6226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
  6227. $as_echo "$LG_VADDR" >&6; }
  6228. fi
  6229. ;;
  6230. esac
  6231. cat >>confdefs.h <<_ACEOF
  6232. #define LG_VADDR $LG_VADDR
  6233. _ACEOF
  6234. LD_PRELOAD_VAR="LD_PRELOAD"
  6235. so="so"
  6236. importlib="${so}"
  6237. o="$ac_objext"
  6238. a="a"
  6239. exe="$ac_exeext"
  6240. libprefix="lib"
  6241. link_whole_archive="0"
  6242. DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
  6243. RPATH='-Wl,-rpath,$(1)'
  6244. SOREV="${so}.${rev}"
  6245. PIC_CFLAGS='-fPIC -DPIC'
  6246. CTARGET='-o $@'
  6247. LDTARGET='-o $@'
  6248. TEST_LD_MODE=
  6249. EXTRA_LDFLAGS=
  6250. ARFLAGS='crus'
  6251. AROUT=' $@'
  6252. CC_MM=1
  6253. if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
  6254. TEST_LD_MODE='-dynamic'
  6255. fi
  6256. if test "x${je_cv_cray}" = "xyes" ; then
  6257. CC_MM=
  6258. fi
  6259. if test -n "$ac_tool_prefix"; then
  6260. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6261. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6263. $as_echo_n "checking for $ac_word... " >&6; }
  6264. if ${ac_cv_prog_AR+:} false; then :
  6265. $as_echo_n "(cached) " >&6
  6266. else
  6267. if test -n "$AR"; then
  6268. ac_cv_prog_AR="$AR" # Let the user override the test.
  6269. else
  6270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6271. for as_dir in $PATH
  6272. do
  6273. IFS=$as_save_IFS
  6274. test -z "$as_dir" && as_dir=.
  6275. for ac_exec_ext in '' $ac_executable_extensions; do
  6276. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6277. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6279. break 2
  6280. fi
  6281. done
  6282. done
  6283. IFS=$as_save_IFS
  6284. fi
  6285. fi
  6286. AR=$ac_cv_prog_AR
  6287. if test -n "$AR"; then
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6289. $as_echo "$AR" >&6; }
  6290. else
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6292. $as_echo "no" >&6; }
  6293. fi
  6294. fi
  6295. if test -z "$ac_cv_prog_AR"; then
  6296. ac_ct_AR=$AR
  6297. # Extract the first word of "ar", so it can be a program name with args.
  6298. set dummy ar; ac_word=$2
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6300. $as_echo_n "checking for $ac_word... " >&6; }
  6301. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6302. $as_echo_n "(cached) " >&6
  6303. else
  6304. if test -n "$ac_ct_AR"; then
  6305. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6306. else
  6307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6308. for as_dir in $PATH
  6309. do
  6310. IFS=$as_save_IFS
  6311. test -z "$as_dir" && as_dir=.
  6312. for ac_exec_ext in '' $ac_executable_extensions; do
  6313. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6314. ac_cv_prog_ac_ct_AR="ar"
  6315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6316. break 2
  6317. fi
  6318. done
  6319. done
  6320. IFS=$as_save_IFS
  6321. fi
  6322. fi
  6323. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6324. if test -n "$ac_ct_AR"; then
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6326. $as_echo "$ac_ct_AR" >&6; }
  6327. else
  6328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6329. $as_echo "no" >&6; }
  6330. fi
  6331. if test "x$ac_ct_AR" = x; then
  6332. AR=":"
  6333. else
  6334. case $cross_compiling:$ac_tool_warned in
  6335. yes:)
  6336. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6337. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6338. ac_tool_warned=yes ;;
  6339. esac
  6340. AR=$ac_ct_AR
  6341. fi
  6342. else
  6343. AR="$ac_cv_prog_AR"
  6344. fi
  6345. if test -n "$ac_tool_prefix"; then
  6346. # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
  6347. set dummy ${ac_tool_prefix}nm; ac_word=$2
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6349. $as_echo_n "checking for $ac_word... " >&6; }
  6350. if ${ac_cv_prog_NM+:} false; then :
  6351. $as_echo_n "(cached) " >&6
  6352. else
  6353. if test -n "$NM"; then
  6354. ac_cv_prog_NM="$NM" # Let the user override the test.
  6355. else
  6356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6357. for as_dir in $PATH
  6358. do
  6359. IFS=$as_save_IFS
  6360. test -z "$as_dir" && as_dir=.
  6361. for ac_exec_ext in '' $ac_executable_extensions; do
  6362. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6363. ac_cv_prog_NM="${ac_tool_prefix}nm"
  6364. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6365. break 2
  6366. fi
  6367. done
  6368. done
  6369. IFS=$as_save_IFS
  6370. fi
  6371. fi
  6372. NM=$ac_cv_prog_NM
  6373. if test -n "$NM"; then
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  6375. $as_echo "$NM" >&6; }
  6376. else
  6377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6378. $as_echo "no" >&6; }
  6379. fi
  6380. fi
  6381. if test -z "$ac_cv_prog_NM"; then
  6382. ac_ct_NM=$NM
  6383. # Extract the first word of "nm", so it can be a program name with args.
  6384. set dummy nm; ac_word=$2
  6385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6386. $as_echo_n "checking for $ac_word... " >&6; }
  6387. if ${ac_cv_prog_ac_ct_NM+:} false; then :
  6388. $as_echo_n "(cached) " >&6
  6389. else
  6390. if test -n "$ac_ct_NM"; then
  6391. ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
  6392. else
  6393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6394. for as_dir in $PATH
  6395. do
  6396. IFS=$as_save_IFS
  6397. test -z "$as_dir" && as_dir=.
  6398. for ac_exec_ext in '' $ac_executable_extensions; do
  6399. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6400. ac_cv_prog_ac_ct_NM="nm"
  6401. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6402. break 2
  6403. fi
  6404. done
  6405. done
  6406. IFS=$as_save_IFS
  6407. fi
  6408. fi
  6409. ac_ct_NM=$ac_cv_prog_ac_ct_NM
  6410. if test -n "$ac_ct_NM"; then
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
  6412. $as_echo "$ac_ct_NM" >&6; }
  6413. else
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6415. $as_echo "no" >&6; }
  6416. fi
  6417. if test "x$ac_ct_NM" = x; then
  6418. NM=":"
  6419. else
  6420. case $cross_compiling:$ac_tool_warned in
  6421. yes:)
  6422. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6423. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6424. ac_tool_warned=yes ;;
  6425. esac
  6426. NM=$ac_ct_NM
  6427. fi
  6428. else
  6429. NM="$ac_cv_prog_NM"
  6430. fi
  6431. for ac_prog in gawk mawk nawk awk
  6432. do
  6433. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6434. set dummy $ac_prog; ac_word=$2
  6435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6436. $as_echo_n "checking for $ac_word... " >&6; }
  6437. if ${ac_cv_prog_AWK+:} false; then :
  6438. $as_echo_n "(cached) " >&6
  6439. else
  6440. if test -n "$AWK"; then
  6441. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  6442. else
  6443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6444. for as_dir in $PATH
  6445. do
  6446. IFS=$as_save_IFS
  6447. test -z "$as_dir" && as_dir=.
  6448. for ac_exec_ext in '' $ac_executable_extensions; do
  6449. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6450. ac_cv_prog_AWK="$ac_prog"
  6451. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6452. break 2
  6453. fi
  6454. done
  6455. done
  6456. IFS=$as_save_IFS
  6457. fi
  6458. fi
  6459. AWK=$ac_cv_prog_AWK
  6460. if test -n "$AWK"; then
  6461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  6462. $as_echo "$AWK" >&6; }
  6463. else
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6465. $as_echo "no" >&6; }
  6466. fi
  6467. test -n "$AWK" && break
  6468. done
  6469. # Check whether --with-version was given.
  6470. if test "${with_version+set}" = set; then :
  6471. withval=$with_version;
  6472. echo "${with_version}" | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+-g[0-9a-f]\+$' 2>&1 1>/dev/null
  6473. if test $? -eq 0 ; then
  6474. echo "$with_version" > "${objroot}VERSION"
  6475. else
  6476. echo "${with_version}" | grep '^VERSION$' 2>&1 1>/dev/null
  6477. if test $? -ne 0 ; then
  6478. as_fn_error $? "${with_version} does not match <major>.<minor>.<bugfix>-<nrev>-g<gid> or VERSION" "$LINENO" 5
  6479. fi
  6480. fi
  6481. else
  6482. if test "x`test ! \"${srcroot}\" && cd \"${srcroot}\"; git rev-parse --is-inside-work-tree 2>/dev/null`" = "xtrue" ; then
  6483. for pattern in '[0-9].[0-9].[0-9]' '[0-9].[0-9].[0-9][0-9]' \
  6484. '[0-9].[0-9][0-9].[0-9]' '[0-9].[0-9][0-9].[0-9][0-9]' \
  6485. '[0-9][0-9].[0-9].[0-9]' '[0-9][0-9].[0-9].[0-9][0-9]' \
  6486. '[0-9][0-9].[0-9][0-9].[0-9]' \
  6487. '[0-9][0-9].[0-9][0-9].[0-9][0-9]'; do
  6488. (test ! "${srcroot}" && cd "${srcroot}"; git describe --long --abbrev=40 --match="${pattern}") > "${objroot}VERSION.tmp" 2>/dev/null
  6489. if test $? -eq 0 ; then
  6490. mv "${objroot}VERSION.tmp" "${objroot}VERSION"
  6491. break
  6492. fi
  6493. done
  6494. fi
  6495. rm -f "${objroot}VERSION.tmp"
  6496. fi
  6497. if test ! -e "${objroot}VERSION" ; then
  6498. if test ! -e "${srcroot}VERSION" ; then
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5
  6500. $as_echo "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; }
  6501. echo "0.0.0-0-g0000000000000000000000000000000000000000" > "${objroot}VERSION"
  6502. else
  6503. cp ${srcroot}VERSION ${objroot}VERSION
  6504. fi
  6505. fi
  6506. jemalloc_version=`cat "${objroot}VERSION"`
  6507. jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
  6508. jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
  6509. jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
  6510. jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
  6511. jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
  6512. default_retain="0"
  6513. maps_coalesce="1"
  6514. DUMP_SYMS="${NM} -a"
  6515. SYM_PREFIX=""
  6516. case "${host}" in
  6517. *-*-darwin* | *-*-ios*)
  6518. abi="macho"
  6519. RPATH=""
  6520. LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
  6521. so="dylib"
  6522. importlib="${so}"
  6523. force_tls="0"
  6524. DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)'
  6525. SOREV="${rev}.${so}"
  6526. sbrk_deprecated="1"
  6527. SYM_PREFIX="_"
  6528. ;;
  6529. *-*-freebsd*)
  6530. abi="elf"
  6531. $as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT " >>confdefs.h
  6532. force_lazy_lock="1"
  6533. ;;
  6534. *-*-dragonfly*)
  6535. abi="elf"
  6536. ;;
  6537. *-*-openbsd*)
  6538. abi="elf"
  6539. force_tls="0"
  6540. ;;
  6541. *-*-bitrig*)
  6542. abi="elf"
  6543. ;;
  6544. *-*-linux-android)
  6545. T_APPEND_V=-D_GNU_SOURCE
  6546. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6547. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  6548. else
  6549. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  6550. fi
  6551. abi="elf"
  6552. $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS " >>confdefs.h
  6553. $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
  6554. $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h
  6555. $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h
  6556. $as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
  6557. force_tls="0"
  6558. if test "${LG_SIZEOF_PTR}" = "3"; then
  6559. default_retain="1"
  6560. fi
  6561. ;;
  6562. *-*-linux*)
  6563. T_APPEND_V=-D_GNU_SOURCE
  6564. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6565. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  6566. else
  6567. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  6568. fi
  6569. abi="elf"
  6570. $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS " >>confdefs.h
  6571. $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
  6572. $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h
  6573. $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h
  6574. $as_echo "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h
  6575. if test "${LG_SIZEOF_PTR}" = "3"; then
  6576. default_retain="1"
  6577. fi
  6578. ;;
  6579. *-*-kfreebsd*)
  6580. T_APPEND_V=-D_GNU_SOURCE
  6581. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6582. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  6583. else
  6584. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  6585. fi
  6586. abi="elf"
  6587. $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
  6588. $as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT " >>confdefs.h
  6589. $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h
  6590. $as_echo "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h
  6591. ;;
  6592. *-*-netbsd*)
  6593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
  6594. $as_echo_n "checking ABI... " >&6; }
  6595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6596. /* end confdefs.h. */
  6597. #ifdef __ELF__
  6598. /* ELF */
  6599. #else
  6600. #error aout
  6601. #endif
  6602. int
  6603. main ()
  6604. {
  6605. ;
  6606. return 0;
  6607. }
  6608. _ACEOF
  6609. if ac_fn_c_try_compile "$LINENO"; then :
  6610. abi="elf"
  6611. else
  6612. abi="aout"
  6613. fi
  6614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
  6616. $as_echo "$abi" >&6; }
  6617. ;;
  6618. *-*-solaris2*)
  6619. abi="elf"
  6620. RPATH='-Wl,-R,$(1)'
  6621. T_APPEND_V=-D_POSIX_PTHREAD_SEMANTICS
  6622. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6623. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  6624. else
  6625. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  6626. fi
  6627. T_APPEND_V=-lposix4 -lsocket -lnsl
  6628. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6629. LIBS="${LIBS}${T_APPEND_V}"
  6630. else
  6631. LIBS="${LIBS} ${T_APPEND_V}"
  6632. fi
  6633. ;;
  6634. *-ibm-aix*)
  6635. if test "${LG_SIZEOF_PTR}" = "3"; then
  6636. LD_PRELOAD_VAR="LDR_PRELOAD64"
  6637. else
  6638. LD_PRELOAD_VAR="LDR_PRELOAD"
  6639. fi
  6640. abi="xcoff"
  6641. ;;
  6642. *-*-mingw* | *-*-cygwin*)
  6643. abi="pecoff"
  6644. force_tls="0"
  6645. maps_coalesce="0"
  6646. RPATH=""
  6647. so="dll"
  6648. if test "x$je_cv_msvc" = "xyes" ; then
  6649. importlib="lib"
  6650. DSO_LDFLAGS="-LD"
  6651. EXTRA_LDFLAGS="-link -DEBUG"
  6652. CTARGET='-Fo$@'
  6653. LDTARGET='-Fe$@'
  6654. AR='lib'
  6655. ARFLAGS='-nologo -out:'
  6656. AROUT='$@'
  6657. CC_MM=
  6658. else
  6659. importlib="${so}"
  6660. DSO_LDFLAGS="-shared"
  6661. link_whole_archive="1"
  6662. fi
  6663. case "${host}" in
  6664. *-*-cygwin*)
  6665. DUMP_SYMS="dumpbin /SYMBOLS"
  6666. ;;
  6667. *)
  6668. ;;
  6669. esac
  6670. a="lib"
  6671. libprefix=""
  6672. SOREV="${so}"
  6673. PIC_CFLAGS=""
  6674. if test "${LG_SIZEOF_PTR}" = "3"; then
  6675. default_retain="1"
  6676. fi
  6677. ;;
  6678. *)
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
  6680. $as_echo "Unsupported operating system: ${host}" >&6; }
  6681. abi="elf"
  6682. ;;
  6683. esac
  6684. JEMALLOC_USABLE_SIZE_CONST=const
  6685. for ac_header in malloc.h
  6686. do :
  6687. ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  6688. if test "x$ac_cv_header_malloc_h" = xyes; then :
  6689. cat >>confdefs.h <<_ACEOF
  6690. #define HAVE_MALLOC_H 1
  6691. _ACEOF
  6692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5
  6693. $as_echo_n "checking whether malloc_usable_size definition can use const argument... " >&6; }
  6694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6695. /* end confdefs.h. */
  6696. #include <malloc.h>
  6697. #include <stddef.h>
  6698. size_t malloc_usable_size(const void *ptr);
  6699. int
  6700. main ()
  6701. {
  6702. ;
  6703. return 0;
  6704. }
  6705. _ACEOF
  6706. if ac_fn_c_try_compile "$LINENO"; then :
  6707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6708. $as_echo "yes" >&6; }
  6709. else
  6710. JEMALLOC_USABLE_SIZE_CONST=
  6711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6712. $as_echo "no" >&6; }
  6713. fi
  6714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6715. fi
  6716. done
  6717. cat >>confdefs.h <<_ACEOF
  6718. #define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST
  6719. _ACEOF
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
  6721. $as_echo_n "checking for library containing log... " >&6; }
  6722. if ${ac_cv_search_log+:} false; then :
  6723. $as_echo_n "(cached) " >&6
  6724. else
  6725. ac_func_search_save_LIBS=$LIBS
  6726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6727. /* end confdefs.h. */
  6728. /* Override any GCC internal prototype to avoid an error.
  6729. Use char because int might match the return type of a GCC
  6730. builtin and then its argument prototype would still apply. */
  6731. #ifdef __cplusplus
  6732. extern "C"
  6733. #endif
  6734. char log ();
  6735. int
  6736. main ()
  6737. {
  6738. return log ();
  6739. ;
  6740. return 0;
  6741. }
  6742. _ACEOF
  6743. for ac_lib in '' m; do
  6744. if test -z "$ac_lib"; then
  6745. ac_res="none required"
  6746. else
  6747. ac_res=-l$ac_lib
  6748. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6749. fi
  6750. if ac_fn_c_try_link "$LINENO"; then :
  6751. ac_cv_search_log=$ac_res
  6752. fi
  6753. rm -f core conftest.err conftest.$ac_objext \
  6754. conftest$ac_exeext
  6755. if ${ac_cv_search_log+:} false; then :
  6756. break
  6757. fi
  6758. done
  6759. if ${ac_cv_search_log+:} false; then :
  6760. else
  6761. ac_cv_search_log=no
  6762. fi
  6763. rm conftest.$ac_ext
  6764. LIBS=$ac_func_search_save_LIBS
  6765. fi
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
  6767. $as_echo "$ac_cv_search_log" >&6; }
  6768. ac_res=$ac_cv_search_log
  6769. if test "$ac_res" != no; then :
  6770. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6771. else
  6772. as_fn_error $? "Missing math functions" "$LINENO" 5
  6773. fi
  6774. if test "x$ac_cv_search_log" != "xnone required" ; then
  6775. LM="$ac_cv_search_log"
  6776. else
  6777. LM=
  6778. fi
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
  6780. $as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; }
  6781. if ${je_cv_attribute+:} false; then :
  6782. $as_echo_n "(cached) " >&6
  6783. else
  6784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6785. /* end confdefs.h. */
  6786. static __attribute__((unused)) void foo(void){}
  6787. int
  6788. main ()
  6789. {
  6790. ;
  6791. return 0;
  6792. }
  6793. _ACEOF
  6794. if ac_fn_c_try_link "$LINENO"; then :
  6795. je_cv_attribute=yes
  6796. else
  6797. je_cv_attribute=no
  6798. fi
  6799. rm -f core conftest.err conftest.$ac_objext \
  6800. conftest$ac_exeext conftest.$ac_ext
  6801. fi
  6802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5
  6803. $as_echo "$je_cv_attribute" >&6; }
  6804. if test "x${je_cv_attribute}" = "xyes" ; then
  6805. $as_echo "#define JEMALLOC_HAVE_ATTR " >>confdefs.h
  6806. if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
  6808. $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
  6809. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  6810. T_APPEND_V=-fvisibility=hidden
  6811. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6812. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  6813. else
  6814. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  6815. fi
  6816. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6817. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6818. else
  6819. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6820. fi
  6821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6822. /* end confdefs.h. */
  6823. int
  6824. main ()
  6825. {
  6826. return 0;
  6827. ;
  6828. return 0;
  6829. }
  6830. _ACEOF
  6831. if ac_fn_c_try_compile "$LINENO"; then :
  6832. je_cv_cflags_added=-fvisibility=hidden
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6834. $as_echo "yes" >&6; }
  6835. else
  6836. je_cv_cflags_added=
  6837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6838. $as_echo "no" >&6; }
  6839. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  6840. fi
  6841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6842. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6843. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6844. else
  6845. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6846. fi
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
  6848. $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
  6849. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  6850. T_APPEND_V=-fvisibility=hidden
  6851. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6852. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  6853. else
  6854. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  6855. fi
  6856. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  6857. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  6858. else
  6859. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  6860. fi
  6861. ac_ext=cpp
  6862. ac_cpp='$CXXCPP $CPPFLAGS'
  6863. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6864. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6865. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6867. /* end confdefs.h. */
  6868. int
  6869. main ()
  6870. {
  6871. return 0;
  6872. ;
  6873. return 0;
  6874. }
  6875. _ACEOF
  6876. if ac_fn_cxx_try_compile "$LINENO"; then :
  6877. je_cv_cxxflags_added=-fvisibility=hidden
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6879. $as_echo "yes" >&6; }
  6880. else
  6881. je_cv_cxxflags_added=
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6883. $as_echo "no" >&6; }
  6884. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  6885. fi
  6886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6887. ac_ext=c
  6888. ac_cpp='$CPP $CPPFLAGS'
  6889. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6890. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6891. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6892. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  6893. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  6894. else
  6895. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  6896. fi
  6897. fi
  6898. fi
  6899. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  6901. $as_echo_n "checking whether compiler supports -Werror... " >&6; }
  6902. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  6903. T_APPEND_V=-Werror
  6904. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6905. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  6906. else
  6907. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  6908. fi
  6909. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6910. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6911. else
  6912. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6913. fi
  6914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6915. /* end confdefs.h. */
  6916. int
  6917. main ()
  6918. {
  6919. return 0;
  6920. ;
  6921. return 0;
  6922. }
  6923. _ACEOF
  6924. if ac_fn_c_try_compile "$LINENO"; then :
  6925. je_cv_cflags_added=-Werror
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6927. $as_echo "yes" >&6; }
  6928. else
  6929. je_cv_cflags_added=
  6930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6931. $as_echo "no" >&6; }
  6932. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  6933. fi
  6934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6935. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6936. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6937. else
  6938. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6939. fi
  6940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  6941. $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
  6942. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  6943. T_APPEND_V=-herror_on_warning
  6944. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6945. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  6946. else
  6947. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  6948. fi
  6949. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6950. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6951. else
  6952. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6953. fi
  6954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6955. /* end confdefs.h. */
  6956. int
  6957. main ()
  6958. {
  6959. return 0;
  6960. ;
  6961. return 0;
  6962. }
  6963. _ACEOF
  6964. if ac_fn_c_try_compile "$LINENO"; then :
  6965. je_cv_cflags_added=-herror_on_warning
  6966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6967. $as_echo "yes" >&6; }
  6968. else
  6969. je_cv_cflags_added=
  6970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6971. $as_echo "no" >&6; }
  6972. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  6973. fi
  6974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6975. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6976. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6977. else
  6978. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6979. fi
  6980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5
  6981. $as_echo_n "checking whether tls_model attribute is compilable... " >&6; }
  6982. if ${je_cv_tls_model+:} false; then :
  6983. $as_echo_n "(cached) " >&6
  6984. else
  6985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6986. /* end confdefs.h. */
  6987. int
  6988. main ()
  6989. {
  6990. static __thread int
  6991. __attribute__((tls_model("initial-exec"), unused)) foo;
  6992. foo = 0;
  6993. ;
  6994. return 0;
  6995. }
  6996. _ACEOF
  6997. if ac_fn_c_try_link "$LINENO"; then :
  6998. je_cv_tls_model=yes
  6999. else
  7000. je_cv_tls_model=no
  7001. fi
  7002. rm -f core conftest.err conftest.$ac_objext \
  7003. conftest$ac_exeext conftest.$ac_ext
  7004. fi
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5
  7006. $as_echo "$je_cv_tls_model" >&6; }
  7007. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  7008. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7009. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7010. else
  7011. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7012. fi
  7013. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  7015. $as_echo_n "checking whether compiler supports -Werror... " >&6; }
  7016. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7017. T_APPEND_V=-Werror
  7018. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7019. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  7020. else
  7021. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  7022. fi
  7023. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7024. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7025. else
  7026. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7027. fi
  7028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7029. /* end confdefs.h. */
  7030. int
  7031. main ()
  7032. {
  7033. return 0;
  7034. ;
  7035. return 0;
  7036. }
  7037. _ACEOF
  7038. if ac_fn_c_try_compile "$LINENO"; then :
  7039. je_cv_cflags_added=-Werror
  7040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7041. $as_echo "yes" >&6; }
  7042. else
  7043. je_cv_cflags_added=
  7044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7045. $as_echo "no" >&6; }
  7046. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  7047. fi
  7048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7049. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7050. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7051. else
  7052. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7053. fi
  7054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  7055. $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
  7056. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7057. T_APPEND_V=-herror_on_warning
  7058. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7059. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  7060. else
  7061. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  7062. fi
  7063. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7064. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7065. else
  7066. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7067. fi
  7068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7069. /* end confdefs.h. */
  7070. int
  7071. main ()
  7072. {
  7073. return 0;
  7074. ;
  7075. return 0;
  7076. }
  7077. _ACEOF
  7078. if ac_fn_c_try_compile "$LINENO"; then :
  7079. je_cv_cflags_added=-herror_on_warning
  7080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7081. $as_echo "yes" >&6; }
  7082. else
  7083. je_cv_cflags_added=
  7084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7085. $as_echo "no" >&6; }
  7086. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  7087. fi
  7088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7089. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7090. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7091. else
  7092. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7093. fi
  7094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5
  7095. $as_echo_n "checking whether alloc_size attribute is compilable... " >&6; }
  7096. if ${je_cv_alloc_size+:} false; then :
  7097. $as_echo_n "(cached) " >&6
  7098. else
  7099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7100. /* end confdefs.h. */
  7101. #include <stdlib.h>
  7102. int
  7103. main ()
  7104. {
  7105. void *foo(size_t size) __attribute__((alloc_size(1)));
  7106. ;
  7107. return 0;
  7108. }
  7109. _ACEOF
  7110. if ac_fn_c_try_link "$LINENO"; then :
  7111. je_cv_alloc_size=yes
  7112. else
  7113. je_cv_alloc_size=no
  7114. fi
  7115. rm -f core conftest.err conftest.$ac_objext \
  7116. conftest$ac_exeext conftest.$ac_ext
  7117. fi
  7118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5
  7119. $as_echo "$je_cv_alloc_size" >&6; }
  7120. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  7121. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7122. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7123. else
  7124. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7125. fi
  7126. if test "x${je_cv_alloc_size}" = "xyes" ; then
  7127. $as_echo "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE " >>confdefs.h
  7128. fi
  7129. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  7131. $as_echo_n "checking whether compiler supports -Werror... " >&6; }
  7132. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7133. T_APPEND_V=-Werror
  7134. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7135. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  7136. else
  7137. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  7138. fi
  7139. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7140. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7141. else
  7142. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7143. fi
  7144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7145. /* end confdefs.h. */
  7146. int
  7147. main ()
  7148. {
  7149. return 0;
  7150. ;
  7151. return 0;
  7152. }
  7153. _ACEOF
  7154. if ac_fn_c_try_compile "$LINENO"; then :
  7155. je_cv_cflags_added=-Werror
  7156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7157. $as_echo "yes" >&6; }
  7158. else
  7159. je_cv_cflags_added=
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7161. $as_echo "no" >&6; }
  7162. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  7163. fi
  7164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7165. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7166. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7167. else
  7168. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7169. fi
  7170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  7171. $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
  7172. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7173. T_APPEND_V=-herror_on_warning
  7174. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7175. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  7176. else
  7177. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  7178. fi
  7179. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7180. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7181. else
  7182. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7183. fi
  7184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7185. /* end confdefs.h. */
  7186. int
  7187. main ()
  7188. {
  7189. return 0;
  7190. ;
  7191. return 0;
  7192. }
  7193. _ACEOF
  7194. if ac_fn_c_try_compile "$LINENO"; then :
  7195. je_cv_cflags_added=-herror_on_warning
  7196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7197. $as_echo "yes" >&6; }
  7198. else
  7199. je_cv_cflags_added=
  7200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7201. $as_echo "no" >&6; }
  7202. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  7203. fi
  7204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7205. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7206. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7207. else
  7208. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7209. fi
  7210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5
  7211. $as_echo_n "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; }
  7212. if ${je_cv_format_gnu_printf+:} false; then :
  7213. $as_echo_n "(cached) " >&6
  7214. else
  7215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7216. /* end confdefs.h. */
  7217. #include <stdlib.h>
  7218. int
  7219. main ()
  7220. {
  7221. void *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2)));
  7222. ;
  7223. return 0;
  7224. }
  7225. _ACEOF
  7226. if ac_fn_c_try_link "$LINENO"; then :
  7227. je_cv_format_gnu_printf=yes
  7228. else
  7229. je_cv_format_gnu_printf=no
  7230. fi
  7231. rm -f core conftest.err conftest.$ac_objext \
  7232. conftest$ac_exeext conftest.$ac_ext
  7233. fi
  7234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5
  7235. $as_echo "$je_cv_format_gnu_printf" >&6; }
  7236. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  7237. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7238. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7239. else
  7240. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7241. fi
  7242. if test "x${je_cv_format_gnu_printf}" = "xyes" ; then
  7243. $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF " >>confdefs.h
  7244. fi
  7245. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  7247. $as_echo_n "checking whether compiler supports -Werror... " >&6; }
  7248. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7249. T_APPEND_V=-Werror
  7250. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7251. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  7252. else
  7253. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  7254. fi
  7255. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7256. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7257. else
  7258. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7259. fi
  7260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7261. /* end confdefs.h. */
  7262. int
  7263. main ()
  7264. {
  7265. return 0;
  7266. ;
  7267. return 0;
  7268. }
  7269. _ACEOF
  7270. if ac_fn_c_try_compile "$LINENO"; then :
  7271. je_cv_cflags_added=-Werror
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7273. $as_echo "yes" >&6; }
  7274. else
  7275. je_cv_cflags_added=
  7276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7277. $as_echo "no" >&6; }
  7278. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  7279. fi
  7280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7281. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7282. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7283. else
  7284. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7285. fi
  7286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  7287. $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
  7288. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7289. T_APPEND_V=-herror_on_warning
  7290. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7291. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  7292. else
  7293. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  7294. fi
  7295. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7296. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7297. else
  7298. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7299. fi
  7300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7301. /* end confdefs.h. */
  7302. int
  7303. main ()
  7304. {
  7305. return 0;
  7306. ;
  7307. return 0;
  7308. }
  7309. _ACEOF
  7310. if ac_fn_c_try_compile "$LINENO"; then :
  7311. je_cv_cflags_added=-herror_on_warning
  7312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7313. $as_echo "yes" >&6; }
  7314. else
  7315. je_cv_cflags_added=
  7316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7317. $as_echo "no" >&6; }
  7318. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  7319. fi
  7320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7321. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7322. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7323. else
  7324. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7325. fi
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
  7327. $as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; }
  7328. if ${je_cv_format_printf+:} false; then :
  7329. $as_echo_n "(cached) " >&6
  7330. else
  7331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7332. /* end confdefs.h. */
  7333. #include <stdlib.h>
  7334. int
  7335. main ()
  7336. {
  7337. void *foo(const char *format, ...) __attribute__((format(printf, 1, 2)));
  7338. ;
  7339. return 0;
  7340. }
  7341. _ACEOF
  7342. if ac_fn_c_try_link "$LINENO"; then :
  7343. je_cv_format_printf=yes
  7344. else
  7345. je_cv_format_printf=no
  7346. fi
  7347. rm -f core conftest.err conftest.$ac_objext \
  7348. conftest$ac_exeext conftest.$ac_ext
  7349. fi
  7350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5
  7351. $as_echo "$je_cv_format_printf" >&6; }
  7352. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  7353. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7354. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7355. else
  7356. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7357. fi
  7358. if test "x${je_cv_format_printf}" = "xyes" ; then
  7359. $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF " >>confdefs.h
  7360. fi
  7361. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  7363. $as_echo_n "checking whether compiler supports -Werror... " >&6; }
  7364. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7365. T_APPEND_V=-Werror
  7366. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7367. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  7368. else
  7369. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  7370. fi
  7371. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7372. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7373. else
  7374. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7375. fi
  7376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7377. /* end confdefs.h. */
  7378. int
  7379. main ()
  7380. {
  7381. return 0;
  7382. ;
  7383. return 0;
  7384. }
  7385. _ACEOF
  7386. if ac_fn_c_try_compile "$LINENO"; then :
  7387. je_cv_cflags_added=-Werror
  7388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7389. $as_echo "yes" >&6; }
  7390. else
  7391. je_cv_cflags_added=
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7393. $as_echo "no" >&6; }
  7394. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  7395. fi
  7396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7397. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7398. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7399. else
  7400. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7401. fi
  7402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  7403. $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
  7404. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7405. T_APPEND_V=-herror_on_warning
  7406. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7407. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  7408. else
  7409. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  7410. fi
  7411. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7412. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7413. else
  7414. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7415. fi
  7416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7417. /* end confdefs.h. */
  7418. int
  7419. main ()
  7420. {
  7421. return 0;
  7422. ;
  7423. return 0;
  7424. }
  7425. _ACEOF
  7426. if ac_fn_c_try_compile "$LINENO"; then :
  7427. je_cv_cflags_added=-herror_on_warning
  7428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7429. $as_echo "yes" >&6; }
  7430. else
  7431. je_cv_cflags_added=
  7432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7433. $as_echo "no" >&6; }
  7434. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  7435. fi
  7436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7437. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7438. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7439. else
  7440. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7441. fi
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
  7443. $as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; }
  7444. if ${je_cv_format_arg+:} false; then :
  7445. $as_echo_n "(cached) " >&6
  7446. else
  7447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7448. /* end confdefs.h. */
  7449. #include <stdlib.h>
  7450. int
  7451. main ()
  7452. {
  7453. const char * __attribute__((__format_arg__(1))) foo(const char *format);
  7454. ;
  7455. return 0;
  7456. }
  7457. _ACEOF
  7458. if ac_fn_c_try_link "$LINENO"; then :
  7459. je_cv_format_arg=yes
  7460. else
  7461. je_cv_format_arg=no
  7462. fi
  7463. rm -f core conftest.err conftest.$ac_objext \
  7464. conftest$ac_exeext conftest.$ac_ext
  7465. fi
  7466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_arg" >&5
  7467. $as_echo "$je_cv_format_arg" >&6; }
  7468. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  7469. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7470. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7471. else
  7472. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7473. fi
  7474. if test "x${je_cv_format_arg}" = "xyes" ; then
  7475. $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_ARG " >>confdefs.h
  7476. fi
  7477. # Check whether --with-rpath was given.
  7478. if test "${with_rpath+set}" = set; then :
  7479. withval=$with_rpath; if test "x$with_rpath" = "xno" ; then
  7480. RPATH_EXTRA=
  7481. else
  7482. RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`"
  7483. fi
  7484. else
  7485. RPATH_EXTRA=
  7486. fi
  7487. # Check whether --enable-autogen was given.
  7488. if test "${enable_autogen+set}" = set; then :
  7489. enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
  7490. enable_autogen="0"
  7491. else
  7492. enable_autogen="1"
  7493. fi
  7494. else
  7495. enable_autogen="0"
  7496. fi
  7497. # Find a good install program. We prefer a C program (faster),
  7498. # so one script is as good as another. But avoid the broken or
  7499. # incompatible versions:
  7500. # SysV /etc/install, /usr/sbin/install
  7501. # SunOS /usr/etc/install
  7502. # IRIX /sbin/install
  7503. # AIX /bin/install
  7504. # AmigaOS /C/install, which installs bootblocks on floppy discs
  7505. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  7506. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  7507. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  7508. # OS/2's system install, which has a completely different semantic
  7509. # ./install, which can be erroneously created by make from ./install.sh.
  7510. # Reject install programs that cannot install multiple files.
  7511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  7512. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  7513. if test -z "$INSTALL"; then
  7514. if ${ac_cv_path_install+:} false; then :
  7515. $as_echo_n "(cached) " >&6
  7516. else
  7517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7518. for as_dir in $PATH
  7519. do
  7520. IFS=$as_save_IFS
  7521. test -z "$as_dir" && as_dir=.
  7522. # Account for people who put trailing slashes in PATH elements.
  7523. case $as_dir/ in #((
  7524. ./ | .// | /[cC]/* | \
  7525. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  7526. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  7527. /usr/ucb/* ) ;;
  7528. *)
  7529. # OSF1 and SCO ODT 3.0 have their own names for install.
  7530. # Don't use installbsd from OSF since it installs stuff as root
  7531. # by default.
  7532. for ac_prog in ginstall scoinst install; do
  7533. for ac_exec_ext in '' $ac_executable_extensions; do
  7534. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  7535. if test $ac_prog = install &&
  7536. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  7537. # AIX install. It has an incompatible calling convention.
  7538. :
  7539. elif test $ac_prog = install &&
  7540. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  7541. # program-specific install script used by HP pwplus--don't use.
  7542. :
  7543. else
  7544. rm -rf conftest.one conftest.two conftest.dir
  7545. echo one > conftest.one
  7546. echo two > conftest.two
  7547. mkdir conftest.dir
  7548. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  7549. test -s conftest.one && test -s conftest.two &&
  7550. test -s conftest.dir/conftest.one &&
  7551. test -s conftest.dir/conftest.two
  7552. then
  7553. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  7554. break 3
  7555. fi
  7556. fi
  7557. fi
  7558. done
  7559. done
  7560. ;;
  7561. esac
  7562. done
  7563. IFS=$as_save_IFS
  7564. rm -rf conftest.one conftest.two conftest.dir
  7565. fi
  7566. if test "${ac_cv_path_install+set}" = set; then
  7567. INSTALL=$ac_cv_path_install
  7568. else
  7569. # As a last resort, use the slow shell script. Don't cache a
  7570. # value for INSTALL within a source directory, because that will
  7571. # break other packages using the cache if that directory is
  7572. # removed, or if the value is a relative name.
  7573. INSTALL=$ac_install_sh
  7574. fi
  7575. fi
  7576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  7577. $as_echo "$INSTALL" >&6; }
  7578. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  7579. # It thinks the first close brace ends the variable substitution.
  7580. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  7581. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  7582. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  7583. if test -n "$ac_tool_prefix"; then
  7584. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7585. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7587. $as_echo_n "checking for $ac_word... " >&6; }
  7588. if ${ac_cv_prog_RANLIB+:} false; then :
  7589. $as_echo_n "(cached) " >&6
  7590. else
  7591. if test -n "$RANLIB"; then
  7592. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7593. else
  7594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7595. for as_dir in $PATH
  7596. do
  7597. IFS=$as_save_IFS
  7598. test -z "$as_dir" && as_dir=.
  7599. for ac_exec_ext in '' $ac_executable_extensions; do
  7600. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7601. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7603. break 2
  7604. fi
  7605. done
  7606. done
  7607. IFS=$as_save_IFS
  7608. fi
  7609. fi
  7610. RANLIB=$ac_cv_prog_RANLIB
  7611. if test -n "$RANLIB"; then
  7612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7613. $as_echo "$RANLIB" >&6; }
  7614. else
  7615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7616. $as_echo "no" >&6; }
  7617. fi
  7618. fi
  7619. if test -z "$ac_cv_prog_RANLIB"; then
  7620. ac_ct_RANLIB=$RANLIB
  7621. # Extract the first word of "ranlib", so it can be a program name with args.
  7622. set dummy ranlib; ac_word=$2
  7623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7624. $as_echo_n "checking for $ac_word... " >&6; }
  7625. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  7626. $as_echo_n "(cached) " >&6
  7627. else
  7628. if test -n "$ac_ct_RANLIB"; then
  7629. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7630. else
  7631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7632. for as_dir in $PATH
  7633. do
  7634. IFS=$as_save_IFS
  7635. test -z "$as_dir" && as_dir=.
  7636. for ac_exec_ext in '' $ac_executable_extensions; do
  7637. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7638. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7639. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7640. break 2
  7641. fi
  7642. done
  7643. done
  7644. IFS=$as_save_IFS
  7645. fi
  7646. fi
  7647. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7648. if test -n "$ac_ct_RANLIB"; then
  7649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7650. $as_echo "$ac_ct_RANLIB" >&6; }
  7651. else
  7652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7653. $as_echo "no" >&6; }
  7654. fi
  7655. if test "x$ac_ct_RANLIB" = x; then
  7656. RANLIB=":"
  7657. else
  7658. case $cross_compiling:$ac_tool_warned in
  7659. yes:)
  7660. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7661. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7662. ac_tool_warned=yes ;;
  7663. esac
  7664. RANLIB=$ac_ct_RANLIB
  7665. fi
  7666. else
  7667. RANLIB="$ac_cv_prog_RANLIB"
  7668. fi
  7669. # Extract the first word of "ld", so it can be a program name with args.
  7670. set dummy ld; ac_word=$2
  7671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7672. $as_echo_n "checking for $ac_word... " >&6; }
  7673. if ${ac_cv_path_LD+:} false; then :
  7674. $as_echo_n "(cached) " >&6
  7675. else
  7676. case $LD in
  7677. [\\/]* | ?:[\\/]*)
  7678. ac_cv_path_LD="$LD" # Let the user override the test with a path.
  7679. ;;
  7680. *)
  7681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7682. for as_dir in $PATH
  7683. do
  7684. IFS=$as_save_IFS
  7685. test -z "$as_dir" && as_dir=.
  7686. for ac_exec_ext in '' $ac_executable_extensions; do
  7687. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7688. ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
  7689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7690. break 2
  7691. fi
  7692. done
  7693. done
  7694. IFS=$as_save_IFS
  7695. test -z "$ac_cv_path_LD" && ac_cv_path_LD="false"
  7696. ;;
  7697. esac
  7698. fi
  7699. LD=$ac_cv_path_LD
  7700. if test -n "$LD"; then
  7701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7702. $as_echo "$LD" >&6; }
  7703. else
  7704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7705. $as_echo "no" >&6; }
  7706. fi
  7707. # Extract the first word of "autoconf", so it can be a program name with args.
  7708. set dummy autoconf; ac_word=$2
  7709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7710. $as_echo_n "checking for $ac_word... " >&6; }
  7711. if ${ac_cv_path_AUTOCONF+:} false; then :
  7712. $as_echo_n "(cached) " >&6
  7713. else
  7714. case $AUTOCONF in
  7715. [\\/]* | ?:[\\/]*)
  7716. ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
  7717. ;;
  7718. *)
  7719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7720. for as_dir in $PATH
  7721. do
  7722. IFS=$as_save_IFS
  7723. test -z "$as_dir" && as_dir=.
  7724. for ac_exec_ext in '' $ac_executable_extensions; do
  7725. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7726. ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
  7727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7728. break 2
  7729. fi
  7730. done
  7731. done
  7732. IFS=$as_save_IFS
  7733. test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false"
  7734. ;;
  7735. esac
  7736. fi
  7737. AUTOCONF=$ac_cv_path_AUTOCONF
  7738. if test -n "$AUTOCONF"; then
  7739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
  7740. $as_echo "$AUTOCONF" >&6; }
  7741. else
  7742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7743. $as_echo "no" >&6; }
  7744. fi
  7745. # Check whether --enable-doc was given.
  7746. if test "${enable_doc+set}" = set; then :
  7747. enableval=$enable_doc; if test "x$enable_doc" = "xno" ; then
  7748. enable_doc="0"
  7749. else
  7750. enable_doc="1"
  7751. fi
  7752. else
  7753. enable_doc="1"
  7754. fi
  7755. # Check whether --enable-shared was given.
  7756. if test "${enable_shared+set}" = set; then :
  7757. enableval=$enable_shared; if test "x$enable_shared" = "xno" ; then
  7758. enable_shared="0"
  7759. else
  7760. enable_shared="1"
  7761. fi
  7762. else
  7763. enable_shared="1"
  7764. fi
  7765. # Check whether --enable-static was given.
  7766. if test "${enable_static+set}" = set; then :
  7767. enableval=$enable_static; if test "x$enable_static" = "xno" ; then
  7768. enable_static="0"
  7769. else
  7770. enable_static="1"
  7771. fi
  7772. else
  7773. enable_static="1"
  7774. fi
  7775. if test "$enable_shared$enable_static" = "00" ; then
  7776. as_fn_error $? "Please enable one of shared or static builds" "$LINENO" 5
  7777. fi
  7778. # Check whether --with-mangling was given.
  7779. if test "${with_mangling+set}" = set; then :
  7780. withval=$with_mangling; mangling_map="$with_mangling"
  7781. else
  7782. mangling_map=""
  7783. fi
  7784. # Check whether --with-jemalloc_prefix was given.
  7785. if test "${with_jemalloc_prefix+set}" = set; then :
  7786. withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix"
  7787. else
  7788. if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
  7789. JEMALLOC_PREFIX=""
  7790. else
  7791. JEMALLOC_PREFIX="je_"
  7792. fi
  7793. fi
  7794. if test "x$JEMALLOC_PREFIX" = "x" ; then
  7795. $as_echo "#define JEMALLOC_IS_MALLOC 1" >>confdefs.h
  7796. else
  7797. JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
  7798. cat >>confdefs.h <<_ACEOF
  7799. #define JEMALLOC_PREFIX "$JEMALLOC_PREFIX"
  7800. _ACEOF
  7801. cat >>confdefs.h <<_ACEOF
  7802. #define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX"
  7803. _ACEOF
  7804. fi
  7805. # Check whether --with-export was given.
  7806. if test "${with_export+set}" = set; then :
  7807. withval=$with_export; if test "x$with_export" = "xno"; then
  7808. $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h
  7809. fi
  7810. fi
  7811. public_syms="aligned_alloc calloc dallocx free mallctl mallctlbymib mallctlnametomib malloc malloc_conf malloc_message malloc_stats_print malloc_usable_size mallocx smallocx_${jemalloc_version_gid} nallocx posix_memalign rallocx realloc sallocx sdallocx xallocx"
  7812. ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
  7813. if test "x$ac_cv_func_memalign" = xyes; then :
  7814. $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN " >>confdefs.h
  7815. public_syms="${public_syms} memalign"
  7816. fi
  7817. ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
  7818. if test "x$ac_cv_func_valloc" = xyes; then :
  7819. $as_echo "#define JEMALLOC_OVERRIDE_VALLOC " >>confdefs.h
  7820. public_syms="${public_syms} valloc"
  7821. fi
  7822. wrap_syms=
  7823. if test "x${JEMALLOC_PREFIX}" = "x" ; then
  7824. ac_fn_c_check_func "$LINENO" "__libc_calloc" "ac_cv_func___libc_calloc"
  7825. if test "x$ac_cv_func___libc_calloc" = xyes; then :
  7826. $as_echo "#define JEMALLOC_OVERRIDE___LIBC_CALLOC " >>confdefs.h
  7827. wrap_syms="${wrap_syms} __libc_calloc"
  7828. fi
  7829. ac_fn_c_check_func "$LINENO" "__libc_free" "ac_cv_func___libc_free"
  7830. if test "x$ac_cv_func___libc_free" = xyes; then :
  7831. $as_echo "#define JEMALLOC_OVERRIDE___LIBC_FREE " >>confdefs.h
  7832. wrap_syms="${wrap_syms} __libc_free"
  7833. fi
  7834. ac_fn_c_check_func "$LINENO" "__libc_malloc" "ac_cv_func___libc_malloc"
  7835. if test "x$ac_cv_func___libc_malloc" = xyes; then :
  7836. $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MALLOC " >>confdefs.h
  7837. wrap_syms="${wrap_syms} __libc_malloc"
  7838. fi
  7839. ac_fn_c_check_func "$LINENO" "__libc_memalign" "ac_cv_func___libc_memalign"
  7840. if test "x$ac_cv_func___libc_memalign" = xyes; then :
  7841. $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MEMALIGN " >>confdefs.h
  7842. wrap_syms="${wrap_syms} __libc_memalign"
  7843. fi
  7844. ac_fn_c_check_func "$LINENO" "__libc_realloc" "ac_cv_func___libc_realloc"
  7845. if test "x$ac_cv_func___libc_realloc" = xyes; then :
  7846. $as_echo "#define JEMALLOC_OVERRIDE___LIBC_REALLOC " >>confdefs.h
  7847. wrap_syms="${wrap_syms} __libc_realloc"
  7848. fi
  7849. ac_fn_c_check_func "$LINENO" "__libc_valloc" "ac_cv_func___libc_valloc"
  7850. if test "x$ac_cv_func___libc_valloc" = xyes; then :
  7851. $as_echo "#define JEMALLOC_OVERRIDE___LIBC_VALLOC " >>confdefs.h
  7852. wrap_syms="${wrap_syms} __libc_valloc"
  7853. fi
  7854. ac_fn_c_check_func "$LINENO" "__posix_memalign" "ac_cv_func___posix_memalign"
  7855. if test "x$ac_cv_func___posix_memalign" = xyes; then :
  7856. $as_echo "#define JEMALLOC_OVERRIDE___POSIX_MEMALIGN " >>confdefs.h
  7857. wrap_syms="${wrap_syms} __posix_memalign"
  7858. fi
  7859. fi
  7860. case "${host}" in
  7861. *-*-mingw* | *-*-cygwin*)
  7862. wrap_syms="${wrap_syms} tls_callback"
  7863. ;;
  7864. *)
  7865. ;;
  7866. esac
  7867. # Check whether --with-private_namespace was given.
  7868. if test "${with_private_namespace+set}" = set; then :
  7869. withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_"
  7870. else
  7871. JEMALLOC_PRIVATE_NAMESPACE="je_"
  7872. fi
  7873. cat >>confdefs.h <<_ACEOF
  7874. #define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE
  7875. _ACEOF
  7876. private_namespace="$JEMALLOC_PRIVATE_NAMESPACE"
  7877. # Check whether --with-install_suffix was given.
  7878. if test "${with_install_suffix+set}" = set; then :
  7879. withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix"
  7880. else
  7881. INSTALL_SUFFIX=
  7882. fi
  7883. install_suffix="$INSTALL_SUFFIX"
  7884. # Check whether --with-malloc_conf was given.
  7885. if test "${with_malloc_conf+set}" = set; then :
  7886. withval=$with_malloc_conf; JEMALLOC_CONFIG_MALLOC_CONF="$with_malloc_conf"
  7887. else
  7888. JEMALLOC_CONFIG_MALLOC_CONF=""
  7889. fi
  7890. config_malloc_conf="$JEMALLOC_CONFIG_MALLOC_CONF"
  7891. cat >>confdefs.h <<_ACEOF
  7892. #define JEMALLOC_CONFIG_MALLOC_CONF "$config_malloc_conf"
  7893. _ACEOF
  7894. je_="je_"
  7895. cfgoutputs_in="Makefile.in"
  7896. cfgoutputs_in="${cfgoutputs_in} jemalloc.pc.in"
  7897. cfgoutputs_in="${cfgoutputs_in} doc/html.xsl.in"
  7898. cfgoutputs_in="${cfgoutputs_in} doc/manpages.xsl.in"
  7899. cfgoutputs_in="${cfgoutputs_in} doc/jemalloc.xml.in"
  7900. cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in"
  7901. cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in"
  7902. cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in"
  7903. cfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_preamble.h.in"
  7904. cfgoutputs_in="${cfgoutputs_in} test/test.sh.in"
  7905. cfgoutputs_in="${cfgoutputs_in} test/include/test/jemalloc_test.h.in"
  7906. cfgoutputs_out="Makefile"
  7907. cfgoutputs_out="${cfgoutputs_out} jemalloc.pc"
  7908. cfgoutputs_out="${cfgoutputs_out} doc/html.xsl"
  7909. cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl"
  7910. cfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml"
  7911. cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h"
  7912. cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h"
  7913. cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h"
  7914. cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_preamble.h"
  7915. cfgoutputs_out="${cfgoutputs_out} test/test.sh"
  7916. cfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h"
  7917. cfgoutputs_tup="Makefile"
  7918. cfgoutputs_tup="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in"
  7919. cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
  7920. cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
  7921. cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in"
  7922. cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in"
  7923. cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in"
  7924. cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in"
  7925. cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_preamble.h"
  7926. cfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in"
  7927. cfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in"
  7928. cfghdrs_in="include/jemalloc/jemalloc_defs.h.in"
  7929. cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in"
  7930. cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_symbols.sh"
  7931. cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh"
  7932. cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh"
  7933. cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh"
  7934. cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh"
  7935. cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh"
  7936. cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc.sh"
  7937. cfghdrs_in="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in"
  7938. cfghdrs_out="include/jemalloc/jemalloc_defs.h"
  7939. cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h"
  7940. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols.awk"
  7941. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols_jet.awk"
  7942. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt"
  7943. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h"
  7944. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h"
  7945. cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h"
  7946. cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h"
  7947. cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h"
  7948. cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h"
  7949. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h"
  7950. cfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h"
  7951. cfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in"
  7952. cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in"
  7953. cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in"
  7954. # Check whether --enable-debug was given.
  7955. if test "${enable_debug+set}" = set; then :
  7956. enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then
  7957. enable_debug="0"
  7958. else
  7959. enable_debug="1"
  7960. fi
  7961. else
  7962. enable_debug="0"
  7963. fi
  7964. if test "x$enable_debug" = "x1" ; then
  7965. $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h
  7966. fi
  7967. if test "x$enable_debug" = "x1" ; then
  7968. $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h
  7969. fi
  7970. if test "x$enable_debug" = "x0" ; then
  7971. if test "x$GCC" = "xyes" ; then
  7972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
  7973. $as_echo_n "checking whether compiler supports -O3... " >&6; }
  7974. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7975. T_APPEND_V=-O3
  7976. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7977. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  7978. else
  7979. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  7980. fi
  7981. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7982. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7983. else
  7984. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7985. fi
  7986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7987. /* end confdefs.h. */
  7988. int
  7989. main ()
  7990. {
  7991. return 0;
  7992. ;
  7993. return 0;
  7994. }
  7995. _ACEOF
  7996. if ac_fn_c_try_compile "$LINENO"; then :
  7997. je_cv_cflags_added=-O3
  7998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7999. $as_echo "yes" >&6; }
  8000. else
  8001. je_cv_cflags_added=
  8002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8003. $as_echo "no" >&6; }
  8004. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8005. fi
  8006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8007. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8008. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8009. else
  8010. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8011. fi
  8012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
  8013. $as_echo_n "checking whether compiler supports -O3... " >&6; }
  8014. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  8015. T_APPEND_V=-O3
  8016. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8017. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  8018. else
  8019. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  8020. fi
  8021. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  8022. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  8023. else
  8024. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  8025. fi
  8026. ac_ext=cpp
  8027. ac_cpp='$CXXCPP $CPPFLAGS'
  8028. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8029. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8030. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8032. /* end confdefs.h. */
  8033. int
  8034. main ()
  8035. {
  8036. return 0;
  8037. ;
  8038. return 0;
  8039. }
  8040. _ACEOF
  8041. if ac_fn_cxx_try_compile "$LINENO"; then :
  8042. je_cv_cxxflags_added=-O3
  8043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8044. $as_echo "yes" >&6; }
  8045. else
  8046. je_cv_cxxflags_added=
  8047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8048. $as_echo "no" >&6; }
  8049. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  8050. fi
  8051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8052. ac_ext=c
  8053. ac_cpp='$CPP $CPPFLAGS'
  8054. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8055. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8056. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8057. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  8058. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  8059. else
  8060. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  8061. fi
  8062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
  8063. $as_echo_n "checking whether compiler supports -funroll-loops... " >&6; }
  8064. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8065. T_APPEND_V=-funroll-loops
  8066. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8067. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8068. else
  8069. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8070. fi
  8071. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8072. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8073. else
  8074. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8075. fi
  8076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8077. /* end confdefs.h. */
  8078. int
  8079. main ()
  8080. {
  8081. return 0;
  8082. ;
  8083. return 0;
  8084. }
  8085. _ACEOF
  8086. if ac_fn_c_try_compile "$LINENO"; then :
  8087. je_cv_cflags_added=-funroll-loops
  8088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8089. $as_echo "yes" >&6; }
  8090. else
  8091. je_cv_cflags_added=
  8092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8093. $as_echo "no" >&6; }
  8094. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8095. fi
  8096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8097. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8098. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8099. else
  8100. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8101. fi
  8102. elif test "x$je_cv_msvc" = "xyes" ; then
  8103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
  8104. $as_echo_n "checking whether compiler supports -O2... " >&6; }
  8105. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8106. T_APPEND_V=-O2
  8107. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8108. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8109. else
  8110. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8111. fi
  8112. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8113. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8114. else
  8115. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8116. fi
  8117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8118. /* end confdefs.h. */
  8119. int
  8120. main ()
  8121. {
  8122. return 0;
  8123. ;
  8124. return 0;
  8125. }
  8126. _ACEOF
  8127. if ac_fn_c_try_compile "$LINENO"; then :
  8128. je_cv_cflags_added=-O2
  8129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8130. $as_echo "yes" >&6; }
  8131. else
  8132. je_cv_cflags_added=
  8133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8134. $as_echo "no" >&6; }
  8135. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8136. fi
  8137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8138. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8139. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8140. else
  8141. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8142. fi
  8143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
  8144. $as_echo_n "checking whether compiler supports -O2... " >&6; }
  8145. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  8146. T_APPEND_V=-O2
  8147. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8148. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  8149. else
  8150. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  8151. fi
  8152. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  8153. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  8154. else
  8155. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  8156. fi
  8157. ac_ext=cpp
  8158. ac_cpp='$CXXCPP $CPPFLAGS'
  8159. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8160. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8161. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8163. /* end confdefs.h. */
  8164. int
  8165. main ()
  8166. {
  8167. return 0;
  8168. ;
  8169. return 0;
  8170. }
  8171. _ACEOF
  8172. if ac_fn_cxx_try_compile "$LINENO"; then :
  8173. je_cv_cxxflags_added=-O2
  8174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8175. $as_echo "yes" >&6; }
  8176. else
  8177. je_cv_cxxflags_added=
  8178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8179. $as_echo "no" >&6; }
  8180. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  8181. fi
  8182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8183. ac_ext=c
  8184. ac_cpp='$CPP $CPPFLAGS'
  8185. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8186. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8187. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8188. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  8189. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  8190. else
  8191. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  8192. fi
  8193. else
  8194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
  8195. $as_echo_n "checking whether compiler supports -O... " >&6; }
  8196. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8197. T_APPEND_V=-O
  8198. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8199. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8200. else
  8201. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8202. fi
  8203. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8204. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8205. else
  8206. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8207. fi
  8208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8209. /* end confdefs.h. */
  8210. int
  8211. main ()
  8212. {
  8213. return 0;
  8214. ;
  8215. return 0;
  8216. }
  8217. _ACEOF
  8218. if ac_fn_c_try_compile "$LINENO"; then :
  8219. je_cv_cflags_added=-O
  8220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8221. $as_echo "yes" >&6; }
  8222. else
  8223. je_cv_cflags_added=
  8224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8225. $as_echo "no" >&6; }
  8226. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8227. fi
  8228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8229. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8230. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8231. else
  8232. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8233. fi
  8234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
  8235. $as_echo_n "checking whether compiler supports -O... " >&6; }
  8236. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  8237. T_APPEND_V=-O
  8238. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8239. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  8240. else
  8241. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  8242. fi
  8243. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  8244. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  8245. else
  8246. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  8247. fi
  8248. ac_ext=cpp
  8249. ac_cpp='$CXXCPP $CPPFLAGS'
  8250. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8251. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8252. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8254. /* end confdefs.h. */
  8255. int
  8256. main ()
  8257. {
  8258. return 0;
  8259. ;
  8260. return 0;
  8261. }
  8262. _ACEOF
  8263. if ac_fn_cxx_try_compile "$LINENO"; then :
  8264. je_cv_cxxflags_added=-O
  8265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8266. $as_echo "yes" >&6; }
  8267. else
  8268. je_cv_cxxflags_added=
  8269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8270. $as_echo "no" >&6; }
  8271. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  8272. fi
  8273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8274. ac_ext=c
  8275. ac_cpp='$CPP $CPPFLAGS'
  8276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8279. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  8280. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  8281. else
  8282. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  8283. fi
  8284. fi
  8285. fi
  8286. # Check whether --enable-stats was given.
  8287. if test "${enable_stats+set}" = set; then :
  8288. enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then
  8289. enable_stats="0"
  8290. else
  8291. enable_stats="1"
  8292. fi
  8293. else
  8294. enable_stats="1"
  8295. fi
  8296. if test "x$enable_stats" = "x1" ; then
  8297. $as_echo "#define JEMALLOC_STATS " >>confdefs.h
  8298. fi
  8299. # Check whether --enable-experimental_smallocx was given.
  8300. if test "${enable_experimental_smallocx+set}" = set; then :
  8301. enableval=$enable_experimental_smallocx; if test "x$enable_experimental_smallocx" = "xno" ; then
  8302. enable_experimental_smallocx="0"
  8303. else
  8304. enable_experimental_smallocx="1"
  8305. fi
  8306. else
  8307. enable_experimental_smallocx="0"
  8308. fi
  8309. if test "x$enable_experimental_smallocx" = "x1" ; then
  8310. $as_echo "#define JEMALLOC_EXPERIMENTAL_SMALLOCX_API 1" >>confdefs.h
  8311. fi
  8312. # Check whether --enable-prof was given.
  8313. if test "${enable_prof+set}" = set; then :
  8314. enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then
  8315. enable_prof="0"
  8316. else
  8317. enable_prof="1"
  8318. fi
  8319. else
  8320. enable_prof="0"
  8321. fi
  8322. if test "x$enable_prof" = "x1" ; then
  8323. backtrace_method=""
  8324. else
  8325. backtrace_method="N/A"
  8326. fi
  8327. # Check whether --enable-prof-libunwind was given.
  8328. if test "${enable_prof_libunwind+set}" = set; then :
  8329. enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
  8330. enable_prof_libunwind="0"
  8331. else
  8332. enable_prof_libunwind="1"
  8333. fi
  8334. else
  8335. enable_prof_libunwind="0"
  8336. fi
  8337. # Check whether --with-static_libunwind was given.
  8338. if test "${with_static_libunwind+set}" = set; then :
  8339. withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
  8340. LUNWIND="-lunwind"
  8341. else
  8342. if test ! -f "$with_static_libunwind" ; then
  8343. as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5
  8344. fi
  8345. LUNWIND="$with_static_libunwind"
  8346. fi
  8347. else
  8348. LUNWIND="-lunwind"
  8349. fi
  8350. if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
  8351. for ac_header in libunwind.h
  8352. do :
  8353. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  8354. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  8355. cat >>confdefs.h <<_ACEOF
  8356. #define HAVE_LIBUNWIND_H 1
  8357. _ACEOF
  8358. else
  8359. enable_prof_libunwind="0"
  8360. fi
  8361. done
  8362. if test "x$LUNWIND" = "x-lunwind" ; then
  8363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5
  8364. $as_echo_n "checking for unw_backtrace in -lunwind... " >&6; }
  8365. if ${ac_cv_lib_unwind_unw_backtrace+:} false; then :
  8366. $as_echo_n "(cached) " >&6
  8367. else
  8368. ac_check_lib_save_LIBS=$LIBS
  8369. LIBS="-lunwind $LIBS"
  8370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8371. /* end confdefs.h. */
  8372. /* Override any GCC internal prototype to avoid an error.
  8373. Use char because int might match the return type of a GCC
  8374. builtin and then its argument prototype would still apply. */
  8375. #ifdef __cplusplus
  8376. extern "C"
  8377. #endif
  8378. char unw_backtrace ();
  8379. int
  8380. main ()
  8381. {
  8382. return unw_backtrace ();
  8383. ;
  8384. return 0;
  8385. }
  8386. _ACEOF
  8387. if ac_fn_c_try_link "$LINENO"; then :
  8388. ac_cv_lib_unwind_unw_backtrace=yes
  8389. else
  8390. ac_cv_lib_unwind_unw_backtrace=no
  8391. fi
  8392. rm -f core conftest.err conftest.$ac_objext \
  8393. conftest$ac_exeext conftest.$ac_ext
  8394. LIBS=$ac_check_lib_save_LIBS
  8395. fi
  8396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5
  8397. $as_echo "$ac_cv_lib_unwind_unw_backtrace" >&6; }
  8398. if test "x$ac_cv_lib_unwind_unw_backtrace" = xyes; then :
  8399. T_APPEND_V=$LUNWIND
  8400. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8401. LIBS="${LIBS}${T_APPEND_V}"
  8402. else
  8403. LIBS="${LIBS} ${T_APPEND_V}"
  8404. fi
  8405. else
  8406. enable_prof_libunwind="0"
  8407. fi
  8408. else
  8409. T_APPEND_V=$LUNWIND
  8410. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8411. LIBS="${LIBS}${T_APPEND_V}"
  8412. else
  8413. LIBS="${LIBS} ${T_APPEND_V}"
  8414. fi
  8415. fi
  8416. if test "x${enable_prof_libunwind}" = "x1" ; then
  8417. backtrace_method="libunwind"
  8418. $as_echo "#define JEMALLOC_PROF_LIBUNWIND " >>confdefs.h
  8419. fi
  8420. fi
  8421. # Check whether --enable-prof-libgcc was given.
  8422. if test "${enable_prof_libgcc+set}" = set; then :
  8423. enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
  8424. enable_prof_libgcc="0"
  8425. else
  8426. enable_prof_libgcc="1"
  8427. fi
  8428. else
  8429. enable_prof_libgcc="1"
  8430. fi
  8431. if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
  8432. -a "x$GCC" = "xyes" ; then
  8433. for ac_header in unwind.h
  8434. do :
  8435. ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
  8436. if test "x$ac_cv_header_unwind_h" = xyes; then :
  8437. cat >>confdefs.h <<_ACEOF
  8438. #define HAVE_UNWIND_H 1
  8439. _ACEOF
  8440. else
  8441. enable_prof_libgcc="0"
  8442. fi
  8443. done
  8444. if test "x${enable_prof_libgcc}" = "x1" ; then
  8445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
  8446. $as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; }
  8447. if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then :
  8448. $as_echo_n "(cached) " >&6
  8449. else
  8450. ac_check_lib_save_LIBS=$LIBS
  8451. LIBS="-lgcc $LIBS"
  8452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8453. /* end confdefs.h. */
  8454. /* Override any GCC internal prototype to avoid an error.
  8455. Use char because int might match the return type of a GCC
  8456. builtin and then its argument prototype would still apply. */
  8457. #ifdef __cplusplus
  8458. extern "C"
  8459. #endif
  8460. char _Unwind_Backtrace ();
  8461. int
  8462. main ()
  8463. {
  8464. return _Unwind_Backtrace ();
  8465. ;
  8466. return 0;
  8467. }
  8468. _ACEOF
  8469. if ac_fn_c_try_link "$LINENO"; then :
  8470. ac_cv_lib_gcc__Unwind_Backtrace=yes
  8471. else
  8472. ac_cv_lib_gcc__Unwind_Backtrace=no
  8473. fi
  8474. rm -f core conftest.err conftest.$ac_objext \
  8475. conftest$ac_exeext conftest.$ac_ext
  8476. LIBS=$ac_check_lib_save_LIBS
  8477. fi
  8478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
  8479. $as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
  8480. if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then :
  8481. T_APPEND_V=-lgcc
  8482. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8483. LIBS="${LIBS}${T_APPEND_V}"
  8484. else
  8485. LIBS="${LIBS} ${T_APPEND_V}"
  8486. fi
  8487. else
  8488. enable_prof_libgcc="0"
  8489. fi
  8490. fi
  8491. if test "x${enable_prof_libgcc}" = "x1" ; then
  8492. backtrace_method="libgcc"
  8493. $as_echo "#define JEMALLOC_PROF_LIBGCC " >>confdefs.h
  8494. fi
  8495. else
  8496. enable_prof_libgcc="0"
  8497. fi
  8498. # Check whether --enable-prof-gcc was given.
  8499. if test "${enable_prof_gcc+set}" = set; then :
  8500. enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
  8501. enable_prof_gcc="0"
  8502. else
  8503. enable_prof_gcc="1"
  8504. fi
  8505. else
  8506. enable_prof_gcc="1"
  8507. fi
  8508. if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
  8509. -a "x$GCC" = "xyes" ; then
  8510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5
  8511. $as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; }
  8512. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8513. T_APPEND_V=-fno-omit-frame-pointer
  8514. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8515. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8516. else
  8517. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8518. fi
  8519. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8520. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8521. else
  8522. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8523. fi
  8524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8525. /* end confdefs.h. */
  8526. int
  8527. main ()
  8528. {
  8529. return 0;
  8530. ;
  8531. return 0;
  8532. }
  8533. _ACEOF
  8534. if ac_fn_c_try_compile "$LINENO"; then :
  8535. je_cv_cflags_added=-fno-omit-frame-pointer
  8536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8537. $as_echo "yes" >&6; }
  8538. else
  8539. je_cv_cflags_added=
  8540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8541. $as_echo "no" >&6; }
  8542. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8543. fi
  8544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8545. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8546. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8547. else
  8548. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8549. fi
  8550. backtrace_method="gcc intrinsics"
  8551. $as_echo "#define JEMALLOC_PROF_GCC " >>confdefs.h
  8552. else
  8553. enable_prof_gcc="0"
  8554. fi
  8555. if test "x$backtrace_method" = "x" ; then
  8556. backtrace_method="none (disabling profiling)"
  8557. enable_prof="0"
  8558. fi
  8559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
  8560. $as_echo_n "checking configured backtracing method... " >&6; }
  8561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
  8562. $as_echo "$backtrace_method" >&6; }
  8563. if test "x$enable_prof" = "x1" ; then
  8564. T_APPEND_V=$LM
  8565. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8566. LIBS="${LIBS}${T_APPEND_V}"
  8567. else
  8568. LIBS="${LIBS} ${T_APPEND_V}"
  8569. fi
  8570. $as_echo "#define JEMALLOC_PROF " >>confdefs.h
  8571. fi
  8572. if test "x${maps_coalesce}" = "x1" ; then
  8573. $as_echo "#define JEMALLOC_MAPS_COALESCE " >>confdefs.h
  8574. fi
  8575. if test "x$default_retain" = "x1" ; then
  8576. $as_echo "#define JEMALLOC_RETAIN " >>confdefs.h
  8577. fi
  8578. have_dss="1"
  8579. ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
  8580. if test "x$ac_cv_func_sbrk" = xyes; then :
  8581. have_sbrk="1"
  8582. else
  8583. have_sbrk="0"
  8584. fi
  8585. if test "x$have_sbrk" = "x1" ; then
  8586. if test "x$sbrk_deprecated" = "x1" ; then
  8587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5
  8588. $as_echo "Disabling dss allocation because sbrk is deprecated" >&6; }
  8589. have_dss="0"
  8590. fi
  8591. else
  8592. have_dss="0"
  8593. fi
  8594. if test "x$have_dss" = "x1" ; then
  8595. $as_echo "#define JEMALLOC_DSS " >>confdefs.h
  8596. fi
  8597. # Check whether --enable-fill was given.
  8598. if test "${enable_fill+set}" = set; then :
  8599. enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then
  8600. enable_fill="0"
  8601. else
  8602. enable_fill="1"
  8603. fi
  8604. else
  8605. enable_fill="1"
  8606. fi
  8607. if test "x$enable_fill" = "x1" ; then
  8608. $as_echo "#define JEMALLOC_FILL " >>confdefs.h
  8609. fi
  8610. # Check whether --enable-utrace was given.
  8611. if test "${enable_utrace+set}" = set; then :
  8612. enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then
  8613. enable_utrace="0"
  8614. else
  8615. enable_utrace="1"
  8616. fi
  8617. else
  8618. enable_utrace="0"
  8619. fi
  8620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5
  8621. $as_echo_n "checking whether utrace(2) is compilable... " >&6; }
  8622. if ${je_cv_utrace+:} false; then :
  8623. $as_echo_n "(cached) " >&6
  8624. else
  8625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8626. /* end confdefs.h. */
  8627. #include <sys/types.h>
  8628. #include <sys/param.h>
  8629. #include <sys/time.h>
  8630. #include <sys/uio.h>
  8631. #include <sys/ktrace.h>
  8632. int
  8633. main ()
  8634. {
  8635. utrace((void *)0, 0);
  8636. ;
  8637. return 0;
  8638. }
  8639. _ACEOF
  8640. if ac_fn_c_try_link "$LINENO"; then :
  8641. je_cv_utrace=yes
  8642. else
  8643. je_cv_utrace=no
  8644. fi
  8645. rm -f core conftest.err conftest.$ac_objext \
  8646. conftest$ac_exeext conftest.$ac_ext
  8647. fi
  8648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5
  8649. $as_echo "$je_cv_utrace" >&6; }
  8650. if test "x${je_cv_utrace}" = "xno" ; then
  8651. enable_utrace="0"
  8652. fi
  8653. if test "x$enable_utrace" = "x1" ; then
  8654. $as_echo "#define JEMALLOC_UTRACE " >>confdefs.h
  8655. fi
  8656. # Check whether --enable-xmalloc was given.
  8657. if test "${enable_xmalloc+set}" = set; then :
  8658. enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
  8659. enable_xmalloc="0"
  8660. else
  8661. enable_xmalloc="1"
  8662. fi
  8663. else
  8664. enable_xmalloc="0"
  8665. fi
  8666. if test "x$enable_xmalloc" = "x1" ; then
  8667. $as_echo "#define JEMALLOC_XMALLOC " >>confdefs.h
  8668. fi
  8669. # Check whether --enable-cache-oblivious was given.
  8670. if test "${enable_cache_oblivious+set}" = set; then :
  8671. enableval=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then
  8672. enable_cache_oblivious="0"
  8673. else
  8674. enable_cache_oblivious="1"
  8675. fi
  8676. else
  8677. enable_cache_oblivious="1"
  8678. fi
  8679. if test "x$enable_cache_oblivious" = "x1" ; then
  8680. $as_echo "#define JEMALLOC_CACHE_OBLIVIOUS " >>confdefs.h
  8681. fi
  8682. # Check whether --enable-log was given.
  8683. if test "${enable_log+set}" = set; then :
  8684. enableval=$enable_log; if test "x$enable_log" = "xno" ; then
  8685. enable_log="0"
  8686. else
  8687. enable_log="1"
  8688. fi
  8689. else
  8690. enable_log="0"
  8691. fi
  8692. if test "x$enable_log" = "x1" ; then
  8693. $as_echo "#define JEMALLOC_LOG " >>confdefs.h
  8694. fi
  8695. # Check whether --enable-readlinkat was given.
  8696. if test "${enable_readlinkat+set}" = set; then :
  8697. enableval=$enable_readlinkat; if test "x$enable_readlinkat" = "xno" ; then
  8698. enable_readlinkat="0"
  8699. else
  8700. enable_readlinkat="1"
  8701. fi
  8702. else
  8703. enable_readlinkat="0"
  8704. fi
  8705. if test "x$enable_readlinkat" = "x1" ; then
  8706. $as_echo "#define JEMALLOC_READLINKAT " >>confdefs.h
  8707. fi
  8708. # Check whether --enable-opt-safety-checks was given.
  8709. if test "${enable_opt_safety_checks+set}" = set; then :
  8710. enableval=$enable_opt_safety_checks; if test "x$enable_opt_safety_checks" = "xno" ; then
  8711. enable_opt_safety_checks="0"
  8712. else
  8713. enable_opt_safety_checks="1"
  8714. fi
  8715. else
  8716. enable_opt_safety_checks="0"
  8717. fi
  8718. if test "x$enable_opt_safety_checks" = "x1" ; then
  8719. $as_echo "#define JEMALLOC_OPT_SAFETY_CHECKS " >>confdefs.h
  8720. fi
  8721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_unreachable is compilable" >&5
  8722. $as_echo_n "checking whether a program using __builtin_unreachable is compilable... " >&6; }
  8723. if ${je_cv_gcc_builtin_unreachable+:} false; then :
  8724. $as_echo_n "(cached) " >&6
  8725. else
  8726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8727. /* end confdefs.h. */
  8728. void foo (void) {
  8729. __builtin_unreachable();
  8730. }
  8731. int
  8732. main ()
  8733. {
  8734. {
  8735. foo();
  8736. }
  8737. ;
  8738. return 0;
  8739. }
  8740. _ACEOF
  8741. if ac_fn_c_try_link "$LINENO"; then :
  8742. je_cv_gcc_builtin_unreachable=yes
  8743. else
  8744. je_cv_gcc_builtin_unreachable=no
  8745. fi
  8746. rm -f core conftest.err conftest.$ac_objext \
  8747. conftest$ac_exeext conftest.$ac_ext
  8748. fi
  8749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_unreachable" >&5
  8750. $as_echo "$je_cv_gcc_builtin_unreachable" >&6; }
  8751. if test "x${je_cv_gcc_builtin_unreachable}" = "xyes" ; then
  8752. $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable" >>confdefs.h
  8753. else
  8754. $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE abort" >>confdefs.h
  8755. fi
  8756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5
  8757. $as_echo_n "checking whether a program using __builtin_ffsl is compilable... " >&6; }
  8758. if ${je_cv_gcc_builtin_ffsl+:} false; then :
  8759. $as_echo_n "(cached) " >&6
  8760. else
  8761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8762. /* end confdefs.h. */
  8763. #include <stdio.h>
  8764. #include <strings.h>
  8765. #include <string.h>
  8766. int
  8767. main ()
  8768. {
  8769. {
  8770. int rv = __builtin_ffsl(0x08);
  8771. printf("%d\n", rv);
  8772. }
  8773. ;
  8774. return 0;
  8775. }
  8776. _ACEOF
  8777. if ac_fn_c_try_link "$LINENO"; then :
  8778. je_cv_gcc_builtin_ffsl=yes
  8779. else
  8780. je_cv_gcc_builtin_ffsl=no
  8781. fi
  8782. rm -f core conftest.err conftest.$ac_objext \
  8783. conftest$ac_exeext conftest.$ac_ext
  8784. fi
  8785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5
  8786. $as_echo "$je_cv_gcc_builtin_ffsl" >&6; }
  8787. if test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then
  8788. $as_echo "#define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll" >>confdefs.h
  8789. $as_echo "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h
  8790. $as_echo "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h
  8791. else
  8792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5
  8793. $as_echo_n "checking whether a program using ffsl is compilable... " >&6; }
  8794. if ${je_cv_function_ffsl+:} false; then :
  8795. $as_echo_n "(cached) " >&6
  8796. else
  8797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8798. /* end confdefs.h. */
  8799. #include <stdio.h>
  8800. #include <strings.h>
  8801. #include <string.h>
  8802. int
  8803. main ()
  8804. {
  8805. {
  8806. int rv = ffsl(0x08);
  8807. printf("%d\n", rv);
  8808. }
  8809. ;
  8810. return 0;
  8811. }
  8812. _ACEOF
  8813. if ac_fn_c_try_link "$LINENO"; then :
  8814. je_cv_function_ffsl=yes
  8815. else
  8816. je_cv_function_ffsl=no
  8817. fi
  8818. rm -f core conftest.err conftest.$ac_objext \
  8819. conftest$ac_exeext conftest.$ac_ext
  8820. fi
  8821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5
  8822. $as_echo "$je_cv_function_ffsl" >&6; }
  8823. if test "x${je_cv_function_ffsl}" = "xyes" ; then
  8824. $as_echo "#define JEMALLOC_INTERNAL_FFSLL ffsll" >>confdefs.h
  8825. $as_echo "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h
  8826. $as_echo "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h
  8827. else
  8828. as_fn_error $? "Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5
  8829. fi
  8830. fi
  8831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_popcountl is compilable" >&5
  8832. $as_echo_n "checking whether a program using __builtin_popcountl is compilable... " >&6; }
  8833. if ${je_cv_gcc_builtin_popcountl+:} false; then :
  8834. $as_echo_n "(cached) " >&6
  8835. else
  8836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8837. /* end confdefs.h. */
  8838. #include <stdio.h>
  8839. #include <strings.h>
  8840. #include <string.h>
  8841. int
  8842. main ()
  8843. {
  8844. {
  8845. int rv = __builtin_popcountl(0x08);
  8846. printf("%d\n", rv);
  8847. }
  8848. ;
  8849. return 0;
  8850. }
  8851. _ACEOF
  8852. if ac_fn_c_try_link "$LINENO"; then :
  8853. je_cv_gcc_builtin_popcountl=yes
  8854. else
  8855. je_cv_gcc_builtin_popcountl=no
  8856. fi
  8857. rm -f core conftest.err conftest.$ac_objext \
  8858. conftest$ac_exeext conftest.$ac_ext
  8859. fi
  8860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_popcountl" >&5
  8861. $as_echo "$je_cv_gcc_builtin_popcountl" >&6; }
  8862. if test "x${je_cv_gcc_builtin_popcountl}" = "xyes" ; then
  8863. $as_echo "#define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount" >>confdefs.h
  8864. $as_echo "#define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl" >>confdefs.h
  8865. fi
  8866. # Check whether --with-lg_quantum was given.
  8867. if test "${with_lg_quantum+set}" = set; then :
  8868. withval=$with_lg_quantum; LG_QUANTA="$with_lg_quantum"
  8869. else
  8870. LG_QUANTA="3 4"
  8871. fi
  8872. if test "x$with_lg_quantum" != "x" ; then
  8873. cat >>confdefs.h <<_ACEOF
  8874. #define LG_QUANTUM $with_lg_quantum
  8875. _ACEOF
  8876. fi
  8877. # Check whether --with-lg_page was given.
  8878. if test "${with_lg_page+set}" = set; then :
  8879. withval=$with_lg_page; LG_PAGE="$with_lg_page"
  8880. else
  8881. LG_PAGE="detect"
  8882. fi
  8883. if test "x$LG_PAGE" = "xdetect"; then
  8884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5
  8885. $as_echo_n "checking LG_PAGE... " >&6; }
  8886. if ${je_cv_lg_page+:} false; then :
  8887. $as_echo_n "(cached) " >&6
  8888. else
  8889. if test "$cross_compiling" = yes; then :
  8890. je_cv_lg_page=12
  8891. else
  8892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8893. /* end confdefs.h. */
  8894. #include <strings.h>
  8895. #ifdef _WIN32
  8896. #include <windows.h>
  8897. #else
  8898. #include <unistd.h>
  8899. #endif
  8900. #include <stdio.h>
  8901. int
  8902. main ()
  8903. {
  8904. int result;
  8905. FILE *f;
  8906. #ifdef _WIN32
  8907. SYSTEM_INFO si;
  8908. GetSystemInfo(&si);
  8909. result = si.dwPageSize;
  8910. #else
  8911. result = sysconf(_SC_PAGESIZE);
  8912. #endif
  8913. if (result == -1) {
  8914. return 1;
  8915. }
  8916. result = JEMALLOC_INTERNAL_FFSL(result) - 1;
  8917. f = fopen("conftest.out", "w");
  8918. if (f == NULL) {
  8919. return 1;
  8920. }
  8921. fprintf(f, "%d", result);
  8922. fclose(f);
  8923. return 0;
  8924. ;
  8925. return 0;
  8926. }
  8927. _ACEOF
  8928. if ac_fn_c_try_run "$LINENO"; then :
  8929. je_cv_lg_page=`cat conftest.out`
  8930. else
  8931. je_cv_lg_page=undefined
  8932. fi
  8933. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8934. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8935. fi
  8936. fi
  8937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5
  8938. $as_echo "$je_cv_lg_page" >&6; }
  8939. fi
  8940. if test "x${je_cv_lg_page}" != "x" ; then
  8941. LG_PAGE="${je_cv_lg_page}"
  8942. fi
  8943. if test "x${LG_PAGE}" != "xundefined" ; then
  8944. cat >>confdefs.h <<_ACEOF
  8945. #define LG_PAGE $LG_PAGE
  8946. _ACEOF
  8947. else
  8948. as_fn_error $? "cannot determine value for LG_PAGE" "$LINENO" 5
  8949. fi
  8950. # Check whether --with-lg_hugepage was given.
  8951. if test "${with_lg_hugepage+set}" = set; then :
  8952. withval=$with_lg_hugepage; je_cv_lg_hugepage="${with_lg_hugepage}"
  8953. else
  8954. je_cv_lg_hugepage=""
  8955. fi
  8956. if test "x${je_cv_lg_hugepage}" = "x" ; then
  8957. if test -e "/proc/meminfo" ; then
  8958. hpsk=`cat /proc/meminfo 2>/dev/null | \
  8959. grep -e '^Hugepagesize:[[:space:]]\+[0-9]\+[[:space:]]kB$' | \
  8960. awk '{print $2}'`
  8961. if test "x${hpsk}" != "x" ; then
  8962. je_cv_lg_hugepage=10
  8963. while test "${hpsk}" -gt 1 ; do
  8964. hpsk="$((hpsk / 2))"
  8965. je_cv_lg_hugepage="$((je_cv_lg_hugepage + 1))"
  8966. done
  8967. fi
  8968. fi
  8969. if test "x${je_cv_lg_hugepage}" = "x" ; then
  8970. je_cv_lg_hugepage=21
  8971. fi
  8972. fi
  8973. if test "x${LG_PAGE}" != "xundefined" -a \
  8974. "${je_cv_lg_hugepage}" -lt "${LG_PAGE}" ; then
  8975. as_fn_error $? "Huge page size (2^${je_cv_lg_hugepage}) must be at least page size (2^${LG_PAGE})" "$LINENO" 5
  8976. fi
  8977. cat >>confdefs.h <<_ACEOF
  8978. #define LG_HUGEPAGE ${je_cv_lg_hugepage}
  8979. _ACEOF
  8980. # Check whether --enable-libdl was given.
  8981. if test "${enable_libdl+set}" = set; then :
  8982. enableval=$enable_libdl; if test "x$enable_libdl" = "xno" ; then
  8983. enable_libdl="0"
  8984. else
  8985. enable_libdl="1"
  8986. fi
  8987. else
  8988. enable_libdl="1"
  8989. fi
  8990. if test "x$abi" != "xpecoff" ; then
  8991. $as_echo "#define JEMALLOC_HAVE_PTHREAD " >>confdefs.h
  8992. for ac_header in pthread.h
  8993. do :
  8994. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8995. if test "x$ac_cv_header_pthread_h" = xyes; then :
  8996. cat >>confdefs.h <<_ACEOF
  8997. #define HAVE_PTHREAD_H 1
  8998. _ACEOF
  8999. else
  9000. as_fn_error $? "pthread.h is missing" "$LINENO" 5
  9001. fi
  9002. done
  9003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  9004. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  9005. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  9006. $as_echo_n "(cached) " >&6
  9007. else
  9008. ac_check_lib_save_LIBS=$LIBS
  9009. LIBS="-lpthread $LIBS"
  9010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9011. /* end confdefs.h. */
  9012. /* Override any GCC internal prototype to avoid an error.
  9013. Use char because int might match the return type of a GCC
  9014. builtin and then its argument prototype would still apply. */
  9015. #ifdef __cplusplus
  9016. extern "C"
  9017. #endif
  9018. char pthread_create ();
  9019. int
  9020. main ()
  9021. {
  9022. return pthread_create ();
  9023. ;
  9024. return 0;
  9025. }
  9026. _ACEOF
  9027. if ac_fn_c_try_link "$LINENO"; then :
  9028. ac_cv_lib_pthread_pthread_create=yes
  9029. else
  9030. ac_cv_lib_pthread_pthread_create=no
  9031. fi
  9032. rm -f core conftest.err conftest.$ac_objext \
  9033. conftest$ac_exeext conftest.$ac_ext
  9034. LIBS=$ac_check_lib_save_LIBS
  9035. fi
  9036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  9037. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  9038. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  9039. T_APPEND_V=-pthread
  9040. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  9041. LIBS="${LIBS}${T_APPEND_V}"
  9042. else
  9043. LIBS="${LIBS} ${T_APPEND_V}"
  9044. fi
  9045. else
  9046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
  9047. $as_echo_n "checking for library containing pthread_create... " >&6; }
  9048. if ${ac_cv_search_pthread_create+:} false; then :
  9049. $as_echo_n "(cached) " >&6
  9050. else
  9051. ac_func_search_save_LIBS=$LIBS
  9052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9053. /* end confdefs.h. */
  9054. /* Override any GCC internal prototype to avoid an error.
  9055. Use char because int might match the return type of a GCC
  9056. builtin and then its argument prototype would still apply. */
  9057. #ifdef __cplusplus
  9058. extern "C"
  9059. #endif
  9060. char pthread_create ();
  9061. int
  9062. main ()
  9063. {
  9064. return pthread_create ();
  9065. ;
  9066. return 0;
  9067. }
  9068. _ACEOF
  9069. for ac_lib in '' ; do
  9070. if test -z "$ac_lib"; then
  9071. ac_res="none required"
  9072. else
  9073. ac_res=-l$ac_lib
  9074. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9075. fi
  9076. if ac_fn_c_try_link "$LINENO"; then :
  9077. ac_cv_search_pthread_create=$ac_res
  9078. fi
  9079. rm -f core conftest.err conftest.$ac_objext \
  9080. conftest$ac_exeext
  9081. if ${ac_cv_search_pthread_create+:} false; then :
  9082. break
  9083. fi
  9084. done
  9085. if ${ac_cv_search_pthread_create+:} false; then :
  9086. else
  9087. ac_cv_search_pthread_create=no
  9088. fi
  9089. rm conftest.$ac_ext
  9090. LIBS=$ac_func_search_save_LIBS
  9091. fi
  9092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
  9093. $as_echo "$ac_cv_search_pthread_create" >&6; }
  9094. ac_res=$ac_cv_search_pthread_create
  9095. if test "$ac_res" != no; then :
  9096. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9097. else
  9098. as_fn_error $? "libpthread is missing" "$LINENO" 5
  9099. fi
  9100. fi
  9101. wrap_syms="${wrap_syms} pthread_create"
  9102. have_pthread="1"
  9103. if test "x$enable_libdl" = "x1" ; then
  9104. have_dlsym="1"
  9105. for ac_header in dlfcn.h
  9106. do :
  9107. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  9108. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  9109. cat >>confdefs.h <<_ACEOF
  9110. #define HAVE_DLFCN_H 1
  9111. _ACEOF
  9112. ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
  9113. if test "x$ac_cv_func_dlsym" = xyes; then :
  9114. else
  9115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
  9116. $as_echo_n "checking for dlsym in -ldl... " >&6; }
  9117. if ${ac_cv_lib_dl_dlsym+:} false; then :
  9118. $as_echo_n "(cached) " >&6
  9119. else
  9120. ac_check_lib_save_LIBS=$LIBS
  9121. LIBS="-ldl $LIBS"
  9122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9123. /* end confdefs.h. */
  9124. /* Override any GCC internal prototype to avoid an error.
  9125. Use char because int might match the return type of a GCC
  9126. builtin and then its argument prototype would still apply. */
  9127. #ifdef __cplusplus
  9128. extern "C"
  9129. #endif
  9130. char dlsym ();
  9131. int
  9132. main ()
  9133. {
  9134. return dlsym ();
  9135. ;
  9136. return 0;
  9137. }
  9138. _ACEOF
  9139. if ac_fn_c_try_link "$LINENO"; then :
  9140. ac_cv_lib_dl_dlsym=yes
  9141. else
  9142. ac_cv_lib_dl_dlsym=no
  9143. fi
  9144. rm -f core conftest.err conftest.$ac_objext \
  9145. conftest$ac_exeext conftest.$ac_ext
  9146. LIBS=$ac_check_lib_save_LIBS
  9147. fi
  9148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
  9149. $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
  9150. if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
  9151. LIBS="$LIBS -ldl"
  9152. else
  9153. have_dlsym="0"
  9154. fi
  9155. fi
  9156. else
  9157. have_dlsym="0"
  9158. fi
  9159. done
  9160. if test "x$have_dlsym" = "x1" ; then
  9161. $as_echo "#define JEMALLOC_HAVE_DLSYM " >>confdefs.h
  9162. fi
  9163. else
  9164. have_dlsym="0"
  9165. fi
  9166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_atfork(3) is compilable" >&5
  9167. $as_echo_n "checking whether pthread_atfork(3) is compilable... " >&6; }
  9168. if ${je_cv_pthread_atfork+:} false; then :
  9169. $as_echo_n "(cached) " >&6
  9170. else
  9171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9172. /* end confdefs.h. */
  9173. #include <pthread.h>
  9174. int
  9175. main ()
  9176. {
  9177. pthread_atfork((void *)0, (void *)0, (void *)0);
  9178. ;
  9179. return 0;
  9180. }
  9181. _ACEOF
  9182. if ac_fn_c_try_link "$LINENO"; then :
  9183. je_cv_pthread_atfork=yes
  9184. else
  9185. je_cv_pthread_atfork=no
  9186. fi
  9187. rm -f core conftest.err conftest.$ac_objext \
  9188. conftest$ac_exeext conftest.$ac_ext
  9189. fi
  9190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_atfork" >&5
  9191. $as_echo "$je_cv_pthread_atfork" >&6; }
  9192. if test "x${je_cv_pthread_atfork}" = "xyes" ; then
  9193. $as_echo "#define JEMALLOC_HAVE_PTHREAD_ATFORK " >>confdefs.h
  9194. fi
  9195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np(3) is compilable" >&5
  9196. $as_echo_n "checking whether pthread_setname_np(3) is compilable... " >&6; }
  9197. if ${je_cv_pthread_setname_np+:} false; then :
  9198. $as_echo_n "(cached) " >&6
  9199. else
  9200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9201. /* end confdefs.h. */
  9202. #include <pthread.h>
  9203. int
  9204. main ()
  9205. {
  9206. pthread_setname_np(pthread_self(), "setname_test");
  9207. ;
  9208. return 0;
  9209. }
  9210. _ACEOF
  9211. if ac_fn_c_try_link "$LINENO"; then :
  9212. je_cv_pthread_setname_np=yes
  9213. else
  9214. je_cv_pthread_setname_np=no
  9215. fi
  9216. rm -f core conftest.err conftest.$ac_objext \
  9217. conftest$ac_exeext conftest.$ac_ext
  9218. fi
  9219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_setname_np" >&5
  9220. $as_echo "$je_cv_pthread_setname_np" >&6; }
  9221. if test "x${je_cv_pthread_setname_np}" = "xyes" ; then
  9222. $as_echo "#define JEMALLOC_HAVE_PTHREAD_SETNAME_NP " >>confdefs.h
  9223. fi
  9224. fi
  9225. T_APPEND_V=-D_REENTRANT
  9226. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  9227. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  9228. else
  9229. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  9230. fi
  9231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  9232. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  9233. if ${ac_cv_search_clock_gettime+:} false; then :
  9234. $as_echo_n "(cached) " >&6
  9235. else
  9236. ac_func_search_save_LIBS=$LIBS
  9237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9238. /* end confdefs.h. */
  9239. /* Override any GCC internal prototype to avoid an error.
  9240. Use char because int might match the return type of a GCC
  9241. builtin and then its argument prototype would still apply. */
  9242. #ifdef __cplusplus
  9243. extern "C"
  9244. #endif
  9245. char clock_gettime ();
  9246. int
  9247. main ()
  9248. {
  9249. return clock_gettime ();
  9250. ;
  9251. return 0;
  9252. }
  9253. _ACEOF
  9254. for ac_lib in '' rt; do
  9255. if test -z "$ac_lib"; then
  9256. ac_res="none required"
  9257. else
  9258. ac_res=-l$ac_lib
  9259. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9260. fi
  9261. if ac_fn_c_try_link "$LINENO"; then :
  9262. ac_cv_search_clock_gettime=$ac_res
  9263. fi
  9264. rm -f core conftest.err conftest.$ac_objext \
  9265. conftest$ac_exeext
  9266. if ${ac_cv_search_clock_gettime+:} false; then :
  9267. break
  9268. fi
  9269. done
  9270. if ${ac_cv_search_clock_gettime+:} false; then :
  9271. else
  9272. ac_cv_search_clock_gettime=no
  9273. fi
  9274. rm conftest.$ac_ext
  9275. LIBS=$ac_func_search_save_LIBS
  9276. fi
  9277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  9278. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  9279. ac_res=$ac_cv_search_clock_gettime
  9280. if test "$ac_res" != no; then :
  9281. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9282. fi
  9283. if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
  9284. if test "$ac_cv_search_clock_gettime" != "-lrt"; then
  9285. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  9286. unset ac_cv_search_clock_gettime
  9287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -dynamic" >&5
  9288. $as_echo_n "checking whether compiler supports -dynamic... " >&6; }
  9289. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  9290. T_APPEND_V=-dynamic
  9291. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  9292. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  9293. else
  9294. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  9295. fi
  9296. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9297. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9298. else
  9299. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9300. fi
  9301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9302. /* end confdefs.h. */
  9303. int
  9304. main ()
  9305. {
  9306. return 0;
  9307. ;
  9308. return 0;
  9309. }
  9310. _ACEOF
  9311. if ac_fn_c_try_compile "$LINENO"; then :
  9312. je_cv_cflags_added=-dynamic
  9313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9314. $as_echo "yes" >&6; }
  9315. else
  9316. je_cv_cflags_added=
  9317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9318. $as_echo "no" >&6; }
  9319. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  9320. fi
  9321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9322. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9323. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9324. else
  9325. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9326. fi
  9327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  9328. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  9329. if ${ac_cv_search_clock_gettime+:} false; then :
  9330. $as_echo_n "(cached) " >&6
  9331. else
  9332. ac_func_search_save_LIBS=$LIBS
  9333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9334. /* end confdefs.h. */
  9335. /* Override any GCC internal prototype to avoid an error.
  9336. Use char because int might match the return type of a GCC
  9337. builtin and then its argument prototype would still apply. */
  9338. #ifdef __cplusplus
  9339. extern "C"
  9340. #endif
  9341. char clock_gettime ();
  9342. int
  9343. main ()
  9344. {
  9345. return clock_gettime ();
  9346. ;
  9347. return 0;
  9348. }
  9349. _ACEOF
  9350. for ac_lib in '' rt; do
  9351. if test -z "$ac_lib"; then
  9352. ac_res="none required"
  9353. else
  9354. ac_res=-l$ac_lib
  9355. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9356. fi
  9357. if ac_fn_c_try_link "$LINENO"; then :
  9358. ac_cv_search_clock_gettime=$ac_res
  9359. fi
  9360. rm -f core conftest.err conftest.$ac_objext \
  9361. conftest$ac_exeext
  9362. if ${ac_cv_search_clock_gettime+:} false; then :
  9363. break
  9364. fi
  9365. done
  9366. if ${ac_cv_search_clock_gettime+:} false; then :
  9367. else
  9368. ac_cv_search_clock_gettime=no
  9369. fi
  9370. rm conftest.$ac_ext
  9371. LIBS=$ac_func_search_save_LIBS
  9372. fi
  9373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  9374. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  9375. ac_res=$ac_cv_search_clock_gettime
  9376. if test "$ac_res" != no; then :
  9377. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9378. fi
  9379. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  9380. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9381. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9382. else
  9383. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9384. fi
  9385. fi
  9386. fi
  9387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable" >&5
  9388. $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... " >&6; }
  9389. if ${je_cv_clock_monotonic_coarse+:} false; then :
  9390. $as_echo_n "(cached) " >&6
  9391. else
  9392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9393. /* end confdefs.h. */
  9394. #include <time.h>
  9395. int
  9396. main ()
  9397. {
  9398. struct timespec ts;
  9399. clock_gettime(CLOCK_MONOTONIC_COARSE, &ts);
  9400. ;
  9401. return 0;
  9402. }
  9403. _ACEOF
  9404. if ac_fn_c_try_link "$LINENO"; then :
  9405. je_cv_clock_monotonic_coarse=yes
  9406. else
  9407. je_cv_clock_monotonic_coarse=no
  9408. fi
  9409. rm -f core conftest.err conftest.$ac_objext \
  9410. conftest$ac_exeext conftest.$ac_ext
  9411. fi
  9412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic_coarse" >&5
  9413. $as_echo "$je_cv_clock_monotonic_coarse" >&6; }
  9414. if test "x${je_cv_clock_monotonic_coarse}" = "xyes" ; then
  9415. $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1" >>confdefs.h
  9416. fi
  9417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable" >&5
  9418. $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... " >&6; }
  9419. if ${je_cv_clock_monotonic+:} false; then :
  9420. $as_echo_n "(cached) " >&6
  9421. else
  9422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9423. /* end confdefs.h. */
  9424. #include <unistd.h>
  9425. #include <time.h>
  9426. int
  9427. main ()
  9428. {
  9429. struct timespec ts;
  9430. clock_gettime(CLOCK_MONOTONIC, &ts);
  9431. #if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0
  9432. # error _POSIX_MONOTONIC_CLOCK missing/invalid
  9433. #endif
  9434. ;
  9435. return 0;
  9436. }
  9437. _ACEOF
  9438. if ac_fn_c_try_link "$LINENO"; then :
  9439. je_cv_clock_monotonic=yes
  9440. else
  9441. je_cv_clock_monotonic=no
  9442. fi
  9443. rm -f core conftest.err conftest.$ac_objext \
  9444. conftest$ac_exeext conftest.$ac_ext
  9445. fi
  9446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic" >&5
  9447. $as_echo "$je_cv_clock_monotonic" >&6; }
  9448. if test "x${je_cv_clock_monotonic}" = "xyes" ; then
  9449. $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
  9450. fi
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mach_absolute_time() is compilable" >&5
  9452. $as_echo_n "checking whether mach_absolute_time() is compilable... " >&6; }
  9453. if ${je_cv_mach_absolute_time+:} false; then :
  9454. $as_echo_n "(cached) " >&6
  9455. else
  9456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9457. /* end confdefs.h. */
  9458. #include <mach/mach_time.h>
  9459. int
  9460. main ()
  9461. {
  9462. mach_absolute_time();
  9463. ;
  9464. return 0;
  9465. }
  9466. _ACEOF
  9467. if ac_fn_c_try_link "$LINENO"; then :
  9468. je_cv_mach_absolute_time=yes
  9469. else
  9470. je_cv_mach_absolute_time=no
  9471. fi
  9472. rm -f core conftest.err conftest.$ac_objext \
  9473. conftest$ac_exeext conftest.$ac_ext
  9474. fi
  9475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mach_absolute_time" >&5
  9476. $as_echo "$je_cv_mach_absolute_time" >&6; }
  9477. if test "x${je_cv_mach_absolute_time}" = "xyes" ; then
  9478. $as_echo "#define JEMALLOC_HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h
  9479. fi
  9480. # Check whether --enable-syscall was given.
  9481. if test "${enable_syscall+set}" = set; then :
  9482. enableval=$enable_syscall; if test "x$enable_syscall" = "xno" ; then
  9483. enable_syscall="0"
  9484. else
  9485. enable_syscall="1"
  9486. fi
  9487. else
  9488. enable_syscall="1"
  9489. fi
  9490. if test "x$enable_syscall" = "x1" ; then
  9491. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  9492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  9493. $as_echo_n "checking whether compiler supports -Werror... " >&6; }
  9494. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  9495. T_APPEND_V=-Werror
  9496. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  9497. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  9498. else
  9499. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  9500. fi
  9501. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9502. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9503. else
  9504. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9505. fi
  9506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9507. /* end confdefs.h. */
  9508. int
  9509. main ()
  9510. {
  9511. return 0;
  9512. ;
  9513. return 0;
  9514. }
  9515. _ACEOF
  9516. if ac_fn_c_try_compile "$LINENO"; then :
  9517. je_cv_cflags_added=-Werror
  9518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9519. $as_echo "yes" >&6; }
  9520. else
  9521. je_cv_cflags_added=
  9522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9523. $as_echo "no" >&6; }
  9524. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  9525. fi
  9526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9527. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9528. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9529. else
  9530. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9531. fi
  9532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syscall(2) is compilable" >&5
  9533. $as_echo_n "checking whether syscall(2) is compilable... " >&6; }
  9534. if ${je_cv_syscall+:} false; then :
  9535. $as_echo_n "(cached) " >&6
  9536. else
  9537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9538. /* end confdefs.h. */
  9539. #include <sys/syscall.h>
  9540. #include <unistd.h>
  9541. int
  9542. main ()
  9543. {
  9544. syscall(SYS_write, 2, "hello", 5);
  9545. ;
  9546. return 0;
  9547. }
  9548. _ACEOF
  9549. if ac_fn_c_try_link "$LINENO"; then :
  9550. je_cv_syscall=yes
  9551. else
  9552. je_cv_syscall=no
  9553. fi
  9554. rm -f core conftest.err conftest.$ac_objext \
  9555. conftest$ac_exeext conftest.$ac_ext
  9556. fi
  9557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_syscall" >&5
  9558. $as_echo "$je_cv_syscall" >&6; }
  9559. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  9560. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9561. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9562. else
  9563. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9564. fi
  9565. if test "x$je_cv_syscall" = "xyes" ; then
  9566. $as_echo "#define JEMALLOC_USE_SYSCALL " >>confdefs.h
  9567. fi
  9568. fi
  9569. ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
  9570. if test "x$ac_cv_func_secure_getenv" = xyes; then :
  9571. have_secure_getenv="1"
  9572. else
  9573. have_secure_getenv="0"
  9574. fi
  9575. if test "x$have_secure_getenv" = "x1" ; then
  9576. $as_echo "#define JEMALLOC_HAVE_SECURE_GETENV " >>confdefs.h
  9577. fi
  9578. ac_fn_c_check_func "$LINENO" "sched_getcpu" "ac_cv_func_sched_getcpu"
  9579. if test "x$ac_cv_func_sched_getcpu" = xyes; then :
  9580. have_sched_getcpu="1"
  9581. else
  9582. have_sched_getcpu="0"
  9583. fi
  9584. if test "x$have_sched_getcpu" = "x1" ; then
  9585. $as_echo "#define JEMALLOC_HAVE_SCHED_GETCPU " >>confdefs.h
  9586. fi
  9587. ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
  9588. if test "x$ac_cv_func_sched_setaffinity" = xyes; then :
  9589. have_sched_setaffinity="1"
  9590. else
  9591. have_sched_setaffinity="0"
  9592. fi
  9593. if test "x$have_sched_setaffinity" = "x1" ; then
  9594. $as_echo "#define JEMALLOC_HAVE_SCHED_SETAFFINITY " >>confdefs.h
  9595. fi
  9596. ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
  9597. if test "x$ac_cv_func_issetugid" = xyes; then :
  9598. have_issetugid="1"
  9599. else
  9600. have_issetugid="0"
  9601. fi
  9602. if test "x$have_issetugid" = "x1" ; then
  9603. $as_echo "#define JEMALLOC_HAVE_ISSETUGID " >>confdefs.h
  9604. fi
  9605. ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup"
  9606. if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then :
  9607. have__malloc_thread_cleanup="1"
  9608. else
  9609. have__malloc_thread_cleanup="0"
  9610. fi
  9611. if test "x$have__malloc_thread_cleanup" = "x1" ; then
  9612. $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP " >>confdefs.h
  9613. wrap_syms="${wrap_syms} _malloc_thread_cleanup"
  9614. force_tls="1"
  9615. fi
  9616. ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb"
  9617. if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then :
  9618. have__pthread_mutex_init_calloc_cb="1"
  9619. else
  9620. have__pthread_mutex_init_calloc_cb="0"
  9621. fi
  9622. if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
  9623. $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h
  9624. wrap_syms="${wrap_syms} _malloc_prefork _malloc_postfork"
  9625. fi
  9626. # Check whether --enable-lazy_lock was given.
  9627. if test "${enable_lazy_lock+set}" = set; then :
  9628. enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
  9629. enable_lazy_lock="0"
  9630. else
  9631. enable_lazy_lock="1"
  9632. fi
  9633. else
  9634. enable_lazy_lock=""
  9635. fi
  9636. if test "x${enable_lazy_lock}" = "x" ; then
  9637. if test "x${force_lazy_lock}" = "x1" ; then
  9638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5
  9639. $as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; }
  9640. enable_lazy_lock="1"
  9641. else
  9642. enable_lazy_lock="0"
  9643. fi
  9644. fi
  9645. if test "x${enable_lazy_lock}" = "x1" -a "x${abi}" = "xpecoff" ; then
  9646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no lazy-lock because thread creation monitoring is unimplemented" >&5
  9647. $as_echo "Forcing no lazy-lock because thread creation monitoring is unimplemented" >&6; }
  9648. enable_lazy_lock="0"
  9649. fi
  9650. if test "x$enable_lazy_lock" = "x1" ; then
  9651. if test "x$have_dlsym" = "x1" ; then
  9652. $as_echo "#define JEMALLOC_LAZY_LOCK " >>confdefs.h
  9653. else
  9654. as_fn_error $? "Missing dlsym support: lazy-lock cannot be enabled." "$LINENO" 5
  9655. fi
  9656. fi
  9657. if test "x${force_tls}" = "x1" ; then
  9658. enable_tls="1"
  9659. elif test "x${force_tls}" = "x0" ; then
  9660. enable_tls="0"
  9661. else
  9662. enable_tls="1"
  9663. fi
  9664. if test "x${enable_tls}" = "x1" ; then
  9665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
  9666. $as_echo_n "checking for TLS... " >&6; }
  9667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9668. /* end confdefs.h. */
  9669. __thread int x;
  9670. int
  9671. main ()
  9672. {
  9673. x = 42;
  9674. return 0;
  9675. ;
  9676. return 0;
  9677. }
  9678. _ACEOF
  9679. if ac_fn_c_try_compile "$LINENO"; then :
  9680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9681. $as_echo "yes" >&6; }
  9682. else
  9683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9684. $as_echo "no" >&6; }
  9685. enable_tls="0"
  9686. fi
  9687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9688. else
  9689. enable_tls="0"
  9690. fi
  9691. if test "x${enable_tls}" = "x1" ; then
  9692. cat >>confdefs.h <<_ACEOF
  9693. #define JEMALLOC_TLS
  9694. _ACEOF
  9695. fi
  9696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5
  9697. $as_echo_n "checking whether C11 atomics is compilable... " >&6; }
  9698. if ${je_cv_c11_atomics+:} false; then :
  9699. $as_echo_n "(cached) " >&6
  9700. else
  9701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9702. /* end confdefs.h. */
  9703. #include <stdint.h>
  9704. #if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__)
  9705. #include <stdatomic.h>
  9706. #else
  9707. #error Atomics not available
  9708. #endif
  9709. int
  9710. main ()
  9711. {
  9712. uint64_t *p = (uint64_t *)0;
  9713. uint64_t x = 1;
  9714. volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p;
  9715. uint64_t r = atomic_fetch_add(a, x) + x;
  9716. return r == 0;
  9717. ;
  9718. return 0;
  9719. }
  9720. _ACEOF
  9721. if ac_fn_c_try_link "$LINENO"; then :
  9722. je_cv_c11_atomics=yes
  9723. else
  9724. je_cv_c11_atomics=no
  9725. fi
  9726. rm -f core conftest.err conftest.$ac_objext \
  9727. conftest$ac_exeext conftest.$ac_ext
  9728. fi
  9729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11_atomics" >&5
  9730. $as_echo "$je_cv_c11_atomics" >&6; }
  9731. if test "x${je_cv_c11_atomics}" = "xyes" ; then
  9732. $as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
  9733. fi
  9734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __atomic atomics is compilable" >&5
  9735. $as_echo_n "checking whether GCC __atomic atomics is compilable... " >&6; }
  9736. if ${je_cv_gcc_atomic_atomics+:} false; then :
  9737. $as_echo_n "(cached) " >&6
  9738. else
  9739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9740. /* end confdefs.h. */
  9741. int
  9742. main ()
  9743. {
  9744. int x = 0;
  9745. int val = 1;
  9746. int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
  9747. int after_add = x;
  9748. return after_add == 1;
  9749. ;
  9750. return 0;
  9751. }
  9752. _ACEOF
  9753. if ac_fn_c_try_link "$LINENO"; then :
  9754. je_cv_gcc_atomic_atomics=yes
  9755. else
  9756. je_cv_gcc_atomic_atomics=no
  9757. fi
  9758. rm -f core conftest.err conftest.$ac_objext \
  9759. conftest$ac_exeext conftest.$ac_ext
  9760. fi
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_atomic_atomics" >&5
  9762. $as_echo "$je_cv_gcc_atomic_atomics" >&6; }
  9763. if test "x${je_cv_gcc_atomic_atomics}" = "xyes" ; then
  9764. $as_echo "#define JEMALLOC_GCC_ATOMIC_ATOMICS 1" >>confdefs.h
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC 8-bit __atomic atomics is compilable" >&5
  9766. $as_echo_n "checking whether GCC 8-bit __atomic atomics is compilable... " >&6; }
  9767. if ${je_cv_gcc_u8_atomic_atomics+:} false; then :
  9768. $as_echo_n "(cached) " >&6
  9769. else
  9770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9771. /* end confdefs.h. */
  9772. int
  9773. main ()
  9774. {
  9775. unsigned char x = 0;
  9776. int val = 1;
  9777. int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
  9778. int after_add = (int)x;
  9779. return after_add == 1;
  9780. ;
  9781. return 0;
  9782. }
  9783. _ACEOF
  9784. if ac_fn_c_try_link "$LINENO"; then :
  9785. je_cv_gcc_u8_atomic_atomics=yes
  9786. else
  9787. je_cv_gcc_u8_atomic_atomics=no
  9788. fi
  9789. rm -f core conftest.err conftest.$ac_objext \
  9790. conftest$ac_exeext conftest.$ac_ext
  9791. fi
  9792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_u8_atomic_atomics" >&5
  9793. $as_echo "$je_cv_gcc_u8_atomic_atomics" >&6; }
  9794. if test "x${je_cv_gcc_u8_atomic_atomics}" = "xyes" ; then
  9795. $as_echo "#define JEMALLOC_GCC_U8_ATOMIC_ATOMICS 1" >>confdefs.h
  9796. fi
  9797. fi
  9798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __sync atomics is compilable" >&5
  9799. $as_echo_n "checking whether GCC __sync atomics is compilable... " >&6; }
  9800. if ${je_cv_gcc_sync_atomics+:} false; then :
  9801. $as_echo_n "(cached) " >&6
  9802. else
  9803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9804. /* end confdefs.h. */
  9805. int
  9806. main ()
  9807. {
  9808. int x = 0;
  9809. int before_add = __sync_fetch_and_add(&x, 1);
  9810. int after_add = x;
  9811. return (before_add == 0) && (after_add == 1);
  9812. ;
  9813. return 0;
  9814. }
  9815. _ACEOF
  9816. if ac_fn_c_try_link "$LINENO"; then :
  9817. je_cv_gcc_sync_atomics=yes
  9818. else
  9819. je_cv_gcc_sync_atomics=no
  9820. fi
  9821. rm -f core conftest.err conftest.$ac_objext \
  9822. conftest$ac_exeext conftest.$ac_ext
  9823. fi
  9824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_sync_atomics" >&5
  9825. $as_echo "$je_cv_gcc_sync_atomics" >&6; }
  9826. if test "x${je_cv_gcc_sync_atomics}" = "xyes" ; then
  9827. $as_echo "#define JEMALLOC_GCC_SYNC_ATOMICS 1" >>confdefs.h
  9828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC 8-bit __sync atomics is compilable" >&5
  9829. $as_echo_n "checking whether GCC 8-bit __sync atomics is compilable... " >&6; }
  9830. if ${je_cv_gcc_u8_sync_atomics+:} false; then :
  9831. $as_echo_n "(cached) " >&6
  9832. else
  9833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9834. /* end confdefs.h. */
  9835. int
  9836. main ()
  9837. {
  9838. unsigned char x = 0;
  9839. int before_add = __sync_fetch_and_add(&x, 1);
  9840. int after_add = (int)x;
  9841. return (before_add == 0) && (after_add == 1);
  9842. ;
  9843. return 0;
  9844. }
  9845. _ACEOF
  9846. if ac_fn_c_try_link "$LINENO"; then :
  9847. je_cv_gcc_u8_sync_atomics=yes
  9848. else
  9849. je_cv_gcc_u8_sync_atomics=no
  9850. fi
  9851. rm -f core conftest.err conftest.$ac_objext \
  9852. conftest$ac_exeext conftest.$ac_ext
  9853. fi
  9854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_u8_sync_atomics" >&5
  9855. $as_echo "$je_cv_gcc_u8_sync_atomics" >&6; }
  9856. if test "x${je_cv_gcc_u8_sync_atomics}" = "xyes" ; then
  9857. $as_echo "#define JEMALLOC_GCC_U8_SYNC_ATOMICS 1" >>confdefs.h
  9858. fi
  9859. fi
  9860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
  9861. $as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; }
  9862. if ${je_cv_osatomic+:} false; then :
  9863. $as_echo_n "(cached) " >&6
  9864. else
  9865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9866. /* end confdefs.h. */
  9867. #include <libkern/OSAtomic.h>
  9868. #include <inttypes.h>
  9869. int
  9870. main ()
  9871. {
  9872. {
  9873. int32_t x32 = 0;
  9874. volatile int32_t *x32p = &x32;
  9875. OSAtomicAdd32(1, x32p);
  9876. }
  9877. {
  9878. int64_t x64 = 0;
  9879. volatile int64_t *x64p = &x64;
  9880. OSAtomicAdd64(1, x64p);
  9881. }
  9882. ;
  9883. return 0;
  9884. }
  9885. _ACEOF
  9886. if ac_fn_c_try_link "$LINENO"; then :
  9887. je_cv_osatomic=yes
  9888. else
  9889. je_cv_osatomic=no
  9890. fi
  9891. rm -f core conftest.err conftest.$ac_objext \
  9892. conftest$ac_exeext conftest.$ac_ext
  9893. fi
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5
  9895. $as_echo "$je_cv_osatomic" >&6; }
  9896. if test "x${je_cv_osatomic}" = "xyes" ; then
  9897. $as_echo "#define JEMALLOC_OSATOMIC " >>confdefs.h
  9898. fi
  9899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5
  9900. $as_echo_n "checking whether madvise(2) is compilable... " >&6; }
  9901. if ${je_cv_madvise+:} false; then :
  9902. $as_echo_n "(cached) " >&6
  9903. else
  9904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9905. /* end confdefs.h. */
  9906. #include <sys/mman.h>
  9907. int
  9908. main ()
  9909. {
  9910. madvise((void *)0, 0, 0);
  9911. ;
  9912. return 0;
  9913. }
  9914. _ACEOF
  9915. if ac_fn_c_try_link "$LINENO"; then :
  9916. je_cv_madvise=yes
  9917. else
  9918. je_cv_madvise=no
  9919. fi
  9920. rm -f core conftest.err conftest.$ac_objext \
  9921. conftest$ac_exeext conftest.$ac_ext
  9922. fi
  9923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5
  9924. $as_echo "$je_cv_madvise" >&6; }
  9925. if test "x${je_cv_madvise}" = "xyes" ; then
  9926. $as_echo "#define JEMALLOC_HAVE_MADVISE " >>confdefs.h
  9927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_FREE) is compilable" >&5
  9928. $as_echo_n "checking whether madvise(..., MADV_FREE) is compilable... " >&6; }
  9929. if ${je_cv_madv_free+:} false; then :
  9930. $as_echo_n "(cached) " >&6
  9931. else
  9932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9933. /* end confdefs.h. */
  9934. #include <sys/mman.h>
  9935. int
  9936. main ()
  9937. {
  9938. madvise((void *)0, 0, MADV_FREE);
  9939. ;
  9940. return 0;
  9941. }
  9942. _ACEOF
  9943. if ac_fn_c_try_link "$LINENO"; then :
  9944. je_cv_madv_free=yes
  9945. else
  9946. je_cv_madv_free=no
  9947. fi
  9948. rm -f core conftest.err conftest.$ac_objext \
  9949. conftest$ac_exeext conftest.$ac_ext
  9950. fi
  9951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_free" >&5
  9952. $as_echo "$je_cv_madv_free" >&6; }
  9953. if test "x${je_cv_madv_free}" = "xyes" ; then
  9954. $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h
  9955. elif test "x${je_cv_madvise}" = "xyes" ; then
  9956. case "${host_cpu}" in i686|x86_64)
  9957. case "${host}" in *-*-linux*)
  9958. $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h
  9959. $as_echo "#define JEMALLOC_DEFINE_MADVISE_FREE " >>confdefs.h
  9960. ;;
  9961. esac
  9962. ;;
  9963. esac
  9964. fi
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DONTNEED) is compilable" >&5
  9966. $as_echo_n "checking whether madvise(..., MADV_DONTNEED) is compilable... " >&6; }
  9967. if ${je_cv_madv_dontneed+:} false; then :
  9968. $as_echo_n "(cached) " >&6
  9969. else
  9970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9971. /* end confdefs.h. */
  9972. #include <sys/mman.h>
  9973. int
  9974. main ()
  9975. {
  9976. madvise((void *)0, 0, MADV_DONTNEED);
  9977. ;
  9978. return 0;
  9979. }
  9980. _ACEOF
  9981. if ac_fn_c_try_link "$LINENO"; then :
  9982. je_cv_madv_dontneed=yes
  9983. else
  9984. je_cv_madv_dontneed=no
  9985. fi
  9986. rm -f core conftest.err conftest.$ac_objext \
  9987. conftest$ac_exeext conftest.$ac_ext
  9988. fi
  9989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontneed" >&5
  9990. $as_echo "$je_cv_madv_dontneed" >&6; }
  9991. if test "x${je_cv_madv_dontneed}" = "xyes" ; then
  9992. $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED " >>confdefs.h
  9993. fi
  9994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DO[NT]DUMP) is compilable" >&5
  9995. $as_echo_n "checking whether madvise(..., MADV_DO[NT]DUMP) is compilable... " >&6; }
  9996. if ${je_cv_madv_dontdump+:} false; then :
  9997. $as_echo_n "(cached) " >&6
  9998. else
  9999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10000. /* end confdefs.h. */
  10001. #include <sys/mman.h>
  10002. int
  10003. main ()
  10004. {
  10005. madvise((void *)0, 0, MADV_DONTDUMP);
  10006. madvise((void *)0, 0, MADV_DODUMP);
  10007. ;
  10008. return 0;
  10009. }
  10010. _ACEOF
  10011. if ac_fn_c_try_link "$LINENO"; then :
  10012. je_cv_madv_dontdump=yes
  10013. else
  10014. je_cv_madv_dontdump=no
  10015. fi
  10016. rm -f core conftest.err conftest.$ac_objext \
  10017. conftest$ac_exeext conftest.$ac_ext
  10018. fi
  10019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontdump" >&5
  10020. $as_echo "$je_cv_madv_dontdump" >&6; }
  10021. if test "x${je_cv_madv_dontdump}" = "xyes" ; then
  10022. $as_echo "#define JEMALLOC_MADVISE_DONTDUMP " >>confdefs.h
  10023. fi
  10024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable" >&5
  10025. $as_echo_n "checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... " >&6; }
  10026. if ${je_cv_thp+:} false; then :
  10027. $as_echo_n "(cached) " >&6
  10028. else
  10029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10030. /* end confdefs.h. */
  10031. #include <sys/mman.h>
  10032. int
  10033. main ()
  10034. {
  10035. madvise((void *)0, 0, MADV_HUGEPAGE);
  10036. madvise((void *)0, 0, MADV_NOHUGEPAGE);
  10037. ;
  10038. return 0;
  10039. }
  10040. _ACEOF
  10041. if ac_fn_c_try_link "$LINENO"; then :
  10042. je_cv_thp=yes
  10043. else
  10044. je_cv_thp=no
  10045. fi
  10046. rm -f core conftest.err conftest.$ac_objext \
  10047. conftest$ac_exeext conftest.$ac_ext
  10048. fi
  10049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_thp" >&5
  10050. $as_echo "$je_cv_thp" >&6; }
  10051. case "${host_cpu}" in
  10052. arm*)
  10053. ;;
  10054. *)
  10055. if test "x${je_cv_thp}" = "xyes" ; then
  10056. $as_echo "#define JEMALLOC_HAVE_MADVISE_HUGE " >>confdefs.h
  10057. fi
  10058. ;;
  10059. esac
  10060. fi
  10061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
  10062. $as_echo_n "checking for __builtin_clz... " >&6; }
  10063. if ${je_cv_builtin_clz+:} false; then :
  10064. $as_echo_n "(cached) " >&6
  10065. else
  10066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10067. /* end confdefs.h. */
  10068. int
  10069. main ()
  10070. {
  10071. {
  10072. unsigned x = 0;
  10073. int y = __builtin_clz(x);
  10074. }
  10075. {
  10076. unsigned long x = 0;
  10077. int y = __builtin_clzl(x);
  10078. }
  10079. ;
  10080. return 0;
  10081. }
  10082. _ACEOF
  10083. if ac_fn_c_try_link "$LINENO"; then :
  10084. je_cv_builtin_clz=yes
  10085. else
  10086. je_cv_builtin_clz=no
  10087. fi
  10088. rm -f core conftest.err conftest.$ac_objext \
  10089. conftest$ac_exeext conftest.$ac_ext
  10090. fi
  10091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5
  10092. $as_echo "$je_cv_builtin_clz" >&6; }
  10093. if test "x${je_cv_builtin_clz}" = "xyes" ; then
  10094. $as_echo "#define JEMALLOC_HAVE_BUILTIN_CLZ " >>confdefs.h
  10095. fi
  10096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin os_unfair_lock_*() is compilable" >&5
  10097. $as_echo_n "checking whether Darwin os_unfair_lock_*() is compilable... " >&6; }
  10098. if ${je_cv_os_unfair_lock+:} false; then :
  10099. $as_echo_n "(cached) " >&6
  10100. else
  10101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10102. /* end confdefs.h. */
  10103. #include <os/lock.h>
  10104. #include <AvailabilityMacros.h>
  10105. int
  10106. main ()
  10107. {
  10108. #if MAC_OS_X_VERSION_MIN_REQUIRED < 101200
  10109. #error "os_unfair_lock is not supported"
  10110. #else
  10111. os_unfair_lock lock = OS_UNFAIR_LOCK_INIT;
  10112. os_unfair_lock_lock(&lock);
  10113. os_unfair_lock_unlock(&lock);
  10114. #endif
  10115. ;
  10116. return 0;
  10117. }
  10118. _ACEOF
  10119. if ac_fn_c_try_link "$LINENO"; then :
  10120. je_cv_os_unfair_lock=yes
  10121. else
  10122. je_cv_os_unfair_lock=no
  10123. fi
  10124. rm -f core conftest.err conftest.$ac_objext \
  10125. conftest$ac_exeext conftest.$ac_ext
  10126. fi
  10127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_os_unfair_lock" >&5
  10128. $as_echo "$je_cv_os_unfair_lock" >&6; }
  10129. if test "x${je_cv_os_unfair_lock}" = "xyes" ; then
  10130. $as_echo "#define JEMALLOC_OS_UNFAIR_LOCK " >>confdefs.h
  10131. fi
  10132. # Check whether --enable-zone-allocator was given.
  10133. if test "${enable_zone_allocator+set}" = set; then :
  10134. enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then
  10135. enable_zone_allocator="0"
  10136. else
  10137. enable_zone_allocator="1"
  10138. fi
  10139. else
  10140. if test "x${abi}" = "xmacho"; then
  10141. enable_zone_allocator="1"
  10142. fi
  10143. fi
  10144. if test "x${enable_zone_allocator}" = "x1" ; then
  10145. if test "x${abi}" != "xmacho"; then
  10146. as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5
  10147. fi
  10148. $as_echo "#define JEMALLOC_ZONE " >>confdefs.h
  10149. fi
  10150. # Check whether --enable-initial-exec-tls was given.
  10151. if test "${enable_initial_exec_tls+set}" = set; then :
  10152. enableval=$enable_initial_exec_tls; if test "x$enable_initial_exec_tls" = "xno" ; then
  10153. enable_initial_exec_tls="0"
  10154. else
  10155. enable_initial_exec_tls="1"
  10156. fi
  10157. else
  10158. enable_initial_exec_tls="1"
  10159. fi
  10160. if test "x${je_cv_tls_model}" = "xyes" -a \
  10161. "x${enable_initial_exec_tls}" = "x1" ; then
  10162. $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h
  10163. else
  10164. $as_echo "#define JEMALLOC_TLS_MODEL " >>confdefs.h
  10165. fi
  10166. if test "x${have_pthread}" = "x1" -a "x${je_cv_os_unfair_lock}" != "xyes" ; then
  10167. $as_echo "#define JEMALLOC_BACKGROUND_THREAD 1" >>confdefs.h
  10168. fi
  10169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5
  10170. $as_echo_n "checking whether glibc malloc hook is compilable... " >&6; }
  10171. if ${je_cv_glibc_malloc_hook+:} false; then :
  10172. $as_echo_n "(cached) " >&6
  10173. else
  10174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10175. /* end confdefs.h. */
  10176. #include <stddef.h>
  10177. extern void (* __free_hook)(void *ptr);
  10178. extern void *(* __malloc_hook)(size_t size);
  10179. extern void *(* __realloc_hook)(void *ptr, size_t size);
  10180. int
  10181. main ()
  10182. {
  10183. void *ptr = 0L;
  10184. if (__malloc_hook) ptr = __malloc_hook(1);
  10185. if (__realloc_hook) ptr = __realloc_hook(ptr, 2);
  10186. if (__free_hook && ptr) __free_hook(ptr);
  10187. ;
  10188. return 0;
  10189. }
  10190. _ACEOF
  10191. if ac_fn_c_try_link "$LINENO"; then :
  10192. je_cv_glibc_malloc_hook=yes
  10193. else
  10194. je_cv_glibc_malloc_hook=no
  10195. fi
  10196. rm -f core conftest.err conftest.$ac_objext \
  10197. conftest$ac_exeext conftest.$ac_ext
  10198. fi
  10199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5
  10200. $as_echo "$je_cv_glibc_malloc_hook" >&6; }
  10201. if test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then
  10202. if test "x${JEMALLOC_PREFIX}" = "x" ; then
  10203. $as_echo "#define JEMALLOC_GLIBC_MALLOC_HOOK " >>confdefs.h
  10204. wrap_syms="${wrap_syms} __free_hook __malloc_hook __realloc_hook"
  10205. fi
  10206. fi
  10207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5
  10208. $as_echo_n "checking whether glibc memalign hook is compilable... " >&6; }
  10209. if ${je_cv_glibc_memalign_hook+:} false; then :
  10210. $as_echo_n "(cached) " >&6
  10211. else
  10212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10213. /* end confdefs.h. */
  10214. #include <stddef.h>
  10215. extern void *(* __memalign_hook)(size_t alignment, size_t size);
  10216. int
  10217. main ()
  10218. {
  10219. void *ptr = 0L;
  10220. if (__memalign_hook) ptr = __memalign_hook(16, 7);
  10221. ;
  10222. return 0;
  10223. }
  10224. _ACEOF
  10225. if ac_fn_c_try_link "$LINENO"; then :
  10226. je_cv_glibc_memalign_hook=yes
  10227. else
  10228. je_cv_glibc_memalign_hook=no
  10229. fi
  10230. rm -f core conftest.err conftest.$ac_objext \
  10231. conftest$ac_exeext conftest.$ac_ext
  10232. fi
  10233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_memalign_hook" >&5
  10234. $as_echo "$je_cv_glibc_memalign_hook" >&6; }
  10235. if test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then
  10236. if test "x${JEMALLOC_PREFIX}" = "x" ; then
  10237. $as_echo "#define JEMALLOC_GLIBC_MEMALIGN_HOOK " >>confdefs.h
  10238. wrap_syms="${wrap_syms} __memalign_hook"
  10239. fi
  10240. fi
  10241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5
  10242. $as_echo_n "checking whether pthreads adaptive mutexes is compilable... " >&6; }
  10243. if ${je_cv_pthread_mutex_adaptive_np+:} false; then :
  10244. $as_echo_n "(cached) " >&6
  10245. else
  10246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10247. /* end confdefs.h. */
  10248. #include <pthread.h>
  10249. int
  10250. main ()
  10251. {
  10252. pthread_mutexattr_t attr;
  10253. pthread_mutexattr_init(&attr);
  10254. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
  10255. pthread_mutexattr_destroy(&attr);
  10256. ;
  10257. return 0;
  10258. }
  10259. _ACEOF
  10260. if ac_fn_c_try_link "$LINENO"; then :
  10261. je_cv_pthread_mutex_adaptive_np=yes
  10262. else
  10263. je_cv_pthread_mutex_adaptive_np=no
  10264. fi
  10265. rm -f core conftest.err conftest.$ac_objext \
  10266. conftest$ac_exeext conftest.$ac_ext
  10267. fi
  10268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5
  10269. $as_echo "$je_cv_pthread_mutex_adaptive_np" >&6; }
  10270. if test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then
  10271. $as_echo "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP " >>confdefs.h
  10272. fi
  10273. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  10274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -D_GNU_SOURCE" >&5
  10275. $as_echo_n "checking whether compiler supports -D_GNU_SOURCE... " >&6; }
  10276. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  10277. T_APPEND_V=-D_GNU_SOURCE
  10278. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  10279. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  10280. else
  10281. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  10282. fi
  10283. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  10284. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  10285. else
  10286. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  10287. fi
  10288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10289. /* end confdefs.h. */
  10290. int
  10291. main ()
  10292. {
  10293. return 0;
  10294. ;
  10295. return 0;
  10296. }
  10297. _ACEOF
  10298. if ac_fn_c_try_compile "$LINENO"; then :
  10299. je_cv_cflags_added=-D_GNU_SOURCE
  10300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10301. $as_echo "yes" >&6; }
  10302. else
  10303. je_cv_cflags_added=
  10304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10305. $as_echo "no" >&6; }
  10306. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  10307. fi
  10308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10309. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  10310. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  10311. else
  10312. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  10313. fi
  10314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  10315. $as_echo_n "checking whether compiler supports -Werror... " >&6; }
  10316. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  10317. T_APPEND_V=-Werror
  10318. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  10319. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  10320. else
  10321. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  10322. fi
  10323. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  10324. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  10325. else
  10326. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  10327. fi
  10328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10329. /* end confdefs.h. */
  10330. int
  10331. main ()
  10332. {
  10333. return 0;
  10334. ;
  10335. return 0;
  10336. }
  10337. _ACEOF
  10338. if ac_fn_c_try_compile "$LINENO"; then :
  10339. je_cv_cflags_added=-Werror
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10341. $as_echo "yes" >&6; }
  10342. else
  10343. je_cv_cflags_added=
  10344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10345. $as_echo "no" >&6; }
  10346. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  10347. fi
  10348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10349. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  10350. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  10351. else
  10352. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  10353. fi
  10354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  10355. $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
  10356. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  10357. T_APPEND_V=-herror_on_warning
  10358. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  10359. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  10360. else
  10361. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  10362. fi
  10363. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  10364. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  10365. else
  10366. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  10367. fi
  10368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10369. /* end confdefs.h. */
  10370. int
  10371. main ()
  10372. {
  10373. return 0;
  10374. ;
  10375. return 0;
  10376. }
  10377. _ACEOF
  10378. if ac_fn_c_try_compile "$LINENO"; then :
  10379. je_cv_cflags_added=-herror_on_warning
  10380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10381. $as_echo "yes" >&6; }
  10382. else
  10383. je_cv_cflags_added=
  10384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10385. $as_echo "no" >&6; }
  10386. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  10387. fi
  10388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10389. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  10390. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  10391. else
  10392. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  10393. fi
  10394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char with gnu source is compilable" >&5
  10395. $as_echo_n "checking whether strerror_r returns char with gnu source is compilable... " >&6; }
  10396. if ${je_cv_strerror_r_returns_char_with_gnu_source+:} false; then :
  10397. $as_echo_n "(cached) " >&6
  10398. else
  10399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10400. /* end confdefs.h. */
  10401. #include <errno.h>
  10402. #include <stdio.h>
  10403. #include <stdlib.h>
  10404. #include <string.h>
  10405. int
  10406. main ()
  10407. {
  10408. char *buffer = (char *) malloc(100);
  10409. char *error = strerror_r(EINVAL, buffer, 100);
  10410. printf("%s\n", error);
  10411. ;
  10412. return 0;
  10413. }
  10414. _ACEOF
  10415. if ac_fn_c_try_link "$LINENO"; then :
  10416. je_cv_strerror_r_returns_char_with_gnu_source=yes
  10417. else
  10418. je_cv_strerror_r_returns_char_with_gnu_source=no
  10419. fi
  10420. rm -f core conftest.err conftest.$ac_objext \
  10421. conftest$ac_exeext conftest.$ac_ext
  10422. fi
  10423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_strerror_r_returns_char_with_gnu_source" >&5
  10424. $as_echo "$je_cv_strerror_r_returns_char_with_gnu_source" >&6; }
  10425. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  10426. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  10427. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  10428. else
  10429. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  10430. fi
  10431. if test "x${je_cv_strerror_r_returns_char_with_gnu_source}" = "xyes" ; then
  10432. $as_echo "#define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE " >>confdefs.h
  10433. fi
  10434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  10435. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  10436. if ${ac_cv_header_stdbool_h+:} false; then :
  10437. $as_echo_n "(cached) " >&6
  10438. else
  10439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10440. /* end confdefs.h. */
  10441. #include <stdbool.h>
  10442. #ifndef bool
  10443. "error: bool is not defined"
  10444. #endif
  10445. #ifndef false
  10446. "error: false is not defined"
  10447. #endif
  10448. #if false
  10449. "error: false is not 0"
  10450. #endif
  10451. #ifndef true
  10452. "error: true is not defined"
  10453. #endif
  10454. #if true != 1
  10455. "error: true is not 1"
  10456. #endif
  10457. #ifndef __bool_true_false_are_defined
  10458. "error: __bool_true_false_are_defined is not defined"
  10459. #endif
  10460. struct s { _Bool s: 1; _Bool t; } s;
  10461. char a[true == 1 ? 1 : -1];
  10462. char b[false == 0 ? 1 : -1];
  10463. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  10464. char d[(bool) 0.5 == true ? 1 : -1];
  10465. /* See body of main program for 'e'. */
  10466. char f[(_Bool) 0.0 == false ? 1 : -1];
  10467. char g[true];
  10468. char h[sizeof (_Bool)];
  10469. char i[sizeof s.t];
  10470. enum { j = false, k = true, l = false * true, m = true * 256 };
  10471. /* The following fails for
  10472. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  10473. _Bool n[m];
  10474. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  10475. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  10476. /* Catch a bug in an HP-UX C compiler. See
  10477. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  10478. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  10479. */
  10480. _Bool q = true;
  10481. _Bool *pq = &q;
  10482. int
  10483. main ()
  10484. {
  10485. bool e = &s;
  10486. *pq |= q;
  10487. *pq |= ! q;
  10488. /* Refer to every declared value, to avoid compiler optimizations. */
  10489. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  10490. + !m + !n + !o + !p + !q + !pq);
  10491. ;
  10492. return 0;
  10493. }
  10494. _ACEOF
  10495. if ac_fn_c_try_compile "$LINENO"; then :
  10496. ac_cv_header_stdbool_h=yes
  10497. else
  10498. ac_cv_header_stdbool_h=no
  10499. fi
  10500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10501. fi
  10502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  10503. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  10504. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  10505. if test "x$ac_cv_type__Bool" = xyes; then :
  10506. cat >>confdefs.h <<_ACEOF
  10507. #define HAVE__BOOL 1
  10508. _ACEOF
  10509. fi
  10510. if test $ac_cv_header_stdbool_h = yes; then
  10511. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  10512. fi
  10513. ac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt"
  10514. ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols.awk"
  10515. ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols_jet.awk"
  10516. ac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h"
  10517. ac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h"
  10518. ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h"
  10519. ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h"
  10520. ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h"
  10521. ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h"
  10522. ac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h"
  10523. ac_config_headers="$ac_config_headers $cfghdrs_tup"
  10524. ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof"
  10525. cat >confcache <<\_ACEOF
  10526. # This file is a shell script that caches the results of configure
  10527. # tests run on this system so they can be shared between configure
  10528. # scripts and configure runs, see configure's option --config-cache.
  10529. # It is not useful on other systems. If it contains results you don't
  10530. # want to keep, you may remove or edit it.
  10531. #
  10532. # config.status only pays attention to the cache file if you give it
  10533. # the --recheck option to rerun configure.
  10534. #
  10535. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10536. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10537. # following values.
  10538. _ACEOF
  10539. # The following way of writing the cache mishandles newlines in values,
  10540. # but we know of no workaround that is simple, portable, and efficient.
  10541. # So, we kill variables containing newlines.
  10542. # Ultrix sh set writes to stderr and can't be redirected directly,
  10543. # and sets the high bit in the cache file unless we assign to the vars.
  10544. (
  10545. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10546. eval ac_val=\$$ac_var
  10547. case $ac_val in #(
  10548. *${as_nl}*)
  10549. case $ac_var in #(
  10550. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10551. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10552. esac
  10553. case $ac_var in #(
  10554. _ | IFS | as_nl) ;; #(
  10555. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10556. *) { eval $ac_var=; unset $ac_var;} ;;
  10557. esac ;;
  10558. esac
  10559. done
  10560. (set) 2>&1 |
  10561. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10562. *${as_nl}ac_space=\ *)
  10563. # `set' does not quote correctly, so add quotes: double-quote
  10564. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10565. sed -n \
  10566. "s/'/'\\\\''/g;
  10567. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10568. ;; #(
  10569. *)
  10570. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10571. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10572. ;;
  10573. esac |
  10574. sort
  10575. ) |
  10576. sed '
  10577. /^ac_cv_env_/b end
  10578. t clear
  10579. :clear
  10580. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10581. t end
  10582. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10583. :end' >>confcache
  10584. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10585. if test -w "$cache_file"; then
  10586. if test "x$cache_file" != "x/dev/null"; then
  10587. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10588. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10589. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10590. cat confcache >"$cache_file"
  10591. else
  10592. case $cache_file in #(
  10593. */* | ?:*)
  10594. mv -f confcache "$cache_file"$$ &&
  10595. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10596. *)
  10597. mv -f confcache "$cache_file" ;;
  10598. esac
  10599. fi
  10600. fi
  10601. else
  10602. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10603. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10604. fi
  10605. fi
  10606. rm -f confcache
  10607. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10608. # Let make expand exec_prefix.
  10609. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10610. DEFS=-DHAVE_CONFIG_H
  10611. ac_libobjs=
  10612. ac_ltlibobjs=
  10613. U=
  10614. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10615. # 1. Remove the extension, and $U if already installed.
  10616. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10617. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10618. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10619. # will be set to the directory where LIBOBJS objects are built.
  10620. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10621. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10622. done
  10623. LIBOBJS=$ac_libobjs
  10624. LTLIBOBJS=$ac_ltlibobjs
  10625. : "${CONFIG_STATUS=./config.status}"
  10626. ac_write_fail=0
  10627. ac_clean_files_save=$ac_clean_files
  10628. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10629. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10630. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10631. as_write_fail=0
  10632. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10633. #! $SHELL
  10634. # Generated by $as_me.
  10635. # Run this file to recreate the current configuration.
  10636. # Compiler output produced by configure, useful for debugging
  10637. # configure, is in config.log if it exists.
  10638. debug=false
  10639. ac_cs_recheck=false
  10640. ac_cs_silent=false
  10641. SHELL=\${CONFIG_SHELL-$SHELL}
  10642. export SHELL
  10643. _ASEOF
  10644. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10645. ## -------------------- ##
  10646. ## M4sh Initialization. ##
  10647. ## -------------------- ##
  10648. # Be more Bourne compatible
  10649. DUALCASE=1; export DUALCASE # for MKS sh
  10650. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10651. emulate sh
  10652. NULLCMD=:
  10653. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10654. # is contrary to our usage. Disable this feature.
  10655. alias -g '${1+"$@"}'='"$@"'
  10656. setopt NO_GLOB_SUBST
  10657. else
  10658. case `(set -o) 2>/dev/null` in #(
  10659. *posix*) :
  10660. set -o posix ;; #(
  10661. *) :
  10662. ;;
  10663. esac
  10664. fi
  10665. as_nl='
  10666. '
  10667. export as_nl
  10668. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10669. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10670. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10671. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10672. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10673. # but without wasting forks for bash or zsh.
  10674. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10675. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10676. as_echo='print -r --'
  10677. as_echo_n='print -rn --'
  10678. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10679. as_echo='printf %s\n'
  10680. as_echo_n='printf %s'
  10681. else
  10682. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10683. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10684. as_echo_n='/usr/ucb/echo -n'
  10685. else
  10686. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10687. as_echo_n_body='eval
  10688. arg=$1;
  10689. case $arg in #(
  10690. *"$as_nl"*)
  10691. expr "X$arg" : "X\\(.*\\)$as_nl";
  10692. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10693. esac;
  10694. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10695. '
  10696. export as_echo_n_body
  10697. as_echo_n='sh -c $as_echo_n_body as_echo'
  10698. fi
  10699. export as_echo_body
  10700. as_echo='sh -c $as_echo_body as_echo'
  10701. fi
  10702. # The user is always right.
  10703. if test "${PATH_SEPARATOR+set}" != set; then
  10704. PATH_SEPARATOR=:
  10705. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10706. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10707. PATH_SEPARATOR=';'
  10708. }
  10709. fi
  10710. # IFS
  10711. # We need space, tab and new line, in precisely that order. Quoting is
  10712. # there to prevent editors from complaining about space-tab.
  10713. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10714. # splitting by setting IFS to empty value.)
  10715. IFS=" "" $as_nl"
  10716. # Find who we are. Look in the path if we contain no directory separator.
  10717. as_myself=
  10718. case $0 in #((
  10719. *[\\/]* ) as_myself=$0 ;;
  10720. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10721. for as_dir in $PATH
  10722. do
  10723. IFS=$as_save_IFS
  10724. test -z "$as_dir" && as_dir=.
  10725. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10726. done
  10727. IFS=$as_save_IFS
  10728. ;;
  10729. esac
  10730. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10731. # in which case we are not to be found in the path.
  10732. if test "x$as_myself" = x; then
  10733. as_myself=$0
  10734. fi
  10735. if test ! -f "$as_myself"; then
  10736. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10737. exit 1
  10738. fi
  10739. # Unset variables that we do not need and which cause bugs (e.g. in
  10740. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10741. # suppresses any "Segmentation fault" message there. '((' could
  10742. # trigger a bug in pdksh 5.2.14.
  10743. for as_var in BASH_ENV ENV MAIL MAILPATH
  10744. do eval test x\${$as_var+set} = xset \
  10745. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10746. done
  10747. PS1='$ '
  10748. PS2='> '
  10749. PS4='+ '
  10750. # NLS nuisances.
  10751. LC_ALL=C
  10752. export LC_ALL
  10753. LANGUAGE=C
  10754. export LANGUAGE
  10755. # CDPATH.
  10756. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10757. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10758. # ----------------------------------------
  10759. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10760. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10761. # script with STATUS, using 1 if that was 0.
  10762. as_fn_error ()
  10763. {
  10764. as_status=$1; test $as_status -eq 0 && as_status=1
  10765. if test "$4"; then
  10766. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10767. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10768. fi
  10769. $as_echo "$as_me: error: $2" >&2
  10770. as_fn_exit $as_status
  10771. } # as_fn_error
  10772. # as_fn_set_status STATUS
  10773. # -----------------------
  10774. # Set $? to STATUS, without forking.
  10775. as_fn_set_status ()
  10776. {
  10777. return $1
  10778. } # as_fn_set_status
  10779. # as_fn_exit STATUS
  10780. # -----------------
  10781. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10782. as_fn_exit ()
  10783. {
  10784. set +e
  10785. as_fn_set_status $1
  10786. exit $1
  10787. } # as_fn_exit
  10788. # as_fn_unset VAR
  10789. # ---------------
  10790. # Portably unset VAR.
  10791. as_fn_unset ()
  10792. {
  10793. { eval $1=; unset $1;}
  10794. }
  10795. as_unset=as_fn_unset
  10796. # as_fn_append VAR VALUE
  10797. # ----------------------
  10798. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10799. # advantage of any shell optimizations that allow amortized linear growth over
  10800. # repeated appends, instead of the typical quadratic growth present in naive
  10801. # implementations.
  10802. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10803. eval 'as_fn_append ()
  10804. {
  10805. eval $1+=\$2
  10806. }'
  10807. else
  10808. as_fn_append ()
  10809. {
  10810. eval $1=\$$1\$2
  10811. }
  10812. fi # as_fn_append
  10813. # as_fn_arith ARG...
  10814. # ------------------
  10815. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10816. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10817. # must be portable across $(()) and expr.
  10818. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10819. eval 'as_fn_arith ()
  10820. {
  10821. as_val=$(( $* ))
  10822. }'
  10823. else
  10824. as_fn_arith ()
  10825. {
  10826. as_val=`expr "$@" || test $? -eq 1`
  10827. }
  10828. fi # as_fn_arith
  10829. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10830. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10831. as_expr=expr
  10832. else
  10833. as_expr=false
  10834. fi
  10835. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10836. as_basename=basename
  10837. else
  10838. as_basename=false
  10839. fi
  10840. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10841. as_dirname=dirname
  10842. else
  10843. as_dirname=false
  10844. fi
  10845. as_me=`$as_basename -- "$0" ||
  10846. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10847. X"$0" : 'X\(//\)$' \| \
  10848. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10849. $as_echo X/"$0" |
  10850. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10851. s//\1/
  10852. q
  10853. }
  10854. /^X\/\(\/\/\)$/{
  10855. s//\1/
  10856. q
  10857. }
  10858. /^X\/\(\/\).*/{
  10859. s//\1/
  10860. q
  10861. }
  10862. s/.*/./; q'`
  10863. # Avoid depending upon Character Ranges.
  10864. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10865. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10866. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10867. as_cr_digits='0123456789'
  10868. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10869. ECHO_C= ECHO_N= ECHO_T=
  10870. case `echo -n x` in #(((((
  10871. -n*)
  10872. case `echo 'xy\c'` in
  10873. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10874. xy) ECHO_C='\c';;
  10875. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10876. ECHO_T=' ';;
  10877. esac;;
  10878. *)
  10879. ECHO_N='-n';;
  10880. esac
  10881. rm -f conf$$ conf$$.exe conf$$.file
  10882. if test -d conf$$.dir; then
  10883. rm -f conf$$.dir/conf$$.file
  10884. else
  10885. rm -f conf$$.dir
  10886. mkdir conf$$.dir 2>/dev/null
  10887. fi
  10888. if (echo >conf$$.file) 2>/dev/null; then
  10889. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10890. as_ln_s='ln -s'
  10891. # ... but there are two gotchas:
  10892. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10893. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10894. # In both cases, we have to default to `cp -pR'.
  10895. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10896. as_ln_s='cp -pR'
  10897. elif ln conf$$.file conf$$ 2>/dev/null; then
  10898. as_ln_s=ln
  10899. else
  10900. as_ln_s='cp -pR'
  10901. fi
  10902. else
  10903. as_ln_s='cp -pR'
  10904. fi
  10905. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10906. rmdir conf$$.dir 2>/dev/null
  10907. # as_fn_mkdir_p
  10908. # -------------
  10909. # Create "$as_dir" as a directory, including parents if necessary.
  10910. as_fn_mkdir_p ()
  10911. {
  10912. case $as_dir in #(
  10913. -*) as_dir=./$as_dir;;
  10914. esac
  10915. test -d "$as_dir" || eval $as_mkdir_p || {
  10916. as_dirs=
  10917. while :; do
  10918. case $as_dir in #(
  10919. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10920. *) as_qdir=$as_dir;;
  10921. esac
  10922. as_dirs="'$as_qdir' $as_dirs"
  10923. as_dir=`$as_dirname -- "$as_dir" ||
  10924. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10925. X"$as_dir" : 'X\(//\)[^/]' \| \
  10926. X"$as_dir" : 'X\(//\)$' \| \
  10927. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10928. $as_echo X"$as_dir" |
  10929. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10930. s//\1/
  10931. q
  10932. }
  10933. /^X\(\/\/\)[^/].*/{
  10934. s//\1/
  10935. q
  10936. }
  10937. /^X\(\/\/\)$/{
  10938. s//\1/
  10939. q
  10940. }
  10941. /^X\(\/\).*/{
  10942. s//\1/
  10943. q
  10944. }
  10945. s/.*/./; q'`
  10946. test -d "$as_dir" && break
  10947. done
  10948. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10949. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10950. } # as_fn_mkdir_p
  10951. if mkdir -p . 2>/dev/null; then
  10952. as_mkdir_p='mkdir -p "$as_dir"'
  10953. else
  10954. test -d ./-p && rmdir ./-p
  10955. as_mkdir_p=false
  10956. fi
  10957. # as_fn_executable_p FILE
  10958. # -----------------------
  10959. # Test if FILE is an executable regular file.
  10960. as_fn_executable_p ()
  10961. {
  10962. test -f "$1" && test -x "$1"
  10963. } # as_fn_executable_p
  10964. as_test_x='test -x'
  10965. as_executable_p=as_fn_executable_p
  10966. # Sed expression to map a string onto a valid CPP name.
  10967. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10968. # Sed expression to map a string onto a valid variable name.
  10969. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10970. exec 6>&1
  10971. ## ----------------------------------- ##
  10972. ## Main body of $CONFIG_STATUS script. ##
  10973. ## ----------------------------------- ##
  10974. _ASEOF
  10975. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10976. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10977. # Save the log message, to keep $0 and so on meaningful, and to
  10978. # report actual input values of CONFIG_FILES etc. instead of their
  10979. # values after options handling.
  10980. ac_log="
  10981. This file was extended by $as_me, which was
  10982. generated by GNU Autoconf 2.69. Invocation command line was
  10983. CONFIG_FILES = $CONFIG_FILES
  10984. CONFIG_HEADERS = $CONFIG_HEADERS
  10985. CONFIG_LINKS = $CONFIG_LINKS
  10986. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10987. $ $0 $@
  10988. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10989. "
  10990. _ACEOF
  10991. case $ac_config_files in *"
  10992. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10993. esac
  10994. case $ac_config_headers in *"
  10995. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10996. esac
  10997. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10998. # Files that config.status was made for.
  10999. config_files="$ac_config_files"
  11000. config_headers="$ac_config_headers"
  11001. config_commands="$ac_config_commands"
  11002. _ACEOF
  11003. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11004. ac_cs_usage="\
  11005. \`$as_me' instantiates files and other configuration actions
  11006. from templates according to the current configuration. Unless the files
  11007. and actions are specified as TAGs, all are instantiated by default.
  11008. Usage: $0 [OPTION]... [TAG]...
  11009. -h, --help print this help, then exit
  11010. -V, --version print version number and configuration settings, then exit
  11011. --config print configuration, then exit
  11012. -q, --quiet, --silent
  11013. do not print progress messages
  11014. -d, --debug don't remove temporary files
  11015. --recheck update $as_me by reconfiguring in the same conditions
  11016. --file=FILE[:TEMPLATE]
  11017. instantiate the configuration file FILE
  11018. --header=FILE[:TEMPLATE]
  11019. instantiate the configuration header FILE
  11020. Configuration files:
  11021. $config_files
  11022. Configuration headers:
  11023. $config_headers
  11024. Configuration commands:
  11025. $config_commands
  11026. Report bugs to the package provider."
  11027. _ACEOF
  11028. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11029. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11030. ac_cs_version="\\
  11031. config.status
  11032. configured by $0, generated by GNU Autoconf 2.69,
  11033. with options \\"\$ac_cs_config\\"
  11034. Copyright (C) 2012 Free Software Foundation, Inc.
  11035. This config.status script is free software; the Free Software Foundation
  11036. gives unlimited permission to copy, distribute and modify it."
  11037. ac_pwd='$ac_pwd'
  11038. srcdir='$srcdir'
  11039. INSTALL='$INSTALL'
  11040. AWK='$AWK'
  11041. test -n "\$AWK" || AWK=awk
  11042. _ACEOF
  11043. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11044. # The default lists apply if the user does not specify any file.
  11045. ac_need_defaults=:
  11046. while test $# != 0
  11047. do
  11048. case $1 in
  11049. --*=?*)
  11050. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11051. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11052. ac_shift=:
  11053. ;;
  11054. --*=)
  11055. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11056. ac_optarg=
  11057. ac_shift=:
  11058. ;;
  11059. *)
  11060. ac_option=$1
  11061. ac_optarg=$2
  11062. ac_shift=shift
  11063. ;;
  11064. esac
  11065. case $ac_option in
  11066. # Handling of the options.
  11067. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11068. ac_cs_recheck=: ;;
  11069. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11070. $as_echo "$ac_cs_version"; exit ;;
  11071. --config | --confi | --conf | --con | --co | --c )
  11072. $as_echo "$ac_cs_config"; exit ;;
  11073. --debug | --debu | --deb | --de | --d | -d )
  11074. debug=: ;;
  11075. --file | --fil | --fi | --f )
  11076. $ac_shift
  11077. case $ac_optarg in
  11078. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11079. '') as_fn_error $? "missing file argument" ;;
  11080. esac
  11081. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11082. ac_need_defaults=false;;
  11083. --header | --heade | --head | --hea )
  11084. $ac_shift
  11085. case $ac_optarg in
  11086. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11087. esac
  11088. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11089. ac_need_defaults=false;;
  11090. --he | --h)
  11091. # Conflict between --help and --header
  11092. as_fn_error $? "ambiguous option: \`$1'
  11093. Try \`$0 --help' for more information.";;
  11094. --help | --hel | -h )
  11095. $as_echo "$ac_cs_usage"; exit ;;
  11096. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11097. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11098. ac_cs_silent=: ;;
  11099. # This is an error.
  11100. -*) as_fn_error $? "unrecognized option: \`$1'
  11101. Try \`$0 --help' for more information." ;;
  11102. *) as_fn_append ac_config_targets " $1"
  11103. ac_need_defaults=false ;;
  11104. esac
  11105. shift
  11106. done
  11107. ac_configure_extra_args=
  11108. if $ac_cs_silent; then
  11109. exec 6>/dev/null
  11110. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11111. fi
  11112. _ACEOF
  11113. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11114. if \$ac_cs_recheck; then
  11115. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11116. shift
  11117. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11118. CONFIG_SHELL='$SHELL'
  11119. export CONFIG_SHELL
  11120. exec "\$@"
  11121. fi
  11122. _ACEOF
  11123. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11124. exec 5>>config.log
  11125. {
  11126. echo
  11127. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11128. ## Running $as_me. ##
  11129. _ASBOX
  11130. $as_echo "$ac_log"
  11131. } >&5
  11132. _ACEOF
  11133. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11134. #
  11135. # INIT-COMMANDS
  11136. #
  11137. srcdir="${srcdir}"
  11138. objroot="${objroot}"
  11139. mangling_map="${mangling_map}"
  11140. public_syms="${public_syms}"
  11141. JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
  11142. srcdir="${srcdir}"
  11143. objroot="${objroot}"
  11144. public_syms="${public_syms}"
  11145. wrap_syms="${wrap_syms}"
  11146. SYM_PREFIX="${SYM_PREFIX}"
  11147. JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
  11148. srcdir="${srcdir}"
  11149. objroot="${objroot}"
  11150. public_syms="${public_syms}"
  11151. wrap_syms="${wrap_syms}"
  11152. SYM_PREFIX="${SYM_PREFIX}"
  11153. srcdir="${srcdir}"
  11154. objroot="${objroot}"
  11155. srcdir="${srcdir}"
  11156. objroot="${objroot}"
  11157. srcdir="${srcdir}"
  11158. objroot="${objroot}"
  11159. srcdir="${srcdir}"
  11160. objroot="${objroot}"
  11161. srcdir="${srcdir}"
  11162. objroot="${objroot}"
  11163. srcdir="${srcdir}"
  11164. objroot="${objroot}"
  11165. srcdir="${srcdir}"
  11166. objroot="${objroot}"
  11167. install_suffix="${install_suffix}"
  11168. _ACEOF
  11169. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11170. # Handling of arguments.
  11171. for ac_config_target in $ac_config_targets
  11172. do
  11173. case $ac_config_target in
  11174. "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;;
  11175. "include/jemalloc/internal/private_symbols.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols.awk" ;;
  11176. "include/jemalloc/internal/private_symbols_jet.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols_jet.awk" ;;
  11177. "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;;
  11178. "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;;
  11179. "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;;
  11180. "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;;
  11181. "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;;
  11182. "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;;
  11183. "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;;
  11184. "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;;
  11185. "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;;
  11186. "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;;
  11187. "bin/jemalloc-config") CONFIG_FILES="$CONFIG_FILES bin/jemalloc-config" ;;
  11188. "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;;
  11189. "bin/jeprof") CONFIG_FILES="$CONFIG_FILES bin/jeprof" ;;
  11190. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11191. esac
  11192. done
  11193. # If the user did not use the arguments to specify the items to instantiate,
  11194. # then the envvar interface is used. Set only those that are not.
  11195. # We use the long form for the default assignment because of an extremely
  11196. # bizarre bug on SunOS 4.1.3.
  11197. if $ac_need_defaults; then
  11198. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11199. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11200. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11201. fi
  11202. # Have a temporary directory for convenience. Make it in the build tree
  11203. # simply because there is no reason against having it here, and in addition,
  11204. # creating and moving files from /tmp can sometimes cause problems.
  11205. # Hook for its removal unless debugging.
  11206. # Note that there is a small window in which the directory will not be cleaned:
  11207. # after its creation but before its name has been assigned to `$tmp'.
  11208. $debug ||
  11209. {
  11210. tmp= ac_tmp=
  11211. trap 'exit_status=$?
  11212. : "${ac_tmp:=$tmp}"
  11213. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11214. ' 0
  11215. trap 'as_fn_exit 1' 1 2 13 15
  11216. }
  11217. # Create a (secure) tmp directory for tmp files.
  11218. {
  11219. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11220. test -d "$tmp"
  11221. } ||
  11222. {
  11223. tmp=./conf$$-$RANDOM
  11224. (umask 077 && mkdir "$tmp")
  11225. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11226. ac_tmp=$tmp
  11227. # Set up the scripts for CONFIG_FILES section.
  11228. # No need to generate them if there are no CONFIG_FILES.
  11229. # This happens for instance with `./config.status config.h'.
  11230. if test -n "$CONFIG_FILES"; then
  11231. ac_cr=`echo X | tr X '\015'`
  11232. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11233. # But we know of no other shell where ac_cr would be empty at this
  11234. # point, so we can use a bashism as a fallback.
  11235. if test "x$ac_cr" = x; then
  11236. eval ac_cr=\$\'\\r\'
  11237. fi
  11238. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11239. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11240. ac_cs_awk_cr='\\r'
  11241. else
  11242. ac_cs_awk_cr=$ac_cr
  11243. fi
  11244. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11245. _ACEOF
  11246. {
  11247. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11248. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11249. echo "_ACEOF"
  11250. } >conf$$subs.sh ||
  11251. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11252. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11253. ac_delim='%!_!# '
  11254. for ac_last_try in false false false false false :; do
  11255. . ./conf$$subs.sh ||
  11256. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11257. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11258. if test $ac_delim_n = $ac_delim_num; then
  11259. break
  11260. elif $ac_last_try; then
  11261. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11262. else
  11263. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11264. fi
  11265. done
  11266. rm -f conf$$subs.sh
  11267. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11268. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11269. _ACEOF
  11270. sed -n '
  11271. h
  11272. s/^/S["/; s/!.*/"]=/
  11273. p
  11274. g
  11275. s/^[^!]*!//
  11276. :repl
  11277. t repl
  11278. s/'"$ac_delim"'$//
  11279. t delim
  11280. :nl
  11281. h
  11282. s/\(.\{148\}\)..*/\1/
  11283. t more1
  11284. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11285. p
  11286. n
  11287. b repl
  11288. :more1
  11289. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11290. p
  11291. g
  11292. s/.\{148\}//
  11293. t nl
  11294. :delim
  11295. h
  11296. s/\(.\{148\}\)..*/\1/
  11297. t more2
  11298. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11299. p
  11300. b
  11301. :more2
  11302. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11303. p
  11304. g
  11305. s/.\{148\}//
  11306. t delim
  11307. ' <conf$$subs.awk | sed '
  11308. /^[^""]/{
  11309. N
  11310. s/\n//
  11311. }
  11312. ' >>$CONFIG_STATUS || ac_write_fail=1
  11313. rm -f conf$$subs.awk
  11314. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11315. _ACAWK
  11316. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11317. for (key in S) S_is_set[key] = 1
  11318. FS = ""
  11319. }
  11320. {
  11321. line = $ 0
  11322. nfields = split(line, field, "@")
  11323. substed = 0
  11324. len = length(field[1])
  11325. for (i = 2; i < nfields; i++) {
  11326. key = field[i]
  11327. keylen = length(key)
  11328. if (S_is_set[key]) {
  11329. value = S[key]
  11330. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11331. len += length(value) + length(field[++i])
  11332. substed = 1
  11333. } else
  11334. len += 1 + keylen
  11335. }
  11336. print line
  11337. }
  11338. _ACAWK
  11339. _ACEOF
  11340. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11341. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11342. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11343. else
  11344. cat
  11345. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11346. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11347. _ACEOF
  11348. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11349. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11350. # trailing colons and then remove the whole line if VPATH becomes empty
  11351. # (actually we leave an empty line to preserve line numbers).
  11352. if test "x$srcdir" = x.; then
  11353. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11354. h
  11355. s///
  11356. s/^/:/
  11357. s/[ ]*$/:/
  11358. s/:\$(srcdir):/:/g
  11359. s/:\${srcdir}:/:/g
  11360. s/:@srcdir@:/:/g
  11361. s/^:*//
  11362. s/:*$//
  11363. x
  11364. s/\(=[ ]*\).*/\1/
  11365. G
  11366. s/\n//
  11367. s/^[^=]*=[ ]*$//
  11368. }'
  11369. fi
  11370. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11371. fi # test -n "$CONFIG_FILES"
  11372. # Set up the scripts for CONFIG_HEADERS section.
  11373. # No need to generate them if there are no CONFIG_HEADERS.
  11374. # This happens for instance with `./config.status Makefile'.
  11375. if test -n "$CONFIG_HEADERS"; then
  11376. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11377. BEGIN {
  11378. _ACEOF
  11379. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11380. # here-document in config.status, that substitutes the proper values into
  11381. # config.h.in to produce config.h.
  11382. # Create a delimiter string that does not exist in confdefs.h, to ease
  11383. # handling of long lines.
  11384. ac_delim='%!_!# '
  11385. for ac_last_try in false false :; do
  11386. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11387. if test -z "$ac_tt"; then
  11388. break
  11389. elif $ac_last_try; then
  11390. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11391. else
  11392. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11393. fi
  11394. done
  11395. # For the awk script, D is an array of macro values keyed by name,
  11396. # likewise P contains macro parameters if any. Preserve backslash
  11397. # newline sequences.
  11398. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11399. sed -n '
  11400. s/.\{148\}/&'"$ac_delim"'/g
  11401. t rset
  11402. :rset
  11403. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11404. t def
  11405. d
  11406. :def
  11407. s/\\$//
  11408. t bsnl
  11409. s/["\\]/\\&/g
  11410. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11411. D["\1"]=" \3"/p
  11412. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11413. d
  11414. :bsnl
  11415. s/["\\]/\\&/g
  11416. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11417. D["\1"]=" \3\\\\\\n"\\/p
  11418. t cont
  11419. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11420. t cont
  11421. d
  11422. :cont
  11423. n
  11424. s/.\{148\}/&'"$ac_delim"'/g
  11425. t clear
  11426. :clear
  11427. s/\\$//
  11428. t bsnlc
  11429. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11430. d
  11431. :bsnlc
  11432. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11433. b cont
  11434. ' <confdefs.h | sed '
  11435. s/'"$ac_delim"'/"\\\
  11436. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11437. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11438. for (key in D) D_is_set[key] = 1
  11439. FS = ""
  11440. }
  11441. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11442. line = \$ 0
  11443. split(line, arg, " ")
  11444. if (arg[1] == "#") {
  11445. defundef = arg[2]
  11446. mac1 = arg[3]
  11447. } else {
  11448. defundef = substr(arg[1], 2)
  11449. mac1 = arg[2]
  11450. }
  11451. split(mac1, mac2, "(") #)
  11452. macro = mac2[1]
  11453. prefix = substr(line, 1, index(line, defundef) - 1)
  11454. if (D_is_set[macro]) {
  11455. # Preserve the white space surrounding the "#".
  11456. print prefix "define", macro P[macro] D[macro]
  11457. next
  11458. } else {
  11459. # Replace #undef with comments. This is necessary, for example,
  11460. # in the case of _POSIX_SOURCE, which is predefined and required
  11461. # on some systems where configure will not decide to define it.
  11462. if (defundef == "undef") {
  11463. print "/*", prefix defundef, macro, "*/"
  11464. next
  11465. }
  11466. }
  11467. }
  11468. { print }
  11469. _ACAWK
  11470. _ACEOF
  11471. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11472. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  11473. fi # test -n "$CONFIG_HEADERS"
  11474. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11475. shift
  11476. for ac_tag
  11477. do
  11478. case $ac_tag in
  11479. :[FHLC]) ac_mode=$ac_tag; continue;;
  11480. esac
  11481. case $ac_mode$ac_tag in
  11482. :[FHL]*:*);;
  11483. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11484. :[FH]-) ac_tag=-:-;;
  11485. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11486. esac
  11487. ac_save_IFS=$IFS
  11488. IFS=:
  11489. set x $ac_tag
  11490. IFS=$ac_save_IFS
  11491. shift
  11492. ac_file=$1
  11493. shift
  11494. case $ac_mode in
  11495. :L) ac_source=$1;;
  11496. :[FH])
  11497. ac_file_inputs=
  11498. for ac_f
  11499. do
  11500. case $ac_f in
  11501. -) ac_f="$ac_tmp/stdin";;
  11502. *) # Look for the file first in the build tree, then in the source tree
  11503. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11504. # because $ac_f cannot contain `:'.
  11505. test -f "$ac_f" ||
  11506. case $ac_f in
  11507. [\\/$]*) false;;
  11508. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11509. esac ||
  11510. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11511. esac
  11512. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11513. as_fn_append ac_file_inputs " '$ac_f'"
  11514. done
  11515. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11516. # use $as_me), people would be surprised to read:
  11517. # /* config.h. Generated by config.status. */
  11518. configure_input='Generated from '`
  11519. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11520. `' by configure.'
  11521. if test x"$ac_file" != x-; then
  11522. configure_input="$ac_file. $configure_input"
  11523. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11524. $as_echo "$as_me: creating $ac_file" >&6;}
  11525. fi
  11526. # Neutralize special characters interpreted by sed in replacement strings.
  11527. case $configure_input in #(
  11528. *\&* | *\|* | *\\* )
  11529. ac_sed_conf_input=`$as_echo "$configure_input" |
  11530. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11531. *) ac_sed_conf_input=$configure_input;;
  11532. esac
  11533. case $ac_tag in
  11534. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11535. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11536. esac
  11537. ;;
  11538. esac
  11539. ac_dir=`$as_dirname -- "$ac_file" ||
  11540. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11541. X"$ac_file" : 'X\(//\)[^/]' \| \
  11542. X"$ac_file" : 'X\(//\)$' \| \
  11543. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11544. $as_echo X"$ac_file" |
  11545. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11546. s//\1/
  11547. q
  11548. }
  11549. /^X\(\/\/\)[^/].*/{
  11550. s//\1/
  11551. q
  11552. }
  11553. /^X\(\/\/\)$/{
  11554. s//\1/
  11555. q
  11556. }
  11557. /^X\(\/\).*/{
  11558. s//\1/
  11559. q
  11560. }
  11561. s/.*/./; q'`
  11562. as_dir="$ac_dir"; as_fn_mkdir_p
  11563. ac_builddir=.
  11564. case "$ac_dir" in
  11565. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11566. *)
  11567. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11568. # A ".." for each directory in $ac_dir_suffix.
  11569. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11570. case $ac_top_builddir_sub in
  11571. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11572. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11573. esac ;;
  11574. esac
  11575. ac_abs_top_builddir=$ac_pwd
  11576. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11577. # for backward compatibility:
  11578. ac_top_builddir=$ac_top_build_prefix
  11579. case $srcdir in
  11580. .) # We are building in place.
  11581. ac_srcdir=.
  11582. ac_top_srcdir=$ac_top_builddir_sub
  11583. ac_abs_top_srcdir=$ac_pwd ;;
  11584. [\\/]* | ?:[\\/]* ) # Absolute name.
  11585. ac_srcdir=$srcdir$ac_dir_suffix;
  11586. ac_top_srcdir=$srcdir
  11587. ac_abs_top_srcdir=$srcdir ;;
  11588. *) # Relative name.
  11589. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11590. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11591. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11592. esac
  11593. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11594. case $ac_mode in
  11595. :F)
  11596. #
  11597. # CONFIG_FILE
  11598. #
  11599. case $INSTALL in
  11600. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11601. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11602. esac
  11603. _ACEOF
  11604. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11605. # If the template does not know about datarootdir, expand it.
  11606. # FIXME: This hack should be removed a few years after 2.60.
  11607. ac_datarootdir_hack=; ac_datarootdir_seen=
  11608. ac_sed_dataroot='
  11609. /datarootdir/ {
  11610. p
  11611. q
  11612. }
  11613. /@datadir@/p
  11614. /@docdir@/p
  11615. /@infodir@/p
  11616. /@localedir@/p
  11617. /@mandir@/p'
  11618. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11619. *datarootdir*) ac_datarootdir_seen=yes;;
  11620. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11622. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11623. _ACEOF
  11624. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11625. ac_datarootdir_hack='
  11626. s&@datadir@&$datadir&g
  11627. s&@docdir@&$docdir&g
  11628. s&@infodir@&$infodir&g
  11629. s&@localedir@&$localedir&g
  11630. s&@mandir@&$mandir&g
  11631. s&\\\${datarootdir}&$datarootdir&g' ;;
  11632. esac
  11633. _ACEOF
  11634. # Neutralize VPATH when `$srcdir' = `.'.
  11635. # Shell code in configure.ac might set extrasub.
  11636. # FIXME: do we really want to maintain this feature?
  11637. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11638. ac_sed_extra="$ac_vpsub
  11639. $extrasub
  11640. _ACEOF
  11641. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11642. :t
  11643. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11644. s|@configure_input@|$ac_sed_conf_input|;t t
  11645. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11646. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11647. s&@srcdir@&$ac_srcdir&;t t
  11648. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11649. s&@top_srcdir@&$ac_top_srcdir&;t t
  11650. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11651. s&@builddir@&$ac_builddir&;t t
  11652. s&@abs_builddir@&$ac_abs_builddir&;t t
  11653. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11654. s&@INSTALL@&$ac_INSTALL&;t t
  11655. $ac_datarootdir_hack
  11656. "
  11657. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11658. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11659. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11660. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11661. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11662. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11664. which seems to be undefined. Please make sure it is defined" >&5
  11665. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11666. which seems to be undefined. Please make sure it is defined" >&2;}
  11667. rm -f "$ac_tmp/stdin"
  11668. case $ac_file in
  11669. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11670. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11671. esac \
  11672. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11673. ;;
  11674. :H)
  11675. #
  11676. # CONFIG_HEADER
  11677. #
  11678. if test x"$ac_file" != x-; then
  11679. {
  11680. $as_echo "/* $configure_input */" \
  11681. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  11682. } >"$ac_tmp/config.h" \
  11683. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11684. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  11685. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11686. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11687. else
  11688. rm -f "$ac_file"
  11689. mv "$ac_tmp/config.h" "$ac_file" \
  11690. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11691. fi
  11692. else
  11693. $as_echo "/* $configure_input */" \
  11694. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  11695. || as_fn_error $? "could not create -" "$LINENO" 5
  11696. fi
  11697. ;;
  11698. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11699. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11700. ;;
  11701. esac
  11702. case $ac_file$ac_mode in
  11703. "include/jemalloc/internal/public_symbols.txt":C)
  11704. f="${objroot}include/jemalloc/internal/public_symbols.txt"
  11705. mkdir -p "${objroot}include/jemalloc/internal"
  11706. cp /dev/null "${f}"
  11707. for nm in `echo ${mangling_map} |tr ',' ' '` ; do
  11708. n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'`
  11709. m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'`
  11710. echo "${n}:${m}" >> "${f}"
  11711. public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '`
  11712. done
  11713. for sym in ${public_syms} ; do
  11714. n="${sym}"
  11715. m="${JEMALLOC_PREFIX}${sym}"
  11716. echo "${n}:${m}" >> "${f}"
  11717. done
  11718. ;;
  11719. "include/jemalloc/internal/private_symbols.awk":C)
  11720. f="${objroot}include/jemalloc/internal/private_symbols.awk"
  11721. mkdir -p "${objroot}include/jemalloc/internal"
  11722. export_syms=`for sym in ${public_syms}; do echo "${JEMALLOC_PREFIX}${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
  11723. "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols.awk"
  11724. ;;
  11725. "include/jemalloc/internal/private_symbols_jet.awk":C)
  11726. f="${objroot}include/jemalloc/internal/private_symbols_jet.awk"
  11727. mkdir -p "${objroot}include/jemalloc/internal"
  11728. export_syms=`for sym in ${public_syms}; do echo "jet_${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
  11729. "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols_jet.awk"
  11730. ;;
  11731. "include/jemalloc/internal/public_namespace.h":C)
  11732. mkdir -p "${objroot}include/jemalloc/internal"
  11733. "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h"
  11734. ;;
  11735. "include/jemalloc/internal/public_unnamespace.h":C)
  11736. mkdir -p "${objroot}include/jemalloc/internal"
  11737. "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h"
  11738. ;;
  11739. "include/jemalloc/jemalloc_protos_jet.h":C)
  11740. mkdir -p "${objroot}include/jemalloc"
  11741. cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h"
  11742. ;;
  11743. "include/jemalloc/jemalloc_rename.h":C)
  11744. mkdir -p "${objroot}include/jemalloc"
  11745. "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h"
  11746. ;;
  11747. "include/jemalloc/jemalloc_mangle.h":C)
  11748. mkdir -p "${objroot}include/jemalloc"
  11749. "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h"
  11750. ;;
  11751. "include/jemalloc/jemalloc_mangle_jet.h":C)
  11752. mkdir -p "${objroot}include/jemalloc"
  11753. "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h"
  11754. ;;
  11755. "include/jemalloc/jemalloc.h":C)
  11756. mkdir -p "${objroot}include/jemalloc"
  11757. "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h"
  11758. ;;
  11759. esac
  11760. done # for ac_tag
  11761. as_fn_exit 0
  11762. _ACEOF
  11763. ac_clean_files=$ac_clean_files_save
  11764. test $ac_write_fail = 0 ||
  11765. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11766. # configure is writing to config.log, and then calls config.status.
  11767. # config.status does its own redirection, appending to config.log.
  11768. # Unfortunately, on DOS this fails, as config.log is still kept open
  11769. # by configure, so config.status won't be able to write to it; its
  11770. # output is simply discarded. So we exec the FD to /dev/null,
  11771. # effectively closing config.log, so it can be properly (re)opened and
  11772. # appended to by config.status. When coming back to configure, we
  11773. # need to make the FD available again.
  11774. if test "$no_create" != yes; then
  11775. ac_cs_success=:
  11776. ac_config_status_args=
  11777. test "$silent" = yes &&
  11778. ac_config_status_args="$ac_config_status_args --quiet"
  11779. exec 5>/dev/null
  11780. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11781. exec 5>>config.log
  11782. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11783. # would make configure fail if this is the last instruction.
  11784. $ac_cs_success || as_fn_exit 1
  11785. fi
  11786. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11787. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11788. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11789. fi
  11790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
  11791. $as_echo "===============================================================================" >&6; }
  11792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version : ${jemalloc_version}" >&5
  11793. $as_echo "jemalloc version : ${jemalloc_version}" >&6; }
  11794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision : ${rev}" >&5
  11795. $as_echo "library revision : ${rev}" >&6; }
  11796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  11797. $as_echo "" >&6; }
  11798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIG : ${CONFIG}" >&5
  11799. $as_echo "CONFIG : ${CONFIG}" >&6; }
  11800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC : ${CC}" >&5
  11801. $as_echo "CC : ${CC}" >&6; }
  11802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&5
  11803. $as_echo "CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&6; }
  11804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&5
  11805. $as_echo "SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&6; }
  11806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&5
  11807. $as_echo "EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&6; }
  11808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS : ${CPPFLAGS}" >&5
  11809. $as_echo "CPPFLAGS : ${CPPFLAGS}" >&6; }
  11810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: CXX : ${CXX}" >&5
  11811. $as_echo "CXX : ${CXX}" >&6; }
  11812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&5
  11813. $as_echo "CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&6; }
  11814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&5
  11815. $as_echo "SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&6; }
  11816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CXXFLAGS : ${EXTRA_CXXFLAGS}" >&5
  11817. $as_echo "EXTRA_CXXFLAGS : ${EXTRA_CXXFLAGS}" >&6; }
  11818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS : ${LDFLAGS}" >&5
  11819. $as_echo "LDFLAGS : ${LDFLAGS}" >&6; }
  11820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&5
  11821. $as_echo "EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&6; }
  11822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: DSO_LDFLAGS : ${DSO_LDFLAGS}" >&5
  11823. $as_echo "DSO_LDFLAGS : ${DSO_LDFLAGS}" >&6; }
  11824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS : ${LIBS}" >&5
  11825. $as_echo "LIBS : ${LIBS}" >&6; }
  11826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA : ${RPATH_EXTRA}" >&5
  11827. $as_echo "RPATH_EXTRA : ${RPATH_EXTRA}" >&6; }
  11828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  11829. $as_echo "" >&6; }
  11830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC : ${XSLTPROC}" >&5
  11831. $as_echo "XSLTPROC : ${XSLTPROC}" >&6; }
  11832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT : ${XSLROOT}" >&5
  11833. $as_echo "XSLROOT : ${XSLROOT}" >&6; }
  11834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  11835. $as_echo "" >&6; }
  11836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX : ${PREFIX}" >&5
  11837. $as_echo "PREFIX : ${PREFIX}" >&6; }
  11838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR : ${BINDIR}" >&5
  11839. $as_echo "BINDIR : ${BINDIR}" >&6; }
  11840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR : ${DATADIR}" >&5
  11841. $as_echo "DATADIR : ${DATADIR}" >&6; }
  11842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR : ${INCLUDEDIR}" >&5
  11843. $as_echo "INCLUDEDIR : ${INCLUDEDIR}" >&6; }
  11844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR : ${LIBDIR}" >&5
  11845. $as_echo "LIBDIR : ${LIBDIR}" >&6; }
  11846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR : ${MANDIR}" >&5
  11847. $as_echo "MANDIR : ${MANDIR}" >&6; }
  11848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  11849. $as_echo "" >&6; }
  11850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot : ${srcroot}" >&5
  11851. $as_echo "srcroot : ${srcroot}" >&6; }
  11852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot : ${abs_srcroot}" >&5
  11853. $as_echo "abs_srcroot : ${abs_srcroot}" >&6; }
  11854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot : ${objroot}" >&5
  11855. $as_echo "objroot : ${objroot}" >&6; }
  11856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot : ${abs_objroot}" >&5
  11857. $as_echo "abs_objroot : ${abs_objroot}" >&6; }
  11858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  11859. $as_echo "" >&6; }
  11860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&5
  11861. $as_echo "JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&6; }
  11862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
  11863. $as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
  11864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
  11865. $as_echo " : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
  11866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix : ${install_suffix}" >&5
  11867. $as_echo "install_suffix : ${install_suffix}" >&6; }
  11868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc_conf : ${config_malloc_conf}" >&5
  11869. $as_echo "malloc_conf : ${config_malloc_conf}" >&6; }
  11870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: documentation : ${enable_doc}" >&5
  11871. $as_echo "documentation : ${enable_doc}" >&6; }
  11872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared libs : ${enable_shared}" >&5
  11873. $as_echo "shared libs : ${enable_shared}" >&6; }
  11874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: static libs : ${enable_static}" >&5
  11875. $as_echo "static libs : ${enable_static}" >&6; }
  11876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen : ${enable_autogen}" >&5
  11877. $as_echo "autogen : ${enable_autogen}" >&6; }
  11878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug : ${enable_debug}" >&5
  11879. $as_echo "debug : ${enable_debug}" >&6; }
  11880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: stats : ${enable_stats}" >&5
  11881. $as_echo "stats : ${enable_stats}" >&6; }
  11882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: experimetal_smallocx : ${enable_experimental_smallocx}" >&5
  11883. $as_echo "experimetal_smallocx : ${enable_experimental_smallocx}" >&6; }
  11884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof : ${enable_prof}" >&5
  11885. $as_echo "prof : ${enable_prof}" >&6; }
  11886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind : ${enable_prof_libunwind}" >&5
  11887. $as_echo "prof-libunwind : ${enable_prof_libunwind}" >&6; }
  11888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc : ${enable_prof_libgcc}" >&5
  11889. $as_echo "prof-libgcc : ${enable_prof_libgcc}" >&6; }
  11890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc : ${enable_prof_gcc}" >&5
  11891. $as_echo "prof-gcc : ${enable_prof_gcc}" >&6; }
  11892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: fill : ${enable_fill}" >&5
  11893. $as_echo "fill : ${enable_fill}" >&6; }
  11894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace : ${enable_utrace}" >&5
  11895. $as_echo "utrace : ${enable_utrace}" >&6; }
  11896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc : ${enable_xmalloc}" >&5
  11897. $as_echo "xmalloc : ${enable_xmalloc}" >&6; }
  11898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: log : ${enable_log}" >&5
  11899. $as_echo "log : ${enable_log}" >&6; }
  11900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock : ${enable_lazy_lock}" >&5
  11901. $as_echo "lazy_lock : ${enable_lazy_lock}" >&6; }
  11902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cache-oblivious : ${enable_cache_oblivious}" >&5
  11903. $as_echo "cache-oblivious : ${enable_cache_oblivious}" >&6; }
  11904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cxx : ${enable_cxx}" >&5
  11905. $as_echo "cxx : ${enable_cxx}" >&6; }
  11906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
  11907. $as_echo "===============================================================================" >&6; }