configure 362 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720
  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. jemalloc_version_gid
  583. jemalloc_version_nrev
  584. jemalloc_version_bugfix
  585. jemalloc_version_minor
  586. jemalloc_version_major
  587. jemalloc_version
  588. enable_log
  589. enable_cache_oblivious
  590. enable_xmalloc
  591. enable_utrace
  592. enable_fill
  593. enable_prof
  594. enable_stats
  595. enable_debug
  596. je_
  597. install_suffix
  598. private_namespace
  599. JEMALLOC_CPREFIX
  600. JEMALLOC_PREFIX
  601. AUTOCONF
  602. LD
  603. RANLIB
  604. INSTALL_DATA
  605. INSTALL_SCRIPT
  606. INSTALL_PROGRAM
  607. enable_autogen
  608. RPATH_EXTRA
  609. LM
  610. CC_MM
  611. DUMP_SYMS
  612. AROUT
  613. ARFLAGS
  614. MKLIB
  615. TEST_LD_MODE
  616. LDTARGET
  617. CTARGET
  618. PIC_CFLAGS
  619. SOREV
  620. EXTRA_LDFLAGS
  621. DSO_LDFLAGS
  622. link_whole_archive
  623. libprefix
  624. exe
  625. a
  626. o
  627. importlib
  628. so
  629. LD_PRELOAD_VAR
  630. RPATH
  631. abi
  632. AWK
  633. NM
  634. AR
  635. host_os
  636. host_vendor
  637. host_cpu
  638. host
  639. build_os
  640. build_vendor
  641. build_cpu
  642. build
  643. EGREP
  644. GREP
  645. EXTRA_CXXFLAGS
  646. SPECIFIED_CXXFLAGS
  647. CONFIGURE_CXXFLAGS
  648. enable_cxx
  649. HAVE_CXX14
  650. ac_ct_CXX
  651. CXXFLAGS
  652. CXX
  653. CPP
  654. EXTRA_CFLAGS
  655. SPECIFIED_CFLAGS
  656. CONFIGURE_CFLAGS
  657. OBJEXT
  658. EXEEXT
  659. ac_ct_CC
  660. CPPFLAGS
  661. LDFLAGS
  662. CFLAGS
  663. CC
  664. XSLROOT
  665. XSLTPROC
  666. MANDIR
  667. DATADIR
  668. LIBDIR
  669. INCLUDEDIR
  670. BINDIR
  671. PREFIX
  672. abs_objroot
  673. objroot
  674. abs_srcroot
  675. srcroot
  676. rev
  677. CONFIG
  678. target_alias
  679. host_alias
  680. build_alias
  681. LIBS
  682. ECHO_T
  683. ECHO_N
  684. ECHO_C
  685. DEFS
  686. mandir
  687. localedir
  688. libdir
  689. psdir
  690. pdfdir
  691. dvidir
  692. htmldir
  693. infodir
  694. docdir
  695. oldincludedir
  696. includedir
  697. localstatedir
  698. sharedstatedir
  699. sysconfdir
  700. datadir
  701. datarootdir
  702. libexecdir
  703. sbindir
  704. bindir
  705. program_transform_name
  706. prefix
  707. exec_prefix
  708. PACKAGE_URL
  709. PACKAGE_BUGREPORT
  710. PACKAGE_STRING
  711. PACKAGE_VERSION
  712. PACKAGE_TARNAME
  713. PACKAGE_NAME
  714. PATH_SEPARATOR
  715. SHELL'
  716. ac_subst_files=''
  717. ac_user_opts='
  718. enable_option_checking
  719. with_xslroot
  720. enable_cxx
  721. with_lg_vaddr
  722. with_rpath
  723. enable_autogen
  724. with_mangling
  725. with_jemalloc_prefix
  726. with_export
  727. with_private_namespace
  728. with_install_suffix
  729. with_malloc_conf
  730. enable_debug
  731. enable_stats
  732. enable_prof
  733. enable_prof_libunwind
  734. with_static_libunwind
  735. enable_prof_libgcc
  736. enable_prof_gcc
  737. enable_fill
  738. enable_utrace
  739. enable_xmalloc
  740. enable_cache_oblivious
  741. enable_log
  742. with_lg_quantum
  743. with_lg_page
  744. with_lg_hugepage
  745. with_lg_page_sizes
  746. with_version
  747. enable_syscall
  748. enable_lazy_lock
  749. enable_zone_allocator
  750. enable_initial_exec_tls
  751. '
  752. ac_precious_vars='build_alias
  753. host_alias
  754. target_alias
  755. CC
  756. CFLAGS
  757. LDFLAGS
  758. LIBS
  759. CPPFLAGS
  760. CPP
  761. CXX
  762. CXXFLAGS
  763. CCC'
  764. # Initialize some variables set by options.
  765. ac_init_help=
  766. ac_init_version=false
  767. ac_unrecognized_opts=
  768. ac_unrecognized_sep=
  769. # The variables have the same names as the options, with
  770. # dashes changed to underlines.
  771. cache_file=/dev/null
  772. exec_prefix=NONE
  773. no_create=
  774. no_recursion=
  775. prefix=NONE
  776. program_prefix=NONE
  777. program_suffix=NONE
  778. program_transform_name=s,x,x,
  779. silent=
  780. site=
  781. srcdir=
  782. verbose=
  783. x_includes=NONE
  784. x_libraries=NONE
  785. # Installation directory options.
  786. # These are left unexpanded so users can "make install exec_prefix=/foo"
  787. # and all the variables that are supposed to be based on exec_prefix
  788. # by default will actually change.
  789. # Use braces instead of parens because sh, perl, etc. also accept them.
  790. # (The list follows the same order as the GNU Coding Standards.)
  791. bindir='${exec_prefix}/bin'
  792. sbindir='${exec_prefix}/sbin'
  793. libexecdir='${exec_prefix}/libexec'
  794. datarootdir='${prefix}/share'
  795. datadir='${datarootdir}'
  796. sysconfdir='${prefix}/etc'
  797. sharedstatedir='${prefix}/com'
  798. localstatedir='${prefix}/var'
  799. includedir='${prefix}/include'
  800. oldincludedir='/usr/include'
  801. docdir='${datarootdir}/doc/${PACKAGE}'
  802. infodir='${datarootdir}/info'
  803. htmldir='${docdir}'
  804. dvidir='${docdir}'
  805. pdfdir='${docdir}'
  806. psdir='${docdir}'
  807. libdir='${exec_prefix}/lib'
  808. localedir='${datarootdir}/locale'
  809. mandir='${datarootdir}/man'
  810. ac_prev=
  811. ac_dashdash=
  812. for ac_option
  813. do
  814. # If the previous option needs an argument, assign it.
  815. if test -n "$ac_prev"; then
  816. eval $ac_prev=\$ac_option
  817. ac_prev=
  818. continue
  819. fi
  820. case $ac_option in
  821. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  822. *=) ac_optarg= ;;
  823. *) ac_optarg=yes ;;
  824. esac
  825. # Accept the important Cygnus configure options, so we can diagnose typos.
  826. case $ac_dashdash$ac_option in
  827. --)
  828. ac_dashdash=yes ;;
  829. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  830. ac_prev=bindir ;;
  831. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  832. bindir=$ac_optarg ;;
  833. -build | --build | --buil | --bui | --bu)
  834. ac_prev=build_alias ;;
  835. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  836. build_alias=$ac_optarg ;;
  837. -cache-file | --cache-file | --cache-fil | --cache-fi \
  838. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  839. ac_prev=cache_file ;;
  840. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  841. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  842. cache_file=$ac_optarg ;;
  843. --config-cache | -C)
  844. cache_file=config.cache ;;
  845. -datadir | --datadir | --datadi | --datad)
  846. ac_prev=datadir ;;
  847. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  848. datadir=$ac_optarg ;;
  849. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  850. | --dataroo | --dataro | --datar)
  851. ac_prev=datarootdir ;;
  852. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  853. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  854. datarootdir=$ac_optarg ;;
  855. -disable-* | --disable-*)
  856. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  857. # Reject names that are not valid shell variable names.
  858. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  859. as_fn_error $? "invalid feature name: $ac_useropt"
  860. ac_useropt_orig=$ac_useropt
  861. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  862. case $ac_user_opts in
  863. *"
  864. "enable_$ac_useropt"
  865. "*) ;;
  866. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  867. ac_unrecognized_sep=', ';;
  868. esac
  869. eval enable_$ac_useropt=no ;;
  870. -docdir | --docdir | --docdi | --doc | --do)
  871. ac_prev=docdir ;;
  872. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  873. docdir=$ac_optarg ;;
  874. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  875. ac_prev=dvidir ;;
  876. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  877. dvidir=$ac_optarg ;;
  878. -enable-* | --enable-*)
  879. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  880. # Reject names that are not valid shell variable names.
  881. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  882. as_fn_error $? "invalid feature name: $ac_useropt"
  883. ac_useropt_orig=$ac_useropt
  884. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  885. case $ac_user_opts in
  886. *"
  887. "enable_$ac_useropt"
  888. "*) ;;
  889. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  890. ac_unrecognized_sep=', ';;
  891. esac
  892. eval enable_$ac_useropt=\$ac_optarg ;;
  893. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  894. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  895. | --exec | --exe | --ex)
  896. ac_prev=exec_prefix ;;
  897. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  898. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  899. | --exec=* | --exe=* | --ex=*)
  900. exec_prefix=$ac_optarg ;;
  901. -gas | --gas | --ga | --g)
  902. # Obsolete; use --with-gas.
  903. with_gas=yes ;;
  904. -help | --help | --hel | --he | -h)
  905. ac_init_help=long ;;
  906. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  907. ac_init_help=recursive ;;
  908. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  909. ac_init_help=short ;;
  910. -host | --host | --hos | --ho)
  911. ac_prev=host_alias ;;
  912. -host=* | --host=* | --hos=* | --ho=*)
  913. host_alias=$ac_optarg ;;
  914. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  915. ac_prev=htmldir ;;
  916. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  917. | --ht=*)
  918. htmldir=$ac_optarg ;;
  919. -includedir | --includedir | --includedi | --included | --include \
  920. | --includ | --inclu | --incl | --inc)
  921. ac_prev=includedir ;;
  922. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  923. | --includ=* | --inclu=* | --incl=* | --inc=*)
  924. includedir=$ac_optarg ;;
  925. -infodir | --infodir | --infodi | --infod | --info | --inf)
  926. ac_prev=infodir ;;
  927. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  928. infodir=$ac_optarg ;;
  929. -libdir | --libdir | --libdi | --libd)
  930. ac_prev=libdir ;;
  931. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  932. libdir=$ac_optarg ;;
  933. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  934. | --libexe | --libex | --libe)
  935. ac_prev=libexecdir ;;
  936. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  937. | --libexe=* | --libex=* | --libe=*)
  938. libexecdir=$ac_optarg ;;
  939. -localedir | --localedir | --localedi | --localed | --locale)
  940. ac_prev=localedir ;;
  941. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  942. localedir=$ac_optarg ;;
  943. -localstatedir | --localstatedir | --localstatedi | --localstated \
  944. | --localstate | --localstat | --localsta | --localst | --locals)
  945. ac_prev=localstatedir ;;
  946. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  947. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  948. localstatedir=$ac_optarg ;;
  949. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  950. ac_prev=mandir ;;
  951. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  952. mandir=$ac_optarg ;;
  953. -nfp | --nfp | --nf)
  954. # Obsolete; use --without-fp.
  955. with_fp=no ;;
  956. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  957. | --no-cr | --no-c | -n)
  958. no_create=yes ;;
  959. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  960. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  961. no_recursion=yes ;;
  962. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  963. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  964. | --oldin | --oldi | --old | --ol | --o)
  965. ac_prev=oldincludedir ;;
  966. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  967. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  968. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  969. oldincludedir=$ac_optarg ;;
  970. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  971. ac_prev=prefix ;;
  972. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  973. prefix=$ac_optarg ;;
  974. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  975. | --program-pre | --program-pr | --program-p)
  976. ac_prev=program_prefix ;;
  977. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  978. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  979. program_prefix=$ac_optarg ;;
  980. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  981. | --program-suf | --program-su | --program-s)
  982. ac_prev=program_suffix ;;
  983. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  984. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  985. program_suffix=$ac_optarg ;;
  986. -program-transform-name | --program-transform-name \
  987. | --program-transform-nam | --program-transform-na \
  988. | --program-transform-n | --program-transform- \
  989. | --program-transform | --program-transfor \
  990. | --program-transfo | --program-transf \
  991. | --program-trans | --program-tran \
  992. | --progr-tra | --program-tr | --program-t)
  993. ac_prev=program_transform_name ;;
  994. -program-transform-name=* | --program-transform-name=* \
  995. | --program-transform-nam=* | --program-transform-na=* \
  996. | --program-transform-n=* | --program-transform-=* \
  997. | --program-transform=* | --program-transfor=* \
  998. | --program-transfo=* | --program-transf=* \
  999. | --program-trans=* | --program-tran=* \
  1000. | --progr-tra=* | --program-tr=* | --program-t=*)
  1001. program_transform_name=$ac_optarg ;;
  1002. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1003. ac_prev=pdfdir ;;
  1004. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1005. pdfdir=$ac_optarg ;;
  1006. -psdir | --psdir | --psdi | --psd | --ps)
  1007. ac_prev=psdir ;;
  1008. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1009. psdir=$ac_optarg ;;
  1010. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1011. | -silent | --silent | --silen | --sile | --sil)
  1012. silent=yes ;;
  1013. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1014. ac_prev=sbindir ;;
  1015. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1016. | --sbi=* | --sb=*)
  1017. sbindir=$ac_optarg ;;
  1018. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1019. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1020. | --sharedst | --shareds | --shared | --share | --shar \
  1021. | --sha | --sh)
  1022. ac_prev=sharedstatedir ;;
  1023. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1024. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1025. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1026. | --sha=* | --sh=*)
  1027. sharedstatedir=$ac_optarg ;;
  1028. -site | --site | --sit)
  1029. ac_prev=site ;;
  1030. -site=* | --site=* | --sit=*)
  1031. site=$ac_optarg ;;
  1032. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1033. ac_prev=srcdir ;;
  1034. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1035. srcdir=$ac_optarg ;;
  1036. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1037. | --syscon | --sysco | --sysc | --sys | --sy)
  1038. ac_prev=sysconfdir ;;
  1039. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1040. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1041. sysconfdir=$ac_optarg ;;
  1042. -target | --target | --targe | --targ | --tar | --ta | --t)
  1043. ac_prev=target_alias ;;
  1044. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1045. target_alias=$ac_optarg ;;
  1046. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1047. verbose=yes ;;
  1048. -version | --version | --versio | --versi | --vers | -V)
  1049. ac_init_version=: ;;
  1050. -with-* | --with-*)
  1051. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1052. # Reject names that are not valid shell variable names.
  1053. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1054. as_fn_error $? "invalid package name: $ac_useropt"
  1055. ac_useropt_orig=$ac_useropt
  1056. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1057. case $ac_user_opts in
  1058. *"
  1059. "with_$ac_useropt"
  1060. "*) ;;
  1061. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1062. ac_unrecognized_sep=', ';;
  1063. esac
  1064. eval with_$ac_useropt=\$ac_optarg ;;
  1065. -without-* | --without-*)
  1066. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1067. # Reject names that are not valid shell variable names.
  1068. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1069. as_fn_error $? "invalid package name: $ac_useropt"
  1070. ac_useropt_orig=$ac_useropt
  1071. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1072. case $ac_user_opts in
  1073. *"
  1074. "with_$ac_useropt"
  1075. "*) ;;
  1076. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1077. ac_unrecognized_sep=', ';;
  1078. esac
  1079. eval with_$ac_useropt=no ;;
  1080. --x)
  1081. # Obsolete; use --with-x.
  1082. with_x=yes ;;
  1083. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1084. | --x-incl | --x-inc | --x-in | --x-i)
  1085. ac_prev=x_includes ;;
  1086. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1087. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1088. x_includes=$ac_optarg ;;
  1089. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1090. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1091. ac_prev=x_libraries ;;
  1092. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1093. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1094. x_libraries=$ac_optarg ;;
  1095. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1096. Try \`$0 --help' for more information"
  1097. ;;
  1098. *=*)
  1099. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1100. # Reject names that are not valid shell variable names.
  1101. case $ac_envvar in #(
  1102. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1103. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1104. esac
  1105. eval $ac_envvar=\$ac_optarg
  1106. export $ac_envvar ;;
  1107. *)
  1108. # FIXME: should be removed in autoconf 3.0.
  1109. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1110. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1111. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1112. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1113. ;;
  1114. esac
  1115. done
  1116. if test -n "$ac_prev"; then
  1117. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1118. as_fn_error $? "missing argument to $ac_option"
  1119. fi
  1120. if test -n "$ac_unrecognized_opts"; then
  1121. case $enable_option_checking in
  1122. no) ;;
  1123. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1124. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1125. esac
  1126. fi
  1127. # Check all directory arguments for consistency.
  1128. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1129. datadir sysconfdir sharedstatedir localstatedir includedir \
  1130. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1131. libdir localedir mandir
  1132. do
  1133. eval ac_val=\$$ac_var
  1134. # Remove trailing slashes.
  1135. case $ac_val in
  1136. */ )
  1137. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1138. eval $ac_var=\$ac_val;;
  1139. esac
  1140. # Be sure to have absolute directory names.
  1141. case $ac_val in
  1142. [\\/$]* | ?:[\\/]* ) continue;;
  1143. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1144. esac
  1145. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1146. done
  1147. # There might be people who depend on the old broken behavior: `$host'
  1148. # used to hold the argument of --host etc.
  1149. # FIXME: To remove some day.
  1150. build=$build_alias
  1151. host=$host_alias
  1152. target=$target_alias
  1153. # FIXME: To remove some day.
  1154. if test "x$host_alias" != x; then
  1155. if test "x$build_alias" = x; then
  1156. cross_compiling=maybe
  1157. elif test "x$build_alias" != "x$host_alias"; then
  1158. cross_compiling=yes
  1159. fi
  1160. fi
  1161. ac_tool_prefix=
  1162. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1163. test "$silent" = yes && exec 6>/dev/null
  1164. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1165. ac_ls_di=`ls -di .` &&
  1166. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1167. as_fn_error $? "working directory cannot be determined"
  1168. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1169. as_fn_error $? "pwd does not report name of working directory"
  1170. # Find the source files, if location was not specified.
  1171. if test -z "$srcdir"; then
  1172. ac_srcdir_defaulted=yes
  1173. # Try the directory containing this script, then the parent directory.
  1174. ac_confdir=`$as_dirname -- "$as_myself" ||
  1175. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1176. X"$as_myself" : 'X\(//\)[^/]' \| \
  1177. X"$as_myself" : 'X\(//\)$' \| \
  1178. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1179. $as_echo X"$as_myself" |
  1180. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1181. s//\1/
  1182. q
  1183. }
  1184. /^X\(\/\/\)[^/].*/{
  1185. s//\1/
  1186. q
  1187. }
  1188. /^X\(\/\/\)$/{
  1189. s//\1/
  1190. q
  1191. }
  1192. /^X\(\/\).*/{
  1193. s//\1/
  1194. q
  1195. }
  1196. s/.*/./; q'`
  1197. srcdir=$ac_confdir
  1198. if test ! -r "$srcdir/$ac_unique_file"; then
  1199. srcdir=..
  1200. fi
  1201. else
  1202. ac_srcdir_defaulted=no
  1203. fi
  1204. if test ! -r "$srcdir/$ac_unique_file"; then
  1205. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1206. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1207. fi
  1208. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1209. ac_abs_confdir=`(
  1210. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1211. pwd)`
  1212. # When building in place, set srcdir=.
  1213. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1214. srcdir=.
  1215. fi
  1216. # Remove unnecessary trailing slashes from srcdir.
  1217. # Double slashes in file names in object file debugging info
  1218. # mess up M-x gdb in Emacs.
  1219. case $srcdir in
  1220. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1221. esac
  1222. for ac_var in $ac_precious_vars; do
  1223. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1224. eval ac_env_${ac_var}_value=\$${ac_var}
  1225. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1226. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1227. done
  1228. #
  1229. # Report the --help message.
  1230. #
  1231. if test "$ac_init_help" = "long"; then
  1232. # Omit some internal or obsolete options to make the list less imposing.
  1233. # This message is too long to be a string in the A/UX 3.1 sh.
  1234. cat <<_ACEOF
  1235. \`configure' configures this package to adapt to many kinds of systems.
  1236. Usage: $0 [OPTION]... [VAR=VALUE]...
  1237. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1238. VAR=VALUE. See below for descriptions of some of the useful variables.
  1239. Defaults for the options are specified in brackets.
  1240. Configuration:
  1241. -h, --help display this help and exit
  1242. --help=short display options specific to this package
  1243. --help=recursive display the short help of all the included packages
  1244. -V, --version display version information and exit
  1245. -q, --quiet, --silent do not print \`checking ...' messages
  1246. --cache-file=FILE cache test results in FILE [disabled]
  1247. -C, --config-cache alias for \`--cache-file=config.cache'
  1248. -n, --no-create do not create output files
  1249. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1250. Installation directories:
  1251. --prefix=PREFIX install architecture-independent files in PREFIX
  1252. [$ac_default_prefix]
  1253. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1254. [PREFIX]
  1255. By default, \`make install' will install all the files in
  1256. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1257. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1258. for instance \`--prefix=\$HOME'.
  1259. For better control, use the options below.
  1260. Fine tuning of the installation directories:
  1261. --bindir=DIR user executables [EPREFIX/bin]
  1262. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1263. --libexecdir=DIR program executables [EPREFIX/libexec]
  1264. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1265. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1266. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1267. --libdir=DIR object code libraries [EPREFIX/lib]
  1268. --includedir=DIR C header files [PREFIX/include]
  1269. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1270. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1271. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1272. --infodir=DIR info documentation [DATAROOTDIR/info]
  1273. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1274. --mandir=DIR man documentation [DATAROOTDIR/man]
  1275. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1276. --htmldir=DIR html documentation [DOCDIR]
  1277. --dvidir=DIR dvi documentation [DOCDIR]
  1278. --pdfdir=DIR pdf documentation [DOCDIR]
  1279. --psdir=DIR ps documentation [DOCDIR]
  1280. _ACEOF
  1281. cat <<\_ACEOF
  1282. System types:
  1283. --build=BUILD configure for building on BUILD [guessed]
  1284. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1285. _ACEOF
  1286. fi
  1287. if test -n "$ac_init_help"; then
  1288. cat <<\_ACEOF
  1289. Optional Features:
  1290. --disable-option-checking ignore unrecognized --enable/--with options
  1291. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1292. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1293. --disable-cxx Disable C++ integration
  1294. --enable-autogen Automatically regenerate configure output
  1295. --enable-debug Build debugging code
  1296. --disable-stats Disable statistics calculation/reporting
  1297. --enable-prof Enable allocation profiling
  1298. --enable-prof-libunwind Use libunwind for backtracing
  1299. --disable-prof-libgcc Do not use libgcc for backtracing
  1300. --disable-prof-gcc Do not use gcc intrinsics for backtracing
  1301. --disable-fill Disable support for junk/zero filling
  1302. --enable-utrace Enable utrace(2)-based tracing
  1303. --enable-xmalloc Support xmalloc option
  1304. --disable-cache-oblivious
  1305. Disable support for cache-oblivious allocation
  1306. alignment
  1307. --enable-log Support debug logging
  1308. --disable-syscall Disable use of syscall(2)
  1309. --enable-lazy-lock Enable lazy locking (only lock when multi-threaded)
  1310. --disable-zone-allocator
  1311. Disable zone allocator for Darwin
  1312. --disable-initial-exec-tls
  1313. Disable the initial-exec tls model
  1314. Optional Packages:
  1315. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1316. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1317. --with-xslroot=<path> XSL stylesheet root path
  1318. --with-lg-vaddr=<lg-vaddr>
  1319. Number of significant virtual address bits
  1320. --with-rpath=<rpath> Colon-separated rpath (ELF systems only)
  1321. --with-mangling=<map> Mangle symbols in <map>
  1322. --with-jemalloc-prefix=<prefix>
  1323. Prefix to prepend to all public APIs
  1324. --without-export disable exporting jemalloc public APIs
  1325. --with-private-namespace=<prefix>
  1326. Prefix to prepend to all library-private APIs
  1327. --with-install-suffix=<suffix>
  1328. Suffix to append to all installed files
  1329. --with-malloc-conf=<malloc_conf>
  1330. config.malloc_conf options string
  1331. --with-static-libunwind=<libunwind.a>
  1332. Path to static libunwind library; use rather than
  1333. dynamically linking
  1334. --with-lg-quantum=<lg-quantum>
  1335. Base 2 log of minimum allocation alignment
  1336. --with-lg-page=<lg-page>
  1337. Base 2 log of system page size
  1338. --with-lg-hugepage=<lg-hugepage>
  1339. Base 2 log of system huge page size
  1340. --with-lg-page-sizes=<lg-page-sizes>
  1341. Base 2 logs of system page sizes to support
  1342. --with-version=<major>.<minor>.<bugfix>-<nrev>-g<gid>
  1343. Version string
  1344. Some influential environment variables:
  1345. CC C compiler command
  1346. CFLAGS C compiler flags
  1347. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1348. nonstandard directory <lib dir>
  1349. LIBS libraries to pass to the linker, e.g. -l<library>
  1350. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1351. you have headers in a nonstandard directory <include dir>
  1352. CPP C preprocessor
  1353. CXX C++ compiler command
  1354. CXXFLAGS C++ compiler flags
  1355. Use these variables to override the choices made by `configure' or to help
  1356. it to find libraries and programs with nonstandard names/locations.
  1357. Report bugs to the package provider.
  1358. _ACEOF
  1359. ac_status=$?
  1360. fi
  1361. if test "$ac_init_help" = "recursive"; then
  1362. # If there are subdirs, report their specific --help.
  1363. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1364. test -d "$ac_dir" ||
  1365. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1366. continue
  1367. ac_builddir=.
  1368. case "$ac_dir" in
  1369. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1370. *)
  1371. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1372. # A ".." for each directory in $ac_dir_suffix.
  1373. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1374. case $ac_top_builddir_sub in
  1375. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1376. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1377. esac ;;
  1378. esac
  1379. ac_abs_top_builddir=$ac_pwd
  1380. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1381. # for backward compatibility:
  1382. ac_top_builddir=$ac_top_build_prefix
  1383. case $srcdir in
  1384. .) # We are building in place.
  1385. ac_srcdir=.
  1386. ac_top_srcdir=$ac_top_builddir_sub
  1387. ac_abs_top_srcdir=$ac_pwd ;;
  1388. [\\/]* | ?:[\\/]* ) # Absolute name.
  1389. ac_srcdir=$srcdir$ac_dir_suffix;
  1390. ac_top_srcdir=$srcdir
  1391. ac_abs_top_srcdir=$srcdir ;;
  1392. *) # Relative name.
  1393. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1394. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1395. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1396. esac
  1397. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1398. cd "$ac_dir" || { ac_status=$?; continue; }
  1399. # Check for guested configure.
  1400. if test -f "$ac_srcdir/configure.gnu"; then
  1401. echo &&
  1402. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1403. elif test -f "$ac_srcdir/configure"; then
  1404. echo &&
  1405. $SHELL "$ac_srcdir/configure" --help=recursive
  1406. else
  1407. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1408. fi || ac_status=$?
  1409. cd "$ac_pwd" || { ac_status=$?; break; }
  1410. done
  1411. fi
  1412. test -n "$ac_init_help" && exit $ac_status
  1413. if $ac_init_version; then
  1414. cat <<\_ACEOF
  1415. configure
  1416. generated by GNU Autoconf 2.69
  1417. Copyright (C) 2012 Free Software Foundation, Inc.
  1418. This configure script is free software; the Free Software Foundation
  1419. gives unlimited permission to copy, distribute and modify it.
  1420. _ACEOF
  1421. exit
  1422. fi
  1423. ## ------------------------ ##
  1424. ## Autoconf initialization. ##
  1425. ## ------------------------ ##
  1426. # ac_fn_c_try_compile LINENO
  1427. # --------------------------
  1428. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1429. ac_fn_c_try_compile ()
  1430. {
  1431. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1432. rm -f conftest.$ac_objext
  1433. if { { ac_try="$ac_compile"
  1434. case "(($ac_try" in
  1435. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1436. *) ac_try_echo=$ac_try;;
  1437. esac
  1438. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1439. $as_echo "$ac_try_echo"; } >&5
  1440. (eval "$ac_compile") 2>conftest.err
  1441. ac_status=$?
  1442. if test -s conftest.err; then
  1443. grep -v '^ *+' conftest.err >conftest.er1
  1444. cat conftest.er1 >&5
  1445. mv -f conftest.er1 conftest.err
  1446. fi
  1447. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1448. test $ac_status = 0; } && {
  1449. test -z "$ac_c_werror_flag" ||
  1450. test ! -s conftest.err
  1451. } && test -s conftest.$ac_objext; then :
  1452. ac_retval=0
  1453. else
  1454. $as_echo "$as_me: failed program was:" >&5
  1455. sed 's/^/| /' conftest.$ac_ext >&5
  1456. ac_retval=1
  1457. fi
  1458. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1459. as_fn_set_status $ac_retval
  1460. } # ac_fn_c_try_compile
  1461. # ac_fn_c_try_cpp LINENO
  1462. # ----------------------
  1463. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1464. ac_fn_c_try_cpp ()
  1465. {
  1466. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1467. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1468. case "(($ac_try" in
  1469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1470. *) ac_try_echo=$ac_try;;
  1471. esac
  1472. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1473. $as_echo "$ac_try_echo"; } >&5
  1474. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1475. ac_status=$?
  1476. if test -s conftest.err; then
  1477. grep -v '^ *+' conftest.err >conftest.er1
  1478. cat conftest.er1 >&5
  1479. mv -f conftest.er1 conftest.err
  1480. fi
  1481. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1482. test $ac_status = 0; } > conftest.i && {
  1483. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1484. test ! -s conftest.err
  1485. }; then :
  1486. ac_retval=0
  1487. else
  1488. $as_echo "$as_me: failed program was:" >&5
  1489. sed 's/^/| /' conftest.$ac_ext >&5
  1490. ac_retval=1
  1491. fi
  1492. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1493. as_fn_set_status $ac_retval
  1494. } # ac_fn_c_try_cpp
  1495. # ac_fn_cxx_try_compile LINENO
  1496. # ----------------------------
  1497. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1498. ac_fn_cxx_try_compile ()
  1499. {
  1500. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1501. rm -f conftest.$ac_objext
  1502. if { { ac_try="$ac_compile"
  1503. case "(($ac_try" in
  1504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1505. *) ac_try_echo=$ac_try;;
  1506. esac
  1507. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1508. $as_echo "$ac_try_echo"; } >&5
  1509. (eval "$ac_compile") 2>conftest.err
  1510. ac_status=$?
  1511. if test -s conftest.err; then
  1512. grep -v '^ *+' conftest.err >conftest.er1
  1513. cat conftest.er1 >&5
  1514. mv -f conftest.er1 conftest.err
  1515. fi
  1516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1517. test $ac_status = 0; } && {
  1518. test -z "$ac_cxx_werror_flag" ||
  1519. test ! -s conftest.err
  1520. } && test -s conftest.$ac_objext; then :
  1521. ac_retval=0
  1522. else
  1523. $as_echo "$as_me: failed program was:" >&5
  1524. sed 's/^/| /' conftest.$ac_ext >&5
  1525. ac_retval=1
  1526. fi
  1527. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1528. as_fn_set_status $ac_retval
  1529. } # ac_fn_cxx_try_compile
  1530. # ac_fn_c_try_link LINENO
  1531. # -----------------------
  1532. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1533. ac_fn_c_try_link ()
  1534. {
  1535. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1536. rm -f conftest.$ac_objext conftest$ac_exeext
  1537. if { { ac_try="$ac_link"
  1538. case "(($ac_try" in
  1539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1540. *) ac_try_echo=$ac_try;;
  1541. esac
  1542. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1543. $as_echo "$ac_try_echo"; } >&5
  1544. (eval "$ac_link") 2>conftest.err
  1545. ac_status=$?
  1546. if test -s conftest.err; then
  1547. grep -v '^ *+' conftest.err >conftest.er1
  1548. cat conftest.er1 >&5
  1549. mv -f conftest.er1 conftest.err
  1550. fi
  1551. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1552. test $ac_status = 0; } && {
  1553. test -z "$ac_c_werror_flag" ||
  1554. test ! -s conftest.err
  1555. } && test -s conftest$ac_exeext && {
  1556. test "$cross_compiling" = yes ||
  1557. test -x conftest$ac_exeext
  1558. }; then :
  1559. ac_retval=0
  1560. else
  1561. $as_echo "$as_me: failed program was:" >&5
  1562. sed 's/^/| /' conftest.$ac_ext >&5
  1563. ac_retval=1
  1564. fi
  1565. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1566. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1567. # interfere with the next link command; also delete a directory that is
  1568. # left behind by Apple's compiler. We do this before executing the actions.
  1569. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1570. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1571. as_fn_set_status $ac_retval
  1572. } # ac_fn_c_try_link
  1573. # ac_fn_c_try_run LINENO
  1574. # ----------------------
  1575. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1576. # that executables *can* be run.
  1577. ac_fn_c_try_run ()
  1578. {
  1579. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1580. if { { ac_try="$ac_link"
  1581. case "(($ac_try" in
  1582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1583. *) ac_try_echo=$ac_try;;
  1584. esac
  1585. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1586. $as_echo "$ac_try_echo"; } >&5
  1587. (eval "$ac_link") 2>&5
  1588. ac_status=$?
  1589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1590. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1591. { { case "(($ac_try" in
  1592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1593. *) ac_try_echo=$ac_try;;
  1594. esac
  1595. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1596. $as_echo "$ac_try_echo"; } >&5
  1597. (eval "$ac_try") 2>&5
  1598. ac_status=$?
  1599. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1600. test $ac_status = 0; }; }; then :
  1601. ac_retval=0
  1602. else
  1603. $as_echo "$as_me: program exited with status $ac_status" >&5
  1604. $as_echo "$as_me: failed program was:" >&5
  1605. sed 's/^/| /' conftest.$ac_ext >&5
  1606. ac_retval=$ac_status
  1607. fi
  1608. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1609. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1610. as_fn_set_status $ac_retval
  1611. } # ac_fn_c_try_run
  1612. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1613. # -------------------------------------------------------
  1614. # Tests whether HEADER exists and can be compiled using the include files in
  1615. # INCLUDES, setting the cache variable VAR accordingly.
  1616. ac_fn_c_check_header_compile ()
  1617. {
  1618. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1620. $as_echo_n "checking for $2... " >&6; }
  1621. if eval \${$3+:} false; then :
  1622. $as_echo_n "(cached) " >&6
  1623. else
  1624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1625. /* end confdefs.h. */
  1626. $4
  1627. #include <$2>
  1628. _ACEOF
  1629. if ac_fn_c_try_compile "$LINENO"; then :
  1630. eval "$3=yes"
  1631. else
  1632. eval "$3=no"
  1633. fi
  1634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1635. fi
  1636. eval ac_res=\$$3
  1637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1638. $as_echo "$ac_res" >&6; }
  1639. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1640. } # ac_fn_c_check_header_compile
  1641. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1642. # --------------------------------------------
  1643. # Tries to find the compile-time value of EXPR in a program that includes
  1644. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1645. # computed
  1646. ac_fn_c_compute_int ()
  1647. {
  1648. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1649. if test "$cross_compiling" = yes; then
  1650. # Depending upon the size, compute the lo and hi bounds.
  1651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1652. /* end confdefs.h. */
  1653. $4
  1654. int
  1655. main ()
  1656. {
  1657. static int test_array [1 - 2 * !(($2) >= 0)];
  1658. test_array [0] = 0;
  1659. return test_array [0];
  1660. ;
  1661. return 0;
  1662. }
  1663. _ACEOF
  1664. if ac_fn_c_try_compile "$LINENO"; then :
  1665. ac_lo=0 ac_mid=0
  1666. while :; do
  1667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1668. /* end confdefs.h. */
  1669. $4
  1670. int
  1671. main ()
  1672. {
  1673. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1674. test_array [0] = 0;
  1675. return test_array [0];
  1676. ;
  1677. return 0;
  1678. }
  1679. _ACEOF
  1680. if ac_fn_c_try_compile "$LINENO"; then :
  1681. ac_hi=$ac_mid; break
  1682. else
  1683. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1684. if test $ac_lo -le $ac_mid; then
  1685. ac_lo= ac_hi=
  1686. break
  1687. fi
  1688. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1689. fi
  1690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1691. done
  1692. else
  1693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1694. /* end confdefs.h. */
  1695. $4
  1696. int
  1697. main ()
  1698. {
  1699. static int test_array [1 - 2 * !(($2) < 0)];
  1700. test_array [0] = 0;
  1701. return test_array [0];
  1702. ;
  1703. return 0;
  1704. }
  1705. _ACEOF
  1706. if ac_fn_c_try_compile "$LINENO"; then :
  1707. ac_hi=-1 ac_mid=-1
  1708. while :; do
  1709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1710. /* end confdefs.h. */
  1711. $4
  1712. int
  1713. main ()
  1714. {
  1715. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1716. test_array [0] = 0;
  1717. return test_array [0];
  1718. ;
  1719. return 0;
  1720. }
  1721. _ACEOF
  1722. if ac_fn_c_try_compile "$LINENO"; then :
  1723. ac_lo=$ac_mid; break
  1724. else
  1725. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1726. if test $ac_mid -le $ac_hi; then
  1727. ac_lo= ac_hi=
  1728. break
  1729. fi
  1730. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1731. fi
  1732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1733. done
  1734. else
  1735. ac_lo= ac_hi=
  1736. fi
  1737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1738. fi
  1739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1740. # Binary search between lo and hi bounds.
  1741. while test "x$ac_lo" != "x$ac_hi"; do
  1742. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1744. /* end confdefs.h. */
  1745. $4
  1746. int
  1747. main ()
  1748. {
  1749. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1750. test_array [0] = 0;
  1751. return test_array [0];
  1752. ;
  1753. return 0;
  1754. }
  1755. _ACEOF
  1756. if ac_fn_c_try_compile "$LINENO"; then :
  1757. ac_hi=$ac_mid
  1758. else
  1759. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1760. fi
  1761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1762. done
  1763. case $ac_lo in #((
  1764. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1765. '') ac_retval=1 ;;
  1766. esac
  1767. else
  1768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1769. /* end confdefs.h. */
  1770. $4
  1771. static long int longval () { return $2; }
  1772. static unsigned long int ulongval () { return $2; }
  1773. #include <stdio.h>
  1774. #include <stdlib.h>
  1775. int
  1776. main ()
  1777. {
  1778. FILE *f = fopen ("conftest.val", "w");
  1779. if (! f)
  1780. return 1;
  1781. if (($2) < 0)
  1782. {
  1783. long int i = longval ();
  1784. if (i != ($2))
  1785. return 1;
  1786. fprintf (f, "%ld", i);
  1787. }
  1788. else
  1789. {
  1790. unsigned long int i = ulongval ();
  1791. if (i != ($2))
  1792. return 1;
  1793. fprintf (f, "%lu", i);
  1794. }
  1795. /* Do not output a trailing newline, as this causes \r\n confusion
  1796. on some platforms. */
  1797. return ferror (f) || fclose (f) != 0;
  1798. ;
  1799. return 0;
  1800. }
  1801. _ACEOF
  1802. if ac_fn_c_try_run "$LINENO"; then :
  1803. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1804. else
  1805. ac_retval=1
  1806. fi
  1807. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1808. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1809. rm -f conftest.val
  1810. fi
  1811. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1812. as_fn_set_status $ac_retval
  1813. } # ac_fn_c_compute_int
  1814. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1815. # -------------------------------------------------------
  1816. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1817. # the include files in INCLUDES and setting the cache variable VAR
  1818. # accordingly.
  1819. ac_fn_c_check_header_mongrel ()
  1820. {
  1821. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1822. if eval \${$3+:} false; then :
  1823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1824. $as_echo_n "checking for $2... " >&6; }
  1825. if eval \${$3+:} false; then :
  1826. $as_echo_n "(cached) " >&6
  1827. fi
  1828. eval ac_res=\$$3
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1830. $as_echo "$ac_res" >&6; }
  1831. else
  1832. # Is the header compilable?
  1833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1834. $as_echo_n "checking $2 usability... " >&6; }
  1835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1836. /* end confdefs.h. */
  1837. $4
  1838. #include <$2>
  1839. _ACEOF
  1840. if ac_fn_c_try_compile "$LINENO"; then :
  1841. ac_header_compiler=yes
  1842. else
  1843. ac_header_compiler=no
  1844. fi
  1845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1847. $as_echo "$ac_header_compiler" >&6; }
  1848. # Is the header present?
  1849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1850. $as_echo_n "checking $2 presence... " >&6; }
  1851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1852. /* end confdefs.h. */
  1853. #include <$2>
  1854. _ACEOF
  1855. if ac_fn_c_try_cpp "$LINENO"; then :
  1856. ac_header_preproc=yes
  1857. else
  1858. ac_header_preproc=no
  1859. fi
  1860. rm -f conftest.err conftest.i conftest.$ac_ext
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1862. $as_echo "$ac_header_preproc" >&6; }
  1863. # So? What about this header?
  1864. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1865. yes:no: )
  1866. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1867. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1869. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1870. ;;
  1871. no:yes:* )
  1872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1873. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1874. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1875. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1876. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1877. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1879. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1880. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1881. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1882. ;;
  1883. esac
  1884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1885. $as_echo_n "checking for $2... " >&6; }
  1886. if eval \${$3+:} false; then :
  1887. $as_echo_n "(cached) " >&6
  1888. else
  1889. eval "$3=\$ac_header_compiler"
  1890. fi
  1891. eval ac_res=\$$3
  1892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1893. $as_echo "$ac_res" >&6; }
  1894. fi
  1895. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1896. } # ac_fn_c_check_header_mongrel
  1897. # ac_fn_c_check_func LINENO FUNC VAR
  1898. # ----------------------------------
  1899. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1900. ac_fn_c_check_func ()
  1901. {
  1902. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1904. $as_echo_n "checking for $2... " >&6; }
  1905. if eval \${$3+:} false; then :
  1906. $as_echo_n "(cached) " >&6
  1907. else
  1908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1909. /* end confdefs.h. */
  1910. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1911. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1912. #define $2 innocuous_$2
  1913. /* System header to define __stub macros and hopefully few prototypes,
  1914. which can conflict with char $2 (); below.
  1915. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1916. <limits.h> exists even on freestanding compilers. */
  1917. #ifdef __STDC__
  1918. # include <limits.h>
  1919. #else
  1920. # include <assert.h>
  1921. #endif
  1922. #undef $2
  1923. /* Override any GCC internal prototype to avoid an error.
  1924. Use char because int might match the return type of a GCC
  1925. builtin and then its argument prototype would still apply. */
  1926. #ifdef __cplusplus
  1927. extern "C"
  1928. #endif
  1929. char $2 ();
  1930. /* The GNU C library defines this for functions which it implements
  1931. to always fail with ENOSYS. Some functions are actually named
  1932. something starting with __ and the normal name is an alias. */
  1933. #if defined __stub_$2 || defined __stub___$2
  1934. choke me
  1935. #endif
  1936. int
  1937. main ()
  1938. {
  1939. return $2 ();
  1940. ;
  1941. return 0;
  1942. }
  1943. _ACEOF
  1944. if ac_fn_c_try_link "$LINENO"; then :
  1945. eval "$3=yes"
  1946. else
  1947. eval "$3=no"
  1948. fi
  1949. rm -f core conftest.err conftest.$ac_objext \
  1950. conftest$ac_exeext conftest.$ac_ext
  1951. fi
  1952. eval ac_res=\$$3
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1954. $as_echo "$ac_res" >&6; }
  1955. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1956. } # ac_fn_c_check_func
  1957. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1958. # -------------------------------------------
  1959. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1960. # variable VAR accordingly.
  1961. ac_fn_c_check_type ()
  1962. {
  1963. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1965. $as_echo_n "checking for $2... " >&6; }
  1966. if eval \${$3+:} false; then :
  1967. $as_echo_n "(cached) " >&6
  1968. else
  1969. eval "$3=no"
  1970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1971. /* end confdefs.h. */
  1972. $4
  1973. int
  1974. main ()
  1975. {
  1976. if (sizeof ($2))
  1977. return 0;
  1978. ;
  1979. return 0;
  1980. }
  1981. _ACEOF
  1982. if ac_fn_c_try_compile "$LINENO"; then :
  1983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1984. /* end confdefs.h. */
  1985. $4
  1986. int
  1987. main ()
  1988. {
  1989. if (sizeof (($2)))
  1990. return 0;
  1991. ;
  1992. return 0;
  1993. }
  1994. _ACEOF
  1995. if ac_fn_c_try_compile "$LINENO"; then :
  1996. else
  1997. eval "$3=yes"
  1998. fi
  1999. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2000. fi
  2001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2002. fi
  2003. eval ac_res=\$$3
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2005. $as_echo "$ac_res" >&6; }
  2006. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2007. } # ac_fn_c_check_type
  2008. cat >config.log <<_ACEOF
  2009. This file contains any messages produced by compilers while
  2010. running configure, to aid debugging if configure makes a mistake.
  2011. It was created by $as_me, which was
  2012. generated by GNU Autoconf 2.69. Invocation command line was
  2013. $ $0 $@
  2014. _ACEOF
  2015. exec 5>>config.log
  2016. {
  2017. cat <<_ASUNAME
  2018. ## --------- ##
  2019. ## Platform. ##
  2020. ## --------- ##
  2021. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2022. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2023. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2024. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2025. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2026. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2027. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2028. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2029. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2030. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2031. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2032. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2033. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2034. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2035. _ASUNAME
  2036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2037. for as_dir in $PATH
  2038. do
  2039. IFS=$as_save_IFS
  2040. test -z "$as_dir" && as_dir=.
  2041. $as_echo "PATH: $as_dir"
  2042. done
  2043. IFS=$as_save_IFS
  2044. } >&5
  2045. cat >&5 <<_ACEOF
  2046. ## ----------- ##
  2047. ## Core tests. ##
  2048. ## ----------- ##
  2049. _ACEOF
  2050. # Keep a trace of the command line.
  2051. # Strip out --no-create and --no-recursion so they do not pile up.
  2052. # Strip out --silent because we don't want to record it for future runs.
  2053. # Also quote any args containing shell meta-characters.
  2054. # Make two passes to allow for proper duplicate-argument suppression.
  2055. ac_configure_args=
  2056. ac_configure_args0=
  2057. ac_configure_args1=
  2058. ac_must_keep_next=false
  2059. for ac_pass in 1 2
  2060. do
  2061. for ac_arg
  2062. do
  2063. case $ac_arg in
  2064. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2065. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2066. | -silent | --silent | --silen | --sile | --sil)
  2067. continue ;;
  2068. *\'*)
  2069. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2070. esac
  2071. case $ac_pass in
  2072. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2073. 2)
  2074. as_fn_append ac_configure_args1 " '$ac_arg'"
  2075. if test $ac_must_keep_next = true; then
  2076. ac_must_keep_next=false # Got value, back to normal.
  2077. else
  2078. case $ac_arg in
  2079. *=* | --config-cache | -C | -disable-* | --disable-* \
  2080. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2081. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2082. | -with-* | --with-* | -without-* | --without-* | --x)
  2083. case "$ac_configure_args0 " in
  2084. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2085. esac
  2086. ;;
  2087. -* ) ac_must_keep_next=true ;;
  2088. esac
  2089. fi
  2090. as_fn_append ac_configure_args " '$ac_arg'"
  2091. ;;
  2092. esac
  2093. done
  2094. done
  2095. { ac_configure_args0=; unset ac_configure_args0;}
  2096. { ac_configure_args1=; unset ac_configure_args1;}
  2097. # When interrupted or exit'd, cleanup temporary files, and complete
  2098. # config.log. We remove comments because anyway the quotes in there
  2099. # would cause problems or look ugly.
  2100. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2101. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2102. trap 'exit_status=$?
  2103. # Save into config.log some information that might help in debugging.
  2104. {
  2105. echo
  2106. $as_echo "## ---------------- ##
  2107. ## Cache variables. ##
  2108. ## ---------------- ##"
  2109. echo
  2110. # The following way of writing the cache mishandles newlines in values,
  2111. (
  2112. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2113. eval ac_val=\$$ac_var
  2114. case $ac_val in #(
  2115. *${as_nl}*)
  2116. case $ac_var in #(
  2117. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2118. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2119. esac
  2120. case $ac_var in #(
  2121. _ | IFS | as_nl) ;; #(
  2122. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2123. *) { eval $ac_var=; unset $ac_var;} ;;
  2124. esac ;;
  2125. esac
  2126. done
  2127. (set) 2>&1 |
  2128. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2129. *${as_nl}ac_space=\ *)
  2130. sed -n \
  2131. "s/'\''/'\''\\\\'\'''\''/g;
  2132. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2133. ;; #(
  2134. *)
  2135. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2136. ;;
  2137. esac |
  2138. sort
  2139. )
  2140. echo
  2141. $as_echo "## ----------------- ##
  2142. ## Output variables. ##
  2143. ## ----------------- ##"
  2144. echo
  2145. for ac_var in $ac_subst_vars
  2146. do
  2147. eval ac_val=\$$ac_var
  2148. case $ac_val in
  2149. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2150. esac
  2151. $as_echo "$ac_var='\''$ac_val'\''"
  2152. done | sort
  2153. echo
  2154. if test -n "$ac_subst_files"; then
  2155. $as_echo "## ------------------- ##
  2156. ## File substitutions. ##
  2157. ## ------------------- ##"
  2158. echo
  2159. for ac_var in $ac_subst_files
  2160. do
  2161. eval ac_val=\$$ac_var
  2162. case $ac_val in
  2163. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2164. esac
  2165. $as_echo "$ac_var='\''$ac_val'\''"
  2166. done | sort
  2167. echo
  2168. fi
  2169. if test -s confdefs.h; then
  2170. $as_echo "## ----------- ##
  2171. ## confdefs.h. ##
  2172. ## ----------- ##"
  2173. echo
  2174. cat confdefs.h
  2175. echo
  2176. fi
  2177. test "$ac_signal" != 0 &&
  2178. $as_echo "$as_me: caught signal $ac_signal"
  2179. $as_echo "$as_me: exit $exit_status"
  2180. } >&5
  2181. rm -f core *.core core.conftest.* &&
  2182. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2183. exit $exit_status
  2184. ' 0
  2185. for ac_signal in 1 2 13 15; do
  2186. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2187. done
  2188. ac_signal=0
  2189. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2190. rm -f -r conftest* confdefs.h
  2191. $as_echo "/* confdefs.h */" > confdefs.h
  2192. # Predefined preprocessor variables.
  2193. cat >>confdefs.h <<_ACEOF
  2194. #define PACKAGE_NAME "$PACKAGE_NAME"
  2195. _ACEOF
  2196. cat >>confdefs.h <<_ACEOF
  2197. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2198. _ACEOF
  2199. cat >>confdefs.h <<_ACEOF
  2200. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2201. _ACEOF
  2202. cat >>confdefs.h <<_ACEOF
  2203. #define PACKAGE_STRING "$PACKAGE_STRING"
  2204. _ACEOF
  2205. cat >>confdefs.h <<_ACEOF
  2206. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2207. _ACEOF
  2208. cat >>confdefs.h <<_ACEOF
  2209. #define PACKAGE_URL "$PACKAGE_URL"
  2210. _ACEOF
  2211. # Let the site file select an alternate cache file if it wants to.
  2212. # Prefer an explicitly selected file to automatically selected ones.
  2213. ac_site_file1=NONE
  2214. ac_site_file2=NONE
  2215. if test -n "$CONFIG_SITE"; then
  2216. # We do not want a PATH search for config.site.
  2217. case $CONFIG_SITE in #((
  2218. -*) ac_site_file1=./$CONFIG_SITE;;
  2219. */*) ac_site_file1=$CONFIG_SITE;;
  2220. *) ac_site_file1=./$CONFIG_SITE;;
  2221. esac
  2222. elif test "x$prefix" != xNONE; then
  2223. ac_site_file1=$prefix/share/config.site
  2224. ac_site_file2=$prefix/etc/config.site
  2225. else
  2226. ac_site_file1=$ac_default_prefix/share/config.site
  2227. ac_site_file2=$ac_default_prefix/etc/config.site
  2228. fi
  2229. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2230. do
  2231. test "x$ac_site_file" = xNONE && continue
  2232. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2233. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2234. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2235. sed 's/^/| /' "$ac_site_file" >&5
  2236. . "$ac_site_file" \
  2237. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2238. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2239. as_fn_error $? "failed to load site script $ac_site_file
  2240. See \`config.log' for more details" "$LINENO" 5; }
  2241. fi
  2242. done
  2243. if test -r "$cache_file"; then
  2244. # Some versions of bash will fail to source /dev/null (special files
  2245. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2246. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2248. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2249. case $cache_file in
  2250. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2251. *) . "./$cache_file";;
  2252. esac
  2253. fi
  2254. else
  2255. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2256. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2257. >$cache_file
  2258. fi
  2259. # Check that the precious variables saved in the cache have kept the same
  2260. # value.
  2261. ac_cache_corrupted=false
  2262. for ac_var in $ac_precious_vars; do
  2263. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2264. eval ac_new_set=\$ac_env_${ac_var}_set
  2265. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2266. eval ac_new_val=\$ac_env_${ac_var}_value
  2267. case $ac_old_set,$ac_new_set in
  2268. set,)
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2270. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2271. ac_cache_corrupted=: ;;
  2272. ,set)
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2274. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2275. ac_cache_corrupted=: ;;
  2276. ,);;
  2277. *)
  2278. if test "x$ac_old_val" != "x$ac_new_val"; then
  2279. # differences in whitespace do not lead to failure.
  2280. ac_old_val_w=`echo x $ac_old_val`
  2281. ac_new_val_w=`echo x $ac_new_val`
  2282. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2284. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2285. ac_cache_corrupted=:
  2286. else
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2288. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2289. eval $ac_var=\$ac_old_val
  2290. fi
  2291. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2292. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2293. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2294. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2295. fi;;
  2296. esac
  2297. # Pass precious variables to config.status.
  2298. if test "$ac_new_set" = set; then
  2299. case $ac_new_val in
  2300. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2301. *) ac_arg=$ac_var=$ac_new_val ;;
  2302. esac
  2303. case " $ac_configure_args " in
  2304. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2305. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2306. esac
  2307. fi
  2308. done
  2309. if $ac_cache_corrupted; then
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2311. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2312. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2313. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2314. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2315. fi
  2316. ## -------------------- ##
  2317. ## Main body of script. ##
  2318. ## -------------------- ##
  2319. ac_ext=c
  2320. ac_cpp='$CPP $CPPFLAGS'
  2321. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2322. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2323. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2324. ac_aux_dir=
  2325. for ac_dir in build-aux "$srcdir"/build-aux; do
  2326. if test -f "$ac_dir/install-sh"; then
  2327. ac_aux_dir=$ac_dir
  2328. ac_install_sh="$ac_aux_dir/install-sh -c"
  2329. break
  2330. elif test -f "$ac_dir/install.sh"; then
  2331. ac_aux_dir=$ac_dir
  2332. ac_install_sh="$ac_aux_dir/install.sh -c"
  2333. break
  2334. elif test -f "$ac_dir/shtool"; then
  2335. ac_aux_dir=$ac_dir
  2336. ac_install_sh="$ac_aux_dir/shtool install -c"
  2337. break
  2338. fi
  2339. done
  2340. if test -z "$ac_aux_dir"; then
  2341. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  2342. fi
  2343. # These three variables are undocumented and unsupported,
  2344. # and are intended to be withdrawn in a future Autoconf release.
  2345. # They can cause serious problems if a builder's source tree is in a directory
  2346. # whose full name contains unusual characters.
  2347. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2348. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2349. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2350. CONFIGURE_CFLAGS=
  2351. SPECIFIED_CFLAGS="${CFLAGS}"
  2352. CONFIGURE_CXXFLAGS=
  2353. SPECIFIED_CXXFLAGS="${CXXFLAGS}"
  2354. CONFIG=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'`
  2355. rev=2
  2356. srcroot=$srcdir
  2357. if test "x${srcroot}" = "x." ; then
  2358. srcroot=""
  2359. else
  2360. srcroot="${srcroot}/"
  2361. fi
  2362. abs_srcroot="`cd \"${srcdir}\"; pwd`/"
  2363. objroot=""
  2364. abs_objroot="`pwd`/"
  2365. if test "x$prefix" = "xNONE" ; then
  2366. prefix="/usr/local"
  2367. fi
  2368. if test "x$exec_prefix" = "xNONE" ; then
  2369. exec_prefix=$prefix
  2370. fi
  2371. PREFIX=$prefix
  2372. BINDIR=`eval echo $bindir`
  2373. BINDIR=`eval echo $BINDIR`
  2374. INCLUDEDIR=`eval echo $includedir`
  2375. INCLUDEDIR=`eval echo $INCLUDEDIR`
  2376. LIBDIR=`eval echo $libdir`
  2377. LIBDIR=`eval echo $LIBDIR`
  2378. DATADIR=`eval echo $datadir`
  2379. DATADIR=`eval echo $DATADIR`
  2380. MANDIR=`eval echo $mandir`
  2381. MANDIR=`eval echo $MANDIR`
  2382. # Extract the first word of "xsltproc", so it can be a program name with args.
  2383. set dummy xsltproc; ac_word=$2
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2385. $as_echo_n "checking for $ac_word... " >&6; }
  2386. if ${ac_cv_path_XSLTPROC+:} false; then :
  2387. $as_echo_n "(cached) " >&6
  2388. else
  2389. case $XSLTPROC in
  2390. [\\/]* | ?:[\\/]*)
  2391. ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
  2392. ;;
  2393. *)
  2394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2395. for as_dir in $PATH
  2396. do
  2397. IFS=$as_save_IFS
  2398. test -z "$as_dir" && as_dir=.
  2399. for ac_exec_ext in '' $ac_executable_extensions; do
  2400. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2401. ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
  2402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2403. break 2
  2404. fi
  2405. done
  2406. done
  2407. IFS=$as_save_IFS
  2408. test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false"
  2409. ;;
  2410. esac
  2411. fi
  2412. XSLTPROC=$ac_cv_path_XSLTPROC
  2413. if test -n "$XSLTPROC"; then
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
  2415. $as_echo "$XSLTPROC" >&6; }
  2416. else
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2418. $as_echo "no" >&6; }
  2419. fi
  2420. if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then
  2421. DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
  2422. elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then
  2423. DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets"
  2424. else
  2425. DEFAULT_XSLROOT=""
  2426. fi
  2427. # Check whether --with-xslroot was given.
  2428. if test "${with_xslroot+set}" = set; then :
  2429. withval=$with_xslroot;
  2430. if test "x$with_xslroot" = "xno" ; then
  2431. XSLROOT="${DEFAULT_XSLROOT}"
  2432. else
  2433. XSLROOT="${with_xslroot}"
  2434. fi
  2435. else
  2436. XSLROOT="${DEFAULT_XSLROOT}"
  2437. fi
  2438. CFLAGS=$CFLAGS
  2439. ac_ext=c
  2440. ac_cpp='$CPP $CPPFLAGS'
  2441. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2442. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2443. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2444. if test -n "$ac_tool_prefix"; then
  2445. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2446. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2448. $as_echo_n "checking for $ac_word... " >&6; }
  2449. if ${ac_cv_prog_CC+:} false; then :
  2450. $as_echo_n "(cached) " >&6
  2451. else
  2452. if test -n "$CC"; then
  2453. ac_cv_prog_CC="$CC" # Let the user override the test.
  2454. else
  2455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2456. for as_dir in $PATH
  2457. do
  2458. IFS=$as_save_IFS
  2459. test -z "$as_dir" && as_dir=.
  2460. for ac_exec_ext in '' $ac_executable_extensions; do
  2461. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2462. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2463. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2464. break 2
  2465. fi
  2466. done
  2467. done
  2468. IFS=$as_save_IFS
  2469. fi
  2470. fi
  2471. CC=$ac_cv_prog_CC
  2472. if test -n "$CC"; then
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2474. $as_echo "$CC" >&6; }
  2475. else
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2477. $as_echo "no" >&6; }
  2478. fi
  2479. fi
  2480. if test -z "$ac_cv_prog_CC"; then
  2481. ac_ct_CC=$CC
  2482. # Extract the first word of "gcc", so it can be a program name with args.
  2483. set dummy gcc; ac_word=$2
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2485. $as_echo_n "checking for $ac_word... " >&6; }
  2486. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2487. $as_echo_n "(cached) " >&6
  2488. else
  2489. if test -n "$ac_ct_CC"; then
  2490. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2491. else
  2492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2493. for as_dir in $PATH
  2494. do
  2495. IFS=$as_save_IFS
  2496. test -z "$as_dir" && as_dir=.
  2497. for ac_exec_ext in '' $ac_executable_extensions; do
  2498. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2499. ac_cv_prog_ac_ct_CC="gcc"
  2500. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2501. break 2
  2502. fi
  2503. done
  2504. done
  2505. IFS=$as_save_IFS
  2506. fi
  2507. fi
  2508. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2509. if test -n "$ac_ct_CC"; then
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2511. $as_echo "$ac_ct_CC" >&6; }
  2512. else
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2514. $as_echo "no" >&6; }
  2515. fi
  2516. if test "x$ac_ct_CC" = x; then
  2517. CC=""
  2518. else
  2519. case $cross_compiling:$ac_tool_warned in
  2520. yes:)
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2522. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2523. ac_tool_warned=yes ;;
  2524. esac
  2525. CC=$ac_ct_CC
  2526. fi
  2527. else
  2528. CC="$ac_cv_prog_CC"
  2529. fi
  2530. if test -z "$CC"; then
  2531. if test -n "$ac_tool_prefix"; then
  2532. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2533. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2535. $as_echo_n "checking for $ac_word... " >&6; }
  2536. if ${ac_cv_prog_CC+:} false; then :
  2537. $as_echo_n "(cached) " >&6
  2538. else
  2539. if test -n "$CC"; then
  2540. ac_cv_prog_CC="$CC" # Let the user override the test.
  2541. else
  2542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2543. for as_dir in $PATH
  2544. do
  2545. IFS=$as_save_IFS
  2546. test -z "$as_dir" && as_dir=.
  2547. for ac_exec_ext in '' $ac_executable_extensions; do
  2548. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2549. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2551. break 2
  2552. fi
  2553. done
  2554. done
  2555. IFS=$as_save_IFS
  2556. fi
  2557. fi
  2558. CC=$ac_cv_prog_CC
  2559. if test -n "$CC"; then
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2561. $as_echo "$CC" >&6; }
  2562. else
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2564. $as_echo "no" >&6; }
  2565. fi
  2566. fi
  2567. fi
  2568. if test -z "$CC"; then
  2569. # Extract the first word of "cc", so it can be a program name with args.
  2570. set dummy cc; ac_word=$2
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2572. $as_echo_n "checking for $ac_word... " >&6; }
  2573. if ${ac_cv_prog_CC+:} false; then :
  2574. $as_echo_n "(cached) " >&6
  2575. else
  2576. if test -n "$CC"; then
  2577. ac_cv_prog_CC="$CC" # Let the user override the test.
  2578. else
  2579. ac_prog_rejected=no
  2580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2581. for as_dir in $PATH
  2582. do
  2583. IFS=$as_save_IFS
  2584. test -z "$as_dir" && as_dir=.
  2585. for ac_exec_ext in '' $ac_executable_extensions; do
  2586. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2587. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2588. ac_prog_rejected=yes
  2589. continue
  2590. fi
  2591. ac_cv_prog_CC="cc"
  2592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2593. break 2
  2594. fi
  2595. done
  2596. done
  2597. IFS=$as_save_IFS
  2598. if test $ac_prog_rejected = yes; then
  2599. # We found a bogon in the path, so make sure we never use it.
  2600. set dummy $ac_cv_prog_CC
  2601. shift
  2602. if test $# != 0; then
  2603. # We chose a different compiler from the bogus one.
  2604. # However, it has the same basename, so the bogon will be chosen
  2605. # first if we set CC to just the basename; use the full file name.
  2606. shift
  2607. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2608. fi
  2609. fi
  2610. fi
  2611. fi
  2612. CC=$ac_cv_prog_CC
  2613. if test -n "$CC"; then
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2615. $as_echo "$CC" >&6; }
  2616. else
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2618. $as_echo "no" >&6; }
  2619. fi
  2620. fi
  2621. if test -z "$CC"; then
  2622. if test -n "$ac_tool_prefix"; then
  2623. for ac_prog in cl.exe
  2624. do
  2625. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2626. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2628. $as_echo_n "checking for $ac_word... " >&6; }
  2629. if ${ac_cv_prog_CC+:} false; then :
  2630. $as_echo_n "(cached) " >&6
  2631. else
  2632. if test -n "$CC"; then
  2633. ac_cv_prog_CC="$CC" # Let the user override the test.
  2634. else
  2635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2636. for as_dir in $PATH
  2637. do
  2638. IFS=$as_save_IFS
  2639. test -z "$as_dir" && as_dir=.
  2640. for ac_exec_ext in '' $ac_executable_extensions; do
  2641. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2642. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2643. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2644. break 2
  2645. fi
  2646. done
  2647. done
  2648. IFS=$as_save_IFS
  2649. fi
  2650. fi
  2651. CC=$ac_cv_prog_CC
  2652. if test -n "$CC"; then
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2654. $as_echo "$CC" >&6; }
  2655. else
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2657. $as_echo "no" >&6; }
  2658. fi
  2659. test -n "$CC" && break
  2660. done
  2661. fi
  2662. if test -z "$CC"; then
  2663. ac_ct_CC=$CC
  2664. for ac_prog in cl.exe
  2665. do
  2666. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2667. set dummy $ac_prog; ac_word=$2
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2669. $as_echo_n "checking for $ac_word... " >&6; }
  2670. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2671. $as_echo_n "(cached) " >&6
  2672. else
  2673. if test -n "$ac_ct_CC"; then
  2674. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2675. else
  2676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2677. for as_dir in $PATH
  2678. do
  2679. IFS=$as_save_IFS
  2680. test -z "$as_dir" && as_dir=.
  2681. for ac_exec_ext in '' $ac_executable_extensions; do
  2682. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2683. ac_cv_prog_ac_ct_CC="$ac_prog"
  2684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2685. break 2
  2686. fi
  2687. done
  2688. done
  2689. IFS=$as_save_IFS
  2690. fi
  2691. fi
  2692. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2693. if test -n "$ac_ct_CC"; then
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2695. $as_echo "$ac_ct_CC" >&6; }
  2696. else
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2698. $as_echo "no" >&6; }
  2699. fi
  2700. test -n "$ac_ct_CC" && break
  2701. done
  2702. if test "x$ac_ct_CC" = x; then
  2703. CC=""
  2704. else
  2705. case $cross_compiling:$ac_tool_warned in
  2706. yes:)
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2708. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2709. ac_tool_warned=yes ;;
  2710. esac
  2711. CC=$ac_ct_CC
  2712. fi
  2713. fi
  2714. fi
  2715. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2716. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2717. as_fn_error $? "no acceptable C compiler found in \$PATH
  2718. See \`config.log' for more details" "$LINENO" 5; }
  2719. # Provide some information about the compiler.
  2720. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2721. set X $ac_compile
  2722. ac_compiler=$2
  2723. for ac_option in --version -v -V -qversion; do
  2724. { { ac_try="$ac_compiler $ac_option >&5"
  2725. case "(($ac_try" in
  2726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2727. *) ac_try_echo=$ac_try;;
  2728. esac
  2729. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2730. $as_echo "$ac_try_echo"; } >&5
  2731. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2732. ac_status=$?
  2733. if test -s conftest.err; then
  2734. sed '10a\
  2735. ... rest of stderr output deleted ...
  2736. 10q' conftest.err >conftest.er1
  2737. cat conftest.er1 >&5
  2738. fi
  2739. rm -f conftest.er1 conftest.err
  2740. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2741. test $ac_status = 0; }
  2742. done
  2743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2744. /* end confdefs.h. */
  2745. int
  2746. main ()
  2747. {
  2748. ;
  2749. return 0;
  2750. }
  2751. _ACEOF
  2752. ac_clean_files_save=$ac_clean_files
  2753. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2754. # Try to create an executable without -o first, disregard a.out.
  2755. # It will help us diagnose broken compilers, and finding out an intuition
  2756. # of exeext.
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2758. $as_echo_n "checking whether the C compiler works... " >&6; }
  2759. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2760. # The possible output files:
  2761. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2762. ac_rmfiles=
  2763. for ac_file in $ac_files
  2764. do
  2765. case $ac_file in
  2766. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2767. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2768. esac
  2769. done
  2770. rm -f $ac_rmfiles
  2771. if { { ac_try="$ac_link_default"
  2772. case "(($ac_try" in
  2773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2774. *) ac_try_echo=$ac_try;;
  2775. esac
  2776. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2777. $as_echo "$ac_try_echo"; } >&5
  2778. (eval "$ac_link_default") 2>&5
  2779. ac_status=$?
  2780. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2781. test $ac_status = 0; }; then :
  2782. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2783. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2784. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2785. # so that the user can short-circuit this test for compilers unknown to
  2786. # Autoconf.
  2787. for ac_file in $ac_files ''
  2788. do
  2789. test -f "$ac_file" || continue
  2790. case $ac_file in
  2791. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2792. ;;
  2793. [ab].out )
  2794. # We found the default executable, but exeext='' is most
  2795. # certainly right.
  2796. break;;
  2797. *.* )
  2798. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2799. then :; else
  2800. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2801. fi
  2802. # We set ac_cv_exeext here because the later test for it is not
  2803. # safe: cross compilers may not add the suffix if given an `-o'
  2804. # argument, so we may need to know it at that point already.
  2805. # Even if this section looks crufty: it has the advantage of
  2806. # actually working.
  2807. break;;
  2808. * )
  2809. break;;
  2810. esac
  2811. done
  2812. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2813. else
  2814. ac_file=''
  2815. fi
  2816. if test -z "$ac_file"; then :
  2817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2818. $as_echo "no" >&6; }
  2819. $as_echo "$as_me: failed program was:" >&5
  2820. sed 's/^/| /' conftest.$ac_ext >&5
  2821. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2822. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2823. as_fn_error 77 "C compiler cannot create executables
  2824. See \`config.log' for more details" "$LINENO" 5; }
  2825. else
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2827. $as_echo "yes" >&6; }
  2828. fi
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2830. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2832. $as_echo "$ac_file" >&6; }
  2833. ac_exeext=$ac_cv_exeext
  2834. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2835. ac_clean_files=$ac_clean_files_save
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2837. $as_echo_n "checking for suffix of executables... " >&6; }
  2838. if { { ac_try="$ac_link"
  2839. case "(($ac_try" in
  2840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2841. *) ac_try_echo=$ac_try;;
  2842. esac
  2843. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2844. $as_echo "$ac_try_echo"; } >&5
  2845. (eval "$ac_link") 2>&5
  2846. ac_status=$?
  2847. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2848. test $ac_status = 0; }; then :
  2849. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2850. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2851. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2852. # `rm'.
  2853. for ac_file in conftest.exe conftest conftest.*; do
  2854. test -f "$ac_file" || continue
  2855. case $ac_file in
  2856. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2857. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2858. break;;
  2859. * ) break;;
  2860. esac
  2861. done
  2862. else
  2863. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2864. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2865. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2866. See \`config.log' for more details" "$LINENO" 5; }
  2867. fi
  2868. rm -f conftest conftest$ac_cv_exeext
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2870. $as_echo "$ac_cv_exeext" >&6; }
  2871. rm -f conftest.$ac_ext
  2872. EXEEXT=$ac_cv_exeext
  2873. ac_exeext=$EXEEXT
  2874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2875. /* end confdefs.h. */
  2876. #include <stdio.h>
  2877. int
  2878. main ()
  2879. {
  2880. FILE *f = fopen ("conftest.out", "w");
  2881. return ferror (f) || fclose (f) != 0;
  2882. ;
  2883. return 0;
  2884. }
  2885. _ACEOF
  2886. ac_clean_files="$ac_clean_files conftest.out"
  2887. # Check that the compiler produces executables we can run. If not, either
  2888. # the compiler is broken, or we cross compile.
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2890. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2891. if test "$cross_compiling" != yes; then
  2892. { { ac_try="$ac_link"
  2893. case "(($ac_try" in
  2894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2895. *) ac_try_echo=$ac_try;;
  2896. esac
  2897. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2898. $as_echo "$ac_try_echo"; } >&5
  2899. (eval "$ac_link") 2>&5
  2900. ac_status=$?
  2901. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2902. test $ac_status = 0; }
  2903. if { ac_try='./conftest$ac_cv_exeext'
  2904. { { case "(($ac_try" in
  2905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2906. *) ac_try_echo=$ac_try;;
  2907. esac
  2908. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2909. $as_echo "$ac_try_echo"; } >&5
  2910. (eval "$ac_try") 2>&5
  2911. ac_status=$?
  2912. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2913. test $ac_status = 0; }; }; then
  2914. cross_compiling=no
  2915. else
  2916. if test "$cross_compiling" = maybe; then
  2917. cross_compiling=yes
  2918. else
  2919. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2920. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2921. as_fn_error $? "cannot run C compiled programs.
  2922. If you meant to cross compile, use \`--host'.
  2923. See \`config.log' for more details" "$LINENO" 5; }
  2924. fi
  2925. fi
  2926. fi
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2928. $as_echo "$cross_compiling" >&6; }
  2929. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2930. ac_clean_files=$ac_clean_files_save
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2932. $as_echo_n "checking for suffix of object files... " >&6; }
  2933. if ${ac_cv_objext+:} false; then :
  2934. $as_echo_n "(cached) " >&6
  2935. else
  2936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2937. /* end confdefs.h. */
  2938. int
  2939. main ()
  2940. {
  2941. ;
  2942. return 0;
  2943. }
  2944. _ACEOF
  2945. rm -f conftest.o conftest.obj
  2946. if { { ac_try="$ac_compile"
  2947. case "(($ac_try" in
  2948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2949. *) ac_try_echo=$ac_try;;
  2950. esac
  2951. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2952. $as_echo "$ac_try_echo"; } >&5
  2953. (eval "$ac_compile") 2>&5
  2954. ac_status=$?
  2955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2956. test $ac_status = 0; }; then :
  2957. for ac_file in conftest.o conftest.obj conftest.*; do
  2958. test -f "$ac_file" || continue;
  2959. case $ac_file in
  2960. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2961. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2962. break;;
  2963. esac
  2964. done
  2965. else
  2966. $as_echo "$as_me: failed program was:" >&5
  2967. sed 's/^/| /' conftest.$ac_ext >&5
  2968. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2969. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2970. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2971. See \`config.log' for more details" "$LINENO" 5; }
  2972. fi
  2973. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2974. fi
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2976. $as_echo "$ac_cv_objext" >&6; }
  2977. OBJEXT=$ac_cv_objext
  2978. ac_objext=$OBJEXT
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2980. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2981. if ${ac_cv_c_compiler_gnu+:} false; then :
  2982. $as_echo_n "(cached) " >&6
  2983. else
  2984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2985. /* end confdefs.h. */
  2986. int
  2987. main ()
  2988. {
  2989. #ifndef __GNUC__
  2990. choke me
  2991. #endif
  2992. ;
  2993. return 0;
  2994. }
  2995. _ACEOF
  2996. if ac_fn_c_try_compile "$LINENO"; then :
  2997. ac_compiler_gnu=yes
  2998. else
  2999. ac_compiler_gnu=no
  3000. fi
  3001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3002. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3003. fi
  3004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3005. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3006. if test $ac_compiler_gnu = yes; then
  3007. GCC=yes
  3008. else
  3009. GCC=
  3010. fi
  3011. ac_test_CFLAGS=${CFLAGS+set}
  3012. ac_save_CFLAGS=$CFLAGS
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3014. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3015. if ${ac_cv_prog_cc_g+:} false; then :
  3016. $as_echo_n "(cached) " >&6
  3017. else
  3018. ac_save_c_werror_flag=$ac_c_werror_flag
  3019. ac_c_werror_flag=yes
  3020. ac_cv_prog_cc_g=no
  3021. CFLAGS="-g"
  3022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3023. /* end confdefs.h. */
  3024. int
  3025. main ()
  3026. {
  3027. ;
  3028. return 0;
  3029. }
  3030. _ACEOF
  3031. if ac_fn_c_try_compile "$LINENO"; then :
  3032. ac_cv_prog_cc_g=yes
  3033. else
  3034. CFLAGS=""
  3035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3036. /* end confdefs.h. */
  3037. int
  3038. main ()
  3039. {
  3040. ;
  3041. return 0;
  3042. }
  3043. _ACEOF
  3044. if ac_fn_c_try_compile "$LINENO"; then :
  3045. else
  3046. ac_c_werror_flag=$ac_save_c_werror_flag
  3047. CFLAGS="-g"
  3048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3049. /* end confdefs.h. */
  3050. int
  3051. main ()
  3052. {
  3053. ;
  3054. return 0;
  3055. }
  3056. _ACEOF
  3057. if ac_fn_c_try_compile "$LINENO"; then :
  3058. ac_cv_prog_cc_g=yes
  3059. fi
  3060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3061. fi
  3062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3063. fi
  3064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3065. ac_c_werror_flag=$ac_save_c_werror_flag
  3066. fi
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3068. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3069. if test "$ac_test_CFLAGS" = set; then
  3070. CFLAGS=$ac_save_CFLAGS
  3071. elif test $ac_cv_prog_cc_g = yes; then
  3072. if test "$GCC" = yes; then
  3073. CFLAGS="-g -O2"
  3074. else
  3075. CFLAGS="-g"
  3076. fi
  3077. else
  3078. if test "$GCC" = yes; then
  3079. CFLAGS="-O2"
  3080. else
  3081. CFLAGS=
  3082. fi
  3083. fi
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3085. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3086. if ${ac_cv_prog_cc_c89+:} false; then :
  3087. $as_echo_n "(cached) " >&6
  3088. else
  3089. ac_cv_prog_cc_c89=no
  3090. ac_save_CC=$CC
  3091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3092. /* end confdefs.h. */
  3093. #include <stdarg.h>
  3094. #include <stdio.h>
  3095. struct stat;
  3096. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3097. struct buf { int x; };
  3098. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3099. static char *e (p, i)
  3100. char **p;
  3101. int i;
  3102. {
  3103. return p[i];
  3104. }
  3105. static char *f (char * (*g) (char **, int), char **p, ...)
  3106. {
  3107. char *s;
  3108. va_list v;
  3109. va_start (v,p);
  3110. s = g (p, va_arg (v,int));
  3111. va_end (v);
  3112. return s;
  3113. }
  3114. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3115. function prototypes and stuff, but not '\xHH' hex character constants.
  3116. These don't provoke an error unfortunately, instead are silently treated
  3117. as 'x'. The following induces an error, until -std is added to get
  3118. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3119. array size at least. It's necessary to write '\x00'==0 to get something
  3120. that's true only with -std. */
  3121. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3122. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3123. inside strings and character constants. */
  3124. #define FOO(x) 'x'
  3125. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3126. int test (int i, double x);
  3127. struct s1 {int (*f) (int a);};
  3128. struct s2 {int (*f) (double a);};
  3129. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3130. int argc;
  3131. char **argv;
  3132. int
  3133. main ()
  3134. {
  3135. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3136. ;
  3137. return 0;
  3138. }
  3139. _ACEOF
  3140. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3141. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3142. do
  3143. CC="$ac_save_CC $ac_arg"
  3144. if ac_fn_c_try_compile "$LINENO"; then :
  3145. ac_cv_prog_cc_c89=$ac_arg
  3146. fi
  3147. rm -f core conftest.err conftest.$ac_objext
  3148. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3149. done
  3150. rm -f conftest.$ac_ext
  3151. CC=$ac_save_CC
  3152. fi
  3153. # AC_CACHE_VAL
  3154. case "x$ac_cv_prog_cc_c89" in
  3155. x)
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3157. $as_echo "none needed" >&6; } ;;
  3158. xno)
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3160. $as_echo "unsupported" >&6; } ;;
  3161. *)
  3162. CC="$CC $ac_cv_prog_cc_c89"
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3164. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3165. esac
  3166. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3167. fi
  3168. ac_ext=c
  3169. ac_cpp='$CPP $CPPFLAGS'
  3170. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3171. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3172. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3173. if test "x$GCC" != "xyes" ; then
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5
  3175. $as_echo_n "checking whether compiler is MSVC... " >&6; }
  3176. if ${je_cv_msvc+:} false; then :
  3177. $as_echo_n "(cached) " >&6
  3178. else
  3179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3180. /* end confdefs.h. */
  3181. int
  3182. main ()
  3183. {
  3184. #ifndef _MSC_VER
  3185. int fail-1;
  3186. #endif
  3187. ;
  3188. return 0;
  3189. }
  3190. _ACEOF
  3191. if ac_fn_c_try_compile "$LINENO"; then :
  3192. je_cv_msvc=yes
  3193. else
  3194. je_cv_msvc=no
  3195. fi
  3196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3197. fi
  3198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5
  3199. $as_echo "$je_cv_msvc" >&6; }
  3200. fi
  3201. je_cv_cray_prgenv_wrapper=""
  3202. if test "x${PE_ENV}" != "x" ; then
  3203. case "${CC}" in
  3204. CC|cc)
  3205. je_cv_cray_prgenv_wrapper="yes"
  3206. ;;
  3207. *)
  3208. ;;
  3209. esac
  3210. fi
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is cray" >&5
  3212. $as_echo_n "checking whether compiler is cray... " >&6; }
  3213. if ${je_cv_cray+:} false; then :
  3214. $as_echo_n "(cached) " >&6
  3215. else
  3216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3217. /* end confdefs.h. */
  3218. int
  3219. main ()
  3220. {
  3221. #ifndef _CRAYC
  3222. int fail-1;
  3223. #endif
  3224. ;
  3225. return 0;
  3226. }
  3227. _ACEOF
  3228. if ac_fn_c_try_compile "$LINENO"; then :
  3229. je_cv_cray=yes
  3230. else
  3231. je_cv_cray=no
  3232. fi
  3233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3234. fi
  3235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray" >&5
  3236. $as_echo "$je_cv_cray" >&6; }
  3237. if test "x${je_cv_cray}" = "xyes" ; then
  3238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cray compiler version is 8.4" >&5
  3239. $as_echo_n "checking whether cray compiler version is 8.4... " >&6; }
  3240. if ${je_cv_cray_84+:} false; then :
  3241. $as_echo_n "(cached) " >&6
  3242. else
  3243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3244. /* end confdefs.h. */
  3245. int
  3246. main ()
  3247. {
  3248. #if !(_RELEASE_MAJOR == 8 && _RELEASE_MINOR == 4)
  3249. int fail-1;
  3250. #endif
  3251. ;
  3252. return 0;
  3253. }
  3254. _ACEOF
  3255. if ac_fn_c_try_compile "$LINENO"; then :
  3256. je_cv_cray_84=yes
  3257. else
  3258. je_cv_cray_84=no
  3259. fi
  3260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3261. fi
  3262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray_84" >&5
  3263. $as_echo "$je_cv_cray_84" >&6; }
  3264. fi
  3265. if test "x$GCC" = "xyes" ; then
  3266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu11" >&5
  3267. $as_echo_n "checking whether compiler supports -std=gnu11... " >&6; }
  3268. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3269. T_APPEND_V=-std=gnu11
  3270. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3271. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3272. else
  3273. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3274. fi
  3275. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3276. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3277. else
  3278. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3279. fi
  3280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3281. /* end confdefs.h. */
  3282. int
  3283. main ()
  3284. {
  3285. return 0;
  3286. ;
  3287. return 0;
  3288. }
  3289. _ACEOF
  3290. if ac_fn_c_try_compile "$LINENO"; then :
  3291. je_cv_cflags_added=-std=gnu11
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3293. $as_echo "yes" >&6; }
  3294. else
  3295. je_cv_cflags_added=
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3297. $as_echo "no" >&6; }
  3298. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3299. fi
  3300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3301. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3302. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3303. else
  3304. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3305. fi
  3306. if test "x$je_cv_cflags_added" = "x-std=gnu11" ; then
  3307. cat >>confdefs.h <<_ACEOF
  3308. #define JEMALLOC_HAS_RESTRICT 1
  3309. _ACEOF
  3310. else
  3311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
  3312. $as_echo_n "checking whether compiler supports -std=gnu99... " >&6; }
  3313. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3314. T_APPEND_V=-std=gnu99
  3315. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3316. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3317. else
  3318. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3319. fi
  3320. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3321. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3322. else
  3323. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3324. fi
  3325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3326. /* end confdefs.h. */
  3327. int
  3328. main ()
  3329. {
  3330. return 0;
  3331. ;
  3332. return 0;
  3333. }
  3334. _ACEOF
  3335. if ac_fn_c_try_compile "$LINENO"; then :
  3336. je_cv_cflags_added=-std=gnu99
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3338. $as_echo "yes" >&6; }
  3339. else
  3340. je_cv_cflags_added=
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3342. $as_echo "no" >&6; }
  3343. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3344. fi
  3345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3346. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3347. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3348. else
  3349. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3350. fi
  3351. if test "x$je_cv_cflags_added" = "x-std=gnu99" ; then
  3352. cat >>confdefs.h <<_ACEOF
  3353. #define JEMALLOC_HAS_RESTRICT 1
  3354. _ACEOF
  3355. fi
  3356. fi
  3357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
  3358. $as_echo_n "checking whether compiler supports -Wall... " >&6; }
  3359. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3360. T_APPEND_V=-Wall
  3361. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3362. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3363. else
  3364. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3365. fi
  3366. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3367. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3368. else
  3369. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3370. fi
  3371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3372. /* end confdefs.h. */
  3373. int
  3374. main ()
  3375. {
  3376. return 0;
  3377. ;
  3378. return 0;
  3379. }
  3380. _ACEOF
  3381. if ac_fn_c_try_compile "$LINENO"; then :
  3382. je_cv_cflags_added=-Wall
  3383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3384. $as_echo "yes" >&6; }
  3385. else
  3386. je_cv_cflags_added=
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3388. $as_echo "no" >&6; }
  3389. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3390. fi
  3391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3392. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3393. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3394. else
  3395. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3396. fi
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshorten-64-to-32" >&5
  3398. $as_echo_n "checking whether compiler supports -Wshorten-64-to-32... " >&6; }
  3399. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3400. T_APPEND_V=-Wshorten-64-to-32
  3401. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3402. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3403. else
  3404. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3405. fi
  3406. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3407. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3408. else
  3409. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3410. fi
  3411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3412. /* end confdefs.h. */
  3413. int
  3414. main ()
  3415. {
  3416. return 0;
  3417. ;
  3418. return 0;
  3419. }
  3420. _ACEOF
  3421. if ac_fn_c_try_compile "$LINENO"; then :
  3422. je_cv_cflags_added=-Wshorten-64-to-32
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3424. $as_echo "yes" >&6; }
  3425. else
  3426. je_cv_cflags_added=
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3428. $as_echo "no" >&6; }
  3429. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3430. fi
  3431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3432. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3433. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3434. else
  3435. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3436. fi
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-compare" >&5
  3438. $as_echo_n "checking whether compiler supports -Wsign-compare... " >&6; }
  3439. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3440. T_APPEND_V=-Wsign-compare
  3441. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3442. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3443. else
  3444. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3445. fi
  3446. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3447. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3448. else
  3449. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3450. fi
  3451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3452. /* end confdefs.h. */
  3453. int
  3454. main ()
  3455. {
  3456. return 0;
  3457. ;
  3458. return 0;
  3459. }
  3460. _ACEOF
  3461. if ac_fn_c_try_compile "$LINENO"; then :
  3462. je_cv_cflags_added=-Wsign-compare
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3464. $as_echo "yes" >&6; }
  3465. else
  3466. je_cv_cflags_added=
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3468. $as_echo "no" >&6; }
  3469. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3470. fi
  3471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3472. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3473. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3474. else
  3475. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3476. fi
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wundef" >&5
  3478. $as_echo_n "checking whether compiler supports -Wundef... " >&6; }
  3479. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3480. T_APPEND_V=-Wundef
  3481. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3482. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3483. else
  3484. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3485. fi
  3486. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3487. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3488. else
  3489. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3490. fi
  3491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3492. /* end confdefs.h. */
  3493. int
  3494. main ()
  3495. {
  3496. return 0;
  3497. ;
  3498. return 0;
  3499. }
  3500. _ACEOF
  3501. if ac_fn_c_try_compile "$LINENO"; then :
  3502. je_cv_cflags_added=-Wundef
  3503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3504. $as_echo "yes" >&6; }
  3505. else
  3506. je_cv_cflags_added=
  3507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3508. $as_echo "no" >&6; }
  3509. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3510. fi
  3511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3512. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3513. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3514. else
  3515. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3516. fi
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-zero-length" >&5
  3518. $as_echo_n "checking whether compiler supports -Wno-format-zero-length... " >&6; }
  3519. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3520. T_APPEND_V=-Wno-format-zero-length
  3521. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3522. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3523. else
  3524. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3525. fi
  3526. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3527. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3528. else
  3529. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3530. fi
  3531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3532. /* end confdefs.h. */
  3533. int
  3534. main ()
  3535. {
  3536. return 0;
  3537. ;
  3538. return 0;
  3539. }
  3540. _ACEOF
  3541. if ac_fn_c_try_compile "$LINENO"; then :
  3542. je_cv_cflags_added=-Wno-format-zero-length
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3544. $as_echo "yes" >&6; }
  3545. else
  3546. je_cv_cflags_added=
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3548. $as_echo "no" >&6; }
  3549. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3550. fi
  3551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3552. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3553. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3554. else
  3555. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3556. fi
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
  3558. $as_echo_n "checking whether compiler supports -pipe... " >&6; }
  3559. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3560. T_APPEND_V=-pipe
  3561. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3562. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3563. else
  3564. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3565. fi
  3566. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3567. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3568. else
  3569. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3570. fi
  3571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3572. /* end confdefs.h. */
  3573. int
  3574. main ()
  3575. {
  3576. return 0;
  3577. ;
  3578. return 0;
  3579. }
  3580. _ACEOF
  3581. if ac_fn_c_try_compile "$LINENO"; then :
  3582. je_cv_cflags_added=-pipe
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3584. $as_echo "yes" >&6; }
  3585. else
  3586. je_cv_cflags_added=
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3588. $as_echo "no" >&6; }
  3589. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3590. fi
  3591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3592. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3593. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3594. else
  3595. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3596. fi
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
  3598. $as_echo_n "checking whether compiler supports -g3... " >&6; }
  3599. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3600. T_APPEND_V=-g3
  3601. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3602. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3603. else
  3604. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3605. fi
  3606. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3607. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3608. else
  3609. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3610. fi
  3611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3612. /* end confdefs.h. */
  3613. int
  3614. main ()
  3615. {
  3616. return 0;
  3617. ;
  3618. return 0;
  3619. }
  3620. _ACEOF
  3621. if ac_fn_c_try_compile "$LINENO"; then :
  3622. je_cv_cflags_added=-g3
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3624. $as_echo "yes" >&6; }
  3625. else
  3626. je_cv_cflags_added=
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3628. $as_echo "no" >&6; }
  3629. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3630. fi
  3631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3632. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3633. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3634. else
  3635. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3636. fi
  3637. elif test "x$je_cv_msvc" = "xyes" ; then
  3638. CC="$CC -nologo"
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5
  3640. $as_echo_n "checking whether compiler supports -Zi... " >&6; }
  3641. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3642. T_APPEND_V=-Zi
  3643. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3644. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3645. else
  3646. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3647. fi
  3648. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3649. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3650. else
  3651. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3652. fi
  3653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3654. /* end confdefs.h. */
  3655. int
  3656. main ()
  3657. {
  3658. return 0;
  3659. ;
  3660. return 0;
  3661. }
  3662. _ACEOF
  3663. if ac_fn_c_try_compile "$LINENO"; then :
  3664. je_cv_cflags_added=-Zi
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3666. $as_echo "yes" >&6; }
  3667. else
  3668. je_cv_cflags_added=
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3670. $as_echo "no" >&6; }
  3671. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3672. fi
  3673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3674. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3675. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3676. else
  3677. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3678. fi
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5
  3680. $as_echo_n "checking whether compiler supports -MT... " >&6; }
  3681. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3682. T_APPEND_V=-MT
  3683. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3684. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3685. else
  3686. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3687. fi
  3688. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3689. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3690. else
  3691. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3692. fi
  3693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3694. /* end confdefs.h. */
  3695. int
  3696. main ()
  3697. {
  3698. return 0;
  3699. ;
  3700. return 0;
  3701. }
  3702. _ACEOF
  3703. if ac_fn_c_try_compile "$LINENO"; then :
  3704. je_cv_cflags_added=-MT
  3705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3706. $as_echo "yes" >&6; }
  3707. else
  3708. je_cv_cflags_added=
  3709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3710. $as_echo "no" >&6; }
  3711. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3712. fi
  3713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3714. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3715. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3716. else
  3717. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3718. fi
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5
  3720. $as_echo_n "checking whether compiler supports -W3... " >&6; }
  3721. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3722. T_APPEND_V=-W3
  3723. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3724. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3725. else
  3726. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3727. fi
  3728. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3729. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3730. else
  3731. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3732. fi
  3733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3734. /* end confdefs.h. */
  3735. int
  3736. main ()
  3737. {
  3738. return 0;
  3739. ;
  3740. return 0;
  3741. }
  3742. _ACEOF
  3743. if ac_fn_c_try_compile "$LINENO"; then :
  3744. je_cv_cflags_added=-W3
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3746. $as_echo "yes" >&6; }
  3747. else
  3748. je_cv_cflags_added=
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3750. $as_echo "no" >&6; }
  3751. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3752. fi
  3753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3754. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3755. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3756. else
  3757. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3758. fi
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5
  3760. $as_echo_n "checking whether compiler supports -FS... " >&6; }
  3761. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3762. T_APPEND_V=-FS
  3763. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3764. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3765. else
  3766. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3767. fi
  3768. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3769. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3770. else
  3771. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3772. fi
  3773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3774. /* end confdefs.h. */
  3775. int
  3776. main ()
  3777. {
  3778. return 0;
  3779. ;
  3780. return 0;
  3781. }
  3782. _ACEOF
  3783. if ac_fn_c_try_compile "$LINENO"; then :
  3784. je_cv_cflags_added=-FS
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3786. $as_echo "yes" >&6; }
  3787. else
  3788. je_cv_cflags_added=
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3790. $as_echo "no" >&6; }
  3791. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3792. fi
  3793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3794. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3795. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3796. else
  3797. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3798. fi
  3799. T_APPEND_V=-I${srcdir}/include/msvc_compat
  3800. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3801. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  3802. else
  3803. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  3804. fi
  3805. fi
  3806. if test "x$je_cv_cray" = "xyes" ; then
  3807. if test "x$je_cv_cray_84" = "xyes" ; then
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hipa2" >&5
  3809. $as_echo_n "checking whether compiler supports -hipa2... " >&6; }
  3810. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3811. T_APPEND_V=-hipa2
  3812. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3813. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3814. else
  3815. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3816. fi
  3817. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3818. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3819. else
  3820. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3821. fi
  3822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3823. /* end confdefs.h. */
  3824. int
  3825. main ()
  3826. {
  3827. return 0;
  3828. ;
  3829. return 0;
  3830. }
  3831. _ACEOF
  3832. if ac_fn_c_try_compile "$LINENO"; then :
  3833. je_cv_cflags_added=-hipa2
  3834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3835. $as_echo "yes" >&6; }
  3836. else
  3837. je_cv_cflags_added=
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3839. $as_echo "no" >&6; }
  3840. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3841. fi
  3842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  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. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnognu" >&5
  3849. $as_echo_n "checking whether compiler supports -hnognu... " >&6; }
  3850. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3851. T_APPEND_V=-hnognu
  3852. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3853. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3854. else
  3855. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3856. fi
  3857. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3858. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3859. else
  3860. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3861. fi
  3862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3863. /* end confdefs.h. */
  3864. int
  3865. main ()
  3866. {
  3867. return 0;
  3868. ;
  3869. return 0;
  3870. }
  3871. _ACEOF
  3872. if ac_fn_c_try_compile "$LINENO"; then :
  3873. je_cv_cflags_added=-hnognu
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3875. $as_echo "yes" >&6; }
  3876. else
  3877. je_cv_cflags_added=
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3879. $as_echo "no" >&6; }
  3880. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3881. fi
  3882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3883. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3884. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3885. else
  3886. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3887. fi
  3888. fi
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=128" >&5
  3890. $as_echo_n "checking whether compiler supports -hnomessage=128... " >&6; }
  3891. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3892. T_APPEND_V=-hnomessage=128
  3893. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3894. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3895. else
  3896. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3897. fi
  3898. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3899. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3900. else
  3901. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3902. fi
  3903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3904. /* end confdefs.h. */
  3905. int
  3906. main ()
  3907. {
  3908. return 0;
  3909. ;
  3910. return 0;
  3911. }
  3912. _ACEOF
  3913. if ac_fn_c_try_compile "$LINENO"; then :
  3914. je_cv_cflags_added=-hnomessage=128
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3916. $as_echo "yes" >&6; }
  3917. else
  3918. je_cv_cflags_added=
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3920. $as_echo "no" >&6; }
  3921. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3922. fi
  3923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3924. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3925. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3926. else
  3927. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3928. fi
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=1357" >&5
  3930. $as_echo_n "checking whether compiler supports -hnomessage=1357... " >&6; }
  3931. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  3932. T_APPEND_V=-hnomessage=1357
  3933. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  3934. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  3935. else
  3936. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  3937. fi
  3938. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3939. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3940. else
  3941. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3942. fi
  3943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3944. /* end confdefs.h. */
  3945. int
  3946. main ()
  3947. {
  3948. return 0;
  3949. ;
  3950. return 0;
  3951. }
  3952. _ACEOF
  3953. if ac_fn_c_try_compile "$LINENO"; then :
  3954. je_cv_cflags_added=-hnomessage=1357
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3956. $as_echo "yes" >&6; }
  3957. else
  3958. je_cv_cflags_added=
  3959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3960. $as_echo "no" >&6; }
  3961. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  3962. fi
  3963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3964. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  3965. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  3966. else
  3967. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  3968. fi
  3969. fi
  3970. ac_ext=c
  3971. ac_cpp='$CPP $CPPFLAGS'
  3972. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3973. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3974. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3976. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3977. # On Suns, sometimes $CPP names a directory.
  3978. if test -n "$CPP" && test -d "$CPP"; then
  3979. CPP=
  3980. fi
  3981. if test -z "$CPP"; then
  3982. if ${ac_cv_prog_CPP+:} false; then :
  3983. $as_echo_n "(cached) " >&6
  3984. else
  3985. # Double quotes because CPP needs to be expanded
  3986. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3987. do
  3988. ac_preproc_ok=false
  3989. for ac_c_preproc_warn_flag in '' yes
  3990. do
  3991. # Use a header file that comes with gcc, so configuring glibc
  3992. # with a fresh cross-compiler works.
  3993. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3994. # <limits.h> exists even on freestanding compilers.
  3995. # On the NeXT, cc -E runs the code through the compiler's parser,
  3996. # not just through cpp. "Syntax error" is here to catch this case.
  3997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3998. /* end confdefs.h. */
  3999. #ifdef __STDC__
  4000. # include <limits.h>
  4001. #else
  4002. # include <assert.h>
  4003. #endif
  4004. Syntax error
  4005. _ACEOF
  4006. if ac_fn_c_try_cpp "$LINENO"; then :
  4007. else
  4008. # Broken: fails on valid input.
  4009. continue
  4010. fi
  4011. rm -f conftest.err conftest.i conftest.$ac_ext
  4012. # OK, works on sane cases. Now check whether nonexistent headers
  4013. # can be detected and how.
  4014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4015. /* end confdefs.h. */
  4016. #include <ac_nonexistent.h>
  4017. _ACEOF
  4018. if ac_fn_c_try_cpp "$LINENO"; then :
  4019. # Broken: success on invalid input.
  4020. continue
  4021. else
  4022. # Passes both tests.
  4023. ac_preproc_ok=:
  4024. break
  4025. fi
  4026. rm -f conftest.err conftest.i conftest.$ac_ext
  4027. done
  4028. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4029. rm -f conftest.i conftest.err conftest.$ac_ext
  4030. if $ac_preproc_ok; then :
  4031. break
  4032. fi
  4033. done
  4034. ac_cv_prog_CPP=$CPP
  4035. fi
  4036. CPP=$ac_cv_prog_CPP
  4037. else
  4038. ac_cv_prog_CPP=$CPP
  4039. fi
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4041. $as_echo "$CPP" >&6; }
  4042. ac_preproc_ok=false
  4043. for ac_c_preproc_warn_flag in '' yes
  4044. do
  4045. # Use a header file that comes with gcc, so configuring glibc
  4046. # with a fresh cross-compiler works.
  4047. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4048. # <limits.h> exists even on freestanding compilers.
  4049. # On the NeXT, cc -E runs the code through the compiler's parser,
  4050. # not just through cpp. "Syntax error" is here to catch this case.
  4051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4052. /* end confdefs.h. */
  4053. #ifdef __STDC__
  4054. # include <limits.h>
  4055. #else
  4056. # include <assert.h>
  4057. #endif
  4058. Syntax error
  4059. _ACEOF
  4060. if ac_fn_c_try_cpp "$LINENO"; then :
  4061. else
  4062. # Broken: fails on valid input.
  4063. continue
  4064. fi
  4065. rm -f conftest.err conftest.i conftest.$ac_ext
  4066. # OK, works on sane cases. Now check whether nonexistent headers
  4067. # can be detected and how.
  4068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4069. /* end confdefs.h. */
  4070. #include <ac_nonexistent.h>
  4071. _ACEOF
  4072. if ac_fn_c_try_cpp "$LINENO"; then :
  4073. # Broken: success on invalid input.
  4074. continue
  4075. else
  4076. # Passes both tests.
  4077. ac_preproc_ok=:
  4078. break
  4079. fi
  4080. rm -f conftest.err conftest.i conftest.$ac_ext
  4081. done
  4082. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4083. rm -f conftest.i conftest.err conftest.$ac_ext
  4084. if $ac_preproc_ok; then :
  4085. else
  4086. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4087. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4088. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4089. See \`config.log' for more details" "$LINENO" 5; }
  4090. fi
  4091. ac_ext=c
  4092. ac_cpp='$CPP $CPPFLAGS'
  4093. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4094. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4095. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4096. # Check whether --enable-cxx was given.
  4097. if test "${enable_cxx+set}" = set; then :
  4098. enableval=$enable_cxx; if test "x$enable_cxx" = "xno" ; then
  4099. enable_cxx="0"
  4100. else
  4101. enable_cxx="1"
  4102. fi
  4103. else
  4104. enable_cxx="1"
  4105. fi
  4106. if test "x$enable_cxx" = "x1" ; then
  4107. # ===========================================================================
  4108. # http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
  4109. # ===========================================================================
  4110. #
  4111. # SYNOPSIS
  4112. #
  4113. # AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
  4114. #
  4115. # DESCRIPTION
  4116. #
  4117. # Check for baseline language coverage in the compiler for the specified
  4118. # version of the C++ standard. If necessary, add switches to CXX and
  4119. # CXXCPP to enable support. VERSION may be '11' (for the C++11 standard)
  4120. # or '14' (for the C++14 standard).
  4121. #
  4122. # The second argument, if specified, indicates whether you insist on an
  4123. # extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
  4124. # -std=c++11). If neither is specified, you get whatever works, with
  4125. # preference for an extended mode.
  4126. #
  4127. # The third argument, if specified 'mandatory' or if left unspecified,
  4128. # indicates that baseline support for the specified C++ standard is
  4129. # required and that the macro should error out if no mode with that
  4130. # support is found. If specified 'optional', then configuration proceeds
  4131. # regardless, after defining HAVE_CXX${VERSION} if and only if a
  4132. # supporting mode is found.
  4133. #
  4134. # LICENSE
  4135. #
  4136. # Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
  4137. # Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
  4138. # Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
  4139. # Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com>
  4140. # Copyright (c) 2015 Paul Norman <penorman@mac.com>
  4141. # Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu>
  4142. #
  4143. # Copying and distribution of this file, with or without modification, are
  4144. # permitted in any medium without royalty provided the copyright notice
  4145. # and this notice are preserved. This file is offered as-is, without any
  4146. # warranty.
  4147. #serial 4
  4148. ac_ext=cpp
  4149. ac_cpp='$CXXCPP $CPPFLAGS'
  4150. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4151. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4152. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4153. if test -z "$CXX"; then
  4154. if test -n "$CCC"; then
  4155. CXX=$CCC
  4156. else
  4157. if test -n "$ac_tool_prefix"; then
  4158. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4159. do
  4160. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4161. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4163. $as_echo_n "checking for $ac_word... " >&6; }
  4164. if ${ac_cv_prog_CXX+:} false; then :
  4165. $as_echo_n "(cached) " >&6
  4166. else
  4167. if test -n "$CXX"; then
  4168. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4169. else
  4170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4171. for as_dir in $PATH
  4172. do
  4173. IFS=$as_save_IFS
  4174. test -z "$as_dir" && as_dir=.
  4175. for ac_exec_ext in '' $ac_executable_extensions; do
  4176. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4177. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4179. break 2
  4180. fi
  4181. done
  4182. done
  4183. IFS=$as_save_IFS
  4184. fi
  4185. fi
  4186. CXX=$ac_cv_prog_CXX
  4187. if test -n "$CXX"; then
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4189. $as_echo "$CXX" >&6; }
  4190. else
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4192. $as_echo "no" >&6; }
  4193. fi
  4194. test -n "$CXX" && break
  4195. done
  4196. fi
  4197. if test -z "$CXX"; then
  4198. ac_ct_CXX=$CXX
  4199. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4200. do
  4201. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4202. set dummy $ac_prog; ac_word=$2
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4204. $as_echo_n "checking for $ac_word... " >&6; }
  4205. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4206. $as_echo_n "(cached) " >&6
  4207. else
  4208. if test -n "$ac_ct_CXX"; then
  4209. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4210. else
  4211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4212. for as_dir in $PATH
  4213. do
  4214. IFS=$as_save_IFS
  4215. test -z "$as_dir" && as_dir=.
  4216. for ac_exec_ext in '' $ac_executable_extensions; do
  4217. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4218. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4220. break 2
  4221. fi
  4222. done
  4223. done
  4224. IFS=$as_save_IFS
  4225. fi
  4226. fi
  4227. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4228. if test -n "$ac_ct_CXX"; then
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4230. $as_echo "$ac_ct_CXX" >&6; }
  4231. else
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4233. $as_echo "no" >&6; }
  4234. fi
  4235. test -n "$ac_ct_CXX" && break
  4236. done
  4237. if test "x$ac_ct_CXX" = x; then
  4238. CXX="g++"
  4239. else
  4240. case $cross_compiling:$ac_tool_warned in
  4241. yes:)
  4242. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4243. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4244. ac_tool_warned=yes ;;
  4245. esac
  4246. CXX=$ac_ct_CXX
  4247. fi
  4248. fi
  4249. fi
  4250. fi
  4251. # Provide some information about the compiler.
  4252. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4253. set X $ac_compile
  4254. ac_compiler=$2
  4255. for ac_option in --version -v -V -qversion; do
  4256. { { ac_try="$ac_compiler $ac_option >&5"
  4257. case "(($ac_try" in
  4258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4259. *) ac_try_echo=$ac_try;;
  4260. esac
  4261. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4262. $as_echo "$ac_try_echo"; } >&5
  4263. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4264. ac_status=$?
  4265. if test -s conftest.err; then
  4266. sed '10a\
  4267. ... rest of stderr output deleted ...
  4268. 10q' conftest.err >conftest.er1
  4269. cat conftest.er1 >&5
  4270. fi
  4271. rm -f conftest.er1 conftest.err
  4272. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4273. test $ac_status = 0; }
  4274. done
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4276. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4277. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4278. $as_echo_n "(cached) " >&6
  4279. else
  4280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4281. /* end confdefs.h. */
  4282. int
  4283. main ()
  4284. {
  4285. #ifndef __GNUC__
  4286. choke me
  4287. #endif
  4288. ;
  4289. return 0;
  4290. }
  4291. _ACEOF
  4292. if ac_fn_cxx_try_compile "$LINENO"; then :
  4293. ac_compiler_gnu=yes
  4294. else
  4295. ac_compiler_gnu=no
  4296. fi
  4297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4298. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4299. fi
  4300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4301. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4302. if test $ac_compiler_gnu = yes; then
  4303. GXX=yes
  4304. else
  4305. GXX=
  4306. fi
  4307. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4308. ac_save_CXXFLAGS=$CXXFLAGS
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4310. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4311. if ${ac_cv_prog_cxx_g+:} false; then :
  4312. $as_echo_n "(cached) " >&6
  4313. else
  4314. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4315. ac_cxx_werror_flag=yes
  4316. ac_cv_prog_cxx_g=no
  4317. CXXFLAGS="-g"
  4318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4319. /* end confdefs.h. */
  4320. int
  4321. main ()
  4322. {
  4323. ;
  4324. return 0;
  4325. }
  4326. _ACEOF
  4327. if ac_fn_cxx_try_compile "$LINENO"; then :
  4328. ac_cv_prog_cxx_g=yes
  4329. else
  4330. CXXFLAGS=""
  4331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4332. /* end confdefs.h. */
  4333. int
  4334. main ()
  4335. {
  4336. ;
  4337. return 0;
  4338. }
  4339. _ACEOF
  4340. if ac_fn_cxx_try_compile "$LINENO"; then :
  4341. else
  4342. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4343. CXXFLAGS="-g"
  4344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4345. /* end confdefs.h. */
  4346. int
  4347. main ()
  4348. {
  4349. ;
  4350. return 0;
  4351. }
  4352. _ACEOF
  4353. if ac_fn_cxx_try_compile "$LINENO"; then :
  4354. ac_cv_prog_cxx_g=yes
  4355. fi
  4356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4357. fi
  4358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4359. fi
  4360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4361. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4362. fi
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4364. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4365. if test "$ac_test_CXXFLAGS" = set; then
  4366. CXXFLAGS=$ac_save_CXXFLAGS
  4367. elif test $ac_cv_prog_cxx_g = yes; then
  4368. if test "$GXX" = yes; then
  4369. CXXFLAGS="-g -O2"
  4370. else
  4371. CXXFLAGS="-g"
  4372. fi
  4373. else
  4374. if test "$GXX" = yes; then
  4375. CXXFLAGS="-O2"
  4376. else
  4377. CXXFLAGS=
  4378. fi
  4379. fi
  4380. ac_ext=cpp
  4381. ac_cpp='$CXXCPP $CPPFLAGS'
  4382. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4383. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4384. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4385. ax_cxx_compile_cxx14_required=false
  4386. ac_ext=cpp
  4387. ac_cpp='$CXXCPP $CPPFLAGS'
  4388. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4389. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4390. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4391. ac_success=no
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
  4393. $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
  4394. if ${ax_cv_cxx_compile_cxx14+:} false; then :
  4395. $as_echo_n "(cached) " >&6
  4396. else
  4397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4398. /* end confdefs.h. */
  4399. // If the compiler admits that it is not ready for C++11, why torture it?
  4400. // Hopefully, this will speed up the test.
  4401. #ifndef __cplusplus
  4402. #error "This is not a C++ compiler"
  4403. #elif __cplusplus < 201103L
  4404. #error "This is not a C++11 compiler"
  4405. #else
  4406. namespace cxx11
  4407. {
  4408. namespace test_static_assert
  4409. {
  4410. template <typename T>
  4411. struct check
  4412. {
  4413. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  4414. };
  4415. }
  4416. namespace test_final_override
  4417. {
  4418. struct Base
  4419. {
  4420. virtual void f() {}
  4421. };
  4422. struct Derived : public Base
  4423. {
  4424. virtual void f() override {}
  4425. };
  4426. }
  4427. namespace test_double_right_angle_brackets
  4428. {
  4429. template < typename T >
  4430. struct check {};
  4431. typedef check<void> single_type;
  4432. typedef check<check<void>> double_type;
  4433. typedef check<check<check<void>>> triple_type;
  4434. typedef check<check<check<check<void>>>> quadruple_type;
  4435. }
  4436. namespace test_decltype
  4437. {
  4438. int
  4439. f()
  4440. {
  4441. int a = 1;
  4442. decltype(a) b = 2;
  4443. return a + b;
  4444. }
  4445. }
  4446. namespace test_type_deduction
  4447. {
  4448. template < typename T1, typename T2 >
  4449. struct is_same
  4450. {
  4451. static const bool value = false;
  4452. };
  4453. template < typename T >
  4454. struct is_same<T, T>
  4455. {
  4456. static const bool value = true;
  4457. };
  4458. template < typename T1, typename T2 >
  4459. auto
  4460. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  4461. {
  4462. return a1 + a2;
  4463. }
  4464. int
  4465. test(const int c, volatile int v)
  4466. {
  4467. static_assert(is_same<int, decltype(0)>::value == true, "");
  4468. static_assert(is_same<int, decltype(c)>::value == false, "");
  4469. static_assert(is_same<int, decltype(v)>::value == false, "");
  4470. auto ac = c;
  4471. auto av = v;
  4472. auto sumi = ac + av + 'x';
  4473. auto sumf = ac + av + 1.0;
  4474. static_assert(is_same<int, decltype(ac)>::value == true, "");
  4475. static_assert(is_same<int, decltype(av)>::value == true, "");
  4476. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  4477. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  4478. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  4479. return (sumf > 0.0) ? sumi : add(c, v);
  4480. }
  4481. }
  4482. namespace test_noexcept
  4483. {
  4484. int f() { return 0; }
  4485. int g() noexcept { return 0; }
  4486. static_assert(noexcept(f()) == false, "");
  4487. static_assert(noexcept(g()) == true, "");
  4488. }
  4489. namespace test_constexpr
  4490. {
  4491. template < typename CharT >
  4492. unsigned long constexpr
  4493. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  4494. {
  4495. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  4496. }
  4497. template < typename CharT >
  4498. unsigned long constexpr
  4499. strlen_c(const CharT *const s) noexcept
  4500. {
  4501. return strlen_c_r(s, 0UL);
  4502. }
  4503. static_assert(strlen_c("") == 0UL, "");
  4504. static_assert(strlen_c("1") == 1UL, "");
  4505. static_assert(strlen_c("example") == 7UL, "");
  4506. static_assert(strlen_c("another\0example") == 7UL, "");
  4507. }
  4508. namespace test_rvalue_references
  4509. {
  4510. template < int N >
  4511. struct answer
  4512. {
  4513. static constexpr int value = N;
  4514. };
  4515. answer<1> f(int&) { return answer<1>(); }
  4516. answer<2> f(const int&) { return answer<2>(); }
  4517. answer<3> f(int&&) { return answer<3>(); }
  4518. void
  4519. test()
  4520. {
  4521. int i = 0;
  4522. const int c = 0;
  4523. static_assert(decltype(f(i))::value == 1, "");
  4524. static_assert(decltype(f(c))::value == 2, "");
  4525. static_assert(decltype(f(0))::value == 3, "");
  4526. }
  4527. }
  4528. namespace test_uniform_initialization
  4529. {
  4530. struct test
  4531. {
  4532. static const int zero {};
  4533. static const int one {1};
  4534. };
  4535. static_assert(test::zero == 0, "");
  4536. static_assert(test::one == 1, "");
  4537. }
  4538. namespace test_lambdas
  4539. {
  4540. void
  4541. test1()
  4542. {
  4543. auto lambda1 = [](){};
  4544. auto lambda2 = lambda1;
  4545. lambda1();
  4546. lambda2();
  4547. }
  4548. int
  4549. test2()
  4550. {
  4551. auto a = [](int i, int j){ return i + j; }(1, 2);
  4552. auto b = []() -> int { return '0'; }();
  4553. auto c = [=](){ return a + b; }();
  4554. auto d = [&](){ return c; }();
  4555. auto e = [a, &b](int x) mutable {
  4556. const auto identity = [](int y){ return y; };
  4557. for (auto i = 0; i < a; ++i)
  4558. a += b--;
  4559. return x + identity(a + b);
  4560. }(0);
  4561. return a + b + c + d + e;
  4562. }
  4563. int
  4564. test3()
  4565. {
  4566. const auto nullary = [](){ return 0; };
  4567. const auto unary = [](int x){ return x; };
  4568. using nullary_t = decltype(nullary);
  4569. using unary_t = decltype(unary);
  4570. const auto higher1st = [](nullary_t f){ return f(); };
  4571. const auto higher2nd = [unary](nullary_t f1){
  4572. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  4573. };
  4574. return higher1st(nullary) + higher2nd(nullary)(unary);
  4575. }
  4576. }
  4577. namespace test_variadic_templates
  4578. {
  4579. template <int...>
  4580. struct sum;
  4581. template <int N0, int... N1toN>
  4582. struct sum<N0, N1toN...>
  4583. {
  4584. static constexpr auto value = N0 + sum<N1toN...>::value;
  4585. };
  4586. template <>
  4587. struct sum<>
  4588. {
  4589. static constexpr auto value = 0;
  4590. };
  4591. static_assert(sum<>::value == 0, "");
  4592. static_assert(sum<1>::value == 1, "");
  4593. static_assert(sum<23>::value == 23, "");
  4594. static_assert(sum<1, 2>::value == 3, "");
  4595. static_assert(sum<5, 5, 11>::value == 21, "");
  4596. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  4597. }
  4598. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  4599. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  4600. // because of this.
  4601. namespace test_template_alias_sfinae
  4602. {
  4603. struct foo {};
  4604. template<typename T>
  4605. using member = typename T::member_type;
  4606. template<typename T>
  4607. void func(...) {}
  4608. template<typename T>
  4609. void func(member<T>*) {}
  4610. void test();
  4611. void test() { func<foo>(0); }
  4612. }
  4613. } // namespace cxx11
  4614. #endif // __cplusplus >= 201103L
  4615. // If the compiler admits that it is not ready for C++14, why torture it?
  4616. // Hopefully, this will speed up the test.
  4617. #ifndef __cplusplus
  4618. #error "This is not a C++ compiler"
  4619. #elif __cplusplus < 201402L
  4620. #error "This is not a C++14 compiler"
  4621. #else
  4622. namespace cxx14
  4623. {
  4624. namespace test_polymorphic_lambdas
  4625. {
  4626. int
  4627. test()
  4628. {
  4629. const auto lambda = [](auto&&... args){
  4630. const auto istiny = [](auto x){
  4631. return (sizeof(x) == 1UL) ? 1 : 0;
  4632. };
  4633. const int aretiny[] = { istiny(args)... };
  4634. return aretiny[0];
  4635. };
  4636. return lambda(1, 1L, 1.0f, '1');
  4637. }
  4638. }
  4639. namespace test_binary_literals
  4640. {
  4641. constexpr auto ivii = 0b0000000000101010;
  4642. static_assert(ivii == 42, "wrong value");
  4643. }
  4644. namespace test_generalized_constexpr
  4645. {
  4646. template < typename CharT >
  4647. constexpr unsigned long
  4648. strlen_c(const CharT *const s) noexcept
  4649. {
  4650. auto length = 0UL;
  4651. for (auto p = s; *p; ++p)
  4652. ++length;
  4653. return length;
  4654. }
  4655. static_assert(strlen_c("") == 0UL, "");
  4656. static_assert(strlen_c("x") == 1UL, "");
  4657. static_assert(strlen_c("test") == 4UL, "");
  4658. static_assert(strlen_c("another\0test") == 7UL, "");
  4659. }
  4660. namespace test_lambda_init_capture
  4661. {
  4662. int
  4663. test()
  4664. {
  4665. auto x = 0;
  4666. const auto lambda1 = [a = x](int b){ return a + b; };
  4667. const auto lambda2 = [a = lambda1(x)](){ return a; };
  4668. return lambda2();
  4669. }
  4670. }
  4671. namespace test_digit_seperators
  4672. {
  4673. constexpr auto ten_million = 100'000'000;
  4674. static_assert(ten_million == 100000000, "");
  4675. }
  4676. namespace test_return_type_deduction
  4677. {
  4678. auto f(int& x) { return x; }
  4679. decltype(auto) g(int& x) { return x; }
  4680. template < typename T1, typename T2 >
  4681. struct is_same
  4682. {
  4683. static constexpr auto value = false;
  4684. };
  4685. template < typename T >
  4686. struct is_same<T, T>
  4687. {
  4688. static constexpr auto value = true;
  4689. };
  4690. int
  4691. test()
  4692. {
  4693. auto x = 0;
  4694. static_assert(is_same<int, decltype(f(x))>::value, "");
  4695. static_assert(is_same<int&, decltype(g(x))>::value, "");
  4696. return x;
  4697. }
  4698. }
  4699. } // namespace cxx14
  4700. #endif // __cplusplus >= 201402L
  4701. _ACEOF
  4702. if ac_fn_cxx_try_compile "$LINENO"; then :
  4703. ax_cv_cxx_compile_cxx14=yes
  4704. else
  4705. ax_cv_cxx_compile_cxx14=no
  4706. fi
  4707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4708. fi
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
  4710. $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
  4711. if test x$ax_cv_cxx_compile_cxx14 = xyes; then
  4712. ac_success=yes
  4713. fi
  4714. if test x$ac_success = xno; then
  4715. for switch in -std=c++14 -std=c++0x +std=c++14 "-h std=c++14"; do
  4716. cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
  4718. $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
  4719. if eval \${$cachevar+:} false; then :
  4720. $as_echo_n "(cached) " >&6
  4721. else
  4722. ac_save_CXX="$CXX"
  4723. CXX="$CXX $switch"
  4724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4725. /* end confdefs.h. */
  4726. // If the compiler admits that it is not ready for C++11, why torture it?
  4727. // Hopefully, this will speed up the test.
  4728. #ifndef __cplusplus
  4729. #error "This is not a C++ compiler"
  4730. #elif __cplusplus < 201103L
  4731. #error "This is not a C++11 compiler"
  4732. #else
  4733. namespace cxx11
  4734. {
  4735. namespace test_static_assert
  4736. {
  4737. template <typename T>
  4738. struct check
  4739. {
  4740. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  4741. };
  4742. }
  4743. namespace test_final_override
  4744. {
  4745. struct Base
  4746. {
  4747. virtual void f() {}
  4748. };
  4749. struct Derived : public Base
  4750. {
  4751. virtual void f() override {}
  4752. };
  4753. }
  4754. namespace test_double_right_angle_brackets
  4755. {
  4756. template < typename T >
  4757. struct check {};
  4758. typedef check<void> single_type;
  4759. typedef check<check<void>> double_type;
  4760. typedef check<check<check<void>>> triple_type;
  4761. typedef check<check<check<check<void>>>> quadruple_type;
  4762. }
  4763. namespace test_decltype
  4764. {
  4765. int
  4766. f()
  4767. {
  4768. int a = 1;
  4769. decltype(a) b = 2;
  4770. return a + b;
  4771. }
  4772. }
  4773. namespace test_type_deduction
  4774. {
  4775. template < typename T1, typename T2 >
  4776. struct is_same
  4777. {
  4778. static const bool value = false;
  4779. };
  4780. template < typename T >
  4781. struct is_same<T, T>
  4782. {
  4783. static const bool value = true;
  4784. };
  4785. template < typename T1, typename T2 >
  4786. auto
  4787. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  4788. {
  4789. return a1 + a2;
  4790. }
  4791. int
  4792. test(const int c, volatile int v)
  4793. {
  4794. static_assert(is_same<int, decltype(0)>::value == true, "");
  4795. static_assert(is_same<int, decltype(c)>::value == false, "");
  4796. static_assert(is_same<int, decltype(v)>::value == false, "");
  4797. auto ac = c;
  4798. auto av = v;
  4799. auto sumi = ac + av + 'x';
  4800. auto sumf = ac + av + 1.0;
  4801. static_assert(is_same<int, decltype(ac)>::value == true, "");
  4802. static_assert(is_same<int, decltype(av)>::value == true, "");
  4803. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  4804. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  4805. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  4806. return (sumf > 0.0) ? sumi : add(c, v);
  4807. }
  4808. }
  4809. namespace test_noexcept
  4810. {
  4811. int f() { return 0; }
  4812. int g() noexcept { return 0; }
  4813. static_assert(noexcept(f()) == false, "");
  4814. static_assert(noexcept(g()) == true, "");
  4815. }
  4816. namespace test_constexpr
  4817. {
  4818. template < typename CharT >
  4819. unsigned long constexpr
  4820. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  4821. {
  4822. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  4823. }
  4824. template < typename CharT >
  4825. unsigned long constexpr
  4826. strlen_c(const CharT *const s) noexcept
  4827. {
  4828. return strlen_c_r(s, 0UL);
  4829. }
  4830. static_assert(strlen_c("") == 0UL, "");
  4831. static_assert(strlen_c("1") == 1UL, "");
  4832. static_assert(strlen_c("example") == 7UL, "");
  4833. static_assert(strlen_c("another\0example") == 7UL, "");
  4834. }
  4835. namespace test_rvalue_references
  4836. {
  4837. template < int N >
  4838. struct answer
  4839. {
  4840. static constexpr int value = N;
  4841. };
  4842. answer<1> f(int&) { return answer<1>(); }
  4843. answer<2> f(const int&) { return answer<2>(); }
  4844. answer<3> f(int&&) { return answer<3>(); }
  4845. void
  4846. test()
  4847. {
  4848. int i = 0;
  4849. const int c = 0;
  4850. static_assert(decltype(f(i))::value == 1, "");
  4851. static_assert(decltype(f(c))::value == 2, "");
  4852. static_assert(decltype(f(0))::value == 3, "");
  4853. }
  4854. }
  4855. namespace test_uniform_initialization
  4856. {
  4857. struct test
  4858. {
  4859. static const int zero {};
  4860. static const int one {1};
  4861. };
  4862. static_assert(test::zero == 0, "");
  4863. static_assert(test::one == 1, "");
  4864. }
  4865. namespace test_lambdas
  4866. {
  4867. void
  4868. test1()
  4869. {
  4870. auto lambda1 = [](){};
  4871. auto lambda2 = lambda1;
  4872. lambda1();
  4873. lambda2();
  4874. }
  4875. int
  4876. test2()
  4877. {
  4878. auto a = [](int i, int j){ return i + j; }(1, 2);
  4879. auto b = []() -> int { return '0'; }();
  4880. auto c = [=](){ return a + b; }();
  4881. auto d = [&](){ return c; }();
  4882. auto e = [a, &b](int x) mutable {
  4883. const auto identity = [](int y){ return y; };
  4884. for (auto i = 0; i < a; ++i)
  4885. a += b--;
  4886. return x + identity(a + b);
  4887. }(0);
  4888. return a + b + c + d + e;
  4889. }
  4890. int
  4891. test3()
  4892. {
  4893. const auto nullary = [](){ return 0; };
  4894. const auto unary = [](int x){ return x; };
  4895. using nullary_t = decltype(nullary);
  4896. using unary_t = decltype(unary);
  4897. const auto higher1st = [](nullary_t f){ return f(); };
  4898. const auto higher2nd = [unary](nullary_t f1){
  4899. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  4900. };
  4901. return higher1st(nullary) + higher2nd(nullary)(unary);
  4902. }
  4903. }
  4904. namespace test_variadic_templates
  4905. {
  4906. template <int...>
  4907. struct sum;
  4908. template <int N0, int... N1toN>
  4909. struct sum<N0, N1toN...>
  4910. {
  4911. static constexpr auto value = N0 + sum<N1toN...>::value;
  4912. };
  4913. template <>
  4914. struct sum<>
  4915. {
  4916. static constexpr auto value = 0;
  4917. };
  4918. static_assert(sum<>::value == 0, "");
  4919. static_assert(sum<1>::value == 1, "");
  4920. static_assert(sum<23>::value == 23, "");
  4921. static_assert(sum<1, 2>::value == 3, "");
  4922. static_assert(sum<5, 5, 11>::value == 21, "");
  4923. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  4924. }
  4925. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  4926. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  4927. // because of this.
  4928. namespace test_template_alias_sfinae
  4929. {
  4930. struct foo {};
  4931. template<typename T>
  4932. using member = typename T::member_type;
  4933. template<typename T>
  4934. void func(...) {}
  4935. template<typename T>
  4936. void func(member<T>*) {}
  4937. void test();
  4938. void test() { func<foo>(0); }
  4939. }
  4940. } // namespace cxx11
  4941. #endif // __cplusplus >= 201103L
  4942. // If the compiler admits that it is not ready for C++14, why torture it?
  4943. // Hopefully, this will speed up the test.
  4944. #ifndef __cplusplus
  4945. #error "This is not a C++ compiler"
  4946. #elif __cplusplus < 201402L
  4947. #error "This is not a C++14 compiler"
  4948. #else
  4949. namespace cxx14
  4950. {
  4951. namespace test_polymorphic_lambdas
  4952. {
  4953. int
  4954. test()
  4955. {
  4956. const auto lambda = [](auto&&... args){
  4957. const auto istiny = [](auto x){
  4958. return (sizeof(x) == 1UL) ? 1 : 0;
  4959. };
  4960. const int aretiny[] = { istiny(args)... };
  4961. return aretiny[0];
  4962. };
  4963. return lambda(1, 1L, 1.0f, '1');
  4964. }
  4965. }
  4966. namespace test_binary_literals
  4967. {
  4968. constexpr auto ivii = 0b0000000000101010;
  4969. static_assert(ivii == 42, "wrong value");
  4970. }
  4971. namespace test_generalized_constexpr
  4972. {
  4973. template < typename CharT >
  4974. constexpr unsigned long
  4975. strlen_c(const CharT *const s) noexcept
  4976. {
  4977. auto length = 0UL;
  4978. for (auto p = s; *p; ++p)
  4979. ++length;
  4980. return length;
  4981. }
  4982. static_assert(strlen_c("") == 0UL, "");
  4983. static_assert(strlen_c("x") == 1UL, "");
  4984. static_assert(strlen_c("test") == 4UL, "");
  4985. static_assert(strlen_c("another\0test") == 7UL, "");
  4986. }
  4987. namespace test_lambda_init_capture
  4988. {
  4989. int
  4990. test()
  4991. {
  4992. auto x = 0;
  4993. const auto lambda1 = [a = x](int b){ return a + b; };
  4994. const auto lambda2 = [a = lambda1(x)](){ return a; };
  4995. return lambda2();
  4996. }
  4997. }
  4998. namespace test_digit_seperators
  4999. {
  5000. constexpr auto ten_million = 100'000'000;
  5001. static_assert(ten_million == 100000000, "");
  5002. }
  5003. namespace test_return_type_deduction
  5004. {
  5005. auto f(int& x) { return x; }
  5006. decltype(auto) g(int& x) { return x; }
  5007. template < typename T1, typename T2 >
  5008. struct is_same
  5009. {
  5010. static constexpr auto value = false;
  5011. };
  5012. template < typename T >
  5013. struct is_same<T, T>
  5014. {
  5015. static constexpr auto value = true;
  5016. };
  5017. int
  5018. test()
  5019. {
  5020. auto x = 0;
  5021. static_assert(is_same<int, decltype(f(x))>::value, "");
  5022. static_assert(is_same<int&, decltype(g(x))>::value, "");
  5023. return x;
  5024. }
  5025. }
  5026. } // namespace cxx14
  5027. #endif // __cplusplus >= 201402L
  5028. _ACEOF
  5029. if ac_fn_cxx_try_compile "$LINENO"; then :
  5030. eval $cachevar=yes
  5031. else
  5032. eval $cachevar=no
  5033. fi
  5034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5035. CXX="$ac_save_CXX"
  5036. fi
  5037. eval ac_res=\$$cachevar
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5039. $as_echo "$ac_res" >&6; }
  5040. if eval test x\$$cachevar = xyes; then
  5041. CXX="$CXX $switch"
  5042. if test -n "$CXXCPP" ; then
  5043. CXXCPP="$CXXCPP $switch"
  5044. fi
  5045. ac_success=yes
  5046. break
  5047. fi
  5048. done
  5049. fi
  5050. ac_ext=c
  5051. ac_cpp='$CPP $CPPFLAGS'
  5052. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5053. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5054. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5055. if test x$ax_cxx_compile_cxx14_required = xtrue; then
  5056. if test x$ac_success = xno; then
  5057. as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
  5058. fi
  5059. fi
  5060. if test x$ac_success = xno; then
  5061. HAVE_CXX14=0
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
  5063. $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
  5064. else
  5065. HAVE_CXX14=1
  5066. $as_echo "#define HAVE_CXX14 1" >>confdefs.h
  5067. fi
  5068. if test "x${HAVE_CXX14}" = "x1" ; then
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
  5070. $as_echo_n "checking whether compiler supports -Wall... " >&6; }
  5071. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  5072. T_APPEND_V=-Wall
  5073. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  5074. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  5075. else
  5076. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  5077. fi
  5078. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  5079. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  5080. else
  5081. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  5082. fi
  5083. ac_ext=cpp
  5084. ac_cpp='$CXXCPP $CPPFLAGS'
  5085. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5086. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5087. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5089. /* end confdefs.h. */
  5090. int
  5091. main ()
  5092. {
  5093. return 0;
  5094. ;
  5095. return 0;
  5096. }
  5097. _ACEOF
  5098. if ac_fn_cxx_try_compile "$LINENO"; then :
  5099. je_cv_cxxflags_added=-Wall
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5101. $as_echo "yes" >&6; }
  5102. else
  5103. je_cv_cxxflags_added=
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5105. $as_echo "no" >&6; }
  5106. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  5107. fi
  5108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5109. ac_ext=c
  5110. ac_cpp='$CPP $CPPFLAGS'
  5111. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5112. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5113. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5114. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  5115. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  5116. else
  5117. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  5118. fi
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
  5120. $as_echo_n "checking whether compiler supports -g3... " >&6; }
  5121. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  5122. T_APPEND_V=-g3
  5123. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  5124. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  5125. else
  5126. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  5127. fi
  5128. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  5129. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  5130. else
  5131. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  5132. fi
  5133. ac_ext=cpp
  5134. ac_cpp='$CXXCPP $CPPFLAGS'
  5135. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5136. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5137. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5139. /* end confdefs.h. */
  5140. int
  5141. main ()
  5142. {
  5143. return 0;
  5144. ;
  5145. return 0;
  5146. }
  5147. _ACEOF
  5148. if ac_fn_cxx_try_compile "$LINENO"; then :
  5149. je_cv_cxxflags_added=-g3
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5151. $as_echo "yes" >&6; }
  5152. else
  5153. je_cv_cxxflags_added=
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5155. $as_echo "no" >&6; }
  5156. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  5157. fi
  5158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5159. ac_ext=c
  5160. ac_cpp='$CPP $CPPFLAGS'
  5161. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5162. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5163. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5164. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  5165. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  5166. else
  5167. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  5168. fi
  5169. SAVED_LIBS="${LIBS}"
  5170. T_APPEND_V=-lstdc++
  5171. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  5172. LIBS="${LIBS}${T_APPEND_V}"
  5173. else
  5174. LIBS="${LIBS} ${T_APPEND_V}"
  5175. fi
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libstdc++ linkage is compilable" >&5
  5177. $as_echo_n "checking whether libstdc++ linkage is compilable... " >&6; }
  5178. if ${je_cv_libstdcxx+:} false; then :
  5179. $as_echo_n "(cached) " >&6
  5180. else
  5181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5182. /* end confdefs.h. */
  5183. #include <stdlib.h>
  5184. int
  5185. main ()
  5186. {
  5187. int *arr = (int *)malloc(sizeof(int) * 42);
  5188. if (arr == NULL)
  5189. return 1;
  5190. ;
  5191. return 0;
  5192. }
  5193. _ACEOF
  5194. if ac_fn_c_try_link "$LINENO"; then :
  5195. je_cv_libstdcxx=yes
  5196. else
  5197. je_cv_libstdcxx=no
  5198. fi
  5199. rm -f core conftest.err conftest.$ac_objext \
  5200. conftest$ac_exeext conftest.$ac_ext
  5201. fi
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_libstdcxx" >&5
  5203. $as_echo "$je_cv_libstdcxx" >&6; }
  5204. if test "x${je_cv_libstdcxx}" = "xno" ; then
  5205. LIBS="${SAVED_LIBS}"
  5206. fi
  5207. else
  5208. enable_cxx="0"
  5209. fi
  5210. fi
  5211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5212. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5213. if ${ac_cv_path_GREP+:} false; then :
  5214. $as_echo_n "(cached) " >&6
  5215. else
  5216. if test -z "$GREP"; then
  5217. ac_path_GREP_found=false
  5218. # Loop through the user's path and test for each of PROGNAME-LIST
  5219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5220. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5221. do
  5222. IFS=$as_save_IFS
  5223. test -z "$as_dir" && as_dir=.
  5224. for ac_prog in grep ggrep; do
  5225. for ac_exec_ext in '' $ac_executable_extensions; do
  5226. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5227. as_fn_executable_p "$ac_path_GREP" || continue
  5228. # Check for GNU ac_path_GREP and select it if it is found.
  5229. # Check for GNU $ac_path_GREP
  5230. case `"$ac_path_GREP" --version 2>&1` in
  5231. *GNU*)
  5232. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5233. *)
  5234. ac_count=0
  5235. $as_echo_n 0123456789 >"conftest.in"
  5236. while :
  5237. do
  5238. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5239. mv "conftest.tmp" "conftest.in"
  5240. cp "conftest.in" "conftest.nl"
  5241. $as_echo 'GREP' >> "conftest.nl"
  5242. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5243. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5244. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5245. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5246. # Best one so far, save it but keep looking for a better one
  5247. ac_cv_path_GREP="$ac_path_GREP"
  5248. ac_path_GREP_max=$ac_count
  5249. fi
  5250. # 10*(2^10) chars as input seems more than enough
  5251. test $ac_count -gt 10 && break
  5252. done
  5253. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5254. esac
  5255. $ac_path_GREP_found && break 3
  5256. done
  5257. done
  5258. done
  5259. IFS=$as_save_IFS
  5260. if test -z "$ac_cv_path_GREP"; then
  5261. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5262. fi
  5263. else
  5264. ac_cv_path_GREP=$GREP
  5265. fi
  5266. fi
  5267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5268. $as_echo "$ac_cv_path_GREP" >&6; }
  5269. GREP="$ac_cv_path_GREP"
  5270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5271. $as_echo_n "checking for egrep... " >&6; }
  5272. if ${ac_cv_path_EGREP+:} false; then :
  5273. $as_echo_n "(cached) " >&6
  5274. else
  5275. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5276. then ac_cv_path_EGREP="$GREP -E"
  5277. else
  5278. if test -z "$EGREP"; then
  5279. ac_path_EGREP_found=false
  5280. # Loop through the user's path and test for each of PROGNAME-LIST
  5281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5282. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5283. do
  5284. IFS=$as_save_IFS
  5285. test -z "$as_dir" && as_dir=.
  5286. for ac_prog in egrep; do
  5287. for ac_exec_ext in '' $ac_executable_extensions; do
  5288. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5289. as_fn_executable_p "$ac_path_EGREP" || continue
  5290. # Check for GNU ac_path_EGREP and select it if it is found.
  5291. # Check for GNU $ac_path_EGREP
  5292. case `"$ac_path_EGREP" --version 2>&1` in
  5293. *GNU*)
  5294. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5295. *)
  5296. ac_count=0
  5297. $as_echo_n 0123456789 >"conftest.in"
  5298. while :
  5299. do
  5300. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5301. mv "conftest.tmp" "conftest.in"
  5302. cp "conftest.in" "conftest.nl"
  5303. $as_echo 'EGREP' >> "conftest.nl"
  5304. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5305. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5306. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5307. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5308. # Best one so far, save it but keep looking for a better one
  5309. ac_cv_path_EGREP="$ac_path_EGREP"
  5310. ac_path_EGREP_max=$ac_count
  5311. fi
  5312. # 10*(2^10) chars as input seems more than enough
  5313. test $ac_count -gt 10 && break
  5314. done
  5315. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5316. esac
  5317. $ac_path_EGREP_found && break 3
  5318. done
  5319. done
  5320. done
  5321. IFS=$as_save_IFS
  5322. if test -z "$ac_cv_path_EGREP"; then
  5323. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5324. fi
  5325. else
  5326. ac_cv_path_EGREP=$EGREP
  5327. fi
  5328. fi
  5329. fi
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5331. $as_echo "$ac_cv_path_EGREP" >&6; }
  5332. EGREP="$ac_cv_path_EGREP"
  5333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5334. $as_echo_n "checking for ANSI C header files... " >&6; }
  5335. if ${ac_cv_header_stdc+:} false; then :
  5336. $as_echo_n "(cached) " >&6
  5337. else
  5338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5339. /* end confdefs.h. */
  5340. #include <stdlib.h>
  5341. #include <stdarg.h>
  5342. #include <string.h>
  5343. #include <float.h>
  5344. int
  5345. main ()
  5346. {
  5347. ;
  5348. return 0;
  5349. }
  5350. _ACEOF
  5351. if ac_fn_c_try_compile "$LINENO"; then :
  5352. ac_cv_header_stdc=yes
  5353. else
  5354. ac_cv_header_stdc=no
  5355. fi
  5356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5357. if test $ac_cv_header_stdc = yes; then
  5358. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5360. /* end confdefs.h. */
  5361. #include <string.h>
  5362. _ACEOF
  5363. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5364. $EGREP "memchr" >/dev/null 2>&1; then :
  5365. else
  5366. ac_cv_header_stdc=no
  5367. fi
  5368. rm -f conftest*
  5369. fi
  5370. if test $ac_cv_header_stdc = yes; then
  5371. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5373. /* end confdefs.h. */
  5374. #include <stdlib.h>
  5375. _ACEOF
  5376. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5377. $EGREP "free" >/dev/null 2>&1; then :
  5378. else
  5379. ac_cv_header_stdc=no
  5380. fi
  5381. rm -f conftest*
  5382. fi
  5383. if test $ac_cv_header_stdc = yes; then
  5384. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5385. if test "$cross_compiling" = yes; then :
  5386. :
  5387. else
  5388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5389. /* end confdefs.h. */
  5390. #include <ctype.h>
  5391. #include <stdlib.h>
  5392. #if ((' ' & 0x0FF) == 0x020)
  5393. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5394. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5395. #else
  5396. # define ISLOWER(c) \
  5397. (('a' <= (c) && (c) <= 'i') \
  5398. || ('j' <= (c) && (c) <= 'r') \
  5399. || ('s' <= (c) && (c) <= 'z'))
  5400. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5401. #endif
  5402. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5403. int
  5404. main ()
  5405. {
  5406. int i;
  5407. for (i = 0; i < 256; i++)
  5408. if (XOR (islower (i), ISLOWER (i))
  5409. || toupper (i) != TOUPPER (i))
  5410. return 2;
  5411. return 0;
  5412. }
  5413. _ACEOF
  5414. if ac_fn_c_try_run "$LINENO"; then :
  5415. else
  5416. ac_cv_header_stdc=no
  5417. fi
  5418. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5419. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5420. fi
  5421. fi
  5422. fi
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5424. $as_echo "$ac_cv_header_stdc" >&6; }
  5425. if test $ac_cv_header_stdc = yes; then
  5426. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5427. fi
  5428. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5429. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5430. inttypes.h stdint.h unistd.h
  5431. do :
  5432. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5433. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5434. "
  5435. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5436. cat >>confdefs.h <<_ACEOF
  5437. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5438. _ACEOF
  5439. fi
  5440. done
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  5442. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  5443. if ${ac_cv_c_bigendian+:} false; then :
  5444. $as_echo_n "(cached) " >&6
  5445. else
  5446. ac_cv_c_bigendian=unknown
  5447. # See if we're dealing with a universal compiler.
  5448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5449. /* end confdefs.h. */
  5450. #ifndef __APPLE_CC__
  5451. not a universal capable compiler
  5452. #endif
  5453. typedef int dummy;
  5454. _ACEOF
  5455. if ac_fn_c_try_compile "$LINENO"; then :
  5456. # Check for potential -arch flags. It is not universal unless
  5457. # there are at least two -arch flags with different values.
  5458. ac_arch=
  5459. ac_prev=
  5460. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  5461. if test -n "$ac_prev"; then
  5462. case $ac_word in
  5463. i?86 | x86_64 | ppc | ppc64)
  5464. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  5465. ac_arch=$ac_word
  5466. else
  5467. ac_cv_c_bigendian=universal
  5468. break
  5469. fi
  5470. ;;
  5471. esac
  5472. ac_prev=
  5473. elif test "x$ac_word" = "x-arch"; then
  5474. ac_prev=arch
  5475. fi
  5476. done
  5477. fi
  5478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5479. if test $ac_cv_c_bigendian = unknown; then
  5480. # See if sys/param.h defines the BYTE_ORDER macro.
  5481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5482. /* end confdefs.h. */
  5483. #include <sys/types.h>
  5484. #include <sys/param.h>
  5485. int
  5486. main ()
  5487. {
  5488. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  5489. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  5490. && LITTLE_ENDIAN)
  5491. bogus endian macros
  5492. #endif
  5493. ;
  5494. return 0;
  5495. }
  5496. _ACEOF
  5497. if ac_fn_c_try_compile "$LINENO"; then :
  5498. # It does; now see whether it defined to BIG_ENDIAN or not.
  5499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5500. /* end confdefs.h. */
  5501. #include <sys/types.h>
  5502. #include <sys/param.h>
  5503. int
  5504. main ()
  5505. {
  5506. #if BYTE_ORDER != BIG_ENDIAN
  5507. not big endian
  5508. #endif
  5509. ;
  5510. return 0;
  5511. }
  5512. _ACEOF
  5513. if ac_fn_c_try_compile "$LINENO"; then :
  5514. ac_cv_c_bigendian=yes
  5515. else
  5516. ac_cv_c_bigendian=no
  5517. fi
  5518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5519. fi
  5520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5521. fi
  5522. if test $ac_cv_c_bigendian = unknown; then
  5523. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  5524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5525. /* end confdefs.h. */
  5526. #include <limits.h>
  5527. int
  5528. main ()
  5529. {
  5530. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  5531. bogus endian macros
  5532. #endif
  5533. ;
  5534. return 0;
  5535. }
  5536. _ACEOF
  5537. if ac_fn_c_try_compile "$LINENO"; then :
  5538. # It does; now see whether it defined to _BIG_ENDIAN or not.
  5539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5540. /* end confdefs.h. */
  5541. #include <limits.h>
  5542. int
  5543. main ()
  5544. {
  5545. #ifndef _BIG_ENDIAN
  5546. not big endian
  5547. #endif
  5548. ;
  5549. return 0;
  5550. }
  5551. _ACEOF
  5552. if ac_fn_c_try_compile "$LINENO"; then :
  5553. ac_cv_c_bigendian=yes
  5554. else
  5555. ac_cv_c_bigendian=no
  5556. fi
  5557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5558. fi
  5559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5560. fi
  5561. if test $ac_cv_c_bigendian = unknown; then
  5562. # Compile a test program.
  5563. if test "$cross_compiling" = yes; then :
  5564. # Try to guess by grepping values from an object file.
  5565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5566. /* end confdefs.h. */
  5567. short int ascii_mm[] =
  5568. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5569. short int ascii_ii[] =
  5570. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5571. int use_ascii (int i) {
  5572. return ascii_mm[i] + ascii_ii[i];
  5573. }
  5574. short int ebcdic_ii[] =
  5575. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5576. short int ebcdic_mm[] =
  5577. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5578. int use_ebcdic (int i) {
  5579. return ebcdic_mm[i] + ebcdic_ii[i];
  5580. }
  5581. extern int foo;
  5582. int
  5583. main ()
  5584. {
  5585. return use_ascii (foo) == use_ebcdic (foo);
  5586. ;
  5587. return 0;
  5588. }
  5589. _ACEOF
  5590. if ac_fn_c_try_compile "$LINENO"; then :
  5591. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  5592. ac_cv_c_bigendian=yes
  5593. fi
  5594. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5595. if test "$ac_cv_c_bigendian" = unknown; then
  5596. ac_cv_c_bigendian=no
  5597. else
  5598. # finding both strings is unlikely to happen, but who knows?
  5599. ac_cv_c_bigendian=unknown
  5600. fi
  5601. fi
  5602. fi
  5603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5604. else
  5605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5606. /* end confdefs.h. */
  5607. $ac_includes_default
  5608. int
  5609. main ()
  5610. {
  5611. /* Are we little or big endian? From Harbison&Steele. */
  5612. union
  5613. {
  5614. long int l;
  5615. char c[sizeof (long int)];
  5616. } u;
  5617. u.l = 1;
  5618. return u.c[sizeof (long int) - 1] == 1;
  5619. ;
  5620. return 0;
  5621. }
  5622. _ACEOF
  5623. if ac_fn_c_try_run "$LINENO"; then :
  5624. ac_cv_c_bigendian=no
  5625. else
  5626. ac_cv_c_bigendian=yes
  5627. fi
  5628. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5629. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5630. fi
  5631. fi
  5632. fi
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  5634. $as_echo "$ac_cv_c_bigendian" >&6; }
  5635. case $ac_cv_c_bigendian in #(
  5636. yes)
  5637. ac_cv_big_endian=1;; #(
  5638. no)
  5639. ac_cv_big_endian=0 ;; #(
  5640. universal)
  5641. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  5642. ;; #(
  5643. *)
  5644. as_fn_error $? "unknown endianness
  5645. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  5646. esac
  5647. if test "x${ac_cv_big_endian}" = "x1" ; then
  5648. cat >>confdefs.h <<_ACEOF
  5649. #define JEMALLOC_BIG_ENDIAN
  5650. _ACEOF
  5651. fi
  5652. if test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then
  5653. T_APPEND_V=-I${srcdir}/include/msvc_compat/C99
  5654. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  5655. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  5656. else
  5657. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  5658. fi
  5659. fi
  5660. if test "x${je_cv_msvc}" = "xyes" ; then
  5661. LG_SIZEOF_PTR=LG_SIZEOF_PTR_WIN
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&5
  5663. $as_echo "Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&6; }
  5664. else
  5665. # The cast to long int works around a bug in the HP C Compiler
  5666. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5667. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5668. # This bug is HP SR number 8606223364.
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  5670. $as_echo_n "checking size of void *... " >&6; }
  5671. if ${ac_cv_sizeof_void_p+:} false; then :
  5672. $as_echo_n "(cached) " >&6
  5673. else
  5674. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  5675. else
  5676. if test "$ac_cv_type_void_p" = yes; then
  5677. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5678. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5679. as_fn_error 77 "cannot compute sizeof (void *)
  5680. See \`config.log' for more details" "$LINENO" 5; }
  5681. else
  5682. ac_cv_sizeof_void_p=0
  5683. fi
  5684. fi
  5685. fi
  5686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  5687. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  5688. cat >>confdefs.h <<_ACEOF
  5689. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  5690. _ACEOF
  5691. if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
  5692. LG_SIZEOF_PTR=3
  5693. elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
  5694. LG_SIZEOF_PTR=2
  5695. else
  5696. as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
  5697. fi
  5698. fi
  5699. cat >>confdefs.h <<_ACEOF
  5700. #define LG_SIZEOF_PTR $LG_SIZEOF_PTR
  5701. _ACEOF
  5702. # The cast to long int works around a bug in the HP C Compiler
  5703. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5704. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5705. # This bug is HP SR number 8606223364.
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  5707. $as_echo_n "checking size of int... " >&6; }
  5708. if ${ac_cv_sizeof_int+:} false; then :
  5709. $as_echo_n "(cached) " >&6
  5710. else
  5711. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  5712. else
  5713. if test "$ac_cv_type_int" = yes; then
  5714. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5715. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5716. as_fn_error 77 "cannot compute sizeof (int)
  5717. See \`config.log' for more details" "$LINENO" 5; }
  5718. else
  5719. ac_cv_sizeof_int=0
  5720. fi
  5721. fi
  5722. fi
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  5724. $as_echo "$ac_cv_sizeof_int" >&6; }
  5725. cat >>confdefs.h <<_ACEOF
  5726. #define SIZEOF_INT $ac_cv_sizeof_int
  5727. _ACEOF
  5728. if test "x${ac_cv_sizeof_int}" = "x8" ; then
  5729. LG_SIZEOF_INT=3
  5730. elif test "x${ac_cv_sizeof_int}" = "x4" ; then
  5731. LG_SIZEOF_INT=2
  5732. else
  5733. as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
  5734. fi
  5735. cat >>confdefs.h <<_ACEOF
  5736. #define LG_SIZEOF_INT $LG_SIZEOF_INT
  5737. _ACEOF
  5738. # The cast to long int works around a bug in the HP C Compiler
  5739. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5740. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5741. # This bug is HP SR number 8606223364.
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  5743. $as_echo_n "checking size of long... " >&6; }
  5744. if ${ac_cv_sizeof_long+:} false; then :
  5745. $as_echo_n "(cached) " >&6
  5746. else
  5747. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  5748. else
  5749. if test "$ac_cv_type_long" = yes; then
  5750. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5751. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5752. as_fn_error 77 "cannot compute sizeof (long)
  5753. See \`config.log' for more details" "$LINENO" 5; }
  5754. else
  5755. ac_cv_sizeof_long=0
  5756. fi
  5757. fi
  5758. fi
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  5760. $as_echo "$ac_cv_sizeof_long" >&6; }
  5761. cat >>confdefs.h <<_ACEOF
  5762. #define SIZEOF_LONG $ac_cv_sizeof_long
  5763. _ACEOF
  5764. if test "x${ac_cv_sizeof_long}" = "x8" ; then
  5765. LG_SIZEOF_LONG=3
  5766. elif test "x${ac_cv_sizeof_long}" = "x4" ; then
  5767. LG_SIZEOF_LONG=2
  5768. else
  5769. as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
  5770. fi
  5771. cat >>confdefs.h <<_ACEOF
  5772. #define LG_SIZEOF_LONG $LG_SIZEOF_LONG
  5773. _ACEOF
  5774. # The cast to long int works around a bug in the HP C Compiler
  5775. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5776. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5777. # This bug is HP SR number 8606223364.
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  5779. $as_echo_n "checking size of long long... " >&6; }
  5780. if ${ac_cv_sizeof_long_long+:} false; then :
  5781. $as_echo_n "(cached) " >&6
  5782. else
  5783. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  5784. else
  5785. if test "$ac_cv_type_long_long" = yes; then
  5786. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5787. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5788. as_fn_error 77 "cannot compute sizeof (long long)
  5789. See \`config.log' for more details" "$LINENO" 5; }
  5790. else
  5791. ac_cv_sizeof_long_long=0
  5792. fi
  5793. fi
  5794. fi
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  5796. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  5797. cat >>confdefs.h <<_ACEOF
  5798. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  5799. _ACEOF
  5800. if test "x${ac_cv_sizeof_long_long}" = "x8" ; then
  5801. LG_SIZEOF_LONG_LONG=3
  5802. elif test "x${ac_cv_sizeof_long_long}" = "x4" ; then
  5803. LG_SIZEOF_LONG_LONG=2
  5804. else
  5805. as_fn_error $? "Unsupported long long size: ${ac_cv_sizeof_long_long}" "$LINENO" 5
  5806. fi
  5807. cat >>confdefs.h <<_ACEOF
  5808. #define LG_SIZEOF_LONG_LONG $LG_SIZEOF_LONG_LONG
  5809. _ACEOF
  5810. # The cast to long int works around a bug in the HP C Compiler
  5811. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5812. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5813. # This bug is HP SR number 8606223364.
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
  5815. $as_echo_n "checking size of intmax_t... " >&6; }
  5816. if ${ac_cv_sizeof_intmax_t+:} false; then :
  5817. $as_echo_n "(cached) " >&6
  5818. else
  5819. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
  5820. else
  5821. if test "$ac_cv_type_intmax_t" = yes; then
  5822. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5823. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5824. as_fn_error 77 "cannot compute sizeof (intmax_t)
  5825. See \`config.log' for more details" "$LINENO" 5; }
  5826. else
  5827. ac_cv_sizeof_intmax_t=0
  5828. fi
  5829. fi
  5830. fi
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
  5832. $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
  5833. cat >>confdefs.h <<_ACEOF
  5834. #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
  5835. _ACEOF
  5836. if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then
  5837. LG_SIZEOF_INTMAX_T=4
  5838. elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then
  5839. LG_SIZEOF_INTMAX_T=3
  5840. elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then
  5841. LG_SIZEOF_INTMAX_T=2
  5842. else
  5843. as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5
  5844. fi
  5845. cat >>confdefs.h <<_ACEOF
  5846. #define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T
  5847. _ACEOF
  5848. # Make sure we can run config.sub.
  5849. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  5850. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  5851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  5852. $as_echo_n "checking build system type... " >&6; }
  5853. if ${ac_cv_build+:} false; then :
  5854. $as_echo_n "(cached) " >&6
  5855. else
  5856. ac_build_alias=$build_alias
  5857. test "x$ac_build_alias" = x &&
  5858. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  5859. test "x$ac_build_alias" = x &&
  5860. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  5861. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  5862. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  5863. fi
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  5865. $as_echo "$ac_cv_build" >&6; }
  5866. case $ac_cv_build in
  5867. *-*-*) ;;
  5868. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  5869. esac
  5870. build=$ac_cv_build
  5871. ac_save_IFS=$IFS; IFS='-'
  5872. set x $ac_cv_build
  5873. shift
  5874. build_cpu=$1
  5875. build_vendor=$2
  5876. shift; shift
  5877. # Remember, the first character of IFS is used to create $*,
  5878. # except with old shells:
  5879. build_os=$*
  5880. IFS=$ac_save_IFS
  5881. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  5883. $as_echo_n "checking host system type... " >&6; }
  5884. if ${ac_cv_host+:} false; then :
  5885. $as_echo_n "(cached) " >&6
  5886. else
  5887. if test "x$host_alias" = x; then
  5888. ac_cv_host=$ac_cv_build
  5889. else
  5890. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  5891. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  5892. fi
  5893. fi
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  5895. $as_echo "$ac_cv_host" >&6; }
  5896. case $ac_cv_host in
  5897. *-*-*) ;;
  5898. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  5899. esac
  5900. host=$ac_cv_host
  5901. ac_save_IFS=$IFS; IFS='-'
  5902. set x $ac_cv_host
  5903. shift
  5904. host_cpu=$1
  5905. host_vendor=$2
  5906. shift; shift
  5907. # Remember, the first character of IFS is used to create $*,
  5908. # except with old shells:
  5909. host_os=$*
  5910. IFS=$ac_save_IFS
  5911. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  5912. CPU_SPINWAIT=""
  5913. case "${host_cpu}" in
  5914. i686|x86_64)
  5915. HAVE_CPU_SPINWAIT=1
  5916. if test "x${je_cv_msvc}" = "xyes" ; then
  5917. if ${je_cv_pause_msvc+:} false; then :
  5918. $as_echo_n "(cached) " >&6
  5919. else
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction MSVC is compilable" >&5
  5921. $as_echo_n "checking whether pause instruction MSVC is compilable... " >&6; }
  5922. if ${je_cv_pause_msvc+:} false; then :
  5923. $as_echo_n "(cached) " >&6
  5924. else
  5925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5926. /* end confdefs.h. */
  5927. int
  5928. main ()
  5929. {
  5930. _mm_pause(); return 0;
  5931. ;
  5932. return 0;
  5933. }
  5934. _ACEOF
  5935. if ac_fn_c_try_link "$LINENO"; then :
  5936. je_cv_pause_msvc=yes
  5937. else
  5938. je_cv_pause_msvc=no
  5939. fi
  5940. rm -f core conftest.err conftest.$ac_objext \
  5941. conftest$ac_exeext conftest.$ac_ext
  5942. fi
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause_msvc" >&5
  5944. $as_echo "$je_cv_pause_msvc" >&6; }
  5945. fi
  5946. if test "x${je_cv_pause_msvc}" = "xyes" ; then
  5947. CPU_SPINWAIT='_mm_pause()'
  5948. fi
  5949. else
  5950. if ${je_cv_pause+:} false; then :
  5951. $as_echo_n "(cached) " >&6
  5952. else
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5
  5954. $as_echo_n "checking whether pause instruction is compilable... " >&6; }
  5955. if ${je_cv_pause+:} false; then :
  5956. $as_echo_n "(cached) " >&6
  5957. else
  5958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5959. /* end confdefs.h. */
  5960. int
  5961. main ()
  5962. {
  5963. __asm__ volatile("pause"); return 0;
  5964. ;
  5965. return 0;
  5966. }
  5967. _ACEOF
  5968. if ac_fn_c_try_link "$LINENO"; then :
  5969. je_cv_pause=yes
  5970. else
  5971. je_cv_pause=no
  5972. fi
  5973. rm -f core conftest.err conftest.$ac_objext \
  5974. conftest$ac_exeext conftest.$ac_ext
  5975. fi
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5
  5977. $as_echo "$je_cv_pause" >&6; }
  5978. fi
  5979. if test "x${je_cv_pause}" = "xyes" ; then
  5980. CPU_SPINWAIT='__asm__ volatile("pause")'
  5981. fi
  5982. fi
  5983. ;;
  5984. *)
  5985. HAVE_CPU_SPINWAIT=0
  5986. ;;
  5987. esac
  5988. cat >>confdefs.h <<_ACEOF
  5989. #define HAVE_CPU_SPINWAIT $HAVE_CPU_SPINWAIT
  5990. _ACEOF
  5991. cat >>confdefs.h <<_ACEOF
  5992. #define CPU_SPINWAIT $CPU_SPINWAIT
  5993. _ACEOF
  5994. # Check whether --with-lg_vaddr was given.
  5995. if test "${with_lg_vaddr+set}" = set; then :
  5996. withval=$with_lg_vaddr; LG_VADDR="$with_lg_vaddr"
  5997. else
  5998. LG_VADDR="detect"
  5999. fi
  6000. case "${host_cpu}" in
  6001. aarch64)
  6002. if test "x$LG_VADDR" = "xdetect"; then
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
  6004. $as_echo_n "checking number of significant virtual address bits... " >&6; }
  6005. if test "x${LG_SIZEOF_PTR}" = "x2" ; then
  6006. #aarch64 ILP32
  6007. LG_VADDR=32
  6008. else
  6009. #aarch64 LP64
  6010. LG_VADDR=48
  6011. fi
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
  6013. $as_echo "$LG_VADDR" >&6; }
  6014. fi
  6015. ;;
  6016. x86_64)
  6017. if test "x$LG_VADDR" = "xdetect"; then
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
  6019. $as_echo_n "checking number of significant virtual address bits... " >&6; }
  6020. if ${je_cv_lg_vaddr+:} false; then :
  6021. $as_echo_n "(cached) " >&6
  6022. else
  6023. if test "$cross_compiling" = yes; then :
  6024. je_cv_lg_vaddr=57
  6025. else
  6026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6027. /* end confdefs.h. */
  6028. #include <stdio.h>
  6029. #ifdef _WIN32
  6030. #include <limits.h>
  6031. #include <intrin.h>
  6032. typedef unsigned __int32 uint32_t;
  6033. #else
  6034. #include <stdint.h>
  6035. #endif
  6036. int
  6037. main ()
  6038. {
  6039. uint32_t r[4];
  6040. uint32_t eax_in = 0x80000008U;
  6041. #ifdef _WIN32
  6042. __cpuid((int *)r, (int)eax_in);
  6043. #else
  6044. asm volatile ("cpuid"
  6045. : "=a" (r[0]), "=b" (r[1]), "=c" (r[2]), "=d" (r[3])
  6046. : "a" (eax_in), "c" (0)
  6047. );
  6048. #endif
  6049. uint32_t eax_out = r[0];
  6050. uint32_t vaddr = ((eax_out & 0x0000ff00U) >> 8);
  6051. FILE *f = fopen("conftest.out", "w");
  6052. if (f == NULL) {
  6053. return 1;
  6054. }
  6055. if (vaddr > (sizeof(void *) << 3)) {
  6056. vaddr = sizeof(void *) << 3;
  6057. }
  6058. fprintf(f, "%u", vaddr);
  6059. fclose(f);
  6060. return 0;
  6061. ;
  6062. return 0;
  6063. }
  6064. _ACEOF
  6065. if ac_fn_c_try_run "$LINENO"; then :
  6066. je_cv_lg_vaddr=`cat conftest.out`
  6067. else
  6068. je_cv_lg_vaddr=error
  6069. fi
  6070. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6071. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6072. fi
  6073. fi
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_vaddr" >&5
  6075. $as_echo "$je_cv_lg_vaddr" >&6; }
  6076. if test "x${je_cv_lg_vaddr}" != "x" ; then
  6077. LG_VADDR="${je_cv_lg_vaddr}"
  6078. fi
  6079. if test "x${LG_VADDR}" != "xerror" ; then
  6080. cat >>confdefs.h <<_ACEOF
  6081. #define LG_VADDR $LG_VADDR
  6082. _ACEOF
  6083. else
  6084. as_fn_error $? "cannot determine number of significant virtual address bits" "$LINENO" 5
  6085. fi
  6086. fi
  6087. ;;
  6088. *)
  6089. if test "x$LG_VADDR" = "xdetect"; then
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
  6091. $as_echo_n "checking number of significant virtual address bits... " >&6; }
  6092. if test "x${LG_SIZEOF_PTR}" = "x3" ; then
  6093. LG_VADDR=64
  6094. elif test "x${LG_SIZEOF_PTR}" = "x2" ; then
  6095. LG_VADDR=32
  6096. elif test "x${LG_SIZEOF_PTR}" = "xLG_SIZEOF_PTR_WIN" ; then
  6097. LG_VADDR="(1U << (LG_SIZEOF_PTR_WIN+3))"
  6098. else
  6099. as_fn_error $? "Unsupported lg(pointer size): ${LG_SIZEOF_PTR}" "$LINENO" 5
  6100. fi
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
  6102. $as_echo "$LG_VADDR" >&6; }
  6103. fi
  6104. ;;
  6105. esac
  6106. cat >>confdefs.h <<_ACEOF
  6107. #define LG_VADDR $LG_VADDR
  6108. _ACEOF
  6109. LD_PRELOAD_VAR="LD_PRELOAD"
  6110. so="so"
  6111. importlib="${so}"
  6112. o="$ac_objext"
  6113. a="a"
  6114. exe="$ac_exeext"
  6115. libprefix="lib"
  6116. link_whole_archive="0"
  6117. DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
  6118. RPATH='-Wl,-rpath,$(1)'
  6119. SOREV="${so}.${rev}"
  6120. PIC_CFLAGS='-fPIC -DPIC'
  6121. CTARGET='-o $@'
  6122. LDTARGET='-o $@'
  6123. TEST_LD_MODE=
  6124. EXTRA_LDFLAGS=
  6125. ARFLAGS='crus'
  6126. AROUT=' $@'
  6127. CC_MM=1
  6128. if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
  6129. TEST_LD_MODE='-dynamic'
  6130. fi
  6131. if test "x${je_cv_cray}" = "xyes" ; then
  6132. CC_MM=
  6133. fi
  6134. if test -n "$ac_tool_prefix"; then
  6135. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6136. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6138. $as_echo_n "checking for $ac_word... " >&6; }
  6139. if ${ac_cv_prog_AR+:} false; then :
  6140. $as_echo_n "(cached) " >&6
  6141. else
  6142. if test -n "$AR"; then
  6143. ac_cv_prog_AR="$AR" # Let the user override the test.
  6144. else
  6145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6146. for as_dir in $PATH
  6147. do
  6148. IFS=$as_save_IFS
  6149. test -z "$as_dir" && as_dir=.
  6150. for ac_exec_ext in '' $ac_executable_extensions; do
  6151. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6152. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6154. break 2
  6155. fi
  6156. done
  6157. done
  6158. IFS=$as_save_IFS
  6159. fi
  6160. fi
  6161. AR=$ac_cv_prog_AR
  6162. if test -n "$AR"; then
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6164. $as_echo "$AR" >&6; }
  6165. else
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6167. $as_echo "no" >&6; }
  6168. fi
  6169. fi
  6170. if test -z "$ac_cv_prog_AR"; then
  6171. ac_ct_AR=$AR
  6172. # Extract the first word of "ar", so it can be a program name with args.
  6173. set dummy ar; ac_word=$2
  6174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6175. $as_echo_n "checking for $ac_word... " >&6; }
  6176. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6177. $as_echo_n "(cached) " >&6
  6178. else
  6179. if test -n "$ac_ct_AR"; then
  6180. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6181. else
  6182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6183. for as_dir in $PATH
  6184. do
  6185. IFS=$as_save_IFS
  6186. test -z "$as_dir" && as_dir=.
  6187. for ac_exec_ext in '' $ac_executable_extensions; do
  6188. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6189. ac_cv_prog_ac_ct_AR="ar"
  6190. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6191. break 2
  6192. fi
  6193. done
  6194. done
  6195. IFS=$as_save_IFS
  6196. fi
  6197. fi
  6198. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6199. if test -n "$ac_ct_AR"; then
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6201. $as_echo "$ac_ct_AR" >&6; }
  6202. else
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6204. $as_echo "no" >&6; }
  6205. fi
  6206. if test "x$ac_ct_AR" = x; then
  6207. AR=":"
  6208. else
  6209. case $cross_compiling:$ac_tool_warned in
  6210. yes:)
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6212. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6213. ac_tool_warned=yes ;;
  6214. esac
  6215. AR=$ac_ct_AR
  6216. fi
  6217. else
  6218. AR="$ac_cv_prog_AR"
  6219. fi
  6220. if test -n "$ac_tool_prefix"; then
  6221. # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
  6222. set dummy ${ac_tool_prefix}nm; ac_word=$2
  6223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6224. $as_echo_n "checking for $ac_word... " >&6; }
  6225. if ${ac_cv_prog_NM+:} false; then :
  6226. $as_echo_n "(cached) " >&6
  6227. else
  6228. if test -n "$NM"; then
  6229. ac_cv_prog_NM="$NM" # Let the user override the test.
  6230. else
  6231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6232. for as_dir in $PATH
  6233. do
  6234. IFS=$as_save_IFS
  6235. test -z "$as_dir" && as_dir=.
  6236. for ac_exec_ext in '' $ac_executable_extensions; do
  6237. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6238. ac_cv_prog_NM="${ac_tool_prefix}nm"
  6239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6240. break 2
  6241. fi
  6242. done
  6243. done
  6244. IFS=$as_save_IFS
  6245. fi
  6246. fi
  6247. NM=$ac_cv_prog_NM
  6248. if test -n "$NM"; then
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  6250. $as_echo "$NM" >&6; }
  6251. else
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6253. $as_echo "no" >&6; }
  6254. fi
  6255. fi
  6256. if test -z "$ac_cv_prog_NM"; then
  6257. ac_ct_NM=$NM
  6258. # Extract the first word of "nm", so it can be a program name with args.
  6259. set dummy nm; ac_word=$2
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6261. $as_echo_n "checking for $ac_word... " >&6; }
  6262. if ${ac_cv_prog_ac_ct_NM+:} false; then :
  6263. $as_echo_n "(cached) " >&6
  6264. else
  6265. if test -n "$ac_ct_NM"; then
  6266. ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
  6267. else
  6268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6269. for as_dir in $PATH
  6270. do
  6271. IFS=$as_save_IFS
  6272. test -z "$as_dir" && as_dir=.
  6273. for ac_exec_ext in '' $ac_executable_extensions; do
  6274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6275. ac_cv_prog_ac_ct_NM="nm"
  6276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6277. break 2
  6278. fi
  6279. done
  6280. done
  6281. IFS=$as_save_IFS
  6282. fi
  6283. fi
  6284. ac_ct_NM=$ac_cv_prog_ac_ct_NM
  6285. if test -n "$ac_ct_NM"; then
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
  6287. $as_echo "$ac_ct_NM" >&6; }
  6288. else
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6290. $as_echo "no" >&6; }
  6291. fi
  6292. if test "x$ac_ct_NM" = x; then
  6293. NM=":"
  6294. else
  6295. case $cross_compiling:$ac_tool_warned in
  6296. yes:)
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6298. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6299. ac_tool_warned=yes ;;
  6300. esac
  6301. NM=$ac_ct_NM
  6302. fi
  6303. else
  6304. NM="$ac_cv_prog_NM"
  6305. fi
  6306. for ac_prog in gawk mawk nawk awk
  6307. do
  6308. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6309. set dummy $ac_prog; ac_word=$2
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6311. $as_echo_n "checking for $ac_word... " >&6; }
  6312. if ${ac_cv_prog_AWK+:} false; then :
  6313. $as_echo_n "(cached) " >&6
  6314. else
  6315. if test -n "$AWK"; then
  6316. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  6317. else
  6318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6319. for as_dir in $PATH
  6320. do
  6321. IFS=$as_save_IFS
  6322. test -z "$as_dir" && as_dir=.
  6323. for ac_exec_ext in '' $ac_executable_extensions; do
  6324. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6325. ac_cv_prog_AWK="$ac_prog"
  6326. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6327. break 2
  6328. fi
  6329. done
  6330. done
  6331. IFS=$as_save_IFS
  6332. fi
  6333. fi
  6334. AWK=$ac_cv_prog_AWK
  6335. if test -n "$AWK"; then
  6336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  6337. $as_echo "$AWK" >&6; }
  6338. else
  6339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6340. $as_echo "no" >&6; }
  6341. fi
  6342. test -n "$AWK" && break
  6343. done
  6344. default_retain="0"
  6345. maps_coalesce="1"
  6346. DUMP_SYMS="${NM} -a"
  6347. SYM_PREFIX=""
  6348. case "${host}" in
  6349. *-*-darwin* | *-*-ios*)
  6350. abi="macho"
  6351. RPATH=""
  6352. LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
  6353. so="dylib"
  6354. importlib="${so}"
  6355. force_tls="0"
  6356. DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)'
  6357. SOREV="${rev}.${so}"
  6358. sbrk_deprecated="1"
  6359. SYM_PREFIX="_"
  6360. ;;
  6361. *-*-freebsd*)
  6362. abi="elf"
  6363. $as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT " >>confdefs.h
  6364. force_lazy_lock="1"
  6365. ;;
  6366. *-*-dragonfly*)
  6367. abi="elf"
  6368. ;;
  6369. *-*-openbsd*)
  6370. abi="elf"
  6371. force_tls="0"
  6372. ;;
  6373. *-*-bitrig*)
  6374. abi="elf"
  6375. ;;
  6376. *-*-linux-android)
  6377. T_APPEND_V=-D_GNU_SOURCE
  6378. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6379. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  6380. else
  6381. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  6382. fi
  6383. abi="elf"
  6384. $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS " >>confdefs.h
  6385. $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
  6386. $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h
  6387. $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h
  6388. $as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
  6389. force_tls="0"
  6390. if test "${LG_SIZEOF_PTR}" = "3"; then
  6391. default_retain="1"
  6392. fi
  6393. ;;
  6394. *-*-linux*)
  6395. T_APPEND_V=-D_GNU_SOURCE
  6396. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6397. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  6398. else
  6399. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  6400. fi
  6401. abi="elf"
  6402. $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS " >>confdefs.h
  6403. $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
  6404. $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h
  6405. $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h
  6406. $as_echo "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h
  6407. if test "${LG_SIZEOF_PTR}" = "3"; then
  6408. default_retain="1"
  6409. fi
  6410. ;;
  6411. *-*-kfreebsd*)
  6412. T_APPEND_V=-D_GNU_SOURCE
  6413. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6414. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  6415. else
  6416. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  6417. fi
  6418. abi="elf"
  6419. $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
  6420. $as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT " >>confdefs.h
  6421. $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h
  6422. $as_echo "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h
  6423. ;;
  6424. *-*-netbsd*)
  6425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
  6426. $as_echo_n "checking ABI... " >&6; }
  6427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6428. /* end confdefs.h. */
  6429. #ifdef __ELF__
  6430. /* ELF */
  6431. #else
  6432. #error aout
  6433. #endif
  6434. int
  6435. main ()
  6436. {
  6437. ;
  6438. return 0;
  6439. }
  6440. _ACEOF
  6441. if ac_fn_c_try_compile "$LINENO"; then :
  6442. abi="elf"
  6443. else
  6444. abi="aout"
  6445. fi
  6446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
  6448. $as_echo "$abi" >&6; }
  6449. ;;
  6450. *-*-solaris2*)
  6451. abi="elf"
  6452. RPATH='-Wl,-R,$(1)'
  6453. T_APPEND_V=-D_POSIX_PTHREAD_SEMANTICS
  6454. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6455. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  6456. else
  6457. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  6458. fi
  6459. T_APPEND_V=-lposix4 -lsocket -lnsl
  6460. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6461. LIBS="${LIBS}${T_APPEND_V}"
  6462. else
  6463. LIBS="${LIBS} ${T_APPEND_V}"
  6464. fi
  6465. ;;
  6466. *-ibm-aix*)
  6467. if test "${LG_SIZEOF_PTR}" = "3"; then
  6468. LD_PRELOAD_VAR="LDR_PRELOAD64"
  6469. else
  6470. LD_PRELOAD_VAR="LDR_PRELOAD"
  6471. fi
  6472. abi="xcoff"
  6473. ;;
  6474. *-*-mingw* | *-*-cygwin*)
  6475. abi="pecoff"
  6476. force_tls="0"
  6477. maps_coalesce="0"
  6478. RPATH=""
  6479. so="dll"
  6480. if test "x$je_cv_msvc" = "xyes" ; then
  6481. importlib="lib"
  6482. DSO_LDFLAGS="-LD"
  6483. EXTRA_LDFLAGS="-link -DEBUG"
  6484. CTARGET='-Fo$@'
  6485. LDTARGET='-Fe$@'
  6486. AR='lib'
  6487. ARFLAGS='-nologo -out:'
  6488. AROUT='$@'
  6489. CC_MM=
  6490. else
  6491. importlib="${so}"
  6492. DSO_LDFLAGS="-shared"
  6493. link_whole_archive="1"
  6494. fi
  6495. case "${host}" in
  6496. *-*-cygwin*)
  6497. DUMP_SYMS="dumpbin /SYMBOLS"
  6498. ;;
  6499. *)
  6500. ;;
  6501. esac
  6502. a="lib"
  6503. libprefix=""
  6504. SOREV="${so}"
  6505. PIC_CFLAGS=""
  6506. ;;
  6507. *)
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
  6509. $as_echo "Unsupported operating system: ${host}" >&6; }
  6510. abi="elf"
  6511. ;;
  6512. esac
  6513. JEMALLOC_USABLE_SIZE_CONST=const
  6514. for ac_header in malloc.h
  6515. do :
  6516. ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  6517. if test "x$ac_cv_header_malloc_h" = xyes; then :
  6518. cat >>confdefs.h <<_ACEOF
  6519. #define HAVE_MALLOC_H 1
  6520. _ACEOF
  6521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5
  6522. $as_echo_n "checking whether malloc_usable_size definition can use const argument... " >&6; }
  6523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6524. /* end confdefs.h. */
  6525. #include <malloc.h>
  6526. #include <stddef.h>
  6527. size_t malloc_usable_size(const void *ptr);
  6528. int
  6529. main ()
  6530. {
  6531. ;
  6532. return 0;
  6533. }
  6534. _ACEOF
  6535. if ac_fn_c_try_compile "$LINENO"; then :
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6537. $as_echo "yes" >&6; }
  6538. else
  6539. JEMALLOC_USABLE_SIZE_CONST=
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6541. $as_echo "no" >&6; }
  6542. fi
  6543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6544. fi
  6545. done
  6546. cat >>confdefs.h <<_ACEOF
  6547. #define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST
  6548. _ACEOF
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
  6550. $as_echo_n "checking for library containing log... " >&6; }
  6551. if ${ac_cv_search_log+:} false; then :
  6552. $as_echo_n "(cached) " >&6
  6553. else
  6554. ac_func_search_save_LIBS=$LIBS
  6555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6556. /* end confdefs.h. */
  6557. /* Override any GCC internal prototype to avoid an error.
  6558. Use char because int might match the return type of a GCC
  6559. builtin and then its argument prototype would still apply. */
  6560. #ifdef __cplusplus
  6561. extern "C"
  6562. #endif
  6563. char log ();
  6564. int
  6565. main ()
  6566. {
  6567. return log ();
  6568. ;
  6569. return 0;
  6570. }
  6571. _ACEOF
  6572. for ac_lib in '' m; do
  6573. if test -z "$ac_lib"; then
  6574. ac_res="none required"
  6575. else
  6576. ac_res=-l$ac_lib
  6577. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6578. fi
  6579. if ac_fn_c_try_link "$LINENO"; then :
  6580. ac_cv_search_log=$ac_res
  6581. fi
  6582. rm -f core conftest.err conftest.$ac_objext \
  6583. conftest$ac_exeext
  6584. if ${ac_cv_search_log+:} false; then :
  6585. break
  6586. fi
  6587. done
  6588. if ${ac_cv_search_log+:} false; then :
  6589. else
  6590. ac_cv_search_log=no
  6591. fi
  6592. rm conftest.$ac_ext
  6593. LIBS=$ac_func_search_save_LIBS
  6594. fi
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
  6596. $as_echo "$ac_cv_search_log" >&6; }
  6597. ac_res=$ac_cv_search_log
  6598. if test "$ac_res" != no; then :
  6599. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6600. else
  6601. as_fn_error $? "Missing math functions" "$LINENO" 5
  6602. fi
  6603. if test "x$ac_cv_search_log" != "xnone required" ; then
  6604. LM="$ac_cv_search_log"
  6605. else
  6606. LM=
  6607. fi
  6608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
  6609. $as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; }
  6610. if ${je_cv_attribute+:} false; then :
  6611. $as_echo_n "(cached) " >&6
  6612. else
  6613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6614. /* end confdefs.h. */
  6615. static __attribute__((unused)) void foo(void){}
  6616. int
  6617. main ()
  6618. {
  6619. ;
  6620. return 0;
  6621. }
  6622. _ACEOF
  6623. if ac_fn_c_try_link "$LINENO"; then :
  6624. je_cv_attribute=yes
  6625. else
  6626. je_cv_attribute=no
  6627. fi
  6628. rm -f core conftest.err conftest.$ac_objext \
  6629. conftest$ac_exeext conftest.$ac_ext
  6630. fi
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5
  6632. $as_echo "$je_cv_attribute" >&6; }
  6633. if test "x${je_cv_attribute}" = "xyes" ; then
  6634. $as_echo "#define JEMALLOC_HAVE_ATTR " >>confdefs.h
  6635. if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
  6636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
  6637. $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
  6638. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  6639. T_APPEND_V=-fvisibility=hidden
  6640. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6641. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  6642. else
  6643. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  6644. fi
  6645. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6646. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6647. else
  6648. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6649. fi
  6650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6651. /* end confdefs.h. */
  6652. int
  6653. main ()
  6654. {
  6655. return 0;
  6656. ;
  6657. return 0;
  6658. }
  6659. _ACEOF
  6660. if ac_fn_c_try_compile "$LINENO"; then :
  6661. je_cv_cflags_added=-fvisibility=hidden
  6662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6663. $as_echo "yes" >&6; }
  6664. else
  6665. je_cv_cflags_added=
  6666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6667. $as_echo "no" >&6; }
  6668. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  6669. fi
  6670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6671. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6672. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6673. else
  6674. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6675. fi
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
  6677. $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
  6678. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  6679. T_APPEND_V=-fvisibility=hidden
  6680. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6681. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  6682. else
  6683. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  6684. fi
  6685. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  6686. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  6687. else
  6688. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  6689. fi
  6690. ac_ext=cpp
  6691. ac_cpp='$CXXCPP $CPPFLAGS'
  6692. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6693. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6694. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6696. /* end confdefs.h. */
  6697. int
  6698. main ()
  6699. {
  6700. return 0;
  6701. ;
  6702. return 0;
  6703. }
  6704. _ACEOF
  6705. if ac_fn_cxx_try_compile "$LINENO"; then :
  6706. je_cv_cxxflags_added=-fvisibility=hidden
  6707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6708. $as_echo "yes" >&6; }
  6709. else
  6710. je_cv_cxxflags_added=
  6711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6712. $as_echo "no" >&6; }
  6713. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  6714. fi
  6715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6716. ac_ext=c
  6717. ac_cpp='$CPP $CPPFLAGS'
  6718. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6719. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6720. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6721. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  6722. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  6723. else
  6724. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  6725. fi
  6726. fi
  6727. fi
  6728. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  6730. $as_echo_n "checking whether compiler supports -Werror... " >&6; }
  6731. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  6732. T_APPEND_V=-Werror
  6733. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6734. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  6735. else
  6736. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  6737. fi
  6738. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6739. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6740. else
  6741. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6742. fi
  6743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6744. /* end confdefs.h. */
  6745. int
  6746. main ()
  6747. {
  6748. return 0;
  6749. ;
  6750. return 0;
  6751. }
  6752. _ACEOF
  6753. if ac_fn_c_try_compile "$LINENO"; then :
  6754. je_cv_cflags_added=-Werror
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6756. $as_echo "yes" >&6; }
  6757. else
  6758. je_cv_cflags_added=
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6760. $as_echo "no" >&6; }
  6761. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  6762. fi
  6763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6764. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6765. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6766. else
  6767. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6768. fi
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  6770. $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
  6771. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  6772. T_APPEND_V=-herror_on_warning
  6773. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6774. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  6775. else
  6776. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  6777. fi
  6778. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6779. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6780. else
  6781. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6782. fi
  6783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6784. /* end confdefs.h. */
  6785. int
  6786. main ()
  6787. {
  6788. return 0;
  6789. ;
  6790. return 0;
  6791. }
  6792. _ACEOF
  6793. if ac_fn_c_try_compile "$LINENO"; then :
  6794. je_cv_cflags_added=-herror_on_warning
  6795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6796. $as_echo "yes" >&6; }
  6797. else
  6798. je_cv_cflags_added=
  6799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6800. $as_echo "no" >&6; }
  6801. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  6802. fi
  6803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6804. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6805. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6806. else
  6807. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6808. fi
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5
  6810. $as_echo_n "checking whether tls_model attribute is compilable... " >&6; }
  6811. if ${je_cv_tls_model+:} false; then :
  6812. $as_echo_n "(cached) " >&6
  6813. else
  6814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6815. /* end confdefs.h. */
  6816. int
  6817. main ()
  6818. {
  6819. static __thread int
  6820. __attribute__((tls_model("initial-exec"), unused)) foo;
  6821. foo = 0;
  6822. ;
  6823. return 0;
  6824. }
  6825. _ACEOF
  6826. if ac_fn_c_try_link "$LINENO"; then :
  6827. je_cv_tls_model=yes
  6828. else
  6829. je_cv_tls_model=no
  6830. fi
  6831. rm -f core conftest.err conftest.$ac_objext \
  6832. conftest$ac_exeext conftest.$ac_ext
  6833. fi
  6834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5
  6835. $as_echo "$je_cv_tls_model" >&6; }
  6836. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  6837. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6838. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6839. else
  6840. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6841. fi
  6842. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  6844. $as_echo_n "checking whether compiler supports -Werror... " >&6; }
  6845. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  6846. T_APPEND_V=-Werror
  6847. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6848. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  6849. else
  6850. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  6851. fi
  6852. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6853. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6854. else
  6855. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6856. fi
  6857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6858. /* end confdefs.h. */
  6859. int
  6860. main ()
  6861. {
  6862. return 0;
  6863. ;
  6864. return 0;
  6865. }
  6866. _ACEOF
  6867. if ac_fn_c_try_compile "$LINENO"; then :
  6868. je_cv_cflags_added=-Werror
  6869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6870. $as_echo "yes" >&6; }
  6871. else
  6872. je_cv_cflags_added=
  6873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6874. $as_echo "no" >&6; }
  6875. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  6876. fi
  6877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6878. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6879. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6880. else
  6881. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6882. fi
  6883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  6884. $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
  6885. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  6886. T_APPEND_V=-herror_on_warning
  6887. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6888. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  6889. else
  6890. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  6891. fi
  6892. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6893. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6894. else
  6895. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6896. fi
  6897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6898. /* end confdefs.h. */
  6899. int
  6900. main ()
  6901. {
  6902. return 0;
  6903. ;
  6904. return 0;
  6905. }
  6906. _ACEOF
  6907. if ac_fn_c_try_compile "$LINENO"; then :
  6908. je_cv_cflags_added=-herror_on_warning
  6909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6910. $as_echo "yes" >&6; }
  6911. else
  6912. je_cv_cflags_added=
  6913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6914. $as_echo "no" >&6; }
  6915. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  6916. fi
  6917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6918. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6919. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6920. else
  6921. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6922. fi
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5
  6924. $as_echo_n "checking whether alloc_size attribute is compilable... " >&6; }
  6925. if ${je_cv_alloc_size+:} false; then :
  6926. $as_echo_n "(cached) " >&6
  6927. else
  6928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6929. /* end confdefs.h. */
  6930. #include <stdlib.h>
  6931. int
  6932. main ()
  6933. {
  6934. void *foo(size_t size) __attribute__((alloc_size(1)));
  6935. ;
  6936. return 0;
  6937. }
  6938. _ACEOF
  6939. if ac_fn_c_try_link "$LINENO"; then :
  6940. je_cv_alloc_size=yes
  6941. else
  6942. je_cv_alloc_size=no
  6943. fi
  6944. rm -f core conftest.err conftest.$ac_objext \
  6945. conftest$ac_exeext conftest.$ac_ext
  6946. fi
  6947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5
  6948. $as_echo "$je_cv_alloc_size" >&6; }
  6949. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  6950. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6951. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6952. else
  6953. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6954. fi
  6955. if test "x${je_cv_alloc_size}" = "xyes" ; then
  6956. $as_echo "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE " >>confdefs.h
  6957. fi
  6958. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  6959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  6960. $as_echo_n "checking whether compiler supports -Werror... " >&6; }
  6961. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  6962. T_APPEND_V=-Werror
  6963. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  6964. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  6965. else
  6966. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  6967. fi
  6968. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6969. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6970. else
  6971. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6972. fi
  6973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6974. /* end confdefs.h. */
  6975. int
  6976. main ()
  6977. {
  6978. return 0;
  6979. ;
  6980. return 0;
  6981. }
  6982. _ACEOF
  6983. if ac_fn_c_try_compile "$LINENO"; then :
  6984. je_cv_cflags_added=-Werror
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6986. $as_echo "yes" >&6; }
  6987. else
  6988. je_cv_cflags_added=
  6989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6990. $as_echo "no" >&6; }
  6991. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  6992. fi
  6993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6994. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  6995. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  6996. else
  6997. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  6998. fi
  6999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  7000. $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
  7001. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7002. T_APPEND_V=-herror_on_warning
  7003. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7004. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  7005. else
  7006. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  7007. fi
  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. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7014. /* end confdefs.h. */
  7015. int
  7016. main ()
  7017. {
  7018. return 0;
  7019. ;
  7020. return 0;
  7021. }
  7022. _ACEOF
  7023. if ac_fn_c_try_compile "$LINENO"; then :
  7024. je_cv_cflags_added=-herror_on_warning
  7025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7026. $as_echo "yes" >&6; }
  7027. else
  7028. je_cv_cflags_added=
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7030. $as_echo "no" >&6; }
  7031. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  7032. fi
  7033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7034. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7035. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7036. else
  7037. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7038. fi
  7039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5
  7040. $as_echo_n "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; }
  7041. if ${je_cv_format_gnu_printf+:} false; then :
  7042. $as_echo_n "(cached) " >&6
  7043. else
  7044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7045. /* end confdefs.h. */
  7046. #include <stdlib.h>
  7047. int
  7048. main ()
  7049. {
  7050. void *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2)));
  7051. ;
  7052. return 0;
  7053. }
  7054. _ACEOF
  7055. if ac_fn_c_try_link "$LINENO"; then :
  7056. je_cv_format_gnu_printf=yes
  7057. else
  7058. je_cv_format_gnu_printf=no
  7059. fi
  7060. rm -f core conftest.err conftest.$ac_objext \
  7061. conftest$ac_exeext conftest.$ac_ext
  7062. fi
  7063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5
  7064. $as_echo "$je_cv_format_gnu_printf" >&6; }
  7065. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  7066. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7067. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7068. else
  7069. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7070. fi
  7071. if test "x${je_cv_format_gnu_printf}" = "xyes" ; then
  7072. $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF " >>confdefs.h
  7073. fi
  7074. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  7076. $as_echo_n "checking whether compiler supports -Werror... " >&6; }
  7077. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7078. T_APPEND_V=-Werror
  7079. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7080. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  7081. else
  7082. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  7083. fi
  7084. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7085. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7086. else
  7087. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7088. fi
  7089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7090. /* end confdefs.h. */
  7091. int
  7092. main ()
  7093. {
  7094. return 0;
  7095. ;
  7096. return 0;
  7097. }
  7098. _ACEOF
  7099. if ac_fn_c_try_compile "$LINENO"; then :
  7100. je_cv_cflags_added=-Werror
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7102. $as_echo "yes" >&6; }
  7103. else
  7104. je_cv_cflags_added=
  7105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7106. $as_echo "no" >&6; }
  7107. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  7108. fi
  7109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7110. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7111. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7112. else
  7113. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7114. fi
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  7116. $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
  7117. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7118. T_APPEND_V=-herror_on_warning
  7119. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7120. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  7121. else
  7122. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  7123. fi
  7124. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7125. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7126. else
  7127. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7128. fi
  7129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7130. /* end confdefs.h. */
  7131. int
  7132. main ()
  7133. {
  7134. return 0;
  7135. ;
  7136. return 0;
  7137. }
  7138. _ACEOF
  7139. if ac_fn_c_try_compile "$LINENO"; then :
  7140. je_cv_cflags_added=-herror_on_warning
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7142. $as_echo "yes" >&6; }
  7143. else
  7144. je_cv_cflags_added=
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7146. $as_echo "no" >&6; }
  7147. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  7148. fi
  7149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7150. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7151. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7152. else
  7153. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7154. fi
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
  7156. $as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; }
  7157. if ${je_cv_format_printf+:} false; then :
  7158. $as_echo_n "(cached) " >&6
  7159. else
  7160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7161. /* end confdefs.h. */
  7162. #include <stdlib.h>
  7163. int
  7164. main ()
  7165. {
  7166. void *foo(const char *format, ...) __attribute__((format(printf, 1, 2)));
  7167. ;
  7168. return 0;
  7169. }
  7170. _ACEOF
  7171. if ac_fn_c_try_link "$LINENO"; then :
  7172. je_cv_format_printf=yes
  7173. else
  7174. je_cv_format_printf=no
  7175. fi
  7176. rm -f core conftest.err conftest.$ac_objext \
  7177. conftest$ac_exeext conftest.$ac_ext
  7178. fi
  7179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5
  7180. $as_echo "$je_cv_format_printf" >&6; }
  7181. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  7182. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7183. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7184. else
  7185. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7186. fi
  7187. if test "x${je_cv_format_printf}" = "xyes" ; then
  7188. $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF " >>confdefs.h
  7189. fi
  7190. # Check whether --with-rpath was given.
  7191. if test "${with_rpath+set}" = set; then :
  7192. withval=$with_rpath; if test "x$with_rpath" = "xno" ; then
  7193. RPATH_EXTRA=
  7194. else
  7195. RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`"
  7196. fi
  7197. else
  7198. RPATH_EXTRA=
  7199. fi
  7200. # Check whether --enable-autogen was given.
  7201. if test "${enable_autogen+set}" = set; then :
  7202. enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
  7203. enable_autogen="0"
  7204. else
  7205. enable_autogen="1"
  7206. fi
  7207. else
  7208. enable_autogen="0"
  7209. fi
  7210. # Find a good install program. We prefer a C program (faster),
  7211. # so one script is as good as another. But avoid the broken or
  7212. # incompatible versions:
  7213. # SysV /etc/install, /usr/sbin/install
  7214. # SunOS /usr/etc/install
  7215. # IRIX /sbin/install
  7216. # AIX /bin/install
  7217. # AmigaOS /C/install, which installs bootblocks on floppy discs
  7218. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  7219. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  7220. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  7221. # OS/2's system install, which has a completely different semantic
  7222. # ./install, which can be erroneously created by make from ./install.sh.
  7223. # Reject install programs that cannot install multiple files.
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  7225. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  7226. if test -z "$INSTALL"; then
  7227. if ${ac_cv_path_install+:} false; then :
  7228. $as_echo_n "(cached) " >&6
  7229. else
  7230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7231. for as_dir in $PATH
  7232. do
  7233. IFS=$as_save_IFS
  7234. test -z "$as_dir" && as_dir=.
  7235. # Account for people who put trailing slashes in PATH elements.
  7236. case $as_dir/ in #((
  7237. ./ | .// | /[cC]/* | \
  7238. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  7239. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  7240. /usr/ucb/* ) ;;
  7241. *)
  7242. # OSF1 and SCO ODT 3.0 have their own names for install.
  7243. # Don't use installbsd from OSF since it installs stuff as root
  7244. # by default.
  7245. for ac_prog in ginstall scoinst install; do
  7246. for ac_exec_ext in '' $ac_executable_extensions; do
  7247. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  7248. if test $ac_prog = install &&
  7249. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  7250. # AIX install. It has an incompatible calling convention.
  7251. :
  7252. elif test $ac_prog = install &&
  7253. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  7254. # program-specific install script used by HP pwplus--don't use.
  7255. :
  7256. else
  7257. rm -rf conftest.one conftest.two conftest.dir
  7258. echo one > conftest.one
  7259. echo two > conftest.two
  7260. mkdir conftest.dir
  7261. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  7262. test -s conftest.one && test -s conftest.two &&
  7263. test -s conftest.dir/conftest.one &&
  7264. test -s conftest.dir/conftest.two
  7265. then
  7266. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  7267. break 3
  7268. fi
  7269. fi
  7270. fi
  7271. done
  7272. done
  7273. ;;
  7274. esac
  7275. done
  7276. IFS=$as_save_IFS
  7277. rm -rf conftest.one conftest.two conftest.dir
  7278. fi
  7279. if test "${ac_cv_path_install+set}" = set; then
  7280. INSTALL=$ac_cv_path_install
  7281. else
  7282. # As a last resort, use the slow shell script. Don't cache a
  7283. # value for INSTALL within a source directory, because that will
  7284. # break other packages using the cache if that directory is
  7285. # removed, or if the value is a relative name.
  7286. INSTALL=$ac_install_sh
  7287. fi
  7288. fi
  7289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  7290. $as_echo "$INSTALL" >&6; }
  7291. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  7292. # It thinks the first close brace ends the variable substitution.
  7293. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  7294. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  7295. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  7296. if test -n "$ac_tool_prefix"; then
  7297. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7298. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7300. $as_echo_n "checking for $ac_word... " >&6; }
  7301. if ${ac_cv_prog_RANLIB+:} false; then :
  7302. $as_echo_n "(cached) " >&6
  7303. else
  7304. if test -n "$RANLIB"; then
  7305. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7306. else
  7307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7308. for as_dir in $PATH
  7309. do
  7310. IFS=$as_save_IFS
  7311. test -z "$as_dir" && as_dir=.
  7312. for ac_exec_ext in '' $ac_executable_extensions; do
  7313. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7314. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7316. break 2
  7317. fi
  7318. done
  7319. done
  7320. IFS=$as_save_IFS
  7321. fi
  7322. fi
  7323. RANLIB=$ac_cv_prog_RANLIB
  7324. if test -n "$RANLIB"; then
  7325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7326. $as_echo "$RANLIB" >&6; }
  7327. else
  7328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7329. $as_echo "no" >&6; }
  7330. fi
  7331. fi
  7332. if test -z "$ac_cv_prog_RANLIB"; then
  7333. ac_ct_RANLIB=$RANLIB
  7334. # Extract the first word of "ranlib", so it can be a program name with args.
  7335. set dummy ranlib; ac_word=$2
  7336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7337. $as_echo_n "checking for $ac_word... " >&6; }
  7338. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  7339. $as_echo_n "(cached) " >&6
  7340. else
  7341. if test -n "$ac_ct_RANLIB"; then
  7342. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7343. else
  7344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7345. for as_dir in $PATH
  7346. do
  7347. IFS=$as_save_IFS
  7348. test -z "$as_dir" && as_dir=.
  7349. for ac_exec_ext in '' $ac_executable_extensions; do
  7350. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7351. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7353. break 2
  7354. fi
  7355. done
  7356. done
  7357. IFS=$as_save_IFS
  7358. fi
  7359. fi
  7360. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7361. if test -n "$ac_ct_RANLIB"; then
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7363. $as_echo "$ac_ct_RANLIB" >&6; }
  7364. else
  7365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7366. $as_echo "no" >&6; }
  7367. fi
  7368. if test "x$ac_ct_RANLIB" = x; then
  7369. RANLIB=":"
  7370. else
  7371. case $cross_compiling:$ac_tool_warned in
  7372. yes:)
  7373. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7374. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7375. ac_tool_warned=yes ;;
  7376. esac
  7377. RANLIB=$ac_ct_RANLIB
  7378. fi
  7379. else
  7380. RANLIB="$ac_cv_prog_RANLIB"
  7381. fi
  7382. # Extract the first word of "ld", so it can be a program name with args.
  7383. set dummy ld; ac_word=$2
  7384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7385. $as_echo_n "checking for $ac_word... " >&6; }
  7386. if ${ac_cv_path_LD+:} false; then :
  7387. $as_echo_n "(cached) " >&6
  7388. else
  7389. case $LD in
  7390. [\\/]* | ?:[\\/]*)
  7391. ac_cv_path_LD="$LD" # Let the user override the test with a path.
  7392. ;;
  7393. *)
  7394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7395. for as_dir in $PATH
  7396. do
  7397. IFS=$as_save_IFS
  7398. test -z "$as_dir" && as_dir=.
  7399. for ac_exec_ext in '' $ac_executable_extensions; do
  7400. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7401. ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
  7402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7403. break 2
  7404. fi
  7405. done
  7406. done
  7407. IFS=$as_save_IFS
  7408. test -z "$ac_cv_path_LD" && ac_cv_path_LD="false"
  7409. ;;
  7410. esac
  7411. fi
  7412. LD=$ac_cv_path_LD
  7413. if test -n "$LD"; then
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7415. $as_echo "$LD" >&6; }
  7416. else
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7418. $as_echo "no" >&6; }
  7419. fi
  7420. # Extract the first word of "autoconf", so it can be a program name with args.
  7421. set dummy autoconf; ac_word=$2
  7422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7423. $as_echo_n "checking for $ac_word... " >&6; }
  7424. if ${ac_cv_path_AUTOCONF+:} false; then :
  7425. $as_echo_n "(cached) " >&6
  7426. else
  7427. case $AUTOCONF in
  7428. [\\/]* | ?:[\\/]*)
  7429. ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
  7430. ;;
  7431. *)
  7432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7433. for as_dir in $PATH
  7434. do
  7435. IFS=$as_save_IFS
  7436. test -z "$as_dir" && as_dir=.
  7437. for ac_exec_ext in '' $ac_executable_extensions; do
  7438. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7439. ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
  7440. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7441. break 2
  7442. fi
  7443. done
  7444. done
  7445. IFS=$as_save_IFS
  7446. test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false"
  7447. ;;
  7448. esac
  7449. fi
  7450. AUTOCONF=$ac_cv_path_AUTOCONF
  7451. if test -n "$AUTOCONF"; then
  7452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
  7453. $as_echo "$AUTOCONF" >&6; }
  7454. else
  7455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7456. $as_echo "no" >&6; }
  7457. fi
  7458. # Check whether --with-mangling was given.
  7459. if test "${with_mangling+set}" = set; then :
  7460. withval=$with_mangling; mangling_map="$with_mangling"
  7461. else
  7462. mangling_map=""
  7463. fi
  7464. # Check whether --with-jemalloc_prefix was given.
  7465. if test "${with_jemalloc_prefix+set}" = set; then :
  7466. withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix"
  7467. else
  7468. if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
  7469. JEMALLOC_PREFIX=""
  7470. else
  7471. JEMALLOC_PREFIX="je_"
  7472. fi
  7473. fi
  7474. if test "x$JEMALLOC_PREFIX" = "x" ; then
  7475. $as_echo "#define JEMALLOC_IS_MALLOC 1" >>confdefs.h
  7476. else
  7477. JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
  7478. cat >>confdefs.h <<_ACEOF
  7479. #define JEMALLOC_PREFIX "$JEMALLOC_PREFIX"
  7480. _ACEOF
  7481. cat >>confdefs.h <<_ACEOF
  7482. #define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX"
  7483. _ACEOF
  7484. fi
  7485. # Check whether --with-export was given.
  7486. if test "${with_export+set}" = set; then :
  7487. withval=$with_export; if test "x$with_export" = "xno"; then
  7488. $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h
  7489. fi
  7490. fi
  7491. public_syms="aligned_alloc calloc dallocx free mallctl mallctlbymib mallctlnametomib malloc malloc_conf malloc_message malloc_stats_print malloc_usable_size mallocx nallocx posix_memalign rallocx realloc sallocx sdallocx xallocx"
  7492. ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
  7493. if test "x$ac_cv_func_memalign" = xyes; then :
  7494. $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN " >>confdefs.h
  7495. public_syms="${public_syms} memalign"
  7496. fi
  7497. ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
  7498. if test "x$ac_cv_func_valloc" = xyes; then :
  7499. $as_echo "#define JEMALLOC_OVERRIDE_VALLOC " >>confdefs.h
  7500. public_syms="${public_syms} valloc"
  7501. fi
  7502. wrap_syms=
  7503. if test "x${JEMALLOC_PREFIX}" = "x" ; then
  7504. ac_fn_c_check_func "$LINENO" "__libc_calloc" "ac_cv_func___libc_calloc"
  7505. if test "x$ac_cv_func___libc_calloc" = xyes; then :
  7506. $as_echo "#define JEMALLOC_OVERRIDE___LIBC_CALLOC " >>confdefs.h
  7507. wrap_syms="${wrap_syms} __libc_calloc"
  7508. fi
  7509. ac_fn_c_check_func "$LINENO" "__libc_free" "ac_cv_func___libc_free"
  7510. if test "x$ac_cv_func___libc_free" = xyes; then :
  7511. $as_echo "#define JEMALLOC_OVERRIDE___LIBC_FREE " >>confdefs.h
  7512. wrap_syms="${wrap_syms} __libc_free"
  7513. fi
  7514. ac_fn_c_check_func "$LINENO" "__libc_malloc" "ac_cv_func___libc_malloc"
  7515. if test "x$ac_cv_func___libc_malloc" = xyes; then :
  7516. $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MALLOC " >>confdefs.h
  7517. wrap_syms="${wrap_syms} __libc_malloc"
  7518. fi
  7519. ac_fn_c_check_func "$LINENO" "__libc_memalign" "ac_cv_func___libc_memalign"
  7520. if test "x$ac_cv_func___libc_memalign" = xyes; then :
  7521. $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MEMALIGN " >>confdefs.h
  7522. wrap_syms="${wrap_syms} __libc_memalign"
  7523. fi
  7524. ac_fn_c_check_func "$LINENO" "__libc_realloc" "ac_cv_func___libc_realloc"
  7525. if test "x$ac_cv_func___libc_realloc" = xyes; then :
  7526. $as_echo "#define JEMALLOC_OVERRIDE___LIBC_REALLOC " >>confdefs.h
  7527. wrap_syms="${wrap_syms} __libc_realloc"
  7528. fi
  7529. ac_fn_c_check_func "$LINENO" "__libc_valloc" "ac_cv_func___libc_valloc"
  7530. if test "x$ac_cv_func___libc_valloc" = xyes; then :
  7531. $as_echo "#define JEMALLOC_OVERRIDE___LIBC_VALLOC " >>confdefs.h
  7532. wrap_syms="${wrap_syms} __libc_valloc"
  7533. fi
  7534. ac_fn_c_check_func "$LINENO" "__posix_memalign" "ac_cv_func___posix_memalign"
  7535. if test "x$ac_cv_func___posix_memalign" = xyes; then :
  7536. $as_echo "#define JEMALLOC_OVERRIDE___POSIX_MEMALIGN " >>confdefs.h
  7537. wrap_syms="${wrap_syms} __posix_memalign"
  7538. fi
  7539. fi
  7540. case "${host}" in
  7541. *-*-mingw* | *-*-cygwin*)
  7542. wrap_syms="${wrap_syms} tls_callback"
  7543. ;;
  7544. *)
  7545. ;;
  7546. esac
  7547. # Check whether --with-private_namespace was given.
  7548. if test "${with_private_namespace+set}" = set; then :
  7549. withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_"
  7550. else
  7551. JEMALLOC_PRIVATE_NAMESPACE="je_"
  7552. fi
  7553. cat >>confdefs.h <<_ACEOF
  7554. #define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE
  7555. _ACEOF
  7556. private_namespace="$JEMALLOC_PRIVATE_NAMESPACE"
  7557. # Check whether --with-install_suffix was given.
  7558. if test "${with_install_suffix+set}" = set; then :
  7559. withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix"
  7560. else
  7561. INSTALL_SUFFIX=
  7562. fi
  7563. install_suffix="$INSTALL_SUFFIX"
  7564. # Check whether --with-malloc_conf was given.
  7565. if test "${with_malloc_conf+set}" = set; then :
  7566. withval=$with_malloc_conf; JEMALLOC_CONFIG_MALLOC_CONF="$with_malloc_conf"
  7567. else
  7568. JEMALLOC_CONFIG_MALLOC_CONF=""
  7569. fi
  7570. config_malloc_conf="$JEMALLOC_CONFIG_MALLOC_CONF"
  7571. cat >>confdefs.h <<_ACEOF
  7572. #define JEMALLOC_CONFIG_MALLOC_CONF "$config_malloc_conf"
  7573. _ACEOF
  7574. je_="je_"
  7575. cfgoutputs_in="Makefile.in"
  7576. cfgoutputs_in="${cfgoutputs_in} jemalloc.pc.in"
  7577. cfgoutputs_in="${cfgoutputs_in} doc/html.xsl.in"
  7578. cfgoutputs_in="${cfgoutputs_in} doc/manpages.xsl.in"
  7579. cfgoutputs_in="${cfgoutputs_in} doc/jemalloc.xml.in"
  7580. cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in"
  7581. cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in"
  7582. cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in"
  7583. cfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_preamble.h.in"
  7584. cfgoutputs_in="${cfgoutputs_in} test/test.sh.in"
  7585. cfgoutputs_in="${cfgoutputs_in} test/include/test/jemalloc_test.h.in"
  7586. cfgoutputs_out="Makefile"
  7587. cfgoutputs_out="${cfgoutputs_out} jemalloc.pc"
  7588. cfgoutputs_out="${cfgoutputs_out} doc/html.xsl"
  7589. cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl"
  7590. cfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml"
  7591. cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h"
  7592. cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h"
  7593. cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h"
  7594. cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_preamble.h"
  7595. cfgoutputs_out="${cfgoutputs_out} test/test.sh"
  7596. cfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h"
  7597. cfgoutputs_tup="Makefile"
  7598. cfgoutputs_tup="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in"
  7599. cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
  7600. cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
  7601. cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in"
  7602. cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in"
  7603. cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in"
  7604. cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in"
  7605. cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_preamble.h"
  7606. cfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in"
  7607. cfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in"
  7608. cfghdrs_in="include/jemalloc/jemalloc_defs.h.in"
  7609. cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in"
  7610. cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_symbols.sh"
  7611. cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh"
  7612. cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh"
  7613. cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh"
  7614. cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/size_classes.sh"
  7615. cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh"
  7616. cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh"
  7617. cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc.sh"
  7618. cfghdrs_in="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in"
  7619. cfghdrs_out="include/jemalloc/jemalloc_defs.h"
  7620. cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h"
  7621. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols.awk"
  7622. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols_jet.awk"
  7623. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt"
  7624. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h"
  7625. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h"
  7626. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/size_classes.h"
  7627. cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h"
  7628. cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h"
  7629. cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h"
  7630. cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h"
  7631. cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h"
  7632. cfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h"
  7633. cfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in"
  7634. cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in"
  7635. cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in"
  7636. # Check whether --enable-debug was given.
  7637. if test "${enable_debug+set}" = set; then :
  7638. enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then
  7639. enable_debug="0"
  7640. else
  7641. enable_debug="1"
  7642. fi
  7643. else
  7644. enable_debug="0"
  7645. fi
  7646. if test "x$enable_debug" = "x1" ; then
  7647. $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h
  7648. fi
  7649. if test "x$enable_debug" = "x1" ; then
  7650. $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h
  7651. fi
  7652. if test "x$enable_debug" = "x0" ; then
  7653. if test "x$GCC" = "xyes" ; then
  7654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
  7655. $as_echo_n "checking whether compiler supports -O3... " >&6; }
  7656. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7657. T_APPEND_V=-O3
  7658. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7659. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  7660. else
  7661. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  7662. fi
  7663. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7664. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7665. else
  7666. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7667. fi
  7668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7669. /* end confdefs.h. */
  7670. int
  7671. main ()
  7672. {
  7673. return 0;
  7674. ;
  7675. return 0;
  7676. }
  7677. _ACEOF
  7678. if ac_fn_c_try_compile "$LINENO"; then :
  7679. je_cv_cflags_added=-O3
  7680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7681. $as_echo "yes" >&6; }
  7682. else
  7683. je_cv_cflags_added=
  7684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7685. $as_echo "no" >&6; }
  7686. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  7687. fi
  7688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7689. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7690. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7691. else
  7692. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7693. fi
  7694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
  7695. $as_echo_n "checking whether compiler supports -O3... " >&6; }
  7696. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  7697. T_APPEND_V=-O3
  7698. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7699. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  7700. else
  7701. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  7702. fi
  7703. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  7704. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  7705. else
  7706. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  7707. fi
  7708. ac_ext=cpp
  7709. ac_cpp='$CXXCPP $CPPFLAGS'
  7710. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7711. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7712. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7714. /* end confdefs.h. */
  7715. int
  7716. main ()
  7717. {
  7718. return 0;
  7719. ;
  7720. return 0;
  7721. }
  7722. _ACEOF
  7723. if ac_fn_cxx_try_compile "$LINENO"; then :
  7724. je_cv_cxxflags_added=-O3
  7725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7726. $as_echo "yes" >&6; }
  7727. else
  7728. je_cv_cxxflags_added=
  7729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7730. $as_echo "no" >&6; }
  7731. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  7732. fi
  7733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7734. ac_ext=c
  7735. ac_cpp='$CPP $CPPFLAGS'
  7736. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7737. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7738. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7739. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  7740. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  7741. else
  7742. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  7743. fi
  7744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
  7745. $as_echo_n "checking whether compiler supports -funroll-loops... " >&6; }
  7746. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7747. T_APPEND_V=-funroll-loops
  7748. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7749. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  7750. else
  7751. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  7752. fi
  7753. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7754. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7755. else
  7756. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7757. fi
  7758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7759. /* end confdefs.h. */
  7760. int
  7761. main ()
  7762. {
  7763. return 0;
  7764. ;
  7765. return 0;
  7766. }
  7767. _ACEOF
  7768. if ac_fn_c_try_compile "$LINENO"; then :
  7769. je_cv_cflags_added=-funroll-loops
  7770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7771. $as_echo "yes" >&6; }
  7772. else
  7773. je_cv_cflags_added=
  7774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7775. $as_echo "no" >&6; }
  7776. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  7777. fi
  7778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7779. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7780. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7781. else
  7782. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7783. fi
  7784. elif test "x$je_cv_msvc" = "xyes" ; then
  7785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
  7786. $as_echo_n "checking whether compiler supports -O2... " >&6; }
  7787. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7788. T_APPEND_V=-O2
  7789. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7790. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  7791. else
  7792. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  7793. fi
  7794. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7795. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7796. else
  7797. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7798. fi
  7799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7800. /* end confdefs.h. */
  7801. int
  7802. main ()
  7803. {
  7804. return 0;
  7805. ;
  7806. return 0;
  7807. }
  7808. _ACEOF
  7809. if ac_fn_c_try_compile "$LINENO"; then :
  7810. je_cv_cflags_added=-O2
  7811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7812. $as_echo "yes" >&6; }
  7813. else
  7814. je_cv_cflags_added=
  7815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7816. $as_echo "no" >&6; }
  7817. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  7818. fi
  7819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7820. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7821. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7822. else
  7823. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7824. fi
  7825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
  7826. $as_echo_n "checking whether compiler supports -O2... " >&6; }
  7827. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  7828. T_APPEND_V=-O2
  7829. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7830. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  7831. else
  7832. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  7833. fi
  7834. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  7835. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  7836. else
  7837. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  7838. fi
  7839. ac_ext=cpp
  7840. ac_cpp='$CXXCPP $CPPFLAGS'
  7841. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7842. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7843. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7845. /* end confdefs.h. */
  7846. int
  7847. main ()
  7848. {
  7849. return 0;
  7850. ;
  7851. return 0;
  7852. }
  7853. _ACEOF
  7854. if ac_fn_cxx_try_compile "$LINENO"; then :
  7855. je_cv_cxxflags_added=-O2
  7856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7857. $as_echo "yes" >&6; }
  7858. else
  7859. je_cv_cxxflags_added=
  7860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7861. $as_echo "no" >&6; }
  7862. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  7863. fi
  7864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7865. ac_ext=c
  7866. ac_cpp='$CPP $CPPFLAGS'
  7867. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7868. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7869. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7870. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  7871. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  7872. else
  7873. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  7874. fi
  7875. else
  7876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
  7877. $as_echo_n "checking whether compiler supports -O... " >&6; }
  7878. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  7879. T_APPEND_V=-O
  7880. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7881. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  7882. else
  7883. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  7884. fi
  7885. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7886. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7887. else
  7888. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7889. fi
  7890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7891. /* end confdefs.h. */
  7892. int
  7893. main ()
  7894. {
  7895. return 0;
  7896. ;
  7897. return 0;
  7898. }
  7899. _ACEOF
  7900. if ac_fn_c_try_compile "$LINENO"; then :
  7901. je_cv_cflags_added=-O
  7902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7903. $as_echo "yes" >&6; }
  7904. else
  7905. je_cv_cflags_added=
  7906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7907. $as_echo "no" >&6; }
  7908. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  7909. fi
  7910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7911. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  7912. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  7913. else
  7914. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  7915. fi
  7916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
  7917. $as_echo_n "checking whether compiler supports -O... " >&6; }
  7918. T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
  7919. T_APPEND_V=-O
  7920. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  7921. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
  7922. else
  7923. CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
  7924. fi
  7925. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  7926. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  7927. else
  7928. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  7929. fi
  7930. ac_ext=cpp
  7931. ac_cpp='$CXXCPP $CPPFLAGS'
  7932. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7933. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7934. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7936. /* end confdefs.h. */
  7937. int
  7938. main ()
  7939. {
  7940. return 0;
  7941. ;
  7942. return 0;
  7943. }
  7944. _ACEOF
  7945. if ac_fn_cxx_try_compile "$LINENO"; then :
  7946. je_cv_cxxflags_added=-O
  7947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7948. $as_echo "yes" >&6; }
  7949. else
  7950. je_cv_cxxflags_added=
  7951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7952. $as_echo "no" >&6; }
  7953. CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
  7954. fi
  7955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7956. ac_ext=c
  7957. ac_cpp='$CPP $CPPFLAGS'
  7958. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7959. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7960. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7961. if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
  7962. CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
  7963. else
  7964. CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
  7965. fi
  7966. fi
  7967. fi
  7968. # Check whether --enable-stats was given.
  7969. if test "${enable_stats+set}" = set; then :
  7970. enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then
  7971. enable_stats="0"
  7972. else
  7973. enable_stats="1"
  7974. fi
  7975. else
  7976. enable_stats="1"
  7977. fi
  7978. if test "x$enable_stats" = "x1" ; then
  7979. $as_echo "#define JEMALLOC_STATS " >>confdefs.h
  7980. fi
  7981. # Check whether --enable-prof was given.
  7982. if test "${enable_prof+set}" = set; then :
  7983. enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then
  7984. enable_prof="0"
  7985. else
  7986. enable_prof="1"
  7987. fi
  7988. else
  7989. enable_prof="0"
  7990. fi
  7991. if test "x$enable_prof" = "x1" ; then
  7992. backtrace_method=""
  7993. else
  7994. backtrace_method="N/A"
  7995. fi
  7996. # Check whether --enable-prof-libunwind was given.
  7997. if test "${enable_prof_libunwind+set}" = set; then :
  7998. enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
  7999. enable_prof_libunwind="0"
  8000. else
  8001. enable_prof_libunwind="1"
  8002. fi
  8003. else
  8004. enable_prof_libunwind="0"
  8005. fi
  8006. # Check whether --with-static_libunwind was given.
  8007. if test "${with_static_libunwind+set}" = set; then :
  8008. withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
  8009. LUNWIND="-lunwind"
  8010. else
  8011. if test ! -f "$with_static_libunwind" ; then
  8012. as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5
  8013. fi
  8014. LUNWIND="$with_static_libunwind"
  8015. fi
  8016. else
  8017. LUNWIND="-lunwind"
  8018. fi
  8019. if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
  8020. for ac_header in libunwind.h
  8021. do :
  8022. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  8023. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  8024. cat >>confdefs.h <<_ACEOF
  8025. #define HAVE_LIBUNWIND_H 1
  8026. _ACEOF
  8027. else
  8028. enable_prof_libunwind="0"
  8029. fi
  8030. done
  8031. if test "x$LUNWIND" = "x-lunwind" ; then
  8032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5
  8033. $as_echo_n "checking for unw_backtrace in -lunwind... " >&6; }
  8034. if ${ac_cv_lib_unwind_unw_backtrace+:} false; then :
  8035. $as_echo_n "(cached) " >&6
  8036. else
  8037. ac_check_lib_save_LIBS=$LIBS
  8038. LIBS="-lunwind $LIBS"
  8039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8040. /* end confdefs.h. */
  8041. /* Override any GCC internal prototype to avoid an error.
  8042. Use char because int might match the return type of a GCC
  8043. builtin and then its argument prototype would still apply. */
  8044. #ifdef __cplusplus
  8045. extern "C"
  8046. #endif
  8047. char unw_backtrace ();
  8048. int
  8049. main ()
  8050. {
  8051. return unw_backtrace ();
  8052. ;
  8053. return 0;
  8054. }
  8055. _ACEOF
  8056. if ac_fn_c_try_link "$LINENO"; then :
  8057. ac_cv_lib_unwind_unw_backtrace=yes
  8058. else
  8059. ac_cv_lib_unwind_unw_backtrace=no
  8060. fi
  8061. rm -f core conftest.err conftest.$ac_objext \
  8062. conftest$ac_exeext conftest.$ac_ext
  8063. LIBS=$ac_check_lib_save_LIBS
  8064. fi
  8065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5
  8066. $as_echo "$ac_cv_lib_unwind_unw_backtrace" >&6; }
  8067. if test "x$ac_cv_lib_unwind_unw_backtrace" = xyes; then :
  8068. T_APPEND_V=$LUNWIND
  8069. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8070. LIBS="${LIBS}${T_APPEND_V}"
  8071. else
  8072. LIBS="${LIBS} ${T_APPEND_V}"
  8073. fi
  8074. else
  8075. enable_prof_libunwind="0"
  8076. fi
  8077. else
  8078. T_APPEND_V=$LUNWIND
  8079. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8080. LIBS="${LIBS}${T_APPEND_V}"
  8081. else
  8082. LIBS="${LIBS} ${T_APPEND_V}"
  8083. fi
  8084. fi
  8085. if test "x${enable_prof_libunwind}" = "x1" ; then
  8086. backtrace_method="libunwind"
  8087. $as_echo "#define JEMALLOC_PROF_LIBUNWIND " >>confdefs.h
  8088. fi
  8089. fi
  8090. # Check whether --enable-prof-libgcc was given.
  8091. if test "${enable_prof_libgcc+set}" = set; then :
  8092. enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
  8093. enable_prof_libgcc="0"
  8094. else
  8095. enable_prof_libgcc="1"
  8096. fi
  8097. else
  8098. enable_prof_libgcc="1"
  8099. fi
  8100. if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
  8101. -a "x$GCC" = "xyes" ; then
  8102. for ac_header in unwind.h
  8103. do :
  8104. ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
  8105. if test "x$ac_cv_header_unwind_h" = xyes; then :
  8106. cat >>confdefs.h <<_ACEOF
  8107. #define HAVE_UNWIND_H 1
  8108. _ACEOF
  8109. else
  8110. enable_prof_libgcc="0"
  8111. fi
  8112. done
  8113. if test "x${enable_prof_libgcc}" = "x1" ; then
  8114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
  8115. $as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; }
  8116. if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then :
  8117. $as_echo_n "(cached) " >&6
  8118. else
  8119. ac_check_lib_save_LIBS=$LIBS
  8120. LIBS="-lgcc $LIBS"
  8121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8122. /* end confdefs.h. */
  8123. /* Override any GCC internal prototype to avoid an error.
  8124. Use char because int might match the return type of a GCC
  8125. builtin and then its argument prototype would still apply. */
  8126. #ifdef __cplusplus
  8127. extern "C"
  8128. #endif
  8129. char _Unwind_Backtrace ();
  8130. int
  8131. main ()
  8132. {
  8133. return _Unwind_Backtrace ();
  8134. ;
  8135. return 0;
  8136. }
  8137. _ACEOF
  8138. if ac_fn_c_try_link "$LINENO"; then :
  8139. ac_cv_lib_gcc__Unwind_Backtrace=yes
  8140. else
  8141. ac_cv_lib_gcc__Unwind_Backtrace=no
  8142. fi
  8143. rm -f core conftest.err conftest.$ac_objext \
  8144. conftest$ac_exeext conftest.$ac_ext
  8145. LIBS=$ac_check_lib_save_LIBS
  8146. fi
  8147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
  8148. $as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
  8149. if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then :
  8150. T_APPEND_V=-lgcc
  8151. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8152. LIBS="${LIBS}${T_APPEND_V}"
  8153. else
  8154. LIBS="${LIBS} ${T_APPEND_V}"
  8155. fi
  8156. else
  8157. enable_prof_libgcc="0"
  8158. fi
  8159. fi
  8160. if test "x${enable_prof_libgcc}" = "x1" ; then
  8161. backtrace_method="libgcc"
  8162. $as_echo "#define JEMALLOC_PROF_LIBGCC " >>confdefs.h
  8163. fi
  8164. else
  8165. enable_prof_libgcc="0"
  8166. fi
  8167. # Check whether --enable-prof-gcc was given.
  8168. if test "${enable_prof_gcc+set}" = set; then :
  8169. enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
  8170. enable_prof_gcc="0"
  8171. else
  8172. enable_prof_gcc="1"
  8173. fi
  8174. else
  8175. enable_prof_gcc="1"
  8176. fi
  8177. if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
  8178. -a "x$GCC" = "xyes" ; then
  8179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5
  8180. $as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; }
  8181. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8182. T_APPEND_V=-fno-omit-frame-pointer
  8183. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8184. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8185. else
  8186. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8187. fi
  8188. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8189. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8190. else
  8191. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8192. fi
  8193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8194. /* end confdefs.h. */
  8195. int
  8196. main ()
  8197. {
  8198. return 0;
  8199. ;
  8200. return 0;
  8201. }
  8202. _ACEOF
  8203. if ac_fn_c_try_compile "$LINENO"; then :
  8204. je_cv_cflags_added=-fno-omit-frame-pointer
  8205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8206. $as_echo "yes" >&6; }
  8207. else
  8208. je_cv_cflags_added=
  8209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8210. $as_echo "no" >&6; }
  8211. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8212. fi
  8213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8214. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8215. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8216. else
  8217. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8218. fi
  8219. backtrace_method="gcc intrinsics"
  8220. $as_echo "#define JEMALLOC_PROF_GCC " >>confdefs.h
  8221. else
  8222. enable_prof_gcc="0"
  8223. fi
  8224. if test "x$backtrace_method" = "x" ; then
  8225. backtrace_method="none (disabling profiling)"
  8226. enable_prof="0"
  8227. fi
  8228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
  8229. $as_echo_n "checking configured backtracing method... " >&6; }
  8230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
  8231. $as_echo "$backtrace_method" >&6; }
  8232. if test "x$enable_prof" = "x1" ; then
  8233. T_APPEND_V=$LM
  8234. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8235. LIBS="${LIBS}${T_APPEND_V}"
  8236. else
  8237. LIBS="${LIBS} ${T_APPEND_V}"
  8238. fi
  8239. $as_echo "#define JEMALLOC_PROF " >>confdefs.h
  8240. fi
  8241. if test "x${maps_coalesce}" = "x1" ; then
  8242. $as_echo "#define JEMALLOC_MAPS_COALESCE " >>confdefs.h
  8243. fi
  8244. if test "x$default_retain" = "x1" ; then
  8245. $as_echo "#define JEMALLOC_RETAIN " >>confdefs.h
  8246. fi
  8247. have_dss="1"
  8248. ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
  8249. if test "x$ac_cv_func_sbrk" = xyes; then :
  8250. have_sbrk="1"
  8251. else
  8252. have_sbrk="0"
  8253. fi
  8254. if test "x$have_sbrk" = "x1" ; then
  8255. if test "x$sbrk_deprecated" = "x1" ; then
  8256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5
  8257. $as_echo "Disabling dss allocation because sbrk is deprecated" >&6; }
  8258. have_dss="0"
  8259. fi
  8260. else
  8261. have_dss="0"
  8262. fi
  8263. if test "x$have_dss" = "x1" ; then
  8264. $as_echo "#define JEMALLOC_DSS " >>confdefs.h
  8265. fi
  8266. # Check whether --enable-fill was given.
  8267. if test "${enable_fill+set}" = set; then :
  8268. enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then
  8269. enable_fill="0"
  8270. else
  8271. enable_fill="1"
  8272. fi
  8273. else
  8274. enable_fill="1"
  8275. fi
  8276. if test "x$enable_fill" = "x1" ; then
  8277. $as_echo "#define JEMALLOC_FILL " >>confdefs.h
  8278. fi
  8279. # Check whether --enable-utrace was given.
  8280. if test "${enable_utrace+set}" = set; then :
  8281. enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then
  8282. enable_utrace="0"
  8283. else
  8284. enable_utrace="1"
  8285. fi
  8286. else
  8287. enable_utrace="0"
  8288. fi
  8289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5
  8290. $as_echo_n "checking whether utrace(2) is compilable... " >&6; }
  8291. if ${je_cv_utrace+:} false; then :
  8292. $as_echo_n "(cached) " >&6
  8293. else
  8294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8295. /* end confdefs.h. */
  8296. #include <sys/types.h>
  8297. #include <sys/param.h>
  8298. #include <sys/time.h>
  8299. #include <sys/uio.h>
  8300. #include <sys/ktrace.h>
  8301. int
  8302. main ()
  8303. {
  8304. utrace((void *)0, 0);
  8305. ;
  8306. return 0;
  8307. }
  8308. _ACEOF
  8309. if ac_fn_c_try_link "$LINENO"; then :
  8310. je_cv_utrace=yes
  8311. else
  8312. je_cv_utrace=no
  8313. fi
  8314. rm -f core conftest.err conftest.$ac_objext \
  8315. conftest$ac_exeext conftest.$ac_ext
  8316. fi
  8317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5
  8318. $as_echo "$je_cv_utrace" >&6; }
  8319. if test "x${je_cv_utrace}" = "xno" ; then
  8320. enable_utrace="0"
  8321. fi
  8322. if test "x$enable_utrace" = "x1" ; then
  8323. $as_echo "#define JEMALLOC_UTRACE " >>confdefs.h
  8324. fi
  8325. # Check whether --enable-xmalloc was given.
  8326. if test "${enable_xmalloc+set}" = set; then :
  8327. enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
  8328. enable_xmalloc="0"
  8329. else
  8330. enable_xmalloc="1"
  8331. fi
  8332. else
  8333. enable_xmalloc="0"
  8334. fi
  8335. if test "x$enable_xmalloc" = "x1" ; then
  8336. $as_echo "#define JEMALLOC_XMALLOC " >>confdefs.h
  8337. fi
  8338. # Check whether --enable-cache-oblivious was given.
  8339. if test "${enable_cache_oblivious+set}" = set; then :
  8340. enableval=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then
  8341. enable_cache_oblivious="0"
  8342. else
  8343. enable_cache_oblivious="1"
  8344. fi
  8345. else
  8346. enable_cache_oblivious="1"
  8347. fi
  8348. if test "x$enable_cache_oblivious" = "x1" ; then
  8349. $as_echo "#define JEMALLOC_CACHE_OBLIVIOUS " >>confdefs.h
  8350. fi
  8351. # Check whether --enable-log was given.
  8352. if test "${enable_log+set}" = set; then :
  8353. enableval=$enable_log; if test "x$enable_log" = "xno" ; then
  8354. enable_log="0"
  8355. else
  8356. enable_log="1"
  8357. fi
  8358. else
  8359. enable_log="0"
  8360. fi
  8361. if test "x$enable_log" = "x1" ; then
  8362. $as_echo "#define JEMALLOC_LOG " >>confdefs.h
  8363. fi
  8364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_unreachable is compilable" >&5
  8365. $as_echo_n "checking whether a program using __builtin_unreachable is compilable... " >&6; }
  8366. if ${je_cv_gcc_builtin_unreachable+:} false; then :
  8367. $as_echo_n "(cached) " >&6
  8368. else
  8369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8370. /* end confdefs.h. */
  8371. void foo (void) {
  8372. __builtin_unreachable();
  8373. }
  8374. int
  8375. main ()
  8376. {
  8377. {
  8378. foo();
  8379. }
  8380. ;
  8381. return 0;
  8382. }
  8383. _ACEOF
  8384. if ac_fn_c_try_link "$LINENO"; then :
  8385. je_cv_gcc_builtin_unreachable=yes
  8386. else
  8387. je_cv_gcc_builtin_unreachable=no
  8388. fi
  8389. rm -f core conftest.err conftest.$ac_objext \
  8390. conftest$ac_exeext conftest.$ac_ext
  8391. fi
  8392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_unreachable" >&5
  8393. $as_echo "$je_cv_gcc_builtin_unreachable" >&6; }
  8394. if test "x${je_cv_gcc_builtin_unreachable}" = "xyes" ; then
  8395. $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable" >>confdefs.h
  8396. else
  8397. $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE abort" >>confdefs.h
  8398. fi
  8399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5
  8400. $as_echo_n "checking whether a program using __builtin_ffsl is compilable... " >&6; }
  8401. if ${je_cv_gcc_builtin_ffsl+:} false; then :
  8402. $as_echo_n "(cached) " >&6
  8403. else
  8404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8405. /* end confdefs.h. */
  8406. #include <stdio.h>
  8407. #include <strings.h>
  8408. #include <string.h>
  8409. int
  8410. main ()
  8411. {
  8412. {
  8413. int rv = __builtin_ffsl(0x08);
  8414. printf("%d\n", rv);
  8415. }
  8416. ;
  8417. return 0;
  8418. }
  8419. _ACEOF
  8420. if ac_fn_c_try_link "$LINENO"; then :
  8421. je_cv_gcc_builtin_ffsl=yes
  8422. else
  8423. je_cv_gcc_builtin_ffsl=no
  8424. fi
  8425. rm -f core conftest.err conftest.$ac_objext \
  8426. conftest$ac_exeext conftest.$ac_ext
  8427. fi
  8428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5
  8429. $as_echo "$je_cv_gcc_builtin_ffsl" >&6; }
  8430. if test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then
  8431. $as_echo "#define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll" >>confdefs.h
  8432. $as_echo "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h
  8433. $as_echo "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h
  8434. else
  8435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5
  8436. $as_echo_n "checking whether a program using ffsl is compilable... " >&6; }
  8437. if ${je_cv_function_ffsl+:} false; then :
  8438. $as_echo_n "(cached) " >&6
  8439. else
  8440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8441. /* end confdefs.h. */
  8442. #include <stdio.h>
  8443. #include <strings.h>
  8444. #include <string.h>
  8445. int
  8446. main ()
  8447. {
  8448. {
  8449. int rv = ffsl(0x08);
  8450. printf("%d\n", rv);
  8451. }
  8452. ;
  8453. return 0;
  8454. }
  8455. _ACEOF
  8456. if ac_fn_c_try_link "$LINENO"; then :
  8457. je_cv_function_ffsl=yes
  8458. else
  8459. je_cv_function_ffsl=no
  8460. fi
  8461. rm -f core conftest.err conftest.$ac_objext \
  8462. conftest$ac_exeext conftest.$ac_ext
  8463. fi
  8464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5
  8465. $as_echo "$je_cv_function_ffsl" >&6; }
  8466. if test "x${je_cv_function_ffsl}" = "xyes" ; then
  8467. $as_echo "#define JEMALLOC_INTERNAL_FFSLL ffsll" >>confdefs.h
  8468. $as_echo "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h
  8469. $as_echo "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h
  8470. else
  8471. as_fn_error $? "Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5
  8472. fi
  8473. fi
  8474. # Check whether --with-lg_quantum was given.
  8475. if test "${with_lg_quantum+set}" = set; then :
  8476. withval=$with_lg_quantum; LG_QUANTA="$with_lg_quantum"
  8477. else
  8478. LG_QUANTA="3 4"
  8479. fi
  8480. if test "x$with_lg_quantum" != "x" ; then
  8481. cat >>confdefs.h <<_ACEOF
  8482. #define LG_QUANTUM $with_lg_quantum
  8483. _ACEOF
  8484. fi
  8485. # Check whether --with-lg_page was given.
  8486. if test "${with_lg_page+set}" = set; then :
  8487. withval=$with_lg_page; LG_PAGE="$with_lg_page"
  8488. else
  8489. LG_PAGE="detect"
  8490. fi
  8491. if test "x$LG_PAGE" = "xdetect"; then
  8492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5
  8493. $as_echo_n "checking LG_PAGE... " >&6; }
  8494. if ${je_cv_lg_page+:} false; then :
  8495. $as_echo_n "(cached) " >&6
  8496. else
  8497. if test "$cross_compiling" = yes; then :
  8498. je_cv_lg_page=12
  8499. else
  8500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8501. /* end confdefs.h. */
  8502. #include <strings.h>
  8503. #ifdef _WIN32
  8504. #include <windows.h>
  8505. #else
  8506. #include <unistd.h>
  8507. #endif
  8508. #include <stdio.h>
  8509. int
  8510. main ()
  8511. {
  8512. int result;
  8513. FILE *f;
  8514. #ifdef _WIN32
  8515. SYSTEM_INFO si;
  8516. GetSystemInfo(&si);
  8517. result = si.dwPageSize;
  8518. #else
  8519. result = sysconf(_SC_PAGESIZE);
  8520. #endif
  8521. if (result == -1) {
  8522. return 1;
  8523. }
  8524. result = JEMALLOC_INTERNAL_FFSL(result) - 1;
  8525. f = fopen("conftest.out", "w");
  8526. if (f == NULL) {
  8527. return 1;
  8528. }
  8529. fprintf(f, "%d", result);
  8530. fclose(f);
  8531. return 0;
  8532. ;
  8533. return 0;
  8534. }
  8535. _ACEOF
  8536. if ac_fn_c_try_run "$LINENO"; then :
  8537. je_cv_lg_page=`cat conftest.out`
  8538. else
  8539. je_cv_lg_page=undefined
  8540. fi
  8541. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8542. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8543. fi
  8544. fi
  8545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5
  8546. $as_echo "$je_cv_lg_page" >&6; }
  8547. fi
  8548. if test "x${je_cv_lg_page}" != "x" ; then
  8549. LG_PAGE="${je_cv_lg_page}"
  8550. fi
  8551. if test "x${LG_PAGE}" != "xundefined" ; then
  8552. cat >>confdefs.h <<_ACEOF
  8553. #define LG_PAGE $LG_PAGE
  8554. _ACEOF
  8555. else
  8556. as_fn_error $? "cannot determine value for LG_PAGE" "$LINENO" 5
  8557. fi
  8558. # Check whether --with-lg_hugepage was given.
  8559. if test "${with_lg_hugepage+set}" = set; then :
  8560. withval=$with_lg_hugepage; je_cv_lg_hugepage="${with_lg_hugepage}"
  8561. else
  8562. je_cv_lg_hugepage=""
  8563. fi
  8564. if test "x${je_cv_lg_hugepage}" = "x" ; then
  8565. if test -e "/proc/meminfo" ; then
  8566. hpsk=`cat /proc/meminfo 2>/dev/null | \
  8567. grep -e '^Hugepagesize:[[:space:]]\+[0-9]\+[[:space:]]kB$' | \
  8568. awk '{print $2}'`
  8569. if test "x${hpsk}" != "x" ; then
  8570. je_cv_lg_hugepage=10
  8571. while test "${hpsk}" -gt 1 ; do
  8572. hpsk="$((hpsk / 2))"
  8573. je_cv_lg_hugepage="$((je_cv_lg_hugepage + 1))"
  8574. done
  8575. fi
  8576. fi
  8577. if test "x${je_cv_lg_hugepage}" = "x" ; then
  8578. je_cv_lg_hugepage=21
  8579. fi
  8580. fi
  8581. if test "x${LG_PAGE}" != "xundefined" -a \
  8582. "${je_cv_lg_hugepage}" -lt "${LG_PAGE}" ; then
  8583. as_fn_error $? "Huge page size (2^${je_cv_lg_hugepage}) must be at least page size (2^${LG_PAGE})" "$LINENO" 5
  8584. fi
  8585. cat >>confdefs.h <<_ACEOF
  8586. #define LG_HUGEPAGE ${je_cv_lg_hugepage}
  8587. _ACEOF
  8588. # Check whether --with-lg_page_sizes was given.
  8589. if test "${with_lg_page_sizes+set}" = set; then :
  8590. withval=$with_lg_page_sizes; LG_PAGE_SIZES="$with_lg_page_sizes"
  8591. else
  8592. LG_PAGE_SIZES="$LG_PAGE"
  8593. fi
  8594. # Check whether --with-version was given.
  8595. if test "${with_version+set}" = set; then :
  8596. withval=$with_version;
  8597. echo "${with_version}" | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+-g[0-9a-f]\+$' 2>&1 1>/dev/null
  8598. if test $? -eq 0 ; then
  8599. echo "$with_version" > "${objroot}VERSION"
  8600. else
  8601. echo "${with_version}" | grep '^VERSION$' 2>&1 1>/dev/null
  8602. if test $? -ne 0 ; then
  8603. as_fn_error $? "${with_version} does not match <major>.<minor>.<bugfix>-<nrev>-g<gid> or VERSION" "$LINENO" 5
  8604. fi
  8605. fi
  8606. else
  8607. if test "x`test ! \"${srcroot}\" && cd \"${srcroot}\"; git rev-parse --is-inside-work-tree 2>/dev/null`" = "xtrue" ; then
  8608. for pattern in '[0-9].[0-9].[0-9]' '[0-9].[0-9].[0-9][0-9]' \
  8609. '[0-9].[0-9][0-9].[0-9]' '[0-9].[0-9][0-9].[0-9][0-9]' \
  8610. '[0-9][0-9].[0-9].[0-9]' '[0-9][0-9].[0-9].[0-9][0-9]' \
  8611. '[0-9][0-9].[0-9][0-9].[0-9]' \
  8612. '[0-9][0-9].[0-9][0-9].[0-9][0-9]'; do
  8613. (test ! "${srcroot}" && cd "${srcroot}"; git describe --long --abbrev=40 --match="${pattern}") > "${objroot}VERSION.tmp" 2>/dev/null
  8614. if test $? -eq 0 ; then
  8615. mv "${objroot}VERSION.tmp" "${objroot}VERSION"
  8616. break
  8617. fi
  8618. done
  8619. fi
  8620. rm -f "${objroot}VERSION.tmp"
  8621. fi
  8622. if test ! -e "${objroot}VERSION" ; then
  8623. if test ! -e "${srcroot}VERSION" ; then
  8624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5
  8625. $as_echo "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; }
  8626. echo "0.0.0-0-g0000000000000000000000000000000000000000" > "${objroot}VERSION"
  8627. else
  8628. cp ${srcroot}VERSION ${objroot}VERSION
  8629. fi
  8630. fi
  8631. jemalloc_version=`cat "${objroot}VERSION"`
  8632. jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
  8633. jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
  8634. jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
  8635. jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
  8636. jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
  8637. if test "x$abi" != "xpecoff" ; then
  8638. $as_echo "#define JEMALLOC_HAVE_PTHREAD " >>confdefs.h
  8639. for ac_header in pthread.h
  8640. do :
  8641. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8642. if test "x$ac_cv_header_pthread_h" = xyes; then :
  8643. cat >>confdefs.h <<_ACEOF
  8644. #define HAVE_PTHREAD_H 1
  8645. _ACEOF
  8646. else
  8647. as_fn_error $? "pthread.h is missing" "$LINENO" 5
  8648. fi
  8649. done
  8650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  8651. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  8652. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  8653. $as_echo_n "(cached) " >&6
  8654. else
  8655. ac_check_lib_save_LIBS=$LIBS
  8656. LIBS="-lpthread $LIBS"
  8657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8658. /* end confdefs.h. */
  8659. /* Override any GCC internal prototype to avoid an error.
  8660. Use char because int might match the return type of a GCC
  8661. builtin and then its argument prototype would still apply. */
  8662. #ifdef __cplusplus
  8663. extern "C"
  8664. #endif
  8665. char pthread_create ();
  8666. int
  8667. main ()
  8668. {
  8669. return pthread_create ();
  8670. ;
  8671. return 0;
  8672. }
  8673. _ACEOF
  8674. if ac_fn_c_try_link "$LINENO"; then :
  8675. ac_cv_lib_pthread_pthread_create=yes
  8676. else
  8677. ac_cv_lib_pthread_pthread_create=no
  8678. fi
  8679. rm -f core conftest.err conftest.$ac_objext \
  8680. conftest$ac_exeext conftest.$ac_ext
  8681. LIBS=$ac_check_lib_save_LIBS
  8682. fi
  8683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  8684. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  8685. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  8686. T_APPEND_V=-lpthread
  8687. if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8688. LIBS="${LIBS}${T_APPEND_V}"
  8689. else
  8690. LIBS="${LIBS} ${T_APPEND_V}"
  8691. fi
  8692. else
  8693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
  8694. $as_echo_n "checking for library containing pthread_create... " >&6; }
  8695. if ${ac_cv_search_pthread_create+:} false; then :
  8696. $as_echo_n "(cached) " >&6
  8697. else
  8698. ac_func_search_save_LIBS=$LIBS
  8699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8700. /* end confdefs.h. */
  8701. /* Override any GCC internal prototype to avoid an error.
  8702. Use char because int might match the return type of a GCC
  8703. builtin and then its argument prototype would still apply. */
  8704. #ifdef __cplusplus
  8705. extern "C"
  8706. #endif
  8707. char pthread_create ();
  8708. int
  8709. main ()
  8710. {
  8711. return pthread_create ();
  8712. ;
  8713. return 0;
  8714. }
  8715. _ACEOF
  8716. for ac_lib in '' ; do
  8717. if test -z "$ac_lib"; then
  8718. ac_res="none required"
  8719. else
  8720. ac_res=-l$ac_lib
  8721. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8722. fi
  8723. if ac_fn_c_try_link "$LINENO"; then :
  8724. ac_cv_search_pthread_create=$ac_res
  8725. fi
  8726. rm -f core conftest.err conftest.$ac_objext \
  8727. conftest$ac_exeext
  8728. if ${ac_cv_search_pthread_create+:} false; then :
  8729. break
  8730. fi
  8731. done
  8732. if ${ac_cv_search_pthread_create+:} false; then :
  8733. else
  8734. ac_cv_search_pthread_create=no
  8735. fi
  8736. rm conftest.$ac_ext
  8737. LIBS=$ac_func_search_save_LIBS
  8738. fi
  8739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
  8740. $as_echo "$ac_cv_search_pthread_create" >&6; }
  8741. ac_res=$ac_cv_search_pthread_create
  8742. if test "$ac_res" != no; then :
  8743. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8744. else
  8745. as_fn_error $? "libpthread is missing" "$LINENO" 5
  8746. fi
  8747. fi
  8748. wrap_syms="${wrap_syms} pthread_create"
  8749. have_pthread="1"
  8750. have_dlsym="1"
  8751. for ac_header in dlfcn.h
  8752. do :
  8753. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  8754. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  8755. cat >>confdefs.h <<_ACEOF
  8756. #define HAVE_DLFCN_H 1
  8757. _ACEOF
  8758. ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
  8759. if test "x$ac_cv_func_dlsym" = xyes; then :
  8760. else
  8761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
  8762. $as_echo_n "checking for dlsym in -ldl... " >&6; }
  8763. if ${ac_cv_lib_dl_dlsym+:} false; then :
  8764. $as_echo_n "(cached) " >&6
  8765. else
  8766. ac_check_lib_save_LIBS=$LIBS
  8767. LIBS="-ldl $LIBS"
  8768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8769. /* end confdefs.h. */
  8770. /* Override any GCC internal prototype to avoid an error.
  8771. Use char because int might match the return type of a GCC
  8772. builtin and then its argument prototype would still apply. */
  8773. #ifdef __cplusplus
  8774. extern "C"
  8775. #endif
  8776. char dlsym ();
  8777. int
  8778. main ()
  8779. {
  8780. return dlsym ();
  8781. ;
  8782. return 0;
  8783. }
  8784. _ACEOF
  8785. if ac_fn_c_try_link "$LINENO"; then :
  8786. ac_cv_lib_dl_dlsym=yes
  8787. else
  8788. ac_cv_lib_dl_dlsym=no
  8789. fi
  8790. rm -f core conftest.err conftest.$ac_objext \
  8791. conftest$ac_exeext conftest.$ac_ext
  8792. LIBS=$ac_check_lib_save_LIBS
  8793. fi
  8794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
  8795. $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
  8796. if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
  8797. LIBS="$LIBS -ldl"
  8798. else
  8799. have_dlsym="0"
  8800. fi
  8801. fi
  8802. else
  8803. have_dlsym="0"
  8804. fi
  8805. done
  8806. if test "x$have_dlsym" = "x1" ; then
  8807. $as_echo "#define JEMALLOC_HAVE_DLSYM " >>confdefs.h
  8808. fi
  8809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_atfork(3) is compilable" >&5
  8810. $as_echo_n "checking whether pthread_atfork(3) is compilable... " >&6; }
  8811. if ${je_cv_pthread_atfork+:} false; then :
  8812. $as_echo_n "(cached) " >&6
  8813. else
  8814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8815. /* end confdefs.h. */
  8816. #include <pthread.h>
  8817. int
  8818. main ()
  8819. {
  8820. pthread_atfork((void *)0, (void *)0, (void *)0);
  8821. ;
  8822. return 0;
  8823. }
  8824. _ACEOF
  8825. if ac_fn_c_try_link "$LINENO"; then :
  8826. je_cv_pthread_atfork=yes
  8827. else
  8828. je_cv_pthread_atfork=no
  8829. fi
  8830. rm -f core conftest.err conftest.$ac_objext \
  8831. conftest$ac_exeext conftest.$ac_ext
  8832. fi
  8833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_atfork" >&5
  8834. $as_echo "$je_cv_pthread_atfork" >&6; }
  8835. if test "x${je_cv_pthread_atfork}" = "xyes" ; then
  8836. $as_echo "#define JEMALLOC_HAVE_PTHREAD_ATFORK " >>confdefs.h
  8837. fi
  8838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np(3) is compilable" >&5
  8839. $as_echo_n "checking whether pthread_setname_np(3) is compilable... " >&6; }
  8840. if ${je_cv_pthread_setname_np+:} false; then :
  8841. $as_echo_n "(cached) " >&6
  8842. else
  8843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8844. /* end confdefs.h. */
  8845. #include <pthread.h>
  8846. int
  8847. main ()
  8848. {
  8849. pthread_setname_np(pthread_self(), "setname_test");
  8850. ;
  8851. return 0;
  8852. }
  8853. _ACEOF
  8854. if ac_fn_c_try_link "$LINENO"; then :
  8855. je_cv_pthread_setname_np=yes
  8856. else
  8857. je_cv_pthread_setname_np=no
  8858. fi
  8859. rm -f core conftest.err conftest.$ac_objext \
  8860. conftest$ac_exeext conftest.$ac_ext
  8861. fi
  8862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_setname_np" >&5
  8863. $as_echo "$je_cv_pthread_setname_np" >&6; }
  8864. if test "x${je_cv_pthread_setname_np}" = "xyes" ; then
  8865. $as_echo "#define JEMALLOC_HAVE_PTHREAD_SETNAME_NP " >>confdefs.h
  8866. fi
  8867. fi
  8868. T_APPEND_V=-D_REENTRANT
  8869. if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8870. CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
  8871. else
  8872. CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
  8873. fi
  8874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  8875. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  8876. if ${ac_cv_search_clock_gettime+:} false; then :
  8877. $as_echo_n "(cached) " >&6
  8878. else
  8879. ac_func_search_save_LIBS=$LIBS
  8880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8881. /* end confdefs.h. */
  8882. /* Override any GCC internal prototype to avoid an error.
  8883. Use char because int might match the return type of a GCC
  8884. builtin and then its argument prototype would still apply. */
  8885. #ifdef __cplusplus
  8886. extern "C"
  8887. #endif
  8888. char clock_gettime ();
  8889. int
  8890. main ()
  8891. {
  8892. return clock_gettime ();
  8893. ;
  8894. return 0;
  8895. }
  8896. _ACEOF
  8897. for ac_lib in '' rt; do
  8898. if test -z "$ac_lib"; then
  8899. ac_res="none required"
  8900. else
  8901. ac_res=-l$ac_lib
  8902. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8903. fi
  8904. if ac_fn_c_try_link "$LINENO"; then :
  8905. ac_cv_search_clock_gettime=$ac_res
  8906. fi
  8907. rm -f core conftest.err conftest.$ac_objext \
  8908. conftest$ac_exeext
  8909. if ${ac_cv_search_clock_gettime+:} false; then :
  8910. break
  8911. fi
  8912. done
  8913. if ${ac_cv_search_clock_gettime+:} false; then :
  8914. else
  8915. ac_cv_search_clock_gettime=no
  8916. fi
  8917. rm conftest.$ac_ext
  8918. LIBS=$ac_func_search_save_LIBS
  8919. fi
  8920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  8921. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  8922. ac_res=$ac_cv_search_clock_gettime
  8923. if test "$ac_res" != no; then :
  8924. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8925. fi
  8926. if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
  8927. if test "$ac_cv_search_clock_gettime" != "-lrt"; then
  8928. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8929. unset ac_cv_search_clock_gettime
  8930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -dynamic" >&5
  8931. $as_echo_n "checking whether compiler supports -dynamic... " >&6; }
  8932. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  8933. T_APPEND_V=-dynamic
  8934. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  8935. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  8936. else
  8937. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  8938. fi
  8939. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8940. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8941. else
  8942. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8943. fi
  8944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8945. /* end confdefs.h. */
  8946. int
  8947. main ()
  8948. {
  8949. return 0;
  8950. ;
  8951. return 0;
  8952. }
  8953. _ACEOF
  8954. if ac_fn_c_try_compile "$LINENO"; then :
  8955. je_cv_cflags_added=-dynamic
  8956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8957. $as_echo "yes" >&6; }
  8958. else
  8959. je_cv_cflags_added=
  8960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8961. $as_echo "no" >&6; }
  8962. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  8963. fi
  8964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8965. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  8966. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  8967. else
  8968. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  8969. fi
  8970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  8971. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  8972. if ${ac_cv_search_clock_gettime+:} false; then :
  8973. $as_echo_n "(cached) " >&6
  8974. else
  8975. ac_func_search_save_LIBS=$LIBS
  8976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8977. /* end confdefs.h. */
  8978. /* Override any GCC internal prototype to avoid an error.
  8979. Use char because int might match the return type of a GCC
  8980. builtin and then its argument prototype would still apply. */
  8981. #ifdef __cplusplus
  8982. extern "C"
  8983. #endif
  8984. char clock_gettime ();
  8985. int
  8986. main ()
  8987. {
  8988. return clock_gettime ();
  8989. ;
  8990. return 0;
  8991. }
  8992. _ACEOF
  8993. for ac_lib in '' rt; do
  8994. if test -z "$ac_lib"; then
  8995. ac_res="none required"
  8996. else
  8997. ac_res=-l$ac_lib
  8998. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8999. fi
  9000. if ac_fn_c_try_link "$LINENO"; then :
  9001. ac_cv_search_clock_gettime=$ac_res
  9002. fi
  9003. rm -f core conftest.err conftest.$ac_objext \
  9004. conftest$ac_exeext
  9005. if ${ac_cv_search_clock_gettime+:} false; then :
  9006. break
  9007. fi
  9008. done
  9009. if ${ac_cv_search_clock_gettime+:} false; then :
  9010. else
  9011. ac_cv_search_clock_gettime=no
  9012. fi
  9013. rm conftest.$ac_ext
  9014. LIBS=$ac_func_search_save_LIBS
  9015. fi
  9016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  9017. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  9018. ac_res=$ac_cv_search_clock_gettime
  9019. if test "$ac_res" != no; then :
  9020. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9021. fi
  9022. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  9023. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9024. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9025. else
  9026. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9027. fi
  9028. fi
  9029. fi
  9030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable" >&5
  9031. $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... " >&6; }
  9032. if ${je_cv_clock_monotonic_coarse+:} false; then :
  9033. $as_echo_n "(cached) " >&6
  9034. else
  9035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9036. /* end confdefs.h. */
  9037. #include <time.h>
  9038. int
  9039. main ()
  9040. {
  9041. struct timespec ts;
  9042. clock_gettime(CLOCK_MONOTONIC_COARSE, &ts);
  9043. ;
  9044. return 0;
  9045. }
  9046. _ACEOF
  9047. if ac_fn_c_try_link "$LINENO"; then :
  9048. je_cv_clock_monotonic_coarse=yes
  9049. else
  9050. je_cv_clock_monotonic_coarse=no
  9051. fi
  9052. rm -f core conftest.err conftest.$ac_objext \
  9053. conftest$ac_exeext conftest.$ac_ext
  9054. fi
  9055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic_coarse" >&5
  9056. $as_echo "$je_cv_clock_monotonic_coarse" >&6; }
  9057. if test "x${je_cv_clock_monotonic_coarse}" = "xyes" ; then
  9058. $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1" >>confdefs.h
  9059. fi
  9060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable" >&5
  9061. $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... " >&6; }
  9062. if ${je_cv_clock_monotonic+:} false; then :
  9063. $as_echo_n "(cached) " >&6
  9064. else
  9065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9066. /* end confdefs.h. */
  9067. #include <unistd.h>
  9068. #include <time.h>
  9069. int
  9070. main ()
  9071. {
  9072. struct timespec ts;
  9073. clock_gettime(CLOCK_MONOTONIC, &ts);
  9074. #if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0
  9075. # error _POSIX_MONOTONIC_CLOCK missing/invalid
  9076. #endif
  9077. ;
  9078. return 0;
  9079. }
  9080. _ACEOF
  9081. if ac_fn_c_try_link "$LINENO"; then :
  9082. je_cv_clock_monotonic=yes
  9083. else
  9084. je_cv_clock_monotonic=no
  9085. fi
  9086. rm -f core conftest.err conftest.$ac_objext \
  9087. conftest$ac_exeext conftest.$ac_ext
  9088. fi
  9089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic" >&5
  9090. $as_echo "$je_cv_clock_monotonic" >&6; }
  9091. if test "x${je_cv_clock_monotonic}" = "xyes" ; then
  9092. $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
  9093. fi
  9094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mach_absolute_time() is compilable" >&5
  9095. $as_echo_n "checking whether mach_absolute_time() is compilable... " >&6; }
  9096. if ${je_cv_mach_absolute_time+:} false; then :
  9097. $as_echo_n "(cached) " >&6
  9098. else
  9099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9100. /* end confdefs.h. */
  9101. #include <mach/mach_time.h>
  9102. int
  9103. main ()
  9104. {
  9105. mach_absolute_time();
  9106. ;
  9107. return 0;
  9108. }
  9109. _ACEOF
  9110. if ac_fn_c_try_link "$LINENO"; then :
  9111. je_cv_mach_absolute_time=yes
  9112. else
  9113. je_cv_mach_absolute_time=no
  9114. fi
  9115. rm -f core conftest.err conftest.$ac_objext \
  9116. conftest$ac_exeext conftest.$ac_ext
  9117. fi
  9118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mach_absolute_time" >&5
  9119. $as_echo "$je_cv_mach_absolute_time" >&6; }
  9120. if test "x${je_cv_mach_absolute_time}" = "xyes" ; then
  9121. $as_echo "#define JEMALLOC_HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h
  9122. fi
  9123. # Check whether --enable-syscall was given.
  9124. if test "${enable_syscall+set}" = set; then :
  9125. enableval=$enable_syscall; if test "x$enable_syscall" = "xno" ; then
  9126. enable_syscall="0"
  9127. else
  9128. enable_syscall="1"
  9129. fi
  9130. else
  9131. enable_syscall="1"
  9132. fi
  9133. if test "x$enable_syscall" = "x1" ; then
  9134. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  9135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  9136. $as_echo_n "checking whether compiler supports -Werror... " >&6; }
  9137. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  9138. T_APPEND_V=-Werror
  9139. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  9140. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  9141. else
  9142. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  9143. fi
  9144. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9145. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9146. else
  9147. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9148. fi
  9149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9150. /* end confdefs.h. */
  9151. int
  9152. main ()
  9153. {
  9154. return 0;
  9155. ;
  9156. return 0;
  9157. }
  9158. _ACEOF
  9159. if ac_fn_c_try_compile "$LINENO"; then :
  9160. je_cv_cflags_added=-Werror
  9161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9162. $as_echo "yes" >&6; }
  9163. else
  9164. je_cv_cflags_added=
  9165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9166. $as_echo "no" >&6; }
  9167. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  9168. fi
  9169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9170. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9171. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9172. else
  9173. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9174. fi
  9175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syscall(2) is compilable" >&5
  9176. $as_echo_n "checking whether syscall(2) is compilable... " >&6; }
  9177. if ${je_cv_syscall+:} false; then :
  9178. $as_echo_n "(cached) " >&6
  9179. else
  9180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9181. /* end confdefs.h. */
  9182. #include <sys/syscall.h>
  9183. #include <unistd.h>
  9184. int
  9185. main ()
  9186. {
  9187. syscall(SYS_write, 2, "hello", 5);
  9188. ;
  9189. return 0;
  9190. }
  9191. _ACEOF
  9192. if ac_fn_c_try_link "$LINENO"; then :
  9193. je_cv_syscall=yes
  9194. else
  9195. je_cv_syscall=no
  9196. fi
  9197. rm -f core conftest.err conftest.$ac_objext \
  9198. conftest$ac_exeext conftest.$ac_ext
  9199. fi
  9200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_syscall" >&5
  9201. $as_echo "$je_cv_syscall" >&6; }
  9202. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  9203. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9204. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9205. else
  9206. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9207. fi
  9208. if test "x$je_cv_syscall" = "xyes" ; then
  9209. $as_echo "#define JEMALLOC_USE_SYSCALL " >>confdefs.h
  9210. fi
  9211. fi
  9212. ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
  9213. if test "x$ac_cv_func_secure_getenv" = xyes; then :
  9214. have_secure_getenv="1"
  9215. else
  9216. have_secure_getenv="0"
  9217. fi
  9218. if test "x$have_secure_getenv" = "x1" ; then
  9219. $as_echo "#define JEMALLOC_HAVE_SECURE_GETENV " >>confdefs.h
  9220. fi
  9221. ac_fn_c_check_func "$LINENO" "sched_getcpu" "ac_cv_func_sched_getcpu"
  9222. if test "x$ac_cv_func_sched_getcpu" = xyes; then :
  9223. have_sched_getcpu="1"
  9224. else
  9225. have_sched_getcpu="0"
  9226. fi
  9227. if test "x$have_sched_getcpu" = "x1" ; then
  9228. $as_echo "#define JEMALLOC_HAVE_SCHED_GETCPU " >>confdefs.h
  9229. fi
  9230. ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
  9231. if test "x$ac_cv_func_sched_setaffinity" = xyes; then :
  9232. have_sched_setaffinity="1"
  9233. else
  9234. have_sched_setaffinity="0"
  9235. fi
  9236. if test "x$have_sched_setaffinity" = "x1" ; then
  9237. $as_echo "#define JEMALLOC_HAVE_SCHED_SETAFFINITY " >>confdefs.h
  9238. fi
  9239. ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
  9240. if test "x$ac_cv_func_issetugid" = xyes; then :
  9241. have_issetugid="1"
  9242. else
  9243. have_issetugid="0"
  9244. fi
  9245. if test "x$have_issetugid" = "x1" ; then
  9246. $as_echo "#define JEMALLOC_HAVE_ISSETUGID " >>confdefs.h
  9247. fi
  9248. ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup"
  9249. if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then :
  9250. have__malloc_thread_cleanup="1"
  9251. else
  9252. have__malloc_thread_cleanup="0"
  9253. fi
  9254. if test "x$have__malloc_thread_cleanup" = "x1" ; then
  9255. $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP " >>confdefs.h
  9256. wrap_syms="${wrap_syms} _malloc_thread_cleanup"
  9257. force_tls="1"
  9258. fi
  9259. ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb"
  9260. if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then :
  9261. have__pthread_mutex_init_calloc_cb="1"
  9262. else
  9263. have__pthread_mutex_init_calloc_cb="0"
  9264. fi
  9265. if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
  9266. $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h
  9267. wrap_syms="${wrap_syms} _malloc_prefork _malloc_postfork"
  9268. fi
  9269. # Check whether --enable-lazy_lock was given.
  9270. if test "${enable_lazy_lock+set}" = set; then :
  9271. enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
  9272. enable_lazy_lock="0"
  9273. else
  9274. enable_lazy_lock="1"
  9275. fi
  9276. else
  9277. enable_lazy_lock=""
  9278. fi
  9279. if test "x${enable_lazy_lock}" = "x" ; then
  9280. if test "x${force_lazy_lock}" = "x1" ; then
  9281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5
  9282. $as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; }
  9283. enable_lazy_lock="1"
  9284. else
  9285. enable_lazy_lock="0"
  9286. fi
  9287. fi
  9288. if test "x${enable_lazy_lock}" = "x1" -a "x${abi}" = "xpecoff" ; then
  9289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no lazy-lock because thread creation monitoring is unimplemented" >&5
  9290. $as_echo "Forcing no lazy-lock because thread creation monitoring is unimplemented" >&6; }
  9291. enable_lazy_lock="0"
  9292. fi
  9293. if test "x$enable_lazy_lock" = "x1" ; then
  9294. if test "x$have_dlsym" = "x1" ; then
  9295. $as_echo "#define JEMALLOC_LAZY_LOCK " >>confdefs.h
  9296. else
  9297. as_fn_error $? "Missing dlsym support: lazy-lock cannot be enabled." "$LINENO" 5
  9298. fi
  9299. fi
  9300. if test "x${force_tls}" = "x1" ; then
  9301. enable_tls="1"
  9302. elif test "x${force_tls}" = "x0" ; then
  9303. enable_tls="0"
  9304. else
  9305. enable_tls="1"
  9306. fi
  9307. if test "x${enable_tls}" = "x1" ; then
  9308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
  9309. $as_echo_n "checking for TLS... " >&6; }
  9310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9311. /* end confdefs.h. */
  9312. __thread int x;
  9313. int
  9314. main ()
  9315. {
  9316. x = 42;
  9317. return 0;
  9318. ;
  9319. return 0;
  9320. }
  9321. _ACEOF
  9322. if ac_fn_c_try_compile "$LINENO"; then :
  9323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9324. $as_echo "yes" >&6; }
  9325. else
  9326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9327. $as_echo "no" >&6; }
  9328. enable_tls="0"
  9329. fi
  9330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9331. else
  9332. enable_tls="0"
  9333. fi
  9334. if test "x${enable_tls}" = "x1" ; then
  9335. cat >>confdefs.h <<_ACEOF
  9336. #define JEMALLOC_TLS
  9337. _ACEOF
  9338. fi
  9339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5
  9340. $as_echo_n "checking whether C11 atomics is compilable... " >&6; }
  9341. if ${je_cv_c11_atomics+:} false; then :
  9342. $as_echo_n "(cached) " >&6
  9343. else
  9344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9345. /* end confdefs.h. */
  9346. #include <stdint.h>
  9347. #if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__)
  9348. #include <stdatomic.h>
  9349. #else
  9350. #error Atomics not available
  9351. #endif
  9352. int
  9353. main ()
  9354. {
  9355. uint64_t *p = (uint64_t *)0;
  9356. uint64_t x = 1;
  9357. volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p;
  9358. uint64_t r = atomic_fetch_add(a, x) + x;
  9359. return r == 0;
  9360. ;
  9361. return 0;
  9362. }
  9363. _ACEOF
  9364. if ac_fn_c_try_link "$LINENO"; then :
  9365. je_cv_c11_atomics=yes
  9366. else
  9367. je_cv_c11_atomics=no
  9368. fi
  9369. rm -f core conftest.err conftest.$ac_objext \
  9370. conftest$ac_exeext conftest.$ac_ext
  9371. fi
  9372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11_atomics" >&5
  9373. $as_echo "$je_cv_c11_atomics" >&6; }
  9374. if test "x${je_cv_c11_atomics}" = "xyes" ; then
  9375. $as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
  9376. fi
  9377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __atomic atomics is compilable" >&5
  9378. $as_echo_n "checking whether GCC __atomic atomics is compilable... " >&6; }
  9379. if ${je_cv_gcc_atomic_atomics+:} false; then :
  9380. $as_echo_n "(cached) " >&6
  9381. else
  9382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9383. /* end confdefs.h. */
  9384. int
  9385. main ()
  9386. {
  9387. int x = 0;
  9388. int val = 1;
  9389. int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
  9390. int after_add = x;
  9391. return after_add == 1;
  9392. ;
  9393. return 0;
  9394. }
  9395. _ACEOF
  9396. if ac_fn_c_try_link "$LINENO"; then :
  9397. je_cv_gcc_atomic_atomics=yes
  9398. else
  9399. je_cv_gcc_atomic_atomics=no
  9400. fi
  9401. rm -f core conftest.err conftest.$ac_objext \
  9402. conftest$ac_exeext conftest.$ac_ext
  9403. fi
  9404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_atomic_atomics" >&5
  9405. $as_echo "$je_cv_gcc_atomic_atomics" >&6; }
  9406. if test "x${je_cv_gcc_atomic_atomics}" = "xyes" ; then
  9407. $as_echo "#define JEMALLOC_GCC_ATOMIC_ATOMICS 1" >>confdefs.h
  9408. fi
  9409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __sync atomics is compilable" >&5
  9410. $as_echo_n "checking whether GCC __sync atomics is compilable... " >&6; }
  9411. if ${je_cv_gcc_sync_atomics+:} false; then :
  9412. $as_echo_n "(cached) " >&6
  9413. else
  9414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9415. /* end confdefs.h. */
  9416. int
  9417. main ()
  9418. {
  9419. int x = 0;
  9420. int before_add = __sync_fetch_and_add(&x, 1);
  9421. int after_add = x;
  9422. return (before_add == 0) && (after_add == 1);
  9423. ;
  9424. return 0;
  9425. }
  9426. _ACEOF
  9427. if ac_fn_c_try_link "$LINENO"; then :
  9428. je_cv_gcc_sync_atomics=yes
  9429. else
  9430. je_cv_gcc_sync_atomics=no
  9431. fi
  9432. rm -f core conftest.err conftest.$ac_objext \
  9433. conftest$ac_exeext conftest.$ac_ext
  9434. fi
  9435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_sync_atomics" >&5
  9436. $as_echo "$je_cv_gcc_sync_atomics" >&6; }
  9437. if test "x${je_cv_gcc_sync_atomics}" = "xyes" ; then
  9438. $as_echo "#define JEMALLOC_GCC_SYNC_ATOMICS 1" >>confdefs.h
  9439. fi
  9440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
  9441. $as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; }
  9442. if ${je_cv_osatomic+:} false; then :
  9443. $as_echo_n "(cached) " >&6
  9444. else
  9445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9446. /* end confdefs.h. */
  9447. #include <libkern/OSAtomic.h>
  9448. #include <inttypes.h>
  9449. int
  9450. main ()
  9451. {
  9452. {
  9453. int32_t x32 = 0;
  9454. volatile int32_t *x32p = &x32;
  9455. OSAtomicAdd32(1, x32p);
  9456. }
  9457. {
  9458. int64_t x64 = 0;
  9459. volatile int64_t *x64p = &x64;
  9460. OSAtomicAdd64(1, x64p);
  9461. }
  9462. ;
  9463. return 0;
  9464. }
  9465. _ACEOF
  9466. if ac_fn_c_try_link "$LINENO"; then :
  9467. je_cv_osatomic=yes
  9468. else
  9469. je_cv_osatomic=no
  9470. fi
  9471. rm -f core conftest.err conftest.$ac_objext \
  9472. conftest$ac_exeext conftest.$ac_ext
  9473. fi
  9474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5
  9475. $as_echo "$je_cv_osatomic" >&6; }
  9476. if test "x${je_cv_osatomic}" = "xyes" ; then
  9477. $as_echo "#define JEMALLOC_OSATOMIC " >>confdefs.h
  9478. fi
  9479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5
  9480. $as_echo_n "checking whether madvise(2) is compilable... " >&6; }
  9481. if ${je_cv_madvise+:} false; then :
  9482. $as_echo_n "(cached) " >&6
  9483. else
  9484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9485. /* end confdefs.h. */
  9486. #include <sys/mman.h>
  9487. int
  9488. main ()
  9489. {
  9490. madvise((void *)0, 0, 0);
  9491. ;
  9492. return 0;
  9493. }
  9494. _ACEOF
  9495. if ac_fn_c_try_link "$LINENO"; then :
  9496. je_cv_madvise=yes
  9497. else
  9498. je_cv_madvise=no
  9499. fi
  9500. rm -f core conftest.err conftest.$ac_objext \
  9501. conftest$ac_exeext conftest.$ac_ext
  9502. fi
  9503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5
  9504. $as_echo "$je_cv_madvise" >&6; }
  9505. if test "x${je_cv_madvise}" = "xyes" ; then
  9506. $as_echo "#define JEMALLOC_HAVE_MADVISE " >>confdefs.h
  9507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_FREE) is compilable" >&5
  9508. $as_echo_n "checking whether madvise(..., MADV_FREE) is compilable... " >&6; }
  9509. if ${je_cv_madv_free+:} false; then :
  9510. $as_echo_n "(cached) " >&6
  9511. else
  9512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9513. /* end confdefs.h. */
  9514. #include <sys/mman.h>
  9515. int
  9516. main ()
  9517. {
  9518. madvise((void *)0, 0, MADV_FREE);
  9519. ;
  9520. return 0;
  9521. }
  9522. _ACEOF
  9523. if ac_fn_c_try_link "$LINENO"; then :
  9524. je_cv_madv_free=yes
  9525. else
  9526. je_cv_madv_free=no
  9527. fi
  9528. rm -f core conftest.err conftest.$ac_objext \
  9529. conftest$ac_exeext conftest.$ac_ext
  9530. fi
  9531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_free" >&5
  9532. $as_echo "$je_cv_madv_free" >&6; }
  9533. if test "x${je_cv_madv_free}" = "xyes" ; then
  9534. $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h
  9535. elif test "x${je_cv_madvise}" = "xyes" ; then
  9536. case "${host_cpu}" in i686|x86_64)
  9537. case "${host}" in *-*-linux*)
  9538. $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h
  9539. $as_echo "#define JEMALLOC_DEFINE_MADVISE_FREE " >>confdefs.h
  9540. ;;
  9541. esac
  9542. ;;
  9543. esac
  9544. fi
  9545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DONTNEED) is compilable" >&5
  9546. $as_echo_n "checking whether madvise(..., MADV_DONTNEED) is compilable... " >&6; }
  9547. if ${je_cv_madv_dontneed+:} false; then :
  9548. $as_echo_n "(cached) " >&6
  9549. else
  9550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9551. /* end confdefs.h. */
  9552. #include <sys/mman.h>
  9553. int
  9554. main ()
  9555. {
  9556. madvise((void *)0, 0, MADV_DONTNEED);
  9557. ;
  9558. return 0;
  9559. }
  9560. _ACEOF
  9561. if ac_fn_c_try_link "$LINENO"; then :
  9562. je_cv_madv_dontneed=yes
  9563. else
  9564. je_cv_madv_dontneed=no
  9565. fi
  9566. rm -f core conftest.err conftest.$ac_objext \
  9567. conftest$ac_exeext conftest.$ac_ext
  9568. fi
  9569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontneed" >&5
  9570. $as_echo "$je_cv_madv_dontneed" >&6; }
  9571. if test "x${je_cv_madv_dontneed}" = "xyes" ; then
  9572. $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED " >>confdefs.h
  9573. fi
  9574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DO[NT]DUMP) is compilable" >&5
  9575. $as_echo_n "checking whether madvise(..., MADV_DO[NT]DUMP) is compilable... " >&6; }
  9576. if ${je_cv_madv_dontdump+:} false; then :
  9577. $as_echo_n "(cached) " >&6
  9578. else
  9579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9580. /* end confdefs.h. */
  9581. #include <sys/mman.h>
  9582. int
  9583. main ()
  9584. {
  9585. madvise((void *)0, 0, MADV_DONTDUMP);
  9586. madvise((void *)0, 0, MADV_DODUMP);
  9587. ;
  9588. return 0;
  9589. }
  9590. _ACEOF
  9591. if ac_fn_c_try_link "$LINENO"; then :
  9592. je_cv_madv_dontdump=yes
  9593. else
  9594. je_cv_madv_dontdump=no
  9595. fi
  9596. rm -f core conftest.err conftest.$ac_objext \
  9597. conftest$ac_exeext conftest.$ac_ext
  9598. fi
  9599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontdump" >&5
  9600. $as_echo "$je_cv_madv_dontdump" >&6; }
  9601. if test "x${je_cv_madv_dontdump}" = "xyes" ; then
  9602. $as_echo "#define JEMALLOC_MADVISE_DONTDUMP " >>confdefs.h
  9603. fi
  9604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable" >&5
  9605. $as_echo_n "checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... " >&6; }
  9606. if ${je_cv_thp+:} false; then :
  9607. $as_echo_n "(cached) " >&6
  9608. else
  9609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9610. /* end confdefs.h. */
  9611. #include <sys/mman.h>
  9612. int
  9613. main ()
  9614. {
  9615. madvise((void *)0, 0, MADV_HUGEPAGE);
  9616. madvise((void *)0, 0, MADV_NOHUGEPAGE);
  9617. ;
  9618. return 0;
  9619. }
  9620. _ACEOF
  9621. if ac_fn_c_try_link "$LINENO"; then :
  9622. je_cv_thp=yes
  9623. else
  9624. je_cv_thp=no
  9625. fi
  9626. rm -f core conftest.err conftest.$ac_objext \
  9627. conftest$ac_exeext conftest.$ac_ext
  9628. fi
  9629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_thp" >&5
  9630. $as_echo "$je_cv_thp" >&6; }
  9631. case "${host_cpu}" in
  9632. arm*)
  9633. ;;
  9634. *)
  9635. if test "x${je_cv_thp}" = "xyes" ; then
  9636. $as_echo "#define JEMALLOC_HAVE_MADVISE_HUGE " >>confdefs.h
  9637. fi
  9638. ;;
  9639. esac
  9640. fi
  9641. if test "x${je_cv_atomic9}" != "xyes" -a "x${je_cv_osatomic}" != "xyes" ; then
  9642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 32-bit __sync_{add,sub}_and_fetch()" >&5
  9643. $as_echo_n "checking whether to force 32-bit __sync_{add,sub}_and_fetch()... " >&6; }
  9644. if ${je_cv_sync_compare_and_swap_4+:} false; then :
  9645. $as_echo_n "(cached) " >&6
  9646. else
  9647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9648. /* end confdefs.h. */
  9649. #include <stdint.h>
  9650. int
  9651. main ()
  9652. {
  9653. #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
  9654. {
  9655. uint32_t x32 = 0;
  9656. __sync_add_and_fetch(&x32, 42);
  9657. __sync_sub_and_fetch(&x32, 1);
  9658. }
  9659. #else
  9660. #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is defined, no need to force
  9661. #endif
  9662. ;
  9663. return 0;
  9664. }
  9665. _ACEOF
  9666. if ac_fn_c_try_link "$LINENO"; then :
  9667. je_cv_sync_compare_and_swap_4=yes
  9668. else
  9669. je_cv_sync_compare_and_swap_4=no
  9670. fi
  9671. rm -f core conftest.err conftest.$ac_objext \
  9672. conftest$ac_exeext conftest.$ac_ext
  9673. fi
  9674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_4" >&5
  9675. $as_echo "$je_cv_sync_compare_and_swap_4" >&6; }
  9676. if test "x${je_cv_sync_compare_and_swap_4}" = "xyes" ; then
  9677. $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_4 " >>confdefs.h
  9678. fi
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 64-bit __sync_{add,sub}_and_fetch()" >&5
  9680. $as_echo_n "checking whether to force 64-bit __sync_{add,sub}_and_fetch()... " >&6; }
  9681. if ${je_cv_sync_compare_and_swap_8+:} false; then :
  9682. $as_echo_n "(cached) " >&6
  9683. else
  9684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9685. /* end confdefs.h. */
  9686. #include <stdint.h>
  9687. int
  9688. main ()
  9689. {
  9690. #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
  9691. {
  9692. uint64_t x64 = 0;
  9693. __sync_add_and_fetch(&x64, 42);
  9694. __sync_sub_and_fetch(&x64, 1);
  9695. }
  9696. #else
  9697. #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 is defined, no need to force
  9698. #endif
  9699. ;
  9700. return 0;
  9701. }
  9702. _ACEOF
  9703. if ac_fn_c_try_link "$LINENO"; then :
  9704. je_cv_sync_compare_and_swap_8=yes
  9705. else
  9706. je_cv_sync_compare_and_swap_8=no
  9707. fi
  9708. rm -f core conftest.err conftest.$ac_objext \
  9709. conftest$ac_exeext conftest.$ac_ext
  9710. fi
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_8" >&5
  9712. $as_echo "$je_cv_sync_compare_and_swap_8" >&6; }
  9713. if test "x${je_cv_sync_compare_and_swap_8}" = "xyes" ; then
  9714. $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_8 " >>confdefs.h
  9715. fi
  9716. fi
  9717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
  9718. $as_echo_n "checking for __builtin_clz... " >&6; }
  9719. if ${je_cv_builtin_clz+:} false; then :
  9720. $as_echo_n "(cached) " >&6
  9721. else
  9722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9723. /* end confdefs.h. */
  9724. int
  9725. main ()
  9726. {
  9727. {
  9728. unsigned x = 0;
  9729. int y = __builtin_clz(x);
  9730. }
  9731. {
  9732. unsigned long x = 0;
  9733. int y = __builtin_clzl(x);
  9734. }
  9735. ;
  9736. return 0;
  9737. }
  9738. _ACEOF
  9739. if ac_fn_c_try_link "$LINENO"; then :
  9740. je_cv_builtin_clz=yes
  9741. else
  9742. je_cv_builtin_clz=no
  9743. fi
  9744. rm -f core conftest.err conftest.$ac_objext \
  9745. conftest$ac_exeext conftest.$ac_ext
  9746. fi
  9747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5
  9748. $as_echo "$je_cv_builtin_clz" >&6; }
  9749. if test "x${je_cv_builtin_clz}" = "xyes" ; then
  9750. $as_echo "#define JEMALLOC_HAVE_BUILTIN_CLZ " >>confdefs.h
  9751. fi
  9752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin os_unfair_lock_*() is compilable" >&5
  9753. $as_echo_n "checking whether Darwin os_unfair_lock_*() is compilable... " >&6; }
  9754. if ${je_cv_os_unfair_lock+:} false; then :
  9755. $as_echo_n "(cached) " >&6
  9756. else
  9757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9758. /* end confdefs.h. */
  9759. #include <os/lock.h>
  9760. #include <AvailabilityMacros.h>
  9761. int
  9762. main ()
  9763. {
  9764. #if MAC_OS_X_VERSION_MIN_REQUIRED < 101200
  9765. #error "os_unfair_lock is not supported"
  9766. #else
  9767. os_unfair_lock lock = OS_UNFAIR_LOCK_INIT;
  9768. os_unfair_lock_lock(&lock);
  9769. os_unfair_lock_unlock(&lock);
  9770. #endif
  9771. ;
  9772. return 0;
  9773. }
  9774. _ACEOF
  9775. if ac_fn_c_try_link "$LINENO"; then :
  9776. je_cv_os_unfair_lock=yes
  9777. else
  9778. je_cv_os_unfair_lock=no
  9779. fi
  9780. rm -f core conftest.err conftest.$ac_objext \
  9781. conftest$ac_exeext conftest.$ac_ext
  9782. fi
  9783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_os_unfair_lock" >&5
  9784. $as_echo "$je_cv_os_unfair_lock" >&6; }
  9785. if test "x${je_cv_os_unfair_lock}" = "xyes" ; then
  9786. $as_echo "#define JEMALLOC_OS_UNFAIR_LOCK " >>confdefs.h
  9787. fi
  9788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSSpin*() is compilable" >&5
  9789. $as_echo_n "checking whether Darwin OSSpin*() is compilable... " >&6; }
  9790. if ${je_cv_osspin+:} false; then :
  9791. $as_echo_n "(cached) " >&6
  9792. else
  9793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9794. /* end confdefs.h. */
  9795. #include <libkern/OSAtomic.h>
  9796. #include <inttypes.h>
  9797. int
  9798. main ()
  9799. {
  9800. OSSpinLock lock = 0;
  9801. OSSpinLockLock(&lock);
  9802. OSSpinLockUnlock(&lock);
  9803. ;
  9804. return 0;
  9805. }
  9806. _ACEOF
  9807. if ac_fn_c_try_link "$LINENO"; then :
  9808. je_cv_osspin=yes
  9809. else
  9810. je_cv_osspin=no
  9811. fi
  9812. rm -f core conftest.err conftest.$ac_objext \
  9813. conftest$ac_exeext conftest.$ac_ext
  9814. fi
  9815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osspin" >&5
  9816. $as_echo "$je_cv_osspin" >&6; }
  9817. if test "x${je_cv_osspin}" = "xyes" ; then
  9818. $as_echo "#define JEMALLOC_OSSPIN " >>confdefs.h
  9819. fi
  9820. # Check whether --enable-zone-allocator was given.
  9821. if test "${enable_zone_allocator+set}" = set; then :
  9822. enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then
  9823. enable_zone_allocator="0"
  9824. else
  9825. enable_zone_allocator="1"
  9826. fi
  9827. else
  9828. if test "x${abi}" = "xmacho"; then
  9829. enable_zone_allocator="1"
  9830. fi
  9831. fi
  9832. if test "x${enable_zone_allocator}" = "x1" ; then
  9833. if test "x${abi}" != "xmacho"; then
  9834. as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5
  9835. fi
  9836. $as_echo "#define JEMALLOC_ZONE " >>confdefs.h
  9837. fi
  9838. # Check whether --enable-initial-exec-tls was given.
  9839. if test "${enable_initial_exec_tls+set}" = set; then :
  9840. enableval=$enable_initial_exec_tls; if test "x$enable_initial_exec_tls" = "xno" ; then
  9841. enable_initial_exec_tls="0"
  9842. else
  9843. enable_initial_exec_tls="1"
  9844. fi
  9845. else
  9846. enable_initial_exec_tls="1"
  9847. fi
  9848. if test "x${je_cv_tls_model}" = "xyes" -a \
  9849. "x${enable_initial_exec_tls}" = "x1" ; then
  9850. $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h
  9851. else
  9852. $as_echo "#define JEMALLOC_TLS_MODEL " >>confdefs.h
  9853. fi
  9854. if test "x${have_pthread}" = "x1" -a "x${have_dlsym}" = "x1" \
  9855. -a "x${je_cv_os_unfair_lock}" != "xyes" \
  9856. -a "x${je_cv_osspin}" != "xyes" ; then
  9857. $as_echo "#define JEMALLOC_BACKGROUND_THREAD 1" >>confdefs.h
  9858. fi
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5
  9860. $as_echo_n "checking whether glibc malloc hook is compilable... " >&6; }
  9861. if ${je_cv_glibc_malloc_hook+:} false; then :
  9862. $as_echo_n "(cached) " >&6
  9863. else
  9864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9865. /* end confdefs.h. */
  9866. #include <stddef.h>
  9867. extern void (* __free_hook)(void *ptr);
  9868. extern void *(* __malloc_hook)(size_t size);
  9869. extern void *(* __realloc_hook)(void *ptr, size_t size);
  9870. int
  9871. main ()
  9872. {
  9873. void *ptr = 0L;
  9874. if (__malloc_hook) ptr = __malloc_hook(1);
  9875. if (__realloc_hook) ptr = __realloc_hook(ptr, 2);
  9876. if (__free_hook && ptr) __free_hook(ptr);
  9877. ;
  9878. return 0;
  9879. }
  9880. _ACEOF
  9881. if ac_fn_c_try_link "$LINENO"; then :
  9882. je_cv_glibc_malloc_hook=yes
  9883. else
  9884. je_cv_glibc_malloc_hook=no
  9885. fi
  9886. rm -f core conftest.err conftest.$ac_objext \
  9887. conftest$ac_exeext conftest.$ac_ext
  9888. fi
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5
  9890. $as_echo "$je_cv_glibc_malloc_hook" >&6; }
  9891. if test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then
  9892. if test "x${JEMALLOC_PREFIX}" = "x" ; then
  9893. $as_echo "#define JEMALLOC_GLIBC_MALLOC_HOOK " >>confdefs.h
  9894. wrap_syms="${wrap_syms} __free_hook __malloc_hook __realloc_hook"
  9895. fi
  9896. fi
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5
  9898. $as_echo_n "checking whether glibc memalign hook is compilable... " >&6; }
  9899. if ${je_cv_glibc_memalign_hook+:} false; then :
  9900. $as_echo_n "(cached) " >&6
  9901. else
  9902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9903. /* end confdefs.h. */
  9904. #include <stddef.h>
  9905. extern void *(* __memalign_hook)(size_t alignment, size_t size);
  9906. int
  9907. main ()
  9908. {
  9909. void *ptr = 0L;
  9910. if (__memalign_hook) ptr = __memalign_hook(16, 7);
  9911. ;
  9912. return 0;
  9913. }
  9914. _ACEOF
  9915. if ac_fn_c_try_link "$LINENO"; then :
  9916. je_cv_glibc_memalign_hook=yes
  9917. else
  9918. je_cv_glibc_memalign_hook=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_glibc_memalign_hook" >&5
  9924. $as_echo "$je_cv_glibc_memalign_hook" >&6; }
  9925. if test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then
  9926. if test "x${JEMALLOC_PREFIX}" = "x" ; then
  9927. $as_echo "#define JEMALLOC_GLIBC_MEMALIGN_HOOK " >>confdefs.h
  9928. wrap_syms="${wrap_syms} __memalign_hook"
  9929. fi
  9930. fi
  9931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5
  9932. $as_echo_n "checking whether pthreads adaptive mutexes is compilable... " >&6; }
  9933. if ${je_cv_pthread_mutex_adaptive_np+:} false; then :
  9934. $as_echo_n "(cached) " >&6
  9935. else
  9936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9937. /* end confdefs.h. */
  9938. #include <pthread.h>
  9939. int
  9940. main ()
  9941. {
  9942. pthread_mutexattr_t attr;
  9943. pthread_mutexattr_init(&attr);
  9944. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
  9945. pthread_mutexattr_destroy(&attr);
  9946. ;
  9947. return 0;
  9948. }
  9949. _ACEOF
  9950. if ac_fn_c_try_link "$LINENO"; then :
  9951. je_cv_pthread_mutex_adaptive_np=yes
  9952. else
  9953. je_cv_pthread_mutex_adaptive_np=no
  9954. fi
  9955. rm -f core conftest.err conftest.$ac_objext \
  9956. conftest$ac_exeext conftest.$ac_ext
  9957. fi
  9958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5
  9959. $as_echo "$je_cv_pthread_mutex_adaptive_np" >&6; }
  9960. if test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then
  9961. $as_echo "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP " >>confdefs.h
  9962. fi
  9963. SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  9964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -D_GNU_SOURCE" >&5
  9965. $as_echo_n "checking whether compiler supports -D_GNU_SOURCE... " >&6; }
  9966. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  9967. T_APPEND_V=-D_GNU_SOURCE
  9968. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  9969. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  9970. else
  9971. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  9972. fi
  9973. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  9974. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  9975. else
  9976. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  9977. fi
  9978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9979. /* end confdefs.h. */
  9980. int
  9981. main ()
  9982. {
  9983. return 0;
  9984. ;
  9985. return 0;
  9986. }
  9987. _ACEOF
  9988. if ac_fn_c_try_compile "$LINENO"; then :
  9989. je_cv_cflags_added=-D_GNU_SOURCE
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9991. $as_echo "yes" >&6; }
  9992. else
  9993. je_cv_cflags_added=
  9994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9995. $as_echo "no" >&6; }
  9996. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  9997. fi
  9998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9999. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  10000. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  10001. else
  10002. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  10003. fi
  10004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
  10005. $as_echo_n "checking whether compiler supports -Werror... " >&6; }
  10006. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  10007. T_APPEND_V=-Werror
  10008. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  10009. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  10010. else
  10011. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  10012. fi
  10013. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  10014. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  10015. else
  10016. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  10017. fi
  10018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10019. /* end confdefs.h. */
  10020. int
  10021. main ()
  10022. {
  10023. return 0;
  10024. ;
  10025. return 0;
  10026. }
  10027. _ACEOF
  10028. if ac_fn_c_try_compile "$LINENO"; then :
  10029. je_cv_cflags_added=-Werror
  10030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10031. $as_echo "yes" >&6; }
  10032. else
  10033. je_cv_cflags_added=
  10034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10035. $as_echo "no" >&6; }
  10036. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  10037. fi
  10038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10039. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  10040. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  10041. else
  10042. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  10043. fi
  10044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
  10045. $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
  10046. T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
  10047. T_APPEND_V=-herror_on_warning
  10048. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
  10049. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
  10050. else
  10051. CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
  10052. fi
  10053. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  10054. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  10055. else
  10056. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  10057. fi
  10058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10059. /* end confdefs.h. */
  10060. int
  10061. main ()
  10062. {
  10063. return 0;
  10064. ;
  10065. return 0;
  10066. }
  10067. _ACEOF
  10068. if ac_fn_c_try_compile "$LINENO"; then :
  10069. je_cv_cflags_added=-herror_on_warning
  10070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10071. $as_echo "yes" >&6; }
  10072. else
  10073. je_cv_cflags_added=
  10074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10075. $as_echo "no" >&6; }
  10076. CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
  10077. fi
  10078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10079. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  10080. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  10081. else
  10082. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  10083. fi
  10084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char with gnu source is compilable" >&5
  10085. $as_echo_n "checking whether strerror_r returns char with gnu source is compilable... " >&6; }
  10086. if ${je_cv_strerror_r_returns_char_with_gnu_source+:} false; then :
  10087. $as_echo_n "(cached) " >&6
  10088. else
  10089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10090. /* end confdefs.h. */
  10091. #include <errno.h>
  10092. #include <stdio.h>
  10093. #include <stdlib.h>
  10094. #include <string.h>
  10095. int
  10096. main ()
  10097. {
  10098. char *buffer = (char *) malloc(100);
  10099. char *error = strerror_r(EINVAL, buffer, 100);
  10100. printf("%s\n", error);
  10101. ;
  10102. return 0;
  10103. }
  10104. _ACEOF
  10105. if ac_fn_c_try_link "$LINENO"; then :
  10106. je_cv_strerror_r_returns_char_with_gnu_source=yes
  10107. else
  10108. je_cv_strerror_r_returns_char_with_gnu_source=no
  10109. fi
  10110. rm -f core conftest.err conftest.$ac_objext \
  10111. conftest$ac_exeext conftest.$ac_ext
  10112. fi
  10113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_strerror_r_returns_char_with_gnu_source" >&5
  10114. $as_echo "$je_cv_strerror_r_returns_char_with_gnu_source" >&6; }
  10115. CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
  10116. if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
  10117. CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
  10118. else
  10119. CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
  10120. fi
  10121. if test "x${je_cv_strerror_r_returns_char_with_gnu_source}" = "xyes" ; then
  10122. $as_echo "#define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE " >>confdefs.h
  10123. fi
  10124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  10125. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  10126. if ${ac_cv_header_stdbool_h+:} false; then :
  10127. $as_echo_n "(cached) " >&6
  10128. else
  10129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10130. /* end confdefs.h. */
  10131. #include <stdbool.h>
  10132. #ifndef bool
  10133. "error: bool is not defined"
  10134. #endif
  10135. #ifndef false
  10136. "error: false is not defined"
  10137. #endif
  10138. #if false
  10139. "error: false is not 0"
  10140. #endif
  10141. #ifndef true
  10142. "error: true is not defined"
  10143. #endif
  10144. #if true != 1
  10145. "error: true is not 1"
  10146. #endif
  10147. #ifndef __bool_true_false_are_defined
  10148. "error: __bool_true_false_are_defined is not defined"
  10149. #endif
  10150. struct s { _Bool s: 1; _Bool t; } s;
  10151. char a[true == 1 ? 1 : -1];
  10152. char b[false == 0 ? 1 : -1];
  10153. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  10154. char d[(bool) 0.5 == true ? 1 : -1];
  10155. /* See body of main program for 'e'. */
  10156. char f[(_Bool) 0.0 == false ? 1 : -1];
  10157. char g[true];
  10158. char h[sizeof (_Bool)];
  10159. char i[sizeof s.t];
  10160. enum { j = false, k = true, l = false * true, m = true * 256 };
  10161. /* The following fails for
  10162. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  10163. _Bool n[m];
  10164. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  10165. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  10166. /* Catch a bug in an HP-UX C compiler. See
  10167. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  10168. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  10169. */
  10170. _Bool q = true;
  10171. _Bool *pq = &q;
  10172. int
  10173. main ()
  10174. {
  10175. bool e = &s;
  10176. *pq |= q;
  10177. *pq |= ! q;
  10178. /* Refer to every declared value, to avoid compiler optimizations. */
  10179. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  10180. + !m + !n + !o + !p + !q + !pq);
  10181. ;
  10182. return 0;
  10183. }
  10184. _ACEOF
  10185. if ac_fn_c_try_compile "$LINENO"; then :
  10186. ac_cv_header_stdbool_h=yes
  10187. else
  10188. ac_cv_header_stdbool_h=no
  10189. fi
  10190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10191. fi
  10192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  10193. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  10194. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  10195. if test "x$ac_cv_type__Bool" = xyes; then :
  10196. cat >>confdefs.h <<_ACEOF
  10197. #define HAVE__BOOL 1
  10198. _ACEOF
  10199. fi
  10200. if test $ac_cv_header_stdbool_h = yes; then
  10201. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  10202. fi
  10203. ac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt"
  10204. ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols.awk"
  10205. ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols_jet.awk"
  10206. ac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h"
  10207. ac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h"
  10208. ac_config_commands="$ac_config_commands include/jemalloc/internal/size_classes.h"
  10209. ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h"
  10210. ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h"
  10211. ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h"
  10212. ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h"
  10213. ac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h"
  10214. ac_config_headers="$ac_config_headers $cfghdrs_tup"
  10215. ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof"
  10216. cat >confcache <<\_ACEOF
  10217. # This file is a shell script that caches the results of configure
  10218. # tests run on this system so they can be shared between configure
  10219. # scripts and configure runs, see configure's option --config-cache.
  10220. # It is not useful on other systems. If it contains results you don't
  10221. # want to keep, you may remove or edit it.
  10222. #
  10223. # config.status only pays attention to the cache file if you give it
  10224. # the --recheck option to rerun configure.
  10225. #
  10226. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10227. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10228. # following values.
  10229. _ACEOF
  10230. # The following way of writing the cache mishandles newlines in values,
  10231. # but we know of no workaround that is simple, portable, and efficient.
  10232. # So, we kill variables containing newlines.
  10233. # Ultrix sh set writes to stderr and can't be redirected directly,
  10234. # and sets the high bit in the cache file unless we assign to the vars.
  10235. (
  10236. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10237. eval ac_val=\$$ac_var
  10238. case $ac_val in #(
  10239. *${as_nl}*)
  10240. case $ac_var in #(
  10241. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10242. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10243. esac
  10244. case $ac_var in #(
  10245. _ | IFS | as_nl) ;; #(
  10246. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10247. *) { eval $ac_var=; unset $ac_var;} ;;
  10248. esac ;;
  10249. esac
  10250. done
  10251. (set) 2>&1 |
  10252. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10253. *${as_nl}ac_space=\ *)
  10254. # `set' does not quote correctly, so add quotes: double-quote
  10255. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10256. sed -n \
  10257. "s/'/'\\\\''/g;
  10258. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10259. ;; #(
  10260. *)
  10261. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10262. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10263. ;;
  10264. esac |
  10265. sort
  10266. ) |
  10267. sed '
  10268. /^ac_cv_env_/b end
  10269. t clear
  10270. :clear
  10271. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10272. t end
  10273. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10274. :end' >>confcache
  10275. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10276. if test -w "$cache_file"; then
  10277. if test "x$cache_file" != "x/dev/null"; then
  10278. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10279. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10280. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10281. cat confcache >"$cache_file"
  10282. else
  10283. case $cache_file in #(
  10284. */* | ?:*)
  10285. mv -f confcache "$cache_file"$$ &&
  10286. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10287. *)
  10288. mv -f confcache "$cache_file" ;;
  10289. esac
  10290. fi
  10291. fi
  10292. else
  10293. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10294. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10295. fi
  10296. fi
  10297. rm -f confcache
  10298. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10299. # Let make expand exec_prefix.
  10300. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10301. DEFS=-DHAVE_CONFIG_H
  10302. ac_libobjs=
  10303. ac_ltlibobjs=
  10304. U=
  10305. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10306. # 1. Remove the extension, and $U if already installed.
  10307. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10308. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10309. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10310. # will be set to the directory where LIBOBJS objects are built.
  10311. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10312. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10313. done
  10314. LIBOBJS=$ac_libobjs
  10315. LTLIBOBJS=$ac_ltlibobjs
  10316. : "${CONFIG_STATUS=./config.status}"
  10317. ac_write_fail=0
  10318. ac_clean_files_save=$ac_clean_files
  10319. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10320. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10321. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10322. as_write_fail=0
  10323. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10324. #! $SHELL
  10325. # Generated by $as_me.
  10326. # Run this file to recreate the current configuration.
  10327. # Compiler output produced by configure, useful for debugging
  10328. # configure, is in config.log if it exists.
  10329. debug=false
  10330. ac_cs_recheck=false
  10331. ac_cs_silent=false
  10332. SHELL=\${CONFIG_SHELL-$SHELL}
  10333. export SHELL
  10334. _ASEOF
  10335. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10336. ## -------------------- ##
  10337. ## M4sh Initialization. ##
  10338. ## -------------------- ##
  10339. # Be more Bourne compatible
  10340. DUALCASE=1; export DUALCASE # for MKS sh
  10341. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10342. emulate sh
  10343. NULLCMD=:
  10344. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10345. # is contrary to our usage. Disable this feature.
  10346. alias -g '${1+"$@"}'='"$@"'
  10347. setopt NO_GLOB_SUBST
  10348. else
  10349. case `(set -o) 2>/dev/null` in #(
  10350. *posix*) :
  10351. set -o posix ;; #(
  10352. *) :
  10353. ;;
  10354. esac
  10355. fi
  10356. as_nl='
  10357. '
  10358. export as_nl
  10359. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10360. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10361. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10362. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10363. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10364. # but without wasting forks for bash or zsh.
  10365. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10366. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10367. as_echo='print -r --'
  10368. as_echo_n='print -rn --'
  10369. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10370. as_echo='printf %s\n'
  10371. as_echo_n='printf %s'
  10372. else
  10373. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10374. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10375. as_echo_n='/usr/ucb/echo -n'
  10376. else
  10377. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10378. as_echo_n_body='eval
  10379. arg=$1;
  10380. case $arg in #(
  10381. *"$as_nl"*)
  10382. expr "X$arg" : "X\\(.*\\)$as_nl";
  10383. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10384. esac;
  10385. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10386. '
  10387. export as_echo_n_body
  10388. as_echo_n='sh -c $as_echo_n_body as_echo'
  10389. fi
  10390. export as_echo_body
  10391. as_echo='sh -c $as_echo_body as_echo'
  10392. fi
  10393. # The user is always right.
  10394. if test "${PATH_SEPARATOR+set}" != set; then
  10395. PATH_SEPARATOR=:
  10396. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10397. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10398. PATH_SEPARATOR=';'
  10399. }
  10400. fi
  10401. # IFS
  10402. # We need space, tab and new line, in precisely that order. Quoting is
  10403. # there to prevent editors from complaining about space-tab.
  10404. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10405. # splitting by setting IFS to empty value.)
  10406. IFS=" "" $as_nl"
  10407. # Find who we are. Look in the path if we contain no directory separator.
  10408. as_myself=
  10409. case $0 in #((
  10410. *[\\/]* ) as_myself=$0 ;;
  10411. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10412. for as_dir in $PATH
  10413. do
  10414. IFS=$as_save_IFS
  10415. test -z "$as_dir" && as_dir=.
  10416. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10417. done
  10418. IFS=$as_save_IFS
  10419. ;;
  10420. esac
  10421. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10422. # in which case we are not to be found in the path.
  10423. if test "x$as_myself" = x; then
  10424. as_myself=$0
  10425. fi
  10426. if test ! -f "$as_myself"; then
  10427. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10428. exit 1
  10429. fi
  10430. # Unset variables that we do not need and which cause bugs (e.g. in
  10431. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10432. # suppresses any "Segmentation fault" message there. '((' could
  10433. # trigger a bug in pdksh 5.2.14.
  10434. for as_var in BASH_ENV ENV MAIL MAILPATH
  10435. do eval test x\${$as_var+set} = xset \
  10436. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10437. done
  10438. PS1='$ '
  10439. PS2='> '
  10440. PS4='+ '
  10441. # NLS nuisances.
  10442. LC_ALL=C
  10443. export LC_ALL
  10444. LANGUAGE=C
  10445. export LANGUAGE
  10446. # CDPATH.
  10447. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10448. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10449. # ----------------------------------------
  10450. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10451. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10452. # script with STATUS, using 1 if that was 0.
  10453. as_fn_error ()
  10454. {
  10455. as_status=$1; test $as_status -eq 0 && as_status=1
  10456. if test "$4"; then
  10457. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10458. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10459. fi
  10460. $as_echo "$as_me: error: $2" >&2
  10461. as_fn_exit $as_status
  10462. } # as_fn_error
  10463. # as_fn_set_status STATUS
  10464. # -----------------------
  10465. # Set $? to STATUS, without forking.
  10466. as_fn_set_status ()
  10467. {
  10468. return $1
  10469. } # as_fn_set_status
  10470. # as_fn_exit STATUS
  10471. # -----------------
  10472. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10473. as_fn_exit ()
  10474. {
  10475. set +e
  10476. as_fn_set_status $1
  10477. exit $1
  10478. } # as_fn_exit
  10479. # as_fn_unset VAR
  10480. # ---------------
  10481. # Portably unset VAR.
  10482. as_fn_unset ()
  10483. {
  10484. { eval $1=; unset $1;}
  10485. }
  10486. as_unset=as_fn_unset
  10487. # as_fn_append VAR VALUE
  10488. # ----------------------
  10489. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10490. # advantage of any shell optimizations that allow amortized linear growth over
  10491. # repeated appends, instead of the typical quadratic growth present in naive
  10492. # implementations.
  10493. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10494. eval 'as_fn_append ()
  10495. {
  10496. eval $1+=\$2
  10497. }'
  10498. else
  10499. as_fn_append ()
  10500. {
  10501. eval $1=\$$1\$2
  10502. }
  10503. fi # as_fn_append
  10504. # as_fn_arith ARG...
  10505. # ------------------
  10506. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10507. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10508. # must be portable across $(()) and expr.
  10509. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10510. eval 'as_fn_arith ()
  10511. {
  10512. as_val=$(( $* ))
  10513. }'
  10514. else
  10515. as_fn_arith ()
  10516. {
  10517. as_val=`expr "$@" || test $? -eq 1`
  10518. }
  10519. fi # as_fn_arith
  10520. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10521. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10522. as_expr=expr
  10523. else
  10524. as_expr=false
  10525. fi
  10526. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10527. as_basename=basename
  10528. else
  10529. as_basename=false
  10530. fi
  10531. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10532. as_dirname=dirname
  10533. else
  10534. as_dirname=false
  10535. fi
  10536. as_me=`$as_basename -- "$0" ||
  10537. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10538. X"$0" : 'X\(//\)$' \| \
  10539. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10540. $as_echo X/"$0" |
  10541. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10542. s//\1/
  10543. q
  10544. }
  10545. /^X\/\(\/\/\)$/{
  10546. s//\1/
  10547. q
  10548. }
  10549. /^X\/\(\/\).*/{
  10550. s//\1/
  10551. q
  10552. }
  10553. s/.*/./; q'`
  10554. # Avoid depending upon Character Ranges.
  10555. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10556. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10557. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10558. as_cr_digits='0123456789'
  10559. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10560. ECHO_C= ECHO_N= ECHO_T=
  10561. case `echo -n x` in #(((((
  10562. -n*)
  10563. case `echo 'xy\c'` in
  10564. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10565. xy) ECHO_C='\c';;
  10566. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10567. ECHO_T=' ';;
  10568. esac;;
  10569. *)
  10570. ECHO_N='-n';;
  10571. esac
  10572. rm -f conf$$ conf$$.exe conf$$.file
  10573. if test -d conf$$.dir; then
  10574. rm -f conf$$.dir/conf$$.file
  10575. else
  10576. rm -f conf$$.dir
  10577. mkdir conf$$.dir 2>/dev/null
  10578. fi
  10579. if (echo >conf$$.file) 2>/dev/null; then
  10580. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10581. as_ln_s='ln -s'
  10582. # ... but there are two gotchas:
  10583. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10584. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10585. # In both cases, we have to default to `cp -pR'.
  10586. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10587. as_ln_s='cp -pR'
  10588. elif ln conf$$.file conf$$ 2>/dev/null; then
  10589. as_ln_s=ln
  10590. else
  10591. as_ln_s='cp -pR'
  10592. fi
  10593. else
  10594. as_ln_s='cp -pR'
  10595. fi
  10596. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10597. rmdir conf$$.dir 2>/dev/null
  10598. # as_fn_mkdir_p
  10599. # -------------
  10600. # Create "$as_dir" as a directory, including parents if necessary.
  10601. as_fn_mkdir_p ()
  10602. {
  10603. case $as_dir in #(
  10604. -*) as_dir=./$as_dir;;
  10605. esac
  10606. test -d "$as_dir" || eval $as_mkdir_p || {
  10607. as_dirs=
  10608. while :; do
  10609. case $as_dir in #(
  10610. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10611. *) as_qdir=$as_dir;;
  10612. esac
  10613. as_dirs="'$as_qdir' $as_dirs"
  10614. as_dir=`$as_dirname -- "$as_dir" ||
  10615. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10616. X"$as_dir" : 'X\(//\)[^/]' \| \
  10617. X"$as_dir" : 'X\(//\)$' \| \
  10618. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10619. $as_echo X"$as_dir" |
  10620. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10621. s//\1/
  10622. q
  10623. }
  10624. /^X\(\/\/\)[^/].*/{
  10625. s//\1/
  10626. q
  10627. }
  10628. /^X\(\/\/\)$/{
  10629. s//\1/
  10630. q
  10631. }
  10632. /^X\(\/\).*/{
  10633. s//\1/
  10634. q
  10635. }
  10636. s/.*/./; q'`
  10637. test -d "$as_dir" && break
  10638. done
  10639. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10640. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10641. } # as_fn_mkdir_p
  10642. if mkdir -p . 2>/dev/null; then
  10643. as_mkdir_p='mkdir -p "$as_dir"'
  10644. else
  10645. test -d ./-p && rmdir ./-p
  10646. as_mkdir_p=false
  10647. fi
  10648. # as_fn_executable_p FILE
  10649. # -----------------------
  10650. # Test if FILE is an executable regular file.
  10651. as_fn_executable_p ()
  10652. {
  10653. test -f "$1" && test -x "$1"
  10654. } # as_fn_executable_p
  10655. as_test_x='test -x'
  10656. as_executable_p=as_fn_executable_p
  10657. # Sed expression to map a string onto a valid CPP name.
  10658. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10659. # Sed expression to map a string onto a valid variable name.
  10660. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10661. exec 6>&1
  10662. ## ----------------------------------- ##
  10663. ## Main body of $CONFIG_STATUS script. ##
  10664. ## ----------------------------------- ##
  10665. _ASEOF
  10666. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10667. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10668. # Save the log message, to keep $0 and so on meaningful, and to
  10669. # report actual input values of CONFIG_FILES etc. instead of their
  10670. # values after options handling.
  10671. ac_log="
  10672. This file was extended by $as_me, which was
  10673. generated by GNU Autoconf 2.69. Invocation command line was
  10674. CONFIG_FILES = $CONFIG_FILES
  10675. CONFIG_HEADERS = $CONFIG_HEADERS
  10676. CONFIG_LINKS = $CONFIG_LINKS
  10677. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10678. $ $0 $@
  10679. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10680. "
  10681. _ACEOF
  10682. case $ac_config_files in *"
  10683. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10684. esac
  10685. case $ac_config_headers in *"
  10686. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10687. esac
  10688. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10689. # Files that config.status was made for.
  10690. config_files="$ac_config_files"
  10691. config_headers="$ac_config_headers"
  10692. config_commands="$ac_config_commands"
  10693. _ACEOF
  10694. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10695. ac_cs_usage="\
  10696. \`$as_me' instantiates files and other configuration actions
  10697. from templates according to the current configuration. Unless the files
  10698. and actions are specified as TAGs, all are instantiated by default.
  10699. Usage: $0 [OPTION]... [TAG]...
  10700. -h, --help print this help, then exit
  10701. -V, --version print version number and configuration settings, then exit
  10702. --config print configuration, then exit
  10703. -q, --quiet, --silent
  10704. do not print progress messages
  10705. -d, --debug don't remove temporary files
  10706. --recheck update $as_me by reconfiguring in the same conditions
  10707. --file=FILE[:TEMPLATE]
  10708. instantiate the configuration file FILE
  10709. --header=FILE[:TEMPLATE]
  10710. instantiate the configuration header FILE
  10711. Configuration files:
  10712. $config_files
  10713. Configuration headers:
  10714. $config_headers
  10715. Configuration commands:
  10716. $config_commands
  10717. Report bugs to the package provider."
  10718. _ACEOF
  10719. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10720. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10721. ac_cs_version="\\
  10722. config.status
  10723. configured by $0, generated by GNU Autoconf 2.69,
  10724. with options \\"\$ac_cs_config\\"
  10725. Copyright (C) 2012 Free Software Foundation, Inc.
  10726. This config.status script is free software; the Free Software Foundation
  10727. gives unlimited permission to copy, distribute and modify it."
  10728. ac_pwd='$ac_pwd'
  10729. srcdir='$srcdir'
  10730. INSTALL='$INSTALL'
  10731. AWK='$AWK'
  10732. test -n "\$AWK" || AWK=awk
  10733. _ACEOF
  10734. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10735. # The default lists apply if the user does not specify any file.
  10736. ac_need_defaults=:
  10737. while test $# != 0
  10738. do
  10739. case $1 in
  10740. --*=?*)
  10741. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10742. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10743. ac_shift=:
  10744. ;;
  10745. --*=)
  10746. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10747. ac_optarg=
  10748. ac_shift=:
  10749. ;;
  10750. *)
  10751. ac_option=$1
  10752. ac_optarg=$2
  10753. ac_shift=shift
  10754. ;;
  10755. esac
  10756. case $ac_option in
  10757. # Handling of the options.
  10758. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10759. ac_cs_recheck=: ;;
  10760. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10761. $as_echo "$ac_cs_version"; exit ;;
  10762. --config | --confi | --conf | --con | --co | --c )
  10763. $as_echo "$ac_cs_config"; exit ;;
  10764. --debug | --debu | --deb | --de | --d | -d )
  10765. debug=: ;;
  10766. --file | --fil | --fi | --f )
  10767. $ac_shift
  10768. case $ac_optarg in
  10769. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10770. '') as_fn_error $? "missing file argument" ;;
  10771. esac
  10772. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10773. ac_need_defaults=false;;
  10774. --header | --heade | --head | --hea )
  10775. $ac_shift
  10776. case $ac_optarg in
  10777. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10778. esac
  10779. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  10780. ac_need_defaults=false;;
  10781. --he | --h)
  10782. # Conflict between --help and --header
  10783. as_fn_error $? "ambiguous option: \`$1'
  10784. Try \`$0 --help' for more information.";;
  10785. --help | --hel | -h )
  10786. $as_echo "$ac_cs_usage"; exit ;;
  10787. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10788. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10789. ac_cs_silent=: ;;
  10790. # This is an error.
  10791. -*) as_fn_error $? "unrecognized option: \`$1'
  10792. Try \`$0 --help' for more information." ;;
  10793. *) as_fn_append ac_config_targets " $1"
  10794. ac_need_defaults=false ;;
  10795. esac
  10796. shift
  10797. done
  10798. ac_configure_extra_args=
  10799. if $ac_cs_silent; then
  10800. exec 6>/dev/null
  10801. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10802. fi
  10803. _ACEOF
  10804. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10805. if \$ac_cs_recheck; then
  10806. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10807. shift
  10808. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10809. CONFIG_SHELL='$SHELL'
  10810. export CONFIG_SHELL
  10811. exec "\$@"
  10812. fi
  10813. _ACEOF
  10814. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10815. exec 5>>config.log
  10816. {
  10817. echo
  10818. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10819. ## Running $as_me. ##
  10820. _ASBOX
  10821. $as_echo "$ac_log"
  10822. } >&5
  10823. _ACEOF
  10824. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10825. #
  10826. # INIT-COMMANDS
  10827. #
  10828. srcdir="${srcdir}"
  10829. objroot="${objroot}"
  10830. mangling_map="${mangling_map}"
  10831. public_syms="${public_syms}"
  10832. JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
  10833. srcdir="${srcdir}"
  10834. objroot="${objroot}"
  10835. public_syms="${public_syms}"
  10836. wrap_syms="${wrap_syms}"
  10837. SYM_PREFIX="${SYM_PREFIX}"
  10838. JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
  10839. srcdir="${srcdir}"
  10840. objroot="${objroot}"
  10841. public_syms="${public_syms}"
  10842. wrap_syms="${wrap_syms}"
  10843. SYM_PREFIX="${SYM_PREFIX}"
  10844. srcdir="${srcdir}"
  10845. objroot="${objroot}"
  10846. srcdir="${srcdir}"
  10847. objroot="${objroot}"
  10848. SHELL="${SHELL}"
  10849. srcdir="${srcdir}"
  10850. objroot="${objroot}"
  10851. LG_QUANTA="${LG_QUANTA}"
  10852. LG_PAGE_SIZES="${LG_PAGE_SIZES}"
  10853. srcdir="${srcdir}"
  10854. objroot="${objroot}"
  10855. srcdir="${srcdir}"
  10856. objroot="${objroot}"
  10857. srcdir="${srcdir}"
  10858. objroot="${objroot}"
  10859. srcdir="${srcdir}"
  10860. objroot="${objroot}"
  10861. srcdir="${srcdir}"
  10862. objroot="${objroot}"
  10863. install_suffix="${install_suffix}"
  10864. _ACEOF
  10865. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10866. # Handling of arguments.
  10867. for ac_config_target in $ac_config_targets
  10868. do
  10869. case $ac_config_target in
  10870. "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;;
  10871. "include/jemalloc/internal/private_symbols.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols.awk" ;;
  10872. "include/jemalloc/internal/private_symbols_jet.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols_jet.awk" ;;
  10873. "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;;
  10874. "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;;
  10875. "include/jemalloc/internal/size_classes.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/size_classes.h" ;;
  10876. "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;;
  10877. "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;;
  10878. "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;;
  10879. "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;;
  10880. "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;;
  10881. "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;;
  10882. "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;;
  10883. "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;;
  10884. "bin/jemalloc-config") CONFIG_FILES="$CONFIG_FILES bin/jemalloc-config" ;;
  10885. "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;;
  10886. "bin/jeprof") CONFIG_FILES="$CONFIG_FILES bin/jeprof" ;;
  10887. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10888. esac
  10889. done
  10890. # If the user did not use the arguments to specify the items to instantiate,
  10891. # then the envvar interface is used. Set only those that are not.
  10892. # We use the long form for the default assignment because of an extremely
  10893. # bizarre bug on SunOS 4.1.3.
  10894. if $ac_need_defaults; then
  10895. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10896. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10897. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10898. fi
  10899. # Have a temporary directory for convenience. Make it in the build tree
  10900. # simply because there is no reason against having it here, and in addition,
  10901. # creating and moving files from /tmp can sometimes cause problems.
  10902. # Hook for its removal unless debugging.
  10903. # Note that there is a small window in which the directory will not be cleaned:
  10904. # after its creation but before its name has been assigned to `$tmp'.
  10905. $debug ||
  10906. {
  10907. tmp= ac_tmp=
  10908. trap 'exit_status=$?
  10909. : "${ac_tmp:=$tmp}"
  10910. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10911. ' 0
  10912. trap 'as_fn_exit 1' 1 2 13 15
  10913. }
  10914. # Create a (secure) tmp directory for tmp files.
  10915. {
  10916. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10917. test -d "$tmp"
  10918. } ||
  10919. {
  10920. tmp=./conf$$-$RANDOM
  10921. (umask 077 && mkdir "$tmp")
  10922. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10923. ac_tmp=$tmp
  10924. # Set up the scripts for CONFIG_FILES section.
  10925. # No need to generate them if there are no CONFIG_FILES.
  10926. # This happens for instance with `./config.status config.h'.
  10927. if test -n "$CONFIG_FILES"; then
  10928. ac_cr=`echo X | tr X '\015'`
  10929. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10930. # But we know of no other shell where ac_cr would be empty at this
  10931. # point, so we can use a bashism as a fallback.
  10932. if test "x$ac_cr" = x; then
  10933. eval ac_cr=\$\'\\r\'
  10934. fi
  10935. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10936. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10937. ac_cs_awk_cr='\\r'
  10938. else
  10939. ac_cs_awk_cr=$ac_cr
  10940. fi
  10941. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10942. _ACEOF
  10943. {
  10944. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10945. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10946. echo "_ACEOF"
  10947. } >conf$$subs.sh ||
  10948. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10949. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10950. ac_delim='%!_!# '
  10951. for ac_last_try in false false false false false :; do
  10952. . ./conf$$subs.sh ||
  10953. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10954. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10955. if test $ac_delim_n = $ac_delim_num; then
  10956. break
  10957. elif $ac_last_try; then
  10958. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10959. else
  10960. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10961. fi
  10962. done
  10963. rm -f conf$$subs.sh
  10964. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10965. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10966. _ACEOF
  10967. sed -n '
  10968. h
  10969. s/^/S["/; s/!.*/"]=/
  10970. p
  10971. g
  10972. s/^[^!]*!//
  10973. :repl
  10974. t repl
  10975. s/'"$ac_delim"'$//
  10976. t delim
  10977. :nl
  10978. h
  10979. s/\(.\{148\}\)..*/\1/
  10980. t more1
  10981. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10982. p
  10983. n
  10984. b repl
  10985. :more1
  10986. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10987. p
  10988. g
  10989. s/.\{148\}//
  10990. t nl
  10991. :delim
  10992. h
  10993. s/\(.\{148\}\)..*/\1/
  10994. t more2
  10995. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10996. p
  10997. b
  10998. :more2
  10999. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11000. p
  11001. g
  11002. s/.\{148\}//
  11003. t delim
  11004. ' <conf$$subs.awk | sed '
  11005. /^[^""]/{
  11006. N
  11007. s/\n//
  11008. }
  11009. ' >>$CONFIG_STATUS || ac_write_fail=1
  11010. rm -f conf$$subs.awk
  11011. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11012. _ACAWK
  11013. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11014. for (key in S) S_is_set[key] = 1
  11015. FS = ""
  11016. }
  11017. {
  11018. line = $ 0
  11019. nfields = split(line, field, "@")
  11020. substed = 0
  11021. len = length(field[1])
  11022. for (i = 2; i < nfields; i++) {
  11023. key = field[i]
  11024. keylen = length(key)
  11025. if (S_is_set[key]) {
  11026. value = S[key]
  11027. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11028. len += length(value) + length(field[++i])
  11029. substed = 1
  11030. } else
  11031. len += 1 + keylen
  11032. }
  11033. print line
  11034. }
  11035. _ACAWK
  11036. _ACEOF
  11037. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11038. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11039. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11040. else
  11041. cat
  11042. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11043. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11044. _ACEOF
  11045. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11046. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11047. # trailing colons and then remove the whole line if VPATH becomes empty
  11048. # (actually we leave an empty line to preserve line numbers).
  11049. if test "x$srcdir" = x.; then
  11050. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11051. h
  11052. s///
  11053. s/^/:/
  11054. s/[ ]*$/:/
  11055. s/:\$(srcdir):/:/g
  11056. s/:\${srcdir}:/:/g
  11057. s/:@srcdir@:/:/g
  11058. s/^:*//
  11059. s/:*$//
  11060. x
  11061. s/\(=[ ]*\).*/\1/
  11062. G
  11063. s/\n//
  11064. s/^[^=]*=[ ]*$//
  11065. }'
  11066. fi
  11067. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11068. fi # test -n "$CONFIG_FILES"
  11069. # Set up the scripts for CONFIG_HEADERS section.
  11070. # No need to generate them if there are no CONFIG_HEADERS.
  11071. # This happens for instance with `./config.status Makefile'.
  11072. if test -n "$CONFIG_HEADERS"; then
  11073. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11074. BEGIN {
  11075. _ACEOF
  11076. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11077. # here-document in config.status, that substitutes the proper values into
  11078. # config.h.in to produce config.h.
  11079. # Create a delimiter string that does not exist in confdefs.h, to ease
  11080. # handling of long lines.
  11081. ac_delim='%!_!# '
  11082. for ac_last_try in false false :; do
  11083. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11084. if test -z "$ac_tt"; then
  11085. break
  11086. elif $ac_last_try; then
  11087. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11088. else
  11089. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11090. fi
  11091. done
  11092. # For the awk script, D is an array of macro values keyed by name,
  11093. # likewise P contains macro parameters if any. Preserve backslash
  11094. # newline sequences.
  11095. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11096. sed -n '
  11097. s/.\{148\}/&'"$ac_delim"'/g
  11098. t rset
  11099. :rset
  11100. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11101. t def
  11102. d
  11103. :def
  11104. s/\\$//
  11105. t bsnl
  11106. s/["\\]/\\&/g
  11107. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11108. D["\1"]=" \3"/p
  11109. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11110. d
  11111. :bsnl
  11112. s/["\\]/\\&/g
  11113. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11114. D["\1"]=" \3\\\\\\n"\\/p
  11115. t cont
  11116. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11117. t cont
  11118. d
  11119. :cont
  11120. n
  11121. s/.\{148\}/&'"$ac_delim"'/g
  11122. t clear
  11123. :clear
  11124. s/\\$//
  11125. t bsnlc
  11126. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11127. d
  11128. :bsnlc
  11129. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11130. b cont
  11131. ' <confdefs.h | sed '
  11132. s/'"$ac_delim"'/"\\\
  11133. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11134. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11135. for (key in D) D_is_set[key] = 1
  11136. FS = ""
  11137. }
  11138. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11139. line = \$ 0
  11140. split(line, arg, " ")
  11141. if (arg[1] == "#") {
  11142. defundef = arg[2]
  11143. mac1 = arg[3]
  11144. } else {
  11145. defundef = substr(arg[1], 2)
  11146. mac1 = arg[2]
  11147. }
  11148. split(mac1, mac2, "(") #)
  11149. macro = mac2[1]
  11150. prefix = substr(line, 1, index(line, defundef) - 1)
  11151. if (D_is_set[macro]) {
  11152. # Preserve the white space surrounding the "#".
  11153. print prefix "define", macro P[macro] D[macro]
  11154. next
  11155. } else {
  11156. # Replace #undef with comments. This is necessary, for example,
  11157. # in the case of _POSIX_SOURCE, which is predefined and required
  11158. # on some systems where configure will not decide to define it.
  11159. if (defundef == "undef") {
  11160. print "/*", prefix defundef, macro, "*/"
  11161. next
  11162. }
  11163. }
  11164. }
  11165. { print }
  11166. _ACAWK
  11167. _ACEOF
  11168. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11169. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  11170. fi # test -n "$CONFIG_HEADERS"
  11171. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11172. shift
  11173. for ac_tag
  11174. do
  11175. case $ac_tag in
  11176. :[FHLC]) ac_mode=$ac_tag; continue;;
  11177. esac
  11178. case $ac_mode$ac_tag in
  11179. :[FHL]*:*);;
  11180. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11181. :[FH]-) ac_tag=-:-;;
  11182. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11183. esac
  11184. ac_save_IFS=$IFS
  11185. IFS=:
  11186. set x $ac_tag
  11187. IFS=$ac_save_IFS
  11188. shift
  11189. ac_file=$1
  11190. shift
  11191. case $ac_mode in
  11192. :L) ac_source=$1;;
  11193. :[FH])
  11194. ac_file_inputs=
  11195. for ac_f
  11196. do
  11197. case $ac_f in
  11198. -) ac_f="$ac_tmp/stdin";;
  11199. *) # Look for the file first in the build tree, then in the source tree
  11200. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11201. # because $ac_f cannot contain `:'.
  11202. test -f "$ac_f" ||
  11203. case $ac_f in
  11204. [\\/$]*) false;;
  11205. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11206. esac ||
  11207. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11208. esac
  11209. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11210. as_fn_append ac_file_inputs " '$ac_f'"
  11211. done
  11212. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11213. # use $as_me), people would be surprised to read:
  11214. # /* config.h. Generated by config.status. */
  11215. configure_input='Generated from '`
  11216. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11217. `' by configure.'
  11218. if test x"$ac_file" != x-; then
  11219. configure_input="$ac_file. $configure_input"
  11220. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11221. $as_echo "$as_me: creating $ac_file" >&6;}
  11222. fi
  11223. # Neutralize special characters interpreted by sed in replacement strings.
  11224. case $configure_input in #(
  11225. *\&* | *\|* | *\\* )
  11226. ac_sed_conf_input=`$as_echo "$configure_input" |
  11227. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11228. *) ac_sed_conf_input=$configure_input;;
  11229. esac
  11230. case $ac_tag in
  11231. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11232. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11233. esac
  11234. ;;
  11235. esac
  11236. ac_dir=`$as_dirname -- "$ac_file" ||
  11237. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11238. X"$ac_file" : 'X\(//\)[^/]' \| \
  11239. X"$ac_file" : 'X\(//\)$' \| \
  11240. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11241. $as_echo X"$ac_file" |
  11242. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11243. s//\1/
  11244. q
  11245. }
  11246. /^X\(\/\/\)[^/].*/{
  11247. s//\1/
  11248. q
  11249. }
  11250. /^X\(\/\/\)$/{
  11251. s//\1/
  11252. q
  11253. }
  11254. /^X\(\/\).*/{
  11255. s//\1/
  11256. q
  11257. }
  11258. s/.*/./; q'`
  11259. as_dir="$ac_dir"; as_fn_mkdir_p
  11260. ac_builddir=.
  11261. case "$ac_dir" in
  11262. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11263. *)
  11264. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11265. # A ".." for each directory in $ac_dir_suffix.
  11266. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11267. case $ac_top_builddir_sub in
  11268. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11269. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11270. esac ;;
  11271. esac
  11272. ac_abs_top_builddir=$ac_pwd
  11273. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11274. # for backward compatibility:
  11275. ac_top_builddir=$ac_top_build_prefix
  11276. case $srcdir in
  11277. .) # We are building in place.
  11278. ac_srcdir=.
  11279. ac_top_srcdir=$ac_top_builddir_sub
  11280. ac_abs_top_srcdir=$ac_pwd ;;
  11281. [\\/]* | ?:[\\/]* ) # Absolute name.
  11282. ac_srcdir=$srcdir$ac_dir_suffix;
  11283. ac_top_srcdir=$srcdir
  11284. ac_abs_top_srcdir=$srcdir ;;
  11285. *) # Relative name.
  11286. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11287. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11288. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11289. esac
  11290. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11291. case $ac_mode in
  11292. :F)
  11293. #
  11294. # CONFIG_FILE
  11295. #
  11296. case $INSTALL in
  11297. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11298. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11299. esac
  11300. _ACEOF
  11301. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11302. # If the template does not know about datarootdir, expand it.
  11303. # FIXME: This hack should be removed a few years after 2.60.
  11304. ac_datarootdir_hack=; ac_datarootdir_seen=
  11305. ac_sed_dataroot='
  11306. /datarootdir/ {
  11307. p
  11308. q
  11309. }
  11310. /@datadir@/p
  11311. /@docdir@/p
  11312. /@infodir@/p
  11313. /@localedir@/p
  11314. /@mandir@/p'
  11315. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11316. *datarootdir*) ac_datarootdir_seen=yes;;
  11317. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11318. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11319. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11320. _ACEOF
  11321. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11322. ac_datarootdir_hack='
  11323. s&@datadir@&$datadir&g
  11324. s&@docdir@&$docdir&g
  11325. s&@infodir@&$infodir&g
  11326. s&@localedir@&$localedir&g
  11327. s&@mandir@&$mandir&g
  11328. s&\\\${datarootdir}&$datarootdir&g' ;;
  11329. esac
  11330. _ACEOF
  11331. # Neutralize VPATH when `$srcdir' = `.'.
  11332. # Shell code in configure.ac might set extrasub.
  11333. # FIXME: do we really want to maintain this feature?
  11334. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11335. ac_sed_extra="$ac_vpsub
  11336. $extrasub
  11337. _ACEOF
  11338. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11339. :t
  11340. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11341. s|@configure_input@|$ac_sed_conf_input|;t t
  11342. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11343. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11344. s&@srcdir@&$ac_srcdir&;t t
  11345. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11346. s&@top_srcdir@&$ac_top_srcdir&;t t
  11347. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11348. s&@builddir@&$ac_builddir&;t t
  11349. s&@abs_builddir@&$ac_abs_builddir&;t t
  11350. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11351. s&@INSTALL@&$ac_INSTALL&;t t
  11352. $ac_datarootdir_hack
  11353. "
  11354. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11355. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11356. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11357. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11358. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11359. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11360. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11361. which seems to be undefined. Please make sure it is defined" >&5
  11362. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11363. which seems to be undefined. Please make sure it is defined" >&2;}
  11364. rm -f "$ac_tmp/stdin"
  11365. case $ac_file in
  11366. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11367. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11368. esac \
  11369. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11370. ;;
  11371. :H)
  11372. #
  11373. # CONFIG_HEADER
  11374. #
  11375. if test x"$ac_file" != x-; then
  11376. {
  11377. $as_echo "/* $configure_input */" \
  11378. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  11379. } >"$ac_tmp/config.h" \
  11380. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11381. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  11382. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11383. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11384. else
  11385. rm -f "$ac_file"
  11386. mv "$ac_tmp/config.h" "$ac_file" \
  11387. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11388. fi
  11389. else
  11390. $as_echo "/* $configure_input */" \
  11391. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  11392. || as_fn_error $? "could not create -" "$LINENO" 5
  11393. fi
  11394. ;;
  11395. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11396. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11397. ;;
  11398. esac
  11399. case $ac_file$ac_mode in
  11400. "include/jemalloc/internal/public_symbols.txt":C)
  11401. f="${objroot}include/jemalloc/internal/public_symbols.txt"
  11402. mkdir -p "${objroot}include/jemalloc/internal"
  11403. cp /dev/null "${f}"
  11404. for nm in `echo ${mangling_map} |tr ',' ' '` ; do
  11405. n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'`
  11406. m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'`
  11407. echo "${n}:${m}" >> "${f}"
  11408. public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '`
  11409. done
  11410. for sym in ${public_syms} ; do
  11411. n="${sym}"
  11412. m="${JEMALLOC_PREFIX}${sym}"
  11413. echo "${n}:${m}" >> "${f}"
  11414. done
  11415. ;;
  11416. "include/jemalloc/internal/private_symbols.awk":C)
  11417. f="${objroot}include/jemalloc/internal/private_symbols.awk"
  11418. mkdir -p "${objroot}include/jemalloc/internal"
  11419. export_syms=`for sym in ${public_syms}; do echo "${JEMALLOC_PREFIX}${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
  11420. "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols.awk"
  11421. ;;
  11422. "include/jemalloc/internal/private_symbols_jet.awk":C)
  11423. f="${objroot}include/jemalloc/internal/private_symbols_jet.awk"
  11424. mkdir -p "${objroot}include/jemalloc/internal"
  11425. export_syms=`for sym in ${public_syms}; do echo "jet_${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
  11426. "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols_jet.awk"
  11427. ;;
  11428. "include/jemalloc/internal/public_namespace.h":C)
  11429. mkdir -p "${objroot}include/jemalloc/internal"
  11430. "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h"
  11431. ;;
  11432. "include/jemalloc/internal/public_unnamespace.h":C)
  11433. mkdir -p "${objroot}include/jemalloc/internal"
  11434. "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h"
  11435. ;;
  11436. "include/jemalloc/internal/size_classes.h":C)
  11437. mkdir -p "${objroot}include/jemalloc/internal"
  11438. "${SHELL}" "${srcdir}/include/jemalloc/internal/size_classes.sh" "${LG_QUANTA}" 3 "${LG_PAGE_SIZES}" 2 > "${objroot}include/jemalloc/internal/size_classes.h"
  11439. ;;
  11440. "include/jemalloc/jemalloc_protos_jet.h":C)
  11441. mkdir -p "${objroot}include/jemalloc"
  11442. cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h"
  11443. ;;
  11444. "include/jemalloc/jemalloc_rename.h":C)
  11445. mkdir -p "${objroot}include/jemalloc"
  11446. "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h"
  11447. ;;
  11448. "include/jemalloc/jemalloc_mangle.h":C)
  11449. mkdir -p "${objroot}include/jemalloc"
  11450. "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h"
  11451. ;;
  11452. "include/jemalloc/jemalloc_mangle_jet.h":C)
  11453. mkdir -p "${objroot}include/jemalloc"
  11454. "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h"
  11455. ;;
  11456. "include/jemalloc/jemalloc.h":C)
  11457. mkdir -p "${objroot}include/jemalloc"
  11458. "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h"
  11459. ;;
  11460. esac
  11461. done # for ac_tag
  11462. as_fn_exit 0
  11463. _ACEOF
  11464. ac_clean_files=$ac_clean_files_save
  11465. test $ac_write_fail = 0 ||
  11466. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11467. # configure is writing to config.log, and then calls config.status.
  11468. # config.status does its own redirection, appending to config.log.
  11469. # Unfortunately, on DOS this fails, as config.log is still kept open
  11470. # by configure, so config.status won't be able to write to it; its
  11471. # output is simply discarded. So we exec the FD to /dev/null,
  11472. # effectively closing config.log, so it can be properly (re)opened and
  11473. # appended to by config.status. When coming back to configure, we
  11474. # need to make the FD available again.
  11475. if test "$no_create" != yes; then
  11476. ac_cs_success=:
  11477. ac_config_status_args=
  11478. test "$silent" = yes &&
  11479. ac_config_status_args="$ac_config_status_args --quiet"
  11480. exec 5>/dev/null
  11481. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11482. exec 5>>config.log
  11483. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11484. # would make configure fail if this is the last instruction.
  11485. $ac_cs_success || as_fn_exit 1
  11486. fi
  11487. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11489. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11490. fi
  11491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
  11492. $as_echo "===============================================================================" >&6; }
  11493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version : ${jemalloc_version}" >&5
  11494. $as_echo "jemalloc version : ${jemalloc_version}" >&6; }
  11495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision : ${rev}" >&5
  11496. $as_echo "library revision : ${rev}" >&6; }
  11497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  11498. $as_echo "" >&6; }
  11499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIG : ${CONFIG}" >&5
  11500. $as_echo "CONFIG : ${CONFIG}" >&6; }
  11501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC : ${CC}" >&5
  11502. $as_echo "CC : ${CC}" >&6; }
  11503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&5
  11504. $as_echo "CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&6; }
  11505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&5
  11506. $as_echo "SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&6; }
  11507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&5
  11508. $as_echo "EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&6; }
  11509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS : ${CPPFLAGS}" >&5
  11510. $as_echo "CPPFLAGS : ${CPPFLAGS}" >&6; }
  11511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: CXX : ${CXX}" >&5
  11512. $as_echo "CXX : ${CXX}" >&6; }
  11513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&5
  11514. $as_echo "CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&6; }
  11515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&5
  11516. $as_echo "SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&6; }
  11517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CXXFLAGS : ${EXTRA_CXXFLAGS}" >&5
  11518. $as_echo "EXTRA_CXXFLAGS : ${EXTRA_CXXFLAGS}" >&6; }
  11519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS : ${LDFLAGS}" >&5
  11520. $as_echo "LDFLAGS : ${LDFLAGS}" >&6; }
  11521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&5
  11522. $as_echo "EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&6; }
  11523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: DSO_LDFLAGS : ${DSO_LDFLAGS}" >&5
  11524. $as_echo "DSO_LDFLAGS : ${DSO_LDFLAGS}" >&6; }
  11525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS : ${LIBS}" >&5
  11526. $as_echo "LIBS : ${LIBS}" >&6; }
  11527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA : ${RPATH_EXTRA}" >&5
  11528. $as_echo "RPATH_EXTRA : ${RPATH_EXTRA}" >&6; }
  11529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  11530. $as_echo "" >&6; }
  11531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC : ${XSLTPROC}" >&5
  11532. $as_echo "XSLTPROC : ${XSLTPROC}" >&6; }
  11533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT : ${XSLROOT}" >&5
  11534. $as_echo "XSLROOT : ${XSLROOT}" >&6; }
  11535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  11536. $as_echo "" >&6; }
  11537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX : ${PREFIX}" >&5
  11538. $as_echo "PREFIX : ${PREFIX}" >&6; }
  11539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR : ${BINDIR}" >&5
  11540. $as_echo "BINDIR : ${BINDIR}" >&6; }
  11541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR : ${DATADIR}" >&5
  11542. $as_echo "DATADIR : ${DATADIR}" >&6; }
  11543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR : ${INCLUDEDIR}" >&5
  11544. $as_echo "INCLUDEDIR : ${INCLUDEDIR}" >&6; }
  11545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR : ${LIBDIR}" >&5
  11546. $as_echo "LIBDIR : ${LIBDIR}" >&6; }
  11547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR : ${MANDIR}" >&5
  11548. $as_echo "MANDIR : ${MANDIR}" >&6; }
  11549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  11550. $as_echo "" >&6; }
  11551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot : ${srcroot}" >&5
  11552. $as_echo "srcroot : ${srcroot}" >&6; }
  11553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot : ${abs_srcroot}" >&5
  11554. $as_echo "abs_srcroot : ${abs_srcroot}" >&6; }
  11555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot : ${objroot}" >&5
  11556. $as_echo "objroot : ${objroot}" >&6; }
  11557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot : ${abs_objroot}" >&5
  11558. $as_echo "abs_objroot : ${abs_objroot}" >&6; }
  11559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  11560. $as_echo "" >&6; }
  11561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&5
  11562. $as_echo "JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&6; }
  11563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
  11564. $as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
  11565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
  11566. $as_echo " : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
  11567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix : ${install_suffix}" >&5
  11568. $as_echo "install_suffix : ${install_suffix}" >&6; }
  11569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc_conf : ${config_malloc_conf}" >&5
  11570. $as_echo "malloc_conf : ${config_malloc_conf}" >&6; }
  11571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen : ${enable_autogen}" >&5
  11572. $as_echo "autogen : ${enable_autogen}" >&6; }
  11573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug : ${enable_debug}" >&5
  11574. $as_echo "debug : ${enable_debug}" >&6; }
  11575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: stats : ${enable_stats}" >&5
  11576. $as_echo "stats : ${enable_stats}" >&6; }
  11577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof : ${enable_prof}" >&5
  11578. $as_echo "prof : ${enable_prof}" >&6; }
  11579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind : ${enable_prof_libunwind}" >&5
  11580. $as_echo "prof-libunwind : ${enable_prof_libunwind}" >&6; }
  11581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc : ${enable_prof_libgcc}" >&5
  11582. $as_echo "prof-libgcc : ${enable_prof_libgcc}" >&6; }
  11583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc : ${enable_prof_gcc}" >&5
  11584. $as_echo "prof-gcc : ${enable_prof_gcc}" >&6; }
  11585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: fill : ${enable_fill}" >&5
  11586. $as_echo "fill : ${enable_fill}" >&6; }
  11587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace : ${enable_utrace}" >&5
  11588. $as_echo "utrace : ${enable_utrace}" >&6; }
  11589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc : ${enable_xmalloc}" >&5
  11590. $as_echo "xmalloc : ${enable_xmalloc}" >&6; }
  11591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: log : ${enable_log}" >&5
  11592. $as_echo "log : ${enable_log}" >&6; }
  11593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock : ${enable_lazy_lock}" >&5
  11594. $as_echo "lazy_lock : ${enable_lazy_lock}" >&6; }
  11595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cache-oblivious : ${enable_cache_oblivious}" >&5
  11596. $as_echo "cache-oblivious : ${enable_cache_oblivious}" >&6; }
  11597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cxx : ${enable_cxx}" >&5
  11598. $as_echo "cxx : ${enable_cxx}" >&6; }
  11599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
  11600. $as_echo "===============================================================================" >&6; }