gcc.musl 1.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143
  1. diff -Nur gcc-4.9.2-or1k.orig/fixincludes/mkfixinc.sh gcc-4.9.2-or1k/fixincludes/mkfixinc.sh
  2. --- gcc-4.9.2-or1k.orig/fixincludes/mkfixinc.sh 2015-07-13 13:42:13.000000000 -0500
  3. +++ gcc-4.9.2-or1k/fixincludes/mkfixinc.sh 2015-07-13 14:13:48.314287003 -0500
  4. @@ -19,7 +19,8 @@
  5. powerpc-*-eabi* | \
  6. powerpc-*-rtems* | \
  7. powerpcle-*-eabisim* | \
  8. - powerpcle-*-eabi* )
  9. + powerpcle-*-eabi* | \
  10. + *-musl* )
  11. # IF there is no include fixing,
  12. # THEN create a no-op fixer and exit
  13. (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
  14. diff -Nur gcc-4.9.2-or1k.orig/gcc/config/aarch64/aarch64-linux.h gcc-4.9.2-or1k/gcc/config/aarch64/aarch64-linux.h
  15. --- gcc-4.9.2-or1k.orig/gcc/config/aarch64/aarch64-linux.h 2015-07-13 13:42:14.000000000 -0500
  16. +++ gcc-4.9.2-or1k/gcc/config/aarch64/aarch64-linux.h 2015-07-13 14:13:48.314287003 -0500
  17. @@ -23,6 +23,8 @@
  18. #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}.so.1"
  19. +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64.so.1"
  20. +
  21. #define CPP_SPEC "%{pthread:-D_REENTRANT}"
  22. #define LINUX_TARGET_LINK_SPEC "%{h*} \
  23. diff -Nur gcc-4.9.2-or1k.orig/gcc/config/arm/linux-eabi.h gcc-4.9.2-or1k/gcc/config/arm/linux-eabi.h
  24. --- gcc-4.9.2-or1k.orig/gcc/config/arm/linux-eabi.h 2015-07-13 13:42:14.000000000 -0500
  25. +++ gcc-4.9.2-or1k/gcc/config/arm/linux-eabi.h 2015-07-13 14:13:48.314287003 -0500
  26. @@ -77,6 +77,23 @@
  27. %{mfloat-abi=soft*:" GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "} \
  28. %{!mfloat-abi=*:" GLIBC_DYNAMIC_LINKER_DEFAULT "}"
  29. +/* For ARM musl currently supports four dynamic linkers:
  30. + - ld-musl-arm.so.1 - for the EABI-derived soft-float ABI
  31. + - ld-musl-armhf.so.1 - for the EABI-derived hard-float ABI
  32. + - ld-musl-armeb.so.1 - for the EABI-derived soft-float ABI, EB
  33. + - ld-musl-armebhf.so.1 - for the EABI-derived hard-float ABI, EB
  34. + musl does not support the legacy OABI mode.
  35. + All the dynamic linkers live in /lib.
  36. + We default to soft-float, EL. */
  37. +#undef MUSL_DYNAMIC_LINKER
  38. +#if TARGET_BIG_ENDIAN_DEFAULT
  39. +#define MUSL_DYNAMIC_LINKER_E "%{mlittle-endian:;:eb}"
  40. +#else
  41. +#define MUSL_DYNAMIC_LINKER_E "%{mbig-endian:eb}"
  42. +#endif
  43. +#define MUSL_DYNAMIC_LINKER \
  44. + "/lib/ld-musl-arm" MUSL_DYNAMIC_LINKER_E "%{mfloat-abi=hard:hf}.so.1"
  45. +
  46. /* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
  47. use the GNU/Linux version, not the generic BPABI version. */
  48. #undef LINK_SPEC
  49. diff -Nur gcc-4.9.2-or1k.orig/gcc/config/i386/linux64.h gcc-4.9.2-or1k/gcc/config/i386/linux64.h
  50. --- gcc-4.9.2-or1k.orig/gcc/config/i386/linux64.h 2015-07-13 13:42:14.000000000 -0500
  51. +++ gcc-4.9.2-or1k/gcc/config/i386/linux64.h 2015-07-13 14:13:48.314287003 -0500
  52. @@ -30,3 +30,7 @@
  53. #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
  54. #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
  55. #define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2"
  56. +
  57. +#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-i386.so.1"
  58. +#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-x86_64.so.1"
  59. +#define MUSL_DYNAMIC_LINKERX32 "/lib/ld-musl-x32.so.1"
  60. diff -Nur gcc-4.9.2-or1k.orig/gcc/config/i386/linux.h gcc-4.9.2-or1k/gcc/config/i386/linux.h
  61. --- gcc-4.9.2-or1k.orig/gcc/config/i386/linux.h 2015-07-13 13:42:14.000000000 -0500
  62. +++ gcc-4.9.2-or1k/gcc/config/i386/linux.h 2015-07-13 14:13:48.318287001 -0500
  63. @@ -21,3 +21,4 @@
  64. #define GNU_USER_LINK_EMULATION "elf_i386"
  65. #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
  66. +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-i386.so.1"
  67. diff -Nur gcc-4.9.2-or1k.orig/gcc/config/linux.h gcc-4.9.2-or1k/gcc/config/linux.h
  68. --- gcc-4.9.2-or1k.orig/gcc/config/linux.h 2015-07-13 13:42:14.000000000 -0500
  69. +++ gcc-4.9.2-or1k/gcc/config/linux.h 2015-07-13 14:13:48.318287001 -0500
  70. @@ -32,10 +32,12 @@
  71. #define OPTION_GLIBC (DEFAULT_LIBC == LIBC_GLIBC)
  72. #define OPTION_UCLIBC (DEFAULT_LIBC == LIBC_UCLIBC)
  73. #define OPTION_BIONIC (DEFAULT_LIBC == LIBC_BIONIC)
  74. +#define OPTION_MUSL (DEFAULT_LIBC == LIBC_MUSL)
  75. #else
  76. #define OPTION_GLIBC (linux_libc == LIBC_GLIBC)
  77. #define OPTION_UCLIBC (linux_libc == LIBC_UCLIBC)
  78. #define OPTION_BIONIC (linux_libc == LIBC_BIONIC)
  79. +#define OPTION_MUSL (linux_libc == LIBC_MUSL)
  80. #endif
  81. #define GNU_USER_TARGET_OS_CPP_BUILTINS() \
  82. @@ -53,18 +55,21 @@
  83. uClibc or Bionic is the default C library and whether
  84. -muclibc or -mglibc or -mbionic has been passed to change the default. */
  85. -#define CHOOSE_DYNAMIC_LINKER1(LIBC1, LIBC2, LIBC3, LD1, LD2, LD3) \
  86. - "%{" LIBC2 ":" LD2 ";:%{" LIBC3 ":" LD3 ";:" LD1 "}}"
  87. +#define CHOOSE_DYNAMIC_LINKER1(LIBC1, LIBC2, LIBC3, LIBC4, LD1, LD2, LD3, LD4) \
  88. + "%{" LIBC2 ":" LD2 ";:%{" LIBC3 ":" LD3 ";:%{" LIBC4 ":" LD4 ";:" LD1 "}}}"
  89. #if DEFAULT_LIBC == LIBC_GLIBC
  90. -#define CHOOSE_DYNAMIC_LINKER(G, U, B) \
  91. - CHOOSE_DYNAMIC_LINKER1 ("mglibc", "muclibc", "mbionic", G, U, B)
  92. +#define CHOOSE_DYNAMIC_LINKER(G, U, B, M) \
  93. + CHOOSE_DYNAMIC_LINKER1 ("mglibc", "muclibc", "mbionic", "mmusl", G, U, B, M)
  94. #elif DEFAULT_LIBC == LIBC_UCLIBC
  95. -#define CHOOSE_DYNAMIC_LINKER(G, U, B) \
  96. - CHOOSE_DYNAMIC_LINKER1 ("muclibc", "mglibc", "mbionic", U, G, B)
  97. +#define CHOOSE_DYNAMIC_LINKER(G, U, B, M) \
  98. + CHOOSE_DYNAMIC_LINKER1 ("muclibc", "mglibc", "mbionic", "mmusl", U, G, B, M)
  99. #elif DEFAULT_LIBC == LIBC_BIONIC
  100. -#define CHOOSE_DYNAMIC_LINKER(G, U, B) \
  101. - CHOOSE_DYNAMIC_LINKER1 ("mbionic", "mglibc", "muclibc", B, G, U)
  102. +#define CHOOSE_DYNAMIC_LINKER(G, U, B, M) \
  103. + CHOOSE_DYNAMIC_LINKER1 ("mbionic", "mglibc", "muclibc", "mmusl", B, G, U, M)
  104. +#elif DEFAULT_LIBC == LIBC_MUSL
  105. +#define CHOOSE_DYNAMIC_LINKER(G, U, B, M) \
  106. + CHOOSE_DYNAMIC_LINKER1 ("mmusl", "mglibc", "muclibc", "mbionic", M, G, U, B)
  107. #else
  108. #error "Unsupported DEFAULT_LIBC"
  109. #endif /* DEFAULT_LIBC */
  110. @@ -84,21 +89,92 @@
  111. #define GNU_USER_DYNAMIC_LINKER \
  112. CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER, \
  113. - BIONIC_DYNAMIC_LINKER)
  114. + BIONIC_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER)
  115. #define GNU_USER_DYNAMIC_LINKER32 \
  116. CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER32, \
  117. - BIONIC_DYNAMIC_LINKER32)
  118. + BIONIC_DYNAMIC_LINKER32, MUSL_DYNAMIC_LINKER32)
  119. #define GNU_USER_DYNAMIC_LINKER64 \
  120. CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER64, \
  121. - BIONIC_DYNAMIC_LINKER64)
  122. + BIONIC_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKER64)
  123. #define GNU_USER_DYNAMIC_LINKERX32 \
  124. CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERX32, UCLIBC_DYNAMIC_LINKERX32, \
  125. - BIONIC_DYNAMIC_LINKERX32)
  126. + BIONIC_DYNAMIC_LINKERX32, MUSL_DYNAMIC_LINKERX32)
  127. /* Whether we have Bionic libc runtime */
  128. #undef TARGET_HAS_BIONIC
  129. #define TARGET_HAS_BIONIC (OPTION_BIONIC)
  130. +/* musl avoids problematic includes by rearranging the include directories.
  131. + * Unfortunately, this is mostly duplicated from cppdefault.c */
  132. +#if DEFAULT_LIBC == LIBC_MUSL
  133. +#define INCLUDE_DEFAULTS_MUSL_GPP \
  134. + { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1, \
  135. + GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 0 }, \
  136. + { GPLUSPLUS_TOOL_INCLUDE_DIR, "G++", 1, 1, \
  137. + GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 1 }, \
  138. + { GPLUSPLUS_BACKWARD_INCLUDE_DIR, "G++", 1, 1, \
  139. + GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 0 },
  140. +
  141. +#ifdef LOCAL_INCLUDE_DIR
  142. +#define INCLUDE_DEFAULTS_MUSL_LOCAL \
  143. + { LOCAL_INCLUDE_DIR, 0, 0, 1, 1, 2 }, \
  144. + { LOCAL_INCLUDE_DIR, 0, 0, 1, 1, 0 },
  145. +#else
  146. +#define INCLUDE_DEFAULTS_MUSL_LOCAL
  147. +#endif
  148. +
  149. +#ifdef PREFIX_INCLUDE_DIR
  150. +#define INCLUDE_DEFAULTS_MUSL_PREFIX \
  151. + { PREFIX_INCLUDE_DIR, 0, 0, 1, 0, 0},
  152. +#else
  153. +#define INCLUDE_DEFAULTS_MUSL_PREFIX
  154. +#endif
  155. +
  156. +#ifdef CROSS_INCLUDE_DIR
  157. +#define INCLUDE_DEFAULTS_MUSL_CROSS \
  158. + { CROSS_INCLUDE_DIR, "GCC", 0, 0, 0, 0},
  159. +#else
  160. +#define INCLUDE_DEFAULTS_MUSL_CROSS
  161. +#endif
  162. +
  163. +#ifdef TOOL_INCLUDE_DIR
  164. +#define INCLUDE_DEFAULTS_MUSL_TOOL \
  165. + { TOOL_INCLUDE_DIR, "BINUTILS", 0, 1, 0, 0},
  166. +#else
  167. +#define INCLUDE_DEFAULTS_MUSL_TOOL
  168. +#endif
  169. +
  170. +#ifdef NATIVE_SYSTEM_HEADER_DIR
  171. +#define INCLUDE_DEFAULTS_MUSL_NATIVE \
  172. + { NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 2 }, \
  173. + { NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 0 },
  174. +#else
  175. +#define INCLUDE_DEFAULTS_MUSL_NATIVE
  176. +#endif
  177. +
  178. +#if defined (CROSS_DIRECTORY_STRUCTURE) && !defined (TARGET_SYSTEM_ROOT)
  179. +# undef INCLUDE_DEFAULTS_MUSL_LOCAL
  180. +# define INCLUDE_DEFAULTS_MUSL_LOCAL
  181. +# undef INCLUDE_DEFAULTS_MUSL_NATIVE
  182. +# define INCLUDE_DEFAULTS_MUSL_NATIVE
  183. +#else
  184. +# undef INCLUDE_DEFAULTS_MUSL_CROSS
  185. +# define INCLUDE_DEFAULTS_MUSL_CROSS
  186. +#endif
  187. +
  188. +#undef INCLUDE_DEFAULTS
  189. +#define INCLUDE_DEFAULTS \
  190. + { \
  191. + INCLUDE_DEFAULTS_MUSL_GPP \
  192. + INCLUDE_DEFAULTS_MUSL_PREFIX \
  193. + INCLUDE_DEFAULTS_MUSL_CROSS \
  194. + INCLUDE_DEFAULTS_MUSL_TOOL \
  195. + INCLUDE_DEFAULTS_MUSL_NATIVE \
  196. + { GCC_INCLUDE_DIR, "GCC", 0, 1, 0, 0 }, \
  197. + { 0, 0, 0, 0, 0, 0 } \
  198. + }
  199. +#endif
  200. +
  201. #if (DEFAULT_LIBC == LIBC_UCLIBC) && defined (SINGLE_LIBC) /* uClinux */
  202. /* This is a *uclinux* target. We don't define below macros to normal linux
  203. versions, because doing so would require *uclinux* targets to include
  204. diff -Nur gcc-4.9.2-or1k.orig/gcc/config/linux.opt gcc-4.9.2-or1k/gcc/config/linux.opt
  205. --- gcc-4.9.2-or1k.orig/gcc/config/linux.opt 2015-07-13 13:42:14.000000000 -0500
  206. +++ gcc-4.9.2-or1k/gcc/config/linux.opt 2015-07-13 14:13:48.318287001 -0500
  207. @@ -30,3 +30,7 @@
  208. muclibc
  209. Target Report RejectNegative Var(linux_libc,LIBC_UCLIBC) Negative(mbionic)
  210. Use uClibc C library
  211. +
  212. +mmusl
  213. +Target Report RejectNegative Var(linux_libc,LIBC_MUSL) Negative(mglibc)
  214. +Use musl C library
  215. diff -Nur gcc-4.9.2-or1k.orig/gcc/config/microblaze/linux.h gcc-4.9.2-or1k/gcc/config/microblaze/linux.h
  216. --- gcc-4.9.2-or1k.orig/gcc/config/microblaze/linux.h 2015-07-13 13:42:14.000000000 -0500
  217. +++ gcc-4.9.2-or1k/gcc/config/microblaze/linux.h 2015-07-13 14:13:48.318287001 -0500
  218. @@ -25,7 +25,22 @@
  219. #undef TLS_NEEDS_GOT
  220. #define TLS_NEEDS_GOT 1
  221. -#define DYNAMIC_LINKER "/lib/ld.so.1"
  222. +#if TARGET_BIG_ENDIAN_DEFAULT == 0 /* LE */
  223. +#define MUSL_DYNAMIC_LINKER_E "%{EB:;:el}"
  224. +#else
  225. +#define MUSL_DYNAMIC_LINKER_E "%{EL:el}"
  226. +#endif
  227. +
  228. +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-microblaze" MUSL_DYNAMIC_LINKER_E ".so.1"
  229. +#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
  230. +
  231. +#if DEFAULT_LIBC == LIBC_MUSL
  232. +#define DYNAMIC_LINKER MUSL_DYNAMIC_LINKER
  233. +#else
  234. +#define DYNAMIC_LINKER GLIBC_DYNAMIC_LINKER
  235. +#endif
  236. +
  237. +
  238. #undef SUBTARGET_EXTRA_SPECS
  239. #define SUBTARGET_EXTRA_SPECS \
  240. { "dynamic_linker", DYNAMIC_LINKER }
  241. diff -Nur gcc-4.9.2-or1k.orig/gcc/config/microblaze/microblaze.h gcc-4.9.2-or1k/gcc/config/microblaze/microblaze.h
  242. --- gcc-4.9.2-or1k.orig/gcc/config/microblaze/microblaze.h 2015-07-13 13:42:14.000000000 -0500
  243. +++ gcc-4.9.2-or1k/gcc/config/microblaze/microblaze.h 2015-07-13 14:13:48.318287001 -0500
  244. @@ -218,6 +218,12 @@
  245. #undef PTRDIFF_TYPE
  246. #define PTRDIFF_TYPE "int"
  247. +#undef SIZE_TYPE
  248. +#define SIZE_TYPE "unsigned int"
  249. +
  250. +#undef PTRDIFF_TYPE
  251. +#define PTRDIFF_TYPE "int"
  252. +
  253. #define CONSTANT_ALIGNMENT(EXP, ALIGN) \
  254. ((TREE_CODE (EXP) == STRING_CST || TREE_CODE (EXP) == CONSTRUCTOR) \
  255. && (ALIGN) < BITS_PER_WORD \
  256. diff -Nur gcc-4.9.2-or1k.orig/gcc/config/mips/linux.h gcc-4.9.2-or1k/gcc/config/mips/linux.h
  257. --- gcc-4.9.2-or1k.orig/gcc/config/mips/linux.h 2015-07-13 13:42:14.000000000 -0500
  258. +++ gcc-4.9.2-or1k/gcc/config/mips/linux.h 2015-07-13 14:13:48.318287001 -0500
  259. @@ -23,3 +23,10 @@
  260. #undef UCLIBC_DYNAMIC_LINKER
  261. #define UCLIBC_DYNAMIC_LINKER \
  262. "%{mnan=2008:/lib/ld-uClibc-mipsn8.so.0;:/lib/ld-uClibc.so.0}"
  263. +
  264. +#if TARGET_ENDIAN_DEFAULT == 0 /* LE */
  265. +#define MUSL_DYNAMIC_LINKER_E "%{EB:;:el}"
  266. +#else
  267. +#define MUSL_DYNAMIC_LINKER_E "%{EL:el}"
  268. +#endif
  269. +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-mips" MUSL_DYNAMIC_LINKER_E ".so.1"
  270. diff -Nur gcc-4.9.2-or1k.orig/gcc/config/or1k/linux-elf.h gcc-4.9.2-or1k/gcc/config/or1k/linux-elf.h
  271. --- gcc-4.9.2-or1k.orig/gcc/config/or1k/linux-elf.h 2015-07-13 13:42:14.000000000 -0500
  272. +++ gcc-4.9.2-or1k/gcc/config/or1k/linux-elf.h 2015-07-13 14:19:46.226287005 -0500
  273. @@ -65,6 +65,7 @@
  274. #define DRIVER_SELF_SPECS ""
  275. #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
  276. +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-or1k.so.1"
  277. /* Define a set of Linux builtins. This is copied from linux.h. We can't
  278. include the whole file for now, because that causes configure to require ld
  279. diff -Nur gcc-4.9.2-or1k.orig/gcc/config/rs6000/linux64.h gcc-4.9.2-or1k/gcc/config/rs6000/linux64.h
  280. --- gcc-4.9.2-or1k.orig/gcc/config/rs6000/linux64.h 2015-07-13 13:42:14.000000000 -0500
  281. +++ gcc-4.9.2-or1k/gcc/config/rs6000/linux64.h 2015-07-13 14:13:48.318287001 -0500
  282. @@ -375,17 +375,21 @@
  283. #endif
  284. #define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
  285. #define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
  286. +#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-powerpc.so.1"
  287. +#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-powerpc64.so.1"
  288. #if DEFAULT_LIBC == LIBC_UCLIBC
  289. -#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
  290. +#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{mglibc:" G ";:%{mmusl:" M ";:" U "}}"
  291. #elif DEFAULT_LIBC == LIBC_GLIBC
  292. -#define CHOOSE_DYNAMIC_LINKER(G, U) "%{muclibc:" U ";:" G "}"
  293. +#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{muclibc:" U ";:%{mmusl:" M ";:" G "}}"
  294. +#elif DEFAULT_LIBC == LIBC_MUSL
  295. +#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{mglibc:" G ";:%{muclibc:" U ";:" M "}}"
  296. #else
  297. #error "Unsupported DEFAULT_LIBC"
  298. #endif
  299. #define GNU_USER_DYNAMIC_LINKER32 \
  300. - CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER32)
  301. + CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER32, MUSL_DYNAMIC_LINKER32)
  302. #define GNU_USER_DYNAMIC_LINKER64 \
  303. - CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER64)
  304. + CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKER64)
  305. #undef DEFAULT_ASM_ENDIAN
  306. #if (TARGET_DEFAULT & MASK_LITTLE_ENDIAN)
  307. diff -Nur gcc-4.9.2-or1k.orig/gcc/config/rs6000/secureplt.h gcc-4.9.2-or1k/gcc/config/rs6000/secureplt.h
  308. --- gcc-4.9.2-or1k.orig/gcc/config/rs6000/secureplt.h 2015-07-13 13:42:14.000000000 -0500
  309. +++ gcc-4.9.2-or1k/gcc/config/rs6000/secureplt.h 2015-07-13 14:13:48.318287001 -0500
  310. @@ -18,3 +18,4 @@
  311. <http://www.gnu.org/licenses/>. */
  312. #define CC1_SECURE_PLT_DEFAULT_SPEC "-msecure-plt"
  313. +#define LINK_SECURE_PLT_DEFAULT_SPEC "--secure-plt"
  314. diff -Nur gcc-4.9.2-or1k.orig/gcc/config/rs6000/sysv4.h gcc-4.9.2-or1k/gcc/config/rs6000/sysv4.h
  315. --- gcc-4.9.2-or1k.orig/gcc/config/rs6000/sysv4.h 2015-07-13 13:42:14.000000000 -0500
  316. +++ gcc-4.9.2-or1k/gcc/config/rs6000/sysv4.h 2015-07-13 14:13:48.318287001 -0500
  317. @@ -537,6 +537,9 @@
  318. #ifndef CC1_SECURE_PLT_DEFAULT_SPEC
  319. #define CC1_SECURE_PLT_DEFAULT_SPEC ""
  320. #endif
  321. +#ifndef LINK_SECURE_PLT_DEFAULT_SPEC
  322. +#define LINK_SECURE_PLT_DEFAULT_SPEC ""
  323. +#endif
  324. /* Pass -G xxx to the compiler. */
  325. #define CC1_SPEC "%{G*} %(cc1_cpu)" \
  326. @@ -585,7 +588,8 @@
  327. /* Override the default target of the linker. */
  328. #define LINK_TARGET_SPEC \
  329. - ENDIAN_SELECT("", " --oformat elf32-powerpcle", "")
  330. + ENDIAN_SELECT("", " --oformat elf32-powerpcle", "") \
  331. + "%{!mbss-plt: %{!msecure-plt: %(link_secure_plt_default)}}"
  332. /* Any specific OS flags. */
  333. #define LINK_OS_SPEC "\
  334. @@ -763,15 +767,18 @@
  335. #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
  336. #define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  337. +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-powerpc.so.1"
  338. #if DEFAULT_LIBC == LIBC_UCLIBC
  339. -#define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
  340. +#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{mglibc:" G ";:%{mmusl:" M ";:" U "}}"
  341. +#elif DEFAULT_LIBC == LIBC_MUSL
  342. +#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{mglibc:" G ";:%{muclibc:" U ";:" M "}}"
  343. #elif !defined (DEFAULT_LIBC) || DEFAULT_LIBC == LIBC_GLIBC
  344. -#define CHOOSE_DYNAMIC_LINKER(G, U) "%{muclibc:" U ";:" G "}"
  345. +#define CHOOSE_DYNAMIC_LINKER(G, U, M) "%{muclibc:" U ";:%{mmusl:" M ";:" G "}}"
  346. #else
  347. #error "Unsupported DEFAULT_LIBC"
  348. #endif
  349. #define GNU_USER_DYNAMIC_LINKER \
  350. - CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
  351. + CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER)
  352. #define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \
  353. %{rdynamic:-export-dynamic} \
  354. @@ -894,6 +901,7 @@
  355. { "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \
  356. { "link_os_default", LINK_OS_DEFAULT_SPEC }, \
  357. { "cc1_secure_plt_default", CC1_SECURE_PLT_DEFAULT_SPEC }, \
  358. + { "link_secure_plt_default", LINK_SECURE_PLT_DEFAULT_SPEC }, \
  359. { "cpp_os_ads", CPP_OS_ADS_SPEC }, \
  360. { "cpp_os_yellowknife", CPP_OS_YELLOWKNIFE_SPEC }, \
  361. { "cpp_os_mvme", CPP_OS_MVME_SPEC }, \
  362. diff -Nur gcc-4.9.2-or1k.orig/gcc/config/sh/linux.h gcc-4.9.2-or1k/gcc/config/sh/linux.h
  363. --- gcc-4.9.2-or1k.orig/gcc/config/sh/linux.h 2015-07-13 13:42:14.000000000 -0500
  364. +++ gcc-4.9.2-or1k/gcc/config/sh/linux.h 2015-07-13 14:13:48.318287001 -0500
  365. @@ -43,7 +43,14 @@
  366. #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
  367. +#if TARGET_BIG_ENDIAN_DEFAULT /* BE */
  368. +#define MUSL_DYNAMIC_LINKER_E "eb"
  369. +#else
  370. +#define MUSL_DYNAMIC_LINKER_E
  371. +#endif
  372. +
  373. #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
  374. +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-sh" MUSL_DYNAMIC_LINKER_E ".so.1"
  375. #undef SUBTARGET_LINK_EMUL_SUFFIX
  376. #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
  377. diff -Nur gcc-4.9.2-or1k.orig/gcc/config.gcc gcc-4.9.2-or1k/gcc/config.gcc
  378. --- gcc-4.9.2-or1k.orig/gcc/config.gcc 2015-07-13 13:42:14.000000000 -0500
  379. +++ gcc-4.9.2-or1k/gcc/config.gcc 2015-07-13 14:13:48.318287001 -0500
  380. @@ -600,7 +600,7 @@
  381. esac
  382. # Common C libraries.
  383. -tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3"
  384. +tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 LIBC_MUSL=4"
  385. # 32-bit x86 processors supported by --with-arch=. Each processor
  386. # MUST be separated by exactly one space.
  387. @@ -725,6 +725,9 @@
  388. *-*-*uclibc*)
  389. tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC"
  390. ;;
  391. + *-*-*musl*)
  392. + tm_defines="$tm_defines DEFAULT_LIBC=LIBC_MUSL"
  393. + ;;
  394. *)
  395. tm_defines="$tm_defines DEFAULT_LIBC=LIBC_GLIBC"
  396. ;;
  397. @@ -2363,6 +2366,10 @@
  398. powerpc*-*-linux*paired*)
  399. tm_file="${tm_file} rs6000/750cl.h" ;;
  400. esac
  401. + case ${target} in
  402. + *-linux*-musl*)
  403. + enable_secureplt=yes ;;
  404. + esac
  405. if test x${enable_secureplt} = xyes; then
  406. tm_file="rs6000/secureplt.h ${tm_file}"
  407. fi
  408. diff -Nur gcc-4.9.2-or1k.orig/gcc/config.gcc.orig gcc-4.9.2-or1k/gcc/config.gcc.orig
  409. --- gcc-4.9.2-or1k.orig/gcc/config.gcc.orig 1969-12-31 18:00:00.000000000 -0600
  410. +++ gcc-4.9.2-or1k/gcc/config.gcc.orig 2015-07-13 13:42:14.000000000 -0500
  411. @@ -0,0 +1,4265 @@
  412. +# GCC target-specific configuration file.
  413. +# Copyright (C) 1997-2014 Free Software Foundation, Inc.
  414. +
  415. +#This file is part of GCC.
  416. +
  417. +#GCC is free software; you can redistribute it and/or modify it under
  418. +#the terms of the GNU General Public License as published by the Free
  419. +#Software Foundation; either version 3, or (at your option) any later
  420. +#version.
  421. +
  422. +#GCC is distributed in the hope that it will be useful, but WITHOUT
  423. +#ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  424. +#FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  425. +#for more details.
  426. +
  427. +#You should have received a copy of the GNU General Public License
  428. +#along with GCC; see the file COPYING3. If not see
  429. +#<http://www.gnu.org/licenses/>.
  430. +
  431. +# This is the GCC target-specific configuration file
  432. +# where a configuration type is mapped to different system-specific
  433. +# definitions and files. This is invoked by the autoconf-generated
  434. +# configure script. Putting it in a separate shell file lets us skip
  435. +# running autoconf when modifying target-specific information.
  436. +
  437. +# When you change the cases in the OS or target switches, consider
  438. +# updating ../libgcc/config.host also.
  439. +
  440. +# This file switches on the shell variable ${target}, and also uses the
  441. +# following shell variables:
  442. +#
  443. +# with_* Various variables as set by configure.
  444. +#
  445. +# enable_threads Either the name, yes or no depending on whether
  446. +# threads support was requested.
  447. +#
  448. +# default_use_cxa_atexit
  449. +# The default value for the $enable___cxa_atexit
  450. +# variable. enable___cxa_atexit needs to be set to
  451. +# "yes" for the correct operation of C++ destructors
  452. +# but it relies upon the presence of a non-standard C
  453. +# library function called __cxa_atexit.
  454. +# Since not all C libraries provide __cxa_atexit the
  455. +# default value of $default_use_cxa_atexit is set to
  456. +# "no" except for targets which are known to be OK.
  457. +#
  458. +# default_gnu_indirect_function
  459. +# The default value for the $enable_gnu_indirect_function
  460. +# variable. enable_gnu_indirect_function relies
  461. +# upon the presence of a non-standard gnu ifunc support
  462. +# in the assembler, linker and dynamic linker.
  463. +# Since not all libraries provide the dynamic linking
  464. +# support, the default value of
  465. +# $default_gnu_indirect_function is set to
  466. +# "no" except for targets which are known to be OK.
  467. +#
  468. +# gas_flag Either yes or no depending on whether GNU as was
  469. +# requested.
  470. +#
  471. +# gnu_ld_flag Either yes or no depending on whether GNU ld was
  472. +# requested.
  473. +
  474. +# This file sets the following shell variables for use by the
  475. +# autoconf-generated configure script:
  476. +#
  477. +# cpu_type The name of the cpu, if different from the first
  478. +# chunk of the canonical target name.
  479. +#
  480. +# tm_defines List of target macros to define for all compilations.
  481. +#
  482. +# tm_file A list of target macro files, if different from
  483. +# "$cpu_type/$cpu_type.h". Usually it's constructed
  484. +# per target in a way like this:
  485. +# tm_file="${tm_file} dbxelf.h elfos.h ${cpu_type.h}/elf.h"
  486. +# Note that the preferred order is:
  487. +# - specific target header "${cpu_type}/${cpu_type.h}"
  488. +# - generic headers like dbxelf.h elfos.h, etc.
  489. +# - specializing target headers like ${cpu_type.h}/elf.h
  490. +# This helps to keep OS specific stuff out of the CPU
  491. +# defining header ${cpu_type}/${cpu_type.h}.
  492. +#
  493. +# It is possible to include automatically-generated
  494. +# build-directory files by prefixing them with "./".
  495. +# All other files should relative to $srcdir/config.
  496. +#
  497. +# tm_p_file Location of file with declarations for functions
  498. +# in $out_file.
  499. +#
  500. +# out_file The name of the machine description C support
  501. +# file, if different from "$cpu_type/$cpu_type.c".
  502. +#
  503. +# common_out_file The name of the source file for code shared between
  504. +# the compiler proper and the driver.
  505. +#
  506. +# md_file The name of the machine-description file, if
  507. +# different from "$cpu_type/$cpu_type.md".
  508. +#
  509. +# tmake_file A list of machine-description-specific
  510. +# makefile-fragments, if different from
  511. +# "$cpu_type/t-$cpu_type".
  512. +#
  513. +# extra_modes The name of the file containing a list of extra
  514. +# machine modes, if necessary and different from
  515. +# "$cpu_type/$cpu_type-modes.def".
  516. +#
  517. +# extra_objs List of extra objects that should be linked into
  518. +# the compiler proper (cc1, cc1obj, cc1plus)
  519. +# depending on target.
  520. +#
  521. +# extra_gcc_objs List of extra objects that should be linked into
  522. +# the compiler driver (gcc) depending on target.
  523. +#
  524. +# extra_headers List of used header files from the directory
  525. +# config/${cpu_type}.
  526. +#
  527. +# user_headers_inc_next_pre
  528. +# List of header file names of internal gcc header
  529. +# files, which should be prefixed by an include_next.
  530. +# user_headers_inc_next_post
  531. +# List of header file names of internal gcc header
  532. +# files, which should be postfixed by an include_next.
  533. +# use_gcc_tgmath If set, add tgmath.h to the list of used header
  534. +# files.
  535. +#
  536. +# use_gcc_stdint If "wrap", install a version of stdint.h that
  537. +# wraps the system's copy for hosted compilations;
  538. +# if "provide", provide a version of systems without
  539. +# such a system header; otherwise "none", do not
  540. +# provide such a header at all.
  541. +#
  542. +# extra_programs List of extra executables compiled for this target
  543. +# machine, used when linking.
  544. +#
  545. +# extra_options List of target-dependent .opt files.
  546. +#
  547. +# c_target_objs List of extra target-dependent objects that be
  548. +# linked into the C compiler only.
  549. +#
  550. +# cxx_target_objs List of extra target-dependent objects that be
  551. +# linked into the C++ compiler only.
  552. +#
  553. +# fortran_target_objs List of extra target-dependent objects that be
  554. +# linked into the fortran compiler only.
  555. +#
  556. +# target_gtfiles List of extra source files with type information.
  557. +#
  558. +# xm_defines List of macros to define when compiling for the
  559. +# target machine.
  560. +#
  561. +# xm_file List of files to include when compiling for the
  562. +# target machine.
  563. +#
  564. +# use_collect2 Set to yes or no, depending on whether collect2
  565. +# will be used.
  566. +#
  567. +# target_cpu_default Set to override the default target model.
  568. +#
  569. +# gdb_needs_out_file_path
  570. +# Set to yes if gdb needs a dir command with
  571. +# `dirname $out_file`.
  572. +#
  573. +# thread_file Set to control which thread package to use.
  574. +#
  575. +# gas Set to yes or no depending on whether the target
  576. +# system normally uses GNU as.
  577. +#
  578. +# need_64bit_hwint Set to yes if HOST_WIDE_INT must be 64 bits wide
  579. +# for this target. This is true if this target
  580. +# supports "long" or "wchar_t" wider than 32 bits,
  581. +# or BITS_PER_WORD is wider than 32 bits.
  582. +# The setting made here must match the one made in
  583. +# other locations such as libcpp/configure.ac
  584. +#
  585. +# configure_default_options
  586. +# Set to an initializer for configure_default_options
  587. +# in configargs.h, based on --with-cpu et cetera.
  588. +#
  589. +# native_system_header_dir
  590. +# Where system header files are found for this
  591. +# target. This defaults to /usr/include. If
  592. +# the --with-sysroot configure option or the
  593. +# --sysroot command line option is used this
  594. +# will be relative to the sysroot.
  595. +# target_type_format_char
  596. +# The default character to be used for formatting
  597. +# the attribute in a
  598. +# .type symbol_name, ${t_t_f_c}<property>
  599. +# directive.
  600. +
  601. +# The following variables are used in each case-construct to build up the
  602. +# outgoing variables:
  603. +#
  604. +# gnu_ld Set to yes or no depending on whether the target
  605. +# system normally uses GNU ld.
  606. +#
  607. +# target_has_targetcm Set to yes or no depending on whether the target
  608. +# has its own definition of targetcm.
  609. +#
  610. +# target_has_targetm_common Set to yes or no depending on whether the
  611. +# target has its own definition of targetm_common.
  612. +
  613. +out_file=
  614. +common_out_file=
  615. +tmake_file=
  616. +extra_headers=
  617. +user_headers_inc_next_pre=
  618. +user_headers_inc_next_post=
  619. +use_gcc_tgmath=yes
  620. +use_gcc_stdint=none
  621. +extra_programs=
  622. +extra_objs=
  623. +extra_gcc_objs=
  624. +extra_options=
  625. +c_target_objs=
  626. +cxx_target_objs=
  627. +fortran_target_objs=
  628. +target_has_targetcm=no
  629. +target_has_targetm_common=yes
  630. +tm_defines=
  631. +xm_defines=
  632. +# Set this to force installation and use of collect2.
  633. +use_collect2=
  634. +# Set this to override the default target model.
  635. +target_cpu_default=
  636. +# Set this if gdb needs a dir command with `dirname $out_file`
  637. +gdb_needs_out_file_path=
  638. +# Set this to control which thread package will be used.
  639. +thread_file=
  640. +# Reinitialize these from the flag values every loop pass, since some
  641. +# configure entries modify them.
  642. +gas="$gas_flag"
  643. +gnu_ld="$gnu_ld_flag"
  644. +default_use_cxa_atexit=no
  645. +default_gnu_indirect_function=no
  646. +target_gtfiles=
  647. +need_64bit_hwint=
  648. +need_64bit_isa=
  649. +native_system_header_dir=/usr/include
  650. +target_type_format_char='@'
  651. +
  652. +# Don't carry these over build->host->target. Please.
  653. +xm_file=
  654. +md_file=
  655. +
  656. +# Obsolete configurations.
  657. +case ${target} in
  658. + picochip-* \
  659. + | score-* \
  660. + | *-*-solaris2.9* \
  661. + )
  662. + if test "x$enable_obsolete" != xyes; then
  663. + echo "*** Configuration ${target} is obsolete." >&2
  664. + echo "*** Specify --enable-obsolete to build it anyway." >&2
  665. + echo "*** Support will be REMOVED in the next major release of GCC," >&2
  666. + echo "*** unless a maintainer comes forward." >&2
  667. + exit 1
  668. + fi;;
  669. +esac
  670. +
  671. +# Unsupported targets list. Do not put an entry in this list unless
  672. +# it would otherwise be caught by a more permissive pattern. The list
  673. +# should be in alphabetical order.
  674. +case ${target} in
  675. + # Avoid special cases that are not obsolete
  676. + arm*-*-*eabi* \
  677. + )
  678. + ;;
  679. + arm*-wince-pe* \
  680. + | arm*-*-ecos-elf \
  681. + | arm*-*-elf \
  682. + | arm*-*-freebsd* \
  683. + | arm*-*-linux* \
  684. + | arm*-*-uclinux* \
  685. + | i[34567]86-go32-* \
  686. + | i[34567]86-*-go32* \
  687. + | m68k-*-uclinuxoldabi* \
  688. + | mips64orion*-*-rtems* \
  689. + | pdp11-*-bsd \
  690. + | sparc-hal-solaris2* \
  691. + | thumb-*-* \
  692. + | *-*-freebsd[12] | *-*-freebsd[12].* \
  693. + | *-*-freebsd*aout* \
  694. + | *-*-linux*aout* \
  695. + | *-*-linux*coff* \
  696. + | *-*-linux*libc1* \
  697. + | *-*-linux*oldld* \
  698. + | *-*-rtemsaout* \
  699. + | *-*-rtemscoff* \
  700. + | *-*-solaris2 \
  701. + | *-*-solaris2.[0-8] \
  702. + | *-*-solaris2.[0-8].* \
  703. + | *-*-sysv* \
  704. + | vax-*-vms* \
  705. + )
  706. + echo "*** Configuration ${target} not supported" 1>&2
  707. + exit 1
  708. + ;;
  709. +esac
  710. +
  711. +# Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
  712. +# updated in each machine entry. Also set default extra_headers for some
  713. +# machines.
  714. +tm_p_file=
  715. +cpu_type=`echo ${target} | sed 's/-.*$//'`
  716. +cpu_is_64bit=
  717. +case ${target} in
  718. +m32c*-*-*)
  719. + cpu_type=m32c
  720. + tmake_file=m32c/t-m32c
  721. + target_has_targetm_common=no
  722. + ;;
  723. +aarch64*-*-*)
  724. + cpu_type=aarch64
  725. + need_64bit_hwint=yes
  726. + extra_headers="arm_neon.h"
  727. + extra_objs="aarch64-builtins.o aarch-common.o"
  728. + target_has_targetm_common=yes
  729. + ;;
  730. +alpha*-*-*)
  731. + cpu_type=alpha
  732. + need_64bit_hwint=yes
  733. + extra_options="${extra_options} g.opt"
  734. + ;;
  735. +am33_2.0-*-linux*)
  736. + cpu_type=mn10300
  737. + ;;
  738. +arc*-*-*)
  739. + cpu_type=arc
  740. + ;;
  741. +arm*-*-*)
  742. + cpu_type=arm
  743. + extra_objs="aarch-common.o"
  744. + extra_headers="mmintrin.h arm_neon.h arm_acle.h"
  745. + target_type_format_char='%'
  746. + c_target_objs="arm-c.o"
  747. + cxx_target_objs="arm-c.o"
  748. + need_64bit_hwint=yes
  749. + extra_options="${extra_options} arm/arm-tables.opt"
  750. + ;;
  751. +avr-*-*)
  752. + cpu_type=avr
  753. + c_target_objs="avr-c.o"
  754. + cxx_target_objs="avr-c.o"
  755. + extra_options="${extra_options} avr/avr-tables.opt"
  756. + ;;
  757. +bfin*-*)
  758. + cpu_type=bfin
  759. + ;;
  760. +crisv32-*)
  761. + cpu_type=cris
  762. + ;;
  763. +frv*) cpu_type=frv
  764. + extra_options="${extra_options} g.opt"
  765. + ;;
  766. +moxie*) cpu_type=moxie
  767. + target_has_targetm_common=no
  768. + ;;
  769. +fido-*-*)
  770. + cpu_type=m68k
  771. + extra_headers=math-68881.h
  772. + extra_options="${extra_options} m68k/m68k-tables.opt"
  773. + ;;
  774. +i[34567]86-*-*)
  775. + cpu_type=i386
  776. + c_target_objs="i386-c.o"
  777. + cxx_target_objs="i386-c.o"
  778. + need_64bit_hwint=yes
  779. + extra_options="${extra_options} fused-madd.opt"
  780. + extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h
  781. + pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h
  782. + nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h
  783. + immintrin.h x86intrin.h avxintrin.h xopintrin.h
  784. + ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h
  785. + lzcntintrin.h bmiintrin.h bmi2intrin.h tbmintrin.h
  786. + avx2intrin.h avx512fintrin.h fmaintrin.h f16cintrin.h
  787. + rtmintrin.h xtestintrin.h rdseedintrin.h prfchwintrin.h
  788. + adxintrin.h fxsrintrin.h xsaveintrin.h xsaveoptintrin.h
  789. + avx512cdintrin.h avx512erintrin.h avx512pfintrin.h
  790. + shaintrin.h"
  791. + ;;
  792. +x86_64-*-*)
  793. + cpu_type=i386
  794. + c_target_objs="i386-c.o"
  795. + cxx_target_objs="i386-c.o"
  796. + extra_options="${extra_options} fused-madd.opt"
  797. + extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h
  798. + pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h
  799. + nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h
  800. + immintrin.h x86intrin.h avxintrin.h xopintrin.h
  801. + ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h
  802. + lzcntintrin.h bmiintrin.h tbmintrin.h bmi2intrin.h
  803. + avx2intrin.h avx512fintrin.h fmaintrin.h f16cintrin.h
  804. + rtmintrin.h xtestintrin.h rdseedintrin.h prfchwintrin.h
  805. + adxintrin.h fxsrintrin.h xsaveintrin.h xsaveoptintrin.h
  806. + avx512cdintrin.h avx512erintrin.h avx512pfintrin.h
  807. + shaintrin.h"
  808. + need_64bit_hwint=yes
  809. + ;;
  810. +ia64-*-*)
  811. + extra_headers=ia64intrin.h
  812. + need_64bit_hwint=yes
  813. + extra_options="${extra_options} g.opt fused-madd.opt"
  814. + ;;
  815. +hppa*-*-*)
  816. + cpu_type=pa
  817. + ;;
  818. +lm32*)
  819. + extra_options="${extra_options} g.opt"
  820. + ;;
  821. +m32r*-*-*)
  822. + cpu_type=m32r
  823. + extra_options="${extra_options} g.opt"
  824. + ;;
  825. +m68k-*-*)
  826. + extra_headers=math-68881.h
  827. + extra_options="${extra_options} m68k/m68k-tables.opt"
  828. + ;;
  829. +microblaze*-*-*)
  830. + cpu_type=microblaze
  831. + extra_options="${extra_options} g.opt"
  832. + ;;
  833. +mips*-*-*)
  834. + cpu_type=mips
  835. + need_64bit_hwint=yes
  836. + extra_headers="loongson.h"
  837. + extra_options="${extra_options} g.opt mips/mips-tables.opt"
  838. + ;;
  839. +nds32*)
  840. + cpu_type=nds32
  841. + extra_headers="nds32_intrinsic.h"
  842. + ;;
  843. +nios2-*-*)
  844. + cpu_type=nios2
  845. + extra_options="${extra_options} g.opt"
  846. + ;;
  847. +or1k-*-*)
  848. + cpu_type=or1k
  849. + ;;
  850. +or1knd-*-*)
  851. + cpu_type=or1k
  852. + ;;
  853. +picochip-*-*)
  854. + cpu_type=picochip
  855. + ;;
  856. +powerpc*-*-*)
  857. + cpu_type=rs6000
  858. + extra_headers="ppc-asm.h altivec.h spe.h ppu_intrinsics.h paired.h spu2vmx.h vec_types.h si2vmx.h htmintrin.h htmxlintrin.h"
  859. + need_64bit_hwint=yes
  860. + case x$with_cpu in
  861. + xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[345678]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|Xe6500)
  862. + cpu_is_64bit=yes
  863. + ;;
  864. + esac
  865. + extra_options="${extra_options} g.opt fused-madd.opt rs6000/rs6000-tables.opt"
  866. + ;;
  867. +rs6000*-*-*)
  868. + need_64bit_hwint=yes
  869. + extra_options="${extra_options} g.opt fused-madd.opt rs6000/rs6000-tables.opt"
  870. + ;;
  871. +score*-*-*)
  872. + cpu_type=score
  873. + extra_options="${extra_options} g.opt"
  874. + ;;
  875. +sparc*-*-*)
  876. + cpu_type=sparc
  877. + c_target_objs="sparc-c.o"
  878. + cxx_target_objs="sparc-c.o"
  879. + extra_headers="visintrin.h"
  880. + need_64bit_hwint=yes
  881. + ;;
  882. +spu*-*-*)
  883. + cpu_type=spu
  884. + need_64bit_hwint=yes
  885. + ;;
  886. +s390*-*-*)
  887. + cpu_type=s390
  888. + need_64bit_hwint=yes
  889. + extra_options="${extra_options} fused-madd.opt"
  890. + extra_headers="s390intrin.h htmintrin.h htmxlintrin.h"
  891. + ;;
  892. +# Note the 'l'; we need to be able to match e.g. "shle" or "shl".
  893. +sh[123456789lbe]*-*-* | sh-*-*)
  894. + cpu_type=sh
  895. + need_64bit_hwint=yes
  896. + extra_options="${extra_options} fused-madd.opt"
  897. + extra_objs="${extra_objs} sh_treg_combine.o sh-mem.o sh_optimize_sett_clrt.o"
  898. + ;;
  899. +v850*-*-*)
  900. + cpu_type=v850
  901. + ;;
  902. +tic6x-*-*)
  903. + cpu_type=c6x
  904. + extra_headers="c6x_intrinsics.h"
  905. + extra_options="${extra_options} c6x/c6x-tables.opt"
  906. + ;;
  907. +xtensa*-*-*)
  908. + extra_options="${extra_options} fused-madd.opt"
  909. + ;;
  910. +tilegx*-*-*)
  911. + cpu_type=tilegx
  912. + need_64bit_hwint=yes
  913. + ;;
  914. +tilepro*-*-*)
  915. + cpu_type=tilepro
  916. + need_64bit_hwint=yes
  917. + ;;
  918. +esac
  919. +
  920. +tm_file=${cpu_type}/${cpu_type}.h
  921. +if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
  922. +then
  923. + tm_p_file=${cpu_type}/${cpu_type}-protos.h
  924. +fi
  925. +extra_modes=
  926. +if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
  927. +then
  928. + extra_modes=${cpu_type}/${cpu_type}-modes.def
  929. +fi
  930. +if test -f ${srcdir}/config/${cpu_type}/${cpu_type}.opt
  931. +then
  932. + extra_options="${extra_options} ${cpu_type}/${cpu_type}.opt"
  933. +fi
  934. +
  935. +case ${target} in
  936. +aarch64*-*-*)
  937. + tm_p_file="${tm_p_file} arm/aarch-common-protos.h"
  938. + case ${with_abi} in
  939. + "")
  940. + if test "x$with_multilib_list" = xilp32; then
  941. + tm_file="aarch64/biarchilp32.h ${tm_file}"
  942. + else
  943. + tm_file="aarch64/biarchlp64.h ${tm_file}"
  944. + fi
  945. + ;;
  946. + ilp32)
  947. + tm_file="aarch64/biarchilp32.h ${tm_file}"
  948. + ;;
  949. + lp64)
  950. + tm_file="aarch64/biarchlp64.h ${tm_file}"
  951. + ;;
  952. + *)
  953. + echo "Unknown ABI used in --with-abi=$with_abi"
  954. + exit 1
  955. + esac
  956. + ;;
  957. +i[34567]86-*-*)
  958. + if test "x$with_abi" != x; then
  959. + echo "This target does not support --with-abi."
  960. + exit 1
  961. + fi
  962. + if test "x$enable_cld" = xyes; then
  963. + tm_defines="${tm_defines} USE_IX86_CLD=1"
  964. + fi
  965. + if test "x$enable_frame_pointer" = xyes; then
  966. + tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
  967. + fi
  968. + tm_file="vxworks-dummy.h ${tm_file}"
  969. + ;;
  970. +x86_64-*-*)
  971. + case ${with_abi} in
  972. + "")
  973. + if test "x$with_multilib_list" = xmx32; then
  974. + tm_file="i386/biarchx32.h ${tm_file}"
  975. + else
  976. + tm_file="i386/biarch64.h ${tm_file}"
  977. + fi
  978. + ;;
  979. + 64 | m64)
  980. + tm_file="i386/biarch64.h ${tm_file}"
  981. + ;;
  982. + x32 | mx32)
  983. + tm_file="i386/biarchx32.h ${tm_file}"
  984. + ;;
  985. + *)
  986. + echo "Unknown ABI used in --with-abi=$with_abi"
  987. + exit 1
  988. + esac
  989. + if test "x$enable_cld" = xyes; then
  990. + tm_defines="${tm_defines} USE_IX86_CLD=1"
  991. + fi
  992. + if test "x$enable_frame_pointer" = xyes; then
  993. + tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
  994. + fi
  995. + tm_file="vxworks-dummy.h ${tm_file}"
  996. + ;;
  997. +arm*-*-*)
  998. + tm_p_file="${tm_p_file} arm/aarch-common-protos.h"
  999. + tm_file="vxworks-dummy.h ${tm_file}"
  1000. + ;;
  1001. +mips*-*-* | sh*-*-* | sparc*-*-*)
  1002. + tm_file="vxworks-dummy.h ${tm_file}"
  1003. + ;;
  1004. +esac
  1005. +
  1006. +# On a.out targets, we need to use collect2.
  1007. +case ${target} in
  1008. +*-*-*aout*)
  1009. + use_collect2=yes
  1010. + ;;
  1011. +esac
  1012. +
  1013. +# Common C libraries.
  1014. +tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3"
  1015. +
  1016. +# 32-bit x86 processors supported by --with-arch=. Each processor
  1017. +# MUST be separated by exactly one space.
  1018. +x86_archs="athlon athlon-4 athlon-fx athlon-mp athlon-tbird \
  1019. +athlon-xp k6 k6-2 k6-3 geode c3 c3-2 winchip-c6 winchip2 i386 i486 \
  1020. +i586 i686 pentium pentium-m pentium-mmx pentium2 pentium3 pentium3m \
  1021. +pentium4 pentium4m pentiumpro prescott"
  1022. +
  1023. +# 64-bit x86 processors supported by --with-arch=. Each processor
  1024. +# MUST be separated by exactly one space.
  1025. +x86_64_archs="amdfam10 athlon64 athlon64-sse3 barcelona bdver1 bdver2 \
  1026. +bdver3 bdver4 btver1 btver2 k8 k8-sse3 opteron opteron-sse3 nocona \
  1027. +core2 corei7 corei7-avx core-avx-i core-avx2 atom slm nehalem westmere \
  1028. +sandybridge ivybridge haswell broadwell bonnell silvermont x86-64 native"
  1029. +
  1030. +# Additional x86 processors supported by --with-cpu=. Each processor
  1031. +# MUST be separated by exactly one space.
  1032. +x86_cpus="generic intel"
  1033. +
  1034. +# Common parts for widely ported systems.
  1035. +case ${target} in
  1036. +*-*-darwin*)
  1037. + tmake_file="t-darwin ${cpu_type}/t-darwin"
  1038. + tm_file="${tm_file} darwin.h"
  1039. + case ${target} in
  1040. + *-*-darwin9*)
  1041. + tm_file="${tm_file} darwin9.h"
  1042. + ;;
  1043. + *-*-darwin[12][0-9]*)
  1044. + tm_file="${tm_file} darwin9.h darwin10.h"
  1045. + ;;
  1046. + esac
  1047. + tm_file="${tm_file} ${cpu_type}/darwin.h"
  1048. + tm_p_file="${tm_p_file} darwin-protos.h"
  1049. + target_gtfiles="\$(srcdir)/config/darwin.c"
  1050. + extra_options="${extra_options} darwin.opt"
  1051. + c_target_objs="${c_target_objs} darwin-c.o"
  1052. + cxx_target_objs="${cxx_target_objs} darwin-c.o"
  1053. + fortran_target_objs="darwin-f.o"
  1054. + target_has_targetcm=yes
  1055. + extra_objs="darwin.o"
  1056. + extra_gcc_objs="darwin-driver.o"
  1057. + default_use_cxa_atexit=yes
  1058. + use_gcc_stdint=wrap
  1059. + case ${enable_threads} in
  1060. + "" | yes | posix) thread_file='posix' ;;
  1061. + esac
  1062. + ;;
  1063. +*-*-freebsd*)
  1064. + # This is the generic ELF configuration of FreeBSD. Later
  1065. + # machine-specific sections may refine and add to this
  1066. + # configuration.
  1067. + #
  1068. + # Due to tm_file entry ordering issues that vary between cpu
  1069. + # architectures, we only define fbsd_tm_file to allow the
  1070. + # machine-specific section to dictate the final order of all
  1071. + # entries of tm_file with the minor exception that components
  1072. + # of the tm_file set here will always be of the form:
  1073. + #
  1074. + # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
  1075. + #
  1076. + # The machine-specific section should not tamper with this
  1077. + # ordering but may order all other entries of tm_file as it
  1078. + # pleases around the provided core setting.
  1079. + gas=yes
  1080. + gnu_ld=yes
  1081. + fbsd_major=`echo ${target} | sed -e 's/.*freebsd//g' | sed -e 's/\..*//g'`
  1082. + tm_defines="${tm_defines} FBSD_MAJOR=${fbsd_major}"
  1083. + tmake_file="t-slibgcc"
  1084. + case ${enable_threads} in
  1085. + no)
  1086. + fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h"
  1087. + ;;
  1088. + "" | yes | posix)
  1089. + thread_file='posix'
  1090. + ;;
  1091. + *)
  1092. + echo 'Unknown thread configuration for FreeBSD'
  1093. + exit 1
  1094. + ;;
  1095. + esac
  1096. + fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h freebsd-stdint.h"
  1097. + extra_options="$extra_options rpath.opt freebsd.opt"
  1098. + case ${target} in
  1099. + *-*-freebsd[345].*)
  1100. + :;;
  1101. + *)
  1102. + default_use_cxa_atexit=yes;;
  1103. + esac
  1104. + # need_64bit_hwint=yes # system compiler has this for all arch!
  1105. + use_gcc_stdint=wrap
  1106. + ;;
  1107. +*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
  1108. + extra_options="$extra_options gnu-user.opt"
  1109. + gas=yes
  1110. + gnu_ld=yes
  1111. + case ${enable_threads} in
  1112. + "" | yes | posix) thread_file='posix' ;;
  1113. + esac
  1114. + tmake_file="t-slibgcc"
  1115. + case $target in
  1116. + *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-kopensolaris*-gnu)
  1117. + :;;
  1118. + *-*-gnu*)
  1119. + native_system_header_dir=/include
  1120. + ;;
  1121. + esac
  1122. + # Linux C libraries selection switch: glibc / uclibc / bionic.
  1123. + # uclibc and bionic aren't usable for GNU/Hurd and neither for GNU/k*BSD.
  1124. + case $target in
  1125. + *linux*)
  1126. + tm_p_file="${tm_p_file} linux-protos.h"
  1127. + tmake_file="${tmake_file} t-linux"
  1128. + extra_objs="${extra_objs} linux.o"
  1129. + extra_options="${extra_options} linux.opt"
  1130. + ;;
  1131. + esac
  1132. + case $target in
  1133. + *-*-*android*)
  1134. + tm_defines="$tm_defines DEFAULT_LIBC=LIBC_BIONIC"
  1135. + ;;
  1136. + *-*-*uclibc*)
  1137. + tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC"
  1138. + ;;
  1139. + *)
  1140. + tm_defines="$tm_defines DEFAULT_LIBC=LIBC_GLIBC"
  1141. + ;;
  1142. + esac
  1143. + # Assume that glibc or uClibc or Bionic are being used and so __cxa_atexit
  1144. + # is provided.
  1145. + default_use_cxa_atexit=yes
  1146. + use_gcc_tgmath=no
  1147. + use_gcc_stdint=wrap
  1148. + # Enable compilation for Android by default for *android* targets.
  1149. + case $target in
  1150. + *-*-*android*)
  1151. + tm_defines="$tm_defines ANDROID_DEFAULT=1"
  1152. + ;;
  1153. + *)
  1154. + tm_defines="$tm_defines ANDROID_DEFAULT=0"
  1155. + ;;
  1156. + esac
  1157. + c_target_objs="${c_target_objs} glibc-c.o"
  1158. + cxx_target_objs="${cxx_target_objs} glibc-c.o"
  1159. + tmake_file="${tmake_file} t-glibc"
  1160. + target_has_targetcm=yes
  1161. + ;;
  1162. +*-*-netbsd*)
  1163. + tmake_file="t-slibgcc"
  1164. + gas=yes
  1165. + gnu_ld=yes
  1166. +
  1167. + # NetBSD 2.0 and later get POSIX threads enabled by default.
  1168. + # Allow them to be explicitly enabled on any other version.
  1169. + case ${enable_threads} in
  1170. + "")
  1171. + case ${target} in
  1172. + *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
  1173. + thread_file='posix'
  1174. + tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
  1175. + ;;
  1176. + esac
  1177. + ;;
  1178. + yes | posix)
  1179. + thread_file='posix'
  1180. + tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
  1181. + ;;
  1182. + esac
  1183. +
  1184. + # NetBSD 2.0 and later provide __cxa_atexit(), which we use by
  1185. + # default (unless overridden by --disable-__cxa_atexit).
  1186. + case ${target} in
  1187. + *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
  1188. + default_use_cxa_atexit=yes
  1189. + ;;
  1190. + esac
  1191. + ;;
  1192. +*-*-openbsd*)
  1193. + tmake_file="t-openbsd"
  1194. + case ${enable_threads} in
  1195. + yes)
  1196. + thread_file='posix'
  1197. + ;;
  1198. + esac
  1199. + case ${target} in
  1200. + *-*-openbsd2.*|*-*-openbsd3.[012])
  1201. + tm_defines="${tm_defines} HAS_LIBC_R=1" ;;
  1202. + esac
  1203. + case ${target} in
  1204. + *-*-openbsd4.[3-9]|*-*-openbsd[5-9]*)
  1205. + default_use_cxa_atexit=yes
  1206. + ;;
  1207. + esac
  1208. + ;;
  1209. +*-*-rtems*)
  1210. + case ${enable_threads} in
  1211. + "" | yes | rtems) thread_file='rtems' ;;
  1212. + posix) thread_file='posix' ;;
  1213. + no) ;;
  1214. + *)
  1215. + echo 'Unknown thread configuration for RTEMS'
  1216. + exit 1
  1217. + ;;
  1218. + esac
  1219. + tmake_file="${tmake_file} t-rtems"
  1220. + extra_options="${extra_options} rtems.opt"
  1221. + default_use_cxa_atexit=yes
  1222. + use_gcc_stdint=wrap
  1223. + ;;
  1224. +*-*-uclinux*)
  1225. + extra_options="$extra_options gnu-user.opt"
  1226. + use_gcc_stdint=wrap
  1227. + tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC SINGLE_LIBC"
  1228. + ;;
  1229. +*-*-rdos*)
  1230. + use_gcc_stdint=wrap
  1231. + ;;
  1232. +*-*-solaris2*)
  1233. + # i?86-*-solaris2* needs to insert headers between cpu default and
  1234. + # Solaris 2 specific ones.
  1235. + sol2_tm_file="dbxelf.h elfos.h ${cpu_type}/sysv4.h sol2.h ${cpu_type}/sol2.h"
  1236. + case ${target} in
  1237. + *-*-solaris2.1[0-9]*)
  1238. + sol2_tm_file="${sol2_tm_file} sol2-10.h"
  1239. + use_gcc_stdint=wrap
  1240. + ;;
  1241. + *)
  1242. + use_gcc_stdint=provide
  1243. + ;;
  1244. + esac
  1245. + if test x$gnu_ld = xyes; then
  1246. + tm_file="usegld.h ${tm_file}"
  1247. + fi
  1248. + if test x$gas = xyes; then
  1249. + tm_file="usegas.h ${tm_file}"
  1250. + fi
  1251. + tm_p_file="${tm_p_file} sol2-protos.h"
  1252. + tmake_file="${tmake_file} t-sol2 t-slibgcc"
  1253. + c_target_objs="${c_target_objs} sol2-c.o"
  1254. + cxx_target_objs="${cxx_target_objs} sol2-c.o sol2-cxx.o"
  1255. + extra_objs="sol2.o sol2-stubs.o"
  1256. + extra_options="${extra_options} sol2.opt"
  1257. + case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
  1258. + "":yes:* | yes:yes:* )
  1259. + thread_file=posix
  1260. + ;;
  1261. + esac
  1262. + ;;
  1263. +*-*-*vms*)
  1264. + extra_options="${extra_options} vms/vms.opt"
  1265. + xmake_file=vms/x-vms
  1266. + tmake_file="vms/t-vms t-slibgcc"
  1267. + extra_objs="vms.o"
  1268. + target_gtfiles="$target_gtfiles \$(srcdir)/config/vms/vms.c"
  1269. + tm_p_file="${tm_p_file} vms/vms-protos.h"
  1270. + xm_file="vms/xm-vms.h"
  1271. + c_target_objs="vms-c.o"
  1272. + cxx_target_objs="vms-c.o"
  1273. + fortran_target_objs="vms-f.o"
  1274. + use_gcc_stdint=provide
  1275. + tm_file="${tm_file} vms/vms-stdint.h"
  1276. + if test x$gnu_ld != xyes; then
  1277. + # Build wrappers for native case.
  1278. + extra_programs="ld\$(exeext) ar\$(exeext)"
  1279. + tmake_file="$tmake_file vms/t-vmsnative"
  1280. + fi
  1281. + ;;
  1282. +*-*-vxworks*)
  1283. + tmake_file=t-vxworks
  1284. + xm_defines=POSIX
  1285. + extra_options="${extra_options} vxworks.opt"
  1286. + extra_objs="$extra_objs vxworks.o"
  1287. + case ${enable_threads} in
  1288. + no) ;;
  1289. + "" | yes | vxworks) thread_file='vxworks' ;;
  1290. + *) echo 'Unknown thread configuration for VxWorks'; exit 1 ;;
  1291. + esac
  1292. + ;;
  1293. +*-*-elf|arc*-*-elf*)
  1294. + # Assume that newlib is being used and so __cxa_atexit is provided.
  1295. + default_use_cxa_atexit=yes
  1296. + use_gcc_stdint=wrap
  1297. + ;;
  1298. +esac
  1299. +
  1300. +case ${target} in
  1301. +aarch64*-*-elf)
  1302. + tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h"
  1303. + tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-elf-raw.h"
  1304. + tmake_file="${tmake_file} aarch64/t-aarch64"
  1305. + use_gcc_stdint=wrap
  1306. + case $target in
  1307. + aarch64_be-*)
  1308. + tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
  1309. + ;;
  1310. + esac
  1311. + aarch64_multilibs="${with_multilib_list}"
  1312. + if test "$aarch64_multilibs" = "default"; then
  1313. + aarch64_multilibs="lp64,ilp32"
  1314. + fi
  1315. + aarch64_multilibs=`echo $aarch64_multilibs | sed -e 's/,/ /g'`
  1316. + for aarch64_multilib in ${aarch64_multilibs}; do
  1317. + case ${aarch64_multilib} in
  1318. + ilp32 | lp64 )
  1319. + TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG},${aarch64_multilib}"
  1320. + ;;
  1321. + *)
  1322. + echo "--with-multilib-list=${aarch64_multilib} not supported."
  1323. + exit 1
  1324. + esac
  1325. + done
  1326. + TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'`
  1327. + ;;
  1328. +aarch64*-*-linux*)
  1329. + tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h"
  1330. + tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-linux.h"
  1331. + tmake_file="${tmake_file} aarch64/t-aarch64 aarch64/t-aarch64-linux"
  1332. + case $target in
  1333. + aarch64_be-*)
  1334. + tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
  1335. + ;;
  1336. + esac
  1337. + aarch64_multilibs="${with_multilib_list}"
  1338. + if test "$aarch64_multilibs" = "default"; then
  1339. + # TODO: turn on ILP32 multilib build after its support is mature.
  1340. + # aarch64_multilibs="lp64,ilp32"
  1341. + aarch64_multilibs="lp64"
  1342. + fi
  1343. + aarch64_multilibs=`echo $aarch64_multilibs | sed -e 's/,/ /g'`
  1344. + for aarch64_multilib in ${aarch64_multilibs}; do
  1345. + case ${aarch64_multilib} in
  1346. + ilp32 | lp64 )
  1347. + TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG},${aarch64_multilib}"
  1348. + ;;
  1349. + *)
  1350. + echo "--with-multilib-list=${aarch64_multilib} not supported."
  1351. + exit 1
  1352. + esac
  1353. + done
  1354. + TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'`
  1355. + ;;
  1356. +alpha*-*-linux*)
  1357. + tm_file="elfos.h ${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h glibc-stdint.h"
  1358. + tmake_file="${tmake_file} alpha/t-linux"
  1359. + extra_options="${extra_options} alpha/elf.opt"
  1360. + ;;
  1361. +alpha*-*-freebsd*)
  1362. + tm_file="elfos.h ${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
  1363. + extra_options="${extra_options} alpha/elf.opt"
  1364. + ;;
  1365. +alpha*-*-netbsd*)
  1366. + tm_file="elfos.h ${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
  1367. + extra_options="${extra_options} netbsd.opt netbsd-elf.opt \
  1368. + alpha/elf.opt"
  1369. + ;;
  1370. +alpha*-*-openbsd*)
  1371. + tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT"
  1372. + tm_file="elfos.h alpha/alpha.h alpha/elf.h openbsd.h openbsd-stdint.h alpha/openbsd.h openbsd-libpthread.h"
  1373. + extra_options="${extra_options} openbsd.opt alpha/elf.opt"
  1374. + # default x-alpha is only appropriate for dec-osf.
  1375. + ;;
  1376. +alpha*-dec-*vms*)
  1377. + tm_file="${tm_file} vms/vms.h alpha/vms.h"
  1378. + tmake_file="${tmake_file} alpha/t-vms"
  1379. + ;;
  1380. +arc*-*-elf*)
  1381. + extra_headers="arc-simd.h"
  1382. + tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  1383. + tmake_file="arc/t-arc-newlib arc/t-arc"
  1384. + case x"${with_cpu}" in
  1385. + xarc600|xarc601|xarc700)
  1386. + target_cpu_default="TARGET_CPU_$with_cpu"
  1387. + ;;
  1388. + esac
  1389. + if test x${with_endian} = x; then
  1390. + case ${target} in
  1391. + arc*be-*-* | arc*eb-*-*) with_endian=big ;;
  1392. + *) with_endian=little ;;
  1393. + esac
  1394. + fi
  1395. + case ${with_endian} in
  1396. + big|little) ;;
  1397. + *) echo "with_endian=${with_endian} not supported."; exit 1 ;;
  1398. + esac
  1399. + case ${with_endian} in
  1400. + big*) tm_defines="DRIVER_ENDIAN_SELF_SPECS=\\\"%{!EL:%{!mlittle-endian:-mbig-endian}}\\\" ${tm_defines}"
  1401. + esac
  1402. + ;;
  1403. +arc*-*-linux-uclibc*)
  1404. + extra_headers="arc-simd.h"
  1405. + tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file}"
  1406. + tmake_file="${tmake_file} arc/t-arc-uClibc arc/t-arc"
  1407. + tm_defines="${tm_defines} TARGET_SDATA_DEFAULT=0"
  1408. + tm_defines="${tm_defines} TARGET_MMEDIUM_CALLS_DEFAULT=1"
  1409. + case x"${with_cpu}" in
  1410. + xarc600|xarc601|xarc700)
  1411. + target_cpu_default="TARGET_CPU_$with_cpu"
  1412. + ;;
  1413. + esac
  1414. + if test x${with_endian} = x; then
  1415. + case ${target} in
  1416. + arc*be-*-* | arc*eb-*-*) with_endian=big ;;
  1417. + *) with_endian=little ;;
  1418. + esac
  1419. + fi
  1420. + case ${with_endian} in
  1421. + big|little) ;;
  1422. + *) echo "with_endian=${with_endian} not supported."; exit 1 ;;
  1423. + esac
  1424. + case ${with_endian} in
  1425. + big*) tm_defines="DRIVER_ENDIAN_SELF_SPECS=\\\"%{!EL:%{!mlittle-endian:-mbig-endian}}\\\" ${tm_defines}"
  1426. + esac
  1427. + ;;
  1428. +arm-wrs-vxworks)
  1429. + tm_file="elfos.h arm/elf.h arm/aout.h ${tm_file} vx-common.h vxworks.h arm/vxworks.h"
  1430. + extra_options="${extra_options} arm/vxworks.opt"
  1431. + tmake_file="${tmake_file} arm/t-arm arm/t-vxworks"
  1432. + ;;
  1433. +arm*-*-netbsdelf*)
  1434. + tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h ${tm_file} arm/netbsd-elf.h"
  1435. + extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  1436. + tmake_file="${tmake_file} arm/t-arm"
  1437. + ;;
  1438. +arm*-*-linux-*) # ARM GNU/Linux with ELF
  1439. + tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h arm/elf.h arm/linux-gas.h arm/linux-elf.h"
  1440. + extra_options="${extra_options} linux-android.opt"
  1441. + case $target in
  1442. + arm*b-*-linux*)
  1443. + tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
  1444. + ;;
  1445. + esac
  1446. + tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi"
  1447. + tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h arm/aout.h vxworks-dummy.h arm/arm.h"
  1448. + # Define multilib configuration for arm-linux-androideabi.
  1449. + case ${target} in
  1450. + *-androideabi)
  1451. + tmake_file="$tmake_file arm/t-linux-androideabi"
  1452. + ;;
  1453. + esac
  1454. + # The EABI requires the use of __cxa_atexit.
  1455. + default_use_cxa_atexit=yes
  1456. + with_tls=${with_tls:-gnu}
  1457. + ;;
  1458. +arm*-*-uclinux*eabi*) # ARM ucLinux
  1459. + tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/uclinux-elf.h glibc-stdint.h"
  1460. + tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf arm/t-bpabi"
  1461. + tm_file="$tm_file arm/bpabi.h arm/uclinux-eabi.h arm/aout.h vxworks-dummy.h arm/arm.h"
  1462. + # The EABI requires the use of __cxa_atexit.
  1463. + default_use_cxa_atexit=yes
  1464. + ;;
  1465. +arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
  1466. + case ${target} in
  1467. + arm*eb-*-eabi*)
  1468. + tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
  1469. + esac
  1470. + default_use_cxa_atexit=yes
  1471. + tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h"
  1472. + tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf"
  1473. + case ${target} in
  1474. + arm*-*-eabi*)
  1475. + tm_file="$tm_file newlib-stdint.h"
  1476. + tmake_file="${tmake_file} arm/t-bpabi"
  1477. + use_gcc_stdint=wrap
  1478. + ;;
  1479. + arm*-*-rtems*)
  1480. + tm_file="${tm_file} rtems.h arm/rtems-eabi.h newlib-stdint.h"
  1481. + tmake_file="${tmake_file} arm/t-bpabi arm/t-rtems-eabi"
  1482. + ;;
  1483. + arm*-*-symbianelf*)
  1484. + tm_file="${tm_file} arm/symbian.h"
  1485. + # We do not include t-bpabi for Symbian OS because the system
  1486. + # provides its own implementation of the BPABI functions.
  1487. + tmake_file="${tmake_file} arm/t-symbian"
  1488. + ;;
  1489. + esac
  1490. + tm_file="${tm_file} arm/aout.h vxworks-dummy.h arm/arm.h"
  1491. + ;;
  1492. +avr-*-rtems*)
  1493. + tm_file="elfos.h avr/elf.h avr/avr-arch.h avr/avr.h dbxelf.h avr/rtems.h rtems.h newlib-stdint.h"
  1494. + tmake_file="${tmake_file} avr/t-avr avr/t-multilib avr/t-rtems"
  1495. + extra_gcc_objs="driver-avr.o avr-devices.o"
  1496. + extra_objs="avr-devices.o avr-log.o"
  1497. + ;;
  1498. +avr-*-*)
  1499. + tm_file="elfos.h avr/elf.h avr/avr-arch.h avr/avr.h dbxelf.h avr/avr-stdint.h"
  1500. + if test x${with_avrlibc} != xno; then
  1501. + tm_file="${tm_file} ${cpu_type}/avrlibc.h"
  1502. + tm_defines="${tm_defines} WITH_AVRLIBC"
  1503. + fi
  1504. + tmake_file="${tmake_file} avr/t-avr avr/t-multilib"
  1505. + use_gcc_stdint=wrap
  1506. + extra_gcc_objs="driver-avr.o avr-devices.o"
  1507. + extra_objs="avr-devices.o avr-log.o"
  1508. + ;;
  1509. +bfin*-elf*)
  1510. + tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h bfin/elf.h"
  1511. + tmake_file=bfin/t-bfin-elf
  1512. + use_collect2=no
  1513. + ;;
  1514. +bfin*-uclinux*)
  1515. + tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h gnu-user.h linux.h glibc-stdint.h bfin/uclinux.h"
  1516. + tmake_file=bfin/t-bfin-uclinux
  1517. + use_collect2=no
  1518. + ;;
  1519. +bfin*-linux-uclibc*)
  1520. + tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h gnu-user.h linux.h glibc-stdint.h bfin/linux.h ./linux-sysroot-suffix.h"
  1521. + tmake_file="bfin/t-bfin-linux t-slibgcc t-linux"
  1522. + use_collect2=no
  1523. + ;;
  1524. +bfin*-rtems*)
  1525. + tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h bfin/rtems.h rtems.h newlib-stdint.h"
  1526. + tmake_file="${tmake_file} bfin/t-rtems"
  1527. + ;;
  1528. +bfin*-*)
  1529. + tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h bfin/elf.h"
  1530. + use_collect2=no
  1531. + use_gcc_stdint=wrap
  1532. + ;;
  1533. +cr16-*-elf)
  1534. + tm_file="elfos.h ${tm_file}"
  1535. + tmake_file="${tmake_file} cr16/t-cr16 "
  1536. + use_collect2=no
  1537. + ;;
  1538. +crisv32-*-elf | crisv32-*-none)
  1539. + tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  1540. + tmake_file="cris/t-cris"
  1541. + target_cpu_default=32
  1542. + gas=yes
  1543. + extra_options="${extra_options} cris/elf.opt"
  1544. + use_gcc_stdint=wrap
  1545. + ;;
  1546. +cris-*-elf | cris-*-none)
  1547. + tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  1548. + tmake_file="cris/t-cris cris/t-elfmulti"
  1549. + gas=yes
  1550. + extra_options="${extra_options} cris/elf.opt"
  1551. + use_gcc_stdint=wrap
  1552. + ;;
  1553. +crisv32-*-linux* | cris-*-linux*)
  1554. + tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h glibc-stdint.h cris/linux.h"
  1555. + tmake_file="${tmake_file} cris/t-cris cris/t-linux"
  1556. + extra_options="${extra_options} cris/linux.opt"
  1557. + case $target in
  1558. + cris-*-*)
  1559. + target_cpu_default=10
  1560. + ;;
  1561. + crisv32-*-*)
  1562. + target_cpu_default=32
  1563. + ;;
  1564. + esac
  1565. + ;;
  1566. +epiphany-*-elf )
  1567. + tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  1568. + tmake_file="epiphany/t-epiphany"
  1569. + extra_options="${extra_options} fused-madd.opt"
  1570. + extra_objs="$extra_objs mode-switch-use.o resolve-sw-modes.o"
  1571. + tm_defines="${tm_defines} EPIPHANY_STACK_OFFSET=${with_stack_offset:-8}"
  1572. + extra_headers="epiphany_intrinsics.h"
  1573. + ;;
  1574. +fr30-*-elf)
  1575. + tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  1576. + ;;
  1577. +frv-*-elf)
  1578. + tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  1579. + tmake_file=frv/t-frv
  1580. + ;;
  1581. +frv-*-*linux*)
  1582. + tm_file="dbxelf.h elfos.h ${tm_file} \
  1583. + gnu-user.h linux.h glibc-stdint.h frv/linux.h"
  1584. + tmake_file="${tmake_file} frv/t-frv frv/t-linux"
  1585. + ;;
  1586. +moxie-*-elf)
  1587. + gas=yes
  1588. + gnu_ld=yes
  1589. + tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  1590. + tmake_file="${tmake_file} moxie/t-moxie"
  1591. + ;;
  1592. +moxie-*-uclinux*)
  1593. + gas=yes
  1594. + gnu_ld=yes
  1595. + tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h glibc-stdint.h moxie/uclinux.h"
  1596. + tmake_file="${tmake_file} moxie/t-moxie"
  1597. + ;;
  1598. +moxie-*-rtems*)
  1599. + tmake_file="${tmake_file} moxie/t-moxie"
  1600. + tm_file="moxie/moxie.h dbxelf.h elfos.h moxie/rtems.h rtems.h newlib-stdint.h"
  1601. + ;;
  1602. +h8300-*-rtems*)
  1603. + tmake_file="${tmake_file} h8300/t-h8300 h8300/t-rtems"
  1604. + tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h h8300/rtems.h rtems.h newlib-stdint.h"
  1605. + ;;
  1606. +h8300-*-elf*)
  1607. + tmake_file="h8300/t-h8300"
  1608. + tm_file="h8300/h8300.h dbxelf.h elfos.h newlib-stdint.h h8300/elf.h"
  1609. + ;;
  1610. +hppa*64*-*-linux*)
  1611. + target_cpu_default="MASK_PA_11|MASK_PA_20"
  1612. + tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h gnu-user.h linux.h \
  1613. + glibc-stdint.h pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h \
  1614. + pa/pa64-linux.h"
  1615. + gas=yes gnu_ld=yes
  1616. + need_64bit_hwint=yes
  1617. + ;;
  1618. +hppa*-*-linux*)
  1619. + target_cpu_default="MASK_PA_11|MASK_NO_SPACE_REGS"
  1620. + tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h pa/pa-linux.h \
  1621. + pa/pa32-regs.h pa/pa32-linux.h"
  1622. + tmake_file="${tmake_file} pa/t-linux"
  1623. + ;;
  1624. +hppa*-*-openbsd*)
  1625. + target_cpu_default="MASK_PA_11"
  1626. + tm_file="${tm_file} dbxelf.h elfos.h openbsd.h openbsd-stdint.h openbsd-libpthread.h \
  1627. + pa/pa-openbsd.h pa/pa32-regs.h pa/pa32-openbsd.h"
  1628. + extra_options="${extra_options} openbsd.opt"
  1629. + gas=yes
  1630. + gnu_ld=yes
  1631. + ;;
  1632. +hppa[12]*-*-hpux10*)
  1633. + case ${target} in
  1634. + hppa1.1-*-* | hppa2*-*-*)
  1635. + target_cpu_default="MASK_PA_11"
  1636. + ;;
  1637. + esac
  1638. + tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \
  1639. + pa/pa-hpux.h pa/pa-hpux10.h"
  1640. + extra_options="${extra_options} pa/pa-hpux.opt pa/pa-hpux10.opt"
  1641. + case ${target} in
  1642. + *-*-hpux10.[1-9]*)
  1643. + tm_file="${tm_file} pa/pa-hpux1010.h"
  1644. + extra_options="${extra_options} pa/pa-hpux1010.opt"
  1645. + ;;
  1646. + esac
  1647. + use_gcc_stdint=provide
  1648. + tm_file="${tm_file} hpux-stdint.h"
  1649. + tmake_file="t-slibgcc"
  1650. + case ${enable_threads} in
  1651. + "")
  1652. + if test x$have_pthread_h = xyes ; then
  1653. + tmake_file="${tmake_file} pa/t-dce-thr"
  1654. + fi
  1655. + ;;
  1656. + yes | dce)
  1657. + tmake_file="${tmake_file} pa/t-dce-thr"
  1658. + ;;
  1659. + esac
  1660. + use_collect2=yes
  1661. + gas=yes
  1662. + if test "x$with_dwarf2" != x; then
  1663. + echo "Warning: dwarf2 debug format is not supported for this target, --with-dwarf2 ignored" 1>&2
  1664. + dwarf2=no
  1665. + fi
  1666. + ;;
  1667. +hppa*64*-*-hpux11*)
  1668. + target_cpu_default="MASK_PA_11|MASK_PA_20"
  1669. + if test x$gnu_ld = xyes
  1670. + then
  1671. + target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
  1672. + fi
  1673. + tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \
  1674. + pa/pa64-regs.h pa/pa-hpux.h pa/pa-hpux1010.h \
  1675. + pa/pa-hpux11.h"
  1676. + case ${target} in
  1677. + *-*-hpux11.[12]*)
  1678. + tm_file="${tm_file} pa/pa-hpux1111.h pa/pa-64.h pa/pa64-hpux.h"
  1679. + extra_options="${extra_options} pa/pa-hpux1111.opt"
  1680. + ;;
  1681. + *-*-hpux11.[3-9]*)
  1682. + tm_file="${tm_file} pa/pa-hpux1131.h pa/pa-64.h pa/pa64-hpux.h"
  1683. + extra_options="${extra_options} pa/pa-hpux1131.opt"
  1684. + ;;
  1685. + *)
  1686. + tm_file="${tm_file} pa/pa-64.h pa/pa64-hpux.h"
  1687. + ;;
  1688. + esac
  1689. + extra_options="${extra_options} pa/pa-hpux.opt \
  1690. + pa/pa-hpux1010.opt pa/pa64-hpux.opt hpux11.opt"
  1691. + need_64bit_hwint=yes
  1692. + tmake_file="t-slibgcc"
  1693. + case x${enable_threads} in
  1694. + x | xyes | xposix )
  1695. + thread_file=posix
  1696. + ;;
  1697. + esac
  1698. + gas=yes
  1699. + case ${target} in
  1700. + *-*-hpux11.[01]*)
  1701. + use_gcc_stdint=provide
  1702. + tm_file="${tm_file} hpux-stdint.h"
  1703. + ;;
  1704. + *-*-hpux11.[23]*)
  1705. + use_gcc_stdint=wrap
  1706. + tm_file="${tm_file} hpux-stdint.h"
  1707. + ;;
  1708. + esac
  1709. + ;;
  1710. +hppa[12]*-*-hpux11*)
  1711. + case ${target} in
  1712. + hppa1.1-*-* | hppa2*-*-*)
  1713. + target_cpu_default="MASK_PA_11"
  1714. + ;;
  1715. + esac
  1716. + tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \
  1717. + pa/pa-hpux.h pa/pa-hpux1010.h pa/pa-hpux11.h"
  1718. + extra_options="${extra_options} pa/pa-hpux.opt pa/pa-hpux1010.opt \
  1719. + hpux11.opt"
  1720. + case ${target} in
  1721. + *-*-hpux11.[12]*)
  1722. + tm_file="${tm_file} pa/pa-hpux1111.h"
  1723. + extra_options="${extra_options} pa/pa-hpux1111.opt"
  1724. + ;;
  1725. + *-*-hpux11.[3-9]*)
  1726. + tm_file="${tm_file} pa/pa-hpux1131.h"
  1727. + extra_options="${extra_options} pa/pa-hpux1131.opt"
  1728. + ;;
  1729. + esac
  1730. + tmake_file="t-slibgcc"
  1731. + case x${enable_threads} in
  1732. + x | xyes | xposix )
  1733. + thread_file=posix
  1734. + ;;
  1735. + esac
  1736. + use_collect2=yes
  1737. + gas=yes
  1738. + case ${target} in
  1739. + *-*-hpux11.[01]*)
  1740. + use_gcc_stdint=provide
  1741. + tm_file="${tm_file} hpux-stdint.h"
  1742. + ;;
  1743. + *-*-hpux11.[23]*)
  1744. + use_gcc_stdint=wrap
  1745. + tm_file="${tm_file} hpux-stdint.h"
  1746. + ;;
  1747. + esac
  1748. + if test "x$with_dwarf2" != x; then
  1749. + echo "Warning: dwarf2 debug format is not supported for this target, --with-dwarf2 ignored" 1>&2
  1750. + dwarf2=no
  1751. + fi
  1752. + ;;
  1753. +i[34567]86-*-darwin*)
  1754. + need_64bit_isa=yes
  1755. + # Baseline choice for a machine that allows m64 support.
  1756. + with_cpu=${with_cpu:-core2}
  1757. + tmake_file="${tmake_file} t-slibgcc"
  1758. + ;;
  1759. +x86_64-*-darwin*)
  1760. + with_cpu=${with_cpu:-core2}
  1761. + tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc"
  1762. + tm_file="${tm_file} ${cpu_type}/darwin64.h"
  1763. + ;;
  1764. +i[34567]86-*-elf*)
  1765. + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h"
  1766. + ;;
  1767. +x86_64-*-elf*)
  1768. + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h"
  1769. + ;;
  1770. +i[34567]86-*-rdos*)
  1771. + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/rdos.h"
  1772. + ;;
  1773. +x86_64-*-rdos*)
  1774. + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h i386/rdos.h i386/rdos64.h"
  1775. + tmake_file="i386/t-i386elf t-svr4"
  1776. + ;;
  1777. +i[34567]86-*-freebsd*)
  1778. + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
  1779. + ;;
  1780. +x86_64-*-freebsd*)
  1781. + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/x86-64.h i386/freebsd.h i386/freebsd64.h"
  1782. + ;;
  1783. +i[34567]86-*-netbsdelf*)
  1784. + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
  1785. + extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  1786. + ;;
  1787. +x86_64-*-netbsd*)
  1788. + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h"
  1789. + extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  1790. + ;;
  1791. +i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
  1792. + tm_file="i386/i386.h i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h openbsd-oldgas.h openbsd.h i386/openbsd.h"
  1793. + extra_options="${extra_options} openbsd.opt"
  1794. + # needed to unconfuse gdb
  1795. + tmake_file="${tmake_file} t-openbsd i386/t-openbsd"
  1796. + # we need collect2 until our bug is fixed...
  1797. + use_collect2=yes
  1798. + ;;
  1799. +i[34567]86-*-openbsd*)
  1800. + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h"
  1801. + tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h i386/openbsdelf.h"
  1802. + extra_options="${extra_options} openbsd.opt"
  1803. + gas=yes
  1804. + gnu_ld=yes
  1805. + ;;
  1806. +x86_64-*-openbsd*)
  1807. + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h"
  1808. + tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h i386/x86-64.h i386/openbsdelf.h"
  1809. + extra_options="${extra_options} openbsd.opt"
  1810. + gas=yes
  1811. + gnu_ld=yes
  1812. + ;;
  1813. +i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
  1814. + # Intel 80386's running GNU/*
  1815. + # with ELF format using glibc 2
  1816. + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h glibc-stdint.h"
  1817. + case ${target} in
  1818. + i[34567]86-*-linux*)
  1819. + tm_file="${tm_file} linux.h linux-android.h"
  1820. + extra_options="${extra_options} linux-android.opt"
  1821. + # Assume modern glibc
  1822. + default_gnu_indirect_function=yes
  1823. + if test x$enable_targets = xall; then
  1824. + tm_file="${tm_file} i386/x86-64.h i386/gnu-user-common.h i386/gnu-user64.h i386/linux-common.h i386/linux64.h"
  1825. + tm_defines="${tm_defines} TARGET_BI_ARCH=1"
  1826. + tmake_file="${tmake_file} i386/t-linux64"
  1827. + x86_multilibs="${with_multilib_list}"
  1828. + if test "$x86_multilibs" = "default"; then
  1829. + x86_multilibs="m64,m32"
  1830. + fi
  1831. + x86_multilibs=`echo $x86_multilibs | sed -e 's/,/ /g'`
  1832. + for x86_multilib in ${x86_multilibs}; do
  1833. + case ${x86_multilib} in
  1834. + m32 | m64 | mx32)
  1835. + TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG},${x86_multilib}"
  1836. + ;;
  1837. + *)
  1838. + echo "--with-multilib-list=${x86_with_multilib} not supported."
  1839. + exit 1
  1840. + esac
  1841. + done
  1842. + TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'`
  1843. + need_64bit_isa=yes
  1844. + if test x$with_cpu = x; then
  1845. + if test x$with_cpu_64 = x; then
  1846. + with_cpu_64=generic
  1847. + fi
  1848. + else
  1849. + case " $x86_cpus $x86_archs $x86_64_archs " in
  1850. + *" $with_cpu "*)
  1851. + ;;
  1852. + *)
  1853. + echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
  1854. + echo "$x86_cpus $x86_archs $x86_64_archs " 1>&2
  1855. + exit 1
  1856. + ;;
  1857. + esac
  1858. + fi
  1859. + else
  1860. + tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h i386/linux-common.h i386/linux.h"
  1861. + fi
  1862. + ;;
  1863. + i[34567]86-*-knetbsd*-gnu)
  1864. + tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h knetbsd-gnu.h i386/knetbsd-gnu.h"
  1865. + ;;
  1866. + i[34567]86-*-kfreebsd*-gnu)
  1867. + tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h kfreebsd-gnu.h i386/kfreebsd-gnu.h"
  1868. + ;;
  1869. + i[34567]86-*-kopensolaris*-gnu)
  1870. + tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h kopensolaris-gnu.h i386/kopensolaris-gnu.h"
  1871. + ;;
  1872. + i[34567]86-*-gnu*)
  1873. + tm_file="$tm_file i386/gnu-user-common.h i386/gnu-user.h gnu.h i386/gnu.h"
  1874. + ;;
  1875. + esac
  1876. + ;;
  1877. +x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
  1878. + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h glibc-stdint.h \
  1879. + i386/x86-64.h i386/gnu-user-common.h i386/gnu-user64.h"
  1880. + case ${target} in
  1881. + x86_64-*-linux*)
  1882. + tm_file="${tm_file} linux.h linux-android.h i386/linux-common.h i386/linux64.h"
  1883. + extra_options="${extra_options} linux-android.opt"
  1884. + # Assume modern glibc
  1885. + default_gnu_indirect_function=yes
  1886. + ;;
  1887. + x86_64-*-kfreebsd*-gnu)
  1888. + tm_file="${tm_file} kfreebsd-gnu.h i386/kfreebsd-gnu64.h"
  1889. + ;;
  1890. + x86_64-*-knetbsd*-gnu)
  1891. + tm_file="${tm_file} knetbsd-gnu.h"
  1892. + ;;
  1893. + esac
  1894. + tmake_file="${tmake_file} i386/t-linux64"
  1895. + x86_multilibs="${with_multilib_list}"
  1896. + if test "$x86_multilibs" = "default"; then
  1897. + case ${with_abi} in
  1898. + x32 | mx32)
  1899. + x86_multilibs="mx32"
  1900. + ;;
  1901. + *)
  1902. + x86_multilibs="m64,m32"
  1903. + ;;
  1904. + esac
  1905. + fi
  1906. + x86_multilibs=`echo $x86_multilibs | sed -e 's/,/ /g'`
  1907. + for x86_multilib in ${x86_multilibs}; do
  1908. + case ${x86_multilib} in
  1909. + m32 | m64 | mx32)
  1910. + TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG},${x86_multilib}"
  1911. + ;;
  1912. + *)
  1913. + echo "--with-multilib-list=${x86_with_multilib} not supported."
  1914. + exit 1
  1915. + esac
  1916. + done
  1917. + TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'`
  1918. + ;;
  1919. +i[34567]86-pc-msdosdjgpp*)
  1920. + xm_file=i386/xm-djgpp.h
  1921. + tm_file="dbxcoff.h ${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h i386/djgpp-stdint.h"
  1922. + native_system_header_dir=/dev/env/DJDIR/include
  1923. + extra_options="${extra_options} i386/djgpp.opt"
  1924. + gnu_ld=yes
  1925. + gas=yes
  1926. + use_gcc_stdint=wrap
  1927. + ;;
  1928. +i[34567]86-*-lynxos*)
  1929. + xm_defines=POSIX
  1930. + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/lynx.h lynx.h"
  1931. + tmake_file="${tmake_file} t-lynx"
  1932. + extra_options="${extra_options} lynx.opt"
  1933. + thread_file=lynx
  1934. + gnu_ld=yes
  1935. + gas=yes
  1936. + ;;
  1937. +i[34567]86-*-nto-qnx*)
  1938. + tm_file="${tm_file} i386/att.h dbxelf.h tm-dwarf2.h elfos.h i386/unix.h i386/nto.h"
  1939. + extra_options="${extra_options} i386/nto.opt"
  1940. + gnu_ld=yes
  1941. + gas=yes
  1942. + ;;
  1943. +i[34567]86-*-rtems*)
  1944. + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h newlib-stdint.h"
  1945. + tmake_file="${tmake_file} i386/t-rtems"
  1946. + ;;
  1947. +i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
  1948. + tm_file="${tm_file} i386/unix.h i386/att.h ${sol2_tm_file}"
  1949. + # Set default arch_32 to pentium4, tune_32 to generic like the other
  1950. + # i386 targets, although config.guess defaults to i386-pc-solaris2*.
  1951. + case ${target} in
  1952. + *-*-solaris2.9*)
  1953. + # Solaris 9/x86 cannot execute SSE/SSE2 instructions by default.
  1954. + with_arch_32=${with_arch_32:-pentiumpro}
  1955. + ;;
  1956. + *)
  1957. + with_arch_32=${with_arch_32:-pentium4}
  1958. + ;;
  1959. + esac
  1960. + with_tune_32=${with_tune_32:-generic}
  1961. + case ${target} in
  1962. + *-*-solaris2.9*)
  1963. + tm_file="${tm_file} i386/sol2-9.h"
  1964. + ;;
  1965. + *-*-solaris2.1[0-9]*)
  1966. + tm_file="${tm_file} i386/x86-64.h i386/sol2-bi.h sol2-bi.h"
  1967. + tm_defines="${tm_defines} TARGET_BI_ARCH=1"
  1968. + tmake_file="$tmake_file i386/t-sol2-64"
  1969. + need_64bit_isa=yes
  1970. + if test x$with_cpu = x; then
  1971. + if test x$with_cpu_64 = x; then
  1972. + with_cpu_64=generic
  1973. + fi
  1974. + else
  1975. + case " $x86_cpus $x86_archs $x86_64_archs " in
  1976. + *" $with_cpu "*)
  1977. + ;;
  1978. + *)
  1979. + echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
  1980. + echo "$x86_cpus $x86_archs $x86_64_archs" 1>&2
  1981. + exit 1
  1982. + ;;
  1983. + esac
  1984. + fi
  1985. + ;;
  1986. + esac
  1987. + ;;
  1988. +i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
  1989. + tm_file="${tm_file} i386/unix.h i386/att.h elfos.h vx-common.h"
  1990. + case ${target} in
  1991. + *-vxworksae*)
  1992. + tm_file="${tm_file} vxworksae.h i386/vx-common.h i386/vxworksae.h"
  1993. + tmake_file="${tmake_file} i386/t-vxworks i386/t-vxworksae"
  1994. + ;;
  1995. + *)
  1996. + tm_file="${tm_file} vxworks.h i386/vx-common.h i386/vxworks.h"
  1997. + tmake_file="${tmake_file} i386/t-vxworks"
  1998. + ;;
  1999. + esac
  2000. + ;;
  2001. +i[34567]86-*-cygwin*)
  2002. + tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h i386/cygwin-stdint.h"
  2003. + xm_file=i386/xm-cygwin.h
  2004. + tmake_file="${tmake_file} i386/t-cygming t-slibgcc"
  2005. + target_gtfiles="\$(srcdir)/config/i386/winnt.c"
  2006. + extra_options="${extra_options} i386/cygming.opt"
  2007. + extra_objs="winnt.o winnt-stubs.o"
  2008. + c_target_objs="${c_target_objs} msformat-c.o"
  2009. + cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o"
  2010. + if test x$enable_threads = xyes; then
  2011. + thread_file='posix'
  2012. + fi
  2013. + use_gcc_stdint=wrap
  2014. + ;;
  2015. +x86_64-*-cygwin*)
  2016. + need_64bit_isa=yes
  2017. + tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h i386/cygwin-w64.h i386/cygwin-stdint.h"
  2018. + xm_file=i386/xm-cygwin.h
  2019. + tmake_file="${tmake_file} i386/t-cygming t-slibgcc i386/t-cygwin-w64"
  2020. + target_gtfiles="\$(srcdir)/config/i386/winnt.c"
  2021. + extra_options="${extra_options} i386/cygming.opt"
  2022. + extra_objs="winnt.o winnt-stubs.o"
  2023. + c_target_objs="${c_target_objs} msformat-c.o"
  2024. + cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o"
  2025. + if test x$enable_threads = xyes; then
  2026. + thread_file='posix'
  2027. + fi
  2028. + use_gcc_stdint=wrap
  2029. + tm_defines="${tm_defines} TARGET_CYGWIN64=1"
  2030. + ;;
  2031. +i[34567]86-*-mingw* | x86_64-*-mingw*)
  2032. + tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h"
  2033. + xm_file=i386/xm-mingw32.h
  2034. + c_target_objs="${c_target_objs} winnt-c.o"
  2035. + cxx_target_objs="${cxx_target_objs} winnt-c.o"
  2036. + target_has_targetcm="yes"
  2037. + case ${target} in
  2038. + x86_64-*-* | *-w64-*)
  2039. + need_64bit_isa=yes
  2040. + ;;
  2041. + *)
  2042. + ;;
  2043. + esac
  2044. + if test x$enable_threads = xposix ; then
  2045. + tm_file="${tm_file} i386/mingw-pthread.h"
  2046. + fi
  2047. + tm_file="${tm_file} i386/mingw32.h"
  2048. + # This makes the logic if mingw's or the w64 feature set has to be used
  2049. + case ${target} in
  2050. + *-w64-*)
  2051. + user_headers_inc_next_post="${user_headers_inc_next_post} float.h"
  2052. + user_headers_inc_next_pre="${user_headers_inc_next_pre} stddef.h stdarg.h"
  2053. + tm_file="${tm_file} i386/mingw-w64.h"
  2054. + if test x$enable_targets = xall; then
  2055. + tm_defines="${tm_defines} TARGET_BI_ARCH=1"
  2056. + if test x$with_cpu = x; then
  2057. + if test x$with_cpu_64 = x; then
  2058. + with_cpu_64=generic
  2059. + fi
  2060. + else
  2061. + case " $x86_cpus $x86_archs $x86_64_archs " in
  2062. + *" $with_cpu "*)
  2063. + ;;
  2064. + *)
  2065. + echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
  2066. + echo "$x86_cpus $x86_archs $x86_64_archs" 1>&2
  2067. + exit 1
  2068. + ;;
  2069. + esac
  2070. + fi
  2071. + fi
  2072. + ;;
  2073. + *)
  2074. + ;;
  2075. + esac
  2076. + tm_file="${tm_file} i386/mingw-stdint.h"
  2077. + tmake_file="${tmake_file} t-winnt i386/t-cygming t-slibgcc"
  2078. + case ${target} in
  2079. + x86_64-w64-*)
  2080. + tmake_file="${tmake_file} i386/t-mingw-w64"
  2081. + ;;
  2082. + i[34567]86-w64-*)
  2083. + tmake_file="${tmake_file} i386/t-mingw-w32"
  2084. + ;;
  2085. + esac
  2086. + native_system_header_dir=/mingw/include
  2087. + target_gtfiles="\$(srcdir)/config/i386/winnt.c"
  2088. + extra_options="${extra_options} i386/cygming.opt i386/mingw.opt"
  2089. + case ${target} in
  2090. + *-w64-*)
  2091. + extra_options="${extra_options} i386/mingw-w64.opt"
  2092. + ;;
  2093. + *)
  2094. + ;;
  2095. + esac
  2096. + extra_objs="winnt.o winnt-stubs.o"
  2097. + c_target_objs="${c_target_objs} msformat-c.o"
  2098. + cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o"
  2099. + gas=yes
  2100. + gnu_ld=yes
  2101. + default_use_cxa_atexit=yes
  2102. + use_gcc_stdint=wrap
  2103. + case ${enable_threads} in
  2104. + "" | yes | win32)
  2105. + thread_file='win32'
  2106. + ;;
  2107. + posix)
  2108. + thread_file='posix'
  2109. + ;;
  2110. + esac
  2111. + case ${target} in
  2112. + *mingw32crt*)
  2113. + tm_file="${tm_file} i386/crtdll.h"
  2114. + ;;
  2115. + *mingw32msv* | *mingw*)
  2116. + ;;
  2117. + esac
  2118. + ;;
  2119. +i[34567]86-*-interix[3-9]*)
  2120. + tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h"
  2121. + tmake_file="${tmake_file} i386/t-interix"
  2122. + extra_options="${extra_options} rpath.opt i386/interix.opt"
  2123. + extra_objs="winnt.o winnt-stubs.o"
  2124. + target_gtfiles="\$(srcdir)/config/i386/winnt.c"
  2125. + if test x$enable_threads = xyes ; then
  2126. + thread_file='posix'
  2127. + fi
  2128. + if test x$stabs = xyes ; then
  2129. + tm_file="${tm_file} dbxcoff.h"
  2130. + fi
  2131. + ;;
  2132. +ia64*-*-elf*)
  2133. + tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h ia64/sysv4.h ia64/elf.h"
  2134. + tmake_file="ia64/t-ia64"
  2135. + target_cpu_default="0"
  2136. + if test x$gas = xyes
  2137. + then
  2138. + target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
  2139. + fi
  2140. + if test x$gnu_ld = xyes
  2141. + then
  2142. + target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
  2143. + fi
  2144. + ;;
  2145. +ia64*-*-freebsd*)
  2146. + tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
  2147. + target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
  2148. + tmake_file="${tmake_file} ia64/t-ia64"
  2149. + ;;
  2150. +ia64*-*-linux*)
  2151. + tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ia64/sysv4.h ia64/linux.h"
  2152. + tmake_file="${tmake_file} ia64/t-ia64 ia64/t-linux t-libunwind"
  2153. + target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
  2154. + ;;
  2155. +ia64*-*-hpux*)
  2156. + tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/hpux.h"
  2157. + tmake_file="ia64/t-ia64 ia64/t-hpux t-slibgcc"
  2158. + target_cpu_default="MASK_GNU_AS"
  2159. + case x$enable_threads in
  2160. + x | xyes | xposix )
  2161. + thread_file=posix
  2162. + ;;
  2163. + esac
  2164. + use_collect2=no
  2165. + c_target_objs="ia64-c.o"
  2166. + cxx_target_objs="ia64-c.o"
  2167. + extra_options="${extra_options} ia64/ilp32.opt hpux11.opt"
  2168. + use_gcc_stdint=wrap
  2169. + tm_file="${tm_file} hpux-stdint.h"
  2170. + case ${target} in
  2171. + *-*-hpux11.3*)
  2172. + tm_file="${tm_file} ia64/hpux-unix2003.h"
  2173. + ;;
  2174. + esac
  2175. + ;;
  2176. +ia64-hp-*vms*)
  2177. + tm_file="${tm_file} elfos.h ia64/sysv4.h vms/vms.h ia64/vms.h"
  2178. + tmake_file="${tmake_file} ia64/t-ia64"
  2179. + target_cpu_default="0"
  2180. + if test x$gas = xyes
  2181. + then
  2182. + target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
  2183. + fi
  2184. + extra_options="${extra_options} ia64/vms.opt"
  2185. + ;;
  2186. +iq2000*-*-elf*)
  2187. + tm_file="elfos.h newlib-stdint.h iq2000/iq2000.h"
  2188. + out_file=iq2000/iq2000.c
  2189. + md_file=iq2000/iq2000.md
  2190. + ;;
  2191. +lm32-*-elf*)
  2192. + tm_file="dbxelf.h elfos.h ${tm_file}"
  2193. + tmake_file="${tmake_file} lm32/t-lm32"
  2194. + ;;
  2195. +lm32-*-rtems*)
  2196. + tm_file="dbxelf.h elfos.h ${tm_file} lm32/rtems.h rtems.h newlib-stdint.h"
  2197. + tmake_file="${tmake_file} lm32/t-lm32"
  2198. + tmake_file="${tmake_file} lm32/t-rtems"
  2199. + ;;
  2200. +lm32-*-uclinux*)
  2201. + tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h lm32/uclinux-elf.h"
  2202. + tmake_file="${tmake_file} lm32/t-lm32"
  2203. + ;;
  2204. +m32r-*-elf*)
  2205. + tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  2206. + ;;
  2207. +m32rle-*-elf*)
  2208. + tm_file="dbxelf.h elfos.h newlib-stdint.h m32r/little.h ${tm_file}"
  2209. + ;;
  2210. +m32r-*-rtems*)
  2211. + tm_file="dbxelf.h elfos.h ${tm_file} m32r/rtems.h rtems.h newlib-stdint.h"
  2212. + tmake_file="${tmake_file} m32r/t-m32r"
  2213. + ;;
  2214. +m32r-*-linux*)
  2215. + tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} m32r/linux.h"
  2216. + tmake_file="${tmake_file} m32r/t-linux t-slibgcc"
  2217. + gnu_ld=yes
  2218. + if test x$enable_threads = xyes; then
  2219. + thread_file='posix'
  2220. + fi
  2221. + ;;
  2222. +m32rle-*-linux*)
  2223. + tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h m32r/little.h ${tm_file} m32r/linux.h"
  2224. + tmake_file="${tmake_file} m32r/t-linux t-slibgcc"
  2225. + gnu_ld=yes
  2226. + if test x$enable_threads = xyes; then
  2227. + thread_file='posix'
  2228. + fi
  2229. + ;;
  2230. +m68k-*-elf* | fido-*-elf*)
  2231. + case ${target} in
  2232. + fido-*-elf*)
  2233. + # Check that $with_cpu makes sense.
  2234. + case $with_cpu in
  2235. + "" | "fidoa")
  2236. + ;;
  2237. + *)
  2238. + echo "Cannot accept --with-cpu=$with_cpu"
  2239. + exit 1
  2240. + ;;
  2241. + esac
  2242. + with_cpu=fidoa
  2243. + ;;
  2244. + *)
  2245. + default_m68k_cpu=68020
  2246. + default_cf_cpu=5206
  2247. + ;;
  2248. + esac
  2249. + tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h newlib-stdint.h m68k/m68kemb.h m68k/m68020-elf.h"
  2250. + tm_defines="${tm_defines} MOTOROLA=1"
  2251. + tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-m68kelf"
  2252. + # Add multilibs for targets other than fido.
  2253. + case ${target} in
  2254. + fido-*-elf*)
  2255. + ;;
  2256. + *)
  2257. + tmake_file="$tmake_file m68k/t-mlibs"
  2258. + ;;
  2259. + esac
  2260. + ;;
  2261. +m68k*-*-netbsdelf*)
  2262. + default_m68k_cpu=68020
  2263. + default_cf_cpu=5475
  2264. + tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
  2265. + extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  2266. + tm_defines="${tm_defines} MOTOROLA=1"
  2267. + ;;
  2268. +m68k*-*-openbsd*)
  2269. + default_m68k_cpu=68020
  2270. + default_cf_cpu=5475
  2271. + # needed to unconfuse gdb
  2272. + tm_defines="${tm_defines} OBSD_OLD_GAS"
  2273. + tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h m68k/openbsd.h"
  2274. + extra_options="${extra_options} openbsd.opt"
  2275. + tmake_file="t-openbsd m68k/t-openbsd"
  2276. + # we need collect2 until our bug is fixed...
  2277. + use_collect2=yes
  2278. + ;;
  2279. +m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux
  2280. + # with uClibc, using the new GNU/Linux-style
  2281. + # ABI.
  2282. + default_m68k_cpu=68020
  2283. + default_cf_cpu=5206
  2284. + tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h flat.h m68k/linux.h m68k/uclinux.h ./sysroot-suffix.h"
  2285. + extra_options="${extra_options} m68k/uclinux.opt"
  2286. + tm_defines="${tm_defines} MOTOROLA=1"
  2287. + tmake_file="m68k/t-floatlib m68k/t-uclinux m68k/t-mlibs"
  2288. + ;;
  2289. +m68k-*-linux*) # Motorola m68k's running GNU/Linux
  2290. + # with ELF format using glibc 2
  2291. + # aka the GNU/Linux C library 6.
  2292. + default_m68k_cpu=68020
  2293. + default_cf_cpu=5475
  2294. + with_arch=${with_arch:-m68k}
  2295. + tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h m68k/linux.h ./sysroot-suffix.h"
  2296. + extra_options="${extra_options} m68k/ieee.opt"
  2297. + tm_defines="${tm_defines} MOTOROLA=1"
  2298. + tmake_file="${tmake_file} m68k/t-floatlib m68k/t-linux m68k/t-mlibs"
  2299. + ;;
  2300. +m68k-*-rtems*)
  2301. + default_m68k_cpu=68020
  2302. + default_cf_cpu=5206
  2303. + tmake_file="${tmake_file} m68k/t-floatlib m68k/t-m68kbare m68k/t-crtstuff m68k/t-rtems m68k/t-mlibs"
  2304. + tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h m68k/rtemself.h rtems.h newlib-stdint.h"
  2305. + tm_defines="${tm_defines} MOTOROLA=1"
  2306. + ;;
  2307. +mcore-*-elf)
  2308. + tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file} mcore/mcore-elf.h"
  2309. + tmake_file=mcore/t-mcore
  2310. + inhibit_libc=true
  2311. + ;;
  2312. +mep-*-*)
  2313. + tm_file="dbxelf.h elfos.h ${tm_file}"
  2314. + tmake_file=mep/t-mep
  2315. + c_target_objs="mep-pragma.o"
  2316. + cxx_target_objs="mep-pragma.o"
  2317. + if test -d "${srcdir}/../newlib/libc/include" &&
  2318. + test "x$with_headers" = x; then
  2319. + with_headers=yes
  2320. + fi
  2321. + use_gcc_stdint=wrap
  2322. + ;;
  2323. +microblaze*-linux*)
  2324. + case $target in
  2325. + microblazeel-*)
  2326. + tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=0"
  2327. + ;;
  2328. + microblaze-*)
  2329. + tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=4321"
  2330. + ;;
  2331. + esac
  2332. + tm_file="${tm_file} dbxelf.h gnu-user.h linux.h microblaze/linux.h"
  2333. + tm_file="${tm_file} glibc-stdint.h"
  2334. + c_target_objs="${c_target_objs} microblaze-c.o"
  2335. + cxx_target_objs="${cxx_target_objs} microblaze-c.o"
  2336. + tmake_file="${tmake_file} microblaze/t-microblaze"
  2337. + tmake_file="${tmake_file} microblaze/t-microblaze-linux"
  2338. + ;;
  2339. +microblaze*-*-rtems*)
  2340. + case $target in
  2341. + microblazeel-*)
  2342. + tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=0"
  2343. + ;;
  2344. + microblaze-*)
  2345. + tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=4321"
  2346. + ;;
  2347. + esac
  2348. + tm_file="${tm_file} dbxelf.h"
  2349. + tm_file="${tm_file} microblaze/rtems.h rtems.h newlib-stdint.h"
  2350. + c_target_objs="${c_target_objs} microblaze-c.o"
  2351. + cxx_target_objs="${cxx_target_objs} microblaze-c.o"
  2352. + tmake_file="${tmake_file} microblaze/t-microblaze"
  2353. + tmake_file="${tmake_file} microblaze/t-rtems"
  2354. + ;;
  2355. +microblaze*-*-elf)
  2356. + case $target in
  2357. + microblazeel-*)
  2358. + tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=0"
  2359. + ;;
  2360. + microblaze-*)
  2361. + tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=4321"
  2362. + ;;
  2363. + esac
  2364. + tm_file="${tm_file} dbxelf.h newlib-stdint.h"
  2365. + c_target_objs="${c_target_objs} microblaze-c.o"
  2366. + cxx_target_objs="${cxx_target_objs} microblaze-c.o"
  2367. + tmake_file="${tmake_file} microblaze/t-microblaze"
  2368. + ;;
  2369. +mips*-*-netbsd*) # NetBSD/mips, either endian.
  2370. + target_cpu_default="MASK_ABICALLS"
  2371. + tm_file="elfos.h ${tm_file} mips/elf.h netbsd.h netbsd-elf.h mips/netbsd.h"
  2372. + extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  2373. + ;;
  2374. +mips*-mti-linux*)
  2375. + tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/gnu-user64.h mips/linux64.h mips/linux-common.h mips/mti-linux.h"
  2376. + extra_options="${extra_options} linux-android.opt"
  2377. + tmake_file="${tmake_file} mips/t-mti-linux"
  2378. + tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32"
  2379. + gnu_ld=yes
  2380. + gas=yes
  2381. + ;;
  2382. +mips64*-*-linux* | mipsisa64*-*-linux*)
  2383. + tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/gnu-user64.h mips/linux64.h mips/linux-common.h"
  2384. + extra_options="${extra_options} linux-android.opt"
  2385. + tmake_file="${tmake_file} mips/t-linux64"
  2386. + tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_N32"
  2387. + case ${target} in
  2388. + mips64el-st-linux-gnu)
  2389. + tm_file="${tm_file} mips/st.h"
  2390. + tmake_file="${tmake_file} mips/t-st"
  2391. + ;;
  2392. + mips64octeon*-*-linux*)
  2393. + tm_defines="${tm_defines} MIPS_CPU_STRING_DEFAULT=\\\"octeon\\\""
  2394. + target_cpu_default=MASK_SOFT_FLOAT_ABI
  2395. + ;;
  2396. + mipsisa64r2*-*-linux*)
  2397. + tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65"
  2398. + ;;
  2399. + esac
  2400. + gnu_ld=yes
  2401. + gas=yes
  2402. + ;;
  2403. +mips*-*-linux*) # Linux MIPS, either endian.
  2404. + tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/linux.h"
  2405. + extra_options="${extra_options} linux-android.opt"
  2406. + if test x$enable_targets = xall; then
  2407. + tm_file="${tm_file} mips/gnu-user64.h mips/linux64.h"
  2408. + tmake_file="${tmake_file} mips/t-linux64"
  2409. + fi
  2410. + tm_file="${tm_file} mips/linux-common.h"
  2411. + case ${target} in
  2412. + mipsisa32r2*)
  2413. + tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33"
  2414. + ;;
  2415. + mipsisa32*)
  2416. + tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32"
  2417. + esac
  2418. + ;;
  2419. +mips*-mti-elf*)
  2420. + tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/n32-elf.h mips/sde.h mips/mti-elf.h"
  2421. + tmake_file="mips/t-mti-elf"
  2422. + tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32"
  2423. + ;;
  2424. +mips*-sde-elf*)
  2425. + tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/n32-elf.h mips/sde.h"
  2426. + tmake_file="mips/t-sde"
  2427. + extra_options="${extra_options} mips/sde.opt"
  2428. + case "${with_newlib}" in
  2429. + yes)
  2430. + # newlib / libgloss.
  2431. + ;;
  2432. + *)
  2433. + # MIPS toolkit libraries.
  2434. + tm_file="$tm_file mips/sdemtk.h"
  2435. + tmake_file="$tmake_file mips/t-sdemtk"
  2436. + case ${enable_threads} in
  2437. + "" | yes | mipssde)
  2438. + thread_file='mipssde'
  2439. + ;;
  2440. + esac
  2441. + ;;
  2442. + esac
  2443. + case ${target} in
  2444. + mipsisa32r2*)
  2445. + tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32"
  2446. + ;;
  2447. + mipsisa32*)
  2448. + tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_32"
  2449. + ;;
  2450. + mipsisa64r2*)
  2451. + tm_defines="MIPS_ISA_DEFAULT=65 MIPS_ABI_DEFAULT=ABI_N32"
  2452. + ;;
  2453. + mipsisa64*)
  2454. + tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_N32"
  2455. + ;;
  2456. + esac
  2457. + ;;
  2458. +mipsisa32-*-elf* | mipsisa32el-*-elf* | \
  2459. +mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
  2460. +mipsisa64-*-elf* | mipsisa64el-*-elf* | \
  2461. +mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
  2462. + tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
  2463. + tmake_file="mips/t-isa3264"
  2464. + case ${target} in
  2465. + mipsisa32r2*)
  2466. + tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33"
  2467. + ;;
  2468. + mipsisa32*)
  2469. + tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32"
  2470. + ;;
  2471. + mipsisa64r2*)
  2472. + tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65"
  2473. + ;;
  2474. + mipsisa64*)
  2475. + tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64"
  2476. + ;;
  2477. + esac
  2478. + case ${target} in
  2479. + mipsisa32*-*-elfoabi*)
  2480. + tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_32"
  2481. + tm_file="${tm_file} mips/elfoabi.h"
  2482. + ;;
  2483. + mipsisa64*-*-elfoabi*)
  2484. + tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_O64"
  2485. + tm_file="${tm_file} mips/elfoabi.h"
  2486. + ;;
  2487. + *-*-elf*)
  2488. + tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI"
  2489. + ;;
  2490. + esac
  2491. + ;;
  2492. +mipsisa64sr71k-*-elf*)
  2493. + tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
  2494. + tmake_file=mips/t-sr71k
  2495. + tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI"
  2496. + ;;
  2497. +mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
  2498. + tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
  2499. + tmake_file="mips/t-elf mips/t-sb1"
  2500. + tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
  2501. + ;;
  2502. +mips-*-elf* | mipsel-*-elf* | mipsr5900-*-elf* | mipsr5900el-*-elf*)
  2503. + tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
  2504. + tmake_file="mips/t-elf"
  2505. + ;;
  2506. +mips64r5900-*-elf* | mips64r5900el-*-elf*)
  2507. + tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/n32-elf.h"
  2508. + tmake_file="mips/t-elf"
  2509. + tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
  2510. + ;;
  2511. +mips64-*-elf* | mips64el-*-elf*)
  2512. + tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
  2513. + tmake_file="mips/t-elf"
  2514. + tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
  2515. + ;;
  2516. +mips64vr-*-elf* | mips64vrel-*-elf*)
  2517. + tm_file="elfos.h newlib-stdint.h ${tm_file} mips/vr.h mips/elf.h"
  2518. + tmake_file=mips/t-vr
  2519. + tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI"
  2520. + ;;
  2521. +mips64orion-*-elf* | mips64orionel-*-elf*)
  2522. + tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elforion.h mips/elf.h"
  2523. + tmake_file="mips/t-elf"
  2524. + tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
  2525. + ;;
  2526. +mips*-*-rtems*)
  2527. + tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/rtems.h rtems.h"
  2528. + tmake_file="${tmake_file} mips/t-elf mips/t-rtems"
  2529. + ;;
  2530. +mips-wrs-vxworks)
  2531. + tm_file="elfos.h ${tm_file} mips/elf.h vx-common.h vxworks.h mips/vxworks.h"
  2532. + tmake_file="${tmake_file} mips/t-vxworks"
  2533. + ;;
  2534. +mipstx39-*-elf* | mipstx39el-*-elf*)
  2535. + tm_file="elfos.h newlib-stdint.h ${tm_file} mips/r3900.h mips/elf.h"
  2536. + tmake_file="mips/t-r3900"
  2537. + ;;
  2538. +mmix-knuth-mmixware)
  2539. + tm_file="${tm_file} newlib-stdint.h"
  2540. + need_64bit_hwint=yes
  2541. + use_gcc_stdint=wrap
  2542. + ;;
  2543. +mn10300-*-*)
  2544. + tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  2545. + if test x$stabs = xyes
  2546. + then
  2547. + tm_file="${tm_file} dbx.h"
  2548. + fi
  2549. + use_collect2=no
  2550. + use_gcc_stdint=wrap
  2551. + ;;
  2552. +msp430*-*-*)
  2553. + tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  2554. + c_target_objs="msp430-c.o"
  2555. + cxx_target_objs="msp430-c.o"
  2556. + tmake_file="${tmake_file} msp430/t-msp430"
  2557. + ;;
  2558. +nds32le-*-*)
  2559. + target_cpu_default="0"
  2560. + tm_defines="${tm_defines}"
  2561. + tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  2562. + tmake_file="nds32/t-mlibs"
  2563. + ;;
  2564. +nds32be-*-*)
  2565. + target_cpu_default="0|MASK_BIG_ENDIAN"
  2566. + tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
  2567. + tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  2568. + tmake_file="nds32/t-mlibs"
  2569. + ;;
  2570. +nios2-*-*)
  2571. + tm_file="elfos.h ${tm_file}"
  2572. + tmake_file="${tmake_file} nios2/t-nios2"
  2573. + case ${target} in
  2574. + nios2-*-linux*)
  2575. + tm_file="${tm_file} gnu-user.h linux.h glibc-stdint.h nios2/linux.h "
  2576. + ;;
  2577. + nios2-*-elf*)
  2578. + tm_file="${tm_file} newlib-stdint.h nios2/elf.h"
  2579. + extra_options="${extra_options} nios2/elf.opt"
  2580. + ;;
  2581. + nios2-*-rtems*)
  2582. + tm_file="${tm_file} newlib-stdint.h nios2/rtems.h rtems.h"
  2583. + tmake_file="${tmake_file} t-rtems nios2/t-rtems"
  2584. + ;;
  2585. + esac
  2586. + ;;
  2587. +or1k-*-elf*)
  2588. + tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h ${cpu_type}/elf.h"
  2589. + extra_parts="crti.o crtbegin.o crtend.o crtn.o"
  2590. + tmake_file=or1k/t-or1k
  2591. + tm_defines="${tm_defines} OR1K_DELAY_DEFAULT=OR1K_DELAY_ON"
  2592. + ;;
  2593. +or1k-*-linux-*)
  2594. + tm_file="${tm_file} dbxelf.h elfos.h or1k/elf.h gnu-user.h linux.h or1k/linux-gas.h or1k/linux-elf.h uclibc-stdint.h"
  2595. + tmake_file="or1k/t-or1k or1k/t-linux ${tmake_file}"
  2596. + tm_defines="${tm_defines} OR1K_DELAY_DEFAULT=OR1K_DELAY_ON"
  2597. + ;;
  2598. +or1k*-*-rtems*)
  2599. + tm_file="${tm_file} newlib-stdint.h or1k/rtems.h rtems.h"
  2600. + extra_parts="crti.o crtbegin.o crtend.o crtn.o"
  2601. + ;;
  2602. +or1knd-*-elf*)
  2603. + tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h ${cpu_type}/elf.h"
  2604. + extra_parts="crti.o crtbegin.o crtend.o crtn.o"
  2605. + tmake_file=or1k/t-or1knd
  2606. + tm_defines="${tm_defines} OR1K_DELAY_DEFAULT=OR1K_DELAY_OFF"
  2607. + ;;
  2608. +or1knd-*-linux-*)
  2609. + tm_file="${tm_file} dbxelf.h elfos.h or1k/elf.h linux.h or1k/linux-gas.h or1k/linux-elf.h uclibc-stdint.h"
  2610. + tmake_file="or1k/t-or1knd or1k/t-linux ${tmake_file}"
  2611. + tm_defines="${tm_defines} OR1K_DELAY_DEFAULT=OR1K_DELAY_OFF"
  2612. + ;;
  2613. +pdp11-*-*)
  2614. + tm_file="${tm_file} newlib-stdint.h"
  2615. + use_gcc_stdint=wrap
  2616. + ;;
  2617. +picochip-*)
  2618. + tm_file="${tm_file} newlib-stdint.h"
  2619. + use_gcc_stdint=wrap
  2620. + tmake_file="picochip/t-picochip t-pnt16-warn"
  2621. + ;;
  2622. +# port not yet contributed
  2623. +#powerpc-*-openbsd*)
  2624. +# tmake_file="${tmake_file} rs6000/t-fprules"
  2625. +# extra_headers=
  2626. +# ;;
  2627. +powerpc-*-darwin*)
  2628. + extra_options="${extra_options} rs6000/darwin.opt"
  2629. + case ${target} in
  2630. + *-darwin1[0-9]* | *-darwin[8-9]*)
  2631. + tmake_file="${tmake_file} rs6000/t-darwin8"
  2632. + tm_file="${tm_file} rs6000/darwin8.h"
  2633. + ;;
  2634. + *-darwin7*)
  2635. + tm_file="${tm_file} rs6000/darwin7.h"
  2636. + ;;
  2637. + *-darwin[0-6]*)
  2638. + ;;
  2639. + esac
  2640. + tmake_file="${tmake_file} t-slibgcc"
  2641. + extra_headers=altivec.h
  2642. + ;;
  2643. +powerpc64-*-darwin*)
  2644. + extra_options="${extra_options} ${cpu_type}/darwin.opt"
  2645. + tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc"
  2646. + tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h"
  2647. + extra_headers=altivec.h
  2648. + ;;
  2649. +powerpc*-*-freebsd*)
  2650. + tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h"
  2651. + extra_options="${extra_options} rs6000/sysv4.opt"
  2652. + tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
  2653. + case ${target} in
  2654. + powerpc64*)
  2655. + tm_file="${tm_file} rs6000/default64.h rs6000/freebsd64.h"
  2656. + tmake_file="${tmake_file} rs6000/t-freebsd64"
  2657. + extra_options="${extra_options} rs6000/linux64.opt"
  2658. + ;;
  2659. + *)
  2660. + tm_file="${tm_file} rs6000/freebsd.h"
  2661. + ;;
  2662. + esac
  2663. + ;;
  2664. +powerpc-*-netbsd*)
  2665. + tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
  2666. + extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  2667. + tmake_file="${tmake_file} rs6000/t-netbsd"
  2668. + extra_options="${extra_options} rs6000/sysv4.opt"
  2669. + ;;
  2670. +powerpc-*-eabispe*)
  2671. + tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabispe.h"
  2672. + extra_options="${extra_options} rs6000/sysv4.opt"
  2673. + tmake_file="rs6000/t-spe rs6000/t-ppccomm"
  2674. + use_gcc_stdint=wrap
  2675. + ;;
  2676. +powerpc-*-eabisimaltivec*)
  2677. + tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h rs6000/eabialtivec.h"
  2678. + extra_options="${extra_options} rs6000/sysv4.opt"
  2679. + tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
  2680. + use_gcc_stdint=wrap
  2681. + ;;
  2682. +powerpc-*-eabisim*)
  2683. + tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h"
  2684. + extra_options="${extra_options} rs6000/sysv4.opt"
  2685. + tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
  2686. + use_gcc_stdint=wrap
  2687. + ;;
  2688. +powerpc-*-elf*)
  2689. + tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h"
  2690. + extra_options="${extra_options} rs6000/sysv4.opt"
  2691. + tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
  2692. + ;;
  2693. +powerpc-*-eabialtivec*)
  2694. + tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabialtivec.h"
  2695. + extra_options="${extra_options} rs6000/sysv4.opt"
  2696. + tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
  2697. + use_gcc_stdint=wrap
  2698. + ;;
  2699. +powerpc-xilinx-eabi*)
  2700. + tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/singlefp.h rs6000/xfpu.h rs6000/xilinx.h"
  2701. + extra_options="${extra_options} rs6000/sysv4.opt rs6000/xilinx.opt"
  2702. + tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm rs6000/t-xilinx"
  2703. + use_gcc_stdint=wrap
  2704. + ;;
  2705. +powerpc-*-eabi*)
  2706. + tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h"
  2707. + extra_options="${extra_options} rs6000/sysv4.opt"
  2708. + tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
  2709. + use_gcc_stdint=wrap
  2710. + ;;
  2711. +powerpc-*-rtems*)
  2712. + tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/rtems.h rtems.h"
  2713. + extra_options="${extra_options} rs6000/sysv4.opt"
  2714. + tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-rtems rs6000/t-ppccomm"
  2715. + ;;
  2716. +powerpc*-*-linux*)
  2717. + tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h rs6000/sysv4.h"
  2718. + extra_options="${extra_options} rs6000/sysv4.opt"
  2719. + tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
  2720. + extra_objs="$extra_objs rs6000-linux.o"
  2721. + case ${target} in
  2722. + powerpc*le-*-*)
  2723. + tm_file="${tm_file} rs6000/sysv4le.h" ;;
  2724. + esac
  2725. + maybe_biarch=yes
  2726. + case ${target} in
  2727. + powerpc64*-*-linux*spe* | powerpc64*-*-linux*paired*)
  2728. + echo "*** Configuration ${target} not supported" 1>&2
  2729. + exit 1
  2730. + ;;
  2731. + powerpc*-*-linux*spe* | powerpc*-*-linux*paired*)
  2732. + maybe_biarch=
  2733. + ;;
  2734. + powerpc64*-*-linux*)
  2735. + test x$with_cpu != x || cpu_is_64bit=yes
  2736. + maybe_biarch=always
  2737. + ;;
  2738. + esac
  2739. + case ${maybe_biarch}:${enable_targets}:${cpu_is_64bit} in
  2740. + always:* | yes:*powerpc64* | yes:all:* | yes:*:yes)
  2741. + if test x$cpu_is_64bit = xyes; then
  2742. + tm_file="${tm_file} rs6000/default64.h"
  2743. + fi
  2744. + tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h glibc-stdint.h"
  2745. + tmake_file="$tmake_file rs6000/t-linux64"
  2746. + case ${target} in
  2747. + powerpc*le-*-*)
  2748. + tmake_file="$tmake_file rs6000/t-linux64le"
  2749. + case ${enable_targets} in
  2750. + all | *powerpc64-* | *powerpc-*)
  2751. + tmake_file="$tmake_file rs6000/t-linux64lebe" ;;
  2752. + esac ;;
  2753. + *)
  2754. + case ${enable_targets} in
  2755. + all | *powerpc64le-* | *powerpcle-*)
  2756. + tmake_file="$tmake_file rs6000/t-linux64bele" ;;
  2757. + esac ;;
  2758. + esac
  2759. + extra_options="${extra_options} rs6000/linux64.opt"
  2760. + ;;
  2761. + *)
  2762. + tm_file="${tm_file} rs6000/linux.h glibc-stdint.h"
  2763. + tmake_file="$tmake_file rs6000/t-linux"
  2764. + ;;
  2765. + esac
  2766. + case ${target} in
  2767. + powerpc*-*-linux*ppc476*)
  2768. + tm_file="${tm_file} rs6000/476.h"
  2769. + extra_options="${extra_options} rs6000/476.opt" ;;
  2770. + powerpc*-*-linux*altivec*)
  2771. + tm_file="${tm_file} rs6000/linuxaltivec.h" ;;
  2772. + powerpc*-*-linux*spe*)
  2773. + tm_file="${tm_file} rs6000/linuxspe.h rs6000/e500.h" ;;
  2774. + powerpc*-*-linux*paired*)
  2775. + tm_file="${tm_file} rs6000/750cl.h" ;;
  2776. + esac
  2777. + if test x${enable_secureplt} = xyes; then
  2778. + tm_file="rs6000/secureplt.h ${tm_file}"
  2779. + fi
  2780. + ;;
  2781. +powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
  2782. + tm_file="${tm_file} elfos.h freebsd-spec.h rs6000/sysv4.h"
  2783. + tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks"
  2784. + extra_options="${extra_options} rs6000/sysv4.opt"
  2785. + extra_headers=ppc-asm.h
  2786. + case ${target} in
  2787. + *-vxworksae*)
  2788. + tm_file="${tm_file} vx-common.h vxworksae.h rs6000/vxworks.h rs6000/e500.h"
  2789. + tmake_file="${tmake_file} rs6000/t-vxworksae"
  2790. + ;;
  2791. + *-vxworks*)
  2792. + tm_file="${tm_file} vx-common.h vxworks.h rs6000/vxworks.h rs6000/e500.h"
  2793. + ;;
  2794. + esac
  2795. + ;;
  2796. +powerpc-*-lynxos*)
  2797. + xm_defines=POSIX
  2798. + tm_file="${tm_file} dbxelf.h elfos.h rs6000/sysv4.h rs6000/lynx.h lynx.h"
  2799. + tmake_file="t-lynx rs6000/t-lynx"
  2800. + extra_options="${extra_options} rs6000/sysv4.opt lynx.opt"
  2801. + thread_file=lynx
  2802. + gnu_ld=yes
  2803. + gas=yes
  2804. + ;;
  2805. +powerpcle-*-elf*)
  2806. + tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h"
  2807. + tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
  2808. + extra_options="${extra_options} rs6000/sysv4.opt"
  2809. + ;;
  2810. +powerpcle-*-eabisim*)
  2811. + tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h"
  2812. + tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
  2813. + extra_options="${extra_options} rs6000/sysv4.opt"
  2814. + use_gcc_stdint=wrap
  2815. + ;;
  2816. +powerpcle-*-eabi*)
  2817. + tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h"
  2818. + tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
  2819. + extra_options="${extra_options} rs6000/sysv4.opt"
  2820. + use_gcc_stdint=wrap
  2821. + ;;
  2822. +rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
  2823. + tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h rs6000/aix-stdint.h"
  2824. + tmake_file="rs6000/t-aix43 t-slibgcc"
  2825. + extra_options="${extra_options} rs6000/aix64.opt"
  2826. + use_collect2=yes
  2827. + thread_file='aix'
  2828. + use_gcc_stdint=provide
  2829. + extra_headers=
  2830. + ;;
  2831. +rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
  2832. + tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h rs6000/aix-stdint.h"
  2833. + extra_options="${extra_options} rs6000/aix64.opt"
  2834. + tmake_file="rs6000/t-aix43 t-slibgcc"
  2835. + use_collect2=yes
  2836. + thread_file='aix'
  2837. + use_gcc_stdint=wrap
  2838. + extra_headers=
  2839. + ;;
  2840. +rs6000-ibm-aix5.2.* | powerpc-ibm-aix5.2.*)
  2841. + tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h rs6000/aix-stdint.h"
  2842. + tmake_file="rs6000/t-aix52 t-slibgcc"
  2843. + extra_options="${extra_options} rs6000/aix64.opt"
  2844. + use_collect2=yes
  2845. + thread_file='aix'
  2846. + use_gcc_stdint=wrap
  2847. + extra_headers=
  2848. + ;;
  2849. +rs6000-ibm-aix5.3.* | powerpc-ibm-aix5.3.*)
  2850. + tm_file="${tm_file} rs6000/aix.h rs6000/aix53.h rs6000/xcoff.h rs6000/aix-stdint.h"
  2851. + tmake_file="rs6000/t-aix52 t-slibgcc"
  2852. + extra_options="${extra_options} rs6000/aix64.opt"
  2853. + use_collect2=yes
  2854. + thread_file='aix'
  2855. + use_gcc_stdint=wrap
  2856. + extra_headers=altivec.h
  2857. + ;;
  2858. +rs6000-ibm-aix[6789].* | powerpc-ibm-aix[6789].*)
  2859. + tm_file="${tm_file} rs6000/aix.h rs6000/aix61.h rs6000/xcoff.h rs6000/aix-stdint.h"
  2860. + tmake_file="rs6000/t-aix52 t-slibgcc"
  2861. + extra_options="${extra_options} rs6000/aix64.opt"
  2862. + use_collect2=yes
  2863. + thread_file='aix'
  2864. + use_gcc_stdint=wrap
  2865. + extra_headers=altivec.h
  2866. + ;;
  2867. +rl78-*-elf*)
  2868. + tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  2869. + target_has_targetm_common=no
  2870. + c_target_objs="rl78-c.o"
  2871. + cxx_target_objs="rl78-c.o"
  2872. + tmake_file="${tmake_file} rl78/t-rl78"
  2873. + ;;
  2874. +rx-*-elf*)
  2875. + tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  2876. + tmake_file="${tmake_file} rx/t-rx"
  2877. + ;;
  2878. +s390-*-linux*)
  2879. + default_gnu_indirect_function=yes
  2880. + tm_file="s390/s390.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h s390/linux.h"
  2881. + if test x$enable_targets = xall; then
  2882. + tmake_file="${tmake_file} s390/t-linux64"
  2883. + fi
  2884. + ;;
  2885. +s390x-*-linux*)
  2886. + default_gnu_indirect_function=yes
  2887. + tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h s390/linux.h"
  2888. + tm_p_file="linux-protos.h s390/s390-protos.h"
  2889. + md_file=s390/s390.md
  2890. + extra_modes=s390/s390-modes.def
  2891. + out_file=s390/s390.c
  2892. + tmake_file="${tmake_file} s390/t-linux64"
  2893. + ;;
  2894. +s390x-ibm-tpf*)
  2895. + tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h s390/tpf.h"
  2896. + tm_p_file=s390/s390-protos.h
  2897. + md_file=s390/s390.md
  2898. + extra_modes=s390/s390-modes.def
  2899. + out_file=s390/s390.c
  2900. + thread_file='tpf'
  2901. + extra_options="${extra_options} s390/tpf.opt"
  2902. + ;;
  2903. +score-*-elf)
  2904. + gas=yes
  2905. + gnu_ld=yes
  2906. + tm_file="dbxelf.h elfos.h score/elf.h score/score.h newlib-stdint.h"
  2907. + ;;
  2908. +sh-*-elf* | sh[12346l]*-*-elf* | \
  2909. + sh-*-linux* | sh[2346lbe]*-*-linux* | \
  2910. + sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
  2911. + sh64-*-netbsd* | sh64l*-*-netbsd*)
  2912. + tmake_file="${tmake_file} sh/t-sh sh/t-elf"
  2913. + if test x${with_endian} = x; then
  2914. + case ${target} in
  2915. + sh[1234]*be-*-* | sh[1234]*eb-*-*) with_endian=big ;;
  2916. + shbe-*-* | sheb-*-*) with_endian=big,little ;;
  2917. + sh[1234]l* | sh[34]*-*-linux*) with_endian=little ;;
  2918. + shl* | sh64l* | sh*-*-linux* | \
  2919. + sh5l* | sh-superh-elf) with_endian=little,big ;;
  2920. + sh[1234]*-*-*) with_endian=big ;;
  2921. + *) with_endian=big,little ;;
  2922. + esac
  2923. + fi
  2924. + # TM_ENDIAN_CONFIG is used by t-sh to determine multilibs.
  2925. + # First word : the default endian.
  2926. + # Second word: the secondary endian (optional).
  2927. + case ${with_endian} in
  2928. + big) TM_ENDIAN_CONFIG=mb ;;
  2929. + little) TM_ENDIAN_CONFIG=ml ;;
  2930. + big,little) TM_ENDIAN_CONFIG="mb ml" ;;
  2931. + little,big) TM_ENDIAN_CONFIG="ml mb" ;;
  2932. + *) echo "with_endian=${with_endian} not supported."; exit 1 ;;
  2933. + esac
  2934. + case ${with_endian} in
  2935. + little*) tm_file="sh/little.h ${tm_file}" ;;
  2936. + esac
  2937. + tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h"
  2938. + case ${target} in
  2939. + sh*-*-linux*) tmake_file="${tmake_file} sh/t-linux"
  2940. + tm_file="${tm_file} gnu-user.h linux.h glibc-stdint.h sh/linux.h" ;;
  2941. + sh*-*-netbsd*)
  2942. + tm_file="${tm_file} netbsd.h netbsd-elf.h sh/netbsd-elf.h"
  2943. + extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  2944. +
  2945. + ;;
  2946. + sh*-superh-elf) if test x$with_libgloss != xno; then
  2947. + with_libgloss=yes
  2948. + tm_file="${tm_file} sh/newlib.h"
  2949. + fi
  2950. + tm_file="${tm_file} sh/embed-elf.h"
  2951. + tm_file="${tm_file} sh/superh.h"
  2952. + extra_options="${extra_options} sh/superh.opt" ;;
  2953. + *) if test x$with_newlib = xyes \
  2954. + && test x$with_libgloss = xyes; then
  2955. + tm_file="${tm_file} sh/newlib.h"
  2956. + fi
  2957. + tm_file="${tm_file} sh/embed-elf.h" ;;
  2958. + esac
  2959. + case ${target} in
  2960. + sh5*-*-netbsd*)
  2961. + # SHmedia, 32-bit ABI
  2962. + tmake_file="${tmake_file} sh/t-sh64"
  2963. + ;;
  2964. + sh64*-netbsd*)
  2965. + # SHmedia, 64-bit ABI
  2966. + tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5-64"
  2967. + ;;
  2968. + *-*-netbsd)
  2969. + ;;
  2970. + sh64*-*-linux*)
  2971. + tmake_file="${tmake_file} sh/t-sh64"
  2972. + tm_file="${tm_file} sh/sh64.h"
  2973. + extra_headers="shmedia.h ushmedia.h sshmedia.h"
  2974. + ;;
  2975. + sh64*)
  2976. + tmake_file="${tmake_file} sh/t-sh64"
  2977. + tm_file="${tm_file} sh/sh64.h"
  2978. + if test x$with_newlib = xyes; then
  2979. + tm_file="${tm_file} newlib-stdint.h"
  2980. + fi
  2981. + extra_headers="shmedia.h ushmedia.h sshmedia.h"
  2982. + ;;
  2983. + *-*-elf*)
  2984. + tm_file="${tm_file} newlib-stdint.h"
  2985. + ;;
  2986. + esac
  2987. + # sed el/eb endian suffixes away to avoid confusion with sh[23]e
  2988. + case `echo ${target} | sed 's/e[lb]-/-/'` in
  2989. + sh64*-*-netbsd*) sh_cpu_target=sh5-64media ;;
  2990. + sh64* | sh5*-*-netbsd*) sh_cpu_target=sh5-32media ;;
  2991. + sh4a_single_only*) sh_cpu_target=sh4a-single-only ;;
  2992. + sh4a_single*) sh_cpu_target=sh4a-single ;;
  2993. + sh4a_nofpu*) sh_cpu_target=sh4a-nofpu ;;
  2994. + sh4al) sh_cpu_target=sh4al ;;
  2995. + sh4a*) sh_cpu_target=sh4a ;;
  2996. + sh4_single_only*) sh_cpu_target=sh4-single-only ;;
  2997. + sh4_single*) sh_cpu_target=sh4-single ;;
  2998. + sh4_nofpu*) sh_cpu_target=sh4-nofpu ;;
  2999. + sh4* | sh-superh-*) sh_cpu_target=sh4 ;;
  3000. + sh3e*) sh_cpu_target=sh3e ;;
  3001. + sh*-*-netbsd* | sh3*) sh_cpu_target=sh3 ;;
  3002. + sh2a_single_only*) sh_cpu_target=sh2a-single-only ;;
  3003. + sh2a_single*) sh_cpu_target=sh2a-single ;;
  3004. + sh2a_nofpu*) sh_cpu_target=sh2a-nofpu ;;
  3005. + sh2a*) sh_cpu_target=sh2a ;;
  3006. + sh2e*) sh_cpu_target=sh2e ;;
  3007. + sh2*) sh_cpu_target=sh2 ;;
  3008. + *) sh_cpu_target=sh1 ;;
  3009. + esac
  3010. + # did the user say --without-fp ?
  3011. + if test x$with_fp = xno; then
  3012. + case ${sh_cpu_target} in
  3013. + sh5-*media) sh_cpu_target=${sh_cpu_target}-nofpu ;;
  3014. + sh4al | sh1) ;;
  3015. + sh4a* ) sh_cpu_target=sh4a-nofpu ;;
  3016. + sh4*) sh_cpu_target=sh4-nofpu ;;
  3017. + sh3*) sh_cpu_target=sh3 ;;
  3018. + sh2a*) sh_cpu_target=sh2a-nofpu ;;
  3019. + sh2*) sh_cpu_target=sh2 ;;
  3020. + *) echo --without-fp not available for $target: ignored
  3021. + esac
  3022. + tm_defines="$tm_defines STRICT_NOFPU=1"
  3023. + fi
  3024. + sh_cpu_default="`echo $with_cpu|sed s/^m/sh/|tr A-Z_ a-z-`"
  3025. + case $sh_cpu_default in
  3026. + sh5-64media-nofpu | sh5-64media | \
  3027. + sh5-32media-nofpu | sh5-32media | sh5-compact-nofpu | sh5-compact | \
  3028. + sh2a-single-only | sh2a-single | sh2a-nofpu | sh2a | \
  3029. + sh4a-single-only | sh4a-single | sh4a-nofpu | sh4a | sh4al | \
  3030. + sh4-single-only | sh4-single | sh4-nofpu | sh4 | sh4-300 | \
  3031. + sh3e | sh3 | sh2e | sh2 | sh1) ;;
  3032. + "") sh_cpu_default=${sh_cpu_target} ;;
  3033. + *) echo "with_cpu=$with_cpu not supported"; exit 1 ;;
  3034. + esac
  3035. + sh_multilibs=${with_multilib_list}
  3036. + if test "$sh_multilibs" = "default" ; then
  3037. + case ${target} in
  3038. + sh64-superh-linux* | \
  3039. + sh[1234]*) sh_multilibs=${sh_cpu_target} ;;
  3040. + sh64* | sh5*) sh_multilibs=m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu,m5-64media,m5-64media-nofpu ;;
  3041. + sh-superh-*) sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;;
  3042. + sh*-*-linux*) sh_multilibs=m1,m2,m2a,m3e,m4 ;;
  3043. + sh*-*-netbsd*) sh_multilibs=m3,m3e,m4 ;;
  3044. + *) sh_multilibs=m1,m2,m2e,m4,m4-single,m4-single-only,m2a,m2a-single ;;
  3045. + esac
  3046. + if test x$with_fp = xno; then
  3047. + sh_multilibs="`echo $sh_multilibs|sed -e s/m4/sh4-nofpu/ -e s/,m4-[^,]*//g -e s/,m[23]e// -e s/m2a,m2a-single/m2a-nofpu/ -e s/m5-..m....,//g`"
  3048. + fi
  3049. + fi
  3050. + target_cpu_default=SELECT_`echo ${sh_cpu_default}|tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`
  3051. + tm_defines=${tm_defines}' SH_MULTILIB_CPU_DEFAULT=\"'`echo $sh_cpu_default|sed s/sh/m/`'\"'
  3052. + tm_defines="$tm_defines SUPPORT_`echo $sh_cpu_default | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1"
  3053. + sh_multilibs=`echo $sh_multilibs | sed -e 's/,/ /g' -e 's/^[Ss][Hh]/m/' -e 's/ [Ss][Hh]/ m/g' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz-`
  3054. + for sh_multilib in ${sh_multilibs}; do
  3055. + case ${sh_multilib} in
  3056. + m1 | m2 | m2e | m3 | m3e | \
  3057. + m4 | m4-single | m4-single-only | m4-nofpu | m4-300 |\
  3058. + m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al | \
  3059. + m2a | m2a-single | m2a-single-only | m2a-nofpu | \
  3060. + m5-64media | m5-64media-nofpu | \
  3061. + m5-32media | m5-32media-nofpu | \
  3062. + m5-compact | m5-compact-nofpu)
  3063. + # TM_MULTILIB_CONFIG is used by t-sh for the non-endian multilib definition
  3064. + # It is passed to MULTIILIB_OPTIONS verbatim.
  3065. + TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG}/${sh_multilib}"
  3066. + tm_defines="$tm_defines SUPPORT_`echo $sh_multilib | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1"
  3067. + ;;
  3068. + \!*) # TM_MULTILIB_EXCEPTIONS_CONFIG is used by t-sh
  3069. + # It is passed the MULTILIB_EXCEPTIONS verbatim.
  3070. + TM_MULTILIB_EXCEPTIONS_CONFIG="${TM_MULTILIB_EXCEPTIONS_CONFIG} `echo $sh_multilib | sed 's/^!//'`" ;;
  3071. + *)
  3072. + echo "with_multilib_list=${sh_multilib} not supported."
  3073. + exit 1
  3074. + ;;
  3075. + esac
  3076. + done
  3077. + TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's:^/::'`
  3078. + if test x${enable_incomplete_targets} = xyes ; then
  3079. + tm_defines="$tm_defines SUPPORT_SH1=1 SUPPORT_SH2E=1 SUPPORT_SH4=1 SUPPORT_SH4_SINGLE=1 SUPPORT_SH2A=1 SUPPORT_SH2A_SINGLE=1 SUPPORT_SH5_32MEDIA=1 SUPPORT_SH5_32MEDIA_NOFPU=1 SUPPORT_SH5_64MEDIA=1 SUPPORT_SH5_64MEDIA_NOFPU=1"
  3080. + fi
  3081. + tm_file="$tm_file ./sysroot-suffix.h"
  3082. + tmake_file="$tmake_file t-sysroot-suffix"
  3083. + ;;
  3084. +sh-*-rtems*)
  3085. + tmake_file="${tmake_file} sh/t-sh sh/t-rtems"
  3086. + tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h newlib-stdint.h"
  3087. + ;;
  3088. +sh-wrs-vxworks)
  3089. + tmake_file="$tmake_file sh/t-sh sh/t-vxworks"
  3090. + tm_file="${tm_file} elfos.h sh/elf.h sh/embed-elf.h vx-common.h vxworks.h sh/vxworks.h"
  3091. + ;;
  3092. +sparc-*-elf*)
  3093. + tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp-elf.h"
  3094. + case ${target} in
  3095. + *-leon-*)
  3096. + tmake_file="sparc/t-sparc sparc/t-leon"
  3097. + ;;
  3098. + *-leon[3-9]*)
  3099. + tmake_file="sparc/t-sparc sparc/t-leon3"
  3100. + ;;
  3101. + *)
  3102. + tmake_file="sparc/t-sparc sparc/t-elf"
  3103. + ;;
  3104. + esac
  3105. + ;;
  3106. +sparc-*-rtems*)
  3107. + tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h newlib-stdint.h"
  3108. + tmake_file="${tmake_file} sparc/t-sparc sparc/t-elf sparc/t-rtems"
  3109. + ;;
  3110. +sparc-*-linux*)
  3111. + tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/tso.h"
  3112. + extra_options="${extra_options} sparc/long-double-switch.opt"
  3113. + case ${target} in
  3114. + *-leon-*)
  3115. + tmake_file="${tmake_file} sparc/t-sparc sparc/t-leon"
  3116. + ;;
  3117. + *-leon[3-9]*)
  3118. + tmake_file="${tmake_file} sparc/t-sparc sparc/t-leon3"
  3119. + ;;
  3120. + *)
  3121. + tmake_file="${tmake_file} sparc/t-sparc"
  3122. + ;;
  3123. + esac
  3124. + if test x$enable_targets = xall; then
  3125. + tm_file="sparc/biarch64.h ${tm_file} sparc/linux64.h"
  3126. + tmake_file="${tmake_file} sparc/t-linux64"
  3127. + else
  3128. + tm_file="${tm_file} sparc/linux.h"
  3129. + tmake_file="${tmake_file} sparc/t-linux"
  3130. + fi
  3131. + ;;
  3132. +sparc-*-netbsdelf*)
  3133. + tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
  3134. + extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  3135. + extra_options="${extra_options} sparc/long-double-switch.opt"
  3136. + tmake_file="${tmake_file} sparc/t-sparc"
  3137. + ;;
  3138. +sparc*-*-solaris2*)
  3139. + tm_file="sparc/biarch64.h ${tm_file} ${sol2_tm_file} sol2-bi.h sparc/tso.h"
  3140. + case ${target} in
  3141. + sparc64-*-* | sparcv9-*-*)
  3142. + tm_file="sparc/default-64.h ${tm_file}"
  3143. + ;;
  3144. + *)
  3145. + test x$with_cpu != x || with_cpu=v9
  3146. + ;;
  3147. + esac
  3148. + tmake_file="${tmake_file} sparc/t-sparc sparc/t-sol2-64"
  3149. + ;;
  3150. +sparc-wrs-vxworks)
  3151. + tm_file="${tm_file} elfos.h sparc/sysv4.h vx-common.h vxworks.h sparc/vxworks.h"
  3152. + tmake_file="${tmake_file} sparc/t-sparc sparc/t-vxworks"
  3153. + ;;
  3154. +sparc64-*-elf*)
  3155. + tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h"
  3156. + extra_options="${extra_options}"
  3157. + tmake_file="${tmake_file} sparc/t-sparc"
  3158. + ;;
  3159. +sparc64-*-rtems*)
  3160. + tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h sparc/rtemself.h rtems.h"
  3161. + extra_options="${extra_options}"
  3162. + tmake_file="${tmake_file} sparc/t-sparc sparc/t-rtems-64"
  3163. + ;;
  3164. +sparc64-*-linux*)
  3165. + tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/default-64.h sparc/linux64.h sparc/tso.h"
  3166. + extra_options="${extra_options} sparc/long-double-switch.opt"
  3167. + tmake_file="${tmake_file} sparc/t-sparc sparc/t-linux64"
  3168. + ;;
  3169. +sparc64-*-freebsd*|ultrasparc-*-freebsd*)
  3170. + tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
  3171. + extra_options="${extra_options} sparc/long-double-switch.opt"
  3172. + case "x$with_cpu" in
  3173. + xultrasparc) ;;
  3174. + x) with_cpu=ultrasparc ;;
  3175. + *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
  3176. + esac
  3177. + tmake_file="${tmake_file} sparc/t-sparc"
  3178. + ;;
  3179. +sparc64-*-netbsd*)
  3180. + tm_file="sparc/biarch64.h ${tm_file}"
  3181. + tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
  3182. + extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  3183. + extra_options="${extra_options} sparc/long-double-switch.opt"
  3184. + tmake_file="${tmake_file} sparc/t-sparc sparc/t-netbsd64"
  3185. + ;;
  3186. +sparc64-*-openbsd*)
  3187. + tm_file="sparc/openbsd1-64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp64-elf.h"
  3188. + tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h sparc/openbsd64.h"
  3189. + extra_options="${extra_options} openbsd.opt"
  3190. + extra_options="${extra_options}"
  3191. + gas=yes gnu_ld=yes
  3192. + with_cpu=ultrasparc
  3193. + tmake_file="${tmake_file} sparc/t-sparc"
  3194. + ;;
  3195. +spu-*-elf*)
  3196. + tm_file="dbxelf.h elfos.h spu/spu-elf.h spu/spu.h newlib-stdint.h"
  3197. + tmake_file="spu/t-spu-elf"
  3198. + native_system_header_dir=/include
  3199. + extra_headers="spu_intrinsics.h spu_internals.h vmx2spu.h spu_mfcio.h vec_types.h spu_cache.h"
  3200. + extra_modes=spu/spu-modes.def
  3201. + c_target_objs="${c_target_objs} spu-c.o"
  3202. + cxx_target_objs="${cxx_target_objs} spu-c.o"
  3203. + ;;
  3204. +tic6x-*-elf)
  3205. + tm_file="elfos.h ${tm_file} c6x/elf-common.h c6x/elf.h"
  3206. + tm_file="${tm_file} dbxelf.h tm-dwarf2.h newlib-stdint.h"
  3207. + tmake_file="c6x/t-c6x c6x/t-c6x-elf"
  3208. + use_collect2=no
  3209. + ;;
  3210. +tic6x-*-uclinux)
  3211. + tm_file="elfos.h ${tm_file} gnu-user.h linux.h c6x/elf-common.h c6x/uclinux-elf.h"
  3212. + tm_file="${tm_file} dbxelf.h tm-dwarf2.h glibc-stdint.h"
  3213. + tm_file="${tm_file} ./sysroot-suffix.h"
  3214. + tmake_file="t-sysroot-suffix t-slibgcc"
  3215. + tmake_file="${tmake_file} c6x/t-c6x c6x/t-c6x-elf c6x/t-c6x-uclinux"
  3216. + use_collect2=no
  3217. + ;;
  3218. +tilegx*-*-linux*)
  3219. + tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h tilegx/linux.h ${tm_file}"
  3220. + tmake_file="${tmake_file} tilegx/t-tilegx"
  3221. + extra_objs="${extra_objs} mul-tables.o"
  3222. + c_target_objs="${c_target_objs} tilegx-c.o"
  3223. + cxx_target_objs="${cxx_target_objs} tilegx-c.o"
  3224. + extra_headers="feedback.h"
  3225. + case $target in
  3226. + tilegxbe-*)
  3227. + tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
  3228. + ;;
  3229. + esac
  3230. + ;;
  3231. +tilepro*-*-linux*)
  3232. + tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h tilepro/linux.h ${tm_file}"
  3233. + tmake_file="${tmake_file} tilepro/t-tilepro"
  3234. + extra_objs="${extra_objs} mul-tables.o"
  3235. + c_target_objs="${c_target_objs} tilepro-c.o"
  3236. + cxx_target_objs="${cxx_target_objs} tilepro-c.o"
  3237. + extra_headers="feedback.h"
  3238. + ;;
  3239. +v850-*-rtems*)
  3240. + target_cpu_default="TARGET_CPU_generic"
  3241. + tm_file="dbxelf.h elfos.h v850/v850.h"
  3242. + tm_file="${tm_file} rtems.h v850/rtems.h newlib-stdint.h"
  3243. + tmake_file="${tmake_file} v850/t-v850"
  3244. + tmake_file="${tmake_file} v850/t-rtems"
  3245. + use_collect2=no
  3246. + c_target_objs="v850-c.o"
  3247. + cxx_target_objs="v850-c.o"
  3248. + ;;
  3249. +v850*-*-*)
  3250. + case ${target} in
  3251. + v850e3v5-*-*)
  3252. + target_cpu_default="TARGET_CPU_v850e3v5"
  3253. + ;;
  3254. + v850e2v3-*-*)
  3255. + target_cpu_default="TARGET_CPU_v850e2v3"
  3256. + ;;
  3257. + v850e2-*-*)
  3258. + target_cpu_default="TARGET_CPU_v850e2"
  3259. + ;;
  3260. + v850e1-*-* | v850es-*-*)
  3261. + target_cpu_default="TARGET_CPU_v850e1"
  3262. + ;;
  3263. + v850e-*-*)
  3264. + target_cpu_default="TARGET_CPU_v850e"
  3265. + ;;
  3266. + v850-*-*)
  3267. + target_cpu_default="TARGET_CPU_generic"
  3268. + ;;
  3269. + esac
  3270. + tm_file="dbxelf.h elfos.h newlib-stdint.h v850/v850.h"
  3271. + if test x$stabs = xyes
  3272. + then
  3273. + tm_file="${tm_file} dbx.h"
  3274. + fi
  3275. + use_collect2=no
  3276. + c_target_objs="v850-c.o"
  3277. + cxx_target_objs="v850-c.o"
  3278. + use_gcc_stdint=wrap
  3279. + ;;
  3280. +vax-*-linux*)
  3281. + tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h vax/elf.h vax/linux.h"
  3282. + extra_options="${extra_options} vax/elf.opt"
  3283. + ;;
  3284. +vax-*-netbsdelf*)
  3285. + tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
  3286. + extra_options="${extra_options} netbsd.opt netbsd-elf.opt vax/elf.opt"
  3287. + ;;
  3288. +vax-*-openbsd*)
  3289. + tm_file="vax/vax.h vax/openbsd1.h openbsd.h openbsd-stdint.h openbsd-pthread.h vax/openbsd.h"
  3290. + extra_options="${extra_options} openbsd.opt"
  3291. + use_collect2=yes
  3292. + ;;
  3293. +xstormy16-*-elf)
  3294. + # For historical reasons, the target files omit the 'x'.
  3295. + tm_file="dbxelf.h elfos.h newlib-stdint.h stormy16/stormy16.h"
  3296. + tm_p_file=stormy16/stormy16-protos.h
  3297. + md_file=stormy16/stormy16.md
  3298. + out_file=stormy16/stormy16.c
  3299. + extra_options=stormy16/stormy16.opt
  3300. + tmake_file="stormy16/t-stormy16"
  3301. + ;;
  3302. +xtensa*-*-elf*)
  3303. + tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h xtensa/elf.h"
  3304. + extra_options="${extra_options} xtensa/elf.opt"
  3305. + ;;
  3306. +xtensa*-*-linux*)
  3307. + tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h xtensa/linux.h"
  3308. + tmake_file="${tmake_file} xtensa/t-xtensa"
  3309. + ;;
  3310. +am33_2.0-*-linux*)
  3311. + tm_file="mn10300/mn10300.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h mn10300/linux.h"
  3312. + gas=yes gnu_ld=yes
  3313. + use_collect2=no
  3314. + ;;
  3315. +m32c-*-rtems*)
  3316. + tm_file="dbxelf.h elfos.h ${tm_file} m32c/rtems.h rtems.h newlib-stdint.h"
  3317. + c_target_objs="m32c-pragma.o"
  3318. + cxx_target_objs="m32c-pragma.o"
  3319. + ;;
  3320. +m32c-*-elf*)
  3321. + tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  3322. + c_target_objs="m32c-pragma.o"
  3323. + cxx_target_objs="m32c-pragma.o"
  3324. + ;;
  3325. +*)
  3326. + echo "*** Configuration ${target} not supported" 1>&2
  3327. + exit 1
  3328. + ;;
  3329. +esac
  3330. +
  3331. +case ${target} in
  3332. +i[34567]86-*-linux* | x86_64-*-linux*)
  3333. + tmake_file="${tmake_file} i386/t-pmm_malloc i386/t-i386"
  3334. + ;;
  3335. +i[34567]86-*-* | x86_64-*-*)
  3336. + tmake_file="${tmake_file} i386/t-gmm_malloc i386/t-i386"
  3337. + ;;
  3338. +powerpc*-*-* | rs6000-*-*)
  3339. + tm_file="${tm_file} rs6000/option-defaults.h"
  3340. +esac
  3341. +
  3342. +if [ "$target_has_targetcm" = "no" ]; then
  3343. + c_target_objs="$c_target_objs default-c.o"
  3344. + cxx_target_objs="$cxx_target_objs default-c.o"
  3345. +fi
  3346. +
  3347. +if [ "$common_out_file" = "" ]; then
  3348. + if [ "$target_has_targetm_common" = "yes" ]; then
  3349. + common_out_file="$cpu_type/$cpu_type-common.c"
  3350. + else
  3351. + common_out_file="default-common.c"
  3352. + fi
  3353. +fi
  3354. +
  3355. +# Support for --with-cpu and related options (and a few unrelated options,
  3356. +# too).
  3357. +case ${with_cpu} in
  3358. + yes | no)
  3359. + echo "--with-cpu must be passed a value" 1>&2
  3360. + exit 1
  3361. + ;;
  3362. +esac
  3363. +
  3364. +# Set arch and cpu from ${target} and ${target_noncanonical}. Set cpu
  3365. +# to generic if there is no processor scheduler model for the target.
  3366. +arch=
  3367. +cpu=
  3368. +arch_without_sse2=no
  3369. +arch_without_64bit=no
  3370. +case ${target} in
  3371. + i386-*-freebsd*)
  3372. + if test $fbsd_major -ge 6; then
  3373. + arch=i486
  3374. + else
  3375. + arch=i386
  3376. + fi
  3377. + cpu=generic
  3378. + arch_without_sse2=yes
  3379. + arch_without_64bit=yes
  3380. + ;;
  3381. + i386-*-*)
  3382. + arch=i386
  3383. + cpu=i386
  3384. + arch_without_sse2=yes
  3385. + arch_without_64bit=yes
  3386. + ;;
  3387. + i486-*-*)
  3388. + arch=i486
  3389. + cpu=i486
  3390. + arch_without_sse2=yes
  3391. + arch_without_64bit=yes
  3392. + ;;
  3393. + i586-*-*)
  3394. + arch_without_sse2=yes
  3395. + arch_without_64bit=yes
  3396. + case ${target_noncanonical} in
  3397. + k6_2-*)
  3398. + arch=k6-2
  3399. + cpu=k6-2
  3400. + ;;
  3401. + k6_3-*)
  3402. + arch=k6-3
  3403. + cpu=k6-3
  3404. + ;;
  3405. + k6-*)
  3406. + arch=k6
  3407. + cpu=k6
  3408. + ;;
  3409. + pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
  3410. + arch=pentium-mmx
  3411. + cpu=pentium-mmx
  3412. + ;;
  3413. + *)
  3414. + arch=pentium
  3415. + cpu=pentium
  3416. + ;;
  3417. + esac
  3418. + ;;
  3419. + i686-*-* | i786-*-*)
  3420. + case ${target_noncanonical} in
  3421. + bdver4-*)
  3422. + arch=bdver4
  3423. + cpu=bdver4
  3424. + ;;
  3425. + bdver3-*)
  3426. + arch=bdver3
  3427. + cpu=bdver3
  3428. + ;;
  3429. + bdver2-*)
  3430. + arch=bdver2
  3431. + cpu=bdver2
  3432. + ;;
  3433. + bdver1-*)
  3434. + arch=bdver1
  3435. + cpu=bdver1
  3436. + ;;
  3437. + btver1-*)
  3438. + arch=btver1
  3439. + cpu=btver1
  3440. + ;;
  3441. + btver2-*)
  3442. + arch=btver2
  3443. + cpu=btver2
  3444. + ;;
  3445. + amdfam10-*|barcelona-*)
  3446. + arch=amdfam10
  3447. + cpu=amdfam10
  3448. + ;;
  3449. + k8_sse3-*|opteron_sse3-*|athlon64_sse3-*)
  3450. + arch=k8-sse3
  3451. + cpu=k8-sse3
  3452. + ;;
  3453. + k8-*|opteron-*|athlon64-*|athlon_fx-*)
  3454. + arch=k8
  3455. + cpu=k8
  3456. + ;;
  3457. + athlon_xp-*|athlon_mp-*|athlon_4-*)
  3458. + arch=athlon-4
  3459. + cpu=athlon-4
  3460. + arch_without_sse2=yes
  3461. + arch_without_64bit=yes
  3462. + ;;
  3463. + athlon_tbird-*|athlon-*)
  3464. + arch=athlon
  3465. + cpu=athlon
  3466. + arch_without_sse2=yes
  3467. + ;;
  3468. + geode-*)
  3469. + arch=geode
  3470. + cpu=geode
  3471. + arch_without_sse2=yes
  3472. + ;;
  3473. + pentium2-*)
  3474. + arch=pentium2
  3475. + cpu=pentium2
  3476. + arch_without_sse2=yes
  3477. + ;;
  3478. + pentium3-*|pentium3m-*)
  3479. + arch=pentium3
  3480. + cpu=pentium3
  3481. + arch_without_sse2=yes
  3482. + ;;
  3483. + pentium4-*|pentium4m-*)
  3484. + arch=pentium4
  3485. + cpu=pentium4
  3486. + ;;
  3487. + prescott-*)
  3488. + arch=prescott
  3489. + cpu=prescott
  3490. + ;;
  3491. + nocona-*)
  3492. + arch=nocona
  3493. + cpu=nocona
  3494. + ;;
  3495. + atom-*)
  3496. + arch=atom
  3497. + cpu=atom
  3498. + ;;
  3499. + slm-*)
  3500. + arch=slm
  3501. + cpu=slm
  3502. + ;;
  3503. + core2-*)
  3504. + arch=core2
  3505. + cpu=core2
  3506. + ;;
  3507. + corei7-*)
  3508. + arch=corei7
  3509. + cpu=corei7
  3510. + ;;
  3511. + corei7_avx-*)
  3512. + arch=corei7-avx
  3513. + cpu=corei7-avx
  3514. + ;;
  3515. + pentium_m-*)
  3516. + arch=pentium-m
  3517. + cpu=pentium-m
  3518. + ;;
  3519. + pentiumpro-*)
  3520. + arch=pentiumpro
  3521. + cpu=pentiumpro
  3522. + arch_without_sse2=yes
  3523. + ;;
  3524. + *)
  3525. + arch=pentiumpro
  3526. + cpu=generic
  3527. + arch_without_sse2=yes
  3528. + arch_without_64bit=yes
  3529. + ;;
  3530. + esac
  3531. + ;;
  3532. + x86_64-*-*)
  3533. + case ${target_noncanonical} in
  3534. + bdver4-*)
  3535. + arch=bdver4
  3536. + cpu=bdver4
  3537. + ;;
  3538. + bdver3-*)
  3539. + arch=bdver3
  3540. + cpu=bdver3
  3541. + ;;
  3542. + bdver2-*)
  3543. + arch=bdver2
  3544. + cpu=bdver2
  3545. + ;;
  3546. + bdver1-*)
  3547. + arch=bdver1
  3548. + cpu=bdver1
  3549. + ;;
  3550. + btver1-*)
  3551. + arch=btver1
  3552. + cpu=btver1
  3553. + ;;
  3554. + btver2-*)
  3555. + arch=btver2
  3556. + cpu=btver2
  3557. + ;;
  3558. + amdfam10-*|barcelona-*)
  3559. + arch=amdfam10
  3560. + cpu=amdfam10
  3561. + ;;
  3562. + k8_sse3-*|opteron_sse3-*|athlon64_sse3-*)
  3563. + arch=k8-sse3
  3564. + cpu=k8-sse3
  3565. + ;;
  3566. + k8-*|opteron-*|athlon_64-*)
  3567. + arch=k8
  3568. + cpu=k8
  3569. + ;;
  3570. + nocona-*)
  3571. + arch=nocona
  3572. + cpu=nocona
  3573. + ;;
  3574. + atom-*)
  3575. + arch=atom
  3576. + cpu=atom
  3577. + ;;
  3578. + slm-*)
  3579. + arch=slm
  3580. + cpu=slm
  3581. + ;;
  3582. + core2-*)
  3583. + arch=core2
  3584. + cpu=core2
  3585. + ;;
  3586. + corei7-*)
  3587. + arch=corei7
  3588. + cpu=corei7
  3589. + ;;
  3590. + *)
  3591. + arch=x86-64
  3592. + cpu=generic
  3593. + ;;
  3594. + esac
  3595. + ;;
  3596. +esac
  3597. +
  3598. +# If there is no $with_cpu option, try to infer one from ${target}.
  3599. +# This block sets nothing except for with_cpu.
  3600. +if test x$with_cpu = x ; then
  3601. + case ${target} in
  3602. + i[34567]86-*-*|x86_64-*-*)
  3603. + with_cpu=$cpu
  3604. + ;;
  3605. + alphaev6[78]*-*-*)
  3606. + with_cpu=ev67
  3607. + ;;
  3608. + alphaev6*-*-*)
  3609. + with_cpu=ev6
  3610. + ;;
  3611. + alphapca56*-*-*)
  3612. + with_cpu=pca56
  3613. + ;;
  3614. + alphaev56*-*-*)
  3615. + with_cpu=ev56
  3616. + ;;
  3617. + alphaev5*-*-*)
  3618. + with_cpu=ev5
  3619. + ;;
  3620. + frv-*-*linux* | frv400-*-*linux*)
  3621. + with_cpu=fr400
  3622. + ;;
  3623. + frv550-*-*linux*)
  3624. + with_cpu=fr550
  3625. + ;;
  3626. + m68k*-*-*)
  3627. + case "$with_arch" in
  3628. + "cf")
  3629. + with_cpu=${default_cf_cpu}
  3630. + ;;
  3631. + "" | "m68k")
  3632. + with_cpu=m${default_m68k_cpu}
  3633. + ;;
  3634. + esac
  3635. + ;;
  3636. + powerpc*-*-*spe*)
  3637. + if test x$enable_e500_double = xyes; then
  3638. + with_cpu=8548
  3639. + else
  3640. + with_cpu=8540
  3641. + fi
  3642. + ;;
  3643. + sparc*-*-*)
  3644. + case ${target} in
  3645. + *-leon-*)
  3646. + with_cpu=leon
  3647. + ;;
  3648. + *-leon[3-9]*)
  3649. + with_cpu=leon3
  3650. + ;;
  3651. + *)
  3652. + with_cpu="`echo ${target} | sed 's/-.*$//'`"
  3653. + ;;
  3654. + esac
  3655. + ;;
  3656. + esac
  3657. +
  3658. + # Avoid overriding --with-cpu-32 and --with-cpu-64 values.
  3659. + case ${target} in
  3660. + i[34567]86-*-*|x86_64-*-*)
  3661. + if test x$with_cpu_32 != x || test x$with_cpu_64 != x; then
  3662. + if test x$with_cpu_32 = x; then
  3663. + with_cpu_32=$with_cpu
  3664. + fi
  3665. + if test x$with_cpu_64 = x; then
  3666. + with_cpu_64=$with_cpu
  3667. + fi
  3668. + with_cpu=
  3669. + fi
  3670. + ;;
  3671. + esac
  3672. +fi
  3673. +
  3674. +# Support for --with-arch and related options (and a few unrelated options,
  3675. +# too).
  3676. +case ${with_arch} in
  3677. + yes | no)
  3678. + echo "--with-arch must be passed a value" 1>&2
  3679. + exit 1
  3680. + ;;
  3681. +esac
  3682. +
  3683. +# If there is no $with_arch option, try to infer one from ${target}.
  3684. +# This block sets nothing except for with_arch.
  3685. +if test x$with_arch = x ; then
  3686. + case ${target} in
  3687. + i[34567]86-*-darwin*|x86_64-*-darwin*)
  3688. + # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT
  3689. + # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h.
  3690. + ;;
  3691. + i[34567]86-*-*)
  3692. + # --with-fpmath sets the default ISA to SSE2, which is the same
  3693. + # ISA supported by Pentium 4.
  3694. + if test x$with_fpmath = x || test $arch_without_sse2 = no; then
  3695. + with_arch=$arch
  3696. + else
  3697. + with_arch=pentium4
  3698. + fi
  3699. + ;;
  3700. + x86_64-*-*)
  3701. + with_arch=$arch
  3702. + ;;
  3703. + mips64r5900-*-* | mips64r5900el-*-* | mipsr5900-*-* | mipsr5900el-*-*)
  3704. + with_arch=r5900
  3705. + ;;
  3706. + mips*-*-vxworks)
  3707. + with_arch=mips2
  3708. + ;;
  3709. + esac
  3710. +
  3711. + # Avoid overriding --with-arch-32 and --with-arch-64 values.
  3712. + case ${target} in
  3713. + i[34567]86-*-darwin*|x86_64-*-darwin*)
  3714. + # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT
  3715. + # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h.
  3716. + ;;
  3717. + i[34567]86-*-*|x86_64-*-*)
  3718. + if test x$with_arch_32 != x || test x$with_arch_64 != x; then
  3719. + if test x$with_arch_32 = x; then
  3720. + with_arch_32=$with_arch
  3721. + fi
  3722. + if test x$with_arch_64 = x; then
  3723. + if test $arch_without_64bit = yes; then
  3724. + # Set the default 64bit arch to x86-64 if the default arch
  3725. + # doesn't support 64bit.
  3726. + with_arch_64=x86-64
  3727. + else
  3728. + with_arch_64=$with_arch
  3729. + fi
  3730. + fi
  3731. + with_arch=
  3732. + elif test $arch_without_64bit$need_64bit_isa = yesyes; then
  3733. + # Set the default 64bit arch to x86-64 if the default arch
  3734. + # doesn't support 64bit and we need 64bit ISA.
  3735. + with_arch_32=$with_arch
  3736. + with_arch_64=x86-64
  3737. + with_arch=
  3738. + fi
  3739. + ;;
  3740. + esac
  3741. +fi
  3742. +
  3743. +# Infer a default setting for --with-float.
  3744. +if test x$with_float = x; then
  3745. + case ${target} in
  3746. + mips64r5900-*-* | mips64r5900el-*-* | mipsr5900-*-* | mipsr5900el-*-*)
  3747. + # The R5900 doesn't support 64-bit float. 32-bit float doesn't
  3748. + # comply with IEEE 754.
  3749. + with_float=soft
  3750. + ;;
  3751. + esac
  3752. +fi
  3753. +
  3754. +# Infer a default setting for --with-fpu.
  3755. +if test x$with_fpu = x; then
  3756. + case ${target} in
  3757. + mips64r5900-*-* | mips64r5900el-*-* | mipsr5900-*-* | mipsr5900el-*-*)
  3758. + # The R5900 FPU only supports single precision.
  3759. + with_fpu=single
  3760. + ;;
  3761. + esac
  3762. +fi
  3763. +
  3764. +# Support --with-fpmath.
  3765. +if test x$with_fpmath != x; then
  3766. + case ${target} in
  3767. + i[34567]86-*-* | x86_64-*-*)
  3768. + case ${with_fpmath} in
  3769. + avx)
  3770. + tm_file="${tm_file} i386/avxmath.h"
  3771. + ;;
  3772. + sse)
  3773. + tm_file="${tm_file} i386/ssemath.h"
  3774. + ;;
  3775. + *)
  3776. + echo "Invalid --with-fpmath=$with_fpmath" 1>&2
  3777. + exit 1
  3778. + ;;
  3779. + esac
  3780. + ;;
  3781. + *)
  3782. + echo "--with-fpmath isn't supported for $target." 1>&2
  3783. + exit 1
  3784. + ;;
  3785. + esac
  3786. +fi
  3787. +
  3788. +# Similarly for --with-schedule.
  3789. +if test x$with_schedule = x; then
  3790. + case ${target} in
  3791. + hppa1*)
  3792. + # Override default PA8000 scheduling model.
  3793. + with_schedule=7100LC
  3794. + ;;
  3795. + esac
  3796. +fi
  3797. +
  3798. +# Infer a default setting for --with-llsc.
  3799. +if test x$with_llsc = x; then
  3800. + case ${target} in
  3801. + mips64r5900-*-* | mips64r5900el-*-* | mipsr5900-*-* | mipsr5900el-*-*)
  3802. + # The R5900 doesn't support LL(D) and SC(D).
  3803. + with_llsc=no
  3804. + ;;
  3805. + mips*-*-linux*)
  3806. + # The kernel emulates LL and SC where necessary.
  3807. + with_llsc=yes
  3808. + ;;
  3809. + esac
  3810. +fi
  3811. +
  3812. +# Validate and mark as valid any --with options supported
  3813. +# by this target. In order to use a particular --with option
  3814. +# you must list it in supported_defaults; validating the value
  3815. +# is optional. This case statement should set nothing besides
  3816. +# supported_defaults.
  3817. +
  3818. +supported_defaults=
  3819. +case "${target}" in
  3820. + aarch64*-*-*)
  3821. + supported_defaults="abi cpu arch"
  3822. + for which in cpu arch; do
  3823. +
  3824. + eval "val=\$with_$which"
  3825. + base_val=`echo $val | sed -e 's/\+.*//'`
  3826. + ext_val=`echo $val | sed -e 's/[a-z0-9\-]\+//'`
  3827. +
  3828. + if [ $which = arch ]; then
  3829. + def=aarch64-arches.def
  3830. + pattern=AARCH64_ARCH
  3831. + else
  3832. + def=aarch64-cores.def
  3833. + pattern=AARCH64_CORE
  3834. + fi
  3835. +
  3836. + ext_mask=AARCH64_CPU_DEFAULT_FLAGS
  3837. +
  3838. + # Find the base CPU or ARCH id in aarch64-cores.def or
  3839. + # aarch64-arches.def
  3840. + if [ x"$base_val" = x ] \
  3841. + || grep "^$pattern(\"$base_val\"," \
  3842. + ${srcdir}/config/aarch64/$def \
  3843. + > /dev/null; then
  3844. +
  3845. + if [ $which = arch ]; then
  3846. + base_id=`grep "^$pattern(\"$base_val\"," \
  3847. + ${srcdir}/config/aarch64/$def | \
  3848. + sed -e 's/^[^,]*,[ ]*//' | \
  3849. + sed -e 's/,.*$//'`
  3850. + # Extract the architecture flags from aarch64-arches.def
  3851. + ext_mask=`grep "^$pattern(\"$base_val\"," \
  3852. + ${srcdir}/config/aarch64/$def | \
  3853. + sed -e 's/)$//' | \
  3854. + sed -e 's/^.*,//'`
  3855. + else
  3856. + base_id=`grep "^$pattern(\"$base_val\"," \
  3857. + ${srcdir}/config/aarch64/$def | \
  3858. + sed -e 's/^[^,]*,[ ]*//' | \
  3859. + sed -e 's/,.*$//'`
  3860. + fi
  3861. +
  3862. + while [ x"$ext_val" != x ]
  3863. + do
  3864. + ext_val=`echo $ext_val | sed -e 's/\+//'`
  3865. + ext=`echo $ext_val | sed -e 's/\+.*//'`
  3866. + base_ext=`echo $ext | sed -e 's/^no//'`
  3867. +
  3868. + if [ x"$base_ext" = x ] \
  3869. + || grep "^AARCH64_OPT_EXTENSION(\"$base_ext\"," \
  3870. + ${srcdir}/config/aarch64/aarch64-option-extensions.def \
  3871. + > /dev/null; then
  3872. +
  3873. + ext_on=`grep "^AARCH64_OPT_EXTENSION(\"$base_ext\"," \
  3874. + ${srcdir}/config/aarch64/aarch64-option-extensions.def | \
  3875. + sed -e 's/^[^,]*,[ ]*//' | \
  3876. + sed -e 's/,.*$//'`
  3877. + ext_off=`grep "^AARCH64_OPT_EXTENSION(\"$base_ext\"," \
  3878. + ${srcdir}/config/aarch64/aarch64-option-extensions.def | \
  3879. + sed -e 's/^[^,]*,[ ]*[^,]*,[ ]*//' | \
  3880. + sed -e 's/,.*$//' | \
  3881. + sed -e 's/).*$//'`
  3882. +
  3883. + if [ $ext = $base_ext ]; then
  3884. + # Adding extension
  3885. + ext_mask="("$ext_mask") | ("$ext_on")"
  3886. + else
  3887. + # Removing extension
  3888. + ext_mask="("$ext_mask") & ~("$ext_off")"
  3889. + fi
  3890. +
  3891. + true
  3892. + else
  3893. + echo "Unknown extension used in --with-$which=$val" 1>&2
  3894. + exit 1
  3895. + fi
  3896. + ext_val=`echo $ext_val | sed -e 's/[a-z0-9]\+//'`
  3897. + done
  3898. +
  3899. + ext_mask="(("$ext_mask") << 6)"
  3900. + if [ x"$base_id" != x ]; then
  3901. + target_cpu_cname="TARGET_CPU_$base_id | $ext_mask"
  3902. + fi
  3903. + true
  3904. + else
  3905. + echo "Unknown $which used in --with-$which=$val" 1>&2
  3906. + exit 1
  3907. + fi
  3908. + done
  3909. + ;;
  3910. +
  3911. + alpha*-*-*)
  3912. + supported_defaults="cpu tune"
  3913. + for which in cpu tune; do
  3914. + eval "val=\$with_$which"
  3915. + case "$val" in
  3916. + "" \
  3917. + | ev4 | ev45 | 21064 | ev5 | 21164 | ev56 | 21164a \
  3918. + | pca56 | 21164PC | 21164pc | ev6 | 21264 | ev67 \
  3919. + | 21264a)
  3920. + ;;
  3921. + *)
  3922. + echo "Unknown CPU used in --with-$which=$val" 1>&2
  3923. + exit 1
  3924. + ;;
  3925. + esac
  3926. + done
  3927. + ;;
  3928. +
  3929. + arc*-*-*) # was: arc*-*-linux-uclibc)
  3930. + supported_defaults="cpu"
  3931. + case $with_cpu in
  3932. + arc600|arc601|arc700)
  3933. + ;;
  3934. + *) echo "Unknown cpu type"
  3935. + exit 1
  3936. + ;;
  3937. + esac
  3938. + ;;
  3939. +
  3940. + arm*-*-*)
  3941. + supported_defaults="arch cpu float tune fpu abi mode tls"
  3942. + for which in cpu tune; do
  3943. + # See if it matches any of the entries in arm-cores.def
  3944. + eval "val=\$with_$which"
  3945. + if [ x"$val" = x ] \
  3946. + || grep "^ARM_CORE(\"$val\"," \
  3947. + ${srcdir}/config/arm/arm-cores.def \
  3948. + > /dev/null; then
  3949. + # Ok
  3950. + new_val=`grep "^ARM_CORE(\"$val\"," \
  3951. + ${srcdir}/config/arm/arm-cores.def | \
  3952. + sed -e 's/^[^,]*,[ ]*//' | \
  3953. + sed -e 's/,.*$//'`
  3954. + eval "target_${which}_cname=$new_val"
  3955. + echo "For $val real value is $new_val"
  3956. + true
  3957. + else
  3958. + echo "Unknown CPU used in --with-$which=$val" 1>&2
  3959. + exit 1
  3960. + fi
  3961. + done
  3962. +
  3963. + # See if it matches any of the entries in arm-arches.def
  3964. + if [ x"$with_arch" = x ] \
  3965. + || grep "^ARM_ARCH(\"$with_arch\"," \
  3966. + ${srcdir}/config/arm/arm-arches.def \
  3967. + > /dev/null; then
  3968. + # OK
  3969. + true
  3970. + else
  3971. + echo "Unknown arch used in --with-arch=$with_arch" 1>&2
  3972. + exit 1
  3973. + fi
  3974. +
  3975. + case "$with_float" in
  3976. + "" \
  3977. + | soft | hard | softfp)
  3978. + # OK
  3979. + ;;
  3980. + *)
  3981. + echo "Unknown floating point type used in --with-float=$with_float" 1>&2
  3982. + exit 1
  3983. + ;;
  3984. + esac
  3985. +
  3986. + # see if it matches any of the entries in arm-fpus.def
  3987. + if [ x"$with_fpu" = x ] \
  3988. + || grep "^ARM_FPU(\"$with_fpu\"," \
  3989. + ${srcdir}/config/arm/arm-fpus.def \
  3990. + > /dev/null; then
  3991. + # OK
  3992. + true
  3993. + else
  3994. + echo "Unknown fpu used in --with-fpu=$with_fpu" 1>&2
  3995. + exit 1
  3996. + fi
  3997. +
  3998. + case "$with_abi" in
  3999. + "" \
  4000. + | apcs-gnu | atpcs | aapcs | iwmmxt | aapcs-linux )
  4001. + #OK
  4002. + ;;
  4003. + *)
  4004. + echo "Unknown ABI used in --with-abi=$with_abi"
  4005. + exit 1
  4006. + ;;
  4007. + esac
  4008. +
  4009. + case "$with_mode" in
  4010. + "" \
  4011. + | arm | thumb )
  4012. + #OK
  4013. + ;;
  4014. + *)
  4015. + echo "Unknown mode used in --with-mode=$with_mode"
  4016. + exit 1
  4017. + ;;
  4018. + esac
  4019. +
  4020. + case "$with_tls" in
  4021. + "" \
  4022. + | gnu | gnu2)
  4023. + # OK
  4024. + ;;
  4025. + *)
  4026. + echo "Unknown TLS method used in --with-tls=$with_tls" 1>&2
  4027. + exit 1
  4028. + ;;
  4029. + esac
  4030. +
  4031. + if test "x$with_arch" != x && test "x$with_cpu" != x; then
  4032. + echo "Warning: --with-arch overrides --with-cpu=$with_cpu" 1>&2
  4033. + fi
  4034. +
  4035. + # Add extra multilibs
  4036. + if test "x$with_multilib_list" != x; then
  4037. + arm_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
  4038. + for arm_multilib in ${arm_multilibs}; do
  4039. + case ${arm_multilib} in
  4040. + aprofile)
  4041. + # Note that arm/t-aprofile is a
  4042. + # stand-alone make file fragment to be
  4043. + # used only with itself. We do not
  4044. + # specifically use the
  4045. + # TM_MULTILIB_OPTION framework because
  4046. + # this shorthand is more
  4047. + # pragmatic. Additionally it is only
  4048. + # designed to work without any
  4049. + # with-cpu, with-arch with-mode
  4050. + # with-fpu or with-float options.
  4051. + if test "x$with_arch" != x \
  4052. + || test "x$with_cpu" != x \
  4053. + || test "x$with_float" != x \
  4054. + || test "x$with_fpu" != x \
  4055. + || test "x$with_mode" != x ; then
  4056. + echo "Error: You cannot use any of --with-arch/cpu/fpu/float/mode with --with-multilib-list=aprofile" 1>&2
  4057. + exit 1
  4058. + fi
  4059. + tmake_file="${tmake_file} arm/t-aprofile"
  4060. + break
  4061. + ;;
  4062. + default)
  4063. + ;;
  4064. + *)
  4065. + echo "Error: --with-multilib-list=${with_multilib_list} not supported." 1>&2
  4066. + exit 1
  4067. + ;;
  4068. + esac
  4069. + done
  4070. + fi
  4071. + ;;
  4072. +
  4073. + fr*-*-*linux*)
  4074. + supported_defaults=cpu
  4075. + case "$with_cpu" in
  4076. + fr400) ;;
  4077. + fr550) ;;
  4078. + *)
  4079. + echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
  4080. + exit 1
  4081. + ;;
  4082. + esac
  4083. + ;;
  4084. +
  4085. + fido-*-* | m68k*-*-*)
  4086. + supported_defaults="arch cpu"
  4087. + case "$with_arch" in
  4088. + "" | "m68k"| "cf")
  4089. + m68k_arch_family="$with_arch"
  4090. + ;;
  4091. + *)
  4092. + echo "Invalid --with-arch=$with_arch" 1>&2
  4093. + exit 1
  4094. + ;;
  4095. + esac
  4096. +
  4097. + # We always have a $with_cpu setting here.
  4098. + case "$with_cpu" in
  4099. + "m68000" | "m68010" | "m68020" | "m68030" | "m68040" | "m68060")
  4100. + m68k_cpu_ident=$with_cpu
  4101. + ;;
  4102. + "m68020-40")
  4103. + m68k_cpu_ident=m68020
  4104. + tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_40"
  4105. + ;;
  4106. + "m68020-60")
  4107. + m68k_cpu_ident=m68020
  4108. + tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_60"
  4109. + ;;
  4110. + *)
  4111. + # We need the C identifier rather than the string.
  4112. + m68k_cpu_ident=`awk -v arg="\"$with_cpu\"" \
  4113. + 'BEGIN { FS="[ \t]*[,()][ \t]*" }; \
  4114. + $1 == "M68K_DEVICE" && $2 == arg { print $3 }' \
  4115. + ${srcdir}/config/m68k/m68k-devices.def`
  4116. + if [ x"$m68k_cpu_ident" = x ] ; then
  4117. + echo "Unknown CPU used in --with-cpu=$with_cpu" 1>&2
  4118. + exit 1
  4119. + fi
  4120. + with_cpu="mcpu=$with_cpu"
  4121. + ;;
  4122. + esac
  4123. + ;;
  4124. +
  4125. + hppa*-*-*)
  4126. + supported_defaults="arch schedule"
  4127. +
  4128. + case "$with_arch" in
  4129. + "" | 1.0 | 1.1 | 2.0)
  4130. + # OK
  4131. + ;;
  4132. + *)
  4133. + echo "Unknown architecture used in --with-arch=$with_arch" 1>&2
  4134. + exit 1
  4135. + ;;
  4136. + esac
  4137. +
  4138. + case "$with_schedule" in
  4139. + "" | 700 | 7100 | 7100LC | 7200 | 7300 | 8000)
  4140. + # OK
  4141. + ;;
  4142. + *)
  4143. + echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2
  4144. + exit 1
  4145. + ;;
  4146. + esac
  4147. + ;;
  4148. +
  4149. + i[34567]86-*-* | x86_64-*-*)
  4150. + supported_defaults="abi arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64"
  4151. + for which in arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64; do
  4152. + eval "val=\$with_$which"
  4153. + case " $x86_archs " in
  4154. + *" ${val} "*)
  4155. + case "${target}" in
  4156. + x86_64-*-*)
  4157. + case "x$which" in
  4158. + *_32)
  4159. + ;;
  4160. + *)
  4161. + echo "CPU given in --with-$which=$val doesn't support 64bit mode." 1>&2
  4162. + exit 1
  4163. + ;;
  4164. + esac
  4165. + ;;
  4166. + esac
  4167. + # OK
  4168. + ;;
  4169. + *)
  4170. + if test x${val} != x; then
  4171. + case " $x86_64_archs " in
  4172. + *" ${val} "*)
  4173. + # OK
  4174. + ;;
  4175. + *)
  4176. + # Allow $x86_cpus --with-cpu=/--with-tune=
  4177. + case "x$which" in
  4178. + xcpu*|xtune*)
  4179. + case " $x86_cpus " in
  4180. + *" ${val} "*)
  4181. + # OK
  4182. + ;;
  4183. + *)
  4184. + echo "Unknown CPU given in --with-$which=$val." 1>&2
  4185. + exit 1
  4186. + ;;
  4187. + esac
  4188. + ;;
  4189. + *)
  4190. + echo "Unknown CPU given in --with-$which=$val." 1>&2
  4191. + exit 1
  4192. + ;;
  4193. + esac
  4194. + ;;
  4195. + esac
  4196. + fi
  4197. + ;;
  4198. + esac
  4199. + done
  4200. + ;;
  4201. +
  4202. + mips*-*-*)
  4203. + supported_defaults="abi arch arch_32 arch_64 float fpu nan tune tune_32 tune_64 divide llsc mips-plt synci"
  4204. +
  4205. + case ${with_float} in
  4206. + "" | soft | hard)
  4207. + # OK
  4208. + ;;
  4209. + *)
  4210. + echo "Unknown floating point type used in --with-float=$with_float" 1>&2
  4211. + exit 1
  4212. + ;;
  4213. + esac
  4214. +
  4215. + case ${with_fpu} in
  4216. + "" | single | double)
  4217. + # OK
  4218. + ;;
  4219. + *)
  4220. + echo "Unknown fpu type used in --with-fpu=$with_fpu" 1>&2
  4221. + exit 1
  4222. + ;;
  4223. + esac
  4224. +
  4225. + case ${with_nan} in
  4226. + "" | 2008 | legacy)
  4227. + # OK
  4228. + ;;
  4229. + *)
  4230. + echo "Unknown NaN encoding used in --with-nan=$with_nan" 1>&2
  4231. + exit 1
  4232. + ;;
  4233. + esac
  4234. +
  4235. + case ${with_abi} in
  4236. + "" | 32 | o64 | n32 | 64 | eabi)
  4237. + # OK
  4238. + ;;
  4239. + *)
  4240. + echo "Unknown ABI used in --with-abi=$with_abi" 1>&2
  4241. + exit 1
  4242. + ;;
  4243. + esac
  4244. +
  4245. + case ${with_divide} in
  4246. + "" | breaks | traps)
  4247. + # OK
  4248. + ;;
  4249. + *)
  4250. + echo "Unknown division check type use in --with-divide=$with_divide" 1>&2
  4251. + exit 1
  4252. + ;;
  4253. + esac
  4254. +
  4255. + case ${with_llsc} in
  4256. + yes)
  4257. + with_llsc=llsc
  4258. + ;;
  4259. + no)
  4260. + with_llsc="no-llsc"
  4261. + ;;
  4262. + "")
  4263. + # OK
  4264. + ;;
  4265. + *)
  4266. + echo "Unknown llsc type used in --with-llsc" 1>&2
  4267. + exit 1
  4268. + ;;
  4269. + esac
  4270. +
  4271. + case ${with_mips_plt} in
  4272. + yes)
  4273. + with_mips_plt=plt
  4274. + ;;
  4275. + no)
  4276. + with_mips_plt=no-plt
  4277. + ;;
  4278. + "")
  4279. + ;;
  4280. + *)
  4281. + echo "Unknown --with-mips-plt argument: $with_mips_plt" 1>&2
  4282. + exit 1
  4283. + ;;
  4284. + esac
  4285. +
  4286. + case ${with_synci} in
  4287. + yes)
  4288. + with_synci=synci
  4289. + ;;
  4290. + no)
  4291. + with_synci=no-synci
  4292. + ;;
  4293. + "")
  4294. + ;;
  4295. + *)
  4296. + echo "Unknown synci type used in --with-synci" 1>&2
  4297. + exit 1
  4298. + ;;
  4299. + esac
  4300. + ;;
  4301. +
  4302. + nds32*-*-*)
  4303. + supported_defaults="arch nds32_lib"
  4304. +
  4305. + # process --with-arch
  4306. + case "${with_arch}" in
  4307. + "" | v2 | v3 | v3m)
  4308. + # OK
  4309. + ;;
  4310. + *)
  4311. + echo "Cannot accept --with-arch=$with_arch, available values are: v2 v3 v3m" 1>&2
  4312. + exit 1
  4313. + ;;
  4314. + esac
  4315. +
  4316. + # process --with-nds32-lib
  4317. + case "${with_nds32_lib}" in
  4318. + "")
  4319. + # the default library is newlib
  4320. + with_nds32_lib=newlib
  4321. + ;;
  4322. + newlib)
  4323. + # OK
  4324. + ;;
  4325. + mculib)
  4326. + # OK
  4327. + ;;
  4328. + *)
  4329. + echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
  4330. + exit 1
  4331. + ;;
  4332. + esac
  4333. + ;;
  4334. +
  4335. + powerpc*-*-* | rs6000-*-*)
  4336. + supported_defaults="abi cpu cpu_32 cpu_64 float tune tune_32 tune_64"
  4337. +
  4338. + for which in cpu cpu_32 cpu_64 tune tune_32 tune_64; do
  4339. + eval "val=\$with_$which"
  4340. + case ${val} in
  4341. + default32 | default64)
  4342. + case $which in
  4343. + cpu | tune)
  4344. + ;;
  4345. + *)
  4346. + echo "$val only valid for --with-cpu and --with-tune." 1>&2
  4347. + exit 1
  4348. + ;;
  4349. + esac
  4350. + with_which="with_$which"
  4351. + eval $with_which=
  4352. + ;;
  4353. + 405cr)
  4354. + tm_defines="${tm_defines} CONFIG_PPC405CR"
  4355. + eval "with_$which=405"
  4356. + ;;
  4357. + "" | common | native \
  4358. + | power | power[2345678] | power6x | powerpc | powerpc64 \
  4359. + | rios | rios1 | rios2 | rsc | rsc1 | rs64a \
  4360. + | 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \
  4361. + | 476 | 476fp | 505 | 601 | 602 | 603 | 603e | ec603e \
  4362. + | 604 | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \
  4363. + | a2 | e300c[23] | 854[08] | e500mc | e500mc64 | e5500 | e6500 \
  4364. + | titan | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5 | cell)
  4365. + # OK
  4366. + ;;
  4367. + *)
  4368. + echo "Unknown cpu used in --with-$which=$val." 1>&2
  4369. + exit 1
  4370. + ;;
  4371. + esac
  4372. + done
  4373. +
  4374. + case "$with_abi" in
  4375. + "" | elfv1 | elfv2 )
  4376. + #OK
  4377. + ;;
  4378. + *)
  4379. + echo "Unknown ABI used in --with-abi=$with_abi"
  4380. + exit 1
  4381. + ;;
  4382. + esac
  4383. + ;;
  4384. +
  4385. + s390*-*-*)
  4386. + supported_defaults="arch mode tune"
  4387. +
  4388. + for which in arch tune; do
  4389. + eval "val=\$with_$which"
  4390. + case ${val} in
  4391. + "" | g5 | g6 | z900 | z990 | z9-109 | z9-ec | z10 | z196 | zEC12)
  4392. + # OK
  4393. + ;;
  4394. + *)
  4395. + echo "Unknown cpu used in --with-$which=$val." 1>&2
  4396. + exit 1
  4397. + ;;
  4398. + esac
  4399. + done
  4400. +
  4401. + case ${with_mode} in
  4402. + "" | esa | zarch)
  4403. + # OK
  4404. + ;;
  4405. + *)
  4406. + echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2
  4407. + exit 1
  4408. + ;;
  4409. + esac
  4410. + ;;
  4411. +
  4412. + sh[123456ble]-*-* | sh-*-*)
  4413. + supported_defaults="cpu"
  4414. + case "`echo $with_cpu | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz- | sed s/sh/m/`" in
  4415. + "" | m1 | m2 | m2e | m3 | m3e | m4 | m4-single | m4-single-only | m4-nofpu )
  4416. + # OK
  4417. + ;;
  4418. + m2a | m2a-single | m2a-single-only | m2a-nofpu)
  4419. + ;;
  4420. + m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al)
  4421. + ;;
  4422. + *)
  4423. + echo "Unknown CPU used in --with-cpu=$with_cpu, known values:" 1>&2
  4424. + echo "m1 m2 m2e m3 m3e m4 m4-single m4-single-only m4-nofpu" 1>&2
  4425. + echo "m4a m4a-single m4a-single-only m4a-nofpu m4al" 1>&2
  4426. + echo "m2a m2a-single m2a-single-only m2a-nofpu" 1>&2
  4427. + exit 1
  4428. + ;;
  4429. + esac
  4430. + ;;
  4431. + sparc*-*-*)
  4432. + supported_defaults="cpu float tune"
  4433. +
  4434. + for which in cpu tune; do
  4435. + eval "val=\$with_$which"
  4436. + case ${val} in
  4437. + "" | sparc | sparcv9 | sparc64 \
  4438. + | v7 | cypress \
  4439. + | v8 | supersparc | hypersparc | leon | leon3 \
  4440. + | sparclite | f930 | f934 | sparclite86x \
  4441. + | sparclet | tsc701 \
  4442. + | v9 | ultrasparc | ultrasparc3 | niagara | niagara2 \
  4443. + | niagara3 | niagara4)
  4444. + # OK
  4445. + ;;
  4446. + *)
  4447. + echo "Unknown cpu used in --with-$which=$val" 1>&2
  4448. + exit 1
  4449. + ;;
  4450. + esac
  4451. + done
  4452. +
  4453. + case ${with_float} in
  4454. + "" | soft | hard)
  4455. + # OK
  4456. + ;;
  4457. + *)
  4458. + echo "Unknown floating point type used in --with-float=$with_float" 1>&2
  4459. + exit 1
  4460. + ;;
  4461. + esac
  4462. + ;;
  4463. +
  4464. + spu-*-*)
  4465. + supported_defaults="arch tune"
  4466. +
  4467. + for which in arch tune; do
  4468. + eval "val=\$with_$which"
  4469. + case ${val} in
  4470. + "" | cell | celledp)
  4471. + # OK
  4472. + ;;
  4473. + *)
  4474. + echo "Unknown cpu used in --with-$which=$val." 1>&2
  4475. + exit 1
  4476. + ;;
  4477. + esac
  4478. + done
  4479. + ;;
  4480. +
  4481. + tic6x-*-*)
  4482. + supported_defaults="arch"
  4483. +
  4484. + case ${with_arch} in
  4485. + "" | c62x | c64x | c64x+ | c67x | c67x+ | c674x)
  4486. + # OK
  4487. + ;;
  4488. + *)
  4489. + echo "Unknown arch used in --with-arch=$with_arch." 1>&2
  4490. + exit 1
  4491. + ;;
  4492. + esac
  4493. + ;;
  4494. +
  4495. + v850*-*-*)
  4496. + supported_defaults=cpu
  4497. + case ${with_cpu} in
  4498. + "" | v850e | v850e1 | v850e2 | v850es | v850e2v3 | v850e3v5)
  4499. + # OK
  4500. + ;;
  4501. + *)
  4502. + echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
  4503. + exit 1
  4504. + ;;
  4505. + esac
  4506. + ;;
  4507. +esac
  4508. +
  4509. +# Set some miscellaneous flags for particular targets.
  4510. +target_cpu_default2=
  4511. +case ${target} in
  4512. + aarch64*-*-*)
  4513. + if test x"$target_cpu_cname" != x
  4514. + then
  4515. + target_cpu_default2=$target_cpu_cname
  4516. + fi
  4517. + ;;
  4518. +
  4519. + arm*-*-*)
  4520. + if test x$target_cpu_cname = x
  4521. + then
  4522. + target_cpu_default2=TARGET_CPU_generic
  4523. + else
  4524. + target_cpu_default2=TARGET_CPU_$target_cpu_cname
  4525. + fi
  4526. + ;;
  4527. +
  4528. + hppa*-*-*)
  4529. + if test x$gas = xyes
  4530. + then
  4531. + target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
  4532. + fi
  4533. + ;;
  4534. +
  4535. + fido*-*-* | m68k*-*-*)
  4536. + target_cpu_default2=$m68k_cpu_ident
  4537. + tmake_file="m68k/t-opts $tmake_file"
  4538. + if [ x"$m68k_arch_family" != x ]; then
  4539. + tmake_file="m68k/t-$m68k_arch_family $tmake_file"
  4540. + fi
  4541. + ;;
  4542. +
  4543. + i[34567]86-*-darwin* | x86_64-*-darwin*)
  4544. + ;;
  4545. + i[34567]86-*-linux* | x86_64-*-linux*)
  4546. + tmake_file="$tmake_file i386/t-linux"
  4547. + ;;
  4548. + i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu)
  4549. + tmake_file="$tmake_file i386/t-kfreebsd"
  4550. + ;;
  4551. + i[34567]86-*-gnu*)
  4552. + tmake_file="$tmake_file i386/t-gnu"
  4553. + ;;
  4554. + i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
  4555. + ;;
  4556. + i[34567]86-*-cygwin* | x86_64-*-cygwin*)
  4557. + ;;
  4558. + i[34567]86-*-mingw* | x86_64-*-mingw*)
  4559. + ;;
  4560. + i[34567]86-*-freebsd* | x86_64-*-freebsd*)
  4561. + ;;
  4562. + ia64*-*-linux*)
  4563. + ;;
  4564. +
  4565. + mips*-*-*)
  4566. + if test x$gnu_ld = xyes
  4567. + then
  4568. + target_cpu_default2="MASK_SPLIT_ADDRESSES"
  4569. + fi
  4570. + case ${target} in
  4571. + mips*el-*-*)
  4572. + tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
  4573. + ;;
  4574. + esac
  4575. + tmake_file="mips/t-mips $tmake_file"
  4576. + ;;
  4577. +
  4578. + powerpc*-*-* | rs6000-*-*)
  4579. + # FIXME: The PowerPC port uses the value set at compile time,
  4580. + # although it's only cosmetic.
  4581. + if test "x$with_cpu" != x
  4582. + then
  4583. + target_cpu_default2="\\\"$with_cpu\\\""
  4584. + fi
  4585. + out_file=rs6000/rs6000.c
  4586. + c_target_objs="${c_target_objs} rs6000-c.o"
  4587. + cxx_target_objs="${cxx_target_objs} rs6000-c.o"
  4588. + tmake_file="rs6000/t-rs6000 ${tmake_file}"
  4589. + ;;
  4590. +
  4591. + sh[123456ble]*-*-* | sh-*-*)
  4592. + c_target_objs="${c_target_objs} sh-c.o"
  4593. + cxx_target_objs="${cxx_target_objs} sh-c.o"
  4594. + ;;
  4595. +
  4596. + sparc*-*-*)
  4597. + # Some standard aliases.
  4598. + case x$with_cpu in
  4599. + xsparc)
  4600. + with_cpu=v7
  4601. + ;;
  4602. + xsparcv9 | xsparc64)
  4603. + with_cpu=v9
  4604. + ;;
  4605. + esac
  4606. +
  4607. + if test x$with_tune = x ; then
  4608. + case ${target} in
  4609. + *-leon-*)
  4610. + with_tune=leon
  4611. + ;;
  4612. + *-leon[3-9]*)
  4613. + with_tune=leon3
  4614. + ;;
  4615. + esac
  4616. + fi
  4617. +
  4618. + # The SPARC port checks this value at compile-time.
  4619. + target_cpu_default2="TARGET_CPU_$with_cpu"
  4620. + ;;
  4621. +
  4622. + v850*-*-*)
  4623. + case "x$with_cpu" in
  4624. + x)
  4625. + ;;
  4626. + xv850e | xv850e1 | xv850e2 | xv850e2v3 | xv850e3v5)
  4627. + target_cpu_default2="TARGET_CPU_$with_cpu"
  4628. + ;;
  4629. + xv850es)
  4630. + target_cpu_default2="TARGET_CPU_v850e1"
  4631. + ;;
  4632. + esac
  4633. + ;;
  4634. +esac
  4635. +
  4636. +t=
  4637. +all_defaults="abi cpu cpu_32 cpu_64 arch arch_32 arch_64 tune tune_32 tune_64 schedule float mode fpu nan divide llsc mips-plt synci tls"
  4638. +for option in $all_defaults
  4639. +do
  4640. + eval "val=\$with_"`echo $option | sed s/-/_/g`
  4641. + if test -n "$val"; then
  4642. + case " $supported_defaults " in
  4643. + *" $option "*)
  4644. + ;;
  4645. + *)
  4646. + echo "This target does not support --with-$option." 2>&1
  4647. + echo "Valid --with options are: $supported_defaults" 2>&1
  4648. + exit 1
  4649. + ;;
  4650. + esac
  4651. +
  4652. + if test "x$t" = x
  4653. + then
  4654. + t="{ \"$option\", \"$val\" }"
  4655. + else
  4656. + t="${t}, { \"$option\", \"$val\" }"
  4657. + fi
  4658. + fi
  4659. +done
  4660. +
  4661. +if test "x$t" = x
  4662. +then
  4663. + configure_default_options="{ { NULL, NULL} }"
  4664. +else
  4665. + configure_default_options="{ ${t} }"
  4666. +fi
  4667. +
  4668. +if test "$target_cpu_default2" != ""
  4669. +then
  4670. + if test "$target_cpu_default" != ""
  4671. + then
  4672. + target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
  4673. + else
  4674. + target_cpu_default=$target_cpu_default2
  4675. + fi
  4676. +fi
  4677. diff -Nur gcc-4.9.2-or1k.orig/gcc/configure gcc-4.9.2-or1k/gcc/configure
  4678. --- gcc-4.9.2-or1k.orig/gcc/configure 2015-07-13 13:42:14.000000000 -0500
  4679. +++ gcc-4.9.2-or1k/gcc/configure 2015-07-13 14:13:48.322287000 -0500
  4680. @@ -27373,6 +27373,9 @@
  4681. else
  4682. gcc_cv_libc_provides_ssp=no
  4683. case "$target" in
  4684. + *-*-musl*)
  4685. + # All versions of musl provide stack protector
  4686. + gcc_cv_libc_provides_ssp=yes;;
  4687. *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
  4688. # glibc 2.4 and later provides __stack_chk_fail and
  4689. # either __stack_chk_guard, or TLS access to stack guard canary.
  4690. @@ -27405,6 +27408,7 @@
  4691. # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
  4692. # simply assert that glibc does provide this, which is true for all
  4693. # realistically usable GNU/Hurd configurations.
  4694. + # All supported versions of musl provide it as well
  4695. gcc_cv_libc_provides_ssp=yes;;
  4696. *-*-darwin* | *-*-freebsd*)
  4697. ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
  4698. @@ -27494,6 +27498,9 @@
  4699. gcc_cv_target_dl_iterate_phdr=no
  4700. fi
  4701. ;;
  4702. + *-linux-musl*)
  4703. + gcc_cv_target_dl_iterate_phdr=yes
  4704. + ;;
  4705. esac
  4706. if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
  4707. diff -Nur gcc-4.9.2-or1k.orig/gcc/configure.ac gcc-4.9.2-or1k/gcc/configure.ac
  4708. --- gcc-4.9.2-or1k.orig/gcc/configure.ac 2015-07-13 13:42:14.000000000 -0500
  4709. +++ gcc-4.9.2-or1k/gcc/configure.ac 2015-07-13 14:13:48.322287000 -0500
  4710. @@ -5053,6 +5053,9 @@
  4711. gcc_cv_libc_provides_ssp,
  4712. [gcc_cv_libc_provides_ssp=no
  4713. case "$target" in
  4714. + *-*-musl*)
  4715. + # All versions of musl provide stack protector
  4716. + gcc_cv_libc_provides_ssp=yes;;
  4717. *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
  4718. # glibc 2.4 and later provides __stack_chk_fail and
  4719. # either __stack_chk_guard, or TLS access to stack guard canary.
  4720. @@ -5079,6 +5082,7 @@
  4721. # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
  4722. # simply assert that glibc does provide this, which is true for all
  4723. # realistically usable GNU/Hurd configurations.
  4724. + # All supported versions of musl provide it as well
  4725. gcc_cv_libc_provides_ssp=yes;;
  4726. *-*-darwin* | *-*-freebsd*)
  4727. AC_CHECK_FUNC(__stack_chk_fail,[gcc_cv_libc_provides_ssp=yes],
  4728. @@ -5145,6 +5149,9 @@
  4729. gcc_cv_target_dl_iterate_phdr=no
  4730. fi
  4731. ;;
  4732. + *-linux-musl*)
  4733. + gcc_cv_target_dl_iterate_phdr=yes
  4734. + ;;
  4735. esac
  4736. GCC_TARGET_TEMPLATE([TARGET_DL_ITERATE_PHDR])
  4737. if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
  4738. diff -Nur gcc-4.9.2-or1k.orig/gcc/configure.ac.orig gcc-4.9.2-or1k/gcc/configure.ac.orig
  4739. --- gcc-4.9.2-or1k.orig/gcc/configure.ac.orig 1969-12-31 18:00:00.000000000 -0600
  4740. +++ gcc-4.9.2-or1k/gcc/configure.ac.orig 2015-07-13 13:42:14.000000000 -0500
  4741. @@ -0,0 +1,5685 @@
  4742. +# configure.ac for GCC
  4743. +# Process this file with autoconf to generate a configuration script.
  4744. +
  4745. +# Copyright (C) 1997-2014 Free Software Foundation, Inc.
  4746. +
  4747. +#This file is part of GCC.
  4748. +
  4749. +#GCC is free software; you can redistribute it and/or modify it under
  4750. +#the terms of the GNU General Public License as published by the Free
  4751. +#Software Foundation; either version 3, or (at your option) any later
  4752. +#version.
  4753. +
  4754. +#GCC is distributed in the hope that it will be useful, but WITHOUT
  4755. +#ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  4756. +#FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  4757. +#for more details.
  4758. +
  4759. +#You should have received a copy of the GNU General Public License
  4760. +#along with GCC; see the file COPYING3. If not see
  4761. +#<http://www.gnu.org/licenses/>.
  4762. +
  4763. +# --------------------------------
  4764. +# Initialization and sanity checks
  4765. +# --------------------------------
  4766. +
  4767. +AC_PREREQ(2.64)
  4768. +AC_INIT
  4769. +AC_CONFIG_SRCDIR(tree.c)
  4770. +AC_CONFIG_HEADER(auto-host.h:config.in)
  4771. +
  4772. +gcc_version=`cat $srcdir/BASE-VER`
  4773. +
  4774. +# Determine the host, build, and target systems
  4775. +AC_CANONICAL_BUILD
  4776. +AC_CANONICAL_HOST
  4777. +AC_CANONICAL_TARGET
  4778. +
  4779. +# Determine the noncanonical target name, for directory use.
  4780. +ACX_NONCANONICAL_TARGET
  4781. +
  4782. +# Determine the target- and build-specific subdirectories
  4783. +GCC_TOPLEV_SUBDIRS
  4784. +
  4785. +# Set program_transform_name
  4786. +AC_ARG_PROGRAM
  4787. +
  4788. +# Check for bogus environment variables.
  4789. +# Test if LIBRARY_PATH contains the notation for the current directory
  4790. +# since this would lead to problems installing/building glibc.
  4791. +# LIBRARY_PATH contains the current directory if one of the following
  4792. +# is true:
  4793. +# - one of the terminals (":" and ";") is the first or last sign
  4794. +# - two terminals occur directly after each other
  4795. +# - the path contains an element with a dot in it
  4796. +AC_MSG_CHECKING(LIBRARY_PATH variable)
  4797. +changequote(,)dnl
  4798. +case ${LIBRARY_PATH} in
  4799. + [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
  4800. + library_path_setting="contains current directory"
  4801. + ;;
  4802. + *)
  4803. + library_path_setting="ok"
  4804. + ;;
  4805. +esac
  4806. +changequote([,])dnl
  4807. +AC_MSG_RESULT($library_path_setting)
  4808. +if test "$library_path_setting" != "ok"; then
  4809. +AC_MSG_ERROR([
  4810. +*** LIBRARY_PATH shouldn't contain the current directory when
  4811. +*** building gcc. Please change the environment variable
  4812. +*** and run configure again.])
  4813. +fi
  4814. +
  4815. +# Test if GCC_EXEC_PREFIX contains the notation for the current directory
  4816. +# since this would lead to problems installing/building glibc.
  4817. +# GCC_EXEC_PREFIX contains the current directory if one of the following
  4818. +# is true:
  4819. +# - one of the terminals (":" and ";") is the first or last sign
  4820. +# - two terminals occur directly after each other
  4821. +# - the path contains an element with a dot in it
  4822. +AC_MSG_CHECKING(GCC_EXEC_PREFIX variable)
  4823. +changequote(,)dnl
  4824. +case ${GCC_EXEC_PREFIX} in
  4825. + [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
  4826. + gcc_exec_prefix_setting="contains current directory"
  4827. + ;;
  4828. + *)
  4829. + gcc_exec_prefix_setting="ok"
  4830. + ;;
  4831. +esac
  4832. +changequote([,])dnl
  4833. +AC_MSG_RESULT($gcc_exec_prefix_setting)
  4834. +if test "$gcc_exec_prefix_setting" != "ok"; then
  4835. +AC_MSG_ERROR([
  4836. +*** GCC_EXEC_PREFIX shouldn't contain the current directory when
  4837. +*** building gcc. Please change the environment variable
  4838. +*** and run configure again.])
  4839. +fi
  4840. +
  4841. +# -----------
  4842. +# Directories
  4843. +# -----------
  4844. +
  4845. +# Specify the local prefix
  4846. +local_prefix=
  4847. +AC_ARG_WITH(local-prefix,
  4848. +[AS_HELP_STRING([--with-local-prefix=DIR],
  4849. + [specifies directory to put local include])],
  4850. +[case "${withval}" in
  4851. +yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
  4852. +no) ;;
  4853. +*) local_prefix=$with_local_prefix ;;
  4854. +esac])
  4855. +
  4856. +# Default local prefix if it is empty
  4857. +if test x$local_prefix = x; then
  4858. + local_prefix=/usr/local
  4859. +fi
  4860. +
  4861. +# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
  4862. +# passed in by the toplevel make and thus we'd get different behavior
  4863. +# depending on where we built the sources.
  4864. +gcc_gxx_include_dir=
  4865. +# Specify the g++ header file directory
  4866. +AC_ARG_WITH(gxx-include-dir,
  4867. +[AS_HELP_STRING([--with-gxx-include-dir=DIR],
  4868. + [specifies directory to put g++ header files])],
  4869. +[case "${withval}" in
  4870. +yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
  4871. +no) ;;
  4872. +*) gcc_gxx_include_dir=$with_gxx_include_dir ;;
  4873. +esac])
  4874. +
  4875. +# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
  4876. +if test x${gcc_gxx_include_dir} = x; then
  4877. + if test x${enable_version_specific_runtime_libs} = xyes; then
  4878. + gcc_gxx_include_dir='${libsubdir}/include/c++'
  4879. + else
  4880. + libstdcxx_incdir='include/c++/$(version)'
  4881. + if test x$host != x$target; then
  4882. + libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
  4883. + fi
  4884. + gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
  4885. + fi
  4886. +fi
  4887. +
  4888. +gcc_gxx_include_dir_add_sysroot=0
  4889. +if test "${with_sysroot+set}" = set; then
  4890. + gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
  4891. + if test "${gcc_gxx_without_sysroot}"; then
  4892. + gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
  4893. + gcc_gxx_include_dir_add_sysroot=1
  4894. + fi
  4895. +fi
  4896. +
  4897. +AC_ARG_WITH(cpp_install_dir,
  4898. +[AC_HELP_STRING([--with-cpp-install-dir=DIR],
  4899. + [install the user visible C preprocessor in DIR
  4900. + (relative to PREFIX) as well as PREFIX/bin])],
  4901. +[if test x$withval = xyes; then
  4902. + AC_MSG_ERROR([option --with-cpp-install-dir requires an argument])
  4903. +elif test x$withval != xno; then
  4904. + cpp_install_dir=$withval
  4905. +fi])
  4906. +
  4907. +# We would like to our source tree to be readonly. However when releases or
  4908. +# pre-releases are generated, the flex/bison generated files as well as the
  4909. +# various formats of manuals need to be included along with the rest of the
  4910. +# sources. Therefore we have --enable-generated-files-in-srcdir to do
  4911. +# just that.
  4912. +
  4913. +AC_MSG_CHECKING([whether to place generated files in the source directory])
  4914. + dnl generated-files-in-srcdir is disabled by default
  4915. + AC_ARG_ENABLE(generated-files-in-srcdir,
  4916. + [AS_HELP_STRING([--enable-generated-files-in-srcdir],
  4917. + [put copies of generated files in source dir
  4918. + intended for creating source tarballs for users
  4919. + without texinfo bison or flex])],
  4920. + generated_files_in_srcdir=$enableval,
  4921. + generated_files_in_srcdir=no)
  4922. +
  4923. +AC_MSG_RESULT($generated_files_in_srcdir)
  4924. +
  4925. +if test "$generated_files_in_srcdir" = "yes"; then
  4926. + GENINSRC=''
  4927. +else
  4928. + GENINSRC='#'
  4929. +fi
  4930. +AC_SUBST(GENINSRC)
  4931. +
  4932. +# -------------------
  4933. +# Find default linker
  4934. +# -------------------
  4935. +
  4936. +# With GNU ld
  4937. +AC_ARG_WITH(gnu-ld,
  4938. +[AS_HELP_STRING([--with-gnu-ld], [arrange to work with GNU ld])],
  4939. +gnu_ld_flag="$with_gnu_ld",
  4940. +gnu_ld_flag=no)
  4941. +
  4942. +# With pre-defined ld
  4943. +AC_ARG_WITH(ld,
  4944. +[AS_HELP_STRING([--with-ld], [arrange to use the specified ld (full pathname)])],
  4945. +DEFAULT_LINKER="$with_ld")
  4946. +if test x"${DEFAULT_LINKER+set}" = x"set"; then
  4947. + if test ! -x "$DEFAULT_LINKER"; then
  4948. + AC_MSG_ERROR([cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER])
  4949. + elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
  4950. + gnu_ld_flag=yes
  4951. + fi
  4952. + AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER",
  4953. + [Define to enable the use of a default linker.])
  4954. +fi
  4955. +
  4956. +AC_MSG_CHECKING([whether a default linker was specified])
  4957. +if test x"${DEFAULT_LINKER+set}" = x"set"; then
  4958. + if test x"$gnu_ld_flag" = x"no"; then
  4959. + AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
  4960. + else
  4961. + AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
  4962. + fi
  4963. +else
  4964. + AC_MSG_RESULT(no)
  4965. +fi
  4966. +
  4967. +# With demangler in GNU ld
  4968. +AC_ARG_WITH(demangler-in-ld,
  4969. +[AS_HELP_STRING([--with-demangler-in-ld], [try to use demangler in GNU ld])],
  4970. +demangler_in_ld="$with_demangler_in_ld",
  4971. +demangler_in_ld=yes)
  4972. +
  4973. +# ----------------------
  4974. +# Find default assembler
  4975. +# ----------------------
  4976. +
  4977. +# With GNU as
  4978. +AC_ARG_WITH(gnu-as,
  4979. +[AS_HELP_STRING([--with-gnu-as], [arrange to work with GNU as])],
  4980. +gas_flag="$with_gnu_as",
  4981. +gas_flag=no)
  4982. +
  4983. +AC_ARG_WITH(as,
  4984. +[AS_HELP_STRING([--with-as], [arrange to use the specified as (full pathname)])],
  4985. +DEFAULT_ASSEMBLER="$with_as")
  4986. +if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
  4987. + if test ! -x "$DEFAULT_ASSEMBLER"; then
  4988. + AC_MSG_ERROR([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])
  4989. + elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
  4990. + gas_flag=yes
  4991. + fi
  4992. + AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER",
  4993. + [Define to enable the use of a default assembler.])
  4994. +fi
  4995. +
  4996. +AC_MSG_CHECKING([whether a default assembler was specified])
  4997. +if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
  4998. + if test x"$gas_flag" = x"no"; then
  4999. + AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
  5000. + else
  5001. + AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
  5002. + fi
  5003. +else
  5004. + AC_MSG_RESULT(no)
  5005. +fi
  5006. +
  5007. +# ---------------
  5008. +# Find C compiler
  5009. +# ---------------
  5010. +
  5011. +# If a non-executable a.out is present (e.g. created by GNU as above even if
  5012. +# invoked with -v only), the IRIX 6 native ld just overwrites the existing
  5013. +# file, even when creating an executable, so an execution test fails.
  5014. +# Remove possible default executable files to avoid this.
  5015. +#
  5016. +# FIXME: This really belongs into AC_PROG_CC and can be removed once
  5017. +# Autoconf includes it.
  5018. +rm -f a.out a.exe b.out
  5019. +
  5020. +# Find the native compiler
  5021. +AC_PROG_CC
  5022. +AC_PROG_CXX
  5023. +ACX_PROG_GNAT([-I"$srcdir"/ada])
  5024. +
  5025. +# Remove the -O2: for historical reasons, unless bootstrapping we prefer
  5026. +# optimizations to be activated explicitly by the toplevel.
  5027. +case "$CC" in
  5028. + */prev-gcc/xgcc*) ;;
  5029. + *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[[ ]]//" -e "s/-O[[gs]][[ ]]//" -e "s/-O[[0-9]]*[[ ]]//" `
  5030. + CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[[ ]]//" -e "s/-O[[gs]][[ ]]//" -e "s/-O[[0-9]]*[[ ]]//" ` ;;
  5031. +esac
  5032. +AC_SUBST(CFLAGS)
  5033. +AC_SUBST(CXXFLAGS)
  5034. +
  5035. +# Determine PICFLAG for target gnatlib.
  5036. +GCC_PICFLAG_FOR_TARGET
  5037. +AC_SUBST(PICFLAG_FOR_TARGET)
  5038. +
  5039. +# -------------------------
  5040. +# Check C compiler features
  5041. +# -------------------------
  5042. +
  5043. +AC_USE_SYSTEM_EXTENSIONS
  5044. +AC_PROG_CPP
  5045. +AC_C_INLINE
  5046. +
  5047. +AC_SYS_LARGEFILE
  5048. +
  5049. +# sizeof(char) is 1 by definition.
  5050. +AC_CHECK_SIZEOF(void *)
  5051. +AC_CHECK_SIZEOF(short)
  5052. +AC_CHECK_SIZEOF(int)
  5053. +AC_CHECK_SIZEOF(long)
  5054. +AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)])
  5055. +AC_CHECK_TYPES([__int64], [AC_CHECK_SIZEOF(__int64)])
  5056. +GCC_STDINT_TYPES
  5057. +
  5058. +# ---------------------
  5059. +# Warnings and checking
  5060. +# ---------------------
  5061. +
  5062. +# Check $CC warning features (if it's GCC).
  5063. +# We want to use -pedantic, but we don't want warnings about
  5064. +# * 'long long'
  5065. +# * variadic macros
  5066. +# * overlong strings
  5067. +# * C++11 narrowing conversions in { }
  5068. +# So, we only use -pedantic if we can disable those warnings.
  5069. +
  5070. +# In stage 1, disable -Wformat warnings from old GCCs about new % codes
  5071. +AC_ARG_ENABLE(build-format-warnings,
  5072. + AS_HELP_STRING([--disable-build-format-warnings],[don't use -Wformat while building GCC]),
  5073. + [],[enable_build_format_warnings=yes])
  5074. +AS_IF([test $enable_build_format_warnings = no],
  5075. + [wf_opt=-Wno-format],[wf_opt=])
  5076. +ACX_PROG_CC_WARNING_OPTS(
  5077. + m4_quote(m4_do([-W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt])), [loose_warn])
  5078. +ACX_PROG_CC_WARNING_OPTS(
  5079. + m4_quote(m4_do([-Wstrict-prototypes -Wmissing-prototypes])),
  5080. + [c_loose_warn])
  5081. +ACX_PROG_CC_WARNING_OPTS(
  5082. + m4_quote(m4_do([-Wmissing-format-attribute])), [strict_warn])
  5083. +ACX_PROG_CC_WARNING_OPTS(
  5084. + m4_quote(m4_do([-Wold-style-definition -Wc++-compat])), [c_strict_warn])
  5085. +ACX_PROG_CC_WARNING_ALMOST_PEDANTIC(
  5086. + m4_quote(m4_do([-Wno-long-long -Wno-variadic-macros ],
  5087. + [-Wno-overlength-strings])), [strict_warn])
  5088. +ACX_PROG_CC_WARNINGS_ARE_ERRORS([manual], [strict_warn])
  5089. +
  5090. +# The above macros do nothing if the compiler is not GCC. However, the
  5091. +# Makefile has more goo to add other flags, so these variables are used
  5092. +# to enable warnings only for GCC.
  5093. +warn_cflags=
  5094. +warn_cxxflags=
  5095. +if test "x$GCC" = "xyes"; then
  5096. + warn_cflags='$(GCC_WARN_CFLAGS)'
  5097. + warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
  5098. +fi
  5099. +AC_SUBST(warn_cflags)
  5100. +AC_SUBST(warn_cxxflags)
  5101. +
  5102. +# Disable exceptions and RTTI if building with g++
  5103. +ACX_PROG_CC_WARNING_OPTS(
  5104. + m4_quote(m4_do([-fno-exceptions -fno-rtti -fasynchronous-unwind-tables])),
  5105. + [noexception_flags])
  5106. +
  5107. +# Enable expensive internal checks
  5108. +is_release=
  5109. +if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
  5110. + is_release=yes
  5111. +fi
  5112. +
  5113. +AC_ARG_ENABLE(checking,
  5114. +[AS_HELP_STRING([[--enable-checking[=LIST]]],
  5115. + [enable expensive run-time checks. With LIST,
  5116. + enable only specific categories of checks.
  5117. + Categories are: yes,no,all,none,release.
  5118. + Flags are: assert,df,fold,gc,gcac,gimple,misc,
  5119. + rtlflag,rtl,runtime,tree,valgrind,types])],
  5120. +[ac_checking_flags="${enableval}"],[
  5121. +# Determine the default checks.
  5122. +if test x$is_release = x ; then
  5123. + ac_checking_flags=yes
  5124. +else
  5125. + ac_checking_flags=release
  5126. +fi])
  5127. +IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
  5128. +for check in release $ac_checking_flags
  5129. +do
  5130. + case $check in
  5131. + # these set all the flags to specific states
  5132. + yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
  5133. + ac_fold_checking= ; ac_gc_checking=1 ;
  5134. + ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
  5135. + ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
  5136. + ac_tree_checking=1 ; ac_valgrind_checking= ;
  5137. + ac_types_checking=1 ;;
  5138. + no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
  5139. + ac_fold_checking= ; ac_gc_checking= ;
  5140. + ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
  5141. + ac_rtlflag_checking= ; ac_runtime_checking= ;
  5142. + ac_tree_checking= ; ac_valgrind_checking= ;
  5143. + ac_types_checking= ;;
  5144. + all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
  5145. + ac_fold_checking=1 ; ac_gc_checking=1 ;
  5146. + ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
  5147. + ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
  5148. + ac_tree_checking=1 ; ac_valgrind_checking= ;
  5149. + ac_types_checking=1 ;;
  5150. + release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
  5151. + ac_fold_checking= ; ac_gc_checking= ;
  5152. + ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
  5153. + ac_rtlflag_checking= ; ac_runtime_checking=1 ;
  5154. + ac_tree_checking= ; ac_valgrind_checking= ;
  5155. + ac_types_checking= ;;
  5156. + # these enable particular checks
  5157. + assert) ac_assert_checking=1 ;;
  5158. + df) ac_df_checking=1 ;;
  5159. + fold) ac_fold_checking=1 ;;
  5160. + gc) ac_gc_checking=1 ;;
  5161. + gcac) ac_gc_always_collect=1 ;;
  5162. + gimple) ac_gimple_checking=1 ;;
  5163. + misc) ac_checking=1 ;;
  5164. + rtl) ac_rtl_checking=1 ;;
  5165. + rtlflag) ac_rtlflag_checking=1 ;;
  5166. + runtime) ac_runtime_checking=1 ;;
  5167. + tree) ac_tree_checking=1 ;;
  5168. + types) ac_types_checking=1 ;;
  5169. + valgrind) ac_valgrind_checking=1 ;;
  5170. + *) AC_MSG_ERROR(unknown check category $check) ;;
  5171. + esac
  5172. +done
  5173. +IFS="$ac_save_IFS"
  5174. +
  5175. +nocommon_flag=""
  5176. +if test x$ac_checking != x ; then
  5177. + AC_DEFINE(ENABLE_CHECKING, 1,
  5178. +[Define if you want more run-time sanity checks. This one gets a grab
  5179. + bag of miscellaneous but relatively cheap checks.])
  5180. + nocommon_flag=-fno-common
  5181. +fi
  5182. +AC_SUBST(nocommon_flag)
  5183. +if test x$ac_df_checking != x ; then
  5184. + AC_DEFINE(ENABLE_DF_CHECKING, 1,
  5185. +[Define if you want more run-time sanity checks for dataflow.])
  5186. +fi
  5187. +if test x$ac_assert_checking != x ; then
  5188. + AC_DEFINE(ENABLE_ASSERT_CHECKING, 1,
  5189. +[Define if you want assertions enabled. This is a cheap check.])
  5190. +fi
  5191. +if test x$ac_gimple_checking != x ; then
  5192. + AC_DEFINE(ENABLE_GIMPLE_CHECKING, 1,
  5193. +[Define if you want operations on GIMPLE (the basic data structure of
  5194. +the high-level optimizers) to be checked for dynamic type safety at
  5195. +runtime. This is moderately expensive.])
  5196. +fi
  5197. +GCC_TARGET_TEMPLATE(ENABLE_RUNTIME_CHECKING)
  5198. +if test x$ac_runtime_checking != x ; then
  5199. + AC_DEFINE(ENABLE_RUNTIME_CHECKING, 1,
  5200. +[Define if you want runtime assertions enabled. This is a cheap check.])
  5201. +fi
  5202. +if test x$ac_tree_checking != x ; then
  5203. + AC_DEFINE(ENABLE_TREE_CHECKING, 1,
  5204. +[Define if you want all operations on trees (the basic data
  5205. + structure of the front ends) to be checked for dynamic type safety
  5206. + at runtime. This is moderately expensive. The tree browser debugging
  5207. + routines will also be enabled by this option.
  5208. + ])
  5209. + TREEBROWSER=tree-browser.o
  5210. + TREECHECKING=yes
  5211. +fi
  5212. +if test x$ac_types_checking != x ; then
  5213. + AC_DEFINE(ENABLE_TYPES_CHECKING, 1,
  5214. +[Define if you want all gimple types to be verified after gimplifiation.
  5215. + This is cheap.
  5216. + ])
  5217. +fi
  5218. +AC_SUBST(TREEBROWSER)
  5219. +AC_SUBST(TREECHECKING)
  5220. +if test x$ac_rtl_checking != x ; then
  5221. + AC_DEFINE(ENABLE_RTL_CHECKING, 1,
  5222. +[Define if you want all operations on RTL (the basic data structure
  5223. + of the optimizer and back end) to be checked for dynamic type safety
  5224. + at runtime. This is quite expensive.])
  5225. +fi
  5226. +if test x$ac_rtlflag_checking != x ; then
  5227. + AC_DEFINE(ENABLE_RTL_FLAG_CHECKING, 1,
  5228. +[Define if you want RTL flag accesses to be checked against the RTL
  5229. + codes that are supported for each access macro. This is relatively
  5230. + cheap.])
  5231. +fi
  5232. +if test x$ac_gc_checking != x ; then
  5233. + AC_DEFINE(ENABLE_GC_CHECKING, 1,
  5234. +[Define if you want the garbage collector to do object poisoning and
  5235. + other memory allocation checks. This is quite expensive.])
  5236. +fi
  5237. +if test x$ac_gc_always_collect != x ; then
  5238. + AC_DEFINE(ENABLE_GC_ALWAYS_COLLECT, 1,
  5239. +[Define if you want the garbage collector to operate in maximally
  5240. + paranoid mode, validating the entire heap and collecting garbage at
  5241. + every opportunity. This is extremely expensive.])
  5242. +fi
  5243. +if test x$ac_fold_checking != x ; then
  5244. + AC_DEFINE(ENABLE_FOLD_CHECKING, 1,
  5245. +[Define if you want fold checked that it never destructs its argument.
  5246. + This is quite expensive.])
  5247. +fi
  5248. +valgrind_path_defines=
  5249. +valgrind_command=
  5250. +
  5251. +dnl # This check AC_REQUIREs various stuff, so it *must not* be inside
  5252. +dnl # an if statement. This was the source of very frustrating bugs
  5253. +dnl # in converting to autoconf 2.5x!
  5254. +AC_CHECK_HEADER(valgrind.h, have_valgrind_h=yes, have_valgrind_h=no)
  5255. +
  5256. +if test x$ac_valgrind_checking != x ; then
  5257. + # It is certainly possible that there's valgrind but no valgrind.h.
  5258. + # GCC relies on making annotations so we must have both.
  5259. + AC_MSG_CHECKING(for VALGRIND_DISCARD in <valgrind/memcheck.h>)
  5260. + AC_PREPROC_IFELSE([AC_LANG_SOURCE(
  5261. + [[#include <valgrind/memcheck.h>
  5262. +#ifndef VALGRIND_DISCARD
  5263. +#error VALGRIND_DISCARD not defined
  5264. +#endif]])],
  5265. + [gcc_cv_header_valgrind_memcheck_h=yes],
  5266. + [gcc_cv_header_valgrind_memcheck_h=no])
  5267. + AC_MSG_RESULT($gcc_cv_header_valgrind_memcheck_h)
  5268. + AC_MSG_CHECKING(for VALGRIND_DISCARD in <memcheck.h>)
  5269. + AC_PREPROC_IFELSE([AC_LANG_SOURCE(
  5270. + [[#include <memcheck.h>
  5271. +#ifndef VALGRIND_DISCARD
  5272. +#error VALGRIND_DISCARD not defined
  5273. +#endif]])],
  5274. + [gcc_cv_header_memcheck_h=yes],
  5275. + [gcc_cv_header_memcheck_h=no])
  5276. + AC_MSG_RESULT($gcc_cv_header_memcheck_h)
  5277. + AM_PATH_PROG_WITH_TEST(valgrind_path, valgrind,
  5278. + [$ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1])
  5279. + if test "x$valgrind_path" = "x" \
  5280. + || (test $have_valgrind_h = no \
  5281. + && test $gcc_cv_header_memcheck_h = no \
  5282. + && test $gcc_cv_header_valgrind_memcheck_h = no); then
  5283. + AC_MSG_ERROR([*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h])
  5284. + fi
  5285. + valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
  5286. + valgrind_command="$valgrind_path -q"
  5287. + AC_DEFINE(ENABLE_VALGRIND_CHECKING, 1,
  5288. +[Define if you want to run subprograms and generated programs
  5289. + through valgrind (a memory checker). This is extremely expensive.])
  5290. + if test $gcc_cv_header_valgrind_memcheck_h = yes; then
  5291. + AC_DEFINE(HAVE_VALGRIND_MEMCHECK_H, 1,
  5292. + [Define if valgrind's valgrind/memcheck.h header is installed.])
  5293. + fi
  5294. + if test $gcc_cv_header_memcheck_h = yes; then
  5295. + AC_DEFINE(HAVE_MEMCHECK_H, 1,
  5296. + [Define if valgrind's memcheck.h header is installed.])
  5297. + fi
  5298. +fi
  5299. +AC_SUBST(valgrind_path_defines)
  5300. +AC_SUBST(valgrind_command)
  5301. +
  5302. +# Enable code coverage collection
  5303. +AC_ARG_ENABLE(coverage,
  5304. +[AS_HELP_STRING([[--enable-coverage[=LEVEL]]],
  5305. + [enable compiler's code coverage collection.
  5306. + Use to measure compiler performance and locate
  5307. + unused parts of the compiler. With LEVEL, specify
  5308. + optimization. Values are opt, noopt,
  5309. + default is noopt])],
  5310. +[case "${enableval}" in
  5311. + yes|noopt)
  5312. + coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
  5313. + ;;
  5314. + opt)
  5315. + coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
  5316. + ;;
  5317. + no)
  5318. + # a.k.a. --disable-coverage
  5319. + coverage_flags=""
  5320. + ;;
  5321. + *)
  5322. + AC_MSG_ERROR(unknown coverage setting $enableval)
  5323. + ;;
  5324. +esac],
  5325. +[coverage_flags=""])
  5326. +AC_SUBST(coverage_flags)
  5327. +
  5328. +AC_ARG_ENABLE(gather-detailed-mem-stats,
  5329. +[AS_HELP_STRING([--enable-gather-detailed-mem-stats],
  5330. + [enable detailed memory allocation stats gathering])], [],
  5331. +[enable_gather_detailed_mem_stats=no])
  5332. +gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
  5333. +AC_DEFINE_UNQUOTED(GATHER_STATISTICS, $gather_stats,
  5334. +[Define to enable detailed memory allocation stats gathering.])
  5335. +
  5336. +# -------------------------------
  5337. +# Miscenalleous configure options
  5338. +# -------------------------------
  5339. +
  5340. +# With stabs
  5341. +AC_ARG_WITH(stabs,
  5342. +[AS_HELP_STRING([--with-stabs],
  5343. + [arrange to use stabs instead of host debug format])],
  5344. +stabs="$with_stabs",
  5345. +stabs=no)
  5346. +
  5347. +# Determine whether or not multilibs are enabled.
  5348. +AC_ARG_ENABLE(multilib,
  5349. +[AS_HELP_STRING([--enable-multilib],
  5350. + [enable library support for multiple ABIs])],
  5351. +[], [enable_multilib=yes])
  5352. +AC_SUBST(enable_multilib)
  5353. +
  5354. +# Determine whether or not multiarch is enabled.
  5355. +AC_ARG_ENABLE(multiarch,
  5356. +[AS_HELP_STRING([--enable-multiarch],
  5357. + [enable support for multiarch paths])],
  5358. +[case "${enableval}" in
  5359. +yes|no|auto) enable_multiarch=$enableval;;
  5360. +*) AC_MSG_ERROR(bad value ${enableval} given for --enable-multiarch option) ;;
  5361. +esac], [enable_multiarch=auto])
  5362. +if test x${enable_multiarch} = xauto; then
  5363. + if test x${with_native_system_header_dir} != x; then
  5364. + ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
  5365. + enable_multiarch=no
  5366. + fi
  5367. + if test x$host != x$target && test "x$with_sysroot" = x; then
  5368. + ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
  5369. + enable_multiarch=no
  5370. + fi
  5371. +fi
  5372. +AC_MSG_CHECKING(for multiarch configuration)
  5373. +AC_SUBST(enable_multiarch)
  5374. +AC_MSG_RESULT($enable_multiarch$ma_msg_suffix)
  5375. +
  5376. +# needed for setting the multiarch name for soft-float/hard-float ABIs
  5377. +AC_SUBST(with_cpu)
  5378. +AC_SUBST(with_float)
  5379. +
  5380. +# Enable __cxa_atexit for C++.
  5381. +AC_ARG_ENABLE(__cxa_atexit,
  5382. +[AS_HELP_STRING([--enable-__cxa_atexit], [enable __cxa_atexit for C++])],
  5383. +[], [])
  5384. +
  5385. +# Enable C extension for decimal float if target supports it.
  5386. +GCC_AC_ENABLE_DECIMAL_FLOAT([$target])
  5387. +
  5388. +dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
  5389. +AC_DEFINE_UNQUOTED(ENABLE_DECIMAL_FLOAT, $dfp,
  5390. +[Define to 1 to enable decimal float extension to C.])
  5391. +
  5392. +# Use default_decimal_float for dependency.
  5393. +enable_decimal_float=$default_decimal_float
  5394. +
  5395. +bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
  5396. +AC_DEFINE_UNQUOTED(ENABLE_DECIMAL_BID_FORMAT, $bid,
  5397. +[Define to 1 to specify that we are using the BID decimal floating
  5398. +point format instead of DPD])
  5399. +
  5400. +# Enable C extension for fixed-point arithmetic.
  5401. +AC_ARG_ENABLE(fixed-point,
  5402. +[AS_HELP_STRING([--enable-fixed-point],
  5403. + [enable fixed-point arithmetic extension to C])],
  5404. +[],
  5405. +[
  5406. + case $target in
  5407. + arm*)
  5408. + enable_fixed_point=yes
  5409. + ;;
  5410. +
  5411. + mips*-*-*)
  5412. + enable_fixed_point=yes
  5413. + ;;
  5414. + *)
  5415. + AC_MSG_WARN([fixed-point is not supported for this target, ignored])
  5416. + enable_fixed_point=no
  5417. + ;;
  5418. + esac
  5419. +])
  5420. +AC_SUBST(enable_fixed_point)
  5421. +
  5422. +fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
  5423. +AC_DEFINE_UNQUOTED(ENABLE_FIXED_POINT, $fixedpoint,
  5424. +[Define to 1 to enable fixed-point arithmetic extension to C.])
  5425. +
  5426. +# Enable threads
  5427. +# Pass with no value to take the default
  5428. +# Pass with a value to specify a thread package
  5429. +AC_ARG_ENABLE(threads,
  5430. +[AS_HELP_STRING([[--enable-threads[=LIB]]],
  5431. + [enable thread usage for target GCC,
  5432. + using LIB thread package])],,
  5433. +[enable_threads=''])
  5434. +
  5435. +AC_ARG_ENABLE(tls,
  5436. +[AS_HELP_STRING([--enable-tls],
  5437. + [enable or disable generation of tls code
  5438. + overriding the assembler check for tls support])],
  5439. +[
  5440. + case $enable_tls in
  5441. + yes | no) ;;
  5442. + *) AC_MSG_ERROR(['$enable_tls' is an invalid value for --enable-tls.
  5443. +Valid choices are 'yes' and 'no'.]) ;;
  5444. + esac
  5445. +], [enable_tls=''])
  5446. +
  5447. +AC_ARG_ENABLE(objc-gc,
  5448. +[AS_HELP_STRING([--enable-objc-gc],
  5449. + [enable the use of Boehm's garbage collector with
  5450. + the GNU Objective-C runtime])],
  5451. +if test x$enable_objc_gc = xno; then
  5452. + objc_boehm_gc=''
  5453. +else
  5454. + objc_boehm_gc=1
  5455. +fi,
  5456. +objc_boehm_gc='')
  5457. +
  5458. +AC_ARG_WITH(dwarf2,
  5459. +[AS_HELP_STRING([--with-dwarf2], [force the default debug format to be DWARF 2])],
  5460. +dwarf2="$with_dwarf2",
  5461. +dwarf2=no)
  5462. +
  5463. +AC_ARG_ENABLE(shared,
  5464. +[AS_HELP_STRING([--disable-shared], [don't provide a shared libgcc])],
  5465. +[
  5466. + case $enable_shared in
  5467. + yes | no) ;;
  5468. + *)
  5469. + enable_shared=no
  5470. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  5471. + for pkg in $enableval; do
  5472. + if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
  5473. + enable_shared=yes
  5474. + fi
  5475. + done
  5476. + IFS="$ac_save_ifs"
  5477. + ;;
  5478. + esac
  5479. +], [enable_shared=yes])
  5480. +AC_SUBST(enable_shared)
  5481. +
  5482. +AC_ARG_WITH([native-system-header-dir],
  5483. + [ --with-native-system-header-dir=dir
  5484. + use dir as the directory to look for standard
  5485. + system header files in. Defaults to /usr/include.],
  5486. +[
  5487. + case ${with_native_system_header_dir} in
  5488. + yes|no) AC_MSG_ERROR([bad value ${withval} given for --with-native-system-header-dir]) ;;
  5489. + /* | [[A-Za-z]]:[[\\/]]*) ;;
  5490. + *) AC_MSG_ERROR([--with-native-system-header-dir argument ${withval} must be an absolute directory]) ;;
  5491. + esac
  5492. + configured_native_system_header_dir="${withval}"
  5493. +], [configured_native_system_header_dir=])
  5494. +
  5495. +AC_ARG_WITH(build-sysroot,
  5496. + [AS_HELP_STRING([--with-build-sysroot=sysroot],
  5497. + [use sysroot as the system root during the build])],
  5498. + [if test x"$withval" != x ; then
  5499. + SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
  5500. + fi],
  5501. + [SYSROOT_CFLAGS_FOR_TARGET=])
  5502. +AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET)
  5503. +
  5504. +if test "x$prefix" = xNONE; then
  5505. + test_prefix=/usr/local
  5506. +else
  5507. + test_prefix=$prefix
  5508. +fi
  5509. +if test "x$exec_prefix" = xNONE; then
  5510. + test_exec_prefix=$test_prefix
  5511. +else
  5512. + test_exec_prefix=$exec_prefix
  5513. +fi
  5514. +
  5515. +AC_ARG_WITH(sysroot,
  5516. +[AS_HELP_STRING([[--with-sysroot[=DIR]]],
  5517. + [search for usr/lib, usr/include, et al, within DIR])],
  5518. +[
  5519. + case ${with_sysroot} in
  5520. + yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
  5521. + *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
  5522. + esac
  5523. +
  5524. + TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
  5525. + CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
  5526. +
  5527. + case ${TARGET_SYSTEM_ROOT} in
  5528. + "${test_prefix}"|"${test_prefix}/"*|\
  5529. + "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
  5530. + '${prefix}'|'${prefix}/'*|\
  5531. + '${exec_prefix}'|'${exec_prefix}/'*)
  5532. + t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
  5533. + TARGET_SYSTEM_ROOT_DEFINE="$t"
  5534. + ;;
  5535. + esac
  5536. +], [
  5537. + TARGET_SYSTEM_ROOT=
  5538. + TARGET_SYSTEM_ROOT_DEFINE=
  5539. + CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
  5540. +])
  5541. +AC_SUBST(TARGET_SYSTEM_ROOT)
  5542. +AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
  5543. +AC_SUBST(CROSS_SYSTEM_HEADER_DIR)
  5544. +
  5545. +AC_ARG_WITH(specs,
  5546. + [AS_HELP_STRING([--with-specs=SPECS],
  5547. + [add SPECS to driver command-line processing])],
  5548. + [CONFIGURE_SPECS=$withval],
  5549. + [CONFIGURE_SPECS=]
  5550. +)
  5551. +AC_SUBST(CONFIGURE_SPECS)
  5552. +
  5553. +ACX_PKGVERSION([GCC])
  5554. +ACX_BUGURL([http://gcc.gnu.org/bugs.html])
  5555. +
  5556. +# Sanity check enable_languages in case someone does not run the toplevel
  5557. +# configure # script.
  5558. +AC_ARG_ENABLE(languages,
  5559. +[AS_HELP_STRING([--enable-languages=LIST], [specify which front-ends to build])],
  5560. +[case ,${enable_languages}, in
  5561. + ,,|,yes,)
  5562. + # go safe -- we cannot be much sure without the toplevel
  5563. + # configure's
  5564. + # analysis of which target libs are present and usable
  5565. + enable_languages=c
  5566. + ;;
  5567. + *,all,*)
  5568. + AC_MSG_ERROR([only the toplevel supports --enable-languages=all])
  5569. + ;;
  5570. + *,c,*)
  5571. + ;;
  5572. + *)
  5573. + enable_languages=c,${enable_languages}
  5574. + ;;
  5575. +esac],
  5576. +[enable_languages=c])
  5577. +
  5578. +AC_ARG_WITH(multilib-list,
  5579. +[AS_HELP_STRING([--with-multilib-list], [select multilibs (AArch64, SH and x86-64 only)])],
  5580. +:,
  5581. +with_multilib_list=default)
  5582. +
  5583. +# -------------------------
  5584. +# Checks for other programs
  5585. +# -------------------------
  5586. +
  5587. +AC_PROG_MAKE_SET
  5588. +
  5589. +# Find some useful tools
  5590. +AC_PROG_AWK
  5591. +# We need awk to create options.c and options.h.
  5592. +# Bail out if it's missing.
  5593. +case ${AWK} in
  5594. + "") AC_MSG_ERROR([can't build without awk, bailing out]) ;;
  5595. +esac
  5596. +
  5597. +gcc_AC_PROG_LN_S
  5598. +ACX_PROG_LN($LN_S)
  5599. +AC_PROG_RANLIB
  5600. +ranlib_flags=""
  5601. +AC_SUBST(ranlib_flags)
  5602. +
  5603. +gcc_AC_PROG_INSTALL
  5604. +
  5605. +# See if cmp has --ignore-initial.
  5606. +gcc_AC_PROG_CMP_IGNORE_INITIAL
  5607. +
  5608. +# See if we have the mktemp command.
  5609. +AC_CHECK_PROG(have_mktemp_command, mktemp, yes, no)
  5610. +
  5611. +# See if makeinfo has been installed and is modern enough
  5612. +# that we can use it.
  5613. +ACX_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
  5614. + [GNU texinfo.* \([0-9][0-9.]*\)],
  5615. + [4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*])
  5616. +if test $gcc_cv_prog_makeinfo_modern = no; then
  5617. + AC_MSG_WARN([
  5618. +*** Makeinfo is missing or too old.
  5619. +*** Info documentation will not be built.])
  5620. + BUILD_INFO=
  5621. +else
  5622. + BUILD_INFO=info
  5623. +fi
  5624. +AC_SUBST(BUILD_INFO)
  5625. +
  5626. +# Is pod2man recent enough to regenerate manpages?
  5627. +AC_MSG_CHECKING([for recent Pod::Man])
  5628. +if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
  5629. + AC_MSG_RESULT(yes)
  5630. + GENERATED_MANPAGES=generated-manpages
  5631. +else
  5632. + AC_MSG_RESULT(no)
  5633. + GENERATED_MANPAGES=
  5634. +fi
  5635. +AC_SUBST(GENERATED_MANPAGES)
  5636. +
  5637. +MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
  5638. +
  5639. +# How about lex?
  5640. +dnl Don't use AC_PROG_LEX; we insist on flex.
  5641. +dnl LEXLIB is not useful in gcc.
  5642. +AC_CHECK_PROGS([FLEX], flex, [$MISSING flex])
  5643. +
  5644. +# Bison?
  5645. +AC_CHECK_PROGS([BISON], bison, [$MISSING bison])
  5646. +
  5647. +# Binutils are not build modules, unlike bison/flex/makeinfo. So we
  5648. +# check for build == host before using them.
  5649. +
  5650. +# NM
  5651. +if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
  5652. + && test -d ../binutils ; then
  5653. + NM='${objdir}/../binutils/nm-new'
  5654. +else
  5655. + AC_CHECK_PROG(NM, nm, nm, ${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm)
  5656. +fi
  5657. +
  5658. +# AR
  5659. +if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
  5660. + && test -d ../binutils ; then
  5661. + AR='${objdir}/../binutils/ar'
  5662. +else
  5663. + AC_CHECK_PROG(AR, ar, ar, ${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar)
  5664. +fi
  5665. +
  5666. +
  5667. +# --------------------
  5668. +# Checks for C headers
  5669. +# --------------------
  5670. +
  5671. +# Need to reject headers which give warnings, so that the -Werror bootstrap
  5672. +# works later. *sigh* This needs to come before all header checks.
  5673. +AC_PROG_CPP_WERROR
  5674. +
  5675. +AC_HEADER_STDC
  5676. +AC_HEADER_TIME
  5677. +ACX_HEADER_STRING
  5678. +AC_HEADER_SYS_WAIT
  5679. +AC_HEADER_TIOCGWINSZ
  5680. +AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
  5681. + fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
  5682. + sys/resource.h sys/param.h sys/times.h sys/stat.h \
  5683. + direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h)
  5684. +
  5685. +# Check for thread headers.
  5686. +AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
  5687. +AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
  5688. +
  5689. +# These tests can't be done till we know if we have limits.h.
  5690. +gcc_AC_C_CHAR_BIT
  5691. +AC_C_BIGENDIAN
  5692. +
  5693. +# ----------------------
  5694. +# Checks for C++ headers
  5695. +# ----------------------
  5696. +
  5697. +dnl Autoconf will give an error in the configure script if there is no
  5698. +dnl C++ preprocessor. Hack to prevent that.
  5699. +m4_pushdef([AC_MSG_ERROR], m4_defn([AC_MSG_WARN]))[]dnl
  5700. +AC_PROG_CXXCPP
  5701. +m4_popdef([AC_MSG_ERROR])[]dnl
  5702. +
  5703. +AC_LANG_PUSH(C++)
  5704. +
  5705. +AC_CHECK_HEADERS(unordered_map)
  5706. +AC_CHECK_HEADERS(tr1/unordered_map)
  5707. +AC_CHECK_HEADERS(ext/hash_map)
  5708. +
  5709. +AC_LANG_POP(C++)
  5710. +
  5711. +# --------
  5712. +# Dependency checking.
  5713. +# --------
  5714. +
  5715. +AC_LANG_PUSH(C++)
  5716. +ZW_CREATE_DEPDIR
  5717. +AC_CONFIG_COMMANDS([gccdepdir],[
  5718. + ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
  5719. + for lang in $subdirs c-family common
  5720. + do
  5721. + ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
  5722. + done], [subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR])
  5723. +
  5724. +ZW_PROG_COMPILER_DEPENDENCIES([CXX])
  5725. +AC_LANG_POP(C++)
  5726. +
  5727. +# --------
  5728. +# UNSORTED
  5729. +# --------
  5730. +
  5731. +
  5732. +# These libraries may be used by collect2.
  5733. +# We may need a special search path to get them linked.
  5734. +AC_CACHE_CHECK(for collect2 libraries, gcc_cv_collect2_libs,
  5735. +[save_LIBS="$LIBS"
  5736. +for libs in '' -lld -lmld \
  5737. + '-L/usr/lib/cmplrs/cc2.11 -lmld' \
  5738. + '-L/usr/lib/cmplrs/cc3.11 -lmld'
  5739. +do
  5740. + LIBS="$libs"
  5741. + AC_TRY_LINK_FUNC(ldopen,
  5742. + [gcc_cv_collect2_libs="$libs"; break])
  5743. +done
  5744. +LIBS="$save_LIBS"
  5745. +test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'])
  5746. +case $gcc_cv_collect2_libs in
  5747. + "none required") ;;
  5748. + *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
  5749. +esac
  5750. +AC_SUBST(COLLECT2_LIBS)
  5751. +
  5752. +# When building Ada code on Alpha, we need exc_resume which is usually in
  5753. +# -lexc. So test for it.
  5754. +save_LIBS="$LIBS"
  5755. +LIBS=
  5756. +AC_SEARCH_LIBS(exc_resume, exc)
  5757. +GNAT_LIBEXC="$LIBS"
  5758. +LIBS="$save_LIBS"
  5759. +AC_SUBST(GNAT_LIBEXC)
  5760. +
  5761. +# To support -mcpu=native on Solaris/SPARC, we need libkstat.
  5762. +save_LIBS="$LIBS"
  5763. +LIBS=
  5764. +AC_SEARCH_LIBS(kstat_open, kstat)
  5765. +EXTRA_GCC_LIBS="$LIBS"
  5766. +LIBS="$save_LIBS"
  5767. +AC_SUBST(EXTRA_GCC_LIBS)
  5768. +
  5769. +# Some systems put ldexp and frexp in libm instead of libc; assume
  5770. +# they're both in the same place. jcf-dump needs them.
  5771. +save_LIBS="$LIBS"
  5772. +LIBS=
  5773. +AC_SEARCH_LIBS(ldexp, m)
  5774. +LDEXP_LIB="$LIBS"
  5775. +LIBS="$save_LIBS"
  5776. +AC_SUBST(LDEXP_LIB)
  5777. +
  5778. +# Use <inttypes.h> only if it exists,
  5779. +# doesn't clash with <sys/types.h>, and declares intmax_t.
  5780. +AC_MSG_CHECKING(for inttypes.h)
  5781. +AC_CACHE_VAL(gcc_cv_header_inttypes_h,
  5782. +[AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
  5783. +[[#include <sys/types.h>
  5784. +#include <inttypes.h>]],
  5785. + [[intmax_t i = -1;]])],
  5786. + [gcc_cv_header_inttypes_h=yes],
  5787. + [gcc_cv_header_inttypes_h=no])])
  5788. +AC_MSG_RESULT($gcc_cv_header_inttypes_h)
  5789. +if test $gcc_cv_header_inttypes_h = yes; then
  5790. + AC_DEFINE(HAVE_INTTYPES_H, 1,
  5791. + [Define if you have a working <inttypes.h> header file.])
  5792. +fi
  5793. +
  5794. +dnl Disabled until we have a complete test for buggy enum bitfields.
  5795. +dnl gcc_AC_C_ENUM_BF_UNSIGNED
  5796. +
  5797. +define(gcc_UNLOCKED_FUNCS, clearerr_unlocked feof_unlocked dnl
  5798. + ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked dnl
  5799. + fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked dnl
  5800. + fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked dnl
  5801. + putchar_unlocked putc_unlocked)
  5802. +AC_CHECK_FUNCS(times clock kill getrlimit setrlimit atoll atoq \
  5803. + sysconf strsignal getrusage nl_langinfo \
  5804. + gettimeofday mbstowcs wcswidth mmap setlocale \
  5805. + gcc_UNLOCKED_FUNCS madvise)
  5806. +
  5807. +if test x$ac_cv_func_mbstowcs = xyes; then
  5808. + AC_CACHE_CHECK(whether mbstowcs works, gcc_cv_func_mbstowcs_works,
  5809. +[ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdlib.h>
  5810. +int main()
  5811. +{
  5812. + mbstowcs(0, "", 0);
  5813. + return 0;
  5814. +}]])],
  5815. + [gcc_cv_func_mbstowcs_works=yes],
  5816. + [gcc_cv_func_mbstowcs_works=no],
  5817. + [gcc_cv_func_mbstowcs_works=yes])])
  5818. + if test x$gcc_cv_func_mbstowcs_works = xyes; then
  5819. + AC_DEFINE(HAVE_WORKING_MBSTOWCS, 1,
  5820. + [Define this macro if mbstowcs does not crash when its
  5821. + first argument is NULL.])
  5822. + fi
  5823. +fi
  5824. +
  5825. +AC_CHECK_TYPE(ssize_t, int)
  5826. +AC_CHECK_TYPE(caddr_t, char *)
  5827. +
  5828. +GCC_AC_FUNC_MMAP_BLACKLIST
  5829. +
  5830. +case "${host}" in
  5831. +*-*-*vms*)
  5832. + # Under VMS, vfork works very differently than on Unix. The standard test
  5833. + # won't work, and it isn't easily adaptable. It makes more sense to
  5834. + # just force it.
  5835. + ac_cv_func_vfork_works=yes
  5836. + ;;
  5837. +esac
  5838. +AC_FUNC_FORK
  5839. +
  5840. +# g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
  5841. +# iconv() prototype.
  5842. +AC_LANG_PUSH([C++])
  5843. +AM_ICONV
  5844. +AC_LANG_POP([C++])
  5845. +
  5846. +# Until we have in-tree GNU iconv:
  5847. +LIBICONV_DEP=
  5848. +AC_SUBST(LIBICONV_DEP)
  5849. +
  5850. +AM_LC_MESSAGES
  5851. +
  5852. +AM_LANGINFO_CODESET
  5853. +
  5854. +# We will need to find libiberty.h and ansidecl.h
  5855. +saved_CFLAGS="$CFLAGS"
  5856. +CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
  5857. +saved_CXXFLAGS="$CXXFLAGS"
  5858. +CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
  5859. +gcc_AC_CHECK_DECLS(getenv atol asprintf sbrk abort atof getcwd getwd \
  5860. + strsignal strstr stpcpy strverscmp \
  5861. + errno snprintf vsnprintf vasprintf malloc realloc calloc \
  5862. + free basename getopt clock getpagesize ffs gcc_UNLOCKED_FUNCS, , ,[
  5863. +#include "ansidecl.h"
  5864. +#include "system.h"])
  5865. +
  5866. +gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
  5867. +#include "ansidecl.h"
  5868. +#include "system.h"
  5869. +#ifdef HAVE_SYS_RESOURCE_H
  5870. +#include <sys/resource.h>
  5871. +#endif
  5872. +])
  5873. +
  5874. +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  5875. +#include "ansidecl.h"
  5876. +#include "system.h"
  5877. +#ifdef HAVE_SYS_RESOURCE_H
  5878. +#include <sys/resource.h>
  5879. +#endif
  5880. +]], [[rlim_t l = 0;]])],[],[AC_DEFINE([rlim_t],[long],
  5881. +[Define to `long' if <sys/resource.h> doesn't define.])])
  5882. +
  5883. +# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
  5884. +# FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
  5885. +# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
  5886. +# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
  5887. +gcc_AC_CHECK_DECLS(ldgetname, , ,[
  5888. +#include "ansidecl.h"
  5889. +#include "system.h"
  5890. +#ifdef HAVE_LDFCN_H
  5891. +#undef FREAD
  5892. +#undef FWRITE
  5893. +#include <ldfcn.h>
  5894. +#endif
  5895. +])
  5896. +
  5897. +gcc_AC_CHECK_DECLS(times, , ,[
  5898. +#include "ansidecl.h"
  5899. +#include "system.h"
  5900. +#ifdef HAVE_SYS_TIMES_H
  5901. +#include <sys/times.h>
  5902. +#endif
  5903. +])
  5904. +
  5905. +gcc_AC_CHECK_DECLS(sigaltstack, , ,[
  5906. +#include "ansidecl.h"
  5907. +#include "system.h"
  5908. +#include <signal.h>
  5909. +])
  5910. +
  5911. +# g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
  5912. +# prototype.
  5913. +AC_LANG_PUSH([C++])
  5914. +gcc_AC_CHECK_DECLS(madvise, , ,[
  5915. + #include "ansidecl.h"
  5916. + #include "system.h"
  5917. +])
  5918. +AC_LANG_POP([C++])
  5919. +
  5920. +# More time-related stuff.
  5921. +AC_CACHE_CHECK(for struct tms, ac_cv_struct_tms, [
  5922. +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  5923. +#include "ansidecl.h"
  5924. +#include "system.h"
  5925. +#ifdef HAVE_SYS_TIMES_H
  5926. +#include <sys/times.h>
  5927. +#endif
  5928. +]], [[struct tms tms;]])],[ac_cv_struct_tms=yes],[ac_cv_struct_tms=no])])
  5929. +if test $ac_cv_struct_tms = yes; then
  5930. + AC_DEFINE(HAVE_STRUCT_TMS, 1,
  5931. + [Define if <sys/times.h> defines struct tms.])
  5932. +fi
  5933. +
  5934. +# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
  5935. +# revisit after autoconf 2.50.
  5936. +AC_CACHE_CHECK(for clock_t, gcc_cv_type_clock_t, [
  5937. +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  5938. +#include "ansidecl.h"
  5939. +#include "system.h"
  5940. +]], [[clock_t x;]])],[gcc_cv_type_clock_t=yes],[gcc_cv_type_clock_t=no])])
  5941. +if test $gcc_cv_type_clock_t = yes; then
  5942. + AC_DEFINE(HAVE_CLOCK_T, 1,
  5943. + [Define if <time.h> defines clock_t.])
  5944. +fi
  5945. +
  5946. +# Check if F_SETLKW is supported by fcntl.
  5947. +AC_CACHE_CHECK(for F_SETLKW, ac_cv_f_setlkw, [
  5948. +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  5949. +#include <fcntl.h>]], [[
  5950. +struct flock fl;
  5951. +fl.l_whence = 0;
  5952. +fl.l_start = 0;
  5953. +fl.l_len = 0;
  5954. +fl.l_pid = 0;
  5955. +return fcntl (1, F_SETLKW, &fl);]])],
  5956. +[ac_cv_f_setlkw=yes],[ac_cv_f_setlkw=no])])
  5957. +if test $ac_cv_f_setlkw = yes; then
  5958. + AC_DEFINE(HOST_HAS_F_SETLKW, 1,
  5959. + [Define if F_SETLKW supported by fcntl.])
  5960. +fi
  5961. +
  5962. +# Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
  5963. +CFLAGS="$saved_CFLAGS"
  5964. +CXXFLAGS="$saved_CXXFLAGS"
  5965. +
  5966. +# mkdir takes a single argument on some systems.
  5967. +gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
  5968. +
  5969. +# File extensions
  5970. +manext='.1'
  5971. +objext='.o'
  5972. +AC_SUBST(manext)
  5973. +AC_SUBST(objext)
  5974. +
  5975. +# With Setjmp/Longjmp based exception handling.
  5976. +AC_ARG_ENABLE(sjlj-exceptions,
  5977. +[AS_HELP_STRING([--enable-sjlj-exceptions],
  5978. + [arrange to use setjmp/longjmp exception handling])],
  5979. +[case $target in
  5980. + *-*-hpux10*)
  5981. + if test $enableval != yes; then
  5982. + AC_MSG_WARN([dwarf2 exceptions not supported, sjlj exceptions forced])
  5983. + enableval=yes
  5984. + fi
  5985. + ;;
  5986. +esac
  5987. +force_sjlj_exceptions=yes],
  5988. +[case $target in
  5989. + *-*-hpux10*)
  5990. + force_sjlj_exceptions=yes
  5991. + enableval=yes
  5992. + ;;
  5993. + lm32*-*-*)
  5994. + force_sjlj_exceptions=yes
  5995. + enableval=yes
  5996. + ;;
  5997. + *)
  5998. + force_sjlj_exceptions=no
  5999. + ;;
  6000. +esac])
  6001. +if test $force_sjlj_exceptions = yes; then
  6002. + sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
  6003. + AC_DEFINE_UNQUOTED(CONFIG_SJLJ_EXCEPTIONS, $sjlj,
  6004. + [Define 0/1 to force the choice for exception handling model.])
  6005. +fi
  6006. +
  6007. +# --------------------------------------------------------
  6008. +# Build, host, and target specific configuration fragments
  6009. +# --------------------------------------------------------
  6010. +
  6011. +# Collect build-machine-specific information.
  6012. +. ${srcdir}/config.build
  6013. +
  6014. +# Collect host-machine-specific information.
  6015. +. ${srcdir}/config.host
  6016. +
  6017. +target_gtfiles=
  6018. +
  6019. +# Collect target-machine-specific information.
  6020. +. ${srcdir}/config.gcc
  6021. +
  6022. +extra_objs="${host_extra_objs} ${extra_objs}"
  6023. +extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
  6024. +
  6025. +# Default the target-machine variables that were not explicitly set.
  6026. +if test x"$tm_file" = x
  6027. +then tm_file=$cpu_type/$cpu_type.h; fi
  6028. +
  6029. +if test x"$extra_headers" = x
  6030. +then extra_headers=; fi
  6031. +
  6032. +if test x$md_file = x
  6033. +then md_file=$cpu_type/$cpu_type.md; fi
  6034. +
  6035. +if test x$out_file = x
  6036. +then out_file=$cpu_type/$cpu_type.c; fi
  6037. +
  6038. +if test x"$tmake_file" = x
  6039. +then tmake_file=$cpu_type/t-$cpu_type
  6040. +fi
  6041. +
  6042. +# Support --enable-initfini-array.
  6043. +if test x$enable_initfini_array != xno; then
  6044. + tm_file="${tm_file} initfini-array.h"
  6045. +fi
  6046. +
  6047. +if test x"$dwarf2" = xyes
  6048. +then tm_file="$tm_file tm-dwarf2.h"
  6049. +fi
  6050. +
  6051. +# Say what files are being used for the output code and MD file.
  6052. +echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
  6053. +echo "Using \`$srcdir/config/$md_file' as machine description file."
  6054. +
  6055. +# If any of the xm_file variables contain nonexistent files, warn
  6056. +# about them and drop them.
  6057. +
  6058. +bx=
  6059. +for x in $build_xm_file; do
  6060. + if test -f $srcdir/config/$x
  6061. + then bx="$bx $x"
  6062. + else AC_MSG_WARN($srcdir/config/$x does not exist.)
  6063. + fi
  6064. +done
  6065. +build_xm_file="$bx"
  6066. +
  6067. +hx=
  6068. +for x in $host_xm_file; do
  6069. + if test -f $srcdir/config/$x
  6070. + then hx="$hx $x"
  6071. + else AC_MSG_WARN($srcdir/config/$x does not exist.)
  6072. + fi
  6073. +done
  6074. +host_xm_file="$hx"
  6075. +
  6076. +tx=
  6077. +for x in $xm_file; do
  6078. + if test -f $srcdir/config/$x
  6079. + then tx="$tx $x"
  6080. + else AC_MSG_WARN($srcdir/config/$x does not exist.)
  6081. + fi
  6082. +done
  6083. +xm_file="$tx"
  6084. +
  6085. +count=a
  6086. +for f in $tm_file; do
  6087. + count=${count}x
  6088. +done
  6089. +if test $count = ax; then
  6090. + echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
  6091. +else
  6092. + echo "Using the following target machine macro files:"
  6093. + for f in $tm_file; do
  6094. + echo " $srcdir/config/$f"
  6095. + done
  6096. +fi
  6097. +
  6098. +if test x$need_64bit_hwint = xyes; then
  6099. + AC_DEFINE(NEED_64BIT_HOST_WIDE_INT, 1,
  6100. +[Define to 1 if HOST_WIDE_INT must be 64 bits wide (see hwint.h).])
  6101. +fi
  6102. +
  6103. +if test x$use_long_long_for_widest_fast_int = xyes; then
  6104. + AC_DEFINE(USE_LONG_LONG_FOR_WIDEST_FAST_INT, 1,
  6105. +[Define to 1 if the 'long long' (or '__int64') is wider than 'long' but still
  6106. +efficiently supported by the host hardware.])
  6107. +fi
  6108. +
  6109. +gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
  6110. +AC_DEFINE_UNQUOTED(HAVE_GNU_LD, $gnu_ld_bool, [Define to 1 if using GNU ld.])
  6111. +
  6112. +gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
  6113. +AC_DEFINE_UNQUOTED(HAVE_GNU_AS, $gnu_as_bool, [Define to 1 if using GNU as.])
  6114. +
  6115. +count=a
  6116. +for f in $host_xm_file; do
  6117. + count=${count}x
  6118. +done
  6119. +if test $count = a; then
  6120. + :
  6121. +elif test $count = ax; then
  6122. + echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
  6123. +else
  6124. + echo "Using the following host machine macro files:"
  6125. + for f in $host_xm_file; do
  6126. + echo " $srcdir/config/$f"
  6127. + done
  6128. +fi
  6129. +echo "Using ${out_host_hook_obj} for host machine hooks."
  6130. +
  6131. +if test "$host_xm_file" != "$build_xm_file"; then
  6132. + count=a
  6133. + for f in $build_xm_file; do
  6134. + count=${count}x
  6135. + done
  6136. + if test $count = a; then
  6137. + :
  6138. + elif test $count = ax; then
  6139. + echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
  6140. + else
  6141. + echo "Using the following build machine macro files:"
  6142. + for f in $build_xm_file; do
  6143. + echo " $srcdir/config/$f"
  6144. + done
  6145. + fi
  6146. +fi
  6147. +
  6148. +if test -n "$configured_native_system_header_dir"; then
  6149. + native_system_header_dir=$configured_native_system_header_dir
  6150. +fi
  6151. +NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
  6152. +AC_SUBST(NATIVE_SYSTEM_HEADER_DIR)
  6153. +
  6154. +case ${host} in
  6155. + powerpc*-*-darwin*)
  6156. + AC_CACHE_CHECK([whether mcontext_t fields have underscores],
  6157. + gcc_cv_mcontext_underscores,
  6158. + AC_COMPILE_IFELSE([
  6159. +#include <sys/cdefs.h>
  6160. +#include <sys/signal.h>
  6161. +#include <ucontext.h>
  6162. +int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
  6163. +],
  6164. + gcc_cv_mcontext_underscores=no, gcc_cv_mcontext_underscores=yes))
  6165. + if test $gcc_cv_mcontext_underscores = yes; then
  6166. + AC_DEFINE(HAS_MCONTEXT_T_UNDERSCORES,,dnl
  6167. + [mcontext_t fields start with __])
  6168. + fi
  6169. + ;;
  6170. +esac
  6171. +
  6172. +# ---------
  6173. +# Threading
  6174. +# ---------
  6175. +
  6176. +# Check if a valid thread package
  6177. +case ${enable_threads} in
  6178. + "" | no)
  6179. + # No threads
  6180. + target_thread_file='single'
  6181. + ;;
  6182. + yes)
  6183. + # default
  6184. + target_thread_file='single'
  6185. + ;;
  6186. + aix | dce | lynx | mipssde | posix | rtems | \
  6187. + single | tpf | vxworks | win32)
  6188. + target_thread_file=${enable_threads}
  6189. + ;;
  6190. + *)
  6191. + echo "${enable_threads} is an unknown thread package" 1>&2
  6192. + exit 1
  6193. + ;;
  6194. +esac
  6195. +
  6196. +if test x${thread_file} = x; then
  6197. + # No thread file set by target-specific clauses in config.gcc,
  6198. + # so use file chosen by default logic above
  6199. + thread_file=${target_thread_file}
  6200. +fi
  6201. +
  6202. +# --------
  6203. +# UNSORTED
  6204. +# --------
  6205. +
  6206. +use_cxa_atexit=no
  6207. +if test x$enable___cxa_atexit = xyes || \
  6208. + test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
  6209. + if test x$host = x$target; then
  6210. + case $host in
  6211. + # mingw32 doesn't have __cxa_atexit but uses atexit registration
  6212. + # keyed to flag_use_cxa_atexit
  6213. + *-*-mingw32*)
  6214. + use_cxa_atexit=yes
  6215. + ;;
  6216. + powerpc-ibm-aix*)
  6217. + use_cxa_atexit=yes
  6218. + ;;
  6219. + *)
  6220. + AC_CHECK_FUNC(__cxa_atexit,[use_cxa_atexit=yes],
  6221. + [echo "__cxa_atexit can't be enabled on this target"])
  6222. + ;;
  6223. + esac
  6224. + else
  6225. + # We can't check for __cxa_atexit when building a cross, so assume
  6226. + # it is available
  6227. + use_cxa_atexit=yes
  6228. + fi
  6229. + if test x$use_cxa_atexit = xyes; then
  6230. + AC_DEFINE(DEFAULT_USE_CXA_ATEXIT, 2,
  6231. + [Define if you want to use __cxa_atexit, rather than atexit, to
  6232. + register C++ destructors for local statics and global objects.
  6233. + This is essential for fully standards-compliant handling of
  6234. + destructors, but requires __cxa_atexit in libc.])
  6235. + fi
  6236. +fi
  6237. +
  6238. +# Look for a file containing extra machine modes.
  6239. +if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
  6240. + extra_modes_file='$(srcdir)'/config/${extra_modes}
  6241. + AC_SUBST(extra_modes_file)
  6242. + AC_DEFINE_UNQUOTED(EXTRA_MODES_FILE, "config/$extra_modes",
  6243. + [Define to the name of a file containing a list of extra machine modes
  6244. + for this architecture.])
  6245. +fi
  6246. +
  6247. +# Convert extra_options into a form suitable for Makefile use.
  6248. +extra_opt_files=
  6249. +all_opt_files=
  6250. +for f in $extra_options; do
  6251. + extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
  6252. + all_opt_files="$all_opt_files $srcdir/config/$f"
  6253. +done
  6254. +AC_SUBST(extra_opt_files)
  6255. +
  6256. +# auto-host.h is the file containing items generated by autoconf and is
  6257. +# the first file included by config.h.
  6258. +# If host=build, it is correct to have bconfig include auto-host.h
  6259. +# as well. If host!=build, we are in error and need to do more
  6260. +# work to find out the build config parameters.
  6261. +if test x$host = x$build
  6262. +then
  6263. + build_auto=auto-host.h
  6264. +else
  6265. + # We create a subdir, then run autoconf in the subdir.
  6266. + # To prevent recursion we set host and build for the new
  6267. + # invocation of configure to the build for this invocation
  6268. + # of configure.
  6269. + tempdir=build.$$
  6270. + rm -rf $tempdir
  6271. + mkdir $tempdir
  6272. + cd $tempdir
  6273. + case ${srcdir} in
  6274. + /* | [A-Za-z]:[\\/]* ) realsrcdir=${srcdir};;
  6275. + *) realsrcdir=../${srcdir};;
  6276. + esac
  6277. + # Clearing GMPINC is necessary to prevent host headers being
  6278. + # used by the build compiler. Defining GENERATOR_FILE stops
  6279. + # system.h from including gmp.h.
  6280. + CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
  6281. + CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
  6282. + LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
  6283. + GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
  6284. + ${realsrcdir}/configure \
  6285. + --enable-languages=${enable_languages-all} \
  6286. + --target=$target_alias --host=$build_alias --build=$build_alias
  6287. +
  6288. + # We just finished tests for the build machine, so rename
  6289. + # the file auto-build.h in the gcc directory.
  6290. + mv auto-host.h ../auto-build.h
  6291. + cd ..
  6292. + rm -rf $tempdir
  6293. + build_auto=auto-build.h
  6294. +fi
  6295. +AC_SUBST(build_subdir)
  6296. +
  6297. +tm_file="${tm_file} defaults.h"
  6298. +tm_p_file="${tm_p_file} tm-preds.h"
  6299. +host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
  6300. +build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
  6301. +# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
  6302. +# put this back in temporarily.
  6303. +xm_file="auto-host.h ansidecl.h ${xm_file}"
  6304. +
  6305. +# --------
  6306. +# UNSORTED
  6307. +# --------
  6308. +
  6309. +changequote(,)dnl
  6310. +# Compile in configure arguments.
  6311. +if test -f configargs.h ; then
  6312. + # Being re-configured.
  6313. + gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
  6314. + gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
  6315. +else
  6316. + gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
  6317. +fi
  6318. +
  6319. +# Double all backslashes and backslash all quotes to turn
  6320. +# gcc_config_arguments into a C string.
  6321. +sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
  6322. +$gcc_config_arguments
  6323. +EOF
  6324. +gcc_config_arguments_str=`cat conftest.out`
  6325. +rm -f conftest.out
  6326. +
  6327. +cat > configargs.h <<EOF
  6328. +/* Generated automatically. */
  6329. +static const char configuration_arguments[] = "$gcc_config_arguments_str";
  6330. +static const char thread_model[] = "$thread_file";
  6331. +
  6332. +static const struct {
  6333. + const char *name, *value;
  6334. +} configure_default_options[] = $configure_default_options;
  6335. +EOF
  6336. +changequote([,])dnl
  6337. +
  6338. +changequote(,)dnl
  6339. +gcc_BASEVER=`cat $srcdir/BASE-VER`
  6340. +gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
  6341. +gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
  6342. +if test -f $srcdir/REVISION ; then
  6343. + gcc_REVISION=`cat $srcdir/REVISION`
  6344. +else
  6345. + gcc_REVISION=""
  6346. +fi
  6347. +cat > plugin-version.h <<EOF
  6348. +#include "configargs.h"
  6349. +
  6350. +#define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
  6351. +#define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
  6352. +#define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
  6353. +#define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
  6354. +
  6355. +static char basever[] = "$gcc_BASEVER";
  6356. +static char datestamp[] = "$gcc_DATESTAMP";
  6357. +static char devphase[] = "$gcc_DEVPHASE";
  6358. +static char revision[] = "$gcc_REVISION";
  6359. +
  6360. +/* FIXME plugins: We should make the version information more precise.
  6361. + One way to do is to add a checksum. */
  6362. +
  6363. +static struct plugin_gcc_version gcc_version = {basever, datestamp,
  6364. + devphase, revision,
  6365. + configuration_arguments};
  6366. +EOF
  6367. +changequote([,])dnl
  6368. +
  6369. +# Internationalization
  6370. +ZW_GNU_GETTEXT_SISTER_DIR
  6371. +
  6372. +# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
  6373. +# -liconv on the link line twice.
  6374. +case "$LIBINTL" in *$LIBICONV*)
  6375. + LIBICONV= ;;
  6376. +esac
  6377. +
  6378. +AC_ARG_ENABLE(secureplt,
  6379. +[AS_HELP_STRING([--enable-secureplt],
  6380. + [enable -msecure-plt by default for PowerPC])],
  6381. +[], [])
  6382. +
  6383. +AC_ARG_ENABLE(leading-mingw64-underscores,
  6384. + AS_HELP_STRING([--enable-leading-mingw64-underscores],
  6385. + [enable leading underscores on 64 bit mingw targets]),
  6386. + [],[])
  6387. +AS_IF([ test x"$enable_leading_mingw64_underscores" = xyes ],
  6388. + [AC_DEFINE(USE_MINGW64_LEADING_UNDERSCORES, 1,
  6389. + [Define if we should use leading underscore on 64 bit mingw targets])])
  6390. +
  6391. +AC_ARG_ENABLE(cld,
  6392. +[AS_HELP_STRING([--enable-cld], [enable -mcld by default for 32bit x86])], [],
  6393. +[enable_cld=no])
  6394. +
  6395. +AC_ARG_ENABLE(frame-pointer,
  6396. +[AS_HELP_STRING([--enable-frame-pointer],
  6397. + [enable -fno-omit-frame-pointer by default for 32bit x86])], [],
  6398. +[
  6399. +case $target_os in
  6400. +linux* | darwin[[8912]]*)
  6401. + # Enable -fomit-frame-pointer by default for Linux and Darwin with
  6402. + # DWARF2.
  6403. + enable_frame_pointer=no
  6404. + ;;
  6405. +*)
  6406. + enable_frame_pointer=yes
  6407. + ;;
  6408. +esac
  6409. +])
  6410. +
  6411. +# Windows32 Registry support for specifying GCC installation paths.
  6412. +AC_ARG_ENABLE(win32-registry,
  6413. +[AS_HELP_STRING([--disable-win32-registry],
  6414. + [disable lookup of installation paths in the
  6415. + Registry on Windows hosts])
  6416. +AS_HELP_STRING([--enable-win32-registry], [enable registry lookup (default)])
  6417. +AS_HELP_STRING([--enable-win32-registry=KEY],
  6418. + [use KEY instead of GCC version as the last portion
  6419. + of the registry key])],,)
  6420. +
  6421. +case $host_os in
  6422. + win32 | pe | cygwin* | mingw32* | uwin*)
  6423. + if test "x$enable_win32_registry" != xno; then
  6424. + AC_SEARCH_LIBS(RegOpenKeyExA, advapi32,, [enable_win32_registry=no])
  6425. + fi
  6426. +
  6427. + if test "x$enable_win32_registry" != xno; then
  6428. + AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
  6429. + [Define to 1 if installation paths should be looked up in the Windows
  6430. + Registry. Ignored on non-Windows hosts.])
  6431. +
  6432. + if test "x$enable_win32_registry" != xyes \
  6433. + && test "x$enable_win32_registry" != x; then
  6434. + AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$enable_win32_registry",
  6435. + [Define to be the last component of the Windows registry key under which
  6436. + to look for installation paths. The full key used will be
  6437. + HKEY_LOCAL_MACHINE/SOFTWARE/Free Software Foundation/{WIN32_REGISTRY_KEY}.
  6438. + The default is the GCC version number.])
  6439. + fi
  6440. + fi
  6441. + ;;
  6442. +esac
  6443. +
  6444. +# Get an absolute path to the GCC top-level source directory
  6445. +holddir=`${PWDCMD-pwd}`
  6446. +cd $srcdir
  6447. +topdir=`${PWDCMD-pwd}`
  6448. +cd $holddir
  6449. +
  6450. +# Conditionalize the makefile for this host machine.
  6451. +xmake_file=
  6452. +for f in ${host_xmake_file}
  6453. +do
  6454. + if test -f ${srcdir}/config/$f
  6455. + then
  6456. + xmake_file="${xmake_file} \$(srcdir)/config/$f"
  6457. + fi
  6458. +done
  6459. +
  6460. +# Conditionalize the makefile for this target machine.
  6461. +tmake_file_=
  6462. +for f in ${tmake_file}
  6463. +do
  6464. + if test -f ${srcdir}/config/$f
  6465. + then
  6466. + tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
  6467. + fi
  6468. +done
  6469. +tmake_file="${tmake_file_}"
  6470. +
  6471. +out_object_file=`basename $out_file .c`.o
  6472. +common_out_object_file=`basename $common_out_file .c`.o
  6473. +
  6474. +tm_file_list="options.h"
  6475. +tm_include_list="options.h insn-constants.h"
  6476. +for f in $tm_file; do
  6477. + case $f in
  6478. + ./* )
  6479. + f=`echo $f | sed 's/^..//'`
  6480. + tm_file_list="${tm_file_list} $f"
  6481. + tm_include_list="${tm_include_list} $f"
  6482. + ;;
  6483. + defaults.h )
  6484. + tm_file_list="${tm_file_list} \$(srcdir)/$f"
  6485. + tm_include_list="${tm_include_list} $f"
  6486. + ;;
  6487. + * )
  6488. + tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
  6489. + tm_include_list="${tm_include_list} config/$f"
  6490. + ;;
  6491. + esac
  6492. +done
  6493. +
  6494. +tm_p_file_list=
  6495. +tm_p_include_list=
  6496. +for f in $tm_p_file; do
  6497. + case $f in
  6498. + tm-preds.h )
  6499. + tm_p_file_list="${tm_p_file_list} $f"
  6500. + tm_p_include_list="${tm_p_include_list} $f"
  6501. + ;;
  6502. + * )
  6503. + tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
  6504. + tm_p_include_list="${tm_p_include_list} config/$f"
  6505. + esac
  6506. +done
  6507. +
  6508. +xm_file_list=
  6509. +xm_include_list=
  6510. +for f in $xm_file; do
  6511. + case $f in
  6512. + ansidecl.h )
  6513. + xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
  6514. + xm_include_list="${xm_include_list} $f"
  6515. + ;;
  6516. + auto-host.h )
  6517. + xm_file_list="${xm_file_list} $f"
  6518. + xm_include_list="${xm_include_list} $f"
  6519. + ;;
  6520. + * )
  6521. + xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
  6522. + xm_include_list="${xm_include_list} config/$f"
  6523. + ;;
  6524. + esac
  6525. +done
  6526. +
  6527. +host_xm_file_list=
  6528. +host_xm_include_list=
  6529. +for f in $host_xm_file; do
  6530. + case $f in
  6531. + ansidecl.h )
  6532. + host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
  6533. + host_xm_include_list="${host_xm_include_list} $f"
  6534. + ;;
  6535. + auto-host.h )
  6536. + host_xm_file_list="${host_xm_file_list} $f"
  6537. + host_xm_include_list="${host_xm_include_list} $f"
  6538. + ;;
  6539. + * )
  6540. + host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
  6541. + host_xm_include_list="${host_xm_include_list} config/$f"
  6542. + ;;
  6543. + esac
  6544. +done
  6545. +
  6546. +build_xm_file_list=
  6547. +for f in $build_xm_file; do
  6548. + case $f in
  6549. + ansidecl.h )
  6550. + build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
  6551. + build_xm_include_list="${build_xm_include_list} $f"
  6552. + ;;
  6553. + auto-build.h | auto-host.h )
  6554. + build_xm_file_list="${build_xm_file_list} $f"
  6555. + build_xm_include_list="${build_xm_include_list} $f"
  6556. + ;;
  6557. + * )
  6558. + build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
  6559. + build_xm_include_list="${build_xm_include_list} config/$f"
  6560. + ;;
  6561. + esac
  6562. +done
  6563. +
  6564. +# Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
  6565. +# cross-compiler which does not use the native headers and libraries.
  6566. +# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
  6567. +CROSS= AC_SUBST(CROSS)
  6568. +ALL=all.internal AC_SUBST(ALL)
  6569. +SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)' AC_SUBST(SYSTEM_HEADER_DIR)
  6570. +
  6571. +if test "x$with_build_sysroot" != x; then
  6572. + build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
  6573. +else
  6574. + # This value is used, even on a native system, because
  6575. + # CROSS_SYSTEM_HEADER_DIR is just
  6576. + # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
  6577. + build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
  6578. +fi
  6579. +
  6580. +if test x$host != x$target
  6581. +then
  6582. + CROSS="-DCROSS_DIRECTORY_STRUCTURE"
  6583. + ALL=all.cross
  6584. + SYSTEM_HEADER_DIR=$build_system_header_dir
  6585. + case "$host","$target" in
  6586. + # Darwin crosses can use the host system's libraries and headers,
  6587. + # because of the fat library support. Of course, it must be the
  6588. + # same version of Darwin on both sides. Allow the user to
  6589. + # just say --target=foo-darwin without a version number to mean
  6590. + # "the version on this system".
  6591. + *-*-darwin*,*-*-darwin*)
  6592. + hostos=`echo $host | sed 's/.*-darwin/darwin/'`
  6593. + targetos=`echo $target | sed 's/.*-darwin/darwin/'`
  6594. + if test $hostos = $targetos -o $targetos = darwin ; then
  6595. + CROSS=
  6596. + SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
  6597. + with_headers=yes
  6598. + fi
  6599. + ;;
  6600. +
  6601. + i?86-*-*,x86_64-*-* \
  6602. + | powerpc*-*-*,powerpc64*-*-*)
  6603. + CROSS="$CROSS -DNATIVE_CROSS" ;;
  6604. + esac
  6605. +
  6606. + case $target in
  6607. + *-*-mingw*)
  6608. + if test "x$with_headers" = x; then
  6609. + with_headers=yes
  6610. + fi
  6611. + ;;
  6612. + *)
  6613. + ;;
  6614. + esac
  6615. +elif test "x$TARGET_SYSTEM_ROOT" != x; then
  6616. + SYSTEM_HEADER_DIR=$build_system_header_dir
  6617. +fi
  6618. +
  6619. +# If this is a cross-compiler that does not
  6620. +# have its own set of headers then define
  6621. +# inhibit_libc
  6622. +
  6623. +# If this is using newlib, without having the headers available now,
  6624. +# then define inhibit_libc in LIBGCC2_CFLAGS.
  6625. +# This prevents libgcc2 from containing any code which requires libc
  6626. +# support.
  6627. +: ${inhibit_libc=false}
  6628. +if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
  6629. + test x$with_newlib = xyes ; } &&
  6630. + { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
  6631. + inhibit_libc=true
  6632. +fi
  6633. +AC_SUBST(inhibit_libc)
  6634. +
  6635. +# When building gcc with a cross-compiler, we need to adjust things so
  6636. +# that the generator programs are still built with the native compiler.
  6637. +# Also, we cannot run fixincludes.
  6638. +
  6639. +# These are the normal (build=host) settings:
  6640. +CC_FOR_BUILD='$(CC)' AC_SUBST(CC_FOR_BUILD)
  6641. +CXX_FOR_BUILD='$(CXX)' AC_SUBST(CXX_FOR_BUILD)
  6642. +BUILD_CFLAGS='$(ALL_CFLAGS)' AC_SUBST(BUILD_CFLAGS)
  6643. +BUILD_CXXFLAGS='$(ALL_CXXFLAGS)' AC_SUBST(BUILD_CXXFLAGS)
  6644. +BUILD_LDFLAGS='$(LDFLAGS)' AC_SUBST(BUILD_LDFLAGS)
  6645. +STMP_FIXINC=stmp-fixinc AC_SUBST(STMP_FIXINC)
  6646. +
  6647. +# And these apply if build != host, or we are generating coverage data
  6648. +if test x$build != x$host || test "x$coverage_flags" != x
  6649. +then
  6650. + BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
  6651. + BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
  6652. + BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
  6653. +fi
  6654. +
  6655. +# Expand extra_headers to include complete path.
  6656. +# This substitutes for lots of t-* files.
  6657. +extra_headers_list=
  6658. +# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
  6659. +for file in ${extra_headers} ; do
  6660. + extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
  6661. +done
  6662. +
  6663. +# If use_gcc_tgmath is set, append ginclude/tgmath.h.
  6664. +if test x"$use_gcc_tgmath" = xyes
  6665. +then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
  6666. +fi
  6667. +
  6668. +# Define collect2 in Makefile.
  6669. +case $host_can_use_collect2 in
  6670. + no) collect2= ;;
  6671. + *) collect2='collect2$(exeext)' ;;
  6672. +esac
  6673. +AC_SUBST([collect2])
  6674. +
  6675. +# Add a definition of USE_COLLECT2 if system wants one.
  6676. +case $use_collect2 in
  6677. + no) use_collect2= ;;
  6678. + "") ;;
  6679. + *)
  6680. + host_xm_defines="${host_xm_defines} USE_COLLECT2"
  6681. + xm_defines="${xm_defines} USE_COLLECT2"
  6682. + case $host_can_use_collect2 in
  6683. + no)
  6684. + AC_MSG_ERROR([collect2 is required but cannot be built on this system])
  6685. + ;;
  6686. + esac
  6687. + ;;
  6688. +esac
  6689. +
  6690. +AC_DEFINE_UNQUOTED(LTOPLUGINSONAME,"${host_lto_plugin_soname}",
  6691. +[Define to the name of the LTO plugin DSO that must be
  6692. + passed to the linker's -plugin=LIB option.])
  6693. +
  6694. +# ---------------------------
  6695. +# Assembler & linker features
  6696. +# ---------------------------
  6697. +
  6698. +# During stage 2, ld is actually gcc/collect-ld, which is a small script to
  6699. +# discern between when to use prev-ld/ld-new and when to use ld/ld-new.
  6700. +# However when ld-new is first executed from the build tree, libtool will
  6701. +# relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
  6702. +# to the build tree. While doing this we need to use the previous-stage
  6703. +# linker, or we have an infinite loop. The presence of a shell script as
  6704. +# ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
  6705. +# the gcc/collect-ld script. So we need to know how libtool works, or
  6706. +# exec-tool will fail.
  6707. +
  6708. +m4_defun([_LT_CONFIG_COMMANDS], [])
  6709. +AC_PROG_LIBTOOL
  6710. +AC_SUBST(objdir)
  6711. +AC_SUBST(enable_fast_install)
  6712. +
  6713. +# Identify the assembler which will work hand-in-glove with the newly
  6714. +# built GCC, so that we can examine its features. This is the assembler
  6715. +# which will be driven by the driver program.
  6716. +#
  6717. +# If build != host, and we aren't building gas in-tree, we identify a
  6718. +# build->target assembler and hope that it will have the same features
  6719. +# as the host->target assembler we'll be using.
  6720. +gcc_cv_gas_major_version=
  6721. +gcc_cv_gas_minor_version=
  6722. +gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
  6723. +
  6724. +m4_pattern_allow([AS_FOR_TARGET])dnl
  6725. +AS_VAR_SET_IF(gcc_cv_as,, [
  6726. +if test -x "$DEFAULT_ASSEMBLER"; then
  6727. + gcc_cv_as="$DEFAULT_ASSEMBLER"
  6728. +elif test -f $gcc_cv_as_gas_srcdir/configure.in \
  6729. + && test -f ../gas/Makefile \
  6730. + && test x$build = x$host; then
  6731. + gcc_cv_as=../gas/as-new$build_exeext
  6732. +elif test -x as$build_exeext; then
  6733. + # Build using assembler in the current directory.
  6734. + gcc_cv_as=./as$build_exeext
  6735. +elif ( set dummy $AS_FOR_TARGET; test -x $[2] ); then
  6736. + gcc_cv_as="$AS_FOR_TARGET"
  6737. +else
  6738. + AC_PATH_PROG(gcc_cv_as, $AS_FOR_TARGET)
  6739. +fi])
  6740. +
  6741. +ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
  6742. +AC_SUBST(ORIGINAL_AS_FOR_TARGET)
  6743. +case "$ORIGINAL_AS_FOR_TARGET" in
  6744. + ./as | ./as$build_exeext) ;;
  6745. + *) AC_CONFIG_FILES(as:exec-tool.in, [chmod +x as]) ;;
  6746. +esac
  6747. +
  6748. +AC_MSG_CHECKING(what assembler to use)
  6749. +if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
  6750. + # Single tree build which includes gas. We want to prefer it
  6751. + # over whatever linker top-level may have detected, since
  6752. + # we'll use what we're building after installation anyway.
  6753. + AC_MSG_RESULT(newly built gas)
  6754. + in_tree_gas=yes
  6755. + _gcc_COMPUTE_GAS_VERSION
  6756. + in_tree_gas_is_elf=no
  6757. + if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
  6758. + || (grep 'obj_format = multi' ../gas/Makefile \
  6759. + && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
  6760. + then
  6761. + in_tree_gas_is_elf=yes
  6762. + fi
  6763. +else
  6764. + AC_MSG_RESULT($gcc_cv_as)
  6765. + in_tree_gas=no
  6766. +fi
  6767. +
  6768. +default_ld=
  6769. +AC_ARG_ENABLE(ld,
  6770. +[[ --enable-ld[=ARG] build ld [ARG={default,yes,no}]]],
  6771. +[case "${enableval}" in
  6772. + no)
  6773. + default_ld=ld.gold
  6774. + ;;
  6775. + esac])
  6776. +
  6777. +AC_ARG_ENABLE(gold,
  6778. +[[ --enable-gold[=ARG] build gold [ARG={default,yes,no}]]],
  6779. +[case "${enableval}" in
  6780. + default)
  6781. + install_gold_as_default=yes
  6782. + ;;
  6783. + yes)
  6784. + if test x${default_ld} != x; then
  6785. + install_gold_as_default=yes
  6786. + fi
  6787. + ;;
  6788. + no)
  6789. + ;;
  6790. + *)
  6791. + AC_MSG_ERROR([invalid --enable-gold argument])
  6792. + ;;
  6793. + esac],
  6794. +[install_gold_as_default=no])
  6795. +
  6796. +# Identify the linker which will work hand-in-glove with the newly
  6797. +# built GCC, so that we can examine its features. This is the linker
  6798. +# which will be driven by the driver program.
  6799. +#
  6800. +# If build != host, and we aren't building gas in-tree, we identify a
  6801. +# build->target linker and hope that it will have the same features
  6802. +# as the host->target linker we'll be using.
  6803. +gcc_cv_gld_major_version=
  6804. +gcc_cv_gld_minor_version=
  6805. +gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
  6806. +gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
  6807. +gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
  6808. +
  6809. +AS_VAR_SET_IF(gcc_cv_ld,, [
  6810. +if test -x "$DEFAULT_LINKER"; then
  6811. + gcc_cv_ld="$DEFAULT_LINKER"
  6812. +elif test $install_gold_as_default = yes \
  6813. + && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
  6814. + && test -f ../gold/Makefile \
  6815. + && test x$build = x$host; then
  6816. + gcc_cv_ld=../gold/ld-new$build_exeext
  6817. +elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
  6818. + && test -f ../ld/Makefile \
  6819. + && test x$build = x$host; then
  6820. + gcc_cv_ld=../ld/ld-new$build_exeext
  6821. +elif test -x collect-ld$build_exeext; then
  6822. + # Build using linker in the current directory.
  6823. + gcc_cv_ld=./collect-ld$build_exeext
  6824. +elif ( set dummy $LD_FOR_TARGET; test -x $[2] ); then
  6825. + gcc_cv_ld="$LD_FOR_TARGET"
  6826. +else
  6827. + AC_PATH_PROG(gcc_cv_ld, $LD_FOR_TARGET)
  6828. +fi])
  6829. +
  6830. +ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
  6831. +PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
  6832. +# if the PLUGIN_LD is set ld-new, just have it as ld
  6833. +# as that is the installed named.
  6834. +if test x$PLUGIN_LD_SUFFIX = xld-new \
  6835. + || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
  6836. + PLUGIN_LD_SUFFIX=ld
  6837. +fi
  6838. +AC_ARG_WITH(plugin-ld,
  6839. +[AS_HELP_STRING([[--with-plugin-ld=[ARG]]], [specify the plugin linker])],
  6840. +[if test x"$withval" != x; then
  6841. + ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
  6842. + PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
  6843. + fi])
  6844. +AC_SUBST(ORIGINAL_PLUGIN_LD_FOR_TARGET)
  6845. +AC_DEFINE_UNQUOTED(PLUGIN_LD_SUFFIX, "$PLUGIN_LD_SUFFIX", [Specify plugin linker])
  6846. +
  6847. +# Check to see if we are using gold instead of ld
  6848. +AC_MSG_CHECKING(whether we are using gold)
  6849. +ld_is_gold=no
  6850. +if test x$gcc_cv_ld != x; then
  6851. + if $gcc_cv_ld --version 2>/dev/null | sed 1q \
  6852. + | grep "GNU gold" > /dev/null; then
  6853. + ld_is_gold=yes
  6854. + fi
  6855. +fi
  6856. +AC_MSG_RESULT($ld_is_gold)
  6857. +
  6858. +ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
  6859. +AC_SUBST(ORIGINAL_LD_FOR_TARGET)
  6860. +case "$ORIGINAL_LD_FOR_TARGET" in
  6861. + ./collect-ld | ./collect-ld$build_exeext) ;;
  6862. + *) AC_CONFIG_FILES(collect-ld:exec-tool.in, [chmod +x collect-ld]) ;;
  6863. +esac
  6864. +
  6865. +AC_MSG_CHECKING(what linker to use)
  6866. +if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
  6867. + || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
  6868. + # Single tree build which includes ld. We want to prefer it
  6869. + # over whatever linker top-level may have detected, since
  6870. + # we'll use what we're building after installation anyway.
  6871. + AC_MSG_RESULT(newly built ld)
  6872. + in_tree_ld=yes
  6873. + in_tree_ld_is_elf=no
  6874. + if (grep 'EMUL = .*elf' ../ld/Makefile \
  6875. + || grep 'EMUL = .*linux' ../ld/Makefile \
  6876. + || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
  6877. + in_tree_ld_is_elf=yes
  6878. + elif test "$ld_is_gold" = yes; then
  6879. + in_tree_ld_is_elf=yes
  6880. + fi
  6881. + for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
  6882. + do
  6883. +changequote(,)dnl
  6884. + gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
  6885. + if test x$gcc_cv_gld_version != x; then
  6886. + break
  6887. + fi
  6888. + done
  6889. + case $gcc_cv_gld_version in
  6890. + VERSION=[0-9]*) ;;
  6891. +changequote([,])dnl
  6892. + *) AC_MSG_ERROR([[cannot find version of in-tree linker]]) ;;
  6893. +changequote(,)dnl
  6894. + esac
  6895. + gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
  6896. + gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
  6897. +changequote([,])dnl
  6898. + ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
  6899. + ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
  6900. +else
  6901. + AC_MSG_RESULT($gcc_cv_ld)
  6902. + in_tree_ld=no
  6903. + gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
  6904. + ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
  6905. + ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
  6906. +fi
  6907. +
  6908. +AC_SUBST(ORIGINAL_LD_BFD_FOR_TARGET)
  6909. +AC_SUBST(ORIGINAL_LD_GOLD_FOR_TARGET)
  6910. +
  6911. +# Figure out what nm we will be using.
  6912. +gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
  6913. +AS_VAR_SET_IF(gcc_cv_nm,, [
  6914. +if test -f $gcc_cv_binutils_srcdir/configure.in \
  6915. + && test -f ../binutils/Makefile \
  6916. + && test x$build = x$host; then
  6917. + gcc_cv_nm=../binutils/nm-new$build_exeext
  6918. +elif test -x nm$build_exeext; then
  6919. + gcc_cv_nm=./nm$build_exeext
  6920. +elif ( set dummy $NM_FOR_TARGET; test -x $[2] ); then
  6921. + gcc_cv_nm="$NM_FOR_TARGET"
  6922. +else
  6923. + AC_PATH_PROG(gcc_cv_nm, $NM_FOR_TARGET)
  6924. +fi])
  6925. +
  6926. +AC_MSG_CHECKING(what nm to use)
  6927. +if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
  6928. + # Single tree build which includes binutils.
  6929. + AC_MSG_RESULT(newly built nm)
  6930. + in_tree_nm=yes
  6931. +else
  6932. + AC_MSG_RESULT($gcc_cv_nm)
  6933. + in_tree_nm=no
  6934. +fi
  6935. +
  6936. +ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
  6937. +AC_SUBST(ORIGINAL_NM_FOR_TARGET)
  6938. +case "$ORIGINAL_NM_FOR_TARGET" in
  6939. + ./nm | ./nm$build_exeext) ;;
  6940. + *) AC_CONFIG_FILES(nm:exec-tool.in, [chmod +x nm]) ;;
  6941. +esac
  6942. +
  6943. +
  6944. +# Figure out what objdump we will be using.
  6945. +AS_VAR_SET_IF(gcc_cv_objdump,, [
  6946. +if test -f $gcc_cv_binutils_srcdir/configure.in \
  6947. + && test -f ../binutils/Makefile \
  6948. + && test x$build = x$host; then
  6949. + # Single tree build which includes binutils.
  6950. + gcc_cv_objdump=../binutils/objdump$build_exeext
  6951. +elif test -x objdump$build_exeext; then
  6952. + gcc_cv_objdump=./objdump$build_exeext
  6953. +elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $[2] ); then
  6954. + gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
  6955. +else
  6956. + AC_PATH_PROG(gcc_cv_objdump, $OBJDUMP_FOR_TARGET)
  6957. +fi])
  6958. +
  6959. +AC_MSG_CHECKING(what objdump to use)
  6960. +if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
  6961. + # Single tree build which includes binutils.
  6962. + AC_MSG_RESULT(newly built objdump)
  6963. +elif test x$gcc_cv_objdump = x; then
  6964. + AC_MSG_RESULT(not found)
  6965. +else
  6966. + AC_MSG_RESULT($gcc_cv_objdump)
  6967. +fi
  6968. +
  6969. +# Figure out what readelf we will be using.
  6970. +AS_VAR_SET_IF(gcc_cv_readelf,, [
  6971. +if test -f $gcc_cv_binutils_srcdir/configure.in \
  6972. + && test -f ../binutils/Makefile \
  6973. + && test x$build = x$host; then
  6974. + # Single tree build which includes binutils.
  6975. + gcc_cv_readelf=../binutils/readelf$build_exeext
  6976. +elif test -x readelf$build_exeext; then
  6977. + gcc_cv_readelf=./readelf$build_exeext
  6978. +else
  6979. + AC_PATH_PROG(gcc_cv_readelf, readelf)
  6980. +fi])
  6981. +
  6982. +AC_MSG_CHECKING(what readelf to use)
  6983. +if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
  6984. + # Single tree build which includes binutils.
  6985. + AC_MSG_RESULT(newly built readelf)
  6986. +elif test x$gcc_cv_readelf = x; then
  6987. + AC_MSG_RESULT(not found)
  6988. +else
  6989. + AC_MSG_RESULT($gcc_cv_readelf)
  6990. +fi
  6991. +
  6992. +# Figure out what assembler alignment features are present.
  6993. +gcc_GAS_CHECK_FEATURE([.balign and .p2align], gcc_cv_as_balign_and_p2align,
  6994. + [2,6,0],,
  6995. +[.balign 4
  6996. +.p2align 2],,
  6997. +[AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN, 1,
  6998. + [Define if your assembler supports .balign and .p2align.])])
  6999. +
  7000. +gcc_GAS_CHECK_FEATURE([.p2align with maximum skip], gcc_cv_as_max_skip_p2align,
  7001. + [2,8,0],,
  7002. + [.p2align 4,,7],,
  7003. +[AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN, 1,
  7004. + [Define if your assembler supports specifying the maximum number
  7005. + of bytes to skip when using the GAS .p2align command.])])
  7006. +
  7007. +gcc_GAS_CHECK_FEATURE([.literal16], gcc_cv_as_literal16,
  7008. + [2,8,0],,
  7009. + [.literal16],,
  7010. +[AC_DEFINE(HAVE_GAS_LITERAL16, 1,
  7011. + [Define if your assembler supports .literal16.])])
  7012. +
  7013. +gcc_GAS_CHECK_FEATURE([working .subsection -1], gcc_cv_as_subsection_m1,
  7014. + [elf,2,9,0],,
  7015. + [conftest_label1: .word 0
  7016. +.subsection -1
  7017. +conftest_label2: .word 0
  7018. +.previous],
  7019. + [if test x$gcc_cv_nm != x; then
  7020. + $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
  7021. + $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
  7022. + if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
  7023. + then :
  7024. + else gcc_cv_as_subsection_m1=yes
  7025. + fi
  7026. + rm -f conftest.nm1 conftest.nm2
  7027. + fi],
  7028. + [AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
  7029. + [Define if your assembler supports .subsection and .subsection -1 starts
  7030. + emitting at the beginning of your section.])])
  7031. +
  7032. +gcc_GAS_CHECK_FEATURE([.weak], gcc_cv_as_weak,
  7033. + [2,2,0],,
  7034. + [ .weak foobar],,
  7035. +[AC_DEFINE(HAVE_GAS_WEAK, 1, [Define if your assembler supports .weak.])])
  7036. +
  7037. +gcc_GAS_CHECK_FEATURE([.weakref], gcc_cv_as_weakref,
  7038. + [2,17,0],,
  7039. + [ .weakref foobar, barfnot],,
  7040. +[AC_DEFINE(HAVE_GAS_WEAKREF, 1, [Define if your assembler supports .weakref.])])
  7041. +
  7042. +gcc_GAS_CHECK_FEATURE([.nsubspa comdat], gcc_cv_as_nsubspa_comdat,
  7043. + [2,15,91],,
  7044. + [ .SPACE $TEXT$
  7045. + .NSUBSPA $CODE$,COMDAT],,
  7046. +[AC_DEFINE(HAVE_GAS_NSUBSPA_COMDAT, 1, [Define if your assembler supports .nsubspa comdat option.])])
  7047. +
  7048. +# .hidden needs to be supported in both the assembler and the linker,
  7049. +# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
  7050. +# This is irritatingly difficult to feature test for; we have to check the
  7051. +# date string after the version number. If we've got an in-tree
  7052. +# ld, we don't know its patchlevel version, so we set the baseline at 2.13
  7053. +# to be safe.
  7054. +# The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
  7055. +gcc_GAS_CHECK_FEATURE([.hidden], gcc_cv_as_hidden,
  7056. + [elf,2,13,0],,
  7057. +[ .hidden foobar
  7058. +foobar:],[
  7059. +# Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
  7060. +# STV_HIDDEN, so disable .hidden support if so.
  7061. +case "${target}" in
  7062. + i?86-*-solaris2* | x86_64-*-solaris2.1[[0-9]]*)
  7063. + if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
  7064. + cat > conftest.s <<EOF
  7065. +.globl hidden
  7066. + .hidden hidden
  7067. +hidden:
  7068. +.globl default
  7069. + .set default,hidden
  7070. +EOF
  7071. + if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
  7072. + && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
  7073. + grep '\.hidden default' > /dev/null; then
  7074. + gcc_cv_as_hidden=no
  7075. + else
  7076. + gcc_cv_as_hidden=yes
  7077. + fi
  7078. + else
  7079. + # Assume bug is present if objdump is missing.
  7080. + gcc_cv_as_hidden=no
  7081. + fi
  7082. + ;;
  7083. + *)
  7084. + gcc_cv_as_hidden=yes
  7085. + ;;
  7086. +esac])
  7087. +case "${target}" in
  7088. + *-*-darwin*)
  7089. + # Darwin as has some visibility support, though with a different syntax.
  7090. + gcc_cv_as_hidden=yes
  7091. + ;;
  7092. +esac
  7093. +
  7094. +# gnu_indirect_function type is an extension proposed at
  7095. +# http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
  7096. +# selection of function implementation
  7097. +AC_ARG_ENABLE(gnu-indirect-function,
  7098. + [AS_HELP_STRING([--enable-gnu-indirect-function],
  7099. + [enable the use of the @gnu_indirect_function to glibc systems])],
  7100. + [case $enable_gnu_indirect_function in
  7101. + yes | no) ;;
  7102. + *) AC_MSG_ERROR(['$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
  7103. +Valid choices are 'yes' and 'no'.]) ;;
  7104. + esac],
  7105. + [enable_gnu_indirect_function="$default_gnu_indirect_function"])
  7106. +
  7107. +gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
  7108. +AC_DEFINE_UNQUOTED(HAVE_GNU_INDIRECT_FUNCTION, $gif,
  7109. +[Define if your system supports gnu indirect functions.])
  7110. +
  7111. +
  7112. +changequote(,)dnl
  7113. +if test $in_tree_ld != yes ; then
  7114. + ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
  7115. + if echo "$ld_ver" | grep GNU > /dev/null; then
  7116. + if test x"$ld_is_gold" = xyes; then
  7117. + # GNU gold --version looks like this:
  7118. + #
  7119. + # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
  7120. + #
  7121. + # We extract the binutils version which is more familiar and specific
  7122. + # than the gold version.
  7123. + ld_vers=`echo $ld_ver | sed -n \
  7124. + -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
  7125. + else
  7126. + # GNU ld --version looks like this:
  7127. + #
  7128. + # GNU ld (GNU Binutils) 2.21.51.20110225
  7129. + ld_vers=`echo $ld_ver | sed -n \
  7130. + -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
  7131. + fi
  7132. + ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
  7133. + ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
  7134. + ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
  7135. + ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  7136. + else
  7137. + case "${target}" in
  7138. + *-*-solaris2*)
  7139. + # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
  7140. + # format.
  7141. + #
  7142. + # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
  7143. + # /usr/ccs/bin/ld has been configured.
  7144. + ld_ver=`$gcc_cv_ld -V 2>&1`
  7145. + if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
  7146. + ld_vers=`echo $ld_ver | sed -n \
  7147. + -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
  7148. + ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
  7149. + ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
  7150. + fi
  7151. + ;;
  7152. + esac
  7153. + fi
  7154. +fi
  7155. +changequote([,])dnl
  7156. +
  7157. +AC_CACHE_CHECK(linker for .hidden support, gcc_cv_ld_hidden,
  7158. +[[if test $in_tree_ld = yes ; then
  7159. + gcc_cv_ld_hidden=no
  7160. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
  7161. + && test $in_tree_ld_is_elf = yes; then
  7162. + gcc_cv_ld_hidden=yes
  7163. + fi
  7164. +else
  7165. + gcc_cv_ld_hidden=yes
  7166. + if test x"$ld_is_gold" = xyes; then
  7167. + :
  7168. + elif echo "$ld_ver" | grep GNU > /dev/null; then
  7169. + case "${target}" in
  7170. + mmix-knuth-mmixware)
  7171. + # The linker emits by default mmo, not ELF, so "no" is appropriate.
  7172. + gcc_cv_ld_hidden=no
  7173. + ;;
  7174. + esac
  7175. + if test 0"$ld_date" -lt 20020404; then
  7176. + if test -n "$ld_date"; then
  7177. + # If there was date string, but was earlier than 2002-04-04, fail
  7178. + gcc_cv_ld_hidden=no
  7179. + elif test -z "$ld_vers"; then
  7180. + # If there was no date string nor ld version number, something is wrong
  7181. + gcc_cv_ld_hidden=no
  7182. + else
  7183. + test -z "$ld_vers_patch" && ld_vers_patch=0
  7184. + if test "$ld_vers_major" -lt 2; then
  7185. + gcc_cv_ld_hidden=no
  7186. + elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
  7187. + gcc_cv_ld_hidden="no"
  7188. + elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
  7189. + gcc_cv_ld_hidden=no
  7190. + fi
  7191. + fi
  7192. + fi
  7193. + else
  7194. + case "${target}" in
  7195. + *-*-darwin*)
  7196. + # Darwin ld has some visibility support.
  7197. + gcc_cv_ld_hidden=yes
  7198. + ;;
  7199. + hppa64*-*-hpux* | ia64*-*-hpux*)
  7200. + gcc_cv_ld_hidden=yes
  7201. + ;;
  7202. + *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
  7203. + # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
  7204. + # .symbolic was only added in Solaris 9 12/02.
  7205. + gcc_cv_ld_hidden=yes
  7206. + ;;
  7207. + *)
  7208. + gcc_cv_ld_hidden=no
  7209. + ;;
  7210. + esac
  7211. + fi
  7212. +fi]])
  7213. +libgcc_visibility=no
  7214. +AC_SUBST(libgcc_visibility)
  7215. +GCC_TARGET_TEMPLATE([HAVE_GAS_HIDDEN])
  7216. +if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
  7217. + libgcc_visibility=yes
  7218. + AC_DEFINE(HAVE_GAS_HIDDEN, 1,
  7219. + [Define if your assembler and linker support .hidden.])
  7220. +fi
  7221. +
  7222. +AC_MSG_CHECKING(linker read-only and read-write section mixing)
  7223. +gcc_cv_ld_ro_rw_mix=unknown
  7224. +if test $in_tree_ld = yes ; then
  7225. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
  7226. + && test $in_tree_ld_is_elf = yes; then
  7227. + gcc_cv_ld_ro_rw_mix=read-write
  7228. + fi
  7229. +elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
  7230. + echo '.section myfoosect, "a"' > conftest1.s
  7231. + echo '.section myfoosect, "aw"' > conftest2.s
  7232. + echo '.byte 1' >> conftest2.s
  7233. + echo '.section myfoosect, "a"' > conftest3.s
  7234. + echo '.byte 0' >> conftest3.s
  7235. + if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
  7236. + && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
  7237. + && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
  7238. + && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
  7239. + conftest2.o conftest3.o > /dev/null 2>&1; then
  7240. + gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
  7241. + | sed -e '/myfoosect/!d' -e N`
  7242. + if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
  7243. + if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
  7244. + gcc_cv_ld_ro_rw_mix=read-only
  7245. + else
  7246. + gcc_cv_ld_ro_rw_mix=read-write
  7247. + fi
  7248. + fi
  7249. + fi
  7250. +changequote(,)dnl
  7251. + rm -f conftest.* conftest[123].*
  7252. +changequote([,])dnl
  7253. +fi
  7254. +if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
  7255. + AC_DEFINE(HAVE_LD_RO_RW_SECTION_MIXING, 1,
  7256. + [Define if your linker links a mix of read-only
  7257. + and read-write sections into a read-write section.])
  7258. +fi
  7259. +AC_MSG_RESULT($gcc_cv_ld_ro_rw_mix)
  7260. +
  7261. +gcc_AC_INITFINI_ARRAY
  7262. +
  7263. +# Check if we have .[us]leb128, and support symbol arithmetic with it.
  7264. +gcc_GAS_CHECK_FEATURE([.sleb128 and .uleb128], gcc_cv_as_leb128,
  7265. + [elf,2,11,0],,
  7266. +[ .data
  7267. + .uleb128 L2 - L1
  7268. +L1:
  7269. + .uleb128 1280
  7270. + .sleb128 -1010
  7271. +L2:],
  7272. +[[# GAS versions before 2.11 do not support uleb128,
  7273. + # despite appearing to.
  7274. + # ??? There exists an elf-specific test that will crash
  7275. + # the assembler. Perhaps it's better to figure out whether
  7276. + # arbitrary sections are supported and try the test.
  7277. + as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
  7278. + if echo "$as_ver" | grep GNU > /dev/null; then
  7279. + as_vers=`echo $as_ver | sed -n \
  7280. + -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
  7281. + as_major=`expr "$as_vers" : '\([0-9]*\)'`
  7282. + as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
  7283. + if test $as_major -eq 2 && test $as_minor -lt 11
  7284. + then :
  7285. + else gcc_cv_as_leb128=yes
  7286. + fi
  7287. + fi]],
  7288. + [AC_DEFINE(HAVE_AS_LEB128, 1,
  7289. + [Define if your assembler supports .sleb128 and .uleb128.])])
  7290. +
  7291. +# Check if we have assembler support for unwind directives.
  7292. +gcc_GAS_CHECK_FEATURE([cfi directives], gcc_cv_as_cfi_directive,
  7293. + ,,
  7294. +[ .text
  7295. + .cfi_startproc
  7296. + .cfi_offset 0, 0
  7297. + .cfi_same_value 1
  7298. + .cfi_def_cfa 1, 2
  7299. + .cfi_escape 1, 2, 3, 4, 5
  7300. + .cfi_endproc],
  7301. +[case "$target" in
  7302. + *-*-solaris*)
  7303. + # If the linker used on Solaris (like Sun ld) isn't capable of merging
  7304. + # read-only and read-write sections, we need to make sure that the
  7305. + # assembler used emits read-write .eh_frame sections.
  7306. + if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
  7307. + if test "x$gcc_cv_objdump" != x; then
  7308. + if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
  7309. + sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
  7310. + gcc_cv_as_cfi_directive=no
  7311. + else
  7312. + case "$target" in
  7313. + i?86-*-solaris2.1[[0-9]]* | x86_64-*-solaris2.1[[0-9]]*)
  7314. + # On Solaris/x86, make sure that GCC and gas agree on using
  7315. + # read-only .eh_frame sections for 64-bit.
  7316. + if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
  7317. + $gcc_cv_objdump -h conftest.o 2>/dev/null | \
  7318. + sed -e /.eh_frame/!d -e N | \
  7319. + grep READONLY > /dev/null; then
  7320. + gcc_cv_as_cfi_directive=yes
  7321. + else
  7322. + gcc_cv_as_cfi_directive=no
  7323. + fi
  7324. + ;;
  7325. + *)
  7326. + gcc_cv_as_cfi_directive=yes
  7327. + ;;
  7328. + esac
  7329. + fi
  7330. + else
  7331. + # no objdump, err on the side of caution
  7332. + gcc_cv_as_cfi_directive=no
  7333. + fi
  7334. + else
  7335. + gcc_cv_as_cfi_directive=yes
  7336. + fi
  7337. + ;;
  7338. + *-*-*)
  7339. + gcc_cv_as_cfi_directive=yes
  7340. + ;;
  7341. +esac])
  7342. +if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
  7343. +gcc_GAS_CHECK_FEATURE([working cfi advance], gcc_cv_as_cfi_advance_working,
  7344. + ,,
  7345. +[ .text
  7346. + .cfi_startproc
  7347. + .cfi_adjust_cfa_offset 64
  7348. + .skip 75040, 0
  7349. + .cfi_adjust_cfa_offset 128
  7350. + .cfi_endproc],
  7351. +[[
  7352. +if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
  7353. + | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
  7354. + gcc_cv_as_cfi_advance_working=yes
  7355. +fi
  7356. +]])
  7357. +else
  7358. + # no objdump, err on the side of caution
  7359. + gcc_cv_as_cfi_advance_working=no
  7360. +fi
  7361. +GCC_TARGET_TEMPLATE(HAVE_GAS_CFI_DIRECTIVE)
  7362. +AC_DEFINE_UNQUOTED(HAVE_GAS_CFI_DIRECTIVE,
  7363. + [`if test $gcc_cv_as_cfi_directive = yes \
  7364. + && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`],
  7365. + [Define 0/1 if your assembler supports CFI directives.])
  7366. +
  7367. +GCC_TARGET_TEMPLATE(HAVE_GAS_CFI_PERSONALITY_DIRECTIVE)
  7368. +gcc_GAS_CHECK_FEATURE([cfi personality directive],
  7369. + gcc_cv_as_cfi_personality_directive, ,,
  7370. +[ .text
  7371. + .cfi_startproc
  7372. + .cfi_personality 0, symbol
  7373. + .cfi_endproc])
  7374. +AC_DEFINE_UNQUOTED(HAVE_GAS_CFI_PERSONALITY_DIRECTIVE,
  7375. + [`if test $gcc_cv_as_cfi_personality_directive = yes;
  7376. + then echo 1; else echo 0; fi`],
  7377. + [Define 0/1 if your assembler supports .cfi_personality.])
  7378. +
  7379. +gcc_GAS_CHECK_FEATURE([cfi sections directive],
  7380. + gcc_cv_as_cfi_sections_directive, ,,
  7381. +[ .text
  7382. + .cfi_sections .debug_frame, .eh_frame
  7383. + .cfi_startproc
  7384. + .cfi_endproc],
  7385. +[case $target_os in
  7386. + win32 | pe | cygwin* | mingw32* | uwin*)
  7387. + # Need to check that we generated the correct relocation for the
  7388. + # .debug_frame section. This was fixed for binutils 2.21.
  7389. + gcc_cv_as_cfi_sections_directive=no
  7390. + if test "x$gcc_cv_objdump" != x; then
  7391. + if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
  7392. + grep secrel > /dev/null; then
  7393. + gcc_cv_as_cfi_sections_directive=yes
  7394. + fi
  7395. + fi
  7396. + ;;
  7397. + *)
  7398. + gcc_cv_as_cfi_sections_directive=yes
  7399. + ;;
  7400. +esac])
  7401. +GCC_TARGET_TEMPLATE(HAVE_GAS_CFI_SECTIONS_DIRECTIVE)
  7402. +AC_DEFINE_UNQUOTED(HAVE_GAS_CFI_SECTIONS_DIRECTIVE,
  7403. + [`if test $gcc_cv_as_cfi_sections_directive = yes;
  7404. + then echo 1; else echo 0; fi`],
  7405. + [Define 0/1 if your assembler supports .cfi_sections.])
  7406. +
  7407. +# GAS versions up to and including 2.11.0 may mis-optimize
  7408. +# .eh_frame data.
  7409. +gcc_GAS_CHECK_FEATURE(eh_frame optimization, gcc_cv_as_eh_frame,
  7410. + [elf,2,12,0],,
  7411. +[ .text
  7412. +.LFB1:
  7413. + .4byte 0
  7414. +.L1:
  7415. + .4byte 0
  7416. +.LFE1:
  7417. + .section .eh_frame,"aw",@progbits
  7418. +__FRAME_BEGIN__:
  7419. + .4byte .LECIE1-.LSCIE1
  7420. +.LSCIE1:
  7421. + .4byte 0x0
  7422. + .byte 0x1
  7423. + .ascii "z\0"
  7424. + .byte 0x1
  7425. + .byte 0x78
  7426. + .byte 0x1a
  7427. + .byte 0x0
  7428. + .byte 0x4
  7429. + .4byte 1
  7430. + .p2align 1
  7431. +.LECIE1:
  7432. +.LSFDE1:
  7433. + .4byte .LEFDE1-.LASFDE1
  7434. +.LASFDE1:
  7435. + .4byte .LASFDE1-__FRAME_BEGIN__
  7436. + .4byte .LFB1
  7437. + .4byte .LFE1-.LFB1
  7438. + .byte 0x4
  7439. + .4byte .LFE1-.LFB1
  7440. + .byte 0x4
  7441. + .4byte .L1-.LFB1
  7442. +.LEFDE1:],
  7443. +[ dnl # For autoconf 2.5x, must protect trailing spaces with @&t@.
  7444. +cat > conftest.lit <<EOF
  7445. + 0000 10000000 00000000 017a0001 781a0004 .........z..x...
  7446. + 0010 01000000 12000000 18000000 00000000 ................
  7447. + 0020 08000000 04080000 0044 .........D @&t@
  7448. +EOF
  7449. +cat > conftest.big <<EOF
  7450. + 0000 00000010 00000000 017a0001 781a0004 .........z..x...
  7451. + 0010 00000001 00000012 00000018 00000000 ................
  7452. + 0020 00000008 04000000 0844 .........D @&t@
  7453. +EOF
  7454. + # If the assembler didn't choke, and we can objdump,
  7455. + # and we got the correct data, then succeed.
  7456. + # The text in the here-document typically retains its unix-style line
  7457. + # endings, while the output of objdump will use host line endings.
  7458. + # Therefore, use diff -b for the comparisons.
  7459. + if test x$gcc_cv_objdump != x \
  7460. + && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
  7461. + | tail -3 > conftest.got \
  7462. + && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
  7463. + || diff -b conftest.big conftest.got > /dev/null 2>&1; }
  7464. + then
  7465. + gcc_cv_as_eh_frame=yes
  7466. + elif AC_TRY_COMMAND($gcc_cv_as -o conftest.o --traditional-format /dev/null); then
  7467. + gcc_cv_as_eh_frame=buggy
  7468. + else
  7469. + # Uh oh, what do we do now?
  7470. + gcc_cv_as_eh_frame=no
  7471. + fi])
  7472. +
  7473. +if test $gcc_cv_as_eh_frame = buggy; then
  7474. + AC_DEFINE(USE_AS_TRADITIONAL_FORMAT, 1,
  7475. + [Define if your assembler mis-optimizes .eh_frame data.])
  7476. +fi
  7477. +
  7478. +gcc_GAS_CHECK_FEATURE(section merging support, gcc_cv_as_shf_merge,
  7479. + [elf,2,12,0], [--fatal-warnings],
  7480. + [.section .rodata.str, "aMS", @progbits, 1])
  7481. +if test $gcc_cv_as_shf_merge = no; then
  7482. + gcc_GAS_CHECK_FEATURE(section merging support, gcc_cv_as_shf_merge,
  7483. + [elf,2,12,0], [--fatal-warnings],
  7484. + [.section .rodata.str, "aMS", %progbits, 1])
  7485. +fi
  7486. +AC_DEFINE_UNQUOTED(HAVE_GAS_SHF_MERGE,
  7487. + [`if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`],
  7488. +[Define 0/1 if your assembler supports marking sections with SHF_MERGE flag.])
  7489. +
  7490. +gcc_GAS_CHECK_FEATURE([COMDAT group support (GNU as)],
  7491. + gcc_cv_as_comdat_group,
  7492. + [elf,2,16,0], [--fatal-warnings],
  7493. + [.section .text,"axG",@progbits,.foo,comdat])
  7494. +if test $gcc_cv_as_comdat_group = yes; then
  7495. + gcc_cv_as_comdat_group_percent=no
  7496. + gcc_cv_as_comdat_group_group=no
  7497. +else
  7498. + gcc_GAS_CHECK_FEATURE([COMDAT group support (GNU as, %type)],
  7499. + gcc_cv_as_comdat_group_percent,
  7500. + [elf,2,16,0], [--fatal-warnings],
  7501. + [.section .text,"axG",%progbits,.foo,comdat])
  7502. + if test $gcc_cv_as_comdat_group_percent = yes; then
  7503. + gcc_cv_as_comdat_group_group=no
  7504. + else
  7505. + if test -z "${gcc_cv_as_comdat_group_group+set}"; then
  7506. + gcc_cv_as_comdat_group_group=no
  7507. + fi
  7508. + case "${target}" in
  7509. + # Sun as uses a completely different syntax.
  7510. + *-*-solaris2*)
  7511. + case "${target}" in
  7512. + sparc*-*-solaris2*)
  7513. + conftest_s='
  7514. + .group foo,".text%foo",#comdat
  7515. + .section ".text%foo", #alloc,#execinstr,#progbits
  7516. + .globl foo
  7517. + foo:
  7518. + '
  7519. + ;;
  7520. + i?86-*-solaris2* | x86_64-*-solaris2.1[[0-9]]*)
  7521. + conftest_s='
  7522. + .group foo,.text%foo,#comdat
  7523. + .section .text%foo, "ax", @progbits
  7524. + .globl foo
  7525. + foo:
  7526. + '
  7527. + ;;
  7528. + esac
  7529. + gcc_GAS_CHECK_FEATURE([COMDAT group support (Sun as, .group)],
  7530. + gcc_cv_as_comdat_group_group,
  7531. + ,, [$conftest_s])
  7532. + ;;
  7533. + esac
  7534. + fi
  7535. +fi
  7536. +if test x"$ld_is_gold" = xyes; then
  7537. + comdat_group=yes
  7538. +elif test $in_tree_ld = yes ; then
  7539. + comdat_group=no
  7540. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
  7541. + && test $in_tree_ld_is_elf = yes; then
  7542. + comdat_group=yes
  7543. + fi
  7544. +elif echo "$ld_ver" | grep GNU > /dev/null; then
  7545. + comdat_group=yes
  7546. + if test 0"$ld_date" -lt 20050308; then
  7547. + if test -n "$ld_date"; then
  7548. + # If there was date string, but was earlier than 2005-03-08, fail
  7549. + comdat_group=no
  7550. + elif test "$ld_vers_major" -lt 2; then
  7551. + comdat_group=no
  7552. + elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
  7553. + comdat_group=no
  7554. + fi
  7555. + fi
  7556. +else
  7557. +changequote(,)dnl
  7558. + case "${target}" in
  7559. + *-*-solaris2.1[1-9]*)
  7560. + comdat_group=no
  7561. + # Sun ld has COMDAT group support since Solaris 9, but it doesn't
  7562. + # interoperate with GNU as until Solaris 11 build 130, i.e. ld
  7563. + # version 1.688.
  7564. + #
  7565. + # If using Sun as for COMDAT group as emitted by GCC, one needs at
  7566. + # least ld version 1.2267.
  7567. + if test "$ld_vers_major" -gt 1; then
  7568. + comdat_group=yes
  7569. + elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
  7570. + comdat_group=yes
  7571. + elif test "$ld_vers_minor" -ge 2267; then
  7572. + comdat_group=yes
  7573. + fi
  7574. + ;;
  7575. + *)
  7576. + # Assume linkers other than GNU ld don't support COMDAT group.
  7577. + comdat_group=no
  7578. + ;;
  7579. + esac
  7580. +changequote([,])dnl
  7581. +fi
  7582. +# Allow overriding the automatic COMDAT group tests above.
  7583. +AC_ARG_ENABLE(comdat,
  7584. + [AS_HELP_STRING([--enable-comdat], [enable COMDAT group support])],
  7585. + [comdat_group="$enable_comdat"])
  7586. +if test $comdat_group = no; then
  7587. + gcc_cv_as_comdat_group=no
  7588. + gcc_cv_as_comdat_group_percent=no
  7589. + gcc_cv_as_comdat_group_group=no
  7590. +fi
  7591. +AC_DEFINE_UNQUOTED(HAVE_COMDAT_GROUP,
  7592. + [`if test $gcc_cv_as_comdat_group = yes \
  7593. + || test $gcc_cv_as_comdat_group_percent = yes \
  7594. + || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`],
  7595. +[Define 0/1 if your assembler and linker support COMDAT groups.])
  7596. +
  7597. +gcc_GAS_CHECK_FEATURE([line table discriminator support],
  7598. + gcc_cv_as_discriminator,
  7599. + [2,19,51],,
  7600. +[ .text
  7601. + .file 1 "conf.c"
  7602. + .loc 1 1 0 discriminator 1],,
  7603. +[AC_DEFINE(HAVE_GAS_DISCRIMINATOR, 1,
  7604. + [Define if your assembler supports the .loc discriminator sub-directive.])])
  7605. +
  7606. +# Thread-local storage - the check is heavily parameterized.
  7607. +conftest_s=
  7608. +tls_first_major=
  7609. +tls_first_minor=
  7610. +tls_as_opt=
  7611. +case "$target" in
  7612. +changequote(,)dnl
  7613. + alpha*-*-*)
  7614. + conftest_s='
  7615. + .section ".tdata","awT",@progbits
  7616. +foo: .long 25
  7617. + .text
  7618. + ldq $27,__tls_get_addr($29) !literal!1
  7619. + lda $16,foo($29) !tlsgd!1
  7620. + jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
  7621. + ldq $27,__tls_get_addr($29) !literal!2
  7622. + lda $16,foo($29) !tlsldm!2
  7623. + jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
  7624. + ldq $1,foo($29) !gotdtprel
  7625. + ldah $2,foo($29) !dtprelhi
  7626. + lda $3,foo($2) !dtprello
  7627. + lda $4,foo($29) !dtprel
  7628. + ldq $1,foo($29) !gottprel
  7629. + ldah $2,foo($29) !tprelhi
  7630. + lda $3,foo($2) !tprello
  7631. + lda $4,foo($29) !tprel'
  7632. + tls_first_major=2
  7633. + tls_first_minor=13
  7634. + tls_as_opt=--fatal-warnings
  7635. + ;;
  7636. + cris-*-*|crisv32-*-*)
  7637. + conftest_s='
  7638. + .section ".tdata","awT",@progbits
  7639. +x: .long 25
  7640. + .text
  7641. + move.d x:IE,$r10
  7642. + nop'
  7643. + tls_first_major=2
  7644. + tls_first_minor=20
  7645. + tls_as_opt=--fatal-warnings
  7646. + ;;
  7647. + frv*-*-*)
  7648. + conftest_s='
  7649. + .section ".tdata","awT",@progbits
  7650. +x: .long 25
  7651. + .text
  7652. + call #gettlsoff(x)'
  7653. + tls_first_major=2
  7654. + tls_first_minor=14
  7655. + ;;
  7656. + hppa*-*-linux*)
  7657. + conftest_s='
  7658. +t1: .reg %r20
  7659. +t2: .reg %r21
  7660. +gp: .reg %r19
  7661. + .section ".tdata","awT",@progbits
  7662. +foo: .long 25
  7663. + .text
  7664. + .align 4
  7665. + addil LT%foo-$tls_gdidx$,gp
  7666. + ldo RT%foo-$tls_gdidx$(%r1),%arg0
  7667. + b __tls_get_addr
  7668. + nop
  7669. + addil LT%foo-$tls_ldidx$,gp
  7670. + b __tls_get_addr
  7671. + ldo RT%foo-$tls_ldidx$(%r1),%arg0
  7672. + addil LR%foo-$tls_dtpoff$,%ret0
  7673. + ldo RR%foo-$tls_dtpoff$(%r1),%t1
  7674. + mfctl %cr27,%t1
  7675. + addil LT%foo-$tls_ieoff$,gp
  7676. + ldw RT%foo-$tls_ieoff$(%r1),%t2
  7677. + add %t1,%t2,%t3
  7678. + mfctl %cr27,%t1
  7679. + addil LR%foo-$tls_leoff$,%t1
  7680. + ldo RR%foo-$tls_leoff$(%r1),%t2'
  7681. + tls_first_major=2
  7682. + tls_first_minor=15
  7683. + tls_as_opt=--fatal-warnings
  7684. + ;;
  7685. + arm*-*-*)
  7686. + conftest_s='
  7687. + .section ".tdata","awT",%progbits
  7688. +foo: .long 25
  7689. + .text
  7690. +.word foo(gottpoff)
  7691. +.word foo(tpoff)
  7692. +.word foo(tlsgd)
  7693. +.word foo(tlsldm)
  7694. +.word foo(tlsldo)'
  7695. + tls_first_major=2
  7696. + tls_first_minor=17
  7697. + ;;
  7698. + i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
  7699. + case "$target" in
  7700. + i[34567]86-*-solaris2.*)
  7701. + on_solaris=yes
  7702. + tga_func=___tls_get_addr
  7703. + ;;
  7704. + x86_64-*-solaris2.1[0-9]*)
  7705. + on_solaris=yes
  7706. + tga_func=__tls_get_addr
  7707. + ;;
  7708. + *)
  7709. + on_solaris=no
  7710. + ;;
  7711. + esac
  7712. + if test x$on_solaris = xyes && test x$gas_flag = xno; then
  7713. + conftest_s='
  7714. + .section .tdata,"awt",@progbits'
  7715. + tls_first_major=0
  7716. + tls_first_minor=0
  7717. + tls_section_flag=t
  7718. +changequote([,])dnl
  7719. + AC_DEFINE(TLS_SECTION_ASM_FLAG, 't',
  7720. +[Define to the flag used to mark TLS sections if the default (`T') doesn't work.])
  7721. +changequote(,)dnl
  7722. + else
  7723. + conftest_s='
  7724. + .section ".tdata","awT",@progbits'
  7725. + tls_first_major=2
  7726. + tls_first_minor=14
  7727. + tls_section_flag=T
  7728. + tls_as_opt="--fatal-warnings"
  7729. + fi
  7730. + conftest_s="$conftest_s
  7731. +foo: .long 25
  7732. + .text
  7733. + movl %gs:0, %eax
  7734. + leal foo@tlsgd(,%ebx,1), %eax
  7735. + leal foo@tlsldm(%ebx), %eax
  7736. + leal foo@dtpoff(%eax), %edx
  7737. + movl foo@gottpoff(%ebx), %eax
  7738. + subl foo@gottpoff(%ebx), %eax
  7739. + addl foo@gotntpoff(%ebx), %eax
  7740. + movl foo@indntpoff, %eax
  7741. + movl \$foo@tpoff, %eax
  7742. + subl \$foo@tpoff, %eax
  7743. + leal foo@ntpoff(%ecx), %eax"
  7744. + ;;
  7745. + x86_64-*-*)
  7746. + conftest_s='
  7747. + .section ".tdata","awT",@progbits
  7748. +foo: .long 25
  7749. + .text
  7750. + movq %fs:0, %rax
  7751. + leaq foo@TLSGD(%rip), %rdi
  7752. + leaq foo@TLSLD(%rip), %rdi
  7753. + leaq foo@DTPOFF(%rax), %rdx
  7754. + movq foo@GOTTPOFF(%rip), %rax
  7755. + movq $foo@TPOFF, %rax'
  7756. + tls_first_major=2
  7757. + tls_first_minor=14
  7758. + tls_section_flag=T
  7759. + tls_as_opt=--fatal-warnings
  7760. + ;;
  7761. + ia64-*-*)
  7762. + conftest_s='
  7763. + .section ".tdata","awT",@progbits
  7764. +foo: data8 25
  7765. + .text
  7766. + addl r16 = @ltoff(@dtpmod(foo#)), gp
  7767. + addl r17 = @ltoff(@dtprel(foo#)), gp
  7768. + addl r18 = @ltoff(@tprel(foo#)), gp
  7769. + addl r19 = @dtprel(foo#), gp
  7770. + adds r21 = @dtprel(foo#), r13
  7771. + movl r23 = @dtprel(foo#)
  7772. + addl r20 = @tprel(foo#), gp
  7773. + adds r22 = @tprel(foo#), r13
  7774. + movl r24 = @tprel(foo#)'
  7775. + tls_first_major=2
  7776. + tls_first_minor=13
  7777. + tls_as_opt=--fatal-warnings
  7778. + ;;
  7779. + microblaze*-*-*)
  7780. + conftest_s='
  7781. + .section .tdata,"awT",@progbits
  7782. +x:
  7783. + .word 2
  7784. + .text
  7785. + addik r5,r20,x@TLSGD
  7786. + addik r5,r20,x@TLSLDM'
  7787. + tls_first_major=2
  7788. + tls_first_minor=20
  7789. + tls_as_opt='--fatal-warnings'
  7790. + ;;
  7791. + mips*-*-*)
  7792. + conftest_s='
  7793. + .section .tdata,"awT",@progbits
  7794. +x:
  7795. + .word 2
  7796. + .text
  7797. + addiu $4, $28, %tlsgd(x)
  7798. + addiu $4, $28, %tlsldm(x)
  7799. + lui $4, %dtprel_hi(x)
  7800. + addiu $4, $4, %dtprel_lo(x)
  7801. + lw $4, %gottprel(x)($28)
  7802. + lui $4, %tprel_hi(x)
  7803. + addiu $4, $4, %tprel_lo(x)'
  7804. + tls_first_major=2
  7805. + tls_first_minor=16
  7806. + tls_as_opt='-32 --fatal-warnings'
  7807. + ;;
  7808. + m68k-*-*)
  7809. + conftest_s='
  7810. + .section .tdata,"awT",@progbits
  7811. +x:
  7812. + .word 2
  7813. + .text
  7814. +foo:
  7815. + move.l x@TLSGD(%a5),%a0
  7816. + move.l x@TLSLDM(%a5),%a0
  7817. + move.l x@TLSLDO(%a5),%a0
  7818. + move.l x@TLSIE(%a5),%a0
  7819. + move.l x@TLSLE(%a5),%a0'
  7820. + tls_first_major=2
  7821. + tls_first_minor=19
  7822. + tls_as_opt='--fatal-warnings'
  7823. + ;;
  7824. + nios2-*-*)
  7825. + conftest_s='
  7826. + .section ".tdata","awT",@progbits'
  7827. + tls_first_major=2
  7828. + tls_first_minor=23
  7829. + tls_as_opt="--fatal-warnings"
  7830. + ;;
  7831. + aarch64*-*-*)
  7832. + conftest_s='
  7833. + .section ".tdata","awT",%progbits
  7834. +foo: .long 25
  7835. + .text
  7836. + adrp x0, :tlsgd:x
  7837. + add x0, x0, #:tlsgd_lo12:x
  7838. + bl __tls_get_addr
  7839. + nop'
  7840. + tls_first_major=2
  7841. + tls_first_minor=20
  7842. + tls_as_opt='--fatal-warnings'
  7843. + ;;
  7844. + or1k*-*-*)
  7845. + conftest_s='
  7846. + .section ".tdata","awT",%progbits
  7847. +foo: .long 25
  7848. + .text
  7849. + l.movhi r3,tlsgdhi(foo)
  7850. + l.ori r3,r3,tlsgdlo(foo)
  7851. +
  7852. + l.jal __tls_get_addr
  7853. + l.nop'
  7854. + tls_first_major=2
  7855. + tls_first_minor=23
  7856. + tls_as_opt='--fatal-warnings'
  7857. + ;;
  7858. + powerpc-ibm-aix*)
  7859. + conftest_s='
  7860. + .extern __get_tpointer
  7861. + .toc
  7862. +LC..1:
  7863. + .tc a[TC],a[TL]@le
  7864. + .csect .text[PR]
  7865. +.tlstest:
  7866. + lwz 9,LC..1(2)
  7867. + bla __get_tpointer
  7868. + lwzx 3,9,3
  7869. + .globl a
  7870. + .csect a[TL],4
  7871. +a:
  7872. + .space 4'
  7873. + tls_first_major=0
  7874. + tls_first_minor=0
  7875. + ;;
  7876. + powerpc64*-*-*)
  7877. + conftest_s='
  7878. + .section ".tdata","awT",@progbits
  7879. + .align 3
  7880. +ld0: .space 8
  7881. +ld1: .space 8
  7882. +x1: .space 8
  7883. +x2: .space 8
  7884. +x3: .space 8
  7885. + .text
  7886. + addi 3,2,ld0@got@tlsgd
  7887. + bl .__tls_get_addr
  7888. + nop
  7889. + addi 3,2,ld1@toc
  7890. + bl .__tls_get_addr
  7891. + nop
  7892. + addi 3,2,x1@got@tlsld
  7893. + bl .__tls_get_addr
  7894. + nop
  7895. + addi 9,3,x1@dtprel
  7896. + bl .__tls_get_addr
  7897. + nop
  7898. + addis 9,3,x2@dtprel@ha
  7899. + addi 9,9,x2@dtprel@l
  7900. + bl .__tls_get_addr
  7901. + nop
  7902. + ld 9,x3@got@dtprel(2)
  7903. + add 9,9,3
  7904. + bl .__tls_get_addr
  7905. + nop'
  7906. + tls_first_major=2
  7907. + tls_first_minor=14
  7908. + tls_as_opt="-a64 --fatal-warnings"
  7909. + ;;
  7910. + powerpc*-*-*)
  7911. + conftest_s='
  7912. + .section ".tdata","awT",@progbits
  7913. + .align 2
  7914. +ld0: .space 4
  7915. +ld1: .space 4
  7916. +x1: .space 4
  7917. +x2: .space 4
  7918. +x3: .space 4
  7919. + .text
  7920. + addi 3,31,ld0@got@tlsgd
  7921. + bl __tls_get_addr
  7922. + addi 3,31,x1@got@tlsld
  7923. + bl __tls_get_addr
  7924. + addi 9,3,x1@dtprel
  7925. + addis 9,3,x2@dtprel@ha
  7926. + addi 9,9,x2@dtprel@l
  7927. + lwz 9,x3@got@tprel(31)
  7928. + add 9,9,x@tls
  7929. + addi 9,2,x1@tprel
  7930. + addis 9,2,x2@tprel@ha
  7931. + addi 9,9,x2@tprel@l'
  7932. + tls_first_major=2
  7933. + tls_first_minor=14
  7934. + tls_as_opt="-a32 --fatal-warnings"
  7935. + ;;
  7936. + s390-*-*)
  7937. + conftest_s='
  7938. + .section ".tdata","awT",@progbits
  7939. +foo: .long 25
  7940. + .text
  7941. + .long foo@TLSGD
  7942. + .long foo@TLSLDM
  7943. + .long foo@DTPOFF
  7944. + .long foo@NTPOFF
  7945. + .long foo@GOTNTPOFF
  7946. + .long foo@INDNTPOFF
  7947. + l %r1,foo@GOTNTPOFF(%r12)
  7948. + l %r1,0(%r1):tls_load:foo
  7949. + bas %r14,0(%r1,%r13):tls_gdcall:foo
  7950. + bas %r14,0(%r1,%r13):tls_ldcall:foo'
  7951. + tls_first_major=2
  7952. + tls_first_minor=14
  7953. + tls_as_opt="-m31 --fatal-warnings"
  7954. + ;;
  7955. + s390x-*-*)
  7956. + conftest_s='
  7957. + .section ".tdata","awT",@progbits
  7958. +foo: .long 25
  7959. + .text
  7960. + .quad foo@TLSGD
  7961. + .quad foo@TLSLDM
  7962. + .quad foo@DTPOFF
  7963. + .quad foo@NTPOFF
  7964. + .quad foo@GOTNTPOFF
  7965. + lg %r1,foo@GOTNTPOFF(%r12)
  7966. + larl %r1,foo@INDNTPOFF
  7967. + brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
  7968. + brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
  7969. + tls_first_major=2
  7970. + tls_first_minor=14
  7971. + tls_as_opt="-m64 -Aesame --fatal-warnings"
  7972. + ;;
  7973. + sh-*-* | sh[34]-*-*)
  7974. + conftest_s='
  7975. + .section ".tdata","awT",@progbits
  7976. +foo: .long 25
  7977. + .text
  7978. + .long foo@TLSGD
  7979. + .long foo@TLSLDM
  7980. + .long foo@DTPOFF
  7981. + .long foo@GOTTPOFF
  7982. + .long foo@TPOFF'
  7983. + tls_first_major=2
  7984. + tls_first_minor=13
  7985. + tls_as_opt=--fatal-warnings
  7986. + ;;
  7987. + sparc*-*-*)
  7988. + case "$target" in
  7989. + sparc*-sun-solaris2.*)
  7990. + on_solaris=yes
  7991. + tga_func=__tls_get_addr
  7992. + ;;
  7993. + *)
  7994. + on_solaris=no
  7995. + ;;
  7996. + esac
  7997. + if test x$on_solaris = xyes && test x$gas_flag = xno; then
  7998. + conftest_s='
  7999. + .section ".tdata",#alloc,#write,#tls'
  8000. + tls_first_major=0
  8001. + tls_first_minor=0
  8002. + else
  8003. + conftest_s='
  8004. + .section ".tdata","awT",@progbits'
  8005. + tls_first_major=2
  8006. + tls_first_minor=14
  8007. + tls_as_opt="-32 --fatal-warnings"
  8008. + fi
  8009. + conftest_s="$conftest_s
  8010. +foo: .long 25
  8011. + .text
  8012. + sethi %tgd_hi22(foo), %o0
  8013. + add %o0, %tgd_lo10(foo), %o1
  8014. + add %l7, %o1, %o0, %tgd_add(foo)
  8015. + call __tls_get_addr, %tgd_call(foo)
  8016. + sethi %tldm_hi22(foo), %l1
  8017. + add %l1, %tldm_lo10(foo), %l2
  8018. + add %l7, %l2, %o0, %tldm_add(foo)
  8019. + call __tls_get_addr, %tldm_call(foo)
  8020. + sethi %tldo_hix22(foo), %l3
  8021. + xor %l3, %tldo_lox10(foo), %l4
  8022. + add %o0, %l4, %l5, %tldo_add(foo)
  8023. + sethi %tie_hi22(foo), %o3
  8024. + add %o3, %tie_lo10(foo), %o3
  8025. + ld [%l7 + %o3], %o2, %tie_ld(foo)
  8026. + add %g7, %o2, %o4, %tie_add(foo)
  8027. + sethi %tle_hix22(foo), %l1
  8028. + xor %l1, %tle_lox10(foo), %o5
  8029. + ld [%g7 + %o5], %o1"
  8030. + ;;
  8031. + tilepro*-*-*)
  8032. + conftest_s='
  8033. + .section ".tdata","awT",@progbits
  8034. +foo: .long 25
  8035. + .text
  8036. + addli r0, zero, tls_gd(foo)
  8037. + auli r0, zero, tls_gd_ha16(foo)
  8038. + addli r0, r0, tls_gd_lo16(foo)
  8039. + jal __tls_get_addr
  8040. + addli r0, zero, tls_ie(foo)
  8041. + auli r0, r0, tls_ie_ha16(foo)
  8042. + addli r0, r0, tls_ie_lo16(foo)'
  8043. + tls_first_major=2
  8044. + tls_first_minor=22
  8045. + tls_as_opt="--fatal-warnings"
  8046. + ;;
  8047. + tilegx*-*-*)
  8048. + conftest_s='
  8049. + .section ".tdata","awT",@progbits
  8050. +foo: .long 25
  8051. + .text
  8052. + shl16insli r0, zero, hw0_last_tls_gd(foo)
  8053. + shl16insli r0, zero, hw1_last_tls_gd(foo)
  8054. + shl16insli r0, r0, hw0_tls_gd(foo)
  8055. + jal __tls_get_addr
  8056. + shl16insli r0, zero, hw1_last_tls_ie(foo)
  8057. + shl16insli r0, r0, hw0_tls_ie(foo)'
  8058. + tls_first_major=2
  8059. + tls_first_minor=22
  8060. + tls_as_opt="--fatal-warnings"
  8061. + ;;
  8062. + xtensa*-*-*)
  8063. + conftest_s='
  8064. + .section ".tdata","awT",@progbits
  8065. +foo: .long 25
  8066. + .text
  8067. + movi a8, foo@TLSFUNC
  8068. + movi a10, foo@TLSARG
  8069. + callx8.tls a8, foo@TLSCALL'
  8070. + tls_first_major=2
  8071. + tls_first_minor=19
  8072. + ;;
  8073. +changequote([,])dnl
  8074. +esac
  8075. +set_have_as_tls=no
  8076. +if test "x$enable_tls" = xno ; then
  8077. + : # TLS explicitly disabled.
  8078. +elif test "x$enable_tls" = xyes ; then
  8079. + set_have_as_tls=yes # TLS explicitly enabled.
  8080. +elif test -z "$tls_first_major"; then
  8081. + : # If we don't have a check, assume no support.
  8082. +else
  8083. + gcc_GAS_CHECK_FEATURE(thread-local storage support, gcc_cv_as_tls,
  8084. + [$tls_first_major,$tls_first_minor,0], [$tls_as_opt], [$conftest_s],,
  8085. + [set_have_as_tls=yes])
  8086. +fi
  8087. +case "$target" in
  8088. + # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
  8089. + # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
  8090. + # Sun style that Sun ld and GCC don't support any longer.
  8091. + *-*-solaris2.*)
  8092. + AC_MSG_CHECKING(linker and ld.so.1 TLS support)
  8093. + ld_tls_support=no
  8094. + # Check ld and ld.so.1 TLS support.
  8095. + if echo "$ld_ver" | grep GNU > /dev/null; then
  8096. + # Assume all interesting versions of GNU ld have TLS support.
  8097. + # FIXME: still need ld.so.1 support, i.e. ld version checks below.
  8098. + ld_tls_support=yes
  8099. + else
  8100. + case "$target" in
  8101. + # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
  8102. + i?86-*-solaris2.9)
  8103. + min_tls_ld_vers_minor=374
  8104. + ;;
  8105. + # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
  8106. + sparc*-*-solaris2.9 | *-*-solaris2.1[[0-9]]*)
  8107. + min_tls_ld_vers_minor=343
  8108. + ;;
  8109. + esac
  8110. + if test "$ld_vers_major" -gt 1 || \
  8111. + test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
  8112. + ld_tls_support=yes
  8113. + else
  8114. + set_have_as_tls=no
  8115. + fi
  8116. + fi
  8117. + AC_MSG_RESULT($ld_tls_support)
  8118. +
  8119. + save_LIBS="$LIBS"
  8120. + save_LDFLAGS="$LDFLAGS"
  8121. + LIBS=
  8122. + LDFLAGS=
  8123. +
  8124. + AC_MSG_CHECKING(library containing $tga_func)
  8125. + # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
  8126. + # (32-bit x86) only lived in libthread, so check for that. Keep
  8127. + # set_have_as_tls if found, disable if not.
  8128. + AC_SEARCH_LIBS([$tga_func], [thread],, [set_have_as_tls=no])
  8129. + ld_tls_libs="$LIBS"
  8130. + # Clear LIBS if we cannot support TLS.
  8131. + if test $set_have_as_tls = no; then
  8132. + LIBS=
  8133. + fi
  8134. + # Always define LIB_TLS_SPEC, even without TLS support.
  8135. + AC_DEFINE_UNQUOTED(LIB_TLS_SPEC, "$LIBS",
  8136. + [Define to the library containing __tls_get_addr/___tls_get_addr.])
  8137. + AC_MSG_RESULT($LIBS)
  8138. +
  8139. + LIBS="$save_LIBS"
  8140. + LDFLAGS="$save_LDFLAGS"
  8141. + ;;
  8142. +esac
  8143. +if test $set_have_as_tls = yes ; then
  8144. + AC_DEFINE(HAVE_AS_TLS, 1,
  8145. + [Define if your assembler and linker support thread-local storage.])
  8146. +fi
  8147. +
  8148. +# Target-specific assembler checks.
  8149. +
  8150. +AC_MSG_CHECKING(linker -Bstatic/-Bdynamic option)
  8151. +gcc_cv_ld_static_dynamic=no
  8152. +gcc_cv_ld_static_option='-Bstatic'
  8153. +gcc_cv_ld_dynamic_option='-Bdynamic'
  8154. +if test $in_tree_ld = yes ; then
  8155. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
  8156. + gcc_cv_ld_static_dynamic=yes
  8157. + fi
  8158. +elif test x$gcc_cv_ld != x; then
  8159. + # Check if linker supports -Bstatic/-Bdynamic option
  8160. + if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
  8161. + && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
  8162. + gcc_cv_ld_static_dynamic=yes
  8163. + else
  8164. + case "$target" in
  8165. + # AIX ld uses -b flags
  8166. + *-*-aix4.[[23]]* | *-*-aix[[5-9]]*)
  8167. + gcc_cv_ld_static_dynamic=yes
  8168. + gcc_cv_ld_static_option="-bstatic"
  8169. + gcc_cv_ld_dynamic_option="-bdynamic"
  8170. + ;;
  8171. + # HP-UX ld uses -a flags to select between shared and archive.
  8172. + *-*-hpux*)
  8173. + if test x"$gnu_ld" = xno; then
  8174. + gcc_cv_ld_static_dynamic=yes
  8175. + gcc_cv_ld_static_option="-aarchive_shared"
  8176. + gcc_cv_ld_dynamic_option="-adefault"
  8177. + fi
  8178. + ;;
  8179. + # Solaris 2 ld always supports -Bstatic/-Bdynamic.
  8180. + *-*-solaris2*)
  8181. + gcc_cv_ld_static_dynamic=yes
  8182. + ;;
  8183. + esac
  8184. + fi
  8185. +fi
  8186. +if test x"$gcc_cv_ld_static_dynamic" = xyes; then
  8187. + AC_DEFINE(HAVE_LD_STATIC_DYNAMIC, 1,
  8188. +[Define if your linker supports -Bstatic/-Bdynamic or equivalent options.])
  8189. + AC_DEFINE_UNQUOTED(LD_STATIC_OPTION, "$gcc_cv_ld_static_option",
  8190. +[Define to the linker option to disable use of shared objects.])
  8191. + AC_DEFINE_UNQUOTED(LD_DYNAMIC_OPTION, "$gcc_cv_ld_dynamic_option",
  8192. +[Define to the linker option to enable use of shared objects.])
  8193. +fi
  8194. +AC_MSG_RESULT($gcc_cv_ld_static_dynamic)
  8195. +
  8196. +if test x"$demangler_in_ld" = xyes; then
  8197. + AC_MSG_CHECKING(linker --demangle support)
  8198. + gcc_cv_ld_demangle=no
  8199. + if test $in_tree_ld = yes; then
  8200. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
  8201. + gcc_cv_ld_demangle=yes
  8202. + fi
  8203. + elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
  8204. + # Check if the GNU linker supports --demangle option
  8205. + if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
  8206. + gcc_cv_ld_demangle=yes
  8207. + fi
  8208. + fi
  8209. + if test x"$gcc_cv_ld_demangle" = xyes; then
  8210. + AC_DEFINE(HAVE_LD_DEMANGLE, 1,
  8211. +[Define if your linker supports --demangle option.])
  8212. + fi
  8213. + AC_MSG_RESULT($gcc_cv_ld_demangle)
  8214. +fi
  8215. +
  8216. +AC_MSG_CHECKING(linker plugin support)
  8217. +gcc_cv_lto_plugin=0
  8218. +if test -f liblto_plugin.la; then
  8219. + save_ld_ver="$ld_ver"
  8220. + save_ld_vers_major="$ld_vers_major"
  8221. + save_ld_vers_minor="$ld_vers_minor"
  8222. + save_ld_is_gold="$ld_is_gold"
  8223. +
  8224. + ld_is_gold=no
  8225. +
  8226. + if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
  8227. + ld_ver="GNU ld"
  8228. + # FIXME: ld_is_gold?
  8229. + ld_vers_major="$gcc_cv_gld_major_version"
  8230. + ld_vers_minor="$gcc_cv_gld_minor_version"
  8231. + else
  8232. + # Determine plugin linker version.
  8233. + # FIXME: Partial duplicate from above, generalize.
  8234. +changequote(,)dnl
  8235. + ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
  8236. + if echo "$ld_ver" | grep GNU > /dev/null; then
  8237. + if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
  8238. + ld_is_gold=yes
  8239. + ld_vers=`echo $ld_ver | sed -n \
  8240. + -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
  8241. + else
  8242. + ld_vers=`echo $ld_ver | sed -n \
  8243. + -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
  8244. + fi
  8245. + ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
  8246. + ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
  8247. + fi
  8248. +changequote([,])dnl
  8249. + fi
  8250. +
  8251. + # Determine plugin support.
  8252. + if echo "$ld_ver" | grep GNU > /dev/null; then
  8253. + # Require GNU ld or gold 2.21+ for plugin support by default.
  8254. + if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
  8255. + gcc_cv_lto_plugin=2
  8256. + # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
  8257. + elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
  8258. + gcc_cv_lto_plugin=1
  8259. + fi
  8260. + fi
  8261. +
  8262. + ld_ver="$save_ld_ver"
  8263. + ld_vers_major="$save_ld_vers_major"
  8264. + ld_vers_minor="$save_ld_vers_minor"
  8265. + ld_is_gold="$save_ld_is_gold"
  8266. +fi
  8267. +AC_DEFINE_UNQUOTED(HAVE_LTO_PLUGIN, $gcc_cv_lto_plugin,
  8268. + [Define to the level of your linker's plugin support.])
  8269. +AC_MSG_RESULT($gcc_cv_lto_plugin)
  8270. +
  8271. +case "$target" in
  8272. + aarch64*-*-*)
  8273. + gcc_GAS_CHECK_FEATURE([-mabi option], gcc_cv_as_aarch64_mabi,,
  8274. + [-mabi=lp64], [.text],,,)
  8275. + if test x$gcc_cv_as_aarch64_mabi = xyes; then
  8276. + AC_DEFINE(HAVE_AS_MABI_OPTION, 1,
  8277. + [Define if your assembler supports the -mabi option.])
  8278. + else
  8279. + if test x$with_abi = xilp32; then
  8280. + AC_MSG_ERROR([Assembler does not support -mabi=ilp32.\
  8281. + Upgrade the Assembler.])
  8282. + fi
  8283. + if test x"$with_multilib_list" = xdefault; then
  8284. + TM_MULTILIB_CONFIG=lp64
  8285. + else
  8286. + aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
  8287. + for aarch64_multilib in ${aarch64_multilibs}; do
  8288. + case ${aarch64_multilib} in
  8289. + ilp32)
  8290. + AC_MSG_ERROR([Assembler does not support -mabi=ilp32.\
  8291. + Upgrade the Assembler.])
  8292. + ;;
  8293. + *)
  8294. + ;;
  8295. + esac
  8296. + done
  8297. + fi
  8298. + fi
  8299. + # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
  8300. + AC_ARG_ENABLE(fix-cortex-a53-835769,
  8301. + [
  8302. +AS_HELP_STRING([--enable-fix-cortex-a53-835769],
  8303. + [enable workaround for AArch64 Cortex-A53 erratum 835769 by default])
  8304. +AS_HELP_STRING([--disable-fix-cortex-a53-835769],
  8305. + [disable workaround for AArch64 Cortex-A53 erratum 835769 by default])
  8306. + ],
  8307. + [
  8308. + case $enableval in
  8309. + yes)
  8310. + tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
  8311. + ;;
  8312. + no)
  8313. + ;;
  8314. + *)
  8315. + AC_MSG_ERROR(['$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
  8316. + Valid choices are 'yes' and 'no'.])
  8317. + ;;
  8318. +
  8319. + esac
  8320. + ],
  8321. + [])
  8322. + ;;
  8323. +
  8324. + # All TARGET_ABI_OSF targets.
  8325. + alpha*-*-linux* | alpha*-*-*bsd*)
  8326. + gcc_GAS_CHECK_FEATURE([explicit relocation support],
  8327. + gcc_cv_as_alpha_explicit_relocs, [2,12,0],,
  8328. +[ .set nomacro
  8329. + .text
  8330. + extbl $3, $2, $3 !lituse_bytoff!1
  8331. + ldq $2, a($29) !literal!1
  8332. + ldq $4, b($29) !literal!2
  8333. + ldq_u $3, 0($2) !lituse_base!1
  8334. + ldq $27, f($29) !literal!5
  8335. + jsr $26, ($27), f !lituse_jsr!5
  8336. + ldah $29, 0($26) !gpdisp!3
  8337. + lda $0, c($29) !gprel
  8338. + ldah $1, d($29) !gprelhigh
  8339. + lda $1, d($1) !gprellow
  8340. + lda $29, 0($29) !gpdisp!3],,
  8341. + [AC_DEFINE(HAVE_AS_EXPLICIT_RELOCS, 1,
  8342. + [Define if your assembler supports explicit relocations.])])
  8343. + gcc_GAS_CHECK_FEATURE([jsrdirect relocation support],
  8344. + gcc_cv_as_alpha_jsrdirect_relocs, [2,16,90],,
  8345. +[ .set nomacro
  8346. + .text
  8347. + ldq $27, a($29) !literal!1
  8348. + jsr $26, ($27), a !lituse_jsrdirect!1],,
  8349. + [AC_DEFINE(HAVE_AS_JSRDIRECT_RELOCS, 1,
  8350. + [Define if your assembler supports the lituse_jsrdirect relocation.])])
  8351. + ;;
  8352. +
  8353. + cris-*-*)
  8354. + gcc_GAS_CHECK_FEATURE([-no-mul-bug-abort option],
  8355. + gcc_cv_as_cris_no_mul_bug,[2,15,91],
  8356. + [-no-mul-bug-abort], [.text],,
  8357. + [AC_DEFINE(HAVE_AS_NO_MUL_BUG_ABORT_OPTION, 1,
  8358. + [Define if your assembler supports the -no-mul-bug-abort option.])])
  8359. + ;;
  8360. +
  8361. + sparc*-*-*)
  8362. + gcc_GAS_CHECK_FEATURE([.register], gcc_cv_as_sparc_register_op,,,
  8363. + [.register %g2, #scratch],,
  8364. + [AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
  8365. + [Define if your assembler supports .register.])])
  8366. +
  8367. + gcc_GAS_CHECK_FEATURE([@%:@nobits], gcc_cv_as_sparc_nobits,,,
  8368. + [.section "nobits",#alloc,#write,#nobits
  8369. + .section "progbits",#alloc,#write,#progbits])
  8370. + AC_DEFINE_UNQUOTED(HAVE_AS_SPARC_NOBITS,
  8371. + [`if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`],
  8372. + [Define to 1 if your assembler supports #nobits, 0 otherwise.])
  8373. +
  8374. + gcc_GAS_CHECK_FEATURE([-relax option], gcc_cv_as_sparc_relax,,
  8375. + [-relax], [.text],,
  8376. + [AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
  8377. + [Define if your assembler supports -relax option.])])
  8378. +
  8379. + gcc_GAS_CHECK_FEATURE([GOTDATA_OP relocs],
  8380. + gcc_cv_as_sparc_gotdata_op,,
  8381. + [-K PIC],
  8382. +[.text
  8383. +.align 4
  8384. +foo:
  8385. + nop
  8386. +bar:
  8387. + sethi %gdop_hix22(foo), %g1
  8388. + xor %g1, %gdop_lox10(foo), %g1
  8389. + ld [[%l7 + %g1]], %g2, %gdop(foo)],
  8390. + [if test x$gcc_cv_ld != x \
  8391. + && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
  8392. + if test x$gcc_cv_objdump != x; then
  8393. + if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
  8394. + | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
  8395. + gcc_cv_as_sparc_gotdata_op=no
  8396. + else
  8397. + gcc_cv_as_sparc_gotdata_op=yes
  8398. + fi
  8399. + fi
  8400. + fi
  8401. + rm -f conftest],
  8402. + [AC_DEFINE(HAVE_AS_SPARC_GOTDATA_OP, 1,
  8403. + [Define if your assembler and linker support GOTDATA_OP relocs.])])
  8404. +
  8405. + gcc_GAS_CHECK_FEATURE([unaligned pcrel relocs],
  8406. + gcc_cv_as_sparc_ua_pcrel,,
  8407. + [-K PIC],
  8408. +[.text
  8409. +foo:
  8410. + nop
  8411. +.data
  8412. +.align 4
  8413. +.byte 0
  8414. +.uaword %r_disp32(foo)],
  8415. + [if test x$gcc_cv_ld != x \
  8416. + && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
  8417. + gcc_cv_as_sparc_ua_pcrel=yes
  8418. + fi
  8419. + rm -f conftest],
  8420. + [AC_DEFINE(HAVE_AS_SPARC_UA_PCREL, 1,
  8421. + [Define if your assembler and linker support unaligned PC relative relocs.])
  8422. +
  8423. + gcc_GAS_CHECK_FEATURE([unaligned pcrel relocs against hidden symbols],
  8424. + gcc_cv_as_sparc_ua_pcrel_hidden,,
  8425. + [-K PIC],
  8426. +[.data
  8427. +.align 4
  8428. +.byte 0x31
  8429. +.uaword %r_disp32(foo)
  8430. +.byte 0x32, 0x33, 0x34
  8431. +.global foo
  8432. +.hidden foo
  8433. +foo:
  8434. +.skip 4],
  8435. + [if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
  8436. + && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
  8437. + && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
  8438. + | grep ' 31000000 07323334' > /dev/null 2>&1; then
  8439. + if $gcc_cv_objdump -R conftest 2> /dev/null \
  8440. + | grep 'DISP32' > /dev/null 2>&1; then
  8441. + :
  8442. + else
  8443. + gcc_cv_as_sparc_ua_pcrel_hidden=yes
  8444. + fi
  8445. + fi
  8446. + rm -f conftest],
  8447. + [AC_DEFINE(HAVE_AS_SPARC_UA_PCREL_HIDDEN, 1,
  8448. + [Define if your assembler and linker support unaligned PC relative relocs against hidden symbols.])])
  8449. + ]) # unaligned pcrel relocs
  8450. +
  8451. + gcc_GAS_CHECK_FEATURE([offsetable %lo()],
  8452. + gcc_cv_as_sparc_offsetable_lo10,,
  8453. + [-xarch=v9],
  8454. +[.text
  8455. + or %g1, %lo(ab) + 12, %g1
  8456. + or %g1, %lo(ab + 12), %g1],
  8457. + [if test x$gcc_cv_objdump != x \
  8458. + && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
  8459. + | grep ' 82106000 82106000' > /dev/null 2>&1; then
  8460. + gcc_cv_as_sparc_offsetable_lo10=yes
  8461. + fi],
  8462. + [AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
  8463. + [Define if your assembler supports offsetable %lo().])])
  8464. +
  8465. + gcc_GAS_CHECK_FEATURE([FMAF, HPC, and VIS 3.0 instructions],
  8466. + gcc_cv_as_sparc_fmaf,,
  8467. + [-xarch=v9d],
  8468. + [.text
  8469. + .register %g2, #scratch
  8470. + .register %g3, #scratch
  8471. + .align 4
  8472. + fmaddd %f0, %f2, %f4, %f6
  8473. + addxccc %g1, %g2, %g3
  8474. + fsrl32 %f2, %f4, %f8
  8475. + fnaddd %f10, %f12, %f14],,
  8476. + [AC_DEFINE(HAVE_AS_FMAF_HPC_VIS3, 1,
  8477. + [Define if your assembler supports FMAF, HPC, and VIS 3.0 instructions.])])
  8478. +
  8479. + gcc_GAS_CHECK_FEATURE([SPARC4 instructions],
  8480. + gcc_cv_as_sparc_sparc4,,
  8481. + [-xarch=sparc4],
  8482. + [.text
  8483. + .register %g2, #scratch
  8484. + .register %g3, #scratch
  8485. + .align 4
  8486. + cxbe %g2, %g3, 1f
  8487. +1: cwbneg %g2, %g3, 1f
  8488. +1: sha1
  8489. + md5
  8490. + aes_kexpand0 %f4, %f6, %f8
  8491. + des_round %f38, %f40, %f42, %f44
  8492. + camellia_f %f54, %f56, %f58, %f60
  8493. + kasumi_fi_xor %f46, %f48, %f50, %f52],,
  8494. + [AC_DEFINE(HAVE_AS_SPARC4, 1,
  8495. + [Define if your assembler supports SPARC4 instructions.])])
  8496. +
  8497. + gcc_GAS_CHECK_FEATURE([LEON instructions],
  8498. + gcc_cv_as_sparc_leon,,
  8499. + [-Aleon],
  8500. + [.text
  8501. + .register %g2, #scratch
  8502. + .register %g3, #scratch
  8503. + .align 4
  8504. + smac %g2, %g3, %g1
  8505. + umac %g2, %g3, %g1
  8506. + casa [[%g2]] 0xb, %g3, %g1],,
  8507. + [AC_DEFINE(HAVE_AS_LEON, 1,
  8508. + [Define if your assembler supports LEON instructions.])])
  8509. + ;;
  8510. +
  8511. +changequote(,)dnl
  8512. + i[34567]86-*-* | x86_64-*-*)
  8513. +changequote([,])dnl
  8514. + case $target_os in
  8515. + cygwin*)
  8516. + # Full C++ conformance when using a shared libstdc++-v3 requires some
  8517. + # support from the Cygwin DLL, which in more recent versions exports
  8518. + # wrappers to aid in interposing and redirecting operators new, delete,
  8519. + # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
  8520. + # are configuring for a version of Cygwin that exports the wrappers.
  8521. + if test x$host = x$target && test x$host_cpu = xi686; then
  8522. + AC_CHECK_FUNC([__wrap__Znaj],[gcc_ac_cygwin_dll_wrappers=yes],[gcc_ac_cygwin_dll_wrappers=no])
  8523. + else
  8524. + # Can't check presence of libc functions during cross-compile, so
  8525. + # we just have to assume we're building for an up-to-date target.
  8526. + gcc_ac_cygwin_dll_wrappers=yes
  8527. + fi
  8528. + AC_DEFINE_UNQUOTED(USE_CYGWIN_LIBSTDCXX_WRAPPERS,
  8529. + [`if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`],
  8530. + [Define if you want to generate code by default that assumes that the
  8531. + Cygwin DLL exports wrappers to support libstdc++ function replacement.])
  8532. + esac
  8533. + case $target_os in
  8534. + cygwin* | pe | mingw32* | interix*)
  8535. + # Recent binutils allows the three-operand form of ".comm" on PE. This
  8536. + # definition is used unconditionally to initialise the default state of
  8537. + # the target option variable that governs usage of the feature.
  8538. + gcc_GAS_CHECK_FEATURE([.comm with alignment], gcc_cv_as_comm_has_align,
  8539. + [2,19,52],,[.comm foo,1,32])
  8540. + AC_DEFINE_UNQUOTED(HAVE_GAS_ALIGNED_COMM,
  8541. + [`if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`],
  8542. + [Define if your assembler supports specifying the alignment
  8543. + of objects allocated using the GAS .comm command.])
  8544. + # Used for DWARF 2 in PE
  8545. + gcc_GAS_CHECK_FEATURE([.secrel32 relocs],
  8546. + gcc_cv_as_ix86_pe_secrel32,
  8547. + [2,15,91],,
  8548. +[.text
  8549. +foo: nop
  8550. +.data
  8551. + .secrel32 foo],
  8552. + [if test x$gcc_cv_ld != x \
  8553. + && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
  8554. + gcc_cv_as_ix86_pe_secrel32=yes
  8555. + fi
  8556. + rm -f conftest],
  8557. + [AC_DEFINE(HAVE_GAS_PE_SECREL32_RELOC, 1,
  8558. + [Define if your assembler and linker support 32-bit section relative relocs via '.secrel32 label'.])])
  8559. + # Test if the assembler supports the extended form of the .section
  8560. + # directive that specifies section alignment. LTO support uses this,
  8561. + # but normally only after installation, so we warn but don't fail the
  8562. + # configure if LTO is enabled but the assembler does not support it.
  8563. + gcc_GAS_CHECK_FEATURE([.section with alignment], gcc_cv_as_section_has_align,
  8564. + [2,20,1],-fatal-warnings,[.section lto_test,"dr0"])
  8565. + if test x$gcc_cv_as_section_has_align != xyes; then
  8566. + case ",$enable_languages," in
  8567. + *,lto,*)
  8568. + AC_MSG_WARN([LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded.])
  8569. + ;;
  8570. + esac
  8571. + fi
  8572. + # Test if the assembler supports the section flag 'e' for specifying
  8573. + # an excluded section.
  8574. + gcc_GAS_CHECK_FEATURE([.section with e], gcc_cv_as_section_has_e,
  8575. + [2,22,51],,
  8576. +[.section foo1,"e"
  8577. +.byte 0,0,0,0])
  8578. + AC_DEFINE_UNQUOTED(HAVE_GAS_SECTION_EXCLUDE,
  8579. + [`if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`],
  8580. + [Define if your assembler supports specifying the section flag e.])
  8581. + ;;
  8582. + esac
  8583. +
  8584. + gcc_GAS_CHECK_FEATURE([filds and fists mnemonics],
  8585. + gcc_cv_as_ix86_filds,,,
  8586. + [filds mem; fists mem],,
  8587. + [AC_DEFINE(HAVE_AS_IX86_FILDS, 1,
  8588. + [Define if your assembler uses filds and fists mnemonics.])])
  8589. +
  8590. + gcc_GAS_CHECK_FEATURE([fildq and fistpq mnemonics],
  8591. + gcc_cv_as_ix86_fildq,,,
  8592. + [fildq mem; fistpq mem],,
  8593. + [AC_DEFINE(HAVE_AS_IX86_FILDQ, 1,
  8594. + [Define if your assembler uses fildq and fistq mnemonics.])])
  8595. +
  8596. + gcc_GAS_CHECK_FEATURE([cmov syntax],
  8597. + gcc_cv_as_ix86_cmov_sun_syntax,,,
  8598. + [cmovl.l %edx, %eax],,
  8599. + [AC_DEFINE(HAVE_AS_IX86_CMOV_SUN_SYNTAX, 1,
  8600. + [Define if your assembler supports the Sun syntax for cmov.])])
  8601. +
  8602. + gcc_GAS_CHECK_FEATURE([ffreep mnemonic],
  8603. + gcc_cv_as_ix86_ffreep,,,
  8604. + [ffreep %st(1)],,
  8605. + [AC_DEFINE(HAVE_AS_IX86_FFREEP, 1,
  8606. + [Define if your assembler supports the ffreep mnemonic.])])
  8607. +
  8608. + gcc_GAS_CHECK_FEATURE([.quad directive],
  8609. + gcc_cv_as_ix86_quad,,,
  8610. + [.quad 0],,
  8611. + [AC_DEFINE(HAVE_AS_IX86_QUAD, 1,
  8612. + [Define if your assembler supports the .quad directive.])])
  8613. +
  8614. + gcc_GAS_CHECK_FEATURE([sahf mnemonic],
  8615. + gcc_cv_as_ix86_sahf,,,
  8616. + [.code64
  8617. + sahf],,
  8618. + [AC_DEFINE(HAVE_AS_IX86_SAHF, 1,
  8619. + [Define if your assembler supports the sahf mnemonic in 64bit mode.])])
  8620. +
  8621. + gcc_GAS_CHECK_FEATURE([interunit movq mnemonic],
  8622. + gcc_cv_as_ix86_interunit_movq,,,
  8623. + [.code64
  8624. + movq %mm0, %rax
  8625. + movq %rax, %xmm0])
  8626. + AC_DEFINE_UNQUOTED(HAVE_AS_IX86_INTERUNIT_MOVQ,
  8627. + [`if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`],
  8628. + [Define if your assembler supports interunit movq mnemonic.])
  8629. +
  8630. + gcc_GAS_CHECK_FEATURE([hle prefixes],
  8631. + gcc_cv_as_ix86_hle,,,
  8632. + [lock xacquire cmpxchg %esi, (%ecx)],,
  8633. + [AC_DEFINE(HAVE_AS_IX86_HLE, 1,
  8634. + [Define if your assembler supports HLE prefixes.])])
  8635. +
  8636. + gcc_GAS_CHECK_FEATURE([swap suffix],
  8637. + gcc_cv_as_ix86_swap,,,
  8638. + [movl.s %esp, %ebp],,
  8639. + [AC_DEFINE(HAVE_AS_IX86_SWAP, 1,
  8640. + [Define if your assembler supports the swap suffix.])])
  8641. +
  8642. + gcc_GAS_CHECK_FEATURE([different section symbol subtraction],
  8643. + gcc_cv_as_ix86_diff_sect_delta,,,
  8644. + [.section .rodata
  8645. +.L1:
  8646. + .long .L2-.L1
  8647. + .long .L3-.L1
  8648. + .text
  8649. +.L3: nop
  8650. +.L2: nop],,
  8651. + [AC_DEFINE(HAVE_AS_IX86_DIFF_SECT_DELTA, 1,
  8652. + [Define if your assembler supports the subtraction of symbols in different sections.])])
  8653. +
  8654. + # These two are used unconditionally by i386.[ch]; it is to be defined
  8655. + # to 1 if the feature is present, 0 otherwise.
  8656. + as_ix86_gotoff_in_data_opt=
  8657. + if test x$gas = xyes; then
  8658. + as_ix86_gotoff_in_data_opt="--32"
  8659. + fi
  8660. + gcc_GAS_CHECK_FEATURE([GOTOFF in data],
  8661. + gcc_cv_as_ix86_gotoff_in_data, [2,11,0],
  8662. + [$as_ix86_gotoff_in_data_opt],
  8663. +[ .text
  8664. +.L0:
  8665. + nop
  8666. + .data
  8667. + .long .L0@GOTOFF])
  8668. + AC_DEFINE_UNQUOTED(HAVE_AS_GOTOFF_IN_DATA,
  8669. + [`if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`],
  8670. + [Define true if the assembler supports '.long foo@GOTOFF'.])
  8671. +
  8672. + gcc_GAS_CHECK_FEATURE([rep and lock prefix],
  8673. + gcc_cv_as_ix86_rep_lock_prefix,,,
  8674. + [rep movsl
  8675. + rep ret
  8676. + rep nop
  8677. + rep bsf %ecx, %eax
  8678. + rep bsr %ecx, %eax
  8679. + lock addl %edi, (%eax,%esi)
  8680. + lock orl $0, (%esp)],,
  8681. + [AC_DEFINE(HAVE_AS_IX86_REP_LOCK_PREFIX, 1,
  8682. + [Define if the assembler supports 'rep <insn>, lock <insn>'.])])
  8683. +
  8684. + gcc_GAS_CHECK_FEATURE([ud2 mnemonic],
  8685. + gcc_cv_as_ix86_ud2,,,
  8686. + [ud2],,
  8687. + [AC_DEFINE(HAVE_AS_IX86_UD2, 1,
  8688. + [Define if your assembler supports the 'ud2' mnemonic.])])
  8689. +
  8690. + gcc_GAS_CHECK_FEATURE([R_386_TLS_GD_PLT reloc],
  8691. + gcc_cv_as_ix86_tlsgdplt,,,
  8692. + [call tls_gd@tlsgdplt],
  8693. + [if test x$gcc_cv_ld != x \
  8694. + && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
  8695. + gcc_cv_as_ix86_tlsgdplt=yes
  8696. + fi
  8697. + rm -f conftest],
  8698. + [AC_DEFINE(HAVE_AS_IX86_TLSGDPLT, 1,
  8699. + [Define if your assembler and linker support @tlsgdplt.])])
  8700. +
  8701. + conftest_s='
  8702. + .section .tdata,"aw'$tls_section_flag'",@progbits
  8703. +tls_ld:
  8704. + .section .text,"ax",@progbits
  8705. + call tls_ld@tlsldmplt'
  8706. + gcc_GAS_CHECK_FEATURE([R_386_TLS_LDM_PLT reloc],
  8707. + gcc_cv_as_ix86_tlsldmplt,,,
  8708. + [$conftest_s],
  8709. + [if test x$gcc_cv_ld != x \
  8710. + && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
  8711. + gcc_cv_as_ix86_tlsldmplt=yes
  8712. + fi
  8713. + rm -f conftest])
  8714. + AC_DEFINE_UNQUOTED(HAVE_AS_IX86_TLSLDMPLT,
  8715. + [`if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`],
  8716. + [Define to 1 if your assembler and linker support @tlsldmplt.])
  8717. +
  8718. + # Enforce 32-bit output with gas and gld.
  8719. + if test x$gas = xyes; then
  8720. + as_ix86_tls_ldm_opt="--32"
  8721. + fi
  8722. + if echo "$ld_ver" | grep GNU > /dev/null; then
  8723. + if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
  8724. + ld_ix86_tls_ldm_opt="-melf_i386_sol2"
  8725. + else
  8726. + ld_ix86_tls_ldm_opt="-melf_i386"
  8727. + fi
  8728. + fi
  8729. + conftest_s='
  8730. + .section .text,"ax",@progbits
  8731. + .globl _start
  8732. + .type _start, @function
  8733. +_start:
  8734. + leal value@tlsldm(%ebx), %eax
  8735. + call ___tls_get_addr@plt
  8736. +
  8737. + .section .tdata,"aw'$tls_section_flag'",@progbits
  8738. + .type value, @object
  8739. +value:'
  8740. + gcc_GAS_CHECK_FEATURE([R_386_TLS_LDM reloc],
  8741. + gcc_cv_as_ix86_tlsldm,,
  8742. + [$as_ix86_tls_ldm_opt],
  8743. + [$conftest_s],
  8744. + [if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
  8745. + && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
  8746. + if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
  8747. + || dis conftest 2>/dev/null | grep nop > /dev/null; then
  8748. + gcc_cv_as_ix86_tlsldm=yes
  8749. + fi
  8750. + fi
  8751. + rm -f conftest])
  8752. + AC_DEFINE_UNQUOTED(HAVE_AS_IX86_TLSLDM,
  8753. + [`if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`],
  8754. + [Define to 1 if your assembler and linker support @tlsldm.])
  8755. +
  8756. + ;;
  8757. +
  8758. + ia64*-*-*)
  8759. + gcc_GAS_CHECK_FEATURE([ltoffx and ldxmov relocs],
  8760. + gcc_cv_as_ia64_ltoffx_ldxmov_relocs, [2,14,0],,
  8761. +[ .text
  8762. + addl r15 = @ltoffx(x#), gp
  8763. + ;;
  8764. + ld8.mov r16 = [[r15]], x#],,
  8765. + [AC_DEFINE(HAVE_AS_LTOFFX_LDXMOV_RELOCS, 1,
  8766. + [Define if your assembler supports ltoffx and ldxmov relocations.])])
  8767. +
  8768. + ;;
  8769. +
  8770. + powerpc*-*-*)
  8771. + case $target in
  8772. + *-*-aix*) conftest_s=' .machine "pwr5"
  8773. + .csect .text[[PR]]
  8774. + mfcr 3,128';;
  8775. + *-*-darwin*)
  8776. + gcc_GAS_CHECK_FEATURE([.machine directive support],
  8777. + gcc_cv_as_machine_directive,,,
  8778. + [ .machine ppc7400])
  8779. + if test x$gcc_cv_as_machine_directive != xyes; then
  8780. + echo "*** This target requires an assembler supporting \".machine\"" >&2
  8781. + echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
  8782. + test x$build = x$target && exit 1
  8783. + fi
  8784. + conftest_s=' .text
  8785. + mfcr r3,128';;
  8786. + *) conftest_s=' .machine power4
  8787. + .text
  8788. + mfcr 3,128';;
  8789. + esac
  8790. +
  8791. + gcc_GAS_CHECK_FEATURE([mfcr field support],
  8792. + gcc_cv_as_powerpc_mfcrf, [2,14,0],,
  8793. + [$conftest_s],,
  8794. + [AC_DEFINE(HAVE_AS_MFCRF, 1,
  8795. + [Define if your assembler supports mfcr field.])])
  8796. +
  8797. + case $target in
  8798. + *-*-aix*) conftest_s=' .machine "pwr5"
  8799. + .csect .text[[PR]]
  8800. + popcntb 3,3';;
  8801. + *) conftest_s=' .machine power5
  8802. + .text
  8803. + popcntb 3,3';;
  8804. + esac
  8805. +
  8806. + gcc_GAS_CHECK_FEATURE([popcntb support],
  8807. + gcc_cv_as_powerpc_popcntb, [2,17,0],,
  8808. + [$conftest_s],,
  8809. + [AC_DEFINE(HAVE_AS_POPCNTB, 1,
  8810. + [Define if your assembler supports popcntb field.])])
  8811. +
  8812. + case $target in
  8813. + *-*-aix*) conftest_s=' .machine "pwr5x"
  8814. + .csect .text[[PR]]
  8815. + frin 1,1';;
  8816. + *) conftest_s=' .machine power5
  8817. + .text
  8818. + frin 1,1';;
  8819. + esac
  8820. +
  8821. + gcc_GAS_CHECK_FEATURE([fp round support],
  8822. + gcc_cv_as_powerpc_fprnd, [2,17,0],,
  8823. + [$conftest_s],,
  8824. + [AC_DEFINE(HAVE_AS_FPRND, 1,
  8825. + [Define if your assembler supports fprnd.])])
  8826. +
  8827. + case $target in
  8828. + *-*-aix*) conftest_s=' .machine "pwr6"
  8829. + .csect .text[[PR]]
  8830. + mffgpr 1,3';;
  8831. + *) conftest_s=' .machine power6
  8832. + .text
  8833. + mffgpr 1,3';;
  8834. + esac
  8835. +
  8836. + gcc_GAS_CHECK_FEATURE([move fp gpr support],
  8837. + gcc_cv_as_powerpc_mfpgpr, [2,19,2],,
  8838. + [$conftest_s],,
  8839. + [AC_DEFINE(HAVE_AS_MFPGPR, 1,
  8840. + [Define if your assembler supports mffgpr and mftgpr.])])
  8841. +
  8842. + case $target in
  8843. + *-*-aix*) conftest_s=' .csect .text[[PR]]
  8844. +LCF..0:
  8845. + addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
  8846. + *-*-darwin*)
  8847. + conftest_s=' .text
  8848. +LCF0:
  8849. + addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
  8850. + *) conftest_s=' .text
  8851. +.LCF0:
  8852. + addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
  8853. + esac
  8854. +
  8855. + gcc_GAS_CHECK_FEATURE([rel16 relocs],
  8856. + gcc_cv_as_powerpc_rel16, [2,17,0], -a32,
  8857. + [$conftest_s],,
  8858. + [AC_DEFINE(HAVE_AS_REL16, 1,
  8859. + [Define if your assembler supports R_PPC_REL16 relocs.])])
  8860. +
  8861. + case $target in
  8862. + *-*-aix*) conftest_s=' .machine "pwr6"
  8863. + .csect .text[[PR]]
  8864. + cmpb 3,4,5';;
  8865. + *) conftest_s=' .machine power6
  8866. + .text
  8867. + cmpb 3,4,5';;
  8868. + esac
  8869. +
  8870. + gcc_GAS_CHECK_FEATURE([compare bytes support],
  8871. + gcc_cv_as_powerpc_cmpb, [2,19,2], -a32,
  8872. + [$conftest_s],,
  8873. + [AC_DEFINE(HAVE_AS_CMPB, 1,
  8874. + [Define if your assembler supports cmpb.])])
  8875. +
  8876. + case $target in
  8877. + *-*-aix*) conftest_s=' .machine "pwr6"
  8878. + .csect .text[[PR]]
  8879. + dadd 1,2,3';;
  8880. + *) conftest_s=' .machine power6
  8881. + .text
  8882. + dadd 1,2,3';;
  8883. + esac
  8884. +
  8885. + gcc_GAS_CHECK_FEATURE([decimal float support],
  8886. + gcc_cv_as_powerpc_dfp, [2,19,2], -a32,
  8887. + [$conftest_s],,
  8888. + [AC_DEFINE(HAVE_AS_DFP, 1,
  8889. + [Define if your assembler supports DFP instructions.])])
  8890. +
  8891. + case $target in
  8892. + *-*-aix*) conftest_s=' .machine "pwr7"
  8893. + .csect .text[[PR]]
  8894. + lxvd2x 1,2,3';;
  8895. + *) conftest_s=' .machine power7
  8896. + .text
  8897. + lxvd2x 1,2,3';;
  8898. + esac
  8899. +
  8900. + gcc_GAS_CHECK_FEATURE([vector-scalar support],
  8901. + gcc_cv_as_powerpc_vsx, [2,19,2], -a32,
  8902. + [$conftest_s],,
  8903. + [AC_DEFINE(HAVE_AS_VSX, 1,
  8904. + [Define if your assembler supports VSX instructions.])])
  8905. +
  8906. + case $target in
  8907. + *-*-aix*) conftest_s=' .machine "pwr7"
  8908. + .csect .text[[PR]]
  8909. + popcntd 3,3';;
  8910. + *) conftest_s=' .machine power7
  8911. + .text
  8912. + popcntd 3,3';;
  8913. + esac
  8914. +
  8915. + gcc_GAS_CHECK_FEATURE([popcntd support],
  8916. + gcc_cv_as_powerpc_popcntd, [2,19,2], -a32,
  8917. + [$conftest_s],,
  8918. + [AC_DEFINE(HAVE_AS_POPCNTD, 1,
  8919. + [Define if your assembler supports POPCNTD instructions.])])
  8920. +
  8921. + case $target in
  8922. + *-*-aix*) conftest_s=' .machine "pwr8"
  8923. + .csect .text[[PR]]';;
  8924. + *) conftest_s=' .machine power8
  8925. + .text';;
  8926. + esac
  8927. +
  8928. + gcc_GAS_CHECK_FEATURE([power8 support],
  8929. + gcc_cv_as_powerpc_power8, [2,19,2], -a32,
  8930. + [$conftest_s],,
  8931. + [AC_DEFINE(HAVE_AS_POWER8, 1,
  8932. + [Define if your assembler supports POWER8 instructions.])])
  8933. +
  8934. + case $target in
  8935. + *-*-aix*) conftest_s=' .csect .text[[PR]]
  8936. + lwsync';;
  8937. + *) conftest_s=' .text
  8938. + lwsync';;
  8939. + esac
  8940. +
  8941. + gcc_GAS_CHECK_FEATURE([lwsync support],
  8942. + gcc_cv_as_powerpc_lwsync, [2,19,2], -a32,
  8943. + [$conftest_s],,
  8944. + [AC_DEFINE(HAVE_AS_LWSYNC, 1,
  8945. + [Define if your assembler supports LWSYNC instructions.])])
  8946. +
  8947. + case $target in
  8948. + *-*-aix*) conftest_s=' .machine "476"
  8949. + .csect .text[[PR]]
  8950. + dci 0';;
  8951. + *) conftest_s=' .machine "476"
  8952. + .text
  8953. + dci 0';;
  8954. + esac
  8955. +
  8956. + gcc_GAS_CHECK_FEATURE([data cache invalidate support],
  8957. + gcc_cv_as_powerpc_dci, [9,99,0], -a32,
  8958. + [$conftest_s],,
  8959. + [AC_DEFINE(HAVE_AS_DCI, 1,
  8960. + [Define if your assembler supports the DCI/ICI instructions.])])
  8961. +
  8962. + gcc_GAS_CHECK_FEATURE([.gnu_attribute support],
  8963. + gcc_cv_as_powerpc_gnu_attribute, [2,18,0],,
  8964. + [.gnu_attribute 4,1],,
  8965. + [AC_DEFINE(HAVE_AS_GNU_ATTRIBUTE, 1,
  8966. + [Define if your assembler supports .gnu_attribute.])])
  8967. +
  8968. + gcc_GAS_CHECK_FEATURE([tls marker support],
  8969. + gcc_cv_as_powerpc_tls_markers, [2,20,0],,
  8970. + [ bl __tls_get_addr(x@tlsgd)],,
  8971. + [AC_DEFINE(HAVE_AS_TLS_MARKERS, 1,
  8972. + [Define if your assembler supports arg info for __tls_get_addr.])])
  8973. +
  8974. + case $target in
  8975. + *-*-aix*)
  8976. + gcc_GAS_CHECK_FEATURE([.ref support],
  8977. + gcc_cv_as_aix_ref, [2,21,0],,
  8978. + [ .csect stuff[[rw]]
  8979. + stuff:
  8980. + .long 1
  8981. + .extern sym
  8982. + .ref sym
  8983. + ],,
  8984. + [AC_DEFINE(HAVE_AS_REF, 1,
  8985. + [Define if your assembler supports .ref])])
  8986. + ;;
  8987. + esac
  8988. + ;;
  8989. +
  8990. + mips*-*-*)
  8991. + gcc_GAS_CHECK_FEATURE([explicit relocation support],
  8992. + gcc_cv_as_mips_explicit_relocs, [2,14,0],,
  8993. +[ lw $4,%gp_rel(foo)($4)],,
  8994. + [if test x$target_cpu_default = x
  8995. + then target_cpu_default=MASK_EXPLICIT_RELOCS
  8996. + else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
  8997. + fi])
  8998. + gcc_GAS_CHECK_FEATURE([-mno-shared support],
  8999. + gcc_cv_as_mips_no_shared, [2,16,0], [-mno-shared], [nop],,
  9000. + [AC_DEFINE(HAVE_AS_NO_SHARED, 1,
  9001. + [Define if the assembler understands -mno-shared.])])
  9002. +
  9003. + gcc_GAS_CHECK_FEATURE([.gnu_attribute support],
  9004. + gcc_cv_as_mips_gnu_attribute, [2,18,0],,
  9005. + [.gnu_attribute 4,1],,
  9006. + [AC_DEFINE(HAVE_AS_GNU_ATTRIBUTE, 1,
  9007. + [Define if your assembler supports .gnu_attribute.])])
  9008. +
  9009. + gcc_GAS_CHECK_FEATURE([.micromips support],
  9010. + gcc_cv_as_micromips_support,,[--fatal-warnings],
  9011. + [.set micromips],,
  9012. + [AC_DEFINE(HAVE_GAS_MICROMIPS, 1,
  9013. + [Define if your assembler supports the .set micromips directive])])
  9014. +
  9015. + gcc_GAS_CHECK_FEATURE([.dtprelword support],
  9016. + gcc_cv_as_mips_dtprelword, [2,18,0],,
  9017. + [.section .tdata,"awT",@progbits
  9018. +x:
  9019. + .word 2
  9020. + .text
  9021. + .dtprelword x+0x8000],,
  9022. + [AC_DEFINE(HAVE_AS_DTPRELWORD, 1,
  9023. + [Define if your assembler supports .dtprelword.])])
  9024. +
  9025. + gcc_GAS_CHECK_FEATURE([DSPR1 mult with four accumulators support],
  9026. + gcc_cv_as_mips_dspr1_mult,,,
  9027. +[ .set mips32r2
  9028. + .set nodspr2
  9029. + .set dsp
  9030. + madd $ac3,$4,$5
  9031. + maddu $ac3,$4,$5
  9032. + msub $ac3,$4,$5
  9033. + msubu $ac3,$4,$5
  9034. + mult $ac3,$4,$5
  9035. + multu $ac3,$4,$5],,
  9036. + [AC_DEFINE(HAVE_AS_DSPR1_MULT, 1,
  9037. + [Define if your assembler supports DSPR1 mult.])])
  9038. +
  9039. + AC_MSG_CHECKING(assembler and linker for explicit JALR relocation)
  9040. + gcc_cv_as_ld_jalr_reloc=no
  9041. + if test $gcc_cv_as_mips_explicit_relocs = yes; then
  9042. + if test $in_tree_ld = yes ; then
  9043. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
  9044. + && test $in_tree_ld_is_elf = yes; then
  9045. + gcc_cv_as_ld_jalr_reloc=yes
  9046. + fi
  9047. + elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
  9048. + echo ' .ent x' > conftest.s
  9049. + echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
  9050. + echo ' ld $25,%call16(y)($28)' >> conftest.s
  9051. + echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
  9052. + echo '1: jalr $25' >> conftest.s
  9053. + echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
  9054. + echo '1: jalr $25' >> conftest.s
  9055. + echo ' .end x' >> conftest.s
  9056. + if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&AS_MESSAGE_LOG_FD \
  9057. + && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&AS_MESSAGE_LOG_FD; then
  9058. + if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
  9059. + && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
  9060. + gcc_cv_as_ld_jalr_reloc=yes
  9061. + fi
  9062. + fi
  9063. + rm -f conftest.*
  9064. + fi
  9065. + fi
  9066. + if test $gcc_cv_as_ld_jalr_reloc = yes; then
  9067. + if test x$target_cpu_default = x; then
  9068. + target_cpu_default=MASK_RELAX_PIC_CALLS
  9069. + else
  9070. + target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
  9071. + fi
  9072. + fi
  9073. + AC_MSG_RESULT($gcc_cv_as_ld_jalr_reloc)
  9074. +
  9075. + AC_CACHE_CHECK([linker for .eh_frame personality relaxation],
  9076. + [gcc_cv_ld_mips_personality_relaxation],
  9077. + [gcc_cv_ld_mips_personality_relaxation=no
  9078. + if test $in_tree_ld = yes ; then
  9079. + if test "$gcc_cv_gld_major_version" -eq 2 \
  9080. + -a "$gcc_cv_gld_minor_version" -ge 21 \
  9081. + -o "$gcc_cv_gld_major_version" -gt 2; then
  9082. + gcc_cv_ld_mips_personality_relaxation=yes
  9083. + fi
  9084. + elif test x$gcc_cv_as != x \
  9085. + -a x$gcc_cv_ld != x \
  9086. + -a x$gcc_cv_readelf != x ; then
  9087. + cat > conftest.s <<EOF
  9088. + .cfi_startproc
  9089. + .cfi_personality 0x80,indirect_ptr
  9090. + .ent test
  9091. +test:
  9092. + nop
  9093. + .end test
  9094. + .cfi_endproc
  9095. +
  9096. + .section .data,"aw",@progbits
  9097. +indirect_ptr:
  9098. + .dc.a personality
  9099. +EOF
  9100. + if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
  9101. + && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
  9102. + if $gcc_cv_readelf -d conftest 2>&1 \
  9103. + | grep TEXTREL > /dev/null 2>&1; then
  9104. + :
  9105. + elif $gcc_cv_readelf --relocs conftest 2>&1 \
  9106. + | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
  9107. + :
  9108. + else
  9109. + gcc_cv_ld_mips_personality_relaxation=yes
  9110. + fi
  9111. + fi
  9112. + fi
  9113. + rm -f conftest.s conftest.o conftest])
  9114. + if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
  9115. + AC_DEFINE(HAVE_LD_PERSONALITY_RELAXATION, 1,
  9116. + [Define if your linker can relax absolute .eh_frame personality
  9117. +pointers into PC-relative form.])
  9118. + fi
  9119. +
  9120. + gcc_GAS_CHECK_FEATURE([-mnan= support],
  9121. + gcc_cv_as_mips_nan,,
  9122. + [-mnan=2008],,,
  9123. + [AC_DEFINE(HAVE_AS_NAN, 1,
  9124. + [Define if the assembler understands -mnan=.])])
  9125. + if test x$gcc_cv_as_mips_nan = xno \
  9126. + && test x$with_nan != x; then
  9127. + AC_MSG_ERROR(
  9128. + [Requesting --with-nan= requires assembler support for -mnan=])
  9129. + fi
  9130. + ;;
  9131. +esac
  9132. +
  9133. +# Mips and HP-UX need the GNU assembler.
  9134. +# Linux on IA64 might be able to use the Intel assembler.
  9135. +
  9136. +case "$target" in
  9137. + mips*-*-* | *-*-hpux* )
  9138. + if test x$gas_flag = xyes \
  9139. + || test x"$host" != x"$build" \
  9140. + || test ! -x "$gcc_cv_as" \
  9141. + || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
  9142. + :
  9143. + else
  9144. + echo "*** This configuration requires the GNU assembler" >&2
  9145. + exit 1
  9146. + fi
  9147. + ;;
  9148. +esac
  9149. +
  9150. +# ??? Not all targets support dwarf2 debug_line, even within a version
  9151. +# of gas. Moreover, we need to emit a valid instruction to trigger any
  9152. +# info to the output file. So, as supported targets are added to gas 2.11,
  9153. +# add some instruction here to (also) show we expect this might work.
  9154. +# ??? Once 2.11 is released, probably need to add first known working
  9155. +# version to the per-target configury.
  9156. +case "$cpu_type" in
  9157. + aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
  9158. + | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
  9159. + | xstormy16 | xtensa)
  9160. + insn="nop"
  9161. + ;;
  9162. + ia64 | s390)
  9163. + insn="nop 0"
  9164. + ;;
  9165. + mmix)
  9166. + insn="swym 0"
  9167. + ;;
  9168. +esac
  9169. +if test x"$insn" != x; then
  9170. + conftest_s="\
  9171. + .file 1 \"conftest.s\"
  9172. + .loc 1 3 0
  9173. + $insn"
  9174. + gcc_GAS_CHECK_FEATURE([dwarf2 debug_line support],
  9175. + gcc_cv_as_dwarf2_debug_line,
  9176. + [elf,2,11,0],, [$conftest_s],
  9177. + [if test x$gcc_cv_objdump != x \
  9178. + && $gcc_cv_objdump -h conftest.o 2> /dev/null \
  9179. + | grep debug_line > /dev/null 2>&1; then
  9180. + gcc_cv_as_dwarf2_debug_line=yes
  9181. + fi])
  9182. +
  9183. +# The .debug_line file table must be in the exact order that
  9184. +# we specified the files, since these indices are also used
  9185. +# by DW_AT_decl_file. Approximate this test by testing if
  9186. +# the assembler bitches if the same index is assigned twice.
  9187. + gcc_GAS_CHECK_FEATURE([buggy dwarf2 .file directive],
  9188. + gcc_cv_as_dwarf2_file_buggy,,,
  9189. +[ .file 1 "foo.s"
  9190. + .file 1 "bar.s"])
  9191. +
  9192. + if test $gcc_cv_as_dwarf2_debug_line = yes \
  9193. + && test $gcc_cv_as_dwarf2_file_buggy = no; then
  9194. + AC_DEFINE(HAVE_AS_DWARF2_DEBUG_LINE, 1,
  9195. + [Define if your assembler supports dwarf2 .file/.loc directives,
  9196. + and preserves file table indices exactly as given.])
  9197. + fi
  9198. +
  9199. + gcc_GAS_CHECK_FEATURE([--gdwarf2 option],
  9200. + gcc_cv_as_gdwarf2_flag,
  9201. + [elf,2,11,0], [--gdwarf2], [$insn],,
  9202. + [AC_DEFINE(HAVE_AS_GDWARF2_DEBUG_FLAG, 1,
  9203. +[Define if your assembler supports the --gdwarf2 option.])])
  9204. +
  9205. + gcc_GAS_CHECK_FEATURE([--gstabs option],
  9206. + gcc_cv_as_gstabs_flag,
  9207. + [elf,2,11,0], [--gstabs], [$insn],
  9208. + [# The native Solaris 9/Intel assembler doesn't understand --gstabs
  9209. + # and warns about it, but still exits successfully. So check for
  9210. + # this.
  9211. + if AC_TRY_COMMAND([$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null])
  9212. + then :
  9213. + else gcc_cv_as_gstabs_flag=yes
  9214. + fi],
  9215. + [AC_DEFINE(HAVE_AS_GSTABS_DEBUG_FLAG, 1,
  9216. +[Define if your assembler supports the --gstabs option.])])
  9217. +
  9218. + gcc_GAS_CHECK_FEATURE([--debug-prefix-map option],
  9219. + gcc_cv_as_debug_prefix_map_flag,
  9220. + [2,18,0], [--debug-prefix-map /a=/b], [$insn],,
  9221. + [AC_DEFINE(HAVE_AS_DEBUG_PREFIX_MAP, 1,
  9222. +[Define if your assembler supports the --debug-prefix-map option.])])
  9223. +fi
  9224. +
  9225. +gcc_GAS_CHECK_FEATURE([.lcomm with alignment], gcc_cv_as_lcomm_with_alignment,
  9226. + ,,
  9227. +[.lcomm bar,4,16],,
  9228. +[AC_DEFINE(HAVE_GAS_LCOMM_WITH_ALIGNMENT, 1,
  9229. + [Define if your assembler supports .lcomm with an alignment field.])])
  9230. +
  9231. +if test x$with_sysroot = x && test x$host = x$target \
  9232. + && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
  9233. + && test "$prefix" != "NONE"; then
  9234. + AC_DEFINE_UNQUOTED(PREFIX_INCLUDE_DIR, "$prefix/include",
  9235. +[Define to PREFIX/include if cpp should also search that directory.])
  9236. +fi
  9237. +
  9238. +if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
  9239. + if test "x$with_headers" != x; then
  9240. + target_header_dir=$with_headers
  9241. + elif test "x$with_sysroot" = x; then
  9242. + target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
  9243. + elif test "x$with_build_sysroot" != "x"; then
  9244. + target_header_dir="${with_build_sysroot}${native_system_header_dir}"
  9245. + elif test "x$with_sysroot" = xyes; then
  9246. + target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
  9247. + else
  9248. + target_header_dir="${with_sysroot}${native_system_header_dir}"
  9249. + fi
  9250. +else
  9251. + target_header_dir=${native_system_header_dir}
  9252. +fi
  9253. +
  9254. +# Determine the version of glibc, if any, used on the target.
  9255. +AC_MSG_CHECKING([for target glibc version])
  9256. +AC_ARG_WITH([glibc-version],
  9257. + [AS_HELP_STRING([--with-glibc-version=M.N],
  9258. + [assume GCC used with glibc version M.N or later])], [
  9259. +if [echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$']; then
  9260. + glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
  9261. + glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
  9262. +else
  9263. + AC_MSG_ERROR([option --with-glibc-version requires a version number M.N])
  9264. +fi], [
  9265. +glibc_version_major=0
  9266. +glibc_version_minor=0
  9267. +[if test -f $target_header_dir/features.h \
  9268. + && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
  9269. + && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
  9270. + glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
  9271. + glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
  9272. +fi]])
  9273. +AC_MSG_RESULT([$glibc_version_major.$glibc_version_minor])
  9274. +
  9275. +AC_ARG_ENABLE(gnu-unique-object,
  9276. + [AS_HELP_STRING([--enable-gnu-unique-object],
  9277. + [enable the use of the @gnu_unique_object ELF extension on glibc systems])],
  9278. + [case $enable_gnu_unique_object in
  9279. + yes | no) ;;
  9280. + *) AC_MSG_ERROR(['$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
  9281. +Valid choices are 'yes' and 'no'.]) ;;
  9282. + esac],
  9283. + [gcc_GAS_CHECK_FEATURE([gnu_unique_object], gcc_cv_as_gnu_unique_object,
  9284. + [elf,2,19,52],,
  9285. + [.type foo, '$target_type_format_char'gnu_unique_object],,
  9286. +# We need to unquote above to to use the definition from config.gcc.
  9287. +# Also check for ld.so support, i.e. glibc 2.11 or higher.
  9288. + [GCC_GLIBC_VERSION_GTE_IFELSE([2], [11], [enable_gnu_unique_object=yes], )]
  9289. + )])
  9290. +if test x$enable_gnu_unique_object = xyes; then
  9291. + AC_DEFINE(HAVE_GAS_GNU_UNIQUE_OBJECT, 1,
  9292. + [Define if your assembler supports @gnu_unique_object.])
  9293. +fi
  9294. +
  9295. +AC_CACHE_CHECK([assembler for tolerance to line number 0],
  9296. + [gcc_cv_as_line_zero],
  9297. + [gcc_cv_as_line_zero=no
  9298. + if test $in_tree_gas = yes; then
  9299. + gcc_GAS_VERSION_GTE_IFELSE(2, 16, 91, [gcc_cv_as_line_zero=yes])
  9300. + elif test "x$gcc_cv_as" != x; then
  9301. + { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
  9302. + if AC_TRY_COMMAND([$gcc_cv_as -o conftest.o conftest.s >&AS_MESSAGE_LOG_FD 2>conftest.out]) &&
  9303. + test "x`cat conftest.out`" = x
  9304. + then
  9305. + gcc_cv_as_line_zero=yes
  9306. + else
  9307. + echo "configure: failed program was" >&AS_MESSAGE_LOG_FD
  9308. + cat conftest.s >&AS_MESSAGE_LOG_FD
  9309. + echo "configure: error output was" >&AS_MESSAGE_LOG_FD
  9310. + cat conftest.out >&AS_MESSAGE_LOG_FD
  9311. + fi
  9312. + rm -f conftest.o conftest.s conftest.out
  9313. + fi])
  9314. +if test "x$gcc_cv_as_line_zero" = xyes; then
  9315. + AC_DEFINE([HAVE_AS_LINE_ZERO], 1,
  9316. +[Define if the assembler won't complain about a line such as # 0 "" 2.])
  9317. +fi
  9318. +
  9319. +AC_MSG_CHECKING(linker PT_GNU_EH_FRAME support)
  9320. +gcc_cv_ld_eh_frame_hdr=no
  9321. +if test $in_tree_ld = yes ; then
  9322. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
  9323. + && test $in_tree_ld_is_elf = yes; then
  9324. + gcc_cv_ld_eh_frame_hdr=yes
  9325. + fi
  9326. +elif test x$gcc_cv_ld != x; then
  9327. + if echo "$ld_ver" | grep GNU > /dev/null; then
  9328. + # Check if linker supports --eh-frame-hdr option
  9329. + if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
  9330. + gcc_cv_ld_eh_frame_hdr=yes
  9331. + fi
  9332. + else
  9333. + case "$target" in
  9334. + *-*-solaris2*)
  9335. + # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
  9336. + if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
  9337. + gcc_cv_ld_eh_frame_hdr=yes
  9338. + fi
  9339. + ;;
  9340. + esac
  9341. + fi
  9342. +fi
  9343. +GCC_TARGET_TEMPLATE([HAVE_LD_EH_FRAME_HDR])
  9344. +if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
  9345. + AC_DEFINE(HAVE_LD_EH_FRAME_HDR, 1,
  9346. +[Define if your linker supports .eh_frame_hdr.])
  9347. +fi
  9348. +AC_MSG_RESULT($gcc_cv_ld_eh_frame_hdr)
  9349. +
  9350. +AC_MSG_CHECKING(linker CIEv3 in .eh_frame support)
  9351. +gcc_cv_ld_eh_frame_ciev3=no
  9352. +if test $in_tree_ld = yes ; then
  9353. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
  9354. + && test $in_tree_ld_is_elf = yes; then
  9355. + gcc_cv_ld_eh_frame_ciev3=yes
  9356. + fi
  9357. +elif test x$gcc_cv_ld != x; then
  9358. + if echo "$ld_ver" | grep GNU > /dev/null; then
  9359. + gcc_cv_ld_eh_frame_ciev3=yes
  9360. + if test 0"$ld_date" -lt 20040513; then
  9361. + if test -n "$ld_date"; then
  9362. + # If there was date string, but was earlier than 2004-05-13, fail
  9363. + gcc_cv_ld_eh_frame_ciev3=no
  9364. + elif test "$ld_vers_major" -lt 2; then
  9365. + gcc_cv_ld_eh_frame_ciev3=no
  9366. + elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
  9367. + gcc_cv_ld_eh_frame_ciev3=no
  9368. + fi
  9369. + fi
  9370. + else
  9371. + case "$target" in
  9372. + *-*-solaris2*)
  9373. + # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
  9374. + if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
  9375. + gcc_cv_ld_eh_frame_ciev3=yes
  9376. + fi
  9377. + ;;
  9378. + esac
  9379. + fi
  9380. +fi
  9381. +AC_DEFINE_UNQUOTED(HAVE_LD_EH_FRAME_CIEV3,
  9382. + [`if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`],
  9383. + [Define 0/1 if your linker supports CIE v3 in .eh_frame.])
  9384. +AC_MSG_RESULT($gcc_cv_ld_eh_frame_ciev3)
  9385. +
  9386. +AC_MSG_CHECKING(linker position independent executable support)
  9387. +gcc_cv_ld_pie=no
  9388. +if test $in_tree_ld = yes ; then
  9389. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
  9390. + && test $in_tree_ld_is_elf = yes; then
  9391. + gcc_cv_ld_pie=yes
  9392. + fi
  9393. +elif test x$gcc_cv_ld != x; then
  9394. + # Check if linker supports -pie option
  9395. + if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
  9396. + gcc_cv_ld_pie=yes
  9397. + fi
  9398. +fi
  9399. +if test x"$gcc_cv_ld_pie" = xyes; then
  9400. + AC_DEFINE(HAVE_LD_PIE, 1,
  9401. +[Define if your linker supports -pie option.])
  9402. +fi
  9403. +AC_MSG_RESULT($gcc_cv_ld_pie)
  9404. +
  9405. +AC_MSG_CHECKING(linker EH-compatible garbage collection of sections)
  9406. +gcc_cv_ld_eh_gc_sections=no
  9407. +if test $in_tree_ld = yes ; then
  9408. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
  9409. + && test $in_tree_ld_is_elf = yes; then
  9410. + gcc_cv_ld_eh_gc_sections=yes
  9411. + fi
  9412. +elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
  9413. + cat > conftest.s <<EOF
  9414. + .section .text
  9415. +.globl _start
  9416. + .type _start, @function
  9417. +_start:
  9418. + .long foo
  9419. + .size _start, .-_start
  9420. + .section .text.foo,"ax",@progbits
  9421. + .type foo, @function
  9422. +foo:
  9423. + .long 0
  9424. + .size foo, .-foo
  9425. + .section .gcc_except_table.foo,"a",@progbits
  9426. +.L0:
  9427. + .long 0
  9428. + .section .eh_frame,"a",@progbits
  9429. + .long .L0
  9430. +EOF
  9431. + if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
  9432. + if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
  9433. + | grep "gc-sections option ignored" > /dev/null; then
  9434. + gcc_cv_ld_eh_gc_sections=no
  9435. + elif $gcc_cv_objdump -h conftest 2> /dev/null \
  9436. + | grep gcc_except_table > /dev/null; then
  9437. + gcc_cv_ld_eh_gc_sections=yes
  9438. + # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
  9439. + if test x$gcc_cv_as_comdat_group != xyes; then
  9440. + gcc_cv_ld_eh_gc_sections=no
  9441. + cat > conftest.s <<EOF
  9442. + .section .text
  9443. +.globl _start
  9444. + .type _start, @function
  9445. +_start:
  9446. + .long foo
  9447. + .size _start, .-_start
  9448. + .section .gnu.linkonce.t.foo,"ax",@progbits
  9449. + .type foo, @function
  9450. +foo:
  9451. + .long 0
  9452. + .size foo, .-foo
  9453. + .section .gcc_except_table.foo,"a",@progbits
  9454. +.L0:
  9455. + .long 0
  9456. + .section .eh_frame,"a",@progbits
  9457. + .long .L0
  9458. +EOF
  9459. + if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
  9460. + if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
  9461. + | grep "gc-sections option ignored" > /dev/null; then
  9462. + gcc_cv_ld_eh_gc_sections=no
  9463. + elif $gcc_cv_objdump -h conftest 2> /dev/null \
  9464. + | grep gcc_except_table > /dev/null; then
  9465. + gcc_cv_ld_eh_gc_sections=yes
  9466. + fi
  9467. + fi
  9468. + fi
  9469. + fi
  9470. + fi
  9471. + rm -f conftest.s conftest.o conftest
  9472. +fi
  9473. +case "$target" in
  9474. + hppa*-*-linux*)
  9475. + # ??? This apparently exposes a binutils bug with PC-relative relocations.
  9476. + gcc_cv_ld_eh_gc_sections=no
  9477. + ;;
  9478. +esac
  9479. +if test x$gcc_cv_ld_eh_gc_sections = xyes; then
  9480. + AC_DEFINE(HAVE_LD_EH_GC_SECTIONS, 1,
  9481. + [Define if your linker supports garbage collection of
  9482. + sections in presence of EH frames.])
  9483. +fi
  9484. +AC_MSG_RESULT($gcc_cv_ld_eh_gc_sections)
  9485. +
  9486. +AC_MSG_CHECKING(linker EH garbage collection of sections bug)
  9487. +gcc_cv_ld_eh_gc_sections_bug=no
  9488. +if test $in_tree_ld = yes ; then
  9489. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
  9490. + && test $in_tree_ld_is_elf = yes; then
  9491. + gcc_cv_ld_eh_gc_sections_bug=yes
  9492. + fi
  9493. +elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
  9494. + gcc_cv_ld_eh_gc_sections_bug=yes
  9495. + cat > conftest.s <<EOF
  9496. + .section .text
  9497. +.globl _start
  9498. + .type _start, @function
  9499. +_start:
  9500. + .long foo
  9501. + .size _start, .-_start
  9502. + .section .text.startup.foo,"ax",@progbits
  9503. + .type foo, @function
  9504. +foo:
  9505. + .long 0
  9506. + .size foo, .-foo
  9507. + .section .gcc_except_table.foo,"a",@progbits
  9508. +.L0:
  9509. + .long 0
  9510. + .section .eh_frame,"a",@progbits
  9511. + .long .L0
  9512. +EOF
  9513. + if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
  9514. + if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
  9515. + | grep "gc-sections option ignored" > /dev/null; then
  9516. + :
  9517. + elif $gcc_cv_objdump -h conftest 2> /dev/null \
  9518. + | grep gcc_except_table > /dev/null; then
  9519. + gcc_cv_ld_eh_gc_sections_bug=no
  9520. + fi
  9521. + fi
  9522. + rm -f conftest.s conftest.o conftest
  9523. +fi
  9524. +if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
  9525. + AC_DEFINE(HAVE_LD_EH_GC_SECTIONS_BUG, 1,
  9526. + [Define if your linker has buggy garbage collection of
  9527. + sections support when .text.startup.foo like sections are used.])
  9528. +fi
  9529. +AC_MSG_RESULT($gcc_cv_ld_eh_gc_sections_bug)
  9530. +
  9531. +# --------
  9532. +# UNSORTED
  9533. +# --------
  9534. +
  9535. +AC_CACHE_CHECK(linker --as-needed support,
  9536. +gcc_cv_ld_as_needed,
  9537. +[gcc_cv_ld_as_needed=no
  9538. +gcc_cv_ld_as_needed_option='--as-needed'
  9539. +gcc_cv_ld_no_as_needed_option='--no-as-needed'
  9540. +if test $in_tree_ld = yes ; then
  9541. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
  9542. + && test $in_tree_ld_is_elf = yes; then
  9543. + gcc_cv_ld_as_needed=yes
  9544. + fi
  9545. +elif test x$gcc_cv_ld != x; then
  9546. + # Check if linker supports --as-needed and --no-as-needed options
  9547. + if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
  9548. + gcc_cv_ld_as_needed=yes
  9549. + else
  9550. + case "$target" in
  9551. + # Solaris 2 ld always supports -z ignore/-z record.
  9552. + *-*-solaris2*)
  9553. + gcc_cv_ld_as_needed=yes
  9554. + gcc_cv_ld_as_needed_option="-z ignore"
  9555. + gcc_cv_ld_no_as_needed_option="-z record"
  9556. + ;;
  9557. + esac
  9558. + fi
  9559. +fi
  9560. +# --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
  9561. +# dl_iterate_phdr, i.e. since Solaris 11.
  9562. +case "$target" in
  9563. + *-*-solaris2.1[[1-9]]*)
  9564. + case "$target" in
  9565. + i?86-*-* | x86_64-*-*)
  9566. + if echo "$ld_ver" | grep GNU > /dev/null; then
  9567. + # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
  9568. + gcc_cv_ld_as_needed=no
  9569. + fi
  9570. + ;;
  9571. + esac
  9572. + ;;
  9573. + *-*-solaris2*)
  9574. + gcc_cv_ld_as_needed=no
  9575. + ;;
  9576. +esac
  9577. +])
  9578. +if test x"$gcc_cv_ld_as_needed" = xyes; then
  9579. + AC_DEFINE(HAVE_LD_AS_NEEDED, 1,
  9580. +[Define if your linker supports --as-needed/--no-as-needed or equivalent options.])
  9581. + AC_DEFINE_UNQUOTED(LD_AS_NEEDED_OPTION, "$gcc_cv_ld_as_needed_option",
  9582. +[Define to the linker option to ignore unused dependencies.])
  9583. + AC_DEFINE_UNQUOTED(LD_NO_AS_NEEDED_OPTION, "$gcc_cv_ld_no_as_needed_option",
  9584. +[Define to the linker option to keep unused dependencies.])
  9585. +fi
  9586. +
  9587. +AC_MSG_CHECKING(linker mapfile support for clearing hardware capabilities)
  9588. +saved_LDFLAGS="$LDFLAGS"
  9589. +for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
  9590. + LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
  9591. + AC_LINK_IFELSE([int main(void) {return 0;}],
  9592. + [gcc_cv_ld_clearcap=yes; break], [gcc_cv_ld_clearcap=no])
  9593. +done
  9594. +LDFLAGS="$saved_LDFLAGS"
  9595. +if test "x$gcc_cv_ld_clearcap" = xyes; then
  9596. + AC_DEFINE([HAVE_LD_CLEARCAP], 1,
  9597. +[Define if the linker supports clearing hardware capabilities via mapfile.])
  9598. + AC_CONFIG_LINKS([clearcap.map:${srcdir}/config/$clearcap_map])
  9599. +fi
  9600. +AC_MSG_RESULT($gcc_cv_ld_clearcap)
  9601. +
  9602. +case "$target:$tm_file" in
  9603. + powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
  9604. + case "$target" in
  9605. + *le-*-linux*)
  9606. + emul_name="-melf64lppc"
  9607. + ;;
  9608. + *-*-linux*)
  9609. + emul_name="-melf64ppc"
  9610. + ;;
  9611. + *-*-freebsd*)
  9612. + emul_name="-melf64ppc_fbsd"
  9613. + ;;
  9614. + esac
  9615. + AC_CACHE_CHECK(linker support for omitting dot symbols,
  9616. + gcc_cv_ld_no_dot_syms,
  9617. + [gcc_cv_ld_no_dot_syms=no
  9618. + if test x"$ld_is_gold" = xyes; then
  9619. + gcc_cv_ld_no_dot_syms=yes
  9620. + elif test $in_tree_ld = yes ; then
  9621. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
  9622. + gcc_cv_ld_no_dot_syms=yes
  9623. + fi
  9624. + elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
  9625. + cat > conftest1.s <<EOF
  9626. + .text
  9627. + bl .foo
  9628. +EOF
  9629. + cat > conftest2.s <<EOF
  9630. + .section ".opd","aw"
  9631. + .align 3
  9632. + .globl foo
  9633. + .type foo,@function
  9634. +foo:
  9635. + .quad .LEfoo,.TOC.@tocbase,0
  9636. + .text
  9637. +.LEfoo:
  9638. + blr
  9639. + .size foo,.-.LEfoo
  9640. +EOF
  9641. + if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
  9642. + && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
  9643. + && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
  9644. + gcc_cv_ld_no_dot_syms=yes
  9645. + fi
  9646. + rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
  9647. + fi
  9648. + ])
  9649. + if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
  9650. + AC_DEFINE(HAVE_LD_NO_DOT_SYMS, 1,
  9651. + [Define if your PowerPC64 linker only needs function descriptor syms.])
  9652. + fi
  9653. +
  9654. + AC_CACHE_CHECK(linker large toc support,
  9655. + gcc_cv_ld_large_toc,
  9656. + [gcc_cv_ld_large_toc=no
  9657. + if test x"$ld_is_gold" = xyes; then
  9658. + gcc_cv_ld_large_toc=yes
  9659. + elif test $in_tree_ld = yes ; then
  9660. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
  9661. + gcc_cv_ld_large_toc=yes
  9662. + fi
  9663. + elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
  9664. + cat > conftest.s <<EOF
  9665. + .section ".tbss","awT",@nobits
  9666. + .align 3
  9667. +ie0: .space 8
  9668. + .global _start
  9669. + .text
  9670. +_start:
  9671. + addis 9,13,ie0@got@tprel@ha
  9672. + ld 9,ie0@got@tprel@l(9)
  9673. +EOF
  9674. + if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
  9675. + && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
  9676. + gcc_cv_ld_large_toc=yes
  9677. + fi
  9678. + rm -f conftest conftest.o conftest.s
  9679. + fi
  9680. + ])
  9681. + if test x"$gcc_cv_ld_large_toc" = xyes; then
  9682. + AC_DEFINE(HAVE_LD_LARGE_TOC, 1,
  9683. + [Define if your PowerPC64 linker supports a large TOC.])
  9684. + fi
  9685. + ;;
  9686. +esac
  9687. +
  9688. +case "$target" in
  9689. + *-*-aix*)
  9690. + AC_CACHE_CHECK(linker large toc support,
  9691. + gcc_cv_ld_large_toc,
  9692. + [gcc_cv_ld_large_toc=no
  9693. + if test x$gcc_cv_as != x ; then
  9694. + cat > conftest.s <<EOF
  9695. + .toc
  9696. +LC..1:
  9697. + .tc a[[TC]],a[[RW]]
  9698. + .extern a[[RW]]
  9699. + .csect .text[[PR]]
  9700. +.largetoctest:
  9701. + addis 9,LC..1@u(2)
  9702. + ld 3,LC..1@l(9)
  9703. +EOF
  9704. + if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
  9705. + gcc_cv_ld_large_toc=yes
  9706. + fi
  9707. + rm -f conftest conftest.o conftest.s
  9708. + fi
  9709. + ])
  9710. + if test x"$gcc_cv_ld_large_toc" = xyes; then
  9711. + AC_DEFINE(HAVE_LD_LARGE_TOC, 1,
  9712. + [Define if your PowerPC64 linker supports a large TOC.])
  9713. + fi
  9714. + ;;
  9715. +esac
  9716. +
  9717. +AC_CACHE_CHECK(linker --build-id support,
  9718. + gcc_cv_ld_buildid,
  9719. + [gcc_cv_ld_buildid=no
  9720. + if test $in_tree_ld = yes ; then
  9721. + if test "$gcc_cv_gld_major_version" -eq 2 -a \
  9722. + "$gcc_cv_gld_minor_version" -ge 18 -o \
  9723. + "$gcc_cv_gld_major_version" -gt 2 \
  9724. + && test $in_tree_ld_is_elf = yes; then
  9725. + gcc_cv_ld_buildid=yes
  9726. + fi
  9727. + elif test x$gcc_cv_ld != x; then
  9728. + if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
  9729. + gcc_cv_ld_buildid=yes
  9730. + fi
  9731. + fi])
  9732. +if test x"$gcc_cv_ld_buildid" = xyes; then
  9733. + AC_DEFINE(HAVE_LD_BUILDID, 1,
  9734. + [Define if your linker supports --build-id.])
  9735. +fi
  9736. +
  9737. +AC_ARG_ENABLE(linker-build-id,
  9738. +[AS_HELP_STRING([--enable-linker-build-id],
  9739. + [compiler will always pass --build-id to linker])],
  9740. +[],
  9741. +enable_linker_build_id=no)
  9742. +
  9743. +if test x"$enable_linker_build_id" = xyes; then
  9744. + if test x"$gcc_cv_ld_buildid" = xyes; then
  9745. + AC_DEFINE(ENABLE_LD_BUILDID, 1,
  9746. + [Define if gcc should always pass --build-id to linker.])
  9747. + else
  9748. + AC_MSG_WARN(--build-id is not supported by your linker; --enable-linker-build-id ignored)
  9749. + fi
  9750. +fi
  9751. +
  9752. +# In binutils 2.21, GNU ld gained support for new emulations fully
  9753. +# supporting the Solaris 2 ABI. Detect their presence in the linker used.
  9754. +AC_CACHE_CHECK(linker *_sol2 emulation support,
  9755. + gcc_cv_ld_sol2_emulation,
  9756. + [gcc_cv_ld_sol2_emulation=no
  9757. + if test $in_tree_ld = yes ; then
  9758. + if test "$gcc_cv_gld_major_version" -eq 2 -a \
  9759. + "$gcc_cv_gld_minor_version" -ge 21 -o \
  9760. + "$gcc_cv_gld_major_version" -gt 2 \
  9761. + && test $in_tree_ld_is_elf = yes; then
  9762. + gcc_cv_ld_sol2_emulation=yes
  9763. + fi
  9764. + elif test x$gcc_cv_ld != x; then
  9765. + if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
  9766. + grep _sol2 > /dev/null; then
  9767. + gcc_cv_ld_sol2_emulation=yes
  9768. + fi
  9769. + fi])
  9770. +if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
  9771. + AC_DEFINE(HAVE_LD_SOL2_EMULATION, 1,
  9772. + [Define if your linker supports the *_sol2 emulations.])
  9773. +fi
  9774. +
  9775. +AC_CACHE_CHECK(linker --sysroot support,
  9776. + gcc_cv_ld_sysroot,
  9777. + [gcc_cv_ld_sysroot=no
  9778. + if test $in_tree_ld = yes ; then
  9779. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
  9780. + gcc_cv_ld_sysroot=yes
  9781. + fi
  9782. + elif test x$gcc_cv_ld != x; then
  9783. + if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
  9784. + gcc_cv_ld_sysroot=yes
  9785. + fi
  9786. + fi])
  9787. +if test x"$gcc_cv_ld_sysroot" = xyes; then
  9788. + AC_DEFINE(HAVE_LD_SYSROOT, 1,
  9789. + [Define if your linker supports --sysroot.])
  9790. +fi
  9791. +
  9792. +# Test for stack protector support in target C library.
  9793. +AC_CACHE_CHECK(__stack_chk_fail in target C library,
  9794. + gcc_cv_libc_provides_ssp,
  9795. + [gcc_cv_libc_provides_ssp=no
  9796. + case "$target" in
  9797. + *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
  9798. + # glibc 2.4 and later provides __stack_chk_fail and
  9799. + # either __stack_chk_guard, or TLS access to stack guard canary.
  9800. + GCC_GLIBC_VERSION_GTE_IFELSE([2], [4], [gcc_cv_libc_provides_ssp=yes], [
  9801. + [if test -f $target_header_dir/features.h \
  9802. + && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
  9803. + $target_header_dir/features.h > /dev/null; then
  9804. + if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
  9805. + $target_header_dir/features.h > /dev/null && \
  9806. + test -f $target_header_dir/bits/uClibc_config.h && \
  9807. + $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
  9808. + $target_header_dir/bits/uClibc_config.h > /dev/null; then
  9809. + gcc_cv_libc_provides_ssp=yes
  9810. + fi
  9811. + # all versions of Bionic support stack protector
  9812. + elif test -f $target_header_dir/sys/cdefs.h \
  9813. + && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
  9814. + $target_header_dir/sys/cdefs.h > /dev/null; then
  9815. + gcc_cv_libc_provides_ssp=yes
  9816. + fi]])
  9817. + ;;
  9818. + *-*-gnu*)
  9819. + # Avoid complicated tests (see
  9820. + # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
  9821. + # simply assert that glibc does provide this, which is true for all
  9822. + # realistically usable GNU/Hurd configurations.
  9823. + gcc_cv_libc_provides_ssp=yes;;
  9824. + *-*-darwin* | *-*-freebsd*)
  9825. + AC_CHECK_FUNC(__stack_chk_fail,[gcc_cv_libc_provides_ssp=yes],
  9826. + [echo "no __stack_chk_fail on this target"])
  9827. + ;;
  9828. + *) gcc_cv_libc_provides_ssp=no ;;
  9829. + esac])
  9830. +
  9831. +if test x$gcc_cv_libc_provides_ssp = xyes; then
  9832. + AC_DEFINE(TARGET_LIBC_PROVIDES_SSP, 1,
  9833. + [Define if your target C library provides stack protector support])
  9834. +fi
  9835. +
  9836. +# Test for <sys/sdt.h> on the target.
  9837. +GCC_TARGET_TEMPLATE([HAVE_SYS_SDT_H])
  9838. +AC_MSG_CHECKING(sys/sdt.h in the target C library)
  9839. +have_sys_sdt_h=no
  9840. +if test -f $target_header_dir/sys/sdt.h; then
  9841. + have_sys_sdt_h=yes
  9842. + AC_DEFINE(HAVE_SYS_SDT_H, 1,
  9843. + [Define if your target C library provides sys/sdt.h])
  9844. +fi
  9845. +AC_MSG_RESULT($have_sys_sdt_h)
  9846. +
  9847. +# Check if TFmode long double should be used by default or not.
  9848. +# Some glibc targets used DFmode long double, but with glibc 2.4
  9849. +# and later they can use TFmode.
  9850. +case "$target" in
  9851. + powerpc*-*-linux* | \
  9852. + sparc*-*-linux* | \
  9853. + s390*-*-linux* | \
  9854. + alpha*-*-linux*)
  9855. + AC_ARG_WITH(long-double-128,
  9856. + [AS_HELP_STRING([--with-long-double-128],
  9857. + [use 128-bit long double by default])],
  9858. + gcc_cv_target_ldbl128="$with_long_double_128",
  9859. + [GCC_GLIBC_VERSION_GTE_IFELSE([2], [4], [gcc_cv_target_ldbl128=yes], [
  9860. + [gcc_cv_target_ldbl128=no
  9861. + grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
  9862. + $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
  9863. + && gcc_cv_target_ldbl128=yes
  9864. + ]])])
  9865. + ;;
  9866. +esac
  9867. +if test x$gcc_cv_target_ldbl128 = xyes; then
  9868. + AC_DEFINE(TARGET_DEFAULT_LONG_DOUBLE_128, 1,
  9869. + [Define if TFmode long double should be the default])
  9870. +fi
  9871. +
  9872. +AC_MSG_CHECKING(dl_iterate_phdr in target C library)
  9873. +gcc_cv_target_dl_iterate_phdr=unknown
  9874. +case "$target" in
  9875. + # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
  9876. + # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
  9877. + # libdl there, both complicating its use and breaking compatibility
  9878. + # between Solaris 10 updates.
  9879. + *-*-solaris2.1[[1-9]]*)
  9880. + # <link.h> needs both a dl_iterate_phdr declaration and support for
  9881. + # compilation with largefile support.
  9882. + if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
  9883. + && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
  9884. + gcc_cv_target_dl_iterate_phdr=yes
  9885. + else
  9886. + gcc_cv_target_dl_iterate_phdr=no
  9887. + fi
  9888. + ;;
  9889. +esac
  9890. +GCC_TARGET_TEMPLATE([TARGET_DL_ITERATE_PHDR])
  9891. +if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
  9892. + AC_DEFINE(TARGET_DL_ITERATE_PHDR, 1,
  9893. +[Define if your target C library provides the `dl_iterate_phdr' function.])
  9894. +fi
  9895. +AC_MSG_RESULT($gcc_cv_target_dl_iterate_phdr)
  9896. +
  9897. +# We no longer support different GC mechanisms. Emit an error if
  9898. +# the user configures with --with-gc.
  9899. +AC_ARG_WITH(gc,
  9900. +[AS_HELP_STRING([--with-gc={page,zone}],
  9901. + [this option is not supported anymore. It used to choose
  9902. + the garbage collection mechanism to use with the compiler])],
  9903. +[AC_MSG_ERROR([Configure option --with-gc is only supported up to GCC 4.7.x])],
  9904. +[])
  9905. +
  9906. +# Libraries to use on the host. This will normally be set by the top
  9907. +# level Makefile. Here we simply capture the value for our Makefile.
  9908. +if test -z "${HOST_LIBS+set}"; then
  9909. + HOST_LIBS=
  9910. +fi
  9911. +AC_SUBST(HOST_LIBS)
  9912. +
  9913. +# Use the system's zlib library.
  9914. +zlibdir=-L../zlib
  9915. +zlibinc="-I\$(srcdir)/../zlib"
  9916. +AC_ARG_WITH(system-zlib,
  9917. +[AS_HELP_STRING([--with-system-zlib], [use installed libz])],
  9918. +zlibdir=
  9919. +zlibinc=
  9920. +)
  9921. +AC_SUBST(zlibdir)
  9922. +AC_SUBST(zlibinc)
  9923. +
  9924. +dnl Very limited version of automake's enable-maintainer-mode
  9925. +
  9926. +AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  9927. + dnl maintainer-mode is disabled by default
  9928. + AC_ARG_ENABLE(maintainer-mode,
  9929. +[AS_HELP_STRING([--enable-maintainer-mode],
  9930. + [enable make rules and dependencies not useful
  9931. + (and sometimes confusing) to the casual installer])],
  9932. + maintainer_mode=$enableval,
  9933. + maintainer_mode=no)
  9934. +
  9935. +AC_MSG_RESULT($maintainer_mode)
  9936. +
  9937. +if test "$maintainer_mode" = "yes"; then
  9938. + MAINT=''
  9939. +else
  9940. + MAINT='#'
  9941. +fi
  9942. +AC_SUBST(MAINT)dnl
  9943. +
  9944. +dnl Whether to prevent multiple front-ends from linking at the same time
  9945. +
  9946. +AC_MSG_CHECKING([whether to avoid linking multiple front-ends at once])
  9947. + AC_ARG_ENABLE(link-mutex,
  9948. +[AS_HELP_STRING([--enable-link-mutex],
  9949. + [avoid linking multiple front-ends at once to avoid thrashing
  9950. + on the build machine])],
  9951. + do_link_mutex=$enableval,
  9952. + do_link_mutex=no)
  9953. +AC_MSG_RESULT($do_link_mutex)
  9954. +
  9955. +if test "$do_link_mutex" = "yes"; then
  9956. + DO_LINK_MUTEX=true
  9957. +else
  9958. + DO_LINK_MUTEX=false
  9959. +fi
  9960. +AC_SUBST(DO_LINK_MUTEX)
  9961. +
  9962. +# --------------
  9963. +# Language hooks
  9964. +# --------------
  9965. +
  9966. +# Make empty files to contain the specs and options for each language.
  9967. +# Then add #include lines to for a compiler that has specs and/or options.
  9968. +
  9969. +subdirs=
  9970. +lang_opt_files=
  9971. +lang_specs_files=
  9972. +lang_tree_files=
  9973. +# These (without "all_") are set in each config-lang.in.
  9974. +# `language' must be a single word so is spelled singularly.
  9975. +all_languages=
  9976. +all_compilers=
  9977. +all_outputs='Makefile'
  9978. +# List of language makefile fragments.
  9979. +all_lang_makefrags=
  9980. +# Additional files for gengtype
  9981. +all_gtfiles="$target_gtfiles"
  9982. +
  9983. +# These are the languages that are set in --enable-languages,
  9984. +# and are available in the GCC tree.
  9985. +all_selected_languages=
  9986. +
  9987. +# Add the language fragments.
  9988. +# Languages are added via two mechanisms. Some information must be
  9989. +# recorded in makefile variables, these are defined in config-lang.in.
  9990. +# We accumulate them and plug them into the main Makefile.
  9991. +# The other mechanism is a set of hooks for each of the main targets
  9992. +# like `clean', `install', etc.
  9993. +
  9994. +language_hooks="Make-hooks"
  9995. +
  9996. +for lang in ${srcdir}/*/config-lang.in
  9997. +do
  9998. +changequote(,)dnl
  9999. + test "$lang" = "${srcdir}/*/config-lang.in" && continue
  10000. +
  10001. + lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
  10002. + if test "x$lang_alias" = x
  10003. + then
  10004. + echo "$lang doesn't set \$language." 1>&2
  10005. + exit 1
  10006. + fi
  10007. + subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
  10008. + subdirs="$subdirs $subdir"
  10009. +
  10010. + # $gcc_subdir is where the gcc integration files are to be found
  10011. + # for a language, both for internal compiler purposes (compiler
  10012. + # sources implementing front-end to GCC tree converters), and for
  10013. + # build infrastructure purposes (Make-lang.in, etc.)
  10014. + #
  10015. + # This will be <subdir> (relative to $srcdir) if a line like
  10016. + # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
  10017. + # is found in <langdir>/config-lang.in, and will remain <langdir>
  10018. + # otherwise.
  10019. + #
  10020. + # Except for the language alias (fetched above), the regular
  10021. + # "config-lang.in" contents are always retrieved from $gcc_subdir,
  10022. + # so a <langdir>/config-lang.in setting gcc_subdir typically sets
  10023. + # only this and the language alias.
  10024. +
  10025. + gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
  10026. + if [ "$gcc_subdir" = "" ]; then
  10027. + gcc_subdir="$subdir"
  10028. + fi
  10029. +
  10030. + case ",$enable_languages," in
  10031. + *,$lang_alias,*)
  10032. + all_selected_languages="$all_selected_languages $lang_alias"
  10033. + if test -f $srcdir/$gcc_subdir/lang-specs.h; then
  10034. + lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
  10035. + fi
  10036. + ;;
  10037. + esac
  10038. +changequote([,])dnl
  10039. +
  10040. + language=
  10041. + boot_language=
  10042. + compilers=
  10043. + outputs=
  10044. + gtfiles=
  10045. + subdir_requires=
  10046. + . ${srcdir}/$gcc_subdir/config-lang.in
  10047. + if test "x$language" = x
  10048. + then
  10049. + echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
  10050. + exit 1
  10051. + fi
  10052. +
  10053. + ok=:
  10054. + case ",$enable_languages," in
  10055. + *,$lang_alias,*) ;;
  10056. + *)
  10057. + for i in $subdir_requires; do
  10058. + test -f "${srcdir}/$i/config-lang.in" && continue
  10059. + ok=false
  10060. + break
  10061. + done
  10062. + ;;
  10063. + esac
  10064. + $ok || continue
  10065. +
  10066. + all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
  10067. + if test -f $srcdir/$gcc_subdir/lang.opt; then
  10068. + lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
  10069. + all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
  10070. + fi
  10071. + if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
  10072. + lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
  10073. + fi
  10074. + all_languages="$all_languages $language"
  10075. + all_compilers="$all_compilers $compilers"
  10076. + all_outputs="$all_outputs $outputs"
  10077. + all_gtfiles="$all_gtfiles [[$subdir]] $gtfiles"
  10078. + case ",$enable_languages," in
  10079. + *,lto,*)
  10080. + AC_DEFINE(ENABLE_LTO, 1, [Define to enable LTO support.])
  10081. + enable_lto=yes
  10082. + AC_SUBST(enable_lto)
  10083. + ;;
  10084. + *) ;;
  10085. + esac
  10086. +done
  10087. +
  10088. +check_languages=
  10089. +for language in $all_selected_languages
  10090. +do
  10091. + check_languages="$check_languages check-$language"
  10092. +done
  10093. +
  10094. +# We link each language in with a set of hooks, reached indirectly via
  10095. +# lang.${target}. Only do so for selected languages.
  10096. +
  10097. +rm -f Make-hooks
  10098. +touch Make-hooks
  10099. +target_list="all.cross start.encap rest.encap tags \
  10100. + install-common install-man install-info install-pdf install-html dvi \
  10101. + pdf html uninstall info man srcextra srcman srcinfo \
  10102. + mostlyclean clean distclean maintainer-clean install-plugin"
  10103. +
  10104. +for t in $target_list
  10105. +do
  10106. + x=
  10107. + for lang in $all_selected_languages
  10108. + do
  10109. + x="$x $lang.$t"
  10110. + done
  10111. + echo "lang.$t: $x" >> Make-hooks
  10112. +done
  10113. +
  10114. +# --------
  10115. +# Option include files
  10116. +# --------
  10117. +
  10118. +${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
  10119. +option_includes="option-includes.mk"
  10120. +AC_SUBST_FILE(option_includes)
  10121. +
  10122. +# --------
  10123. +# UNSORTED
  10124. +# --------
  10125. +
  10126. +# Create .gdbinit.
  10127. +
  10128. +echo "dir ." > .gdbinit
  10129. +echo "dir ${srcdir}" >> .gdbinit
  10130. +if test x$gdb_needs_out_file_path = xyes
  10131. +then
  10132. + echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
  10133. +fi
  10134. +if test "x$subdirs" != x; then
  10135. + for s in $subdirs
  10136. + do
  10137. + echo "dir ${srcdir}/$s" >> .gdbinit
  10138. + done
  10139. +fi
  10140. +echo "source ${srcdir}/gdbinit.in" >> .gdbinit
  10141. +echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
  10142. +
  10143. +# Put a breakpoint on __asan_report_error to help with debugging buffer
  10144. +# overflow.
  10145. +case "$CFLAGS" in
  10146. +*-fsanitize=address*)
  10147. + echo "source ${srcdir}/gdbasan.in" >> .gdbinit
  10148. + ;;
  10149. +esac
  10150. +
  10151. +gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
  10152. +AC_SUBST(gcc_tooldir)
  10153. +AC_SUBST(dollar)
  10154. +
  10155. +# Find a directory in which to install a shared libgcc.
  10156. +
  10157. +AC_ARG_ENABLE(version-specific-runtime-libs,
  10158. +[AS_HELP_STRING([--enable-version-specific-runtime-libs],
  10159. + [specify that runtime libraries should be
  10160. + installed in a compiler-specific directory])])
  10161. +
  10162. +# Substitute configuration variables
  10163. +AC_SUBST(subdirs)
  10164. +AC_SUBST(srcdir)
  10165. +AC_SUBST(all_compilers)
  10166. +AC_SUBST(all_gtfiles)
  10167. +AC_SUBST(all_lang_makefrags)
  10168. +AC_SUBST(all_languages)
  10169. +AC_SUBST(all_selected_languages)
  10170. +AC_SUBST(build_exeext)
  10171. +AC_SUBST(build_install_headers_dir)
  10172. +AC_SUBST(build_xm_file_list)
  10173. +AC_SUBST(build_xm_include_list)
  10174. +AC_SUBST(build_xm_defines)
  10175. +AC_SUBST(build_file_translate)
  10176. +AC_SUBST(check_languages)
  10177. +AC_SUBST(cpp_install_dir)
  10178. +AC_SUBST(xmake_file)
  10179. +AC_SUBST(tmake_file)
  10180. +AC_SUBST(TM_ENDIAN_CONFIG)
  10181. +AC_SUBST(TM_MULTILIB_CONFIG)
  10182. +AC_SUBST(TM_MULTILIB_EXCEPTIONS_CONFIG)
  10183. +AC_SUBST(extra_gcc_objs)
  10184. +AC_SUBST(user_headers_inc_next_pre)
  10185. +AC_SUBST(user_headers_inc_next_post)
  10186. +AC_SUBST(extra_headers_list)
  10187. +AC_SUBST(extra_objs)
  10188. +AC_SUBST(extra_programs)
  10189. +AC_SUBST(float_h_file)
  10190. +AC_SUBST(gcc_config_arguments)
  10191. +AC_SUBST(gcc_gxx_include_dir)
  10192. +AC_SUBST(gcc_gxx_include_dir_add_sysroot)
  10193. +AC_SUBST(host_exeext)
  10194. +AC_SUBST(host_xm_file_list)
  10195. +AC_SUBST(host_xm_include_list)
  10196. +AC_SUBST(host_xm_defines)
  10197. +AC_SUBST(out_host_hook_obj)
  10198. +AC_SUBST(install)
  10199. +AC_SUBST(lang_opt_files)
  10200. +AC_SUBST(lang_specs_files)
  10201. +AC_SUBST(lang_tree_files)
  10202. +AC_SUBST(local_prefix)
  10203. +AC_SUBST(md_file)
  10204. +AC_SUBST(objc_boehm_gc)
  10205. +AC_SUBST(out_file)
  10206. +AC_SUBST(out_object_file)
  10207. +AC_SUBST(common_out_file)
  10208. +AC_SUBST(common_out_object_file)
  10209. +AC_SUBST(tm_file_list)
  10210. +AC_SUBST(tm_include_list)
  10211. +AC_SUBST(tm_defines)
  10212. +AC_SUBST(tm_p_file_list)
  10213. +AC_SUBST(tm_p_include_list)
  10214. +AC_SUBST(xm_file_list)
  10215. +AC_SUBST(xm_include_list)
  10216. +AC_SUBST(xm_defines)
  10217. +AC_SUBST(use_gcc_stdint)
  10218. +AC_SUBST(c_target_objs)
  10219. +AC_SUBST(cxx_target_objs)
  10220. +AC_SUBST(fortran_target_objs)
  10221. +AC_SUBST(target_cpu_default)
  10222. +
  10223. +AC_SUBST_FILE(language_hooks)
  10224. +
  10225. +# Echo link setup.
  10226. +if test x${build} = x${host} ; then
  10227. + if test x${host} = x${target} ; then
  10228. + echo "Links are now set up to build a native compiler for ${target}." 1>&2
  10229. + else
  10230. + echo "Links are now set up to build a cross-compiler" 1>&2
  10231. + echo " from ${host} to ${target}." 1>&2
  10232. + fi
  10233. +else
  10234. + if test x${host} = x${target} ; then
  10235. + echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
  10236. + echo " for ${target}." 1>&2
  10237. + else
  10238. + echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
  10239. + echo " from ${host} to ${target}." 1>&2
  10240. + fi
  10241. +fi
  10242. +
  10243. +AC_ARG_VAR(GMPLIBS,[How to link GMP])
  10244. +AC_ARG_VAR(GMPINC,[How to find GMP include files])
  10245. +
  10246. +AC_ARG_VAR(ISLLIBS,[How to link ISL])
  10247. +AC_ARG_VAR(ISLINC,[How to find ISL include files])
  10248. +
  10249. +AC_ARG_VAR(CLOOGLIBS,[How to link CLOOG])
  10250. +AC_ARG_VAR(CLOOGINC,[How to find CLOOG include files])
  10251. +if test "x${CLOOGLIBS}" != "x" ; then
  10252. + AC_DEFINE(HAVE_cloog, 1, [Define if cloog is in use.])
  10253. +fi
  10254. +
  10255. +# Check for plugin support
  10256. +AC_ARG_ENABLE(plugin,
  10257. +[AS_HELP_STRING([--enable-plugin], [enable plugin support])],
  10258. +enable_plugin=$enableval,
  10259. +enable_plugin=yes; default_plugin=yes)
  10260. +
  10261. +pluginlibs=
  10262. +
  10263. +case "${host}" in
  10264. + *-*-darwin*)
  10265. + if test x$build = x$host; then
  10266. + export_sym_check="nm${exeext} -g"
  10267. + elif test x$host = x$target; then
  10268. + export_sym_check="$gcc_cv_nm -g"
  10269. + else
  10270. + export_sym_check=
  10271. + fi
  10272. + ;;
  10273. + *)
  10274. + if test x$build = x$host; then
  10275. + export_sym_check="objdump${exeext} -T"
  10276. + elif test x$host = x$target; then
  10277. + export_sym_check="$gcc_cv_objdump -T"
  10278. + else
  10279. + export_sym_check=
  10280. + fi
  10281. + ;;
  10282. +esac
  10283. +
  10284. +if test x"$enable_plugin" = x"yes"; then
  10285. +
  10286. + AC_MSG_CHECKING([for exported symbols])
  10287. + if test "x$export_sym_check" != x; then
  10288. + echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
  10289. + ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
  10290. + if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
  10291. + : # No need to use a flag
  10292. + AC_MSG_RESULT([yes])
  10293. + else
  10294. + AC_MSG_RESULT([yes])
  10295. + AC_MSG_CHECKING([for -rdynamic])
  10296. + ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
  10297. + if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
  10298. + plugin_rdynamic=yes
  10299. + pluginlibs="-rdynamic"
  10300. + else
  10301. + plugin_rdynamic=no
  10302. + enable_plugin=no
  10303. + fi
  10304. + AC_MSG_RESULT([$plugin_rdynamic])
  10305. + fi
  10306. + else
  10307. + AC_MSG_RESULT([unable to check])
  10308. + fi
  10309. +
  10310. + # Check -ldl
  10311. + saved_LIBS="$LIBS"
  10312. + AC_SEARCH_LIBS([dlopen], [dl])
  10313. + if test x"$ac_cv_search_dlopen" = x"-ldl"; then
  10314. + pluginlibs="$pluginlibs -ldl"
  10315. + fi
  10316. + LIBS="$saved_LIBS"
  10317. +
  10318. + # Check that we can build shared objects with -fPIC -shared
  10319. + saved_LDFLAGS="$LDFLAGS"
  10320. + saved_CFLAGS="$CFLAGS"
  10321. + case "${host}" in
  10322. + *-*-darwin*)
  10323. + CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
  10324. + CFLAGS="$CFLAGS -fPIC"
  10325. + LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
  10326. + ;;
  10327. + *)
  10328. + CFLAGS="$CFLAGS -fPIC"
  10329. + LDFLAGS="$LDFLAGS -fPIC -shared"
  10330. + ;;
  10331. + esac
  10332. + AC_MSG_CHECKING([for -fPIC -shared])
  10333. + AC_TRY_LINK(
  10334. + [extern int X;],[return X == 0;],
  10335. + [AC_MSG_RESULT([yes]); have_pic_shared=yes],
  10336. + [AC_MSG_RESULT([no]); have_pic_shared=no])
  10337. + if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
  10338. + pluginlibs=
  10339. + enable_plugin=no
  10340. + fi
  10341. + LDFLAGS="$saved_LDFLAGS"
  10342. + CFLAGS="$saved_CFLAGS"
  10343. +
  10344. + # If plugin support had been requested but not available, fail.
  10345. + if test x"$enable_plugin" = x"no" ; then
  10346. + if test x"$default_plugin" != x"yes"; then
  10347. + AC_MSG_ERROR([
  10348. +Building GCC with plugin support requires a host that supports
  10349. +-fPIC, -shared, -ldl and -rdynamic.])
  10350. + fi
  10351. + fi
  10352. +fi
  10353. +
  10354. +AC_SUBST(pluginlibs)
  10355. +AC_SUBST(enable_plugin)
  10356. +if test x"$enable_plugin" = x"yes"; then
  10357. + AC_DEFINE(ENABLE_PLUGIN, 1, [Define to enable plugin support.])
  10358. +fi
  10359. +
  10360. +
  10361. +# Enable --enable-host-shared
  10362. +AC_ARG_ENABLE(host-shared,
  10363. +[AS_HELP_STRING([--enable-host-shared],
  10364. + [build host code as shared libraries])],
  10365. +[PICFLAG=-fPIC], [PICFLAG=])
  10366. +AC_SUBST(enable_host_shared)
  10367. +AC_SUBST(PICFLAG)
  10368. +
  10369. +
  10370. +AC_ARG_ENABLE(libquadmath-support,
  10371. +[AS_HELP_STRING([--disable-libquadmath-support],
  10372. + [disable libquadmath support for Fortran])],
  10373. +ENABLE_LIBQUADMATH_SUPPORT=$enableval,
  10374. +ENABLE_LIBQUADMATH_SUPPORT=yes)
  10375. +if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
  10376. + AC_DEFINE(ENABLE_LIBQUADMATH_SUPPORT, 1,
  10377. + [Define to 1 to enable libquadmath support])
  10378. +fi
  10379. +
  10380. +
  10381. +# Specify what hash style to use by default.
  10382. +AC_ARG_WITH([linker-hash-style],
  10383. +[AC_HELP_STRING([--with-linker-hash-style={sysv,gnu,both}],
  10384. + [specify the linker hash style])],
  10385. +[case x"$withval" in
  10386. + xsysv)
  10387. + LINKER_HASH_STYLE=sysv
  10388. + ;;
  10389. + xgnu)
  10390. + LINKER_HASH_STYLE=gnu
  10391. + ;;
  10392. + xboth)
  10393. + LINKER_HASH_STYLE=both
  10394. + ;;
  10395. + *)
  10396. + AC_MSG_ERROR([$withval is an invalid option to --with-linker-hash-style])
  10397. + ;;
  10398. + esac],
  10399. +[LINKER_HASH_STYLE=''])
  10400. +if test x"${LINKER_HASH_STYLE}" != x; then
  10401. + AC_DEFINE_UNQUOTED(LINKER_HASH_STYLE, "$LINKER_HASH_STYLE",
  10402. + [The linker hash style])
  10403. +fi
  10404. +
  10405. +# Configure the subdirectories
  10406. +# AC_CONFIG_SUBDIRS($subdirs)
  10407. +
  10408. +# Create the Makefile
  10409. +# and configure language subdirectories
  10410. +AC_CONFIG_FILES($all_outputs)
  10411. +
  10412. +AC_CONFIG_COMMANDS([default],
  10413. +[
  10414. +case ${CONFIG_HEADERS} in
  10415. + *auto-host.h:config.in*)
  10416. + echo > cstamp-h ;;
  10417. +esac
  10418. +# Make sure all the subdirs exist.
  10419. +for d in $subdirs doc build common c-family
  10420. +do
  10421. + test -d $d || mkdir $d
  10422. +done
  10423. +],
  10424. +[subdirs='$subdirs'])
  10425. +AC_OUTPUT
  10426. +
  10427. diff -Nur gcc-4.9.2-or1k.orig/gcc/configure.orig gcc-4.9.2-or1k/gcc/configure.orig
  10428. --- gcc-4.9.2-or1k.orig/gcc/configure.orig 1969-12-31 18:00:00.000000000 -0600
  10429. +++ gcc-4.9.2-or1k/gcc/configure.orig 2015-07-13 13:42:14.000000000 -0500
  10430. @@ -0,0 +1,29501 @@
  10431. +#! /bin/sh
  10432. +# Guess values for system-dependent variables and create Makefiles.
  10433. +# Generated by GNU Autoconf 2.64.
  10434. +#
  10435. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  10436. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  10437. +# Foundation, Inc.
  10438. +#
  10439. +# This configure script is free software; the Free Software Foundation
  10440. +# gives unlimited permission to copy, distribute and modify it.
  10441. +## -------------------- ##
  10442. +## M4sh Initialization. ##
  10443. +## -------------------- ##
  10444. +
  10445. +# Be more Bourne compatible
  10446. +DUALCASE=1; export DUALCASE # for MKS sh
  10447. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10448. + emulate sh
  10449. + NULLCMD=:
  10450. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10451. + # is contrary to our usage. Disable this feature.
  10452. + alias -g '${1+"$@"}'='"$@"'
  10453. + setopt NO_GLOB_SUBST
  10454. +else
  10455. + case `(set -o) 2>/dev/null` in #(
  10456. + *posix*) :
  10457. + set -o posix ;; #(
  10458. + *) :
  10459. + ;;
  10460. +esac
  10461. +fi
  10462. +
  10463. +
  10464. +as_nl='
  10465. +'
  10466. +export as_nl
  10467. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  10468. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10469. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10470. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10471. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  10472. +# but without wasting forks for bash or zsh.
  10473. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  10474. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10475. + as_echo='print -r --'
  10476. + as_echo_n='print -rn --'
  10477. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10478. + as_echo='printf %s\n'
  10479. + as_echo_n='printf %s'
  10480. +else
  10481. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10482. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10483. + as_echo_n='/usr/ucb/echo -n'
  10484. + else
  10485. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10486. + as_echo_n_body='eval
  10487. + arg=$1;
  10488. + case $arg in #(
  10489. + *"$as_nl"*)
  10490. + expr "X$arg" : "X\\(.*\\)$as_nl";
  10491. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10492. + esac;
  10493. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10494. + '
  10495. + export as_echo_n_body
  10496. + as_echo_n='sh -c $as_echo_n_body as_echo'
  10497. + fi
  10498. + export as_echo_body
  10499. + as_echo='sh -c $as_echo_body as_echo'
  10500. +fi
  10501. +
  10502. +# The user is always right.
  10503. +if test "${PATH_SEPARATOR+set}" != set; then
  10504. + PATH_SEPARATOR=:
  10505. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10506. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10507. + PATH_SEPARATOR=';'
  10508. + }
  10509. +fi
  10510. +
  10511. +
  10512. +# IFS
  10513. +# We need space, tab and new line, in precisely that order. Quoting is
  10514. +# there to prevent editors from complaining about space-tab.
  10515. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10516. +# splitting by setting IFS to empty value.)
  10517. +IFS=" "" $as_nl"
  10518. +
  10519. +# Find who we are. Look in the path if we contain no directory separator.
  10520. +case $0 in #((
  10521. + *[\\/]* ) as_myself=$0 ;;
  10522. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10523. +for as_dir in $PATH
  10524. +do
  10525. + IFS=$as_save_IFS
  10526. + test -z "$as_dir" && as_dir=.
  10527. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10528. + done
  10529. +IFS=$as_save_IFS
  10530. +
  10531. + ;;
  10532. +esac
  10533. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  10534. +# in which case we are not to be found in the path.
  10535. +if test "x$as_myself" = x; then
  10536. + as_myself=$0
  10537. +fi
  10538. +if test ! -f "$as_myself"; then
  10539. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10540. + exit 1
  10541. +fi
  10542. +
  10543. +# Unset variables that we do not need and which cause bugs (e.g. in
  10544. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10545. +# suppresses any "Segmentation fault" message there. '((' could
  10546. +# trigger a bug in pdksh 5.2.14.
  10547. +for as_var in BASH_ENV ENV MAIL MAILPATH
  10548. +do eval test x\${$as_var+set} = xset \
  10549. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10550. +done
  10551. +PS1='$ '
  10552. +PS2='> '
  10553. +PS4='+ '
  10554. +
  10555. +# NLS nuisances.
  10556. +LC_ALL=C
  10557. +export LC_ALL
  10558. +LANGUAGE=C
  10559. +export LANGUAGE
  10560. +
  10561. +# CDPATH.
  10562. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10563. +
  10564. +if test "x$CONFIG_SHELL" = x; then
  10565. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  10566. + emulate sh
  10567. + NULLCMD=:
  10568. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  10569. + # is contrary to our usage. Disable this feature.
  10570. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  10571. + setopt NO_GLOB_SUBST
  10572. +else
  10573. + case \`(set -o) 2>/dev/null\` in #(
  10574. + *posix*) :
  10575. + set -o posix ;; #(
  10576. + *) :
  10577. + ;;
  10578. +esac
  10579. +fi
  10580. +"
  10581. + as_required="as_fn_return () { (exit \$1); }
  10582. +as_fn_success () { as_fn_return 0; }
  10583. +as_fn_failure () { as_fn_return 1; }
  10584. +as_fn_ret_success () { return 0; }
  10585. +as_fn_ret_failure () { return 1; }
  10586. +
  10587. +exitcode=0
  10588. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  10589. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  10590. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  10591. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  10592. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  10593. +
  10594. +else
  10595. + exitcode=1; echo positional parameters were not saved.
  10596. +fi
  10597. +test x\$exitcode = x0 || exit 1"
  10598. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  10599. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  10600. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  10601. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  10602. +test \$(( 1 + 1 )) = 2 || exit 1
  10603. +
  10604. + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  10605. + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10606. + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  10607. + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  10608. + PATH=/empty FPATH=/empty; export PATH FPATH
  10609. + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  10610. + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  10611. + if (eval "$as_required") 2>/dev/null; then :
  10612. + as_have_required=yes
  10613. +else
  10614. + as_have_required=no
  10615. +fi
  10616. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  10617. +
  10618. +else
  10619. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10620. +as_found=false
  10621. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10622. +do
  10623. + IFS=$as_save_IFS
  10624. + test -z "$as_dir" && as_dir=.
  10625. + as_found=:
  10626. + case $as_dir in #(
  10627. + /*)
  10628. + for as_base in sh bash ksh sh5; do
  10629. + # Try only shells that exist, to save several forks.
  10630. + as_shell=$as_dir/$as_base
  10631. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  10632. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  10633. + CONFIG_SHELL=$as_shell as_have_required=yes
  10634. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  10635. + break 2
  10636. +fi
  10637. +fi
  10638. + done;;
  10639. + esac
  10640. + as_found=false
  10641. +done
  10642. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  10643. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  10644. + CONFIG_SHELL=$SHELL as_have_required=yes
  10645. +fi; }
  10646. +IFS=$as_save_IFS
  10647. +
  10648. +
  10649. + if test "x$CONFIG_SHELL" != x; then :
  10650. + # We cannot yet assume a decent shell, so we have to provide a
  10651. + # neutralization value for shells without unset; and this also
  10652. + # works around shells that cannot unset nonexistent variables.
  10653. + BASH_ENV=/dev/null
  10654. + ENV=/dev/null
  10655. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  10656. + export CONFIG_SHELL
  10657. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  10658. +fi
  10659. +
  10660. + if test x$as_have_required = xno; then :
  10661. + $as_echo "$0: This script requires a shell more modern than all"
  10662. + $as_echo "$0: the shells that I found on your system."
  10663. + if test x${ZSH_VERSION+set} = xset ; then
  10664. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  10665. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  10666. + else
  10667. + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  10668. +$0: including any error possibly output before this
  10669. +$0: message. Then install a modern shell, or manually run
  10670. +$0: the script under such a shell if you do have one."
  10671. + fi
  10672. + exit 1
  10673. +fi
  10674. +fi
  10675. +fi
  10676. +SHELL=${CONFIG_SHELL-/bin/sh}
  10677. +export SHELL
  10678. +# Unset more variables known to interfere with behavior of common tools.
  10679. +CLICOLOR_FORCE= GREP_OPTIONS=
  10680. +unset CLICOLOR_FORCE GREP_OPTIONS
  10681. +
  10682. +## --------------------- ##
  10683. +## M4sh Shell Functions. ##
  10684. +## --------------------- ##
  10685. +# as_fn_unset VAR
  10686. +# ---------------
  10687. +# Portably unset VAR.
  10688. +as_fn_unset ()
  10689. +{
  10690. + { eval $1=; unset $1;}
  10691. +}
  10692. +as_unset=as_fn_unset
  10693. +
  10694. +# as_fn_set_status STATUS
  10695. +# -----------------------
  10696. +# Set $? to STATUS, without forking.
  10697. +as_fn_set_status ()
  10698. +{
  10699. + return $1
  10700. +} # as_fn_set_status
  10701. +
  10702. +# as_fn_exit STATUS
  10703. +# -----------------
  10704. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10705. +as_fn_exit ()
  10706. +{
  10707. + set +e
  10708. + as_fn_set_status $1
  10709. + exit $1
  10710. +} # as_fn_exit
  10711. +
  10712. +# as_fn_mkdir_p
  10713. +# -------------
  10714. +# Create "$as_dir" as a directory, including parents if necessary.
  10715. +as_fn_mkdir_p ()
  10716. +{
  10717. +
  10718. + case $as_dir in #(
  10719. + -*) as_dir=./$as_dir;;
  10720. + esac
  10721. + test -d "$as_dir" || eval $as_mkdir_p || {
  10722. + as_dirs=
  10723. + while :; do
  10724. + case $as_dir in #(
  10725. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10726. + *) as_qdir=$as_dir;;
  10727. + esac
  10728. + as_dirs="'$as_qdir' $as_dirs"
  10729. + as_dir=`$as_dirname -- "$as_dir" ||
  10730. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10731. + X"$as_dir" : 'X\(//\)[^/]' \| \
  10732. + X"$as_dir" : 'X\(//\)$' \| \
  10733. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10734. +$as_echo X"$as_dir" |
  10735. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10736. + s//\1/
  10737. + q
  10738. + }
  10739. + /^X\(\/\/\)[^/].*/{
  10740. + s//\1/
  10741. + q
  10742. + }
  10743. + /^X\(\/\/\)$/{
  10744. + s//\1/
  10745. + q
  10746. + }
  10747. + /^X\(\/\).*/{
  10748. + s//\1/
  10749. + q
  10750. + }
  10751. + s/.*/./; q'`
  10752. + test -d "$as_dir" && break
  10753. + done
  10754. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  10755. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  10756. +
  10757. +
  10758. +} # as_fn_mkdir_p
  10759. +# as_fn_append VAR VALUE
  10760. +# ----------------------
  10761. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  10762. +# advantage of any shell optimizations that allow amortized linear growth over
  10763. +# repeated appends, instead of the typical quadratic growth present in naive
  10764. +# implementations.
  10765. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10766. + eval 'as_fn_append ()
  10767. + {
  10768. + eval $1+=\$2
  10769. + }'
  10770. +else
  10771. + as_fn_append ()
  10772. + {
  10773. + eval $1=\$$1\$2
  10774. + }
  10775. +fi # as_fn_append
  10776. +
  10777. +# as_fn_arith ARG...
  10778. +# ------------------
  10779. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  10780. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  10781. +# must be portable across $(()) and expr.
  10782. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10783. + eval 'as_fn_arith ()
  10784. + {
  10785. + as_val=$(( $* ))
  10786. + }'
  10787. +else
  10788. + as_fn_arith ()
  10789. + {
  10790. + as_val=`expr "$@" || test $? -eq 1`
  10791. + }
  10792. +fi # as_fn_arith
  10793. +
  10794. +
  10795. +# as_fn_error ERROR [LINENO LOG_FD]
  10796. +# ---------------------------------
  10797. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10798. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10799. +# script with status $?, using 1 if that was 0.
  10800. +as_fn_error ()
  10801. +{
  10802. + as_status=$?; test $as_status -eq 0 && as_status=1
  10803. + if test "$3"; then
  10804. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10805. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  10806. + fi
  10807. + $as_echo "$as_me: error: $1" >&2
  10808. + as_fn_exit $as_status
  10809. +} # as_fn_error
  10810. +
  10811. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  10812. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10813. + as_expr=expr
  10814. +else
  10815. + as_expr=false
  10816. +fi
  10817. +
  10818. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10819. + as_basename=basename
  10820. +else
  10821. + as_basename=false
  10822. +fi
  10823. +
  10824. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10825. + as_dirname=dirname
  10826. +else
  10827. + as_dirname=false
  10828. +fi
  10829. +
  10830. +as_me=`$as_basename -- "$0" ||
  10831. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10832. + X"$0" : 'X\(//\)$' \| \
  10833. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10834. +$as_echo X/"$0" |
  10835. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  10836. + s//\1/
  10837. + q
  10838. + }
  10839. + /^X\/\(\/\/\)$/{
  10840. + s//\1/
  10841. + q
  10842. + }
  10843. + /^X\/\(\/\).*/{
  10844. + s//\1/
  10845. + q
  10846. + }
  10847. + s/.*/./; q'`
  10848. +
  10849. +# Avoid depending upon Character Ranges.
  10850. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10851. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10852. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10853. +as_cr_digits='0123456789'
  10854. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  10855. +
  10856. +
  10857. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  10858. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  10859. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  10860. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  10861. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  10862. + sed -n '
  10863. + p
  10864. + /[$]LINENO/=
  10865. + ' <$as_myself |
  10866. + sed '
  10867. + s/[$]LINENO.*/&-/
  10868. + t lineno
  10869. + b
  10870. + :lineno
  10871. + N
  10872. + :loop
  10873. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  10874. + t loop
  10875. + s/-\n.*//
  10876. + ' >$as_me.lineno &&
  10877. + chmod +x "$as_me.lineno" ||
  10878. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  10879. +
  10880. + # Don't try to exec as it changes $[0], causing all sort of problems
  10881. + # (the dirname of $[0] is not the place where we might find the
  10882. + # original and so on. Autoconf is especially sensitive to this).
  10883. + . "./$as_me.lineno"
  10884. + # Exit status is that of the last command.
  10885. + exit
  10886. +}
  10887. +
  10888. +ECHO_C= ECHO_N= ECHO_T=
  10889. +case `echo -n x` in #(((((
  10890. +-n*)
  10891. + case `echo 'xy\c'` in
  10892. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10893. + xy) ECHO_C='\c';;
  10894. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10895. + ECHO_T=' ';;
  10896. + esac;;
  10897. +*)
  10898. + ECHO_N='-n';;
  10899. +esac
  10900. +
  10901. +rm -f conf$$ conf$$.exe conf$$.file
  10902. +if test -d conf$$.dir; then
  10903. + rm -f conf$$.dir/conf$$.file
  10904. +else
  10905. + rm -f conf$$.dir
  10906. + mkdir conf$$.dir 2>/dev/null
  10907. +fi
  10908. +if (echo >conf$$.file) 2>/dev/null; then
  10909. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  10910. + as_ln_s='ln -s'
  10911. + # ... but there are two gotchas:
  10912. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10913. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10914. + # In both cases, we have to default to `cp -p'.
  10915. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10916. + as_ln_s='cp -p'
  10917. + elif ln conf$$.file conf$$ 2>/dev/null; then
  10918. + as_ln_s=ln
  10919. + else
  10920. + as_ln_s='cp -p'
  10921. + fi
  10922. +else
  10923. + as_ln_s='cp -p'
  10924. +fi
  10925. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10926. +rmdir conf$$.dir 2>/dev/null
  10927. +
  10928. +if mkdir -p . 2>/dev/null; then
  10929. + as_mkdir_p='mkdir -p "$as_dir"'
  10930. +else
  10931. + test -d ./-p && rmdir ./-p
  10932. + as_mkdir_p=false
  10933. +fi
  10934. +
  10935. +if test -x / >/dev/null 2>&1; then
  10936. + as_test_x='test -x'
  10937. +else
  10938. + if ls -dL / >/dev/null 2>&1; then
  10939. + as_ls_L_option=L
  10940. + else
  10941. + as_ls_L_option=
  10942. + fi
  10943. + as_test_x='
  10944. + eval sh -c '\''
  10945. + if test -d "$1"; then
  10946. + test -d "$1/.";
  10947. + else
  10948. + case $1 in #(
  10949. + -*)set "./$1";;
  10950. + esac;
  10951. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  10952. + ???[sx]*):;;*)false;;esac;fi
  10953. + '\'' sh
  10954. + '
  10955. +fi
  10956. +as_executable_p=$as_test_x
  10957. +
  10958. +# Sed expression to map a string onto a valid CPP name.
  10959. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10960. +
  10961. +# Sed expression to map a string onto a valid variable name.
  10962. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10963. +
  10964. +SHELL=${CONFIG_SHELL-/bin/sh}
  10965. +
  10966. +
  10967. +exec 7<&0 </dev/null 6>&1
  10968. +
  10969. +# Name of the host.
  10970. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  10971. +# so uname gets run too.
  10972. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  10973. +
  10974. +#
  10975. +# Initializations.
  10976. +#
  10977. +ac_default_prefix=/usr/local
  10978. +ac_clean_files=
  10979. +ac_config_libobj_dir=.
  10980. +LIBOBJS=
  10981. +cross_compiling=no
  10982. +subdirs=
  10983. +MFLAGS=
  10984. +MAKEFLAGS=
  10985. +
  10986. +# Identity of this package.
  10987. +PACKAGE_NAME=
  10988. +PACKAGE_TARNAME=
  10989. +PACKAGE_VERSION=
  10990. +PACKAGE_STRING=
  10991. +PACKAGE_BUGREPORT=
  10992. +PACKAGE_URL=
  10993. +
  10994. +ac_unique_file="tree.c"
  10995. +# Factoring default headers for most tests.
  10996. +ac_includes_default="\
  10997. +#include <stdio.h>
  10998. +#ifdef HAVE_SYS_TYPES_H
  10999. +# include <sys/types.h>
  11000. +#endif
  11001. +#ifdef HAVE_SYS_STAT_H
  11002. +# include <sys/stat.h>
  11003. +#endif
  11004. +#ifdef STDC_HEADERS
  11005. +# include <stdlib.h>
  11006. +# include <stddef.h>
  11007. +#else
  11008. +# ifdef HAVE_STDLIB_H
  11009. +# include <stdlib.h>
  11010. +# endif
  11011. +#endif
  11012. +#ifdef HAVE_STRING_H
  11013. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  11014. +# include <memory.h>
  11015. +# endif
  11016. +# include <string.h>
  11017. +#endif
  11018. +#ifdef HAVE_STRINGS_H
  11019. +# include <strings.h>
  11020. +#endif
  11021. +#ifdef HAVE_INTTYPES_H
  11022. +# include <inttypes.h>
  11023. +#endif
  11024. +#ifdef HAVE_STDINT_H
  11025. +# include <stdint.h>
  11026. +#endif
  11027. +#ifdef HAVE_UNISTD_H
  11028. +# include <unistd.h>
  11029. +#endif"
  11030. +
  11031. +ac_subst_vars='LTLIBOBJS
  11032. +LIBOBJS
  11033. +PICFLAG
  11034. +enable_host_shared
  11035. +enable_plugin
  11036. +pluginlibs
  11037. +CLOOGINC
  11038. +CLOOGLIBS
  11039. +ISLINC
  11040. +ISLLIBS
  11041. +GMPINC
  11042. +GMPLIBS
  11043. +target_cpu_default
  11044. +fortran_target_objs
  11045. +cxx_target_objs
  11046. +c_target_objs
  11047. +use_gcc_stdint
  11048. +xm_defines
  11049. +xm_include_list
  11050. +xm_file_list
  11051. +tm_p_include_list
  11052. +tm_p_file_list
  11053. +tm_defines
  11054. +tm_include_list
  11055. +tm_file_list
  11056. +common_out_object_file
  11057. +common_out_file
  11058. +out_object_file
  11059. +out_file
  11060. +objc_boehm_gc
  11061. +md_file
  11062. +local_prefix
  11063. +lang_tree_files
  11064. +lang_specs_files
  11065. +lang_opt_files
  11066. +install
  11067. +out_host_hook_obj
  11068. +host_xm_defines
  11069. +host_xm_include_list
  11070. +host_xm_file_list
  11071. +host_exeext
  11072. +gcc_gxx_include_dir_add_sysroot
  11073. +gcc_gxx_include_dir
  11074. +gcc_config_arguments
  11075. +float_h_file
  11076. +extra_programs
  11077. +extra_objs
  11078. +extra_headers_list
  11079. +user_headers_inc_next_post
  11080. +user_headers_inc_next_pre
  11081. +extra_gcc_objs
  11082. +TM_MULTILIB_EXCEPTIONS_CONFIG
  11083. +TM_MULTILIB_CONFIG
  11084. +TM_ENDIAN_CONFIG
  11085. +tmake_file
  11086. +xmake_file
  11087. +cpp_install_dir
  11088. +check_languages
  11089. +build_file_translate
  11090. +build_xm_defines
  11091. +build_xm_include_list
  11092. +build_xm_file_list
  11093. +build_install_headers_dir
  11094. +build_exeext
  11095. +all_selected_languages
  11096. +all_languages
  11097. +all_lang_makefrags
  11098. +all_gtfiles
  11099. +all_compilers
  11100. +srcdir
  11101. +subdirs
  11102. +dollar
  11103. +gcc_tooldir
  11104. +enable_lto
  11105. +DO_LINK_MUTEX
  11106. +MAINT
  11107. +zlibinc
  11108. +zlibdir
  11109. +HOST_LIBS
  11110. +libgcc_visibility
  11111. +gcc_cv_readelf
  11112. +gcc_cv_objdump
  11113. +ORIGINAL_NM_FOR_TARGET
  11114. +gcc_cv_nm
  11115. +ORIGINAL_LD_GOLD_FOR_TARGET
  11116. +ORIGINAL_LD_BFD_FOR_TARGET
  11117. +ORIGINAL_LD_FOR_TARGET
  11118. +ORIGINAL_PLUGIN_LD_FOR_TARGET
  11119. +gcc_cv_ld
  11120. +ORIGINAL_AS_FOR_TARGET
  11121. +gcc_cv_as
  11122. +enable_fast_install
  11123. +objdir
  11124. +OTOOL64
  11125. +OTOOL
  11126. +LIPO
  11127. +NMEDIT
  11128. +DSYMUTIL
  11129. +STRIP
  11130. +OBJDUMP
  11131. +ac_ct_DUMPBIN
  11132. +DUMPBIN
  11133. +LD
  11134. +FGREP
  11135. +SED
  11136. +LIBTOOL
  11137. +collect2
  11138. +STMP_FIXINC
  11139. +BUILD_LDFLAGS
  11140. +BUILD_CXXFLAGS
  11141. +BUILD_CFLAGS
  11142. +CXX_FOR_BUILD
  11143. +CC_FOR_BUILD
  11144. +inhibit_libc
  11145. +SYSTEM_HEADER_DIR
  11146. +ALL
  11147. +CROSS
  11148. +CATOBJEXT
  11149. +GENCAT
  11150. +INSTOBJEXT
  11151. +DATADIRNAME
  11152. +CATALOGS
  11153. +POSUB
  11154. +GMSGFMT
  11155. +XGETTEXT
  11156. +INCINTL
  11157. +LIBINTL_DEP
  11158. +LIBINTL
  11159. +USE_NLS
  11160. +extra_opt_files
  11161. +extra_modes_file
  11162. +NATIVE_SYSTEM_HEADER_DIR
  11163. +objext
  11164. +manext
  11165. +LIBICONV_DEP
  11166. +LTLIBICONV
  11167. +LIBICONV
  11168. +LDEXP_LIB
  11169. +EXTRA_GCC_LIBS
  11170. +GNAT_LIBEXC
  11171. +COLLECT2_LIBS
  11172. +CXXDEPMODE
  11173. +DEPDIR
  11174. +am__leading_dot
  11175. +CXXCPP
  11176. +AR
  11177. +NM
  11178. +BISON
  11179. +FLEX
  11180. +GENERATED_MANPAGES
  11181. +BUILD_INFO
  11182. +MAKEINFO
  11183. +have_mktemp_command
  11184. +make_compare_target
  11185. +INSTALL_DATA
  11186. +INSTALL_PROGRAM
  11187. +INSTALL
  11188. +ranlib_flags
  11189. +RANLIB
  11190. +LN
  11191. +LN_S
  11192. +AWK
  11193. +SET_MAKE
  11194. +REPORT_BUGS_TEXI
  11195. +REPORT_BUGS_TO
  11196. +PKGVERSION
  11197. +CONFIGURE_SPECS
  11198. +CROSS_SYSTEM_HEADER_DIR
  11199. +TARGET_SYSTEM_ROOT_DEFINE
  11200. +TARGET_SYSTEM_ROOT
  11201. +SYSROOT_CFLAGS_FOR_TARGET
  11202. +enable_shared
  11203. +enable_fixed_point
  11204. +enable_decimal_float
  11205. +with_float
  11206. +with_cpu
  11207. +enable_multiarch
  11208. +enable_multilib
  11209. +coverage_flags
  11210. +valgrind_command
  11211. +valgrind_path_defines
  11212. +valgrind_path
  11213. +TREECHECKING
  11214. +TREEBROWSER
  11215. +nocommon_flag
  11216. +noexception_flags
  11217. +warn_cxxflags
  11218. +warn_cflags
  11219. +c_strict_warn
  11220. +strict_warn
  11221. +c_loose_warn
  11222. +loose_warn
  11223. +EGREP
  11224. +GREP
  11225. +CPP
  11226. +PICFLAG_FOR_TARGET
  11227. +GNATMAKE
  11228. +GNATBIND
  11229. +ac_ct_CXX
  11230. +CXXFLAGS
  11231. +CXX
  11232. +OBJEXT
  11233. +EXEEXT
  11234. +ac_ct_CC
  11235. +CPPFLAGS
  11236. +LDFLAGS
  11237. +CFLAGS
  11238. +CC
  11239. +GENINSRC
  11240. +target_subdir
  11241. +host_subdir
  11242. +build_subdir
  11243. +build_libsubdir
  11244. +target_noncanonical
  11245. +target_os
  11246. +target_vendor
  11247. +target_cpu
  11248. +target
  11249. +host_os
  11250. +host_vendor
  11251. +host_cpu
  11252. +host
  11253. +build_os
  11254. +build_vendor
  11255. +build_cpu
  11256. +build
  11257. +target_alias
  11258. +host_alias
  11259. +build_alias
  11260. +LIBS
  11261. +ECHO_T
  11262. +ECHO_N
  11263. +ECHO_C
  11264. +DEFS
  11265. +mandir
  11266. +localedir
  11267. +libdir
  11268. +psdir
  11269. +pdfdir
  11270. +dvidir
  11271. +htmldir
  11272. +infodir
  11273. +docdir
  11274. +oldincludedir
  11275. +includedir
  11276. +localstatedir
  11277. +sharedstatedir
  11278. +sysconfdir
  11279. +datadir
  11280. +datarootdir
  11281. +libexecdir
  11282. +sbindir
  11283. +bindir
  11284. +program_transform_name
  11285. +prefix
  11286. +exec_prefix
  11287. +PACKAGE_URL
  11288. +PACKAGE_BUGREPORT
  11289. +PACKAGE_STRING
  11290. +PACKAGE_VERSION
  11291. +PACKAGE_TARNAME
  11292. +PACKAGE_NAME
  11293. +PATH_SEPARATOR
  11294. +SHELL'
  11295. +ac_subst_files='option_includes
  11296. +language_hooks'
  11297. +ac_user_opts='
  11298. +enable_option_checking
  11299. +with_build_libsubdir
  11300. +with_local_prefix
  11301. +with_gxx_include_dir
  11302. +with_cpp_install_dir
  11303. +enable_generated_files_in_srcdir
  11304. +with_gnu_ld
  11305. +with_ld
  11306. +with_demangler_in_ld
  11307. +with_gnu_as
  11308. +with_as
  11309. +enable_largefile
  11310. +enable_build_format_warnings
  11311. +enable_werror_always
  11312. +enable_checking
  11313. +enable_coverage
  11314. +enable_gather_detailed_mem_stats
  11315. +with_stabs
  11316. +enable_multilib
  11317. +enable_multiarch
  11318. +enable___cxa_atexit
  11319. +enable_decimal_float
  11320. +enable_fixed_point
  11321. +enable_threads
  11322. +enable_tls
  11323. +enable_objc_gc
  11324. +with_dwarf2
  11325. +enable_shared
  11326. +with_native_system_header_dir
  11327. +with_build_sysroot
  11328. +with_sysroot
  11329. +with_specs
  11330. +with_pkgversion
  11331. +with_bugurl
  11332. +enable_languages
  11333. +with_multilib_list
  11334. +enable_rpath
  11335. +with_libiconv_prefix
  11336. +enable_sjlj_exceptions
  11337. +enable_secureplt
  11338. +enable_leading_mingw64_underscores
  11339. +enable_cld
  11340. +enable_frame_pointer
  11341. +enable_win32_registry
  11342. +enable_static
  11343. +with_pic
  11344. +enable_fast_install
  11345. +enable_libtool_lock
  11346. +enable_ld
  11347. +enable_gold
  11348. +with_plugin_ld
  11349. +enable_gnu_indirect_function
  11350. +enable_initfini_array
  11351. +enable_comdat
  11352. +enable_fix_cortex_a53_835769
  11353. +with_glibc_version
  11354. +enable_gnu_unique_object
  11355. +enable_linker_build_id
  11356. +with_long_double_128
  11357. +with_gc
  11358. +with_system_zlib
  11359. +enable_maintainer_mode
  11360. +enable_link_mutex
  11361. +enable_version_specific_runtime_libs
  11362. +enable_plugin
  11363. +enable_host_shared
  11364. +enable_libquadmath_support
  11365. +with_linker_hash_style
  11366. +'
  11367. + ac_precious_vars='build_alias
  11368. +host_alias
  11369. +target_alias
  11370. +CC
  11371. +CFLAGS
  11372. +LDFLAGS
  11373. +LIBS
  11374. +CPPFLAGS
  11375. +CXX
  11376. +CXXFLAGS
  11377. +CCC
  11378. +CPP
  11379. +CXXCPP
  11380. +GMPLIBS
  11381. +GMPINC
  11382. +ISLLIBS
  11383. +ISLINC
  11384. +CLOOGLIBS
  11385. +CLOOGINC'
  11386. +
  11387. +
  11388. +# Initialize some variables set by options.
  11389. +ac_init_help=
  11390. +ac_init_version=false
  11391. +ac_unrecognized_opts=
  11392. +ac_unrecognized_sep=
  11393. +# The variables have the same names as the options, with
  11394. +# dashes changed to underlines.
  11395. +cache_file=/dev/null
  11396. +exec_prefix=NONE
  11397. +no_create=
  11398. +no_recursion=
  11399. +prefix=NONE
  11400. +program_prefix=NONE
  11401. +program_suffix=NONE
  11402. +program_transform_name=s,x,x,
  11403. +silent=
  11404. +site=
  11405. +srcdir=
  11406. +verbose=
  11407. +x_includes=NONE
  11408. +x_libraries=NONE
  11409. +
  11410. +# Installation directory options.
  11411. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  11412. +# and all the variables that are supposed to be based on exec_prefix
  11413. +# by default will actually change.
  11414. +# Use braces instead of parens because sh, perl, etc. also accept them.
  11415. +# (The list follows the same order as the GNU Coding Standards.)
  11416. +bindir='${exec_prefix}/bin'
  11417. +sbindir='${exec_prefix}/sbin'
  11418. +libexecdir='${exec_prefix}/libexec'
  11419. +datarootdir='${prefix}/share'
  11420. +datadir='${datarootdir}'
  11421. +sysconfdir='${prefix}/etc'
  11422. +sharedstatedir='${prefix}/com'
  11423. +localstatedir='${prefix}/var'
  11424. +includedir='${prefix}/include'
  11425. +oldincludedir='/usr/include'
  11426. +docdir='${datarootdir}/doc/${PACKAGE}'
  11427. +infodir='${datarootdir}/info'
  11428. +htmldir='${docdir}'
  11429. +dvidir='${docdir}'
  11430. +pdfdir='${docdir}'
  11431. +psdir='${docdir}'
  11432. +libdir='${exec_prefix}/lib'
  11433. +localedir='${datarootdir}/locale'
  11434. +mandir='${datarootdir}/man'
  11435. +
  11436. +ac_prev=
  11437. +ac_dashdash=
  11438. +for ac_option
  11439. +do
  11440. + # If the previous option needs an argument, assign it.
  11441. + if test -n "$ac_prev"; then
  11442. + eval $ac_prev=\$ac_option
  11443. + ac_prev=
  11444. + continue
  11445. + fi
  11446. +
  11447. + case $ac_option in
  11448. + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  11449. + *) ac_optarg=yes ;;
  11450. + esac
  11451. +
  11452. + # Accept the important Cygnus configure options, so we can diagnose typos.
  11453. +
  11454. + case $ac_dashdash$ac_option in
  11455. + --)
  11456. + ac_dashdash=yes ;;
  11457. +
  11458. + -bindir | --bindir | --bindi | --bind | --bin | --bi)
  11459. + ac_prev=bindir ;;
  11460. + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  11461. + bindir=$ac_optarg ;;
  11462. +
  11463. + -build | --build | --buil | --bui | --bu)
  11464. + ac_prev=build_alias ;;
  11465. + -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  11466. + build_alias=$ac_optarg ;;
  11467. +
  11468. + -cache-file | --cache-file | --cache-fil | --cache-fi \
  11469. + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  11470. + ac_prev=cache_file ;;
  11471. + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  11472. + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  11473. + cache_file=$ac_optarg ;;
  11474. +
  11475. + --config-cache | -C)
  11476. + cache_file=config.cache ;;
  11477. +
  11478. + -datadir | --datadir | --datadi | --datad)
  11479. + ac_prev=datadir ;;
  11480. + -datadir=* | --datadir=* | --datadi=* | --datad=*)
  11481. + datadir=$ac_optarg ;;
  11482. +
  11483. + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  11484. + | --dataroo | --dataro | --datar)
  11485. + ac_prev=datarootdir ;;
  11486. + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  11487. + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  11488. + datarootdir=$ac_optarg ;;
  11489. +
  11490. + -disable-* | --disable-*)
  11491. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  11492. + # Reject names that are not valid shell variable names.
  11493. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  11494. + as_fn_error "invalid feature name: $ac_useropt"
  11495. + ac_useropt_orig=$ac_useropt
  11496. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  11497. + case $ac_user_opts in
  11498. + *"
  11499. +"enable_$ac_useropt"
  11500. +"*) ;;
  11501. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  11502. + ac_unrecognized_sep=', ';;
  11503. + esac
  11504. + eval enable_$ac_useropt=no ;;
  11505. +
  11506. + -docdir | --docdir | --docdi | --doc | --do)
  11507. + ac_prev=docdir ;;
  11508. + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  11509. + docdir=$ac_optarg ;;
  11510. +
  11511. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  11512. + ac_prev=dvidir ;;
  11513. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  11514. + dvidir=$ac_optarg ;;
  11515. +
  11516. + -enable-* | --enable-*)
  11517. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  11518. + # Reject names that are not valid shell variable names.
  11519. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  11520. + as_fn_error "invalid feature name: $ac_useropt"
  11521. + ac_useropt_orig=$ac_useropt
  11522. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  11523. + case $ac_user_opts in
  11524. + *"
  11525. +"enable_$ac_useropt"
  11526. +"*) ;;
  11527. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  11528. + ac_unrecognized_sep=', ';;
  11529. + esac
  11530. + eval enable_$ac_useropt=\$ac_optarg ;;
  11531. +
  11532. + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  11533. + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  11534. + | --exec | --exe | --ex)
  11535. + ac_prev=exec_prefix ;;
  11536. + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  11537. + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  11538. + | --exec=* | --exe=* | --ex=*)
  11539. + exec_prefix=$ac_optarg ;;
  11540. +
  11541. + -gas | --gas | --ga | --g)
  11542. + # Obsolete; use --with-gas.
  11543. + with_gas=yes ;;
  11544. +
  11545. + -help | --help | --hel | --he | -h)
  11546. + ac_init_help=long ;;
  11547. + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  11548. + ac_init_help=recursive ;;
  11549. + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  11550. + ac_init_help=short ;;
  11551. +
  11552. + -host | --host | --hos | --ho)
  11553. + ac_prev=host_alias ;;
  11554. + -host=* | --host=* | --hos=* | --ho=*)
  11555. + host_alias=$ac_optarg ;;
  11556. +
  11557. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  11558. + ac_prev=htmldir ;;
  11559. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  11560. + | --ht=*)
  11561. + htmldir=$ac_optarg ;;
  11562. +
  11563. + -includedir | --includedir | --includedi | --included | --include \
  11564. + | --includ | --inclu | --incl | --inc)
  11565. + ac_prev=includedir ;;
  11566. + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  11567. + | --includ=* | --inclu=* | --incl=* | --inc=*)
  11568. + includedir=$ac_optarg ;;
  11569. +
  11570. + -infodir | --infodir | --infodi | --infod | --info | --inf)
  11571. + ac_prev=infodir ;;
  11572. + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  11573. + infodir=$ac_optarg ;;
  11574. +
  11575. + -libdir | --libdir | --libdi | --libd)
  11576. + ac_prev=libdir ;;
  11577. + -libdir=* | --libdir=* | --libdi=* | --libd=*)
  11578. + libdir=$ac_optarg ;;
  11579. +
  11580. + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  11581. + | --libexe | --libex | --libe)
  11582. + ac_prev=libexecdir ;;
  11583. + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  11584. + | --libexe=* | --libex=* | --libe=*)
  11585. + libexecdir=$ac_optarg ;;
  11586. +
  11587. + -localedir | --localedir | --localedi | --localed | --locale)
  11588. + ac_prev=localedir ;;
  11589. + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  11590. + localedir=$ac_optarg ;;
  11591. +
  11592. + -localstatedir | --localstatedir | --localstatedi | --localstated \
  11593. + | --localstate | --localstat | --localsta | --localst | --locals)
  11594. + ac_prev=localstatedir ;;
  11595. + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  11596. + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  11597. + localstatedir=$ac_optarg ;;
  11598. +
  11599. + -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  11600. + ac_prev=mandir ;;
  11601. + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  11602. + mandir=$ac_optarg ;;
  11603. +
  11604. + -nfp | --nfp | --nf)
  11605. + # Obsolete; use --without-fp.
  11606. + with_fp=no ;;
  11607. +
  11608. + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  11609. + | --no-cr | --no-c | -n)
  11610. + no_create=yes ;;
  11611. +
  11612. + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  11613. + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  11614. + no_recursion=yes ;;
  11615. +
  11616. + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  11617. + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  11618. + | --oldin | --oldi | --old | --ol | --o)
  11619. + ac_prev=oldincludedir ;;
  11620. + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  11621. + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  11622. + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  11623. + oldincludedir=$ac_optarg ;;
  11624. +
  11625. + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  11626. + ac_prev=prefix ;;
  11627. + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  11628. + prefix=$ac_optarg ;;
  11629. +
  11630. + -program-prefix | --program-prefix | --program-prefi | --program-pref \
  11631. + | --program-pre | --program-pr | --program-p)
  11632. + ac_prev=program_prefix ;;
  11633. + -program-prefix=* | --program-prefix=* | --program-prefi=* \
  11634. + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  11635. + program_prefix=$ac_optarg ;;
  11636. +
  11637. + -program-suffix | --program-suffix | --program-suffi | --program-suff \
  11638. + | --program-suf | --program-su | --program-s)
  11639. + ac_prev=program_suffix ;;
  11640. + -program-suffix=* | --program-suffix=* | --program-suffi=* \
  11641. + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  11642. + program_suffix=$ac_optarg ;;
  11643. +
  11644. + -program-transform-name | --program-transform-name \
  11645. + | --program-transform-nam | --program-transform-na \
  11646. + | --program-transform-n | --program-transform- \
  11647. + | --program-transform | --program-transfor \
  11648. + | --program-transfo | --program-transf \
  11649. + | --program-trans | --program-tran \
  11650. + | --progr-tra | --program-tr | --program-t)
  11651. + ac_prev=program_transform_name ;;
  11652. + -program-transform-name=* | --program-transform-name=* \
  11653. + | --program-transform-nam=* | --program-transform-na=* \
  11654. + | --program-transform-n=* | --program-transform-=* \
  11655. + | --program-transform=* | --program-transfor=* \
  11656. + | --program-transfo=* | --program-transf=* \
  11657. + | --program-trans=* | --program-tran=* \
  11658. + | --progr-tra=* | --program-tr=* | --program-t=*)
  11659. + program_transform_name=$ac_optarg ;;
  11660. +
  11661. + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  11662. + ac_prev=pdfdir ;;
  11663. + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  11664. + pdfdir=$ac_optarg ;;
  11665. +
  11666. + -psdir | --psdir | --psdi | --psd | --ps)
  11667. + ac_prev=psdir ;;
  11668. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  11669. + psdir=$ac_optarg ;;
  11670. +
  11671. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11672. + | -silent | --silent | --silen | --sile | --sil)
  11673. + silent=yes ;;
  11674. +
  11675. + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  11676. + ac_prev=sbindir ;;
  11677. + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  11678. + | --sbi=* | --sb=*)
  11679. + sbindir=$ac_optarg ;;
  11680. +
  11681. + -sharedstatedir | --sharedstatedir | --sharedstatedi \
  11682. + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  11683. + | --sharedst | --shareds | --shared | --share | --shar \
  11684. + | --sha | --sh)
  11685. + ac_prev=sharedstatedir ;;
  11686. + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  11687. + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  11688. + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  11689. + | --sha=* | --sh=*)
  11690. + sharedstatedir=$ac_optarg ;;
  11691. +
  11692. + -site | --site | --sit)
  11693. + ac_prev=site ;;
  11694. + -site=* | --site=* | --sit=*)
  11695. + site=$ac_optarg ;;
  11696. +
  11697. + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  11698. + ac_prev=srcdir ;;
  11699. + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  11700. + srcdir=$ac_optarg ;;
  11701. +
  11702. + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  11703. + | --syscon | --sysco | --sysc | --sys | --sy)
  11704. + ac_prev=sysconfdir ;;
  11705. + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  11706. + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  11707. + sysconfdir=$ac_optarg ;;
  11708. +
  11709. + -target | --target | --targe | --targ | --tar | --ta | --t)
  11710. + ac_prev=target_alias ;;
  11711. + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  11712. + target_alias=$ac_optarg ;;
  11713. +
  11714. + -v | -verbose | --verbose | --verbos | --verbo | --verb)
  11715. + verbose=yes ;;
  11716. +
  11717. + -version | --version | --versio | --versi | --vers | -V)
  11718. + ac_init_version=: ;;
  11719. +
  11720. + -with-* | --with-*)
  11721. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  11722. + # Reject names that are not valid shell variable names.
  11723. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  11724. + as_fn_error "invalid package name: $ac_useropt"
  11725. + ac_useropt_orig=$ac_useropt
  11726. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  11727. + case $ac_user_opts in
  11728. + *"
  11729. +"with_$ac_useropt"
  11730. +"*) ;;
  11731. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  11732. + ac_unrecognized_sep=', ';;
  11733. + esac
  11734. + eval with_$ac_useropt=\$ac_optarg ;;
  11735. +
  11736. + -without-* | --without-*)
  11737. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  11738. + # Reject names that are not valid shell variable names.
  11739. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  11740. + as_fn_error "invalid package name: $ac_useropt"
  11741. + ac_useropt_orig=$ac_useropt
  11742. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  11743. + case $ac_user_opts in
  11744. + *"
  11745. +"with_$ac_useropt"
  11746. +"*) ;;
  11747. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  11748. + ac_unrecognized_sep=', ';;
  11749. + esac
  11750. + eval with_$ac_useropt=no ;;
  11751. +
  11752. + --x)
  11753. + # Obsolete; use --with-x.
  11754. + with_x=yes ;;
  11755. +
  11756. + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  11757. + | --x-incl | --x-inc | --x-in | --x-i)
  11758. + ac_prev=x_includes ;;
  11759. + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  11760. + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  11761. + x_includes=$ac_optarg ;;
  11762. +
  11763. + -x-libraries | --x-libraries | --x-librarie | --x-librari \
  11764. + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  11765. + ac_prev=x_libraries ;;
  11766. + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  11767. + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  11768. + x_libraries=$ac_optarg ;;
  11769. +
  11770. + -*) as_fn_error "unrecognized option: \`$ac_option'
  11771. +Try \`$0 --help' for more information."
  11772. + ;;
  11773. +
  11774. + *=*)
  11775. + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  11776. + # Reject names that are not valid shell variable names.
  11777. + case $ac_envvar in #(
  11778. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  11779. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  11780. + esac
  11781. + eval $ac_envvar=\$ac_optarg
  11782. + export $ac_envvar ;;
  11783. +
  11784. + *)
  11785. + # FIXME: should be removed in autoconf 3.0.
  11786. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  11787. + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  11788. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  11789. + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  11790. + ;;
  11791. +
  11792. + esac
  11793. +done
  11794. +
  11795. +if test -n "$ac_prev"; then
  11796. + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  11797. + as_fn_error "missing argument to $ac_option"
  11798. +fi
  11799. +
  11800. +if test -n "$ac_unrecognized_opts"; then
  11801. + case $enable_option_checking in
  11802. + no) ;;
  11803. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  11804. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  11805. + esac
  11806. +fi
  11807. +
  11808. +# Check all directory arguments for consistency.
  11809. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  11810. + datadir sysconfdir sharedstatedir localstatedir includedir \
  11811. + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  11812. + libdir localedir mandir
  11813. +do
  11814. + eval ac_val=\$$ac_var
  11815. + # Remove trailing slashes.
  11816. + case $ac_val in
  11817. + */ )
  11818. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  11819. + eval $ac_var=\$ac_val;;
  11820. + esac
  11821. + # Be sure to have absolute directory names.
  11822. + case $ac_val in
  11823. + [\\/$]* | ?:[\\/]* ) continue;;
  11824. + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  11825. + esac
  11826. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  11827. +done
  11828. +
  11829. +# There might be people who depend on the old broken behavior: `$host'
  11830. +# used to hold the argument of --host etc.
  11831. +# FIXME: To remove some day.
  11832. +build=$build_alias
  11833. +host=$host_alias
  11834. +target=$target_alias
  11835. +
  11836. +# FIXME: To remove some day.
  11837. +if test "x$host_alias" != x; then
  11838. + if test "x$build_alias" = x; then
  11839. + cross_compiling=maybe
  11840. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  11841. + If a cross compiler is detected then cross compile mode will be used." >&2
  11842. + elif test "x$build_alias" != "x$host_alias"; then
  11843. + cross_compiling=yes
  11844. + fi
  11845. +fi
  11846. +
  11847. +ac_tool_prefix=
  11848. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  11849. +
  11850. +test "$silent" = yes && exec 6>/dev/null
  11851. +
  11852. +
  11853. +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  11854. +ac_ls_di=`ls -di .` &&
  11855. +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  11856. + as_fn_error "working directory cannot be determined"
  11857. +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  11858. + as_fn_error "pwd does not report name of working directory"
  11859. +
  11860. +
  11861. +# Find the source files, if location was not specified.
  11862. +if test -z "$srcdir"; then
  11863. + ac_srcdir_defaulted=yes
  11864. + # Try the directory containing this script, then the parent directory.
  11865. + ac_confdir=`$as_dirname -- "$as_myself" ||
  11866. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11867. + X"$as_myself" : 'X\(//\)[^/]' \| \
  11868. + X"$as_myself" : 'X\(//\)$' \| \
  11869. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  11870. +$as_echo X"$as_myself" |
  11871. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11872. + s//\1/
  11873. + q
  11874. + }
  11875. + /^X\(\/\/\)[^/].*/{
  11876. + s//\1/
  11877. + q
  11878. + }
  11879. + /^X\(\/\/\)$/{
  11880. + s//\1/
  11881. + q
  11882. + }
  11883. + /^X\(\/\).*/{
  11884. + s//\1/
  11885. + q
  11886. + }
  11887. + s/.*/./; q'`
  11888. + srcdir=$ac_confdir
  11889. + if test ! -r "$srcdir/$ac_unique_file"; then
  11890. + srcdir=..
  11891. + fi
  11892. +else
  11893. + ac_srcdir_defaulted=no
  11894. +fi
  11895. +if test ! -r "$srcdir/$ac_unique_file"; then
  11896. + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  11897. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  11898. +fi
  11899. +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  11900. +ac_abs_confdir=`(
  11901. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  11902. + pwd)`
  11903. +# When building in place, set srcdir=.
  11904. +if test "$ac_abs_confdir" = "$ac_pwd"; then
  11905. + srcdir=.
  11906. +fi
  11907. +# Remove unnecessary trailing slashes from srcdir.
  11908. +# Double slashes in file names in object file debugging info
  11909. +# mess up M-x gdb in Emacs.
  11910. +case $srcdir in
  11911. +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  11912. +esac
  11913. +for ac_var in $ac_precious_vars; do
  11914. + eval ac_env_${ac_var}_set=\${${ac_var}+set}
  11915. + eval ac_env_${ac_var}_value=\$${ac_var}
  11916. + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  11917. + eval ac_cv_env_${ac_var}_value=\$${ac_var}
  11918. +done
  11919. +
  11920. +#
  11921. +# Report the --help message.
  11922. +#
  11923. +if test "$ac_init_help" = "long"; then
  11924. + # Omit some internal or obsolete options to make the list less imposing.
  11925. + # This message is too long to be a string in the A/UX 3.1 sh.
  11926. + cat <<_ACEOF
  11927. +\`configure' configures this package to adapt to many kinds of systems.
  11928. +
  11929. +Usage: $0 [OPTION]... [VAR=VALUE]...
  11930. +
  11931. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  11932. +VAR=VALUE. See below for descriptions of some of the useful variables.
  11933. +
  11934. +Defaults for the options are specified in brackets.
  11935. +
  11936. +Configuration:
  11937. + -h, --help display this help and exit
  11938. + --help=short display options specific to this package
  11939. + --help=recursive display the short help of all the included packages
  11940. + -V, --version display version information and exit
  11941. + -q, --quiet, --silent do not print \`checking...' messages
  11942. + --cache-file=FILE cache test results in FILE [disabled]
  11943. + -C, --config-cache alias for \`--cache-file=config.cache'
  11944. + -n, --no-create do not create output files
  11945. + --srcdir=DIR find the sources in DIR [configure dir or \`..']
  11946. +
  11947. +Installation directories:
  11948. + --prefix=PREFIX install architecture-independent files in PREFIX
  11949. + [$ac_default_prefix]
  11950. + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  11951. + [PREFIX]
  11952. +
  11953. +By default, \`make install' will install all the files in
  11954. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  11955. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  11956. +for instance \`--prefix=\$HOME'.
  11957. +
  11958. +For better control, use the options below.
  11959. +
  11960. +Fine tuning of the installation directories:
  11961. + --bindir=DIR user executables [EPREFIX/bin]
  11962. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  11963. + --libexecdir=DIR program executables [EPREFIX/libexec]
  11964. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  11965. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  11966. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  11967. + --libdir=DIR object code libraries [EPREFIX/lib]
  11968. + --includedir=DIR C header files [PREFIX/include]
  11969. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  11970. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  11971. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  11972. + --infodir=DIR info documentation [DATAROOTDIR/info]
  11973. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  11974. + --mandir=DIR man documentation [DATAROOTDIR/man]
  11975. + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  11976. + --htmldir=DIR html documentation [DOCDIR]
  11977. + --dvidir=DIR dvi documentation [DOCDIR]
  11978. + --pdfdir=DIR pdf documentation [DOCDIR]
  11979. + --psdir=DIR ps documentation [DOCDIR]
  11980. +_ACEOF
  11981. +
  11982. + cat <<\_ACEOF
  11983. +
  11984. +Program names:
  11985. + --program-prefix=PREFIX prepend PREFIX to installed program names
  11986. + --program-suffix=SUFFIX append SUFFIX to installed program names
  11987. + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  11988. +
  11989. +System types:
  11990. + --build=BUILD configure for building on BUILD [guessed]
  11991. + --host=HOST cross-compile to build programs to run on HOST [BUILD]
  11992. + --target=TARGET configure for building compilers for TARGET [HOST]
  11993. +_ACEOF
  11994. +fi
  11995. +
  11996. +if test -n "$ac_init_help"; then
  11997. +
  11998. + cat <<\_ACEOF
  11999. +
  12000. +Optional Features:
  12001. + --disable-option-checking ignore unrecognized --enable/--with options
  12002. + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  12003. + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  12004. + --enable-generated-files-in-srcdir
  12005. + put copies of generated files in source dir intended
  12006. + for creating source tarballs for users without
  12007. + texinfo bison or flex
  12008. + --disable-largefile omit support for large files
  12009. + --disable-build-format-warnings
  12010. + don't use -Wformat while building GCC
  12011. + --enable-werror-always enable -Werror despite compiler version
  12012. + --enable-checking[=LIST]
  12013. + enable expensive run-time checks. With LIST, enable
  12014. + only specific categories of checks. Categories are:
  12015. + yes,no,all,none,release. Flags are:
  12016. + assert,df,fold,gc,gcac,gimple,misc,
  12017. + rtlflag,rtl,runtime,tree,valgrind,types
  12018. + --enable-coverage[=LEVEL]
  12019. + enable compiler's code coverage collection. Use to
  12020. + measure compiler performance and locate unused parts
  12021. + of the compiler. With LEVEL, specify optimization.
  12022. + Values are opt, noopt, default is noopt
  12023. + --enable-gather-detailed-mem-stats
  12024. + enable detailed memory allocation stats gathering
  12025. + --enable-multilib enable library support for multiple ABIs
  12026. + --enable-multiarch enable support for multiarch paths
  12027. + --enable-__cxa_atexit enable __cxa_atexit for C++
  12028. + --enable-decimal-float={no,yes,bid,dpd}
  12029. + enable decimal float extension to C. Selecting 'bid'
  12030. + or 'dpd' choses which decimal floating point format
  12031. + to use
  12032. + --enable-fixed-point enable fixed-point arithmetic extension to C
  12033. + --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
  12034. + package
  12035. + --enable-tls enable or disable generation of tls code overriding
  12036. + the assembler check for tls support
  12037. + --enable-objc-gc enable the use of Boehm's garbage collector with the
  12038. + GNU Objective-C runtime
  12039. + --disable-shared don't provide a shared libgcc
  12040. + --enable-languages=LIST specify which front-ends to build
  12041. + --disable-rpath do not hardcode runtime library paths
  12042. + --enable-sjlj-exceptions
  12043. + arrange to use setjmp/longjmp exception handling
  12044. + --enable-secureplt enable -msecure-plt by default for PowerPC
  12045. + --enable-leading-mingw64-underscores
  12046. + enable leading underscores on 64 bit mingw targets
  12047. + --enable-cld enable -mcld by default for 32bit x86
  12048. + --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
  12049. + x86
  12050. + --disable-win32-registry
  12051. + disable lookup of installation paths in the Registry
  12052. + on Windows hosts
  12053. + --enable-win32-registry enable registry lookup (default)
  12054. + --enable-win32-registry=KEY
  12055. + use KEY instead of GCC version as the last portion
  12056. + of the registry key
  12057. + --enable-shared[=PKGS] build shared libraries [default=yes]
  12058. + --enable-static[=PKGS] build static libraries [default=yes]
  12059. + --enable-fast-install[=PKGS]
  12060. + optimize for fast installation [default=yes]
  12061. + --disable-libtool-lock avoid locking (might break parallel builds)
  12062. + --enable-ld[=ARG] build ld [ARG={default,yes,no}]
  12063. + --enable-gold[=ARG] build gold [ARG={default,yes,no}]
  12064. + --enable-gnu-indirect-function
  12065. + enable the use of the @gnu_indirect_function to
  12066. + glibc systems
  12067. + --enable-initfini-array use .init_array/.fini_array sections
  12068. + --enable-comdat enable COMDAT group support
  12069. +
  12070. + --enable-fix-cortex-a53-835769
  12071. + enable workaround for AArch64 Cortex-A53 erratum
  12072. + 835769 by default
  12073. + --disable-fix-cortex-a53-835769
  12074. + disable workaround for AArch64 Cortex-A53 erratum
  12075. + 835769 by default
  12076. +
  12077. + --enable-gnu-unique-object
  12078. + enable the use of the @gnu_unique_object ELF
  12079. + extension on glibc systems
  12080. + --enable-linker-build-id
  12081. + compiler will always pass --build-id to linker
  12082. + --enable-maintainer-mode
  12083. + enable make rules and dependencies not useful (and
  12084. + sometimes confusing) to the casual installer
  12085. + --enable-link-mutex avoid linking multiple front-ends at once to avoid
  12086. + thrashing on the build machine
  12087. + --enable-version-specific-runtime-libs
  12088. + specify that runtime libraries should be installed
  12089. + in a compiler-specific directory
  12090. + --enable-plugin enable plugin support
  12091. + --enable-host-shared build host code as shared libraries
  12092. + --disable-libquadmath-support
  12093. + disable libquadmath support for Fortran
  12094. +
  12095. +Optional Packages:
  12096. + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  12097. + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  12098. + --with-build-libsubdir=DIR Directory where to find libraries for build system
  12099. + --with-local-prefix=DIR specifies directory to put local include
  12100. + --with-gxx-include-dir=DIR
  12101. + specifies directory to put g++ header files
  12102. + --with-cpp-install-dir=DIR
  12103. + install the user visible C preprocessor in DIR
  12104. + (relative to PREFIX) as well as PREFIX/bin
  12105. + --with-gnu-ld arrange to work with GNU ld
  12106. + --with-ld arrange to use the specified ld (full pathname)
  12107. + --with-demangler-in-ld try to use demangler in GNU ld
  12108. + --with-gnu-as arrange to work with GNU as
  12109. + --with-as arrange to use the specified as (full pathname)
  12110. + --with-stabs arrange to use stabs instead of host debug format
  12111. + --with-dwarf2 force the default debug format to be DWARF 2
  12112. + --with-native-system-header-dir=dir
  12113. + use dir as the directory to look for standard
  12114. + system header files in. Defaults to /usr/include.
  12115. + --with-build-sysroot=sysroot
  12116. + use sysroot as the system root during the build
  12117. + --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
  12118. + --with-specs=SPECS add SPECS to driver command-line processing
  12119. + --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
  12120. + --with-bugurl=URL Direct users to URL to report a bug
  12121. + --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
  12122. + --with-gnu-ld assume the C compiler uses GNU ld default=no
  12123. + --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  12124. + --without-libiconv-prefix don't search for libiconv in includedir and libdir
  12125. + --with-pic try to use only PIC/non-PIC objects [default=use
  12126. + both]
  12127. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  12128. + --with-plugin-ld=[ARG] specify the plugin linker
  12129. + --with-glibc-version=M.N
  12130. + assume GCC used with glibc version M.N or later
  12131. + --with-long-double-128 use 128-bit long double by default
  12132. + --with-gc={page,zone} this option is not supported anymore. It used to
  12133. + choose the garbage collection mechanism to use with
  12134. + the compiler
  12135. + --with-system-zlib use installed libz
  12136. + --with-linker-hash-style={sysv,gnu,both}
  12137. + specify the linker hash style
  12138. +
  12139. +Some influential environment variables:
  12140. + CC C compiler command
  12141. + CFLAGS C compiler flags
  12142. + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  12143. + nonstandard directory <lib dir>
  12144. + LIBS libraries to pass to the linker, e.g. -l<library>
  12145. + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  12146. + you have headers in a nonstandard directory <include dir>
  12147. + CXX C++ compiler command
  12148. + CXXFLAGS C++ compiler flags
  12149. + CPP C preprocessor
  12150. + CXXCPP C++ preprocessor
  12151. + GMPLIBS How to link GMP
  12152. + GMPINC How to find GMP include files
  12153. + ISLLIBS How to link ISL
  12154. + ISLINC How to find ISL include files
  12155. + CLOOGLIBS How to link CLOOG
  12156. + CLOOGINC How to find CLOOG include files
  12157. +
  12158. +Use these variables to override the choices made by `configure' or to help
  12159. +it to find libraries and programs with nonstandard names/locations.
  12160. +
  12161. +Report bugs to the package provider.
  12162. +_ACEOF
  12163. +ac_status=$?
  12164. +fi
  12165. +
  12166. +if test "$ac_init_help" = "recursive"; then
  12167. + # If there are subdirs, report their specific --help.
  12168. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  12169. + test -d "$ac_dir" ||
  12170. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  12171. + continue
  12172. + ac_builddir=.
  12173. +
  12174. +case "$ac_dir" in
  12175. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12176. +*)
  12177. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12178. + # A ".." for each directory in $ac_dir_suffix.
  12179. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12180. + case $ac_top_builddir_sub in
  12181. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12182. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12183. + esac ;;
  12184. +esac
  12185. +ac_abs_top_builddir=$ac_pwd
  12186. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12187. +# for backward compatibility:
  12188. +ac_top_builddir=$ac_top_build_prefix
  12189. +
  12190. +case $srcdir in
  12191. + .) # We are building in place.
  12192. + ac_srcdir=.
  12193. + ac_top_srcdir=$ac_top_builddir_sub
  12194. + ac_abs_top_srcdir=$ac_pwd ;;
  12195. + [\\/]* | ?:[\\/]* ) # Absolute name.
  12196. + ac_srcdir=$srcdir$ac_dir_suffix;
  12197. + ac_top_srcdir=$srcdir
  12198. + ac_abs_top_srcdir=$srcdir ;;
  12199. + *) # Relative name.
  12200. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12201. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  12202. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12203. +esac
  12204. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12205. +
  12206. + cd "$ac_dir" || { ac_status=$?; continue; }
  12207. + # Check for guested configure.
  12208. + if test -f "$ac_srcdir/configure.gnu"; then
  12209. + echo &&
  12210. + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  12211. + elif test -f "$ac_srcdir/configure"; then
  12212. + echo &&
  12213. + $SHELL "$ac_srcdir/configure" --help=recursive
  12214. + else
  12215. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  12216. + fi || ac_status=$?
  12217. + cd "$ac_pwd" || { ac_status=$?; break; }
  12218. + done
  12219. +fi
  12220. +
  12221. +test -n "$ac_init_help" && exit $ac_status
  12222. +if $ac_init_version; then
  12223. + cat <<\_ACEOF
  12224. +configure
  12225. +generated by GNU Autoconf 2.64
  12226. +
  12227. +Copyright (C) 2009 Free Software Foundation, Inc.
  12228. +This configure script is free software; the Free Software Foundation
  12229. +gives unlimited permission to copy, distribute and modify it.
  12230. +_ACEOF
  12231. + exit
  12232. +fi
  12233. +
  12234. +## ------------------------ ##
  12235. +## Autoconf initialization. ##
  12236. +## ------------------------ ##
  12237. +
  12238. +# ac_fn_c_try_compile LINENO
  12239. +# --------------------------
  12240. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  12241. +ac_fn_c_try_compile ()
  12242. +{
  12243. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12244. + rm -f conftest.$ac_objext
  12245. + if { { ac_try="$ac_compile"
  12246. +case "(($ac_try" in
  12247. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12248. + *) ac_try_echo=$ac_try;;
  12249. +esac
  12250. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12251. +$as_echo "$ac_try_echo"; } >&5
  12252. + (eval "$ac_compile") 2>conftest.err
  12253. + ac_status=$?
  12254. + if test -s conftest.err; then
  12255. + grep -v '^ *+' conftest.err >conftest.er1
  12256. + cat conftest.er1 >&5
  12257. + mv -f conftest.er1 conftest.err
  12258. + fi
  12259. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12260. + test $ac_status = 0; } && {
  12261. + test -z "$ac_c_werror_flag" ||
  12262. + test ! -s conftest.err
  12263. + } && test -s conftest.$ac_objext; then :
  12264. + ac_retval=0
  12265. +else
  12266. + $as_echo "$as_me: failed program was:" >&5
  12267. +sed 's/^/| /' conftest.$ac_ext >&5
  12268. +
  12269. + ac_retval=1
  12270. +fi
  12271. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  12272. + return $ac_retval
  12273. +
  12274. +} # ac_fn_c_try_compile
  12275. +
  12276. +# ac_fn_cxx_try_compile LINENO
  12277. +# ----------------------------
  12278. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  12279. +ac_fn_cxx_try_compile ()
  12280. +{
  12281. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12282. + rm -f conftest.$ac_objext
  12283. + if { { ac_try="$ac_compile"
  12284. +case "(($ac_try" in
  12285. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12286. + *) ac_try_echo=$ac_try;;
  12287. +esac
  12288. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12289. +$as_echo "$ac_try_echo"; } >&5
  12290. + (eval "$ac_compile") 2>conftest.err
  12291. + ac_status=$?
  12292. + if test -s conftest.err; then
  12293. + grep -v '^ *+' conftest.err >conftest.er1
  12294. + cat conftest.er1 >&5
  12295. + mv -f conftest.er1 conftest.err
  12296. + fi
  12297. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12298. + test $ac_status = 0; } && {
  12299. + test -z "$ac_cxx_werror_flag" ||
  12300. + test ! -s conftest.err
  12301. + } && test -s conftest.$ac_objext; then :
  12302. + ac_retval=0
  12303. +else
  12304. + $as_echo "$as_me: failed program was:" >&5
  12305. +sed 's/^/| /' conftest.$ac_ext >&5
  12306. +
  12307. + ac_retval=1
  12308. +fi
  12309. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  12310. + return $ac_retval
  12311. +
  12312. +} # ac_fn_cxx_try_compile
  12313. +
  12314. +# ac_fn_c_try_cpp LINENO
  12315. +# ----------------------
  12316. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  12317. +ac_fn_c_try_cpp ()
  12318. +{
  12319. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12320. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  12321. +case "(($ac_try" in
  12322. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12323. + *) ac_try_echo=$ac_try;;
  12324. +esac
  12325. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12326. +$as_echo "$ac_try_echo"; } >&5
  12327. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  12328. + ac_status=$?
  12329. + if test -s conftest.err; then
  12330. + grep -v '^ *+' conftest.err >conftest.er1
  12331. + cat conftest.er1 >&5
  12332. + mv -f conftest.er1 conftest.err
  12333. + fi
  12334. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12335. + test $ac_status = 0; } >/dev/null && {
  12336. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  12337. + test ! -s conftest.err
  12338. + }; then :
  12339. + ac_retval=0
  12340. +else
  12341. + $as_echo "$as_me: failed program was:" >&5
  12342. +sed 's/^/| /' conftest.$ac_ext >&5
  12343. +
  12344. + ac_retval=1
  12345. +fi
  12346. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  12347. + return $ac_retval
  12348. +
  12349. +} # ac_fn_c_try_cpp
  12350. +
  12351. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  12352. +# -------------------------------------------------------
  12353. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  12354. +# the include files in INCLUDES and setting the cache variable VAR
  12355. +# accordingly.
  12356. +ac_fn_c_check_header_mongrel ()
  12357. +{
  12358. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12359. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  12360. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  12361. +$as_echo_n "checking for $2... " >&6; }
  12362. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  12363. + $as_echo_n "(cached) " >&6
  12364. +fi
  12365. +eval ac_res=\$$3
  12366. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12367. +$as_echo "$ac_res" >&6; }
  12368. +else
  12369. + # Is the header compilable?
  12370. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  12371. +$as_echo_n "checking $2 usability... " >&6; }
  12372. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12373. +/* end confdefs.h. */
  12374. +$4
  12375. +#include <$2>
  12376. +_ACEOF
  12377. +if ac_fn_c_try_compile "$LINENO"; then :
  12378. + ac_header_compiler=yes
  12379. +else
  12380. + ac_header_compiler=no
  12381. +fi
  12382. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12383. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  12384. +$as_echo "$ac_header_compiler" >&6; }
  12385. +
  12386. +# Is the header present?
  12387. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  12388. +$as_echo_n "checking $2 presence... " >&6; }
  12389. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12390. +/* end confdefs.h. */
  12391. +#include <$2>
  12392. +_ACEOF
  12393. +if ac_fn_c_try_cpp "$LINENO"; then :
  12394. + ac_header_preproc=yes
  12395. +else
  12396. + ac_header_preproc=no
  12397. +fi
  12398. +rm -f conftest.err conftest.$ac_ext
  12399. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  12400. +$as_echo "$ac_header_preproc" >&6; }
  12401. +
  12402. +# So? What about this header?
  12403. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  12404. + yes:no: )
  12405. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  12406. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12407. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  12408. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  12409. + ;;
  12410. + no:yes:* )
  12411. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  12412. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  12413. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  12414. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  12415. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  12416. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  12417. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  12418. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  12419. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  12420. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  12421. + ;;
  12422. +esac
  12423. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  12424. +$as_echo_n "checking for $2... " >&6; }
  12425. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  12426. + $as_echo_n "(cached) " >&6
  12427. +else
  12428. + eval "$3=\$ac_header_compiler"
  12429. +fi
  12430. +eval ac_res=\$$3
  12431. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12432. +$as_echo "$ac_res" >&6; }
  12433. +fi
  12434. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  12435. +
  12436. +} # ac_fn_c_check_header_mongrel
  12437. +
  12438. +# ac_fn_c_try_run LINENO
  12439. +# ----------------------
  12440. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  12441. +# that executables *can* be run.
  12442. +ac_fn_c_try_run ()
  12443. +{
  12444. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12445. + if { { ac_try="$ac_link"
  12446. +case "(($ac_try" in
  12447. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12448. + *) ac_try_echo=$ac_try;;
  12449. +esac
  12450. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12451. +$as_echo "$ac_try_echo"; } >&5
  12452. + (eval "$ac_link") 2>&5
  12453. + ac_status=$?
  12454. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12455. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  12456. + { { case "(($ac_try" in
  12457. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12458. + *) ac_try_echo=$ac_try;;
  12459. +esac
  12460. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12461. +$as_echo "$ac_try_echo"; } >&5
  12462. + (eval "$ac_try") 2>&5
  12463. + ac_status=$?
  12464. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12465. + test $ac_status = 0; }; }; then :
  12466. + ac_retval=0
  12467. +else
  12468. + $as_echo "$as_me: program exited with status $ac_status" >&5
  12469. + $as_echo "$as_me: failed program was:" >&5
  12470. +sed 's/^/| /' conftest.$ac_ext >&5
  12471. +
  12472. + ac_retval=$ac_status
  12473. +fi
  12474. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  12475. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  12476. + return $ac_retval
  12477. +
  12478. +} # ac_fn_c_try_run
  12479. +
  12480. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  12481. +# -------------------------------------------------------
  12482. +# Tests whether HEADER exists and can be compiled using the include files in
  12483. +# INCLUDES, setting the cache variable VAR accordingly.
  12484. +ac_fn_c_check_header_compile ()
  12485. +{
  12486. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12487. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  12488. +$as_echo_n "checking for $2... " >&6; }
  12489. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  12490. + $as_echo_n "(cached) " >&6
  12491. +else
  12492. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12493. +/* end confdefs.h. */
  12494. +$4
  12495. +#include <$2>
  12496. +_ACEOF
  12497. +if ac_fn_c_try_compile "$LINENO"; then :
  12498. + eval "$3=yes"
  12499. +else
  12500. + eval "$3=no"
  12501. +fi
  12502. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12503. +fi
  12504. +eval ac_res=\$$3
  12505. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12506. +$as_echo "$ac_res" >&6; }
  12507. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  12508. +
  12509. +} # ac_fn_c_check_header_compile
  12510. +
  12511. +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  12512. +# --------------------------------------------
  12513. +# Tries to find the compile-time value of EXPR in a program that includes
  12514. +# INCLUDES, setting VAR accordingly. Returns whether the value could be
  12515. +# computed
  12516. +ac_fn_c_compute_int ()
  12517. +{
  12518. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12519. + if test "$cross_compiling" = yes; then
  12520. + # Depending upon the size, compute the lo and hi bounds.
  12521. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12522. +/* end confdefs.h. */
  12523. +$4
  12524. +int
  12525. +main ()
  12526. +{
  12527. +static int test_array [1 - 2 * !(($2) >= 0)];
  12528. +test_array [0] = 0
  12529. +
  12530. + ;
  12531. + return 0;
  12532. +}
  12533. +_ACEOF
  12534. +if ac_fn_c_try_compile "$LINENO"; then :
  12535. + ac_lo=0 ac_mid=0
  12536. + while :; do
  12537. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12538. +/* end confdefs.h. */
  12539. +$4
  12540. +int
  12541. +main ()
  12542. +{
  12543. +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  12544. +test_array [0] = 0
  12545. +
  12546. + ;
  12547. + return 0;
  12548. +}
  12549. +_ACEOF
  12550. +if ac_fn_c_try_compile "$LINENO"; then :
  12551. + ac_hi=$ac_mid; break
  12552. +else
  12553. + as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  12554. + if test $ac_lo -le $ac_mid; then
  12555. + ac_lo= ac_hi=
  12556. + break
  12557. + fi
  12558. + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  12559. +fi
  12560. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12561. + done
  12562. +else
  12563. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12564. +/* end confdefs.h. */
  12565. +$4
  12566. +int
  12567. +main ()
  12568. +{
  12569. +static int test_array [1 - 2 * !(($2) < 0)];
  12570. +test_array [0] = 0
  12571. +
  12572. + ;
  12573. + return 0;
  12574. +}
  12575. +_ACEOF
  12576. +if ac_fn_c_try_compile "$LINENO"; then :
  12577. + ac_hi=-1 ac_mid=-1
  12578. + while :; do
  12579. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12580. +/* end confdefs.h. */
  12581. +$4
  12582. +int
  12583. +main ()
  12584. +{
  12585. +static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  12586. +test_array [0] = 0
  12587. +
  12588. + ;
  12589. + return 0;
  12590. +}
  12591. +_ACEOF
  12592. +if ac_fn_c_try_compile "$LINENO"; then :
  12593. + ac_lo=$ac_mid; break
  12594. +else
  12595. + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  12596. + if test $ac_mid -le $ac_hi; then
  12597. + ac_lo= ac_hi=
  12598. + break
  12599. + fi
  12600. + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  12601. +fi
  12602. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12603. + done
  12604. +else
  12605. + ac_lo= ac_hi=
  12606. +fi
  12607. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12608. +fi
  12609. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12610. +# Binary search between lo and hi bounds.
  12611. +while test "x$ac_lo" != "x$ac_hi"; do
  12612. + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  12613. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12614. +/* end confdefs.h. */
  12615. +$4
  12616. +int
  12617. +main ()
  12618. +{
  12619. +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  12620. +test_array [0] = 0
  12621. +
  12622. + ;
  12623. + return 0;
  12624. +}
  12625. +_ACEOF
  12626. +if ac_fn_c_try_compile "$LINENO"; then :
  12627. + ac_hi=$ac_mid
  12628. +else
  12629. + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  12630. +fi
  12631. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12632. +done
  12633. +case $ac_lo in #((
  12634. +?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  12635. +'') ac_retval=1 ;;
  12636. +esac
  12637. + else
  12638. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12639. +/* end confdefs.h. */
  12640. +$4
  12641. +static long int longval () { return $2; }
  12642. +static unsigned long int ulongval () { return $2; }
  12643. +#include <stdio.h>
  12644. +#include <stdlib.h>
  12645. +int
  12646. +main ()
  12647. +{
  12648. +
  12649. + FILE *f = fopen ("conftest.val", "w");
  12650. + if (! f)
  12651. + return 1;
  12652. + if (($2) < 0)
  12653. + {
  12654. + long int i = longval ();
  12655. + if (i != ($2))
  12656. + return 1;
  12657. + fprintf (f, "%ld", i);
  12658. + }
  12659. + else
  12660. + {
  12661. + unsigned long int i = ulongval ();
  12662. + if (i != ($2))
  12663. + return 1;
  12664. + fprintf (f, "%lu", i);
  12665. + }
  12666. + /* Do not output a trailing newline, as this causes \r\n confusion
  12667. + on some platforms. */
  12668. + return ferror (f) || fclose (f) != 0;
  12669. +
  12670. + ;
  12671. + return 0;
  12672. +}
  12673. +_ACEOF
  12674. +if ac_fn_c_try_run "$LINENO"; then :
  12675. + echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  12676. +else
  12677. + ac_retval=1
  12678. +fi
  12679. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12680. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  12681. +rm -f conftest.val
  12682. +
  12683. + fi
  12684. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  12685. + return $ac_retval
  12686. +
  12687. +} # ac_fn_c_compute_int
  12688. +
  12689. +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  12690. +# -------------------------------------------
  12691. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  12692. +# variable VAR accordingly.
  12693. +ac_fn_c_check_type ()
  12694. +{
  12695. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12696. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  12697. +$as_echo_n "checking for $2... " >&6; }
  12698. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  12699. + $as_echo_n "(cached) " >&6
  12700. +else
  12701. + eval "$3=no"
  12702. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12703. +/* end confdefs.h. */
  12704. +$4
  12705. +int
  12706. +main ()
  12707. +{
  12708. +if (sizeof ($2))
  12709. + return 0;
  12710. + ;
  12711. + return 0;
  12712. +}
  12713. +_ACEOF
  12714. +if ac_fn_c_try_compile "$LINENO"; then :
  12715. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12716. +/* end confdefs.h. */
  12717. +$4
  12718. +int
  12719. +main ()
  12720. +{
  12721. +if (sizeof (($2)))
  12722. + return 0;
  12723. + ;
  12724. + return 0;
  12725. +}
  12726. +_ACEOF
  12727. +if ac_fn_c_try_compile "$LINENO"; then :
  12728. +
  12729. +else
  12730. + eval "$3=yes"
  12731. +fi
  12732. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12733. +fi
  12734. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12735. +fi
  12736. +eval ac_res=\$$3
  12737. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12738. +$as_echo "$ac_res" >&6; }
  12739. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  12740. +
  12741. +} # ac_fn_c_check_type
  12742. +
  12743. +# ac_fn_c_find_intX_t LINENO BITS VAR
  12744. +# -----------------------------------
  12745. +# Finds a signed integer type with width BITS, setting cache variable VAR
  12746. +# accordingly.
  12747. +ac_fn_c_find_intX_t ()
  12748. +{
  12749. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12750. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  12751. +$as_echo_n "checking for int$2_t... " >&6; }
  12752. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  12753. + $as_echo_n "(cached) " >&6
  12754. +else
  12755. + eval "$3=no"
  12756. + for ac_type in int$2_t 'int' 'long int' \
  12757. + 'long long int' 'short int' 'signed char'; do
  12758. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12759. +/* end confdefs.h. */
  12760. +$ac_includes_default
  12761. +int
  12762. +main ()
  12763. +{
  12764. +static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
  12765. +test_array [0] = 0
  12766. +
  12767. + ;
  12768. + return 0;
  12769. +}
  12770. +_ACEOF
  12771. +if ac_fn_c_try_compile "$LINENO"; then :
  12772. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12773. +/* end confdefs.h. */
  12774. +$ac_includes_default
  12775. +int
  12776. +main ()
  12777. +{
  12778. +static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
  12779. + < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
  12780. +test_array [0] = 0
  12781. +
  12782. + ;
  12783. + return 0;
  12784. +}
  12785. +_ACEOF
  12786. +if ac_fn_c_try_compile "$LINENO"; then :
  12787. +
  12788. +else
  12789. + case $ac_type in #(
  12790. + int$2_t) :
  12791. + eval "$3=yes" ;; #(
  12792. + *) :
  12793. + eval "$3=\$ac_type" ;;
  12794. +esac
  12795. +fi
  12796. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12797. +fi
  12798. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12799. + eval as_val=\$$3
  12800. + if test "x$as_val" = x""no; then :
  12801. +
  12802. +else
  12803. + break
  12804. +fi
  12805. + done
  12806. +fi
  12807. +eval ac_res=\$$3
  12808. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12809. +$as_echo "$ac_res" >&6; }
  12810. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  12811. +
  12812. +} # ac_fn_c_find_intX_t
  12813. +
  12814. +# ac_fn_c_try_link LINENO
  12815. +# -----------------------
  12816. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  12817. +ac_fn_c_try_link ()
  12818. +{
  12819. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12820. + rm -f conftest.$ac_objext conftest$ac_exeext
  12821. + if { { ac_try="$ac_link"
  12822. +case "(($ac_try" in
  12823. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12824. + *) ac_try_echo=$ac_try;;
  12825. +esac
  12826. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12827. +$as_echo "$ac_try_echo"; } >&5
  12828. + (eval "$ac_link") 2>conftest.err
  12829. + ac_status=$?
  12830. + if test -s conftest.err; then
  12831. + grep -v '^ *+' conftest.err >conftest.er1
  12832. + cat conftest.er1 >&5
  12833. + mv -f conftest.er1 conftest.err
  12834. + fi
  12835. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12836. + test $ac_status = 0; } && {
  12837. + test -z "$ac_c_werror_flag" ||
  12838. + test ! -s conftest.err
  12839. + } && test -s conftest$ac_exeext && {
  12840. + test "$cross_compiling" = yes ||
  12841. + $as_test_x conftest$ac_exeext
  12842. + }; then :
  12843. + ac_retval=0
  12844. +else
  12845. + $as_echo "$as_me: failed program was:" >&5
  12846. +sed 's/^/| /' conftest.$ac_ext >&5
  12847. +
  12848. + ac_retval=1
  12849. +fi
  12850. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  12851. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  12852. + # interfere with the next link command; also delete a directory that is
  12853. + # left behind by Apple's compiler. We do this before executing the actions.
  12854. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  12855. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  12856. + return $ac_retval
  12857. +
  12858. +} # ac_fn_c_try_link
  12859. +
  12860. +# ac_fn_c_find_uintX_t LINENO BITS VAR
  12861. +# ------------------------------------
  12862. +# Finds an unsigned integer type with width BITS, setting cache variable VAR
  12863. +# accordingly.
  12864. +ac_fn_c_find_uintX_t ()
  12865. +{
  12866. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12867. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  12868. +$as_echo_n "checking for uint$2_t... " >&6; }
  12869. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  12870. + $as_echo_n "(cached) " >&6
  12871. +else
  12872. + eval "$3=no"
  12873. + for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  12874. + 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  12875. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12876. +/* end confdefs.h. */
  12877. +$ac_includes_default
  12878. +int
  12879. +main ()
  12880. +{
  12881. +static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
  12882. +test_array [0] = 0
  12883. +
  12884. + ;
  12885. + return 0;
  12886. +}
  12887. +_ACEOF
  12888. +if ac_fn_c_try_compile "$LINENO"; then :
  12889. + case $ac_type in #(
  12890. + uint$2_t) :
  12891. + eval "$3=yes" ;; #(
  12892. + *) :
  12893. + eval "$3=\$ac_type" ;;
  12894. +esac
  12895. +fi
  12896. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12897. + eval as_val=\$$3
  12898. + if test "x$as_val" = x""no; then :
  12899. +
  12900. +else
  12901. + break
  12902. +fi
  12903. + done
  12904. +fi
  12905. +eval ac_res=\$$3
  12906. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12907. +$as_echo "$ac_res" >&6; }
  12908. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  12909. +
  12910. +} # ac_fn_c_find_uintX_t
  12911. +
  12912. +# ac_fn_c_check_header_preproc LINENO HEADER VAR
  12913. +# ----------------------------------------------
  12914. +# Tests whether HEADER is present, setting the cache variable VAR accordingly.
  12915. +ac_fn_c_check_header_preproc ()
  12916. +{
  12917. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12918. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  12919. +$as_echo_n "checking for $2... " >&6; }
  12920. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  12921. + $as_echo_n "(cached) " >&6
  12922. +else
  12923. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12924. +/* end confdefs.h. */
  12925. +#include <$2>
  12926. +_ACEOF
  12927. +if ac_fn_c_try_cpp "$LINENO"; then :
  12928. + eval "$3=yes"
  12929. +else
  12930. + eval "$3=no"
  12931. +fi
  12932. +rm -f conftest.err conftest.$ac_ext
  12933. +fi
  12934. +eval ac_res=\$$3
  12935. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12936. +$as_echo "$ac_res" >&6; }
  12937. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  12938. +
  12939. +} # ac_fn_c_check_header_preproc
  12940. +
  12941. +# ac_fn_cxx_try_cpp LINENO
  12942. +# ------------------------
  12943. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  12944. +ac_fn_cxx_try_cpp ()
  12945. +{
  12946. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12947. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  12948. +case "(($ac_try" in
  12949. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12950. + *) ac_try_echo=$ac_try;;
  12951. +esac
  12952. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12953. +$as_echo "$ac_try_echo"; } >&5
  12954. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  12955. + ac_status=$?
  12956. + if test -s conftest.err; then
  12957. + grep -v '^ *+' conftest.err >conftest.er1
  12958. + cat conftest.er1 >&5
  12959. + mv -f conftest.er1 conftest.err
  12960. + fi
  12961. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12962. + test $ac_status = 0; } >/dev/null && {
  12963. + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12964. + test ! -s conftest.err
  12965. + }; then :
  12966. + ac_retval=0
  12967. +else
  12968. + $as_echo "$as_me: failed program was:" >&5
  12969. +sed 's/^/| /' conftest.$ac_ext >&5
  12970. +
  12971. + ac_retval=1
  12972. +fi
  12973. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  12974. + return $ac_retval
  12975. +
  12976. +} # ac_fn_cxx_try_cpp
  12977. +
  12978. +# ac_fn_cxx_check_header_preproc LINENO HEADER VAR
  12979. +# ------------------------------------------------
  12980. +# Tests whether HEADER is present, setting the cache variable VAR accordingly.
  12981. +ac_fn_cxx_check_header_preproc ()
  12982. +{
  12983. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12984. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  12985. +$as_echo_n "checking for $2... " >&6; }
  12986. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  12987. + $as_echo_n "(cached) " >&6
  12988. +else
  12989. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12990. +/* end confdefs.h. */
  12991. +#include <$2>
  12992. +_ACEOF
  12993. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  12994. + eval "$3=yes"
  12995. +else
  12996. + eval "$3=no"
  12997. +fi
  12998. +rm -f conftest.err conftest.$ac_ext
  12999. +fi
  13000. +eval ac_res=\$$3
  13001. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13002. +$as_echo "$ac_res" >&6; }
  13003. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  13004. +
  13005. +} # ac_fn_cxx_check_header_preproc
  13006. +
  13007. +# ac_fn_c_check_func LINENO FUNC VAR
  13008. +# ----------------------------------
  13009. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  13010. +ac_fn_c_check_func ()
  13011. +{
  13012. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13013. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  13014. +$as_echo_n "checking for $2... " >&6; }
  13015. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  13016. + $as_echo_n "(cached) " >&6
  13017. +else
  13018. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13019. +/* end confdefs.h. */
  13020. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  13021. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13022. +#define $2 innocuous_$2
  13023. +
  13024. +/* System header to define __stub macros and hopefully few prototypes,
  13025. + which can conflict with char $2 (); below.
  13026. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13027. + <limits.h> exists even on freestanding compilers. */
  13028. +
  13029. +#ifdef __STDC__
  13030. +# include <limits.h>
  13031. +#else
  13032. +# include <assert.h>
  13033. +#endif
  13034. +
  13035. +#undef $2
  13036. +
  13037. +/* Override any GCC internal prototype to avoid an error.
  13038. + Use char because int might match the return type of a GCC
  13039. + builtin and then its argument prototype would still apply. */
  13040. +#ifdef __cplusplus
  13041. +extern "C"
  13042. +#endif
  13043. +char $2 ();
  13044. +/* The GNU C library defines this for functions which it implements
  13045. + to always fail with ENOSYS. Some functions are actually named
  13046. + something starting with __ and the normal name is an alias. */
  13047. +#if defined __stub_$2 || defined __stub___$2
  13048. +choke me
  13049. +#endif
  13050. +
  13051. +int
  13052. +main ()
  13053. +{
  13054. +return $2 ();
  13055. + ;
  13056. + return 0;
  13057. +}
  13058. +_ACEOF
  13059. +if ac_fn_c_try_link "$LINENO"; then :
  13060. + eval "$3=yes"
  13061. +else
  13062. + eval "$3=no"
  13063. +fi
  13064. +rm -f core conftest.err conftest.$ac_objext \
  13065. + conftest$ac_exeext conftest.$ac_ext
  13066. +fi
  13067. +eval ac_res=\$$3
  13068. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13069. +$as_echo "$ac_res" >&6; }
  13070. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  13071. +
  13072. +} # ac_fn_c_check_func
  13073. +
  13074. +# ac_fn_cxx_try_link LINENO
  13075. +# -------------------------
  13076. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  13077. +ac_fn_cxx_try_link ()
  13078. +{
  13079. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13080. + rm -f conftest.$ac_objext conftest$ac_exeext
  13081. + if { { ac_try="$ac_link"
  13082. +case "(($ac_try" in
  13083. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13084. + *) ac_try_echo=$ac_try;;
  13085. +esac
  13086. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13087. +$as_echo "$ac_try_echo"; } >&5
  13088. + (eval "$ac_link") 2>conftest.err
  13089. + ac_status=$?
  13090. + if test -s conftest.err; then
  13091. + grep -v '^ *+' conftest.err >conftest.er1
  13092. + cat conftest.er1 >&5
  13093. + mv -f conftest.er1 conftest.err
  13094. + fi
  13095. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13096. + test $ac_status = 0; } && {
  13097. + test -z "$ac_cxx_werror_flag" ||
  13098. + test ! -s conftest.err
  13099. + } && test -s conftest$ac_exeext && {
  13100. + test "$cross_compiling" = yes ||
  13101. + $as_test_x conftest$ac_exeext
  13102. + }; then :
  13103. + ac_retval=0
  13104. +else
  13105. + $as_echo "$as_me: failed program was:" >&5
  13106. +sed 's/^/| /' conftest.$ac_ext >&5
  13107. +
  13108. + ac_retval=1
  13109. +fi
  13110. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  13111. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  13112. + # interfere with the next link command; also delete a directory that is
  13113. + # left behind by Apple's compiler. We do this before executing the actions.
  13114. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  13115. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  13116. + return $ac_retval
  13117. +
  13118. +} # ac_fn_cxx_try_link
  13119. +cat >config.log <<_ACEOF
  13120. +This file contains any messages produced by compilers while
  13121. +running configure, to aid debugging if configure makes a mistake.
  13122. +
  13123. +It was created by $as_me, which was
  13124. +generated by GNU Autoconf 2.64. Invocation command line was
  13125. +
  13126. + $ $0 $@
  13127. +
  13128. +_ACEOF
  13129. +exec 5>>config.log
  13130. +{
  13131. +cat <<_ASUNAME
  13132. +## --------- ##
  13133. +## Platform. ##
  13134. +## --------- ##
  13135. +
  13136. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  13137. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  13138. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  13139. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  13140. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  13141. +
  13142. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  13143. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  13144. +
  13145. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  13146. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  13147. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  13148. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  13149. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  13150. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  13151. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  13152. +
  13153. +_ASUNAME
  13154. +
  13155. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13156. +for as_dir in $PATH
  13157. +do
  13158. + IFS=$as_save_IFS
  13159. + test -z "$as_dir" && as_dir=.
  13160. + $as_echo "PATH: $as_dir"
  13161. + done
  13162. +IFS=$as_save_IFS
  13163. +
  13164. +} >&5
  13165. +
  13166. +cat >&5 <<_ACEOF
  13167. +
  13168. +
  13169. +## ----------- ##
  13170. +## Core tests. ##
  13171. +## ----------- ##
  13172. +
  13173. +_ACEOF
  13174. +
  13175. +
  13176. +# Keep a trace of the command line.
  13177. +# Strip out --no-create and --no-recursion so they do not pile up.
  13178. +# Strip out --silent because we don't want to record it for future runs.
  13179. +# Also quote any args containing shell meta-characters.
  13180. +# Make two passes to allow for proper duplicate-argument suppression.
  13181. +ac_configure_args=
  13182. +ac_configure_args0=
  13183. +ac_configure_args1=
  13184. +ac_must_keep_next=false
  13185. +for ac_pass in 1 2
  13186. +do
  13187. + for ac_arg
  13188. + do
  13189. + case $ac_arg in
  13190. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  13191. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13192. + | -silent | --silent | --silen | --sile | --sil)
  13193. + continue ;;
  13194. + *\'*)
  13195. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13196. + esac
  13197. + case $ac_pass in
  13198. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  13199. + 2)
  13200. + as_fn_append ac_configure_args1 " '$ac_arg'"
  13201. + if test $ac_must_keep_next = true; then
  13202. + ac_must_keep_next=false # Got value, back to normal.
  13203. + else
  13204. + case $ac_arg in
  13205. + *=* | --config-cache | -C | -disable-* | --disable-* \
  13206. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  13207. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  13208. + | -with-* | --with-* | -without-* | --without-* | --x)
  13209. + case "$ac_configure_args0 " in
  13210. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  13211. + esac
  13212. + ;;
  13213. + -* ) ac_must_keep_next=true ;;
  13214. + esac
  13215. + fi
  13216. + as_fn_append ac_configure_args " '$ac_arg'"
  13217. + ;;
  13218. + esac
  13219. + done
  13220. +done
  13221. +{ ac_configure_args0=; unset ac_configure_args0;}
  13222. +{ ac_configure_args1=; unset ac_configure_args1;}
  13223. +
  13224. +# When interrupted or exit'd, cleanup temporary files, and complete
  13225. +# config.log. We remove comments because anyway the quotes in there
  13226. +# would cause problems or look ugly.
  13227. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  13228. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  13229. +trap 'exit_status=$?
  13230. + # Save into config.log some information that might help in debugging.
  13231. + {
  13232. + echo
  13233. +
  13234. + cat <<\_ASBOX
  13235. +## ---------------- ##
  13236. +## Cache variables. ##
  13237. +## ---------------- ##
  13238. +_ASBOX
  13239. + echo
  13240. + # The following way of writing the cache mishandles newlines in values,
  13241. +(
  13242. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  13243. + eval ac_val=\$$ac_var
  13244. + case $ac_val in #(
  13245. + *${as_nl}*)
  13246. + case $ac_var in #(
  13247. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13248. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13249. + esac
  13250. + case $ac_var in #(
  13251. + _ | IFS | as_nl) ;; #(
  13252. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13253. + *) { eval $ac_var=; unset $ac_var;} ;;
  13254. + esac ;;
  13255. + esac
  13256. + done
  13257. + (set) 2>&1 |
  13258. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  13259. + *${as_nl}ac_space=\ *)
  13260. + sed -n \
  13261. + "s/'\''/'\''\\\\'\'''\''/g;
  13262. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  13263. + ;; #(
  13264. + *)
  13265. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13266. + ;;
  13267. + esac |
  13268. + sort
  13269. +)
  13270. + echo
  13271. +
  13272. + cat <<\_ASBOX
  13273. +## ----------------- ##
  13274. +## Output variables. ##
  13275. +## ----------------- ##
  13276. +_ASBOX
  13277. + echo
  13278. + for ac_var in $ac_subst_vars
  13279. + do
  13280. + eval ac_val=\$$ac_var
  13281. + case $ac_val in
  13282. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  13283. + esac
  13284. + $as_echo "$ac_var='\''$ac_val'\''"
  13285. + done | sort
  13286. + echo
  13287. +
  13288. + if test -n "$ac_subst_files"; then
  13289. + cat <<\_ASBOX
  13290. +## ------------------- ##
  13291. +## File substitutions. ##
  13292. +## ------------------- ##
  13293. +_ASBOX
  13294. + echo
  13295. + for ac_var in $ac_subst_files
  13296. + do
  13297. + eval ac_val=\$$ac_var
  13298. + case $ac_val in
  13299. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  13300. + esac
  13301. + $as_echo "$ac_var='\''$ac_val'\''"
  13302. + done | sort
  13303. + echo
  13304. + fi
  13305. +
  13306. + if test -s confdefs.h; then
  13307. + cat <<\_ASBOX
  13308. +## ----------- ##
  13309. +## confdefs.h. ##
  13310. +## ----------- ##
  13311. +_ASBOX
  13312. + echo
  13313. + cat confdefs.h
  13314. + echo
  13315. + fi
  13316. + test "$ac_signal" != 0 &&
  13317. + $as_echo "$as_me: caught signal $ac_signal"
  13318. + $as_echo "$as_me: exit $exit_status"
  13319. + } >&5
  13320. + rm -f core *.core core.conftest.* &&
  13321. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  13322. + exit $exit_status
  13323. +' 0
  13324. +for ac_signal in 1 2 13 15; do
  13325. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  13326. +done
  13327. +ac_signal=0
  13328. +
  13329. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  13330. +rm -f -r conftest* confdefs.h
  13331. +
  13332. +$as_echo "/* confdefs.h */" > confdefs.h
  13333. +
  13334. +# Predefined preprocessor variables.
  13335. +
  13336. +cat >>confdefs.h <<_ACEOF
  13337. +#define PACKAGE_NAME "$PACKAGE_NAME"
  13338. +_ACEOF
  13339. +
  13340. +cat >>confdefs.h <<_ACEOF
  13341. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  13342. +_ACEOF
  13343. +
  13344. +cat >>confdefs.h <<_ACEOF
  13345. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  13346. +_ACEOF
  13347. +
  13348. +cat >>confdefs.h <<_ACEOF
  13349. +#define PACKAGE_STRING "$PACKAGE_STRING"
  13350. +_ACEOF
  13351. +
  13352. +cat >>confdefs.h <<_ACEOF
  13353. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  13354. +_ACEOF
  13355. +
  13356. +cat >>confdefs.h <<_ACEOF
  13357. +#define PACKAGE_URL "$PACKAGE_URL"
  13358. +_ACEOF
  13359. +
  13360. +
  13361. +# Let the site file select an alternate cache file if it wants to.
  13362. +# Prefer an explicitly selected file to automatically selected ones.
  13363. +ac_site_file1=NONE
  13364. +ac_site_file2=NONE
  13365. +if test -n "$CONFIG_SITE"; then
  13366. + ac_site_file1=$CONFIG_SITE
  13367. +elif test "x$prefix" != xNONE; then
  13368. + ac_site_file1=$prefix/share/config.site
  13369. + ac_site_file2=$prefix/etc/config.site
  13370. +else
  13371. + ac_site_file1=$ac_default_prefix/share/config.site
  13372. + ac_site_file2=$ac_default_prefix/etc/config.site
  13373. +fi
  13374. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  13375. +do
  13376. + test "x$ac_site_file" = xNONE && continue
  13377. + if test -r "$ac_site_file"; then
  13378. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  13379. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  13380. + sed 's/^/| /' "$ac_site_file" >&5
  13381. + . "$ac_site_file"
  13382. + fi
  13383. +done
  13384. +
  13385. +if test -r "$cache_file"; then
  13386. + # Some versions of bash will fail to source /dev/null (special
  13387. + # files actually), so we avoid doing that.
  13388. + if test -f "$cache_file"; then
  13389. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  13390. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  13391. + case $cache_file in
  13392. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  13393. + *) . "./$cache_file";;
  13394. + esac
  13395. + fi
  13396. +else
  13397. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  13398. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  13399. + >$cache_file
  13400. +fi
  13401. +
  13402. +# Check that the precious variables saved in the cache have kept the same
  13403. +# value.
  13404. +ac_cache_corrupted=false
  13405. +for ac_var in $ac_precious_vars; do
  13406. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  13407. + eval ac_new_set=\$ac_env_${ac_var}_set
  13408. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  13409. + eval ac_new_val=\$ac_env_${ac_var}_value
  13410. + case $ac_old_set,$ac_new_set in
  13411. + set,)
  13412. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  13413. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  13414. + ac_cache_corrupted=: ;;
  13415. + ,set)
  13416. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  13417. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  13418. + ac_cache_corrupted=: ;;
  13419. + ,);;
  13420. + *)
  13421. + if test "x$ac_old_val" != "x$ac_new_val"; then
  13422. + # differences in whitespace do not lead to failure.
  13423. + ac_old_val_w=`echo x $ac_old_val`
  13424. + ac_new_val_w=`echo x $ac_new_val`
  13425. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  13426. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  13427. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  13428. + ac_cache_corrupted=:
  13429. + else
  13430. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  13431. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  13432. + eval $ac_var=\$ac_old_val
  13433. + fi
  13434. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  13435. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  13436. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  13437. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  13438. + fi;;
  13439. + esac
  13440. + # Pass precious variables to config.status.
  13441. + if test "$ac_new_set" = set; then
  13442. + case $ac_new_val in
  13443. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  13444. + *) ac_arg=$ac_var=$ac_new_val ;;
  13445. + esac
  13446. + case " $ac_configure_args " in
  13447. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  13448. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  13449. + esac
  13450. + fi
  13451. +done
  13452. +if $ac_cache_corrupted; then
  13453. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13454. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13455. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  13456. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  13457. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  13458. +fi
  13459. +## -------------------- ##
  13460. +## Main body of script. ##
  13461. +## -------------------- ##
  13462. +
  13463. +ac_ext=c
  13464. +ac_cpp='$CPP $CPPFLAGS'
  13465. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13466. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13467. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13468. +
  13469. +
  13470. +
  13471. +
  13472. +
  13473. +
  13474. +ac_config_headers="$ac_config_headers auto-host.h:config.in"
  13475. +
  13476. +
  13477. +gcc_version=`cat $srcdir/BASE-VER`
  13478. +
  13479. +# Determine the host, build, and target systems
  13480. +ac_aux_dir=
  13481. +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  13482. + for ac_t in install-sh install.sh shtool; do
  13483. + if test -f "$ac_dir/$ac_t"; then
  13484. + ac_aux_dir=$ac_dir
  13485. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  13486. + break 2
  13487. + fi
  13488. + done
  13489. +done
  13490. +if test -z "$ac_aux_dir"; then
  13491. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  13492. +fi
  13493. +
  13494. +# These three variables are undocumented and unsupported,
  13495. +# and are intended to be withdrawn in a future Autoconf release.
  13496. +# They can cause serious problems if a builder's source tree is in a directory
  13497. +# whose full name contains unusual characters.
  13498. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  13499. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  13500. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  13501. +
  13502. +
  13503. +# Make sure we can run config.sub.
  13504. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  13505. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  13506. +
  13507. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  13508. +$as_echo_n "checking build system type... " >&6; }
  13509. +if test "${ac_cv_build+set}" = set; then :
  13510. + $as_echo_n "(cached) " >&6
  13511. +else
  13512. + ac_build_alias=$build_alias
  13513. +test "x$ac_build_alias" = x &&
  13514. + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  13515. +test "x$ac_build_alias" = x &&
  13516. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  13517. +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  13518. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  13519. +
  13520. +fi
  13521. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  13522. +$as_echo "$ac_cv_build" >&6; }
  13523. +case $ac_cv_build in
  13524. +*-*-*) ;;
  13525. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  13526. +esac
  13527. +build=$ac_cv_build
  13528. +ac_save_IFS=$IFS; IFS='-'
  13529. +set x $ac_cv_build
  13530. +shift
  13531. +build_cpu=$1
  13532. +build_vendor=$2
  13533. +shift; shift
  13534. +# Remember, the first character of IFS is used to create $*,
  13535. +# except with old shells:
  13536. +build_os=$*
  13537. +IFS=$ac_save_IFS
  13538. +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  13539. +
  13540. +
  13541. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  13542. +$as_echo_n "checking host system type... " >&6; }
  13543. +if test "${ac_cv_host+set}" = set; then :
  13544. + $as_echo_n "(cached) " >&6
  13545. +else
  13546. + if test "x$host_alias" = x; then
  13547. + ac_cv_host=$ac_cv_build
  13548. +else
  13549. + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  13550. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  13551. +fi
  13552. +
  13553. +fi
  13554. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  13555. +$as_echo "$ac_cv_host" >&6; }
  13556. +case $ac_cv_host in
  13557. +*-*-*) ;;
  13558. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  13559. +esac
  13560. +host=$ac_cv_host
  13561. +ac_save_IFS=$IFS; IFS='-'
  13562. +set x $ac_cv_host
  13563. +shift
  13564. +host_cpu=$1
  13565. +host_vendor=$2
  13566. +shift; shift
  13567. +# Remember, the first character of IFS is used to create $*,
  13568. +# except with old shells:
  13569. +host_os=$*
  13570. +IFS=$ac_save_IFS
  13571. +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  13572. +
  13573. +
  13574. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  13575. +$as_echo_n "checking target system type... " >&6; }
  13576. +if test "${ac_cv_target+set}" = set; then :
  13577. + $as_echo_n "(cached) " >&6
  13578. +else
  13579. + if test "x$target_alias" = x; then
  13580. + ac_cv_target=$ac_cv_host
  13581. +else
  13582. + ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  13583. + as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  13584. +fi
  13585. +
  13586. +fi
  13587. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  13588. +$as_echo "$ac_cv_target" >&6; }
  13589. +case $ac_cv_target in
  13590. +*-*-*) ;;
  13591. +*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  13592. +esac
  13593. +target=$ac_cv_target
  13594. +ac_save_IFS=$IFS; IFS='-'
  13595. +set x $ac_cv_target
  13596. +shift
  13597. +target_cpu=$1
  13598. +target_vendor=$2
  13599. +shift; shift
  13600. +# Remember, the first character of IFS is used to create $*,
  13601. +# except with old shells:
  13602. +target_os=$*
  13603. +IFS=$ac_save_IFS
  13604. +case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  13605. +
  13606. +
  13607. +# The aliases save the names the user supplied, while $host etc.
  13608. +# will get canonicalized.
  13609. +test -n "$target_alias" &&
  13610. + test "$program_prefix$program_suffix$program_transform_name" = \
  13611. + NONENONEs,x,x, &&
  13612. + program_prefix=${target_alias}-
  13613. +
  13614. +# Determine the noncanonical target name, for directory use.
  13615. + case ${build_alias} in
  13616. + "") build_noncanonical=${build} ;;
  13617. + *) build_noncanonical=${build_alias} ;;
  13618. +esac
  13619. +
  13620. + case ${host_alias} in
  13621. + "") host_noncanonical=${build_noncanonical} ;;
  13622. + *) host_noncanonical=${host_alias} ;;
  13623. +esac
  13624. +
  13625. + case ${target_alias} in
  13626. + "") target_noncanonical=${host_noncanonical} ;;
  13627. + *) target_noncanonical=${target_alias} ;;
  13628. +esac
  13629. +
  13630. +
  13631. +
  13632. +
  13633. +# Determine the target- and build-specific subdirectories
  13634. +
  13635. +# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  13636. +# have matching libraries, they should use host libraries: Makefile.tpl
  13637. +# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  13638. +# However, they still use the build modules, because the corresponding
  13639. +# host modules (e.g. bison) are only built for the host when bootstrap
  13640. +# finishes. So:
  13641. +# - build_subdir is where we find build modules, and never changes.
  13642. +# - build_libsubdir is where we find build libraries, and can be overridden.
  13643. +
  13644. +# Prefix 'build-' so this never conflicts with target_subdir.
  13645. +build_subdir="build-${build_noncanonical}"
  13646. +
  13647. +# Check whether --with-build-libsubdir was given.
  13648. +if test "${with_build_libsubdir+set}" = set; then :
  13649. + withval=$with_build_libsubdir; build_libsubdir="$withval"
  13650. +else
  13651. + build_libsubdir="$build_subdir"
  13652. +fi
  13653. +
  13654. +# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  13655. +if ( test $srcdir = . && test -d gcc ) \
  13656. + || test -d $srcdir/../host-${host_noncanonical}; then
  13657. + host_subdir="host-${host_noncanonical}"
  13658. +else
  13659. + host_subdir=.
  13660. +fi
  13661. +# No prefix.
  13662. +target_subdir=${target_noncanonical}
  13663. +
  13664. +
  13665. +# Set program_transform_name
  13666. +test "$program_prefix" != NONE &&
  13667. + program_transform_name="s&^&$program_prefix&;$program_transform_name"
  13668. +# Use a double $ so make ignores it.
  13669. +test "$program_suffix" != NONE &&
  13670. + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  13671. +# Double any \ or $.
  13672. +# By default was `s,x,x', remove it if useless.
  13673. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  13674. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  13675. +
  13676. +
  13677. +# Check for bogus environment variables.
  13678. +# Test if LIBRARY_PATH contains the notation for the current directory
  13679. +# since this would lead to problems installing/building glibc.
  13680. +# LIBRARY_PATH contains the current directory if one of the following
  13681. +# is true:
  13682. +# - one of the terminals (":" and ";") is the first or last sign
  13683. +# - two terminals occur directly after each other
  13684. +# - the path contains an element with a dot in it
  13685. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
  13686. +$as_echo_n "checking LIBRARY_PATH variable... " >&6; }
  13687. +case ${LIBRARY_PATH} in
  13688. + [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
  13689. + library_path_setting="contains current directory"
  13690. + ;;
  13691. + *)
  13692. + library_path_setting="ok"
  13693. + ;;
  13694. +esac
  13695. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
  13696. +$as_echo "$library_path_setting" >&6; }
  13697. +if test "$library_path_setting" != "ok"; then
  13698. +as_fn_error "
  13699. +*** LIBRARY_PATH shouldn't contain the current directory when
  13700. +*** building gcc. Please change the environment variable
  13701. +*** and run configure again." "$LINENO" 5
  13702. +fi
  13703. +
  13704. +# Test if GCC_EXEC_PREFIX contains the notation for the current directory
  13705. +# since this would lead to problems installing/building glibc.
  13706. +# GCC_EXEC_PREFIX contains the current directory if one of the following
  13707. +# is true:
  13708. +# - one of the terminals (":" and ";") is the first or last sign
  13709. +# - two terminals occur directly after each other
  13710. +# - the path contains an element with a dot in it
  13711. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
  13712. +$as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
  13713. +case ${GCC_EXEC_PREFIX} in
  13714. + [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
  13715. + gcc_exec_prefix_setting="contains current directory"
  13716. + ;;
  13717. + *)
  13718. + gcc_exec_prefix_setting="ok"
  13719. + ;;
  13720. +esac
  13721. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
  13722. +$as_echo "$gcc_exec_prefix_setting" >&6; }
  13723. +if test "$gcc_exec_prefix_setting" != "ok"; then
  13724. +as_fn_error "
  13725. +*** GCC_EXEC_PREFIX shouldn't contain the current directory when
  13726. +*** building gcc. Please change the environment variable
  13727. +*** and run configure again." "$LINENO" 5
  13728. +fi
  13729. +
  13730. +# -----------
  13731. +# Directories
  13732. +# -----------
  13733. +
  13734. +# Specify the local prefix
  13735. +local_prefix=
  13736. +
  13737. +# Check whether --with-local-prefix was given.
  13738. +if test "${with_local_prefix+set}" = set; then :
  13739. + withval=$with_local_prefix; case "${withval}" in
  13740. +yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
  13741. +no) ;;
  13742. +*) local_prefix=$with_local_prefix ;;
  13743. +esac
  13744. +fi
  13745. +
  13746. +
  13747. +# Default local prefix if it is empty
  13748. +if test x$local_prefix = x; then
  13749. + local_prefix=/usr/local
  13750. +fi
  13751. +
  13752. +# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
  13753. +# passed in by the toplevel make and thus we'd get different behavior
  13754. +# depending on where we built the sources.
  13755. +gcc_gxx_include_dir=
  13756. +# Specify the g++ header file directory
  13757. +
  13758. +# Check whether --with-gxx-include-dir was given.
  13759. +if test "${with_gxx_include_dir+set}" = set; then :
  13760. + withval=$with_gxx_include_dir; case "${withval}" in
  13761. +yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
  13762. +no) ;;
  13763. +*) gcc_gxx_include_dir=$with_gxx_include_dir ;;
  13764. +esac
  13765. +fi
  13766. +
  13767. +
  13768. +# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
  13769. +if test x${gcc_gxx_include_dir} = x; then
  13770. + if test x${enable_version_specific_runtime_libs} = xyes; then
  13771. + gcc_gxx_include_dir='${libsubdir}/include/c++'
  13772. + else
  13773. + libstdcxx_incdir='include/c++/$(version)'
  13774. + if test x$host != x$target; then
  13775. + libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
  13776. + fi
  13777. + gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
  13778. + fi
  13779. +fi
  13780. +
  13781. +gcc_gxx_include_dir_add_sysroot=0
  13782. +if test "${with_sysroot+set}" = set; then
  13783. + gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
  13784. + if test "${gcc_gxx_without_sysroot}"; then
  13785. + gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
  13786. + gcc_gxx_include_dir_add_sysroot=1
  13787. + fi
  13788. +fi
  13789. +
  13790. +
  13791. +# Check whether --with-cpp_install_dir was given.
  13792. +if test "${with_cpp_install_dir+set}" = set; then :
  13793. + withval=$with_cpp_install_dir; if test x$withval = xyes; then
  13794. + as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
  13795. +elif test x$withval != xno; then
  13796. + cpp_install_dir=$withval
  13797. +fi
  13798. +fi
  13799. +
  13800. +
  13801. +# We would like to our source tree to be readonly. However when releases or
  13802. +# pre-releases are generated, the flex/bison generated files as well as the
  13803. +# various formats of manuals need to be included along with the rest of the
  13804. +# sources. Therefore we have --enable-generated-files-in-srcdir to do
  13805. +# just that.
  13806. +
  13807. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
  13808. +$as_echo_n "checking whether to place generated files in the source directory... " >&6; }
  13809. + # Check whether --enable-generated-files-in-srcdir was given.
  13810. +if test "${enable_generated_files_in_srcdir+set}" = set; then :
  13811. + enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
  13812. +else
  13813. + generated_files_in_srcdir=no
  13814. +fi
  13815. +
  13816. +
  13817. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
  13818. +$as_echo "$generated_files_in_srcdir" >&6; }
  13819. +
  13820. +if test "$generated_files_in_srcdir" = "yes"; then
  13821. + GENINSRC=''
  13822. +else
  13823. + GENINSRC='#'
  13824. +fi
  13825. +
  13826. +
  13827. +# -------------------
  13828. +# Find default linker
  13829. +# -------------------
  13830. +
  13831. +# With GNU ld
  13832. +
  13833. +# Check whether --with-gnu-ld was given.
  13834. +if test "${with_gnu_ld+set}" = set; then :
  13835. + withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
  13836. +else
  13837. + gnu_ld_flag=no
  13838. +fi
  13839. +
  13840. +
  13841. +# With pre-defined ld
  13842. +
  13843. +# Check whether --with-ld was given.
  13844. +if test "${with_ld+set}" = set; then :
  13845. + withval=$with_ld; DEFAULT_LINKER="$with_ld"
  13846. +fi
  13847. +
  13848. +if test x"${DEFAULT_LINKER+set}" = x"set"; then
  13849. + if test ! -x "$DEFAULT_LINKER"; then
  13850. + as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
  13851. + elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
  13852. + gnu_ld_flag=yes
  13853. + fi
  13854. +
  13855. +cat >>confdefs.h <<_ACEOF
  13856. +#define DEFAULT_LINKER "$DEFAULT_LINKER"
  13857. +_ACEOF
  13858. +
  13859. +fi
  13860. +
  13861. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
  13862. +$as_echo_n "checking whether a default linker was specified... " >&6; }
  13863. +if test x"${DEFAULT_LINKER+set}" = x"set"; then
  13864. + if test x"$gnu_ld_flag" = x"no"; then
  13865. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
  13866. +$as_echo "yes ($DEFAULT_LINKER)" >&6; }
  13867. + else
  13868. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
  13869. +$as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
  13870. + fi
  13871. +else
  13872. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13873. +$as_echo "no" >&6; }
  13874. +fi
  13875. +
  13876. +# With demangler in GNU ld
  13877. +
  13878. +# Check whether --with-demangler-in-ld was given.
  13879. +if test "${with_demangler_in_ld+set}" = set; then :
  13880. + withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
  13881. +else
  13882. + demangler_in_ld=yes
  13883. +fi
  13884. +
  13885. +
  13886. +# ----------------------
  13887. +# Find default assembler
  13888. +# ----------------------
  13889. +
  13890. +# With GNU as
  13891. +
  13892. +# Check whether --with-gnu-as was given.
  13893. +if test "${with_gnu_as+set}" = set; then :
  13894. + withval=$with_gnu_as; gas_flag="$with_gnu_as"
  13895. +else
  13896. + gas_flag=no
  13897. +fi
  13898. +
  13899. +
  13900. +
  13901. +# Check whether --with-as was given.
  13902. +if test "${with_as+set}" = set; then :
  13903. + withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
  13904. +fi
  13905. +
  13906. +if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
  13907. + if test ! -x "$DEFAULT_ASSEMBLER"; then
  13908. + as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
  13909. + elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
  13910. + gas_flag=yes
  13911. + fi
  13912. +
  13913. +cat >>confdefs.h <<_ACEOF
  13914. +#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
  13915. +_ACEOF
  13916. +
  13917. +fi
  13918. +
  13919. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
  13920. +$as_echo_n "checking whether a default assembler was specified... " >&6; }
  13921. +if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
  13922. + if test x"$gas_flag" = x"no"; then
  13923. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
  13924. +$as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
  13925. + else
  13926. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
  13927. +$as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
  13928. + fi
  13929. +else
  13930. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13931. +$as_echo "no" >&6; }
  13932. +fi
  13933. +
  13934. +# ---------------
  13935. +# Find C compiler
  13936. +# ---------------
  13937. +
  13938. +# If a non-executable a.out is present (e.g. created by GNU as above even if
  13939. +# invoked with -v only), the IRIX 6 native ld just overwrites the existing
  13940. +# file, even when creating an executable, so an execution test fails.
  13941. +# Remove possible default executable files to avoid this.
  13942. +#
  13943. +# FIXME: This really belongs into AC_PROG_CC and can be removed once
  13944. +# Autoconf includes it.
  13945. +rm -f a.out a.exe b.out
  13946. +
  13947. +# Find the native compiler
  13948. +ac_ext=c
  13949. +ac_cpp='$CPP $CPPFLAGS'
  13950. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13951. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13952. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13953. +if test -n "$ac_tool_prefix"; then
  13954. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  13955. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  13956. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13957. +$as_echo_n "checking for $ac_word... " >&6; }
  13958. +if test "${ac_cv_prog_CC+set}" = set; then :
  13959. + $as_echo_n "(cached) " >&6
  13960. +else
  13961. + if test -n "$CC"; then
  13962. + ac_cv_prog_CC="$CC" # Let the user override the test.
  13963. +else
  13964. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13965. +for as_dir in $PATH
  13966. +do
  13967. + IFS=$as_save_IFS
  13968. + test -z "$as_dir" && as_dir=.
  13969. + for ac_exec_ext in '' $ac_executable_extensions; do
  13970. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13971. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  13972. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13973. + break 2
  13974. + fi
  13975. +done
  13976. + done
  13977. +IFS=$as_save_IFS
  13978. +
  13979. +fi
  13980. +fi
  13981. +CC=$ac_cv_prog_CC
  13982. +if test -n "$CC"; then
  13983. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  13984. +$as_echo "$CC" >&6; }
  13985. +else
  13986. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13987. +$as_echo "no" >&6; }
  13988. +fi
  13989. +
  13990. +
  13991. +fi
  13992. +if test -z "$ac_cv_prog_CC"; then
  13993. + ac_ct_CC=$CC
  13994. + # Extract the first word of "gcc", so it can be a program name with args.
  13995. +set dummy gcc; ac_word=$2
  13996. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13997. +$as_echo_n "checking for $ac_word... " >&6; }
  13998. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  13999. + $as_echo_n "(cached) " >&6
  14000. +else
  14001. + if test -n "$ac_ct_CC"; then
  14002. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  14003. +else
  14004. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14005. +for as_dir in $PATH
  14006. +do
  14007. + IFS=$as_save_IFS
  14008. + test -z "$as_dir" && as_dir=.
  14009. + for ac_exec_ext in '' $ac_executable_extensions; do
  14010. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14011. + ac_cv_prog_ac_ct_CC="gcc"
  14012. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14013. + break 2
  14014. + fi
  14015. +done
  14016. + done
  14017. +IFS=$as_save_IFS
  14018. +
  14019. +fi
  14020. +fi
  14021. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  14022. +if test -n "$ac_ct_CC"; then
  14023. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  14024. +$as_echo "$ac_ct_CC" >&6; }
  14025. +else
  14026. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14027. +$as_echo "no" >&6; }
  14028. +fi
  14029. +
  14030. + if test "x$ac_ct_CC" = x; then
  14031. + CC=""
  14032. + else
  14033. + case $cross_compiling:$ac_tool_warned in
  14034. +yes:)
  14035. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14036. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14037. +ac_tool_warned=yes ;;
  14038. +esac
  14039. + CC=$ac_ct_CC
  14040. + fi
  14041. +else
  14042. + CC="$ac_cv_prog_CC"
  14043. +fi
  14044. +
  14045. +if test -z "$CC"; then
  14046. + if test -n "$ac_tool_prefix"; then
  14047. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  14048. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  14049. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14050. +$as_echo_n "checking for $ac_word... " >&6; }
  14051. +if test "${ac_cv_prog_CC+set}" = set; then :
  14052. + $as_echo_n "(cached) " >&6
  14053. +else
  14054. + if test -n "$CC"; then
  14055. + ac_cv_prog_CC="$CC" # Let the user override the test.
  14056. +else
  14057. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14058. +for as_dir in $PATH
  14059. +do
  14060. + IFS=$as_save_IFS
  14061. + test -z "$as_dir" && as_dir=.
  14062. + for ac_exec_ext in '' $ac_executable_extensions; do
  14063. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14064. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  14065. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14066. + break 2
  14067. + fi
  14068. +done
  14069. + done
  14070. +IFS=$as_save_IFS
  14071. +
  14072. +fi
  14073. +fi
  14074. +CC=$ac_cv_prog_CC
  14075. +if test -n "$CC"; then
  14076. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  14077. +$as_echo "$CC" >&6; }
  14078. +else
  14079. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14080. +$as_echo "no" >&6; }
  14081. +fi
  14082. +
  14083. +
  14084. + fi
  14085. +fi
  14086. +if test -z "$CC"; then
  14087. + # Extract the first word of "cc", so it can be a program name with args.
  14088. +set dummy cc; ac_word=$2
  14089. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14090. +$as_echo_n "checking for $ac_word... " >&6; }
  14091. +if test "${ac_cv_prog_CC+set}" = set; then :
  14092. + $as_echo_n "(cached) " >&6
  14093. +else
  14094. + if test -n "$CC"; then
  14095. + ac_cv_prog_CC="$CC" # Let the user override the test.
  14096. +else
  14097. + ac_prog_rejected=no
  14098. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14099. +for as_dir in $PATH
  14100. +do
  14101. + IFS=$as_save_IFS
  14102. + test -z "$as_dir" && as_dir=.
  14103. + for ac_exec_ext in '' $ac_executable_extensions; do
  14104. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14105. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  14106. + ac_prog_rejected=yes
  14107. + continue
  14108. + fi
  14109. + ac_cv_prog_CC="cc"
  14110. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14111. + break 2
  14112. + fi
  14113. +done
  14114. + done
  14115. +IFS=$as_save_IFS
  14116. +
  14117. +if test $ac_prog_rejected = yes; then
  14118. + # We found a bogon in the path, so make sure we never use it.
  14119. + set dummy $ac_cv_prog_CC
  14120. + shift
  14121. + if test $# != 0; then
  14122. + # We chose a different compiler from the bogus one.
  14123. + # However, it has the same basename, so the bogon will be chosen
  14124. + # first if we set CC to just the basename; use the full file name.
  14125. + shift
  14126. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  14127. + fi
  14128. +fi
  14129. +fi
  14130. +fi
  14131. +CC=$ac_cv_prog_CC
  14132. +if test -n "$CC"; then
  14133. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  14134. +$as_echo "$CC" >&6; }
  14135. +else
  14136. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14137. +$as_echo "no" >&6; }
  14138. +fi
  14139. +
  14140. +
  14141. +fi
  14142. +if test -z "$CC"; then
  14143. + if test -n "$ac_tool_prefix"; then
  14144. + for ac_prog in cl.exe
  14145. + do
  14146. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  14147. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  14148. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14149. +$as_echo_n "checking for $ac_word... " >&6; }
  14150. +if test "${ac_cv_prog_CC+set}" = set; then :
  14151. + $as_echo_n "(cached) " >&6
  14152. +else
  14153. + if test -n "$CC"; then
  14154. + ac_cv_prog_CC="$CC" # Let the user override the test.
  14155. +else
  14156. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14157. +for as_dir in $PATH
  14158. +do
  14159. + IFS=$as_save_IFS
  14160. + test -z "$as_dir" && as_dir=.
  14161. + for ac_exec_ext in '' $ac_executable_extensions; do
  14162. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14163. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  14164. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14165. + break 2
  14166. + fi
  14167. +done
  14168. + done
  14169. +IFS=$as_save_IFS
  14170. +
  14171. +fi
  14172. +fi
  14173. +CC=$ac_cv_prog_CC
  14174. +if test -n "$CC"; then
  14175. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  14176. +$as_echo "$CC" >&6; }
  14177. +else
  14178. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14179. +$as_echo "no" >&6; }
  14180. +fi
  14181. +
  14182. +
  14183. + test -n "$CC" && break
  14184. + done
  14185. +fi
  14186. +if test -z "$CC"; then
  14187. + ac_ct_CC=$CC
  14188. + for ac_prog in cl.exe
  14189. +do
  14190. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  14191. +set dummy $ac_prog; ac_word=$2
  14192. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14193. +$as_echo_n "checking for $ac_word... " >&6; }
  14194. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  14195. + $as_echo_n "(cached) " >&6
  14196. +else
  14197. + if test -n "$ac_ct_CC"; then
  14198. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  14199. +else
  14200. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14201. +for as_dir in $PATH
  14202. +do
  14203. + IFS=$as_save_IFS
  14204. + test -z "$as_dir" && as_dir=.
  14205. + for ac_exec_ext in '' $ac_executable_extensions; do
  14206. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14207. + ac_cv_prog_ac_ct_CC="$ac_prog"
  14208. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14209. + break 2
  14210. + fi
  14211. +done
  14212. + done
  14213. +IFS=$as_save_IFS
  14214. +
  14215. +fi
  14216. +fi
  14217. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  14218. +if test -n "$ac_ct_CC"; then
  14219. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  14220. +$as_echo "$ac_ct_CC" >&6; }
  14221. +else
  14222. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14223. +$as_echo "no" >&6; }
  14224. +fi
  14225. +
  14226. +
  14227. + test -n "$ac_ct_CC" && break
  14228. +done
  14229. +
  14230. + if test "x$ac_ct_CC" = x; then
  14231. + CC=""
  14232. + else
  14233. + case $cross_compiling:$ac_tool_warned in
  14234. +yes:)
  14235. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14236. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14237. +ac_tool_warned=yes ;;
  14238. +esac
  14239. + CC=$ac_ct_CC
  14240. + fi
  14241. +fi
  14242. +
  14243. +fi
  14244. +
  14245. +
  14246. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14247. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14248. +as_fn_error "no acceptable C compiler found in \$PATH
  14249. +See \`config.log' for more details." "$LINENO" 5; }
  14250. +
  14251. +# Provide some information about the compiler.
  14252. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  14253. +set X $ac_compile
  14254. +ac_compiler=$2
  14255. +for ac_option in --version -v -V -qversion; do
  14256. + { { ac_try="$ac_compiler $ac_option >&5"
  14257. +case "(($ac_try" in
  14258. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14259. + *) ac_try_echo=$ac_try;;
  14260. +esac
  14261. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14262. +$as_echo "$ac_try_echo"; } >&5
  14263. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  14264. + ac_status=$?
  14265. + if test -s conftest.err; then
  14266. + sed '10a\
  14267. +... rest of stderr output deleted ...
  14268. + 10q' conftest.err >conftest.er1
  14269. + cat conftest.er1 >&5
  14270. + rm -f conftest.er1 conftest.err
  14271. + fi
  14272. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14273. + test $ac_status = 0; }
  14274. +done
  14275. +
  14276. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14277. +/* end confdefs.h. */
  14278. +
  14279. +int
  14280. +main ()
  14281. +{
  14282. +
  14283. + ;
  14284. + return 0;
  14285. +}
  14286. +_ACEOF
  14287. +ac_clean_files_save=$ac_clean_files
  14288. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  14289. +# Try to create an executable without -o first, disregard a.out.
  14290. +# It will help us diagnose broken compilers, and finding out an intuition
  14291. +# of exeext.
  14292. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  14293. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  14294. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  14295. +
  14296. +# The possible output files:
  14297. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  14298. +
  14299. +ac_rmfiles=
  14300. +for ac_file in $ac_files
  14301. +do
  14302. + case $ac_file in
  14303. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  14304. + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  14305. + esac
  14306. +done
  14307. +rm -f $ac_rmfiles
  14308. +
  14309. +if { { ac_try="$ac_link_default"
  14310. +case "(($ac_try" in
  14311. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14312. + *) ac_try_echo=$ac_try;;
  14313. +esac
  14314. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14315. +$as_echo "$ac_try_echo"; } >&5
  14316. + (eval "$ac_link_default") 2>&5
  14317. + ac_status=$?
  14318. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14319. + test $ac_status = 0; }; then :
  14320. + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  14321. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  14322. +# in a Makefile. We should not override ac_cv_exeext if it was cached,
  14323. +# so that the user can short-circuit this test for compilers unknown to
  14324. +# Autoconf.
  14325. +for ac_file in $ac_files ''
  14326. +do
  14327. + test -f "$ac_file" || continue
  14328. + case $ac_file in
  14329. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  14330. + ;;
  14331. + [ab].out )
  14332. + # We found the default executable, but exeext='' is most
  14333. + # certainly right.
  14334. + break;;
  14335. + *.* )
  14336. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  14337. + then :; else
  14338. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  14339. + fi
  14340. + # We set ac_cv_exeext here because the later test for it is not
  14341. + # safe: cross compilers may not add the suffix if given an `-o'
  14342. + # argument, so we may need to know it at that point already.
  14343. + # Even if this section looks crufty: it has the advantage of
  14344. + # actually working.
  14345. + break;;
  14346. + * )
  14347. + break;;
  14348. + esac
  14349. +done
  14350. +test "$ac_cv_exeext" = no && ac_cv_exeext=
  14351. +
  14352. +else
  14353. + ac_file=''
  14354. +fi
  14355. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  14356. +$as_echo "$ac_file" >&6; }
  14357. +if test -z "$ac_file"; then :
  14358. + $as_echo "$as_me: failed program was:" >&5
  14359. +sed 's/^/| /' conftest.$ac_ext >&5
  14360. +
  14361. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14362. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14363. +{ as_fn_set_status 77
  14364. +as_fn_error "C compiler cannot create executables
  14365. +See \`config.log' for more details." "$LINENO" 5; }; }
  14366. +fi
  14367. +ac_exeext=$ac_cv_exeext
  14368. +
  14369. +# Check that the compiler produces executables we can run. If not, either
  14370. +# the compiler is broken, or we cross compile.
  14371. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  14372. +$as_echo_n "checking whether the C compiler works... " >&6; }
  14373. +# If not cross compiling, check that we can run a simple program.
  14374. +if test "$cross_compiling" != yes; then
  14375. + if { ac_try='./$ac_file'
  14376. + { { case "(($ac_try" in
  14377. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14378. + *) ac_try_echo=$ac_try;;
  14379. +esac
  14380. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14381. +$as_echo "$ac_try_echo"; } >&5
  14382. + (eval "$ac_try") 2>&5
  14383. + ac_status=$?
  14384. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14385. + test $ac_status = 0; }; }; then
  14386. + cross_compiling=no
  14387. + else
  14388. + if test "$cross_compiling" = maybe; then
  14389. + cross_compiling=yes
  14390. + else
  14391. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14392. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14393. +as_fn_error "cannot run C compiled programs.
  14394. +If you meant to cross compile, use \`--host'.
  14395. +See \`config.log' for more details." "$LINENO" 5; }
  14396. + fi
  14397. + fi
  14398. +fi
  14399. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14400. +$as_echo "yes" >&6; }
  14401. +
  14402. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  14403. +ac_clean_files=$ac_clean_files_save
  14404. +# Check that the compiler produces executables we can run. If not, either
  14405. +# the compiler is broken, or we cross compile.
  14406. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  14407. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  14408. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  14409. +$as_echo "$cross_compiling" >&6; }
  14410. +
  14411. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  14412. +$as_echo_n "checking for suffix of executables... " >&6; }
  14413. +if { { ac_try="$ac_link"
  14414. +case "(($ac_try" in
  14415. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14416. + *) ac_try_echo=$ac_try;;
  14417. +esac
  14418. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14419. +$as_echo "$ac_try_echo"; } >&5
  14420. + (eval "$ac_link") 2>&5
  14421. + ac_status=$?
  14422. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14423. + test $ac_status = 0; }; then :
  14424. + # If both `conftest.exe' and `conftest' are `present' (well, observable)
  14425. +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  14426. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  14427. +# `rm'.
  14428. +for ac_file in conftest.exe conftest conftest.*; do
  14429. + test -f "$ac_file" || continue
  14430. + case $ac_file in
  14431. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  14432. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  14433. + break;;
  14434. + * ) break;;
  14435. + esac
  14436. +done
  14437. +else
  14438. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14439. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14440. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  14441. +See \`config.log' for more details." "$LINENO" 5; }
  14442. +fi
  14443. +rm -f conftest$ac_cv_exeext
  14444. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  14445. +$as_echo "$ac_cv_exeext" >&6; }
  14446. +
  14447. +rm -f conftest.$ac_ext
  14448. +EXEEXT=$ac_cv_exeext
  14449. +ac_exeext=$EXEEXT
  14450. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  14451. +$as_echo_n "checking for suffix of object files... " >&6; }
  14452. +if test "${ac_cv_objext+set}" = set; then :
  14453. + $as_echo_n "(cached) " >&6
  14454. +else
  14455. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14456. +/* end confdefs.h. */
  14457. +
  14458. +int
  14459. +main ()
  14460. +{
  14461. +
  14462. + ;
  14463. + return 0;
  14464. +}
  14465. +_ACEOF
  14466. +rm -f conftest.o conftest.obj
  14467. +if { { ac_try="$ac_compile"
  14468. +case "(($ac_try" in
  14469. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14470. + *) ac_try_echo=$ac_try;;
  14471. +esac
  14472. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14473. +$as_echo "$ac_try_echo"; } >&5
  14474. + (eval "$ac_compile") 2>&5
  14475. + ac_status=$?
  14476. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14477. + test $ac_status = 0; }; then :
  14478. + for ac_file in conftest.o conftest.obj conftest.*; do
  14479. + test -f "$ac_file" || continue;
  14480. + case $ac_file in
  14481. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  14482. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  14483. + break;;
  14484. + esac
  14485. +done
  14486. +else
  14487. + $as_echo "$as_me: failed program was:" >&5
  14488. +sed 's/^/| /' conftest.$ac_ext >&5
  14489. +
  14490. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14491. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14492. +as_fn_error "cannot compute suffix of object files: cannot compile
  14493. +See \`config.log' for more details." "$LINENO" 5; }
  14494. +fi
  14495. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  14496. +fi
  14497. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  14498. +$as_echo "$ac_cv_objext" >&6; }
  14499. +OBJEXT=$ac_cv_objext
  14500. +ac_objext=$OBJEXT
  14501. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  14502. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  14503. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  14504. + $as_echo_n "(cached) " >&6
  14505. +else
  14506. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14507. +/* end confdefs.h. */
  14508. +
  14509. +int
  14510. +main ()
  14511. +{
  14512. +#ifndef __GNUC__
  14513. + choke me
  14514. +#endif
  14515. +
  14516. + ;
  14517. + return 0;
  14518. +}
  14519. +_ACEOF
  14520. +if ac_fn_c_try_compile "$LINENO"; then :
  14521. + ac_compiler_gnu=yes
  14522. +else
  14523. + ac_compiler_gnu=no
  14524. +fi
  14525. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14526. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  14527. +
  14528. +fi
  14529. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  14530. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  14531. +if test $ac_compiler_gnu = yes; then
  14532. + GCC=yes
  14533. +else
  14534. + GCC=
  14535. +fi
  14536. +ac_test_CFLAGS=${CFLAGS+set}
  14537. +ac_save_CFLAGS=$CFLAGS
  14538. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  14539. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  14540. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  14541. + $as_echo_n "(cached) " >&6
  14542. +else
  14543. + ac_save_c_werror_flag=$ac_c_werror_flag
  14544. + ac_c_werror_flag=yes
  14545. + ac_cv_prog_cc_g=no
  14546. + CFLAGS="-g"
  14547. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14548. +/* end confdefs.h. */
  14549. +
  14550. +int
  14551. +main ()
  14552. +{
  14553. +
  14554. + ;
  14555. + return 0;
  14556. +}
  14557. +_ACEOF
  14558. +if ac_fn_c_try_compile "$LINENO"; then :
  14559. + ac_cv_prog_cc_g=yes
  14560. +else
  14561. + CFLAGS=""
  14562. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14563. +/* end confdefs.h. */
  14564. +
  14565. +int
  14566. +main ()
  14567. +{
  14568. +
  14569. + ;
  14570. + return 0;
  14571. +}
  14572. +_ACEOF
  14573. +if ac_fn_c_try_compile "$LINENO"; then :
  14574. +
  14575. +else
  14576. + ac_c_werror_flag=$ac_save_c_werror_flag
  14577. + CFLAGS="-g"
  14578. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14579. +/* end confdefs.h. */
  14580. +
  14581. +int
  14582. +main ()
  14583. +{
  14584. +
  14585. + ;
  14586. + return 0;
  14587. +}
  14588. +_ACEOF
  14589. +if ac_fn_c_try_compile "$LINENO"; then :
  14590. + ac_cv_prog_cc_g=yes
  14591. +fi
  14592. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14593. +fi
  14594. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14595. +fi
  14596. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14597. + ac_c_werror_flag=$ac_save_c_werror_flag
  14598. +fi
  14599. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  14600. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  14601. +if test "$ac_test_CFLAGS" = set; then
  14602. + CFLAGS=$ac_save_CFLAGS
  14603. +elif test $ac_cv_prog_cc_g = yes; then
  14604. + if test "$GCC" = yes; then
  14605. + CFLAGS="-g -O2"
  14606. + else
  14607. + CFLAGS="-g"
  14608. + fi
  14609. +else
  14610. + if test "$GCC" = yes; then
  14611. + CFLAGS="-O2"
  14612. + else
  14613. + CFLAGS=
  14614. + fi
  14615. +fi
  14616. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  14617. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  14618. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  14619. + $as_echo_n "(cached) " >&6
  14620. +else
  14621. + ac_cv_prog_cc_c89=no
  14622. +ac_save_CC=$CC
  14623. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14624. +/* end confdefs.h. */
  14625. +#include <stdarg.h>
  14626. +#include <stdio.h>
  14627. +#include <sys/types.h>
  14628. +#include <sys/stat.h>
  14629. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  14630. +struct buf { int x; };
  14631. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  14632. +static char *e (p, i)
  14633. + char **p;
  14634. + int i;
  14635. +{
  14636. + return p[i];
  14637. +}
  14638. +static char *f (char * (*g) (char **, int), char **p, ...)
  14639. +{
  14640. + char *s;
  14641. + va_list v;
  14642. + va_start (v,p);
  14643. + s = g (p, va_arg (v,int));
  14644. + va_end (v);
  14645. + return s;
  14646. +}
  14647. +
  14648. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  14649. + function prototypes and stuff, but not '\xHH' hex character constants.
  14650. + These don't provoke an error unfortunately, instead are silently treated
  14651. + as 'x'. The following induces an error, until -std is added to get
  14652. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  14653. + array size at least. It's necessary to write '\x00'==0 to get something
  14654. + that's true only with -std. */
  14655. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  14656. +
  14657. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  14658. + inside strings and character constants. */
  14659. +#define FOO(x) 'x'
  14660. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  14661. +
  14662. +int test (int i, double x);
  14663. +struct s1 {int (*f) (int a);};
  14664. +struct s2 {int (*f) (double a);};
  14665. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  14666. +int argc;
  14667. +char **argv;
  14668. +int
  14669. +main ()
  14670. +{
  14671. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  14672. + ;
  14673. + return 0;
  14674. +}
  14675. +_ACEOF
  14676. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  14677. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  14678. +do
  14679. + CC="$ac_save_CC $ac_arg"
  14680. + if ac_fn_c_try_compile "$LINENO"; then :
  14681. + ac_cv_prog_cc_c89=$ac_arg
  14682. +fi
  14683. +rm -f core conftest.err conftest.$ac_objext
  14684. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  14685. +done
  14686. +rm -f conftest.$ac_ext
  14687. +CC=$ac_save_CC
  14688. +
  14689. +fi
  14690. +# AC_CACHE_VAL
  14691. +case "x$ac_cv_prog_cc_c89" in
  14692. + x)
  14693. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  14694. +$as_echo "none needed" >&6; } ;;
  14695. + xno)
  14696. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  14697. +$as_echo "unsupported" >&6; } ;;
  14698. + *)
  14699. + CC="$CC $ac_cv_prog_cc_c89"
  14700. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  14701. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  14702. +esac
  14703. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  14704. +
  14705. +fi
  14706. +
  14707. +ac_ext=c
  14708. +ac_cpp='$CPP $CPPFLAGS'
  14709. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14710. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14711. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14712. +
  14713. +ac_ext=cpp
  14714. +ac_cpp='$CXXCPP $CPPFLAGS'
  14715. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14716. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14717. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14718. +if test -z "$CXX"; then
  14719. + if test -n "$CCC"; then
  14720. + CXX=$CCC
  14721. + else
  14722. + if test -n "$ac_tool_prefix"; then
  14723. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  14724. + do
  14725. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  14726. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  14727. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14728. +$as_echo_n "checking for $ac_word... " >&6; }
  14729. +if test "${ac_cv_prog_CXX+set}" = set; then :
  14730. + $as_echo_n "(cached) " >&6
  14731. +else
  14732. + if test -n "$CXX"; then
  14733. + ac_cv_prog_CXX="$CXX" # Let the user override the test.
  14734. +else
  14735. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14736. +for as_dir in $PATH
  14737. +do
  14738. + IFS=$as_save_IFS
  14739. + test -z "$as_dir" && as_dir=.
  14740. + for ac_exec_ext in '' $ac_executable_extensions; do
  14741. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14742. + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  14743. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14744. + break 2
  14745. + fi
  14746. +done
  14747. + done
  14748. +IFS=$as_save_IFS
  14749. +
  14750. +fi
  14751. +fi
  14752. +CXX=$ac_cv_prog_CXX
  14753. +if test -n "$CXX"; then
  14754. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  14755. +$as_echo "$CXX" >&6; }
  14756. +else
  14757. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14758. +$as_echo "no" >&6; }
  14759. +fi
  14760. +
  14761. +
  14762. + test -n "$CXX" && break
  14763. + done
  14764. +fi
  14765. +if test -z "$CXX"; then
  14766. + ac_ct_CXX=$CXX
  14767. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  14768. +do
  14769. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  14770. +set dummy $ac_prog; ac_word=$2
  14771. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14772. +$as_echo_n "checking for $ac_word... " >&6; }
  14773. +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  14774. + $as_echo_n "(cached) " >&6
  14775. +else
  14776. + if test -n "$ac_ct_CXX"; then
  14777. + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  14778. +else
  14779. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14780. +for as_dir in $PATH
  14781. +do
  14782. + IFS=$as_save_IFS
  14783. + test -z "$as_dir" && as_dir=.
  14784. + for ac_exec_ext in '' $ac_executable_extensions; do
  14785. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14786. + ac_cv_prog_ac_ct_CXX="$ac_prog"
  14787. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14788. + break 2
  14789. + fi
  14790. +done
  14791. + done
  14792. +IFS=$as_save_IFS
  14793. +
  14794. +fi
  14795. +fi
  14796. +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  14797. +if test -n "$ac_ct_CXX"; then
  14798. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  14799. +$as_echo "$ac_ct_CXX" >&6; }
  14800. +else
  14801. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14802. +$as_echo "no" >&6; }
  14803. +fi
  14804. +
  14805. +
  14806. + test -n "$ac_ct_CXX" && break
  14807. +done
  14808. +
  14809. + if test "x$ac_ct_CXX" = x; then
  14810. + CXX="g++"
  14811. + else
  14812. + case $cross_compiling:$ac_tool_warned in
  14813. +yes:)
  14814. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14815. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14816. +ac_tool_warned=yes ;;
  14817. +esac
  14818. + CXX=$ac_ct_CXX
  14819. + fi
  14820. +fi
  14821. +
  14822. + fi
  14823. +fi
  14824. +# Provide some information about the compiler.
  14825. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  14826. +set X $ac_compile
  14827. +ac_compiler=$2
  14828. +for ac_option in --version -v -V -qversion; do
  14829. + { { ac_try="$ac_compiler $ac_option >&5"
  14830. +case "(($ac_try" in
  14831. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14832. + *) ac_try_echo=$ac_try;;
  14833. +esac
  14834. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  14835. +$as_echo "$ac_try_echo"; } >&5
  14836. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  14837. + ac_status=$?
  14838. + if test -s conftest.err; then
  14839. + sed '10a\
  14840. +... rest of stderr output deleted ...
  14841. + 10q' conftest.err >conftest.er1
  14842. + cat conftest.er1 >&5
  14843. + rm -f conftest.er1 conftest.err
  14844. + fi
  14845. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14846. + test $ac_status = 0; }
  14847. +done
  14848. +
  14849. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  14850. +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  14851. +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  14852. + $as_echo_n "(cached) " >&6
  14853. +else
  14854. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14855. +/* end confdefs.h. */
  14856. +
  14857. +int
  14858. +main ()
  14859. +{
  14860. +#ifndef __GNUC__
  14861. + choke me
  14862. +#endif
  14863. +
  14864. + ;
  14865. + return 0;
  14866. +}
  14867. +_ACEOF
  14868. +if ac_fn_cxx_try_compile "$LINENO"; then :
  14869. + ac_compiler_gnu=yes
  14870. +else
  14871. + ac_compiler_gnu=no
  14872. +fi
  14873. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14874. +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  14875. +
  14876. +fi
  14877. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  14878. +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  14879. +if test $ac_compiler_gnu = yes; then
  14880. + GXX=yes
  14881. +else
  14882. + GXX=
  14883. +fi
  14884. +ac_test_CXXFLAGS=${CXXFLAGS+set}
  14885. +ac_save_CXXFLAGS=$CXXFLAGS
  14886. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  14887. +$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  14888. +if test "${ac_cv_prog_cxx_g+set}" = set; then :
  14889. + $as_echo_n "(cached) " >&6
  14890. +else
  14891. + ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  14892. + ac_cxx_werror_flag=yes
  14893. + ac_cv_prog_cxx_g=no
  14894. + CXXFLAGS="-g"
  14895. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14896. +/* end confdefs.h. */
  14897. +
  14898. +int
  14899. +main ()
  14900. +{
  14901. +
  14902. + ;
  14903. + return 0;
  14904. +}
  14905. +_ACEOF
  14906. +if ac_fn_cxx_try_compile "$LINENO"; then :
  14907. + ac_cv_prog_cxx_g=yes
  14908. +else
  14909. + CXXFLAGS=""
  14910. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14911. +/* end confdefs.h. */
  14912. +
  14913. +int
  14914. +main ()
  14915. +{
  14916. +
  14917. + ;
  14918. + return 0;
  14919. +}
  14920. +_ACEOF
  14921. +if ac_fn_cxx_try_compile "$LINENO"; then :
  14922. +
  14923. +else
  14924. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  14925. + CXXFLAGS="-g"
  14926. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14927. +/* end confdefs.h. */
  14928. +
  14929. +int
  14930. +main ()
  14931. +{
  14932. +
  14933. + ;
  14934. + return 0;
  14935. +}
  14936. +_ACEOF
  14937. +if ac_fn_cxx_try_compile "$LINENO"; then :
  14938. + ac_cv_prog_cxx_g=yes
  14939. +fi
  14940. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14941. +fi
  14942. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14943. +fi
  14944. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14945. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  14946. +fi
  14947. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  14948. +$as_echo "$ac_cv_prog_cxx_g" >&6; }
  14949. +if test "$ac_test_CXXFLAGS" = set; then
  14950. + CXXFLAGS=$ac_save_CXXFLAGS
  14951. +elif test $ac_cv_prog_cxx_g = yes; then
  14952. + if test "$GXX" = yes; then
  14953. + CXXFLAGS="-g -O2"
  14954. + else
  14955. + CXXFLAGS="-g"
  14956. + fi
  14957. +else
  14958. + if test "$GXX" = yes; then
  14959. + CXXFLAGS="-O2"
  14960. + else
  14961. + CXXFLAGS=
  14962. + fi
  14963. +fi
  14964. +ac_ext=c
  14965. +ac_cpp='$CPP $CPPFLAGS'
  14966. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14967. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14968. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14969. +
  14970. +
  14971. +
  14972. +
  14973. +if test -n "$ac_tool_prefix"; then
  14974. + # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
  14975. +set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
  14976. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14977. +$as_echo_n "checking for $ac_word... " >&6; }
  14978. +if test "${ac_cv_prog_GNATBIND+set}" = set; then :
  14979. + $as_echo_n "(cached) " >&6
  14980. +else
  14981. + if test -n "$GNATBIND"; then
  14982. + ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
  14983. +else
  14984. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14985. +for as_dir in $PATH
  14986. +do
  14987. + IFS=$as_save_IFS
  14988. + test -z "$as_dir" && as_dir=.
  14989. + for ac_exec_ext in '' $ac_executable_extensions; do
  14990. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14991. + ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
  14992. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14993. + break 2
  14994. + fi
  14995. +done
  14996. + done
  14997. +IFS=$as_save_IFS
  14998. +
  14999. +fi
  15000. +fi
  15001. +GNATBIND=$ac_cv_prog_GNATBIND
  15002. +if test -n "$GNATBIND"; then
  15003. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
  15004. +$as_echo "$GNATBIND" >&6; }
  15005. +else
  15006. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15007. +$as_echo "no" >&6; }
  15008. +fi
  15009. +
  15010. +
  15011. +fi
  15012. +if test -z "$ac_cv_prog_GNATBIND"; then
  15013. + ac_ct_GNATBIND=$GNATBIND
  15014. + # Extract the first word of "gnatbind", so it can be a program name with args.
  15015. +set dummy gnatbind; ac_word=$2
  15016. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15017. +$as_echo_n "checking for $ac_word... " >&6; }
  15018. +if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
  15019. + $as_echo_n "(cached) " >&6
  15020. +else
  15021. + if test -n "$ac_ct_GNATBIND"; then
  15022. + ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
  15023. +else
  15024. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15025. +for as_dir in $PATH
  15026. +do
  15027. + IFS=$as_save_IFS
  15028. + test -z "$as_dir" && as_dir=.
  15029. + for ac_exec_ext in '' $ac_executable_extensions; do
  15030. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15031. + ac_cv_prog_ac_ct_GNATBIND="gnatbind"
  15032. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15033. + break 2
  15034. + fi
  15035. +done
  15036. + done
  15037. +IFS=$as_save_IFS
  15038. +
  15039. +fi
  15040. +fi
  15041. +ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
  15042. +if test -n "$ac_ct_GNATBIND"; then
  15043. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
  15044. +$as_echo "$ac_ct_GNATBIND" >&6; }
  15045. +else
  15046. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15047. +$as_echo "no" >&6; }
  15048. +fi
  15049. +
  15050. + if test "x$ac_ct_GNATBIND" = x; then
  15051. + GNATBIND="no"
  15052. + else
  15053. + case $cross_compiling:$ac_tool_warned in
  15054. +yes:)
  15055. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15056. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15057. +ac_tool_warned=yes ;;
  15058. +esac
  15059. + GNATBIND=$ac_ct_GNATBIND
  15060. + fi
  15061. +else
  15062. + GNATBIND="$ac_cv_prog_GNATBIND"
  15063. +fi
  15064. +
  15065. +if test -n "$ac_tool_prefix"; then
  15066. + # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
  15067. +set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
  15068. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15069. +$as_echo_n "checking for $ac_word... " >&6; }
  15070. +if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
  15071. + $as_echo_n "(cached) " >&6
  15072. +else
  15073. + if test -n "$GNATMAKE"; then
  15074. + ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
  15075. +else
  15076. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15077. +for as_dir in $PATH
  15078. +do
  15079. + IFS=$as_save_IFS
  15080. + test -z "$as_dir" && as_dir=.
  15081. + for ac_exec_ext in '' $ac_executable_extensions; do
  15082. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15083. + ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
  15084. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15085. + break 2
  15086. + fi
  15087. +done
  15088. + done
  15089. +IFS=$as_save_IFS
  15090. +
  15091. +fi
  15092. +fi
  15093. +GNATMAKE=$ac_cv_prog_GNATMAKE
  15094. +if test -n "$GNATMAKE"; then
  15095. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
  15096. +$as_echo "$GNATMAKE" >&6; }
  15097. +else
  15098. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15099. +$as_echo "no" >&6; }
  15100. +fi
  15101. +
  15102. +
  15103. +fi
  15104. +if test -z "$ac_cv_prog_GNATMAKE"; then
  15105. + ac_ct_GNATMAKE=$GNATMAKE
  15106. + # Extract the first word of "gnatmake", so it can be a program name with args.
  15107. +set dummy gnatmake; ac_word=$2
  15108. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15109. +$as_echo_n "checking for $ac_word... " >&6; }
  15110. +if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
  15111. + $as_echo_n "(cached) " >&6
  15112. +else
  15113. + if test -n "$ac_ct_GNATMAKE"; then
  15114. + ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
  15115. +else
  15116. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15117. +for as_dir in $PATH
  15118. +do
  15119. + IFS=$as_save_IFS
  15120. + test -z "$as_dir" && as_dir=.
  15121. + for ac_exec_ext in '' $ac_executable_extensions; do
  15122. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15123. + ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
  15124. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15125. + break 2
  15126. + fi
  15127. +done
  15128. + done
  15129. +IFS=$as_save_IFS
  15130. +
  15131. +fi
  15132. +fi
  15133. +ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
  15134. +if test -n "$ac_ct_GNATMAKE"; then
  15135. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
  15136. +$as_echo "$ac_ct_GNATMAKE" >&6; }
  15137. +else
  15138. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15139. +$as_echo "no" >&6; }
  15140. +fi
  15141. +
  15142. + if test "x$ac_ct_GNATMAKE" = x; then
  15143. + GNATMAKE="no"
  15144. + else
  15145. + case $cross_compiling:$ac_tool_warned in
  15146. +yes:)
  15147. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15148. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15149. +ac_tool_warned=yes ;;
  15150. +esac
  15151. + GNATMAKE=$ac_ct_GNATMAKE
  15152. + fi
  15153. +else
  15154. + GNATMAKE="$ac_cv_prog_GNATMAKE"
  15155. +fi
  15156. +
  15157. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
  15158. +$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
  15159. +if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
  15160. + $as_echo_n "(cached) " >&6
  15161. +else
  15162. + cat >conftest.adb <<EOF
  15163. +procedure conftest is begin null; end conftest;
  15164. +EOF
  15165. +acx_cv_cc_gcc_supports_ada=no
  15166. +# There is a bug in old released versions of GCC which causes the
  15167. +# driver to exit successfully when the appropriate language module
  15168. +# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
  15169. +# Therefore we must check for the error message as well as an
  15170. +# unsuccessful exit.
  15171. +# Other compilers, like HP Tru64 UNIX cc, exit successfully when
  15172. +# given a .adb file, but produce no object file. So we must check
  15173. +# if an object file was really produced to guard against this.
  15174. +errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
  15175. +if test x"$errors" = x && test -f conftest.$ac_objext; then
  15176. + acx_cv_cc_gcc_supports_ada=yes
  15177. +fi
  15178. +rm -f conftest.*
  15179. +fi
  15180. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
  15181. +$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
  15182. +
  15183. +if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
  15184. + have_gnat=yes
  15185. +else
  15186. + have_gnat=no
  15187. +fi
  15188. +
  15189. +
  15190. +# Remove the -O2: for historical reasons, unless bootstrapping we prefer
  15191. +# optimizations to be activated explicitly by the toplevel.
  15192. +case "$CC" in
  15193. + */prev-gcc/xgcc*) ;;
  15194. + *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
  15195. + CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
  15196. +esac
  15197. +
  15198. +
  15199. +
  15200. +# Determine PICFLAG for target gnatlib.
  15201. +
  15202. +
  15203. +
  15204. +
  15205. +case "${target}" in
  15206. + # PIC is the default on some targets or must not be used.
  15207. + *-*-darwin*)
  15208. + # PIC is the default on this platform
  15209. + # Common symbols not allowed in MH_DYLIB files
  15210. + PICFLAG_FOR_TARGET=-fno-common
  15211. + ;;
  15212. + alpha*-dec-osf5*)
  15213. + # PIC is the default.
  15214. + ;;
  15215. + hppa*64*-*-hpux*)
  15216. + # PIC is the default for 64-bit PA HP-UX.
  15217. + ;;
  15218. + i[34567]86-*-cygwin* | x86_64-*-cygwin*)
  15219. + ;;
  15220. + i[34567]86-*-mingw* | x86_64-*-mingw*)
  15221. + ;;
  15222. + i[34567]86-*-interix[3-9]*)
  15223. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  15224. + # Instead, we relocate shared libraries at runtime.
  15225. + ;;
  15226. + i[34567]86-*-nto-qnx*)
  15227. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  15228. + # it will coredump.
  15229. + PICFLAG_FOR_TARGET='-fPIC -shared'
  15230. + ;;
  15231. + i[34567]86-pc-msdosdjgpp*)
  15232. + # DJGPP does not support shared libraries at all.
  15233. + ;;
  15234. + ia64*-*-hpux*)
  15235. + # On IA64 HP-UX, PIC is the default but the pic flag
  15236. + # sets the default TLS model and affects inlining.
  15237. + PICFLAG_FOR_TARGET=-fPIC
  15238. + ;;
  15239. + mips-sgi-irix6*)
  15240. + # PIC is the default.
  15241. + ;;
  15242. + or1k-*-*)
  15243. + PICFLAG_FOR_TARGET=-fPIC
  15244. + ;;
  15245. + rs6000-ibm-aix* | powerpc-ibm-aix*)
  15246. + # All AIX code is PIC.
  15247. + ;;
  15248. +
  15249. + # Some targets support both -fPIC and -fpic, but prefer the latter.
  15250. + # FIXME: Why?
  15251. + i[34567]86-*-* | x86_64-*-*)
  15252. + PICFLAG_FOR_TARGET=-fpic
  15253. + ;;
  15254. + # FIXME: Override -fPIC default in libgcc only?
  15255. + sh-*-linux* | sh[2346lbe]*-*-linux*)
  15256. + PICFLAG_FOR_TARGET=-fpic
  15257. + ;;
  15258. + # FIXME: Simplify to sh*-*-netbsd*?
  15259. + sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
  15260. + sh64-*-netbsd* | sh64l*-*-netbsd*)
  15261. + PICFLAG_FOR_TARGET=-fpic
  15262. + ;;
  15263. + # Default to -fPIC unless specified otherwise.
  15264. + *)
  15265. + PICFLAG_FOR_TARGET=-fPIC
  15266. + ;;
  15267. +esac
  15268. +
  15269. +# If the user explicitly uses -fpic/-fPIC, keep that.
  15270. +case "${CFLAGS_FOR_TARGET}" in
  15271. + *-fpic*)
  15272. + PICFLAG_FOR_TARGET=-fpic
  15273. + ;;
  15274. + *-fPIC*)
  15275. + PICFLAG_FOR_TARGET=-fPIC
  15276. + ;;
  15277. +esac
  15278. +
  15279. +
  15280. +
  15281. +# -------------------------
  15282. +# Check C compiler features
  15283. +# -------------------------
  15284. +
  15285. +
  15286. +ac_ext=c
  15287. +ac_cpp='$CPP $CPPFLAGS'
  15288. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15289. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15290. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15291. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  15292. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  15293. +# On Suns, sometimes $CPP names a directory.
  15294. +if test -n "$CPP" && test -d "$CPP"; then
  15295. + CPP=
  15296. +fi
  15297. +if test -z "$CPP"; then
  15298. + if test "${ac_cv_prog_CPP+set}" = set; then :
  15299. + $as_echo_n "(cached) " >&6
  15300. +else
  15301. + # Double quotes because CPP needs to be expanded
  15302. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  15303. + do
  15304. + ac_preproc_ok=false
  15305. +for ac_c_preproc_warn_flag in '' yes
  15306. +do
  15307. + # Use a header file that comes with gcc, so configuring glibc
  15308. + # with a fresh cross-compiler works.
  15309. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15310. + # <limits.h> exists even on freestanding compilers.
  15311. + # On the NeXT, cc -E runs the code through the compiler's parser,
  15312. + # not just through cpp. "Syntax error" is here to catch this case.
  15313. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15314. +/* end confdefs.h. */
  15315. +#ifdef __STDC__
  15316. +# include <limits.h>
  15317. +#else
  15318. +# include <assert.h>
  15319. +#endif
  15320. + Syntax error
  15321. +_ACEOF
  15322. +if ac_fn_c_try_cpp "$LINENO"; then :
  15323. +
  15324. +else
  15325. + # Broken: fails on valid input.
  15326. +continue
  15327. +fi
  15328. +rm -f conftest.err conftest.$ac_ext
  15329. +
  15330. + # OK, works on sane cases. Now check whether nonexistent headers
  15331. + # can be detected and how.
  15332. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15333. +/* end confdefs.h. */
  15334. +#include <ac_nonexistent.h>
  15335. +_ACEOF
  15336. +if ac_fn_c_try_cpp "$LINENO"; then :
  15337. + # Broken: success on invalid input.
  15338. +continue
  15339. +else
  15340. + # Passes both tests.
  15341. +ac_preproc_ok=:
  15342. +break
  15343. +fi
  15344. +rm -f conftest.err conftest.$ac_ext
  15345. +
  15346. +done
  15347. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15348. +rm -f conftest.err conftest.$ac_ext
  15349. +if $ac_preproc_ok; then :
  15350. + break
  15351. +fi
  15352. +
  15353. + done
  15354. + ac_cv_prog_CPP=$CPP
  15355. +
  15356. +fi
  15357. + CPP=$ac_cv_prog_CPP
  15358. +else
  15359. + ac_cv_prog_CPP=$CPP
  15360. +fi
  15361. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  15362. +$as_echo "$CPP" >&6; }
  15363. +ac_preproc_ok=false
  15364. +for ac_c_preproc_warn_flag in '' yes
  15365. +do
  15366. + # Use a header file that comes with gcc, so configuring glibc
  15367. + # with a fresh cross-compiler works.
  15368. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15369. + # <limits.h> exists even on freestanding compilers.
  15370. + # On the NeXT, cc -E runs the code through the compiler's parser,
  15371. + # not just through cpp. "Syntax error" is here to catch this case.
  15372. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15373. +/* end confdefs.h. */
  15374. +#ifdef __STDC__
  15375. +# include <limits.h>
  15376. +#else
  15377. +# include <assert.h>
  15378. +#endif
  15379. + Syntax error
  15380. +_ACEOF
  15381. +if ac_fn_c_try_cpp "$LINENO"; then :
  15382. +
  15383. +else
  15384. + # Broken: fails on valid input.
  15385. +continue
  15386. +fi
  15387. +rm -f conftest.err conftest.$ac_ext
  15388. +
  15389. + # OK, works on sane cases. Now check whether nonexistent headers
  15390. + # can be detected and how.
  15391. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15392. +/* end confdefs.h. */
  15393. +#include <ac_nonexistent.h>
  15394. +_ACEOF
  15395. +if ac_fn_c_try_cpp "$LINENO"; then :
  15396. + # Broken: success on invalid input.
  15397. +continue
  15398. +else
  15399. + # Passes both tests.
  15400. +ac_preproc_ok=:
  15401. +break
  15402. +fi
  15403. +rm -f conftest.err conftest.$ac_ext
  15404. +
  15405. +done
  15406. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15407. +rm -f conftest.err conftest.$ac_ext
  15408. +if $ac_preproc_ok; then :
  15409. +
  15410. +else
  15411. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15412. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15413. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  15414. +See \`config.log' for more details." "$LINENO" 5; }
  15415. +fi
  15416. +
  15417. +ac_ext=c
  15418. +ac_cpp='$CPP $CPPFLAGS'
  15419. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15420. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15421. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15422. +
  15423. +
  15424. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  15425. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  15426. +if test "${ac_cv_path_GREP+set}" = set; then :
  15427. + $as_echo_n "(cached) " >&6
  15428. +else
  15429. + if test -z "$GREP"; then
  15430. + ac_path_GREP_found=false
  15431. + # Loop through the user's path and test for each of PROGNAME-LIST
  15432. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15433. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15434. +do
  15435. + IFS=$as_save_IFS
  15436. + test -z "$as_dir" && as_dir=.
  15437. + for ac_prog in grep ggrep; do
  15438. + for ac_exec_ext in '' $ac_executable_extensions; do
  15439. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  15440. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  15441. +# Check for GNU ac_path_GREP and select it if it is found.
  15442. + # Check for GNU $ac_path_GREP
  15443. +case `"$ac_path_GREP" --version 2>&1` in
  15444. +*GNU*)
  15445. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  15446. +*)
  15447. + ac_count=0
  15448. + $as_echo_n 0123456789 >"conftest.in"
  15449. + while :
  15450. + do
  15451. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  15452. + mv "conftest.tmp" "conftest.in"
  15453. + cp "conftest.in" "conftest.nl"
  15454. + $as_echo 'GREP' >> "conftest.nl"
  15455. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15456. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15457. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  15458. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  15459. + # Best one so far, save it but keep looking for a better one
  15460. + ac_cv_path_GREP="$ac_path_GREP"
  15461. + ac_path_GREP_max=$ac_count
  15462. + fi
  15463. + # 10*(2^10) chars as input seems more than enough
  15464. + test $ac_count -gt 10 && break
  15465. + done
  15466. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15467. +esac
  15468. +
  15469. + $ac_path_GREP_found && break 3
  15470. + done
  15471. + done
  15472. + done
  15473. +IFS=$as_save_IFS
  15474. + if test -z "$ac_cv_path_GREP"; then
  15475. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15476. + fi
  15477. +else
  15478. + ac_cv_path_GREP=$GREP
  15479. +fi
  15480. +
  15481. +fi
  15482. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  15483. +$as_echo "$ac_cv_path_GREP" >&6; }
  15484. + GREP="$ac_cv_path_GREP"
  15485. +
  15486. +
  15487. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15488. +$as_echo_n "checking for egrep... " >&6; }
  15489. +if test "${ac_cv_path_EGREP+set}" = set; then :
  15490. + $as_echo_n "(cached) " >&6
  15491. +else
  15492. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15493. + then ac_cv_path_EGREP="$GREP -E"
  15494. + else
  15495. + if test -z "$EGREP"; then
  15496. + ac_path_EGREP_found=false
  15497. + # Loop through the user's path and test for each of PROGNAME-LIST
  15498. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15499. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15500. +do
  15501. + IFS=$as_save_IFS
  15502. + test -z "$as_dir" && as_dir=.
  15503. + for ac_prog in egrep; do
  15504. + for ac_exec_ext in '' $ac_executable_extensions; do
  15505. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  15506. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  15507. +# Check for GNU ac_path_EGREP and select it if it is found.
  15508. + # Check for GNU $ac_path_EGREP
  15509. +case `"$ac_path_EGREP" --version 2>&1` in
  15510. +*GNU*)
  15511. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15512. +*)
  15513. + ac_count=0
  15514. + $as_echo_n 0123456789 >"conftest.in"
  15515. + while :
  15516. + do
  15517. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  15518. + mv "conftest.tmp" "conftest.in"
  15519. + cp "conftest.in" "conftest.nl"
  15520. + $as_echo 'EGREP' >> "conftest.nl"
  15521. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15522. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15523. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  15524. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15525. + # Best one so far, save it but keep looking for a better one
  15526. + ac_cv_path_EGREP="$ac_path_EGREP"
  15527. + ac_path_EGREP_max=$ac_count
  15528. + fi
  15529. + # 10*(2^10) chars as input seems more than enough
  15530. + test $ac_count -gt 10 && break
  15531. + done
  15532. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15533. +esac
  15534. +
  15535. + $ac_path_EGREP_found && break 3
  15536. + done
  15537. + done
  15538. + done
  15539. +IFS=$as_save_IFS
  15540. + if test -z "$ac_cv_path_EGREP"; then
  15541. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15542. + fi
  15543. +else
  15544. + ac_cv_path_EGREP=$EGREP
  15545. +fi
  15546. +
  15547. + fi
  15548. +fi
  15549. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15550. +$as_echo "$ac_cv_path_EGREP" >&6; }
  15551. + EGREP="$ac_cv_path_EGREP"
  15552. +
  15553. +
  15554. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  15555. +$as_echo_n "checking for ANSI C header files... " >&6; }
  15556. +if test "${ac_cv_header_stdc+set}" = set; then :
  15557. + $as_echo_n "(cached) " >&6
  15558. +else
  15559. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15560. +/* end confdefs.h. */
  15561. +#include <stdlib.h>
  15562. +#include <stdarg.h>
  15563. +#include <string.h>
  15564. +#include <float.h>
  15565. +
  15566. +int
  15567. +main ()
  15568. +{
  15569. +
  15570. + ;
  15571. + return 0;
  15572. +}
  15573. +_ACEOF
  15574. +if ac_fn_c_try_compile "$LINENO"; then :
  15575. + ac_cv_header_stdc=yes
  15576. +else
  15577. + ac_cv_header_stdc=no
  15578. +fi
  15579. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15580. +
  15581. +if test $ac_cv_header_stdc = yes; then
  15582. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15583. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15584. +/* end confdefs.h. */
  15585. +#include <string.h>
  15586. +
  15587. +_ACEOF
  15588. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15589. + $EGREP "memchr" >/dev/null 2>&1; then :
  15590. +
  15591. +else
  15592. + ac_cv_header_stdc=no
  15593. +fi
  15594. +rm -f conftest*
  15595. +
  15596. +fi
  15597. +
  15598. +if test $ac_cv_header_stdc = yes; then
  15599. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15600. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15601. +/* end confdefs.h. */
  15602. +#include <stdlib.h>
  15603. +
  15604. +_ACEOF
  15605. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15606. + $EGREP "free" >/dev/null 2>&1; then :
  15607. +
  15608. +else
  15609. + ac_cv_header_stdc=no
  15610. +fi
  15611. +rm -f conftest*
  15612. +
  15613. +fi
  15614. +
  15615. +if test $ac_cv_header_stdc = yes; then
  15616. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15617. + if test "$cross_compiling" = yes; then :
  15618. + :
  15619. +else
  15620. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15621. +/* end confdefs.h. */
  15622. +#include <ctype.h>
  15623. +#include <stdlib.h>
  15624. +#if ((' ' & 0x0FF) == 0x020)
  15625. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15626. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15627. +#else
  15628. +# define ISLOWER(c) \
  15629. + (('a' <= (c) && (c) <= 'i') \
  15630. + || ('j' <= (c) && (c) <= 'r') \
  15631. + || ('s' <= (c) && (c) <= 'z'))
  15632. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15633. +#endif
  15634. +
  15635. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15636. +int
  15637. +main ()
  15638. +{
  15639. + int i;
  15640. + for (i = 0; i < 256; i++)
  15641. + if (XOR (islower (i), ISLOWER (i))
  15642. + || toupper (i) != TOUPPER (i))
  15643. + return 2;
  15644. + return 0;
  15645. +}
  15646. +_ACEOF
  15647. +if ac_fn_c_try_run "$LINENO"; then :
  15648. +
  15649. +else
  15650. + ac_cv_header_stdc=no
  15651. +fi
  15652. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15653. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  15654. +fi
  15655. +
  15656. +fi
  15657. +fi
  15658. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  15659. +$as_echo "$ac_cv_header_stdc" >&6; }
  15660. +if test $ac_cv_header_stdc = yes; then
  15661. +
  15662. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  15663. +
  15664. +fi
  15665. +
  15666. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  15667. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  15668. + inttypes.h stdint.h unistd.h
  15669. +do :
  15670. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15671. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  15672. +"
  15673. +eval as_val=\$$as_ac_Header
  15674. + if test "x$as_val" = x""yes; then :
  15675. + cat >>confdefs.h <<_ACEOF
  15676. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15677. +_ACEOF
  15678. +
  15679. +fi
  15680. +
  15681. +done
  15682. +
  15683. +
  15684. +
  15685. + ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  15686. +if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  15687. + MINIX=yes
  15688. +else
  15689. + MINIX=
  15690. +fi
  15691. +
  15692. +
  15693. + if test "$MINIX" = yes; then
  15694. +
  15695. +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  15696. +
  15697. +
  15698. +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  15699. +
  15700. +
  15701. +$as_echo "#define _MINIX 1" >>confdefs.h
  15702. +
  15703. + fi
  15704. +
  15705. +
  15706. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  15707. +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  15708. +if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  15709. + $as_echo_n "(cached) " >&6
  15710. +else
  15711. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15712. +/* end confdefs.h. */
  15713. +
  15714. +# define __EXTENSIONS__ 1
  15715. + $ac_includes_default
  15716. +int
  15717. +main ()
  15718. +{
  15719. +
  15720. + ;
  15721. + return 0;
  15722. +}
  15723. +_ACEOF
  15724. +if ac_fn_c_try_compile "$LINENO"; then :
  15725. + ac_cv_safe_to_define___extensions__=yes
  15726. +else
  15727. + ac_cv_safe_to_define___extensions__=no
  15728. +fi
  15729. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15730. +fi
  15731. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  15732. +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  15733. + test $ac_cv_safe_to_define___extensions__ = yes &&
  15734. + $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  15735. +
  15736. + $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  15737. +
  15738. + $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  15739. +
  15740. + $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  15741. +
  15742. + $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  15743. +
  15744. +
  15745. +ac_ext=c
  15746. +ac_cpp='$CPP $CPPFLAGS'
  15747. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15748. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15749. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15750. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  15751. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  15752. +# On Suns, sometimes $CPP names a directory.
  15753. +if test -n "$CPP" && test -d "$CPP"; then
  15754. + CPP=
  15755. +fi
  15756. +if test -z "$CPP"; then
  15757. + if test "${ac_cv_prog_CPP+set}" = set; then :
  15758. + $as_echo_n "(cached) " >&6
  15759. +else
  15760. + # Double quotes because CPP needs to be expanded
  15761. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  15762. + do
  15763. + ac_preproc_ok=false
  15764. +for ac_c_preproc_warn_flag in '' yes
  15765. +do
  15766. + # Use a header file that comes with gcc, so configuring glibc
  15767. + # with a fresh cross-compiler works.
  15768. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15769. + # <limits.h> exists even on freestanding compilers.
  15770. + # On the NeXT, cc -E runs the code through the compiler's parser,
  15771. + # not just through cpp. "Syntax error" is here to catch this case.
  15772. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15773. +/* end confdefs.h. */
  15774. +#ifdef __STDC__
  15775. +# include <limits.h>
  15776. +#else
  15777. +# include <assert.h>
  15778. +#endif
  15779. + Syntax error
  15780. +_ACEOF
  15781. +if ac_fn_c_try_cpp "$LINENO"; then :
  15782. +
  15783. +else
  15784. + # Broken: fails on valid input.
  15785. +continue
  15786. +fi
  15787. +rm -f conftest.err conftest.$ac_ext
  15788. +
  15789. + # OK, works on sane cases. Now check whether nonexistent headers
  15790. + # can be detected and how.
  15791. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15792. +/* end confdefs.h. */
  15793. +#include <ac_nonexistent.h>
  15794. +_ACEOF
  15795. +if ac_fn_c_try_cpp "$LINENO"; then :
  15796. + # Broken: success on invalid input.
  15797. +continue
  15798. +else
  15799. + # Passes both tests.
  15800. +ac_preproc_ok=:
  15801. +break
  15802. +fi
  15803. +rm -f conftest.err conftest.$ac_ext
  15804. +
  15805. +done
  15806. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15807. +rm -f conftest.err conftest.$ac_ext
  15808. +if $ac_preproc_ok; then :
  15809. + break
  15810. +fi
  15811. +
  15812. + done
  15813. + ac_cv_prog_CPP=$CPP
  15814. +
  15815. +fi
  15816. + CPP=$ac_cv_prog_CPP
  15817. +else
  15818. + ac_cv_prog_CPP=$CPP
  15819. +fi
  15820. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  15821. +$as_echo "$CPP" >&6; }
  15822. +ac_preproc_ok=false
  15823. +for ac_c_preproc_warn_flag in '' yes
  15824. +do
  15825. + # Use a header file that comes with gcc, so configuring glibc
  15826. + # with a fresh cross-compiler works.
  15827. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15828. + # <limits.h> exists even on freestanding compilers.
  15829. + # On the NeXT, cc -E runs the code through the compiler's parser,
  15830. + # not just through cpp. "Syntax error" is here to catch this case.
  15831. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15832. +/* end confdefs.h. */
  15833. +#ifdef __STDC__
  15834. +# include <limits.h>
  15835. +#else
  15836. +# include <assert.h>
  15837. +#endif
  15838. + Syntax error
  15839. +_ACEOF
  15840. +if ac_fn_c_try_cpp "$LINENO"; then :
  15841. +
  15842. +else
  15843. + # Broken: fails on valid input.
  15844. +continue
  15845. +fi
  15846. +rm -f conftest.err conftest.$ac_ext
  15847. +
  15848. + # OK, works on sane cases. Now check whether nonexistent headers
  15849. + # can be detected and how.
  15850. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15851. +/* end confdefs.h. */
  15852. +#include <ac_nonexistent.h>
  15853. +_ACEOF
  15854. +if ac_fn_c_try_cpp "$LINENO"; then :
  15855. + # Broken: success on invalid input.
  15856. +continue
  15857. +else
  15858. + # Passes both tests.
  15859. +ac_preproc_ok=:
  15860. +break
  15861. +fi
  15862. +rm -f conftest.err conftest.$ac_ext
  15863. +
  15864. +done
  15865. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15866. +rm -f conftest.err conftest.$ac_ext
  15867. +if $ac_preproc_ok; then :
  15868. +
  15869. +else
  15870. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15871. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15872. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  15873. +See \`config.log' for more details." "$LINENO" 5; }
  15874. +fi
  15875. +
  15876. +ac_ext=c
  15877. +ac_cpp='$CPP $CPPFLAGS'
  15878. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15879. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15880. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15881. +
  15882. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  15883. +$as_echo_n "checking for inline... " >&6; }
  15884. +if test "${ac_cv_c_inline+set}" = set; then :
  15885. + $as_echo_n "(cached) " >&6
  15886. +else
  15887. + ac_cv_c_inline=no
  15888. +for ac_kw in inline __inline__ __inline; do
  15889. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15890. +/* end confdefs.h. */
  15891. +#ifndef __cplusplus
  15892. +typedef int foo_t;
  15893. +static $ac_kw foo_t static_foo () {return 0; }
  15894. +$ac_kw foo_t foo () {return 0; }
  15895. +#endif
  15896. +
  15897. +_ACEOF
  15898. +if ac_fn_c_try_compile "$LINENO"; then :
  15899. + ac_cv_c_inline=$ac_kw
  15900. +fi
  15901. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15902. + test "$ac_cv_c_inline" != no && break
  15903. +done
  15904. +
  15905. +fi
  15906. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  15907. +$as_echo "$ac_cv_c_inline" >&6; }
  15908. +
  15909. +case $ac_cv_c_inline in
  15910. + inline | yes) ;;
  15911. + *)
  15912. + case $ac_cv_c_inline in
  15913. + no) ac_val=;;
  15914. + *) ac_val=$ac_cv_c_inline;;
  15915. + esac
  15916. + cat >>confdefs.h <<_ACEOF
  15917. +#ifndef __cplusplus
  15918. +#define inline $ac_val
  15919. +#endif
  15920. +_ACEOF
  15921. + ;;
  15922. +esac
  15923. +
  15924. +
  15925. +# Check whether --enable-largefile was given.
  15926. +if test "${enable_largefile+set}" = set; then :
  15927. + enableval=$enable_largefile;
  15928. +fi
  15929. +
  15930. +if test "$enable_largefile" != no; then
  15931. +
  15932. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15933. +$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  15934. +if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  15935. + $as_echo_n "(cached) " >&6
  15936. +else
  15937. + ac_cv_sys_largefile_CC=no
  15938. + if test "$GCC" != yes; then
  15939. + ac_save_CC=$CC
  15940. + while :; do
  15941. + # IRIX 6.2 and later do not support large files by default,
  15942. + # so use the C compiler's -n32 option if that helps.
  15943. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15944. +/* end confdefs.h. */
  15945. +#include <sys/types.h>
  15946. + /* Check that off_t can represent 2**63 - 1 correctly.
  15947. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15948. + since some C++ compilers masquerading as C compilers
  15949. + incorrectly reject 9223372036854775807. */
  15950. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15951. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15952. + && LARGE_OFF_T % 2147483647 == 1)
  15953. + ? 1 : -1];
  15954. +int
  15955. +main ()
  15956. +{
  15957. +
  15958. + ;
  15959. + return 0;
  15960. +}
  15961. +_ACEOF
  15962. + if ac_fn_c_try_compile "$LINENO"; then :
  15963. + break
  15964. +fi
  15965. +rm -f core conftest.err conftest.$ac_objext
  15966. + CC="$CC -n32"
  15967. + if ac_fn_c_try_compile "$LINENO"; then :
  15968. + ac_cv_sys_largefile_CC=' -n32'; break
  15969. +fi
  15970. +rm -f core conftest.err conftest.$ac_objext
  15971. + break
  15972. + done
  15973. + CC=$ac_save_CC
  15974. + rm -f conftest.$ac_ext
  15975. + fi
  15976. +fi
  15977. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15978. +$as_echo "$ac_cv_sys_largefile_CC" >&6; }
  15979. + if test "$ac_cv_sys_largefile_CC" != no; then
  15980. + CC=$CC$ac_cv_sys_largefile_CC
  15981. + fi
  15982. +
  15983. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15984. +$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15985. +if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  15986. + $as_echo_n "(cached) " >&6
  15987. +else
  15988. + while :; do
  15989. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15990. +/* end confdefs.h. */
  15991. +#include <sys/types.h>
  15992. + /* Check that off_t can represent 2**63 - 1 correctly.
  15993. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15994. + since some C++ compilers masquerading as C compilers
  15995. + incorrectly reject 9223372036854775807. */
  15996. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15997. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15998. + && LARGE_OFF_T % 2147483647 == 1)
  15999. + ? 1 : -1];
  16000. +int
  16001. +main ()
  16002. +{
  16003. +
  16004. + ;
  16005. + return 0;
  16006. +}
  16007. +_ACEOF
  16008. +if ac_fn_c_try_compile "$LINENO"; then :
  16009. + ac_cv_sys_file_offset_bits=no; break
  16010. +fi
  16011. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16012. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16013. +/* end confdefs.h. */
  16014. +#define _FILE_OFFSET_BITS 64
  16015. +#include <sys/types.h>
  16016. + /* Check that off_t can represent 2**63 - 1 correctly.
  16017. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16018. + since some C++ compilers masquerading as C compilers
  16019. + incorrectly reject 9223372036854775807. */
  16020. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  16021. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16022. + && LARGE_OFF_T % 2147483647 == 1)
  16023. + ? 1 : -1];
  16024. +int
  16025. +main ()
  16026. +{
  16027. +
  16028. + ;
  16029. + return 0;
  16030. +}
  16031. +_ACEOF
  16032. +if ac_fn_c_try_compile "$LINENO"; then :
  16033. + ac_cv_sys_file_offset_bits=64; break
  16034. +fi
  16035. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16036. + ac_cv_sys_file_offset_bits=unknown
  16037. + break
  16038. +done
  16039. +fi
  16040. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  16041. +$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  16042. +case $ac_cv_sys_file_offset_bits in #(
  16043. + no | unknown) ;;
  16044. + *)
  16045. +cat >>confdefs.h <<_ACEOF
  16046. +#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  16047. +_ACEOF
  16048. +;;
  16049. +esac
  16050. +rm -rf conftest*
  16051. + if test $ac_cv_sys_file_offset_bits = unknown; then
  16052. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  16053. +$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  16054. +if test "${ac_cv_sys_large_files+set}" = set; then :
  16055. + $as_echo_n "(cached) " >&6
  16056. +else
  16057. + while :; do
  16058. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16059. +/* end confdefs.h. */
  16060. +#include <sys/types.h>
  16061. + /* Check that off_t can represent 2**63 - 1 correctly.
  16062. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16063. + since some C++ compilers masquerading as C compilers
  16064. + incorrectly reject 9223372036854775807. */
  16065. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  16066. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16067. + && LARGE_OFF_T % 2147483647 == 1)
  16068. + ? 1 : -1];
  16069. +int
  16070. +main ()
  16071. +{
  16072. +
  16073. + ;
  16074. + return 0;
  16075. +}
  16076. +_ACEOF
  16077. +if ac_fn_c_try_compile "$LINENO"; then :
  16078. + ac_cv_sys_large_files=no; break
  16079. +fi
  16080. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16081. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16082. +/* end confdefs.h. */
  16083. +#define _LARGE_FILES 1
  16084. +#include <sys/types.h>
  16085. + /* Check that off_t can represent 2**63 - 1 correctly.
  16086. + We can't simply define LARGE_OFF_T to be 9223372036854775807,
  16087. + since some C++ compilers masquerading as C compilers
  16088. + incorrectly reject 9223372036854775807. */
  16089. +#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  16090. + int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  16091. + && LARGE_OFF_T % 2147483647 == 1)
  16092. + ? 1 : -1];
  16093. +int
  16094. +main ()
  16095. +{
  16096. +
  16097. + ;
  16098. + return 0;
  16099. +}
  16100. +_ACEOF
  16101. +if ac_fn_c_try_compile "$LINENO"; then :
  16102. + ac_cv_sys_large_files=1; break
  16103. +fi
  16104. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16105. + ac_cv_sys_large_files=unknown
  16106. + break
  16107. +done
  16108. +fi
  16109. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  16110. +$as_echo "$ac_cv_sys_large_files" >&6; }
  16111. +case $ac_cv_sys_large_files in #(
  16112. + no | unknown) ;;
  16113. + *)
  16114. +cat >>confdefs.h <<_ACEOF
  16115. +#define _LARGE_FILES $ac_cv_sys_large_files
  16116. +_ACEOF
  16117. +;;
  16118. +esac
  16119. +rm -rf conftest*
  16120. + fi
  16121. +fi
  16122. +
  16123. +
  16124. +# sizeof(char) is 1 by definition.
  16125. +# The cast to long int works around a bug in the HP C Compiler
  16126. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16127. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16128. +# This bug is HP SR number 8606223364.
  16129. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  16130. +$as_echo_n "checking size of void *... " >&6; }
  16131. +if test "${ac_cv_sizeof_void_p+set}" = set; then :
  16132. + $as_echo_n "(cached) " >&6
  16133. +else
  16134. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  16135. +
  16136. +else
  16137. + if test "$ac_cv_type_void_p" = yes; then
  16138. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16139. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16140. +{ as_fn_set_status 77
  16141. +as_fn_error "cannot compute sizeof (void *)
  16142. +See \`config.log' for more details." "$LINENO" 5; }; }
  16143. + else
  16144. + ac_cv_sizeof_void_p=0
  16145. + fi
  16146. +fi
  16147. +
  16148. +fi
  16149. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  16150. +$as_echo "$ac_cv_sizeof_void_p" >&6; }
  16151. +
  16152. +
  16153. +
  16154. +cat >>confdefs.h <<_ACEOF
  16155. +#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  16156. +_ACEOF
  16157. +
  16158. +
  16159. +# The cast to long int works around a bug in the HP C Compiler
  16160. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16161. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16162. +# This bug is HP SR number 8606223364.
  16163. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  16164. +$as_echo_n "checking size of short... " >&6; }
  16165. +if test "${ac_cv_sizeof_short+set}" = set; then :
  16166. + $as_echo_n "(cached) " >&6
  16167. +else
  16168. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  16169. +
  16170. +else
  16171. + if test "$ac_cv_type_short" = yes; then
  16172. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16173. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16174. +{ as_fn_set_status 77
  16175. +as_fn_error "cannot compute sizeof (short)
  16176. +See \`config.log' for more details." "$LINENO" 5; }; }
  16177. + else
  16178. + ac_cv_sizeof_short=0
  16179. + fi
  16180. +fi
  16181. +
  16182. +fi
  16183. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  16184. +$as_echo "$ac_cv_sizeof_short" >&6; }
  16185. +
  16186. +
  16187. +
  16188. +cat >>confdefs.h <<_ACEOF
  16189. +#define SIZEOF_SHORT $ac_cv_sizeof_short
  16190. +_ACEOF
  16191. +
  16192. +
  16193. +# The cast to long int works around a bug in the HP C Compiler
  16194. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16195. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16196. +# This bug is HP SR number 8606223364.
  16197. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  16198. +$as_echo_n "checking size of int... " >&6; }
  16199. +if test "${ac_cv_sizeof_int+set}" = set; then :
  16200. + $as_echo_n "(cached) " >&6
  16201. +else
  16202. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  16203. +
  16204. +else
  16205. + if test "$ac_cv_type_int" = yes; then
  16206. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16207. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16208. +{ as_fn_set_status 77
  16209. +as_fn_error "cannot compute sizeof (int)
  16210. +See \`config.log' for more details." "$LINENO" 5; }; }
  16211. + else
  16212. + ac_cv_sizeof_int=0
  16213. + fi
  16214. +fi
  16215. +
  16216. +fi
  16217. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  16218. +$as_echo "$ac_cv_sizeof_int" >&6; }
  16219. +
  16220. +
  16221. +
  16222. +cat >>confdefs.h <<_ACEOF
  16223. +#define SIZEOF_INT $ac_cv_sizeof_int
  16224. +_ACEOF
  16225. +
  16226. +
  16227. +# The cast to long int works around a bug in the HP C Compiler
  16228. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16229. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16230. +# This bug is HP SR number 8606223364.
  16231. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  16232. +$as_echo_n "checking size of long... " >&6; }
  16233. +if test "${ac_cv_sizeof_long+set}" = set; then :
  16234. + $as_echo_n "(cached) " >&6
  16235. +else
  16236. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  16237. +
  16238. +else
  16239. + if test "$ac_cv_type_long" = yes; then
  16240. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16241. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16242. +{ as_fn_set_status 77
  16243. +as_fn_error "cannot compute sizeof (long)
  16244. +See \`config.log' for more details." "$LINENO" 5; }; }
  16245. + else
  16246. + ac_cv_sizeof_long=0
  16247. + fi
  16248. +fi
  16249. +
  16250. +fi
  16251. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  16252. +$as_echo "$ac_cv_sizeof_long" >&6; }
  16253. +
  16254. +
  16255. +
  16256. +cat >>confdefs.h <<_ACEOF
  16257. +#define SIZEOF_LONG $ac_cv_sizeof_long
  16258. +_ACEOF
  16259. +
  16260. +
  16261. +ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  16262. +if test "x$ac_cv_type_long_long" = x""yes; then :
  16263. +
  16264. +cat >>confdefs.h <<_ACEOF
  16265. +#define HAVE_LONG_LONG 1
  16266. +_ACEOF
  16267. +
  16268. +# The cast to long int works around a bug in the HP C Compiler
  16269. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16270. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16271. +# This bug is HP SR number 8606223364.
  16272. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  16273. +$as_echo_n "checking size of long long... " >&6; }
  16274. +if test "${ac_cv_sizeof_long_long+set}" = set; then :
  16275. + $as_echo_n "(cached) " >&6
  16276. +else
  16277. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  16278. +
  16279. +else
  16280. + if test "$ac_cv_type_long_long" = yes; then
  16281. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16282. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16283. +{ as_fn_set_status 77
  16284. +as_fn_error "cannot compute sizeof (long long)
  16285. +See \`config.log' for more details." "$LINENO" 5; }; }
  16286. + else
  16287. + ac_cv_sizeof_long_long=0
  16288. + fi
  16289. +fi
  16290. +
  16291. +fi
  16292. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  16293. +$as_echo "$ac_cv_sizeof_long_long" >&6; }
  16294. +
  16295. +
  16296. +
  16297. +cat >>confdefs.h <<_ACEOF
  16298. +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  16299. +_ACEOF
  16300. +
  16301. +
  16302. +fi
  16303. +
  16304. +ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
  16305. +if test "x$ac_cv_type___int64" = x""yes; then :
  16306. +
  16307. +cat >>confdefs.h <<_ACEOF
  16308. +#define HAVE___INT64 1
  16309. +_ACEOF
  16310. +
  16311. +# The cast to long int works around a bug in the HP C Compiler
  16312. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16313. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16314. +# This bug is HP SR number 8606223364.
  16315. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
  16316. +$as_echo_n "checking size of __int64... " >&6; }
  16317. +if test "${ac_cv_sizeof___int64+set}" = set; then :
  16318. + $as_echo_n "(cached) " >&6
  16319. +else
  16320. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
  16321. +
  16322. +else
  16323. + if test "$ac_cv_type___int64" = yes; then
  16324. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16325. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16326. +{ as_fn_set_status 77
  16327. +as_fn_error "cannot compute sizeof (__int64)
  16328. +See \`config.log' for more details." "$LINENO" 5; }; }
  16329. + else
  16330. + ac_cv_sizeof___int64=0
  16331. + fi
  16332. +fi
  16333. +
  16334. +fi
  16335. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
  16336. +$as_echo "$ac_cv_sizeof___int64" >&6; }
  16337. +
  16338. +
  16339. +
  16340. +cat >>confdefs.h <<_ACEOF
  16341. +#define SIZEOF___INT64 $ac_cv_sizeof___int64
  16342. +_ACEOF
  16343. +
  16344. +
  16345. +fi
  16346. +
  16347. +ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  16348. +case $ac_cv_c_int8_t in #(
  16349. + no|yes) ;; #(
  16350. + *)
  16351. +
  16352. +cat >>confdefs.h <<_ACEOF
  16353. +#define int8_t $ac_cv_c_int8_t
  16354. +_ACEOF
  16355. +;;
  16356. +esac
  16357. +
  16358. +ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  16359. +case $ac_cv_c_int16_t in #(
  16360. + no|yes) ;; #(
  16361. + *)
  16362. +
  16363. +cat >>confdefs.h <<_ACEOF
  16364. +#define int16_t $ac_cv_c_int16_t
  16365. +_ACEOF
  16366. +;;
  16367. +esac
  16368. +
  16369. +ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  16370. +case $ac_cv_c_int32_t in #(
  16371. + no|yes) ;; #(
  16372. + *)
  16373. +
  16374. +cat >>confdefs.h <<_ACEOF
  16375. +#define int32_t $ac_cv_c_int32_t
  16376. +_ACEOF
  16377. +;;
  16378. +esac
  16379. +
  16380. +ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  16381. +case $ac_cv_c_int64_t in #(
  16382. + no|yes) ;; #(
  16383. + *)
  16384. +
  16385. +cat >>confdefs.h <<_ACEOF
  16386. +#define int64_t $ac_cv_c_int64_t
  16387. +_ACEOF
  16388. +;;
  16389. +esac
  16390. +
  16391. +
  16392. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  16393. +$as_echo_n "checking for long long int... " >&6; }
  16394. +if test "${ac_cv_type_long_long_int+set}" = set; then :
  16395. + $as_echo_n "(cached) " >&6
  16396. +else
  16397. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16398. +/* end confdefs.h. */
  16399. +
  16400. + /* For now, do not test the preprocessor; as of 2007 there are too many
  16401. + implementations with broken preprocessors. Perhaps this can
  16402. + be revisited in 2012. In the meantime, code should not expect
  16403. + #if to work with literals wider than 32 bits. */
  16404. + /* Test literals. */
  16405. + long long int ll = 9223372036854775807ll;
  16406. + long long int nll = -9223372036854775807LL;
  16407. + unsigned long long int ull = 18446744073709551615ULL;
  16408. + /* Test constant expressions. */
  16409. + typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  16410. + ? 1 : -1)];
  16411. + typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  16412. + ? 1 : -1)];
  16413. + int i = 63;
  16414. +int
  16415. +main ()
  16416. +{
  16417. +/* Test availability of runtime routines for shift and division. */
  16418. + long long int llmax = 9223372036854775807ll;
  16419. + unsigned long long int ullmax = 18446744073709551615ull;
  16420. + return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  16421. + | (llmax / ll) | (llmax % ll)
  16422. + | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  16423. + | (ullmax / ull) | (ullmax % ull));
  16424. + ;
  16425. + return 0;
  16426. +}
  16427. +
  16428. +_ACEOF
  16429. +if ac_fn_c_try_link "$LINENO"; then :
  16430. + if test "$cross_compiling" = yes; then :
  16431. + ac_cv_type_long_long_int=yes
  16432. +else
  16433. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16434. +/* end confdefs.h. */
  16435. +#include <limits.h>
  16436. + #ifndef LLONG_MAX
  16437. + # define HALF \
  16438. + (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  16439. + # define LLONG_MAX (HALF - 1 + HALF)
  16440. + #endif
  16441. +int
  16442. +main ()
  16443. +{
  16444. +long long int n = 1;
  16445. + int i;
  16446. + for (i = 0; ; i++)
  16447. + {
  16448. + long long int m = n << i;
  16449. + if (m >> i != n)
  16450. + return 1;
  16451. + if (LLONG_MAX / 2 < m)
  16452. + break;
  16453. + }
  16454. + return 0;
  16455. + ;
  16456. + return 0;
  16457. +}
  16458. +_ACEOF
  16459. +if ac_fn_c_try_run "$LINENO"; then :
  16460. + ac_cv_type_long_long_int=yes
  16461. +else
  16462. + ac_cv_type_long_long_int=no
  16463. +fi
  16464. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16465. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  16466. +fi
  16467. +
  16468. +else
  16469. + ac_cv_type_long_long_int=no
  16470. +fi
  16471. +rm -f core conftest.err conftest.$ac_objext \
  16472. + conftest$ac_exeext conftest.$ac_ext
  16473. +fi
  16474. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  16475. +$as_echo "$ac_cv_type_long_long_int" >&6; }
  16476. + if test $ac_cv_type_long_long_int = yes; then
  16477. +
  16478. +$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  16479. +
  16480. + fi
  16481. +
  16482. +
  16483. +
  16484. + ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
  16485. +if test "x$ac_cv_type_intmax_t" = x""yes; then :
  16486. +
  16487. +$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  16488. +
  16489. +else
  16490. + test $ac_cv_type_long_long_int = yes \
  16491. + && ac_type='long long int' \
  16492. + || ac_type='long int'
  16493. +
  16494. +cat >>confdefs.h <<_ACEOF
  16495. +#define intmax_t $ac_type
  16496. +_ACEOF
  16497. +
  16498. +fi
  16499. +
  16500. +
  16501. +
  16502. + ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  16503. +if test "x$ac_cv_type_intptr_t" = x""yes; then :
  16504. +
  16505. +$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
  16506. +
  16507. +else
  16508. + for ac_type in 'int' 'long int' 'long long int'; do
  16509. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16510. +/* end confdefs.h. */
  16511. +$ac_includes_default
  16512. +int
  16513. +main ()
  16514. +{
  16515. +static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  16516. +test_array [0] = 0
  16517. +
  16518. + ;
  16519. + return 0;
  16520. +}
  16521. +_ACEOF
  16522. +if ac_fn_c_try_compile "$LINENO"; then :
  16523. +
  16524. +cat >>confdefs.h <<_ACEOF
  16525. +#define intptr_t $ac_type
  16526. +_ACEOF
  16527. +
  16528. + ac_type=
  16529. +fi
  16530. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16531. + test -z "$ac_type" && break
  16532. + done
  16533. +fi
  16534. +
  16535. +
  16536. +ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  16537. +case $ac_cv_c_uint8_t in #(
  16538. + no|yes) ;; #(
  16539. + *)
  16540. +
  16541. +$as_echo "#define _UINT8_T 1" >>confdefs.h
  16542. +
  16543. +
  16544. +cat >>confdefs.h <<_ACEOF
  16545. +#define uint8_t $ac_cv_c_uint8_t
  16546. +_ACEOF
  16547. +;;
  16548. + esac
  16549. +
  16550. +ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  16551. +case $ac_cv_c_uint16_t in #(
  16552. + no|yes) ;; #(
  16553. + *)
  16554. +
  16555. +
  16556. +cat >>confdefs.h <<_ACEOF
  16557. +#define uint16_t $ac_cv_c_uint16_t
  16558. +_ACEOF
  16559. +;;
  16560. + esac
  16561. +
  16562. +ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  16563. +case $ac_cv_c_uint32_t in #(
  16564. + no|yes) ;; #(
  16565. + *)
  16566. +
  16567. +$as_echo "#define _UINT32_T 1" >>confdefs.h
  16568. +
  16569. +
  16570. +cat >>confdefs.h <<_ACEOF
  16571. +#define uint32_t $ac_cv_c_uint32_t
  16572. +_ACEOF
  16573. +;;
  16574. + esac
  16575. +
  16576. +ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  16577. +case $ac_cv_c_uint64_t in #(
  16578. + no|yes) ;; #(
  16579. + *)
  16580. +
  16581. +$as_echo "#define _UINT64_T 1" >>confdefs.h
  16582. +
  16583. +
  16584. +cat >>confdefs.h <<_ACEOF
  16585. +#define uint64_t $ac_cv_c_uint64_t
  16586. +_ACEOF
  16587. +;;
  16588. + esac
  16589. +
  16590. +
  16591. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  16592. +$as_echo_n "checking for unsigned long long int... " >&6; }
  16593. +if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  16594. + $as_echo_n "(cached) " >&6
  16595. +else
  16596. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16597. +/* end confdefs.h. */
  16598. +
  16599. + /* For now, do not test the preprocessor; as of 2007 there are too many
  16600. + implementations with broken preprocessors. Perhaps this can
  16601. + be revisited in 2012. In the meantime, code should not expect
  16602. + #if to work with literals wider than 32 bits. */
  16603. + /* Test literals. */
  16604. + long long int ll = 9223372036854775807ll;
  16605. + long long int nll = -9223372036854775807LL;
  16606. + unsigned long long int ull = 18446744073709551615ULL;
  16607. + /* Test constant expressions. */
  16608. + typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  16609. + ? 1 : -1)];
  16610. + typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  16611. + ? 1 : -1)];
  16612. + int i = 63;
  16613. +int
  16614. +main ()
  16615. +{
  16616. +/* Test availability of runtime routines for shift and division. */
  16617. + long long int llmax = 9223372036854775807ll;
  16618. + unsigned long long int ullmax = 18446744073709551615ull;
  16619. + return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  16620. + | (llmax / ll) | (llmax % ll)
  16621. + | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  16622. + | (ullmax / ull) | (ullmax % ull));
  16623. + ;
  16624. + return 0;
  16625. +}
  16626. +
  16627. +_ACEOF
  16628. +if ac_fn_c_try_link "$LINENO"; then :
  16629. + ac_cv_type_unsigned_long_long_int=yes
  16630. +else
  16631. + ac_cv_type_unsigned_long_long_int=no
  16632. +fi
  16633. +rm -f core conftest.err conftest.$ac_objext \
  16634. + conftest$ac_exeext conftest.$ac_ext
  16635. +fi
  16636. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  16637. +$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  16638. + if test $ac_cv_type_unsigned_long_long_int = yes; then
  16639. +
  16640. +$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  16641. +
  16642. + fi
  16643. +
  16644. +
  16645. +
  16646. + ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
  16647. +if test "x$ac_cv_type_uintmax_t" = x""yes; then :
  16648. +
  16649. +$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  16650. +
  16651. +else
  16652. + test $ac_cv_type_unsigned_long_long_int = yes \
  16653. + && ac_type='unsigned long long int' \
  16654. + || ac_type='unsigned long int'
  16655. +
  16656. +cat >>confdefs.h <<_ACEOF
  16657. +#define uintmax_t $ac_type
  16658. +_ACEOF
  16659. +
  16660. +fi
  16661. +
  16662. +
  16663. +
  16664. + ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  16665. +if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  16666. +
  16667. +$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  16668. +
  16669. +else
  16670. + for ac_type in 'unsigned int' 'unsigned long int' \
  16671. + 'unsigned long long int'; do
  16672. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16673. +/* end confdefs.h. */
  16674. +$ac_includes_default
  16675. +int
  16676. +main ()
  16677. +{
  16678. +static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  16679. +test_array [0] = 0
  16680. +
  16681. + ;
  16682. + return 0;
  16683. +}
  16684. +_ACEOF
  16685. +if ac_fn_c_try_compile "$LINENO"; then :
  16686. +
  16687. +cat >>confdefs.h <<_ACEOF
  16688. +#define uintptr_t $ac_type
  16689. +_ACEOF
  16690. +
  16691. + ac_type=
  16692. +fi
  16693. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16694. + test -z "$ac_type" && break
  16695. + done
  16696. +fi
  16697. +
  16698. +
  16699. +
  16700. +
  16701. +
  16702. +
  16703. +
  16704. +
  16705. +
  16706. +
  16707. +
  16708. +
  16709. +
  16710. +
  16711. +
  16712. +# ---------------------
  16713. +# Warnings and checking
  16714. +# ---------------------
  16715. +
  16716. +# Check $CC warning features (if it's GCC).
  16717. +# We want to use -pedantic, but we don't want warnings about
  16718. +# * 'long long'
  16719. +# * variadic macros
  16720. +# * overlong strings
  16721. +# * C++11 narrowing conversions in { }
  16722. +# So, we only use -pedantic if we can disable those warnings.
  16723. +
  16724. +# In stage 1, disable -Wformat warnings from old GCCs about new % codes
  16725. +# Check whether --enable-build-format-warnings was given.
  16726. +if test "${enable_build_format_warnings+set}" = set; then :
  16727. + enableval=$enable_build_format_warnings;
  16728. +else
  16729. + enable_build_format_warnings=yes
  16730. +fi
  16731. +
  16732. +if test $enable_build_format_warnings = no; then :
  16733. + wf_opt=-Wno-format
  16734. +else
  16735. + wf_opt=
  16736. +fi
  16737. +loose_warn=
  16738. +save_CFLAGS="$CFLAGS"
  16739. +for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
  16740. + # Do the check with the no- prefix removed since gcc silently
  16741. + # accepts any -Wno-* option on purpose
  16742. + case $real_option in
  16743. + -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  16744. + *) option=$real_option ;;
  16745. + esac
  16746. + as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  16747. +
  16748. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  16749. +$as_echo_n "checking whether $CC supports $option... " >&6; }
  16750. +if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
  16751. + $as_echo_n "(cached) " >&6
  16752. +else
  16753. + CFLAGS="$option"
  16754. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16755. +/* end confdefs.h. */
  16756. +
  16757. +int
  16758. +main ()
  16759. +{
  16760. +
  16761. + ;
  16762. + return 0;
  16763. +}
  16764. +_ACEOF
  16765. +if ac_fn_c_try_compile "$LINENO"; then :
  16766. + eval "$as_acx_Woption=yes"
  16767. +else
  16768. + eval "$as_acx_Woption=no"
  16769. +fi
  16770. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16771. +
  16772. +fi
  16773. +eval ac_res=\$$as_acx_Woption
  16774. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16775. +$as_echo "$ac_res" >&6; }
  16776. + if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  16777. + loose_warn="$loose_warn${loose_warn:+ }$real_option"
  16778. +fi
  16779. + done
  16780. +CFLAGS="$save_CFLAGS"
  16781. +
  16782. +c_loose_warn=
  16783. +save_CFLAGS="$CFLAGS"
  16784. +for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
  16785. + # Do the check with the no- prefix removed since gcc silently
  16786. + # accepts any -Wno-* option on purpose
  16787. + case $real_option in
  16788. + -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  16789. + *) option=$real_option ;;
  16790. + esac
  16791. + as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  16792. +
  16793. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  16794. +$as_echo_n "checking whether $CC supports $option... " >&6; }
  16795. +if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
  16796. + $as_echo_n "(cached) " >&6
  16797. +else
  16798. + CFLAGS="$option"
  16799. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16800. +/* end confdefs.h. */
  16801. +
  16802. +int
  16803. +main ()
  16804. +{
  16805. +
  16806. + ;
  16807. + return 0;
  16808. +}
  16809. +_ACEOF
  16810. +if ac_fn_c_try_compile "$LINENO"; then :
  16811. + eval "$as_acx_Woption=yes"
  16812. +else
  16813. + eval "$as_acx_Woption=no"
  16814. +fi
  16815. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16816. +
  16817. +fi
  16818. +eval ac_res=\$$as_acx_Woption
  16819. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16820. +$as_echo "$ac_res" >&6; }
  16821. + if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  16822. + c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
  16823. +fi
  16824. + done
  16825. +CFLAGS="$save_CFLAGS"
  16826. +
  16827. +strict_warn=
  16828. +save_CFLAGS="$CFLAGS"
  16829. +for real_option in -Wmissing-format-attribute; do
  16830. + # Do the check with the no- prefix removed since gcc silently
  16831. + # accepts any -Wno-* option on purpose
  16832. + case $real_option in
  16833. + -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  16834. + *) option=$real_option ;;
  16835. + esac
  16836. + as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  16837. +
  16838. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  16839. +$as_echo_n "checking whether $CC supports $option... " >&6; }
  16840. +if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
  16841. + $as_echo_n "(cached) " >&6
  16842. +else
  16843. + CFLAGS="$option"
  16844. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16845. +/* end confdefs.h. */
  16846. +
  16847. +int
  16848. +main ()
  16849. +{
  16850. +
  16851. + ;
  16852. + return 0;
  16853. +}
  16854. +_ACEOF
  16855. +if ac_fn_c_try_compile "$LINENO"; then :
  16856. + eval "$as_acx_Woption=yes"
  16857. +else
  16858. + eval "$as_acx_Woption=no"
  16859. +fi
  16860. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16861. +
  16862. +fi
  16863. +eval ac_res=\$$as_acx_Woption
  16864. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16865. +$as_echo "$ac_res" >&6; }
  16866. + if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  16867. + strict_warn="$strict_warn${strict_warn:+ }$real_option"
  16868. +fi
  16869. + done
  16870. +CFLAGS="$save_CFLAGS"
  16871. +
  16872. +c_strict_warn=
  16873. +save_CFLAGS="$CFLAGS"
  16874. +for real_option in -Wold-style-definition -Wc++-compat; do
  16875. + # Do the check with the no- prefix removed since gcc silently
  16876. + # accepts any -Wno-* option on purpose
  16877. + case $real_option in
  16878. + -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  16879. + *) option=$real_option ;;
  16880. + esac
  16881. + as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  16882. +
  16883. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  16884. +$as_echo_n "checking whether $CC supports $option... " >&6; }
  16885. +if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
  16886. + $as_echo_n "(cached) " >&6
  16887. +else
  16888. + CFLAGS="$option"
  16889. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16890. +/* end confdefs.h. */
  16891. +
  16892. +int
  16893. +main ()
  16894. +{
  16895. +
  16896. + ;
  16897. + return 0;
  16898. +}
  16899. +_ACEOF
  16900. +if ac_fn_c_try_compile "$LINENO"; then :
  16901. + eval "$as_acx_Woption=yes"
  16902. +else
  16903. + eval "$as_acx_Woption=no"
  16904. +fi
  16905. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16906. +
  16907. +fi
  16908. +eval ac_res=\$$as_acx_Woption
  16909. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16910. +$as_echo "$ac_res" >&6; }
  16911. + if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  16912. + c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
  16913. +fi
  16914. + done
  16915. +CFLAGS="$save_CFLAGS"
  16916. +
  16917. +# Do the check with the no- prefix removed from the warning options
  16918. +# since gcc silently accepts any -Wno-* option on purpose
  16919. +if test "$GCC" = yes; then :
  16920. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
  16921. +$as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
  16922. +if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
  16923. + $as_echo_n "(cached) " >&6
  16924. +else
  16925. + save_CFLAGS="$CFLAGS"
  16926. +CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
  16927. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16928. +/* end confdefs.h. */
  16929. +
  16930. +int
  16931. +main ()
  16932. +{
  16933. +
  16934. + ;
  16935. + return 0;
  16936. +}
  16937. +_ACEOF
  16938. +if ac_fn_c_try_compile "$LINENO"; then :
  16939. + acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
  16940. +else
  16941. + acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
  16942. +fi
  16943. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16944. +CFLAGS="$save_CFLAGS"
  16945. +fi
  16946. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
  16947. +$as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
  16948. +if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
  16949. + strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
  16950. +fi
  16951. +
  16952. +fi
  16953. +
  16954. +# Check whether --enable-werror-always was given.
  16955. +if test "${enable_werror_always+set}" = set; then :
  16956. + enableval=$enable_werror_always;
  16957. +else
  16958. + enable_werror_always=no
  16959. +fi
  16960. +
  16961. +if test $enable_werror_always = yes; then :
  16962. + strict_warn="$strict_warn${strict_warn:+ }-Werror"
  16963. +fi
  16964. +
  16965. +
  16966. +
  16967. +# The above macros do nothing if the compiler is not GCC. However, the
  16968. +# Makefile has more goo to add other flags, so these variables are used
  16969. +# to enable warnings only for GCC.
  16970. +warn_cflags=
  16971. +warn_cxxflags=
  16972. +if test "x$GCC" = "xyes"; then
  16973. + warn_cflags='$(GCC_WARN_CFLAGS)'
  16974. + warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
  16975. +fi
  16976. +
  16977. +
  16978. +
  16979. +# Disable exceptions and RTTI if building with g++
  16980. +noexception_flags=
  16981. +save_CFLAGS="$CFLAGS"
  16982. +for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
  16983. + # Do the check with the no- prefix removed since gcc silently
  16984. + # accepts any -Wno-* option on purpose
  16985. + case $real_option in
  16986. + -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  16987. + *) option=$real_option ;;
  16988. + esac
  16989. + as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  16990. +
  16991. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  16992. +$as_echo_n "checking whether $CC supports $option... " >&6; }
  16993. +if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
  16994. + $as_echo_n "(cached) " >&6
  16995. +else
  16996. + CFLAGS="$option"
  16997. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16998. +/* end confdefs.h. */
  16999. +
  17000. +int
  17001. +main ()
  17002. +{
  17003. +
  17004. + ;
  17005. + return 0;
  17006. +}
  17007. +_ACEOF
  17008. +if ac_fn_c_try_compile "$LINENO"; then :
  17009. + eval "$as_acx_Woption=yes"
  17010. +else
  17011. + eval "$as_acx_Woption=no"
  17012. +fi
  17013. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17014. +
  17015. +fi
  17016. +eval ac_res=\$$as_acx_Woption
  17017. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17018. +$as_echo "$ac_res" >&6; }
  17019. + if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  17020. + noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
  17021. +fi
  17022. + done
  17023. +CFLAGS="$save_CFLAGS"
  17024. +
  17025. +
  17026. +# Enable expensive internal checks
  17027. +is_release=
  17028. +if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
  17029. + is_release=yes
  17030. +fi
  17031. +
  17032. +# Check whether --enable-checking was given.
  17033. +if test "${enable_checking+set}" = set; then :
  17034. + enableval=$enable_checking; ac_checking_flags="${enableval}"
  17035. +else
  17036. +
  17037. +# Determine the default checks.
  17038. +if test x$is_release = x ; then
  17039. + ac_checking_flags=yes
  17040. +else
  17041. + ac_checking_flags=release
  17042. +fi
  17043. +fi
  17044. +
  17045. +IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
  17046. +for check in release $ac_checking_flags
  17047. +do
  17048. + case $check in
  17049. + # these set all the flags to specific states
  17050. + yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
  17051. + ac_fold_checking= ; ac_gc_checking=1 ;
  17052. + ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
  17053. + ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
  17054. + ac_tree_checking=1 ; ac_valgrind_checking= ;
  17055. + ac_types_checking=1 ;;
  17056. + no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
  17057. + ac_fold_checking= ; ac_gc_checking= ;
  17058. + ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
  17059. + ac_rtlflag_checking= ; ac_runtime_checking= ;
  17060. + ac_tree_checking= ; ac_valgrind_checking= ;
  17061. + ac_types_checking= ;;
  17062. + all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
  17063. + ac_fold_checking=1 ; ac_gc_checking=1 ;
  17064. + ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
  17065. + ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
  17066. + ac_tree_checking=1 ; ac_valgrind_checking= ;
  17067. + ac_types_checking=1 ;;
  17068. + release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
  17069. + ac_fold_checking= ; ac_gc_checking= ;
  17070. + ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
  17071. + ac_rtlflag_checking= ; ac_runtime_checking=1 ;
  17072. + ac_tree_checking= ; ac_valgrind_checking= ;
  17073. + ac_types_checking= ;;
  17074. + # these enable particular checks
  17075. + assert) ac_assert_checking=1 ;;
  17076. + df) ac_df_checking=1 ;;
  17077. + fold) ac_fold_checking=1 ;;
  17078. + gc) ac_gc_checking=1 ;;
  17079. + gcac) ac_gc_always_collect=1 ;;
  17080. + gimple) ac_gimple_checking=1 ;;
  17081. + misc) ac_checking=1 ;;
  17082. + rtl) ac_rtl_checking=1 ;;
  17083. + rtlflag) ac_rtlflag_checking=1 ;;
  17084. + runtime) ac_runtime_checking=1 ;;
  17085. + tree) ac_tree_checking=1 ;;
  17086. + types) ac_types_checking=1 ;;
  17087. + valgrind) ac_valgrind_checking=1 ;;
  17088. + *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
  17089. + esac
  17090. +done
  17091. +IFS="$ac_save_IFS"
  17092. +
  17093. +nocommon_flag=""
  17094. +if test x$ac_checking != x ; then
  17095. +
  17096. +$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
  17097. +
  17098. + nocommon_flag=-fno-common
  17099. +fi
  17100. +
  17101. +if test x$ac_df_checking != x ; then
  17102. +
  17103. +$as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
  17104. +
  17105. +fi
  17106. +if test x$ac_assert_checking != x ; then
  17107. +
  17108. +$as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
  17109. +
  17110. +fi
  17111. +if test x$ac_gimple_checking != x ; then
  17112. +
  17113. +$as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
  17114. +
  17115. +fi
  17116. +
  17117. +if test x$ac_runtime_checking != x ; then
  17118. +
  17119. +$as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
  17120. +
  17121. +fi
  17122. +if test x$ac_tree_checking != x ; then
  17123. +
  17124. +$as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
  17125. +
  17126. + TREEBROWSER=tree-browser.o
  17127. + TREECHECKING=yes
  17128. +fi
  17129. +if test x$ac_types_checking != x ; then
  17130. +
  17131. +$as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
  17132. +
  17133. +fi
  17134. +
  17135. +
  17136. +if test x$ac_rtl_checking != x ; then
  17137. +
  17138. +$as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
  17139. +
  17140. +fi
  17141. +if test x$ac_rtlflag_checking != x ; then
  17142. +
  17143. +$as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
  17144. +
  17145. +fi
  17146. +if test x$ac_gc_checking != x ; then
  17147. +
  17148. +$as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
  17149. +
  17150. +fi
  17151. +if test x$ac_gc_always_collect != x ; then
  17152. +
  17153. +$as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
  17154. +
  17155. +fi
  17156. +if test x$ac_fold_checking != x ; then
  17157. +
  17158. +$as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
  17159. +
  17160. +fi
  17161. +valgrind_path_defines=
  17162. +valgrind_command=
  17163. +
  17164. +ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
  17165. +if test "x$ac_cv_header_valgrind_h" = x""yes; then :
  17166. + have_valgrind_h=yes
  17167. +else
  17168. + have_valgrind_h=no
  17169. +fi
  17170. +
  17171. +
  17172. +
  17173. +if test x$ac_valgrind_checking != x ; then
  17174. + # It is certainly possible that there's valgrind but no valgrind.h.
  17175. + # GCC relies on making annotations so we must have both.
  17176. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
  17177. +$as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
  17178. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17179. +/* end confdefs.h. */
  17180. +#include <valgrind/memcheck.h>
  17181. +#ifndef VALGRIND_DISCARD
  17182. +#error VALGRIND_DISCARD not defined
  17183. +#endif
  17184. +_ACEOF
  17185. +if ac_fn_c_try_cpp "$LINENO"; then :
  17186. + gcc_cv_header_valgrind_memcheck_h=yes
  17187. +else
  17188. + gcc_cv_header_valgrind_memcheck_h=no
  17189. +fi
  17190. +rm -f conftest.err conftest.$ac_ext
  17191. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
  17192. +$as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
  17193. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
  17194. +$as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
  17195. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17196. +/* end confdefs.h. */
  17197. +#include <memcheck.h>
  17198. +#ifndef VALGRIND_DISCARD
  17199. +#error VALGRIND_DISCARD not defined
  17200. +#endif
  17201. +_ACEOF
  17202. +if ac_fn_c_try_cpp "$LINENO"; then :
  17203. + gcc_cv_header_memcheck_h=yes
  17204. +else
  17205. + gcc_cv_header_memcheck_h=no
  17206. +fi
  17207. +rm -f conftest.err conftest.$ac_ext
  17208. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
  17209. +$as_echo "$gcc_cv_header_memcheck_h" >&6; }
  17210. +
  17211. +# Prepare PATH_SEPARATOR.
  17212. +# The user is always right.
  17213. +if test "${PATH_SEPARATOR+set}" != set; then
  17214. + echo "#! /bin/sh" >conf$$.sh
  17215. + echo "exit 0" >>conf$$.sh
  17216. + chmod +x conf$$.sh
  17217. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  17218. + PATH_SEPARATOR=';'
  17219. + else
  17220. + PATH_SEPARATOR=:
  17221. + fi
  17222. + rm -f conf$$.sh
  17223. +fi
  17224. +
  17225. +# Find out how to test for executable files. Don't use a zero-byte file,
  17226. +# as systems may use methods other than mode bits to determine executability.
  17227. +cat >conf$$.file <<_ASEOF
  17228. +#! /bin/sh
  17229. +exit 0
  17230. +_ASEOF
  17231. +chmod +x conf$$.file
  17232. +if test -x conf$$.file >/dev/null 2>&1; then
  17233. + ac_executable_p="test -x"
  17234. +else
  17235. + ac_executable_p="test -f"
  17236. +fi
  17237. +rm -f conf$$.file
  17238. +
  17239. +# Extract the first word of "valgrind", so it can be a program name with args.
  17240. +set dummy valgrind; ac_word=$2
  17241. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17242. +$as_echo_n "checking for $ac_word... " >&6; }
  17243. +if test "${ac_cv_path_valgrind_path+set}" = set; then :
  17244. + $as_echo_n "(cached) " >&6
  17245. +else
  17246. + case "$valgrind_path" in
  17247. + [\\/]* | ?:[\\/]*)
  17248. + ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
  17249. + ;;
  17250. + *)
  17251. + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  17252. + for ac_dir in $PATH; do
  17253. + IFS="$ac_save_IFS"
  17254. + test -z "$ac_dir" && ac_dir=.
  17255. + for ac_exec_ext in '' $ac_executable_extensions; do
  17256. + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  17257. + if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
  17258. + ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
  17259. + break 2
  17260. + fi
  17261. + fi
  17262. + done
  17263. + done
  17264. + IFS="$ac_save_IFS"
  17265. + ;;
  17266. +esac
  17267. +fi
  17268. +valgrind_path="$ac_cv_path_valgrind_path"
  17269. +if test -n "$valgrind_path"; then
  17270. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
  17271. +$as_echo "$valgrind_path" >&6; }
  17272. +else
  17273. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17274. +$as_echo "no" >&6; }
  17275. +fi
  17276. +
  17277. + if test "x$valgrind_path" = "x" \
  17278. + || (test $have_valgrind_h = no \
  17279. + && test $gcc_cv_header_memcheck_h = no \
  17280. + && test $gcc_cv_header_valgrind_memcheck_h = no); then
  17281. + as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
  17282. + fi
  17283. + valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
  17284. + valgrind_command="$valgrind_path -q"
  17285. +
  17286. +$as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
  17287. +
  17288. + if test $gcc_cv_header_valgrind_memcheck_h = yes; then
  17289. +
  17290. +$as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
  17291. +
  17292. + fi
  17293. + if test $gcc_cv_header_memcheck_h = yes; then
  17294. +
  17295. +$as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
  17296. +
  17297. + fi
  17298. +fi
  17299. +
  17300. +
  17301. +
  17302. +# Enable code coverage collection
  17303. +# Check whether --enable-coverage was given.
  17304. +if test "${enable_coverage+set}" = set; then :
  17305. + enableval=$enable_coverage; case "${enableval}" in
  17306. + yes|noopt)
  17307. + coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
  17308. + ;;
  17309. + opt)
  17310. + coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
  17311. + ;;
  17312. + no)
  17313. + # a.k.a. --disable-coverage
  17314. + coverage_flags=""
  17315. + ;;
  17316. + *)
  17317. + as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
  17318. + ;;
  17319. +esac
  17320. +else
  17321. + coverage_flags=""
  17322. +fi
  17323. +
  17324. +
  17325. +
  17326. +# Check whether --enable-gather-detailed-mem-stats was given.
  17327. +if test "${enable_gather_detailed_mem_stats+set}" = set; then :
  17328. + enableval=$enable_gather_detailed_mem_stats;
  17329. +else
  17330. + enable_gather_detailed_mem_stats=no
  17331. +fi
  17332. +
  17333. +gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
  17334. +
  17335. +cat >>confdefs.h <<_ACEOF
  17336. +#define GATHER_STATISTICS $gather_stats
  17337. +_ACEOF
  17338. +
  17339. +
  17340. +# -------------------------------
  17341. +# Miscenalleous configure options
  17342. +# -------------------------------
  17343. +
  17344. +# With stabs
  17345. +
  17346. +# Check whether --with-stabs was given.
  17347. +if test "${with_stabs+set}" = set; then :
  17348. + withval=$with_stabs; stabs="$with_stabs"
  17349. +else
  17350. + stabs=no
  17351. +fi
  17352. +
  17353. +
  17354. +# Determine whether or not multilibs are enabled.
  17355. +# Check whether --enable-multilib was given.
  17356. +if test "${enable_multilib+set}" = set; then :
  17357. + enableval=$enable_multilib;
  17358. +else
  17359. + enable_multilib=yes
  17360. +fi
  17361. +
  17362. +
  17363. +
  17364. +# Determine whether or not multiarch is enabled.
  17365. +# Check whether --enable-multiarch was given.
  17366. +if test "${enable_multiarch+set}" = set; then :
  17367. + enableval=$enable_multiarch; case "${enableval}" in
  17368. +yes|no|auto) enable_multiarch=$enableval;;
  17369. +*) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
  17370. +esac
  17371. +else
  17372. + enable_multiarch=auto
  17373. +fi
  17374. +
  17375. +if test x${enable_multiarch} = xauto; then
  17376. + if test x${with_native_system_header_dir} != x; then
  17377. + ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
  17378. + enable_multiarch=no
  17379. + fi
  17380. + if test x$host != x$target && test "x$with_sysroot" = x; then
  17381. + ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
  17382. + enable_multiarch=no
  17383. + fi
  17384. +fi
  17385. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
  17386. +$as_echo_n "checking for multiarch configuration... " >&6; }
  17387. +
  17388. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
  17389. +$as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
  17390. +
  17391. +# needed for setting the multiarch name for soft-float/hard-float ABIs
  17392. +
  17393. +
  17394. +
  17395. +# Enable __cxa_atexit for C++.
  17396. +# Check whether --enable-__cxa_atexit was given.
  17397. +if test "${enable___cxa_atexit+set}" = set; then :
  17398. + enableval=$enable___cxa_atexit;
  17399. +fi
  17400. +
  17401. +
  17402. +# Enable C extension for decimal float if target supports it.
  17403. +
  17404. +# Check whether --enable-decimal-float was given.
  17405. +if test "${enable_decimal_float+set}" = set; then :
  17406. + enableval=$enable_decimal_float;
  17407. + case $enable_decimal_float in
  17408. + yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
  17409. + *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
  17410. +Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
  17411. + esac
  17412. +
  17413. +else
  17414. +
  17415. + case $target in
  17416. + powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
  17417. + i?86*-*-gnu* | \
  17418. + i?86*-*-mingw* | x86_64*-*-mingw* | \
  17419. + i?86*-*-cygwin* | x86_64*-*-cygwin*)
  17420. + enable_decimal_float=yes
  17421. + ;;
  17422. + *)
  17423. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
  17424. +$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
  17425. + enable_decimal_float=no
  17426. + ;;
  17427. + esac
  17428. +
  17429. +fi
  17430. +
  17431. +
  17432. +# x86's use BID format instead of DPD
  17433. +case x$enable_decimal_float in
  17434. + xyes)
  17435. + case $target in
  17436. + i?86*-*-* | x86_64*-*-*)
  17437. + enable_decimal_float=bid
  17438. + ;;
  17439. + *)
  17440. + enable_decimal_float=dpd
  17441. + ;;
  17442. + esac
  17443. + default_decimal_float=$enable_decimal_float
  17444. + ;;
  17445. + xno)
  17446. + # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
  17447. + # dependency on libdecnumber.
  17448. + default_decimal_float=dpd
  17449. + ;;
  17450. +esac
  17451. +
  17452. +
  17453. +
  17454. +
  17455. +dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
  17456. +
  17457. +cat >>confdefs.h <<_ACEOF
  17458. +#define ENABLE_DECIMAL_FLOAT $dfp
  17459. +_ACEOF
  17460. +
  17461. +
  17462. +# Use default_decimal_float for dependency.
  17463. +enable_decimal_float=$default_decimal_float
  17464. +
  17465. +bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
  17466. +
  17467. +cat >>confdefs.h <<_ACEOF
  17468. +#define ENABLE_DECIMAL_BID_FORMAT $bid
  17469. +_ACEOF
  17470. +
  17471. +
  17472. +# Enable C extension for fixed-point arithmetic.
  17473. +# Check whether --enable-fixed-point was given.
  17474. +if test "${enable_fixed_point+set}" = set; then :
  17475. + enableval=$enable_fixed_point;
  17476. +else
  17477. +
  17478. + case $target in
  17479. + arm*)
  17480. + enable_fixed_point=yes
  17481. + ;;
  17482. +
  17483. + mips*-*-*)
  17484. + enable_fixed_point=yes
  17485. + ;;
  17486. + *)
  17487. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
  17488. +$as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
  17489. + enable_fixed_point=no
  17490. + ;;
  17491. + esac
  17492. +
  17493. +fi
  17494. +
  17495. +
  17496. +
  17497. +fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
  17498. +
  17499. +cat >>confdefs.h <<_ACEOF
  17500. +#define ENABLE_FIXED_POINT $fixedpoint
  17501. +_ACEOF
  17502. +
  17503. +
  17504. +# Enable threads
  17505. +# Pass with no value to take the default
  17506. +# Pass with a value to specify a thread package
  17507. +# Check whether --enable-threads was given.
  17508. +if test "${enable_threads+set}" = set; then :
  17509. + enableval=$enable_threads;
  17510. +else
  17511. + enable_threads=''
  17512. +fi
  17513. +
  17514. +
  17515. +# Check whether --enable-tls was given.
  17516. +if test "${enable_tls+set}" = set; then :
  17517. + enableval=$enable_tls;
  17518. + case $enable_tls in
  17519. + yes | no) ;;
  17520. + *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
  17521. +Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
  17522. + esac
  17523. +
  17524. +else
  17525. + enable_tls=''
  17526. +fi
  17527. +
  17528. +
  17529. +# Check whether --enable-objc-gc was given.
  17530. +if test "${enable_objc_gc+set}" = set; then :
  17531. + enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
  17532. + objc_boehm_gc=''
  17533. +else
  17534. + objc_boehm_gc=1
  17535. +fi
  17536. +else
  17537. + objc_boehm_gc=''
  17538. +fi
  17539. +
  17540. +
  17541. +
  17542. +# Check whether --with-dwarf2 was given.
  17543. +if test "${with_dwarf2+set}" = set; then :
  17544. + withval=$with_dwarf2; dwarf2="$with_dwarf2"
  17545. +else
  17546. + dwarf2=no
  17547. +fi
  17548. +
  17549. +
  17550. +# Check whether --enable-shared was given.
  17551. +if test "${enable_shared+set}" = set; then :
  17552. + enableval=$enable_shared;
  17553. + case $enable_shared in
  17554. + yes | no) ;;
  17555. + *)
  17556. + enable_shared=no
  17557. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  17558. + for pkg in $enableval; do
  17559. + if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
  17560. + enable_shared=yes
  17561. + fi
  17562. + done
  17563. + IFS="$ac_save_ifs"
  17564. + ;;
  17565. + esac
  17566. +
  17567. +else
  17568. + enable_shared=yes
  17569. +fi
  17570. +
  17571. +
  17572. +
  17573. +
  17574. +# Check whether --with-native-system-header-dir was given.
  17575. +if test "${with_native_system_header_dir+set}" = set; then :
  17576. + withval=$with_native_system_header_dir;
  17577. + case ${with_native_system_header_dir} in
  17578. + yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
  17579. + /* | [A-Za-z]:[\\/]*) ;;
  17580. + *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
  17581. + esac
  17582. + configured_native_system_header_dir="${withval}"
  17583. +
  17584. +else
  17585. + configured_native_system_header_dir=
  17586. +fi
  17587. +
  17588. +
  17589. +
  17590. +# Check whether --with-build-sysroot was given.
  17591. +if test "${with_build_sysroot+set}" = set; then :
  17592. + withval=$with_build_sysroot; if test x"$withval" != x ; then
  17593. + SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
  17594. + fi
  17595. +else
  17596. + SYSROOT_CFLAGS_FOR_TARGET=
  17597. +fi
  17598. +
  17599. +
  17600. +
  17601. +if test "x$prefix" = xNONE; then
  17602. + test_prefix=/usr/local
  17603. +else
  17604. + test_prefix=$prefix
  17605. +fi
  17606. +if test "x$exec_prefix" = xNONE; then
  17607. + test_exec_prefix=$test_prefix
  17608. +else
  17609. + test_exec_prefix=$exec_prefix
  17610. +fi
  17611. +
  17612. +
  17613. +# Check whether --with-sysroot was given.
  17614. +if test "${with_sysroot+set}" = set; then :
  17615. + withval=$with_sysroot;
  17616. + case ${with_sysroot} in
  17617. + yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
  17618. + *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
  17619. + esac
  17620. +
  17621. + TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
  17622. + CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
  17623. +
  17624. + case ${TARGET_SYSTEM_ROOT} in
  17625. + "${test_prefix}"|"${test_prefix}/"*|\
  17626. + "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
  17627. + '${prefix}'|'${prefix}/'*|\
  17628. + '${exec_prefix}'|'${exec_prefix}/'*)
  17629. + t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
  17630. + TARGET_SYSTEM_ROOT_DEFINE="$t"
  17631. + ;;
  17632. + esac
  17633. +
  17634. +else
  17635. +
  17636. + TARGET_SYSTEM_ROOT=
  17637. + TARGET_SYSTEM_ROOT_DEFINE=
  17638. + CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
  17639. +
  17640. +fi
  17641. +
  17642. +
  17643. +
  17644. +
  17645. +
  17646. +
  17647. +# Check whether --with-specs was given.
  17648. +if test "${with_specs+set}" = set; then :
  17649. + withval=$with_specs; CONFIGURE_SPECS=$withval
  17650. +else
  17651. + CONFIGURE_SPECS=
  17652. +
  17653. +fi
  17654. +
  17655. +
  17656. +
  17657. +
  17658. +
  17659. +# Check whether --with-pkgversion was given.
  17660. +if test "${with_pkgversion+set}" = set; then :
  17661. + withval=$with_pkgversion; case "$withval" in
  17662. + yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
  17663. + no) PKGVERSION= ;;
  17664. + *) PKGVERSION="($withval) " ;;
  17665. + esac
  17666. +else
  17667. + PKGVERSION="(GCC) "
  17668. +
  17669. +fi
  17670. +
  17671. +
  17672. +
  17673. +
  17674. +
  17675. +# Check whether --with-bugurl was given.
  17676. +if test "${with_bugurl+set}" = set; then :
  17677. + withval=$with_bugurl; case "$withval" in
  17678. + yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
  17679. + no) BUGURL=
  17680. + ;;
  17681. + *) BUGURL="$withval"
  17682. + ;;
  17683. + esac
  17684. +else
  17685. + BUGURL="http://gcc.gnu.org/bugs.html"
  17686. +
  17687. +fi
  17688. +
  17689. + case ${BUGURL} in
  17690. + "")
  17691. + REPORT_BUGS_TO=
  17692. + REPORT_BUGS_TEXI=
  17693. + ;;
  17694. + *)
  17695. + REPORT_BUGS_TO="<$BUGURL>"
  17696. + REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  17697. + ;;
  17698. + esac;
  17699. +
  17700. +
  17701. +
  17702. +
  17703. +# Sanity check enable_languages in case someone does not run the toplevel
  17704. +# configure # script.
  17705. +# Check whether --enable-languages was given.
  17706. +if test "${enable_languages+set}" = set; then :
  17707. + enableval=$enable_languages; case ,${enable_languages}, in
  17708. + ,,|,yes,)
  17709. + # go safe -- we cannot be much sure without the toplevel
  17710. + # configure's
  17711. + # analysis of which target libs are present and usable
  17712. + enable_languages=c
  17713. + ;;
  17714. + *,all,*)
  17715. + as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
  17716. + ;;
  17717. + *,c,*)
  17718. + ;;
  17719. + *)
  17720. + enable_languages=c,${enable_languages}
  17721. + ;;
  17722. +esac
  17723. +else
  17724. + enable_languages=c
  17725. +fi
  17726. +
  17727. +
  17728. +
  17729. +# Check whether --with-multilib-list was given.
  17730. +if test "${with_multilib_list+set}" = set; then :
  17731. + withval=$with_multilib_list; :
  17732. +else
  17733. + with_multilib_list=default
  17734. +fi
  17735. +
  17736. +
  17737. +# -------------------------
  17738. +# Checks for other programs
  17739. +# -------------------------
  17740. +
  17741. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  17742. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  17743. +set x ${MAKE-make}
  17744. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  17745. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  17746. + $as_echo_n "(cached) " >&6
  17747. +else
  17748. + cat >conftest.make <<\_ACEOF
  17749. +SHELL = /bin/sh
  17750. +all:
  17751. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  17752. +_ACEOF
  17753. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  17754. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  17755. + *@@@%%%=?*=@@@%%%*)
  17756. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  17757. + *)
  17758. + eval ac_cv_prog_make_${ac_make}_set=no;;
  17759. +esac
  17760. +rm -f conftest.make
  17761. +fi
  17762. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  17763. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17764. +$as_echo "yes" >&6; }
  17765. + SET_MAKE=
  17766. +else
  17767. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17768. +$as_echo "no" >&6; }
  17769. + SET_MAKE="MAKE=${MAKE-make}"
  17770. +fi
  17771. +
  17772. +
  17773. +# Find some useful tools
  17774. +for ac_prog in gawk mawk nawk awk
  17775. +do
  17776. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  17777. +set dummy $ac_prog; ac_word=$2
  17778. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17779. +$as_echo_n "checking for $ac_word... " >&6; }
  17780. +if test "${ac_cv_prog_AWK+set}" = set; then :
  17781. + $as_echo_n "(cached) " >&6
  17782. +else
  17783. + if test -n "$AWK"; then
  17784. + ac_cv_prog_AWK="$AWK" # Let the user override the test.
  17785. +else
  17786. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17787. +for as_dir in $PATH
  17788. +do
  17789. + IFS=$as_save_IFS
  17790. + test -z "$as_dir" && as_dir=.
  17791. + for ac_exec_ext in '' $ac_executable_extensions; do
  17792. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17793. + ac_cv_prog_AWK="$ac_prog"
  17794. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17795. + break 2
  17796. + fi
  17797. +done
  17798. + done
  17799. +IFS=$as_save_IFS
  17800. +
  17801. +fi
  17802. +fi
  17803. +AWK=$ac_cv_prog_AWK
  17804. +if test -n "$AWK"; then
  17805. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  17806. +$as_echo "$AWK" >&6; }
  17807. +else
  17808. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17809. +$as_echo "no" >&6; }
  17810. +fi
  17811. +
  17812. +
  17813. + test -n "$AWK" && break
  17814. +done
  17815. +
  17816. +# We need awk to create options.c and options.h.
  17817. +# Bail out if it's missing.
  17818. +case ${AWK} in
  17819. + "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
  17820. +esac
  17821. +
  17822. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  17823. +$as_echo_n "checking whether ln -s works... " >&6; }
  17824. +if test "${gcc_cv_prog_LN_S+set}" = set; then :
  17825. + $as_echo_n "(cached) " >&6
  17826. +else
  17827. + rm -f conftestdata_t
  17828. +echo >conftestdata_f
  17829. +if ln -s conftestdata_f conftestdata_t 2>/dev/null
  17830. +then
  17831. + gcc_cv_prog_LN_S="ln -s"
  17832. +else
  17833. + if ln conftestdata_f conftestdata_t 2>/dev/null
  17834. + then
  17835. + gcc_cv_prog_LN_S=ln
  17836. + else
  17837. + if cp -p conftestdata_f conftestdata_t 2>/dev/null
  17838. + then
  17839. + gcc_cv_prog_LN_S="cp -p"
  17840. + else
  17841. + gcc_cv_prog_LN_S=cp
  17842. + fi
  17843. + fi
  17844. +fi
  17845. +rm -f conftestdata_f conftestdata_t
  17846. +
  17847. +fi
  17848. +LN_S="$gcc_cv_prog_LN_S"
  17849. +if test "$gcc_cv_prog_LN_S" = "ln -s"; then
  17850. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17851. +$as_echo "yes" >&6; }
  17852. +else
  17853. + if test "$gcc_cv_prog_LN_S" = "ln"; then
  17854. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
  17855. +$as_echo "no, using ln" >&6; }
  17856. + else
  17857. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
  17858. +$as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
  17859. + fi
  17860. +fi
  17861. +
  17862. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
  17863. +$as_echo_n "checking whether ln works... " >&6; }
  17864. +if test "${acx_cv_prog_LN+set}" = set; then :
  17865. + $as_echo_n "(cached) " >&6
  17866. +else
  17867. + rm -f conftestdata_t
  17868. +echo >conftestdata_f
  17869. +if ln conftestdata_f conftestdata_t 2>/dev/null
  17870. +then
  17871. + acx_cv_prog_LN=ln
  17872. +else
  17873. + acx_cv_prog_LN=no
  17874. +fi
  17875. +rm -f conftestdata_f conftestdata_t
  17876. +
  17877. +fi
  17878. +if test $acx_cv_prog_LN = no; then
  17879. + LN="$LN_S"
  17880. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
  17881. +$as_echo "no, using $LN" >&6; }
  17882. +else
  17883. + LN="$acx_cv_prog_LN"
  17884. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17885. +$as_echo "yes" >&6; }
  17886. +fi
  17887. +
  17888. +if test -n "$ac_tool_prefix"; then
  17889. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  17890. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  17891. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17892. +$as_echo_n "checking for $ac_word... " >&6; }
  17893. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  17894. + $as_echo_n "(cached) " >&6
  17895. +else
  17896. + if test -n "$RANLIB"; then
  17897. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  17898. +else
  17899. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17900. +for as_dir in $PATH
  17901. +do
  17902. + IFS=$as_save_IFS
  17903. + test -z "$as_dir" && as_dir=.
  17904. + for ac_exec_ext in '' $ac_executable_extensions; do
  17905. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17906. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  17907. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17908. + break 2
  17909. + fi
  17910. +done
  17911. + done
  17912. +IFS=$as_save_IFS
  17913. +
  17914. +fi
  17915. +fi
  17916. +RANLIB=$ac_cv_prog_RANLIB
  17917. +if test -n "$RANLIB"; then
  17918. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  17919. +$as_echo "$RANLIB" >&6; }
  17920. +else
  17921. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17922. +$as_echo "no" >&6; }
  17923. +fi
  17924. +
  17925. +
  17926. +fi
  17927. +if test -z "$ac_cv_prog_RANLIB"; then
  17928. + ac_ct_RANLIB=$RANLIB
  17929. + # Extract the first word of "ranlib", so it can be a program name with args.
  17930. +set dummy ranlib; ac_word=$2
  17931. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17932. +$as_echo_n "checking for $ac_word... " >&6; }
  17933. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  17934. + $as_echo_n "(cached) " >&6
  17935. +else
  17936. + if test -n "$ac_ct_RANLIB"; then
  17937. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  17938. +else
  17939. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17940. +for as_dir in $PATH
  17941. +do
  17942. + IFS=$as_save_IFS
  17943. + test -z "$as_dir" && as_dir=.
  17944. + for ac_exec_ext in '' $ac_executable_extensions; do
  17945. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17946. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  17947. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17948. + break 2
  17949. + fi
  17950. +done
  17951. + done
  17952. +IFS=$as_save_IFS
  17953. +
  17954. +fi
  17955. +fi
  17956. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  17957. +if test -n "$ac_ct_RANLIB"; then
  17958. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  17959. +$as_echo "$ac_ct_RANLIB" >&6; }
  17960. +else
  17961. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17962. +$as_echo "no" >&6; }
  17963. +fi
  17964. +
  17965. + if test "x$ac_ct_RANLIB" = x; then
  17966. + RANLIB=":"
  17967. + else
  17968. + case $cross_compiling:$ac_tool_warned in
  17969. +yes:)
  17970. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17971. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17972. +ac_tool_warned=yes ;;
  17973. +esac
  17974. + RANLIB=$ac_ct_RANLIB
  17975. + fi
  17976. +else
  17977. + RANLIB="$ac_cv_prog_RANLIB"
  17978. +fi
  17979. +
  17980. +ranlib_flags=""
  17981. +
  17982. +
  17983. +# Find a good install program. We prefer a C program (faster),
  17984. +# so one script is as good as another. But avoid the broken or
  17985. +# incompatible versions:
  17986. +# SysV /etc/install, /usr/sbin/install
  17987. +# SunOS /usr/etc/install
  17988. +# IRIX /sbin/install
  17989. +# AIX /bin/install
  17990. +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  17991. +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  17992. +# ./install, which can be erroneously created by make from ./install.sh.
  17993. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
  17994. +$as_echo_n "checking for a BSD compatible install... " >&6; }
  17995. +if test -z "$INSTALL"; then
  17996. +if test "${ac_cv_path_install+set}" = set; then :
  17997. + $as_echo_n "(cached) " >&6
  17998. +else
  17999. + IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  18000. + for ac_dir in $PATH; do
  18001. + # Account for people who put trailing slashes in PATH elements.
  18002. + case "$ac_dir/" in
  18003. + /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  18004. + *)
  18005. + # OSF1 and SCO ODT 3.0 have their own names for install.
  18006. + for ac_prog in ginstall scoinst install; do
  18007. + if test -f $ac_dir/$ac_prog; then
  18008. + if test $ac_prog = install &&
  18009. + grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  18010. + # AIX install. It has an incompatible calling convention.
  18011. + # OSF/1 installbsd also uses dspmsg, but is usable.
  18012. + :
  18013. + else
  18014. + ac_cv_path_install="$ac_dir/$ac_prog -c"
  18015. + break 2
  18016. + fi
  18017. + fi
  18018. + done
  18019. + ;;
  18020. + esac
  18021. + done
  18022. + IFS="$ac_save_IFS"
  18023. +
  18024. +fi
  18025. + if test "${ac_cv_path_install+set}" = set; then
  18026. + INSTALL="$ac_cv_path_install"
  18027. + else
  18028. + # As a last resort, use the slow shell script. We don't cache a
  18029. + # path for INSTALL within a source directory, because that will
  18030. + # break other packages using the cache if that directory is
  18031. + # removed, or if the path is relative.
  18032. + INSTALL="$ac_install_sh"
  18033. + fi
  18034. +fi
  18035. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  18036. +$as_echo "$INSTALL" >&6; }
  18037. +
  18038. +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  18039. +# It thinks the first close brace ends the variable substitution.
  18040. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  18041. +
  18042. +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  18043. +
  18044. +
  18045. +# See if cmp has --ignore-initial.
  18046. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
  18047. +$as_echo_n "checking for cmp's capabilities... " >&6; }
  18048. +if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
  18049. + $as_echo_n "(cached) " >&6
  18050. +else
  18051. + echo abfoo >t1
  18052. + echo cdfoo >t2
  18053. + gcc_cv_prog_cmp_skip=slowcompare
  18054. + if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
  18055. + if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
  18056. + :
  18057. + else
  18058. + gcc_cv_prog_cmp_skip=gnucompare
  18059. + fi
  18060. + fi
  18061. + if test $gcc_cv_prog_cmp_skip = slowcompare ; then
  18062. + if cmp t1 t2 2 2 > /dev/null 2>&1; then
  18063. + if cmp t1 t2 1 1 > /dev/null 2>&1; then
  18064. + :
  18065. + else
  18066. + gcc_cv_prog_cmp_skip=fastcompare
  18067. + fi
  18068. + fi
  18069. + fi
  18070. + rm t1 t2
  18071. +
  18072. +fi
  18073. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
  18074. +$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
  18075. +make_compare_target=$gcc_cv_prog_cmp_skip
  18076. +
  18077. +
  18078. +
  18079. +# See if we have the mktemp command.
  18080. +# Extract the first word of "mktemp", so it can be a program name with args.
  18081. +set dummy mktemp; ac_word=$2
  18082. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18083. +$as_echo_n "checking for $ac_word... " >&6; }
  18084. +if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
  18085. + $as_echo_n "(cached) " >&6
  18086. +else
  18087. + if test -n "$have_mktemp_command"; then
  18088. + ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
  18089. +else
  18090. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18091. +for as_dir in $PATH
  18092. +do
  18093. + IFS=$as_save_IFS
  18094. + test -z "$as_dir" && as_dir=.
  18095. + for ac_exec_ext in '' $ac_executable_extensions; do
  18096. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18097. + ac_cv_prog_have_mktemp_command="yes"
  18098. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18099. + break 2
  18100. + fi
  18101. +done
  18102. + done
  18103. +IFS=$as_save_IFS
  18104. +
  18105. + test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
  18106. +fi
  18107. +fi
  18108. +have_mktemp_command=$ac_cv_prog_have_mktemp_command
  18109. +if test -n "$have_mktemp_command"; then
  18110. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
  18111. +$as_echo "$have_mktemp_command" >&6; }
  18112. +else
  18113. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18114. +$as_echo "no" >&6; }
  18115. +fi
  18116. +
  18117. +
  18118. +
  18119. +# See if makeinfo has been installed and is modern enough
  18120. +# that we can use it.
  18121. +
  18122. + # Extract the first word of "makeinfo", so it can be a program name with args.
  18123. +set dummy makeinfo; ac_word=$2
  18124. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18125. +$as_echo_n "checking for $ac_word... " >&6; }
  18126. +if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
  18127. + $as_echo_n "(cached) " >&6
  18128. +else
  18129. + if test -n "$MAKEINFO"; then
  18130. + ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  18131. +else
  18132. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18133. +for as_dir in $PATH
  18134. +do
  18135. + IFS=$as_save_IFS
  18136. + test -z "$as_dir" && as_dir=.
  18137. + for ac_exec_ext in '' $ac_executable_extensions; do
  18138. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18139. + ac_cv_prog_MAKEINFO="makeinfo"
  18140. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18141. + break 2
  18142. + fi
  18143. +done
  18144. + done
  18145. +IFS=$as_save_IFS
  18146. +
  18147. +fi
  18148. +fi
  18149. +MAKEINFO=$ac_cv_prog_MAKEINFO
  18150. +if test -n "$MAKEINFO"; then
  18151. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  18152. +$as_echo "$MAKEINFO" >&6; }
  18153. +else
  18154. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18155. +$as_echo "no" >&6; }
  18156. +fi
  18157. +
  18158. +
  18159. + if test -n "$MAKEINFO"; then
  18160. + # Found it, now check the version.
  18161. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
  18162. +$as_echo_n "checking for modern makeinfo... " >&6; }
  18163. +if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
  18164. + $as_echo_n "(cached) " >&6
  18165. +else
  18166. + ac_prog_version=`eval $MAKEINFO --version 2>&1 |
  18167. + sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
  18168. +
  18169. + case $ac_prog_version in
  18170. + '') gcc_cv_prog_makeinfo_modern=no;;
  18171. + 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
  18172. + *) gcc_cv_prog_makeinfo_modern=no;;
  18173. + esac
  18174. +
  18175. +fi
  18176. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
  18177. +$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
  18178. + else
  18179. + gcc_cv_prog_makeinfo_modern=no
  18180. + fi
  18181. + if test $gcc_cv_prog_makeinfo_modern = no; then
  18182. + MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
  18183. + fi
  18184. +
  18185. +if test $gcc_cv_prog_makeinfo_modern = no; then
  18186. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  18187. +*** Makeinfo is missing or too old.
  18188. +*** Info documentation will not be built." >&5
  18189. +$as_echo "$as_me: WARNING:
  18190. +*** Makeinfo is missing or too old.
  18191. +*** Info documentation will not be built." >&2;}
  18192. + BUILD_INFO=
  18193. +else
  18194. + BUILD_INFO=info
  18195. +fi
  18196. +
  18197. +
  18198. +# Is pod2man recent enough to regenerate manpages?
  18199. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
  18200. +$as_echo_n "checking for recent Pod::Man... " >&6; }
  18201. +if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
  18202. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18203. +$as_echo "yes" >&6; }
  18204. + GENERATED_MANPAGES=generated-manpages
  18205. +else
  18206. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18207. +$as_echo "no" >&6; }
  18208. + GENERATED_MANPAGES=
  18209. +fi
  18210. +
  18211. +
  18212. +MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
  18213. +
  18214. +# How about lex?
  18215. +for ac_prog in flex
  18216. +do
  18217. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  18218. +set dummy $ac_prog; ac_word=$2
  18219. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18220. +$as_echo_n "checking for $ac_word... " >&6; }
  18221. +if test "${ac_cv_prog_FLEX+set}" = set; then :
  18222. + $as_echo_n "(cached) " >&6
  18223. +else
  18224. + if test -n "$FLEX"; then
  18225. + ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
  18226. +else
  18227. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18228. +for as_dir in $PATH
  18229. +do
  18230. + IFS=$as_save_IFS
  18231. + test -z "$as_dir" && as_dir=.
  18232. + for ac_exec_ext in '' $ac_executable_extensions; do
  18233. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18234. + ac_cv_prog_FLEX="$ac_prog"
  18235. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18236. + break 2
  18237. + fi
  18238. +done
  18239. + done
  18240. +IFS=$as_save_IFS
  18241. +
  18242. +fi
  18243. +fi
  18244. +FLEX=$ac_cv_prog_FLEX
  18245. +if test -n "$FLEX"; then
  18246. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  18247. +$as_echo "$FLEX" >&6; }
  18248. +else
  18249. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18250. +$as_echo "no" >&6; }
  18251. +fi
  18252. +
  18253. +
  18254. + test -n "$FLEX" && break
  18255. +done
  18256. +test -n "$FLEX" || FLEX="$MISSING flex"
  18257. +
  18258. +
  18259. +# Bison?
  18260. +for ac_prog in bison
  18261. +do
  18262. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  18263. +set dummy $ac_prog; ac_word=$2
  18264. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18265. +$as_echo_n "checking for $ac_word... " >&6; }
  18266. +if test "${ac_cv_prog_BISON+set}" = set; then :
  18267. + $as_echo_n "(cached) " >&6
  18268. +else
  18269. + if test -n "$BISON"; then
  18270. + ac_cv_prog_BISON="$BISON" # Let the user override the test.
  18271. +else
  18272. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18273. +for as_dir in $PATH
  18274. +do
  18275. + IFS=$as_save_IFS
  18276. + test -z "$as_dir" && as_dir=.
  18277. + for ac_exec_ext in '' $ac_executable_extensions; do
  18278. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18279. + ac_cv_prog_BISON="$ac_prog"
  18280. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18281. + break 2
  18282. + fi
  18283. +done
  18284. + done
  18285. +IFS=$as_save_IFS
  18286. +
  18287. +fi
  18288. +fi
  18289. +BISON=$ac_cv_prog_BISON
  18290. +if test -n "$BISON"; then
  18291. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  18292. +$as_echo "$BISON" >&6; }
  18293. +else
  18294. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18295. +$as_echo "no" >&6; }
  18296. +fi
  18297. +
  18298. +
  18299. + test -n "$BISON" && break
  18300. +done
  18301. +test -n "$BISON" || BISON="$MISSING bison"
  18302. +
  18303. +
  18304. +# Binutils are not build modules, unlike bison/flex/makeinfo. So we
  18305. +# check for build == host before using them.
  18306. +
  18307. +# NM
  18308. +if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
  18309. + && test -d ../binutils ; then
  18310. + NM='${objdir}/../binutils/nm-new'
  18311. +else
  18312. + # Extract the first word of "nm", so it can be a program name with args.
  18313. +set dummy nm; ac_word=$2
  18314. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18315. +$as_echo_n "checking for $ac_word... " >&6; }
  18316. +if test "${ac_cv_prog_NM+set}" = set; then :
  18317. + $as_echo_n "(cached) " >&6
  18318. +else
  18319. + if test -n "$NM"; then
  18320. + ac_cv_prog_NM="$NM" # Let the user override the test.
  18321. +else
  18322. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18323. +for as_dir in $PATH
  18324. +do
  18325. + IFS=$as_save_IFS
  18326. + test -z "$as_dir" && as_dir=.
  18327. + for ac_exec_ext in '' $ac_executable_extensions; do
  18328. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18329. + ac_cv_prog_NM="nm"
  18330. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18331. + break 2
  18332. + fi
  18333. +done
  18334. + done
  18335. +IFS=$as_save_IFS
  18336. +
  18337. + test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
  18338. +fi
  18339. +fi
  18340. +NM=$ac_cv_prog_NM
  18341. +if test -n "$NM"; then
  18342. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  18343. +$as_echo "$NM" >&6; }
  18344. +else
  18345. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18346. +$as_echo "no" >&6; }
  18347. +fi
  18348. +
  18349. +
  18350. +fi
  18351. +
  18352. +# AR
  18353. +if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
  18354. + && test -d ../binutils ; then
  18355. + AR='${objdir}/../binutils/ar'
  18356. +else
  18357. + # Extract the first word of "ar", so it can be a program name with args.
  18358. +set dummy ar; ac_word=$2
  18359. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18360. +$as_echo_n "checking for $ac_word... " >&6; }
  18361. +if test "${ac_cv_prog_AR+set}" = set; then :
  18362. + $as_echo_n "(cached) " >&6
  18363. +else
  18364. + if test -n "$AR"; then
  18365. + ac_cv_prog_AR="$AR" # Let the user override the test.
  18366. +else
  18367. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18368. +for as_dir in $PATH
  18369. +do
  18370. + IFS=$as_save_IFS
  18371. + test -z "$as_dir" && as_dir=.
  18372. + for ac_exec_ext in '' $ac_executable_extensions; do
  18373. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18374. + ac_cv_prog_AR="ar"
  18375. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18376. + break 2
  18377. + fi
  18378. +done
  18379. + done
  18380. +IFS=$as_save_IFS
  18381. +
  18382. + test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
  18383. +fi
  18384. +fi
  18385. +AR=$ac_cv_prog_AR
  18386. +if test -n "$AR"; then
  18387. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  18388. +$as_echo "$AR" >&6; }
  18389. +else
  18390. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18391. +$as_echo "no" >&6; }
  18392. +fi
  18393. +
  18394. +
  18395. +fi
  18396. +
  18397. +
  18398. +# --------------------
  18399. +# Checks for C headers
  18400. +# --------------------
  18401. +
  18402. +# Need to reject headers which give warnings, so that the -Werror bootstrap
  18403. +# works later. *sigh* This needs to come before all header checks.
  18404. +
  18405. +ac_c_preproc_warn_flag=yes
  18406. +
  18407. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  18408. +$as_echo_n "checking for ANSI C header files... " >&6; }
  18409. +if test "${ac_cv_header_stdc+set}" = set; then :
  18410. + $as_echo_n "(cached) " >&6
  18411. +else
  18412. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18413. +/* end confdefs.h. */
  18414. +#include <stdlib.h>
  18415. +#include <stdarg.h>
  18416. +#include <string.h>
  18417. +#include <float.h>
  18418. +
  18419. +int
  18420. +main ()
  18421. +{
  18422. +
  18423. + ;
  18424. + return 0;
  18425. +}
  18426. +_ACEOF
  18427. +if ac_fn_c_try_compile "$LINENO"; then :
  18428. + ac_cv_header_stdc=yes
  18429. +else
  18430. + ac_cv_header_stdc=no
  18431. +fi
  18432. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18433. +
  18434. +if test $ac_cv_header_stdc = yes; then
  18435. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18436. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18437. +/* end confdefs.h. */
  18438. +#include <string.h>
  18439. +
  18440. +_ACEOF
  18441. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18442. + $EGREP "memchr" >/dev/null 2>&1; then :
  18443. +
  18444. +else
  18445. + ac_cv_header_stdc=no
  18446. +fi
  18447. +rm -f conftest*
  18448. +
  18449. +fi
  18450. +
  18451. +if test $ac_cv_header_stdc = yes; then
  18452. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  18453. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18454. +/* end confdefs.h. */
  18455. +#include <stdlib.h>
  18456. +
  18457. +_ACEOF
  18458. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18459. + $EGREP "free" >/dev/null 2>&1; then :
  18460. +
  18461. +else
  18462. + ac_cv_header_stdc=no
  18463. +fi
  18464. +rm -f conftest*
  18465. +
  18466. +fi
  18467. +
  18468. +if test $ac_cv_header_stdc = yes; then
  18469. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18470. + if test "$cross_compiling" = yes; then :
  18471. + :
  18472. +else
  18473. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18474. +/* end confdefs.h. */
  18475. +#include <ctype.h>
  18476. +#include <stdlib.h>
  18477. +#if ((' ' & 0x0FF) == 0x020)
  18478. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  18479. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  18480. +#else
  18481. +# define ISLOWER(c) \
  18482. + (('a' <= (c) && (c) <= 'i') \
  18483. + || ('j' <= (c) && (c) <= 'r') \
  18484. + || ('s' <= (c) && (c) <= 'z'))
  18485. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  18486. +#endif
  18487. +
  18488. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  18489. +int
  18490. +main ()
  18491. +{
  18492. + int i;
  18493. + for (i = 0; i < 256; i++)
  18494. + if (XOR (islower (i), ISLOWER (i))
  18495. + || toupper (i) != TOUPPER (i))
  18496. + return 2;
  18497. + return 0;
  18498. +}
  18499. +_ACEOF
  18500. +if ac_fn_c_try_run "$LINENO"; then :
  18501. +
  18502. +else
  18503. + ac_cv_header_stdc=no
  18504. +fi
  18505. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18506. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  18507. +fi
  18508. +
  18509. +fi
  18510. +fi
  18511. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  18512. +$as_echo "$ac_cv_header_stdc" >&6; }
  18513. +if test $ac_cv_header_stdc = yes; then
  18514. +
  18515. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  18516. +
  18517. +fi
  18518. +
  18519. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  18520. +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  18521. +if test "${ac_cv_header_time+set}" = set; then :
  18522. + $as_echo_n "(cached) " >&6
  18523. +else
  18524. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18525. +/* end confdefs.h. */
  18526. +#include <sys/types.h>
  18527. +#include <sys/time.h>
  18528. +#include <time.h>
  18529. +
  18530. +int
  18531. +main ()
  18532. +{
  18533. +if ((struct tm *) 0)
  18534. +return 0;
  18535. + ;
  18536. + return 0;
  18537. +}
  18538. +_ACEOF
  18539. +if ac_fn_c_try_compile "$LINENO"; then :
  18540. + ac_cv_header_time=yes
  18541. +else
  18542. + ac_cv_header_time=no
  18543. +fi
  18544. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18545. +fi
  18546. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  18547. +$as_echo "$ac_cv_header_time" >&6; }
  18548. +if test $ac_cv_header_time = yes; then
  18549. +
  18550. +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  18551. +
  18552. +fi
  18553. +
  18554. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
  18555. +$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
  18556. +if test "${gcc_cv_header_string+set}" = set; then :
  18557. + $as_echo_n "(cached) " >&6
  18558. +else
  18559. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18560. +/* end confdefs.h. */
  18561. +#include <string.h>
  18562. +#include <strings.h>
  18563. +int
  18564. +main ()
  18565. +{
  18566. +
  18567. + ;
  18568. + return 0;
  18569. +}
  18570. +_ACEOF
  18571. +if ac_fn_c_try_compile "$LINENO"; then :
  18572. + gcc_cv_header_string=yes
  18573. +else
  18574. + gcc_cv_header_string=no
  18575. +fi
  18576. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18577. +fi
  18578. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
  18579. +$as_echo "$gcc_cv_header_string" >&6; }
  18580. +if test $gcc_cv_header_string = yes; then
  18581. +
  18582. +$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
  18583. +
  18584. +fi
  18585. +
  18586. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  18587. +$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  18588. +if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  18589. + $as_echo_n "(cached) " >&6
  18590. +else
  18591. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18592. +/* end confdefs.h. */
  18593. +#include <sys/types.h>
  18594. +#include <sys/wait.h>
  18595. +#ifndef WEXITSTATUS
  18596. +# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  18597. +#endif
  18598. +#ifndef WIFEXITED
  18599. +# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  18600. +#endif
  18601. +
  18602. +int
  18603. +main ()
  18604. +{
  18605. + int s;
  18606. + wait (&s);
  18607. + s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  18608. + ;
  18609. + return 0;
  18610. +}
  18611. +_ACEOF
  18612. +if ac_fn_c_try_compile "$LINENO"; then :
  18613. + ac_cv_header_sys_wait_h=yes
  18614. +else
  18615. + ac_cv_header_sys_wait_h=no
  18616. +fi
  18617. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18618. +fi
  18619. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  18620. +$as_echo "$ac_cv_header_sys_wait_h" >&6; }
  18621. +if test $ac_cv_header_sys_wait_h = yes; then
  18622. +
  18623. +$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  18624. +
  18625. +fi
  18626. +
  18627. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
  18628. +$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
  18629. +if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
  18630. + $as_echo_n "(cached) " >&6
  18631. +else
  18632. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18633. +/* end confdefs.h. */
  18634. +#include <sys/types.h>
  18635. +#include <termios.h>
  18636. +#ifdef TIOCGWINSZ
  18637. + yes
  18638. +#endif
  18639. +
  18640. +_ACEOF
  18641. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18642. + $EGREP "yes" >/dev/null 2>&1; then :
  18643. + ac_cv_sys_tiocgwinsz_in_termios_h=yes
  18644. +else
  18645. + ac_cv_sys_tiocgwinsz_in_termios_h=no
  18646. +fi
  18647. +rm -f conftest*
  18648. +
  18649. +fi
  18650. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
  18651. +$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
  18652. +
  18653. +if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
  18654. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
  18655. +$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
  18656. +if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
  18657. + $as_echo_n "(cached) " >&6
  18658. +else
  18659. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18660. +/* end confdefs.h. */
  18661. +#include <sys/types.h>
  18662. +#include <sys/ioctl.h>
  18663. +#ifdef TIOCGWINSZ
  18664. + yes
  18665. +#endif
  18666. +
  18667. +_ACEOF
  18668. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18669. + $EGREP "yes" >/dev/null 2>&1; then :
  18670. + ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
  18671. +else
  18672. + ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
  18673. +fi
  18674. +rm -f conftest*
  18675. +
  18676. +fi
  18677. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
  18678. +$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
  18679. +
  18680. + if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
  18681. +
  18682. +$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
  18683. +
  18684. + fi
  18685. +fi
  18686. +
  18687. +for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
  18688. + fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
  18689. + sys/resource.h sys/param.h sys/times.h sys/stat.h \
  18690. + direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
  18691. +do :
  18692. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18693. +ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
  18694. +eval as_val=\$$as_ac_Header
  18695. + if test "x$as_val" = x""yes; then :
  18696. + cat >>confdefs.h <<_ACEOF
  18697. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18698. +_ACEOF
  18699. +
  18700. +fi
  18701. +done
  18702. +
  18703. +
  18704. +# Check for thread headers.
  18705. +ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
  18706. +if test "x$ac_cv_header_thread_h" = x""yes; then :
  18707. + have_thread_h=yes
  18708. +else
  18709. + have_thread_h=
  18710. +fi
  18711. +
  18712. +ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
  18713. +if test "x$ac_cv_header_pthread_h" = x""yes; then :
  18714. + have_pthread_h=yes
  18715. +else
  18716. + have_pthread_h=
  18717. +fi
  18718. +
  18719. +
  18720. +# These tests can't be done till we know if we have limits.h.
  18721. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
  18722. +$as_echo_n "checking for CHAR_BIT... " >&6; }
  18723. +if test "${gcc_cv_decl_char_bit+set}" = set; then :
  18724. + $as_echo_n "(cached) " >&6
  18725. +else
  18726. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18727. +/* end confdefs.h. */
  18728. +#ifdef HAVE_LIMITS_H
  18729. +#include <limits.h>
  18730. +#endif
  18731. +#ifdef CHAR_BIT
  18732. +found
  18733. +#endif
  18734. +_ACEOF
  18735. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18736. + $EGREP "found" >/dev/null 2>&1; then :
  18737. + gcc_cv_decl_char_bit=yes
  18738. +else
  18739. + gcc_cv_decl_char_bit=no
  18740. +fi
  18741. +rm -f conftest*
  18742. +
  18743. +
  18744. +fi
  18745. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
  18746. +$as_echo "$gcc_cv_decl_char_bit" >&6; }
  18747. +if test $gcc_cv_decl_char_bit = no; then
  18748. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
  18749. +$as_echo_n "checking number of bits in a byte... " >&6; }
  18750. +if test "${gcc_cv_c_nbby+set}" = set; then :
  18751. + $as_echo_n "(cached) " >&6
  18752. +else
  18753. + i=8
  18754. + gcc_cv_c_nbby=
  18755. + while test $i -lt 65; do
  18756. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18757. +/* end confdefs.h. */
  18758. +
  18759. +int
  18760. +main ()
  18761. +{
  18762. +switch(0) {
  18763. + case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
  18764. + case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
  18765. + ; }
  18766. + ;
  18767. + return 0;
  18768. +}
  18769. +_ACEOF
  18770. +if ac_fn_c_try_compile "$LINENO"; then :
  18771. + gcc_cv_c_nbby=$i; break
  18772. +fi
  18773. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18774. + i=`expr $i + 1`
  18775. + done
  18776. + test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
  18777. +
  18778. +fi
  18779. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
  18780. +$as_echo "$gcc_cv_c_nbby" >&6; }
  18781. +if test $gcc_cv_c_nbby = failed; then
  18782. + as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
  18783. +else
  18784. +
  18785. +cat >>confdefs.h <<_ACEOF
  18786. +#define CHAR_BIT $gcc_cv_c_nbby
  18787. +_ACEOF
  18788. +
  18789. +fi
  18790. +fi
  18791. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  18792. +$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  18793. +if test "${ac_cv_c_bigendian+set}" = set; then :
  18794. + $as_echo_n "(cached) " >&6
  18795. +else
  18796. + ac_cv_c_bigendian=unknown
  18797. + # See if we're dealing with a universal compiler.
  18798. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18799. +/* end confdefs.h. */
  18800. +#ifndef __APPLE_CC__
  18801. + not a universal capable compiler
  18802. + #endif
  18803. + typedef int dummy;
  18804. +
  18805. +_ACEOF
  18806. +if ac_fn_c_try_compile "$LINENO"; then :
  18807. +
  18808. + # Check for potential -arch flags. It is not universal unless
  18809. + # there are at least two -arch flags with different values.
  18810. + ac_arch=
  18811. + ac_prev=
  18812. + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  18813. + if test -n "$ac_prev"; then
  18814. + case $ac_word in
  18815. + i?86 | x86_64 | ppc | ppc64)
  18816. + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  18817. + ac_arch=$ac_word
  18818. + else
  18819. + ac_cv_c_bigendian=universal
  18820. + break
  18821. + fi
  18822. + ;;
  18823. + esac
  18824. + ac_prev=
  18825. + elif test "x$ac_word" = "x-arch"; then
  18826. + ac_prev=arch
  18827. + fi
  18828. + done
  18829. +fi
  18830. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18831. + if test $ac_cv_c_bigendian = unknown; then
  18832. + # See if sys/param.h defines the BYTE_ORDER macro.
  18833. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18834. +/* end confdefs.h. */
  18835. +#include <sys/types.h>
  18836. + #include <sys/param.h>
  18837. +
  18838. +int
  18839. +main ()
  18840. +{
  18841. +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  18842. + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  18843. + && LITTLE_ENDIAN)
  18844. + bogus endian macros
  18845. + #endif
  18846. +
  18847. + ;
  18848. + return 0;
  18849. +}
  18850. +_ACEOF
  18851. +if ac_fn_c_try_compile "$LINENO"; then :
  18852. + # It does; now see whether it defined to BIG_ENDIAN or not.
  18853. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18854. +/* end confdefs.h. */
  18855. +#include <sys/types.h>
  18856. + #include <sys/param.h>
  18857. +
  18858. +int
  18859. +main ()
  18860. +{
  18861. +#if BYTE_ORDER != BIG_ENDIAN
  18862. + not big endian
  18863. + #endif
  18864. +
  18865. + ;
  18866. + return 0;
  18867. +}
  18868. +_ACEOF
  18869. +if ac_fn_c_try_compile "$LINENO"; then :
  18870. + ac_cv_c_bigendian=yes
  18871. +else
  18872. + ac_cv_c_bigendian=no
  18873. +fi
  18874. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18875. +fi
  18876. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18877. + fi
  18878. + if test $ac_cv_c_bigendian = unknown; then
  18879. + # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  18880. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18881. +/* end confdefs.h. */
  18882. +#include <limits.h>
  18883. +
  18884. +int
  18885. +main ()
  18886. +{
  18887. +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  18888. + bogus endian macros
  18889. + #endif
  18890. +
  18891. + ;
  18892. + return 0;
  18893. +}
  18894. +_ACEOF
  18895. +if ac_fn_c_try_compile "$LINENO"; then :
  18896. + # It does; now see whether it defined to _BIG_ENDIAN or not.
  18897. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18898. +/* end confdefs.h. */
  18899. +#include <limits.h>
  18900. +
  18901. +int
  18902. +main ()
  18903. +{
  18904. +#ifndef _BIG_ENDIAN
  18905. + not big endian
  18906. + #endif
  18907. +
  18908. + ;
  18909. + return 0;
  18910. +}
  18911. +_ACEOF
  18912. +if ac_fn_c_try_compile "$LINENO"; then :
  18913. + ac_cv_c_bigendian=yes
  18914. +else
  18915. + ac_cv_c_bigendian=no
  18916. +fi
  18917. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18918. +fi
  18919. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18920. + fi
  18921. + if test $ac_cv_c_bigendian = unknown; then
  18922. + # Compile a test program.
  18923. + if test "$cross_compiling" = yes; then :
  18924. + # Try to guess by grepping values from an object file.
  18925. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18926. +/* end confdefs.h. */
  18927. +short int ascii_mm[] =
  18928. + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  18929. + short int ascii_ii[] =
  18930. + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  18931. + int use_ascii (int i) {
  18932. + return ascii_mm[i] + ascii_ii[i];
  18933. + }
  18934. + short int ebcdic_ii[] =
  18935. + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  18936. + short int ebcdic_mm[] =
  18937. + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  18938. + int use_ebcdic (int i) {
  18939. + return ebcdic_mm[i] + ebcdic_ii[i];
  18940. + }
  18941. + extern int foo;
  18942. +
  18943. +int
  18944. +main ()
  18945. +{
  18946. +return use_ascii (foo) == use_ebcdic (foo);
  18947. + ;
  18948. + return 0;
  18949. +}
  18950. +_ACEOF
  18951. +if ac_fn_c_try_compile "$LINENO"; then :
  18952. + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  18953. + ac_cv_c_bigendian=yes
  18954. + fi
  18955. + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  18956. + if test "$ac_cv_c_bigendian" = unknown; then
  18957. + ac_cv_c_bigendian=no
  18958. + else
  18959. + # finding both strings is unlikely to happen, but who knows?
  18960. + ac_cv_c_bigendian=unknown
  18961. + fi
  18962. + fi
  18963. +fi
  18964. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18965. +else
  18966. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18967. +/* end confdefs.h. */
  18968. +$ac_includes_default
  18969. +int
  18970. +main ()
  18971. +{
  18972. +
  18973. + /* Are we little or big endian? From Harbison&Steele. */
  18974. + union
  18975. + {
  18976. + long int l;
  18977. + char c[sizeof (long int)];
  18978. + } u;
  18979. + u.l = 1;
  18980. + return u.c[sizeof (long int) - 1] == 1;
  18981. +
  18982. + ;
  18983. + return 0;
  18984. +}
  18985. +_ACEOF
  18986. +if ac_fn_c_try_run "$LINENO"; then :
  18987. + ac_cv_c_bigendian=no
  18988. +else
  18989. + ac_cv_c_bigendian=yes
  18990. +fi
  18991. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18992. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  18993. +fi
  18994. +
  18995. + fi
  18996. +fi
  18997. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  18998. +$as_echo "$ac_cv_c_bigendian" >&6; }
  18999. + case $ac_cv_c_bigendian in #(
  19000. + yes)
  19001. + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  19002. +;; #(
  19003. + no)
  19004. + ;; #(
  19005. + universal)
  19006. +
  19007. +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  19008. +
  19009. + ;; #(
  19010. + *)
  19011. + as_fn_error "unknown endianness
  19012. + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  19013. + esac
  19014. +
  19015. +
  19016. +# ----------------------
  19017. +# Checks for C++ headers
  19018. +# ----------------------
  19019. +
  19020. +ac_ext=cpp
  19021. +ac_cpp='$CXXCPP $CPPFLAGS'
  19022. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19023. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19024. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19025. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  19026. +$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  19027. +if test -z "$CXXCPP"; then
  19028. + if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  19029. + $as_echo_n "(cached) " >&6
  19030. +else
  19031. + # Double quotes because CXXCPP needs to be expanded
  19032. + for CXXCPP in "$CXX -E" "/lib/cpp"
  19033. + do
  19034. + ac_preproc_ok=false
  19035. +for ac_cxx_preproc_warn_flag in '' yes
  19036. +do
  19037. + # Use a header file that comes with gcc, so configuring glibc
  19038. + # with a fresh cross-compiler works.
  19039. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19040. + # <limits.h> exists even on freestanding compilers.
  19041. + # On the NeXT, cc -E runs the code through the compiler's parser,
  19042. + # not just through cpp. "Syntax error" is here to catch this case.
  19043. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19044. +/* end confdefs.h. */
  19045. +#ifdef __STDC__
  19046. +# include <limits.h>
  19047. +#else
  19048. +# include <assert.h>
  19049. +#endif
  19050. + Syntax error
  19051. +_ACEOF
  19052. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  19053. +
  19054. +else
  19055. + # Broken: fails on valid input.
  19056. +continue
  19057. +fi
  19058. +rm -f conftest.err conftest.$ac_ext
  19059. +
  19060. + # OK, works on sane cases. Now check whether nonexistent headers
  19061. + # can be detected and how.
  19062. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19063. +/* end confdefs.h. */
  19064. +#include <ac_nonexistent.h>
  19065. +_ACEOF
  19066. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  19067. + # Broken: success on invalid input.
  19068. +continue
  19069. +else
  19070. + # Passes both tests.
  19071. +ac_preproc_ok=:
  19072. +break
  19073. +fi
  19074. +rm -f conftest.err conftest.$ac_ext
  19075. +
  19076. +done
  19077. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19078. +rm -f conftest.err conftest.$ac_ext
  19079. +if $ac_preproc_ok; then :
  19080. + break
  19081. +fi
  19082. +
  19083. + done
  19084. + ac_cv_prog_CXXCPP=$CXXCPP
  19085. +
  19086. +fi
  19087. + CXXCPP=$ac_cv_prog_CXXCPP
  19088. +else
  19089. + ac_cv_prog_CXXCPP=$CXXCPP
  19090. +fi
  19091. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  19092. +$as_echo "$CXXCPP" >&6; }
  19093. +ac_preproc_ok=false
  19094. +for ac_cxx_preproc_warn_flag in '' yes
  19095. +do
  19096. + # Use a header file that comes with gcc, so configuring glibc
  19097. + # with a fresh cross-compiler works.
  19098. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19099. + # <limits.h> exists even on freestanding compilers.
  19100. + # On the NeXT, cc -E runs the code through the compiler's parser,
  19101. + # not just through cpp. "Syntax error" is here to catch this case.
  19102. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19103. +/* end confdefs.h. */
  19104. +#ifdef __STDC__
  19105. +# include <limits.h>
  19106. +#else
  19107. +# include <assert.h>
  19108. +#endif
  19109. + Syntax error
  19110. +_ACEOF
  19111. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  19112. +
  19113. +else
  19114. + # Broken: fails on valid input.
  19115. +continue
  19116. +fi
  19117. +rm -f conftest.err conftest.$ac_ext
  19118. +
  19119. + # OK, works on sane cases. Now check whether nonexistent headers
  19120. + # can be detected and how.
  19121. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19122. +/* end confdefs.h. */
  19123. +#include <ac_nonexistent.h>
  19124. +_ACEOF
  19125. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  19126. + # Broken: success on invalid input.
  19127. +continue
  19128. +else
  19129. + # Passes both tests.
  19130. +ac_preproc_ok=:
  19131. +break
  19132. +fi
  19133. +rm -f conftest.err conftest.$ac_ext
  19134. +
  19135. +done
  19136. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19137. +rm -f conftest.err conftest.$ac_ext
  19138. +if $ac_preproc_ok; then :
  19139. +
  19140. +else
  19141. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19142. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19143. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
  19144. +See \`config.log' for more details." >&5
  19145. +$as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
  19146. +See \`config.log' for more details." >&2;}; }
  19147. +fi
  19148. +
  19149. +ac_ext=c
  19150. +ac_cpp='$CPP $CPPFLAGS'
  19151. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19152. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19153. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19154. +
  19155. +
  19156. +ac_ext=cpp
  19157. +ac_cpp='$CXXCPP $CPPFLAGS'
  19158. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19159. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19160. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19161. +
  19162. +
  19163. +
  19164. +
  19165. +for ac_header in unordered_map
  19166. +do :
  19167. + ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
  19168. +if test "x$ac_cv_header_unordered_map" = x""yes; then :
  19169. + cat >>confdefs.h <<_ACEOF
  19170. +#define HAVE_UNORDERED_MAP 1
  19171. +_ACEOF
  19172. +
  19173. +fi
  19174. +done
  19175. +
  19176. +for ac_header in tr1/unordered_map
  19177. +do :
  19178. + ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
  19179. +if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
  19180. + cat >>confdefs.h <<_ACEOF
  19181. +#define HAVE_TR1_UNORDERED_MAP 1
  19182. +_ACEOF
  19183. +
  19184. +fi
  19185. +done
  19186. +
  19187. +for ac_header in ext/hash_map
  19188. +do :
  19189. + ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
  19190. +if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
  19191. + cat >>confdefs.h <<_ACEOF
  19192. +#define HAVE_EXT_HASH_MAP 1
  19193. +_ACEOF
  19194. +
  19195. +fi
  19196. +done
  19197. +
  19198. +
  19199. +ac_ext=c
  19200. +ac_cpp='$CPP $CPPFLAGS'
  19201. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19202. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19203. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19204. +
  19205. +
  19206. +# --------
  19207. +# Dependency checking.
  19208. +# --------
  19209. +
  19210. +ac_ext=cpp
  19211. +ac_cpp='$CXXCPP $CPPFLAGS'
  19212. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19213. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19214. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19215. +
  19216. +rm -rf .tst 2>/dev/null
  19217. +mkdir .tst 2>/dev/null
  19218. +if test -d .tst; then
  19219. + am__leading_dot=.
  19220. +else
  19221. + am__leading_dot=_
  19222. +fi
  19223. +rmdir .tst 2>/dev/null
  19224. +
  19225. +DEPDIR="${am__leading_dot}deps"
  19226. +
  19227. +ac_config_commands="$ac_config_commands depdir"
  19228. +
  19229. +
  19230. +ac_config_commands="$ac_config_commands gccdepdir"
  19231. +
  19232. +
  19233. +depcc="$CXX" am_compiler_list=
  19234. +
  19235. +am_depcomp=$ac_aux_dir/depcomp
  19236. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  19237. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  19238. +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  19239. + $as_echo_n "(cached) " >&6
  19240. +else
  19241. + if test -f "$am_depcomp"; then
  19242. + # We make a subdir and do the tests there. Otherwise we can end up
  19243. + # making bogus files that we don't know about and never remove. For
  19244. + # instance it was reported that on HP-UX the gcc test will end up
  19245. + # making a dummy file named `D' -- because `-MD' means `put the output
  19246. + # in D'.
  19247. + mkdir conftest.dir
  19248. + # Copy depcomp to subdir because otherwise we won't find it if we're
  19249. + # using a relative directory.
  19250. + cp "$am_depcomp" conftest.dir
  19251. + cd conftest.dir
  19252. + # We will build objects and dependencies in a subdirectory because
  19253. + # it helps to detect inapplicable dependency modes. For instance
  19254. + # both Tru64's cc and ICC support -MD to output dependencies as a
  19255. + # side effect of compilation, but ICC will put the dependencies in
  19256. + # the current directory while Tru64 will put them in the object
  19257. + # directory.
  19258. + mkdir sub
  19259. +
  19260. + am_cv_CXX_dependencies_compiler_type=none
  19261. + if test "$am_compiler_list" = ""; then
  19262. + am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  19263. + fi
  19264. + for depmode in $am_compiler_list; do
  19265. + if test $depmode = none; then break; fi
  19266. +
  19267. + $as_echo "$as_me:$LINENO: trying $depmode" >&5
  19268. + # Setup a source with many dependencies, because some compilers
  19269. + # like to wrap large dependency lists on column 80 (with \), and
  19270. + # we should not choose a depcomp mode which is confused by this.
  19271. + #
  19272. + # We need to recreate these files for each test, as the compiler may
  19273. + # overwrite some of them when testing with obscure command lines.
  19274. + # This happens at least with the AIX C compiler.
  19275. + : > sub/conftest.c
  19276. + for i in 1 2 3 4 5 6; do
  19277. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  19278. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  19279. + # Solaris 8's {/usr,}/bin/sh.
  19280. + touch sub/conftst$i.h
  19281. + done
  19282. + echo "include sub/conftest.Po" > confmf
  19283. +
  19284. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  19285. + # mode. It turns out that the SunPro C++ compiler does not properly
  19286. + # handle `-M -o', and we need to detect this.
  19287. + depcmd="depmode=$depmode \
  19288. + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  19289. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  19290. + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
  19291. + echo "| $depcmd" | sed -e 's/ */ /g' >&5
  19292. + if env $depcmd > conftest.err 2>&1 &&
  19293. + grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
  19294. + grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
  19295. + ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
  19296. + # icc doesn't choke on unknown options, it will just issue warnings
  19297. + # or remarks (even with -Werror). So we grep stderr for any message
  19298. + # that says an option was ignored or not supported.
  19299. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  19300. + # icc: Command line warning: ignoring option '-M'; no argument required
  19301. + # The diagnosis changed in icc 8.0:
  19302. + # icc: Command line remark: option '-MP' not supported
  19303. + if (grep 'ignoring option' conftest.err ||
  19304. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  19305. + am_cv_CXX_dependencies_compiler_type=$depmode
  19306. + $as_echo "$as_me:$LINENO: success" >&5
  19307. + break
  19308. + fi
  19309. + fi
  19310. + $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
  19311. + sed -e 's/^/| /' < conftest.err >&5
  19312. + done
  19313. +
  19314. + cd ..
  19315. + rm -rf conftest.dir
  19316. +else
  19317. + am_cv_CXX_dependencies_compiler_type=none
  19318. +fi
  19319. +
  19320. +fi
  19321. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  19322. +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  19323. +if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
  19324. +then as_fn_error "no usable dependency style found" "$LINENO" 5
  19325. +else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  19326. +
  19327. +fi
  19328. +
  19329. +ac_ext=c
  19330. +ac_cpp='$CPP $CPPFLAGS'
  19331. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19332. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19333. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19334. +
  19335. +
  19336. +# --------
  19337. +# UNSORTED
  19338. +# --------
  19339. +
  19340. +
  19341. +# These libraries may be used by collect2.
  19342. +# We may need a special search path to get them linked.
  19343. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
  19344. +$as_echo_n "checking for collect2 libraries... " >&6; }
  19345. +if test "${gcc_cv_collect2_libs+set}" = set; then :
  19346. + $as_echo_n "(cached) " >&6
  19347. +else
  19348. + save_LIBS="$LIBS"
  19349. +for libs in '' -lld -lmld \
  19350. + '-L/usr/lib/cmplrs/cc2.11 -lmld' \
  19351. + '-L/usr/lib/cmplrs/cc3.11 -lmld'
  19352. +do
  19353. + LIBS="$libs"
  19354. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19355. +/* end confdefs.h. */
  19356. +
  19357. +/* Override any GCC internal prototype to avoid an error.
  19358. + Use char because int might match the return type of a GCC
  19359. + builtin and then its argument prototype would still apply. */
  19360. +#ifdef __cplusplus
  19361. +extern "C"
  19362. +#endif
  19363. +char ldopen ();
  19364. +int
  19365. +main ()
  19366. +{
  19367. +return ldopen ();
  19368. + ;
  19369. + return 0;
  19370. +}
  19371. +_ACEOF
  19372. +if ac_fn_c_try_link "$LINENO"; then :
  19373. + gcc_cv_collect2_libs="$libs"; break
  19374. +fi
  19375. +rm -f core conftest.err conftest.$ac_objext \
  19376. + conftest$ac_exeext conftest.$ac_ext
  19377. +done
  19378. +LIBS="$save_LIBS"
  19379. +test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
  19380. +fi
  19381. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
  19382. +$as_echo "$gcc_cv_collect2_libs" >&6; }
  19383. +case $gcc_cv_collect2_libs in
  19384. + "none required") ;;
  19385. + *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
  19386. +esac
  19387. +
  19388. +
  19389. +# When building Ada code on Alpha, we need exc_resume which is usually in
  19390. +# -lexc. So test for it.
  19391. +save_LIBS="$LIBS"
  19392. +LIBS=
  19393. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
  19394. +$as_echo_n "checking for library containing exc_resume... " >&6; }
  19395. +if test "${ac_cv_search_exc_resume+set}" = set; then :
  19396. + $as_echo_n "(cached) " >&6
  19397. +else
  19398. + ac_func_search_save_LIBS=$LIBS
  19399. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19400. +/* end confdefs.h. */
  19401. +
  19402. +/* Override any GCC internal prototype to avoid an error.
  19403. + Use char because int might match the return type of a GCC
  19404. + builtin and then its argument prototype would still apply. */
  19405. +#ifdef __cplusplus
  19406. +extern "C"
  19407. +#endif
  19408. +char exc_resume ();
  19409. +int
  19410. +main ()
  19411. +{
  19412. +return exc_resume ();
  19413. + ;
  19414. + return 0;
  19415. +}
  19416. +_ACEOF
  19417. +for ac_lib in '' exc; do
  19418. + if test -z "$ac_lib"; then
  19419. + ac_res="none required"
  19420. + else
  19421. + ac_res=-l$ac_lib
  19422. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  19423. + fi
  19424. + if ac_fn_c_try_link "$LINENO"; then :
  19425. + ac_cv_search_exc_resume=$ac_res
  19426. +fi
  19427. +rm -f core conftest.err conftest.$ac_objext \
  19428. + conftest$ac_exeext
  19429. + if test "${ac_cv_search_exc_resume+set}" = set; then :
  19430. + break
  19431. +fi
  19432. +done
  19433. +if test "${ac_cv_search_exc_resume+set}" = set; then :
  19434. +
  19435. +else
  19436. + ac_cv_search_exc_resume=no
  19437. +fi
  19438. +rm conftest.$ac_ext
  19439. +LIBS=$ac_func_search_save_LIBS
  19440. +fi
  19441. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
  19442. +$as_echo "$ac_cv_search_exc_resume" >&6; }
  19443. +ac_res=$ac_cv_search_exc_resume
  19444. +if test "$ac_res" != no; then :
  19445. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19446. +
  19447. +fi
  19448. +
  19449. +GNAT_LIBEXC="$LIBS"
  19450. +LIBS="$save_LIBS"
  19451. +
  19452. +
  19453. +# To support -mcpu=native on Solaris/SPARC, we need libkstat.
  19454. +save_LIBS="$LIBS"
  19455. +LIBS=
  19456. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
  19457. +$as_echo_n "checking for library containing kstat_open... " >&6; }
  19458. +if test "${ac_cv_search_kstat_open+set}" = set; then :
  19459. + $as_echo_n "(cached) " >&6
  19460. +else
  19461. + ac_func_search_save_LIBS=$LIBS
  19462. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19463. +/* end confdefs.h. */
  19464. +
  19465. +/* Override any GCC internal prototype to avoid an error.
  19466. + Use char because int might match the return type of a GCC
  19467. + builtin and then its argument prototype would still apply. */
  19468. +#ifdef __cplusplus
  19469. +extern "C"
  19470. +#endif
  19471. +char kstat_open ();
  19472. +int
  19473. +main ()
  19474. +{
  19475. +return kstat_open ();
  19476. + ;
  19477. + return 0;
  19478. +}
  19479. +_ACEOF
  19480. +for ac_lib in '' kstat; do
  19481. + if test -z "$ac_lib"; then
  19482. + ac_res="none required"
  19483. + else
  19484. + ac_res=-l$ac_lib
  19485. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  19486. + fi
  19487. + if ac_fn_c_try_link "$LINENO"; then :
  19488. + ac_cv_search_kstat_open=$ac_res
  19489. +fi
  19490. +rm -f core conftest.err conftest.$ac_objext \
  19491. + conftest$ac_exeext
  19492. + if test "${ac_cv_search_kstat_open+set}" = set; then :
  19493. + break
  19494. +fi
  19495. +done
  19496. +if test "${ac_cv_search_kstat_open+set}" = set; then :
  19497. +
  19498. +else
  19499. + ac_cv_search_kstat_open=no
  19500. +fi
  19501. +rm conftest.$ac_ext
  19502. +LIBS=$ac_func_search_save_LIBS
  19503. +fi
  19504. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
  19505. +$as_echo "$ac_cv_search_kstat_open" >&6; }
  19506. +ac_res=$ac_cv_search_kstat_open
  19507. +if test "$ac_res" != no; then :
  19508. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19509. +
  19510. +fi
  19511. +
  19512. +EXTRA_GCC_LIBS="$LIBS"
  19513. +LIBS="$save_LIBS"
  19514. +
  19515. +
  19516. +# Some systems put ldexp and frexp in libm instead of libc; assume
  19517. +# they're both in the same place. jcf-dump needs them.
  19518. +save_LIBS="$LIBS"
  19519. +LIBS=
  19520. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
  19521. +$as_echo_n "checking for library containing ldexp... " >&6; }
  19522. +if test "${ac_cv_search_ldexp+set}" = set; then :
  19523. + $as_echo_n "(cached) " >&6
  19524. +else
  19525. + ac_func_search_save_LIBS=$LIBS
  19526. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19527. +/* end confdefs.h. */
  19528. +
  19529. +/* Override any GCC internal prototype to avoid an error.
  19530. + Use char because int might match the return type of a GCC
  19531. + builtin and then its argument prototype would still apply. */
  19532. +#ifdef __cplusplus
  19533. +extern "C"
  19534. +#endif
  19535. +char ldexp ();
  19536. +int
  19537. +main ()
  19538. +{
  19539. +return ldexp ();
  19540. + ;
  19541. + return 0;
  19542. +}
  19543. +_ACEOF
  19544. +for ac_lib in '' m; do
  19545. + if test -z "$ac_lib"; then
  19546. + ac_res="none required"
  19547. + else
  19548. + ac_res=-l$ac_lib
  19549. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  19550. + fi
  19551. + if ac_fn_c_try_link "$LINENO"; then :
  19552. + ac_cv_search_ldexp=$ac_res
  19553. +fi
  19554. +rm -f core conftest.err conftest.$ac_objext \
  19555. + conftest$ac_exeext
  19556. + if test "${ac_cv_search_ldexp+set}" = set; then :
  19557. + break
  19558. +fi
  19559. +done
  19560. +if test "${ac_cv_search_ldexp+set}" = set; then :
  19561. +
  19562. +else
  19563. + ac_cv_search_ldexp=no
  19564. +fi
  19565. +rm conftest.$ac_ext
  19566. +LIBS=$ac_func_search_save_LIBS
  19567. +fi
  19568. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
  19569. +$as_echo "$ac_cv_search_ldexp" >&6; }
  19570. +ac_res=$ac_cv_search_ldexp
  19571. +if test "$ac_res" != no; then :
  19572. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19573. +
  19574. +fi
  19575. +
  19576. +LDEXP_LIB="$LIBS"
  19577. +LIBS="$save_LIBS"
  19578. +
  19579. +
  19580. +# Use <inttypes.h> only if it exists,
  19581. +# doesn't clash with <sys/types.h>, and declares intmax_t.
  19582. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  19583. +$as_echo_n "checking for inttypes.h... " >&6; }
  19584. +if test "${gcc_cv_header_inttypes_h+set}" = set; then :
  19585. + $as_echo_n "(cached) " >&6
  19586. +else
  19587. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19588. +/* end confdefs.h. */
  19589. +#include <sys/types.h>
  19590. +#include <inttypes.h>
  19591. +int
  19592. +main ()
  19593. +{
  19594. +intmax_t i = -1;
  19595. + ;
  19596. + return 0;
  19597. +}
  19598. +_ACEOF
  19599. +if ac_fn_c_try_compile "$LINENO"; then :
  19600. + gcc_cv_header_inttypes_h=yes
  19601. +else
  19602. + gcc_cv_header_inttypes_h=no
  19603. +fi
  19604. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19605. +fi
  19606. +
  19607. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
  19608. +$as_echo "$gcc_cv_header_inttypes_h" >&6; }
  19609. +if test $gcc_cv_header_inttypes_h = yes; then
  19610. +
  19611. +$as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
  19612. +
  19613. +fi
  19614. +
  19615. +
  19616. +
  19617. +for ac_func in times clock kill getrlimit setrlimit atoll atoq \
  19618. + sysconf strsignal getrusage nl_langinfo \
  19619. + gettimeofday mbstowcs wcswidth mmap setlocale \
  19620. + clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
  19621. +do :
  19622. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19623. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  19624. +eval as_val=\$$as_ac_var
  19625. + if test "x$as_val" = x""yes; then :
  19626. + cat >>confdefs.h <<_ACEOF
  19627. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19628. +_ACEOF
  19629. +
  19630. +fi
  19631. +done
  19632. +
  19633. +
  19634. +if test x$ac_cv_func_mbstowcs = xyes; then
  19635. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
  19636. +$as_echo_n "checking whether mbstowcs works... " >&6; }
  19637. +if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
  19638. + $as_echo_n "(cached) " >&6
  19639. +else
  19640. + if test "$cross_compiling" = yes; then :
  19641. + gcc_cv_func_mbstowcs_works=yes
  19642. +else
  19643. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19644. +/* end confdefs.h. */
  19645. +#include <stdlib.h>
  19646. +int main()
  19647. +{
  19648. + mbstowcs(0, "", 0);
  19649. + return 0;
  19650. +}
  19651. +_ACEOF
  19652. +if ac_fn_c_try_run "$LINENO"; then :
  19653. + gcc_cv_func_mbstowcs_works=yes
  19654. +else
  19655. + gcc_cv_func_mbstowcs_works=no
  19656. +fi
  19657. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19658. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  19659. +fi
  19660. +
  19661. +fi
  19662. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
  19663. +$as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
  19664. + if test x$gcc_cv_func_mbstowcs_works = xyes; then
  19665. +
  19666. +$as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
  19667. +
  19668. + fi
  19669. +fi
  19670. +
  19671. +ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  19672. +if test "x$ac_cv_type_ssize_t" = x""yes; then :
  19673. +
  19674. +else
  19675. +
  19676. +cat >>confdefs.h <<_ACEOF
  19677. +#define ssize_t int
  19678. +_ACEOF
  19679. +
  19680. +fi
  19681. +
  19682. +ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
  19683. +if test "x$ac_cv_type_caddr_t" = x""yes; then :
  19684. +
  19685. +else
  19686. +
  19687. +cat >>confdefs.h <<_ACEOF
  19688. +#define caddr_t char *
  19689. +_ACEOF
  19690. +
  19691. +fi
  19692. +
  19693. +
  19694. +
  19695. +ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
  19696. +if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
  19697. + gcc_header_sys_mman_h=yes
  19698. +else
  19699. + gcc_header_sys_mman_h=no
  19700. +fi
  19701. +
  19702. +ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  19703. +if test "x$ac_cv_func_mmap" = x""yes; then :
  19704. + gcc_func_mmap=yes
  19705. +else
  19706. + gcc_func_mmap=no
  19707. +fi
  19708. +
  19709. +if test "$gcc_header_sys_mman_h" != yes \
  19710. + || test "$gcc_func_mmap" != yes; then
  19711. + gcc_cv_func_mmap_file=no
  19712. + gcc_cv_func_mmap_dev_zero=no
  19713. + gcc_cv_func_mmap_anon=no
  19714. +else
  19715. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
  19716. +$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
  19717. +if test "${gcc_cv_func_mmap_file+set}" = set; then :
  19718. + $as_echo_n "(cached) " >&6
  19719. +else
  19720. + # Add a system to this blacklist if
  19721. + # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
  19722. + # memory area containing the same data that you'd get if you applied
  19723. + # read() to the same fd. The only system known to have a problem here
  19724. + # is VMS, where text files have record structure.
  19725. + case "$host_os" in
  19726. + *vms* | ultrix*)
  19727. + gcc_cv_func_mmap_file=no ;;
  19728. + *)
  19729. + gcc_cv_func_mmap_file=yes;;
  19730. + esac
  19731. +fi
  19732. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
  19733. +$as_echo "$gcc_cv_func_mmap_file" >&6; }
  19734. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
  19735. +$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
  19736. +if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
  19737. + $as_echo_n "(cached) " >&6
  19738. +else
  19739. + # Add a system to this blacklist if it has mmap() but /dev/zero
  19740. + # does not exist, or if mmapping /dev/zero does not give anonymous
  19741. + # zeroed pages with both the following properties:
  19742. + # 1. If you map N consecutive pages in with one call, and then
  19743. + # unmap any subset of those pages, the pages that were not
  19744. + # explicitly unmapped remain accessible.
  19745. + # 2. If you map two adjacent blocks of memory and then unmap them
  19746. + # both at once, they must both go away.
  19747. + # Systems known to be in this category are Windows (all variants),
  19748. + # VMS, and Darwin.
  19749. + case "$host_os" in
  19750. + *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
  19751. + gcc_cv_func_mmap_dev_zero=no ;;
  19752. + *)
  19753. + gcc_cv_func_mmap_dev_zero=yes;;
  19754. + esac
  19755. +fi
  19756. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
  19757. +$as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
  19758. +
  19759. + # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
  19760. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
  19761. +$as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
  19762. +if test "${gcc_cv_decl_map_anon+set}" = set; then :
  19763. + $as_echo_n "(cached) " >&6
  19764. +else
  19765. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19766. +/* end confdefs.h. */
  19767. +#include <sys/types.h>
  19768. +#include <sys/mman.h>
  19769. +#include <unistd.h>
  19770. +
  19771. +#ifndef MAP_ANONYMOUS
  19772. +#define MAP_ANONYMOUS MAP_ANON
  19773. +#endif
  19774. +
  19775. +int
  19776. +main ()
  19777. +{
  19778. +int n = MAP_ANONYMOUS;
  19779. + ;
  19780. + return 0;
  19781. +}
  19782. +_ACEOF
  19783. +if ac_fn_c_try_compile "$LINENO"; then :
  19784. + gcc_cv_decl_map_anon=yes
  19785. +else
  19786. + gcc_cv_decl_map_anon=no
  19787. +fi
  19788. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19789. +fi
  19790. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
  19791. +$as_echo "$gcc_cv_decl_map_anon" >&6; }
  19792. +
  19793. + if test $gcc_cv_decl_map_anon = no; then
  19794. + gcc_cv_func_mmap_anon=no
  19795. + else
  19796. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
  19797. +$as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
  19798. +if test "${gcc_cv_func_mmap_anon+set}" = set; then :
  19799. + $as_echo_n "(cached) " >&6
  19800. +else
  19801. + # Add a system to this blacklist if it has mmap() and MAP_ANON or
  19802. + # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
  19803. + # doesn't give anonymous zeroed pages with the same properties listed
  19804. + # above for use of /dev/zero.
  19805. + # Systems known to be in this category are Windows, VMS, and SCO Unix.
  19806. + case "$host_os" in
  19807. + *vms* | cygwin* | pe | mingw* | sco* | udk* )
  19808. + gcc_cv_func_mmap_anon=no ;;
  19809. + *)
  19810. + gcc_cv_func_mmap_anon=yes;;
  19811. + esac
  19812. +fi
  19813. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
  19814. +$as_echo "$gcc_cv_func_mmap_anon" >&6; }
  19815. + fi
  19816. +fi
  19817. +
  19818. +if test $gcc_cv_func_mmap_file = yes; then
  19819. +
  19820. +$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
  19821. +
  19822. +fi
  19823. +if test $gcc_cv_func_mmap_dev_zero = yes; then
  19824. +
  19825. +$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
  19826. +
  19827. +fi
  19828. +if test $gcc_cv_func_mmap_anon = yes; then
  19829. +
  19830. +$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
  19831. +
  19832. +fi
  19833. +
  19834. +
  19835. +case "${host}" in
  19836. +*-*-*vms*)
  19837. + # Under VMS, vfork works very differently than on Unix. The standard test
  19838. + # won't work, and it isn't easily adaptable. It makes more sense to
  19839. + # just force it.
  19840. + ac_cv_func_vfork_works=yes
  19841. + ;;
  19842. +esac
  19843. +ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  19844. +if test "x$ac_cv_type_pid_t" = x""yes; then :
  19845. +
  19846. +else
  19847. +
  19848. +cat >>confdefs.h <<_ACEOF
  19849. +#define pid_t int
  19850. +_ACEOF
  19851. +
  19852. +fi
  19853. +
  19854. +for ac_header in vfork.h
  19855. +do :
  19856. + ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
  19857. +if test "x$ac_cv_header_vfork_h" = x""yes; then :
  19858. + cat >>confdefs.h <<_ACEOF
  19859. +#define HAVE_VFORK_H 1
  19860. +_ACEOF
  19861. +
  19862. +fi
  19863. +done
  19864. +
  19865. +for ac_func in fork vfork
  19866. +do :
  19867. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19868. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  19869. +eval as_val=\$$as_ac_var
  19870. + if test "x$as_val" = x""yes; then :
  19871. + cat >>confdefs.h <<_ACEOF
  19872. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19873. +_ACEOF
  19874. +
  19875. +fi
  19876. +done
  19877. +
  19878. +if test "x$ac_cv_func_fork" = xyes; then
  19879. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  19880. +$as_echo_n "checking for working fork... " >&6; }
  19881. +if test "${ac_cv_func_fork_works+set}" = set; then :
  19882. + $as_echo_n "(cached) " >&6
  19883. +else
  19884. + if test "$cross_compiling" = yes; then :
  19885. + ac_cv_func_fork_works=cross
  19886. +else
  19887. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19888. +/* end confdefs.h. */
  19889. +$ac_includes_default
  19890. +int
  19891. +main ()
  19892. +{
  19893. +
  19894. + /* By Ruediger Kuhlmann. */
  19895. + return fork () < 0;
  19896. +
  19897. + ;
  19898. + return 0;
  19899. +}
  19900. +_ACEOF
  19901. +if ac_fn_c_try_run "$LINENO"; then :
  19902. + ac_cv_func_fork_works=yes
  19903. +else
  19904. + ac_cv_func_fork_works=no
  19905. +fi
  19906. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  19907. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  19908. +fi
  19909. +
  19910. +fi
  19911. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  19912. +$as_echo "$ac_cv_func_fork_works" >&6; }
  19913. +
  19914. +else
  19915. + ac_cv_func_fork_works=$ac_cv_func_fork
  19916. +fi
  19917. +if test "x$ac_cv_func_fork_works" = xcross; then
  19918. + case $host in
  19919. + *-*-amigaos* | *-*-msdosdjgpp*)
  19920. + # Override, as these systems have only a dummy fork() stub
  19921. + ac_cv_func_fork_works=no
  19922. + ;;
  19923. + *)
  19924. + ac_cv_func_fork_works=yes
  19925. + ;;
  19926. + esac
  19927. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  19928. +$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  19929. +fi
  19930. +ac_cv_func_vfork_works=$ac_cv_func_vfork
  19931. +if test "x$ac_cv_func_vfork" = xyes; then
  19932. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  19933. +$as_echo_n "checking for working vfork... " >&6; }
  19934. +if test "${ac_cv_func_vfork_works+set}" = set; then :
  19935. + $as_echo_n "(cached) " >&6
  19936. +else
  19937. + if test "$cross_compiling" = yes; then :
  19938. + ac_cv_func_vfork_works=cross
  19939. +else
  19940. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19941. +/* end confdefs.h. */
  19942. +/* Thanks to Paul Eggert for this test. */
  19943. +$ac_includes_default
  19944. +#include <sys/wait.h>
  19945. +#ifdef HAVE_VFORK_H
  19946. +# include <vfork.h>
  19947. +#endif
  19948. +/* On some sparc systems, changes by the child to local and incoming
  19949. + argument registers are propagated back to the parent. The compiler
  19950. + is told about this with #include <vfork.h>, but some compilers
  19951. + (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  19952. + static variable whose address is put into a register that is
  19953. + clobbered by the vfork. */
  19954. +static void
  19955. +#ifdef __cplusplus
  19956. +sparc_address_test (int arg)
  19957. +# else
  19958. +sparc_address_test (arg) int arg;
  19959. +#endif
  19960. +{
  19961. + static pid_t child;
  19962. + if (!child) {
  19963. + child = vfork ();
  19964. + if (child < 0) {
  19965. + perror ("vfork");
  19966. + _exit(2);
  19967. + }
  19968. + if (!child) {
  19969. + arg = getpid();
  19970. + write(-1, "", 0);
  19971. + _exit (arg);
  19972. + }
  19973. + }
  19974. +}
  19975. +
  19976. +int
  19977. +main ()
  19978. +{
  19979. + pid_t parent = getpid ();
  19980. + pid_t child;
  19981. +
  19982. + sparc_address_test (0);
  19983. +
  19984. + child = vfork ();
  19985. +
  19986. + if (child == 0) {
  19987. + /* Here is another test for sparc vfork register problems. This
  19988. + test uses lots of local variables, at least as many local
  19989. + variables as main has allocated so far including compiler
  19990. + temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  19991. + 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  19992. + reuse the register of parent for one of the local variables,
  19993. + since it will think that parent can't possibly be used any more
  19994. + in this routine. Assigning to the local variable will thus
  19995. + munge parent in the parent process. */
  19996. + pid_t
  19997. + p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  19998. + p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  19999. + /* Convince the compiler that p..p7 are live; otherwise, it might
  20000. + use the same hardware register for all 8 local variables. */
  20001. + if (p != p1 || p != p2 || p != p3 || p != p4
  20002. + || p != p5 || p != p6 || p != p7)
  20003. + _exit(1);
  20004. +
  20005. + /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  20006. + from child file descriptors. If the child closes a descriptor
  20007. + before it execs or exits, this munges the parent's descriptor
  20008. + as well. Test for this by closing stdout in the child. */
  20009. + _exit(close(fileno(stdout)) != 0);
  20010. + } else {
  20011. + int status;
  20012. + struct stat st;
  20013. +
  20014. + while (wait(&status) != child)
  20015. + ;
  20016. + return (
  20017. + /* Was there some problem with vforking? */
  20018. + child < 0
  20019. +
  20020. + /* Did the child fail? (This shouldn't happen.) */
  20021. + || status
  20022. +
  20023. + /* Did the vfork/compiler bug occur? */
  20024. + || parent != getpid()
  20025. +
  20026. + /* Did the file descriptor bug occur? */
  20027. + || fstat(fileno(stdout), &st) != 0
  20028. + );
  20029. + }
  20030. +}
  20031. +_ACEOF
  20032. +if ac_fn_c_try_run "$LINENO"; then :
  20033. + ac_cv_func_vfork_works=yes
  20034. +else
  20035. + ac_cv_func_vfork_works=no
  20036. +fi
  20037. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20038. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  20039. +fi
  20040. +
  20041. +fi
  20042. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  20043. +$as_echo "$ac_cv_func_vfork_works" >&6; }
  20044. +
  20045. +fi;
  20046. +if test "x$ac_cv_func_fork_works" = xcross; then
  20047. + ac_cv_func_vfork_works=$ac_cv_func_vfork
  20048. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  20049. +$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  20050. +fi
  20051. +
  20052. +if test "x$ac_cv_func_vfork_works" = xyes; then
  20053. +
  20054. +$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  20055. +
  20056. +else
  20057. +
  20058. +$as_echo "#define vfork fork" >>confdefs.h
  20059. +
  20060. +fi
  20061. +if test "x$ac_cv_func_fork_works" = xyes; then
  20062. +
  20063. +$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  20064. +
  20065. +fi
  20066. +
  20067. +
  20068. +# g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
  20069. +# iconv() prototype.
  20070. +ac_ext=cpp
  20071. +ac_cpp='$CXXCPP $CPPFLAGS'
  20072. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20073. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20074. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20075. +
  20076. +
  20077. + if test "X$prefix" = "XNONE"; then
  20078. + acl_final_prefix="$ac_default_prefix"
  20079. + else
  20080. + acl_final_prefix="$prefix"
  20081. + fi
  20082. + if test "X$exec_prefix" = "XNONE"; then
  20083. + acl_final_exec_prefix='${prefix}'
  20084. + else
  20085. + acl_final_exec_prefix="$exec_prefix"
  20086. + fi
  20087. + acl_save_prefix="$prefix"
  20088. + prefix="$acl_final_prefix"
  20089. + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  20090. + prefix="$acl_save_prefix"
  20091. +
  20092. +
  20093. +# Check whether --with-gnu-ld was given.
  20094. +if test "${with_gnu_ld+set}" = set; then :
  20095. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  20096. +else
  20097. + with_gnu_ld=no
  20098. +fi
  20099. +
  20100. +# Prepare PATH_SEPARATOR.
  20101. +# The user is always right.
  20102. +if test "${PATH_SEPARATOR+set}" != set; then
  20103. + echo "#! /bin/sh" >conf$$.sh
  20104. + echo "exit 0" >>conf$$.sh
  20105. + chmod +x conf$$.sh
  20106. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  20107. + PATH_SEPARATOR=';'
  20108. + else
  20109. + PATH_SEPARATOR=:
  20110. + fi
  20111. + rm -f conf$$.sh
  20112. +fi
  20113. +ac_prog=ld
  20114. +if test "$GCC" = yes; then
  20115. + # Check if gcc -print-prog-name=ld gives a path.
  20116. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  20117. +$as_echo_n "checking for ld used by GCC... " >&6; }
  20118. + case $host in
  20119. + *-*-mingw*)
  20120. + # gcc leaves a trailing carriage return which upsets mingw
  20121. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  20122. + *)
  20123. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  20124. + esac
  20125. + case $ac_prog in
  20126. + # Accept absolute paths.
  20127. + [\\/]* | [A-Za-z]:[\\/]*)
  20128. + re_direlt='/[^/][^/]*/\.\./'
  20129. + # Canonicalize the path of ld
  20130. + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  20131. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  20132. + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  20133. + done
  20134. + test -z "$LD" && LD="$ac_prog"
  20135. + ;;
  20136. + "")
  20137. + # If it fails, then pretend we aren't using GCC.
  20138. + ac_prog=ld
  20139. + ;;
  20140. + *)
  20141. + # If it is relative, then search for the first ld in PATH.
  20142. + with_gnu_ld=unknown
  20143. + ;;
  20144. + esac
  20145. +elif test "$with_gnu_ld" = yes; then
  20146. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  20147. +$as_echo_n "checking for GNU ld... " >&6; }
  20148. +else
  20149. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  20150. +$as_echo_n "checking for non-GNU ld... " >&6; }
  20151. +fi
  20152. +if test "${acl_cv_path_LD+set}" = set; then :
  20153. + $as_echo_n "(cached) " >&6
  20154. +else
  20155. + if test -z "$LD"; then
  20156. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  20157. + for ac_dir in $PATH; do
  20158. + test -z "$ac_dir" && ac_dir=.
  20159. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  20160. + acl_cv_path_LD="$ac_dir/$ac_prog"
  20161. + # Check to see if the program is GNU ld. I'd rather use --version,
  20162. + # but apparently some GNU ld's only accept -v.
  20163. + # Break only if it was the GNU/non-GNU ld that we prefer.
  20164. + if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  20165. + test "$with_gnu_ld" != no && break
  20166. + else
  20167. + test "$with_gnu_ld" != yes && break
  20168. + fi
  20169. + fi
  20170. + done
  20171. + IFS="$ac_save_ifs"
  20172. +else
  20173. + acl_cv_path_LD="$LD" # Let the user override the test with a path.
  20174. +fi
  20175. +fi
  20176. +
  20177. +LD="$acl_cv_path_LD"
  20178. +if test -n "$LD"; then
  20179. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  20180. +$as_echo "$LD" >&6; }
  20181. +else
  20182. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20183. +$as_echo "no" >&6; }
  20184. +fi
  20185. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  20186. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  20187. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  20188. +if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  20189. + $as_echo_n "(cached) " >&6
  20190. +else
  20191. + # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  20192. +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  20193. + acl_cv_prog_gnu_ld=yes
  20194. +else
  20195. + acl_cv_prog_gnu_ld=no
  20196. +fi
  20197. +fi
  20198. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  20199. +$as_echo "$acl_cv_prog_gnu_ld" >&6; }
  20200. +with_gnu_ld=$acl_cv_prog_gnu_ld
  20201. +
  20202. +
  20203. +
  20204. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  20205. +$as_echo_n "checking for shared library run path origin... " >&6; }
  20206. +if test "${acl_cv_rpath+set}" = set; then :
  20207. + $as_echo_n "(cached) " >&6
  20208. +else
  20209. +
  20210. + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  20211. + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  20212. + . ./conftest.sh
  20213. + rm -f ./conftest.sh
  20214. + acl_cv_rpath=done
  20215. +
  20216. +fi
  20217. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  20218. +$as_echo "$acl_cv_rpath" >&6; }
  20219. + wl="$acl_cv_wl"
  20220. + libext="$acl_cv_libext"
  20221. + shlibext="$acl_cv_shlibext"
  20222. + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  20223. + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  20224. + hardcode_direct="$acl_cv_hardcode_direct"
  20225. + hardcode_minus_L="$acl_cv_hardcode_minus_L"
  20226. + # Check whether --enable-rpath was given.
  20227. +if test "${enable_rpath+set}" = set; then :
  20228. + enableval=$enable_rpath; :
  20229. +else
  20230. + enable_rpath=yes
  20231. +fi
  20232. +
  20233. +
  20234. +
  20235. +
  20236. +
  20237. +
  20238. +
  20239. +
  20240. + use_additional=yes
  20241. +
  20242. + acl_save_prefix="$prefix"
  20243. + prefix="$acl_final_prefix"
  20244. + acl_save_exec_prefix="$exec_prefix"
  20245. + exec_prefix="$acl_final_exec_prefix"
  20246. +
  20247. + eval additional_includedir=\"$includedir\"
  20248. + eval additional_libdir=\"$libdir\"
  20249. +
  20250. + exec_prefix="$acl_save_exec_prefix"
  20251. + prefix="$acl_save_prefix"
  20252. +
  20253. +
  20254. +# Check whether --with-libiconv-prefix was given.
  20255. +if test "${with_libiconv_prefix+set}" = set; then :
  20256. + withval=$with_libiconv_prefix;
  20257. + if test "X$withval" = "Xno"; then
  20258. + use_additional=no
  20259. + else
  20260. + if test "X$withval" = "X"; then
  20261. +
  20262. + acl_save_prefix="$prefix"
  20263. + prefix="$acl_final_prefix"
  20264. + acl_save_exec_prefix="$exec_prefix"
  20265. + exec_prefix="$acl_final_exec_prefix"
  20266. +
  20267. + eval additional_includedir=\"$includedir\"
  20268. + eval additional_libdir=\"$libdir\"
  20269. +
  20270. + exec_prefix="$acl_save_exec_prefix"
  20271. + prefix="$acl_save_prefix"
  20272. +
  20273. + else
  20274. + additional_includedir="$withval/include"
  20275. + additional_libdir="$withval/lib"
  20276. + fi
  20277. + fi
  20278. +
  20279. +fi
  20280. +
  20281. + LIBICONV=
  20282. + LTLIBICONV=
  20283. + INCICONV=
  20284. + rpathdirs=
  20285. + ltrpathdirs=
  20286. + names_already_handled=
  20287. + names_next_round='iconv '
  20288. + while test -n "$names_next_round"; do
  20289. + names_this_round="$names_next_round"
  20290. + names_next_round=
  20291. + for name in $names_this_round; do
  20292. + already_handled=
  20293. + for n in $names_already_handled; do
  20294. + if test "$n" = "$name"; then
  20295. + already_handled=yes
  20296. + break
  20297. + fi
  20298. + done
  20299. + if test -z "$already_handled"; then
  20300. + names_already_handled="$names_already_handled $name"
  20301. + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  20302. + eval value=\"\$HAVE_LIB$uppername\"
  20303. + if test -n "$value"; then
  20304. + if test "$value" = yes; then
  20305. + eval value=\"\$LIB$uppername\"
  20306. + test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  20307. + eval value=\"\$LTLIB$uppername\"
  20308. + test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  20309. + else
  20310. + :
  20311. + fi
  20312. + else
  20313. + found_dir=
  20314. + found_la=
  20315. + found_so=
  20316. + found_a=
  20317. + if test $use_additional = yes; then
  20318. + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  20319. + found_dir="$additional_libdir"
  20320. + found_so="$additional_libdir/lib$name.$shlibext"
  20321. + if test -f "$additional_libdir/lib$name.la"; then
  20322. + found_la="$additional_libdir/lib$name.la"
  20323. + fi
  20324. + else
  20325. + if test -f "$additional_libdir/lib$name.$libext"; then
  20326. + found_dir="$additional_libdir"
  20327. + found_a="$additional_libdir/lib$name.$libext"
  20328. + if test -f "$additional_libdir/lib$name.la"; then
  20329. + found_la="$additional_libdir/lib$name.la"
  20330. + fi
  20331. + fi
  20332. + fi
  20333. + fi
  20334. + if test "X$found_dir" = "X"; then
  20335. + for x in $LDFLAGS $LTLIBICONV; do
  20336. +
  20337. + acl_save_prefix="$prefix"
  20338. + prefix="$acl_final_prefix"
  20339. + acl_save_exec_prefix="$exec_prefix"
  20340. + exec_prefix="$acl_final_exec_prefix"
  20341. + eval x=\"$x\"
  20342. + exec_prefix="$acl_save_exec_prefix"
  20343. + prefix="$acl_save_prefix"
  20344. +
  20345. + case "$x" in
  20346. + -L*)
  20347. + dir=`echo "X$x" | sed -e 's/^X-L//'`
  20348. + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  20349. + found_dir="$dir"
  20350. + found_so="$dir/lib$name.$shlibext"
  20351. + if test -f "$dir/lib$name.la"; then
  20352. + found_la="$dir/lib$name.la"
  20353. + fi
  20354. + else
  20355. + if test -f "$dir/lib$name.$libext"; then
  20356. + found_dir="$dir"
  20357. + found_a="$dir/lib$name.$libext"
  20358. + if test -f "$dir/lib$name.la"; then
  20359. + found_la="$dir/lib$name.la"
  20360. + fi
  20361. + fi
  20362. + fi
  20363. + ;;
  20364. + esac
  20365. + if test "X$found_dir" != "X"; then
  20366. + break
  20367. + fi
  20368. + done
  20369. + fi
  20370. + if test "X$found_dir" != "X"; then
  20371. + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  20372. + if test "X$found_so" != "X"; then
  20373. + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  20374. + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  20375. + else
  20376. + haveit=
  20377. + for x in $ltrpathdirs; do
  20378. + if test "X$x" = "X$found_dir"; then
  20379. + haveit=yes
  20380. + break
  20381. + fi
  20382. + done
  20383. + if test -z "$haveit"; then
  20384. + ltrpathdirs="$ltrpathdirs $found_dir"
  20385. + fi
  20386. + if test "$hardcode_direct" = yes; then
  20387. + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  20388. + else
  20389. + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  20390. + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  20391. + haveit=
  20392. + for x in $rpathdirs; do
  20393. + if test "X$x" = "X$found_dir"; then
  20394. + haveit=yes
  20395. + break
  20396. + fi
  20397. + done
  20398. + if test -z "$haveit"; then
  20399. + rpathdirs="$rpathdirs $found_dir"
  20400. + fi
  20401. + else
  20402. + haveit=
  20403. + for x in $LDFLAGS $LIBICONV; do
  20404. +
  20405. + acl_save_prefix="$prefix"
  20406. + prefix="$acl_final_prefix"
  20407. + acl_save_exec_prefix="$exec_prefix"
  20408. + exec_prefix="$acl_final_exec_prefix"
  20409. + eval x=\"$x\"
  20410. + exec_prefix="$acl_save_exec_prefix"
  20411. + prefix="$acl_save_prefix"
  20412. +
  20413. + if test "X$x" = "X-L$found_dir"; then
  20414. + haveit=yes
  20415. + break
  20416. + fi
  20417. + done
  20418. + if test -z "$haveit"; then
  20419. + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  20420. + fi
  20421. + if test "$hardcode_minus_L" != no; then
  20422. + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  20423. + else
  20424. + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  20425. + fi
  20426. + fi
  20427. + fi
  20428. + fi
  20429. + else
  20430. + if test "X$found_a" != "X"; then
  20431. + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  20432. + else
  20433. + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  20434. + fi
  20435. + fi
  20436. + additional_includedir=
  20437. + case "$found_dir" in
  20438. + */lib | */lib/)
  20439. + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  20440. + additional_includedir="$basedir/include"
  20441. + ;;
  20442. + esac
  20443. + if test "X$additional_includedir" != "X"; then
  20444. + if test "X$additional_includedir" != "X/usr/include"; then
  20445. + haveit=
  20446. + if test "X$additional_includedir" = "X/usr/local/include"; then
  20447. + if test -n "$GCC"; then
  20448. + case $host_os in
  20449. + linux*) haveit=yes;;
  20450. + esac
  20451. + fi
  20452. + fi
  20453. + if test -z "$haveit"; then
  20454. + for x in $CPPFLAGS $INCICONV; do
  20455. +
  20456. + acl_save_prefix="$prefix"
  20457. + prefix="$acl_final_prefix"
  20458. + acl_save_exec_prefix="$exec_prefix"
  20459. + exec_prefix="$acl_final_exec_prefix"
  20460. + eval x=\"$x\"
  20461. + exec_prefix="$acl_save_exec_prefix"
  20462. + prefix="$acl_save_prefix"
  20463. +
  20464. + if test "X$x" = "X-I$additional_includedir"; then
  20465. + haveit=yes
  20466. + break
  20467. + fi
  20468. + done
  20469. + if test -z "$haveit"; then
  20470. + if test -d "$additional_includedir"; then
  20471. + INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  20472. + fi
  20473. + fi
  20474. + fi
  20475. + fi
  20476. + fi
  20477. + if test -n "$found_la"; then
  20478. + save_libdir="$libdir"
  20479. + case "$found_la" in
  20480. + */* | *\\*) . "$found_la" ;;
  20481. + *) . "./$found_la" ;;
  20482. + esac
  20483. + libdir="$save_libdir"
  20484. + for dep in $dependency_libs; do
  20485. + case "$dep" in
  20486. + -L*)
  20487. + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  20488. + if test "X$additional_libdir" != "X/usr/lib"; then
  20489. + haveit=
  20490. + if test "X$additional_libdir" = "X/usr/local/lib"; then
  20491. + if test -n "$GCC"; then
  20492. + case $host_os in
  20493. + linux*) haveit=yes;;
  20494. + esac
  20495. + fi
  20496. + fi
  20497. + if test -z "$haveit"; then
  20498. + haveit=
  20499. + for x in $LDFLAGS $LIBICONV; do
  20500. +
  20501. + acl_save_prefix="$prefix"
  20502. + prefix="$acl_final_prefix"
  20503. + acl_save_exec_prefix="$exec_prefix"
  20504. + exec_prefix="$acl_final_exec_prefix"
  20505. + eval x=\"$x\"
  20506. + exec_prefix="$acl_save_exec_prefix"
  20507. + prefix="$acl_save_prefix"
  20508. +
  20509. + if test "X$x" = "X-L$additional_libdir"; then
  20510. + haveit=yes
  20511. + break
  20512. + fi
  20513. + done
  20514. + if test -z "$haveit"; then
  20515. + if test -d "$additional_libdir"; then
  20516. + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  20517. + fi
  20518. + fi
  20519. + haveit=
  20520. + for x in $LDFLAGS $LTLIBICONV; do
  20521. +
  20522. + acl_save_prefix="$prefix"
  20523. + prefix="$acl_final_prefix"
  20524. + acl_save_exec_prefix="$exec_prefix"
  20525. + exec_prefix="$acl_final_exec_prefix"
  20526. + eval x=\"$x\"
  20527. + exec_prefix="$acl_save_exec_prefix"
  20528. + prefix="$acl_save_prefix"
  20529. +
  20530. + if test "X$x" = "X-L$additional_libdir"; then
  20531. + haveit=yes
  20532. + break
  20533. + fi
  20534. + done
  20535. + if test -z "$haveit"; then
  20536. + if test -d "$additional_libdir"; then
  20537. + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  20538. + fi
  20539. + fi
  20540. + fi
  20541. + fi
  20542. + ;;
  20543. + -R*)
  20544. + dir=`echo "X$dep" | sed -e 's/^X-R//'`
  20545. + if test "$enable_rpath" != no; then
  20546. + haveit=
  20547. + for x in $rpathdirs; do
  20548. + if test "X$x" = "X$dir"; then
  20549. + haveit=yes
  20550. + break
  20551. + fi
  20552. + done
  20553. + if test -z "$haveit"; then
  20554. + rpathdirs="$rpathdirs $dir"
  20555. + fi
  20556. + haveit=
  20557. + for x in $ltrpathdirs; do
  20558. + if test "X$x" = "X$dir"; then
  20559. + haveit=yes
  20560. + break
  20561. + fi
  20562. + done
  20563. + if test -z "$haveit"; then
  20564. + ltrpathdirs="$ltrpathdirs $dir"
  20565. + fi
  20566. + fi
  20567. + ;;
  20568. + -l*)
  20569. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  20570. + ;;
  20571. + *.la)
  20572. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  20573. + ;;
  20574. + *)
  20575. + LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  20576. + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  20577. + ;;
  20578. + esac
  20579. + done
  20580. + fi
  20581. + else
  20582. + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  20583. + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  20584. + fi
  20585. + fi
  20586. + fi
  20587. + done
  20588. + done
  20589. + if test "X$rpathdirs" != "X"; then
  20590. + if test -n "$hardcode_libdir_separator"; then
  20591. + alldirs=
  20592. + for found_dir in $rpathdirs; do
  20593. + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  20594. + done
  20595. + acl_save_libdir="$libdir"
  20596. + libdir="$alldirs"
  20597. + eval flag=\"$hardcode_libdir_flag_spec\"
  20598. + libdir="$acl_save_libdir"
  20599. + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  20600. + else
  20601. + for found_dir in $rpathdirs; do
  20602. + acl_save_libdir="$libdir"
  20603. + libdir="$found_dir"
  20604. + eval flag=\"$hardcode_libdir_flag_spec\"
  20605. + libdir="$acl_save_libdir"
  20606. + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  20607. + done
  20608. + fi
  20609. + fi
  20610. + if test "X$ltrpathdirs" != "X"; then
  20611. + for found_dir in $ltrpathdirs; do
  20612. + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  20613. + done
  20614. + fi
  20615. +
  20616. +
  20617. +
  20618. +
  20619. +
  20620. +
  20621. +
  20622. + am_save_CPPFLAGS="$CPPFLAGS"
  20623. +
  20624. + for element in $INCICONV; do
  20625. + haveit=
  20626. + for x in $CPPFLAGS; do
  20627. +
  20628. + acl_save_prefix="$prefix"
  20629. + prefix="$acl_final_prefix"
  20630. + acl_save_exec_prefix="$exec_prefix"
  20631. + exec_prefix="$acl_final_exec_prefix"
  20632. + eval x=\"$x\"
  20633. + exec_prefix="$acl_save_exec_prefix"
  20634. + prefix="$acl_save_prefix"
  20635. +
  20636. + if test "X$x" = "X$element"; then
  20637. + haveit=yes
  20638. + break
  20639. + fi
  20640. + done
  20641. + if test -z "$haveit"; then
  20642. + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  20643. + fi
  20644. + done
  20645. +
  20646. +
  20647. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  20648. +$as_echo_n "checking for iconv... " >&6; }
  20649. +if test "${am_cv_func_iconv+set}" = set; then :
  20650. + $as_echo_n "(cached) " >&6
  20651. +else
  20652. +
  20653. + am_cv_func_iconv="no, consider installing GNU libiconv"
  20654. + am_cv_lib_iconv=no
  20655. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20656. +/* end confdefs.h. */
  20657. +#include <stdlib.h>
  20658. +#include <iconv.h>
  20659. +int
  20660. +main ()
  20661. +{
  20662. +iconv_t cd = iconv_open("","");
  20663. + iconv(cd,NULL,NULL,NULL,NULL);
  20664. + iconv_close(cd);
  20665. + ;
  20666. + return 0;
  20667. +}
  20668. +_ACEOF
  20669. +if ac_fn_cxx_try_link "$LINENO"; then :
  20670. + am_cv_func_iconv=yes
  20671. +fi
  20672. +rm -f core conftest.err conftest.$ac_objext \
  20673. + conftest$ac_exeext conftest.$ac_ext
  20674. + if test "$am_cv_func_iconv" != yes; then
  20675. + am_save_LIBS="$LIBS"
  20676. + LIBS="$LIBS $LIBICONV"
  20677. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20678. +/* end confdefs.h. */
  20679. +#include <stdlib.h>
  20680. +#include <iconv.h>
  20681. +int
  20682. +main ()
  20683. +{
  20684. +iconv_t cd = iconv_open("","");
  20685. + iconv(cd,NULL,NULL,NULL,NULL);
  20686. + iconv_close(cd);
  20687. + ;
  20688. + return 0;
  20689. +}
  20690. +_ACEOF
  20691. +if ac_fn_cxx_try_link "$LINENO"; then :
  20692. + am_cv_lib_iconv=yes
  20693. + am_cv_func_iconv=yes
  20694. +fi
  20695. +rm -f core conftest.err conftest.$ac_objext \
  20696. + conftest$ac_exeext conftest.$ac_ext
  20697. + LIBS="$am_save_LIBS"
  20698. + fi
  20699. +
  20700. +fi
  20701. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  20702. +$as_echo "$am_cv_func_iconv" >&6; }
  20703. + if test "$am_cv_func_iconv" = yes; then
  20704. +
  20705. +$as_echo "#define HAVE_ICONV 1" >>confdefs.h
  20706. +
  20707. + fi
  20708. + if test "$am_cv_lib_iconv" = yes; then
  20709. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  20710. +$as_echo_n "checking how to link with libiconv... " >&6; }
  20711. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  20712. +$as_echo "$LIBICONV" >&6; }
  20713. + else
  20714. + CPPFLAGS="$am_save_CPPFLAGS"
  20715. + LIBICONV=
  20716. + LTLIBICONV=
  20717. + fi
  20718. +
  20719. +
  20720. +
  20721. + if test "$am_cv_func_iconv" = yes; then
  20722. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  20723. +$as_echo_n "checking for iconv declaration... " >&6; }
  20724. + if test "${am_cv_proto_iconv+set}" = set; then :
  20725. + $as_echo_n "(cached) " >&6
  20726. +else
  20727. +
  20728. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20729. +/* end confdefs.h. */
  20730. +
  20731. +#include <stdlib.h>
  20732. +#include <iconv.h>
  20733. +extern
  20734. +#ifdef __cplusplus
  20735. +"C"
  20736. +#endif
  20737. +#if defined(__STDC__) || defined(__cplusplus)
  20738. +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  20739. +#else
  20740. +size_t iconv();
  20741. +#endif
  20742. +
  20743. +int
  20744. +main ()
  20745. +{
  20746. +
  20747. + ;
  20748. + return 0;
  20749. +}
  20750. +_ACEOF
  20751. +if ac_fn_cxx_try_compile "$LINENO"; then :
  20752. + am_cv_proto_iconv_arg1=""
  20753. +else
  20754. + am_cv_proto_iconv_arg1="const"
  20755. +fi
  20756. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20757. + am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  20758. +fi
  20759. +
  20760. + am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  20761. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  20762. + }$am_cv_proto_iconv" >&5
  20763. +$as_echo "${ac_t:-
  20764. + }$am_cv_proto_iconv" >&6; }
  20765. +
  20766. +cat >>confdefs.h <<_ACEOF
  20767. +#define ICONV_CONST $am_cv_proto_iconv_arg1
  20768. +_ACEOF
  20769. +
  20770. + fi
  20771. +
  20772. +ac_ext=c
  20773. +ac_cpp='$CPP $CPPFLAGS'
  20774. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20775. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20776. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20777. +
  20778. +
  20779. +# Until we have in-tree GNU iconv:
  20780. +LIBICONV_DEP=
  20781. +
  20782. +
  20783. +
  20784. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  20785. +$as_echo_n "checking for LC_MESSAGES... " >&6; }
  20786. +if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
  20787. + $as_echo_n "(cached) " >&6
  20788. +else
  20789. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20790. +/* end confdefs.h. */
  20791. +#include <locale.h>
  20792. +int
  20793. +main ()
  20794. +{
  20795. +return LC_MESSAGES
  20796. + ;
  20797. + return 0;
  20798. +}
  20799. +_ACEOF
  20800. +if ac_fn_c_try_link "$LINENO"; then :
  20801. + am_cv_val_LC_MESSAGES=yes
  20802. +else
  20803. + am_cv_val_LC_MESSAGES=no
  20804. +fi
  20805. +rm -f core conftest.err conftest.$ac_objext \
  20806. + conftest$ac_exeext conftest.$ac_ext
  20807. +fi
  20808. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
  20809. +$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  20810. + if test $am_cv_val_LC_MESSAGES = yes; then
  20811. +
  20812. +$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  20813. +
  20814. + fi
  20815. +
  20816. +
  20817. +
  20818. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  20819. +$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  20820. +if test "${am_cv_langinfo_codeset+set}" = set; then :
  20821. + $as_echo_n "(cached) " >&6
  20822. +else
  20823. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20824. +/* end confdefs.h. */
  20825. +#include <langinfo.h>
  20826. +int
  20827. +main ()
  20828. +{
  20829. +char* cs = nl_langinfo(CODESET);
  20830. + ;
  20831. + return 0;
  20832. +}
  20833. +_ACEOF
  20834. +if ac_fn_c_try_link "$LINENO"; then :
  20835. + am_cv_langinfo_codeset=yes
  20836. +else
  20837. + am_cv_langinfo_codeset=no
  20838. +fi
  20839. +rm -f core conftest.err conftest.$ac_objext \
  20840. + conftest$ac_exeext conftest.$ac_ext
  20841. +
  20842. +fi
  20843. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  20844. +$as_echo "$am_cv_langinfo_codeset" >&6; }
  20845. + if test $am_cv_langinfo_codeset = yes; then
  20846. +
  20847. +$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  20848. +
  20849. + fi
  20850. +
  20851. +
  20852. +# We will need to find libiberty.h and ansidecl.h
  20853. +saved_CFLAGS="$CFLAGS"
  20854. +CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
  20855. +saved_CXXFLAGS="$CXXFLAGS"
  20856. +CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
  20857. +for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
  20858. + strsignal strstr stpcpy strverscmp \
  20859. + errno snprintf vsnprintf vasprintf malloc realloc calloc \
  20860. + free basename getopt clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
  20861. +do
  20862. + ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
  20863. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
  20864. +$as_echo_n "checking whether $ac_func is declared... " >&6; }
  20865. +if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
  20866. + $as_echo_n "(cached) " >&6
  20867. +else
  20868. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20869. +/* end confdefs.h. */
  20870. +#undef $ac_tr_decl
  20871. +#define $ac_tr_decl 1
  20872. +
  20873. +#include "ansidecl.h"
  20874. +#include "system.h"
  20875. +
  20876. +int
  20877. +main ()
  20878. +{
  20879. +#ifndef $ac_func
  20880. +char *(*pfn) = (char *(*)) $ac_func ;
  20881. +#endif
  20882. + ;
  20883. + return 0;
  20884. +}
  20885. +_ACEOF
  20886. +if ac_fn_c_try_compile "$LINENO"; then :
  20887. + eval "gcc_cv_have_decl_$ac_func=yes"
  20888. +else
  20889. + eval "gcc_cv_have_decl_$ac_func=no"
  20890. +fi
  20891. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20892. +fi
  20893. +
  20894. +if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
  20895. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20896. +$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
  20897. +#define $ac_tr_decl 1
  20898. +_ACEOF
  20899. +
  20900. +else
  20901. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20902. +$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
  20903. +#define $ac_tr_decl 0
  20904. +_ACEOF
  20905. +
  20906. +fi
  20907. +
  20908. +done
  20909. +
  20910. +
  20911. +for ac_func in getrlimit setrlimit getrusage
  20912. +do
  20913. + ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
  20914. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
  20915. +$as_echo_n "checking whether $ac_func is declared... " >&6; }
  20916. +if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
  20917. + $as_echo_n "(cached) " >&6
  20918. +else
  20919. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20920. +/* end confdefs.h. */
  20921. +#undef $ac_tr_decl
  20922. +#define $ac_tr_decl 1
  20923. +
  20924. +#include "ansidecl.h"
  20925. +#include "system.h"
  20926. +#ifdef HAVE_SYS_RESOURCE_H
  20927. +#include <sys/resource.h>
  20928. +#endif
  20929. +
  20930. +
  20931. +int
  20932. +main ()
  20933. +{
  20934. +#ifndef $ac_func
  20935. +char *(*pfn) = (char *(*)) $ac_func ;
  20936. +#endif
  20937. + ;
  20938. + return 0;
  20939. +}
  20940. +_ACEOF
  20941. +if ac_fn_c_try_compile "$LINENO"; then :
  20942. + eval "gcc_cv_have_decl_$ac_func=yes"
  20943. +else
  20944. + eval "gcc_cv_have_decl_$ac_func=no"
  20945. +fi
  20946. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20947. +fi
  20948. +
  20949. +if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
  20950. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20951. +$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
  20952. +#define $ac_tr_decl 1
  20953. +_ACEOF
  20954. +
  20955. +else
  20956. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20957. +$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
  20958. +#define $ac_tr_decl 0
  20959. +_ACEOF
  20960. +
  20961. +fi
  20962. +
  20963. +done
  20964. +
  20965. +
  20966. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20967. +/* end confdefs.h. */
  20968. +
  20969. +#include "ansidecl.h"
  20970. +#include "system.h"
  20971. +#ifdef HAVE_SYS_RESOURCE_H
  20972. +#include <sys/resource.h>
  20973. +#endif
  20974. +
  20975. +int
  20976. +main ()
  20977. +{
  20978. +rlim_t l = 0;
  20979. + ;
  20980. + return 0;
  20981. +}
  20982. +_ACEOF
  20983. +if ac_fn_c_try_compile "$LINENO"; then :
  20984. +
  20985. +else
  20986. +
  20987. +$as_echo "#define rlim_t long" >>confdefs.h
  20988. +
  20989. +fi
  20990. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20991. +
  20992. +# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
  20993. +# FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
  20994. +# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
  20995. +# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
  20996. +for ac_func in ldgetname
  20997. +do
  20998. + ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
  20999. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
  21000. +$as_echo_n "checking whether $ac_func is declared... " >&6; }
  21001. +if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
  21002. + $as_echo_n "(cached) " >&6
  21003. +else
  21004. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21005. +/* end confdefs.h. */
  21006. +#undef $ac_tr_decl
  21007. +#define $ac_tr_decl 1
  21008. +
  21009. +#include "ansidecl.h"
  21010. +#include "system.h"
  21011. +#ifdef HAVE_LDFCN_H
  21012. +#undef FREAD
  21013. +#undef FWRITE
  21014. +#include <ldfcn.h>
  21015. +#endif
  21016. +
  21017. +
  21018. +int
  21019. +main ()
  21020. +{
  21021. +#ifndef $ac_func
  21022. +char *(*pfn) = (char *(*)) $ac_func ;
  21023. +#endif
  21024. + ;
  21025. + return 0;
  21026. +}
  21027. +_ACEOF
  21028. +if ac_fn_c_try_compile "$LINENO"; then :
  21029. + eval "gcc_cv_have_decl_$ac_func=yes"
  21030. +else
  21031. + eval "gcc_cv_have_decl_$ac_func=no"
  21032. +fi
  21033. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21034. +fi
  21035. +
  21036. +if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
  21037. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21038. +$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
  21039. +#define $ac_tr_decl 1
  21040. +_ACEOF
  21041. +
  21042. +else
  21043. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21044. +$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
  21045. +#define $ac_tr_decl 0
  21046. +_ACEOF
  21047. +
  21048. +fi
  21049. +
  21050. +done
  21051. +
  21052. +
  21053. +for ac_func in times
  21054. +do
  21055. + ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
  21056. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
  21057. +$as_echo_n "checking whether $ac_func is declared... " >&6; }
  21058. +if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
  21059. + $as_echo_n "(cached) " >&6
  21060. +else
  21061. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21062. +/* end confdefs.h. */
  21063. +#undef $ac_tr_decl
  21064. +#define $ac_tr_decl 1
  21065. +
  21066. +#include "ansidecl.h"
  21067. +#include "system.h"
  21068. +#ifdef HAVE_SYS_TIMES_H
  21069. +#include <sys/times.h>
  21070. +#endif
  21071. +
  21072. +
  21073. +int
  21074. +main ()
  21075. +{
  21076. +#ifndef $ac_func
  21077. +char *(*pfn) = (char *(*)) $ac_func ;
  21078. +#endif
  21079. + ;
  21080. + return 0;
  21081. +}
  21082. +_ACEOF
  21083. +if ac_fn_c_try_compile "$LINENO"; then :
  21084. + eval "gcc_cv_have_decl_$ac_func=yes"
  21085. +else
  21086. + eval "gcc_cv_have_decl_$ac_func=no"
  21087. +fi
  21088. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21089. +fi
  21090. +
  21091. +if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
  21092. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21093. +$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
  21094. +#define $ac_tr_decl 1
  21095. +_ACEOF
  21096. +
  21097. +else
  21098. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21099. +$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
  21100. +#define $ac_tr_decl 0
  21101. +_ACEOF
  21102. +
  21103. +fi
  21104. +
  21105. +done
  21106. +
  21107. +
  21108. +for ac_func in sigaltstack
  21109. +do
  21110. + ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
  21111. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
  21112. +$as_echo_n "checking whether $ac_func is declared... " >&6; }
  21113. +if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
  21114. + $as_echo_n "(cached) " >&6
  21115. +else
  21116. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21117. +/* end confdefs.h. */
  21118. +#undef $ac_tr_decl
  21119. +#define $ac_tr_decl 1
  21120. +
  21121. +#include "ansidecl.h"
  21122. +#include "system.h"
  21123. +#include <signal.h>
  21124. +
  21125. +
  21126. +int
  21127. +main ()
  21128. +{
  21129. +#ifndef $ac_func
  21130. +char *(*pfn) = (char *(*)) $ac_func ;
  21131. +#endif
  21132. + ;
  21133. + return 0;
  21134. +}
  21135. +_ACEOF
  21136. +if ac_fn_c_try_compile "$LINENO"; then :
  21137. + eval "gcc_cv_have_decl_$ac_func=yes"
  21138. +else
  21139. + eval "gcc_cv_have_decl_$ac_func=no"
  21140. +fi
  21141. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21142. +fi
  21143. +
  21144. +if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
  21145. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21146. +$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
  21147. +#define $ac_tr_decl 1
  21148. +_ACEOF
  21149. +
  21150. +else
  21151. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21152. +$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
  21153. +#define $ac_tr_decl 0
  21154. +_ACEOF
  21155. +
  21156. +fi
  21157. +
  21158. +done
  21159. +
  21160. +
  21161. +# g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
  21162. +# prototype.
  21163. +ac_ext=cpp
  21164. +ac_cpp='$CXXCPP $CPPFLAGS'
  21165. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21166. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21167. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21168. +
  21169. +for ac_func in madvise
  21170. +do
  21171. + ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
  21172. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
  21173. +$as_echo_n "checking whether $ac_func is declared... " >&6; }
  21174. +if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
  21175. + $as_echo_n "(cached) " >&6
  21176. +else
  21177. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21178. +/* end confdefs.h. */
  21179. +#undef $ac_tr_decl
  21180. +#define $ac_tr_decl 1
  21181. +
  21182. + #include "ansidecl.h"
  21183. + #include "system.h"
  21184. +
  21185. +
  21186. +int
  21187. +main ()
  21188. +{
  21189. +#ifndef $ac_func
  21190. +char *(*pfn) = (char *(*)) $ac_func ;
  21191. +#endif
  21192. + ;
  21193. + return 0;
  21194. +}
  21195. +_ACEOF
  21196. +if ac_fn_cxx_try_compile "$LINENO"; then :
  21197. + eval "gcc_cv_have_decl_$ac_func=yes"
  21198. +else
  21199. + eval "gcc_cv_have_decl_$ac_func=no"
  21200. +fi
  21201. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21202. +fi
  21203. +
  21204. +if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
  21205. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21206. +$as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
  21207. +#define $ac_tr_decl 1
  21208. +_ACEOF
  21209. +
  21210. +else
  21211. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21212. +$as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
  21213. +#define $ac_tr_decl 0
  21214. +_ACEOF
  21215. +
  21216. +fi
  21217. +
  21218. +done
  21219. +
  21220. +ac_ext=c
  21221. +ac_cpp='$CPP $CPPFLAGS'
  21222. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21223. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21224. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21225. +
  21226. +
  21227. +# More time-related stuff.
  21228. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
  21229. +$as_echo_n "checking for struct tms... " >&6; }
  21230. +if test "${ac_cv_struct_tms+set}" = set; then :
  21231. + $as_echo_n "(cached) " >&6
  21232. +else
  21233. +
  21234. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21235. +/* end confdefs.h. */
  21236. +
  21237. +#include "ansidecl.h"
  21238. +#include "system.h"
  21239. +#ifdef HAVE_SYS_TIMES_H
  21240. +#include <sys/times.h>
  21241. +#endif
  21242. +
  21243. +int
  21244. +main ()
  21245. +{
  21246. +struct tms tms;
  21247. + ;
  21248. + return 0;
  21249. +}
  21250. +_ACEOF
  21251. +if ac_fn_c_try_compile "$LINENO"; then :
  21252. + ac_cv_struct_tms=yes
  21253. +else
  21254. + ac_cv_struct_tms=no
  21255. +fi
  21256. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21257. +fi
  21258. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
  21259. +$as_echo "$ac_cv_struct_tms" >&6; }
  21260. +if test $ac_cv_struct_tms = yes; then
  21261. +
  21262. +$as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
  21263. +
  21264. +fi
  21265. +
  21266. +# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
  21267. +# revisit after autoconf 2.50.
  21268. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
  21269. +$as_echo_n "checking for clock_t... " >&6; }
  21270. +if test "${gcc_cv_type_clock_t+set}" = set; then :
  21271. + $as_echo_n "(cached) " >&6
  21272. +else
  21273. +
  21274. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21275. +/* end confdefs.h. */
  21276. +
  21277. +#include "ansidecl.h"
  21278. +#include "system.h"
  21279. +
  21280. +int
  21281. +main ()
  21282. +{
  21283. +clock_t x;
  21284. + ;
  21285. + return 0;
  21286. +}
  21287. +_ACEOF
  21288. +if ac_fn_c_try_compile "$LINENO"; then :
  21289. + gcc_cv_type_clock_t=yes
  21290. +else
  21291. + gcc_cv_type_clock_t=no
  21292. +fi
  21293. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21294. +fi
  21295. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
  21296. +$as_echo "$gcc_cv_type_clock_t" >&6; }
  21297. +if test $gcc_cv_type_clock_t = yes; then
  21298. +
  21299. +$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
  21300. +
  21301. +fi
  21302. +
  21303. +# Check if F_SETLKW is supported by fcntl.
  21304. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
  21305. +$as_echo_n "checking for F_SETLKW... " >&6; }
  21306. +if test "${ac_cv_f_setlkw+set}" = set; then :
  21307. + $as_echo_n "(cached) " >&6
  21308. +else
  21309. +
  21310. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21311. +/* end confdefs.h. */
  21312. +
  21313. +#include <fcntl.h>
  21314. +int
  21315. +main ()
  21316. +{
  21317. +
  21318. +struct flock fl;
  21319. +fl.l_whence = 0;
  21320. +fl.l_start = 0;
  21321. +fl.l_len = 0;
  21322. +fl.l_pid = 0;
  21323. +return fcntl (1, F_SETLKW, &fl);
  21324. + ;
  21325. + return 0;
  21326. +}
  21327. +_ACEOF
  21328. +if ac_fn_c_try_compile "$LINENO"; then :
  21329. + ac_cv_f_setlkw=yes
  21330. +else
  21331. + ac_cv_f_setlkw=no
  21332. +fi
  21333. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21334. +fi
  21335. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
  21336. +$as_echo "$ac_cv_f_setlkw" >&6; }
  21337. +if test $ac_cv_f_setlkw = yes; then
  21338. +
  21339. +$as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
  21340. +
  21341. +fi
  21342. +
  21343. +# Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
  21344. +CFLAGS="$saved_CFLAGS"
  21345. +CXXFLAGS="$saved_CXXFLAGS"
  21346. +
  21347. +# mkdir takes a single argument on some systems.
  21348. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
  21349. +$as_echo_n "checking if mkdir takes one argument... " >&6; }
  21350. +if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
  21351. + $as_echo_n "(cached) " >&6
  21352. +else
  21353. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21354. +/* end confdefs.h. */
  21355. +
  21356. +#include <sys/types.h>
  21357. +#ifdef HAVE_SYS_STAT_H
  21358. +# include <sys/stat.h>
  21359. +#endif
  21360. +#ifdef HAVE_UNISTD_H
  21361. +# include <unistd.h>
  21362. +#endif
  21363. +#ifdef HAVE_DIRECT_H
  21364. +# include <direct.h>
  21365. +#endif
  21366. +int
  21367. +main ()
  21368. +{
  21369. +mkdir ("foo", 0);
  21370. + ;
  21371. + return 0;
  21372. +}
  21373. +_ACEOF
  21374. +if ac_fn_c_try_compile "$LINENO"; then :
  21375. + gcc_cv_mkdir_takes_one_arg=no
  21376. +else
  21377. + gcc_cv_mkdir_takes_one_arg=yes
  21378. +fi
  21379. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21380. +fi
  21381. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
  21382. +$as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
  21383. +if test $gcc_cv_mkdir_takes_one_arg = yes ; then
  21384. +
  21385. +$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
  21386. +
  21387. +fi
  21388. +
  21389. +
  21390. +# File extensions
  21391. +manext='.1'
  21392. +objext='.o'
  21393. +
  21394. +
  21395. +
  21396. +# With Setjmp/Longjmp based exception handling.
  21397. +# Check whether --enable-sjlj-exceptions was given.
  21398. +if test "${enable_sjlj_exceptions+set}" = set; then :
  21399. + enableval=$enable_sjlj_exceptions; case $target in
  21400. + *-*-hpux10*)
  21401. + if test $enableval != yes; then
  21402. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
  21403. +$as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
  21404. + enableval=yes
  21405. + fi
  21406. + ;;
  21407. +esac
  21408. +force_sjlj_exceptions=yes
  21409. +else
  21410. + case $target in
  21411. + *-*-hpux10*)
  21412. + force_sjlj_exceptions=yes
  21413. + enableval=yes
  21414. + ;;
  21415. + lm32*-*-*)
  21416. + force_sjlj_exceptions=yes
  21417. + enableval=yes
  21418. + ;;
  21419. + *)
  21420. + force_sjlj_exceptions=no
  21421. + ;;
  21422. +esac
  21423. +fi
  21424. +
  21425. +if test $force_sjlj_exceptions = yes; then
  21426. + sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
  21427. +
  21428. +cat >>confdefs.h <<_ACEOF
  21429. +#define CONFIG_SJLJ_EXCEPTIONS $sjlj
  21430. +_ACEOF
  21431. +
  21432. +fi
  21433. +
  21434. +# --------------------------------------------------------
  21435. +# Build, host, and target specific configuration fragments
  21436. +# --------------------------------------------------------
  21437. +
  21438. +# Collect build-machine-specific information.
  21439. +. ${srcdir}/config.build
  21440. +
  21441. +# Collect host-machine-specific information.
  21442. +. ${srcdir}/config.host
  21443. +
  21444. +target_gtfiles=
  21445. +
  21446. +# Collect target-machine-specific information.
  21447. +. ${srcdir}/config.gcc
  21448. +
  21449. +extra_objs="${host_extra_objs} ${extra_objs}"
  21450. +extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
  21451. +
  21452. +# Default the target-machine variables that were not explicitly set.
  21453. +if test x"$tm_file" = x
  21454. +then tm_file=$cpu_type/$cpu_type.h; fi
  21455. +
  21456. +if test x"$extra_headers" = x
  21457. +then extra_headers=; fi
  21458. +
  21459. +if test x$md_file = x
  21460. +then md_file=$cpu_type/$cpu_type.md; fi
  21461. +
  21462. +if test x$out_file = x
  21463. +then out_file=$cpu_type/$cpu_type.c; fi
  21464. +
  21465. +if test x"$tmake_file" = x
  21466. +then tmake_file=$cpu_type/t-$cpu_type
  21467. +fi
  21468. +
  21469. +# Support --enable-initfini-array.
  21470. +if test x$enable_initfini_array != xno; then
  21471. + tm_file="${tm_file} initfini-array.h"
  21472. +fi
  21473. +
  21474. +if test x"$dwarf2" = xyes
  21475. +then tm_file="$tm_file tm-dwarf2.h"
  21476. +fi
  21477. +
  21478. +# Say what files are being used for the output code and MD file.
  21479. +echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
  21480. +echo "Using \`$srcdir/config/$md_file' as machine description file."
  21481. +
  21482. +# If any of the xm_file variables contain nonexistent files, warn
  21483. +# about them and drop them.
  21484. +
  21485. +bx=
  21486. +for x in $build_xm_file; do
  21487. + if test -f $srcdir/config/$x
  21488. + then bx="$bx $x"
  21489. + else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
  21490. +$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
  21491. + fi
  21492. +done
  21493. +build_xm_file="$bx"
  21494. +
  21495. +hx=
  21496. +for x in $host_xm_file; do
  21497. + if test -f $srcdir/config/$x
  21498. + then hx="$hx $x"
  21499. + else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
  21500. +$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
  21501. + fi
  21502. +done
  21503. +host_xm_file="$hx"
  21504. +
  21505. +tx=
  21506. +for x in $xm_file; do
  21507. + if test -f $srcdir/config/$x
  21508. + then tx="$tx $x"
  21509. + else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
  21510. +$as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
  21511. + fi
  21512. +done
  21513. +xm_file="$tx"
  21514. +
  21515. +count=a
  21516. +for f in $tm_file; do
  21517. + count=${count}x
  21518. +done
  21519. +if test $count = ax; then
  21520. + echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
  21521. +else
  21522. + echo "Using the following target machine macro files:"
  21523. + for f in $tm_file; do
  21524. + echo " $srcdir/config/$f"
  21525. + done
  21526. +fi
  21527. +
  21528. +if test x$need_64bit_hwint = xyes; then
  21529. +
  21530. +$as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
  21531. +
  21532. +fi
  21533. +
  21534. +if test x$use_long_long_for_widest_fast_int = xyes; then
  21535. +
  21536. +$as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
  21537. +
  21538. +fi
  21539. +
  21540. +gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
  21541. +
  21542. +cat >>confdefs.h <<_ACEOF
  21543. +#define HAVE_GNU_LD $gnu_ld_bool
  21544. +_ACEOF
  21545. +
  21546. +
  21547. +gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
  21548. +
  21549. +cat >>confdefs.h <<_ACEOF
  21550. +#define HAVE_GNU_AS $gnu_as_bool
  21551. +_ACEOF
  21552. +
  21553. +
  21554. +count=a
  21555. +for f in $host_xm_file; do
  21556. + count=${count}x
  21557. +done
  21558. +if test $count = a; then
  21559. + :
  21560. +elif test $count = ax; then
  21561. + echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
  21562. +else
  21563. + echo "Using the following host machine macro files:"
  21564. + for f in $host_xm_file; do
  21565. + echo " $srcdir/config/$f"
  21566. + done
  21567. +fi
  21568. +echo "Using ${out_host_hook_obj} for host machine hooks."
  21569. +
  21570. +if test "$host_xm_file" != "$build_xm_file"; then
  21571. + count=a
  21572. + for f in $build_xm_file; do
  21573. + count=${count}x
  21574. + done
  21575. + if test $count = a; then
  21576. + :
  21577. + elif test $count = ax; then
  21578. + echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
  21579. + else
  21580. + echo "Using the following build machine macro files:"
  21581. + for f in $build_xm_file; do
  21582. + echo " $srcdir/config/$f"
  21583. + done
  21584. + fi
  21585. +fi
  21586. +
  21587. +if test -n "$configured_native_system_header_dir"; then
  21588. + native_system_header_dir=$configured_native_system_header_dir
  21589. +fi
  21590. +NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
  21591. +
  21592. +
  21593. +case ${host} in
  21594. + powerpc*-*-darwin*)
  21595. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
  21596. +$as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
  21597. +if test "${gcc_cv_mcontext_underscores+set}" = set; then :
  21598. + $as_echo_n "(cached) " >&6
  21599. +else
  21600. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21601. +/* end confdefs.h. */
  21602. +
  21603. +#include <sys/cdefs.h>
  21604. +#include <sys/signal.h>
  21605. +#include <ucontext.h>
  21606. +int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
  21607. +
  21608. +_ACEOF
  21609. +if ac_fn_c_try_compile "$LINENO"; then :
  21610. + gcc_cv_mcontext_underscores=no
  21611. +else
  21612. + gcc_cv_mcontext_underscores=yes
  21613. +fi
  21614. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21615. +fi
  21616. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
  21617. +$as_echo "$gcc_cv_mcontext_underscores" >&6; }
  21618. + if test $gcc_cv_mcontext_underscores = yes; then
  21619. +
  21620. +$as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
  21621. +
  21622. + fi
  21623. + ;;
  21624. +esac
  21625. +
  21626. +# ---------
  21627. +# Threading
  21628. +# ---------
  21629. +
  21630. +# Check if a valid thread package
  21631. +case ${enable_threads} in
  21632. + "" | no)
  21633. + # No threads
  21634. + target_thread_file='single'
  21635. + ;;
  21636. + yes)
  21637. + # default
  21638. + target_thread_file='single'
  21639. + ;;
  21640. + aix | dce | lynx | mipssde | posix | rtems | \
  21641. + single | tpf | vxworks | win32)
  21642. + target_thread_file=${enable_threads}
  21643. + ;;
  21644. + *)
  21645. + echo "${enable_threads} is an unknown thread package" 1>&2
  21646. + exit 1
  21647. + ;;
  21648. +esac
  21649. +
  21650. +if test x${thread_file} = x; then
  21651. + # No thread file set by target-specific clauses in config.gcc,
  21652. + # so use file chosen by default logic above
  21653. + thread_file=${target_thread_file}
  21654. +fi
  21655. +
  21656. +# --------
  21657. +# UNSORTED
  21658. +# --------
  21659. +
  21660. +use_cxa_atexit=no
  21661. +if test x$enable___cxa_atexit = xyes || \
  21662. + test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
  21663. + if test x$host = x$target; then
  21664. + case $host in
  21665. + # mingw32 doesn't have __cxa_atexit but uses atexit registration
  21666. + # keyed to flag_use_cxa_atexit
  21667. + *-*-mingw32*)
  21668. + use_cxa_atexit=yes
  21669. + ;;
  21670. + powerpc-ibm-aix*)
  21671. + use_cxa_atexit=yes
  21672. + ;;
  21673. + *)
  21674. + ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
  21675. +if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
  21676. + use_cxa_atexit=yes
  21677. +else
  21678. + echo "__cxa_atexit can't be enabled on this target"
  21679. +fi
  21680. +
  21681. + ;;
  21682. + esac
  21683. + else
  21684. + # We can't check for __cxa_atexit when building a cross, so assume
  21685. + # it is available
  21686. + use_cxa_atexit=yes
  21687. + fi
  21688. + if test x$use_cxa_atexit = xyes; then
  21689. +
  21690. +$as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
  21691. +
  21692. + fi
  21693. +fi
  21694. +
  21695. +# Look for a file containing extra machine modes.
  21696. +if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
  21697. + extra_modes_file='$(srcdir)'/config/${extra_modes}
  21698. +
  21699. +
  21700. +cat >>confdefs.h <<_ACEOF
  21701. +#define EXTRA_MODES_FILE "config/$extra_modes"
  21702. +_ACEOF
  21703. +
  21704. +fi
  21705. +
  21706. +# Convert extra_options into a form suitable for Makefile use.
  21707. +extra_opt_files=
  21708. +all_opt_files=
  21709. +for f in $extra_options; do
  21710. + extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
  21711. + all_opt_files="$all_opt_files $srcdir/config/$f"
  21712. +done
  21713. +
  21714. +
  21715. +# auto-host.h is the file containing items generated by autoconf and is
  21716. +# the first file included by config.h.
  21717. +# If host=build, it is correct to have bconfig include auto-host.h
  21718. +# as well. If host!=build, we are in error and need to do more
  21719. +# work to find out the build config parameters.
  21720. +if test x$host = x$build
  21721. +then
  21722. + build_auto=auto-host.h
  21723. +else
  21724. + # We create a subdir, then run autoconf in the subdir.
  21725. + # To prevent recursion we set host and build for the new
  21726. + # invocation of configure to the build for this invocation
  21727. + # of configure.
  21728. + tempdir=build.$$
  21729. + rm -rf $tempdir
  21730. + mkdir $tempdir
  21731. + cd $tempdir
  21732. + case ${srcdir} in
  21733. + /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
  21734. + *) realsrcdir=../${srcdir};;
  21735. + esac
  21736. + # Clearing GMPINC is necessary to prevent host headers being
  21737. + # used by the build compiler. Defining GENERATOR_FILE stops
  21738. + # system.h from including gmp.h.
  21739. + CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
  21740. + CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
  21741. + LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
  21742. + GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
  21743. + ${realsrcdir}/configure \
  21744. + --enable-languages=${enable_languages-all} \
  21745. + --target=$target_alias --host=$build_alias --build=$build_alias
  21746. +
  21747. + # We just finished tests for the build machine, so rename
  21748. + # the file auto-build.h in the gcc directory.
  21749. + mv auto-host.h ../auto-build.h
  21750. + cd ..
  21751. + rm -rf $tempdir
  21752. + build_auto=auto-build.h
  21753. +fi
  21754. +
  21755. +
  21756. +tm_file="${tm_file} defaults.h"
  21757. +tm_p_file="${tm_p_file} tm-preds.h"
  21758. +host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
  21759. +build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
  21760. +# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
  21761. +# put this back in temporarily.
  21762. +xm_file="auto-host.h ansidecl.h ${xm_file}"
  21763. +
  21764. +# --------
  21765. +# UNSORTED
  21766. +# --------
  21767. +
  21768. +# Compile in configure arguments.
  21769. +if test -f configargs.h ; then
  21770. + # Being re-configured.
  21771. + gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
  21772. + gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
  21773. +else
  21774. + gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
  21775. +fi
  21776. +
  21777. +# Double all backslashes and backslash all quotes to turn
  21778. +# gcc_config_arguments into a C string.
  21779. +sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
  21780. +$gcc_config_arguments
  21781. +EOF
  21782. +gcc_config_arguments_str=`cat conftest.out`
  21783. +rm -f conftest.out
  21784. +
  21785. +cat > configargs.h <<EOF
  21786. +/* Generated automatically. */
  21787. +static const char configuration_arguments[] = "$gcc_config_arguments_str";
  21788. +static const char thread_model[] = "$thread_file";
  21789. +
  21790. +static const struct {
  21791. + const char *name, *value;
  21792. +} configure_default_options[] = $configure_default_options;
  21793. +EOF
  21794. +
  21795. +gcc_BASEVER=`cat $srcdir/BASE-VER`
  21796. +gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
  21797. +gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
  21798. +if test -f $srcdir/REVISION ; then
  21799. + gcc_REVISION=`cat $srcdir/REVISION`
  21800. +else
  21801. + gcc_REVISION=""
  21802. +fi
  21803. +cat > plugin-version.h <<EOF
  21804. +#include "configargs.h"
  21805. +
  21806. +#define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
  21807. +#define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
  21808. +#define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
  21809. +#define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
  21810. +
  21811. +static char basever[] = "$gcc_BASEVER";
  21812. +static char datestamp[] = "$gcc_DATESTAMP";
  21813. +static char devphase[] = "$gcc_DEVPHASE";
  21814. +static char revision[] = "$gcc_REVISION";
  21815. +
  21816. +/* FIXME plugins: We should make the version information more precise.
  21817. + One way to do is to add a checksum. */
  21818. +
  21819. +static struct plugin_gcc_version gcc_version = {basever, datestamp,
  21820. + devphase, revision,
  21821. + configuration_arguments};
  21822. +EOF
  21823. +
  21824. +# Internationalization
  21825. +# If we haven't got the data from the intl directory,
  21826. +# assume NLS is disabled.
  21827. +USE_NLS=no
  21828. +LIBINTL=
  21829. +LIBINTL_DEP=
  21830. +INCINTL=
  21831. +XGETTEXT=
  21832. +GMSGFMT=
  21833. +POSUB=
  21834. +
  21835. +if test -f ../intl/config.intl; then
  21836. + . ../intl/config.intl
  21837. +fi
  21838. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  21839. +$as_echo_n "checking whether NLS is requested... " >&6; }
  21840. +if test x"$USE_NLS" != xyes; then
  21841. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21842. +$as_echo "no" >&6; }
  21843. +else
  21844. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21845. +$as_echo "yes" >&6; }
  21846. +
  21847. +$as_echo "#define ENABLE_NLS 1" >>confdefs.h
  21848. +
  21849. +
  21850. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  21851. +$as_echo_n "checking for catalogs to be installed... " >&6; }
  21852. + # Look for .po and .gmo files in the source directory.
  21853. + CATALOGS=
  21854. + XLINGUAS=
  21855. + for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  21856. + # If there aren't any .gmo files the shell will give us the
  21857. + # literal string "../path/to/srcdir/po/*.gmo" which has to be
  21858. + # weeded out.
  21859. + case "$cat" in *\**)
  21860. + continue;;
  21861. + esac
  21862. + # The quadruple backslash is collapsed to a double backslash
  21863. + # by the backticks, then collapsed again by the double quotes,
  21864. + # leaving us with one backslash in the sed expression (right
  21865. + # before the dot that mustn't act as a wildcard).
  21866. + cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  21867. + lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  21868. + # The user is allowed to set LINGUAS to a list of languages to
  21869. + # install catalogs for. If it's empty that means "all of them."
  21870. + if test "x$LINGUAS" = x; then
  21871. + CATALOGS="$CATALOGS $cat"
  21872. + XLINGUAS="$XLINGUAS $lang"
  21873. + else
  21874. + case "$LINGUAS" in *$lang*)
  21875. + CATALOGS="$CATALOGS $cat"
  21876. + XLINGUAS="$XLINGUAS $lang"
  21877. + ;;
  21878. + esac
  21879. + fi
  21880. + done
  21881. + LINGUAS="$XLINGUAS"
  21882. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  21883. +$as_echo "$LINGUAS" >&6; }
  21884. +
  21885. +
  21886. + DATADIRNAME=share
  21887. +
  21888. + INSTOBJEXT=.mo
  21889. +
  21890. + GENCAT=gencat
  21891. +
  21892. + CATOBJEXT=.gmo
  21893. +
  21894. +fi
  21895. +
  21896. +# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
  21897. +# -liconv on the link line twice.
  21898. +case "$LIBINTL" in *$LIBICONV*)
  21899. + LIBICONV= ;;
  21900. +esac
  21901. +
  21902. +# Check whether --enable-secureplt was given.
  21903. +if test "${enable_secureplt+set}" = set; then :
  21904. + enableval=$enable_secureplt;
  21905. +fi
  21906. +
  21907. +
  21908. +# Check whether --enable-leading-mingw64-underscores was given.
  21909. +if test "${enable_leading_mingw64_underscores+set}" = set; then :
  21910. + enableval=$enable_leading_mingw64_underscores;
  21911. +fi
  21912. +
  21913. +if test x"$enable_leading_mingw64_underscores" = xyes ; then :
  21914. +
  21915. +$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
  21916. +
  21917. +fi
  21918. +
  21919. +# Check whether --enable-cld was given.
  21920. +if test "${enable_cld+set}" = set; then :
  21921. + enableval=$enable_cld;
  21922. +else
  21923. + enable_cld=no
  21924. +fi
  21925. +
  21926. +
  21927. +# Check whether --enable-frame-pointer was given.
  21928. +if test "${enable_frame_pointer+set}" = set; then :
  21929. + enableval=$enable_frame_pointer;
  21930. +else
  21931. +
  21932. +case $target_os in
  21933. +linux* | darwin[8912]*)
  21934. + # Enable -fomit-frame-pointer by default for Linux and Darwin with
  21935. + # DWARF2.
  21936. + enable_frame_pointer=no
  21937. + ;;
  21938. +*)
  21939. + enable_frame_pointer=yes
  21940. + ;;
  21941. +esac
  21942. +
  21943. +fi
  21944. +
  21945. +
  21946. +# Windows32 Registry support for specifying GCC installation paths.
  21947. +# Check whether --enable-win32-registry was given.
  21948. +if test "${enable_win32_registry+set}" = set; then :
  21949. + enableval=$enable_win32_registry;
  21950. +fi
  21951. +
  21952. +
  21953. +case $host_os in
  21954. + win32 | pe | cygwin* | mingw32* | uwin*)
  21955. + if test "x$enable_win32_registry" != xno; then
  21956. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
  21957. +$as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
  21958. +if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
  21959. + $as_echo_n "(cached) " >&6
  21960. +else
  21961. + ac_func_search_save_LIBS=$LIBS
  21962. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21963. +/* end confdefs.h. */
  21964. +
  21965. +/* Override any GCC internal prototype to avoid an error.
  21966. + Use char because int might match the return type of a GCC
  21967. + builtin and then its argument prototype would still apply. */
  21968. +#ifdef __cplusplus
  21969. +extern "C"
  21970. +#endif
  21971. +char RegOpenKeyExA ();
  21972. +int
  21973. +main ()
  21974. +{
  21975. +return RegOpenKeyExA ();
  21976. + ;
  21977. + return 0;
  21978. +}
  21979. +_ACEOF
  21980. +for ac_lib in '' advapi32; do
  21981. + if test -z "$ac_lib"; then
  21982. + ac_res="none required"
  21983. + else
  21984. + ac_res=-l$ac_lib
  21985. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  21986. + fi
  21987. + if ac_fn_c_try_link "$LINENO"; then :
  21988. + ac_cv_search_RegOpenKeyExA=$ac_res
  21989. +fi
  21990. +rm -f core conftest.err conftest.$ac_objext \
  21991. + conftest$ac_exeext
  21992. + if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
  21993. + break
  21994. +fi
  21995. +done
  21996. +if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
  21997. +
  21998. +else
  21999. + ac_cv_search_RegOpenKeyExA=no
  22000. +fi
  22001. +rm conftest.$ac_ext
  22002. +LIBS=$ac_func_search_save_LIBS
  22003. +fi
  22004. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
  22005. +$as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
  22006. +ac_res=$ac_cv_search_RegOpenKeyExA
  22007. +if test "$ac_res" != no; then :
  22008. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  22009. +
  22010. +else
  22011. + enable_win32_registry=no
  22012. +fi
  22013. +
  22014. + fi
  22015. +
  22016. + if test "x$enable_win32_registry" != xno; then
  22017. +
  22018. +$as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
  22019. +
  22020. +
  22021. + if test "x$enable_win32_registry" != xyes \
  22022. + && test "x$enable_win32_registry" != x; then
  22023. +
  22024. +cat >>confdefs.h <<_ACEOF
  22025. +#define WIN32_REGISTRY_KEY "$enable_win32_registry"
  22026. +_ACEOF
  22027. +
  22028. + fi
  22029. + fi
  22030. + ;;
  22031. +esac
  22032. +
  22033. +# Get an absolute path to the GCC top-level source directory
  22034. +holddir=`${PWDCMD-pwd}`
  22035. +cd $srcdir
  22036. +topdir=`${PWDCMD-pwd}`
  22037. +cd $holddir
  22038. +
  22039. +# Conditionalize the makefile for this host machine.
  22040. +xmake_file=
  22041. +for f in ${host_xmake_file}
  22042. +do
  22043. + if test -f ${srcdir}/config/$f
  22044. + then
  22045. + xmake_file="${xmake_file} \$(srcdir)/config/$f"
  22046. + fi
  22047. +done
  22048. +
  22049. +# Conditionalize the makefile for this target machine.
  22050. +tmake_file_=
  22051. +for f in ${tmake_file}
  22052. +do
  22053. + if test -f ${srcdir}/config/$f
  22054. + then
  22055. + tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
  22056. + fi
  22057. +done
  22058. +tmake_file="${tmake_file_}"
  22059. +
  22060. +out_object_file=`basename $out_file .c`.o
  22061. +common_out_object_file=`basename $common_out_file .c`.o
  22062. +
  22063. +tm_file_list="options.h"
  22064. +tm_include_list="options.h insn-constants.h"
  22065. +for f in $tm_file; do
  22066. + case $f in
  22067. + ./* )
  22068. + f=`echo $f | sed 's/^..//'`
  22069. + tm_file_list="${tm_file_list} $f"
  22070. + tm_include_list="${tm_include_list} $f"
  22071. + ;;
  22072. + defaults.h )
  22073. + tm_file_list="${tm_file_list} \$(srcdir)/$f"
  22074. + tm_include_list="${tm_include_list} $f"
  22075. + ;;
  22076. + * )
  22077. + tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
  22078. + tm_include_list="${tm_include_list} config/$f"
  22079. + ;;
  22080. + esac
  22081. +done
  22082. +
  22083. +tm_p_file_list=
  22084. +tm_p_include_list=
  22085. +for f in $tm_p_file; do
  22086. + case $f in
  22087. + tm-preds.h )
  22088. + tm_p_file_list="${tm_p_file_list} $f"
  22089. + tm_p_include_list="${tm_p_include_list} $f"
  22090. + ;;
  22091. + * )
  22092. + tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
  22093. + tm_p_include_list="${tm_p_include_list} config/$f"
  22094. + esac
  22095. +done
  22096. +
  22097. +xm_file_list=
  22098. +xm_include_list=
  22099. +for f in $xm_file; do
  22100. + case $f in
  22101. + ansidecl.h )
  22102. + xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
  22103. + xm_include_list="${xm_include_list} $f"
  22104. + ;;
  22105. + auto-host.h )
  22106. + xm_file_list="${xm_file_list} $f"
  22107. + xm_include_list="${xm_include_list} $f"
  22108. + ;;
  22109. + * )
  22110. + xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
  22111. + xm_include_list="${xm_include_list} config/$f"
  22112. + ;;
  22113. + esac
  22114. +done
  22115. +
  22116. +host_xm_file_list=
  22117. +host_xm_include_list=
  22118. +for f in $host_xm_file; do
  22119. + case $f in
  22120. + ansidecl.h )
  22121. + host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
  22122. + host_xm_include_list="${host_xm_include_list} $f"
  22123. + ;;
  22124. + auto-host.h )
  22125. + host_xm_file_list="${host_xm_file_list} $f"
  22126. + host_xm_include_list="${host_xm_include_list} $f"
  22127. + ;;
  22128. + * )
  22129. + host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
  22130. + host_xm_include_list="${host_xm_include_list} config/$f"
  22131. + ;;
  22132. + esac
  22133. +done
  22134. +
  22135. +build_xm_file_list=
  22136. +for f in $build_xm_file; do
  22137. + case $f in
  22138. + ansidecl.h )
  22139. + build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
  22140. + build_xm_include_list="${build_xm_include_list} $f"
  22141. + ;;
  22142. + auto-build.h | auto-host.h )
  22143. + build_xm_file_list="${build_xm_file_list} $f"
  22144. + build_xm_include_list="${build_xm_include_list} $f"
  22145. + ;;
  22146. + * )
  22147. + build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
  22148. + build_xm_include_list="${build_xm_include_list} config/$f"
  22149. + ;;
  22150. + esac
  22151. +done
  22152. +
  22153. +# Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
  22154. +# cross-compiler which does not use the native headers and libraries.
  22155. +# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
  22156. +CROSS=
  22157. +ALL=all.internal
  22158. +SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
  22159. +
  22160. +if test "x$with_build_sysroot" != x; then
  22161. + build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
  22162. +else
  22163. + # This value is used, even on a native system, because
  22164. + # CROSS_SYSTEM_HEADER_DIR is just
  22165. + # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
  22166. + build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
  22167. +fi
  22168. +
  22169. +if test x$host != x$target
  22170. +then
  22171. + CROSS="-DCROSS_DIRECTORY_STRUCTURE"
  22172. + ALL=all.cross
  22173. + SYSTEM_HEADER_DIR=$build_system_header_dir
  22174. + case "$host","$target" in
  22175. + # Darwin crosses can use the host system's libraries and headers,
  22176. + # because of the fat library support. Of course, it must be the
  22177. + # same version of Darwin on both sides. Allow the user to
  22178. + # just say --target=foo-darwin without a version number to mean
  22179. + # "the version on this system".
  22180. + *-*-darwin*,*-*-darwin*)
  22181. + hostos=`echo $host | sed 's/.*-darwin/darwin/'`
  22182. + targetos=`echo $target | sed 's/.*-darwin/darwin/'`
  22183. + if test $hostos = $targetos -o $targetos = darwin ; then
  22184. + CROSS=
  22185. + SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
  22186. + with_headers=yes
  22187. + fi
  22188. + ;;
  22189. +
  22190. + i?86-*-*,x86_64-*-* \
  22191. + | powerpc*-*-*,powerpc64*-*-*)
  22192. + CROSS="$CROSS -DNATIVE_CROSS" ;;
  22193. + esac
  22194. +
  22195. + case $target in
  22196. + *-*-mingw*)
  22197. + if test "x$with_headers" = x; then
  22198. + with_headers=yes
  22199. + fi
  22200. + ;;
  22201. + *)
  22202. + ;;
  22203. + esac
  22204. +elif test "x$TARGET_SYSTEM_ROOT" != x; then
  22205. + SYSTEM_HEADER_DIR=$build_system_header_dir
  22206. +fi
  22207. +
  22208. +# If this is a cross-compiler that does not
  22209. +# have its own set of headers then define
  22210. +# inhibit_libc
  22211. +
  22212. +# If this is using newlib, without having the headers available now,
  22213. +# then define inhibit_libc in LIBGCC2_CFLAGS.
  22214. +# This prevents libgcc2 from containing any code which requires libc
  22215. +# support.
  22216. +: ${inhibit_libc=false}
  22217. +if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
  22218. + test x$with_newlib = xyes ; } &&
  22219. + { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
  22220. + inhibit_libc=true
  22221. +fi
  22222. +
  22223. +
  22224. +# When building gcc with a cross-compiler, we need to adjust things so
  22225. +# that the generator programs are still built with the native compiler.
  22226. +# Also, we cannot run fixincludes.
  22227. +
  22228. +# These are the normal (build=host) settings:
  22229. +CC_FOR_BUILD='$(CC)'
  22230. +CXX_FOR_BUILD='$(CXX)'
  22231. +BUILD_CFLAGS='$(ALL_CFLAGS)'
  22232. +BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
  22233. +BUILD_LDFLAGS='$(LDFLAGS)'
  22234. +STMP_FIXINC=stmp-fixinc
  22235. +
  22236. +# And these apply if build != host, or we are generating coverage data
  22237. +if test x$build != x$host || test "x$coverage_flags" != x
  22238. +then
  22239. + BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
  22240. + BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
  22241. + BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
  22242. +fi
  22243. +
  22244. +# Expand extra_headers to include complete path.
  22245. +# This substitutes for lots of t-* files.
  22246. +extra_headers_list=
  22247. +# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
  22248. +for file in ${extra_headers} ; do
  22249. + extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
  22250. +done
  22251. +
  22252. +# If use_gcc_tgmath is set, append ginclude/tgmath.h.
  22253. +if test x"$use_gcc_tgmath" = xyes
  22254. +then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
  22255. +fi
  22256. +
  22257. +# Define collect2 in Makefile.
  22258. +case $host_can_use_collect2 in
  22259. + no) collect2= ;;
  22260. + *) collect2='collect2$(exeext)' ;;
  22261. +esac
  22262. +
  22263. +
  22264. +# Add a definition of USE_COLLECT2 if system wants one.
  22265. +case $use_collect2 in
  22266. + no) use_collect2= ;;
  22267. + "") ;;
  22268. + *)
  22269. + host_xm_defines="${host_xm_defines} USE_COLLECT2"
  22270. + xm_defines="${xm_defines} USE_COLLECT2"
  22271. + case $host_can_use_collect2 in
  22272. + no)
  22273. + as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
  22274. + ;;
  22275. + esac
  22276. + ;;
  22277. +esac
  22278. +
  22279. +
  22280. +cat >>confdefs.h <<_ACEOF
  22281. +#define LTOPLUGINSONAME "${host_lto_plugin_soname}"
  22282. +_ACEOF
  22283. +
  22284. +
  22285. +# ---------------------------
  22286. +# Assembler & linker features
  22287. +# ---------------------------
  22288. +
  22289. +# During stage 2, ld is actually gcc/collect-ld, which is a small script to
  22290. +# discern between when to use prev-ld/ld-new and when to use ld/ld-new.
  22291. +# However when ld-new is first executed from the build tree, libtool will
  22292. +# relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
  22293. +# to the build tree. While doing this we need to use the previous-stage
  22294. +# linker, or we have an infinite loop. The presence of a shell script as
  22295. +# ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
  22296. +# the gcc/collect-ld script. So we need to know how libtool works, or
  22297. +# exec-tool will fail.
  22298. +
  22299. +
  22300. +case `pwd` in
  22301. + *\ * | *\ *)
  22302. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  22303. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  22304. +esac
  22305. +
  22306. +
  22307. +
  22308. +macro_version='2.2.7a'
  22309. +macro_revision='1.3134'
  22310. +
  22311. +
  22312. +
  22313. +
  22314. +
  22315. +
  22316. +
  22317. +
  22318. +
  22319. +
  22320. +
  22321. +
  22322. +
  22323. +ltmain="$ac_aux_dir/ltmain.sh"
  22324. +
  22325. +# Backslashify metacharacters that are still active within
  22326. +# double-quoted strings.
  22327. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  22328. +
  22329. +# Same as above, but do not quote variable references.
  22330. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  22331. +
  22332. +# Sed substitution to delay expansion of an escaped shell variable in a
  22333. +# double_quote_subst'ed string.
  22334. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  22335. +
  22336. +# Sed substitution to delay expansion of an escaped single quote.
  22337. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  22338. +
  22339. +# Sed substitution to avoid accidental globbing in evaled expressions
  22340. +no_glob_subst='s/\*/\\\*/g'
  22341. +
  22342. +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22343. +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  22344. +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  22345. +
  22346. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  22347. +$as_echo_n "checking how to print strings... " >&6; }
  22348. +# Test print first, because it will be a builtin if present.
  22349. +if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  22350. + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  22351. + ECHO='print -r --'
  22352. +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  22353. + ECHO='printf %s\n'
  22354. +else
  22355. + # Use this function as a fallback that always works.
  22356. + func_fallback_echo ()
  22357. + {
  22358. + eval 'cat <<_LTECHO_EOF
  22359. +$1
  22360. +_LTECHO_EOF'
  22361. + }
  22362. + ECHO='func_fallback_echo'
  22363. +fi
  22364. +
  22365. +# func_echo_all arg...
  22366. +# Invoke $ECHO with all args, space-separated.
  22367. +func_echo_all ()
  22368. +{
  22369. + $ECHO ""
  22370. +}
  22371. +
  22372. +case "$ECHO" in
  22373. + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  22374. +$as_echo "printf" >&6; } ;;
  22375. + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  22376. +$as_echo "print -r" >&6; } ;;
  22377. + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  22378. +$as_echo "cat" >&6; } ;;
  22379. +esac
  22380. +
  22381. +
  22382. +
  22383. +
  22384. +
  22385. +
  22386. +
  22387. +
  22388. +
  22389. +
  22390. +
  22391. +
  22392. +
  22393. +
  22394. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  22395. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  22396. +if test "${ac_cv_path_SED+set}" = set; then :
  22397. + $as_echo_n "(cached) " >&6
  22398. +else
  22399. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  22400. + for ac_i in 1 2 3 4 5 6 7; do
  22401. + ac_script="$ac_script$as_nl$ac_script"
  22402. + done
  22403. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  22404. + { ac_script=; unset ac_script;}
  22405. + if test -z "$SED"; then
  22406. + ac_path_SED_found=false
  22407. + # Loop through the user's path and test for each of PROGNAME-LIST
  22408. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22409. +for as_dir in $PATH
  22410. +do
  22411. + IFS=$as_save_IFS
  22412. + test -z "$as_dir" && as_dir=.
  22413. + for ac_prog in sed gsed; do
  22414. + for ac_exec_ext in '' $ac_executable_extensions; do
  22415. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  22416. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  22417. +# Check for GNU ac_path_SED and select it if it is found.
  22418. + # Check for GNU $ac_path_SED
  22419. +case `"$ac_path_SED" --version 2>&1` in
  22420. +*GNU*)
  22421. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  22422. +*)
  22423. + ac_count=0
  22424. + $as_echo_n 0123456789 >"conftest.in"
  22425. + while :
  22426. + do
  22427. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  22428. + mv "conftest.tmp" "conftest.in"
  22429. + cp "conftest.in" "conftest.nl"
  22430. + $as_echo '' >> "conftest.nl"
  22431. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  22432. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  22433. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  22434. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  22435. + # Best one so far, save it but keep looking for a better one
  22436. + ac_cv_path_SED="$ac_path_SED"
  22437. + ac_path_SED_max=$ac_count
  22438. + fi
  22439. + # 10*(2^10) chars as input seems more than enough
  22440. + test $ac_count -gt 10 && break
  22441. + done
  22442. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  22443. +esac
  22444. +
  22445. + $ac_path_SED_found && break 3
  22446. + done
  22447. + done
  22448. + done
  22449. +IFS=$as_save_IFS
  22450. + if test -z "$ac_cv_path_SED"; then
  22451. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  22452. + fi
  22453. +else
  22454. + ac_cv_path_SED=$SED
  22455. +fi
  22456. +
  22457. +fi
  22458. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  22459. +$as_echo "$ac_cv_path_SED" >&6; }
  22460. + SED="$ac_cv_path_SED"
  22461. + rm -f conftest.sed
  22462. +
  22463. +test -z "$SED" && SED=sed
  22464. +Xsed="$SED -e 1s/^X//"
  22465. +
  22466. +
  22467. +
  22468. +
  22469. +
  22470. +
  22471. +
  22472. +
  22473. +
  22474. +
  22475. +
  22476. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  22477. +$as_echo_n "checking for fgrep... " >&6; }
  22478. +if test "${ac_cv_path_FGREP+set}" = set; then :
  22479. + $as_echo_n "(cached) " >&6
  22480. +else
  22481. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  22482. + then ac_cv_path_FGREP="$GREP -F"
  22483. + else
  22484. + if test -z "$FGREP"; then
  22485. + ac_path_FGREP_found=false
  22486. + # Loop through the user's path and test for each of PROGNAME-LIST
  22487. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22488. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  22489. +do
  22490. + IFS=$as_save_IFS
  22491. + test -z "$as_dir" && as_dir=.
  22492. + for ac_prog in fgrep; do
  22493. + for ac_exec_ext in '' $ac_executable_extensions; do
  22494. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  22495. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  22496. +# Check for GNU ac_path_FGREP and select it if it is found.
  22497. + # Check for GNU $ac_path_FGREP
  22498. +case `"$ac_path_FGREP" --version 2>&1` in
  22499. +*GNU*)
  22500. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  22501. +*)
  22502. + ac_count=0
  22503. + $as_echo_n 0123456789 >"conftest.in"
  22504. + while :
  22505. + do
  22506. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  22507. + mv "conftest.tmp" "conftest.in"
  22508. + cp "conftest.in" "conftest.nl"
  22509. + $as_echo 'FGREP' >> "conftest.nl"
  22510. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  22511. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  22512. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  22513. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  22514. + # Best one so far, save it but keep looking for a better one
  22515. + ac_cv_path_FGREP="$ac_path_FGREP"
  22516. + ac_path_FGREP_max=$ac_count
  22517. + fi
  22518. + # 10*(2^10) chars as input seems more than enough
  22519. + test $ac_count -gt 10 && break
  22520. + done
  22521. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  22522. +esac
  22523. +
  22524. + $ac_path_FGREP_found && break 3
  22525. + done
  22526. + done
  22527. + done
  22528. +IFS=$as_save_IFS
  22529. + if test -z "$ac_cv_path_FGREP"; then
  22530. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  22531. + fi
  22532. +else
  22533. + ac_cv_path_FGREP=$FGREP
  22534. +fi
  22535. +
  22536. + fi
  22537. +fi
  22538. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  22539. +$as_echo "$ac_cv_path_FGREP" >&6; }
  22540. + FGREP="$ac_cv_path_FGREP"
  22541. +
  22542. +
  22543. +test -z "$GREP" && GREP=grep
  22544. +
  22545. +
  22546. +
  22547. +
  22548. +
  22549. +
  22550. +
  22551. +
  22552. +
  22553. +
  22554. +
  22555. +
  22556. +
  22557. +
  22558. +
  22559. +
  22560. +
  22561. +
  22562. +
  22563. +# Check whether --with-gnu-ld was given.
  22564. +if test "${with_gnu_ld+set}" = set; then :
  22565. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  22566. +else
  22567. + with_gnu_ld=no
  22568. +fi
  22569. +
  22570. +ac_prog=ld
  22571. +if test "$GCC" = yes; then
  22572. + # Check if gcc -print-prog-name=ld gives a path.
  22573. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  22574. +$as_echo_n "checking for ld used by $CC... " >&6; }
  22575. + case $host in
  22576. + *-*-mingw*)
  22577. + # gcc leaves a trailing carriage return which upsets mingw
  22578. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  22579. + *)
  22580. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  22581. + esac
  22582. + case $ac_prog in
  22583. + # Accept absolute paths.
  22584. + [\\/]* | ?:[\\/]*)
  22585. + re_direlt='/[^/][^/]*/\.\./'
  22586. + # Canonicalize the pathname of ld
  22587. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  22588. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  22589. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  22590. + done
  22591. + test -z "$LD" && LD="$ac_prog"
  22592. + ;;
  22593. + "")
  22594. + # If it fails, then pretend we aren't using GCC.
  22595. + ac_prog=ld
  22596. + ;;
  22597. + *)
  22598. + # If it is relative, then search for the first ld in PATH.
  22599. + with_gnu_ld=unknown
  22600. + ;;
  22601. + esac
  22602. +elif test "$with_gnu_ld" = yes; then
  22603. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  22604. +$as_echo_n "checking for GNU ld... " >&6; }
  22605. +else
  22606. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  22607. +$as_echo_n "checking for non-GNU ld... " >&6; }
  22608. +fi
  22609. +if test "${lt_cv_path_LD+set}" = set; then :
  22610. + $as_echo_n "(cached) " >&6
  22611. +else
  22612. + if test -z "$LD"; then
  22613. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  22614. + for ac_dir in $PATH; do
  22615. + IFS="$lt_save_ifs"
  22616. + test -z "$ac_dir" && ac_dir=.
  22617. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  22618. + lt_cv_path_LD="$ac_dir/$ac_prog"
  22619. + # Check to see if the program is GNU ld. I'd rather use --version,
  22620. + # but apparently some variants of GNU ld only accept -v.
  22621. + # Break only if it was the GNU/non-GNU ld that we prefer.
  22622. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  22623. + *GNU* | *'with BFD'*)
  22624. + test "$with_gnu_ld" != no && break
  22625. + ;;
  22626. + *)
  22627. + test "$with_gnu_ld" != yes && break
  22628. + ;;
  22629. + esac
  22630. + fi
  22631. + done
  22632. + IFS="$lt_save_ifs"
  22633. +else
  22634. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  22635. +fi
  22636. +fi
  22637. +
  22638. +LD="$lt_cv_path_LD"
  22639. +if test -n "$LD"; then
  22640. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  22641. +$as_echo "$LD" >&6; }
  22642. +else
  22643. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22644. +$as_echo "no" >&6; }
  22645. +fi
  22646. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  22647. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  22648. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  22649. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  22650. + $as_echo_n "(cached) " >&6
  22651. +else
  22652. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  22653. +case `$LD -v 2>&1 </dev/null` in
  22654. +*GNU* | *'with BFD'*)
  22655. + lt_cv_prog_gnu_ld=yes
  22656. + ;;
  22657. +*)
  22658. + lt_cv_prog_gnu_ld=no
  22659. + ;;
  22660. +esac
  22661. +fi
  22662. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  22663. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  22664. +with_gnu_ld=$lt_cv_prog_gnu_ld
  22665. +
  22666. +
  22667. +
  22668. +
  22669. +
  22670. +
  22671. +
  22672. +
  22673. +
  22674. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  22675. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  22676. +if test "${lt_cv_path_NM+set}" = set; then :
  22677. + $as_echo_n "(cached) " >&6
  22678. +else
  22679. + if test -n "$NM"; then
  22680. + # Let the user override the test.
  22681. + lt_cv_path_NM="$NM"
  22682. +else
  22683. + lt_nm_to_check="${ac_tool_prefix}nm"
  22684. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  22685. + lt_nm_to_check="$lt_nm_to_check nm"
  22686. + fi
  22687. + for lt_tmp_nm in $lt_nm_to_check; do
  22688. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  22689. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  22690. + IFS="$lt_save_ifs"
  22691. + test -z "$ac_dir" && ac_dir=.
  22692. + tmp_nm="$ac_dir/$lt_tmp_nm"
  22693. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  22694. + # Check to see if the nm accepts a BSD-compat flag.
  22695. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  22696. + # nm: unknown option "B" ignored
  22697. + # Tru64's nm complains that /dev/null is an invalid object file
  22698. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  22699. + */dev/null* | *'Invalid file or object type'*)
  22700. + lt_cv_path_NM="$tmp_nm -B"
  22701. + break
  22702. + ;;
  22703. + *)
  22704. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  22705. + */dev/null*)
  22706. + lt_cv_path_NM="$tmp_nm -p"
  22707. + break
  22708. + ;;
  22709. + *)
  22710. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  22711. + continue # so that we can try to find one that supports BSD flags
  22712. + ;;
  22713. + esac
  22714. + ;;
  22715. + esac
  22716. + fi
  22717. + done
  22718. + IFS="$lt_save_ifs"
  22719. + done
  22720. + : ${lt_cv_path_NM=no}
  22721. +fi
  22722. +fi
  22723. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  22724. +$as_echo "$lt_cv_path_NM" >&6; }
  22725. +if test "$lt_cv_path_NM" != "no"; then
  22726. + NM="$lt_cv_path_NM"
  22727. +else
  22728. + # Didn't find any BSD compatible name lister, look for dumpbin.
  22729. + if test -n "$DUMPBIN"; then :
  22730. + # Let the user override the test.
  22731. + else
  22732. + if test -n "$ac_tool_prefix"; then
  22733. + for ac_prog in dumpbin "link -dump"
  22734. + do
  22735. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  22736. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  22737. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22738. +$as_echo_n "checking for $ac_word... " >&6; }
  22739. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  22740. + $as_echo_n "(cached) " >&6
  22741. +else
  22742. + if test -n "$DUMPBIN"; then
  22743. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  22744. +else
  22745. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22746. +for as_dir in $PATH
  22747. +do
  22748. + IFS=$as_save_IFS
  22749. + test -z "$as_dir" && as_dir=.
  22750. + for ac_exec_ext in '' $ac_executable_extensions; do
  22751. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22752. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  22753. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22754. + break 2
  22755. + fi
  22756. +done
  22757. + done
  22758. +IFS=$as_save_IFS
  22759. +
  22760. +fi
  22761. +fi
  22762. +DUMPBIN=$ac_cv_prog_DUMPBIN
  22763. +if test -n "$DUMPBIN"; then
  22764. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  22765. +$as_echo "$DUMPBIN" >&6; }
  22766. +else
  22767. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22768. +$as_echo "no" >&6; }
  22769. +fi
  22770. +
  22771. +
  22772. + test -n "$DUMPBIN" && break
  22773. + done
  22774. +fi
  22775. +if test -z "$DUMPBIN"; then
  22776. + ac_ct_DUMPBIN=$DUMPBIN
  22777. + for ac_prog in dumpbin "link -dump"
  22778. +do
  22779. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  22780. +set dummy $ac_prog; ac_word=$2
  22781. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22782. +$as_echo_n "checking for $ac_word... " >&6; }
  22783. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  22784. + $as_echo_n "(cached) " >&6
  22785. +else
  22786. + if test -n "$ac_ct_DUMPBIN"; then
  22787. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  22788. +else
  22789. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22790. +for as_dir in $PATH
  22791. +do
  22792. + IFS=$as_save_IFS
  22793. + test -z "$as_dir" && as_dir=.
  22794. + for ac_exec_ext in '' $ac_executable_extensions; do
  22795. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22796. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  22797. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22798. + break 2
  22799. + fi
  22800. +done
  22801. + done
  22802. +IFS=$as_save_IFS
  22803. +
  22804. +fi
  22805. +fi
  22806. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  22807. +if test -n "$ac_ct_DUMPBIN"; then
  22808. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  22809. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  22810. +else
  22811. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22812. +$as_echo "no" >&6; }
  22813. +fi
  22814. +
  22815. +
  22816. + test -n "$ac_ct_DUMPBIN" && break
  22817. +done
  22818. +
  22819. + if test "x$ac_ct_DUMPBIN" = x; then
  22820. + DUMPBIN=":"
  22821. + else
  22822. + case $cross_compiling:$ac_tool_warned in
  22823. +yes:)
  22824. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22825. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22826. +ac_tool_warned=yes ;;
  22827. +esac
  22828. + DUMPBIN=$ac_ct_DUMPBIN
  22829. + fi
  22830. +fi
  22831. +
  22832. + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  22833. + *COFF*)
  22834. + DUMPBIN="$DUMPBIN -symbols"
  22835. + ;;
  22836. + *)
  22837. + DUMPBIN=:
  22838. + ;;
  22839. + esac
  22840. + fi
  22841. +
  22842. + if test "$DUMPBIN" != ":"; then
  22843. + NM="$DUMPBIN"
  22844. + fi
  22845. +fi
  22846. +test -z "$NM" && NM=nm
  22847. +
  22848. +
  22849. +
  22850. +
  22851. +
  22852. +
  22853. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  22854. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  22855. +if test "${lt_cv_nm_interface+set}" = set; then :
  22856. + $as_echo_n "(cached) " >&6
  22857. +else
  22858. + lt_cv_nm_interface="BSD nm"
  22859. + echo "int some_variable = 0;" > conftest.$ac_ext
  22860. + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  22861. + (eval "$ac_compile" 2>conftest.err)
  22862. + cat conftest.err >&5
  22863. + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  22864. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  22865. + cat conftest.err >&5
  22866. + (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  22867. + cat conftest.out >&5
  22868. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  22869. + lt_cv_nm_interface="MS dumpbin"
  22870. + fi
  22871. + rm -f conftest*
  22872. +fi
  22873. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  22874. +$as_echo "$lt_cv_nm_interface" >&6; }
  22875. +
  22876. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  22877. +$as_echo_n "checking whether ln -s works... " >&6; }
  22878. +LN_S=$as_ln_s
  22879. +if test "$LN_S" = "ln -s"; then
  22880. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22881. +$as_echo "yes" >&6; }
  22882. +else
  22883. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  22884. +$as_echo "no, using $LN_S" >&6; }
  22885. +fi
  22886. +
  22887. +# find the maximum length of command line arguments
  22888. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  22889. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  22890. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  22891. + $as_echo_n "(cached) " >&6
  22892. +else
  22893. + i=0
  22894. + teststring="ABCD"
  22895. +
  22896. + case $build_os in
  22897. + msdosdjgpp*)
  22898. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  22899. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  22900. + # during glob expansion). Even if it were fixed, the result of this
  22901. + # check would be larger than it should be.
  22902. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  22903. + ;;
  22904. +
  22905. + gnu*)
  22906. + # Under GNU Hurd, this test is not required because there is
  22907. + # no limit to the length of command line arguments.
  22908. + # Libtool will interpret -1 as no limit whatsoever
  22909. + lt_cv_sys_max_cmd_len=-1;
  22910. + ;;
  22911. +
  22912. + cygwin* | mingw* | cegcc*)
  22913. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  22914. + # about 5 minutes as the teststring grows exponentially.
  22915. + # Worse, since 9x/ME are not pre-emptively multitasking,
  22916. + # you end up with a "frozen" computer, even though with patience
  22917. + # the test eventually succeeds (with a max line length of 256k).
  22918. + # Instead, let's just punt: use the minimum linelength reported by
  22919. + # all of the supported platforms: 8192 (on NT/2K/XP).
  22920. + lt_cv_sys_max_cmd_len=8192;
  22921. + ;;
  22922. +
  22923. + mint*)
  22924. + # On MiNT this can take a long time and run out of memory.
  22925. + lt_cv_sys_max_cmd_len=8192;
  22926. + ;;
  22927. +
  22928. + amigaos*)
  22929. + # On AmigaOS with pdksh, this test takes hours, literally.
  22930. + # So we just punt and use a minimum line length of 8192.
  22931. + lt_cv_sys_max_cmd_len=8192;
  22932. + ;;
  22933. +
  22934. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  22935. + # This has been around since 386BSD, at least. Likely further.
  22936. + if test -x /sbin/sysctl; then
  22937. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  22938. + elif test -x /usr/sbin/sysctl; then
  22939. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  22940. + else
  22941. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  22942. + fi
  22943. + # And add a safety zone
  22944. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  22945. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  22946. + ;;
  22947. +
  22948. + interix*)
  22949. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  22950. + lt_cv_sys_max_cmd_len=196608
  22951. + ;;
  22952. +
  22953. + osf*)
  22954. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  22955. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  22956. + # nice to cause kernel panics so lets avoid the loop below.
  22957. + # First set a reasonable default.
  22958. + lt_cv_sys_max_cmd_len=16384
  22959. + #
  22960. + if test -x /sbin/sysconfig; then
  22961. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  22962. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  22963. + esac
  22964. + fi
  22965. + ;;
  22966. + sco3.2v5*)
  22967. + lt_cv_sys_max_cmd_len=102400
  22968. + ;;
  22969. + sysv5* | sco5v6* | sysv4.2uw2*)
  22970. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  22971. + if test -n "$kargmax"; then
  22972. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  22973. + else
  22974. + lt_cv_sys_max_cmd_len=32768
  22975. + fi
  22976. + ;;
  22977. + *)
  22978. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  22979. + if test -n "$lt_cv_sys_max_cmd_len"; then
  22980. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  22981. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  22982. + else
  22983. + # Make teststring a little bigger before we do anything with it.
  22984. + # a 1K string should be a reasonable start.
  22985. + for i in 1 2 3 4 5 6 7 8 ; do
  22986. + teststring=$teststring$teststring
  22987. + done
  22988. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  22989. + # If test is not a shell built-in, we'll probably end up computing a
  22990. + # maximum length that is only half of the actual maximum length, but
  22991. + # we can't tell.
  22992. + while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  22993. + = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  22994. + test $i != 17 # 1/2 MB should be enough
  22995. + do
  22996. + i=`expr $i + 1`
  22997. + teststring=$teststring$teststring
  22998. + done
  22999. + # Only check the string length outside the loop.
  23000. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  23001. + teststring=
  23002. + # Add a significant safety factor because C++ compilers can tack on
  23003. + # massive amounts of additional arguments before passing them to the
  23004. + # linker. It appears as though 1/2 is a usable value.
  23005. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  23006. + fi
  23007. + ;;
  23008. + esac
  23009. +
  23010. +fi
  23011. +
  23012. +if test -n $lt_cv_sys_max_cmd_len ; then
  23013. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  23014. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  23015. +else
  23016. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  23017. +$as_echo "none" >&6; }
  23018. +fi
  23019. +max_cmd_len=$lt_cv_sys_max_cmd_len
  23020. +
  23021. +
  23022. +
  23023. +
  23024. +
  23025. +
  23026. +: ${CP="cp -f"}
  23027. +: ${MV="mv -f"}
  23028. +: ${RM="rm -f"}
  23029. +
  23030. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  23031. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  23032. +# Try some XSI features
  23033. +xsi_shell=no
  23034. +( _lt_dummy="a/b/c"
  23035. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  23036. + = c,a/b,, \
  23037. + && eval 'test $(( 1 + 1 )) -eq 2 \
  23038. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  23039. + && xsi_shell=yes
  23040. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  23041. +$as_echo "$xsi_shell" >&6; }
  23042. +
  23043. +
  23044. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  23045. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  23046. +lt_shell_append=no
  23047. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  23048. + >/dev/null 2>&1 \
  23049. + && lt_shell_append=yes
  23050. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  23051. +$as_echo "$lt_shell_append" >&6; }
  23052. +
  23053. +
  23054. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  23055. + lt_unset=unset
  23056. +else
  23057. + lt_unset=false
  23058. +fi
  23059. +
  23060. +
  23061. +
  23062. +
  23063. +
  23064. +# test EBCDIC or ASCII
  23065. +case `echo X|tr X '\101'` in
  23066. + A) # ASCII based system
  23067. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  23068. + lt_SP2NL='tr \040 \012'
  23069. + lt_NL2SP='tr \015\012 \040\040'
  23070. + ;;
  23071. + *) # EBCDIC based system
  23072. + lt_SP2NL='tr \100 \n'
  23073. + lt_NL2SP='tr \r\n \100\100'
  23074. + ;;
  23075. +esac
  23076. +
  23077. +
  23078. +
  23079. +
  23080. +
  23081. +
  23082. +
  23083. +
  23084. +
  23085. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  23086. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  23087. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  23088. + $as_echo_n "(cached) " >&6
  23089. +else
  23090. + lt_cv_ld_reload_flag='-r'
  23091. +fi
  23092. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  23093. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  23094. +reload_flag=$lt_cv_ld_reload_flag
  23095. +case $reload_flag in
  23096. +"" | " "*) ;;
  23097. +*) reload_flag=" $reload_flag" ;;
  23098. +esac
  23099. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  23100. +case $host_os in
  23101. + darwin*)
  23102. + if test "$GCC" = yes; then
  23103. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  23104. + else
  23105. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  23106. + fi
  23107. + ;;
  23108. +esac
  23109. +
  23110. +
  23111. +
  23112. +
  23113. +
  23114. +
  23115. +
  23116. +
  23117. +
  23118. +if test -n "$ac_tool_prefix"; then
  23119. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  23120. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  23121. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23122. +$as_echo_n "checking for $ac_word... " >&6; }
  23123. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  23124. + $as_echo_n "(cached) " >&6
  23125. +else
  23126. + if test -n "$OBJDUMP"; then
  23127. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  23128. +else
  23129. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23130. +for as_dir in $PATH
  23131. +do
  23132. + IFS=$as_save_IFS
  23133. + test -z "$as_dir" && as_dir=.
  23134. + for ac_exec_ext in '' $ac_executable_extensions; do
  23135. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23136. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  23137. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23138. + break 2
  23139. + fi
  23140. +done
  23141. + done
  23142. +IFS=$as_save_IFS
  23143. +
  23144. +fi
  23145. +fi
  23146. +OBJDUMP=$ac_cv_prog_OBJDUMP
  23147. +if test -n "$OBJDUMP"; then
  23148. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  23149. +$as_echo "$OBJDUMP" >&6; }
  23150. +else
  23151. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23152. +$as_echo "no" >&6; }
  23153. +fi
  23154. +
  23155. +
  23156. +fi
  23157. +if test -z "$ac_cv_prog_OBJDUMP"; then
  23158. + ac_ct_OBJDUMP=$OBJDUMP
  23159. + # Extract the first word of "objdump", so it can be a program name with args.
  23160. +set dummy objdump; ac_word=$2
  23161. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23162. +$as_echo_n "checking for $ac_word... " >&6; }
  23163. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  23164. + $as_echo_n "(cached) " >&6
  23165. +else
  23166. + if test -n "$ac_ct_OBJDUMP"; then
  23167. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  23168. +else
  23169. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23170. +for as_dir in $PATH
  23171. +do
  23172. + IFS=$as_save_IFS
  23173. + test -z "$as_dir" && as_dir=.
  23174. + for ac_exec_ext in '' $ac_executable_extensions; do
  23175. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23176. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  23177. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23178. + break 2
  23179. + fi
  23180. +done
  23181. + done
  23182. +IFS=$as_save_IFS
  23183. +
  23184. +fi
  23185. +fi
  23186. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  23187. +if test -n "$ac_ct_OBJDUMP"; then
  23188. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  23189. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  23190. +else
  23191. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23192. +$as_echo "no" >&6; }
  23193. +fi
  23194. +
  23195. + if test "x$ac_ct_OBJDUMP" = x; then
  23196. + OBJDUMP="false"
  23197. + else
  23198. + case $cross_compiling:$ac_tool_warned in
  23199. +yes:)
  23200. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23201. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23202. +ac_tool_warned=yes ;;
  23203. +esac
  23204. + OBJDUMP=$ac_ct_OBJDUMP
  23205. + fi
  23206. +else
  23207. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  23208. +fi
  23209. +
  23210. +test -z "$OBJDUMP" && OBJDUMP=objdump
  23211. +
  23212. +
  23213. +
  23214. +
  23215. +
  23216. +
  23217. +
  23218. +
  23219. +
  23220. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  23221. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  23222. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  23223. + $as_echo_n "(cached) " >&6
  23224. +else
  23225. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  23226. +lt_cv_file_magic_test_file=
  23227. +lt_cv_deplibs_check_method='unknown'
  23228. +# Need to set the preceding variable on all platforms that support
  23229. +# interlibrary dependencies.
  23230. +# 'none' -- dependencies not supported.
  23231. +# `unknown' -- same as none, but documents that we really don't know.
  23232. +# 'pass_all' -- all dependencies passed with no checks.
  23233. +# 'test_compile' -- check by making test program.
  23234. +# 'file_magic [[regex]]' -- check by looking for files in library path
  23235. +# which responds to the $file_magic_cmd with a given extended regex.
  23236. +# If you have `file' or equivalent on your system and you're not sure
  23237. +# whether `pass_all' will *always* work, you probably want this one.
  23238. +
  23239. +case $host_os in
  23240. +aix[4-9]*)
  23241. + lt_cv_deplibs_check_method=pass_all
  23242. + ;;
  23243. +
  23244. +beos*)
  23245. + lt_cv_deplibs_check_method=pass_all
  23246. + ;;
  23247. +
  23248. +bsdi[45]*)
  23249. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  23250. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  23251. + lt_cv_file_magic_test_file=/shlib/libc.so
  23252. + ;;
  23253. +
  23254. +cygwin*)
  23255. + # func_win32_libid is a shell function defined in ltmain.sh
  23256. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  23257. + lt_cv_file_magic_cmd='func_win32_libid'
  23258. + ;;
  23259. +
  23260. +mingw* | pw32*)
  23261. + # Base MSYS/MinGW do not provide the 'file' command needed by
  23262. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  23263. + # unless we find 'file', for example because we are cross-compiling.
  23264. + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  23265. + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  23266. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  23267. + lt_cv_file_magic_cmd='func_win32_libid'
  23268. + else
  23269. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  23270. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  23271. + fi
  23272. + ;;
  23273. +
  23274. +cegcc*)
  23275. + # use the weaker test based on 'objdump'. See mingw*.
  23276. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  23277. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  23278. + ;;
  23279. +
  23280. +darwin* | rhapsody*)
  23281. + lt_cv_deplibs_check_method=pass_all
  23282. + ;;
  23283. +
  23284. +freebsd* | dragonfly*)
  23285. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  23286. + case $host_cpu in
  23287. + i*86 )
  23288. + # Not sure whether the presence of OpenBSD here was a mistake.
  23289. + # Let's accept both of them until this is cleared up.
  23290. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  23291. + lt_cv_file_magic_cmd=/usr/bin/file
  23292. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  23293. + ;;
  23294. + esac
  23295. + else
  23296. + lt_cv_deplibs_check_method=pass_all
  23297. + fi
  23298. + ;;
  23299. +
  23300. +gnu*)
  23301. + lt_cv_deplibs_check_method=pass_all
  23302. + ;;
  23303. +
  23304. +haiku*)
  23305. + lt_cv_deplibs_check_method=pass_all
  23306. + ;;
  23307. +
  23308. +hpux10.20* | hpux11*)
  23309. + lt_cv_file_magic_cmd=/usr/bin/file
  23310. + case $host_cpu in
  23311. + ia64*)
  23312. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  23313. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  23314. + ;;
  23315. + hppa*64*)
  23316. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  23317. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  23318. + ;;
  23319. + *)
  23320. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  23321. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  23322. + ;;
  23323. + esac
  23324. + ;;
  23325. +
  23326. +interix[3-9]*)
  23327. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  23328. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  23329. + ;;
  23330. +
  23331. +irix5* | irix6* | nonstopux*)
  23332. + case $LD in
  23333. + *-32|*"-32 ") libmagic=32-bit;;
  23334. + *-n32|*"-n32 ") libmagic=N32;;
  23335. + *-64|*"-64 ") libmagic=64-bit;;
  23336. + *) libmagic=never-match;;
  23337. + esac
  23338. + lt_cv_deplibs_check_method=pass_all
  23339. + ;;
  23340. +
  23341. +# This must be Linux ELF.
  23342. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  23343. + lt_cv_deplibs_check_method=pass_all
  23344. + ;;
  23345. +
  23346. +netbsd*)
  23347. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  23348. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  23349. + else
  23350. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  23351. + fi
  23352. + ;;
  23353. +
  23354. +newos6*)
  23355. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  23356. + lt_cv_file_magic_cmd=/usr/bin/file
  23357. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  23358. + ;;
  23359. +
  23360. +*nto* | *qnx*)
  23361. + lt_cv_deplibs_check_method=pass_all
  23362. + ;;
  23363. +
  23364. +openbsd*)
  23365. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  23366. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  23367. + else
  23368. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  23369. + fi
  23370. + ;;
  23371. +
  23372. +osf3* | osf4* | osf5*)
  23373. + lt_cv_deplibs_check_method=pass_all
  23374. + ;;
  23375. +
  23376. +rdos*)
  23377. + lt_cv_deplibs_check_method=pass_all
  23378. + ;;
  23379. +
  23380. +solaris*)
  23381. + lt_cv_deplibs_check_method=pass_all
  23382. + ;;
  23383. +
  23384. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  23385. + lt_cv_deplibs_check_method=pass_all
  23386. + ;;
  23387. +
  23388. +sysv4 | sysv4.3*)
  23389. + case $host_vendor in
  23390. + motorola)
  23391. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  23392. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  23393. + ;;
  23394. + ncr)
  23395. + lt_cv_deplibs_check_method=pass_all
  23396. + ;;
  23397. + sequent)
  23398. + lt_cv_file_magic_cmd='/bin/file'
  23399. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  23400. + ;;
  23401. + sni)
  23402. + lt_cv_file_magic_cmd='/bin/file'
  23403. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  23404. + lt_cv_file_magic_test_file=/lib/libc.so
  23405. + ;;
  23406. + siemens)
  23407. + lt_cv_deplibs_check_method=pass_all
  23408. + ;;
  23409. + pc)
  23410. + lt_cv_deplibs_check_method=pass_all
  23411. + ;;
  23412. + esac
  23413. + ;;
  23414. +
  23415. +tpf*)
  23416. + lt_cv_deplibs_check_method=pass_all
  23417. + ;;
  23418. +esac
  23419. +
  23420. +fi
  23421. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  23422. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  23423. +file_magic_cmd=$lt_cv_file_magic_cmd
  23424. +deplibs_check_method=$lt_cv_deplibs_check_method
  23425. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  23426. +
  23427. +
  23428. +
  23429. +
  23430. +
  23431. +
  23432. +
  23433. +
  23434. +
  23435. +
  23436. +
  23437. +
  23438. +if test -n "$ac_tool_prefix"; then
  23439. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  23440. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  23441. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23442. +$as_echo_n "checking for $ac_word... " >&6; }
  23443. +if test "${ac_cv_prog_AR+set}" = set; then :
  23444. + $as_echo_n "(cached) " >&6
  23445. +else
  23446. + if test -n "$AR"; then
  23447. + ac_cv_prog_AR="$AR" # Let the user override the test.
  23448. +else
  23449. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23450. +for as_dir in $PATH
  23451. +do
  23452. + IFS=$as_save_IFS
  23453. + test -z "$as_dir" && as_dir=.
  23454. + for ac_exec_ext in '' $ac_executable_extensions; do
  23455. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23456. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  23457. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23458. + break 2
  23459. + fi
  23460. +done
  23461. + done
  23462. +IFS=$as_save_IFS
  23463. +
  23464. +fi
  23465. +fi
  23466. +AR=$ac_cv_prog_AR
  23467. +if test -n "$AR"; then
  23468. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  23469. +$as_echo "$AR" >&6; }
  23470. +else
  23471. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23472. +$as_echo "no" >&6; }
  23473. +fi
  23474. +
  23475. +
  23476. +fi
  23477. +if test -z "$ac_cv_prog_AR"; then
  23478. + ac_ct_AR=$AR
  23479. + # Extract the first word of "ar", so it can be a program name with args.
  23480. +set dummy ar; ac_word=$2
  23481. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23482. +$as_echo_n "checking for $ac_word... " >&6; }
  23483. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  23484. + $as_echo_n "(cached) " >&6
  23485. +else
  23486. + if test -n "$ac_ct_AR"; then
  23487. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  23488. +else
  23489. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23490. +for as_dir in $PATH
  23491. +do
  23492. + IFS=$as_save_IFS
  23493. + test -z "$as_dir" && as_dir=.
  23494. + for ac_exec_ext in '' $ac_executable_extensions; do
  23495. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23496. + ac_cv_prog_ac_ct_AR="ar"
  23497. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23498. + break 2
  23499. + fi
  23500. +done
  23501. + done
  23502. +IFS=$as_save_IFS
  23503. +
  23504. +fi
  23505. +fi
  23506. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  23507. +if test -n "$ac_ct_AR"; then
  23508. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  23509. +$as_echo "$ac_ct_AR" >&6; }
  23510. +else
  23511. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23512. +$as_echo "no" >&6; }
  23513. +fi
  23514. +
  23515. + if test "x$ac_ct_AR" = x; then
  23516. + AR="false"
  23517. + else
  23518. + case $cross_compiling:$ac_tool_warned in
  23519. +yes:)
  23520. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23521. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23522. +ac_tool_warned=yes ;;
  23523. +esac
  23524. + AR=$ac_ct_AR
  23525. + fi
  23526. +else
  23527. + AR="$ac_cv_prog_AR"
  23528. +fi
  23529. +
  23530. +test -z "$AR" && AR=ar
  23531. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  23532. +
  23533. +
  23534. +
  23535. +
  23536. +
  23537. +
  23538. +
  23539. +
  23540. +
  23541. +
  23542. +
  23543. +if test -n "$ac_tool_prefix"; then
  23544. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  23545. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  23546. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23547. +$as_echo_n "checking for $ac_word... " >&6; }
  23548. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  23549. + $as_echo_n "(cached) " >&6
  23550. +else
  23551. + if test -n "$STRIP"; then
  23552. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  23553. +else
  23554. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23555. +for as_dir in $PATH
  23556. +do
  23557. + IFS=$as_save_IFS
  23558. + test -z "$as_dir" && as_dir=.
  23559. + for ac_exec_ext in '' $ac_executable_extensions; do
  23560. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23561. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  23562. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23563. + break 2
  23564. + fi
  23565. +done
  23566. + done
  23567. +IFS=$as_save_IFS
  23568. +
  23569. +fi
  23570. +fi
  23571. +STRIP=$ac_cv_prog_STRIP
  23572. +if test -n "$STRIP"; then
  23573. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  23574. +$as_echo "$STRIP" >&6; }
  23575. +else
  23576. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23577. +$as_echo "no" >&6; }
  23578. +fi
  23579. +
  23580. +
  23581. +fi
  23582. +if test -z "$ac_cv_prog_STRIP"; then
  23583. + ac_ct_STRIP=$STRIP
  23584. + # Extract the first word of "strip", so it can be a program name with args.
  23585. +set dummy strip; ac_word=$2
  23586. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23587. +$as_echo_n "checking for $ac_word... " >&6; }
  23588. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  23589. + $as_echo_n "(cached) " >&6
  23590. +else
  23591. + if test -n "$ac_ct_STRIP"; then
  23592. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  23593. +else
  23594. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23595. +for as_dir in $PATH
  23596. +do
  23597. + IFS=$as_save_IFS
  23598. + test -z "$as_dir" && as_dir=.
  23599. + for ac_exec_ext in '' $ac_executable_extensions; do
  23600. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23601. + ac_cv_prog_ac_ct_STRIP="strip"
  23602. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23603. + break 2
  23604. + fi
  23605. +done
  23606. + done
  23607. +IFS=$as_save_IFS
  23608. +
  23609. +fi
  23610. +fi
  23611. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  23612. +if test -n "$ac_ct_STRIP"; then
  23613. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  23614. +$as_echo "$ac_ct_STRIP" >&6; }
  23615. +else
  23616. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23617. +$as_echo "no" >&6; }
  23618. +fi
  23619. +
  23620. + if test "x$ac_ct_STRIP" = x; then
  23621. + STRIP=":"
  23622. + else
  23623. + case $cross_compiling:$ac_tool_warned in
  23624. +yes:)
  23625. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23626. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23627. +ac_tool_warned=yes ;;
  23628. +esac
  23629. + STRIP=$ac_ct_STRIP
  23630. + fi
  23631. +else
  23632. + STRIP="$ac_cv_prog_STRIP"
  23633. +fi
  23634. +
  23635. +test -z "$STRIP" && STRIP=:
  23636. +
  23637. +
  23638. +
  23639. +
  23640. +
  23641. +
  23642. +if test -n "$ac_tool_prefix"; then
  23643. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  23644. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  23645. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23646. +$as_echo_n "checking for $ac_word... " >&6; }
  23647. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  23648. + $as_echo_n "(cached) " >&6
  23649. +else
  23650. + if test -n "$RANLIB"; then
  23651. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  23652. +else
  23653. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23654. +for as_dir in $PATH
  23655. +do
  23656. + IFS=$as_save_IFS
  23657. + test -z "$as_dir" && as_dir=.
  23658. + for ac_exec_ext in '' $ac_executable_extensions; do
  23659. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23660. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  23661. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23662. + break 2
  23663. + fi
  23664. +done
  23665. + done
  23666. +IFS=$as_save_IFS
  23667. +
  23668. +fi
  23669. +fi
  23670. +RANLIB=$ac_cv_prog_RANLIB
  23671. +if test -n "$RANLIB"; then
  23672. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  23673. +$as_echo "$RANLIB" >&6; }
  23674. +else
  23675. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23676. +$as_echo "no" >&6; }
  23677. +fi
  23678. +
  23679. +
  23680. +fi
  23681. +if test -z "$ac_cv_prog_RANLIB"; then
  23682. + ac_ct_RANLIB=$RANLIB
  23683. + # Extract the first word of "ranlib", so it can be a program name with args.
  23684. +set dummy ranlib; ac_word=$2
  23685. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23686. +$as_echo_n "checking for $ac_word... " >&6; }
  23687. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  23688. + $as_echo_n "(cached) " >&6
  23689. +else
  23690. + if test -n "$ac_ct_RANLIB"; then
  23691. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  23692. +else
  23693. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23694. +for as_dir in $PATH
  23695. +do
  23696. + IFS=$as_save_IFS
  23697. + test -z "$as_dir" && as_dir=.
  23698. + for ac_exec_ext in '' $ac_executable_extensions; do
  23699. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23700. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  23701. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23702. + break 2
  23703. + fi
  23704. +done
  23705. + done
  23706. +IFS=$as_save_IFS
  23707. +
  23708. +fi
  23709. +fi
  23710. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  23711. +if test -n "$ac_ct_RANLIB"; then
  23712. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  23713. +$as_echo "$ac_ct_RANLIB" >&6; }
  23714. +else
  23715. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23716. +$as_echo "no" >&6; }
  23717. +fi
  23718. +
  23719. + if test "x$ac_ct_RANLIB" = x; then
  23720. + RANLIB=":"
  23721. + else
  23722. + case $cross_compiling:$ac_tool_warned in
  23723. +yes:)
  23724. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23725. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23726. +ac_tool_warned=yes ;;
  23727. +esac
  23728. + RANLIB=$ac_ct_RANLIB
  23729. + fi
  23730. +else
  23731. + RANLIB="$ac_cv_prog_RANLIB"
  23732. +fi
  23733. +
  23734. +test -z "$RANLIB" && RANLIB=:
  23735. +
  23736. +
  23737. +
  23738. +
  23739. +
  23740. +
  23741. +# Determine commands to create old-style static archives.
  23742. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  23743. +old_postinstall_cmds='chmod 644 $oldlib'
  23744. +old_postuninstall_cmds=
  23745. +
  23746. +if test -n "$RANLIB"; then
  23747. + case $host_os in
  23748. + openbsd*)
  23749. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  23750. + ;;
  23751. + *)
  23752. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  23753. + ;;
  23754. + esac
  23755. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  23756. +fi
  23757. +
  23758. +case $host_os in
  23759. + darwin*)
  23760. + lock_old_archive_extraction=yes ;;
  23761. + *)
  23762. + lock_old_archive_extraction=no ;;
  23763. +esac
  23764. +
  23765. +
  23766. +
  23767. +
  23768. +
  23769. +
  23770. +
  23771. +
  23772. +
  23773. +
  23774. +
  23775. +
  23776. +
  23777. +
  23778. +
  23779. +
  23780. +
  23781. +
  23782. +
  23783. +
  23784. +
  23785. +
  23786. +
  23787. +
  23788. +
  23789. +
  23790. +
  23791. +
  23792. +
  23793. +
  23794. +
  23795. +
  23796. +
  23797. +
  23798. +
  23799. +
  23800. +
  23801. +
  23802. +
  23803. +# If no C compiler was specified, use CC.
  23804. +LTCC=${LTCC-"$CC"}
  23805. +
  23806. +# If no C compiler flags were specified, use CFLAGS.
  23807. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  23808. +
  23809. +# Allow CC to be a program name with arguments.
  23810. +compiler=$CC
  23811. +
  23812. +
  23813. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  23814. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  23815. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  23816. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  23817. + $as_echo_n "(cached) " >&6
  23818. +else
  23819. +
  23820. +# These are sane defaults that work on at least a few old systems.
  23821. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  23822. +
  23823. +# Character class describing NM global symbol codes.
  23824. +symcode='[BCDEGRST]'
  23825. +
  23826. +# Regexp to match symbols that can be accessed directly from C.
  23827. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  23828. +
  23829. +# Define system-specific variables.
  23830. +case $host_os in
  23831. +aix*)
  23832. + symcode='[BCDT]'
  23833. + ;;
  23834. +cygwin* | mingw* | pw32* | cegcc*)
  23835. + symcode='[ABCDGISTW]'
  23836. + ;;
  23837. +hpux*)
  23838. + if test "$host_cpu" = ia64; then
  23839. + symcode='[ABCDEGRST]'
  23840. + fi
  23841. + ;;
  23842. +irix* | nonstopux*)
  23843. + symcode='[BCDEGRST]'
  23844. + ;;
  23845. +osf*)
  23846. + symcode='[BCDEGQRST]'
  23847. + ;;
  23848. +solaris*)
  23849. + symcode='[BDRT]'
  23850. + ;;
  23851. +sco3.2v5*)
  23852. + symcode='[DT]'
  23853. + ;;
  23854. +sysv4.2uw2*)
  23855. + symcode='[DT]'
  23856. + ;;
  23857. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  23858. + symcode='[ABDT]'
  23859. + ;;
  23860. +sysv4)
  23861. + symcode='[DFNSTU]'
  23862. + ;;
  23863. +esac
  23864. +
  23865. +# If we're using GNU nm, then use its standard symbol codes.
  23866. +case `$NM -V 2>&1` in
  23867. +*GNU* | *'with BFD'*)
  23868. + symcode='[ABCDGIRSTW]' ;;
  23869. +esac
  23870. +
  23871. +# Transform an extracted symbol line into a proper C declaration.
  23872. +# Some systems (esp. on ia64) link data and code symbols differently,
  23873. +# so use this general approach.
  23874. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  23875. +
  23876. +# Transform an extracted symbol line into symbol name and symbol address
  23877. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  23878. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  23879. +
  23880. +# Handle CRLF in mingw tool chain
  23881. +opt_cr=
  23882. +case $build_os in
  23883. +mingw*)
  23884. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  23885. + ;;
  23886. +esac
  23887. +
  23888. +# Try without a prefix underscore, then with it.
  23889. +for ac_symprfx in "" "_"; do
  23890. +
  23891. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  23892. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  23893. +
  23894. + # Write the raw and C identifiers.
  23895. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  23896. + # Fake it for dumpbin and say T for any non-static function
  23897. + # and D for any global variable.
  23898. + # Also find C++ and __fastcall symbols from MSVC++,
  23899. + # which start with @ or ?.
  23900. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  23901. +" {last_section=section; section=\$ 3};"\
  23902. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  23903. +" \$ 0!~/External *\|/{next};"\
  23904. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  23905. +" {if(hide[section]) next};"\
  23906. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  23907. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  23908. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  23909. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  23910. +" ' prfx=^$ac_symprfx"
  23911. + else
  23912. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  23913. + fi
  23914. +
  23915. + # Check to see that the pipe works correctly.
  23916. + pipe_works=no
  23917. +
  23918. + rm -f conftest*
  23919. + cat > conftest.$ac_ext <<_LT_EOF
  23920. +#ifdef __cplusplus
  23921. +extern "C" {
  23922. +#endif
  23923. +char nm_test_var;
  23924. +void nm_test_func(void);
  23925. +void nm_test_func(void){}
  23926. +#ifdef __cplusplus
  23927. +}
  23928. +#endif
  23929. +int main(){nm_test_var='a';nm_test_func();return(0);}
  23930. +_LT_EOF
  23931. +
  23932. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23933. + (eval $ac_compile) 2>&5
  23934. + ac_status=$?
  23935. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23936. + test $ac_status = 0; }; then
  23937. + # Now try to grab the symbols.
  23938. + nlist=conftest.nm
  23939. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  23940. + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  23941. + ac_status=$?
  23942. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23943. + test $ac_status = 0; } && test -s "$nlist"; then
  23944. + # Try sorting and uniquifying the output.
  23945. + if sort "$nlist" | uniq > "$nlist"T; then
  23946. + mv -f "$nlist"T "$nlist"
  23947. + else
  23948. + rm -f "$nlist"T
  23949. + fi
  23950. +
  23951. + # Make sure that we snagged all the symbols we need.
  23952. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  23953. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  23954. + cat <<_LT_EOF > conftest.$ac_ext
  23955. +#ifdef __cplusplus
  23956. +extern "C" {
  23957. +#endif
  23958. +
  23959. +_LT_EOF
  23960. + # Now generate the symbol file.
  23961. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  23962. +
  23963. + cat <<_LT_EOF >> conftest.$ac_ext
  23964. +
  23965. +/* The mapping between symbol names and symbols. */
  23966. +const struct {
  23967. + const char *name;
  23968. + void *address;
  23969. +}
  23970. +lt__PROGRAM__LTX_preloaded_symbols[] =
  23971. +{
  23972. + { "@PROGRAM@", (void *) 0 },
  23973. +_LT_EOF
  23974. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  23975. + cat <<\_LT_EOF >> conftest.$ac_ext
  23976. + {0, (void *) 0}
  23977. +};
  23978. +
  23979. +/* This works around a problem in FreeBSD linker */
  23980. +#ifdef FREEBSD_WORKAROUND
  23981. +static const void *lt_preloaded_setup() {
  23982. + return lt__PROGRAM__LTX_preloaded_symbols;
  23983. +}
  23984. +#endif
  23985. +
  23986. +#ifdef __cplusplus
  23987. +}
  23988. +#endif
  23989. +_LT_EOF
  23990. + # Now try linking the two files.
  23991. + mv conftest.$ac_objext conftstm.$ac_objext
  23992. + lt_save_LIBS="$LIBS"
  23993. + lt_save_CFLAGS="$CFLAGS"
  23994. + LIBS="conftstm.$ac_objext"
  23995. + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  23996. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  23997. + (eval $ac_link) 2>&5
  23998. + ac_status=$?
  23999. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24000. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  24001. + pipe_works=yes
  24002. + fi
  24003. + LIBS="$lt_save_LIBS"
  24004. + CFLAGS="$lt_save_CFLAGS"
  24005. + else
  24006. + echo "cannot find nm_test_func in $nlist" >&5
  24007. + fi
  24008. + else
  24009. + echo "cannot find nm_test_var in $nlist" >&5
  24010. + fi
  24011. + else
  24012. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  24013. + fi
  24014. + else
  24015. + echo "$progname: failed program was:" >&5
  24016. + cat conftest.$ac_ext >&5
  24017. + fi
  24018. + rm -rf conftest* conftst*
  24019. +
  24020. + # Do not use the global_symbol_pipe unless it works.
  24021. + if test "$pipe_works" = yes; then
  24022. + break
  24023. + else
  24024. + lt_cv_sys_global_symbol_pipe=
  24025. + fi
  24026. +done
  24027. +
  24028. +fi
  24029. +
  24030. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  24031. + lt_cv_sys_global_symbol_to_cdecl=
  24032. +fi
  24033. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  24034. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  24035. +$as_echo "failed" >&6; }
  24036. +else
  24037. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  24038. +$as_echo "ok" >&6; }
  24039. +fi
  24040. +
  24041. +
  24042. +
  24043. +
  24044. +
  24045. +
  24046. +
  24047. +
  24048. +
  24049. +
  24050. +
  24051. +
  24052. +
  24053. +
  24054. +
  24055. +
  24056. +
  24057. +
  24058. +
  24059. +
  24060. +
  24061. +
  24062. +# Check whether --enable-libtool-lock was given.
  24063. +if test "${enable_libtool_lock+set}" = set; then :
  24064. + enableval=$enable_libtool_lock;
  24065. +fi
  24066. +
  24067. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  24068. +
  24069. +# Some flags need to be propagated to the compiler or linker for good
  24070. +# libtool support.
  24071. +case $host in
  24072. +ia64-*-hpux*)
  24073. + # Find out which ABI we are using.
  24074. + echo 'int i;' > conftest.$ac_ext
  24075. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24076. + (eval $ac_compile) 2>&5
  24077. + ac_status=$?
  24078. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24079. + test $ac_status = 0; }; then
  24080. + case `/usr/bin/file conftest.$ac_objext` in
  24081. + *ELF-32*)
  24082. + HPUX_IA64_MODE="32"
  24083. + ;;
  24084. + *ELF-64*)
  24085. + HPUX_IA64_MODE="64"
  24086. + ;;
  24087. + esac
  24088. + fi
  24089. + rm -rf conftest*
  24090. + ;;
  24091. +*-*-irix6*)
  24092. + # Find out which ABI we are using.
  24093. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  24094. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24095. + (eval $ac_compile) 2>&5
  24096. + ac_status=$?
  24097. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24098. + test $ac_status = 0; }; then
  24099. + if test "$lt_cv_prog_gnu_ld" = yes; then
  24100. + case `/usr/bin/file conftest.$ac_objext` in
  24101. + *32-bit*)
  24102. + LD="${LD-ld} -melf32bsmip"
  24103. + ;;
  24104. + *N32*)
  24105. + LD="${LD-ld} -melf32bmipn32"
  24106. + ;;
  24107. + *64-bit*)
  24108. + LD="${LD-ld} -melf64bmip"
  24109. + ;;
  24110. + esac
  24111. + else
  24112. + case `/usr/bin/file conftest.$ac_objext` in
  24113. + *32-bit*)
  24114. + LD="${LD-ld} -32"
  24115. + ;;
  24116. + *N32*)
  24117. + LD="${LD-ld} -n32"
  24118. + ;;
  24119. + *64-bit*)
  24120. + LD="${LD-ld} -64"
  24121. + ;;
  24122. + esac
  24123. + fi
  24124. + fi
  24125. + rm -rf conftest*
  24126. + ;;
  24127. +
  24128. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  24129. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  24130. + # Find out which ABI we are using.
  24131. + echo 'int i;' > conftest.$ac_ext
  24132. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24133. + (eval $ac_compile) 2>&5
  24134. + ac_status=$?
  24135. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24136. + test $ac_status = 0; }; then
  24137. + case `/usr/bin/file conftest.o` in
  24138. + *32-bit*)
  24139. + case $host in
  24140. + x86_64-*kfreebsd*-gnu)
  24141. + LD="${LD-ld} -m elf_i386_fbsd"
  24142. + ;;
  24143. + x86_64-*linux*)
  24144. + case `/usr/bin/file conftest.o` in
  24145. + *x86-64*)
  24146. + LD="${LD-ld} -m elf32_x86_64"
  24147. + ;;
  24148. + *)
  24149. + LD="${LD-ld} -m elf_i386"
  24150. + ;;
  24151. + esac
  24152. + ;;
  24153. + powerpc64le-*linux*)
  24154. + LD="${LD-ld} -m elf32lppclinux"
  24155. + ;;
  24156. + powerpc64-*linux*)
  24157. + LD="${LD-ld} -m elf32ppclinux"
  24158. + ;;
  24159. + s390x-*linux*)
  24160. + LD="${LD-ld} -m elf_s390"
  24161. + ;;
  24162. + sparc64-*linux*)
  24163. + LD="${LD-ld} -m elf32_sparc"
  24164. + ;;
  24165. + esac
  24166. + ;;
  24167. + *64-bit*)
  24168. + case $host in
  24169. + x86_64-*kfreebsd*-gnu)
  24170. + LD="${LD-ld} -m elf_x86_64_fbsd"
  24171. + ;;
  24172. + x86_64-*linux*)
  24173. + LD="${LD-ld} -m elf_x86_64"
  24174. + ;;
  24175. + powerpcle-*linux*)
  24176. + LD="${LD-ld} -m elf64lppc"
  24177. + ;;
  24178. + powerpc-*linux*)
  24179. + LD="${LD-ld} -m elf64ppc"
  24180. + ;;
  24181. + s390*-*linux*|s390*-*tpf*)
  24182. + LD="${LD-ld} -m elf64_s390"
  24183. + ;;
  24184. + sparc*-*linux*)
  24185. + LD="${LD-ld} -m elf64_sparc"
  24186. + ;;
  24187. + esac
  24188. + ;;
  24189. + esac
  24190. + fi
  24191. + rm -rf conftest*
  24192. + ;;
  24193. +
  24194. +*-*-sco3.2v5*)
  24195. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  24196. + SAVE_CFLAGS="$CFLAGS"
  24197. + CFLAGS="$CFLAGS -belf"
  24198. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  24199. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  24200. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  24201. + $as_echo_n "(cached) " >&6
  24202. +else
  24203. + ac_ext=c
  24204. +ac_cpp='$CPP $CPPFLAGS'
  24205. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24206. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24207. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24208. +
  24209. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24210. +/* end confdefs.h. */
  24211. +
  24212. +int
  24213. +main ()
  24214. +{
  24215. +
  24216. + ;
  24217. + return 0;
  24218. +}
  24219. +_ACEOF
  24220. +if ac_fn_c_try_link "$LINENO"; then :
  24221. + lt_cv_cc_needs_belf=yes
  24222. +else
  24223. + lt_cv_cc_needs_belf=no
  24224. +fi
  24225. +rm -f core conftest.err conftest.$ac_objext \
  24226. + conftest$ac_exeext conftest.$ac_ext
  24227. + ac_ext=c
  24228. +ac_cpp='$CPP $CPPFLAGS'
  24229. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24230. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24231. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24232. +
  24233. +fi
  24234. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  24235. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  24236. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  24237. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  24238. + CFLAGS="$SAVE_CFLAGS"
  24239. + fi
  24240. + ;;
  24241. +sparc*-*solaris*)
  24242. + # Find out which ABI we are using.
  24243. + echo 'int i;' > conftest.$ac_ext
  24244. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24245. + (eval $ac_compile) 2>&5
  24246. + ac_status=$?
  24247. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24248. + test $ac_status = 0; }; then
  24249. + case `/usr/bin/file conftest.o` in
  24250. + *64-bit*)
  24251. + case $lt_cv_prog_gnu_ld in
  24252. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  24253. + *)
  24254. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  24255. + LD="${LD-ld} -64"
  24256. + fi
  24257. + ;;
  24258. + esac
  24259. + ;;
  24260. + esac
  24261. + fi
  24262. + rm -rf conftest*
  24263. + ;;
  24264. +esac
  24265. +
  24266. +need_locks="$enable_libtool_lock"
  24267. +
  24268. +
  24269. + case $host_os in
  24270. + rhapsody* | darwin*)
  24271. + if test -n "$ac_tool_prefix"; then
  24272. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  24273. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  24274. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24275. +$as_echo_n "checking for $ac_word... " >&6; }
  24276. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  24277. + $as_echo_n "(cached) " >&6
  24278. +else
  24279. + if test -n "$DSYMUTIL"; then
  24280. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  24281. +else
  24282. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24283. +for as_dir in $PATH
  24284. +do
  24285. + IFS=$as_save_IFS
  24286. + test -z "$as_dir" && as_dir=.
  24287. + for ac_exec_ext in '' $ac_executable_extensions; do
  24288. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24289. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  24290. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24291. + break 2
  24292. + fi
  24293. +done
  24294. + done
  24295. +IFS=$as_save_IFS
  24296. +
  24297. +fi
  24298. +fi
  24299. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  24300. +if test -n "$DSYMUTIL"; then
  24301. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  24302. +$as_echo "$DSYMUTIL" >&6; }
  24303. +else
  24304. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24305. +$as_echo "no" >&6; }
  24306. +fi
  24307. +
  24308. +
  24309. +fi
  24310. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  24311. + ac_ct_DSYMUTIL=$DSYMUTIL
  24312. + # Extract the first word of "dsymutil", so it can be a program name with args.
  24313. +set dummy dsymutil; ac_word=$2
  24314. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24315. +$as_echo_n "checking for $ac_word... " >&6; }
  24316. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  24317. + $as_echo_n "(cached) " >&6
  24318. +else
  24319. + if test -n "$ac_ct_DSYMUTIL"; then
  24320. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  24321. +else
  24322. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24323. +for as_dir in $PATH
  24324. +do
  24325. + IFS=$as_save_IFS
  24326. + test -z "$as_dir" && as_dir=.
  24327. + for ac_exec_ext in '' $ac_executable_extensions; do
  24328. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24329. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  24330. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24331. + break 2
  24332. + fi
  24333. +done
  24334. + done
  24335. +IFS=$as_save_IFS
  24336. +
  24337. +fi
  24338. +fi
  24339. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  24340. +if test -n "$ac_ct_DSYMUTIL"; then
  24341. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  24342. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  24343. +else
  24344. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24345. +$as_echo "no" >&6; }
  24346. +fi
  24347. +
  24348. + if test "x$ac_ct_DSYMUTIL" = x; then
  24349. + DSYMUTIL=":"
  24350. + else
  24351. + case $cross_compiling:$ac_tool_warned in
  24352. +yes:)
  24353. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24354. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24355. +ac_tool_warned=yes ;;
  24356. +esac
  24357. + DSYMUTIL=$ac_ct_DSYMUTIL
  24358. + fi
  24359. +else
  24360. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  24361. +fi
  24362. +
  24363. + if test -n "$ac_tool_prefix"; then
  24364. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  24365. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  24366. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24367. +$as_echo_n "checking for $ac_word... " >&6; }
  24368. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  24369. + $as_echo_n "(cached) " >&6
  24370. +else
  24371. + if test -n "$NMEDIT"; then
  24372. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  24373. +else
  24374. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24375. +for as_dir in $PATH
  24376. +do
  24377. + IFS=$as_save_IFS
  24378. + test -z "$as_dir" && as_dir=.
  24379. + for ac_exec_ext in '' $ac_executable_extensions; do
  24380. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24381. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  24382. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24383. + break 2
  24384. + fi
  24385. +done
  24386. + done
  24387. +IFS=$as_save_IFS
  24388. +
  24389. +fi
  24390. +fi
  24391. +NMEDIT=$ac_cv_prog_NMEDIT
  24392. +if test -n "$NMEDIT"; then
  24393. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  24394. +$as_echo "$NMEDIT" >&6; }
  24395. +else
  24396. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24397. +$as_echo "no" >&6; }
  24398. +fi
  24399. +
  24400. +
  24401. +fi
  24402. +if test -z "$ac_cv_prog_NMEDIT"; then
  24403. + ac_ct_NMEDIT=$NMEDIT
  24404. + # Extract the first word of "nmedit", so it can be a program name with args.
  24405. +set dummy nmedit; ac_word=$2
  24406. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24407. +$as_echo_n "checking for $ac_word... " >&6; }
  24408. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  24409. + $as_echo_n "(cached) " >&6
  24410. +else
  24411. + if test -n "$ac_ct_NMEDIT"; then
  24412. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  24413. +else
  24414. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24415. +for as_dir in $PATH
  24416. +do
  24417. + IFS=$as_save_IFS
  24418. + test -z "$as_dir" && as_dir=.
  24419. + for ac_exec_ext in '' $ac_executable_extensions; do
  24420. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24421. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  24422. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24423. + break 2
  24424. + fi
  24425. +done
  24426. + done
  24427. +IFS=$as_save_IFS
  24428. +
  24429. +fi
  24430. +fi
  24431. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  24432. +if test -n "$ac_ct_NMEDIT"; then
  24433. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  24434. +$as_echo "$ac_ct_NMEDIT" >&6; }
  24435. +else
  24436. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24437. +$as_echo "no" >&6; }
  24438. +fi
  24439. +
  24440. + if test "x$ac_ct_NMEDIT" = x; then
  24441. + NMEDIT=":"
  24442. + else
  24443. + case $cross_compiling:$ac_tool_warned in
  24444. +yes:)
  24445. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24446. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24447. +ac_tool_warned=yes ;;
  24448. +esac
  24449. + NMEDIT=$ac_ct_NMEDIT
  24450. + fi
  24451. +else
  24452. + NMEDIT="$ac_cv_prog_NMEDIT"
  24453. +fi
  24454. +
  24455. + if test -n "$ac_tool_prefix"; then
  24456. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  24457. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  24458. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24459. +$as_echo_n "checking for $ac_word... " >&6; }
  24460. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  24461. + $as_echo_n "(cached) " >&6
  24462. +else
  24463. + if test -n "$LIPO"; then
  24464. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  24465. +else
  24466. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24467. +for as_dir in $PATH
  24468. +do
  24469. + IFS=$as_save_IFS
  24470. + test -z "$as_dir" && as_dir=.
  24471. + for ac_exec_ext in '' $ac_executable_extensions; do
  24472. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24473. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  24474. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24475. + break 2
  24476. + fi
  24477. +done
  24478. + done
  24479. +IFS=$as_save_IFS
  24480. +
  24481. +fi
  24482. +fi
  24483. +LIPO=$ac_cv_prog_LIPO
  24484. +if test -n "$LIPO"; then
  24485. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  24486. +$as_echo "$LIPO" >&6; }
  24487. +else
  24488. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24489. +$as_echo "no" >&6; }
  24490. +fi
  24491. +
  24492. +
  24493. +fi
  24494. +if test -z "$ac_cv_prog_LIPO"; then
  24495. + ac_ct_LIPO=$LIPO
  24496. + # Extract the first word of "lipo", so it can be a program name with args.
  24497. +set dummy lipo; ac_word=$2
  24498. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24499. +$as_echo_n "checking for $ac_word... " >&6; }
  24500. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  24501. + $as_echo_n "(cached) " >&6
  24502. +else
  24503. + if test -n "$ac_ct_LIPO"; then
  24504. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  24505. +else
  24506. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24507. +for as_dir in $PATH
  24508. +do
  24509. + IFS=$as_save_IFS
  24510. + test -z "$as_dir" && as_dir=.
  24511. + for ac_exec_ext in '' $ac_executable_extensions; do
  24512. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24513. + ac_cv_prog_ac_ct_LIPO="lipo"
  24514. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24515. + break 2
  24516. + fi
  24517. +done
  24518. + done
  24519. +IFS=$as_save_IFS
  24520. +
  24521. +fi
  24522. +fi
  24523. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  24524. +if test -n "$ac_ct_LIPO"; then
  24525. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  24526. +$as_echo "$ac_ct_LIPO" >&6; }
  24527. +else
  24528. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24529. +$as_echo "no" >&6; }
  24530. +fi
  24531. +
  24532. + if test "x$ac_ct_LIPO" = x; then
  24533. + LIPO=":"
  24534. + else
  24535. + case $cross_compiling:$ac_tool_warned in
  24536. +yes:)
  24537. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24538. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24539. +ac_tool_warned=yes ;;
  24540. +esac
  24541. + LIPO=$ac_ct_LIPO
  24542. + fi
  24543. +else
  24544. + LIPO="$ac_cv_prog_LIPO"
  24545. +fi
  24546. +
  24547. + if test -n "$ac_tool_prefix"; then
  24548. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  24549. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  24550. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24551. +$as_echo_n "checking for $ac_word... " >&6; }
  24552. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  24553. + $as_echo_n "(cached) " >&6
  24554. +else
  24555. + if test -n "$OTOOL"; then
  24556. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  24557. +else
  24558. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24559. +for as_dir in $PATH
  24560. +do
  24561. + IFS=$as_save_IFS
  24562. + test -z "$as_dir" && as_dir=.
  24563. + for ac_exec_ext in '' $ac_executable_extensions; do
  24564. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24565. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  24566. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24567. + break 2
  24568. + fi
  24569. +done
  24570. + done
  24571. +IFS=$as_save_IFS
  24572. +
  24573. +fi
  24574. +fi
  24575. +OTOOL=$ac_cv_prog_OTOOL
  24576. +if test -n "$OTOOL"; then
  24577. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  24578. +$as_echo "$OTOOL" >&6; }
  24579. +else
  24580. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24581. +$as_echo "no" >&6; }
  24582. +fi
  24583. +
  24584. +
  24585. +fi
  24586. +if test -z "$ac_cv_prog_OTOOL"; then
  24587. + ac_ct_OTOOL=$OTOOL
  24588. + # Extract the first word of "otool", so it can be a program name with args.
  24589. +set dummy otool; ac_word=$2
  24590. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24591. +$as_echo_n "checking for $ac_word... " >&6; }
  24592. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  24593. + $as_echo_n "(cached) " >&6
  24594. +else
  24595. + if test -n "$ac_ct_OTOOL"; then
  24596. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  24597. +else
  24598. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24599. +for as_dir in $PATH
  24600. +do
  24601. + IFS=$as_save_IFS
  24602. + test -z "$as_dir" && as_dir=.
  24603. + for ac_exec_ext in '' $ac_executable_extensions; do
  24604. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24605. + ac_cv_prog_ac_ct_OTOOL="otool"
  24606. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24607. + break 2
  24608. + fi
  24609. +done
  24610. + done
  24611. +IFS=$as_save_IFS
  24612. +
  24613. +fi
  24614. +fi
  24615. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  24616. +if test -n "$ac_ct_OTOOL"; then
  24617. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  24618. +$as_echo "$ac_ct_OTOOL" >&6; }
  24619. +else
  24620. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24621. +$as_echo "no" >&6; }
  24622. +fi
  24623. +
  24624. + if test "x$ac_ct_OTOOL" = x; then
  24625. + OTOOL=":"
  24626. + else
  24627. + case $cross_compiling:$ac_tool_warned in
  24628. +yes:)
  24629. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24630. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24631. +ac_tool_warned=yes ;;
  24632. +esac
  24633. + OTOOL=$ac_ct_OTOOL
  24634. + fi
  24635. +else
  24636. + OTOOL="$ac_cv_prog_OTOOL"
  24637. +fi
  24638. +
  24639. + if test -n "$ac_tool_prefix"; then
  24640. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  24641. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  24642. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24643. +$as_echo_n "checking for $ac_word... " >&6; }
  24644. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  24645. + $as_echo_n "(cached) " >&6
  24646. +else
  24647. + if test -n "$OTOOL64"; then
  24648. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  24649. +else
  24650. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24651. +for as_dir in $PATH
  24652. +do
  24653. + IFS=$as_save_IFS
  24654. + test -z "$as_dir" && as_dir=.
  24655. + for ac_exec_ext in '' $ac_executable_extensions; do
  24656. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24657. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  24658. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24659. + break 2
  24660. + fi
  24661. +done
  24662. + done
  24663. +IFS=$as_save_IFS
  24664. +
  24665. +fi
  24666. +fi
  24667. +OTOOL64=$ac_cv_prog_OTOOL64
  24668. +if test -n "$OTOOL64"; then
  24669. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  24670. +$as_echo "$OTOOL64" >&6; }
  24671. +else
  24672. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24673. +$as_echo "no" >&6; }
  24674. +fi
  24675. +
  24676. +
  24677. +fi
  24678. +if test -z "$ac_cv_prog_OTOOL64"; then
  24679. + ac_ct_OTOOL64=$OTOOL64
  24680. + # Extract the first word of "otool64", so it can be a program name with args.
  24681. +set dummy otool64; ac_word=$2
  24682. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24683. +$as_echo_n "checking for $ac_word... " >&6; }
  24684. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  24685. + $as_echo_n "(cached) " >&6
  24686. +else
  24687. + if test -n "$ac_ct_OTOOL64"; then
  24688. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  24689. +else
  24690. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24691. +for as_dir in $PATH
  24692. +do
  24693. + IFS=$as_save_IFS
  24694. + test -z "$as_dir" && as_dir=.
  24695. + for ac_exec_ext in '' $ac_executable_extensions; do
  24696. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24697. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  24698. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24699. + break 2
  24700. + fi
  24701. +done
  24702. + done
  24703. +IFS=$as_save_IFS
  24704. +
  24705. +fi
  24706. +fi
  24707. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  24708. +if test -n "$ac_ct_OTOOL64"; then
  24709. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  24710. +$as_echo "$ac_ct_OTOOL64" >&6; }
  24711. +else
  24712. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24713. +$as_echo "no" >&6; }
  24714. +fi
  24715. +
  24716. + if test "x$ac_ct_OTOOL64" = x; then
  24717. + OTOOL64=":"
  24718. + else
  24719. + case $cross_compiling:$ac_tool_warned in
  24720. +yes:)
  24721. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24722. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24723. +ac_tool_warned=yes ;;
  24724. +esac
  24725. + OTOOL64=$ac_ct_OTOOL64
  24726. + fi
  24727. +else
  24728. + OTOOL64="$ac_cv_prog_OTOOL64"
  24729. +fi
  24730. +
  24731. +
  24732. +
  24733. +
  24734. +
  24735. +
  24736. +
  24737. +
  24738. +
  24739. +
  24740. +
  24741. +
  24742. +
  24743. +
  24744. +
  24745. +
  24746. +
  24747. +
  24748. +
  24749. +
  24750. +
  24751. +
  24752. +
  24753. +
  24754. +
  24755. +
  24756. +
  24757. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  24758. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  24759. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  24760. + $as_echo_n "(cached) " >&6
  24761. +else
  24762. + lt_cv_apple_cc_single_mod=no
  24763. + if test -z "${LT_MULTI_MODULE}"; then
  24764. + # By default we will add the -single_module flag. You can override
  24765. + # by either setting the environment variable LT_MULTI_MODULE
  24766. + # non-empty at configure time, or by adding -multi_module to the
  24767. + # link flags.
  24768. + rm -rf libconftest.dylib*
  24769. + echo "int foo(void){return 1;}" > conftest.c
  24770. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  24771. +-dynamiclib -Wl,-single_module conftest.c" >&5
  24772. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  24773. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  24774. + _lt_result=$?
  24775. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  24776. + lt_cv_apple_cc_single_mod=yes
  24777. + else
  24778. + cat conftest.err >&5
  24779. + fi
  24780. + rm -rf libconftest.dylib*
  24781. + rm -f conftest.*
  24782. + fi
  24783. +fi
  24784. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  24785. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  24786. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  24787. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  24788. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  24789. + $as_echo_n "(cached) " >&6
  24790. +else
  24791. + lt_cv_ld_exported_symbols_list=no
  24792. + save_LDFLAGS=$LDFLAGS
  24793. + echo "_main" > conftest.sym
  24794. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  24795. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24796. +/* end confdefs.h. */
  24797. +
  24798. +int
  24799. +main ()
  24800. +{
  24801. +
  24802. + ;
  24803. + return 0;
  24804. +}
  24805. +_ACEOF
  24806. +if ac_fn_c_try_link "$LINENO"; then :
  24807. + lt_cv_ld_exported_symbols_list=yes
  24808. +else
  24809. + lt_cv_ld_exported_symbols_list=no
  24810. +fi
  24811. +rm -f core conftest.err conftest.$ac_objext \
  24812. + conftest$ac_exeext conftest.$ac_ext
  24813. + LDFLAGS="$save_LDFLAGS"
  24814. +
  24815. +fi
  24816. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  24817. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  24818. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  24819. +$as_echo_n "checking for -force_load linker flag... " >&6; }
  24820. +if test "${lt_cv_ld_force_load+set}" = set; then :
  24821. + $as_echo_n "(cached) " >&6
  24822. +else
  24823. + lt_cv_ld_force_load=no
  24824. + cat > conftest.c << _LT_EOF
  24825. +int forced_loaded() { return 2;}
  24826. +_LT_EOF
  24827. + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  24828. + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  24829. + echo "$AR cru libconftest.a conftest.o" >&5
  24830. + $AR cru libconftest.a conftest.o 2>&5
  24831. + cat > conftest.c << _LT_EOF
  24832. +int main() { return 0;}
  24833. +_LT_EOF
  24834. + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  24835. + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  24836. + _lt_result=$?
  24837. + if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  24838. + lt_cv_ld_force_load=yes
  24839. + else
  24840. + cat conftest.err >&5
  24841. + fi
  24842. + rm -f conftest.err libconftest.a conftest conftest.c
  24843. + rm -rf conftest.dSYM
  24844. +
  24845. +fi
  24846. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  24847. +$as_echo "$lt_cv_ld_force_load" >&6; }
  24848. + case $host_os in
  24849. + rhapsody* | darwin1.[012])
  24850. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  24851. + darwin1.*)
  24852. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  24853. + darwin*) # darwin 5.x on
  24854. + # if running on 10.5 or later, the deployment target defaults
  24855. + # to the OS version, if on x86, and 10.4, the deployment
  24856. + # target defaults to 10.4. Don't you love it?
  24857. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  24858. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  24859. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  24860. + 10.[012]*)
  24861. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  24862. + 10.*)
  24863. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  24864. + esac
  24865. + ;;
  24866. + esac
  24867. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  24868. + _lt_dar_single_mod='$single_module'
  24869. + fi
  24870. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  24871. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  24872. + else
  24873. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  24874. + fi
  24875. + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  24876. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  24877. + else
  24878. + _lt_dsymutil=
  24879. + fi
  24880. + ;;
  24881. + esac
  24882. +
  24883. +for ac_header in dlfcn.h
  24884. +do :
  24885. + ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
  24886. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  24887. + cat >>confdefs.h <<_ACEOF
  24888. +#define HAVE_DLFCN_H 1
  24889. +_ACEOF
  24890. +
  24891. +fi
  24892. +done
  24893. +
  24894. +
  24895. +
  24896. +
  24897. +
  24898. +# Set options
  24899. +
  24900. +
  24901. +
  24902. + enable_dlopen=no
  24903. +
  24904. +
  24905. + enable_win32_dll=no
  24906. +
  24907. +
  24908. + # Check whether --enable-shared was given.
  24909. +if test "${enable_shared+set}" = set; then :
  24910. + enableval=$enable_shared; p=${PACKAGE-default}
  24911. + case $enableval in
  24912. + yes) enable_shared=yes ;;
  24913. + no) enable_shared=no ;;
  24914. + *)
  24915. + enable_shared=no
  24916. + # Look at the argument we got. We use all the common list separators.
  24917. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  24918. + for pkg in $enableval; do
  24919. + IFS="$lt_save_ifs"
  24920. + if test "X$pkg" = "X$p"; then
  24921. + enable_shared=yes
  24922. + fi
  24923. + done
  24924. + IFS="$lt_save_ifs"
  24925. + ;;
  24926. + esac
  24927. +else
  24928. + enable_shared=yes
  24929. +fi
  24930. +
  24931. +
  24932. +
  24933. +
  24934. +
  24935. +
  24936. +
  24937. +
  24938. +
  24939. + # Check whether --enable-static was given.
  24940. +if test "${enable_static+set}" = set; then :
  24941. + enableval=$enable_static; p=${PACKAGE-default}
  24942. + case $enableval in
  24943. + yes) enable_static=yes ;;
  24944. + no) enable_static=no ;;
  24945. + *)
  24946. + enable_static=no
  24947. + # Look at the argument we got. We use all the common list separators.
  24948. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  24949. + for pkg in $enableval; do
  24950. + IFS="$lt_save_ifs"
  24951. + if test "X$pkg" = "X$p"; then
  24952. + enable_static=yes
  24953. + fi
  24954. + done
  24955. + IFS="$lt_save_ifs"
  24956. + ;;
  24957. + esac
  24958. +else
  24959. + enable_static=yes
  24960. +fi
  24961. +
  24962. +
  24963. +
  24964. +
  24965. +
  24966. +
  24967. +
  24968. +
  24969. +
  24970. +
  24971. +# Check whether --with-pic was given.
  24972. +if test "${with_pic+set}" = set; then :
  24973. + withval=$with_pic; pic_mode="$withval"
  24974. +else
  24975. + pic_mode=default
  24976. +fi
  24977. +
  24978. +
  24979. +test -z "$pic_mode" && pic_mode=default
  24980. +
  24981. +
  24982. +
  24983. +
  24984. +
  24985. +
  24986. +
  24987. + # Check whether --enable-fast-install was given.
  24988. +if test "${enable_fast_install+set}" = set; then :
  24989. + enableval=$enable_fast_install; p=${PACKAGE-default}
  24990. + case $enableval in
  24991. + yes) enable_fast_install=yes ;;
  24992. + no) enable_fast_install=no ;;
  24993. + *)
  24994. + enable_fast_install=no
  24995. + # Look at the argument we got. We use all the common list separators.
  24996. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  24997. + for pkg in $enableval; do
  24998. + IFS="$lt_save_ifs"
  24999. + if test "X$pkg" = "X$p"; then
  25000. + enable_fast_install=yes
  25001. + fi
  25002. + done
  25003. + IFS="$lt_save_ifs"
  25004. + ;;
  25005. + esac
  25006. +else
  25007. + enable_fast_install=yes
  25008. +fi
  25009. +
  25010. +
  25011. +
  25012. +
  25013. +
  25014. +
  25015. +
  25016. +
  25017. +
  25018. +
  25019. +
  25020. +# This can be used to rebuild libtool when needed
  25021. +LIBTOOL_DEPS="$ltmain"
  25022. +
  25023. +# Always use our own libtool.
  25024. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  25025. +
  25026. +
  25027. +
  25028. +
  25029. +
  25030. +
  25031. +
  25032. +
  25033. +
  25034. +
  25035. +
  25036. +
  25037. +
  25038. +
  25039. +
  25040. +
  25041. +
  25042. +
  25043. +
  25044. +
  25045. +
  25046. +
  25047. +
  25048. +
  25049. +
  25050. +
  25051. +test -z "$LN_S" && LN_S="ln -s"
  25052. +
  25053. +
  25054. +
  25055. +
  25056. +
  25057. +
  25058. +
  25059. +
  25060. +
  25061. +
  25062. +
  25063. +
  25064. +
  25065. +
  25066. +if test -n "${ZSH_VERSION+set}" ; then
  25067. + setopt NO_GLOB_SUBST
  25068. +fi
  25069. +
  25070. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  25071. +$as_echo_n "checking for objdir... " >&6; }
  25072. +if test "${lt_cv_objdir+set}" = set; then :
  25073. + $as_echo_n "(cached) " >&6
  25074. +else
  25075. + rm -f .libs 2>/dev/null
  25076. +mkdir .libs 2>/dev/null
  25077. +if test -d .libs; then
  25078. + lt_cv_objdir=.libs
  25079. +else
  25080. + # MS-DOS does not allow filenames that begin with a dot.
  25081. + lt_cv_objdir=_libs
  25082. +fi
  25083. +rmdir .libs 2>/dev/null
  25084. +fi
  25085. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  25086. +$as_echo "$lt_cv_objdir" >&6; }
  25087. +objdir=$lt_cv_objdir
  25088. +
  25089. +
  25090. +
  25091. +
  25092. +
  25093. +cat >>confdefs.h <<_ACEOF
  25094. +#define LT_OBJDIR "$lt_cv_objdir/"
  25095. +_ACEOF
  25096. +
  25097. +
  25098. +
  25099. +
  25100. +case $host_os in
  25101. +aix3*)
  25102. + # AIX sometimes has problems with the GCC collect2 program. For some
  25103. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  25104. + # vanish in a puff of smoke.
  25105. + if test "X${COLLECT_NAMES+set}" != Xset; then
  25106. + COLLECT_NAMES=
  25107. + export COLLECT_NAMES
  25108. + fi
  25109. + ;;
  25110. +esac
  25111. +
  25112. +# Global variables:
  25113. +ofile=libtool
  25114. +can_build_shared=yes
  25115. +
  25116. +# All known linkers require a `.a' archive for static linking (except MSVC,
  25117. +# which needs '.lib').
  25118. +libext=a
  25119. +
  25120. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  25121. +
  25122. +old_CC="$CC"
  25123. +old_CFLAGS="$CFLAGS"
  25124. +
  25125. +# Set sane defaults for various variables
  25126. +test -z "$CC" && CC=cc
  25127. +test -z "$LTCC" && LTCC=$CC
  25128. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  25129. +test -z "$LD" && LD=ld
  25130. +test -z "$ac_objext" && ac_objext=o
  25131. +
  25132. +for cc_temp in $compiler""; do
  25133. + case $cc_temp in
  25134. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25135. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25136. + \-*) ;;
  25137. + *) break;;
  25138. + esac
  25139. +done
  25140. +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  25141. +
  25142. +
  25143. +# Only perform the check for file, if the check method requires it
  25144. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  25145. +case $deplibs_check_method in
  25146. +file_magic*)
  25147. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  25148. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  25149. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  25150. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  25151. + $as_echo_n "(cached) " >&6
  25152. +else
  25153. + case $MAGIC_CMD in
  25154. +[\\/*] | ?:[\\/]*)
  25155. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  25156. + ;;
  25157. +*)
  25158. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  25159. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  25160. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  25161. + for ac_dir in $ac_dummy; do
  25162. + IFS="$lt_save_ifs"
  25163. + test -z "$ac_dir" && ac_dir=.
  25164. + if test -f $ac_dir/${ac_tool_prefix}file; then
  25165. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  25166. + if test -n "$file_magic_test_file"; then
  25167. + case $deplibs_check_method in
  25168. + "file_magic "*)
  25169. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  25170. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25171. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  25172. + $EGREP "$file_magic_regex" > /dev/null; then
  25173. + :
  25174. + else
  25175. + cat <<_LT_EOF 1>&2
  25176. +
  25177. +*** Warning: the command libtool uses to detect shared libraries,
  25178. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  25179. +*** The result is that libtool may fail to recognize shared libraries
  25180. +*** as such. This will affect the creation of libtool libraries that
  25181. +*** depend on shared libraries, but programs linked with such libtool
  25182. +*** libraries will work regardless of this problem. Nevertheless, you
  25183. +*** may want to report the problem to your system manager and/or to
  25184. +*** bug-libtool@gnu.org
  25185. +
  25186. +_LT_EOF
  25187. + fi ;;
  25188. + esac
  25189. + fi
  25190. + break
  25191. + fi
  25192. + done
  25193. + IFS="$lt_save_ifs"
  25194. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  25195. + ;;
  25196. +esac
  25197. +fi
  25198. +
  25199. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25200. +if test -n "$MAGIC_CMD"; then
  25201. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  25202. +$as_echo "$MAGIC_CMD" >&6; }
  25203. +else
  25204. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25205. +$as_echo "no" >&6; }
  25206. +fi
  25207. +
  25208. +
  25209. +
  25210. +
  25211. +
  25212. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  25213. + if test -n "$ac_tool_prefix"; then
  25214. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  25215. +$as_echo_n "checking for file... " >&6; }
  25216. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  25217. + $as_echo_n "(cached) " >&6
  25218. +else
  25219. + case $MAGIC_CMD in
  25220. +[\\/*] | ?:[\\/]*)
  25221. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  25222. + ;;
  25223. +*)
  25224. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  25225. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  25226. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  25227. + for ac_dir in $ac_dummy; do
  25228. + IFS="$lt_save_ifs"
  25229. + test -z "$ac_dir" && ac_dir=.
  25230. + if test -f $ac_dir/file; then
  25231. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  25232. + if test -n "$file_magic_test_file"; then
  25233. + case $deplibs_check_method in
  25234. + "file_magic "*)
  25235. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  25236. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25237. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  25238. + $EGREP "$file_magic_regex" > /dev/null; then
  25239. + :
  25240. + else
  25241. + cat <<_LT_EOF 1>&2
  25242. +
  25243. +*** Warning: the command libtool uses to detect shared libraries,
  25244. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  25245. +*** The result is that libtool may fail to recognize shared libraries
  25246. +*** as such. This will affect the creation of libtool libraries that
  25247. +*** depend on shared libraries, but programs linked with such libtool
  25248. +*** libraries will work regardless of this problem. Nevertheless, you
  25249. +*** may want to report the problem to your system manager and/or to
  25250. +*** bug-libtool@gnu.org
  25251. +
  25252. +_LT_EOF
  25253. + fi ;;
  25254. + esac
  25255. + fi
  25256. + break
  25257. + fi
  25258. + done
  25259. + IFS="$lt_save_ifs"
  25260. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  25261. + ;;
  25262. +esac
  25263. +fi
  25264. +
  25265. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25266. +if test -n "$MAGIC_CMD"; then
  25267. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  25268. +$as_echo "$MAGIC_CMD" >&6; }
  25269. +else
  25270. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25271. +$as_echo "no" >&6; }
  25272. +fi
  25273. +
  25274. +
  25275. + else
  25276. + MAGIC_CMD=:
  25277. + fi
  25278. +fi
  25279. +
  25280. + fi
  25281. + ;;
  25282. +esac
  25283. +
  25284. +# Use C for the default configuration in the libtool script
  25285. +
  25286. +lt_save_CC="$CC"
  25287. +ac_ext=c
  25288. +ac_cpp='$CPP $CPPFLAGS'
  25289. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25290. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25291. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25292. +
  25293. +
  25294. +# Source file extension for C test sources.
  25295. +ac_ext=c
  25296. +
  25297. +# Object file extension for compiled C test sources.
  25298. +objext=o
  25299. +objext=$objext
  25300. +
  25301. +# Code to be used in simple compile tests
  25302. +lt_simple_compile_test_code="int some_variable = 0;"
  25303. +
  25304. +# Code to be used in simple link tests
  25305. +lt_simple_link_test_code='int main(){return(0);}'
  25306. +
  25307. +
  25308. +
  25309. +
  25310. +
  25311. +
  25312. +
  25313. +# If no C compiler was specified, use CC.
  25314. +LTCC=${LTCC-"$CC"}
  25315. +
  25316. +# If no C compiler flags were specified, use CFLAGS.
  25317. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  25318. +
  25319. +# Allow CC to be a program name with arguments.
  25320. +compiler=$CC
  25321. +
  25322. +# Save the default compiler, since it gets overwritten when the other
  25323. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  25324. +compiler_DEFAULT=$CC
  25325. +
  25326. +# save warnings/boilerplate of simple test code
  25327. +ac_outfile=conftest.$ac_objext
  25328. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  25329. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  25330. +_lt_compiler_boilerplate=`cat conftest.err`
  25331. +$RM conftest*
  25332. +
  25333. +ac_outfile=conftest.$ac_objext
  25334. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  25335. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  25336. +_lt_linker_boilerplate=`cat conftest.err`
  25337. +$RM -r conftest*
  25338. +
  25339. +
  25340. +## CAVEAT EMPTOR:
  25341. +## There is no encapsulation within the following macros, do not change
  25342. +## the running order or otherwise move them around unless you know exactly
  25343. +## what you are doing...
  25344. +if test -n "$compiler"; then
  25345. +
  25346. +lt_prog_compiler_no_builtin_flag=
  25347. +
  25348. +if test "$GCC" = yes; then
  25349. + case $cc_basename in
  25350. + nvcc*)
  25351. + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  25352. + *)
  25353. + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  25354. + esac
  25355. +
  25356. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  25357. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  25358. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  25359. + $as_echo_n "(cached) " >&6
  25360. +else
  25361. + lt_cv_prog_compiler_rtti_exceptions=no
  25362. + ac_outfile=conftest.$ac_objext
  25363. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25364. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  25365. + # Insert the option either (1) after the last *FLAGS variable, or
  25366. + # (2) before a word containing "conftest.", or (3) at the end.
  25367. + # Note that $ac_compile itself does not contain backslashes and begins
  25368. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  25369. + # The option is referenced via a variable to avoid confusing sed.
  25370. + lt_compile=`echo "$ac_compile" | $SED \
  25371. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25372. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25373. + -e 's:$: $lt_compiler_flag:'`
  25374. + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  25375. + (eval "$lt_compile" 2>conftest.err)
  25376. + ac_status=$?
  25377. + cat conftest.err >&5
  25378. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25379. + if (exit $ac_status) && test -s "$ac_outfile"; then
  25380. + # The compiler can only warn and ignore the option if not recognized
  25381. + # So say no if there are warnings other than the usual output.
  25382. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  25383. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  25384. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  25385. + lt_cv_prog_compiler_rtti_exceptions=yes
  25386. + fi
  25387. + fi
  25388. + $RM conftest*
  25389. +
  25390. +fi
  25391. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  25392. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  25393. +
  25394. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  25395. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  25396. +else
  25397. + :
  25398. +fi
  25399. +
  25400. +fi
  25401. +
  25402. +
  25403. +
  25404. +
  25405. +
  25406. +
  25407. + lt_prog_compiler_wl=
  25408. +lt_prog_compiler_pic=
  25409. +lt_prog_compiler_static=
  25410. +
  25411. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  25412. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  25413. +
  25414. + if test "$GCC" = yes; then
  25415. + lt_prog_compiler_wl='-Wl,'
  25416. + lt_prog_compiler_static='-static'
  25417. +
  25418. + case $host_os in
  25419. + aix*)
  25420. + # All AIX code is PIC.
  25421. + if test "$host_cpu" = ia64; then
  25422. + # AIX 5 now supports IA64 processor
  25423. + lt_prog_compiler_static='-Bstatic'
  25424. + fi
  25425. + lt_prog_compiler_pic='-fPIC'
  25426. + ;;
  25427. +
  25428. + amigaos*)
  25429. + case $host_cpu in
  25430. + powerpc)
  25431. + # see comment about AmigaOS4 .so support
  25432. + lt_prog_compiler_pic='-fPIC'
  25433. + ;;
  25434. + m68k)
  25435. + # FIXME: we need at least 68020 code to build shared libraries, but
  25436. + # adding the `-m68020' flag to GCC prevents building anything better,
  25437. + # like `-m68040'.
  25438. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  25439. + ;;
  25440. + esac
  25441. + ;;
  25442. +
  25443. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  25444. + # PIC is the default for these OSes.
  25445. + ;;
  25446. +
  25447. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  25448. + # This hack is so that the source file can tell whether it is being
  25449. + # built for inclusion in a dll (and should export symbols for example).
  25450. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  25451. + # (--disable-auto-import) libraries
  25452. + lt_prog_compiler_pic='-DDLL_EXPORT'
  25453. + ;;
  25454. +
  25455. + darwin* | rhapsody*)
  25456. + # PIC is the default on this platform
  25457. + # Common symbols not allowed in MH_DYLIB files
  25458. + lt_prog_compiler_pic='-fno-common'
  25459. + ;;
  25460. +
  25461. + haiku*)
  25462. + # PIC is the default for Haiku.
  25463. + # The "-static" flag exists, but is broken.
  25464. + lt_prog_compiler_static=
  25465. + ;;
  25466. +
  25467. + hpux*)
  25468. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  25469. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  25470. + # sets the default TLS model and affects inlining.
  25471. + case $host_cpu in
  25472. + hppa*64*)
  25473. + # +Z the default
  25474. + ;;
  25475. + *)
  25476. + lt_prog_compiler_pic='-fPIC'
  25477. + ;;
  25478. + esac
  25479. + ;;
  25480. +
  25481. + interix[3-9]*)
  25482. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  25483. + # Instead, we relocate shared libraries at runtime.
  25484. + ;;
  25485. +
  25486. + msdosdjgpp*)
  25487. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  25488. + # on systems that don't support them.
  25489. + lt_prog_compiler_can_build_shared=no
  25490. + enable_shared=no
  25491. + ;;
  25492. +
  25493. + *nto* | *qnx*)
  25494. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  25495. + # it will coredump.
  25496. + lt_prog_compiler_pic='-fPIC -shared'
  25497. + ;;
  25498. +
  25499. + sysv4*MP*)
  25500. + if test -d /usr/nec; then
  25501. + lt_prog_compiler_pic=-Kconform_pic
  25502. + fi
  25503. + ;;
  25504. +
  25505. + *)
  25506. + lt_prog_compiler_pic='-fPIC'
  25507. + ;;
  25508. + esac
  25509. +
  25510. + case $cc_basename in
  25511. + nvcc*) # Cuda Compiler Driver 2.2
  25512. + lt_prog_compiler_wl='-Xlinker '
  25513. + lt_prog_compiler_pic='-Xcompiler -fPIC'
  25514. + ;;
  25515. + esac
  25516. + else
  25517. + # PORTME Check for flag to pass linker flags through the system compiler.
  25518. + case $host_os in
  25519. + aix*)
  25520. + lt_prog_compiler_wl='-Wl,'
  25521. + if test "$host_cpu" = ia64; then
  25522. + # AIX 5 now supports IA64 processor
  25523. + lt_prog_compiler_static='-Bstatic'
  25524. + else
  25525. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  25526. + fi
  25527. + ;;
  25528. +
  25529. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  25530. + # This hack is so that the source file can tell whether it is being
  25531. + # built for inclusion in a dll (and should export symbols for example).
  25532. + lt_prog_compiler_pic='-DDLL_EXPORT'
  25533. + ;;
  25534. +
  25535. + hpux9* | hpux10* | hpux11*)
  25536. + lt_prog_compiler_wl='-Wl,'
  25537. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  25538. + # not for PA HP-UX.
  25539. + case $host_cpu in
  25540. + hppa*64*|ia64*)
  25541. + # +Z the default
  25542. + ;;
  25543. + *)
  25544. + lt_prog_compiler_pic='+Z'
  25545. + ;;
  25546. + esac
  25547. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  25548. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  25549. + ;;
  25550. +
  25551. + irix5* | irix6* | nonstopux*)
  25552. + lt_prog_compiler_wl='-Wl,'
  25553. + # PIC (with -KPIC) is the default.
  25554. + lt_prog_compiler_static='-non_shared'
  25555. + ;;
  25556. +
  25557. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  25558. + case $cc_basename in
  25559. + # old Intel for x86_64 which still supported -KPIC.
  25560. + ecc*)
  25561. + lt_prog_compiler_wl='-Wl,'
  25562. + lt_prog_compiler_pic='-KPIC'
  25563. + lt_prog_compiler_static='-static'
  25564. + ;;
  25565. + # icc used to be incompatible with GCC.
  25566. + # ICC 10 doesn't accept -KPIC any more.
  25567. + icc* | ifort*)
  25568. + lt_prog_compiler_wl='-Wl,'
  25569. + lt_prog_compiler_pic='-fPIC'
  25570. + lt_prog_compiler_static='-static'
  25571. + ;;
  25572. + # Lahey Fortran 8.1.
  25573. + lf95*)
  25574. + lt_prog_compiler_wl='-Wl,'
  25575. + lt_prog_compiler_pic='--shared'
  25576. + lt_prog_compiler_static='--static'
  25577. + ;;
  25578. + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  25579. + # Portland Group compilers (*not* the Pentium gcc compiler,
  25580. + # which looks to be a dead project)
  25581. + lt_prog_compiler_wl='-Wl,'
  25582. + lt_prog_compiler_pic='-fpic'
  25583. + lt_prog_compiler_static='-Bstatic'
  25584. + ;;
  25585. + ccc*)
  25586. + lt_prog_compiler_wl='-Wl,'
  25587. + # All Alpha code is PIC.
  25588. + lt_prog_compiler_static='-non_shared'
  25589. + ;;
  25590. + xl* | bgxl* | bgf* | mpixl*)
  25591. + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  25592. + lt_prog_compiler_wl='-Wl,'
  25593. + lt_prog_compiler_pic='-qpic'
  25594. + lt_prog_compiler_static='-qstaticlink'
  25595. + ;;
  25596. + *)
  25597. + case `$CC -V 2>&1 | sed 5q` in
  25598. + *Sun\ F* | *Sun*Fortran*)
  25599. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  25600. + lt_prog_compiler_pic='-KPIC'
  25601. + lt_prog_compiler_static='-Bstatic'
  25602. + lt_prog_compiler_wl=''
  25603. + ;;
  25604. + *Sun\ C*)
  25605. + # Sun C 5.9
  25606. + lt_prog_compiler_pic='-KPIC'
  25607. + lt_prog_compiler_static='-Bstatic'
  25608. + lt_prog_compiler_wl='-Wl,'
  25609. + ;;
  25610. + esac
  25611. + ;;
  25612. + esac
  25613. + ;;
  25614. +
  25615. + newsos6)
  25616. + lt_prog_compiler_pic='-KPIC'
  25617. + lt_prog_compiler_static='-Bstatic'
  25618. + ;;
  25619. +
  25620. + *nto* | *qnx*)
  25621. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  25622. + # it will coredump.
  25623. + lt_prog_compiler_pic='-fPIC -shared'
  25624. + ;;
  25625. +
  25626. + osf3* | osf4* | osf5*)
  25627. + lt_prog_compiler_wl='-Wl,'
  25628. + # All OSF/1 code is PIC.
  25629. + lt_prog_compiler_static='-non_shared'
  25630. + ;;
  25631. +
  25632. + rdos*)
  25633. + lt_prog_compiler_static='-non_shared'
  25634. + ;;
  25635. +
  25636. + solaris*)
  25637. + lt_prog_compiler_pic='-KPIC'
  25638. + lt_prog_compiler_static='-Bstatic'
  25639. + case $cc_basename in
  25640. + f77* | f90* | f95*)
  25641. + lt_prog_compiler_wl='-Qoption ld ';;
  25642. + *)
  25643. + lt_prog_compiler_wl='-Wl,';;
  25644. + esac
  25645. + ;;
  25646. +
  25647. + sunos4*)
  25648. + lt_prog_compiler_wl='-Qoption ld '
  25649. + lt_prog_compiler_pic='-PIC'
  25650. + lt_prog_compiler_static='-Bstatic'
  25651. + ;;
  25652. +
  25653. + sysv4 | sysv4.2uw2* | sysv4.3*)
  25654. + lt_prog_compiler_wl='-Wl,'
  25655. + lt_prog_compiler_pic='-KPIC'
  25656. + lt_prog_compiler_static='-Bstatic'
  25657. + ;;
  25658. +
  25659. + sysv4*MP*)
  25660. + if test -d /usr/nec ;then
  25661. + lt_prog_compiler_pic='-Kconform_pic'
  25662. + lt_prog_compiler_static='-Bstatic'
  25663. + fi
  25664. + ;;
  25665. +
  25666. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  25667. + lt_prog_compiler_wl='-Wl,'
  25668. + lt_prog_compiler_pic='-KPIC'
  25669. + lt_prog_compiler_static='-Bstatic'
  25670. + ;;
  25671. +
  25672. + unicos*)
  25673. + lt_prog_compiler_wl='-Wl,'
  25674. + lt_prog_compiler_can_build_shared=no
  25675. + ;;
  25676. +
  25677. + uts4*)
  25678. + lt_prog_compiler_pic='-pic'
  25679. + lt_prog_compiler_static='-Bstatic'
  25680. + ;;
  25681. +
  25682. + *)
  25683. + lt_prog_compiler_can_build_shared=no
  25684. + ;;
  25685. + esac
  25686. + fi
  25687. +
  25688. +case $host_os in
  25689. + # For platforms which do not support PIC, -DPIC is meaningless:
  25690. + *djgpp*)
  25691. + lt_prog_compiler_pic=
  25692. + ;;
  25693. + *)
  25694. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  25695. + ;;
  25696. +esac
  25697. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  25698. +$as_echo "$lt_prog_compiler_pic" >&6; }
  25699. +
  25700. +
  25701. +
  25702. +
  25703. +
  25704. +
  25705. +#
  25706. +# Check to make sure the PIC flag actually works.
  25707. +#
  25708. +if test -n "$lt_prog_compiler_pic"; then
  25709. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  25710. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  25711. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  25712. + $as_echo_n "(cached) " >&6
  25713. +else
  25714. + lt_cv_prog_compiler_pic_works=no
  25715. + ac_outfile=conftest.$ac_objext
  25716. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25717. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  25718. + # Insert the option either (1) after the last *FLAGS variable, or
  25719. + # (2) before a word containing "conftest.", or (3) at the end.
  25720. + # Note that $ac_compile itself does not contain backslashes and begins
  25721. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  25722. + # The option is referenced via a variable to avoid confusing sed.
  25723. + lt_compile=`echo "$ac_compile" | $SED \
  25724. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25725. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25726. + -e 's:$: $lt_compiler_flag:'`
  25727. + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  25728. + (eval "$lt_compile" 2>conftest.err)
  25729. + ac_status=$?
  25730. + cat conftest.err >&5
  25731. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25732. + if (exit $ac_status) && test -s "$ac_outfile"; then
  25733. + # The compiler can only warn and ignore the option if not recognized
  25734. + # So say no if there are warnings other than the usual output.
  25735. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  25736. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  25737. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  25738. + lt_cv_prog_compiler_pic_works=yes
  25739. + fi
  25740. + fi
  25741. + $RM conftest*
  25742. +
  25743. +fi
  25744. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  25745. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  25746. +
  25747. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  25748. + case $lt_prog_compiler_pic in
  25749. + "" | " "*) ;;
  25750. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  25751. + esac
  25752. +else
  25753. + lt_prog_compiler_pic=
  25754. + lt_prog_compiler_can_build_shared=no
  25755. +fi
  25756. +
  25757. +fi
  25758. +
  25759. +
  25760. +
  25761. +
  25762. +
  25763. +
  25764. +#
  25765. +# Check to make sure the static flag actually works.
  25766. +#
  25767. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  25768. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  25769. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  25770. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  25771. + $as_echo_n "(cached) " >&6
  25772. +else
  25773. + lt_cv_prog_compiler_static_works=no
  25774. + save_LDFLAGS="$LDFLAGS"
  25775. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  25776. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  25777. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  25778. + # The linker can only warn and ignore the option if not recognized
  25779. + # So say no if there are warnings
  25780. + if test -s conftest.err; then
  25781. + # Append any errors to the config.log.
  25782. + cat conftest.err 1>&5
  25783. + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  25784. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  25785. + if diff conftest.exp conftest.er2 >/dev/null; then
  25786. + lt_cv_prog_compiler_static_works=yes
  25787. + fi
  25788. + else
  25789. + lt_cv_prog_compiler_static_works=yes
  25790. + fi
  25791. + fi
  25792. + $RM -r conftest*
  25793. + LDFLAGS="$save_LDFLAGS"
  25794. +
  25795. +fi
  25796. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  25797. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  25798. +
  25799. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  25800. + :
  25801. +else
  25802. + lt_prog_compiler_static=
  25803. +fi
  25804. +
  25805. +
  25806. +
  25807. +
  25808. +
  25809. +
  25810. +
  25811. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  25812. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  25813. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  25814. + $as_echo_n "(cached) " >&6
  25815. +else
  25816. + lt_cv_prog_compiler_c_o=no
  25817. + $RM -r conftest 2>/dev/null
  25818. + mkdir conftest
  25819. + cd conftest
  25820. + mkdir out
  25821. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25822. +
  25823. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  25824. + # Insert the option either (1) after the last *FLAGS variable, or
  25825. + # (2) before a word containing "conftest.", or (3) at the end.
  25826. + # Note that $ac_compile itself does not contain backslashes and begins
  25827. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  25828. + lt_compile=`echo "$ac_compile" | $SED \
  25829. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25830. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25831. + -e 's:$: $lt_compiler_flag:'`
  25832. + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  25833. + (eval "$lt_compile" 2>out/conftest.err)
  25834. + ac_status=$?
  25835. + cat out/conftest.err >&5
  25836. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25837. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  25838. + then
  25839. + # The compiler can only warn and ignore the option if not recognized
  25840. + # So say no if there are warnings
  25841. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  25842. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  25843. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  25844. + lt_cv_prog_compiler_c_o=yes
  25845. + fi
  25846. + fi
  25847. + chmod u+w . 2>&5
  25848. + $RM conftest*
  25849. + # SGI C++ compiler will create directory out/ii_files/ for
  25850. + # template instantiation
  25851. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  25852. + $RM out/* && rmdir out
  25853. + cd ..
  25854. + $RM -r conftest
  25855. + $RM conftest*
  25856. +
  25857. +fi
  25858. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  25859. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  25860. +
  25861. +
  25862. +
  25863. +
  25864. +
  25865. +
  25866. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  25867. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  25868. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  25869. + $as_echo_n "(cached) " >&6
  25870. +else
  25871. + lt_cv_prog_compiler_c_o=no
  25872. + $RM -r conftest 2>/dev/null
  25873. + mkdir conftest
  25874. + cd conftest
  25875. + mkdir out
  25876. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  25877. +
  25878. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  25879. + # Insert the option either (1) after the last *FLAGS variable, or
  25880. + # (2) before a word containing "conftest.", or (3) at the end.
  25881. + # Note that $ac_compile itself does not contain backslashes and begins
  25882. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  25883. + lt_compile=`echo "$ac_compile" | $SED \
  25884. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  25885. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25886. + -e 's:$: $lt_compiler_flag:'`
  25887. + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  25888. + (eval "$lt_compile" 2>out/conftest.err)
  25889. + ac_status=$?
  25890. + cat out/conftest.err >&5
  25891. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25892. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  25893. + then
  25894. + # The compiler can only warn and ignore the option if not recognized
  25895. + # So say no if there are warnings
  25896. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  25897. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  25898. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  25899. + lt_cv_prog_compiler_c_o=yes
  25900. + fi
  25901. + fi
  25902. + chmod u+w . 2>&5
  25903. + $RM conftest*
  25904. + # SGI C++ compiler will create directory out/ii_files/ for
  25905. + # template instantiation
  25906. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  25907. + $RM out/* && rmdir out
  25908. + cd ..
  25909. + $RM -r conftest
  25910. + $RM conftest*
  25911. +
  25912. +fi
  25913. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  25914. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  25915. +
  25916. +
  25917. +
  25918. +
  25919. +hard_links="nottested"
  25920. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  25921. + # do not overwrite the value of need_locks provided by the user
  25922. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  25923. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  25924. + hard_links=yes
  25925. + $RM conftest*
  25926. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  25927. + touch conftest.a
  25928. + ln conftest.a conftest.b 2>&5 || hard_links=no
  25929. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  25930. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  25931. +$as_echo "$hard_links" >&6; }
  25932. + if test "$hard_links" = no; then
  25933. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  25934. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  25935. + need_locks=warn
  25936. + fi
  25937. +else
  25938. + need_locks=no
  25939. +fi
  25940. +
  25941. +
  25942. +
  25943. +
  25944. +
  25945. +
  25946. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  25947. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  25948. +
  25949. + runpath_var=
  25950. + allow_undefined_flag=
  25951. + always_export_symbols=no
  25952. + archive_cmds=
  25953. + archive_expsym_cmds=
  25954. + compiler_needs_object=no
  25955. + enable_shared_with_static_runtimes=no
  25956. + export_dynamic_flag_spec=
  25957. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  25958. + hardcode_automatic=no
  25959. + hardcode_direct=no
  25960. + hardcode_direct_absolute=no
  25961. + hardcode_libdir_flag_spec=
  25962. + hardcode_libdir_flag_spec_ld=
  25963. + hardcode_libdir_separator=
  25964. + hardcode_minus_L=no
  25965. + hardcode_shlibpath_var=unsupported
  25966. + inherit_rpath=no
  25967. + link_all_deplibs=unknown
  25968. + module_cmds=
  25969. + module_expsym_cmds=
  25970. + old_archive_from_new_cmds=
  25971. + old_archive_from_expsyms_cmds=
  25972. + thread_safe_flag_spec=
  25973. + whole_archive_flag_spec=
  25974. + # include_expsyms should be a list of space-separated symbols to be *always*
  25975. + # included in the symbol list
  25976. + include_expsyms=
  25977. + # exclude_expsyms can be an extended regexp of symbols to exclude
  25978. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  25979. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  25980. + # as well as any symbol that contains `d'.
  25981. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  25982. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  25983. + # platforms (ab)use it in PIC code, but their linkers get confused if
  25984. + # the symbol is explicitly referenced. Since portable code cannot
  25985. + # rely on this symbol name, it's probably fine to never include it in
  25986. + # preloaded symbol tables.
  25987. + # Exclude shared library initialization/finalization symbols.
  25988. + extract_expsyms_cmds=
  25989. +
  25990. + case $host_os in
  25991. + cygwin* | mingw* | pw32* | cegcc*)
  25992. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  25993. + # When not using gcc, we currently assume that we are using
  25994. + # Microsoft Visual C++.
  25995. + if test "$GCC" != yes; then
  25996. + with_gnu_ld=no
  25997. + fi
  25998. + ;;
  25999. + interix*)
  26000. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  26001. + with_gnu_ld=yes
  26002. + ;;
  26003. + openbsd*)
  26004. + with_gnu_ld=no
  26005. + ;;
  26006. + esac
  26007. +
  26008. + ld_shlibs=yes
  26009. +
  26010. + # On some targets, GNU ld is compatible enough with the native linker
  26011. + # that we're better off using the native interface for both.
  26012. + lt_use_gnu_ld_interface=no
  26013. + if test "$with_gnu_ld" = yes; then
  26014. + case $host_os in
  26015. + aix*)
  26016. + # The AIX port of GNU ld has always aspired to compatibility
  26017. + # with the native linker. However, as the warning in the GNU ld
  26018. + # block says, versions before 2.19.5* couldn't really create working
  26019. + # shared libraries, regardless of the interface used.
  26020. + case `$LD -v 2>&1` in
  26021. + *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  26022. + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  26023. + *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  26024. + *)
  26025. + lt_use_gnu_ld_interface=yes
  26026. + ;;
  26027. + esac
  26028. + ;;
  26029. + *)
  26030. + lt_use_gnu_ld_interface=yes
  26031. + ;;
  26032. + esac
  26033. + fi
  26034. +
  26035. + if test "$lt_use_gnu_ld_interface" = yes; then
  26036. + # If archive_cmds runs LD, not CC, wlarc should be empty
  26037. + wlarc='${wl}'
  26038. +
  26039. + # Set some defaults for GNU ld with shared library support. These
  26040. + # are reset later if shared libraries are not supported. Putting them
  26041. + # here allows them to be overridden if necessary.
  26042. + runpath_var=LD_RUN_PATH
  26043. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26044. + export_dynamic_flag_spec='${wl}--export-dynamic'
  26045. + # ancient GNU ld didn't support --whole-archive et. al.
  26046. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  26047. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  26048. + else
  26049. + whole_archive_flag_spec=
  26050. + fi
  26051. + supports_anon_versioning=no
  26052. + case `$LD -v 2>&1` in
  26053. + *GNU\ gold*) supports_anon_versioning=yes ;;
  26054. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  26055. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  26056. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  26057. + *\ 2.11.*) ;; # other 2.11 versions
  26058. + *) supports_anon_versioning=yes ;;
  26059. + esac
  26060. +
  26061. + # See if GNU ld supports shared libraries.
  26062. + case $host_os in
  26063. + aix[3-9]*)
  26064. + # On AIX/PPC, the GNU linker is very broken
  26065. + if test "$host_cpu" != ia64; then
  26066. + ld_shlibs=no
  26067. + cat <<_LT_EOF 1>&2
  26068. +
  26069. +*** Warning: the GNU linker, at least up to release 2.19, is reported
  26070. +*** to be unable to reliably create shared libraries on AIX.
  26071. +*** Therefore, libtool is disabling shared libraries support. If you
  26072. +*** really care for shared libraries, you may want to install binutils
  26073. +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  26074. +*** You will then need to restart the configuration process.
  26075. +
  26076. +_LT_EOF
  26077. + fi
  26078. + ;;
  26079. +
  26080. + amigaos*)
  26081. + case $host_cpu in
  26082. + powerpc)
  26083. + # see comment about AmigaOS4 .so support
  26084. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26085. + archive_expsym_cmds=''
  26086. + ;;
  26087. + m68k)
  26088. + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  26089. + hardcode_libdir_flag_spec='-L$libdir'
  26090. + hardcode_minus_L=yes
  26091. + ;;
  26092. + esac
  26093. + ;;
  26094. +
  26095. + beos*)
  26096. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  26097. + allow_undefined_flag=unsupported
  26098. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  26099. + # support --undefined. This deserves some investigation. FIXME
  26100. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26101. + else
  26102. + ld_shlibs=no
  26103. + fi
  26104. + ;;
  26105. +
  26106. + cygwin* | mingw* | pw32* | cegcc*)
  26107. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  26108. + # as there is no search path for DLLs.
  26109. + hardcode_libdir_flag_spec='-L$libdir'
  26110. + export_dynamic_flag_spec='${wl}--export-all-symbols'
  26111. + allow_undefined_flag=unsupported
  26112. + always_export_symbols=no
  26113. + enable_shared_with_static_runtimes=yes
  26114. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  26115. +
  26116. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  26117. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  26118. + # If the export-symbols file already is a .def file (1st line
  26119. + # is EXPORTS), use it as is; otherwise, prepend...
  26120. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  26121. + cp $export_symbols $output_objdir/$soname.def;
  26122. + else
  26123. + echo EXPORTS > $output_objdir/$soname.def;
  26124. + cat $export_symbols >> $output_objdir/$soname.def;
  26125. + fi~
  26126. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  26127. + else
  26128. + ld_shlibs=no
  26129. + fi
  26130. + ;;
  26131. +
  26132. + haiku*)
  26133. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26134. + link_all_deplibs=yes
  26135. + ;;
  26136. +
  26137. + interix[3-9]*)
  26138. + hardcode_direct=no
  26139. + hardcode_shlibpath_var=no
  26140. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  26141. + export_dynamic_flag_spec='${wl}-E'
  26142. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  26143. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  26144. + # default) and relocated if they conflict, which is a slow very memory
  26145. + # consuming and fragmenting process. To avoid this, we pick a random,
  26146. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  26147. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  26148. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  26149. + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  26150. + ;;
  26151. +
  26152. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  26153. + tmp_diet=no
  26154. + if test "$host_os" = linux-dietlibc; then
  26155. + case $cc_basename in
  26156. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  26157. + esac
  26158. + fi
  26159. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  26160. + && test "$tmp_diet" = no
  26161. + then
  26162. + tmp_addflag=
  26163. + tmp_sharedflag='-shared'
  26164. + case $cc_basename,$host_cpu in
  26165. + pgcc*) # Portland Group C compiler
  26166. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  26167. + tmp_addflag=' $pic_flag'
  26168. + ;;
  26169. + pgf77* | pgf90* | pgf95* | pgfortran*)
  26170. + # Portland Group f77 and f90 compilers
  26171. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  26172. + tmp_addflag=' $pic_flag -Mnomain' ;;
  26173. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  26174. + tmp_addflag=' -i_dynamic' ;;
  26175. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  26176. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  26177. + ifc* | ifort*) # Intel Fortran compiler
  26178. + tmp_addflag=' -nofor_main' ;;
  26179. + lf95*) # Lahey Fortran 8.1
  26180. + whole_archive_flag_spec=
  26181. + tmp_sharedflag='--shared' ;;
  26182. + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  26183. + tmp_sharedflag='-qmkshrobj'
  26184. + tmp_addflag= ;;
  26185. + nvcc*) # Cuda Compiler Driver 2.2
  26186. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  26187. + compiler_needs_object=yes
  26188. + ;;
  26189. + esac
  26190. + case `$CC -V 2>&1 | sed 5q` in
  26191. + *Sun\ C*) # Sun C 5.9
  26192. + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  26193. + compiler_needs_object=yes
  26194. + tmp_sharedflag='-G' ;;
  26195. + *Sun\ F*) # Sun Fortran 8.3
  26196. + tmp_sharedflag='-G' ;;
  26197. + esac
  26198. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26199. +
  26200. + if test "x$supports_anon_versioning" = xyes; then
  26201. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  26202. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  26203. + echo "local: *; };" >> $output_objdir/$libname.ver~
  26204. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  26205. + fi
  26206. +
  26207. + case $cc_basename in
  26208. + xlf* | bgf* | bgxlf* | mpixlf*)
  26209. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  26210. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  26211. + hardcode_libdir_flag_spec=
  26212. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  26213. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  26214. + if test "x$supports_anon_versioning" = xyes; then
  26215. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  26216. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  26217. + echo "local: *; };" >> $output_objdir/$libname.ver~
  26218. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  26219. + fi
  26220. + ;;
  26221. + esac
  26222. + else
  26223. + ld_shlibs=no
  26224. + fi
  26225. + ;;
  26226. +
  26227. + netbsd*)
  26228. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  26229. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  26230. + wlarc=
  26231. + else
  26232. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26233. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26234. + fi
  26235. + ;;
  26236. +
  26237. + solaris*)
  26238. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  26239. + ld_shlibs=no
  26240. + cat <<_LT_EOF 1>&2
  26241. +
  26242. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  26243. +*** create shared libraries on Solaris systems. Therefore, libtool
  26244. +*** is disabling shared libraries support. We urge you to upgrade GNU
  26245. +*** binutils to release 2.9.1 or newer. Another option is to modify
  26246. +*** your PATH or compiler configuration so that the native linker is
  26247. +*** used, and then restart.
  26248. +
  26249. +_LT_EOF
  26250. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  26251. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26252. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26253. + else
  26254. + ld_shlibs=no
  26255. + fi
  26256. + ;;
  26257. +
  26258. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  26259. + case `$LD -v 2>&1` in
  26260. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  26261. + ld_shlibs=no
  26262. + cat <<_LT_EOF 1>&2
  26263. +
  26264. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  26265. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  26266. +*** is disabling shared libraries support. We urge you to upgrade GNU
  26267. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  26268. +*** your PATH or compiler configuration so that the native linker is
  26269. +*** used, and then restart.
  26270. +
  26271. +_LT_EOF
  26272. + ;;
  26273. + *)
  26274. + # For security reasons, it is highly recommended that you always
  26275. + # use absolute paths for naming shared libraries, and exclude the
  26276. + # DT_RUNPATH tag from executables and libraries. But doing so
  26277. + # requires that you compile everything twice, which is a pain.
  26278. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  26279. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26280. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26281. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26282. + else
  26283. + ld_shlibs=no
  26284. + fi
  26285. + ;;
  26286. + esac
  26287. + ;;
  26288. +
  26289. + sunos4*)
  26290. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26291. + wlarc=
  26292. + hardcode_direct=yes
  26293. + hardcode_shlibpath_var=no
  26294. + ;;
  26295. +
  26296. + *)
  26297. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  26298. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26299. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26300. + else
  26301. + ld_shlibs=no
  26302. + fi
  26303. + ;;
  26304. + esac
  26305. +
  26306. + if test "$ld_shlibs" = no; then
  26307. + runpath_var=
  26308. + hardcode_libdir_flag_spec=
  26309. + export_dynamic_flag_spec=
  26310. + whole_archive_flag_spec=
  26311. + fi
  26312. + else
  26313. + # PORTME fill in a description of your system's linker (not GNU ld)
  26314. + case $host_os in
  26315. + aix3*)
  26316. + allow_undefined_flag=unsupported
  26317. + always_export_symbols=yes
  26318. + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  26319. + # Note: this linker hardcodes the directories in LIBPATH if there
  26320. + # are no directories specified by -L.
  26321. + hardcode_minus_L=yes
  26322. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  26323. + # Neither direct hardcoding nor static linking is supported with a
  26324. + # broken collect2.
  26325. + hardcode_direct=unsupported
  26326. + fi
  26327. + ;;
  26328. +
  26329. + aix[4-9]*)
  26330. + if test "$host_cpu" = ia64; then
  26331. + # On IA64, the linker does run time linking by default, so we don't
  26332. + # have to do anything special.
  26333. + aix_use_runtimelinking=no
  26334. + exp_sym_flag='-Bexport'
  26335. + no_entry_flag=""
  26336. + else
  26337. + # If we're using GNU nm, then we don't want the "-C" option.
  26338. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  26339. + # Also, AIX nm treats weak defined symbols like other global
  26340. + # defined symbols, whereas GNU nm marks them as "W".
  26341. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  26342. + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  26343. + else
  26344. + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  26345. + fi
  26346. + aix_use_runtimelinking=no
  26347. +
  26348. + # Test if we are trying to use run time linking or normal
  26349. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  26350. + # need to do runtime linking.
  26351. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  26352. + for ld_flag in $LDFLAGS; do
  26353. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  26354. + aix_use_runtimelinking=yes
  26355. + break
  26356. + fi
  26357. + done
  26358. + ;;
  26359. + esac
  26360. +
  26361. + exp_sym_flag='-bexport'
  26362. + no_entry_flag='-bnoentry'
  26363. + fi
  26364. +
  26365. + # When large executables or shared objects are built, AIX ld can
  26366. + # have problems creating the table of contents. If linking a library
  26367. + # or program results in "error TOC overflow" add -mminimal-toc to
  26368. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  26369. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  26370. +
  26371. + archive_cmds=''
  26372. + hardcode_direct=yes
  26373. + hardcode_direct_absolute=yes
  26374. + hardcode_libdir_separator=':'
  26375. + link_all_deplibs=yes
  26376. + file_list_spec='${wl}-f,'
  26377. +
  26378. + if test "$GCC" = yes; then
  26379. + case $host_os in aix4.[012]|aix4.[012].*)
  26380. + # We only want to do this on AIX 4.2 and lower, the check
  26381. + # below for broken collect2 doesn't work under 4.3+
  26382. + collect2name=`${CC} -print-prog-name=collect2`
  26383. + if test -f "$collect2name" &&
  26384. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  26385. + then
  26386. + # We have reworked collect2
  26387. + :
  26388. + else
  26389. + # We have old collect2
  26390. + hardcode_direct=unsupported
  26391. + # It fails to find uninstalled libraries when the uninstalled
  26392. + # path is not listed in the libpath. Setting hardcode_minus_L
  26393. + # to unsupported forces relinking
  26394. + hardcode_minus_L=yes
  26395. + hardcode_libdir_flag_spec='-L$libdir'
  26396. + hardcode_libdir_separator=
  26397. + fi
  26398. + ;;
  26399. + esac
  26400. + shared_flag='-shared'
  26401. + if test "$aix_use_runtimelinking" = yes; then
  26402. + shared_flag="$shared_flag "'${wl}-G'
  26403. + fi
  26404. + else
  26405. + # not using gcc
  26406. + if test "$host_cpu" = ia64; then
  26407. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  26408. + # chokes on -Wl,-G. The following line is correct:
  26409. + shared_flag='-G'
  26410. + else
  26411. + if test "$aix_use_runtimelinking" = yes; then
  26412. + shared_flag='${wl}-G'
  26413. + else
  26414. + shared_flag='${wl}-bM:SRE'
  26415. + fi
  26416. + fi
  26417. + fi
  26418. +
  26419. + export_dynamic_flag_spec='${wl}-bexpall'
  26420. + # It seems that -bexpall does not export symbols beginning with
  26421. + # underscore (_), so it is better to generate a list of symbols to export.
  26422. + always_export_symbols=yes
  26423. + if test "$aix_use_runtimelinking" = yes; then
  26424. + # Warning - without using the other runtime loading flags (-brtl),
  26425. + # -berok will link without error, but may produce a broken library.
  26426. + allow_undefined_flag='-berok'
  26427. + # Determine the default libpath from the value encoded in an
  26428. + # empty executable.
  26429. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26430. +/* end confdefs.h. */
  26431. +
  26432. +int
  26433. +main ()
  26434. +{
  26435. +
  26436. + ;
  26437. + return 0;
  26438. +}
  26439. +_ACEOF
  26440. +if ac_fn_c_try_link "$LINENO"; then :
  26441. +
  26442. +lt_aix_libpath_sed='
  26443. + /Import File Strings/,/^$/ {
  26444. + /^0/ {
  26445. + s/^0 *\(.*\)$/\1/
  26446. + p
  26447. + }
  26448. + }'
  26449. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26450. +# Check for a 64-bit object if we didn't find anything.
  26451. +if test -z "$aix_libpath"; then
  26452. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26453. +fi
  26454. +fi
  26455. +rm -f core conftest.err conftest.$ac_objext \
  26456. + conftest$ac_exeext conftest.$ac_ext
  26457. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  26458. +
  26459. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  26460. + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  26461. + else
  26462. + if test "$host_cpu" = ia64; then
  26463. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  26464. + allow_undefined_flag="-z nodefs"
  26465. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  26466. + else
  26467. + # Determine the default libpath from the value encoded in an
  26468. + # empty executable.
  26469. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26470. +/* end confdefs.h. */
  26471. +
  26472. +int
  26473. +main ()
  26474. +{
  26475. +
  26476. + ;
  26477. + return 0;
  26478. +}
  26479. +_ACEOF
  26480. +if ac_fn_c_try_link "$LINENO"; then :
  26481. +
  26482. +lt_aix_libpath_sed='
  26483. + /Import File Strings/,/^$/ {
  26484. + /^0/ {
  26485. + s/^0 *\(.*\)$/\1/
  26486. + p
  26487. + }
  26488. + }'
  26489. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26490. +# Check for a 64-bit object if we didn't find anything.
  26491. +if test -z "$aix_libpath"; then
  26492. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  26493. +fi
  26494. +fi
  26495. +rm -f core conftest.err conftest.$ac_objext \
  26496. + conftest$ac_exeext conftest.$ac_ext
  26497. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  26498. +
  26499. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  26500. + # Warning - without using the other run time loading flags,
  26501. + # -berok will link without error, but may produce a broken library.
  26502. + no_undefined_flag=' ${wl}-bernotok'
  26503. + allow_undefined_flag=' ${wl}-berok'
  26504. + if test "$with_gnu_ld" = yes; then
  26505. + # We only use this code for GNU lds that support --whole-archive.
  26506. + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  26507. + else
  26508. + # Exported symbols can be pulled into shared objects from archives
  26509. + whole_archive_flag_spec='$convenience'
  26510. + fi
  26511. + archive_cmds_need_lc=yes
  26512. + # This is similar to how AIX traditionally builds its shared libraries.
  26513. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  26514. + fi
  26515. + fi
  26516. + ;;
  26517. +
  26518. + amigaos*)
  26519. + case $host_cpu in
  26520. + powerpc)
  26521. + # see comment about AmigaOS4 .so support
  26522. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26523. + archive_expsym_cmds=''
  26524. + ;;
  26525. + m68k)
  26526. + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  26527. + hardcode_libdir_flag_spec='-L$libdir'
  26528. + hardcode_minus_L=yes
  26529. + ;;
  26530. + esac
  26531. + ;;
  26532. +
  26533. + bsdi[45]*)
  26534. + export_dynamic_flag_spec=-rdynamic
  26535. + ;;
  26536. +
  26537. + cygwin* | mingw* | pw32* | cegcc*)
  26538. + # When not using gcc, we currently assume that we are using
  26539. + # Microsoft Visual C++.
  26540. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  26541. + # no search path for DLLs.
  26542. + hardcode_libdir_flag_spec=' '
  26543. + allow_undefined_flag=unsupported
  26544. + # Tell ltmain to make .lib files, not .a files.
  26545. + libext=lib
  26546. + # Tell ltmain to make .dll files, not .so files.
  26547. + shrext_cmds=".dll"
  26548. + # FIXME: Setting linknames here is a bad hack.
  26549. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  26550. + # The linker will automatically build a .lib file if we build a DLL.
  26551. + old_archive_from_new_cmds='true'
  26552. + # FIXME: Should let the user specify the lib program.
  26553. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  26554. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  26555. + enable_shared_with_static_runtimes=yes
  26556. + ;;
  26557. +
  26558. + darwin* | rhapsody*)
  26559. +
  26560. +
  26561. + archive_cmds_need_lc=no
  26562. + hardcode_direct=no
  26563. + hardcode_automatic=yes
  26564. + hardcode_shlibpath_var=unsupported
  26565. + if test "$lt_cv_ld_force_load" = "yes"; then
  26566. + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  26567. + else
  26568. + whole_archive_flag_spec=''
  26569. + fi
  26570. + link_all_deplibs=yes
  26571. + allow_undefined_flag="$_lt_dar_allow_undefined"
  26572. + case $cc_basename in
  26573. + ifort*) _lt_dar_can_shared=yes ;;
  26574. + *) _lt_dar_can_shared=$GCC ;;
  26575. + esac
  26576. + if test "$_lt_dar_can_shared" = "yes"; then
  26577. + output_verbose_link_cmd=func_echo_all
  26578. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  26579. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  26580. + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  26581. + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  26582. +
  26583. + else
  26584. + ld_shlibs=no
  26585. + fi
  26586. +
  26587. + ;;
  26588. +
  26589. + dgux*)
  26590. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26591. + hardcode_libdir_flag_spec='-L$libdir'
  26592. + hardcode_shlibpath_var=no
  26593. + ;;
  26594. +
  26595. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  26596. + # support. Future versions do this automatically, but an explicit c++rt0.o
  26597. + # does not break anything, and helps significantly (at the cost of a little
  26598. + # extra space).
  26599. + freebsd2.2*)
  26600. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  26601. + hardcode_libdir_flag_spec='-R$libdir'
  26602. + hardcode_direct=yes
  26603. + hardcode_shlibpath_var=no
  26604. + ;;
  26605. +
  26606. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  26607. + freebsd2.*)
  26608. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26609. + hardcode_direct=yes
  26610. + hardcode_minus_L=yes
  26611. + hardcode_shlibpath_var=no
  26612. + ;;
  26613. +
  26614. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  26615. + freebsd* | dragonfly*)
  26616. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  26617. + hardcode_libdir_flag_spec='-R$libdir'
  26618. + hardcode_direct=yes
  26619. + hardcode_shlibpath_var=no
  26620. + ;;
  26621. +
  26622. + hpux9*)
  26623. + if test "$GCC" = yes; then
  26624. + archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  26625. + else
  26626. + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  26627. + fi
  26628. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26629. + hardcode_libdir_separator=:
  26630. + hardcode_direct=yes
  26631. +
  26632. + # hardcode_minus_L: Not really in the search PATH,
  26633. + # but as the default location of the library.
  26634. + hardcode_minus_L=yes
  26635. + export_dynamic_flag_spec='${wl}-E'
  26636. + ;;
  26637. +
  26638. + hpux10*)
  26639. + if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  26640. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  26641. + else
  26642. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  26643. + fi
  26644. + if test "$with_gnu_ld" = no; then
  26645. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26646. + hardcode_libdir_flag_spec_ld='+b $libdir'
  26647. + hardcode_libdir_separator=:
  26648. + hardcode_direct=yes
  26649. + hardcode_direct_absolute=yes
  26650. + export_dynamic_flag_spec='${wl}-E'
  26651. + # hardcode_minus_L: Not really in the search PATH,
  26652. + # but as the default location of the library.
  26653. + hardcode_minus_L=yes
  26654. + fi
  26655. + ;;
  26656. +
  26657. + hpux11*)
  26658. + if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  26659. + case $host_cpu in
  26660. + hppa*64*)
  26661. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26662. + ;;
  26663. + ia64*)
  26664. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  26665. + ;;
  26666. + *)
  26667. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  26668. + ;;
  26669. + esac
  26670. + else
  26671. + case $host_cpu in
  26672. + hppa*64*)
  26673. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26674. + ;;
  26675. + ia64*)
  26676. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  26677. + ;;
  26678. + *)
  26679. +
  26680. + # Older versions of the 11.00 compiler do not understand -b yet
  26681. + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  26682. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  26683. +$as_echo_n "checking if $CC understands -b... " >&6; }
  26684. +if test "${lt_cv_prog_compiler__b+set}" = set; then :
  26685. + $as_echo_n "(cached) " >&6
  26686. +else
  26687. + lt_cv_prog_compiler__b=no
  26688. + save_LDFLAGS="$LDFLAGS"
  26689. + LDFLAGS="$LDFLAGS -b"
  26690. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  26691. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  26692. + # The linker can only warn and ignore the option if not recognized
  26693. + # So say no if there are warnings
  26694. + if test -s conftest.err; then
  26695. + # Append any errors to the config.log.
  26696. + cat conftest.err 1>&5
  26697. + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  26698. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  26699. + if diff conftest.exp conftest.er2 >/dev/null; then
  26700. + lt_cv_prog_compiler__b=yes
  26701. + fi
  26702. + else
  26703. + lt_cv_prog_compiler__b=yes
  26704. + fi
  26705. + fi
  26706. + $RM -r conftest*
  26707. + LDFLAGS="$save_LDFLAGS"
  26708. +
  26709. +fi
  26710. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  26711. +$as_echo "$lt_cv_prog_compiler__b" >&6; }
  26712. +
  26713. +if test x"$lt_cv_prog_compiler__b" = xyes; then
  26714. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  26715. +else
  26716. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  26717. +fi
  26718. +
  26719. + ;;
  26720. + esac
  26721. + fi
  26722. + if test "$with_gnu_ld" = no; then
  26723. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26724. + hardcode_libdir_separator=:
  26725. +
  26726. + case $host_cpu in
  26727. + hppa*64*|ia64*)
  26728. + hardcode_direct=no
  26729. + hardcode_shlibpath_var=no
  26730. + ;;
  26731. + *)
  26732. + hardcode_direct=yes
  26733. + hardcode_direct_absolute=yes
  26734. + export_dynamic_flag_spec='${wl}-E'
  26735. +
  26736. + # hardcode_minus_L: Not really in the search PATH,
  26737. + # but as the default location of the library.
  26738. + hardcode_minus_L=yes
  26739. + ;;
  26740. + esac
  26741. + fi
  26742. + ;;
  26743. +
  26744. + irix5* | irix6* | nonstopux*)
  26745. + if test "$GCC" = yes; then
  26746. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  26747. + # Try to use the -exported_symbol ld option, if it does not
  26748. + # work, assume that -exports_file does not work either and
  26749. + # implicitly export all symbols.
  26750. + save_LDFLAGS="$LDFLAGS"
  26751. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  26752. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26753. +/* end confdefs.h. */
  26754. +int foo(void) {}
  26755. +_ACEOF
  26756. +if ac_fn_c_try_link "$LINENO"; then :
  26757. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  26758. +
  26759. +fi
  26760. +rm -f core conftest.err conftest.$ac_objext \
  26761. + conftest$ac_exeext conftest.$ac_ext
  26762. + LDFLAGS="$save_LDFLAGS"
  26763. + else
  26764. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  26765. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  26766. + fi
  26767. + archive_cmds_need_lc='no'
  26768. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26769. + hardcode_libdir_separator=:
  26770. + inherit_rpath=yes
  26771. + link_all_deplibs=yes
  26772. + ;;
  26773. +
  26774. + netbsd*)
  26775. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  26776. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  26777. + else
  26778. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  26779. + fi
  26780. + hardcode_libdir_flag_spec='-R$libdir'
  26781. + hardcode_direct=yes
  26782. + hardcode_shlibpath_var=no
  26783. + ;;
  26784. +
  26785. + newsos6)
  26786. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26787. + hardcode_direct=yes
  26788. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26789. + hardcode_libdir_separator=:
  26790. + hardcode_shlibpath_var=no
  26791. + ;;
  26792. +
  26793. + *nto* | *qnx*)
  26794. + ;;
  26795. +
  26796. + openbsd*)
  26797. + if test -f /usr/libexec/ld.so; then
  26798. + hardcode_direct=yes
  26799. + hardcode_shlibpath_var=no
  26800. + hardcode_direct_absolute=yes
  26801. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  26802. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  26803. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  26804. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  26805. + export_dynamic_flag_spec='${wl}-E'
  26806. + else
  26807. + case $host_os in
  26808. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  26809. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26810. + hardcode_libdir_flag_spec='-R$libdir'
  26811. + ;;
  26812. + *)
  26813. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  26814. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  26815. + ;;
  26816. + esac
  26817. + fi
  26818. + else
  26819. + ld_shlibs=no
  26820. + fi
  26821. + ;;
  26822. +
  26823. + os2*)
  26824. + hardcode_libdir_flag_spec='-L$libdir'
  26825. + hardcode_minus_L=yes
  26826. + allow_undefined_flag=unsupported
  26827. + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  26828. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  26829. + ;;
  26830. +
  26831. + osf3*)
  26832. + if test "$GCC" = yes; then
  26833. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  26834. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  26835. + else
  26836. + allow_undefined_flag=' -expect_unresolved \*'
  26837. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  26838. + fi
  26839. + archive_cmds_need_lc='no'
  26840. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26841. + hardcode_libdir_separator=:
  26842. + ;;
  26843. +
  26844. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  26845. + if test "$GCC" = yes; then
  26846. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  26847. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  26848. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26849. + else
  26850. + allow_undefined_flag=' -expect_unresolved \*'
  26851. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  26852. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  26853. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  26854. +
  26855. + # Both c and cxx compiler support -rpath directly
  26856. + hardcode_libdir_flag_spec='-rpath $libdir'
  26857. + fi
  26858. + archive_cmds_need_lc='no'
  26859. + hardcode_libdir_separator=:
  26860. + ;;
  26861. +
  26862. + solaris*)
  26863. + no_undefined_flag=' -z defs'
  26864. + if test "$GCC" = yes; then
  26865. + wlarc='${wl}'
  26866. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26867. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  26868. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  26869. + else
  26870. + case `$CC -V 2>&1` in
  26871. + *"Compilers 5.0"*)
  26872. + wlarc=''
  26873. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26874. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  26875. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  26876. + ;;
  26877. + *)
  26878. + wlarc='${wl}'
  26879. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  26880. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  26881. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  26882. + ;;
  26883. + esac
  26884. + fi
  26885. + hardcode_libdir_flag_spec='-R$libdir'
  26886. + hardcode_shlibpath_var=no
  26887. + case $host_os in
  26888. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  26889. + *)
  26890. + # The compiler driver will combine and reorder linker options,
  26891. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  26892. + # but is careful enough not to reorder.
  26893. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  26894. + if test "$GCC" = yes; then
  26895. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  26896. + else
  26897. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  26898. + fi
  26899. + ;;
  26900. + esac
  26901. + link_all_deplibs=yes
  26902. + ;;
  26903. +
  26904. + sunos4*)
  26905. + if test "x$host_vendor" = xsequent; then
  26906. + # Use $CC to link under sequent, because it throws in some extra .o
  26907. + # files that make .init and .fini sections work.
  26908. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  26909. + else
  26910. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  26911. + fi
  26912. + hardcode_libdir_flag_spec='-L$libdir'
  26913. + hardcode_direct=yes
  26914. + hardcode_minus_L=yes
  26915. + hardcode_shlibpath_var=no
  26916. + ;;
  26917. +
  26918. + sysv4)
  26919. + case $host_vendor in
  26920. + sni)
  26921. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26922. + hardcode_direct=yes # is this really true???
  26923. + ;;
  26924. + siemens)
  26925. + ## LD is ld it makes a PLAMLIB
  26926. + ## CC just makes a GrossModule.
  26927. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  26928. + reload_cmds='$CC -r -o $output$reload_objs'
  26929. + hardcode_direct=no
  26930. + ;;
  26931. + motorola)
  26932. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26933. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  26934. + ;;
  26935. + esac
  26936. + runpath_var='LD_RUN_PATH'
  26937. + hardcode_shlibpath_var=no
  26938. + ;;
  26939. +
  26940. + sysv4.3*)
  26941. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26942. + hardcode_shlibpath_var=no
  26943. + export_dynamic_flag_spec='-Bexport'
  26944. + ;;
  26945. +
  26946. + sysv4*MP*)
  26947. + if test -d /usr/nec; then
  26948. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26949. + hardcode_shlibpath_var=no
  26950. + runpath_var=LD_RUN_PATH
  26951. + hardcode_runpath_var=yes
  26952. + ld_shlibs=yes
  26953. + fi
  26954. + ;;
  26955. +
  26956. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  26957. + no_undefined_flag='${wl}-z,text'
  26958. + archive_cmds_need_lc=no
  26959. + hardcode_shlibpath_var=no
  26960. + runpath_var='LD_RUN_PATH'
  26961. +
  26962. + if test "$GCC" = yes; then
  26963. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26964. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26965. + else
  26966. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26967. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26968. + fi
  26969. + ;;
  26970. +
  26971. + sysv5* | sco3.2v5* | sco5v6*)
  26972. + # Note: We can NOT use -z defs as we might desire, because we do not
  26973. + # link with -lc, and that would cause any symbols used from libc to
  26974. + # always be unresolved, which means just about no library would
  26975. + # ever link correctly. If we're not using GNU ld we use -z text
  26976. + # though, which does catch some bad symbols but isn't as heavy-handed
  26977. + # as -z defs.
  26978. + no_undefined_flag='${wl}-z,text'
  26979. + allow_undefined_flag='${wl}-z,nodefs'
  26980. + archive_cmds_need_lc=no
  26981. + hardcode_shlibpath_var=no
  26982. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  26983. + hardcode_libdir_separator=':'
  26984. + link_all_deplibs=yes
  26985. + export_dynamic_flag_spec='${wl}-Bexport'
  26986. + runpath_var='LD_RUN_PATH'
  26987. +
  26988. + if test "$GCC" = yes; then
  26989. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26990. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26991. + else
  26992. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26993. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  26994. + fi
  26995. + ;;
  26996. +
  26997. + uts4*)
  26998. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26999. + hardcode_libdir_flag_spec='-L$libdir'
  27000. + hardcode_shlibpath_var=no
  27001. + ;;
  27002. +
  27003. + *)
  27004. + ld_shlibs=no
  27005. + ;;
  27006. + esac
  27007. +
  27008. + if test x$host_vendor = xsni; then
  27009. + case $host in
  27010. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  27011. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  27012. + ;;
  27013. + esac
  27014. + fi
  27015. + fi
  27016. +
  27017. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  27018. +$as_echo "$ld_shlibs" >&6; }
  27019. +test "$ld_shlibs" = no && can_build_shared=no
  27020. +
  27021. +with_gnu_ld=$with_gnu_ld
  27022. +
  27023. +
  27024. +
  27025. +
  27026. +
  27027. +
  27028. +
  27029. +
  27030. +
  27031. +
  27032. +
  27033. +
  27034. +
  27035. +
  27036. +
  27037. +#
  27038. +# Do we need to explicitly link libc?
  27039. +#
  27040. +case "x$archive_cmds_need_lc" in
  27041. +x|xyes)
  27042. + # Assume -lc should be added
  27043. + archive_cmds_need_lc=yes
  27044. +
  27045. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  27046. + case $archive_cmds in
  27047. + *'~'*)
  27048. + # FIXME: we may have to deal with multi-command sequences.
  27049. + ;;
  27050. + '$CC '*)
  27051. + # Test whether the compiler implicitly links with -lc since on some
  27052. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  27053. + # to ld, don't add -lc before -lgcc.
  27054. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  27055. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  27056. +if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  27057. + $as_echo_n "(cached) " >&6
  27058. +else
  27059. + $RM conftest*
  27060. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  27061. +
  27062. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  27063. + (eval $ac_compile) 2>&5
  27064. + ac_status=$?
  27065. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  27066. + test $ac_status = 0; } 2>conftest.err; then
  27067. + soname=conftest
  27068. + lib=conftest
  27069. + libobjs=conftest.$ac_objext
  27070. + deplibs=
  27071. + wl=$lt_prog_compiler_wl
  27072. + pic_flag=$lt_prog_compiler_pic
  27073. + compiler_flags=-v
  27074. + linker_flags=-v
  27075. + verstring=
  27076. + output_objdir=.
  27077. + libname=conftest
  27078. + lt_save_allow_undefined_flag=$allow_undefined_flag
  27079. + allow_undefined_flag=
  27080. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  27081. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  27082. + ac_status=$?
  27083. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  27084. + test $ac_status = 0; }
  27085. + then
  27086. + lt_cv_archive_cmds_need_lc=no
  27087. + else
  27088. + lt_cv_archive_cmds_need_lc=yes
  27089. + fi
  27090. + allow_undefined_flag=$lt_save_allow_undefined_flag
  27091. + else
  27092. + cat conftest.err 1>&5
  27093. + fi
  27094. + $RM conftest*
  27095. +
  27096. +fi
  27097. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  27098. +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  27099. + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  27100. + ;;
  27101. + esac
  27102. + fi
  27103. + ;;
  27104. +esac
  27105. +
  27106. +
  27107. +
  27108. +
  27109. +
  27110. +
  27111. +
  27112. +
  27113. +
  27114. +
  27115. +
  27116. +
  27117. +
  27118. +
  27119. +
  27120. +
  27121. +
  27122. +
  27123. +
  27124. +
  27125. +
  27126. +
  27127. +
  27128. +
  27129. +
  27130. +
  27131. +
  27132. +
  27133. +
  27134. +
  27135. +
  27136. +
  27137. +
  27138. +
  27139. +
  27140. +
  27141. +
  27142. +
  27143. +
  27144. +
  27145. +
  27146. +
  27147. +
  27148. +
  27149. +
  27150. +
  27151. +
  27152. +
  27153. +
  27154. +
  27155. +
  27156. +
  27157. +
  27158. +
  27159. +
  27160. +
  27161. +
  27162. +
  27163. +
  27164. +
  27165. +
  27166. +
  27167. +
  27168. +
  27169. +
  27170. +
  27171. +
  27172. +
  27173. +
  27174. +
  27175. +
  27176. +
  27177. +
  27178. +
  27179. +
  27180. +
  27181. +
  27182. +
  27183. +
  27184. +
  27185. +
  27186. +
  27187. +
  27188. +
  27189. +
  27190. +
  27191. +
  27192. +
  27193. +
  27194. +
  27195. +
  27196. +
  27197. +
  27198. +
  27199. +
  27200. +
  27201. +
  27202. +
  27203. +
  27204. +
  27205. +
  27206. +
  27207. +
  27208. +
  27209. +
  27210. +
  27211. +
  27212. +
  27213. +
  27214. +
  27215. +
  27216. +
  27217. +
  27218. +
  27219. +
  27220. +
  27221. +
  27222. +
  27223. +
  27224. +
  27225. +
  27226. +
  27227. +
  27228. +
  27229. +
  27230. +
  27231. +
  27232. +
  27233. +
  27234. +
  27235. +
  27236. +
  27237. +
  27238. +
  27239. +
  27240. +
  27241. +
  27242. +
  27243. +
  27244. +
  27245. +
  27246. +
  27247. +
  27248. +
  27249. +
  27250. +
  27251. +
  27252. +
  27253. +
  27254. +
  27255. +
  27256. +
  27257. +
  27258. +
  27259. +
  27260. +
  27261. +
  27262. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  27263. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  27264. +
  27265. +if test "$GCC" = yes; then
  27266. + case $host_os in
  27267. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  27268. + *) lt_awk_arg="/^libraries:/" ;;
  27269. + esac
  27270. + case $host_os in
  27271. + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  27272. + *) lt_sed_strip_eq="s,=/,/,g" ;;
  27273. + esac
  27274. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  27275. + case $lt_search_path_spec in
  27276. + *\;*)
  27277. + # if the path contains ";" then we assume it to be the separator
  27278. + # otherwise default to the standard path separator (i.e. ":") - it is
  27279. + # assumed that no part of a normal pathname contains ";" but that should
  27280. + # okay in the real world where ";" in dirpaths is itself problematic.
  27281. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  27282. + ;;
  27283. + *)
  27284. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  27285. + ;;
  27286. + esac
  27287. + # Ok, now we have the path, separated by spaces, we can step through it
  27288. + # and add multilib dir if necessary.
  27289. + lt_tmp_lt_search_path_spec=
  27290. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  27291. + for lt_sys_path in $lt_search_path_spec; do
  27292. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  27293. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  27294. + else
  27295. + test -d "$lt_sys_path" && \
  27296. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  27297. + fi
  27298. + done
  27299. + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  27300. +BEGIN {RS=" "; FS="/|\n";} {
  27301. + lt_foo="";
  27302. + lt_count=0;
  27303. + for (lt_i = NF; lt_i > 0; lt_i--) {
  27304. + if ($lt_i != "" && $lt_i != ".") {
  27305. + if ($lt_i == "..") {
  27306. + lt_count++;
  27307. + } else {
  27308. + if (lt_count == 0) {
  27309. + lt_foo="/" $lt_i lt_foo;
  27310. + } else {
  27311. + lt_count--;
  27312. + }
  27313. + }
  27314. + }
  27315. + }
  27316. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  27317. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  27318. +}'`
  27319. + # AWK program above erroneously prepends '/' to C:/dos/paths
  27320. + # for these hosts.
  27321. + case $host_os in
  27322. + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  27323. + $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  27324. + esac
  27325. + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  27326. +else
  27327. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  27328. +fi
  27329. +library_names_spec=
  27330. +libname_spec='lib$name'
  27331. +soname_spec=
  27332. +shrext_cmds=".so"
  27333. +postinstall_cmds=
  27334. +postuninstall_cmds=
  27335. +finish_cmds=
  27336. +finish_eval=
  27337. +shlibpath_var=
  27338. +shlibpath_overrides_runpath=unknown
  27339. +version_type=none
  27340. +dynamic_linker="$host_os ld.so"
  27341. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  27342. +need_lib_prefix=unknown
  27343. +hardcode_into_libs=no
  27344. +
  27345. +# when you set need_version to no, make sure it does not cause -set_version
  27346. +# flags to be left without arguments
  27347. +need_version=unknown
  27348. +
  27349. +case $host_os in
  27350. +aix3*)
  27351. + version_type=linux
  27352. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  27353. + shlibpath_var=LIBPATH
  27354. +
  27355. + # AIX 3 has no versioning support, so we append a major version to the name.
  27356. + soname_spec='${libname}${release}${shared_ext}$major'
  27357. + ;;
  27358. +
  27359. +aix[4-9]*)
  27360. + version_type=linux
  27361. + need_lib_prefix=no
  27362. + need_version=no
  27363. + hardcode_into_libs=yes
  27364. + if test "$host_cpu" = ia64; then
  27365. + # AIX 5 supports IA64
  27366. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  27367. + shlibpath_var=LD_LIBRARY_PATH
  27368. + else
  27369. + # With GCC up to 2.95.x, collect2 would create an import file
  27370. + # for dependence libraries. The import file would start with
  27371. + # the line `#! .'. This would cause the generated library to
  27372. + # depend on `.', always an invalid library. This was fixed in
  27373. + # development snapshots of GCC prior to 3.0.
  27374. + case $host_os in
  27375. + aix4 | aix4.[01] | aix4.[01].*)
  27376. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  27377. + echo ' yes '
  27378. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  27379. + :
  27380. + else
  27381. + can_build_shared=no
  27382. + fi
  27383. + ;;
  27384. + esac
  27385. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  27386. + # soname into executable. Probably we can add versioning support to
  27387. + # collect2, so additional links can be useful in future.
  27388. + if test "$aix_use_runtimelinking" = yes; then
  27389. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  27390. + # instead of lib<name>.a to let people know that these are not
  27391. + # typical AIX shared libraries.
  27392. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27393. + else
  27394. + # We preserve .a as extension for shared libraries through AIX4.2
  27395. + # and later when we are not doing run time linking.
  27396. + library_names_spec='${libname}${release}.a $libname.a'
  27397. + soname_spec='${libname}${release}${shared_ext}$major'
  27398. + fi
  27399. + shlibpath_var=LIBPATH
  27400. + fi
  27401. + ;;
  27402. +
  27403. +amigaos*)
  27404. + case $host_cpu in
  27405. + powerpc)
  27406. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  27407. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  27408. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27409. + ;;
  27410. + m68k)
  27411. + library_names_spec='$libname.ixlibrary $libname.a'
  27412. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  27413. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  27414. + ;;
  27415. + esac
  27416. + ;;
  27417. +
  27418. +beos*)
  27419. + library_names_spec='${libname}${shared_ext}'
  27420. + dynamic_linker="$host_os ld.so"
  27421. + shlibpath_var=LIBRARY_PATH
  27422. + ;;
  27423. +
  27424. +bsdi[45]*)
  27425. + version_type=linux
  27426. + need_version=no
  27427. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27428. + soname_spec='${libname}${release}${shared_ext}$major'
  27429. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  27430. + shlibpath_var=LD_LIBRARY_PATH
  27431. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  27432. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  27433. + # the default ld.so.conf also contains /usr/contrib/lib and
  27434. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  27435. + # libtool to hard-code these into programs
  27436. + ;;
  27437. +
  27438. +cygwin* | mingw* | pw32* | cegcc*)
  27439. + version_type=windows
  27440. + shrext_cmds=".dll"
  27441. + need_version=no
  27442. + need_lib_prefix=no
  27443. +
  27444. + case $GCC,$host_os in
  27445. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  27446. + library_names_spec='$libname.dll.a'
  27447. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  27448. + postinstall_cmds='base_file=`basename \${file}`~
  27449. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  27450. + dldir=$destdir/`dirname \$dlpath`~
  27451. + test -d \$dldir || mkdir -p \$dldir~
  27452. + $install_prog $dir/$dlname \$dldir/$dlname~
  27453. + chmod a+x \$dldir/$dlname~
  27454. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  27455. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  27456. + fi'
  27457. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  27458. + dlpath=$dir/\$dldll~
  27459. + $RM \$dlpath'
  27460. + shlibpath_overrides_runpath=yes
  27461. +
  27462. + case $host_os in
  27463. + cygwin*)
  27464. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  27465. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27466. +
  27467. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  27468. + ;;
  27469. + mingw* | cegcc*)
  27470. + # MinGW DLLs use traditional 'lib' prefix
  27471. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27472. + ;;
  27473. + pw32*)
  27474. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  27475. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27476. + ;;
  27477. + esac
  27478. + ;;
  27479. +
  27480. + *)
  27481. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  27482. + ;;
  27483. + esac
  27484. + dynamic_linker='Win32 ld.exe'
  27485. + # FIXME: first we should search . and the directory the executable is in
  27486. + shlibpath_var=PATH
  27487. + ;;
  27488. +
  27489. +darwin* | rhapsody*)
  27490. + dynamic_linker="$host_os dyld"
  27491. + version_type=darwin
  27492. + need_lib_prefix=no
  27493. + need_version=no
  27494. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  27495. + soname_spec='${libname}${release}${major}$shared_ext'
  27496. + shlibpath_overrides_runpath=yes
  27497. + shlibpath_var=DYLD_LIBRARY_PATH
  27498. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  27499. +
  27500. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  27501. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  27502. + ;;
  27503. +
  27504. +dgux*)
  27505. + version_type=linux
  27506. + need_lib_prefix=no
  27507. + need_version=no
  27508. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  27509. + soname_spec='${libname}${release}${shared_ext}$major'
  27510. + shlibpath_var=LD_LIBRARY_PATH
  27511. + ;;
  27512. +
  27513. +freebsd* | dragonfly*)
  27514. + # DragonFly does not have aout. When/if they implement a new
  27515. + # versioning mechanism, adjust this.
  27516. + if test -x /usr/bin/objformat; then
  27517. + objformat=`/usr/bin/objformat`
  27518. + else
  27519. + case $host_os in
  27520. + freebsd[23].*) objformat=aout ;;
  27521. + *) objformat=elf ;;
  27522. + esac
  27523. + fi
  27524. + version_type=freebsd-$objformat
  27525. + case $version_type in
  27526. + freebsd-elf*)
  27527. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  27528. + need_version=no
  27529. + need_lib_prefix=no
  27530. + ;;
  27531. + freebsd-*)
  27532. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  27533. + need_version=yes
  27534. + ;;
  27535. + esac
  27536. + shlibpath_var=LD_LIBRARY_PATH
  27537. + case $host_os in
  27538. + freebsd2.*)
  27539. + shlibpath_overrides_runpath=yes
  27540. + ;;
  27541. + freebsd3.[01]* | freebsdelf3.[01]*)
  27542. + shlibpath_overrides_runpath=yes
  27543. + hardcode_into_libs=yes
  27544. + ;;
  27545. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  27546. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  27547. + shlibpath_overrides_runpath=no
  27548. + hardcode_into_libs=yes
  27549. + ;;
  27550. + *) # from 4.6 on, and DragonFly
  27551. + shlibpath_overrides_runpath=yes
  27552. + hardcode_into_libs=yes
  27553. + ;;
  27554. + esac
  27555. + ;;
  27556. +
  27557. +gnu*)
  27558. + version_type=linux
  27559. + need_lib_prefix=no
  27560. + need_version=no
  27561. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  27562. + soname_spec='${libname}${release}${shared_ext}$major'
  27563. + shlibpath_var=LD_LIBRARY_PATH
  27564. + hardcode_into_libs=yes
  27565. + ;;
  27566. +
  27567. +haiku*)
  27568. + version_type=linux
  27569. + need_lib_prefix=no
  27570. + need_version=no
  27571. + dynamic_linker="$host_os runtime_loader"
  27572. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  27573. + soname_spec='${libname}${release}${shared_ext}$major'
  27574. + shlibpath_var=LIBRARY_PATH
  27575. + shlibpath_overrides_runpath=yes
  27576. + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  27577. + hardcode_into_libs=yes
  27578. + ;;
  27579. +
  27580. +hpux9* | hpux10* | hpux11*)
  27581. + # Give a soname corresponding to the major version so that dld.sl refuses to
  27582. + # link against other versions.
  27583. + version_type=sunos
  27584. + need_lib_prefix=no
  27585. + need_version=no
  27586. + case $host_cpu in
  27587. + ia64*)
  27588. + shrext_cmds='.so'
  27589. + hardcode_into_libs=yes
  27590. + dynamic_linker="$host_os dld.so"
  27591. + shlibpath_var=LD_LIBRARY_PATH
  27592. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  27593. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27594. + soname_spec='${libname}${release}${shared_ext}$major'
  27595. + if test "X$HPUX_IA64_MODE" = X32; then
  27596. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  27597. + else
  27598. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  27599. + fi
  27600. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  27601. + ;;
  27602. + hppa*64*)
  27603. + shrext_cmds='.sl'
  27604. + hardcode_into_libs=yes
  27605. + dynamic_linker="$host_os dld.sl"
  27606. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  27607. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  27608. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27609. + soname_spec='${libname}${release}${shared_ext}$major'
  27610. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  27611. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  27612. + ;;
  27613. + *)
  27614. + shrext_cmds='.sl'
  27615. + dynamic_linker="$host_os dld.sl"
  27616. + shlibpath_var=SHLIB_PATH
  27617. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  27618. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27619. + soname_spec='${libname}${release}${shared_ext}$major'
  27620. + ;;
  27621. + esac
  27622. + # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  27623. + postinstall_cmds='chmod 555 $lib'
  27624. + # or fails outright, so override atomically:
  27625. + install_override_mode=555
  27626. + ;;
  27627. +
  27628. +interix[3-9]*)
  27629. + version_type=linux
  27630. + need_lib_prefix=no
  27631. + need_version=no
  27632. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  27633. + soname_spec='${libname}${release}${shared_ext}$major'
  27634. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  27635. + shlibpath_var=LD_LIBRARY_PATH
  27636. + shlibpath_overrides_runpath=no
  27637. + hardcode_into_libs=yes
  27638. + ;;
  27639. +
  27640. +irix5* | irix6* | nonstopux*)
  27641. + case $host_os in
  27642. + nonstopux*) version_type=nonstopux ;;
  27643. + *)
  27644. + if test "$lt_cv_prog_gnu_ld" = yes; then
  27645. + version_type=linux
  27646. + else
  27647. + version_type=irix
  27648. + fi ;;
  27649. + esac
  27650. + need_lib_prefix=no
  27651. + need_version=no
  27652. + soname_spec='${libname}${release}${shared_ext}$major'
  27653. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  27654. + case $host_os in
  27655. + irix5* | nonstopux*)
  27656. + libsuff= shlibsuff=
  27657. + ;;
  27658. + *)
  27659. + case $LD in # libtool.m4 will add one of these switches to LD
  27660. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  27661. + libsuff= shlibsuff= libmagic=32-bit;;
  27662. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  27663. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  27664. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  27665. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  27666. + *) libsuff= shlibsuff= libmagic=never-match;;
  27667. + esac
  27668. + ;;
  27669. + esac
  27670. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  27671. + shlibpath_overrides_runpath=no
  27672. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  27673. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  27674. + hardcode_into_libs=yes
  27675. + ;;
  27676. +
  27677. +# No shared lib support for Linux oldld, aout, or coff.
  27678. +linux*oldld* | linux*aout* | linux*coff*)
  27679. + dynamic_linker=no
  27680. + ;;
  27681. +
  27682. +# This must be Linux ELF.
  27683. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  27684. + version_type=linux
  27685. + need_lib_prefix=no
  27686. + need_version=no
  27687. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27688. + soname_spec='${libname}${release}${shared_ext}$major'
  27689. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  27690. + shlibpath_var=LD_LIBRARY_PATH
  27691. + shlibpath_overrides_runpath=no
  27692. +
  27693. + # Some binutils ld are patched to set DT_RUNPATH
  27694. + if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  27695. + $as_echo_n "(cached) " >&6
  27696. +else
  27697. + lt_cv_shlibpath_overrides_runpath=no
  27698. + save_LDFLAGS=$LDFLAGS
  27699. + save_libdir=$libdir
  27700. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  27701. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  27702. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27703. +/* end confdefs.h. */
  27704. +
  27705. +int
  27706. +main ()
  27707. +{
  27708. +
  27709. + ;
  27710. + return 0;
  27711. +}
  27712. +_ACEOF
  27713. +if ac_fn_c_try_link "$LINENO"; then :
  27714. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  27715. + lt_cv_shlibpath_overrides_runpath=yes
  27716. +fi
  27717. +fi
  27718. +rm -f core conftest.err conftest.$ac_objext \
  27719. + conftest$ac_exeext conftest.$ac_ext
  27720. + LDFLAGS=$save_LDFLAGS
  27721. + libdir=$save_libdir
  27722. +
  27723. +fi
  27724. +
  27725. + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  27726. +
  27727. + # This implies no fast_install, which is unacceptable.
  27728. + # Some rework will be needed to allow for fast_install
  27729. + # before this can be enabled.
  27730. + hardcode_into_libs=yes
  27731. +
  27732. + # Append ld.so.conf contents to the search path
  27733. + if test -f /etc/ld.so.conf; then
  27734. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  27735. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  27736. + fi
  27737. +
  27738. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  27739. + # powerpc, because MkLinux only supported shared libraries with the
  27740. + # GNU dynamic linker. Since this was broken with cross compilers,
  27741. + # most powerpc-linux boxes support dynamic linking these days and
  27742. + # people can always --disable-shared, the test was removed, and we
  27743. + # assume the GNU/Linux dynamic linker is in use.
  27744. + dynamic_linker='GNU/Linux ld.so'
  27745. + ;;
  27746. +
  27747. +netbsd*)
  27748. + version_type=sunos
  27749. + need_lib_prefix=no
  27750. + need_version=no
  27751. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  27752. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27753. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  27754. + dynamic_linker='NetBSD (a.out) ld.so'
  27755. + else
  27756. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  27757. + soname_spec='${libname}${release}${shared_ext}$major'
  27758. + dynamic_linker='NetBSD ld.elf_so'
  27759. + fi
  27760. + shlibpath_var=LD_LIBRARY_PATH
  27761. + shlibpath_overrides_runpath=yes
  27762. + hardcode_into_libs=yes
  27763. + ;;
  27764. +
  27765. +newsos6)
  27766. + version_type=linux
  27767. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27768. + shlibpath_var=LD_LIBRARY_PATH
  27769. + shlibpath_overrides_runpath=yes
  27770. + ;;
  27771. +
  27772. +*nto* | *qnx*)
  27773. + version_type=qnx
  27774. + need_lib_prefix=no
  27775. + need_version=no
  27776. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27777. + soname_spec='${libname}${release}${shared_ext}$major'
  27778. + shlibpath_var=LD_LIBRARY_PATH
  27779. + shlibpath_overrides_runpath=no
  27780. + hardcode_into_libs=yes
  27781. + dynamic_linker='ldqnx.so'
  27782. + ;;
  27783. +
  27784. +openbsd*)
  27785. + version_type=sunos
  27786. + sys_lib_dlsearch_path_spec="/usr/lib"
  27787. + need_lib_prefix=no
  27788. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  27789. + case $host_os in
  27790. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  27791. + *) need_version=no ;;
  27792. + esac
  27793. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27794. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  27795. + shlibpath_var=LD_LIBRARY_PATH
  27796. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  27797. + case $host_os in
  27798. + openbsd2.[89] | openbsd2.[89].*)
  27799. + shlibpath_overrides_runpath=no
  27800. + ;;
  27801. + *)
  27802. + shlibpath_overrides_runpath=yes
  27803. + ;;
  27804. + esac
  27805. + else
  27806. + shlibpath_overrides_runpath=yes
  27807. + fi
  27808. + ;;
  27809. +
  27810. +os2*)
  27811. + libname_spec='$name'
  27812. + shrext_cmds=".dll"
  27813. + need_lib_prefix=no
  27814. + library_names_spec='$libname${shared_ext} $libname.a'
  27815. + dynamic_linker='OS/2 ld.exe'
  27816. + shlibpath_var=LIBPATH
  27817. + ;;
  27818. +
  27819. +osf3* | osf4* | osf5*)
  27820. + version_type=osf
  27821. + need_lib_prefix=no
  27822. + need_version=no
  27823. + soname_spec='${libname}${release}${shared_ext}$major'
  27824. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27825. + shlibpath_var=LD_LIBRARY_PATH
  27826. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  27827. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  27828. + ;;
  27829. +
  27830. +rdos*)
  27831. + dynamic_linker=no
  27832. + ;;
  27833. +
  27834. +solaris*)
  27835. + version_type=linux
  27836. + need_lib_prefix=no
  27837. + need_version=no
  27838. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27839. + soname_spec='${libname}${release}${shared_ext}$major'
  27840. + shlibpath_var=LD_LIBRARY_PATH
  27841. + shlibpath_overrides_runpath=yes
  27842. + hardcode_into_libs=yes
  27843. + # ldd complains unless libraries are executable
  27844. + postinstall_cmds='chmod +x $lib'
  27845. + ;;
  27846. +
  27847. +sunos4*)
  27848. + version_type=sunos
  27849. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27850. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  27851. + shlibpath_var=LD_LIBRARY_PATH
  27852. + shlibpath_overrides_runpath=yes
  27853. + if test "$with_gnu_ld" = yes; then
  27854. + need_lib_prefix=no
  27855. + fi
  27856. + need_version=yes
  27857. + ;;
  27858. +
  27859. +sysv4 | sysv4.3*)
  27860. + version_type=linux
  27861. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27862. + soname_spec='${libname}${release}${shared_ext}$major'
  27863. + shlibpath_var=LD_LIBRARY_PATH
  27864. + case $host_vendor in
  27865. + sni)
  27866. + shlibpath_overrides_runpath=no
  27867. + need_lib_prefix=no
  27868. + runpath_var=LD_RUN_PATH
  27869. + ;;
  27870. + siemens)
  27871. + need_lib_prefix=no
  27872. + ;;
  27873. + motorola)
  27874. + need_lib_prefix=no
  27875. + need_version=no
  27876. + shlibpath_overrides_runpath=no
  27877. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  27878. + ;;
  27879. + esac
  27880. + ;;
  27881. +
  27882. +sysv4*MP*)
  27883. + if test -d /usr/nec ;then
  27884. + version_type=linux
  27885. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  27886. + soname_spec='$libname${shared_ext}.$major'
  27887. + shlibpath_var=LD_LIBRARY_PATH
  27888. + fi
  27889. + ;;
  27890. +
  27891. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  27892. + version_type=freebsd-elf
  27893. + need_lib_prefix=no
  27894. + need_version=no
  27895. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  27896. + soname_spec='${libname}${release}${shared_ext}$major'
  27897. + shlibpath_var=LD_LIBRARY_PATH
  27898. + shlibpath_overrides_runpath=yes
  27899. + hardcode_into_libs=yes
  27900. + if test "$with_gnu_ld" = yes; then
  27901. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  27902. + else
  27903. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  27904. + case $host_os in
  27905. + sco3.2v5*)
  27906. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  27907. + ;;
  27908. + esac
  27909. + fi
  27910. + sys_lib_dlsearch_path_spec='/usr/lib'
  27911. + ;;
  27912. +
  27913. +tpf*)
  27914. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  27915. + version_type=linux
  27916. + need_lib_prefix=no
  27917. + need_version=no
  27918. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27919. + shlibpath_var=LD_LIBRARY_PATH
  27920. + shlibpath_overrides_runpath=no
  27921. + hardcode_into_libs=yes
  27922. + ;;
  27923. +
  27924. +uts4*)
  27925. + version_type=linux
  27926. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27927. + soname_spec='${libname}${release}${shared_ext}$major'
  27928. + shlibpath_var=LD_LIBRARY_PATH
  27929. + ;;
  27930. +
  27931. +*)
  27932. + dynamic_linker=no
  27933. + ;;
  27934. +esac
  27935. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  27936. +$as_echo "$dynamic_linker" >&6; }
  27937. +test "$dynamic_linker" = no && can_build_shared=no
  27938. +
  27939. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  27940. +if test "$GCC" = yes; then
  27941. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  27942. +fi
  27943. +
  27944. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  27945. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  27946. +fi
  27947. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  27948. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  27949. +fi
  27950. +
  27951. +
  27952. +
  27953. +
  27954. +
  27955. +
  27956. +
  27957. +
  27958. +
  27959. +
  27960. +
  27961. +
  27962. +
  27963. +
  27964. +
  27965. +
  27966. +
  27967. +
  27968. +
  27969. +
  27970. +
  27971. +
  27972. +
  27973. +
  27974. +
  27975. +
  27976. +
  27977. +
  27978. +
  27979. +
  27980. +
  27981. +
  27982. +
  27983. +
  27984. +
  27985. +
  27986. +
  27987. +
  27988. +
  27989. +
  27990. +
  27991. +
  27992. +
  27993. +
  27994. +
  27995. +
  27996. +
  27997. +
  27998. +
  27999. +
  28000. +
  28001. +
  28002. +
  28003. +
  28004. +
  28005. +
  28006. +
  28007. +
  28008. +
  28009. +
  28010. +
  28011. +
  28012. +
  28013. +
  28014. +
  28015. +
  28016. +
  28017. +
  28018. +
  28019. +
  28020. +
  28021. +
  28022. +
  28023. +
  28024. +
  28025. +
  28026. +
  28027. +
  28028. +
  28029. +
  28030. +
  28031. +
  28032. +
  28033. +
  28034. +
  28035. +
  28036. +
  28037. +
  28038. +
  28039. +
  28040. +
  28041. +
  28042. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  28043. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  28044. +hardcode_action=
  28045. +if test -n "$hardcode_libdir_flag_spec" ||
  28046. + test -n "$runpath_var" ||
  28047. + test "X$hardcode_automatic" = "Xyes" ; then
  28048. +
  28049. + # We can hardcode non-existent directories.
  28050. + if test "$hardcode_direct" != no &&
  28051. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  28052. + # have to relink, otherwise we might link with an installed library
  28053. + # when we should be linking with a yet-to-be-installed one
  28054. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  28055. + test "$hardcode_minus_L" != no; then
  28056. + # Linking always hardcodes the temporary library directory.
  28057. + hardcode_action=relink
  28058. + else
  28059. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  28060. + hardcode_action=immediate
  28061. + fi
  28062. +else
  28063. + # We cannot hardcode anything, or else we can only hardcode existing
  28064. + # directories.
  28065. + hardcode_action=unsupported
  28066. +fi
  28067. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  28068. +$as_echo "$hardcode_action" >&6; }
  28069. +
  28070. +if test "$hardcode_action" = relink ||
  28071. + test "$inherit_rpath" = yes; then
  28072. + # Fast installation is not supported
  28073. + enable_fast_install=no
  28074. +elif test "$shlibpath_overrides_runpath" = yes ||
  28075. + test "$enable_shared" = no; then
  28076. + # Fast installation is not necessary
  28077. + enable_fast_install=needless
  28078. +fi
  28079. +
  28080. +
  28081. +
  28082. +
  28083. +
  28084. +
  28085. + if test "x$enable_dlopen" != xyes; then
  28086. + enable_dlopen=unknown
  28087. + enable_dlopen_self=unknown
  28088. + enable_dlopen_self_static=unknown
  28089. +else
  28090. + lt_cv_dlopen=no
  28091. + lt_cv_dlopen_libs=
  28092. +
  28093. + case $host_os in
  28094. + beos*)
  28095. + lt_cv_dlopen="load_add_on"
  28096. + lt_cv_dlopen_libs=
  28097. + lt_cv_dlopen_self=yes
  28098. + ;;
  28099. +
  28100. + mingw* | pw32* | cegcc*)
  28101. + lt_cv_dlopen="LoadLibrary"
  28102. + lt_cv_dlopen_libs=
  28103. + ;;
  28104. +
  28105. + cygwin*)
  28106. + lt_cv_dlopen="dlopen"
  28107. + lt_cv_dlopen_libs=
  28108. + ;;
  28109. +
  28110. + darwin*)
  28111. + # if libdl is installed we need to link against it
  28112. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  28113. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  28114. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  28115. + $as_echo_n "(cached) " >&6
  28116. +else
  28117. + ac_check_lib_save_LIBS=$LIBS
  28118. +LIBS="-ldl $LIBS"
  28119. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28120. +/* end confdefs.h. */
  28121. +
  28122. +/* Override any GCC internal prototype to avoid an error.
  28123. + Use char because int might match the return type of a GCC
  28124. + builtin and then its argument prototype would still apply. */
  28125. +#ifdef __cplusplus
  28126. +extern "C"
  28127. +#endif
  28128. +char dlopen ();
  28129. +int
  28130. +main ()
  28131. +{
  28132. +return dlopen ();
  28133. + ;
  28134. + return 0;
  28135. +}
  28136. +_ACEOF
  28137. +if ac_fn_c_try_link "$LINENO"; then :
  28138. + ac_cv_lib_dl_dlopen=yes
  28139. +else
  28140. + ac_cv_lib_dl_dlopen=no
  28141. +fi
  28142. +rm -f core conftest.err conftest.$ac_objext \
  28143. + conftest$ac_exeext conftest.$ac_ext
  28144. +LIBS=$ac_check_lib_save_LIBS
  28145. +fi
  28146. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  28147. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  28148. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  28149. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  28150. +else
  28151. +
  28152. + lt_cv_dlopen="dyld"
  28153. + lt_cv_dlopen_libs=
  28154. + lt_cv_dlopen_self=yes
  28155. +
  28156. +fi
  28157. +
  28158. + ;;
  28159. +
  28160. + *)
  28161. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  28162. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  28163. + lt_cv_dlopen="shl_load"
  28164. +else
  28165. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  28166. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  28167. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  28168. + $as_echo_n "(cached) " >&6
  28169. +else
  28170. + ac_check_lib_save_LIBS=$LIBS
  28171. +LIBS="-ldld $LIBS"
  28172. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28173. +/* end confdefs.h. */
  28174. +
  28175. +/* Override any GCC internal prototype to avoid an error.
  28176. + Use char because int might match the return type of a GCC
  28177. + builtin and then its argument prototype would still apply. */
  28178. +#ifdef __cplusplus
  28179. +extern "C"
  28180. +#endif
  28181. +char shl_load ();
  28182. +int
  28183. +main ()
  28184. +{
  28185. +return shl_load ();
  28186. + ;
  28187. + return 0;
  28188. +}
  28189. +_ACEOF
  28190. +if ac_fn_c_try_link "$LINENO"; then :
  28191. + ac_cv_lib_dld_shl_load=yes
  28192. +else
  28193. + ac_cv_lib_dld_shl_load=no
  28194. +fi
  28195. +rm -f core conftest.err conftest.$ac_objext \
  28196. + conftest$ac_exeext conftest.$ac_ext
  28197. +LIBS=$ac_check_lib_save_LIBS
  28198. +fi
  28199. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  28200. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  28201. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  28202. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  28203. +else
  28204. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  28205. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  28206. + lt_cv_dlopen="dlopen"
  28207. +else
  28208. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  28209. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  28210. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  28211. + $as_echo_n "(cached) " >&6
  28212. +else
  28213. + ac_check_lib_save_LIBS=$LIBS
  28214. +LIBS="-ldl $LIBS"
  28215. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28216. +/* end confdefs.h. */
  28217. +
  28218. +/* Override any GCC internal prototype to avoid an error.
  28219. + Use char because int might match the return type of a GCC
  28220. + builtin and then its argument prototype would still apply. */
  28221. +#ifdef __cplusplus
  28222. +extern "C"
  28223. +#endif
  28224. +char dlopen ();
  28225. +int
  28226. +main ()
  28227. +{
  28228. +return dlopen ();
  28229. + ;
  28230. + return 0;
  28231. +}
  28232. +_ACEOF
  28233. +if ac_fn_c_try_link "$LINENO"; then :
  28234. + ac_cv_lib_dl_dlopen=yes
  28235. +else
  28236. + ac_cv_lib_dl_dlopen=no
  28237. +fi
  28238. +rm -f core conftest.err conftest.$ac_objext \
  28239. + conftest$ac_exeext conftest.$ac_ext
  28240. +LIBS=$ac_check_lib_save_LIBS
  28241. +fi
  28242. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  28243. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  28244. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  28245. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  28246. +else
  28247. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  28248. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  28249. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  28250. + $as_echo_n "(cached) " >&6
  28251. +else
  28252. + ac_check_lib_save_LIBS=$LIBS
  28253. +LIBS="-lsvld $LIBS"
  28254. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28255. +/* end confdefs.h. */
  28256. +
  28257. +/* Override any GCC internal prototype to avoid an error.
  28258. + Use char because int might match the return type of a GCC
  28259. + builtin and then its argument prototype would still apply. */
  28260. +#ifdef __cplusplus
  28261. +extern "C"
  28262. +#endif
  28263. +char dlopen ();
  28264. +int
  28265. +main ()
  28266. +{
  28267. +return dlopen ();
  28268. + ;
  28269. + return 0;
  28270. +}
  28271. +_ACEOF
  28272. +if ac_fn_c_try_link "$LINENO"; then :
  28273. + ac_cv_lib_svld_dlopen=yes
  28274. +else
  28275. + ac_cv_lib_svld_dlopen=no
  28276. +fi
  28277. +rm -f core conftest.err conftest.$ac_objext \
  28278. + conftest$ac_exeext conftest.$ac_ext
  28279. +LIBS=$ac_check_lib_save_LIBS
  28280. +fi
  28281. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  28282. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  28283. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  28284. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  28285. +else
  28286. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  28287. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  28288. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  28289. + $as_echo_n "(cached) " >&6
  28290. +else
  28291. + ac_check_lib_save_LIBS=$LIBS
  28292. +LIBS="-ldld $LIBS"
  28293. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28294. +/* end confdefs.h. */
  28295. +
  28296. +/* Override any GCC internal prototype to avoid an error.
  28297. + Use char because int might match the return type of a GCC
  28298. + builtin and then its argument prototype would still apply. */
  28299. +#ifdef __cplusplus
  28300. +extern "C"
  28301. +#endif
  28302. +char dld_link ();
  28303. +int
  28304. +main ()
  28305. +{
  28306. +return dld_link ();
  28307. + ;
  28308. + return 0;
  28309. +}
  28310. +_ACEOF
  28311. +if ac_fn_c_try_link "$LINENO"; then :
  28312. + ac_cv_lib_dld_dld_link=yes
  28313. +else
  28314. + ac_cv_lib_dld_dld_link=no
  28315. +fi
  28316. +rm -f core conftest.err conftest.$ac_objext \
  28317. + conftest$ac_exeext conftest.$ac_ext
  28318. +LIBS=$ac_check_lib_save_LIBS
  28319. +fi
  28320. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  28321. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  28322. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  28323. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  28324. +fi
  28325. +
  28326. +
  28327. +fi
  28328. +
  28329. +
  28330. +fi
  28331. +
  28332. +
  28333. +fi
  28334. +
  28335. +
  28336. +fi
  28337. +
  28338. +
  28339. +fi
  28340. +
  28341. + ;;
  28342. + esac
  28343. +
  28344. + if test "x$lt_cv_dlopen" != xno; then
  28345. + enable_dlopen=yes
  28346. + else
  28347. + enable_dlopen=no
  28348. + fi
  28349. +
  28350. + case $lt_cv_dlopen in
  28351. + dlopen)
  28352. + save_CPPFLAGS="$CPPFLAGS"
  28353. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  28354. +
  28355. + save_LDFLAGS="$LDFLAGS"
  28356. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  28357. +
  28358. + save_LIBS="$LIBS"
  28359. + LIBS="$lt_cv_dlopen_libs $LIBS"
  28360. +
  28361. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  28362. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  28363. +if test "${lt_cv_dlopen_self+set}" = set; then :
  28364. + $as_echo_n "(cached) " >&6
  28365. +else
  28366. + if test "$cross_compiling" = yes; then :
  28367. + lt_cv_dlopen_self=cross
  28368. +else
  28369. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  28370. + lt_status=$lt_dlunknown
  28371. + cat > conftest.$ac_ext <<_LT_EOF
  28372. +#line 17939 "configure"
  28373. +#include "confdefs.h"
  28374. +
  28375. +#if HAVE_DLFCN_H
  28376. +#include <dlfcn.h>
  28377. +#endif
  28378. +
  28379. +#include <stdio.h>
  28380. +
  28381. +#ifdef RTLD_GLOBAL
  28382. +# define LT_DLGLOBAL RTLD_GLOBAL
  28383. +#else
  28384. +# ifdef DL_GLOBAL
  28385. +# define LT_DLGLOBAL DL_GLOBAL
  28386. +# else
  28387. +# define LT_DLGLOBAL 0
  28388. +# endif
  28389. +#endif
  28390. +
  28391. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  28392. + find out it does not work in some platform. */
  28393. +#ifndef LT_DLLAZY_OR_NOW
  28394. +# ifdef RTLD_LAZY
  28395. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  28396. +# else
  28397. +# ifdef DL_LAZY
  28398. +# define LT_DLLAZY_OR_NOW DL_LAZY
  28399. +# else
  28400. +# ifdef RTLD_NOW
  28401. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  28402. +# else
  28403. +# ifdef DL_NOW
  28404. +# define LT_DLLAZY_OR_NOW DL_NOW
  28405. +# else
  28406. +# define LT_DLLAZY_OR_NOW 0
  28407. +# endif
  28408. +# endif
  28409. +# endif
  28410. +# endif
  28411. +#endif
  28412. +
  28413. +/* When -fvisbility=hidden is used, assume the code has been annotated
  28414. + correspondingly for the symbols needed. */
  28415. +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  28416. +void fnord () __attribute__((visibility("default")));
  28417. +#endif
  28418. +
  28419. +void fnord () { int i=42; }
  28420. +int main ()
  28421. +{
  28422. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  28423. + int status = $lt_dlunknown;
  28424. +
  28425. + if (self)
  28426. + {
  28427. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  28428. + else
  28429. + {
  28430. + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  28431. + else puts (dlerror ());
  28432. + }
  28433. + /* dlclose (self); */
  28434. + }
  28435. + else
  28436. + puts (dlerror ());
  28437. +
  28438. + return status;
  28439. +}
  28440. +_LT_EOF
  28441. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  28442. + (eval $ac_link) 2>&5
  28443. + ac_status=$?
  28444. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  28445. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  28446. + (./conftest; exit; ) >&5 2>/dev/null
  28447. + lt_status=$?
  28448. + case x$lt_status in
  28449. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  28450. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  28451. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  28452. + esac
  28453. + else :
  28454. + # compilation failed
  28455. + lt_cv_dlopen_self=no
  28456. + fi
  28457. +fi
  28458. +rm -fr conftest*
  28459. +
  28460. +
  28461. +fi
  28462. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  28463. +$as_echo "$lt_cv_dlopen_self" >&6; }
  28464. +
  28465. + if test "x$lt_cv_dlopen_self" = xyes; then
  28466. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  28467. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  28468. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  28469. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  28470. + $as_echo_n "(cached) " >&6
  28471. +else
  28472. + if test "$cross_compiling" = yes; then :
  28473. + lt_cv_dlopen_self_static=cross
  28474. +else
  28475. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  28476. + lt_status=$lt_dlunknown
  28477. + cat > conftest.$ac_ext <<_LT_EOF
  28478. +#line 18045 "configure"
  28479. +#include "confdefs.h"
  28480. +
  28481. +#if HAVE_DLFCN_H
  28482. +#include <dlfcn.h>
  28483. +#endif
  28484. +
  28485. +#include <stdio.h>
  28486. +
  28487. +#ifdef RTLD_GLOBAL
  28488. +# define LT_DLGLOBAL RTLD_GLOBAL
  28489. +#else
  28490. +# ifdef DL_GLOBAL
  28491. +# define LT_DLGLOBAL DL_GLOBAL
  28492. +# else
  28493. +# define LT_DLGLOBAL 0
  28494. +# endif
  28495. +#endif
  28496. +
  28497. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  28498. + find out it does not work in some platform. */
  28499. +#ifndef LT_DLLAZY_OR_NOW
  28500. +# ifdef RTLD_LAZY
  28501. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  28502. +# else
  28503. +# ifdef DL_LAZY
  28504. +# define LT_DLLAZY_OR_NOW DL_LAZY
  28505. +# else
  28506. +# ifdef RTLD_NOW
  28507. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  28508. +# else
  28509. +# ifdef DL_NOW
  28510. +# define LT_DLLAZY_OR_NOW DL_NOW
  28511. +# else
  28512. +# define LT_DLLAZY_OR_NOW 0
  28513. +# endif
  28514. +# endif
  28515. +# endif
  28516. +# endif
  28517. +#endif
  28518. +
  28519. +/* When -fvisbility=hidden is used, assume the code has been annotated
  28520. + correspondingly for the symbols needed. */
  28521. +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  28522. +void fnord () __attribute__((visibility("default")));
  28523. +#endif
  28524. +
  28525. +void fnord () { int i=42; }
  28526. +int main ()
  28527. +{
  28528. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  28529. + int status = $lt_dlunknown;
  28530. +
  28531. + if (self)
  28532. + {
  28533. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  28534. + else
  28535. + {
  28536. + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  28537. + else puts (dlerror ());
  28538. + }
  28539. + /* dlclose (self); */
  28540. + }
  28541. + else
  28542. + puts (dlerror ());
  28543. +
  28544. + return status;
  28545. +}
  28546. +_LT_EOF
  28547. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  28548. + (eval $ac_link) 2>&5
  28549. + ac_status=$?
  28550. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  28551. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  28552. + (./conftest; exit; ) >&5 2>/dev/null
  28553. + lt_status=$?
  28554. + case x$lt_status in
  28555. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  28556. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  28557. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  28558. + esac
  28559. + else :
  28560. + # compilation failed
  28561. + lt_cv_dlopen_self_static=no
  28562. + fi
  28563. +fi
  28564. +rm -fr conftest*
  28565. +
  28566. +
  28567. +fi
  28568. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  28569. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  28570. + fi
  28571. +
  28572. + CPPFLAGS="$save_CPPFLAGS"
  28573. + LDFLAGS="$save_LDFLAGS"
  28574. + LIBS="$save_LIBS"
  28575. + ;;
  28576. + esac
  28577. +
  28578. + case $lt_cv_dlopen_self in
  28579. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  28580. + *) enable_dlopen_self=unknown ;;
  28581. + esac
  28582. +
  28583. + case $lt_cv_dlopen_self_static in
  28584. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  28585. + *) enable_dlopen_self_static=unknown ;;
  28586. + esac
  28587. +fi
  28588. +
  28589. +
  28590. +
  28591. +
  28592. +
  28593. +
  28594. +
  28595. +
  28596. +
  28597. +
  28598. +
  28599. +
  28600. +
  28601. +
  28602. +
  28603. +
  28604. +
  28605. +striplib=
  28606. +old_striplib=
  28607. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  28608. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  28609. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  28610. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  28611. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  28612. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28613. +$as_echo "yes" >&6; }
  28614. +else
  28615. +# FIXME - insert some real tests, host_os isn't really good enough
  28616. + case $host_os in
  28617. + darwin*)
  28618. + if test -n "$STRIP" ; then
  28619. + striplib="$STRIP -x"
  28620. + old_striplib="$STRIP -S"
  28621. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28622. +$as_echo "yes" >&6; }
  28623. + else
  28624. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28625. +$as_echo "no" >&6; }
  28626. + fi
  28627. + ;;
  28628. + *)
  28629. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28630. +$as_echo "no" >&6; }
  28631. + ;;
  28632. + esac
  28633. +fi
  28634. +
  28635. +
  28636. +
  28637. +
  28638. +
  28639. +
  28640. +
  28641. +
  28642. +
  28643. +
  28644. +
  28645. +
  28646. + # Report which library types will actually be built
  28647. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  28648. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  28649. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  28650. +$as_echo "$can_build_shared" >&6; }
  28651. +
  28652. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  28653. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  28654. + test "$can_build_shared" = "no" && enable_shared=no
  28655. +
  28656. + # On AIX, shared libraries and static libraries use the same namespace, and
  28657. + # are all built from PIC.
  28658. + case $host_os in
  28659. + aix3*)
  28660. + test "$enable_shared" = yes && enable_static=no
  28661. + if test -n "$RANLIB"; then
  28662. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  28663. + postinstall_cmds='$RANLIB $lib'
  28664. + fi
  28665. + ;;
  28666. +
  28667. + aix[4-9]*)
  28668. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  28669. + test "$enable_shared" = yes && enable_static=no
  28670. + fi
  28671. + ;;
  28672. + esac
  28673. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  28674. +$as_echo "$enable_shared" >&6; }
  28675. +
  28676. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  28677. +$as_echo_n "checking whether to build static libraries... " >&6; }
  28678. + # Make sure either enable_shared or enable_static is yes.
  28679. + test "$enable_shared" = yes || enable_static=yes
  28680. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  28681. +$as_echo "$enable_static" >&6; }
  28682. +
  28683. +
  28684. +
  28685. +
  28686. +fi
  28687. +ac_ext=c
  28688. +ac_cpp='$CPP $CPPFLAGS'
  28689. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28690. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28691. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28692. +
  28693. +CC="$lt_save_CC"
  28694. +
  28695. + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  28696. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  28697. + (test "X$CXX" != "Xg++"))) ; then
  28698. + ac_ext=cpp
  28699. +ac_cpp='$CXXCPP $CPPFLAGS'
  28700. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28701. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28702. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28703. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  28704. +$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  28705. +if test -z "$CXXCPP"; then
  28706. + if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  28707. + $as_echo_n "(cached) " >&6
  28708. +else
  28709. + # Double quotes because CXXCPP needs to be expanded
  28710. + for CXXCPP in "$CXX -E" "/lib/cpp"
  28711. + do
  28712. + ac_preproc_ok=false
  28713. +for ac_cxx_preproc_warn_flag in '' yes
  28714. +do
  28715. + # Use a header file that comes with gcc, so configuring glibc
  28716. + # with a fresh cross-compiler works.
  28717. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28718. + # <limits.h> exists even on freestanding compilers.
  28719. + # On the NeXT, cc -E runs the code through the compiler's parser,
  28720. + # not just through cpp. "Syntax error" is here to catch this case.
  28721. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28722. +/* end confdefs.h. */
  28723. +#ifdef __STDC__
  28724. +# include <limits.h>
  28725. +#else
  28726. +# include <assert.h>
  28727. +#endif
  28728. + Syntax error
  28729. +_ACEOF
  28730. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  28731. +
  28732. +else
  28733. + # Broken: fails on valid input.
  28734. +continue
  28735. +fi
  28736. +rm -f conftest.err conftest.$ac_ext
  28737. +
  28738. + # OK, works on sane cases. Now check whether nonexistent headers
  28739. + # can be detected and how.
  28740. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28741. +/* end confdefs.h. */
  28742. +#include <ac_nonexistent.h>
  28743. +_ACEOF
  28744. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  28745. + # Broken: success on invalid input.
  28746. +continue
  28747. +else
  28748. + # Passes both tests.
  28749. +ac_preproc_ok=:
  28750. +break
  28751. +fi
  28752. +rm -f conftest.err conftest.$ac_ext
  28753. +
  28754. +done
  28755. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  28756. +rm -f conftest.err conftest.$ac_ext
  28757. +if $ac_preproc_ok; then :
  28758. + break
  28759. +fi
  28760. +
  28761. + done
  28762. + ac_cv_prog_CXXCPP=$CXXCPP
  28763. +
  28764. +fi
  28765. + CXXCPP=$ac_cv_prog_CXXCPP
  28766. +else
  28767. + ac_cv_prog_CXXCPP=$CXXCPP
  28768. +fi
  28769. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  28770. +$as_echo "$CXXCPP" >&6; }
  28771. +ac_preproc_ok=false
  28772. +for ac_cxx_preproc_warn_flag in '' yes
  28773. +do
  28774. + # Use a header file that comes with gcc, so configuring glibc
  28775. + # with a fresh cross-compiler works.
  28776. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28777. + # <limits.h> exists even on freestanding compilers.
  28778. + # On the NeXT, cc -E runs the code through the compiler's parser,
  28779. + # not just through cpp. "Syntax error" is here to catch this case.
  28780. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28781. +/* end confdefs.h. */
  28782. +#ifdef __STDC__
  28783. +# include <limits.h>
  28784. +#else
  28785. +# include <assert.h>
  28786. +#endif
  28787. + Syntax error
  28788. +_ACEOF
  28789. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  28790. +
  28791. +else
  28792. + # Broken: fails on valid input.
  28793. +continue
  28794. +fi
  28795. +rm -f conftest.err conftest.$ac_ext
  28796. +
  28797. + # OK, works on sane cases. Now check whether nonexistent headers
  28798. + # can be detected and how.
  28799. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28800. +/* end confdefs.h. */
  28801. +#include <ac_nonexistent.h>
  28802. +_ACEOF
  28803. +if ac_fn_cxx_try_cpp "$LINENO"; then :
  28804. + # Broken: success on invalid input.
  28805. +continue
  28806. +else
  28807. + # Passes both tests.
  28808. +ac_preproc_ok=:
  28809. +break
  28810. +fi
  28811. +rm -f conftest.err conftest.$ac_ext
  28812. +
  28813. +done
  28814. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  28815. +rm -f conftest.err conftest.$ac_ext
  28816. +if $ac_preproc_ok; then :
  28817. +
  28818. +else
  28819. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  28820. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28821. +as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  28822. +See \`config.log' for more details." "$LINENO" 5; }
  28823. +fi
  28824. +
  28825. +ac_ext=c
  28826. +ac_cpp='$CPP $CPPFLAGS'
  28827. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28828. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28829. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28830. +
  28831. +else
  28832. + _lt_caught_CXX_error=yes
  28833. +fi
  28834. +
  28835. +ac_ext=cpp
  28836. +ac_cpp='$CXXCPP $CPPFLAGS'
  28837. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28838. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28839. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28840. +
  28841. +archive_cmds_need_lc_CXX=no
  28842. +allow_undefined_flag_CXX=
  28843. +always_export_symbols_CXX=no
  28844. +archive_expsym_cmds_CXX=
  28845. +compiler_needs_object_CXX=no
  28846. +export_dynamic_flag_spec_CXX=
  28847. +hardcode_direct_CXX=no
  28848. +hardcode_direct_absolute_CXX=no
  28849. +hardcode_libdir_flag_spec_CXX=
  28850. +hardcode_libdir_flag_spec_ld_CXX=
  28851. +hardcode_libdir_separator_CXX=
  28852. +hardcode_minus_L_CXX=no
  28853. +hardcode_shlibpath_var_CXX=unsupported
  28854. +hardcode_automatic_CXX=no
  28855. +inherit_rpath_CXX=no
  28856. +module_cmds_CXX=
  28857. +module_expsym_cmds_CXX=
  28858. +link_all_deplibs_CXX=unknown
  28859. +old_archive_cmds_CXX=$old_archive_cmds
  28860. +reload_flag_CXX=$reload_flag
  28861. +reload_cmds_CXX=$reload_cmds
  28862. +no_undefined_flag_CXX=
  28863. +whole_archive_flag_spec_CXX=
  28864. +enable_shared_with_static_runtimes_CXX=no
  28865. +
  28866. +# Source file extension for C++ test sources.
  28867. +ac_ext=cpp
  28868. +
  28869. +# Object file extension for compiled C++ test sources.
  28870. +objext=o
  28871. +objext_CXX=$objext
  28872. +
  28873. +# No sense in running all these tests if we already determined that
  28874. +# the CXX compiler isn't working. Some variables (like enable_shared)
  28875. +# are currently assumed to apply to all compilers on this platform,
  28876. +# and will be corrupted by setting them based on a non-working compiler.
  28877. +if test "$_lt_caught_CXX_error" != yes; then
  28878. + # Code to be used in simple compile tests
  28879. + lt_simple_compile_test_code="int some_variable = 0;"
  28880. +
  28881. + # Code to be used in simple link tests
  28882. + lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  28883. +
  28884. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  28885. +
  28886. +
  28887. +
  28888. +
  28889. +
  28890. +
  28891. +# If no C compiler was specified, use CC.
  28892. +LTCC=${LTCC-"$CC"}
  28893. +
  28894. +# If no C compiler flags were specified, use CFLAGS.
  28895. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  28896. +
  28897. +# Allow CC to be a program name with arguments.
  28898. +compiler=$CC
  28899. +
  28900. +
  28901. + # save warnings/boilerplate of simple test code
  28902. + ac_outfile=conftest.$ac_objext
  28903. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  28904. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  28905. +_lt_compiler_boilerplate=`cat conftest.err`
  28906. +$RM conftest*
  28907. +
  28908. + ac_outfile=conftest.$ac_objext
  28909. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  28910. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  28911. +_lt_linker_boilerplate=`cat conftest.err`
  28912. +$RM -r conftest*
  28913. +
  28914. +
  28915. + # Allow CC to be a program name with arguments.
  28916. + lt_save_CC=$CC
  28917. + lt_save_LD=$LD
  28918. + lt_save_GCC=$GCC
  28919. + GCC=$GXX
  28920. + lt_save_with_gnu_ld=$with_gnu_ld
  28921. + lt_save_path_LD=$lt_cv_path_LD
  28922. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  28923. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  28924. + else
  28925. + $as_unset lt_cv_prog_gnu_ld
  28926. + fi
  28927. + if test -n "${lt_cv_path_LDCXX+set}"; then
  28928. + lt_cv_path_LD=$lt_cv_path_LDCXX
  28929. + else
  28930. + $as_unset lt_cv_path_LD
  28931. + fi
  28932. + test -z "${LDCXX+set}" || LD=$LDCXX
  28933. + CC=${CXX-"c++"}
  28934. + compiler=$CC
  28935. + compiler_CXX=$CC
  28936. + for cc_temp in $compiler""; do
  28937. + case $cc_temp in
  28938. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  28939. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  28940. + \-*) ;;
  28941. + *) break;;
  28942. + esac
  28943. +done
  28944. +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  28945. +
  28946. +
  28947. + if test -n "$compiler"; then
  28948. + # We don't want -fno-exception when compiling C++ code, so set the
  28949. + # no_builtin_flag separately
  28950. + if test "$GXX" = yes; then
  28951. + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  28952. + else
  28953. + lt_prog_compiler_no_builtin_flag_CXX=
  28954. + fi
  28955. +
  28956. + if test "$GXX" = yes; then
  28957. + # Set up default GNU C++ configuration
  28958. +
  28959. +
  28960. +
  28961. +# Check whether --with-gnu-ld was given.
  28962. +if test "${with_gnu_ld+set}" = set; then :
  28963. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  28964. +else
  28965. + with_gnu_ld=no
  28966. +fi
  28967. +
  28968. +ac_prog=ld
  28969. +if test "$GCC" = yes; then
  28970. + # Check if gcc -print-prog-name=ld gives a path.
  28971. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  28972. +$as_echo_n "checking for ld used by $CC... " >&6; }
  28973. + case $host in
  28974. + *-*-mingw*)
  28975. + # gcc leaves a trailing carriage return which upsets mingw
  28976. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  28977. + *)
  28978. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  28979. + esac
  28980. + case $ac_prog in
  28981. + # Accept absolute paths.
  28982. + [\\/]* | ?:[\\/]*)
  28983. + re_direlt='/[^/][^/]*/\.\./'
  28984. + # Canonicalize the pathname of ld
  28985. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  28986. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  28987. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  28988. + done
  28989. + test -z "$LD" && LD="$ac_prog"
  28990. + ;;
  28991. + "")
  28992. + # If it fails, then pretend we aren't using GCC.
  28993. + ac_prog=ld
  28994. + ;;
  28995. + *)
  28996. + # If it is relative, then search for the first ld in PATH.
  28997. + with_gnu_ld=unknown
  28998. + ;;
  28999. + esac
  29000. +elif test "$with_gnu_ld" = yes; then
  29001. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  29002. +$as_echo_n "checking for GNU ld... " >&6; }
  29003. +else
  29004. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  29005. +$as_echo_n "checking for non-GNU ld... " >&6; }
  29006. +fi
  29007. +if test "${lt_cv_path_LD+set}" = set; then :
  29008. + $as_echo_n "(cached) " >&6
  29009. +else
  29010. + if test -z "$LD"; then
  29011. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  29012. + for ac_dir in $PATH; do
  29013. + IFS="$lt_save_ifs"
  29014. + test -z "$ac_dir" && ac_dir=.
  29015. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  29016. + lt_cv_path_LD="$ac_dir/$ac_prog"
  29017. + # Check to see if the program is GNU ld. I'd rather use --version,
  29018. + # but apparently some variants of GNU ld only accept -v.
  29019. + # Break only if it was the GNU/non-GNU ld that we prefer.
  29020. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  29021. + *GNU* | *'with BFD'*)
  29022. + test "$with_gnu_ld" != no && break
  29023. + ;;
  29024. + *)
  29025. + test "$with_gnu_ld" != yes && break
  29026. + ;;
  29027. + esac
  29028. + fi
  29029. + done
  29030. + IFS="$lt_save_ifs"
  29031. +else
  29032. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  29033. +fi
  29034. +fi
  29035. +
  29036. +LD="$lt_cv_path_LD"
  29037. +if test -n "$LD"; then
  29038. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  29039. +$as_echo "$LD" >&6; }
  29040. +else
  29041. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29042. +$as_echo "no" >&6; }
  29043. +fi
  29044. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  29045. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  29046. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  29047. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  29048. + $as_echo_n "(cached) " >&6
  29049. +else
  29050. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  29051. +case `$LD -v 2>&1 </dev/null` in
  29052. +*GNU* | *'with BFD'*)
  29053. + lt_cv_prog_gnu_ld=yes
  29054. + ;;
  29055. +*)
  29056. + lt_cv_prog_gnu_ld=no
  29057. + ;;
  29058. +esac
  29059. +fi
  29060. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  29061. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  29062. +with_gnu_ld=$lt_cv_prog_gnu_ld
  29063. +
  29064. +
  29065. +
  29066. +
  29067. +
  29068. +
  29069. +
  29070. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  29071. + # archiving commands below assume that GNU ld is being used.
  29072. + if test "$with_gnu_ld" = yes; then
  29073. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29074. + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29075. +
  29076. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  29077. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  29078. +
  29079. + # If archive_cmds runs LD, not CC, wlarc should be empty
  29080. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  29081. + # investigate it a little bit more. (MM)
  29082. + wlarc='${wl}'
  29083. +
  29084. + # ancient GNU ld didn't support --whole-archive et. al.
  29085. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  29086. + $GREP 'no-whole-archive' > /dev/null; then
  29087. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  29088. + else
  29089. + whole_archive_flag_spec_CXX=
  29090. + fi
  29091. + else
  29092. + with_gnu_ld=no
  29093. + wlarc=
  29094. +
  29095. + # A generic and very simple default shared library creation
  29096. + # command for GNU C++ for the case where it uses the native
  29097. + # linker, instead of GNU ld. If possible, this setting should
  29098. + # overridden to take advantage of the native linker features on
  29099. + # the platform it is being used on.
  29100. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  29101. + fi
  29102. +
  29103. + # Commands to make compiler produce verbose output that lists
  29104. + # what "hidden" libraries, object files and flags are used when
  29105. + # linking a shared library.
  29106. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  29107. +
  29108. + else
  29109. + GXX=no
  29110. + with_gnu_ld=no
  29111. + wlarc=
  29112. + fi
  29113. +
  29114. + # PORTME: fill in a description of your system's C++ link characteristics
  29115. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  29116. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  29117. + ld_shlibs_CXX=yes
  29118. + case $host_os in
  29119. + aix3*)
  29120. + # FIXME: insert proper C++ library support
  29121. + ld_shlibs_CXX=no
  29122. + ;;
  29123. + aix[4-9]*)
  29124. + if test "$host_cpu" = ia64; then
  29125. + # On IA64, the linker does run time linking by default, so we don't
  29126. + # have to do anything special.
  29127. + aix_use_runtimelinking=no
  29128. + exp_sym_flag='-Bexport'
  29129. + no_entry_flag=""
  29130. + else
  29131. + aix_use_runtimelinking=no
  29132. +
  29133. + # Test if we are trying to use run time linking or normal
  29134. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  29135. + # need to do runtime linking.
  29136. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  29137. + for ld_flag in $LDFLAGS; do
  29138. + case $ld_flag in
  29139. + *-brtl*)
  29140. + aix_use_runtimelinking=yes
  29141. + break
  29142. + ;;
  29143. + esac
  29144. + done
  29145. + ;;
  29146. + esac
  29147. +
  29148. + exp_sym_flag='-bexport'
  29149. + no_entry_flag='-bnoentry'
  29150. + fi
  29151. +
  29152. + # When large executables or shared objects are built, AIX ld can
  29153. + # have problems creating the table of contents. If linking a library
  29154. + # or program results in "error TOC overflow" add -mminimal-toc to
  29155. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  29156. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  29157. +
  29158. + archive_cmds_CXX=''
  29159. + hardcode_direct_CXX=yes
  29160. + hardcode_direct_absolute_CXX=yes
  29161. + hardcode_libdir_separator_CXX=':'
  29162. + link_all_deplibs_CXX=yes
  29163. + file_list_spec_CXX='${wl}-f,'
  29164. +
  29165. + if test "$GXX" = yes; then
  29166. + case $host_os in aix4.[012]|aix4.[012].*)
  29167. + # We only want to do this on AIX 4.2 and lower, the check
  29168. + # below for broken collect2 doesn't work under 4.3+
  29169. + collect2name=`${CC} -print-prog-name=collect2`
  29170. + if test -f "$collect2name" &&
  29171. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  29172. + then
  29173. + # We have reworked collect2
  29174. + :
  29175. + else
  29176. + # We have old collect2
  29177. + hardcode_direct_CXX=unsupported
  29178. + # It fails to find uninstalled libraries when the uninstalled
  29179. + # path is not listed in the libpath. Setting hardcode_minus_L
  29180. + # to unsupported forces relinking
  29181. + hardcode_minus_L_CXX=yes
  29182. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  29183. + hardcode_libdir_separator_CXX=
  29184. + fi
  29185. + esac
  29186. + shared_flag='-shared'
  29187. + if test "$aix_use_runtimelinking" = yes; then
  29188. + shared_flag="$shared_flag "'${wl}-G'
  29189. + fi
  29190. + else
  29191. + # not using gcc
  29192. + if test "$host_cpu" = ia64; then
  29193. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  29194. + # chokes on -Wl,-G. The following line is correct:
  29195. + shared_flag='-G'
  29196. + else
  29197. + if test "$aix_use_runtimelinking" = yes; then
  29198. + shared_flag='${wl}-G'
  29199. + else
  29200. + shared_flag='${wl}-bM:SRE'
  29201. + fi
  29202. + fi
  29203. + fi
  29204. +
  29205. + export_dynamic_flag_spec_CXX='${wl}-bexpall'
  29206. + # It seems that -bexpall does not export symbols beginning with
  29207. + # underscore (_), so it is better to generate a list of symbols to
  29208. + # export.
  29209. + always_export_symbols_CXX=yes
  29210. + if test "$aix_use_runtimelinking" = yes; then
  29211. + # Warning - without using the other runtime loading flags (-brtl),
  29212. + # -berok will link without error, but may produce a broken library.
  29213. + allow_undefined_flag_CXX='-berok'
  29214. + # Determine the default libpath from the value encoded in an empty
  29215. + # executable.
  29216. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29217. +/* end confdefs.h. */
  29218. +
  29219. +int
  29220. +main ()
  29221. +{
  29222. +
  29223. + ;
  29224. + return 0;
  29225. +}
  29226. +_ACEOF
  29227. +if ac_fn_cxx_try_link "$LINENO"; then :
  29228. +
  29229. +lt_aix_libpath_sed='
  29230. + /Import File Strings/,/^$/ {
  29231. + /^0/ {
  29232. + s/^0 *\(.*\)$/\1/
  29233. + p
  29234. + }
  29235. + }'
  29236. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29237. +# Check for a 64-bit object if we didn't find anything.
  29238. +if test -z "$aix_libpath"; then
  29239. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29240. +fi
  29241. +fi
  29242. +rm -f core conftest.err conftest.$ac_objext \
  29243. + conftest$ac_exeext conftest.$ac_ext
  29244. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  29245. +
  29246. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  29247. +
  29248. + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  29249. + else
  29250. + if test "$host_cpu" = ia64; then
  29251. + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  29252. + allow_undefined_flag_CXX="-z nodefs"
  29253. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  29254. + else
  29255. + # Determine the default libpath from the value encoded in an
  29256. + # empty executable.
  29257. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29258. +/* end confdefs.h. */
  29259. +
  29260. +int
  29261. +main ()
  29262. +{
  29263. +
  29264. + ;
  29265. + return 0;
  29266. +}
  29267. +_ACEOF
  29268. +if ac_fn_cxx_try_link "$LINENO"; then :
  29269. +
  29270. +lt_aix_libpath_sed='
  29271. + /Import File Strings/,/^$/ {
  29272. + /^0/ {
  29273. + s/^0 *\(.*\)$/\1/
  29274. + p
  29275. + }
  29276. + }'
  29277. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29278. +# Check for a 64-bit object if we didn't find anything.
  29279. +if test -z "$aix_libpath"; then
  29280. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  29281. +fi
  29282. +fi
  29283. +rm -f core conftest.err conftest.$ac_objext \
  29284. + conftest$ac_exeext conftest.$ac_ext
  29285. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  29286. +
  29287. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  29288. + # Warning - without using the other run time loading flags,
  29289. + # -berok will link without error, but may produce a broken library.
  29290. + no_undefined_flag_CXX=' ${wl}-bernotok'
  29291. + allow_undefined_flag_CXX=' ${wl}-berok'
  29292. + if test "$with_gnu_ld" = yes; then
  29293. + # We only use this code for GNU lds that support --whole-archive.
  29294. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  29295. + else
  29296. + # Exported symbols can be pulled into shared objects from archives
  29297. + whole_archive_flag_spec_CXX='$convenience'
  29298. + fi
  29299. + archive_cmds_need_lc_CXX=yes
  29300. + # This is similar to how AIX traditionally builds its shared
  29301. + # libraries.
  29302. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  29303. + fi
  29304. + fi
  29305. + ;;
  29306. +
  29307. + beos*)
  29308. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  29309. + allow_undefined_flag_CXX=unsupported
  29310. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  29311. + # support --undefined. This deserves some investigation. FIXME
  29312. + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29313. + else
  29314. + ld_shlibs_CXX=no
  29315. + fi
  29316. + ;;
  29317. +
  29318. + chorus*)
  29319. + case $cc_basename in
  29320. + *)
  29321. + # FIXME: insert proper C++ library support
  29322. + ld_shlibs_CXX=no
  29323. + ;;
  29324. + esac
  29325. + ;;
  29326. +
  29327. + cygwin* | mingw* | pw32* | cegcc*)
  29328. + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  29329. + # as there is no search path for DLLs.
  29330. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  29331. + export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  29332. + allow_undefined_flag_CXX=unsupported
  29333. + always_export_symbols_CXX=no
  29334. + enable_shared_with_static_runtimes_CXX=yes
  29335. +
  29336. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  29337. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  29338. + # If the export-symbols file already is a .def file (1st line
  29339. + # is EXPORTS), use it as is; otherwise, prepend...
  29340. + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  29341. + cp $export_symbols $output_objdir/$soname.def;
  29342. + else
  29343. + echo EXPORTS > $output_objdir/$soname.def;
  29344. + cat $export_symbols >> $output_objdir/$soname.def;
  29345. + fi~
  29346. + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  29347. + else
  29348. + ld_shlibs_CXX=no
  29349. + fi
  29350. + ;;
  29351. + darwin* | rhapsody*)
  29352. +
  29353. +
  29354. + archive_cmds_need_lc_CXX=no
  29355. + hardcode_direct_CXX=no
  29356. + hardcode_automatic_CXX=yes
  29357. + hardcode_shlibpath_var_CXX=unsupported
  29358. + if test "$lt_cv_ld_force_load" = "yes"; then
  29359. + whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  29360. + else
  29361. + whole_archive_flag_spec_CXX=''
  29362. + fi
  29363. + link_all_deplibs_CXX=yes
  29364. + allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  29365. + case $cc_basename in
  29366. + ifort*) _lt_dar_can_shared=yes ;;
  29367. + *) _lt_dar_can_shared=$GCC ;;
  29368. + esac
  29369. + if test "$_lt_dar_can_shared" = "yes"; then
  29370. + output_verbose_link_cmd=func_echo_all
  29371. + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  29372. + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  29373. + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  29374. + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  29375. + if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  29376. + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  29377. + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  29378. + fi
  29379. +
  29380. + else
  29381. + ld_shlibs_CXX=no
  29382. + fi
  29383. +
  29384. + ;;
  29385. +
  29386. + dgux*)
  29387. + case $cc_basename in
  29388. + ec++*)
  29389. + # FIXME: insert proper C++ library support
  29390. + ld_shlibs_CXX=no
  29391. + ;;
  29392. + ghcx*)
  29393. + # Green Hills C++ Compiler
  29394. + # FIXME: insert proper C++ library support
  29395. + ld_shlibs_CXX=no
  29396. + ;;
  29397. + *)
  29398. + # FIXME: insert proper C++ library support
  29399. + ld_shlibs_CXX=no
  29400. + ;;
  29401. + esac
  29402. + ;;
  29403. +
  29404. + freebsd2.*)
  29405. + # C++ shared libraries reported to be fairly broken before
  29406. + # switch to ELF
  29407. + ld_shlibs_CXX=no
  29408. + ;;
  29409. +
  29410. + freebsd-elf*)
  29411. + archive_cmds_need_lc_CXX=no
  29412. + ;;
  29413. +
  29414. + freebsd* | dragonfly*)
  29415. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  29416. + # conventions
  29417. + ld_shlibs_CXX=yes
  29418. + ;;
  29419. +
  29420. + gnu*)
  29421. + ;;
  29422. +
  29423. + haiku*)
  29424. + archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29425. + link_all_deplibs_CXX=yes
  29426. + ;;
  29427. +
  29428. + hpux9*)
  29429. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  29430. + hardcode_libdir_separator_CXX=:
  29431. + export_dynamic_flag_spec_CXX='${wl}-E'
  29432. + hardcode_direct_CXX=yes
  29433. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  29434. + # but as the default
  29435. + # location of the library.
  29436. +
  29437. + case $cc_basename in
  29438. + CC*)
  29439. + # FIXME: insert proper C++ library support
  29440. + ld_shlibs_CXX=no
  29441. + ;;
  29442. + aCC*)
  29443. + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  29444. + # Commands to make compiler produce verbose output that lists
  29445. + # what "hidden" libraries, object files and flags are used when
  29446. + # linking a shared library.
  29447. + #
  29448. + # There doesn't appear to be a way to prevent this compiler from
  29449. + # explicitly linking system object files so we need to strip them
  29450. + # from the output so that they don't get included in the library
  29451. + # dependencies.
  29452. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  29453. + ;;
  29454. + *)
  29455. + if test "$GXX" = yes; then
  29456. + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  29457. + else
  29458. + # FIXME: insert proper C++ library support
  29459. + ld_shlibs_CXX=no
  29460. + fi
  29461. + ;;
  29462. + esac
  29463. + ;;
  29464. +
  29465. + hpux10*|hpux11*)
  29466. + if test $with_gnu_ld = no; then
  29467. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  29468. + hardcode_libdir_separator_CXX=:
  29469. +
  29470. + case $host_cpu in
  29471. + hppa*64*|ia64*)
  29472. + ;;
  29473. + *)
  29474. + export_dynamic_flag_spec_CXX='${wl}-E'
  29475. + ;;
  29476. + esac
  29477. + fi
  29478. + case $host_cpu in
  29479. + hppa*64*|ia64*)
  29480. + hardcode_direct_CXX=no
  29481. + hardcode_shlibpath_var_CXX=no
  29482. + ;;
  29483. + *)
  29484. + hardcode_direct_CXX=yes
  29485. + hardcode_direct_absolute_CXX=yes
  29486. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  29487. + # but as the default
  29488. + # location of the library.
  29489. + ;;
  29490. + esac
  29491. +
  29492. + case $cc_basename in
  29493. + CC*)
  29494. + # FIXME: insert proper C++ library support
  29495. + ld_shlibs_CXX=no
  29496. + ;;
  29497. + aCC*)
  29498. + case $host_cpu in
  29499. + hppa*64*)
  29500. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29501. + ;;
  29502. + ia64*)
  29503. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29504. + ;;
  29505. + *)
  29506. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29507. + ;;
  29508. + esac
  29509. + # Commands to make compiler produce verbose output that lists
  29510. + # what "hidden" libraries, object files and flags are used when
  29511. + # linking a shared library.
  29512. + #
  29513. + # There doesn't appear to be a way to prevent this compiler from
  29514. + # explicitly linking system object files so we need to strip them
  29515. + # from the output so that they don't get included in the library
  29516. + # dependencies.
  29517. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  29518. + ;;
  29519. + *)
  29520. + if test "$GXX" = yes; then
  29521. + if test $with_gnu_ld = no; then
  29522. + case $host_cpu in
  29523. + hppa*64*)
  29524. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29525. + ;;
  29526. + ia64*)
  29527. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29528. + ;;
  29529. + *)
  29530. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29531. + ;;
  29532. + esac
  29533. + fi
  29534. + else
  29535. + # FIXME: insert proper C++ library support
  29536. + ld_shlibs_CXX=no
  29537. + fi
  29538. + ;;
  29539. + esac
  29540. + ;;
  29541. +
  29542. + interix[3-9]*)
  29543. + hardcode_direct_CXX=no
  29544. + hardcode_shlibpath_var_CXX=no
  29545. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29546. + export_dynamic_flag_spec_CXX='${wl}-E'
  29547. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  29548. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  29549. + # default) and relocated if they conflict, which is a slow very memory
  29550. + # consuming and fragmenting process. To avoid this, we pick a random,
  29551. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  29552. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  29553. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  29554. + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  29555. + ;;
  29556. + irix5* | irix6*)
  29557. + case $cc_basename in
  29558. + CC*)
  29559. + # SGI C++
  29560. + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  29561. +
  29562. + # Archives containing C++ object files must be created using
  29563. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  29564. + # necessary to make sure instantiated templates are included
  29565. + # in the archive.
  29566. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  29567. + ;;
  29568. + *)
  29569. + if test "$GXX" = yes; then
  29570. + if test "$with_gnu_ld" = no; then
  29571. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  29572. + else
  29573. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  29574. + fi
  29575. + fi
  29576. + link_all_deplibs_CXX=yes
  29577. + ;;
  29578. + esac
  29579. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  29580. + hardcode_libdir_separator_CXX=:
  29581. + inherit_rpath_CXX=yes
  29582. + ;;
  29583. +
  29584. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  29585. + case $cc_basename in
  29586. + KCC*)
  29587. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  29588. +
  29589. + # KCC will only create a shared library if the output file
  29590. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  29591. + # to its proper name (with version) after linking.
  29592. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  29593. + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  29594. + # Commands to make compiler produce verbose output that lists
  29595. + # what "hidden" libraries, object files and flags are used when
  29596. + # linking a shared library.
  29597. + #
  29598. + # There doesn't appear to be a way to prevent this compiler from
  29599. + # explicitly linking system object files so we need to strip them
  29600. + # from the output so that they don't get included in the library
  29601. + # dependencies.
  29602. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  29603. +
  29604. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29605. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  29606. +
  29607. + # Archives containing C++ object files must be created using
  29608. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  29609. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  29610. + ;;
  29611. + icpc* | ecpc* )
  29612. + # Intel C++
  29613. + with_gnu_ld=yes
  29614. + # version 8.0 and above of icpc choke on multiply defined symbols
  29615. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  29616. + # earlier do not add the objects themselves.
  29617. + case `$CC -V 2>&1` in
  29618. + *"Version 7."*)
  29619. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29620. + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29621. + ;;
  29622. + *) # Version 8.0 or newer
  29623. + tmp_idyn=
  29624. + case $host_cpu in
  29625. + ia64*) tmp_idyn=' -i_dynamic';;
  29626. + esac
  29627. + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29628. + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  29629. + ;;
  29630. + esac
  29631. + archive_cmds_need_lc_CXX=no
  29632. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29633. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  29634. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  29635. + ;;
  29636. + pgCC* | pgcpp*)
  29637. + # Portland Group C++ compiler
  29638. + case `$CC -V` in
  29639. + *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  29640. + prelink_cmds_CXX='tpldir=Template.dir~
  29641. + rm -rf $tpldir~
  29642. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  29643. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  29644. + old_archive_cmds_CXX='tpldir=Template.dir~
  29645. + rm -rf $tpldir~
  29646. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  29647. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  29648. + $RANLIB $oldlib'
  29649. + archive_cmds_CXX='tpldir=Template.dir~
  29650. + rm -rf $tpldir~
  29651. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  29652. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  29653. + archive_expsym_cmds_CXX='tpldir=Template.dir~
  29654. + rm -rf $tpldir~
  29655. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  29656. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  29657. + ;;
  29658. + *) # Version 6 and above use weak symbols
  29659. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  29660. + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  29661. + ;;
  29662. + esac
  29663. +
  29664. + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  29665. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  29666. + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  29667. + ;;
  29668. + cxx*)
  29669. + # Compaq C++
  29670. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29671. + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  29672. +
  29673. + runpath_var=LD_RUN_PATH
  29674. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  29675. + hardcode_libdir_separator_CXX=:
  29676. +
  29677. + # Commands to make compiler produce verbose output that lists
  29678. + # what "hidden" libraries, object files and flags are used when
  29679. + # linking a shared library.
  29680. + #
  29681. + # There doesn't appear to be a way to prevent this compiler from
  29682. + # explicitly linking system object files so we need to strip them
  29683. + # from the output so that they don't get included in the library
  29684. + # dependencies.
  29685. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  29686. + ;;
  29687. + xl* | mpixl* | bgxl*)
  29688. + # IBM XL 8.0 on PPC, with GNU ld
  29689. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  29690. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  29691. + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29692. + if test "x$supports_anon_versioning" = xyes; then
  29693. + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  29694. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  29695. + echo "local: *; };" >> $output_objdir/$libname.ver~
  29696. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  29697. + fi
  29698. + ;;
  29699. + *)
  29700. + case `$CC -V 2>&1 | sed 5q` in
  29701. + *Sun\ C*)
  29702. + # Sun C++ 5.9
  29703. + no_undefined_flag_CXX=' -zdefs'
  29704. + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29705. + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  29706. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  29707. + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  29708. + compiler_needs_object_CXX=yes
  29709. +
  29710. + # Not sure whether something based on
  29711. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  29712. + # would be better.
  29713. + output_verbose_link_cmd='func_echo_all'
  29714. +
  29715. + # Archives containing C++ object files must be created using
  29716. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  29717. + # necessary to make sure instantiated templates are included
  29718. + # in the archive.
  29719. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  29720. + ;;
  29721. + esac
  29722. + ;;
  29723. + esac
  29724. + ;;
  29725. +
  29726. + lynxos*)
  29727. + # FIXME: insert proper C++ library support
  29728. + ld_shlibs_CXX=no
  29729. + ;;
  29730. +
  29731. + m88k*)
  29732. + # FIXME: insert proper C++ library support
  29733. + ld_shlibs_CXX=no
  29734. + ;;
  29735. +
  29736. + mvs*)
  29737. + case $cc_basename in
  29738. + cxx*)
  29739. + # FIXME: insert proper C++ library support
  29740. + ld_shlibs_CXX=no
  29741. + ;;
  29742. + *)
  29743. + # FIXME: insert proper C++ library support
  29744. + ld_shlibs_CXX=no
  29745. + ;;
  29746. + esac
  29747. + ;;
  29748. +
  29749. + netbsd*)
  29750. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  29751. + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  29752. + wlarc=
  29753. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  29754. + hardcode_direct_CXX=yes
  29755. + hardcode_shlibpath_var_CXX=no
  29756. + fi
  29757. + # Workaround some broken pre-1.5 toolchains
  29758. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  29759. + ;;
  29760. +
  29761. + *nto* | *qnx*)
  29762. + ld_shlibs_CXX=yes
  29763. + ;;
  29764. +
  29765. + openbsd2*)
  29766. + # C++ shared libraries are fairly broken
  29767. + ld_shlibs_CXX=no
  29768. + ;;
  29769. +
  29770. + openbsd*)
  29771. + if test -f /usr/libexec/ld.so; then
  29772. + hardcode_direct_CXX=yes
  29773. + hardcode_shlibpath_var_CXX=no
  29774. + hardcode_direct_absolute_CXX=yes
  29775. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  29776. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29777. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  29778. + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  29779. + export_dynamic_flag_spec_CXX='${wl}-E'
  29780. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  29781. + fi
  29782. + output_verbose_link_cmd=func_echo_all
  29783. + else
  29784. + ld_shlibs_CXX=no
  29785. + fi
  29786. + ;;
  29787. +
  29788. + osf3* | osf4* | osf5*)
  29789. + case $cc_basename in
  29790. + KCC*)
  29791. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  29792. +
  29793. + # KCC will only create a shared library if the output file
  29794. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  29795. + # to its proper name (with version) after linking.
  29796. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  29797. +
  29798. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  29799. + hardcode_libdir_separator_CXX=:
  29800. +
  29801. + # Archives containing C++ object files must be created using
  29802. + # the KAI C++ compiler.
  29803. + case $host in
  29804. + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  29805. + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  29806. + esac
  29807. + ;;
  29808. + RCC*)
  29809. + # Rational C++ 2.4.1
  29810. + # FIXME: insert proper C++ library support
  29811. + ld_shlibs_CXX=no
  29812. + ;;
  29813. + cxx*)
  29814. + case $host in
  29815. + osf3*)
  29816. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  29817. + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  29818. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  29819. + ;;
  29820. + *)
  29821. + allow_undefined_flag_CXX=' -expect_unresolved \*'
  29822. + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  29823. + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  29824. + echo "-hidden">> $lib.exp~
  29825. + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  29826. + $RM $lib.exp'
  29827. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  29828. + ;;
  29829. + esac
  29830. +
  29831. + hardcode_libdir_separator_CXX=:
  29832. +
  29833. + # Commands to make compiler produce verbose output that lists
  29834. + # what "hidden" libraries, object files and flags are used when
  29835. + # linking a shared library.
  29836. + #
  29837. + # There doesn't appear to be a way to prevent this compiler from
  29838. + # explicitly linking system object files so we need to strip them
  29839. + # from the output so that they don't get included in the library
  29840. + # dependencies.
  29841. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  29842. + ;;
  29843. + *)
  29844. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  29845. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  29846. + case $host in
  29847. + osf3*)
  29848. + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  29849. + ;;
  29850. + *)
  29851. + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  29852. + ;;
  29853. + esac
  29854. +
  29855. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  29856. + hardcode_libdir_separator_CXX=:
  29857. +
  29858. + # Commands to make compiler produce verbose output that lists
  29859. + # what "hidden" libraries, object files and flags are used when
  29860. + # linking a shared library.
  29861. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  29862. +
  29863. + else
  29864. + # FIXME: insert proper C++ library support
  29865. + ld_shlibs_CXX=no
  29866. + fi
  29867. + ;;
  29868. + esac
  29869. + ;;
  29870. +
  29871. + psos*)
  29872. + # FIXME: insert proper C++ library support
  29873. + ld_shlibs_CXX=no
  29874. + ;;
  29875. +
  29876. + sunos4*)
  29877. + case $cc_basename in
  29878. + CC*)
  29879. + # Sun C++ 4.x
  29880. + # FIXME: insert proper C++ library support
  29881. + ld_shlibs_CXX=no
  29882. + ;;
  29883. + lcc*)
  29884. + # Lucid
  29885. + # FIXME: insert proper C++ library support
  29886. + ld_shlibs_CXX=no
  29887. + ;;
  29888. + *)
  29889. + # FIXME: insert proper C++ library support
  29890. + ld_shlibs_CXX=no
  29891. + ;;
  29892. + esac
  29893. + ;;
  29894. +
  29895. + solaris*)
  29896. + case $cc_basename in
  29897. + CC*)
  29898. + # Sun C++ 4.2, 5.x and Centerline C++
  29899. + archive_cmds_need_lc_CXX=yes
  29900. + no_undefined_flag_CXX=' -zdefs'
  29901. + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  29902. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  29903. + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  29904. +
  29905. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  29906. + hardcode_shlibpath_var_CXX=no
  29907. + case $host_os in
  29908. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  29909. + *)
  29910. + # The compiler driver will combine and reorder linker options,
  29911. + # but understands `-z linker_flag'.
  29912. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  29913. + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  29914. + ;;
  29915. + esac
  29916. + link_all_deplibs_CXX=yes
  29917. +
  29918. + output_verbose_link_cmd='func_echo_all'
  29919. +
  29920. + # Archives containing C++ object files must be created using
  29921. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  29922. + # necessary to make sure instantiated templates are included
  29923. + # in the archive.
  29924. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  29925. + ;;
  29926. + gcx*)
  29927. + # Green Hills C++ Compiler
  29928. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  29929. +
  29930. + # The C++ compiler must be used to create the archive.
  29931. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  29932. + ;;
  29933. + *)
  29934. + # GNU C++ compiler with Solaris linker
  29935. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  29936. + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  29937. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  29938. + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  29939. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  29940. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  29941. +
  29942. + # Commands to make compiler produce verbose output that lists
  29943. + # what "hidden" libraries, object files and flags are used when
  29944. + # linking a shared library.
  29945. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  29946. + else
  29947. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  29948. + # platform.
  29949. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  29950. + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  29951. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  29952. +
  29953. + # Commands to make compiler produce verbose output that lists
  29954. + # what "hidden" libraries, object files and flags are used when
  29955. + # linking a shared library.
  29956. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  29957. + fi
  29958. +
  29959. + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  29960. + case $host_os in
  29961. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  29962. + *)
  29963. + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  29964. + ;;
  29965. + esac
  29966. + fi
  29967. + ;;
  29968. + esac
  29969. + ;;
  29970. +
  29971. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  29972. + no_undefined_flag_CXX='${wl}-z,text'
  29973. + archive_cmds_need_lc_CXX=no
  29974. + hardcode_shlibpath_var_CXX=no
  29975. + runpath_var='LD_RUN_PATH'
  29976. +
  29977. + case $cc_basename in
  29978. + CC*)
  29979. + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29980. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29981. + ;;
  29982. + *)
  29983. + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29984. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  29985. + ;;
  29986. + esac
  29987. + ;;
  29988. +
  29989. + sysv5* | sco3.2v5* | sco5v6*)
  29990. + # Note: We can NOT use -z defs as we might desire, because we do not
  29991. + # link with -lc, and that would cause any symbols used from libc to
  29992. + # always be unresolved, which means just about no library would
  29993. + # ever link correctly. If we're not using GNU ld we use -z text
  29994. + # though, which does catch some bad symbols but isn't as heavy-handed
  29995. + # as -z defs.
  29996. + no_undefined_flag_CXX='${wl}-z,text'
  29997. + allow_undefined_flag_CXX='${wl}-z,nodefs'
  29998. + archive_cmds_need_lc_CXX=no
  29999. + hardcode_shlibpath_var_CXX=no
  30000. + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  30001. + hardcode_libdir_separator_CXX=':'
  30002. + link_all_deplibs_CXX=yes
  30003. + export_dynamic_flag_spec_CXX='${wl}-Bexport'
  30004. + runpath_var='LD_RUN_PATH'
  30005. +
  30006. + case $cc_basename in
  30007. + CC*)
  30008. + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30009. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30010. + old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  30011. + '"$old_archive_cmds_CXX"
  30012. + reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  30013. + '"$reload_cmds_CXX"
  30014. + ;;
  30015. + *)
  30016. + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30017. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  30018. + ;;
  30019. + esac
  30020. + ;;
  30021. +
  30022. + tandem*)
  30023. + case $cc_basename in
  30024. + NCC*)
  30025. + # NonStop-UX NCC 3.20
  30026. + # FIXME: insert proper C++ library support
  30027. + ld_shlibs_CXX=no
  30028. + ;;
  30029. + *)
  30030. + # FIXME: insert proper C++ library support
  30031. + ld_shlibs_CXX=no
  30032. + ;;
  30033. + esac
  30034. + ;;
  30035. +
  30036. + vxworks*)
  30037. + # FIXME: insert proper C++ library support
  30038. + ld_shlibs_CXX=no
  30039. + ;;
  30040. +
  30041. + *)
  30042. + # FIXME: insert proper C++ library support
  30043. + ld_shlibs_CXX=no
  30044. + ;;
  30045. + esac
  30046. +
  30047. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  30048. +$as_echo "$ld_shlibs_CXX" >&6; }
  30049. + test "$ld_shlibs_CXX" = no && can_build_shared=no
  30050. +
  30051. + GCC_CXX="$GXX"
  30052. + LD_CXX="$LD"
  30053. +
  30054. + ## CAVEAT EMPTOR:
  30055. + ## There is no encapsulation within the following macros, do not change
  30056. + ## the running order or otherwise move them around unless you know exactly
  30057. + ## what you are doing...
  30058. + # Dependencies to place before and after the object being linked:
  30059. +predep_objects_CXX=
  30060. +postdep_objects_CXX=
  30061. +predeps_CXX=
  30062. +postdeps_CXX=
  30063. +compiler_lib_search_path_CXX=
  30064. +
  30065. +cat > conftest.$ac_ext <<_LT_EOF
  30066. +class Foo
  30067. +{
  30068. +public:
  30069. + Foo (void) { a = 0; }
  30070. +private:
  30071. + int a;
  30072. +};
  30073. +_LT_EOF
  30074. +
  30075. +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  30076. + (eval $ac_compile) 2>&5
  30077. + ac_status=$?
  30078. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  30079. + test $ac_status = 0; }; then
  30080. + # Parse the compiler output and extract the necessary
  30081. + # objects, libraries and library flags.
  30082. +
  30083. + # Sentinel used to keep track of whether or not we are before
  30084. + # the conftest object file.
  30085. + pre_test_object_deps_done=no
  30086. +
  30087. + for p in `eval "$output_verbose_link_cmd"`; do
  30088. + case $p in
  30089. +
  30090. + -L* | -R* | -l*)
  30091. + # Some compilers place space between "-{L,R}" and the path.
  30092. + # Remove the space.
  30093. + if test $p = "-L" ||
  30094. + test $p = "-R"; then
  30095. + prev=$p
  30096. + continue
  30097. + else
  30098. + prev=
  30099. + fi
  30100. +
  30101. + if test "$pre_test_object_deps_done" = no; then
  30102. + case $p in
  30103. + -L* | -R*)
  30104. + # Internal compiler library paths should come after those
  30105. + # provided the user. The postdeps already come after the
  30106. + # user supplied libs so there is no need to process them.
  30107. + if test -z "$compiler_lib_search_path_CXX"; then
  30108. + compiler_lib_search_path_CXX="${prev}${p}"
  30109. + else
  30110. + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  30111. + fi
  30112. + ;;
  30113. + # The "-l" case would never come before the object being
  30114. + # linked, so don't bother handling this case.
  30115. + esac
  30116. + else
  30117. + if test -z "$postdeps_CXX"; then
  30118. + postdeps_CXX="${prev}${p}"
  30119. + else
  30120. + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  30121. + fi
  30122. + fi
  30123. + ;;
  30124. +
  30125. + *.$objext)
  30126. + # This assumes that the test object file only shows up
  30127. + # once in the compiler output.
  30128. + if test "$p" = "conftest.$objext"; then
  30129. + pre_test_object_deps_done=yes
  30130. + continue
  30131. + fi
  30132. +
  30133. + if test "$pre_test_object_deps_done" = no; then
  30134. + if test -z "$predep_objects_CXX"; then
  30135. + predep_objects_CXX="$p"
  30136. + else
  30137. + predep_objects_CXX="$predep_objects_CXX $p"
  30138. + fi
  30139. + else
  30140. + if test -z "$postdep_objects_CXX"; then
  30141. + postdep_objects_CXX="$p"
  30142. + else
  30143. + postdep_objects_CXX="$postdep_objects_CXX $p"
  30144. + fi
  30145. + fi
  30146. + ;;
  30147. +
  30148. + *) ;; # Ignore the rest.
  30149. +
  30150. + esac
  30151. + done
  30152. +
  30153. + # Clean up.
  30154. + rm -f a.out a.exe
  30155. +else
  30156. + echo "libtool.m4: error: problem compiling CXX test program"
  30157. +fi
  30158. +
  30159. +$RM -f confest.$objext
  30160. +
  30161. +# PORTME: override above test on systems where it is broken
  30162. +case $host_os in
  30163. +interix[3-9]*)
  30164. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  30165. + # hack all around it, let's just trust "g++" to DTRT.
  30166. + predep_objects_CXX=
  30167. + postdep_objects_CXX=
  30168. + postdeps_CXX=
  30169. + ;;
  30170. +
  30171. +linux*)
  30172. + case `$CC -V 2>&1 | sed 5q` in
  30173. + *Sun\ C*)
  30174. + # Sun C++ 5.9
  30175. +
  30176. + # The more standards-conforming stlport4 library is
  30177. + # incompatible with the Cstd library. Avoid specifying
  30178. + # it if it's in CXXFLAGS. Ignore libCrun as
  30179. + # -library=stlport4 depends on it.
  30180. + case " $CXX $CXXFLAGS " in
  30181. + *" -library=stlport4 "*)
  30182. + solaris_use_stlport4=yes
  30183. + ;;
  30184. + esac
  30185. +
  30186. + if test "$solaris_use_stlport4" != yes; then
  30187. + postdeps_CXX='-library=Cstd -library=Crun'
  30188. + fi
  30189. + ;;
  30190. + esac
  30191. + ;;
  30192. +
  30193. +solaris*)
  30194. + case $cc_basename in
  30195. + CC*)
  30196. + # The more standards-conforming stlport4 library is
  30197. + # incompatible with the Cstd library. Avoid specifying
  30198. + # it if it's in CXXFLAGS. Ignore libCrun as
  30199. + # -library=stlport4 depends on it.
  30200. + case " $CXX $CXXFLAGS " in
  30201. + *" -library=stlport4 "*)
  30202. + solaris_use_stlport4=yes
  30203. + ;;
  30204. + esac
  30205. +
  30206. + # Adding this requires a known-good setup of shared libraries for
  30207. + # Sun compiler versions before 5.6, else PIC objects from an old
  30208. + # archive will be linked into the output, leading to subtle bugs.
  30209. + if test "$solaris_use_stlport4" != yes; then
  30210. + postdeps_CXX='-library=Cstd -library=Crun'
  30211. + fi
  30212. + ;;
  30213. + esac
  30214. + ;;
  30215. +esac
  30216. +
  30217. +
  30218. +case " $postdeps_CXX " in
  30219. +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  30220. +esac
  30221. + compiler_lib_search_dirs_CXX=
  30222. +if test -n "${compiler_lib_search_path_CXX}"; then
  30223. + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  30224. +fi
  30225. +
  30226. +
  30227. +
  30228. +
  30229. +
  30230. +
  30231. +
  30232. +
  30233. +
  30234. +
  30235. +
  30236. +
  30237. +
  30238. +
  30239. +
  30240. +
  30241. +
  30242. +
  30243. +
  30244. +
  30245. +
  30246. +
  30247. +
  30248. +
  30249. +
  30250. +
  30251. +
  30252. +
  30253. +
  30254. +
  30255. +
  30256. + lt_prog_compiler_wl_CXX=
  30257. +lt_prog_compiler_pic_CXX=
  30258. +lt_prog_compiler_static_CXX=
  30259. +
  30260. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  30261. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  30262. +
  30263. + # C++ specific cases for pic, static, wl, etc.
  30264. + if test "$GXX" = yes; then
  30265. + lt_prog_compiler_wl_CXX='-Wl,'
  30266. + lt_prog_compiler_static_CXX='-static'
  30267. +
  30268. + case $host_os in
  30269. + aix*)
  30270. + # All AIX code is PIC.
  30271. + if test "$host_cpu" = ia64; then
  30272. + # AIX 5 now supports IA64 processor
  30273. + lt_prog_compiler_static_CXX='-Bstatic'
  30274. + fi
  30275. + lt_prog_compiler_pic_CXX='-fPIC'
  30276. + ;;
  30277. +
  30278. + amigaos*)
  30279. + case $host_cpu in
  30280. + powerpc)
  30281. + # see comment about AmigaOS4 .so support
  30282. + lt_prog_compiler_pic_CXX='-fPIC'
  30283. + ;;
  30284. + m68k)
  30285. + # FIXME: we need at least 68020 code to build shared libraries, but
  30286. + # adding the `-m68020' flag to GCC prevents building anything better,
  30287. + # like `-m68040'.
  30288. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  30289. + ;;
  30290. + esac
  30291. + ;;
  30292. +
  30293. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  30294. + # PIC is the default for these OSes.
  30295. + ;;
  30296. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  30297. + # This hack is so that the source file can tell whether it is being
  30298. + # built for inclusion in a dll (and should export symbols for example).
  30299. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  30300. + # (--disable-auto-import) libraries
  30301. + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  30302. + ;;
  30303. + darwin* | rhapsody*)
  30304. + # PIC is the default on this platform
  30305. + # Common symbols not allowed in MH_DYLIB files
  30306. + lt_prog_compiler_pic_CXX='-fno-common'
  30307. + ;;
  30308. + *djgpp*)
  30309. + # DJGPP does not support shared libraries at all
  30310. + lt_prog_compiler_pic_CXX=
  30311. + ;;
  30312. + haiku*)
  30313. + # PIC is the default for Haiku.
  30314. + # The "-static" flag exists, but is broken.
  30315. + lt_prog_compiler_static_CXX=
  30316. + ;;
  30317. + interix[3-9]*)
  30318. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  30319. + # Instead, we relocate shared libraries at runtime.
  30320. + ;;
  30321. + sysv4*MP*)
  30322. + if test -d /usr/nec; then
  30323. + lt_prog_compiler_pic_CXX=-Kconform_pic
  30324. + fi
  30325. + ;;
  30326. + hpux*)
  30327. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  30328. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  30329. + # sets the default TLS model and affects inlining.
  30330. + case $host_cpu in
  30331. + hppa*64*)
  30332. + ;;
  30333. + *)
  30334. + lt_prog_compiler_pic_CXX='-fPIC'
  30335. + ;;
  30336. + esac
  30337. + ;;
  30338. + *qnx* | *nto*)
  30339. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  30340. + # it will coredump.
  30341. + lt_prog_compiler_pic_CXX='-fPIC -shared'
  30342. + ;;
  30343. + *)
  30344. + lt_prog_compiler_pic_CXX='-fPIC'
  30345. + ;;
  30346. + esac
  30347. + else
  30348. + case $host_os in
  30349. + aix[4-9]*)
  30350. + # All AIX code is PIC.
  30351. + if test "$host_cpu" = ia64; then
  30352. + # AIX 5 now supports IA64 processor
  30353. + lt_prog_compiler_static_CXX='-Bstatic'
  30354. + else
  30355. + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  30356. + fi
  30357. + ;;
  30358. + chorus*)
  30359. + case $cc_basename in
  30360. + cxch68*)
  30361. + # Green Hills C++ Compiler
  30362. + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  30363. + ;;
  30364. + esac
  30365. + ;;
  30366. + dgux*)
  30367. + case $cc_basename in
  30368. + ec++*)
  30369. + lt_prog_compiler_pic_CXX='-KPIC'
  30370. + ;;
  30371. + ghcx*)
  30372. + # Green Hills C++ Compiler
  30373. + lt_prog_compiler_pic_CXX='-pic'
  30374. + ;;
  30375. + *)
  30376. + ;;
  30377. + esac
  30378. + ;;
  30379. + freebsd* | dragonfly*)
  30380. + # FreeBSD uses GNU C++
  30381. + ;;
  30382. + hpux9* | hpux10* | hpux11*)
  30383. + case $cc_basename in
  30384. + CC*)
  30385. + lt_prog_compiler_wl_CXX='-Wl,'
  30386. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  30387. + if test "$host_cpu" != ia64; then
  30388. + lt_prog_compiler_pic_CXX='+Z'
  30389. + fi
  30390. + ;;
  30391. + aCC*)
  30392. + lt_prog_compiler_wl_CXX='-Wl,'
  30393. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  30394. + case $host_cpu in
  30395. + hppa*64*|ia64*)
  30396. + # +Z the default
  30397. + ;;
  30398. + *)
  30399. + lt_prog_compiler_pic_CXX='+Z'
  30400. + ;;
  30401. + esac
  30402. + ;;
  30403. + *)
  30404. + ;;
  30405. + esac
  30406. + ;;
  30407. + interix*)
  30408. + # This is c89, which is MS Visual C++ (no shared libs)
  30409. + # Anyone wants to do a port?
  30410. + ;;
  30411. + irix5* | irix6* | nonstopux*)
  30412. + case $cc_basename in
  30413. + CC*)
  30414. + lt_prog_compiler_wl_CXX='-Wl,'
  30415. + lt_prog_compiler_static_CXX='-non_shared'
  30416. + # CC pic flag -KPIC is the default.
  30417. + ;;
  30418. + *)
  30419. + ;;
  30420. + esac
  30421. + ;;
  30422. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  30423. + case $cc_basename in
  30424. + KCC*)
  30425. + # KAI C++ Compiler
  30426. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  30427. + lt_prog_compiler_pic_CXX='-fPIC'
  30428. + ;;
  30429. + ecpc* )
  30430. + # old Intel C++ for x86_64 which still supported -KPIC.
  30431. + lt_prog_compiler_wl_CXX='-Wl,'
  30432. + lt_prog_compiler_pic_CXX='-KPIC'
  30433. + lt_prog_compiler_static_CXX='-static'
  30434. + ;;
  30435. + icpc* )
  30436. + # Intel C++, used to be incompatible with GCC.
  30437. + # ICC 10 doesn't accept -KPIC any more.
  30438. + lt_prog_compiler_wl_CXX='-Wl,'
  30439. + lt_prog_compiler_pic_CXX='-fPIC'
  30440. + lt_prog_compiler_static_CXX='-static'
  30441. + ;;
  30442. + pgCC* | pgcpp*)
  30443. + # Portland Group C++ compiler
  30444. + lt_prog_compiler_wl_CXX='-Wl,'
  30445. + lt_prog_compiler_pic_CXX='-fpic'
  30446. + lt_prog_compiler_static_CXX='-Bstatic'
  30447. + ;;
  30448. + cxx*)
  30449. + # Compaq C++
  30450. + # Make sure the PIC flag is empty. It appears that all Alpha
  30451. + # Linux and Compaq Tru64 Unix objects are PIC.
  30452. + lt_prog_compiler_pic_CXX=
  30453. + lt_prog_compiler_static_CXX='-non_shared'
  30454. + ;;
  30455. + xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  30456. + # IBM XL 8.0, 9.0 on PPC and BlueGene
  30457. + lt_prog_compiler_wl_CXX='-Wl,'
  30458. + lt_prog_compiler_pic_CXX='-qpic'
  30459. + lt_prog_compiler_static_CXX='-qstaticlink'
  30460. + ;;
  30461. + *)
  30462. + case `$CC -V 2>&1 | sed 5q` in
  30463. + *Sun\ C*)
  30464. + # Sun C++ 5.9
  30465. + lt_prog_compiler_pic_CXX='-KPIC'
  30466. + lt_prog_compiler_static_CXX='-Bstatic'
  30467. + lt_prog_compiler_wl_CXX='-Qoption ld '
  30468. + ;;
  30469. + esac
  30470. + ;;
  30471. + esac
  30472. + ;;
  30473. + lynxos*)
  30474. + ;;
  30475. + m88k*)
  30476. + ;;
  30477. + mvs*)
  30478. + case $cc_basename in
  30479. + cxx*)
  30480. + lt_prog_compiler_pic_CXX='-W c,exportall'
  30481. + ;;
  30482. + *)
  30483. + ;;
  30484. + esac
  30485. + ;;
  30486. + netbsd*)
  30487. + ;;
  30488. + *qnx* | *nto*)
  30489. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  30490. + # it will coredump.
  30491. + lt_prog_compiler_pic_CXX='-fPIC -shared'
  30492. + ;;
  30493. + osf3* | osf4* | osf5*)
  30494. + case $cc_basename in
  30495. + KCC*)
  30496. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  30497. + ;;
  30498. + RCC*)
  30499. + # Rational C++ 2.4.1
  30500. + lt_prog_compiler_pic_CXX='-pic'
  30501. + ;;
  30502. + cxx*)
  30503. + # Digital/Compaq C++
  30504. + lt_prog_compiler_wl_CXX='-Wl,'
  30505. + # Make sure the PIC flag is empty. It appears that all Alpha
  30506. + # Linux and Compaq Tru64 Unix objects are PIC.
  30507. + lt_prog_compiler_pic_CXX=
  30508. + lt_prog_compiler_static_CXX='-non_shared'
  30509. + ;;
  30510. + *)
  30511. + ;;
  30512. + esac
  30513. + ;;
  30514. + psos*)
  30515. + ;;
  30516. + solaris*)
  30517. + case $cc_basename in
  30518. + CC*)
  30519. + # Sun C++ 4.2, 5.x and Centerline C++
  30520. + lt_prog_compiler_pic_CXX='-KPIC'
  30521. + lt_prog_compiler_static_CXX='-Bstatic'
  30522. + lt_prog_compiler_wl_CXX='-Qoption ld '
  30523. + ;;
  30524. + gcx*)
  30525. + # Green Hills C++ Compiler
  30526. + lt_prog_compiler_pic_CXX='-PIC'
  30527. + ;;
  30528. + *)
  30529. + ;;
  30530. + esac
  30531. + ;;
  30532. + sunos4*)
  30533. + case $cc_basename in
  30534. + CC*)
  30535. + # Sun C++ 4.x
  30536. + lt_prog_compiler_pic_CXX='-pic'
  30537. + lt_prog_compiler_static_CXX='-Bstatic'
  30538. + ;;
  30539. + lcc*)
  30540. + # Lucid
  30541. + lt_prog_compiler_pic_CXX='-pic'
  30542. + ;;
  30543. + *)
  30544. + ;;
  30545. + esac
  30546. + ;;
  30547. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  30548. + case $cc_basename in
  30549. + CC*)
  30550. + lt_prog_compiler_wl_CXX='-Wl,'
  30551. + lt_prog_compiler_pic_CXX='-KPIC'
  30552. + lt_prog_compiler_static_CXX='-Bstatic'
  30553. + ;;
  30554. + esac
  30555. + ;;
  30556. + tandem*)
  30557. + case $cc_basename in
  30558. + NCC*)
  30559. + # NonStop-UX NCC 3.20
  30560. + lt_prog_compiler_pic_CXX='-KPIC'
  30561. + ;;
  30562. + *)
  30563. + ;;
  30564. + esac
  30565. + ;;
  30566. + vxworks*)
  30567. + ;;
  30568. + *)
  30569. + lt_prog_compiler_can_build_shared_CXX=no
  30570. + ;;
  30571. + esac
  30572. + fi
  30573. +
  30574. +case $host_os in
  30575. + # For platforms which do not support PIC, -DPIC is meaningless:
  30576. + *djgpp*)
  30577. + lt_prog_compiler_pic_CXX=
  30578. + ;;
  30579. + *)
  30580. + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  30581. + ;;
  30582. +esac
  30583. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  30584. +$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  30585. +
  30586. +
  30587. +
  30588. +#
  30589. +# Check to make sure the PIC flag actually works.
  30590. +#
  30591. +if test -n "$lt_prog_compiler_pic_CXX"; then
  30592. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  30593. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  30594. +if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  30595. + $as_echo_n "(cached) " >&6
  30596. +else
  30597. + lt_cv_prog_compiler_pic_works_CXX=no
  30598. + ac_outfile=conftest.$ac_objext
  30599. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30600. + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  30601. + # Insert the option either (1) after the last *FLAGS variable, or
  30602. + # (2) before a word containing "conftest.", or (3) at the end.
  30603. + # Note that $ac_compile itself does not contain backslashes and begins
  30604. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  30605. + # The option is referenced via a variable to avoid confusing sed.
  30606. + lt_compile=`echo "$ac_compile" | $SED \
  30607. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30608. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30609. + -e 's:$: $lt_compiler_flag:'`
  30610. + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  30611. + (eval "$lt_compile" 2>conftest.err)
  30612. + ac_status=$?
  30613. + cat conftest.err >&5
  30614. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30615. + if (exit $ac_status) && test -s "$ac_outfile"; then
  30616. + # The compiler can only warn and ignore the option if not recognized
  30617. + # So say no if there are warnings other than the usual output.
  30618. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  30619. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30620. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  30621. + lt_cv_prog_compiler_pic_works_CXX=yes
  30622. + fi
  30623. + fi
  30624. + $RM conftest*
  30625. +
  30626. +fi
  30627. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  30628. +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  30629. +
  30630. +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  30631. + case $lt_prog_compiler_pic_CXX in
  30632. + "" | " "*) ;;
  30633. + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  30634. + esac
  30635. +else
  30636. + lt_prog_compiler_pic_CXX=
  30637. + lt_prog_compiler_can_build_shared_CXX=no
  30638. +fi
  30639. +
  30640. +fi
  30641. +
  30642. +
  30643. +
  30644. +#
  30645. +# Check to make sure the static flag actually works.
  30646. +#
  30647. +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  30648. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  30649. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  30650. +if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  30651. + $as_echo_n "(cached) " >&6
  30652. +else
  30653. + lt_cv_prog_compiler_static_works_CXX=no
  30654. + save_LDFLAGS="$LDFLAGS"
  30655. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  30656. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  30657. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  30658. + # The linker can only warn and ignore the option if not recognized
  30659. + # So say no if there are warnings
  30660. + if test -s conftest.err; then
  30661. + # Append any errors to the config.log.
  30662. + cat conftest.err 1>&5
  30663. + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  30664. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30665. + if diff conftest.exp conftest.er2 >/dev/null; then
  30666. + lt_cv_prog_compiler_static_works_CXX=yes
  30667. + fi
  30668. + else
  30669. + lt_cv_prog_compiler_static_works_CXX=yes
  30670. + fi
  30671. + fi
  30672. + $RM -r conftest*
  30673. + LDFLAGS="$save_LDFLAGS"
  30674. +
  30675. +fi
  30676. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  30677. +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  30678. +
  30679. +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  30680. + :
  30681. +else
  30682. + lt_prog_compiler_static_CXX=
  30683. +fi
  30684. +
  30685. +
  30686. +
  30687. +
  30688. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  30689. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  30690. +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  30691. + $as_echo_n "(cached) " >&6
  30692. +else
  30693. + lt_cv_prog_compiler_c_o_CXX=no
  30694. + $RM -r conftest 2>/dev/null
  30695. + mkdir conftest
  30696. + cd conftest
  30697. + mkdir out
  30698. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30699. +
  30700. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  30701. + # Insert the option either (1) after the last *FLAGS variable, or
  30702. + # (2) before a word containing "conftest.", or (3) at the end.
  30703. + # Note that $ac_compile itself does not contain backslashes and begins
  30704. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  30705. + lt_compile=`echo "$ac_compile" | $SED \
  30706. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30707. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30708. + -e 's:$: $lt_compiler_flag:'`
  30709. + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  30710. + (eval "$lt_compile" 2>out/conftest.err)
  30711. + ac_status=$?
  30712. + cat out/conftest.err >&5
  30713. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30714. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  30715. + then
  30716. + # The compiler can only warn and ignore the option if not recognized
  30717. + # So say no if there are warnings
  30718. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  30719. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  30720. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  30721. + lt_cv_prog_compiler_c_o_CXX=yes
  30722. + fi
  30723. + fi
  30724. + chmod u+w . 2>&5
  30725. + $RM conftest*
  30726. + # SGI C++ compiler will create directory out/ii_files/ for
  30727. + # template instantiation
  30728. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  30729. + $RM out/* && rmdir out
  30730. + cd ..
  30731. + $RM -r conftest
  30732. + $RM conftest*
  30733. +
  30734. +fi
  30735. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  30736. +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  30737. +
  30738. +
  30739. +
  30740. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  30741. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  30742. +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  30743. + $as_echo_n "(cached) " >&6
  30744. +else
  30745. + lt_cv_prog_compiler_c_o_CXX=no
  30746. + $RM -r conftest 2>/dev/null
  30747. + mkdir conftest
  30748. + cd conftest
  30749. + mkdir out
  30750. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30751. +
  30752. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  30753. + # Insert the option either (1) after the last *FLAGS variable, or
  30754. + # (2) before a word containing "conftest.", or (3) at the end.
  30755. + # Note that $ac_compile itself does not contain backslashes and begins
  30756. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  30757. + lt_compile=`echo "$ac_compile" | $SED \
  30758. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30759. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30760. + -e 's:$: $lt_compiler_flag:'`
  30761. + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  30762. + (eval "$lt_compile" 2>out/conftest.err)
  30763. + ac_status=$?
  30764. + cat out/conftest.err >&5
  30765. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30766. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  30767. + then
  30768. + # The compiler can only warn and ignore the option if not recognized
  30769. + # So say no if there are warnings
  30770. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  30771. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  30772. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  30773. + lt_cv_prog_compiler_c_o_CXX=yes
  30774. + fi
  30775. + fi
  30776. + chmod u+w . 2>&5
  30777. + $RM conftest*
  30778. + # SGI C++ compiler will create directory out/ii_files/ for
  30779. + # template instantiation
  30780. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  30781. + $RM out/* && rmdir out
  30782. + cd ..
  30783. + $RM -r conftest
  30784. + $RM conftest*
  30785. +
  30786. +fi
  30787. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  30788. +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  30789. +
  30790. +
  30791. +
  30792. +
  30793. +hard_links="nottested"
  30794. +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  30795. + # do not overwrite the value of need_locks provided by the user
  30796. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  30797. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  30798. + hard_links=yes
  30799. + $RM conftest*
  30800. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30801. + touch conftest.a
  30802. + ln conftest.a conftest.b 2>&5 || hard_links=no
  30803. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30804. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  30805. +$as_echo "$hard_links" >&6; }
  30806. + if test "$hard_links" = no; then
  30807. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  30808. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  30809. + need_locks=warn
  30810. + fi
  30811. +else
  30812. + need_locks=no
  30813. +fi
  30814. +
  30815. +
  30816. +
  30817. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  30818. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  30819. +
  30820. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  30821. + case $host_os in
  30822. + aix[4-9]*)
  30823. + # If we're using GNU nm, then we don't want the "-C" option.
  30824. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  30825. + # Also, AIX nm treats weak defined symbols like other global defined
  30826. + # symbols, whereas GNU nm marks them as "W".
  30827. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  30828. + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  30829. + else
  30830. + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  30831. + fi
  30832. + ;;
  30833. + pw32*)
  30834. + export_symbols_cmds_CXX="$ltdll_cmds"
  30835. + ;;
  30836. + cygwin* | mingw* | cegcc*)
  30837. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  30838. + ;;
  30839. + *)
  30840. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  30841. + ;;
  30842. + esac
  30843. + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  30844. +
  30845. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  30846. +$as_echo "$ld_shlibs_CXX" >&6; }
  30847. +test "$ld_shlibs_CXX" = no && can_build_shared=no
  30848. +
  30849. +with_gnu_ld_CXX=$with_gnu_ld
  30850. +
  30851. +
  30852. +
  30853. +
  30854. +
  30855. +
  30856. +#
  30857. +# Do we need to explicitly link libc?
  30858. +#
  30859. +case "x$archive_cmds_need_lc_CXX" in
  30860. +x|xyes)
  30861. + # Assume -lc should be added
  30862. + archive_cmds_need_lc_CXX=yes
  30863. +
  30864. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  30865. + case $archive_cmds_CXX in
  30866. + *'~'*)
  30867. + # FIXME: we may have to deal with multi-command sequences.
  30868. + ;;
  30869. + '$CC '*)
  30870. + # Test whether the compiler implicitly links with -lc since on some
  30871. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  30872. + # to ld, don't add -lc before -lgcc.
  30873. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  30874. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  30875. +if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  30876. + $as_echo_n "(cached) " >&6
  30877. +else
  30878. + $RM conftest*
  30879. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  30880. +
  30881. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  30882. + (eval $ac_compile) 2>&5
  30883. + ac_status=$?
  30884. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  30885. + test $ac_status = 0; } 2>conftest.err; then
  30886. + soname=conftest
  30887. + lib=conftest
  30888. + libobjs=conftest.$ac_objext
  30889. + deplibs=
  30890. + wl=$lt_prog_compiler_wl_CXX
  30891. + pic_flag=$lt_prog_compiler_pic_CXX
  30892. + compiler_flags=-v
  30893. + linker_flags=-v
  30894. + verstring=
  30895. + output_objdir=.
  30896. + libname=conftest
  30897. + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  30898. + allow_undefined_flag_CXX=
  30899. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  30900. + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  30901. + ac_status=$?
  30902. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  30903. + test $ac_status = 0; }
  30904. + then
  30905. + lt_cv_archive_cmds_need_lc_CXX=no
  30906. + else
  30907. + lt_cv_archive_cmds_need_lc_CXX=yes
  30908. + fi
  30909. + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  30910. + else
  30911. + cat conftest.err 1>&5
  30912. + fi
  30913. + $RM conftest*
  30914. +
  30915. +fi
  30916. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  30917. +$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  30918. + archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  30919. + ;;
  30920. + esac
  30921. + fi
  30922. + ;;
  30923. +esac
  30924. +
  30925. +
  30926. +
  30927. +
  30928. +
  30929. +
  30930. +
  30931. +
  30932. +
  30933. +
  30934. +
  30935. +
  30936. +
  30937. +
  30938. +
  30939. +
  30940. +
  30941. +
  30942. +
  30943. +
  30944. +
  30945. +
  30946. +
  30947. +
  30948. +
  30949. +
  30950. +
  30951. +
  30952. +
  30953. +
  30954. +
  30955. +
  30956. +
  30957. +
  30958. +
  30959. +
  30960. +
  30961. +
  30962. +
  30963. +
  30964. +
  30965. +
  30966. +
  30967. +
  30968. +
  30969. +
  30970. +
  30971. +
  30972. +
  30973. +
  30974. +
  30975. +
  30976. +
  30977. +
  30978. +
  30979. +
  30980. +
  30981. +
  30982. +
  30983. +
  30984. +
  30985. +
  30986. +
  30987. +
  30988. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  30989. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  30990. +
  30991. +library_names_spec=
  30992. +libname_spec='lib$name'
  30993. +soname_spec=
  30994. +shrext_cmds=".so"
  30995. +postinstall_cmds=
  30996. +postuninstall_cmds=
  30997. +finish_cmds=
  30998. +finish_eval=
  30999. +shlibpath_var=
  31000. +shlibpath_overrides_runpath=unknown
  31001. +version_type=none
  31002. +dynamic_linker="$host_os ld.so"
  31003. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  31004. +need_lib_prefix=unknown
  31005. +hardcode_into_libs=no
  31006. +
  31007. +# when you set need_version to no, make sure it does not cause -set_version
  31008. +# flags to be left without arguments
  31009. +need_version=unknown
  31010. +
  31011. +case $host_os in
  31012. +aix3*)
  31013. + version_type=linux
  31014. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  31015. + shlibpath_var=LIBPATH
  31016. +
  31017. + # AIX 3 has no versioning support, so we append a major version to the name.
  31018. + soname_spec='${libname}${release}${shared_ext}$major'
  31019. + ;;
  31020. +
  31021. +aix[4-9]*)
  31022. + version_type=linux
  31023. + need_lib_prefix=no
  31024. + need_version=no
  31025. + hardcode_into_libs=yes
  31026. + if test "$host_cpu" = ia64; then
  31027. + # AIX 5 supports IA64
  31028. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  31029. + shlibpath_var=LD_LIBRARY_PATH
  31030. + else
  31031. + # With GCC up to 2.95.x, collect2 would create an import file
  31032. + # for dependence libraries. The import file would start with
  31033. + # the line `#! .'. This would cause the generated library to
  31034. + # depend on `.', always an invalid library. This was fixed in
  31035. + # development snapshots of GCC prior to 3.0.
  31036. + case $host_os in
  31037. + aix4 | aix4.[01] | aix4.[01].*)
  31038. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  31039. + echo ' yes '
  31040. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  31041. + :
  31042. + else
  31043. + can_build_shared=no
  31044. + fi
  31045. + ;;
  31046. + esac
  31047. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  31048. + # soname into executable. Probably we can add versioning support to
  31049. + # collect2, so additional links can be useful in future.
  31050. + if test "$aix_use_runtimelinking" = yes; then
  31051. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  31052. + # instead of lib<name>.a to let people know that these are not
  31053. + # typical AIX shared libraries.
  31054. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31055. + else
  31056. + # We preserve .a as extension for shared libraries through AIX4.2
  31057. + # and later when we are not doing run time linking.
  31058. + library_names_spec='${libname}${release}.a $libname.a'
  31059. + soname_spec='${libname}${release}${shared_ext}$major'
  31060. + fi
  31061. + shlibpath_var=LIBPATH
  31062. + fi
  31063. + ;;
  31064. +
  31065. +amigaos*)
  31066. + case $host_cpu in
  31067. + powerpc)
  31068. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  31069. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  31070. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31071. + ;;
  31072. + m68k)
  31073. + library_names_spec='$libname.ixlibrary $libname.a'
  31074. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  31075. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  31076. + ;;
  31077. + esac
  31078. + ;;
  31079. +
  31080. +beos*)
  31081. + library_names_spec='${libname}${shared_ext}'
  31082. + dynamic_linker="$host_os ld.so"
  31083. + shlibpath_var=LIBRARY_PATH
  31084. + ;;
  31085. +
  31086. +bsdi[45]*)
  31087. + version_type=linux
  31088. + need_version=no
  31089. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31090. + soname_spec='${libname}${release}${shared_ext}$major'
  31091. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  31092. + shlibpath_var=LD_LIBRARY_PATH
  31093. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  31094. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  31095. + # the default ld.so.conf also contains /usr/contrib/lib and
  31096. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  31097. + # libtool to hard-code these into programs
  31098. + ;;
  31099. +
  31100. +cygwin* | mingw* | pw32* | cegcc*)
  31101. + version_type=windows
  31102. + shrext_cmds=".dll"
  31103. + need_version=no
  31104. + need_lib_prefix=no
  31105. +
  31106. + case $GCC,$host_os in
  31107. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  31108. + library_names_spec='$libname.dll.a'
  31109. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  31110. + postinstall_cmds='base_file=`basename \${file}`~
  31111. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  31112. + dldir=$destdir/`dirname \$dlpath`~
  31113. + test -d \$dldir || mkdir -p \$dldir~
  31114. + $install_prog $dir/$dlname \$dldir/$dlname~
  31115. + chmod a+x \$dldir/$dlname~
  31116. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  31117. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  31118. + fi'
  31119. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  31120. + dlpath=$dir/\$dldll~
  31121. + $RM \$dlpath'
  31122. + shlibpath_overrides_runpath=yes
  31123. +
  31124. + case $host_os in
  31125. + cygwin*)
  31126. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  31127. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31128. +
  31129. + ;;
  31130. + mingw* | cegcc*)
  31131. + # MinGW DLLs use traditional 'lib' prefix
  31132. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31133. + ;;
  31134. + pw32*)
  31135. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  31136. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31137. + ;;
  31138. + esac
  31139. + ;;
  31140. +
  31141. + *)
  31142. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  31143. + ;;
  31144. + esac
  31145. + dynamic_linker='Win32 ld.exe'
  31146. + # FIXME: first we should search . and the directory the executable is in
  31147. + shlibpath_var=PATH
  31148. + ;;
  31149. +
  31150. +darwin* | rhapsody*)
  31151. + dynamic_linker="$host_os dyld"
  31152. + version_type=darwin
  31153. + need_lib_prefix=no
  31154. + need_version=no
  31155. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  31156. + soname_spec='${libname}${release}${major}$shared_ext'
  31157. + shlibpath_overrides_runpath=yes
  31158. + shlibpath_var=DYLD_LIBRARY_PATH
  31159. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  31160. +
  31161. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  31162. + ;;
  31163. +
  31164. +dgux*)
  31165. + version_type=linux
  31166. + need_lib_prefix=no
  31167. + need_version=no
  31168. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  31169. + soname_spec='${libname}${release}${shared_ext}$major'
  31170. + shlibpath_var=LD_LIBRARY_PATH
  31171. + ;;
  31172. +
  31173. +freebsd* | dragonfly*)
  31174. + # DragonFly does not have aout. When/if they implement a new
  31175. + # versioning mechanism, adjust this.
  31176. + if test -x /usr/bin/objformat; then
  31177. + objformat=`/usr/bin/objformat`
  31178. + else
  31179. + case $host_os in
  31180. + freebsd[23].*) objformat=aout ;;
  31181. + *) objformat=elf ;;
  31182. + esac
  31183. + fi
  31184. + version_type=freebsd-$objformat
  31185. + case $version_type in
  31186. + freebsd-elf*)
  31187. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  31188. + need_version=no
  31189. + need_lib_prefix=no
  31190. + ;;
  31191. + freebsd-*)
  31192. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  31193. + need_version=yes
  31194. + ;;
  31195. + esac
  31196. + shlibpath_var=LD_LIBRARY_PATH
  31197. + case $host_os in
  31198. + freebsd2.*)
  31199. + shlibpath_overrides_runpath=yes
  31200. + ;;
  31201. + freebsd3.[01]* | freebsdelf3.[01]*)
  31202. + shlibpath_overrides_runpath=yes
  31203. + hardcode_into_libs=yes
  31204. + ;;
  31205. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  31206. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  31207. + shlibpath_overrides_runpath=no
  31208. + hardcode_into_libs=yes
  31209. + ;;
  31210. + *) # from 4.6 on, and DragonFly
  31211. + shlibpath_overrides_runpath=yes
  31212. + hardcode_into_libs=yes
  31213. + ;;
  31214. + esac
  31215. + ;;
  31216. +
  31217. +gnu*)
  31218. + version_type=linux
  31219. + need_lib_prefix=no
  31220. + need_version=no
  31221. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  31222. + soname_spec='${libname}${release}${shared_ext}$major'
  31223. + shlibpath_var=LD_LIBRARY_PATH
  31224. + hardcode_into_libs=yes
  31225. + ;;
  31226. +
  31227. +haiku*)
  31228. + version_type=linux
  31229. + need_lib_prefix=no
  31230. + need_version=no
  31231. + dynamic_linker="$host_os runtime_loader"
  31232. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  31233. + soname_spec='${libname}${release}${shared_ext}$major'
  31234. + shlibpath_var=LIBRARY_PATH
  31235. + shlibpath_overrides_runpath=yes
  31236. + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  31237. + hardcode_into_libs=yes
  31238. + ;;
  31239. +
  31240. +hpux9* | hpux10* | hpux11*)
  31241. + # Give a soname corresponding to the major version so that dld.sl refuses to
  31242. + # link against other versions.
  31243. + version_type=sunos
  31244. + need_lib_prefix=no
  31245. + need_version=no
  31246. + case $host_cpu in
  31247. + ia64*)
  31248. + shrext_cmds='.so'
  31249. + hardcode_into_libs=yes
  31250. + dynamic_linker="$host_os dld.so"
  31251. + shlibpath_var=LD_LIBRARY_PATH
  31252. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31253. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31254. + soname_spec='${libname}${release}${shared_ext}$major'
  31255. + if test "X$HPUX_IA64_MODE" = X32; then
  31256. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  31257. + else
  31258. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  31259. + fi
  31260. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31261. + ;;
  31262. + hppa*64*)
  31263. + shrext_cmds='.sl'
  31264. + hardcode_into_libs=yes
  31265. + dynamic_linker="$host_os dld.sl"
  31266. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  31267. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31268. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31269. + soname_spec='${libname}${release}${shared_ext}$major'
  31270. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  31271. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31272. + ;;
  31273. + *)
  31274. + shrext_cmds='.sl'
  31275. + dynamic_linker="$host_os dld.sl"
  31276. + shlibpath_var=SHLIB_PATH
  31277. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  31278. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31279. + soname_spec='${libname}${release}${shared_ext}$major'
  31280. + ;;
  31281. + esac
  31282. + # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  31283. + postinstall_cmds='chmod 555 $lib'
  31284. + # or fails outright, so override atomically:
  31285. + install_override_mode=555
  31286. + ;;
  31287. +
  31288. +interix[3-9]*)
  31289. + version_type=linux
  31290. + need_lib_prefix=no
  31291. + need_version=no
  31292. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31293. + soname_spec='${libname}${release}${shared_ext}$major'
  31294. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  31295. + shlibpath_var=LD_LIBRARY_PATH
  31296. + shlibpath_overrides_runpath=no
  31297. + hardcode_into_libs=yes
  31298. + ;;
  31299. +
  31300. +irix5* | irix6* | nonstopux*)
  31301. + case $host_os in
  31302. + nonstopux*) version_type=nonstopux ;;
  31303. + *)
  31304. + if test "$lt_cv_prog_gnu_ld" = yes; then
  31305. + version_type=linux
  31306. + else
  31307. + version_type=irix
  31308. + fi ;;
  31309. + esac
  31310. + need_lib_prefix=no
  31311. + need_version=no
  31312. + soname_spec='${libname}${release}${shared_ext}$major'
  31313. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  31314. + case $host_os in
  31315. + irix5* | nonstopux*)
  31316. + libsuff= shlibsuff=
  31317. + ;;
  31318. + *)
  31319. + case $LD in # libtool.m4 will add one of these switches to LD
  31320. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  31321. + libsuff= shlibsuff= libmagic=32-bit;;
  31322. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  31323. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  31324. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  31325. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  31326. + *) libsuff= shlibsuff= libmagic=never-match;;
  31327. + esac
  31328. + ;;
  31329. + esac
  31330. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  31331. + shlibpath_overrides_runpath=no
  31332. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  31333. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  31334. + hardcode_into_libs=yes
  31335. + ;;
  31336. +
  31337. +# No shared lib support for Linux oldld, aout, or coff.
  31338. +linux*oldld* | linux*aout* | linux*coff*)
  31339. + dynamic_linker=no
  31340. + ;;
  31341. +
  31342. +# This must be Linux ELF.
  31343. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  31344. + version_type=linux
  31345. + need_lib_prefix=no
  31346. + need_version=no
  31347. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31348. + soname_spec='${libname}${release}${shared_ext}$major'
  31349. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  31350. + shlibpath_var=LD_LIBRARY_PATH
  31351. + shlibpath_overrides_runpath=no
  31352. +
  31353. + # Some binutils ld are patched to set DT_RUNPATH
  31354. + if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  31355. + $as_echo_n "(cached) " >&6
  31356. +else
  31357. + lt_cv_shlibpath_overrides_runpath=no
  31358. + save_LDFLAGS=$LDFLAGS
  31359. + save_libdir=$libdir
  31360. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  31361. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  31362. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31363. +/* end confdefs.h. */
  31364. +
  31365. +int
  31366. +main ()
  31367. +{
  31368. +
  31369. + ;
  31370. + return 0;
  31371. +}
  31372. +_ACEOF
  31373. +if ac_fn_cxx_try_link "$LINENO"; then :
  31374. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  31375. + lt_cv_shlibpath_overrides_runpath=yes
  31376. +fi
  31377. +fi
  31378. +rm -f core conftest.err conftest.$ac_objext \
  31379. + conftest$ac_exeext conftest.$ac_ext
  31380. + LDFLAGS=$save_LDFLAGS
  31381. + libdir=$save_libdir
  31382. +
  31383. +fi
  31384. +
  31385. + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  31386. +
  31387. + # This implies no fast_install, which is unacceptable.
  31388. + # Some rework will be needed to allow for fast_install
  31389. + # before this can be enabled.
  31390. + hardcode_into_libs=yes
  31391. +
  31392. + # Append ld.so.conf contents to the search path
  31393. + if test -f /etc/ld.so.conf; then
  31394. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  31395. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  31396. + fi
  31397. +
  31398. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  31399. + # powerpc, because MkLinux only supported shared libraries with the
  31400. + # GNU dynamic linker. Since this was broken with cross compilers,
  31401. + # most powerpc-linux boxes support dynamic linking these days and
  31402. + # people can always --disable-shared, the test was removed, and we
  31403. + # assume the GNU/Linux dynamic linker is in use.
  31404. + dynamic_linker='GNU/Linux ld.so'
  31405. + ;;
  31406. +
  31407. +netbsd*)
  31408. + version_type=sunos
  31409. + need_lib_prefix=no
  31410. + need_version=no
  31411. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  31412. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31413. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31414. + dynamic_linker='NetBSD (a.out) ld.so'
  31415. + else
  31416. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31417. + soname_spec='${libname}${release}${shared_ext}$major'
  31418. + dynamic_linker='NetBSD ld.elf_so'
  31419. + fi
  31420. + shlibpath_var=LD_LIBRARY_PATH
  31421. + shlibpath_overrides_runpath=yes
  31422. + hardcode_into_libs=yes
  31423. + ;;
  31424. +
  31425. +newsos6)
  31426. + version_type=linux
  31427. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31428. + shlibpath_var=LD_LIBRARY_PATH
  31429. + shlibpath_overrides_runpath=yes
  31430. + ;;
  31431. +
  31432. +*nto* | *qnx*)
  31433. + version_type=qnx
  31434. + need_lib_prefix=no
  31435. + need_version=no
  31436. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31437. + soname_spec='${libname}${release}${shared_ext}$major'
  31438. + shlibpath_var=LD_LIBRARY_PATH
  31439. + shlibpath_overrides_runpath=no
  31440. + hardcode_into_libs=yes
  31441. + dynamic_linker='ldqnx.so'
  31442. + ;;
  31443. +
  31444. +openbsd*)
  31445. + version_type=sunos
  31446. + sys_lib_dlsearch_path_spec="/usr/lib"
  31447. + need_lib_prefix=no
  31448. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  31449. + case $host_os in
  31450. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  31451. + *) need_version=no ;;
  31452. + esac
  31453. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31454. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31455. + shlibpath_var=LD_LIBRARY_PATH
  31456. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31457. + case $host_os in
  31458. + openbsd2.[89] | openbsd2.[89].*)
  31459. + shlibpath_overrides_runpath=no
  31460. + ;;
  31461. + *)
  31462. + shlibpath_overrides_runpath=yes
  31463. + ;;
  31464. + esac
  31465. + else
  31466. + shlibpath_overrides_runpath=yes
  31467. + fi
  31468. + ;;
  31469. +
  31470. +os2*)
  31471. + libname_spec='$name'
  31472. + shrext_cmds=".dll"
  31473. + need_lib_prefix=no
  31474. + library_names_spec='$libname${shared_ext} $libname.a'
  31475. + dynamic_linker='OS/2 ld.exe'
  31476. + shlibpath_var=LIBPATH
  31477. + ;;
  31478. +
  31479. +osf3* | osf4* | osf5*)
  31480. + version_type=osf
  31481. + need_lib_prefix=no
  31482. + need_version=no
  31483. + soname_spec='${libname}${release}${shared_ext}$major'
  31484. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31485. + shlibpath_var=LD_LIBRARY_PATH
  31486. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  31487. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  31488. + ;;
  31489. +
  31490. +rdos*)
  31491. + dynamic_linker=no
  31492. + ;;
  31493. +
  31494. +solaris*)
  31495. + version_type=linux
  31496. + need_lib_prefix=no
  31497. + need_version=no
  31498. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31499. + soname_spec='${libname}${release}${shared_ext}$major'
  31500. + shlibpath_var=LD_LIBRARY_PATH
  31501. + shlibpath_overrides_runpath=yes
  31502. + hardcode_into_libs=yes
  31503. + # ldd complains unless libraries are executable
  31504. + postinstall_cmds='chmod +x $lib'
  31505. + ;;
  31506. +
  31507. +sunos4*)
  31508. + version_type=sunos
  31509. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31510. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  31511. + shlibpath_var=LD_LIBRARY_PATH
  31512. + shlibpath_overrides_runpath=yes
  31513. + if test "$with_gnu_ld" = yes; then
  31514. + need_lib_prefix=no
  31515. + fi
  31516. + need_version=yes
  31517. + ;;
  31518. +
  31519. +sysv4 | sysv4.3*)
  31520. + version_type=linux
  31521. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31522. + soname_spec='${libname}${release}${shared_ext}$major'
  31523. + shlibpath_var=LD_LIBRARY_PATH
  31524. + case $host_vendor in
  31525. + sni)
  31526. + shlibpath_overrides_runpath=no
  31527. + need_lib_prefix=no
  31528. + runpath_var=LD_RUN_PATH
  31529. + ;;
  31530. + siemens)
  31531. + need_lib_prefix=no
  31532. + ;;
  31533. + motorola)
  31534. + need_lib_prefix=no
  31535. + need_version=no
  31536. + shlibpath_overrides_runpath=no
  31537. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  31538. + ;;
  31539. + esac
  31540. + ;;
  31541. +
  31542. +sysv4*MP*)
  31543. + if test -d /usr/nec ;then
  31544. + version_type=linux
  31545. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  31546. + soname_spec='$libname${shared_ext}.$major'
  31547. + shlibpath_var=LD_LIBRARY_PATH
  31548. + fi
  31549. + ;;
  31550. +
  31551. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  31552. + version_type=freebsd-elf
  31553. + need_lib_prefix=no
  31554. + need_version=no
  31555. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  31556. + soname_spec='${libname}${release}${shared_ext}$major'
  31557. + shlibpath_var=LD_LIBRARY_PATH
  31558. + shlibpath_overrides_runpath=yes
  31559. + hardcode_into_libs=yes
  31560. + if test "$with_gnu_ld" = yes; then
  31561. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  31562. + else
  31563. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  31564. + case $host_os in
  31565. + sco3.2v5*)
  31566. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  31567. + ;;
  31568. + esac
  31569. + fi
  31570. + sys_lib_dlsearch_path_spec='/usr/lib'
  31571. + ;;
  31572. +
  31573. +tpf*)
  31574. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  31575. + version_type=linux
  31576. + need_lib_prefix=no
  31577. + need_version=no
  31578. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31579. + shlibpath_var=LD_LIBRARY_PATH
  31580. + shlibpath_overrides_runpath=no
  31581. + hardcode_into_libs=yes
  31582. + ;;
  31583. +
  31584. +uts4*)
  31585. + version_type=linux
  31586. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31587. + soname_spec='${libname}${release}${shared_ext}$major'
  31588. + shlibpath_var=LD_LIBRARY_PATH
  31589. + ;;
  31590. +
  31591. +*)
  31592. + dynamic_linker=no
  31593. + ;;
  31594. +esac
  31595. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  31596. +$as_echo "$dynamic_linker" >&6; }
  31597. +test "$dynamic_linker" = no && can_build_shared=no
  31598. +
  31599. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  31600. +if test "$GCC" = yes; then
  31601. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  31602. +fi
  31603. +
  31604. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  31605. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  31606. +fi
  31607. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  31608. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  31609. +fi
  31610. +
  31611. +
  31612. +
  31613. +
  31614. +
  31615. +
  31616. +
  31617. +
  31618. +
  31619. +
  31620. +
  31621. +
  31622. +
  31623. +
  31624. +
  31625. +
  31626. +
  31627. +
  31628. +
  31629. +
  31630. +
  31631. +
  31632. +
  31633. +
  31634. +
  31635. +
  31636. +
  31637. +
  31638. +
  31639. +
  31640. +
  31641. +
  31642. +
  31643. +
  31644. +
  31645. +
  31646. +
  31647. +
  31648. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  31649. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  31650. +hardcode_action_CXX=
  31651. +if test -n "$hardcode_libdir_flag_spec_CXX" ||
  31652. + test -n "$runpath_var_CXX" ||
  31653. + test "X$hardcode_automatic_CXX" = "Xyes" ; then
  31654. +
  31655. + # We can hardcode non-existent directories.
  31656. + if test "$hardcode_direct_CXX" != no &&
  31657. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  31658. + # have to relink, otherwise we might link with an installed library
  31659. + # when we should be linking with a yet-to-be-installed one
  31660. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  31661. + test "$hardcode_minus_L_CXX" != no; then
  31662. + # Linking always hardcodes the temporary library directory.
  31663. + hardcode_action_CXX=relink
  31664. + else
  31665. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  31666. + hardcode_action_CXX=immediate
  31667. + fi
  31668. +else
  31669. + # We cannot hardcode anything, or else we can only hardcode existing
  31670. + # directories.
  31671. + hardcode_action_CXX=unsupported
  31672. +fi
  31673. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  31674. +$as_echo "$hardcode_action_CXX" >&6; }
  31675. +
  31676. +if test "$hardcode_action_CXX" = relink ||
  31677. + test "$inherit_rpath_CXX" = yes; then
  31678. + # Fast installation is not supported
  31679. + enable_fast_install=no
  31680. +elif test "$shlibpath_overrides_runpath" = yes ||
  31681. + test "$enable_shared" = no; then
  31682. + # Fast installation is not necessary
  31683. + enable_fast_install=needless
  31684. +fi
  31685. +
  31686. +
  31687. +
  31688. +
  31689. +
  31690. +
  31691. +
  31692. + fi # test -n "$compiler"
  31693. +
  31694. + CC=$lt_save_CC
  31695. + LDCXX=$LD
  31696. + LD=$lt_save_LD
  31697. + GCC=$lt_save_GCC
  31698. + with_gnu_ld=$lt_save_with_gnu_ld
  31699. + lt_cv_path_LDCXX=$lt_cv_path_LD
  31700. + lt_cv_path_LD=$lt_save_path_LD
  31701. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  31702. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  31703. +fi # test "$_lt_caught_CXX_error" != yes
  31704. +
  31705. +ac_ext=c
  31706. +ac_cpp='$CPP $CPPFLAGS'
  31707. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31708. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31709. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31710. +
  31711. +
  31712. +
  31713. +
  31714. +
  31715. +
  31716. +
  31717. +
  31718. +
  31719. +
  31720. +
  31721. +
  31722. +
  31723. +
  31724. +
  31725. +
  31726. +# Only expand once:
  31727. +
  31728. +
  31729. +
  31730. +
  31731. +
  31732. +# Identify the assembler which will work hand-in-glove with the newly
  31733. +# built GCC, so that we can examine its features. This is the assembler
  31734. +# which will be driven by the driver program.
  31735. +#
  31736. +# If build != host, and we aren't building gas in-tree, we identify a
  31737. +# build->target assembler and hope that it will have the same features
  31738. +# as the host->target assembler we'll be using.
  31739. +gcc_cv_gas_major_version=
  31740. +gcc_cv_gas_minor_version=
  31741. +gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
  31742. +
  31743. +if test "${gcc_cv_as+set}" = set; then :
  31744. +
  31745. +else
  31746. +
  31747. +if test -x "$DEFAULT_ASSEMBLER"; then
  31748. + gcc_cv_as="$DEFAULT_ASSEMBLER"
  31749. +elif test -f $gcc_cv_as_gas_srcdir/configure.in \
  31750. + && test -f ../gas/Makefile \
  31751. + && test x$build = x$host; then
  31752. + gcc_cv_as=../gas/as-new$build_exeext
  31753. +elif test -x as$build_exeext; then
  31754. + # Build using assembler in the current directory.
  31755. + gcc_cv_as=./as$build_exeext
  31756. +elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
  31757. + gcc_cv_as="$AS_FOR_TARGET"
  31758. +else
  31759. + # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
  31760. +set dummy $AS_FOR_TARGET; ac_word=$2
  31761. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  31762. +$as_echo_n "checking for $ac_word... " >&6; }
  31763. +if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
  31764. + $as_echo_n "(cached) " >&6
  31765. +else
  31766. + case $gcc_cv_as in
  31767. + [\\/]* | ?:[\\/]*)
  31768. + ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
  31769. + ;;
  31770. + *)
  31771. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31772. +for as_dir in $PATH
  31773. +do
  31774. + IFS=$as_save_IFS
  31775. + test -z "$as_dir" && as_dir=.
  31776. + for ac_exec_ext in '' $ac_executable_extensions; do
  31777. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31778. + ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
  31779. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  31780. + break 2
  31781. + fi
  31782. +done
  31783. + done
  31784. +IFS=$as_save_IFS
  31785. +
  31786. + ;;
  31787. +esac
  31788. +fi
  31789. +gcc_cv_as=$ac_cv_path_gcc_cv_as
  31790. +if test -n "$gcc_cv_as"; then
  31791. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
  31792. +$as_echo "$gcc_cv_as" >&6; }
  31793. +else
  31794. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31795. +$as_echo "no" >&6; }
  31796. +fi
  31797. +
  31798. +
  31799. +fi
  31800. +fi
  31801. +
  31802. +ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
  31803. +
  31804. +case "$ORIGINAL_AS_FOR_TARGET" in
  31805. + ./as | ./as$build_exeext) ;;
  31806. + *) ac_config_files="$ac_config_files as:exec-tool.in"
  31807. + ;;
  31808. +esac
  31809. +
  31810. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
  31811. +$as_echo_n "checking what assembler to use... " >&6; }
  31812. +if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
  31813. + # Single tree build which includes gas. We want to prefer it
  31814. + # over whatever linker top-level may have detected, since
  31815. + # we'll use what we're building after installation anyway.
  31816. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
  31817. +$as_echo "newly built gas" >&6; }
  31818. + in_tree_gas=yes
  31819. + gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
  31820. +for f in $gcc_cv_as_bfd_srcdir/configure \
  31821. + $gcc_cv_as_gas_srcdir/configure \
  31822. + $gcc_cv_as_gas_srcdir/configure.in \
  31823. + $gcc_cv_as_gas_srcdir/Makefile.in ; do
  31824. + gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
  31825. + if test x$gcc_cv_gas_version != x; then
  31826. + break
  31827. + fi
  31828. +done
  31829. +case $gcc_cv_gas_version in
  31830. + VERSION=[0-9]*) ;;
  31831. + *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
  31832. +esac
  31833. +gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
  31834. +gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
  31835. +gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
  31836. +case $gcc_cv_gas_patch_version in
  31837. + "") gcc_cv_gas_patch_version="0" ;;
  31838. +esac
  31839. +gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
  31840. + + $gcc_cv_gas_minor_version \) \* 1000 \
  31841. + + $gcc_cv_gas_patch_version`
  31842. +
  31843. + in_tree_gas_is_elf=no
  31844. + if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
  31845. + || (grep 'obj_format = multi' ../gas/Makefile \
  31846. + && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
  31847. + then
  31848. + in_tree_gas_is_elf=yes
  31849. + fi
  31850. +else
  31851. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
  31852. +$as_echo "$gcc_cv_as" >&6; }
  31853. + in_tree_gas=no
  31854. +fi
  31855. +
  31856. +default_ld=
  31857. +# Check whether --enable-ld was given.
  31858. +if test "${enable_ld+set}" = set; then :
  31859. + enableval=$enable_ld; case "${enableval}" in
  31860. + no)
  31861. + default_ld=ld.gold
  31862. + ;;
  31863. + esac
  31864. +fi
  31865. +
  31866. +
  31867. +# Check whether --enable-gold was given.
  31868. +if test "${enable_gold+set}" = set; then :
  31869. + enableval=$enable_gold; case "${enableval}" in
  31870. + default)
  31871. + install_gold_as_default=yes
  31872. + ;;
  31873. + yes)
  31874. + if test x${default_ld} != x; then
  31875. + install_gold_as_default=yes
  31876. + fi
  31877. + ;;
  31878. + no)
  31879. + ;;
  31880. + *)
  31881. + as_fn_error "invalid --enable-gold argument" "$LINENO" 5
  31882. + ;;
  31883. + esac
  31884. +else
  31885. + install_gold_as_default=no
  31886. +fi
  31887. +
  31888. +
  31889. +# Identify the linker which will work hand-in-glove with the newly
  31890. +# built GCC, so that we can examine its features. This is the linker
  31891. +# which will be driven by the driver program.
  31892. +#
  31893. +# If build != host, and we aren't building gas in-tree, we identify a
  31894. +# build->target linker and hope that it will have the same features
  31895. +# as the host->target linker we'll be using.
  31896. +gcc_cv_gld_major_version=
  31897. +gcc_cv_gld_minor_version=
  31898. +gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
  31899. +gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
  31900. +gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
  31901. +
  31902. +if test "${gcc_cv_ld+set}" = set; then :
  31903. +
  31904. +else
  31905. +
  31906. +if test -x "$DEFAULT_LINKER"; then
  31907. + gcc_cv_ld="$DEFAULT_LINKER"
  31908. +elif test $install_gold_as_default = yes \
  31909. + && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
  31910. + && test -f ../gold/Makefile \
  31911. + && test x$build = x$host; then
  31912. + gcc_cv_ld=../gold/ld-new$build_exeext
  31913. +elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
  31914. + && test -f ../ld/Makefile \
  31915. + && test x$build = x$host; then
  31916. + gcc_cv_ld=../ld/ld-new$build_exeext
  31917. +elif test -x collect-ld$build_exeext; then
  31918. + # Build using linker in the current directory.
  31919. + gcc_cv_ld=./collect-ld$build_exeext
  31920. +elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
  31921. + gcc_cv_ld="$LD_FOR_TARGET"
  31922. +else
  31923. + # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
  31924. +set dummy $LD_FOR_TARGET; ac_word=$2
  31925. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  31926. +$as_echo_n "checking for $ac_word... " >&6; }
  31927. +if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
  31928. + $as_echo_n "(cached) " >&6
  31929. +else
  31930. + case $gcc_cv_ld in
  31931. + [\\/]* | ?:[\\/]*)
  31932. + ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
  31933. + ;;
  31934. + *)
  31935. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31936. +for as_dir in $PATH
  31937. +do
  31938. + IFS=$as_save_IFS
  31939. + test -z "$as_dir" && as_dir=.
  31940. + for ac_exec_ext in '' $ac_executable_extensions; do
  31941. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  31942. + ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
  31943. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  31944. + break 2
  31945. + fi
  31946. +done
  31947. + done
  31948. +IFS=$as_save_IFS
  31949. +
  31950. + ;;
  31951. +esac
  31952. +fi
  31953. +gcc_cv_ld=$ac_cv_path_gcc_cv_ld
  31954. +if test -n "$gcc_cv_ld"; then
  31955. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
  31956. +$as_echo "$gcc_cv_ld" >&6; }
  31957. +else
  31958. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31959. +$as_echo "no" >&6; }
  31960. +fi
  31961. +
  31962. +
  31963. +fi
  31964. +fi
  31965. +
  31966. +ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
  31967. +PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
  31968. +# if the PLUGIN_LD is set ld-new, just have it as ld
  31969. +# as that is the installed named.
  31970. +if test x$PLUGIN_LD_SUFFIX = xld-new \
  31971. + || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
  31972. + PLUGIN_LD_SUFFIX=ld
  31973. +fi
  31974. +
  31975. +# Check whether --with-plugin-ld was given.
  31976. +if test "${with_plugin_ld+set}" = set; then :
  31977. + withval=$with_plugin_ld; if test x"$withval" != x; then
  31978. + ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
  31979. + PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
  31980. + fi
  31981. +fi
  31982. +
  31983. +
  31984. +
  31985. +cat >>confdefs.h <<_ACEOF
  31986. +#define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
  31987. +_ACEOF
  31988. +
  31989. +
  31990. +# Check to see if we are using gold instead of ld
  31991. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
  31992. +$as_echo_n "checking whether we are using gold... " >&6; }
  31993. +ld_is_gold=no
  31994. +if test x$gcc_cv_ld != x; then
  31995. + if $gcc_cv_ld --version 2>/dev/null | sed 1q \
  31996. + | grep "GNU gold" > /dev/null; then
  31997. + ld_is_gold=yes
  31998. + fi
  31999. +fi
  32000. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
  32001. +$as_echo "$ld_is_gold" >&6; }
  32002. +
  32003. +ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
  32004. +
  32005. +case "$ORIGINAL_LD_FOR_TARGET" in
  32006. + ./collect-ld | ./collect-ld$build_exeext) ;;
  32007. + *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
  32008. + ;;
  32009. +esac
  32010. +
  32011. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
  32012. +$as_echo_n "checking what linker to use... " >&6; }
  32013. +if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
  32014. + || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
  32015. + # Single tree build which includes ld. We want to prefer it
  32016. + # over whatever linker top-level may have detected, since
  32017. + # we'll use what we're building after installation anyway.
  32018. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
  32019. +$as_echo "newly built ld" >&6; }
  32020. + in_tree_ld=yes
  32021. + in_tree_ld_is_elf=no
  32022. + if (grep 'EMUL = .*elf' ../ld/Makefile \
  32023. + || grep 'EMUL = .*linux' ../ld/Makefile \
  32024. + || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
  32025. + in_tree_ld_is_elf=yes
  32026. + elif test "$ld_is_gold" = yes; then
  32027. + in_tree_ld_is_elf=yes
  32028. + fi
  32029. + for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
  32030. + do
  32031. + gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
  32032. + if test x$gcc_cv_gld_version != x; then
  32033. + break
  32034. + fi
  32035. + done
  32036. + case $gcc_cv_gld_version in
  32037. + VERSION=[0-9]*) ;;
  32038. + *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
  32039. + esac
  32040. + gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
  32041. + gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
  32042. + ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
  32043. + ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
  32044. +else
  32045. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
  32046. +$as_echo "$gcc_cv_ld" >&6; }
  32047. + in_tree_ld=no
  32048. + gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
  32049. + ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
  32050. + ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
  32051. +fi
  32052. +
  32053. +
  32054. +
  32055. +
  32056. +# Figure out what nm we will be using.
  32057. +gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
  32058. +if test "${gcc_cv_nm+set}" = set; then :
  32059. +
  32060. +else
  32061. +
  32062. +if test -f $gcc_cv_binutils_srcdir/configure.in \
  32063. + && test -f ../binutils/Makefile \
  32064. + && test x$build = x$host; then
  32065. + gcc_cv_nm=../binutils/nm-new$build_exeext
  32066. +elif test -x nm$build_exeext; then
  32067. + gcc_cv_nm=./nm$build_exeext
  32068. +elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
  32069. + gcc_cv_nm="$NM_FOR_TARGET"
  32070. +else
  32071. + # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
  32072. +set dummy $NM_FOR_TARGET; ac_word=$2
  32073. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  32074. +$as_echo_n "checking for $ac_word... " >&6; }
  32075. +if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
  32076. + $as_echo_n "(cached) " >&6
  32077. +else
  32078. + case $gcc_cv_nm in
  32079. + [\\/]* | ?:[\\/]*)
  32080. + ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
  32081. + ;;
  32082. + *)
  32083. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32084. +for as_dir in $PATH
  32085. +do
  32086. + IFS=$as_save_IFS
  32087. + test -z "$as_dir" && as_dir=.
  32088. + for ac_exec_ext in '' $ac_executable_extensions; do
  32089. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  32090. + ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
  32091. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  32092. + break 2
  32093. + fi
  32094. +done
  32095. + done
  32096. +IFS=$as_save_IFS
  32097. +
  32098. + ;;
  32099. +esac
  32100. +fi
  32101. +gcc_cv_nm=$ac_cv_path_gcc_cv_nm
  32102. +if test -n "$gcc_cv_nm"; then
  32103. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
  32104. +$as_echo "$gcc_cv_nm" >&6; }
  32105. +else
  32106. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32107. +$as_echo "no" >&6; }
  32108. +fi
  32109. +
  32110. +
  32111. +fi
  32112. +fi
  32113. +
  32114. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
  32115. +$as_echo_n "checking what nm to use... " >&6; }
  32116. +if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
  32117. + # Single tree build which includes binutils.
  32118. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
  32119. +$as_echo "newly built nm" >&6; }
  32120. + in_tree_nm=yes
  32121. +else
  32122. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
  32123. +$as_echo "$gcc_cv_nm" >&6; }
  32124. + in_tree_nm=no
  32125. +fi
  32126. +
  32127. +ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
  32128. +
  32129. +case "$ORIGINAL_NM_FOR_TARGET" in
  32130. + ./nm | ./nm$build_exeext) ;;
  32131. + *) ac_config_files="$ac_config_files nm:exec-tool.in"
  32132. + ;;
  32133. +esac
  32134. +
  32135. +
  32136. +# Figure out what objdump we will be using.
  32137. +if test "${gcc_cv_objdump+set}" = set; then :
  32138. +
  32139. +else
  32140. +
  32141. +if test -f $gcc_cv_binutils_srcdir/configure.in \
  32142. + && test -f ../binutils/Makefile \
  32143. + && test x$build = x$host; then
  32144. + # Single tree build which includes binutils.
  32145. + gcc_cv_objdump=../binutils/objdump$build_exeext
  32146. +elif test -x objdump$build_exeext; then
  32147. + gcc_cv_objdump=./objdump$build_exeext
  32148. +elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
  32149. + gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
  32150. +else
  32151. + # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
  32152. +set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
  32153. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  32154. +$as_echo_n "checking for $ac_word... " >&6; }
  32155. +if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
  32156. + $as_echo_n "(cached) " >&6
  32157. +else
  32158. + case $gcc_cv_objdump in
  32159. + [\\/]* | ?:[\\/]*)
  32160. + ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
  32161. + ;;
  32162. + *)
  32163. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32164. +for as_dir in $PATH
  32165. +do
  32166. + IFS=$as_save_IFS
  32167. + test -z "$as_dir" && as_dir=.
  32168. + for ac_exec_ext in '' $ac_executable_extensions; do
  32169. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  32170. + ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
  32171. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  32172. + break 2
  32173. + fi
  32174. +done
  32175. + done
  32176. +IFS=$as_save_IFS
  32177. +
  32178. + ;;
  32179. +esac
  32180. +fi
  32181. +gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
  32182. +if test -n "$gcc_cv_objdump"; then
  32183. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
  32184. +$as_echo "$gcc_cv_objdump" >&6; }
  32185. +else
  32186. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32187. +$as_echo "no" >&6; }
  32188. +fi
  32189. +
  32190. +
  32191. +fi
  32192. +fi
  32193. +
  32194. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
  32195. +$as_echo_n "checking what objdump to use... " >&6; }
  32196. +if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
  32197. + # Single tree build which includes binutils.
  32198. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
  32199. +$as_echo "newly built objdump" >&6; }
  32200. +elif test x$gcc_cv_objdump = x; then
  32201. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  32202. +$as_echo "not found" >&6; }
  32203. +else
  32204. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
  32205. +$as_echo "$gcc_cv_objdump" >&6; }
  32206. +fi
  32207. +
  32208. +# Figure out what readelf we will be using.
  32209. +if test "${gcc_cv_readelf+set}" = set; then :
  32210. +
  32211. +else
  32212. +
  32213. +if test -f $gcc_cv_binutils_srcdir/configure.in \
  32214. + && test -f ../binutils/Makefile \
  32215. + && test x$build = x$host; then
  32216. + # Single tree build which includes binutils.
  32217. + gcc_cv_readelf=../binutils/readelf$build_exeext
  32218. +elif test -x readelf$build_exeext; then
  32219. + gcc_cv_readelf=./readelf$build_exeext
  32220. +else
  32221. + # Extract the first word of "readelf", so it can be a program name with args.
  32222. +set dummy readelf; ac_word=$2
  32223. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  32224. +$as_echo_n "checking for $ac_word... " >&6; }
  32225. +if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
  32226. + $as_echo_n "(cached) " >&6
  32227. +else
  32228. + case $gcc_cv_readelf in
  32229. + [\\/]* | ?:[\\/]*)
  32230. + ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
  32231. + ;;
  32232. + *)
  32233. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32234. +for as_dir in $PATH
  32235. +do
  32236. + IFS=$as_save_IFS
  32237. + test -z "$as_dir" && as_dir=.
  32238. + for ac_exec_ext in '' $ac_executable_extensions; do
  32239. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  32240. + ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
  32241. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  32242. + break 2
  32243. + fi
  32244. +done
  32245. + done
  32246. +IFS=$as_save_IFS
  32247. +
  32248. + ;;
  32249. +esac
  32250. +fi
  32251. +gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
  32252. +if test -n "$gcc_cv_readelf"; then
  32253. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
  32254. +$as_echo "$gcc_cv_readelf" >&6; }
  32255. +else
  32256. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32257. +$as_echo "no" >&6; }
  32258. +fi
  32259. +
  32260. +
  32261. +fi
  32262. +fi
  32263. +
  32264. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
  32265. +$as_echo_n "checking what readelf to use... " >&6; }
  32266. +if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
  32267. + # Single tree build which includes binutils.
  32268. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
  32269. +$as_echo "newly built readelf" >&6; }
  32270. +elif test x$gcc_cv_readelf = x; then
  32271. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  32272. +$as_echo "not found" >&6; }
  32273. +else
  32274. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
  32275. +$as_echo "$gcc_cv_readelf" >&6; }
  32276. +fi
  32277. +
  32278. +# Figure out what assembler alignment features are present.
  32279. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
  32280. +$as_echo_n "checking assembler flags... " >&6; }
  32281. +if test "${gcc_cv_as_flags+set}" = set; then :
  32282. + $as_echo_n "(cached) " >&6
  32283. +else
  32284. + case "$target" in
  32285. + i[34567]86-*-linux*)
  32286. + gcc_cv_as_flags=--32
  32287. + ;;
  32288. + x86_64-*-linux-gnux32)
  32289. + gcc_cv_as_flags=--x32
  32290. + ;;
  32291. + x86_64-*-linux*)
  32292. + gcc_cv_as_flags=--64
  32293. + ;;
  32294. + powerpc*-*-darwin*)
  32295. + gcc_cv_as_flags="-arch ppc"
  32296. + ;;
  32297. + *)
  32298. + gcc_cv_as_flags=" "
  32299. + ;;
  32300. + esac
  32301. +fi
  32302. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
  32303. +$as_echo "$gcc_cv_as_flags" >&6; }
  32304. +
  32305. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
  32306. +$as_echo_n "checking assembler for .balign and .p2align... " >&6; }
  32307. +if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
  32308. + $as_echo_n "(cached) " >&6
  32309. +else
  32310. + gcc_cv_as_balign_and_p2align=no
  32311. + if test $in_tree_gas = yes; then
  32312. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
  32313. + then gcc_cv_as_balign_and_p2align=yes
  32314. +fi
  32315. + elif test x$gcc_cv_as != x; then
  32316. + $as_echo '.balign 4
  32317. +.p2align 2' > conftest.s
  32318. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  32319. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  32320. + (eval $ac_try) 2>&5
  32321. + ac_status=$?
  32322. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32323. + test $ac_status = 0; }; }
  32324. + then
  32325. + gcc_cv_as_balign_and_p2align=yes
  32326. + else
  32327. + echo "configure: failed program was" >&5
  32328. + cat conftest.s >&5
  32329. + fi
  32330. + rm -f conftest.o conftest.s
  32331. + fi
  32332. +fi
  32333. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
  32334. +$as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
  32335. +if test $gcc_cv_as_balign_and_p2align = yes; then
  32336. +
  32337. +$as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
  32338. +
  32339. +fi
  32340. +
  32341. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
  32342. +$as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
  32343. +if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
  32344. + $as_echo_n "(cached) " >&6
  32345. +else
  32346. + gcc_cv_as_max_skip_p2align=no
  32347. + if test $in_tree_gas = yes; then
  32348. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
  32349. + then gcc_cv_as_max_skip_p2align=yes
  32350. +fi
  32351. + elif test x$gcc_cv_as != x; then
  32352. + $as_echo '.p2align 4,,7' > conftest.s
  32353. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  32354. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  32355. + (eval $ac_try) 2>&5
  32356. + ac_status=$?
  32357. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32358. + test $ac_status = 0; }; }
  32359. + then
  32360. + gcc_cv_as_max_skip_p2align=yes
  32361. + else
  32362. + echo "configure: failed program was" >&5
  32363. + cat conftest.s >&5
  32364. + fi
  32365. + rm -f conftest.o conftest.s
  32366. + fi
  32367. +fi
  32368. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
  32369. +$as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
  32370. +if test $gcc_cv_as_max_skip_p2align = yes; then
  32371. +
  32372. +$as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
  32373. +
  32374. +fi
  32375. +
  32376. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
  32377. +$as_echo_n "checking assembler for .literal16... " >&6; }
  32378. +if test "${gcc_cv_as_literal16+set}" = set; then :
  32379. + $as_echo_n "(cached) " >&6
  32380. +else
  32381. + gcc_cv_as_literal16=no
  32382. + if test $in_tree_gas = yes; then
  32383. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
  32384. + then gcc_cv_as_literal16=yes
  32385. +fi
  32386. + elif test x$gcc_cv_as != x; then
  32387. + $as_echo '.literal16' > conftest.s
  32388. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  32389. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  32390. + (eval $ac_try) 2>&5
  32391. + ac_status=$?
  32392. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32393. + test $ac_status = 0; }; }
  32394. + then
  32395. + gcc_cv_as_literal16=yes
  32396. + else
  32397. + echo "configure: failed program was" >&5
  32398. + cat conftest.s >&5
  32399. + fi
  32400. + rm -f conftest.o conftest.s
  32401. + fi
  32402. +fi
  32403. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
  32404. +$as_echo "$gcc_cv_as_literal16" >&6; }
  32405. +if test $gcc_cv_as_literal16 = yes; then
  32406. +
  32407. +$as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
  32408. +
  32409. +fi
  32410. +
  32411. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
  32412. +$as_echo_n "checking assembler for working .subsection -1... " >&6; }
  32413. +if test "${gcc_cv_as_subsection_m1+set}" = set; then :
  32414. + $as_echo_n "(cached) " >&6
  32415. +else
  32416. + gcc_cv_as_subsection_m1=no
  32417. + if test $in_tree_gas = yes; then
  32418. + if test $in_tree_gas_is_elf = yes \
  32419. + && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
  32420. + then gcc_cv_as_subsection_m1=yes
  32421. +fi
  32422. + elif test x$gcc_cv_as != x; then
  32423. + $as_echo 'conftest_label1: .word 0
  32424. +.subsection -1
  32425. +conftest_label2: .word 0
  32426. +.previous' > conftest.s
  32427. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  32428. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  32429. + (eval $ac_try) 2>&5
  32430. + ac_status=$?
  32431. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32432. + test $ac_status = 0; }; }
  32433. + then
  32434. + if test x$gcc_cv_nm != x; then
  32435. + $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
  32436. + $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
  32437. + if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
  32438. + then :
  32439. + else gcc_cv_as_subsection_m1=yes
  32440. + fi
  32441. + rm -f conftest.nm1 conftest.nm2
  32442. + fi
  32443. + else
  32444. + echo "configure: failed program was" >&5
  32445. + cat conftest.s >&5
  32446. + fi
  32447. + rm -f conftest.o conftest.s
  32448. + fi
  32449. +fi
  32450. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
  32451. +$as_echo "$gcc_cv_as_subsection_m1" >&6; }
  32452. +if test $gcc_cv_as_subsection_m1 = yes; then
  32453. +
  32454. +$as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
  32455. +
  32456. +fi
  32457. +
  32458. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
  32459. +$as_echo_n "checking assembler for .weak... " >&6; }
  32460. +if test "${gcc_cv_as_weak+set}" = set; then :
  32461. + $as_echo_n "(cached) " >&6
  32462. +else
  32463. + gcc_cv_as_weak=no
  32464. + if test $in_tree_gas = yes; then
  32465. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
  32466. + then gcc_cv_as_weak=yes
  32467. +fi
  32468. + elif test x$gcc_cv_as != x; then
  32469. + $as_echo ' .weak foobar' > conftest.s
  32470. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  32471. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  32472. + (eval $ac_try) 2>&5
  32473. + ac_status=$?
  32474. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32475. + test $ac_status = 0; }; }
  32476. + then
  32477. + gcc_cv_as_weak=yes
  32478. + else
  32479. + echo "configure: failed program was" >&5
  32480. + cat conftest.s >&5
  32481. + fi
  32482. + rm -f conftest.o conftest.s
  32483. + fi
  32484. +fi
  32485. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
  32486. +$as_echo "$gcc_cv_as_weak" >&6; }
  32487. +if test $gcc_cv_as_weak = yes; then
  32488. +
  32489. +$as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
  32490. +
  32491. +fi
  32492. +
  32493. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
  32494. +$as_echo_n "checking assembler for .weakref... " >&6; }
  32495. +if test "${gcc_cv_as_weakref+set}" = set; then :
  32496. + $as_echo_n "(cached) " >&6
  32497. +else
  32498. + gcc_cv_as_weakref=no
  32499. + if test $in_tree_gas = yes; then
  32500. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
  32501. + then gcc_cv_as_weakref=yes
  32502. +fi
  32503. + elif test x$gcc_cv_as != x; then
  32504. + $as_echo ' .weakref foobar, barfnot' > conftest.s
  32505. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  32506. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  32507. + (eval $ac_try) 2>&5
  32508. + ac_status=$?
  32509. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32510. + test $ac_status = 0; }; }
  32511. + then
  32512. + gcc_cv_as_weakref=yes
  32513. + else
  32514. + echo "configure: failed program was" >&5
  32515. + cat conftest.s >&5
  32516. + fi
  32517. + rm -f conftest.o conftest.s
  32518. + fi
  32519. +fi
  32520. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
  32521. +$as_echo "$gcc_cv_as_weakref" >&6; }
  32522. +if test $gcc_cv_as_weakref = yes; then
  32523. +
  32524. +$as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
  32525. +
  32526. +fi
  32527. +
  32528. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
  32529. +$as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
  32530. +if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
  32531. + $as_echo_n "(cached) " >&6
  32532. +else
  32533. + gcc_cv_as_nsubspa_comdat=no
  32534. + if test $in_tree_gas = yes; then
  32535. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
  32536. + then gcc_cv_as_nsubspa_comdat=yes
  32537. +fi
  32538. + elif test x$gcc_cv_as != x; then
  32539. + $as_echo ' .SPACE $TEXT$
  32540. + .NSUBSPA $CODE$,COMDAT' > conftest.s
  32541. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  32542. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  32543. + (eval $ac_try) 2>&5
  32544. + ac_status=$?
  32545. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32546. + test $ac_status = 0; }; }
  32547. + then
  32548. + gcc_cv_as_nsubspa_comdat=yes
  32549. + else
  32550. + echo "configure: failed program was" >&5
  32551. + cat conftest.s >&5
  32552. + fi
  32553. + rm -f conftest.o conftest.s
  32554. + fi
  32555. +fi
  32556. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
  32557. +$as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
  32558. +if test $gcc_cv_as_nsubspa_comdat = yes; then
  32559. +
  32560. +$as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
  32561. +
  32562. +fi
  32563. +
  32564. +# .hidden needs to be supported in both the assembler and the linker,
  32565. +# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
  32566. +# This is irritatingly difficult to feature test for; we have to check the
  32567. +# date string after the version number. If we've got an in-tree
  32568. +# ld, we don't know its patchlevel version, so we set the baseline at 2.13
  32569. +# to be safe.
  32570. +# The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
  32571. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
  32572. +$as_echo_n "checking assembler for .hidden... " >&6; }
  32573. +if test "${gcc_cv_as_hidden+set}" = set; then :
  32574. + $as_echo_n "(cached) " >&6
  32575. +else
  32576. + gcc_cv_as_hidden=no
  32577. + if test $in_tree_gas = yes; then
  32578. + if test $in_tree_gas_is_elf = yes \
  32579. + && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
  32580. + then gcc_cv_as_hidden=yes
  32581. +fi
  32582. + elif test x$gcc_cv_as != x; then
  32583. + $as_echo ' .hidden foobar
  32584. +foobar:' > conftest.s
  32585. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  32586. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  32587. + (eval $ac_try) 2>&5
  32588. + ac_status=$?
  32589. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32590. + test $ac_status = 0; }; }
  32591. + then
  32592. +
  32593. +# Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
  32594. +# STV_HIDDEN, so disable .hidden support if so.
  32595. +case "${target}" in
  32596. + i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
  32597. + if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
  32598. + cat > conftest.s <<EOF
  32599. +.globl hidden
  32600. + .hidden hidden
  32601. +hidden:
  32602. +.globl default
  32603. + .set default,hidden
  32604. +EOF
  32605. + if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
  32606. + && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
  32607. + grep '\.hidden default' > /dev/null; then
  32608. + gcc_cv_as_hidden=no
  32609. + else
  32610. + gcc_cv_as_hidden=yes
  32611. + fi
  32612. + else
  32613. + # Assume bug is present if objdump is missing.
  32614. + gcc_cv_as_hidden=no
  32615. + fi
  32616. + ;;
  32617. + *)
  32618. + gcc_cv_as_hidden=yes
  32619. + ;;
  32620. +esac
  32621. + else
  32622. + echo "configure: failed program was" >&5
  32623. + cat conftest.s >&5
  32624. + fi
  32625. + rm -f conftest.o conftest.s
  32626. + fi
  32627. +fi
  32628. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
  32629. +$as_echo "$gcc_cv_as_hidden" >&6; }
  32630. +
  32631. +case "${target}" in
  32632. + *-*-darwin*)
  32633. + # Darwin as has some visibility support, though with a different syntax.
  32634. + gcc_cv_as_hidden=yes
  32635. + ;;
  32636. +esac
  32637. +
  32638. +# gnu_indirect_function type is an extension proposed at
  32639. +# http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
  32640. +# selection of function implementation
  32641. +# Check whether --enable-gnu-indirect-function was given.
  32642. +if test "${enable_gnu_indirect_function+set}" = set; then :
  32643. + enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
  32644. + yes | no) ;;
  32645. + *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
  32646. +Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
  32647. + esac
  32648. +else
  32649. + enable_gnu_indirect_function="$default_gnu_indirect_function"
  32650. +fi
  32651. +
  32652. +
  32653. +gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
  32654. +
  32655. +cat >>confdefs.h <<_ACEOF
  32656. +#define HAVE_GNU_INDIRECT_FUNCTION $gif
  32657. +_ACEOF
  32658. +
  32659. +
  32660. +
  32661. +if test $in_tree_ld != yes ; then
  32662. + ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
  32663. + if echo "$ld_ver" | grep GNU > /dev/null; then
  32664. + if test x"$ld_is_gold" = xyes; then
  32665. + # GNU gold --version looks like this:
  32666. + #
  32667. + # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
  32668. + #
  32669. + # We extract the binutils version which is more familiar and specific
  32670. + # than the gold version.
  32671. + ld_vers=`echo $ld_ver | sed -n \
  32672. + -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
  32673. + else
  32674. + # GNU ld --version looks like this:
  32675. + #
  32676. + # GNU ld (GNU Binutils) 2.21.51.20110225
  32677. + ld_vers=`echo $ld_ver | sed -n \
  32678. + -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
  32679. + fi
  32680. + ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
  32681. + ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
  32682. + ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
  32683. + ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  32684. + else
  32685. + case "${target}" in
  32686. + *-*-solaris2*)
  32687. + # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
  32688. + # format.
  32689. + #
  32690. + # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
  32691. + # /usr/ccs/bin/ld has been configured.
  32692. + ld_ver=`$gcc_cv_ld -V 2>&1`
  32693. + if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
  32694. + ld_vers=`echo $ld_ver | sed -n \
  32695. + -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
  32696. + ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
  32697. + ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
  32698. + fi
  32699. + ;;
  32700. + esac
  32701. + fi
  32702. +fi
  32703. +
  32704. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
  32705. +$as_echo_n "checking linker for .hidden support... " >&6; }
  32706. +if test "${gcc_cv_ld_hidden+set}" = set; then :
  32707. + $as_echo_n "(cached) " >&6
  32708. +else
  32709. + if test $in_tree_ld = yes ; then
  32710. + gcc_cv_ld_hidden=no
  32711. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
  32712. + && test $in_tree_ld_is_elf = yes; then
  32713. + gcc_cv_ld_hidden=yes
  32714. + fi
  32715. +else
  32716. + gcc_cv_ld_hidden=yes
  32717. + if test x"$ld_is_gold" = xyes; then
  32718. + :
  32719. + elif echo "$ld_ver" | grep GNU > /dev/null; then
  32720. + case "${target}" in
  32721. + mmix-knuth-mmixware)
  32722. + # The linker emits by default mmo, not ELF, so "no" is appropriate.
  32723. + gcc_cv_ld_hidden=no
  32724. + ;;
  32725. + esac
  32726. + if test 0"$ld_date" -lt 20020404; then
  32727. + if test -n "$ld_date"; then
  32728. + # If there was date string, but was earlier than 2002-04-04, fail
  32729. + gcc_cv_ld_hidden=no
  32730. + elif test -z "$ld_vers"; then
  32731. + # If there was no date string nor ld version number, something is wrong
  32732. + gcc_cv_ld_hidden=no
  32733. + else
  32734. + test -z "$ld_vers_patch" && ld_vers_patch=0
  32735. + if test "$ld_vers_major" -lt 2; then
  32736. + gcc_cv_ld_hidden=no
  32737. + elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
  32738. + gcc_cv_ld_hidden="no"
  32739. + elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
  32740. + gcc_cv_ld_hidden=no
  32741. + fi
  32742. + fi
  32743. + fi
  32744. + else
  32745. + case "${target}" in
  32746. + *-*-darwin*)
  32747. + # Darwin ld has some visibility support.
  32748. + gcc_cv_ld_hidden=yes
  32749. + ;;
  32750. + hppa64*-*-hpux* | ia64*-*-hpux*)
  32751. + gcc_cv_ld_hidden=yes
  32752. + ;;
  32753. + *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
  32754. + # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
  32755. + # .symbolic was only added in Solaris 9 12/02.
  32756. + gcc_cv_ld_hidden=yes
  32757. + ;;
  32758. + *)
  32759. + gcc_cv_ld_hidden=no
  32760. + ;;
  32761. + esac
  32762. + fi
  32763. +fi
  32764. +fi
  32765. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
  32766. +$as_echo "$gcc_cv_ld_hidden" >&6; }
  32767. +libgcc_visibility=no
  32768. +
  32769. +
  32770. +if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
  32771. + libgcc_visibility=yes
  32772. +
  32773. +$as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
  32774. +
  32775. +fi
  32776. +
  32777. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
  32778. +$as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
  32779. +gcc_cv_ld_ro_rw_mix=unknown
  32780. +if test $in_tree_ld = yes ; then
  32781. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
  32782. + && test $in_tree_ld_is_elf = yes; then
  32783. + gcc_cv_ld_ro_rw_mix=read-write
  32784. + fi
  32785. +elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
  32786. + echo '.section myfoosect, "a"' > conftest1.s
  32787. + echo '.section myfoosect, "aw"' > conftest2.s
  32788. + echo '.byte 1' >> conftest2.s
  32789. + echo '.section myfoosect, "a"' > conftest3.s
  32790. + echo '.byte 0' >> conftest3.s
  32791. + if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
  32792. + && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
  32793. + && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
  32794. + && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
  32795. + conftest2.o conftest3.o > /dev/null 2>&1; then
  32796. + gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
  32797. + | sed -e '/myfoosect/!d' -e N`
  32798. + if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
  32799. + if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
  32800. + gcc_cv_ld_ro_rw_mix=read-only
  32801. + else
  32802. + gcc_cv_ld_ro_rw_mix=read-write
  32803. + fi
  32804. + fi
  32805. + fi
  32806. + rm -f conftest.* conftest[123].*
  32807. +fi
  32808. +if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
  32809. +
  32810. +$as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
  32811. +
  32812. +fi
  32813. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
  32814. +$as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
  32815. +
  32816. +if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
  32817. + case "${target}" in
  32818. + *-*-solaris2*)
  32819. + #
  32820. + # Solaris 2 ld -V output looks like this for a regular version:
  32821. + #
  32822. + # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
  32823. + #
  32824. + # but test versions add stuff at the end:
  32825. + #
  32826. + # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
  32827. + #
  32828. + gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
  32829. + if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
  32830. + gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
  32831. + -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
  32832. + gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
  32833. + gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
  32834. + fi
  32835. + ;;
  32836. + esac
  32837. +fi
  32838. +
  32839. +# Check whether --enable-initfini-array was given.
  32840. +if test "${enable_initfini_array+set}" = set; then :
  32841. + enableval=$enable_initfini_array;
  32842. +else
  32843. +
  32844. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
  32845. +$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
  32846. +if test "${gcc_cv_initfini_array+set}" = set; then :
  32847. + $as_echo_n "(cached) " >&6
  32848. +else
  32849. + if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
  32850. + case "${target}" in
  32851. + ia64-*)
  32852. + if test "$cross_compiling" = yes; then :
  32853. + gcc_cv_initfini_array=no
  32854. +else
  32855. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32856. +/* end confdefs.h. */
  32857. +
  32858. +#ifndef __ELF__
  32859. +#error Not an ELF OS
  32860. +#endif
  32861. +/* We turn on .preinit_array/.init_array/.fini_array support for ia64
  32862. + if it can be used. */
  32863. +static int x = -1;
  32864. +int main (void) { return x; }
  32865. +int foo (void) { x = 0; }
  32866. +int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
  32867. +
  32868. +_ACEOF
  32869. +if ac_fn_c_try_run "$LINENO"; then :
  32870. + gcc_cv_initfini_array=yes
  32871. +else
  32872. + gcc_cv_initfini_array=no
  32873. +fi
  32874. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  32875. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  32876. +fi
  32877. +;;
  32878. + *)
  32879. + gcc_cv_initfini_array=no
  32880. + if test $in_tree_ld = yes ; then
  32881. + if test "$gcc_cv_gld_major_version" -eq 2 \
  32882. + -a "$gcc_cv_gld_minor_version" -ge 22 \
  32883. + -o "$gcc_cv_gld_major_version" -gt 2 \
  32884. + && test $in_tree_ld_is_elf = yes; then
  32885. + gcc_cv_initfini_array=yes
  32886. + fi
  32887. + elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
  32888. + cat > conftest.s <<\EOF
  32889. +.section .dtors,"a",%progbits
  32890. +.balign 4
  32891. +.byte 'A', 'A', 'A', 'A'
  32892. +.section .ctors,"a",%progbits
  32893. +.balign 4
  32894. +.byte 'B', 'B', 'B', 'B'
  32895. +.section .fini_array.65530,"a",%progbits
  32896. +.balign 4
  32897. +.byte 'C', 'C', 'C', 'C'
  32898. +.section .init_array.65530,"a",%progbits
  32899. +.balign 4
  32900. +.byte 'D', 'D', 'D', 'D'
  32901. +.section .dtors.64528,"a",%progbits
  32902. +.balign 4
  32903. +.byte 'E', 'E', 'E', 'E'
  32904. +.section .ctors.64528,"a",%progbits
  32905. +.balign 4
  32906. +.byte 'F', 'F', 'F', 'F'
  32907. +.section .fini_array.01005,"a",%progbits
  32908. +.balign 4
  32909. +.byte 'G', 'G', 'G', 'G'
  32910. +.section .init_array.01005,"a",%progbits
  32911. +.balign 4
  32912. +.byte 'H', 'H', 'H', 'H'
  32913. +.text
  32914. +.globl _start
  32915. +_start:
  32916. +EOF
  32917. + if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
  32918. + && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
  32919. + && $gcc_cv_objdump -s -j .init_array conftest \
  32920. + | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
  32921. + && $gcc_cv_objdump -s -j .fini_array conftest \
  32922. + | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
  32923. + gcc_cv_initfini_array=yes
  32924. + fi
  32925. + rm -f conftest conftest.*
  32926. + fi
  32927. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32928. +/* end confdefs.h. */
  32929. +
  32930. +#ifndef __ELF__
  32931. +# error Not an ELF OS
  32932. +#endif
  32933. +#include <stdlib.h>
  32934. +#if defined __GLIBC_PREREQ
  32935. +# if __GLIBC_PREREQ (2, 4)
  32936. +# else
  32937. +# error GLIBC 2.4 required
  32938. +# endif
  32939. +#else
  32940. +# if defined __sun__ && defined __svr4__
  32941. + /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
  32942. +# else
  32943. +# error The C library not known to support .init_array/.fini_array
  32944. +# endif
  32945. +#endif
  32946. +
  32947. +_ACEOF
  32948. +if ac_fn_c_try_cpp "$LINENO"; then :
  32949. +
  32950. +else
  32951. + gcc_cv_initfini_array=no
  32952. +fi
  32953. +rm -f conftest.err conftest.$ac_ext;;
  32954. + esac
  32955. + else
  32956. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
  32957. +$as_echo_n "checking cross compile... guessing... " >&6; }
  32958. + gcc_cv_initfini_array=no
  32959. + fi
  32960. +fi
  32961. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
  32962. +$as_echo "$gcc_cv_initfini_array" >&6; }
  32963. + enable_initfini_array=$gcc_cv_initfini_array
  32964. +
  32965. +fi
  32966. +
  32967. +if test $enable_initfini_array = yes; then
  32968. +
  32969. +$as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
  32970. +
  32971. +fi
  32972. +
  32973. +# Check if we have .[us]leb128, and support symbol arithmetic with it.
  32974. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
  32975. +$as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
  32976. +if test "${gcc_cv_as_leb128+set}" = set; then :
  32977. + $as_echo_n "(cached) " >&6
  32978. +else
  32979. + gcc_cv_as_leb128=no
  32980. + if test $in_tree_gas = yes; then
  32981. + if test $in_tree_gas_is_elf = yes \
  32982. + && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
  32983. + then gcc_cv_as_leb128=yes
  32984. +fi
  32985. + elif test x$gcc_cv_as != x; then
  32986. + $as_echo ' .data
  32987. + .uleb128 L2 - L1
  32988. +L1:
  32989. + .uleb128 1280
  32990. + .sleb128 -1010
  32991. +L2:' > conftest.s
  32992. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  32993. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  32994. + (eval $ac_try) 2>&5
  32995. + ac_status=$?
  32996. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  32997. + test $ac_status = 0; }; }
  32998. + then
  32999. + # GAS versions before 2.11 do not support uleb128,
  33000. + # despite appearing to.
  33001. + # ??? There exists an elf-specific test that will crash
  33002. + # the assembler. Perhaps it's better to figure out whether
  33003. + # arbitrary sections are supported and try the test.
  33004. + as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
  33005. + if echo "$as_ver" | grep GNU > /dev/null; then
  33006. + as_vers=`echo $as_ver | sed -n \
  33007. + -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
  33008. + as_major=`expr "$as_vers" : '\([0-9]*\)'`
  33009. + as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
  33010. + if test $as_major -eq 2 && test $as_minor -lt 11
  33011. + then :
  33012. + else gcc_cv_as_leb128=yes
  33013. + fi
  33014. + fi
  33015. + else
  33016. + echo "configure: failed program was" >&5
  33017. + cat conftest.s >&5
  33018. + fi
  33019. + rm -f conftest.o conftest.s
  33020. + fi
  33021. +fi
  33022. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
  33023. +$as_echo "$gcc_cv_as_leb128" >&6; }
  33024. +if test $gcc_cv_as_leb128 = yes; then
  33025. +
  33026. +$as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
  33027. +
  33028. +fi
  33029. +
  33030. +# Check if we have assembler support for unwind directives.
  33031. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
  33032. +$as_echo_n "checking assembler for cfi directives... " >&6; }
  33033. +if test "${gcc_cv_as_cfi_directive+set}" = set; then :
  33034. + $as_echo_n "(cached) " >&6
  33035. +else
  33036. + gcc_cv_as_cfi_directive=no
  33037. + if test x$gcc_cv_as != x; then
  33038. + $as_echo ' .text
  33039. + .cfi_startproc
  33040. + .cfi_offset 0, 0
  33041. + .cfi_same_value 1
  33042. + .cfi_def_cfa 1, 2
  33043. + .cfi_escape 1, 2, 3, 4, 5
  33044. + .cfi_endproc' > conftest.s
  33045. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  33046. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  33047. + (eval $ac_try) 2>&5
  33048. + ac_status=$?
  33049. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33050. + test $ac_status = 0; }; }
  33051. + then
  33052. + case "$target" in
  33053. + *-*-solaris*)
  33054. + # If the linker used on Solaris (like Sun ld) isn't capable of merging
  33055. + # read-only and read-write sections, we need to make sure that the
  33056. + # assembler used emits read-write .eh_frame sections.
  33057. + if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
  33058. + if test "x$gcc_cv_objdump" != x; then
  33059. + if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
  33060. + sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
  33061. + gcc_cv_as_cfi_directive=no
  33062. + else
  33063. + case "$target" in
  33064. + i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
  33065. + # On Solaris/x86, make sure that GCC and gas agree on using
  33066. + # read-only .eh_frame sections for 64-bit.
  33067. + if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
  33068. + $gcc_cv_objdump -h conftest.o 2>/dev/null | \
  33069. + sed -e /.eh_frame/!d -e N | \
  33070. + grep READONLY > /dev/null; then
  33071. + gcc_cv_as_cfi_directive=yes
  33072. + else
  33073. + gcc_cv_as_cfi_directive=no
  33074. + fi
  33075. + ;;
  33076. + *)
  33077. + gcc_cv_as_cfi_directive=yes
  33078. + ;;
  33079. + esac
  33080. + fi
  33081. + else
  33082. + # no objdump, err on the side of caution
  33083. + gcc_cv_as_cfi_directive=no
  33084. + fi
  33085. + else
  33086. + gcc_cv_as_cfi_directive=yes
  33087. + fi
  33088. + ;;
  33089. + *-*-*)
  33090. + gcc_cv_as_cfi_directive=yes
  33091. + ;;
  33092. +esac
  33093. + else
  33094. + echo "configure: failed program was" >&5
  33095. + cat conftest.s >&5
  33096. + fi
  33097. + rm -f conftest.o conftest.s
  33098. + fi
  33099. +fi
  33100. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
  33101. +$as_echo "$gcc_cv_as_cfi_directive" >&6; }
  33102. +
  33103. +if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
  33104. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
  33105. +$as_echo_n "checking assembler for working cfi advance... " >&6; }
  33106. +if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
  33107. + $as_echo_n "(cached) " >&6
  33108. +else
  33109. + gcc_cv_as_cfi_advance_working=no
  33110. + if test x$gcc_cv_as != x; then
  33111. + $as_echo ' .text
  33112. + .cfi_startproc
  33113. + .cfi_adjust_cfa_offset 64
  33114. + .skip 75040, 0
  33115. + .cfi_adjust_cfa_offset 128
  33116. + .cfi_endproc' > conftest.s
  33117. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  33118. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  33119. + (eval $ac_try) 2>&5
  33120. + ac_status=$?
  33121. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33122. + test $ac_status = 0; }; }
  33123. + then
  33124. +
  33125. +if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
  33126. + | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
  33127. + gcc_cv_as_cfi_advance_working=yes
  33128. +fi
  33129. +
  33130. + else
  33131. + echo "configure: failed program was" >&5
  33132. + cat conftest.s >&5
  33133. + fi
  33134. + rm -f conftest.o conftest.s
  33135. + fi
  33136. +fi
  33137. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
  33138. +$as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
  33139. +
  33140. +else
  33141. + # no objdump, err on the side of caution
  33142. + gcc_cv_as_cfi_advance_working=no
  33143. +fi
  33144. +
  33145. +
  33146. +cat >>confdefs.h <<_ACEOF
  33147. +#define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
  33148. + && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
  33149. +_ACEOF
  33150. +
  33151. +
  33152. +
  33153. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
  33154. +$as_echo_n "checking assembler for cfi personality directive... " >&6; }
  33155. +if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
  33156. + $as_echo_n "(cached) " >&6
  33157. +else
  33158. + gcc_cv_as_cfi_personality_directive=no
  33159. + if test x$gcc_cv_as != x; then
  33160. + $as_echo ' .text
  33161. + .cfi_startproc
  33162. + .cfi_personality 0, symbol
  33163. + .cfi_endproc' > conftest.s
  33164. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  33165. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  33166. + (eval $ac_try) 2>&5
  33167. + ac_status=$?
  33168. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33169. + test $ac_status = 0; }; }
  33170. + then
  33171. + gcc_cv_as_cfi_personality_directive=yes
  33172. + else
  33173. + echo "configure: failed program was" >&5
  33174. + cat conftest.s >&5
  33175. + fi
  33176. + rm -f conftest.o conftest.s
  33177. + fi
  33178. +fi
  33179. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
  33180. +$as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
  33181. +
  33182. +
  33183. +cat >>confdefs.h <<_ACEOF
  33184. +#define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
  33185. + then echo 1; else echo 0; fi`
  33186. +_ACEOF
  33187. +
  33188. +
  33189. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
  33190. +$as_echo_n "checking assembler for cfi sections directive... " >&6; }
  33191. +if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
  33192. + $as_echo_n "(cached) " >&6
  33193. +else
  33194. + gcc_cv_as_cfi_sections_directive=no
  33195. + if test x$gcc_cv_as != x; then
  33196. + $as_echo ' .text
  33197. + .cfi_sections .debug_frame, .eh_frame
  33198. + .cfi_startproc
  33199. + .cfi_endproc' > conftest.s
  33200. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  33201. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  33202. + (eval $ac_try) 2>&5
  33203. + ac_status=$?
  33204. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33205. + test $ac_status = 0; }; }
  33206. + then
  33207. + case $target_os in
  33208. + win32 | pe | cygwin* | mingw32* | uwin*)
  33209. + # Need to check that we generated the correct relocation for the
  33210. + # .debug_frame section. This was fixed for binutils 2.21.
  33211. + gcc_cv_as_cfi_sections_directive=no
  33212. + if test "x$gcc_cv_objdump" != x; then
  33213. + if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
  33214. + grep secrel > /dev/null; then
  33215. + gcc_cv_as_cfi_sections_directive=yes
  33216. + fi
  33217. + fi
  33218. + ;;
  33219. + *)
  33220. + gcc_cv_as_cfi_sections_directive=yes
  33221. + ;;
  33222. +esac
  33223. + else
  33224. + echo "configure: failed program was" >&5
  33225. + cat conftest.s >&5
  33226. + fi
  33227. + rm -f conftest.o conftest.s
  33228. + fi
  33229. +fi
  33230. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
  33231. +$as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
  33232. +
  33233. +
  33234. +
  33235. +cat >>confdefs.h <<_ACEOF
  33236. +#define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
  33237. + then echo 1; else echo 0; fi`
  33238. +_ACEOF
  33239. +
  33240. +
  33241. +# GAS versions up to and including 2.11.0 may mis-optimize
  33242. +# .eh_frame data.
  33243. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
  33244. +$as_echo_n "checking assembler for eh_frame optimization... " >&6; }
  33245. +if test "${gcc_cv_as_eh_frame+set}" = set; then :
  33246. + $as_echo_n "(cached) " >&6
  33247. +else
  33248. + gcc_cv_as_eh_frame=no
  33249. + if test $in_tree_gas = yes; then
  33250. + if test $in_tree_gas_is_elf = yes \
  33251. + && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
  33252. + then gcc_cv_as_eh_frame=yes
  33253. +fi
  33254. + elif test x$gcc_cv_as != x; then
  33255. + $as_echo ' .text
  33256. +.LFB1:
  33257. + .4byte 0
  33258. +.L1:
  33259. + .4byte 0
  33260. +.LFE1:
  33261. + .section .eh_frame,"aw",@progbits
  33262. +__FRAME_BEGIN__:
  33263. + .4byte .LECIE1-.LSCIE1
  33264. +.LSCIE1:
  33265. + .4byte 0x0
  33266. + .byte 0x1
  33267. + .ascii "z\0"
  33268. + .byte 0x1
  33269. + .byte 0x78
  33270. + .byte 0x1a
  33271. + .byte 0x0
  33272. + .byte 0x4
  33273. + .4byte 1
  33274. + .p2align 1
  33275. +.LECIE1:
  33276. +.LSFDE1:
  33277. + .4byte .LEFDE1-.LASFDE1
  33278. +.LASFDE1:
  33279. + .4byte .LASFDE1-__FRAME_BEGIN__
  33280. + .4byte .LFB1
  33281. + .4byte .LFE1-.LFB1
  33282. + .byte 0x4
  33283. + .4byte .LFE1-.LFB1
  33284. + .byte 0x4
  33285. + .4byte .L1-.LFB1
  33286. +.LEFDE1:' > conftest.s
  33287. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  33288. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  33289. + (eval $ac_try) 2>&5
  33290. + ac_status=$?
  33291. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33292. + test $ac_status = 0; }; }
  33293. + then
  33294. + cat > conftest.lit <<EOF
  33295. + 0000 10000000 00000000 017a0001 781a0004 .........z..x...
  33296. + 0010 01000000 12000000 18000000 00000000 ................
  33297. + 0020 08000000 04080000 0044 .........D
  33298. +EOF
  33299. +cat > conftest.big <<EOF
  33300. + 0000 00000010 00000000 017a0001 781a0004 .........z..x...
  33301. + 0010 00000001 00000012 00000018 00000000 ................
  33302. + 0020 00000008 04000000 0844 .........D
  33303. +EOF
  33304. + # If the assembler didn't choke, and we can objdump,
  33305. + # and we got the correct data, then succeed.
  33306. + # The text in the here-document typically retains its unix-style line
  33307. + # endings, while the output of objdump will use host line endings.
  33308. + # Therefore, use diff -b for the comparisons.
  33309. + if test x$gcc_cv_objdump != x \
  33310. + && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
  33311. + | tail -3 > conftest.got \
  33312. + && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
  33313. + || diff -b conftest.big conftest.got > /dev/null 2>&1; }
  33314. + then
  33315. + gcc_cv_as_eh_frame=yes
  33316. + elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
  33317. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  33318. + (eval $ac_try) 2>&5
  33319. + ac_status=$?
  33320. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33321. + test $ac_status = 0; }; }; then
  33322. + gcc_cv_as_eh_frame=buggy
  33323. + else
  33324. + # Uh oh, what do we do now?
  33325. + gcc_cv_as_eh_frame=no
  33326. + fi
  33327. + else
  33328. + echo "configure: failed program was" >&5
  33329. + cat conftest.s >&5
  33330. + fi
  33331. + rm -f conftest.o conftest.s
  33332. + fi
  33333. +fi
  33334. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
  33335. +$as_echo "$gcc_cv_as_eh_frame" >&6; }
  33336. +
  33337. +
  33338. +if test $gcc_cv_as_eh_frame = buggy; then
  33339. +
  33340. +$as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
  33341. +
  33342. +fi
  33343. +
  33344. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
  33345. +$as_echo_n "checking assembler for section merging support... " >&6; }
  33346. +if test "${gcc_cv_as_shf_merge+set}" = set; then :
  33347. + $as_echo_n "(cached) " >&6
  33348. +else
  33349. + gcc_cv_as_shf_merge=no
  33350. + if test $in_tree_gas = yes; then
  33351. + if test $in_tree_gas_is_elf = yes \
  33352. + && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
  33353. + then gcc_cv_as_shf_merge=yes
  33354. +fi
  33355. + elif test x$gcc_cv_as != x; then
  33356. + $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
  33357. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
  33358. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  33359. + (eval $ac_try) 2>&5
  33360. + ac_status=$?
  33361. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33362. + test $ac_status = 0; }; }
  33363. + then
  33364. + gcc_cv_as_shf_merge=yes
  33365. + else
  33366. + echo "configure: failed program was" >&5
  33367. + cat conftest.s >&5
  33368. + fi
  33369. + rm -f conftest.o conftest.s
  33370. + fi
  33371. +fi
  33372. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
  33373. +$as_echo "$gcc_cv_as_shf_merge" >&6; }
  33374. +
  33375. +if test $gcc_cv_as_shf_merge = no; then
  33376. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
  33377. +$as_echo_n "checking assembler for section merging support... " >&6; }
  33378. +if test "${gcc_cv_as_shf_merge+set}" = set; then :
  33379. + $as_echo_n "(cached) " >&6
  33380. +else
  33381. + gcc_cv_as_shf_merge=no
  33382. + if test $in_tree_gas = yes; then
  33383. + if test $in_tree_gas_is_elf = yes \
  33384. + && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
  33385. + then gcc_cv_as_shf_merge=yes
  33386. +fi
  33387. + elif test x$gcc_cv_as != x; then
  33388. + $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
  33389. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
  33390. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  33391. + (eval $ac_try) 2>&5
  33392. + ac_status=$?
  33393. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33394. + test $ac_status = 0; }; }
  33395. + then
  33396. + gcc_cv_as_shf_merge=yes
  33397. + else
  33398. + echo "configure: failed program was" >&5
  33399. + cat conftest.s >&5
  33400. + fi
  33401. + rm -f conftest.o conftest.s
  33402. + fi
  33403. +fi
  33404. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
  33405. +$as_echo "$gcc_cv_as_shf_merge" >&6; }
  33406. +
  33407. +fi
  33408. +
  33409. +cat >>confdefs.h <<_ACEOF
  33410. +#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
  33411. +_ACEOF
  33412. +
  33413. +
  33414. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
  33415. +$as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
  33416. +if test "${gcc_cv_as_comdat_group+set}" = set; then :
  33417. + $as_echo_n "(cached) " >&6
  33418. +else
  33419. + gcc_cv_as_comdat_group=no
  33420. + if test $in_tree_gas = yes; then
  33421. + if test $in_tree_gas_is_elf = yes \
  33422. + && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
  33423. + then gcc_cv_as_comdat_group=yes
  33424. +fi
  33425. + elif test x$gcc_cv_as != x; then
  33426. + $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
  33427. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
  33428. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  33429. + (eval $ac_try) 2>&5
  33430. + ac_status=$?
  33431. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33432. + test $ac_status = 0; }; }
  33433. + then
  33434. + gcc_cv_as_comdat_group=yes
  33435. + else
  33436. + echo "configure: failed program was" >&5
  33437. + cat conftest.s >&5
  33438. + fi
  33439. + rm -f conftest.o conftest.s
  33440. + fi
  33441. +fi
  33442. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
  33443. +$as_echo "$gcc_cv_as_comdat_group" >&6; }
  33444. +
  33445. +if test $gcc_cv_as_comdat_group = yes; then
  33446. + gcc_cv_as_comdat_group_percent=no
  33447. + gcc_cv_as_comdat_group_group=no
  33448. +else
  33449. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
  33450. +$as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
  33451. +if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
  33452. + $as_echo_n "(cached) " >&6
  33453. +else
  33454. + gcc_cv_as_comdat_group_percent=no
  33455. + if test $in_tree_gas = yes; then
  33456. + if test $in_tree_gas_is_elf = yes \
  33457. + && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
  33458. + then gcc_cv_as_comdat_group_percent=yes
  33459. +fi
  33460. + elif test x$gcc_cv_as != x; then
  33461. + $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
  33462. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
  33463. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  33464. + (eval $ac_try) 2>&5
  33465. + ac_status=$?
  33466. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33467. + test $ac_status = 0; }; }
  33468. + then
  33469. + gcc_cv_as_comdat_group_percent=yes
  33470. + else
  33471. + echo "configure: failed program was" >&5
  33472. + cat conftest.s >&5
  33473. + fi
  33474. + rm -f conftest.o conftest.s
  33475. + fi
  33476. +fi
  33477. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
  33478. +$as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
  33479. +
  33480. + if test $gcc_cv_as_comdat_group_percent = yes; then
  33481. + gcc_cv_as_comdat_group_group=no
  33482. + else
  33483. + if test -z "${gcc_cv_as_comdat_group_group+set}"; then
  33484. + gcc_cv_as_comdat_group_group=no
  33485. + fi
  33486. + case "${target}" in
  33487. + # Sun as uses a completely different syntax.
  33488. + *-*-solaris2*)
  33489. + case "${target}" in
  33490. + sparc*-*-solaris2*)
  33491. + conftest_s='
  33492. + .group foo,".text%foo",#comdat
  33493. + .section ".text%foo", #alloc,#execinstr,#progbits
  33494. + .globl foo
  33495. + foo:
  33496. + '
  33497. + ;;
  33498. + i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
  33499. + conftest_s='
  33500. + .group foo,.text%foo,#comdat
  33501. + .section .text%foo, "ax", @progbits
  33502. + .globl foo
  33503. + foo:
  33504. + '
  33505. + ;;
  33506. + esac
  33507. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
  33508. +$as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
  33509. +if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
  33510. + $as_echo_n "(cached) " >&6
  33511. +else
  33512. + gcc_cv_as_comdat_group_group=no
  33513. + if test x$gcc_cv_as != x; then
  33514. + $as_echo "$conftest_s" > conftest.s
  33515. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  33516. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  33517. + (eval $ac_try) 2>&5
  33518. + ac_status=$?
  33519. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33520. + test $ac_status = 0; }; }
  33521. + then
  33522. + gcc_cv_as_comdat_group_group=yes
  33523. + else
  33524. + echo "configure: failed program was" >&5
  33525. + cat conftest.s >&5
  33526. + fi
  33527. + rm -f conftest.o conftest.s
  33528. + fi
  33529. +fi
  33530. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
  33531. +$as_echo "$gcc_cv_as_comdat_group_group" >&6; }
  33532. +
  33533. + ;;
  33534. + esac
  33535. + fi
  33536. +fi
  33537. +if test x"$ld_is_gold" = xyes; then
  33538. + comdat_group=yes
  33539. +elif test $in_tree_ld = yes ; then
  33540. + comdat_group=no
  33541. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
  33542. + && test $in_tree_ld_is_elf = yes; then
  33543. + comdat_group=yes
  33544. + fi
  33545. +elif echo "$ld_ver" | grep GNU > /dev/null; then
  33546. + comdat_group=yes
  33547. + if test 0"$ld_date" -lt 20050308; then
  33548. + if test -n "$ld_date"; then
  33549. + # If there was date string, but was earlier than 2005-03-08, fail
  33550. + comdat_group=no
  33551. + elif test "$ld_vers_major" -lt 2; then
  33552. + comdat_group=no
  33553. + elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
  33554. + comdat_group=no
  33555. + fi
  33556. + fi
  33557. +else
  33558. + case "${target}" in
  33559. + *-*-solaris2.1[1-9]*)
  33560. + comdat_group=no
  33561. + # Sun ld has COMDAT group support since Solaris 9, but it doesn't
  33562. + # interoperate with GNU as until Solaris 11 build 130, i.e. ld
  33563. + # version 1.688.
  33564. + #
  33565. + # If using Sun as for COMDAT group as emitted by GCC, one needs at
  33566. + # least ld version 1.2267.
  33567. + if test "$ld_vers_major" -gt 1; then
  33568. + comdat_group=yes
  33569. + elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
  33570. + comdat_group=yes
  33571. + elif test "$ld_vers_minor" -ge 2267; then
  33572. + comdat_group=yes
  33573. + fi
  33574. + ;;
  33575. + *)
  33576. + # Assume linkers other than GNU ld don't support COMDAT group.
  33577. + comdat_group=no
  33578. + ;;
  33579. + esac
  33580. +fi
  33581. +# Allow overriding the automatic COMDAT group tests above.
  33582. +# Check whether --enable-comdat was given.
  33583. +if test "${enable_comdat+set}" = set; then :
  33584. + enableval=$enable_comdat; comdat_group="$enable_comdat"
  33585. +fi
  33586. +
  33587. +if test $comdat_group = no; then
  33588. + gcc_cv_as_comdat_group=no
  33589. + gcc_cv_as_comdat_group_percent=no
  33590. + gcc_cv_as_comdat_group_group=no
  33591. +fi
  33592. +
  33593. +cat >>confdefs.h <<_ACEOF
  33594. +#define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
  33595. + || test $gcc_cv_as_comdat_group_percent = yes \
  33596. + || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
  33597. +_ACEOF
  33598. +
  33599. +
  33600. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
  33601. +$as_echo_n "checking assembler for line table discriminator support... " >&6; }
  33602. +if test "${gcc_cv_as_discriminator+set}" = set; then :
  33603. + $as_echo_n "(cached) " >&6
  33604. +else
  33605. + gcc_cv_as_discriminator=no
  33606. + if test $in_tree_gas = yes; then
  33607. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
  33608. + then gcc_cv_as_discriminator=yes
  33609. +fi
  33610. + elif test x$gcc_cv_as != x; then
  33611. + $as_echo ' .text
  33612. + .file 1 "conf.c"
  33613. + .loc 1 1 0 discriminator 1' > conftest.s
  33614. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  33615. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  33616. + (eval $ac_try) 2>&5
  33617. + ac_status=$?
  33618. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  33619. + test $ac_status = 0; }; }
  33620. + then
  33621. + gcc_cv_as_discriminator=yes
  33622. + else
  33623. + echo "configure: failed program was" >&5
  33624. + cat conftest.s >&5
  33625. + fi
  33626. + rm -f conftest.o conftest.s
  33627. + fi
  33628. +fi
  33629. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
  33630. +$as_echo "$gcc_cv_as_discriminator" >&6; }
  33631. +if test $gcc_cv_as_discriminator = yes; then
  33632. +
  33633. +$as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
  33634. +
  33635. +fi
  33636. +
  33637. +# Thread-local storage - the check is heavily parameterized.
  33638. +conftest_s=
  33639. +tls_first_major=
  33640. +tls_first_minor=
  33641. +tls_as_opt=
  33642. +case "$target" in
  33643. + alpha*-*-*)
  33644. + conftest_s='
  33645. + .section ".tdata","awT",@progbits
  33646. +foo: .long 25
  33647. + .text
  33648. + ldq $27,__tls_get_addr($29) !literal!1
  33649. + lda $16,foo($29) !tlsgd!1
  33650. + jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
  33651. + ldq $27,__tls_get_addr($29) !literal!2
  33652. + lda $16,foo($29) !tlsldm!2
  33653. + jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
  33654. + ldq $1,foo($29) !gotdtprel
  33655. + ldah $2,foo($29) !dtprelhi
  33656. + lda $3,foo($2) !dtprello
  33657. + lda $4,foo($29) !dtprel
  33658. + ldq $1,foo($29) !gottprel
  33659. + ldah $2,foo($29) !tprelhi
  33660. + lda $3,foo($2) !tprello
  33661. + lda $4,foo($29) !tprel'
  33662. + tls_first_major=2
  33663. + tls_first_minor=13
  33664. + tls_as_opt=--fatal-warnings
  33665. + ;;
  33666. + cris-*-*|crisv32-*-*)
  33667. + conftest_s='
  33668. + .section ".tdata","awT",@progbits
  33669. +x: .long 25
  33670. + .text
  33671. + move.d x:IE,$r10
  33672. + nop'
  33673. + tls_first_major=2
  33674. + tls_first_minor=20
  33675. + tls_as_opt=--fatal-warnings
  33676. + ;;
  33677. + frv*-*-*)
  33678. + conftest_s='
  33679. + .section ".tdata","awT",@progbits
  33680. +x: .long 25
  33681. + .text
  33682. + call #gettlsoff(x)'
  33683. + tls_first_major=2
  33684. + tls_first_minor=14
  33685. + ;;
  33686. + hppa*-*-linux*)
  33687. + conftest_s='
  33688. +t1: .reg %r20
  33689. +t2: .reg %r21
  33690. +gp: .reg %r19
  33691. + .section ".tdata","awT",@progbits
  33692. +foo: .long 25
  33693. + .text
  33694. + .align 4
  33695. + addil LT%foo-$tls_gdidx$,gp
  33696. + ldo RT%foo-$tls_gdidx$(%r1),%arg0
  33697. + b __tls_get_addr
  33698. + nop
  33699. + addil LT%foo-$tls_ldidx$,gp
  33700. + b __tls_get_addr
  33701. + ldo RT%foo-$tls_ldidx$(%r1),%arg0
  33702. + addil LR%foo-$tls_dtpoff$,%ret0
  33703. + ldo RR%foo-$tls_dtpoff$(%r1),%t1
  33704. + mfctl %cr27,%t1
  33705. + addil LT%foo-$tls_ieoff$,gp
  33706. + ldw RT%foo-$tls_ieoff$(%r1),%t2
  33707. + add %t1,%t2,%t3
  33708. + mfctl %cr27,%t1
  33709. + addil LR%foo-$tls_leoff$,%t1
  33710. + ldo RR%foo-$tls_leoff$(%r1),%t2'
  33711. + tls_first_major=2
  33712. + tls_first_minor=15
  33713. + tls_as_opt=--fatal-warnings
  33714. + ;;
  33715. + arm*-*-*)
  33716. + conftest_s='
  33717. + .section ".tdata","awT",%progbits
  33718. +foo: .long 25
  33719. + .text
  33720. +.word foo(gottpoff)
  33721. +.word foo(tpoff)
  33722. +.word foo(tlsgd)
  33723. +.word foo(tlsldm)
  33724. +.word foo(tlsldo)'
  33725. + tls_first_major=2
  33726. + tls_first_minor=17
  33727. + ;;
  33728. + i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
  33729. + case "$target" in
  33730. + i[34567]86-*-solaris2.*)
  33731. + on_solaris=yes
  33732. + tga_func=___tls_get_addr
  33733. + ;;
  33734. + x86_64-*-solaris2.1[0-9]*)
  33735. + on_solaris=yes
  33736. + tga_func=__tls_get_addr
  33737. + ;;
  33738. + *)
  33739. + on_solaris=no
  33740. + ;;
  33741. + esac
  33742. + if test x$on_solaris = xyes && test x$gas_flag = xno; then
  33743. + conftest_s='
  33744. + .section .tdata,"awt",@progbits'
  33745. + tls_first_major=0
  33746. + tls_first_minor=0
  33747. + tls_section_flag=t
  33748. +
  33749. +$as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
  33750. +
  33751. + else
  33752. + conftest_s='
  33753. + .section ".tdata","awT",@progbits'
  33754. + tls_first_major=2
  33755. + tls_first_minor=14
  33756. + tls_section_flag=T
  33757. + tls_as_opt="--fatal-warnings"
  33758. + fi
  33759. + conftest_s="$conftest_s
  33760. +foo: .long 25
  33761. + .text
  33762. + movl %gs:0, %eax
  33763. + leal foo@tlsgd(,%ebx,1), %eax
  33764. + leal foo@tlsldm(%ebx), %eax
  33765. + leal foo@dtpoff(%eax), %edx
  33766. + movl foo@gottpoff(%ebx), %eax
  33767. + subl foo@gottpoff(%ebx), %eax
  33768. + addl foo@gotntpoff(%ebx), %eax
  33769. + movl foo@indntpoff, %eax
  33770. + movl \$foo@tpoff, %eax
  33771. + subl \$foo@tpoff, %eax
  33772. + leal foo@ntpoff(%ecx), %eax"
  33773. + ;;
  33774. + x86_64-*-*)
  33775. + conftest_s='
  33776. + .section ".tdata","awT",@progbits
  33777. +foo: .long 25
  33778. + .text
  33779. + movq %fs:0, %rax
  33780. + leaq foo@TLSGD(%rip), %rdi
  33781. + leaq foo@TLSLD(%rip), %rdi
  33782. + leaq foo@DTPOFF(%rax), %rdx
  33783. + movq foo@GOTTPOFF(%rip), %rax
  33784. + movq $foo@TPOFF, %rax'
  33785. + tls_first_major=2
  33786. + tls_first_minor=14
  33787. + tls_section_flag=T
  33788. + tls_as_opt=--fatal-warnings
  33789. + ;;
  33790. + ia64-*-*)
  33791. + conftest_s='
  33792. + .section ".tdata","awT",@progbits
  33793. +foo: data8 25
  33794. + .text
  33795. + addl r16 = @ltoff(@dtpmod(foo#)), gp
  33796. + addl r17 = @ltoff(@dtprel(foo#)), gp
  33797. + addl r18 = @ltoff(@tprel(foo#)), gp
  33798. + addl r19 = @dtprel(foo#), gp
  33799. + adds r21 = @dtprel(foo#), r13
  33800. + movl r23 = @dtprel(foo#)
  33801. + addl r20 = @tprel(foo#), gp
  33802. + adds r22 = @tprel(foo#), r13
  33803. + movl r24 = @tprel(foo#)'
  33804. + tls_first_major=2
  33805. + tls_first_minor=13
  33806. + tls_as_opt=--fatal-warnings
  33807. + ;;
  33808. + microblaze*-*-*)
  33809. + conftest_s='
  33810. + .section .tdata,"awT",@progbits
  33811. +x:
  33812. + .word 2
  33813. + .text
  33814. + addik r5,r20,x@TLSGD
  33815. + addik r5,r20,x@TLSLDM'
  33816. + tls_first_major=2
  33817. + tls_first_minor=20
  33818. + tls_as_opt='--fatal-warnings'
  33819. + ;;
  33820. + mips*-*-*)
  33821. + conftest_s='
  33822. + .section .tdata,"awT",@progbits
  33823. +x:
  33824. + .word 2
  33825. + .text
  33826. + addiu $4, $28, %tlsgd(x)
  33827. + addiu $4, $28, %tlsldm(x)
  33828. + lui $4, %dtprel_hi(x)
  33829. + addiu $4, $4, %dtprel_lo(x)
  33830. + lw $4, %gottprel(x)($28)
  33831. + lui $4, %tprel_hi(x)
  33832. + addiu $4, $4, %tprel_lo(x)'
  33833. + tls_first_major=2
  33834. + tls_first_minor=16
  33835. + tls_as_opt='-32 --fatal-warnings'
  33836. + ;;
  33837. + m68k-*-*)
  33838. + conftest_s='
  33839. + .section .tdata,"awT",@progbits
  33840. +x:
  33841. + .word 2
  33842. + .text
  33843. +foo:
  33844. + move.l x@TLSGD(%a5),%a0
  33845. + move.l x@TLSLDM(%a5),%a0
  33846. + move.l x@TLSLDO(%a5),%a0
  33847. + move.l x@TLSIE(%a5),%a0
  33848. + move.l x@TLSLE(%a5),%a0'
  33849. + tls_first_major=2
  33850. + tls_first_minor=19
  33851. + tls_as_opt='--fatal-warnings'
  33852. + ;;
  33853. + nios2-*-*)
  33854. + conftest_s='
  33855. + .section ".tdata","awT",@progbits'
  33856. + tls_first_major=2
  33857. + tls_first_minor=23
  33858. + tls_as_opt="--fatal-warnings"
  33859. + ;;
  33860. + aarch64*-*-*)
  33861. + conftest_s='
  33862. + .section ".tdata","awT",%progbits
  33863. +foo: .long 25
  33864. + .text
  33865. + adrp x0, :tlsgd:x
  33866. + add x0, x0, #:tlsgd_lo12:x
  33867. + bl __tls_get_addr
  33868. + nop'
  33869. + tls_first_major=2
  33870. + tls_first_minor=20
  33871. + tls_as_opt='--fatal-warnings'
  33872. + ;;
  33873. + or1k*-*-*)
  33874. + conftest_s='
  33875. + .section ".tdata","awT",%progbits
  33876. +foo: .long 25
  33877. + .text
  33878. + l.movhi r3,tlsgdhi(foo)
  33879. + l.ori r3,r3,tlsgdlo(foo)
  33880. +
  33881. + l.jal __tls_get_addr
  33882. + l.nop'
  33883. + tls_first_major=2
  33884. + tls_first_minor=23
  33885. + tls_as_opt='--fatal-warnings'
  33886. + ;;
  33887. + powerpc-ibm-aix*)
  33888. + conftest_s='
  33889. + .extern __get_tpointer
  33890. + .toc
  33891. +LC..1:
  33892. + .tc a[TC],a[TL]@le
  33893. + .csect .text[PR]
  33894. +.tlstest:
  33895. + lwz 9,LC..1(2)
  33896. + bla __get_tpointer
  33897. + lwzx 3,9,3
  33898. + .globl a
  33899. + .csect a[TL],4
  33900. +a:
  33901. + .space 4'
  33902. + tls_first_major=0
  33903. + tls_first_minor=0
  33904. + ;;
  33905. + powerpc64*-*-*)
  33906. + conftest_s='
  33907. + .section ".tdata","awT",@progbits
  33908. + .align 3
  33909. +ld0: .space 8
  33910. +ld1: .space 8
  33911. +x1: .space 8
  33912. +x2: .space 8
  33913. +x3: .space 8
  33914. + .text
  33915. + addi 3,2,ld0@got@tlsgd
  33916. + bl .__tls_get_addr
  33917. + nop
  33918. + addi 3,2,ld1@toc
  33919. + bl .__tls_get_addr
  33920. + nop
  33921. + addi 3,2,x1@got@tlsld
  33922. + bl .__tls_get_addr
  33923. + nop
  33924. + addi 9,3,x1@dtprel
  33925. + bl .__tls_get_addr
  33926. + nop
  33927. + addis 9,3,x2@dtprel@ha
  33928. + addi 9,9,x2@dtprel@l
  33929. + bl .__tls_get_addr
  33930. + nop
  33931. + ld 9,x3@got@dtprel(2)
  33932. + add 9,9,3
  33933. + bl .__tls_get_addr
  33934. + nop'
  33935. + tls_first_major=2
  33936. + tls_first_minor=14
  33937. + tls_as_opt="-a64 --fatal-warnings"
  33938. + ;;
  33939. + powerpc*-*-*)
  33940. + conftest_s='
  33941. + .section ".tdata","awT",@progbits
  33942. + .align 2
  33943. +ld0: .space 4
  33944. +ld1: .space 4
  33945. +x1: .space 4
  33946. +x2: .space 4
  33947. +x3: .space 4
  33948. + .text
  33949. + addi 3,31,ld0@got@tlsgd
  33950. + bl __tls_get_addr
  33951. + addi 3,31,x1@got@tlsld
  33952. + bl __tls_get_addr
  33953. + addi 9,3,x1@dtprel
  33954. + addis 9,3,x2@dtprel@ha
  33955. + addi 9,9,x2@dtprel@l
  33956. + lwz 9,x3@got@tprel(31)
  33957. + add 9,9,x@tls
  33958. + addi 9,2,x1@tprel
  33959. + addis 9,2,x2@tprel@ha
  33960. + addi 9,9,x2@tprel@l'
  33961. + tls_first_major=2
  33962. + tls_first_minor=14
  33963. + tls_as_opt="-a32 --fatal-warnings"
  33964. + ;;
  33965. + s390-*-*)
  33966. + conftest_s='
  33967. + .section ".tdata","awT",@progbits
  33968. +foo: .long 25
  33969. + .text
  33970. + .long foo@TLSGD
  33971. + .long foo@TLSLDM
  33972. + .long foo@DTPOFF
  33973. + .long foo@NTPOFF
  33974. + .long foo@GOTNTPOFF
  33975. + .long foo@INDNTPOFF
  33976. + l %r1,foo@GOTNTPOFF(%r12)
  33977. + l %r1,0(%r1):tls_load:foo
  33978. + bas %r14,0(%r1,%r13):tls_gdcall:foo
  33979. + bas %r14,0(%r1,%r13):tls_ldcall:foo'
  33980. + tls_first_major=2
  33981. + tls_first_minor=14
  33982. + tls_as_opt="-m31 --fatal-warnings"
  33983. + ;;
  33984. + s390x-*-*)
  33985. + conftest_s='
  33986. + .section ".tdata","awT",@progbits
  33987. +foo: .long 25
  33988. + .text
  33989. + .quad foo@TLSGD
  33990. + .quad foo@TLSLDM
  33991. + .quad foo@DTPOFF
  33992. + .quad foo@NTPOFF
  33993. + .quad foo@GOTNTPOFF
  33994. + lg %r1,foo@GOTNTPOFF(%r12)
  33995. + larl %r1,foo@INDNTPOFF
  33996. + brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
  33997. + brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
  33998. + tls_first_major=2
  33999. + tls_first_minor=14
  34000. + tls_as_opt="-m64 -Aesame --fatal-warnings"
  34001. + ;;
  34002. + sh-*-* | sh[34]-*-*)
  34003. + conftest_s='
  34004. + .section ".tdata","awT",@progbits
  34005. +foo: .long 25
  34006. + .text
  34007. + .long foo@TLSGD
  34008. + .long foo@TLSLDM
  34009. + .long foo@DTPOFF
  34010. + .long foo@GOTTPOFF
  34011. + .long foo@TPOFF'
  34012. + tls_first_major=2
  34013. + tls_first_minor=13
  34014. + tls_as_opt=--fatal-warnings
  34015. + ;;
  34016. + sparc*-*-*)
  34017. + case "$target" in
  34018. + sparc*-sun-solaris2.*)
  34019. + on_solaris=yes
  34020. + tga_func=__tls_get_addr
  34021. + ;;
  34022. + *)
  34023. + on_solaris=no
  34024. + ;;
  34025. + esac
  34026. + if test x$on_solaris = xyes && test x$gas_flag = xno; then
  34027. + conftest_s='
  34028. + .section ".tdata",#alloc,#write,#tls'
  34029. + tls_first_major=0
  34030. + tls_first_minor=0
  34031. + else
  34032. + conftest_s='
  34033. + .section ".tdata","awT",@progbits'
  34034. + tls_first_major=2
  34035. + tls_first_minor=14
  34036. + tls_as_opt="-32 --fatal-warnings"
  34037. + fi
  34038. + conftest_s="$conftest_s
  34039. +foo: .long 25
  34040. + .text
  34041. + sethi %tgd_hi22(foo), %o0
  34042. + add %o0, %tgd_lo10(foo), %o1
  34043. + add %l7, %o1, %o0, %tgd_add(foo)
  34044. + call __tls_get_addr, %tgd_call(foo)
  34045. + sethi %tldm_hi22(foo), %l1
  34046. + add %l1, %tldm_lo10(foo), %l2
  34047. + add %l7, %l2, %o0, %tldm_add(foo)
  34048. + call __tls_get_addr, %tldm_call(foo)
  34049. + sethi %tldo_hix22(foo), %l3
  34050. + xor %l3, %tldo_lox10(foo), %l4
  34051. + add %o0, %l4, %l5, %tldo_add(foo)
  34052. + sethi %tie_hi22(foo), %o3
  34053. + add %o3, %tie_lo10(foo), %o3
  34054. + ld [%l7 + %o3], %o2, %tie_ld(foo)
  34055. + add %g7, %o2, %o4, %tie_add(foo)
  34056. + sethi %tle_hix22(foo), %l1
  34057. + xor %l1, %tle_lox10(foo), %o5
  34058. + ld [%g7 + %o5], %o1"
  34059. + ;;
  34060. + tilepro*-*-*)
  34061. + conftest_s='
  34062. + .section ".tdata","awT",@progbits
  34063. +foo: .long 25
  34064. + .text
  34065. + addli r0, zero, tls_gd(foo)
  34066. + auli r0, zero, tls_gd_ha16(foo)
  34067. + addli r0, r0, tls_gd_lo16(foo)
  34068. + jal __tls_get_addr
  34069. + addli r0, zero, tls_ie(foo)
  34070. + auli r0, r0, tls_ie_ha16(foo)
  34071. + addli r0, r0, tls_ie_lo16(foo)'
  34072. + tls_first_major=2
  34073. + tls_first_minor=22
  34074. + tls_as_opt="--fatal-warnings"
  34075. + ;;
  34076. + tilegx*-*-*)
  34077. + conftest_s='
  34078. + .section ".tdata","awT",@progbits
  34079. +foo: .long 25
  34080. + .text
  34081. + shl16insli r0, zero, hw0_last_tls_gd(foo)
  34082. + shl16insli r0, zero, hw1_last_tls_gd(foo)
  34083. + shl16insli r0, r0, hw0_tls_gd(foo)
  34084. + jal __tls_get_addr
  34085. + shl16insli r0, zero, hw1_last_tls_ie(foo)
  34086. + shl16insli r0, r0, hw0_tls_ie(foo)'
  34087. + tls_first_major=2
  34088. + tls_first_minor=22
  34089. + tls_as_opt="--fatal-warnings"
  34090. + ;;
  34091. + xtensa*-*-*)
  34092. + conftest_s='
  34093. + .section ".tdata","awT",@progbits
  34094. +foo: .long 25
  34095. + .text
  34096. + movi a8, foo@TLSFUNC
  34097. + movi a10, foo@TLSARG
  34098. + callx8.tls a8, foo@TLSCALL'
  34099. + tls_first_major=2
  34100. + tls_first_minor=19
  34101. + ;;
  34102. +esac
  34103. +set_have_as_tls=no
  34104. +if test "x$enable_tls" = xno ; then
  34105. + : # TLS explicitly disabled.
  34106. +elif test "x$enable_tls" = xyes ; then
  34107. + set_have_as_tls=yes # TLS explicitly enabled.
  34108. +elif test -z "$tls_first_major"; then
  34109. + : # If we don't have a check, assume no support.
  34110. +else
  34111. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
  34112. +$as_echo_n "checking assembler for thread-local storage support... " >&6; }
  34113. +if test "${gcc_cv_as_tls+set}" = set; then :
  34114. + $as_echo_n "(cached) " >&6
  34115. +else
  34116. + gcc_cv_as_tls=no
  34117. + if test $in_tree_gas = yes; then
  34118. + if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
  34119. + then gcc_cv_as_tls=yes
  34120. +fi
  34121. + elif test x$gcc_cv_as != x; then
  34122. + $as_echo "$conftest_s" > conftest.s
  34123. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
  34124. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  34125. + (eval $ac_try) 2>&5
  34126. + ac_status=$?
  34127. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34128. + test $ac_status = 0; }; }
  34129. + then
  34130. + gcc_cv_as_tls=yes
  34131. + else
  34132. + echo "configure: failed program was" >&5
  34133. + cat conftest.s >&5
  34134. + fi
  34135. + rm -f conftest.o conftest.s
  34136. + fi
  34137. +fi
  34138. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
  34139. +$as_echo "$gcc_cv_as_tls" >&6; }
  34140. +if test $gcc_cv_as_tls = yes; then
  34141. + set_have_as_tls=yes
  34142. +fi
  34143. +fi
  34144. +case "$target" in
  34145. + # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
  34146. + # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
  34147. + # Sun style that Sun ld and GCC don't support any longer.
  34148. + *-*-solaris2.*)
  34149. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
  34150. +$as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
  34151. + ld_tls_support=no
  34152. + # Check ld and ld.so.1 TLS support.
  34153. + if echo "$ld_ver" | grep GNU > /dev/null; then
  34154. + # Assume all interesting versions of GNU ld have TLS support.
  34155. + # FIXME: still need ld.so.1 support, i.e. ld version checks below.
  34156. + ld_tls_support=yes
  34157. + else
  34158. + case "$target" in
  34159. + # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
  34160. + i?86-*-solaris2.9)
  34161. + min_tls_ld_vers_minor=374
  34162. + ;;
  34163. + # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
  34164. + sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
  34165. + min_tls_ld_vers_minor=343
  34166. + ;;
  34167. + esac
  34168. + if test "$ld_vers_major" -gt 1 || \
  34169. + test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
  34170. + ld_tls_support=yes
  34171. + else
  34172. + set_have_as_tls=no
  34173. + fi
  34174. + fi
  34175. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
  34176. +$as_echo "$ld_tls_support" >&6; }
  34177. +
  34178. + save_LIBS="$LIBS"
  34179. + save_LDFLAGS="$LDFLAGS"
  34180. + LIBS=
  34181. + LDFLAGS=
  34182. +
  34183. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
  34184. +$as_echo_n "checking library containing $tga_func... " >&6; }
  34185. + # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
  34186. + # (32-bit x86) only lived in libthread, so check for that. Keep
  34187. + # set_have_as_tls if found, disable if not.
  34188. + as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
  34189. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
  34190. +$as_echo_n "checking for library containing $tga_func... " >&6; }
  34191. +if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
  34192. + $as_echo_n "(cached) " >&6
  34193. +else
  34194. + ac_func_search_save_LIBS=$LIBS
  34195. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34196. +/* end confdefs.h. */
  34197. +
  34198. +/* Override any GCC internal prototype to avoid an error.
  34199. + Use char because int might match the return type of a GCC
  34200. + builtin and then its argument prototype would still apply. */
  34201. +#ifdef __cplusplus
  34202. +extern "C"
  34203. +#endif
  34204. +char $tga_func ();
  34205. +int
  34206. +main ()
  34207. +{
  34208. +return $tga_func ();
  34209. + ;
  34210. + return 0;
  34211. +}
  34212. +_ACEOF
  34213. +for ac_lib in '' thread; do
  34214. + if test -z "$ac_lib"; then
  34215. + ac_res="none required"
  34216. + else
  34217. + ac_res=-l$ac_lib
  34218. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  34219. + fi
  34220. + if ac_fn_c_try_link "$LINENO"; then :
  34221. + eval "$as_ac_Search=\$ac_res"
  34222. +fi
  34223. +rm -f core conftest.err conftest.$ac_objext \
  34224. + conftest$ac_exeext
  34225. + if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
  34226. + break
  34227. +fi
  34228. +done
  34229. +if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
  34230. +
  34231. +else
  34232. + eval "$as_ac_Search=no"
  34233. +fi
  34234. +rm conftest.$ac_ext
  34235. +LIBS=$ac_func_search_save_LIBS
  34236. +fi
  34237. +eval ac_res=\$$as_ac_Search
  34238. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  34239. +$as_echo "$ac_res" >&6; }
  34240. +eval ac_res=\$$as_ac_Search
  34241. +if test "$ac_res" != no; then :
  34242. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  34243. +
  34244. +else
  34245. + set_have_as_tls=no
  34246. +fi
  34247. +
  34248. + ld_tls_libs="$LIBS"
  34249. + # Clear LIBS if we cannot support TLS.
  34250. + if test $set_have_as_tls = no; then
  34251. + LIBS=
  34252. + fi
  34253. + # Always define LIB_TLS_SPEC, even without TLS support.
  34254. +
  34255. +cat >>confdefs.h <<_ACEOF
  34256. +#define LIB_TLS_SPEC "$LIBS"
  34257. +_ACEOF
  34258. +
  34259. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
  34260. +$as_echo "$LIBS" >&6; }
  34261. +
  34262. + LIBS="$save_LIBS"
  34263. + LDFLAGS="$save_LDFLAGS"
  34264. + ;;
  34265. +esac
  34266. +if test $set_have_as_tls = yes ; then
  34267. +
  34268. +$as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
  34269. +
  34270. +fi
  34271. +
  34272. +# Target-specific assembler checks.
  34273. +
  34274. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
  34275. +$as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
  34276. +gcc_cv_ld_static_dynamic=no
  34277. +gcc_cv_ld_static_option='-Bstatic'
  34278. +gcc_cv_ld_dynamic_option='-Bdynamic'
  34279. +if test $in_tree_ld = yes ; then
  34280. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
  34281. + gcc_cv_ld_static_dynamic=yes
  34282. + fi
  34283. +elif test x$gcc_cv_ld != x; then
  34284. + # Check if linker supports -Bstatic/-Bdynamic option
  34285. + if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
  34286. + && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
  34287. + gcc_cv_ld_static_dynamic=yes
  34288. + else
  34289. + case "$target" in
  34290. + # AIX ld uses -b flags
  34291. + *-*-aix4.[23]* | *-*-aix[5-9]*)
  34292. + gcc_cv_ld_static_dynamic=yes
  34293. + gcc_cv_ld_static_option="-bstatic"
  34294. + gcc_cv_ld_dynamic_option="-bdynamic"
  34295. + ;;
  34296. + # HP-UX ld uses -a flags to select between shared and archive.
  34297. + *-*-hpux*)
  34298. + if test x"$gnu_ld" = xno; then
  34299. + gcc_cv_ld_static_dynamic=yes
  34300. + gcc_cv_ld_static_option="-aarchive_shared"
  34301. + gcc_cv_ld_dynamic_option="-adefault"
  34302. + fi
  34303. + ;;
  34304. + # Solaris 2 ld always supports -Bstatic/-Bdynamic.
  34305. + *-*-solaris2*)
  34306. + gcc_cv_ld_static_dynamic=yes
  34307. + ;;
  34308. + esac
  34309. + fi
  34310. +fi
  34311. +if test x"$gcc_cv_ld_static_dynamic" = xyes; then
  34312. +
  34313. +$as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
  34314. +
  34315. +
  34316. +cat >>confdefs.h <<_ACEOF
  34317. +#define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
  34318. +_ACEOF
  34319. +
  34320. +
  34321. +cat >>confdefs.h <<_ACEOF
  34322. +#define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
  34323. +_ACEOF
  34324. +
  34325. +fi
  34326. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
  34327. +$as_echo "$gcc_cv_ld_static_dynamic" >&6; }
  34328. +
  34329. +if test x"$demangler_in_ld" = xyes; then
  34330. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
  34331. +$as_echo_n "checking linker --demangle support... " >&6; }
  34332. + gcc_cv_ld_demangle=no
  34333. + if test $in_tree_ld = yes; then
  34334. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
  34335. + gcc_cv_ld_demangle=yes
  34336. + fi
  34337. + elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
  34338. + # Check if the GNU linker supports --demangle option
  34339. + if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
  34340. + gcc_cv_ld_demangle=yes
  34341. + fi
  34342. + fi
  34343. + if test x"$gcc_cv_ld_demangle" = xyes; then
  34344. +
  34345. +$as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
  34346. +
  34347. + fi
  34348. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
  34349. +$as_echo "$gcc_cv_ld_demangle" >&6; }
  34350. +fi
  34351. +
  34352. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
  34353. +$as_echo_n "checking linker plugin support... " >&6; }
  34354. +gcc_cv_lto_plugin=0
  34355. +if test -f liblto_plugin.la; then
  34356. + save_ld_ver="$ld_ver"
  34357. + save_ld_vers_major="$ld_vers_major"
  34358. + save_ld_vers_minor="$ld_vers_minor"
  34359. + save_ld_is_gold="$ld_is_gold"
  34360. +
  34361. + ld_is_gold=no
  34362. +
  34363. + if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
  34364. + ld_ver="GNU ld"
  34365. + # FIXME: ld_is_gold?
  34366. + ld_vers_major="$gcc_cv_gld_major_version"
  34367. + ld_vers_minor="$gcc_cv_gld_minor_version"
  34368. + else
  34369. + # Determine plugin linker version.
  34370. + # FIXME: Partial duplicate from above, generalize.
  34371. + ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
  34372. + if echo "$ld_ver" | grep GNU > /dev/null; then
  34373. + if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
  34374. + ld_is_gold=yes
  34375. + ld_vers=`echo $ld_ver | sed -n \
  34376. + -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
  34377. + else
  34378. + ld_vers=`echo $ld_ver | sed -n \
  34379. + -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
  34380. + fi
  34381. + ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
  34382. + ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
  34383. + fi
  34384. + fi
  34385. +
  34386. + # Determine plugin support.
  34387. + if echo "$ld_ver" | grep GNU > /dev/null; then
  34388. + # Require GNU ld or gold 2.21+ for plugin support by default.
  34389. + if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
  34390. + gcc_cv_lto_plugin=2
  34391. + # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
  34392. + elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
  34393. + gcc_cv_lto_plugin=1
  34394. + fi
  34395. + fi
  34396. +
  34397. + ld_ver="$save_ld_ver"
  34398. + ld_vers_major="$save_ld_vers_major"
  34399. + ld_vers_minor="$save_ld_vers_minor"
  34400. + ld_is_gold="$save_ld_is_gold"
  34401. +fi
  34402. +
  34403. +cat >>confdefs.h <<_ACEOF
  34404. +#define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
  34405. +_ACEOF
  34406. +
  34407. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
  34408. +$as_echo "$gcc_cv_lto_plugin" >&6; }
  34409. +
  34410. +case "$target" in
  34411. + aarch64*-*-*)
  34412. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
  34413. +$as_echo_n "checking assembler for -mabi option... " >&6; }
  34414. +if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
  34415. + $as_echo_n "(cached) " >&6
  34416. +else
  34417. + gcc_cv_as_aarch64_mabi=no
  34418. + if test x$gcc_cv_as != x; then
  34419. + $as_echo '.text' > conftest.s
  34420. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
  34421. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  34422. + (eval $ac_try) 2>&5
  34423. + ac_status=$?
  34424. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34425. + test $ac_status = 0; }; }
  34426. + then
  34427. + gcc_cv_as_aarch64_mabi=yes
  34428. + else
  34429. + echo "configure: failed program was" >&5
  34430. + cat conftest.s >&5
  34431. + fi
  34432. + rm -f conftest.o conftest.s
  34433. + fi
  34434. +fi
  34435. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
  34436. +$as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
  34437. +
  34438. + if test x$gcc_cv_as_aarch64_mabi = xyes; then
  34439. +
  34440. +$as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
  34441. +
  34442. + else
  34443. + if test x$with_abi = xilp32; then
  34444. + as_fn_error "Assembler does not support -mabi=ilp32.\
  34445. + Upgrade the Assembler." "$LINENO" 5
  34446. + fi
  34447. + if test x"$with_multilib_list" = xdefault; then
  34448. + TM_MULTILIB_CONFIG=lp64
  34449. + else
  34450. + aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
  34451. + for aarch64_multilib in ${aarch64_multilibs}; do
  34452. + case ${aarch64_multilib} in
  34453. + ilp32)
  34454. + as_fn_error "Assembler does not support -mabi=ilp32.\
  34455. + Upgrade the Assembler." "$LINENO" 5
  34456. + ;;
  34457. + *)
  34458. + ;;
  34459. + esac
  34460. + done
  34461. + fi
  34462. + fi
  34463. + # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
  34464. + # Check whether --enable-fix-cortex-a53-835769 was given.
  34465. +if test "${enable_fix_cortex_a53_835769+set}" = set; then :
  34466. + enableval=$enable_fix_cortex_a53_835769;
  34467. + case $enableval in
  34468. + yes)
  34469. + tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
  34470. + ;;
  34471. + no)
  34472. + ;;
  34473. + *)
  34474. + as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
  34475. + Valid choices are 'yes' and 'no'." "$LINENO" 5
  34476. + ;;
  34477. +
  34478. + esac
  34479. +
  34480. +fi
  34481. +
  34482. + ;;
  34483. +
  34484. + # All TARGET_ABI_OSF targets.
  34485. + alpha*-*-linux* | alpha*-*-*bsd*)
  34486. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
  34487. +$as_echo_n "checking assembler for explicit relocation support... " >&6; }
  34488. +if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
  34489. + $as_echo_n "(cached) " >&6
  34490. +else
  34491. + gcc_cv_as_alpha_explicit_relocs=no
  34492. + if test $in_tree_gas = yes; then
  34493. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
  34494. + then gcc_cv_as_alpha_explicit_relocs=yes
  34495. +fi
  34496. + elif test x$gcc_cv_as != x; then
  34497. + $as_echo ' .set nomacro
  34498. + .text
  34499. + extbl $3, $2, $3 !lituse_bytoff!1
  34500. + ldq $2, a($29) !literal!1
  34501. + ldq $4, b($29) !literal!2
  34502. + ldq_u $3, 0($2) !lituse_base!1
  34503. + ldq $27, f($29) !literal!5
  34504. + jsr $26, ($27), f !lituse_jsr!5
  34505. + ldah $29, 0($26) !gpdisp!3
  34506. + lda $0, c($29) !gprel
  34507. + ldah $1, d($29) !gprelhigh
  34508. + lda $1, d($1) !gprellow
  34509. + lda $29, 0($29) !gpdisp!3' > conftest.s
  34510. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  34511. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  34512. + (eval $ac_try) 2>&5
  34513. + ac_status=$?
  34514. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34515. + test $ac_status = 0; }; }
  34516. + then
  34517. + gcc_cv_as_alpha_explicit_relocs=yes
  34518. + else
  34519. + echo "configure: failed program was" >&5
  34520. + cat conftest.s >&5
  34521. + fi
  34522. + rm -f conftest.o conftest.s
  34523. + fi
  34524. +fi
  34525. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
  34526. +$as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
  34527. +if test $gcc_cv_as_alpha_explicit_relocs = yes; then
  34528. +
  34529. +$as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
  34530. +
  34531. +fi
  34532. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
  34533. +$as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
  34534. +if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
  34535. + $as_echo_n "(cached) " >&6
  34536. +else
  34537. + gcc_cv_as_alpha_jsrdirect_relocs=no
  34538. + if test $in_tree_gas = yes; then
  34539. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
  34540. + then gcc_cv_as_alpha_jsrdirect_relocs=yes
  34541. +fi
  34542. + elif test x$gcc_cv_as != x; then
  34543. + $as_echo ' .set nomacro
  34544. + .text
  34545. + ldq $27, a($29) !literal!1
  34546. + jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
  34547. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  34548. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  34549. + (eval $ac_try) 2>&5
  34550. + ac_status=$?
  34551. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34552. + test $ac_status = 0; }; }
  34553. + then
  34554. + gcc_cv_as_alpha_jsrdirect_relocs=yes
  34555. + else
  34556. + echo "configure: failed program was" >&5
  34557. + cat conftest.s >&5
  34558. + fi
  34559. + rm -f conftest.o conftest.s
  34560. + fi
  34561. +fi
  34562. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
  34563. +$as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
  34564. +if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
  34565. +
  34566. +$as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
  34567. +
  34568. +fi
  34569. + ;;
  34570. +
  34571. + cris-*-*)
  34572. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
  34573. +$as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
  34574. +if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
  34575. + $as_echo_n "(cached) " >&6
  34576. +else
  34577. + gcc_cv_as_cris_no_mul_bug=no
  34578. + if test $in_tree_gas = yes; then
  34579. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
  34580. + then gcc_cv_as_cris_no_mul_bug=yes
  34581. +fi
  34582. + elif test x$gcc_cv_as != x; then
  34583. + $as_echo '.text' > conftest.s
  34584. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
  34585. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  34586. + (eval $ac_try) 2>&5
  34587. + ac_status=$?
  34588. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34589. + test $ac_status = 0; }; }
  34590. + then
  34591. + gcc_cv_as_cris_no_mul_bug=yes
  34592. + else
  34593. + echo "configure: failed program was" >&5
  34594. + cat conftest.s >&5
  34595. + fi
  34596. + rm -f conftest.o conftest.s
  34597. + fi
  34598. +fi
  34599. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
  34600. +$as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
  34601. +if test $gcc_cv_as_cris_no_mul_bug = yes; then
  34602. +
  34603. +$as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
  34604. +
  34605. +fi
  34606. + ;;
  34607. +
  34608. + sparc*-*-*)
  34609. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
  34610. +$as_echo_n "checking assembler for .register... " >&6; }
  34611. +if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
  34612. + $as_echo_n "(cached) " >&6
  34613. +else
  34614. + gcc_cv_as_sparc_register_op=no
  34615. + if test x$gcc_cv_as != x; then
  34616. + $as_echo '.register %g2, #scratch' > conftest.s
  34617. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  34618. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  34619. + (eval $ac_try) 2>&5
  34620. + ac_status=$?
  34621. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34622. + test $ac_status = 0; }; }
  34623. + then
  34624. + gcc_cv_as_sparc_register_op=yes
  34625. + else
  34626. + echo "configure: failed program was" >&5
  34627. + cat conftest.s >&5
  34628. + fi
  34629. + rm -f conftest.o conftest.s
  34630. + fi
  34631. +fi
  34632. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
  34633. +$as_echo "$gcc_cv_as_sparc_register_op" >&6; }
  34634. +if test $gcc_cv_as_sparc_register_op = yes; then
  34635. +
  34636. +$as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
  34637. +
  34638. +fi
  34639. +
  34640. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
  34641. +$as_echo_n "checking assembler for #nobits... " >&6; }
  34642. +if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
  34643. + $as_echo_n "(cached) " >&6
  34644. +else
  34645. + gcc_cv_as_sparc_nobits=no
  34646. + if test x$gcc_cv_as != x; then
  34647. + $as_echo '.section "nobits",#alloc,#write,#nobits
  34648. + .section "progbits",#alloc,#write,#progbits' > conftest.s
  34649. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  34650. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  34651. + (eval $ac_try) 2>&5
  34652. + ac_status=$?
  34653. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34654. + test $ac_status = 0; }; }
  34655. + then
  34656. + gcc_cv_as_sparc_nobits=yes
  34657. + else
  34658. + echo "configure: failed program was" >&5
  34659. + cat conftest.s >&5
  34660. + fi
  34661. + rm -f conftest.o conftest.s
  34662. + fi
  34663. +fi
  34664. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
  34665. +$as_echo "$gcc_cv_as_sparc_nobits" >&6; }
  34666. +
  34667. +
  34668. +cat >>confdefs.h <<_ACEOF
  34669. +#define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
  34670. +_ACEOF
  34671. +
  34672. +
  34673. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
  34674. +$as_echo_n "checking assembler for -relax option... " >&6; }
  34675. +if test "${gcc_cv_as_sparc_relax+set}" = set; then :
  34676. + $as_echo_n "(cached) " >&6
  34677. +else
  34678. + gcc_cv_as_sparc_relax=no
  34679. + if test x$gcc_cv_as != x; then
  34680. + $as_echo '.text' > conftest.s
  34681. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
  34682. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  34683. + (eval $ac_try) 2>&5
  34684. + ac_status=$?
  34685. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34686. + test $ac_status = 0; }; }
  34687. + then
  34688. + gcc_cv_as_sparc_relax=yes
  34689. + else
  34690. + echo "configure: failed program was" >&5
  34691. + cat conftest.s >&5
  34692. + fi
  34693. + rm -f conftest.o conftest.s
  34694. + fi
  34695. +fi
  34696. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
  34697. +$as_echo "$gcc_cv_as_sparc_relax" >&6; }
  34698. +if test $gcc_cv_as_sparc_relax = yes; then
  34699. +
  34700. +$as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
  34701. +
  34702. +fi
  34703. +
  34704. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
  34705. +$as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
  34706. +if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
  34707. + $as_echo_n "(cached) " >&6
  34708. +else
  34709. + gcc_cv_as_sparc_gotdata_op=no
  34710. + if test x$gcc_cv_as != x; then
  34711. + $as_echo '.text
  34712. +.align 4
  34713. +foo:
  34714. + nop
  34715. +bar:
  34716. + sethi %gdop_hix22(foo), %g1
  34717. + xor %g1, %gdop_lox10(foo), %g1
  34718. + ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
  34719. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
  34720. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  34721. + (eval $ac_try) 2>&5
  34722. + ac_status=$?
  34723. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34724. + test $ac_status = 0; }; }
  34725. + then
  34726. + if test x$gcc_cv_ld != x \
  34727. + && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
  34728. + if test x$gcc_cv_objdump != x; then
  34729. + if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
  34730. + | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
  34731. + gcc_cv_as_sparc_gotdata_op=no
  34732. + else
  34733. + gcc_cv_as_sparc_gotdata_op=yes
  34734. + fi
  34735. + fi
  34736. + fi
  34737. + rm -f conftest
  34738. + else
  34739. + echo "configure: failed program was" >&5
  34740. + cat conftest.s >&5
  34741. + fi
  34742. + rm -f conftest.o conftest.s
  34743. + fi
  34744. +fi
  34745. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
  34746. +$as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
  34747. +if test $gcc_cv_as_sparc_gotdata_op = yes; then
  34748. +
  34749. +$as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
  34750. +
  34751. +fi
  34752. +
  34753. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
  34754. +$as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
  34755. +if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
  34756. + $as_echo_n "(cached) " >&6
  34757. +else
  34758. + gcc_cv_as_sparc_ua_pcrel=no
  34759. + if test x$gcc_cv_as != x; then
  34760. + $as_echo '.text
  34761. +foo:
  34762. + nop
  34763. +.data
  34764. +.align 4
  34765. +.byte 0
  34766. +.uaword %r_disp32(foo)' > conftest.s
  34767. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
  34768. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  34769. + (eval $ac_try) 2>&5
  34770. + ac_status=$?
  34771. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34772. + test $ac_status = 0; }; }
  34773. + then
  34774. + if test x$gcc_cv_ld != x \
  34775. + && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
  34776. + gcc_cv_as_sparc_ua_pcrel=yes
  34777. + fi
  34778. + rm -f conftest
  34779. + else
  34780. + echo "configure: failed program was" >&5
  34781. + cat conftest.s >&5
  34782. + fi
  34783. + rm -f conftest.o conftest.s
  34784. + fi
  34785. +fi
  34786. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
  34787. +$as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
  34788. +if test $gcc_cv_as_sparc_ua_pcrel = yes; then
  34789. +
  34790. +$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
  34791. +
  34792. +
  34793. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
  34794. +$as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
  34795. +if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
  34796. + $as_echo_n "(cached) " >&6
  34797. +else
  34798. + gcc_cv_as_sparc_ua_pcrel_hidden=no
  34799. + if test x$gcc_cv_as != x; then
  34800. + $as_echo '.data
  34801. +.align 4
  34802. +.byte 0x31
  34803. +.uaword %r_disp32(foo)
  34804. +.byte 0x32, 0x33, 0x34
  34805. +.global foo
  34806. +.hidden foo
  34807. +foo:
  34808. +.skip 4' > conftest.s
  34809. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
  34810. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  34811. + (eval $ac_try) 2>&5
  34812. + ac_status=$?
  34813. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34814. + test $ac_status = 0; }; }
  34815. + then
  34816. + if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
  34817. + && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
  34818. + && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
  34819. + | grep ' 31000000 07323334' > /dev/null 2>&1; then
  34820. + if $gcc_cv_objdump -R conftest 2> /dev/null \
  34821. + | grep 'DISP32' > /dev/null 2>&1; then
  34822. + :
  34823. + else
  34824. + gcc_cv_as_sparc_ua_pcrel_hidden=yes
  34825. + fi
  34826. + fi
  34827. + rm -f conftest
  34828. + else
  34829. + echo "configure: failed program was" >&5
  34830. + cat conftest.s >&5
  34831. + fi
  34832. + rm -f conftest.o conftest.s
  34833. + fi
  34834. +fi
  34835. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
  34836. +$as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
  34837. +if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
  34838. +
  34839. +$as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
  34840. +
  34841. +fi
  34842. +
  34843. +fi # unaligned pcrel relocs
  34844. +
  34845. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
  34846. +$as_echo_n "checking assembler for offsetable %lo()... " >&6; }
  34847. +if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
  34848. + $as_echo_n "(cached) " >&6
  34849. +else
  34850. + gcc_cv_as_sparc_offsetable_lo10=no
  34851. + if test x$gcc_cv_as != x; then
  34852. + $as_echo '.text
  34853. + or %g1, %lo(ab) + 12, %g1
  34854. + or %g1, %lo(ab + 12), %g1' > conftest.s
  34855. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
  34856. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  34857. + (eval $ac_try) 2>&5
  34858. + ac_status=$?
  34859. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34860. + test $ac_status = 0; }; }
  34861. + then
  34862. + if test x$gcc_cv_objdump != x \
  34863. + && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
  34864. + | grep ' 82106000 82106000' > /dev/null 2>&1; then
  34865. + gcc_cv_as_sparc_offsetable_lo10=yes
  34866. + fi
  34867. + else
  34868. + echo "configure: failed program was" >&5
  34869. + cat conftest.s >&5
  34870. + fi
  34871. + rm -f conftest.o conftest.s
  34872. + fi
  34873. +fi
  34874. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
  34875. +$as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
  34876. +if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
  34877. +
  34878. +$as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
  34879. +
  34880. +fi
  34881. +
  34882. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
  34883. +$as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
  34884. +if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
  34885. + $as_echo_n "(cached) " >&6
  34886. +else
  34887. + gcc_cv_as_sparc_fmaf=no
  34888. + if test x$gcc_cv_as != x; then
  34889. + $as_echo '.text
  34890. + .register %g2, #scratch
  34891. + .register %g3, #scratch
  34892. + .align 4
  34893. + fmaddd %f0, %f2, %f4, %f6
  34894. + addxccc %g1, %g2, %g3
  34895. + fsrl32 %f2, %f4, %f8
  34896. + fnaddd %f10, %f12, %f14' > conftest.s
  34897. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
  34898. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  34899. + (eval $ac_try) 2>&5
  34900. + ac_status=$?
  34901. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34902. + test $ac_status = 0; }; }
  34903. + then
  34904. + gcc_cv_as_sparc_fmaf=yes
  34905. + else
  34906. + echo "configure: failed program was" >&5
  34907. + cat conftest.s >&5
  34908. + fi
  34909. + rm -f conftest.o conftest.s
  34910. + fi
  34911. +fi
  34912. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
  34913. +$as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
  34914. +if test $gcc_cv_as_sparc_fmaf = yes; then
  34915. +
  34916. +$as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
  34917. +
  34918. +fi
  34919. +
  34920. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
  34921. +$as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
  34922. +if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
  34923. + $as_echo_n "(cached) " >&6
  34924. +else
  34925. + gcc_cv_as_sparc_sparc4=no
  34926. + if test x$gcc_cv_as != x; then
  34927. + $as_echo '.text
  34928. + .register %g2, #scratch
  34929. + .register %g3, #scratch
  34930. + .align 4
  34931. + cxbe %g2, %g3, 1f
  34932. +1: cwbneg %g2, %g3, 1f
  34933. +1: sha1
  34934. + md5
  34935. + aes_kexpand0 %f4, %f6, %f8
  34936. + des_round %f38, %f40, %f42, %f44
  34937. + camellia_f %f54, %f56, %f58, %f60
  34938. + kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
  34939. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
  34940. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  34941. + (eval $ac_try) 2>&5
  34942. + ac_status=$?
  34943. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34944. + test $ac_status = 0; }; }
  34945. + then
  34946. + gcc_cv_as_sparc_sparc4=yes
  34947. + else
  34948. + echo "configure: failed program was" >&5
  34949. + cat conftest.s >&5
  34950. + fi
  34951. + rm -f conftest.o conftest.s
  34952. + fi
  34953. +fi
  34954. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
  34955. +$as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
  34956. +if test $gcc_cv_as_sparc_sparc4 = yes; then
  34957. +
  34958. +$as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
  34959. +
  34960. +fi
  34961. +
  34962. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
  34963. +$as_echo_n "checking assembler for LEON instructions... " >&6; }
  34964. +if test "${gcc_cv_as_sparc_leon+set}" = set; then :
  34965. + $as_echo_n "(cached) " >&6
  34966. +else
  34967. + gcc_cv_as_sparc_leon=no
  34968. + if test x$gcc_cv_as != x; then
  34969. + $as_echo '.text
  34970. + .register %g2, #scratch
  34971. + .register %g3, #scratch
  34972. + .align 4
  34973. + smac %g2, %g3, %g1
  34974. + umac %g2, %g3, %g1
  34975. + casa [%g2] 0xb, %g3, %g1' > conftest.s
  34976. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
  34977. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  34978. + (eval $ac_try) 2>&5
  34979. + ac_status=$?
  34980. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  34981. + test $ac_status = 0; }; }
  34982. + then
  34983. + gcc_cv_as_sparc_leon=yes
  34984. + else
  34985. + echo "configure: failed program was" >&5
  34986. + cat conftest.s >&5
  34987. + fi
  34988. + rm -f conftest.o conftest.s
  34989. + fi
  34990. +fi
  34991. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
  34992. +$as_echo "$gcc_cv_as_sparc_leon" >&6; }
  34993. +if test $gcc_cv_as_sparc_leon = yes; then
  34994. +
  34995. +$as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
  34996. +
  34997. +fi
  34998. + ;;
  34999. +
  35000. + i[34567]86-*-* | x86_64-*-*)
  35001. + case $target_os in
  35002. + cygwin*)
  35003. + # Full C++ conformance when using a shared libstdc++-v3 requires some
  35004. + # support from the Cygwin DLL, which in more recent versions exports
  35005. + # wrappers to aid in interposing and redirecting operators new, delete,
  35006. + # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
  35007. + # are configuring for a version of Cygwin that exports the wrappers.
  35008. + if test x$host = x$target && test x$host_cpu = xi686; then
  35009. + ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
  35010. +if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
  35011. + gcc_ac_cygwin_dll_wrappers=yes
  35012. +else
  35013. + gcc_ac_cygwin_dll_wrappers=no
  35014. +fi
  35015. +
  35016. + else
  35017. + # Can't check presence of libc functions during cross-compile, so
  35018. + # we just have to assume we're building for an up-to-date target.
  35019. + gcc_ac_cygwin_dll_wrappers=yes
  35020. + fi
  35021. +
  35022. +cat >>confdefs.h <<_ACEOF
  35023. +#define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
  35024. +_ACEOF
  35025. +
  35026. + esac
  35027. + case $target_os in
  35028. + cygwin* | pe | mingw32* | interix*)
  35029. + # Recent binutils allows the three-operand form of ".comm" on PE. This
  35030. + # definition is used unconditionally to initialise the default state of
  35031. + # the target option variable that governs usage of the feature.
  35032. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
  35033. +$as_echo_n "checking assembler for .comm with alignment... " >&6; }
  35034. +if test "${gcc_cv_as_comm_has_align+set}" = set; then :
  35035. + $as_echo_n "(cached) " >&6
  35036. +else
  35037. + gcc_cv_as_comm_has_align=no
  35038. + if test $in_tree_gas = yes; then
  35039. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
  35040. + then gcc_cv_as_comm_has_align=yes
  35041. +fi
  35042. + elif test x$gcc_cv_as != x; then
  35043. + $as_echo '.comm foo,1,32' > conftest.s
  35044. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35045. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35046. + (eval $ac_try) 2>&5
  35047. + ac_status=$?
  35048. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35049. + test $ac_status = 0; }; }
  35050. + then
  35051. + gcc_cv_as_comm_has_align=yes
  35052. + else
  35053. + echo "configure: failed program was" >&5
  35054. + cat conftest.s >&5
  35055. + fi
  35056. + rm -f conftest.o conftest.s
  35057. + fi
  35058. +fi
  35059. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
  35060. +$as_echo "$gcc_cv_as_comm_has_align" >&6; }
  35061. +
  35062. +
  35063. +cat >>confdefs.h <<_ACEOF
  35064. +#define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
  35065. +_ACEOF
  35066. +
  35067. + # Used for DWARF 2 in PE
  35068. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
  35069. +$as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
  35070. +if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
  35071. + $as_echo_n "(cached) " >&6
  35072. +else
  35073. + gcc_cv_as_ix86_pe_secrel32=no
  35074. + if test $in_tree_gas = yes; then
  35075. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
  35076. + then gcc_cv_as_ix86_pe_secrel32=yes
  35077. +fi
  35078. + elif test x$gcc_cv_as != x; then
  35079. + $as_echo '.text
  35080. +foo: nop
  35081. +.data
  35082. + .secrel32 foo' > conftest.s
  35083. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35084. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35085. + (eval $ac_try) 2>&5
  35086. + ac_status=$?
  35087. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35088. + test $ac_status = 0; }; }
  35089. + then
  35090. + if test x$gcc_cv_ld != x \
  35091. + && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
  35092. + gcc_cv_as_ix86_pe_secrel32=yes
  35093. + fi
  35094. + rm -f conftest
  35095. + else
  35096. + echo "configure: failed program was" >&5
  35097. + cat conftest.s >&5
  35098. + fi
  35099. + rm -f conftest.o conftest.s
  35100. + fi
  35101. +fi
  35102. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
  35103. +$as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
  35104. +if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
  35105. +
  35106. +$as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
  35107. +
  35108. +fi
  35109. + # Test if the assembler supports the extended form of the .section
  35110. + # directive that specifies section alignment. LTO support uses this,
  35111. + # but normally only after installation, so we warn but don't fail the
  35112. + # configure if LTO is enabled but the assembler does not support it.
  35113. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
  35114. +$as_echo_n "checking assembler for .section with alignment... " >&6; }
  35115. +if test "${gcc_cv_as_section_has_align+set}" = set; then :
  35116. + $as_echo_n "(cached) " >&6
  35117. +else
  35118. + gcc_cv_as_section_has_align=no
  35119. + if test $in_tree_gas = yes; then
  35120. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
  35121. + then gcc_cv_as_section_has_align=yes
  35122. +fi
  35123. + elif test x$gcc_cv_as != x; then
  35124. + $as_echo '.section lto_test,"dr0"' > conftest.s
  35125. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
  35126. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35127. + (eval $ac_try) 2>&5
  35128. + ac_status=$?
  35129. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35130. + test $ac_status = 0; }; }
  35131. + then
  35132. + gcc_cv_as_section_has_align=yes
  35133. + else
  35134. + echo "configure: failed program was" >&5
  35135. + cat conftest.s >&5
  35136. + fi
  35137. + rm -f conftest.o conftest.s
  35138. + fi
  35139. +fi
  35140. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
  35141. +$as_echo "$gcc_cv_as_section_has_align" >&6; }
  35142. +
  35143. + if test x$gcc_cv_as_section_has_align != xyes; then
  35144. + case ",$enable_languages," in
  35145. + *,lto,*)
  35146. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
  35147. +$as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
  35148. + ;;
  35149. + esac
  35150. + fi
  35151. + # Test if the assembler supports the section flag 'e' for specifying
  35152. + # an excluded section.
  35153. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
  35154. +$as_echo_n "checking assembler for .section with e... " >&6; }
  35155. +if test "${gcc_cv_as_section_has_e+set}" = set; then :
  35156. + $as_echo_n "(cached) " >&6
  35157. +else
  35158. + gcc_cv_as_section_has_e=no
  35159. + if test $in_tree_gas = yes; then
  35160. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
  35161. + then gcc_cv_as_section_has_e=yes
  35162. +fi
  35163. + elif test x$gcc_cv_as != x; then
  35164. + $as_echo '.section foo1,"e"
  35165. +.byte 0,0,0,0' > conftest.s
  35166. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35167. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35168. + (eval $ac_try) 2>&5
  35169. + ac_status=$?
  35170. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35171. + test $ac_status = 0; }; }
  35172. + then
  35173. + gcc_cv_as_section_has_e=yes
  35174. + else
  35175. + echo "configure: failed program was" >&5
  35176. + cat conftest.s >&5
  35177. + fi
  35178. + rm -f conftest.o conftest.s
  35179. + fi
  35180. +fi
  35181. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
  35182. +$as_echo "$gcc_cv_as_section_has_e" >&6; }
  35183. +
  35184. +
  35185. +cat >>confdefs.h <<_ACEOF
  35186. +#define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
  35187. +_ACEOF
  35188. +
  35189. + ;;
  35190. + esac
  35191. +
  35192. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
  35193. +$as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
  35194. +if test "${gcc_cv_as_ix86_filds+set}" = set; then :
  35195. + $as_echo_n "(cached) " >&6
  35196. +else
  35197. + gcc_cv_as_ix86_filds=no
  35198. + if test x$gcc_cv_as != x; then
  35199. + $as_echo 'filds mem; fists mem' > conftest.s
  35200. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35201. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35202. + (eval $ac_try) 2>&5
  35203. + ac_status=$?
  35204. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35205. + test $ac_status = 0; }; }
  35206. + then
  35207. + gcc_cv_as_ix86_filds=yes
  35208. + else
  35209. + echo "configure: failed program was" >&5
  35210. + cat conftest.s >&5
  35211. + fi
  35212. + rm -f conftest.o conftest.s
  35213. + fi
  35214. +fi
  35215. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
  35216. +$as_echo "$gcc_cv_as_ix86_filds" >&6; }
  35217. +if test $gcc_cv_as_ix86_filds = yes; then
  35218. +
  35219. +$as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
  35220. +
  35221. +fi
  35222. +
  35223. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
  35224. +$as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
  35225. +if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
  35226. + $as_echo_n "(cached) " >&6
  35227. +else
  35228. + gcc_cv_as_ix86_fildq=no
  35229. + if test x$gcc_cv_as != x; then
  35230. + $as_echo 'fildq mem; fistpq mem' > conftest.s
  35231. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35232. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35233. + (eval $ac_try) 2>&5
  35234. + ac_status=$?
  35235. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35236. + test $ac_status = 0; }; }
  35237. + then
  35238. + gcc_cv_as_ix86_fildq=yes
  35239. + else
  35240. + echo "configure: failed program was" >&5
  35241. + cat conftest.s >&5
  35242. + fi
  35243. + rm -f conftest.o conftest.s
  35244. + fi
  35245. +fi
  35246. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
  35247. +$as_echo "$gcc_cv_as_ix86_fildq" >&6; }
  35248. +if test $gcc_cv_as_ix86_fildq = yes; then
  35249. +
  35250. +$as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
  35251. +
  35252. +fi
  35253. +
  35254. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
  35255. +$as_echo_n "checking assembler for cmov syntax... " >&6; }
  35256. +if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
  35257. + $as_echo_n "(cached) " >&6
  35258. +else
  35259. + gcc_cv_as_ix86_cmov_sun_syntax=no
  35260. + if test x$gcc_cv_as != x; then
  35261. + $as_echo 'cmovl.l %edx, %eax' > conftest.s
  35262. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35263. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35264. + (eval $ac_try) 2>&5
  35265. + ac_status=$?
  35266. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35267. + test $ac_status = 0; }; }
  35268. + then
  35269. + gcc_cv_as_ix86_cmov_sun_syntax=yes
  35270. + else
  35271. + echo "configure: failed program was" >&5
  35272. + cat conftest.s >&5
  35273. + fi
  35274. + rm -f conftest.o conftest.s
  35275. + fi
  35276. +fi
  35277. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
  35278. +$as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
  35279. +if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
  35280. +
  35281. +$as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
  35282. +
  35283. +fi
  35284. +
  35285. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
  35286. +$as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
  35287. +if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
  35288. + $as_echo_n "(cached) " >&6
  35289. +else
  35290. + gcc_cv_as_ix86_ffreep=no
  35291. + if test x$gcc_cv_as != x; then
  35292. + $as_echo 'ffreep %st(1)' > conftest.s
  35293. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35294. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35295. + (eval $ac_try) 2>&5
  35296. + ac_status=$?
  35297. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35298. + test $ac_status = 0; }; }
  35299. + then
  35300. + gcc_cv_as_ix86_ffreep=yes
  35301. + else
  35302. + echo "configure: failed program was" >&5
  35303. + cat conftest.s >&5
  35304. + fi
  35305. + rm -f conftest.o conftest.s
  35306. + fi
  35307. +fi
  35308. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
  35309. +$as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
  35310. +if test $gcc_cv_as_ix86_ffreep = yes; then
  35311. +
  35312. +$as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
  35313. +
  35314. +fi
  35315. +
  35316. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
  35317. +$as_echo_n "checking assembler for .quad directive... " >&6; }
  35318. +if test "${gcc_cv_as_ix86_quad+set}" = set; then :
  35319. + $as_echo_n "(cached) " >&6
  35320. +else
  35321. + gcc_cv_as_ix86_quad=no
  35322. + if test x$gcc_cv_as != x; then
  35323. + $as_echo '.quad 0' > conftest.s
  35324. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35325. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35326. + (eval $ac_try) 2>&5
  35327. + ac_status=$?
  35328. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35329. + test $ac_status = 0; }; }
  35330. + then
  35331. + gcc_cv_as_ix86_quad=yes
  35332. + else
  35333. + echo "configure: failed program was" >&5
  35334. + cat conftest.s >&5
  35335. + fi
  35336. + rm -f conftest.o conftest.s
  35337. + fi
  35338. +fi
  35339. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
  35340. +$as_echo "$gcc_cv_as_ix86_quad" >&6; }
  35341. +if test $gcc_cv_as_ix86_quad = yes; then
  35342. +
  35343. +$as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
  35344. +
  35345. +fi
  35346. +
  35347. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
  35348. +$as_echo_n "checking assembler for sahf mnemonic... " >&6; }
  35349. +if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
  35350. + $as_echo_n "(cached) " >&6
  35351. +else
  35352. + gcc_cv_as_ix86_sahf=no
  35353. + if test x$gcc_cv_as != x; then
  35354. + $as_echo '.code64
  35355. + sahf' > conftest.s
  35356. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35357. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35358. + (eval $ac_try) 2>&5
  35359. + ac_status=$?
  35360. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35361. + test $ac_status = 0; }; }
  35362. + then
  35363. + gcc_cv_as_ix86_sahf=yes
  35364. + else
  35365. + echo "configure: failed program was" >&5
  35366. + cat conftest.s >&5
  35367. + fi
  35368. + rm -f conftest.o conftest.s
  35369. + fi
  35370. +fi
  35371. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
  35372. +$as_echo "$gcc_cv_as_ix86_sahf" >&6; }
  35373. +if test $gcc_cv_as_ix86_sahf = yes; then
  35374. +
  35375. +$as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
  35376. +
  35377. +fi
  35378. +
  35379. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
  35380. +$as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
  35381. +if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
  35382. + $as_echo_n "(cached) " >&6
  35383. +else
  35384. + gcc_cv_as_ix86_interunit_movq=no
  35385. + if test x$gcc_cv_as != x; then
  35386. + $as_echo '.code64
  35387. + movq %mm0, %rax
  35388. + movq %rax, %xmm0' > conftest.s
  35389. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35390. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35391. + (eval $ac_try) 2>&5
  35392. + ac_status=$?
  35393. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35394. + test $ac_status = 0; }; }
  35395. + then
  35396. + gcc_cv_as_ix86_interunit_movq=yes
  35397. + else
  35398. + echo "configure: failed program was" >&5
  35399. + cat conftest.s >&5
  35400. + fi
  35401. + rm -f conftest.o conftest.s
  35402. + fi
  35403. +fi
  35404. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
  35405. +$as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
  35406. +
  35407. +
  35408. +cat >>confdefs.h <<_ACEOF
  35409. +#define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
  35410. +_ACEOF
  35411. +
  35412. +
  35413. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
  35414. +$as_echo_n "checking assembler for hle prefixes... " >&6; }
  35415. +if test "${gcc_cv_as_ix86_hle+set}" = set; then :
  35416. + $as_echo_n "(cached) " >&6
  35417. +else
  35418. + gcc_cv_as_ix86_hle=no
  35419. + if test x$gcc_cv_as != x; then
  35420. + $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
  35421. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35422. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35423. + (eval $ac_try) 2>&5
  35424. + ac_status=$?
  35425. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35426. + test $ac_status = 0; }; }
  35427. + then
  35428. + gcc_cv_as_ix86_hle=yes
  35429. + else
  35430. + echo "configure: failed program was" >&5
  35431. + cat conftest.s >&5
  35432. + fi
  35433. + rm -f conftest.o conftest.s
  35434. + fi
  35435. +fi
  35436. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
  35437. +$as_echo "$gcc_cv_as_ix86_hle" >&6; }
  35438. +if test $gcc_cv_as_ix86_hle = yes; then
  35439. +
  35440. +$as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
  35441. +
  35442. +fi
  35443. +
  35444. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
  35445. +$as_echo_n "checking assembler for swap suffix... " >&6; }
  35446. +if test "${gcc_cv_as_ix86_swap+set}" = set; then :
  35447. + $as_echo_n "(cached) " >&6
  35448. +else
  35449. + gcc_cv_as_ix86_swap=no
  35450. + if test x$gcc_cv_as != x; then
  35451. + $as_echo 'movl.s %esp, %ebp' > conftest.s
  35452. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35453. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35454. + (eval $ac_try) 2>&5
  35455. + ac_status=$?
  35456. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35457. + test $ac_status = 0; }; }
  35458. + then
  35459. + gcc_cv_as_ix86_swap=yes
  35460. + else
  35461. + echo "configure: failed program was" >&5
  35462. + cat conftest.s >&5
  35463. + fi
  35464. + rm -f conftest.o conftest.s
  35465. + fi
  35466. +fi
  35467. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
  35468. +$as_echo "$gcc_cv_as_ix86_swap" >&6; }
  35469. +if test $gcc_cv_as_ix86_swap = yes; then
  35470. +
  35471. +$as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
  35472. +
  35473. +fi
  35474. +
  35475. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
  35476. +$as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
  35477. +if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
  35478. + $as_echo_n "(cached) " >&6
  35479. +else
  35480. + gcc_cv_as_ix86_diff_sect_delta=no
  35481. + if test x$gcc_cv_as != x; then
  35482. + $as_echo '.section .rodata
  35483. +.L1:
  35484. + .long .L2-.L1
  35485. + .long .L3-.L1
  35486. + .text
  35487. +.L3: nop
  35488. +.L2: nop' > conftest.s
  35489. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35490. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35491. + (eval $ac_try) 2>&5
  35492. + ac_status=$?
  35493. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35494. + test $ac_status = 0; }; }
  35495. + then
  35496. + gcc_cv_as_ix86_diff_sect_delta=yes
  35497. + else
  35498. + echo "configure: failed program was" >&5
  35499. + cat conftest.s >&5
  35500. + fi
  35501. + rm -f conftest.o conftest.s
  35502. + fi
  35503. +fi
  35504. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
  35505. +$as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
  35506. +if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
  35507. +
  35508. +$as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
  35509. +
  35510. +fi
  35511. +
  35512. + # These two are used unconditionally by i386.[ch]; it is to be defined
  35513. + # to 1 if the feature is present, 0 otherwise.
  35514. + as_ix86_gotoff_in_data_opt=
  35515. + if test x$gas = xyes; then
  35516. + as_ix86_gotoff_in_data_opt="--32"
  35517. + fi
  35518. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
  35519. +$as_echo_n "checking assembler for GOTOFF in data... " >&6; }
  35520. +if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
  35521. + $as_echo_n "(cached) " >&6
  35522. +else
  35523. + gcc_cv_as_ix86_gotoff_in_data=no
  35524. + if test $in_tree_gas = yes; then
  35525. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
  35526. + then gcc_cv_as_ix86_gotoff_in_data=yes
  35527. +fi
  35528. + elif test x$gcc_cv_as != x; then
  35529. + $as_echo ' .text
  35530. +.L0:
  35531. + nop
  35532. + .data
  35533. + .long .L0@GOTOFF' > conftest.s
  35534. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
  35535. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35536. + (eval $ac_try) 2>&5
  35537. + ac_status=$?
  35538. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35539. + test $ac_status = 0; }; }
  35540. + then
  35541. + gcc_cv_as_ix86_gotoff_in_data=yes
  35542. + else
  35543. + echo "configure: failed program was" >&5
  35544. + cat conftest.s >&5
  35545. + fi
  35546. + rm -f conftest.o conftest.s
  35547. + fi
  35548. +fi
  35549. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
  35550. +$as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
  35551. +
  35552. +
  35553. +cat >>confdefs.h <<_ACEOF
  35554. +#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
  35555. +_ACEOF
  35556. +
  35557. +
  35558. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
  35559. +$as_echo_n "checking assembler for rep and lock prefix... " >&6; }
  35560. +if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
  35561. + $as_echo_n "(cached) " >&6
  35562. +else
  35563. + gcc_cv_as_ix86_rep_lock_prefix=no
  35564. + if test x$gcc_cv_as != x; then
  35565. + $as_echo 'rep movsl
  35566. + rep ret
  35567. + rep nop
  35568. + rep bsf %ecx, %eax
  35569. + rep bsr %ecx, %eax
  35570. + lock addl %edi, (%eax,%esi)
  35571. + lock orl $0, (%esp)' > conftest.s
  35572. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35573. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35574. + (eval $ac_try) 2>&5
  35575. + ac_status=$?
  35576. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35577. + test $ac_status = 0; }; }
  35578. + then
  35579. + gcc_cv_as_ix86_rep_lock_prefix=yes
  35580. + else
  35581. + echo "configure: failed program was" >&5
  35582. + cat conftest.s >&5
  35583. + fi
  35584. + rm -f conftest.o conftest.s
  35585. + fi
  35586. +fi
  35587. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
  35588. +$as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
  35589. +if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
  35590. +
  35591. +$as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
  35592. +
  35593. +fi
  35594. +
  35595. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
  35596. +$as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
  35597. +if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
  35598. + $as_echo_n "(cached) " >&6
  35599. +else
  35600. + gcc_cv_as_ix86_ud2=no
  35601. + if test x$gcc_cv_as != x; then
  35602. + $as_echo 'ud2' > conftest.s
  35603. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35604. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35605. + (eval $ac_try) 2>&5
  35606. + ac_status=$?
  35607. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35608. + test $ac_status = 0; }; }
  35609. + then
  35610. + gcc_cv_as_ix86_ud2=yes
  35611. + else
  35612. + echo "configure: failed program was" >&5
  35613. + cat conftest.s >&5
  35614. + fi
  35615. + rm -f conftest.o conftest.s
  35616. + fi
  35617. +fi
  35618. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
  35619. +$as_echo "$gcc_cv_as_ix86_ud2" >&6; }
  35620. +if test $gcc_cv_as_ix86_ud2 = yes; then
  35621. +
  35622. +$as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
  35623. +
  35624. +fi
  35625. +
  35626. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
  35627. +$as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
  35628. +if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
  35629. + $as_echo_n "(cached) " >&6
  35630. +else
  35631. + gcc_cv_as_ix86_tlsgdplt=no
  35632. + if test x$gcc_cv_as != x; then
  35633. + $as_echo 'call tls_gd@tlsgdplt' > conftest.s
  35634. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35635. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35636. + (eval $ac_try) 2>&5
  35637. + ac_status=$?
  35638. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35639. + test $ac_status = 0; }; }
  35640. + then
  35641. + if test x$gcc_cv_ld != x \
  35642. + && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
  35643. + gcc_cv_as_ix86_tlsgdplt=yes
  35644. + fi
  35645. + rm -f conftest
  35646. + else
  35647. + echo "configure: failed program was" >&5
  35648. + cat conftest.s >&5
  35649. + fi
  35650. + rm -f conftest.o conftest.s
  35651. + fi
  35652. +fi
  35653. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
  35654. +$as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
  35655. +if test $gcc_cv_as_ix86_tlsgdplt = yes; then
  35656. +
  35657. +$as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
  35658. +
  35659. +fi
  35660. +
  35661. + conftest_s='
  35662. + .section .tdata,"aw'$tls_section_flag'",@progbits
  35663. +tls_ld:
  35664. + .section .text,"ax",@progbits
  35665. + call tls_ld@tlsldmplt'
  35666. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
  35667. +$as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
  35668. +if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
  35669. + $as_echo_n "(cached) " >&6
  35670. +else
  35671. + gcc_cv_as_ix86_tlsldmplt=no
  35672. + if test x$gcc_cv_as != x; then
  35673. + $as_echo "$conftest_s" > conftest.s
  35674. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35675. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35676. + (eval $ac_try) 2>&5
  35677. + ac_status=$?
  35678. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35679. + test $ac_status = 0; }; }
  35680. + then
  35681. + if test x$gcc_cv_ld != x \
  35682. + && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
  35683. + gcc_cv_as_ix86_tlsldmplt=yes
  35684. + fi
  35685. + rm -f conftest
  35686. + else
  35687. + echo "configure: failed program was" >&5
  35688. + cat conftest.s >&5
  35689. + fi
  35690. + rm -f conftest.o conftest.s
  35691. + fi
  35692. +fi
  35693. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
  35694. +$as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
  35695. +
  35696. +
  35697. +cat >>confdefs.h <<_ACEOF
  35698. +#define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
  35699. +_ACEOF
  35700. +
  35701. +
  35702. + # Enforce 32-bit output with gas and gld.
  35703. + if test x$gas = xyes; then
  35704. + as_ix86_tls_ldm_opt="--32"
  35705. + fi
  35706. + if echo "$ld_ver" | grep GNU > /dev/null; then
  35707. + if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
  35708. + ld_ix86_tls_ldm_opt="-melf_i386_sol2"
  35709. + else
  35710. + ld_ix86_tls_ldm_opt="-melf_i386"
  35711. + fi
  35712. + fi
  35713. + conftest_s='
  35714. + .section .text,"ax",@progbits
  35715. + .globl _start
  35716. + .type _start, @function
  35717. +_start:
  35718. + leal value@tlsldm(%ebx), %eax
  35719. + call ___tls_get_addr@plt
  35720. +
  35721. + .section .tdata,"aw'$tls_section_flag'",@progbits
  35722. + .type value, @object
  35723. +value:'
  35724. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
  35725. +$as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
  35726. +if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
  35727. + $as_echo_n "(cached) " >&6
  35728. +else
  35729. + gcc_cv_as_ix86_tlsldm=no
  35730. + if test x$gcc_cv_as != x; then
  35731. + $as_echo "$conftest_s" > conftest.s
  35732. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
  35733. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35734. + (eval $ac_try) 2>&5
  35735. + ac_status=$?
  35736. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35737. + test $ac_status = 0; }; }
  35738. + then
  35739. + if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
  35740. + && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
  35741. + if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
  35742. + || dis conftest 2>/dev/null | grep nop > /dev/null; then
  35743. + gcc_cv_as_ix86_tlsldm=yes
  35744. + fi
  35745. + fi
  35746. + rm -f conftest
  35747. + else
  35748. + echo "configure: failed program was" >&5
  35749. + cat conftest.s >&5
  35750. + fi
  35751. + rm -f conftest.o conftest.s
  35752. + fi
  35753. +fi
  35754. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
  35755. +$as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
  35756. +
  35757. +
  35758. +cat >>confdefs.h <<_ACEOF
  35759. +#define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
  35760. +_ACEOF
  35761. +
  35762. +
  35763. + ;;
  35764. +
  35765. + ia64*-*-*)
  35766. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
  35767. +$as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
  35768. +if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
  35769. + $as_echo_n "(cached) " >&6
  35770. +else
  35771. + gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
  35772. + if test $in_tree_gas = yes; then
  35773. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
  35774. + then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
  35775. +fi
  35776. + elif test x$gcc_cv_as != x; then
  35777. + $as_echo ' .text
  35778. + addl r15 = @ltoffx(x#), gp
  35779. + ;;
  35780. + ld8.mov r16 = [r15], x#' > conftest.s
  35781. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35782. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35783. + (eval $ac_try) 2>&5
  35784. + ac_status=$?
  35785. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35786. + test $ac_status = 0; }; }
  35787. + then
  35788. + gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
  35789. + else
  35790. + echo "configure: failed program was" >&5
  35791. + cat conftest.s >&5
  35792. + fi
  35793. + rm -f conftest.o conftest.s
  35794. + fi
  35795. +fi
  35796. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
  35797. +$as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
  35798. +if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
  35799. +
  35800. +$as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
  35801. +
  35802. +fi
  35803. +
  35804. + ;;
  35805. +
  35806. + powerpc*-*-*)
  35807. + case $target in
  35808. + *-*-aix*) conftest_s=' .machine "pwr5"
  35809. + .csect .text[PR]
  35810. + mfcr 3,128';;
  35811. + *-*-darwin*)
  35812. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
  35813. +$as_echo_n "checking assembler for .machine directive support... " >&6; }
  35814. +if test "${gcc_cv_as_machine_directive+set}" = set; then :
  35815. + $as_echo_n "(cached) " >&6
  35816. +else
  35817. + gcc_cv_as_machine_directive=no
  35818. + if test x$gcc_cv_as != x; then
  35819. + $as_echo ' .machine ppc7400' > conftest.s
  35820. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35821. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35822. + (eval $ac_try) 2>&5
  35823. + ac_status=$?
  35824. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35825. + test $ac_status = 0; }; }
  35826. + then
  35827. + gcc_cv_as_machine_directive=yes
  35828. + else
  35829. + echo "configure: failed program was" >&5
  35830. + cat conftest.s >&5
  35831. + fi
  35832. + rm -f conftest.o conftest.s
  35833. + fi
  35834. +fi
  35835. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
  35836. +$as_echo "$gcc_cv_as_machine_directive" >&6; }
  35837. +
  35838. + if test x$gcc_cv_as_machine_directive != xyes; then
  35839. + echo "*** This target requires an assembler supporting \".machine\"" >&2
  35840. + echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
  35841. + test x$build = x$target && exit 1
  35842. + fi
  35843. + conftest_s=' .text
  35844. + mfcr r3,128';;
  35845. + *) conftest_s=' .machine power4
  35846. + .text
  35847. + mfcr 3,128';;
  35848. + esac
  35849. +
  35850. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
  35851. +$as_echo_n "checking assembler for mfcr field support... " >&6; }
  35852. +if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
  35853. + $as_echo_n "(cached) " >&6
  35854. +else
  35855. + gcc_cv_as_powerpc_mfcrf=no
  35856. + if test $in_tree_gas = yes; then
  35857. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
  35858. + then gcc_cv_as_powerpc_mfcrf=yes
  35859. +fi
  35860. + elif test x$gcc_cv_as != x; then
  35861. + $as_echo "$conftest_s" > conftest.s
  35862. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35863. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35864. + (eval $ac_try) 2>&5
  35865. + ac_status=$?
  35866. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35867. + test $ac_status = 0; }; }
  35868. + then
  35869. + gcc_cv_as_powerpc_mfcrf=yes
  35870. + else
  35871. + echo "configure: failed program was" >&5
  35872. + cat conftest.s >&5
  35873. + fi
  35874. + rm -f conftest.o conftest.s
  35875. + fi
  35876. +fi
  35877. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
  35878. +$as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
  35879. +if test $gcc_cv_as_powerpc_mfcrf = yes; then
  35880. +
  35881. +$as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
  35882. +
  35883. +fi
  35884. +
  35885. + case $target in
  35886. + *-*-aix*) conftest_s=' .machine "pwr5"
  35887. + .csect .text[PR]
  35888. + popcntb 3,3';;
  35889. + *) conftest_s=' .machine power5
  35890. + .text
  35891. + popcntb 3,3';;
  35892. + esac
  35893. +
  35894. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
  35895. +$as_echo_n "checking assembler for popcntb support... " >&6; }
  35896. +if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
  35897. + $as_echo_n "(cached) " >&6
  35898. +else
  35899. + gcc_cv_as_powerpc_popcntb=no
  35900. + if test $in_tree_gas = yes; then
  35901. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
  35902. + then gcc_cv_as_powerpc_popcntb=yes
  35903. +fi
  35904. + elif test x$gcc_cv_as != x; then
  35905. + $as_echo "$conftest_s" > conftest.s
  35906. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35907. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35908. + (eval $ac_try) 2>&5
  35909. + ac_status=$?
  35910. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35911. + test $ac_status = 0; }; }
  35912. + then
  35913. + gcc_cv_as_powerpc_popcntb=yes
  35914. + else
  35915. + echo "configure: failed program was" >&5
  35916. + cat conftest.s >&5
  35917. + fi
  35918. + rm -f conftest.o conftest.s
  35919. + fi
  35920. +fi
  35921. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
  35922. +$as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
  35923. +if test $gcc_cv_as_powerpc_popcntb = yes; then
  35924. +
  35925. +$as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
  35926. +
  35927. +fi
  35928. +
  35929. + case $target in
  35930. + *-*-aix*) conftest_s=' .machine "pwr5x"
  35931. + .csect .text[PR]
  35932. + frin 1,1';;
  35933. + *) conftest_s=' .machine power5
  35934. + .text
  35935. + frin 1,1';;
  35936. + esac
  35937. +
  35938. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
  35939. +$as_echo_n "checking assembler for fp round support... " >&6; }
  35940. +if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
  35941. + $as_echo_n "(cached) " >&6
  35942. +else
  35943. + gcc_cv_as_powerpc_fprnd=no
  35944. + if test $in_tree_gas = yes; then
  35945. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
  35946. + then gcc_cv_as_powerpc_fprnd=yes
  35947. +fi
  35948. + elif test x$gcc_cv_as != x; then
  35949. + $as_echo "$conftest_s" > conftest.s
  35950. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35951. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35952. + (eval $ac_try) 2>&5
  35953. + ac_status=$?
  35954. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35955. + test $ac_status = 0; }; }
  35956. + then
  35957. + gcc_cv_as_powerpc_fprnd=yes
  35958. + else
  35959. + echo "configure: failed program was" >&5
  35960. + cat conftest.s >&5
  35961. + fi
  35962. + rm -f conftest.o conftest.s
  35963. + fi
  35964. +fi
  35965. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
  35966. +$as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
  35967. +if test $gcc_cv_as_powerpc_fprnd = yes; then
  35968. +
  35969. +$as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
  35970. +
  35971. +fi
  35972. +
  35973. + case $target in
  35974. + *-*-aix*) conftest_s=' .machine "pwr6"
  35975. + .csect .text[PR]
  35976. + mffgpr 1,3';;
  35977. + *) conftest_s=' .machine power6
  35978. + .text
  35979. + mffgpr 1,3';;
  35980. + esac
  35981. +
  35982. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
  35983. +$as_echo_n "checking assembler for move fp gpr support... " >&6; }
  35984. +if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
  35985. + $as_echo_n "(cached) " >&6
  35986. +else
  35987. + gcc_cv_as_powerpc_mfpgpr=no
  35988. + if test $in_tree_gas = yes; then
  35989. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
  35990. + then gcc_cv_as_powerpc_mfpgpr=yes
  35991. +fi
  35992. + elif test x$gcc_cv_as != x; then
  35993. + $as_echo "$conftest_s" > conftest.s
  35994. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  35995. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  35996. + (eval $ac_try) 2>&5
  35997. + ac_status=$?
  35998. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35999. + test $ac_status = 0; }; }
  36000. + then
  36001. + gcc_cv_as_powerpc_mfpgpr=yes
  36002. + else
  36003. + echo "configure: failed program was" >&5
  36004. + cat conftest.s >&5
  36005. + fi
  36006. + rm -f conftest.o conftest.s
  36007. + fi
  36008. +fi
  36009. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
  36010. +$as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
  36011. +if test $gcc_cv_as_powerpc_mfpgpr = yes; then
  36012. +
  36013. +$as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
  36014. +
  36015. +fi
  36016. +
  36017. + case $target in
  36018. + *-*-aix*) conftest_s=' .csect .text[PR]
  36019. +LCF..0:
  36020. + addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
  36021. + *-*-darwin*)
  36022. + conftest_s=' .text
  36023. +LCF0:
  36024. + addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
  36025. + *) conftest_s=' .text
  36026. +.LCF0:
  36027. + addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
  36028. + esac
  36029. +
  36030. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
  36031. +$as_echo_n "checking assembler for rel16 relocs... " >&6; }
  36032. +if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
  36033. + $as_echo_n "(cached) " >&6
  36034. +else
  36035. + gcc_cv_as_powerpc_rel16=no
  36036. + if test $in_tree_gas = yes; then
  36037. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
  36038. + then gcc_cv_as_powerpc_rel16=yes
  36039. +fi
  36040. + elif test x$gcc_cv_as != x; then
  36041. + $as_echo "$conftest_s" > conftest.s
  36042. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
  36043. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36044. + (eval $ac_try) 2>&5
  36045. + ac_status=$?
  36046. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36047. + test $ac_status = 0; }; }
  36048. + then
  36049. + gcc_cv_as_powerpc_rel16=yes
  36050. + else
  36051. + echo "configure: failed program was" >&5
  36052. + cat conftest.s >&5
  36053. + fi
  36054. + rm -f conftest.o conftest.s
  36055. + fi
  36056. +fi
  36057. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
  36058. +$as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
  36059. +if test $gcc_cv_as_powerpc_rel16 = yes; then
  36060. +
  36061. +$as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
  36062. +
  36063. +fi
  36064. +
  36065. + case $target in
  36066. + *-*-aix*) conftest_s=' .machine "pwr6"
  36067. + .csect .text[PR]
  36068. + cmpb 3,4,5';;
  36069. + *) conftest_s=' .machine power6
  36070. + .text
  36071. + cmpb 3,4,5';;
  36072. + esac
  36073. +
  36074. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
  36075. +$as_echo_n "checking assembler for compare bytes support... " >&6; }
  36076. +if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
  36077. + $as_echo_n "(cached) " >&6
  36078. +else
  36079. + gcc_cv_as_powerpc_cmpb=no
  36080. + if test $in_tree_gas = yes; then
  36081. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
  36082. + then gcc_cv_as_powerpc_cmpb=yes
  36083. +fi
  36084. + elif test x$gcc_cv_as != x; then
  36085. + $as_echo "$conftest_s" > conftest.s
  36086. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
  36087. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36088. + (eval $ac_try) 2>&5
  36089. + ac_status=$?
  36090. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36091. + test $ac_status = 0; }; }
  36092. + then
  36093. + gcc_cv_as_powerpc_cmpb=yes
  36094. + else
  36095. + echo "configure: failed program was" >&5
  36096. + cat conftest.s >&5
  36097. + fi
  36098. + rm -f conftest.o conftest.s
  36099. + fi
  36100. +fi
  36101. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
  36102. +$as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
  36103. +if test $gcc_cv_as_powerpc_cmpb = yes; then
  36104. +
  36105. +$as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
  36106. +
  36107. +fi
  36108. +
  36109. + case $target in
  36110. + *-*-aix*) conftest_s=' .machine "pwr6"
  36111. + .csect .text[PR]
  36112. + dadd 1,2,3';;
  36113. + *) conftest_s=' .machine power6
  36114. + .text
  36115. + dadd 1,2,3';;
  36116. + esac
  36117. +
  36118. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
  36119. +$as_echo_n "checking assembler for decimal float support... " >&6; }
  36120. +if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
  36121. + $as_echo_n "(cached) " >&6
  36122. +else
  36123. + gcc_cv_as_powerpc_dfp=no
  36124. + if test $in_tree_gas = yes; then
  36125. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
  36126. + then gcc_cv_as_powerpc_dfp=yes
  36127. +fi
  36128. + elif test x$gcc_cv_as != x; then
  36129. + $as_echo "$conftest_s" > conftest.s
  36130. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
  36131. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36132. + (eval $ac_try) 2>&5
  36133. + ac_status=$?
  36134. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36135. + test $ac_status = 0; }; }
  36136. + then
  36137. + gcc_cv_as_powerpc_dfp=yes
  36138. + else
  36139. + echo "configure: failed program was" >&5
  36140. + cat conftest.s >&5
  36141. + fi
  36142. + rm -f conftest.o conftest.s
  36143. + fi
  36144. +fi
  36145. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
  36146. +$as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
  36147. +if test $gcc_cv_as_powerpc_dfp = yes; then
  36148. +
  36149. +$as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
  36150. +
  36151. +fi
  36152. +
  36153. + case $target in
  36154. + *-*-aix*) conftest_s=' .machine "pwr7"
  36155. + .csect .text[PR]
  36156. + lxvd2x 1,2,3';;
  36157. + *) conftest_s=' .machine power7
  36158. + .text
  36159. + lxvd2x 1,2,3';;
  36160. + esac
  36161. +
  36162. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
  36163. +$as_echo_n "checking assembler for vector-scalar support... " >&6; }
  36164. +if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
  36165. + $as_echo_n "(cached) " >&6
  36166. +else
  36167. + gcc_cv_as_powerpc_vsx=no
  36168. + if test $in_tree_gas = yes; then
  36169. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
  36170. + then gcc_cv_as_powerpc_vsx=yes
  36171. +fi
  36172. + elif test x$gcc_cv_as != x; then
  36173. + $as_echo "$conftest_s" > conftest.s
  36174. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
  36175. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36176. + (eval $ac_try) 2>&5
  36177. + ac_status=$?
  36178. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36179. + test $ac_status = 0; }; }
  36180. + then
  36181. + gcc_cv_as_powerpc_vsx=yes
  36182. + else
  36183. + echo "configure: failed program was" >&5
  36184. + cat conftest.s >&5
  36185. + fi
  36186. + rm -f conftest.o conftest.s
  36187. + fi
  36188. +fi
  36189. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
  36190. +$as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
  36191. +if test $gcc_cv_as_powerpc_vsx = yes; then
  36192. +
  36193. +$as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
  36194. +
  36195. +fi
  36196. +
  36197. + case $target in
  36198. + *-*-aix*) conftest_s=' .machine "pwr7"
  36199. + .csect .text[PR]
  36200. + popcntd 3,3';;
  36201. + *) conftest_s=' .machine power7
  36202. + .text
  36203. + popcntd 3,3';;
  36204. + esac
  36205. +
  36206. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
  36207. +$as_echo_n "checking assembler for popcntd support... " >&6; }
  36208. +if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
  36209. + $as_echo_n "(cached) " >&6
  36210. +else
  36211. + gcc_cv_as_powerpc_popcntd=no
  36212. + if test $in_tree_gas = yes; then
  36213. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
  36214. + then gcc_cv_as_powerpc_popcntd=yes
  36215. +fi
  36216. + elif test x$gcc_cv_as != x; then
  36217. + $as_echo "$conftest_s" > conftest.s
  36218. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
  36219. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36220. + (eval $ac_try) 2>&5
  36221. + ac_status=$?
  36222. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36223. + test $ac_status = 0; }; }
  36224. + then
  36225. + gcc_cv_as_powerpc_popcntd=yes
  36226. + else
  36227. + echo "configure: failed program was" >&5
  36228. + cat conftest.s >&5
  36229. + fi
  36230. + rm -f conftest.o conftest.s
  36231. + fi
  36232. +fi
  36233. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
  36234. +$as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
  36235. +if test $gcc_cv_as_powerpc_popcntd = yes; then
  36236. +
  36237. +$as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
  36238. +
  36239. +fi
  36240. +
  36241. + case $target in
  36242. + *-*-aix*) conftest_s=' .machine "pwr8"
  36243. + .csect .text[PR]';;
  36244. + *) conftest_s=' .machine power8
  36245. + .text';;
  36246. + esac
  36247. +
  36248. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
  36249. +$as_echo_n "checking assembler for power8 support... " >&6; }
  36250. +if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
  36251. + $as_echo_n "(cached) " >&6
  36252. +else
  36253. + gcc_cv_as_powerpc_power8=no
  36254. + if test $in_tree_gas = yes; then
  36255. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
  36256. + then gcc_cv_as_powerpc_power8=yes
  36257. +fi
  36258. + elif test x$gcc_cv_as != x; then
  36259. + $as_echo "$conftest_s" > conftest.s
  36260. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
  36261. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36262. + (eval $ac_try) 2>&5
  36263. + ac_status=$?
  36264. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36265. + test $ac_status = 0; }; }
  36266. + then
  36267. + gcc_cv_as_powerpc_power8=yes
  36268. + else
  36269. + echo "configure: failed program was" >&5
  36270. + cat conftest.s >&5
  36271. + fi
  36272. + rm -f conftest.o conftest.s
  36273. + fi
  36274. +fi
  36275. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
  36276. +$as_echo "$gcc_cv_as_powerpc_power8" >&6; }
  36277. +if test $gcc_cv_as_powerpc_power8 = yes; then
  36278. +
  36279. +$as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
  36280. +
  36281. +fi
  36282. +
  36283. + case $target in
  36284. + *-*-aix*) conftest_s=' .csect .text[PR]
  36285. + lwsync';;
  36286. + *) conftest_s=' .text
  36287. + lwsync';;
  36288. + esac
  36289. +
  36290. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
  36291. +$as_echo_n "checking assembler for lwsync support... " >&6; }
  36292. +if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
  36293. + $as_echo_n "(cached) " >&6
  36294. +else
  36295. + gcc_cv_as_powerpc_lwsync=no
  36296. + if test $in_tree_gas = yes; then
  36297. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
  36298. + then gcc_cv_as_powerpc_lwsync=yes
  36299. +fi
  36300. + elif test x$gcc_cv_as != x; then
  36301. + $as_echo "$conftest_s" > conftest.s
  36302. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
  36303. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36304. + (eval $ac_try) 2>&5
  36305. + ac_status=$?
  36306. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36307. + test $ac_status = 0; }; }
  36308. + then
  36309. + gcc_cv_as_powerpc_lwsync=yes
  36310. + else
  36311. + echo "configure: failed program was" >&5
  36312. + cat conftest.s >&5
  36313. + fi
  36314. + rm -f conftest.o conftest.s
  36315. + fi
  36316. +fi
  36317. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
  36318. +$as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
  36319. +if test $gcc_cv_as_powerpc_lwsync = yes; then
  36320. +
  36321. +$as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
  36322. +
  36323. +fi
  36324. +
  36325. + case $target in
  36326. + *-*-aix*) conftest_s=' .machine "476"
  36327. + .csect .text[PR]
  36328. + dci 0';;
  36329. + *) conftest_s=' .machine "476"
  36330. + .text
  36331. + dci 0';;
  36332. + esac
  36333. +
  36334. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
  36335. +$as_echo_n "checking assembler for data cache invalidate support... " >&6; }
  36336. +if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
  36337. + $as_echo_n "(cached) " >&6
  36338. +else
  36339. + gcc_cv_as_powerpc_dci=no
  36340. + if test $in_tree_gas = yes; then
  36341. + if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
  36342. + then gcc_cv_as_powerpc_dci=yes
  36343. +fi
  36344. + elif test x$gcc_cv_as != x; then
  36345. + $as_echo "$conftest_s" > conftest.s
  36346. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
  36347. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36348. + (eval $ac_try) 2>&5
  36349. + ac_status=$?
  36350. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36351. + test $ac_status = 0; }; }
  36352. + then
  36353. + gcc_cv_as_powerpc_dci=yes
  36354. + else
  36355. + echo "configure: failed program was" >&5
  36356. + cat conftest.s >&5
  36357. + fi
  36358. + rm -f conftest.o conftest.s
  36359. + fi
  36360. +fi
  36361. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
  36362. +$as_echo "$gcc_cv_as_powerpc_dci" >&6; }
  36363. +if test $gcc_cv_as_powerpc_dci = yes; then
  36364. +
  36365. +$as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
  36366. +
  36367. +fi
  36368. +
  36369. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
  36370. +$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
  36371. +if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
  36372. + $as_echo_n "(cached) " >&6
  36373. +else
  36374. + gcc_cv_as_powerpc_gnu_attribute=no
  36375. + if test $in_tree_gas = yes; then
  36376. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
  36377. + then gcc_cv_as_powerpc_gnu_attribute=yes
  36378. +fi
  36379. + elif test x$gcc_cv_as != x; then
  36380. + $as_echo '.gnu_attribute 4,1' > conftest.s
  36381. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  36382. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36383. + (eval $ac_try) 2>&5
  36384. + ac_status=$?
  36385. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36386. + test $ac_status = 0; }; }
  36387. + then
  36388. + gcc_cv_as_powerpc_gnu_attribute=yes
  36389. + else
  36390. + echo "configure: failed program was" >&5
  36391. + cat conftest.s >&5
  36392. + fi
  36393. + rm -f conftest.o conftest.s
  36394. + fi
  36395. +fi
  36396. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
  36397. +$as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
  36398. +if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
  36399. +
  36400. +$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
  36401. +
  36402. +fi
  36403. +
  36404. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
  36405. +$as_echo_n "checking assembler for tls marker support... " >&6; }
  36406. +if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
  36407. + $as_echo_n "(cached) " >&6
  36408. +else
  36409. + gcc_cv_as_powerpc_tls_markers=no
  36410. + if test $in_tree_gas = yes; then
  36411. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
  36412. + then gcc_cv_as_powerpc_tls_markers=yes
  36413. +fi
  36414. + elif test x$gcc_cv_as != x; then
  36415. + $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
  36416. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  36417. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36418. + (eval $ac_try) 2>&5
  36419. + ac_status=$?
  36420. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36421. + test $ac_status = 0; }; }
  36422. + then
  36423. + gcc_cv_as_powerpc_tls_markers=yes
  36424. + else
  36425. + echo "configure: failed program was" >&5
  36426. + cat conftest.s >&5
  36427. + fi
  36428. + rm -f conftest.o conftest.s
  36429. + fi
  36430. +fi
  36431. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
  36432. +$as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
  36433. +if test $gcc_cv_as_powerpc_tls_markers = yes; then
  36434. +
  36435. +$as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
  36436. +
  36437. +fi
  36438. +
  36439. + case $target in
  36440. + *-*-aix*)
  36441. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
  36442. +$as_echo_n "checking assembler for .ref support... " >&6; }
  36443. +if test "${gcc_cv_as_aix_ref+set}" = set; then :
  36444. + $as_echo_n "(cached) " >&6
  36445. +else
  36446. + gcc_cv_as_aix_ref=no
  36447. + if test $in_tree_gas = yes; then
  36448. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
  36449. + then gcc_cv_as_aix_ref=yes
  36450. +fi
  36451. + elif test x$gcc_cv_as != x; then
  36452. + $as_echo ' .csect stuff[rw]
  36453. + stuff:
  36454. + .long 1
  36455. + .extern sym
  36456. + .ref sym
  36457. + ' > conftest.s
  36458. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  36459. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36460. + (eval $ac_try) 2>&5
  36461. + ac_status=$?
  36462. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36463. + test $ac_status = 0; }; }
  36464. + then
  36465. + gcc_cv_as_aix_ref=yes
  36466. + else
  36467. + echo "configure: failed program was" >&5
  36468. + cat conftest.s >&5
  36469. + fi
  36470. + rm -f conftest.o conftest.s
  36471. + fi
  36472. +fi
  36473. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
  36474. +$as_echo "$gcc_cv_as_aix_ref" >&6; }
  36475. +if test $gcc_cv_as_aix_ref = yes; then
  36476. +
  36477. +$as_echo "#define HAVE_AS_REF 1" >>confdefs.h
  36478. +
  36479. +fi
  36480. + ;;
  36481. + esac
  36482. + ;;
  36483. +
  36484. + mips*-*-*)
  36485. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
  36486. +$as_echo_n "checking assembler for explicit relocation support... " >&6; }
  36487. +if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
  36488. + $as_echo_n "(cached) " >&6
  36489. +else
  36490. + gcc_cv_as_mips_explicit_relocs=no
  36491. + if test $in_tree_gas = yes; then
  36492. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
  36493. + then gcc_cv_as_mips_explicit_relocs=yes
  36494. +fi
  36495. + elif test x$gcc_cv_as != x; then
  36496. + $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
  36497. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  36498. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36499. + (eval $ac_try) 2>&5
  36500. + ac_status=$?
  36501. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36502. + test $ac_status = 0; }; }
  36503. + then
  36504. + gcc_cv_as_mips_explicit_relocs=yes
  36505. + else
  36506. + echo "configure: failed program was" >&5
  36507. + cat conftest.s >&5
  36508. + fi
  36509. + rm -f conftest.o conftest.s
  36510. + fi
  36511. +fi
  36512. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
  36513. +$as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
  36514. +if test $gcc_cv_as_mips_explicit_relocs = yes; then
  36515. + if test x$target_cpu_default = x
  36516. + then target_cpu_default=MASK_EXPLICIT_RELOCS
  36517. + else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
  36518. + fi
  36519. +fi
  36520. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
  36521. +$as_echo_n "checking assembler for -mno-shared support... " >&6; }
  36522. +if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
  36523. + $as_echo_n "(cached) " >&6
  36524. +else
  36525. + gcc_cv_as_mips_no_shared=no
  36526. + if test $in_tree_gas = yes; then
  36527. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
  36528. + then gcc_cv_as_mips_no_shared=yes
  36529. +fi
  36530. + elif test x$gcc_cv_as != x; then
  36531. + $as_echo 'nop' > conftest.s
  36532. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
  36533. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36534. + (eval $ac_try) 2>&5
  36535. + ac_status=$?
  36536. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36537. + test $ac_status = 0; }; }
  36538. + then
  36539. + gcc_cv_as_mips_no_shared=yes
  36540. + else
  36541. + echo "configure: failed program was" >&5
  36542. + cat conftest.s >&5
  36543. + fi
  36544. + rm -f conftest.o conftest.s
  36545. + fi
  36546. +fi
  36547. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
  36548. +$as_echo "$gcc_cv_as_mips_no_shared" >&6; }
  36549. +if test $gcc_cv_as_mips_no_shared = yes; then
  36550. +
  36551. +$as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
  36552. +
  36553. +fi
  36554. +
  36555. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
  36556. +$as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
  36557. +if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
  36558. + $as_echo_n "(cached) " >&6
  36559. +else
  36560. + gcc_cv_as_mips_gnu_attribute=no
  36561. + if test $in_tree_gas = yes; then
  36562. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
  36563. + then gcc_cv_as_mips_gnu_attribute=yes
  36564. +fi
  36565. + elif test x$gcc_cv_as != x; then
  36566. + $as_echo '.gnu_attribute 4,1' > conftest.s
  36567. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  36568. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36569. + (eval $ac_try) 2>&5
  36570. + ac_status=$?
  36571. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36572. + test $ac_status = 0; }; }
  36573. + then
  36574. + gcc_cv_as_mips_gnu_attribute=yes
  36575. + else
  36576. + echo "configure: failed program was" >&5
  36577. + cat conftest.s >&5
  36578. + fi
  36579. + rm -f conftest.o conftest.s
  36580. + fi
  36581. +fi
  36582. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
  36583. +$as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
  36584. +if test $gcc_cv_as_mips_gnu_attribute = yes; then
  36585. +
  36586. +$as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
  36587. +
  36588. +fi
  36589. +
  36590. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
  36591. +$as_echo_n "checking assembler for .micromips support... " >&6; }
  36592. +if test "${gcc_cv_as_micromips_support+set}" = set; then :
  36593. + $as_echo_n "(cached) " >&6
  36594. +else
  36595. + gcc_cv_as_micromips_support=no
  36596. + if test x$gcc_cv_as != x; then
  36597. + $as_echo '.set micromips' > conftest.s
  36598. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
  36599. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36600. + (eval $ac_try) 2>&5
  36601. + ac_status=$?
  36602. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36603. + test $ac_status = 0; }; }
  36604. + then
  36605. + gcc_cv_as_micromips_support=yes
  36606. + else
  36607. + echo "configure: failed program was" >&5
  36608. + cat conftest.s >&5
  36609. + fi
  36610. + rm -f conftest.o conftest.s
  36611. + fi
  36612. +fi
  36613. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
  36614. +$as_echo "$gcc_cv_as_micromips_support" >&6; }
  36615. +if test $gcc_cv_as_micromips_support = yes; then
  36616. +
  36617. +$as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
  36618. +
  36619. +fi
  36620. +
  36621. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
  36622. +$as_echo_n "checking assembler for .dtprelword support... " >&6; }
  36623. +if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
  36624. + $as_echo_n "(cached) " >&6
  36625. +else
  36626. + gcc_cv_as_mips_dtprelword=no
  36627. + if test $in_tree_gas = yes; then
  36628. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
  36629. + then gcc_cv_as_mips_dtprelword=yes
  36630. +fi
  36631. + elif test x$gcc_cv_as != x; then
  36632. + $as_echo '.section .tdata,"awT",@progbits
  36633. +x:
  36634. + .word 2
  36635. + .text
  36636. + .dtprelword x+0x8000' > conftest.s
  36637. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  36638. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36639. + (eval $ac_try) 2>&5
  36640. + ac_status=$?
  36641. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36642. + test $ac_status = 0; }; }
  36643. + then
  36644. + gcc_cv_as_mips_dtprelword=yes
  36645. + else
  36646. + echo "configure: failed program was" >&5
  36647. + cat conftest.s >&5
  36648. + fi
  36649. + rm -f conftest.o conftest.s
  36650. + fi
  36651. +fi
  36652. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
  36653. +$as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
  36654. +if test $gcc_cv_as_mips_dtprelword = yes; then
  36655. +
  36656. +$as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
  36657. +
  36658. +fi
  36659. +
  36660. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
  36661. +$as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
  36662. +if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
  36663. + $as_echo_n "(cached) " >&6
  36664. +else
  36665. + gcc_cv_as_mips_dspr1_mult=no
  36666. + if test x$gcc_cv_as != x; then
  36667. + $as_echo ' .set mips32r2
  36668. + .set nodspr2
  36669. + .set dsp
  36670. + madd $ac3,$4,$5
  36671. + maddu $ac3,$4,$5
  36672. + msub $ac3,$4,$5
  36673. + msubu $ac3,$4,$5
  36674. + mult $ac3,$4,$5
  36675. + multu $ac3,$4,$5' > conftest.s
  36676. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  36677. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36678. + (eval $ac_try) 2>&5
  36679. + ac_status=$?
  36680. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36681. + test $ac_status = 0; }; }
  36682. + then
  36683. + gcc_cv_as_mips_dspr1_mult=yes
  36684. + else
  36685. + echo "configure: failed program was" >&5
  36686. + cat conftest.s >&5
  36687. + fi
  36688. + rm -f conftest.o conftest.s
  36689. + fi
  36690. +fi
  36691. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
  36692. +$as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
  36693. +if test $gcc_cv_as_mips_dspr1_mult = yes; then
  36694. +
  36695. +$as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
  36696. +
  36697. +fi
  36698. +
  36699. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
  36700. +$as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
  36701. + gcc_cv_as_ld_jalr_reloc=no
  36702. + if test $gcc_cv_as_mips_explicit_relocs = yes; then
  36703. + if test $in_tree_ld = yes ; then
  36704. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
  36705. + && test $in_tree_ld_is_elf = yes; then
  36706. + gcc_cv_as_ld_jalr_reloc=yes
  36707. + fi
  36708. + elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
  36709. + echo ' .ent x' > conftest.s
  36710. + echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
  36711. + echo ' ld $25,%call16(y)($28)' >> conftest.s
  36712. + echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
  36713. + echo '1: jalr $25' >> conftest.s
  36714. + echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
  36715. + echo '1: jalr $25' >> conftest.s
  36716. + echo ' .end x' >> conftest.s
  36717. + if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
  36718. + && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
  36719. + if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
  36720. + && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
  36721. + gcc_cv_as_ld_jalr_reloc=yes
  36722. + fi
  36723. + fi
  36724. + rm -f conftest.*
  36725. + fi
  36726. + fi
  36727. + if test $gcc_cv_as_ld_jalr_reloc = yes; then
  36728. + if test x$target_cpu_default = x; then
  36729. + target_cpu_default=MASK_RELAX_PIC_CALLS
  36730. + else
  36731. + target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
  36732. + fi
  36733. + fi
  36734. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
  36735. +$as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
  36736. +
  36737. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
  36738. +$as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
  36739. +if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
  36740. + $as_echo_n "(cached) " >&6
  36741. +else
  36742. + gcc_cv_ld_mips_personality_relaxation=no
  36743. + if test $in_tree_ld = yes ; then
  36744. + if test "$gcc_cv_gld_major_version" -eq 2 \
  36745. + -a "$gcc_cv_gld_minor_version" -ge 21 \
  36746. + -o "$gcc_cv_gld_major_version" -gt 2; then
  36747. + gcc_cv_ld_mips_personality_relaxation=yes
  36748. + fi
  36749. + elif test x$gcc_cv_as != x \
  36750. + -a x$gcc_cv_ld != x \
  36751. + -a x$gcc_cv_readelf != x ; then
  36752. + cat > conftest.s <<EOF
  36753. + .cfi_startproc
  36754. + .cfi_personality 0x80,indirect_ptr
  36755. + .ent test
  36756. +test:
  36757. + nop
  36758. + .end test
  36759. + .cfi_endproc
  36760. +
  36761. + .section .data,"aw",@progbits
  36762. +indirect_ptr:
  36763. + .dc.a personality
  36764. +EOF
  36765. + if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
  36766. + && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
  36767. + if $gcc_cv_readelf -d conftest 2>&1 \
  36768. + | grep TEXTREL > /dev/null 2>&1; then
  36769. + :
  36770. + elif $gcc_cv_readelf --relocs conftest 2>&1 \
  36771. + | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
  36772. + :
  36773. + else
  36774. + gcc_cv_ld_mips_personality_relaxation=yes
  36775. + fi
  36776. + fi
  36777. + fi
  36778. + rm -f conftest.s conftest.o conftest
  36779. +fi
  36780. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
  36781. +$as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
  36782. + if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
  36783. +
  36784. +$as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
  36785. +
  36786. + fi
  36787. +
  36788. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
  36789. +$as_echo_n "checking assembler for -mnan= support... " >&6; }
  36790. +if test "${gcc_cv_as_mips_nan+set}" = set; then :
  36791. + $as_echo_n "(cached) " >&6
  36792. +else
  36793. + gcc_cv_as_mips_nan=no
  36794. + if test x$gcc_cv_as != x; then
  36795. + $as_echo '' > conftest.s
  36796. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
  36797. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36798. + (eval $ac_try) 2>&5
  36799. + ac_status=$?
  36800. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36801. + test $ac_status = 0; }; }
  36802. + then
  36803. + gcc_cv_as_mips_nan=yes
  36804. + else
  36805. + echo "configure: failed program was" >&5
  36806. + cat conftest.s >&5
  36807. + fi
  36808. + rm -f conftest.o conftest.s
  36809. + fi
  36810. +fi
  36811. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
  36812. +$as_echo "$gcc_cv_as_mips_nan" >&6; }
  36813. +if test $gcc_cv_as_mips_nan = yes; then
  36814. +
  36815. +$as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
  36816. +
  36817. +fi
  36818. + if test x$gcc_cv_as_mips_nan = xno \
  36819. + && test x$with_nan != x; then
  36820. + as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
  36821. + fi
  36822. + ;;
  36823. +esac
  36824. +
  36825. +# Mips and HP-UX need the GNU assembler.
  36826. +# Linux on IA64 might be able to use the Intel assembler.
  36827. +
  36828. +case "$target" in
  36829. + mips*-*-* | *-*-hpux* )
  36830. + if test x$gas_flag = xyes \
  36831. + || test x"$host" != x"$build" \
  36832. + || test ! -x "$gcc_cv_as" \
  36833. + || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
  36834. + :
  36835. + else
  36836. + echo "*** This configuration requires the GNU assembler" >&2
  36837. + exit 1
  36838. + fi
  36839. + ;;
  36840. +esac
  36841. +
  36842. +# ??? Not all targets support dwarf2 debug_line, even within a version
  36843. +# of gas. Moreover, we need to emit a valid instruction to trigger any
  36844. +# info to the output file. So, as supported targets are added to gas 2.11,
  36845. +# add some instruction here to (also) show we expect this might work.
  36846. +# ??? Once 2.11 is released, probably need to add first known working
  36847. +# version to the per-target configury.
  36848. +case "$cpu_type" in
  36849. + aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
  36850. + | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
  36851. + | xstormy16 | xtensa)
  36852. + insn="nop"
  36853. + ;;
  36854. + ia64 | s390)
  36855. + insn="nop 0"
  36856. + ;;
  36857. + mmix)
  36858. + insn="swym 0"
  36859. + ;;
  36860. +esac
  36861. +if test x"$insn" != x; then
  36862. + conftest_s="\
  36863. + .file 1 \"conftest.s\"
  36864. + .loc 1 3 0
  36865. + $insn"
  36866. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
  36867. +$as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
  36868. +if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
  36869. + $as_echo_n "(cached) " >&6
  36870. +else
  36871. + gcc_cv_as_dwarf2_debug_line=no
  36872. + if test $in_tree_gas = yes; then
  36873. + if test $in_tree_gas_is_elf = yes \
  36874. + && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
  36875. + then gcc_cv_as_dwarf2_debug_line=yes
  36876. +fi
  36877. + elif test x$gcc_cv_as != x; then
  36878. + $as_echo "$conftest_s" > conftest.s
  36879. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  36880. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36881. + (eval $ac_try) 2>&5
  36882. + ac_status=$?
  36883. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36884. + test $ac_status = 0; }; }
  36885. + then
  36886. + if test x$gcc_cv_objdump != x \
  36887. + && $gcc_cv_objdump -h conftest.o 2> /dev/null \
  36888. + | grep debug_line > /dev/null 2>&1; then
  36889. + gcc_cv_as_dwarf2_debug_line=yes
  36890. + fi
  36891. + else
  36892. + echo "configure: failed program was" >&5
  36893. + cat conftest.s >&5
  36894. + fi
  36895. + rm -f conftest.o conftest.s
  36896. + fi
  36897. +fi
  36898. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
  36899. +$as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
  36900. +
  36901. +
  36902. +# The .debug_line file table must be in the exact order that
  36903. +# we specified the files, since these indices are also used
  36904. +# by DW_AT_decl_file. Approximate this test by testing if
  36905. +# the assembler bitches if the same index is assigned twice.
  36906. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
  36907. +$as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
  36908. +if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
  36909. + $as_echo_n "(cached) " >&6
  36910. +else
  36911. + gcc_cv_as_dwarf2_file_buggy=no
  36912. + if test x$gcc_cv_as != x; then
  36913. + $as_echo ' .file 1 "foo.s"
  36914. + .file 1 "bar.s"' > conftest.s
  36915. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  36916. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36917. + (eval $ac_try) 2>&5
  36918. + ac_status=$?
  36919. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36920. + test $ac_status = 0; }; }
  36921. + then
  36922. + gcc_cv_as_dwarf2_file_buggy=yes
  36923. + else
  36924. + echo "configure: failed program was" >&5
  36925. + cat conftest.s >&5
  36926. + fi
  36927. + rm -f conftest.o conftest.s
  36928. + fi
  36929. +fi
  36930. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
  36931. +$as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
  36932. +
  36933. +
  36934. + if test $gcc_cv_as_dwarf2_debug_line = yes \
  36935. + && test $gcc_cv_as_dwarf2_file_buggy = no; then
  36936. +
  36937. +$as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
  36938. +
  36939. + fi
  36940. +
  36941. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
  36942. +$as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
  36943. +if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
  36944. + $as_echo_n "(cached) " >&6
  36945. +else
  36946. + gcc_cv_as_gdwarf2_flag=no
  36947. + if test $in_tree_gas = yes; then
  36948. + if test $in_tree_gas_is_elf = yes \
  36949. + && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
  36950. + then gcc_cv_as_gdwarf2_flag=yes
  36951. +fi
  36952. + elif test x$gcc_cv_as != x; then
  36953. + $as_echo "$insn" > conftest.s
  36954. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
  36955. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36956. + (eval $ac_try) 2>&5
  36957. + ac_status=$?
  36958. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36959. + test $ac_status = 0; }; }
  36960. + then
  36961. + gcc_cv_as_gdwarf2_flag=yes
  36962. + else
  36963. + echo "configure: failed program was" >&5
  36964. + cat conftest.s >&5
  36965. + fi
  36966. + rm -f conftest.o conftest.s
  36967. + fi
  36968. +fi
  36969. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
  36970. +$as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
  36971. +if test $gcc_cv_as_gdwarf2_flag = yes; then
  36972. +
  36973. +$as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
  36974. +
  36975. +fi
  36976. +
  36977. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
  36978. +$as_echo_n "checking assembler for --gstabs option... " >&6; }
  36979. +if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
  36980. + $as_echo_n "(cached) " >&6
  36981. +else
  36982. + gcc_cv_as_gstabs_flag=no
  36983. + if test $in_tree_gas = yes; then
  36984. + if test $in_tree_gas_is_elf = yes \
  36985. + && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
  36986. + then gcc_cv_as_gstabs_flag=yes
  36987. +fi
  36988. + elif test x$gcc_cv_as != x; then
  36989. + $as_echo "$insn" > conftest.s
  36990. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
  36991. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  36992. + (eval $ac_try) 2>&5
  36993. + ac_status=$?
  36994. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36995. + test $ac_status = 0; }; }
  36996. + then
  36997. + # The native Solaris 9/Intel assembler doesn't understand --gstabs
  36998. + # and warns about it, but still exits successfully. So check for
  36999. + # this.
  37000. + if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
  37001. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  37002. + (eval $ac_try) 2>&5
  37003. + ac_status=$?
  37004. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  37005. + test $ac_status = 0; }; }
  37006. + then :
  37007. + else gcc_cv_as_gstabs_flag=yes
  37008. + fi
  37009. + else
  37010. + echo "configure: failed program was" >&5
  37011. + cat conftest.s >&5
  37012. + fi
  37013. + rm -f conftest.o conftest.s
  37014. + fi
  37015. +fi
  37016. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
  37017. +$as_echo "$gcc_cv_as_gstabs_flag" >&6; }
  37018. +if test $gcc_cv_as_gstabs_flag = yes; then
  37019. +
  37020. +$as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
  37021. +
  37022. +fi
  37023. +
  37024. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
  37025. +$as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
  37026. +if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
  37027. + $as_echo_n "(cached) " >&6
  37028. +else
  37029. + gcc_cv_as_debug_prefix_map_flag=no
  37030. + if test $in_tree_gas = yes; then
  37031. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
  37032. + then gcc_cv_as_debug_prefix_map_flag=yes
  37033. +fi
  37034. + elif test x$gcc_cv_as != x; then
  37035. + $as_echo "$insn" > conftest.s
  37036. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
  37037. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  37038. + (eval $ac_try) 2>&5
  37039. + ac_status=$?
  37040. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  37041. + test $ac_status = 0; }; }
  37042. + then
  37043. + gcc_cv_as_debug_prefix_map_flag=yes
  37044. + else
  37045. + echo "configure: failed program was" >&5
  37046. + cat conftest.s >&5
  37047. + fi
  37048. + rm -f conftest.o conftest.s
  37049. + fi
  37050. +fi
  37051. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
  37052. +$as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
  37053. +if test $gcc_cv_as_debug_prefix_map_flag = yes; then
  37054. +
  37055. +$as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
  37056. +
  37057. +fi
  37058. +fi
  37059. +
  37060. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
  37061. +$as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
  37062. +if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
  37063. + $as_echo_n "(cached) " >&6
  37064. +else
  37065. + gcc_cv_as_lcomm_with_alignment=no
  37066. + if test x$gcc_cv_as != x; then
  37067. + $as_echo '.lcomm bar,4,16' > conftest.s
  37068. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  37069. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  37070. + (eval $ac_try) 2>&5
  37071. + ac_status=$?
  37072. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  37073. + test $ac_status = 0; }; }
  37074. + then
  37075. + gcc_cv_as_lcomm_with_alignment=yes
  37076. + else
  37077. + echo "configure: failed program was" >&5
  37078. + cat conftest.s >&5
  37079. + fi
  37080. + rm -f conftest.o conftest.s
  37081. + fi
  37082. +fi
  37083. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
  37084. +$as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
  37085. +if test $gcc_cv_as_lcomm_with_alignment = yes; then
  37086. +
  37087. +$as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
  37088. +
  37089. +fi
  37090. +
  37091. +if test x$with_sysroot = x && test x$host = x$target \
  37092. + && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
  37093. + && test "$prefix" != "NONE"; then
  37094. +
  37095. +cat >>confdefs.h <<_ACEOF
  37096. +#define PREFIX_INCLUDE_DIR "$prefix/include"
  37097. +_ACEOF
  37098. +
  37099. +fi
  37100. +
  37101. +if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
  37102. + if test "x$with_headers" != x; then
  37103. + target_header_dir=$with_headers
  37104. + elif test "x$with_sysroot" = x; then
  37105. + target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
  37106. + elif test "x$with_build_sysroot" != "x"; then
  37107. + target_header_dir="${with_build_sysroot}${native_system_header_dir}"
  37108. + elif test "x$with_sysroot" = xyes; then
  37109. + target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
  37110. + else
  37111. + target_header_dir="${with_sysroot}${native_system_header_dir}"
  37112. + fi
  37113. +else
  37114. + target_header_dir=${native_system_header_dir}
  37115. +fi
  37116. +
  37117. +# Determine the version of glibc, if any, used on the target.
  37118. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
  37119. +$as_echo_n "checking for target glibc version... " >&6; }
  37120. +
  37121. +# Check whether --with-glibc-version was given.
  37122. +if test "${with_glibc_version+set}" = set; then :
  37123. + withval=$with_glibc_version;
  37124. +if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
  37125. + glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
  37126. + glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
  37127. +else
  37128. + as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
  37129. +fi
  37130. +else
  37131. +
  37132. +glibc_version_major=0
  37133. +glibc_version_minor=0
  37134. +if test -f $target_header_dir/features.h \
  37135. + && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
  37136. + && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
  37137. + glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
  37138. + glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
  37139. +fi
  37140. +fi
  37141. +
  37142. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
  37143. +$as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
  37144. +
  37145. +# Check whether --enable-gnu-unique-object was given.
  37146. +if test "${enable_gnu_unique_object+set}" = set; then :
  37147. + enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
  37148. + yes | no) ;;
  37149. + *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
  37150. +Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
  37151. + esac
  37152. +else
  37153. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
  37154. +$as_echo_n "checking assembler for gnu_unique_object... " >&6; }
  37155. +if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
  37156. + $as_echo_n "(cached) " >&6
  37157. +else
  37158. + gcc_cv_as_gnu_unique_object=no
  37159. + if test $in_tree_gas = yes; then
  37160. + if test $in_tree_gas_is_elf = yes \
  37161. + && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
  37162. + then gcc_cv_as_gnu_unique_object=yes
  37163. +fi
  37164. + elif test x$gcc_cv_as != x; then
  37165. + $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
  37166. + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
  37167. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  37168. + (eval $ac_try) 2>&5
  37169. + ac_status=$?
  37170. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  37171. + test $ac_status = 0; }; }
  37172. + then
  37173. + gcc_cv_as_gnu_unique_object=yes
  37174. + else
  37175. + echo "configure: failed program was" >&5
  37176. + cat conftest.s >&5
  37177. + fi
  37178. + rm -f conftest.o conftest.s
  37179. + fi
  37180. +fi
  37181. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
  37182. +$as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
  37183. +if test $gcc_cv_as_gnu_unique_object = yes; then
  37184. + # We need to unquote above to to use the definition from config.gcc.
  37185. +# Also check for ld.so support, i.e. glibc 2.11 or higher.
  37186. +
  37187. +if test $glibc_version_major -gt 2 \
  37188. + || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
  37189. + enable_gnu_unique_object=yes
  37190. +fi
  37191. +
  37192. +fi
  37193. +fi
  37194. +
  37195. +if test x$enable_gnu_unique_object = xyes; then
  37196. +
  37197. +$as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
  37198. +
  37199. +fi
  37200. +
  37201. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
  37202. +$as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
  37203. +if test "${gcc_cv_as_line_zero+set}" = set; then :
  37204. + $as_echo_n "(cached) " >&6
  37205. +else
  37206. + gcc_cv_as_line_zero=no
  37207. + if test $in_tree_gas = yes; then
  37208. + if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
  37209. + then gcc_cv_as_line_zero=yes
  37210. +fi
  37211. + elif test "x$gcc_cv_as" != x; then
  37212. + { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
  37213. + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
  37214. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  37215. + (eval $ac_try) 2>&5
  37216. + ac_status=$?
  37217. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  37218. + test $ac_status = 0; }; } &&
  37219. + test "x`cat conftest.out`" = x
  37220. + then
  37221. + gcc_cv_as_line_zero=yes
  37222. + else
  37223. + echo "configure: failed program was" >&5
  37224. + cat conftest.s >&5
  37225. + echo "configure: error output was" >&5
  37226. + cat conftest.out >&5
  37227. + fi
  37228. + rm -f conftest.o conftest.s conftest.out
  37229. + fi
  37230. +fi
  37231. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
  37232. +$as_echo "$gcc_cv_as_line_zero" >&6; }
  37233. +if test "x$gcc_cv_as_line_zero" = xyes; then
  37234. +
  37235. +$as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
  37236. +
  37237. +fi
  37238. +
  37239. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
  37240. +$as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
  37241. +gcc_cv_ld_eh_frame_hdr=no
  37242. +if test $in_tree_ld = yes ; then
  37243. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
  37244. + && test $in_tree_ld_is_elf = yes; then
  37245. + gcc_cv_ld_eh_frame_hdr=yes
  37246. + fi
  37247. +elif test x$gcc_cv_ld != x; then
  37248. + if echo "$ld_ver" | grep GNU > /dev/null; then
  37249. + # Check if linker supports --eh-frame-hdr option
  37250. + if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
  37251. + gcc_cv_ld_eh_frame_hdr=yes
  37252. + fi
  37253. + else
  37254. + case "$target" in
  37255. + *-*-solaris2*)
  37256. + # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
  37257. + if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
  37258. + gcc_cv_ld_eh_frame_hdr=yes
  37259. + fi
  37260. + ;;
  37261. + esac
  37262. + fi
  37263. +fi
  37264. +
  37265. +if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
  37266. +
  37267. +$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
  37268. +
  37269. +fi
  37270. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
  37271. +$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
  37272. +
  37273. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
  37274. +$as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
  37275. +gcc_cv_ld_eh_frame_ciev3=no
  37276. +if test $in_tree_ld = yes ; then
  37277. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
  37278. + && test $in_tree_ld_is_elf = yes; then
  37279. + gcc_cv_ld_eh_frame_ciev3=yes
  37280. + fi
  37281. +elif test x$gcc_cv_ld != x; then
  37282. + if echo "$ld_ver" | grep GNU > /dev/null; then
  37283. + gcc_cv_ld_eh_frame_ciev3=yes
  37284. + if test 0"$ld_date" -lt 20040513; then
  37285. + if test -n "$ld_date"; then
  37286. + # If there was date string, but was earlier than 2004-05-13, fail
  37287. + gcc_cv_ld_eh_frame_ciev3=no
  37288. + elif test "$ld_vers_major" -lt 2; then
  37289. + gcc_cv_ld_eh_frame_ciev3=no
  37290. + elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
  37291. + gcc_cv_ld_eh_frame_ciev3=no
  37292. + fi
  37293. + fi
  37294. + else
  37295. + case "$target" in
  37296. + *-*-solaris2*)
  37297. + # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
  37298. + if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
  37299. + gcc_cv_ld_eh_frame_ciev3=yes
  37300. + fi
  37301. + ;;
  37302. + esac
  37303. + fi
  37304. +fi
  37305. +
  37306. +cat >>confdefs.h <<_ACEOF
  37307. +#define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
  37308. +_ACEOF
  37309. +
  37310. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
  37311. +$as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
  37312. +
  37313. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
  37314. +$as_echo_n "checking linker position independent executable support... " >&6; }
  37315. +gcc_cv_ld_pie=no
  37316. +if test $in_tree_ld = yes ; then
  37317. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
  37318. + && test $in_tree_ld_is_elf = yes; then
  37319. + gcc_cv_ld_pie=yes
  37320. + fi
  37321. +elif test x$gcc_cv_ld != x; then
  37322. + # Check if linker supports -pie option
  37323. + if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
  37324. + gcc_cv_ld_pie=yes
  37325. + fi
  37326. +fi
  37327. +if test x"$gcc_cv_ld_pie" = xyes; then
  37328. +
  37329. +$as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
  37330. +
  37331. +fi
  37332. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
  37333. +$as_echo "$gcc_cv_ld_pie" >&6; }
  37334. +
  37335. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
  37336. +$as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
  37337. +gcc_cv_ld_eh_gc_sections=no
  37338. +if test $in_tree_ld = yes ; then
  37339. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
  37340. + && test $in_tree_ld_is_elf = yes; then
  37341. + gcc_cv_ld_eh_gc_sections=yes
  37342. + fi
  37343. +elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
  37344. + cat > conftest.s <<EOF
  37345. + .section .text
  37346. +.globl _start
  37347. + .type _start, @function
  37348. +_start:
  37349. + .long foo
  37350. + .size _start, .-_start
  37351. + .section .text.foo,"ax",@progbits
  37352. + .type foo, @function
  37353. +foo:
  37354. + .long 0
  37355. + .size foo, .-foo
  37356. + .section .gcc_except_table.foo,"a",@progbits
  37357. +.L0:
  37358. + .long 0
  37359. + .section .eh_frame,"a",@progbits
  37360. + .long .L0
  37361. +EOF
  37362. + if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
  37363. + if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
  37364. + | grep "gc-sections option ignored" > /dev/null; then
  37365. + gcc_cv_ld_eh_gc_sections=no
  37366. + elif $gcc_cv_objdump -h conftest 2> /dev/null \
  37367. + | grep gcc_except_table > /dev/null; then
  37368. + gcc_cv_ld_eh_gc_sections=yes
  37369. + # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
  37370. + if test x$gcc_cv_as_comdat_group != xyes; then
  37371. + gcc_cv_ld_eh_gc_sections=no
  37372. + cat > conftest.s <<EOF
  37373. + .section .text
  37374. +.globl _start
  37375. + .type _start, @function
  37376. +_start:
  37377. + .long foo
  37378. + .size _start, .-_start
  37379. + .section .gnu.linkonce.t.foo,"ax",@progbits
  37380. + .type foo, @function
  37381. +foo:
  37382. + .long 0
  37383. + .size foo, .-foo
  37384. + .section .gcc_except_table.foo,"a",@progbits
  37385. +.L0:
  37386. + .long 0
  37387. + .section .eh_frame,"a",@progbits
  37388. + .long .L0
  37389. +EOF
  37390. + if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
  37391. + if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
  37392. + | grep "gc-sections option ignored" > /dev/null; then
  37393. + gcc_cv_ld_eh_gc_sections=no
  37394. + elif $gcc_cv_objdump -h conftest 2> /dev/null \
  37395. + | grep gcc_except_table > /dev/null; then
  37396. + gcc_cv_ld_eh_gc_sections=yes
  37397. + fi
  37398. + fi
  37399. + fi
  37400. + fi
  37401. + fi
  37402. + rm -f conftest.s conftest.o conftest
  37403. +fi
  37404. +case "$target" in
  37405. + hppa*-*-linux*)
  37406. + # ??? This apparently exposes a binutils bug with PC-relative relocations.
  37407. + gcc_cv_ld_eh_gc_sections=no
  37408. + ;;
  37409. +esac
  37410. +if test x$gcc_cv_ld_eh_gc_sections = xyes; then
  37411. +
  37412. +$as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
  37413. +
  37414. +fi
  37415. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
  37416. +$as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
  37417. +
  37418. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
  37419. +$as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
  37420. +gcc_cv_ld_eh_gc_sections_bug=no
  37421. +if test $in_tree_ld = yes ; then
  37422. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
  37423. + && test $in_tree_ld_is_elf = yes; then
  37424. + gcc_cv_ld_eh_gc_sections_bug=yes
  37425. + fi
  37426. +elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
  37427. + gcc_cv_ld_eh_gc_sections_bug=yes
  37428. + cat > conftest.s <<EOF
  37429. + .section .text
  37430. +.globl _start
  37431. + .type _start, @function
  37432. +_start:
  37433. + .long foo
  37434. + .size _start, .-_start
  37435. + .section .text.startup.foo,"ax",@progbits
  37436. + .type foo, @function
  37437. +foo:
  37438. + .long 0
  37439. + .size foo, .-foo
  37440. + .section .gcc_except_table.foo,"a",@progbits
  37441. +.L0:
  37442. + .long 0
  37443. + .section .eh_frame,"a",@progbits
  37444. + .long .L0
  37445. +EOF
  37446. + if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
  37447. + if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
  37448. + | grep "gc-sections option ignored" > /dev/null; then
  37449. + :
  37450. + elif $gcc_cv_objdump -h conftest 2> /dev/null \
  37451. + | grep gcc_except_table > /dev/null; then
  37452. + gcc_cv_ld_eh_gc_sections_bug=no
  37453. + fi
  37454. + fi
  37455. + rm -f conftest.s conftest.o conftest
  37456. +fi
  37457. +if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
  37458. +
  37459. +$as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
  37460. +
  37461. +fi
  37462. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
  37463. +$as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
  37464. +
  37465. +# --------
  37466. +# UNSORTED
  37467. +# --------
  37468. +
  37469. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
  37470. +$as_echo_n "checking linker --as-needed support... " >&6; }
  37471. +if test "${gcc_cv_ld_as_needed+set}" = set; then :
  37472. + $as_echo_n "(cached) " >&6
  37473. +else
  37474. + gcc_cv_ld_as_needed=no
  37475. +gcc_cv_ld_as_needed_option='--as-needed'
  37476. +gcc_cv_ld_no_as_needed_option='--no-as-needed'
  37477. +if test $in_tree_ld = yes ; then
  37478. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
  37479. + && test $in_tree_ld_is_elf = yes; then
  37480. + gcc_cv_ld_as_needed=yes
  37481. + fi
  37482. +elif test x$gcc_cv_ld != x; then
  37483. + # Check if linker supports --as-needed and --no-as-needed options
  37484. + if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
  37485. + gcc_cv_ld_as_needed=yes
  37486. + else
  37487. + case "$target" in
  37488. + # Solaris 2 ld always supports -z ignore/-z record.
  37489. + *-*-solaris2*)
  37490. + gcc_cv_ld_as_needed=yes
  37491. + gcc_cv_ld_as_needed_option="-z ignore"
  37492. + gcc_cv_ld_no_as_needed_option="-z record"
  37493. + ;;
  37494. + esac
  37495. + fi
  37496. +fi
  37497. +# --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
  37498. +# dl_iterate_phdr, i.e. since Solaris 11.
  37499. +case "$target" in
  37500. + *-*-solaris2.1[1-9]*)
  37501. + case "$target" in
  37502. + i?86-*-* | x86_64-*-*)
  37503. + if echo "$ld_ver" | grep GNU > /dev/null; then
  37504. + # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
  37505. + gcc_cv_ld_as_needed=no
  37506. + fi
  37507. + ;;
  37508. + esac
  37509. + ;;
  37510. + *-*-solaris2*)
  37511. + gcc_cv_ld_as_needed=no
  37512. + ;;
  37513. +esac
  37514. +
  37515. +fi
  37516. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
  37517. +$as_echo "$gcc_cv_ld_as_needed" >&6; }
  37518. +if test x"$gcc_cv_ld_as_needed" = xyes; then
  37519. +
  37520. +$as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
  37521. +
  37522. +
  37523. +cat >>confdefs.h <<_ACEOF
  37524. +#define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
  37525. +_ACEOF
  37526. +
  37527. +
  37528. +cat >>confdefs.h <<_ACEOF
  37529. +#define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
  37530. +_ACEOF
  37531. +
  37532. +fi
  37533. +
  37534. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
  37535. +$as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
  37536. +saved_LDFLAGS="$LDFLAGS"
  37537. +for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
  37538. + LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
  37539. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37540. +/* end confdefs.h. */
  37541. +int main(void) {return 0;}
  37542. +_ACEOF
  37543. +if ac_fn_c_try_link "$LINENO"; then :
  37544. + gcc_cv_ld_clearcap=yes; break
  37545. +else
  37546. + gcc_cv_ld_clearcap=no
  37547. +fi
  37548. +rm -f core conftest.err conftest.$ac_objext \
  37549. + conftest$ac_exeext conftest.$ac_ext
  37550. +done
  37551. +LDFLAGS="$saved_LDFLAGS"
  37552. +if test "x$gcc_cv_ld_clearcap" = xyes; then
  37553. +
  37554. +$as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
  37555. +
  37556. + ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
  37557. +
  37558. +fi
  37559. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
  37560. +$as_echo "$gcc_cv_ld_clearcap" >&6; }
  37561. +
  37562. +case "$target:$tm_file" in
  37563. + powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
  37564. + case "$target" in
  37565. + *le-*-linux*)
  37566. + emul_name="-melf64lppc"
  37567. + ;;
  37568. + *-*-linux*)
  37569. + emul_name="-melf64ppc"
  37570. + ;;
  37571. + *-*-freebsd*)
  37572. + emul_name="-melf64ppc_fbsd"
  37573. + ;;
  37574. + esac
  37575. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
  37576. +$as_echo_n "checking linker support for omitting dot symbols... " >&6; }
  37577. +if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
  37578. + $as_echo_n "(cached) " >&6
  37579. +else
  37580. + gcc_cv_ld_no_dot_syms=no
  37581. + if test x"$ld_is_gold" = xyes; then
  37582. + gcc_cv_ld_no_dot_syms=yes
  37583. + elif test $in_tree_ld = yes ; then
  37584. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
  37585. + gcc_cv_ld_no_dot_syms=yes
  37586. + fi
  37587. + elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
  37588. + cat > conftest1.s <<EOF
  37589. + .text
  37590. + bl .foo
  37591. +EOF
  37592. + cat > conftest2.s <<EOF
  37593. + .section ".opd","aw"
  37594. + .align 3
  37595. + .globl foo
  37596. + .type foo,@function
  37597. +foo:
  37598. + .quad .LEfoo,.TOC.@tocbase,0
  37599. + .text
  37600. +.LEfoo:
  37601. + blr
  37602. + .size foo,.-.LEfoo
  37603. +EOF
  37604. + if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
  37605. + && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
  37606. + && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
  37607. + gcc_cv_ld_no_dot_syms=yes
  37608. + fi
  37609. + rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
  37610. + fi
  37611. +
  37612. +fi
  37613. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
  37614. +$as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
  37615. + if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
  37616. +
  37617. +$as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
  37618. +
  37619. + fi
  37620. +
  37621. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
  37622. +$as_echo_n "checking linker large toc support... " >&6; }
  37623. +if test "${gcc_cv_ld_large_toc+set}" = set; then :
  37624. + $as_echo_n "(cached) " >&6
  37625. +else
  37626. + gcc_cv_ld_large_toc=no
  37627. + if test x"$ld_is_gold" = xyes; then
  37628. + gcc_cv_ld_large_toc=yes
  37629. + elif test $in_tree_ld = yes ; then
  37630. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
  37631. + gcc_cv_ld_large_toc=yes
  37632. + fi
  37633. + elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
  37634. + cat > conftest.s <<EOF
  37635. + .section ".tbss","awT",@nobits
  37636. + .align 3
  37637. +ie0: .space 8
  37638. + .global _start
  37639. + .text
  37640. +_start:
  37641. + addis 9,13,ie0@got@tprel@ha
  37642. + ld 9,ie0@got@tprel@l(9)
  37643. +EOF
  37644. + if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
  37645. + && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
  37646. + gcc_cv_ld_large_toc=yes
  37647. + fi
  37648. + rm -f conftest conftest.o conftest.s
  37649. + fi
  37650. +
  37651. +fi
  37652. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
  37653. +$as_echo "$gcc_cv_ld_large_toc" >&6; }
  37654. + if test x"$gcc_cv_ld_large_toc" = xyes; then
  37655. +
  37656. +$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
  37657. +
  37658. + fi
  37659. + ;;
  37660. +esac
  37661. +
  37662. +case "$target" in
  37663. + *-*-aix*)
  37664. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
  37665. +$as_echo_n "checking linker large toc support... " >&6; }
  37666. +if test "${gcc_cv_ld_large_toc+set}" = set; then :
  37667. + $as_echo_n "(cached) " >&6
  37668. +else
  37669. + gcc_cv_ld_large_toc=no
  37670. + if test x$gcc_cv_as != x ; then
  37671. + cat > conftest.s <<EOF
  37672. + .toc
  37673. +LC..1:
  37674. + .tc a[TC],a[RW]
  37675. + .extern a[RW]
  37676. + .csect .text[PR]
  37677. +.largetoctest:
  37678. + addis 9,LC..1@u(2)
  37679. + ld 3,LC..1@l(9)
  37680. +EOF
  37681. + if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
  37682. + gcc_cv_ld_large_toc=yes
  37683. + fi
  37684. + rm -f conftest conftest.o conftest.s
  37685. + fi
  37686. +
  37687. +fi
  37688. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
  37689. +$as_echo "$gcc_cv_ld_large_toc" >&6; }
  37690. + if test x"$gcc_cv_ld_large_toc" = xyes; then
  37691. +
  37692. +$as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
  37693. +
  37694. + fi
  37695. + ;;
  37696. +esac
  37697. +
  37698. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
  37699. +$as_echo_n "checking linker --build-id support... " >&6; }
  37700. +if test "${gcc_cv_ld_buildid+set}" = set; then :
  37701. + $as_echo_n "(cached) " >&6
  37702. +else
  37703. + gcc_cv_ld_buildid=no
  37704. + if test $in_tree_ld = yes ; then
  37705. + if test "$gcc_cv_gld_major_version" -eq 2 -a \
  37706. + "$gcc_cv_gld_minor_version" -ge 18 -o \
  37707. + "$gcc_cv_gld_major_version" -gt 2 \
  37708. + && test $in_tree_ld_is_elf = yes; then
  37709. + gcc_cv_ld_buildid=yes
  37710. + fi
  37711. + elif test x$gcc_cv_ld != x; then
  37712. + if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
  37713. + gcc_cv_ld_buildid=yes
  37714. + fi
  37715. + fi
  37716. +fi
  37717. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
  37718. +$as_echo "$gcc_cv_ld_buildid" >&6; }
  37719. +if test x"$gcc_cv_ld_buildid" = xyes; then
  37720. +
  37721. +$as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
  37722. +
  37723. +fi
  37724. +
  37725. +# Check whether --enable-linker-build-id was given.
  37726. +if test "${enable_linker_build_id+set}" = set; then :
  37727. + enableval=$enable_linker_build_id;
  37728. +else
  37729. + enable_linker_build_id=no
  37730. +fi
  37731. +
  37732. +
  37733. +if test x"$enable_linker_build_id" = xyes; then
  37734. + if test x"$gcc_cv_ld_buildid" = xyes; then
  37735. +
  37736. +$as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
  37737. +
  37738. + else
  37739. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
  37740. +$as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
  37741. + fi
  37742. +fi
  37743. +
  37744. +# In binutils 2.21, GNU ld gained support for new emulations fully
  37745. +# supporting the Solaris 2 ABI. Detect their presence in the linker used.
  37746. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
  37747. +$as_echo_n "checking linker *_sol2 emulation support... " >&6; }
  37748. +if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
  37749. + $as_echo_n "(cached) " >&6
  37750. +else
  37751. + gcc_cv_ld_sol2_emulation=no
  37752. + if test $in_tree_ld = yes ; then
  37753. + if test "$gcc_cv_gld_major_version" -eq 2 -a \
  37754. + "$gcc_cv_gld_minor_version" -ge 21 -o \
  37755. + "$gcc_cv_gld_major_version" -gt 2 \
  37756. + && test $in_tree_ld_is_elf = yes; then
  37757. + gcc_cv_ld_sol2_emulation=yes
  37758. + fi
  37759. + elif test x$gcc_cv_ld != x; then
  37760. + if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
  37761. + grep _sol2 > /dev/null; then
  37762. + gcc_cv_ld_sol2_emulation=yes
  37763. + fi
  37764. + fi
  37765. +fi
  37766. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
  37767. +$as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
  37768. +if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
  37769. +
  37770. +$as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
  37771. +
  37772. +fi
  37773. +
  37774. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
  37775. +$as_echo_n "checking linker --sysroot support... " >&6; }
  37776. +if test "${gcc_cv_ld_sysroot+set}" = set; then :
  37777. + $as_echo_n "(cached) " >&6
  37778. +else
  37779. + gcc_cv_ld_sysroot=no
  37780. + if test $in_tree_ld = yes ; then
  37781. + if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
  37782. + gcc_cv_ld_sysroot=yes
  37783. + fi
  37784. + elif test x$gcc_cv_ld != x; then
  37785. + if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
  37786. + gcc_cv_ld_sysroot=yes
  37787. + fi
  37788. + fi
  37789. +fi
  37790. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
  37791. +$as_echo "$gcc_cv_ld_sysroot" >&6; }
  37792. +if test x"$gcc_cv_ld_sysroot" = xyes; then
  37793. +
  37794. +$as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
  37795. +
  37796. +fi
  37797. +
  37798. +# Test for stack protector support in target C library.
  37799. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
  37800. +$as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
  37801. +if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
  37802. + $as_echo_n "(cached) " >&6
  37803. +else
  37804. + gcc_cv_libc_provides_ssp=no
  37805. + case "$target" in
  37806. + *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
  37807. + # glibc 2.4 and later provides __stack_chk_fail and
  37808. + # either __stack_chk_guard, or TLS access to stack guard canary.
  37809. +
  37810. +if test $glibc_version_major -gt 2 \
  37811. + || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
  37812. + gcc_cv_libc_provides_ssp=yes
  37813. +else
  37814. +
  37815. + if test -f $target_header_dir/features.h \
  37816. + && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
  37817. + $target_header_dir/features.h > /dev/null; then
  37818. + if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
  37819. + $target_header_dir/features.h > /dev/null && \
  37820. + test -f $target_header_dir/bits/uClibc_config.h && \
  37821. + $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
  37822. + $target_header_dir/bits/uClibc_config.h > /dev/null; then
  37823. + gcc_cv_libc_provides_ssp=yes
  37824. + fi
  37825. + # all versions of Bionic support stack protector
  37826. + elif test -f $target_header_dir/sys/cdefs.h \
  37827. + && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
  37828. + $target_header_dir/sys/cdefs.h > /dev/null; then
  37829. + gcc_cv_libc_provides_ssp=yes
  37830. + fi
  37831. +fi
  37832. + ;;
  37833. + *-*-gnu*)
  37834. + # Avoid complicated tests (see
  37835. + # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
  37836. + # simply assert that glibc does provide this, which is true for all
  37837. + # realistically usable GNU/Hurd configurations.
  37838. + gcc_cv_libc_provides_ssp=yes;;
  37839. + *-*-darwin* | *-*-freebsd*)
  37840. + ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
  37841. +if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
  37842. + gcc_cv_libc_provides_ssp=yes
  37843. +else
  37844. + echo "no __stack_chk_fail on this target"
  37845. +fi
  37846. +
  37847. + ;;
  37848. + *) gcc_cv_libc_provides_ssp=no ;;
  37849. + esac
  37850. +fi
  37851. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
  37852. +$as_echo "$gcc_cv_libc_provides_ssp" >&6; }
  37853. +
  37854. +if test x$gcc_cv_libc_provides_ssp = xyes; then
  37855. +
  37856. +$as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
  37857. +
  37858. +fi
  37859. +
  37860. +# Test for <sys/sdt.h> on the target.
  37861. +
  37862. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
  37863. +$as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
  37864. +have_sys_sdt_h=no
  37865. +if test -f $target_header_dir/sys/sdt.h; then
  37866. + have_sys_sdt_h=yes
  37867. +
  37868. +$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
  37869. +
  37870. +fi
  37871. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
  37872. +$as_echo "$have_sys_sdt_h" >&6; }
  37873. +
  37874. +# Check if TFmode long double should be used by default or not.
  37875. +# Some glibc targets used DFmode long double, but with glibc 2.4
  37876. +# and later they can use TFmode.
  37877. +case "$target" in
  37878. + powerpc*-*-linux* | \
  37879. + sparc*-*-linux* | \
  37880. + s390*-*-linux* | \
  37881. + alpha*-*-linux*)
  37882. +
  37883. +# Check whether --with-long-double-128 was given.
  37884. +if test "${with_long_double_128+set}" = set; then :
  37885. + withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
  37886. +else
  37887. +
  37888. +if test $glibc_version_major -gt 2 \
  37889. + || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
  37890. + gcc_cv_target_ldbl128=yes
  37891. +else
  37892. +
  37893. + gcc_cv_target_ldbl128=no
  37894. + grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
  37895. + $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
  37896. + && gcc_cv_target_ldbl128=yes
  37897. +
  37898. +fi
  37899. +fi
  37900. +
  37901. + ;;
  37902. +esac
  37903. +if test x$gcc_cv_target_ldbl128 = xyes; then
  37904. +
  37905. +$as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
  37906. +
  37907. +fi
  37908. +
  37909. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
  37910. +$as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
  37911. +gcc_cv_target_dl_iterate_phdr=unknown
  37912. +case "$target" in
  37913. + # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
  37914. + # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
  37915. + # libdl there, both complicating its use and breaking compatibility
  37916. + # between Solaris 10 updates.
  37917. + *-*-solaris2.1[1-9]*)
  37918. + # <link.h> needs both a dl_iterate_phdr declaration and support for
  37919. + # compilation with largefile support.
  37920. + if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
  37921. + && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
  37922. + gcc_cv_target_dl_iterate_phdr=yes
  37923. + else
  37924. + gcc_cv_target_dl_iterate_phdr=no
  37925. + fi
  37926. + ;;
  37927. +esac
  37928. +
  37929. +if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
  37930. +
  37931. +$as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
  37932. +
  37933. +fi
  37934. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
  37935. +$as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
  37936. +
  37937. +# We no longer support different GC mechanisms. Emit an error if
  37938. +# the user configures with --with-gc.
  37939. +
  37940. +# Check whether --with-gc was given.
  37941. +if test "${with_gc+set}" = set; then :
  37942. + withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
  37943. +fi
  37944. +
  37945. +
  37946. +# Libraries to use on the host. This will normally be set by the top
  37947. +# level Makefile. Here we simply capture the value for our Makefile.
  37948. +if test -z "${HOST_LIBS+set}"; then
  37949. + HOST_LIBS=
  37950. +fi
  37951. +
  37952. +
  37953. +# Use the system's zlib library.
  37954. +zlibdir=-L../zlib
  37955. +zlibinc="-I\$(srcdir)/../zlib"
  37956. +
  37957. +# Check whether --with-system-zlib was given.
  37958. +if test "${with_system_zlib+set}" = set; then :
  37959. + withval=$with_system_zlib; zlibdir=
  37960. +zlibinc=
  37961. +
  37962. +fi
  37963. +
  37964. +
  37965. +
  37966. +
  37967. +
  37968. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  37969. +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  37970. + # Check whether --enable-maintainer-mode was given.
  37971. +if test "${enable_maintainer_mode+set}" = set; then :
  37972. + enableval=$enable_maintainer_mode; maintainer_mode=$enableval
  37973. +else
  37974. + maintainer_mode=no
  37975. +fi
  37976. +
  37977. +
  37978. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
  37979. +$as_echo "$maintainer_mode" >&6; }
  37980. +
  37981. +if test "$maintainer_mode" = "yes"; then
  37982. + MAINT=''
  37983. +else
  37984. + MAINT='#'
  37985. +fi
  37986. +
  37987. +
  37988. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
  37989. +$as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
  37990. + # Check whether --enable-link-mutex was given.
  37991. +if test "${enable_link_mutex+set}" = set; then :
  37992. + enableval=$enable_link_mutex; do_link_mutex=$enableval
  37993. +else
  37994. + do_link_mutex=no
  37995. +fi
  37996. +
  37997. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
  37998. +$as_echo "$do_link_mutex" >&6; }
  37999. +
  38000. +if test "$do_link_mutex" = "yes"; then
  38001. + DO_LINK_MUTEX=true
  38002. +else
  38003. + DO_LINK_MUTEX=false
  38004. +fi
  38005. +
  38006. +
  38007. +# --------------
  38008. +# Language hooks
  38009. +# --------------
  38010. +
  38011. +# Make empty files to contain the specs and options for each language.
  38012. +# Then add #include lines to for a compiler that has specs and/or options.
  38013. +
  38014. +subdirs=
  38015. +lang_opt_files=
  38016. +lang_specs_files=
  38017. +lang_tree_files=
  38018. +# These (without "all_") are set in each config-lang.in.
  38019. +# `language' must be a single word so is spelled singularly.
  38020. +all_languages=
  38021. +all_compilers=
  38022. +all_outputs='Makefile'
  38023. +# List of language makefile fragments.
  38024. +all_lang_makefrags=
  38025. +# Additional files for gengtype
  38026. +all_gtfiles="$target_gtfiles"
  38027. +
  38028. +# These are the languages that are set in --enable-languages,
  38029. +# and are available in the GCC tree.
  38030. +all_selected_languages=
  38031. +
  38032. +# Add the language fragments.
  38033. +# Languages are added via two mechanisms. Some information must be
  38034. +# recorded in makefile variables, these are defined in config-lang.in.
  38035. +# We accumulate them and plug them into the main Makefile.
  38036. +# The other mechanism is a set of hooks for each of the main targets
  38037. +# like `clean', `install', etc.
  38038. +
  38039. +language_hooks="Make-hooks"
  38040. +
  38041. +for lang in ${srcdir}/*/config-lang.in
  38042. +do
  38043. + test "$lang" = "${srcdir}/*/config-lang.in" && continue
  38044. +
  38045. + lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
  38046. + if test "x$lang_alias" = x
  38047. + then
  38048. + echo "$lang doesn't set \$language." 1>&2
  38049. + exit 1
  38050. + fi
  38051. + subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
  38052. + subdirs="$subdirs $subdir"
  38053. +
  38054. + # $gcc_subdir is where the gcc integration files are to be found
  38055. + # for a language, both for internal compiler purposes (compiler
  38056. + # sources implementing front-end to GCC tree converters), and for
  38057. + # build infrastructure purposes (Make-lang.in, etc.)
  38058. + #
  38059. + # This will be <subdir> (relative to $srcdir) if a line like
  38060. + # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
  38061. + # is found in <langdir>/config-lang.in, and will remain <langdir>
  38062. + # otherwise.
  38063. + #
  38064. + # Except for the language alias (fetched above), the regular
  38065. + # "config-lang.in" contents are always retrieved from $gcc_subdir,
  38066. + # so a <langdir>/config-lang.in setting gcc_subdir typically sets
  38067. + # only this and the language alias.
  38068. +
  38069. + gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
  38070. + if [ "$gcc_subdir" = "" ]; then
  38071. + gcc_subdir="$subdir"
  38072. + fi
  38073. +
  38074. + case ",$enable_languages," in
  38075. + *,$lang_alias,*)
  38076. + all_selected_languages="$all_selected_languages $lang_alias"
  38077. + if test -f $srcdir/$gcc_subdir/lang-specs.h; then
  38078. + lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
  38079. + fi
  38080. + ;;
  38081. + esac
  38082. +
  38083. + language=
  38084. + boot_language=
  38085. + compilers=
  38086. + outputs=
  38087. + gtfiles=
  38088. + subdir_requires=
  38089. + . ${srcdir}/$gcc_subdir/config-lang.in
  38090. + if test "x$language" = x
  38091. + then
  38092. + echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
  38093. + exit 1
  38094. + fi
  38095. +
  38096. + ok=:
  38097. + case ",$enable_languages," in
  38098. + *,$lang_alias,*) ;;
  38099. + *)
  38100. + for i in $subdir_requires; do
  38101. + test -f "${srcdir}/$i/config-lang.in" && continue
  38102. + ok=false
  38103. + break
  38104. + done
  38105. + ;;
  38106. + esac
  38107. + $ok || continue
  38108. +
  38109. + all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
  38110. + if test -f $srcdir/$gcc_subdir/lang.opt; then
  38111. + lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
  38112. + all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
  38113. + fi
  38114. + if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
  38115. + lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
  38116. + fi
  38117. + all_languages="$all_languages $language"
  38118. + all_compilers="$all_compilers $compilers"
  38119. + all_outputs="$all_outputs $outputs"
  38120. + all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
  38121. + case ",$enable_languages," in
  38122. + *,lto,*)
  38123. +
  38124. +$as_echo "#define ENABLE_LTO 1" >>confdefs.h
  38125. +
  38126. + enable_lto=yes
  38127. +
  38128. + ;;
  38129. + *) ;;
  38130. + esac
  38131. +done
  38132. +
  38133. +check_languages=
  38134. +for language in $all_selected_languages
  38135. +do
  38136. + check_languages="$check_languages check-$language"
  38137. +done
  38138. +
  38139. +# We link each language in with a set of hooks, reached indirectly via
  38140. +# lang.${target}. Only do so for selected languages.
  38141. +
  38142. +rm -f Make-hooks
  38143. +touch Make-hooks
  38144. +target_list="all.cross start.encap rest.encap tags \
  38145. + install-common install-man install-info install-pdf install-html dvi \
  38146. + pdf html uninstall info man srcextra srcman srcinfo \
  38147. + mostlyclean clean distclean maintainer-clean install-plugin"
  38148. +
  38149. +for t in $target_list
  38150. +do
  38151. + x=
  38152. + for lang in $all_selected_languages
  38153. + do
  38154. + x="$x $lang.$t"
  38155. + done
  38156. + echo "lang.$t: $x" >> Make-hooks
  38157. +done
  38158. +
  38159. +# --------
  38160. +# Option include files
  38161. +# --------
  38162. +
  38163. +${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
  38164. +option_includes="option-includes.mk"
  38165. +
  38166. +
  38167. +# --------
  38168. +# UNSORTED
  38169. +# --------
  38170. +
  38171. +# Create .gdbinit.
  38172. +
  38173. +echo "dir ." > .gdbinit
  38174. +echo "dir ${srcdir}" >> .gdbinit
  38175. +if test x$gdb_needs_out_file_path = xyes
  38176. +then
  38177. + echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
  38178. +fi
  38179. +if test "x$subdirs" != x; then
  38180. + for s in $subdirs
  38181. + do
  38182. + echo "dir ${srcdir}/$s" >> .gdbinit
  38183. + done
  38184. +fi
  38185. +echo "source ${srcdir}/gdbinit.in" >> .gdbinit
  38186. +echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
  38187. +
  38188. +# Put a breakpoint on __asan_report_error to help with debugging buffer
  38189. +# overflow.
  38190. +case "$CFLAGS" in
  38191. +*-fsanitize=address*)
  38192. + echo "source ${srcdir}/gdbasan.in" >> .gdbinit
  38193. + ;;
  38194. +esac
  38195. +
  38196. +gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
  38197. +
  38198. +
  38199. +
  38200. +# Find a directory in which to install a shared libgcc.
  38201. +
  38202. +# Check whether --enable-version-specific-runtime-libs was given.
  38203. +if test "${enable_version_specific_runtime_libs+set}" = set; then :
  38204. + enableval=$enable_version_specific_runtime_libs;
  38205. +fi
  38206. +
  38207. +
  38208. +# Substitute configuration variables
  38209. +
  38210. +
  38211. +
  38212. +
  38213. +
  38214. +
  38215. +
  38216. +
  38217. +
  38218. +
  38219. +
  38220. +
  38221. +
  38222. +
  38223. +
  38224. +
  38225. +
  38226. +
  38227. +
  38228. +
  38229. +
  38230. +
  38231. +
  38232. +
  38233. +
  38234. +
  38235. +
  38236. +
  38237. +
  38238. +
  38239. +
  38240. +
  38241. +
  38242. +
  38243. +
  38244. +
  38245. +
  38246. +
  38247. +
  38248. +
  38249. +
  38250. +
  38251. +
  38252. +
  38253. +
  38254. +
  38255. +
  38256. +
  38257. +
  38258. +
  38259. +
  38260. +
  38261. +
  38262. +
  38263. +
  38264. +
  38265. +
  38266. +
  38267. +
  38268. +
  38269. +
  38270. +
  38271. +# Echo link setup.
  38272. +if test x${build} = x${host} ; then
  38273. + if test x${host} = x${target} ; then
  38274. + echo "Links are now set up to build a native compiler for ${target}." 1>&2
  38275. + else
  38276. + echo "Links are now set up to build a cross-compiler" 1>&2
  38277. + echo " from ${host} to ${target}." 1>&2
  38278. + fi
  38279. +else
  38280. + if test x${host} = x${target} ; then
  38281. + echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
  38282. + echo " for ${target}." 1>&2
  38283. + else
  38284. + echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
  38285. + echo " from ${host} to ${target}." 1>&2
  38286. + fi
  38287. +fi
  38288. +
  38289. +
  38290. +
  38291. +
  38292. +
  38293. +
  38294. +
  38295. +
  38296. +
  38297. +if test "x${CLOOGLIBS}" != "x" ; then
  38298. +
  38299. +$as_echo "#define HAVE_cloog 1" >>confdefs.h
  38300. +
  38301. +fi
  38302. +
  38303. +# Check for plugin support
  38304. +# Check whether --enable-plugin was given.
  38305. +if test "${enable_plugin+set}" = set; then :
  38306. + enableval=$enable_plugin; enable_plugin=$enableval
  38307. +else
  38308. + enable_plugin=yes; default_plugin=yes
  38309. +fi
  38310. +
  38311. +
  38312. +pluginlibs=
  38313. +
  38314. +case "${host}" in
  38315. + *-*-darwin*)
  38316. + if test x$build = x$host; then
  38317. + export_sym_check="nm${exeext} -g"
  38318. + elif test x$host = x$target; then
  38319. + export_sym_check="$gcc_cv_nm -g"
  38320. + else
  38321. + export_sym_check=
  38322. + fi
  38323. + ;;
  38324. + *)
  38325. + if test x$build = x$host; then
  38326. + export_sym_check="objdump${exeext} -T"
  38327. + elif test x$host = x$target; then
  38328. + export_sym_check="$gcc_cv_objdump -T"
  38329. + else
  38330. + export_sym_check=
  38331. + fi
  38332. + ;;
  38333. +esac
  38334. +
  38335. +if test x"$enable_plugin" = x"yes"; then
  38336. +
  38337. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
  38338. +$as_echo_n "checking for exported symbols... " >&6; }
  38339. + if test "x$export_sym_check" != x; then
  38340. + echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
  38341. + ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
  38342. + if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
  38343. + : # No need to use a flag
  38344. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38345. +$as_echo "yes" >&6; }
  38346. + else
  38347. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38348. +$as_echo "yes" >&6; }
  38349. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
  38350. +$as_echo_n "checking for -rdynamic... " >&6; }
  38351. + ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
  38352. + if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
  38353. + plugin_rdynamic=yes
  38354. + pluginlibs="-rdynamic"
  38355. + else
  38356. + plugin_rdynamic=no
  38357. + enable_plugin=no
  38358. + fi
  38359. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
  38360. +$as_echo "$plugin_rdynamic" >&6; }
  38361. + fi
  38362. + else
  38363. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
  38364. +$as_echo "unable to check" >&6; }
  38365. + fi
  38366. +
  38367. + # Check -ldl
  38368. + saved_LIBS="$LIBS"
  38369. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  38370. +$as_echo_n "checking for library containing dlopen... " >&6; }
  38371. +if test "${ac_cv_search_dlopen+set}" = set; then :
  38372. + $as_echo_n "(cached) " >&6
  38373. +else
  38374. + ac_func_search_save_LIBS=$LIBS
  38375. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38376. +/* end confdefs.h. */
  38377. +
  38378. +/* Override any GCC internal prototype to avoid an error.
  38379. + Use char because int might match the return type of a GCC
  38380. + builtin and then its argument prototype would still apply. */
  38381. +#ifdef __cplusplus
  38382. +extern "C"
  38383. +#endif
  38384. +char dlopen ();
  38385. +int
  38386. +main ()
  38387. +{
  38388. +return dlopen ();
  38389. + ;
  38390. + return 0;
  38391. +}
  38392. +_ACEOF
  38393. +for ac_lib in '' dl; do
  38394. + if test -z "$ac_lib"; then
  38395. + ac_res="none required"
  38396. + else
  38397. + ac_res=-l$ac_lib
  38398. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  38399. + fi
  38400. + if ac_fn_c_try_link "$LINENO"; then :
  38401. + ac_cv_search_dlopen=$ac_res
  38402. +fi
  38403. +rm -f core conftest.err conftest.$ac_objext \
  38404. + conftest$ac_exeext
  38405. + if test "${ac_cv_search_dlopen+set}" = set; then :
  38406. + break
  38407. +fi
  38408. +done
  38409. +if test "${ac_cv_search_dlopen+set}" = set; then :
  38410. +
  38411. +else
  38412. + ac_cv_search_dlopen=no
  38413. +fi
  38414. +rm conftest.$ac_ext
  38415. +LIBS=$ac_func_search_save_LIBS
  38416. +fi
  38417. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  38418. +$as_echo "$ac_cv_search_dlopen" >&6; }
  38419. +ac_res=$ac_cv_search_dlopen
  38420. +if test "$ac_res" != no; then :
  38421. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  38422. +
  38423. +fi
  38424. +
  38425. + if test x"$ac_cv_search_dlopen" = x"-ldl"; then
  38426. + pluginlibs="$pluginlibs -ldl"
  38427. + fi
  38428. + LIBS="$saved_LIBS"
  38429. +
  38430. + # Check that we can build shared objects with -fPIC -shared
  38431. + saved_LDFLAGS="$LDFLAGS"
  38432. + saved_CFLAGS="$CFLAGS"
  38433. + case "${host}" in
  38434. + *-*-darwin*)
  38435. + CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
  38436. + CFLAGS="$CFLAGS -fPIC"
  38437. + LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
  38438. + ;;
  38439. + *)
  38440. + CFLAGS="$CFLAGS -fPIC"
  38441. + LDFLAGS="$LDFLAGS -fPIC -shared"
  38442. + ;;
  38443. + esac
  38444. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
  38445. +$as_echo_n "checking for -fPIC -shared... " >&6; }
  38446. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38447. +/* end confdefs.h. */
  38448. +extern int X;
  38449. +int
  38450. +main ()
  38451. +{
  38452. +return X == 0;
  38453. + ;
  38454. + return 0;
  38455. +}
  38456. +_ACEOF
  38457. +if ac_fn_c_try_link "$LINENO"; then :
  38458. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38459. +$as_echo "yes" >&6; }; have_pic_shared=yes
  38460. +else
  38461. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38462. +$as_echo "no" >&6; }; have_pic_shared=no
  38463. +fi
  38464. +rm -f core conftest.err conftest.$ac_objext \
  38465. + conftest$ac_exeext conftest.$ac_ext
  38466. + if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
  38467. + pluginlibs=
  38468. + enable_plugin=no
  38469. + fi
  38470. + LDFLAGS="$saved_LDFLAGS"
  38471. + CFLAGS="$saved_CFLAGS"
  38472. +
  38473. + # If plugin support had been requested but not available, fail.
  38474. + if test x"$enable_plugin" = x"no" ; then
  38475. + if test x"$default_plugin" != x"yes"; then
  38476. + as_fn_error "
  38477. +Building GCC with plugin support requires a host that supports
  38478. +-fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
  38479. + fi
  38480. + fi
  38481. +fi
  38482. +
  38483. +
  38484. +
  38485. +if test x"$enable_plugin" = x"yes"; then
  38486. +
  38487. +$as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
  38488. +
  38489. +fi
  38490. +
  38491. +
  38492. +# Enable --enable-host-shared
  38493. +# Check whether --enable-host-shared was given.
  38494. +if test "${enable_host_shared+set}" = set; then :
  38495. + enableval=$enable_host_shared; PICFLAG=-fPIC
  38496. +else
  38497. + PICFLAG=
  38498. +fi
  38499. +
  38500. +
  38501. +
  38502. +
  38503. +
  38504. +# Check whether --enable-libquadmath-support was given.
  38505. +if test "${enable_libquadmath_support+set}" = set; then :
  38506. + enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
  38507. +else
  38508. + ENABLE_LIBQUADMATH_SUPPORT=yes
  38509. +fi
  38510. +
  38511. +if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
  38512. +
  38513. +$as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
  38514. +
  38515. +fi
  38516. +
  38517. +
  38518. +# Specify what hash style to use by default.
  38519. +
  38520. +# Check whether --with-linker-hash-style was given.
  38521. +if test "${with_linker_hash_style+set}" = set; then :
  38522. + withval=$with_linker_hash_style; case x"$withval" in
  38523. + xsysv)
  38524. + LINKER_HASH_STYLE=sysv
  38525. + ;;
  38526. + xgnu)
  38527. + LINKER_HASH_STYLE=gnu
  38528. + ;;
  38529. + xboth)
  38530. + LINKER_HASH_STYLE=both
  38531. + ;;
  38532. + *)
  38533. + as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
  38534. + ;;
  38535. + esac
  38536. +else
  38537. + LINKER_HASH_STYLE=''
  38538. +fi
  38539. +
  38540. +if test x"${LINKER_HASH_STYLE}" != x; then
  38541. +
  38542. +cat >>confdefs.h <<_ACEOF
  38543. +#define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
  38544. +_ACEOF
  38545. +
  38546. +fi
  38547. +
  38548. +# Configure the subdirectories
  38549. +# AC_CONFIG_SUBDIRS($subdirs)
  38550. +
  38551. +# Create the Makefile
  38552. +# and configure language subdirectories
  38553. +ac_config_files="$ac_config_files $all_outputs"
  38554. +
  38555. +
  38556. +ac_config_commands="$ac_config_commands default"
  38557. +
  38558. +cat >confcache <<\_ACEOF
  38559. +# This file is a shell script that caches the results of configure
  38560. +# tests run on this system so they can be shared between configure
  38561. +# scripts and configure runs, see configure's option --config-cache.
  38562. +# It is not useful on other systems. If it contains results you don't
  38563. +# want to keep, you may remove or edit it.
  38564. +#
  38565. +# config.status only pays attention to the cache file if you give it
  38566. +# the --recheck option to rerun configure.
  38567. +#
  38568. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  38569. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  38570. +# following values.
  38571. +
  38572. +_ACEOF
  38573. +
  38574. +# The following way of writing the cache mishandles newlines in values,
  38575. +# but we know of no workaround that is simple, portable, and efficient.
  38576. +# So, we kill variables containing newlines.
  38577. +# Ultrix sh set writes to stderr and can't be redirected directly,
  38578. +# and sets the high bit in the cache file unless we assign to the vars.
  38579. +(
  38580. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  38581. + eval ac_val=\$$ac_var
  38582. + case $ac_val in #(
  38583. + *${as_nl}*)
  38584. + case $ac_var in #(
  38585. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  38586. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  38587. + esac
  38588. + case $ac_var in #(
  38589. + _ | IFS | as_nl) ;; #(
  38590. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  38591. + *) { eval $ac_var=; unset $ac_var;} ;;
  38592. + esac ;;
  38593. + esac
  38594. + done
  38595. +
  38596. + (set) 2>&1 |
  38597. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  38598. + *${as_nl}ac_space=\ *)
  38599. + # `set' does not quote correctly, so add quotes: double-quote
  38600. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  38601. + sed -n \
  38602. + "s/'/'\\\\''/g;
  38603. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  38604. + ;; #(
  38605. + *)
  38606. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  38607. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  38608. + ;;
  38609. + esac |
  38610. + sort
  38611. +) |
  38612. + sed '
  38613. + /^ac_cv_env_/b end
  38614. + t clear
  38615. + :clear
  38616. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  38617. + t end
  38618. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  38619. + :end' >>confcache
  38620. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  38621. + if test -w "$cache_file"; then
  38622. + test "x$cache_file" != "x/dev/null" &&
  38623. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  38624. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  38625. + cat confcache >$cache_file
  38626. + else
  38627. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  38628. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  38629. + fi
  38630. +fi
  38631. +rm -f confcache
  38632. +
  38633. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  38634. +# Let make expand exec_prefix.
  38635. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  38636. +
  38637. +DEFS=-DHAVE_CONFIG_H
  38638. +
  38639. +ac_libobjs=
  38640. +ac_ltlibobjs=
  38641. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  38642. + # 1. Remove the extension, and $U if already installed.
  38643. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  38644. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  38645. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  38646. + # will be set to the directory where LIBOBJS objects are built.
  38647. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  38648. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  38649. +done
  38650. +LIBOBJS=$ac_libobjs
  38651. +
  38652. +LTLIBOBJS=$ac_ltlibobjs
  38653. +
  38654. +
  38655. +
  38656. +
  38657. +: ${CONFIG_STATUS=./config.status}
  38658. +ac_write_fail=0
  38659. +ac_clean_files_save=$ac_clean_files
  38660. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  38661. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  38662. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  38663. +as_write_fail=0
  38664. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  38665. +#! $SHELL
  38666. +# Generated by $as_me.
  38667. +# Run this file to recreate the current configuration.
  38668. +# Compiler output produced by configure, useful for debugging
  38669. +# configure, is in config.log if it exists.
  38670. +
  38671. +debug=false
  38672. +ac_cs_recheck=false
  38673. +ac_cs_silent=false
  38674. +
  38675. +SHELL=\${CONFIG_SHELL-$SHELL}
  38676. +export SHELL
  38677. +_ASEOF
  38678. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  38679. +## -------------------- ##
  38680. +## M4sh Initialization. ##
  38681. +## -------------------- ##
  38682. +
  38683. +# Be more Bourne compatible
  38684. +DUALCASE=1; export DUALCASE # for MKS sh
  38685. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  38686. + emulate sh
  38687. + NULLCMD=:
  38688. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  38689. + # is contrary to our usage. Disable this feature.
  38690. + alias -g '${1+"$@"}'='"$@"'
  38691. + setopt NO_GLOB_SUBST
  38692. +else
  38693. + case `(set -o) 2>/dev/null` in #(
  38694. + *posix*) :
  38695. + set -o posix ;; #(
  38696. + *) :
  38697. + ;;
  38698. +esac
  38699. +fi
  38700. +
  38701. +
  38702. +as_nl='
  38703. +'
  38704. +export as_nl
  38705. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  38706. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38707. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  38708. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38709. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  38710. +# but without wasting forks for bash or zsh.
  38711. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  38712. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  38713. + as_echo='print -r --'
  38714. + as_echo_n='print -rn --'
  38715. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  38716. + as_echo='printf %s\n'
  38717. + as_echo_n='printf %s'
  38718. +else
  38719. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  38720. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  38721. + as_echo_n='/usr/ucb/echo -n'
  38722. + else
  38723. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  38724. + as_echo_n_body='eval
  38725. + arg=$1;
  38726. + case $arg in #(
  38727. + *"$as_nl"*)
  38728. + expr "X$arg" : "X\\(.*\\)$as_nl";
  38729. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  38730. + esac;
  38731. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  38732. + '
  38733. + export as_echo_n_body
  38734. + as_echo_n='sh -c $as_echo_n_body as_echo'
  38735. + fi
  38736. + export as_echo_body
  38737. + as_echo='sh -c $as_echo_body as_echo'
  38738. +fi
  38739. +
  38740. +# The user is always right.
  38741. +if test "${PATH_SEPARATOR+set}" != set; then
  38742. + PATH_SEPARATOR=:
  38743. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  38744. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  38745. + PATH_SEPARATOR=';'
  38746. + }
  38747. +fi
  38748. +
  38749. +
  38750. +# IFS
  38751. +# We need space, tab and new line, in precisely that order. Quoting is
  38752. +# there to prevent editors from complaining about space-tab.
  38753. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  38754. +# splitting by setting IFS to empty value.)
  38755. +IFS=" "" $as_nl"
  38756. +
  38757. +# Find who we are. Look in the path if we contain no directory separator.
  38758. +case $0 in #((
  38759. + *[\\/]* ) as_myself=$0 ;;
  38760. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  38761. +for as_dir in $PATH
  38762. +do
  38763. + IFS=$as_save_IFS
  38764. + test -z "$as_dir" && as_dir=.
  38765. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  38766. + done
  38767. +IFS=$as_save_IFS
  38768. +
  38769. + ;;
  38770. +esac
  38771. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  38772. +# in which case we are not to be found in the path.
  38773. +if test "x$as_myself" = x; then
  38774. + as_myself=$0
  38775. +fi
  38776. +if test ! -f "$as_myself"; then
  38777. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  38778. + exit 1
  38779. +fi
  38780. +
  38781. +# Unset variables that we do not need and which cause bugs (e.g. in
  38782. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  38783. +# suppresses any "Segmentation fault" message there. '((' could
  38784. +# trigger a bug in pdksh 5.2.14.
  38785. +for as_var in BASH_ENV ENV MAIL MAILPATH
  38786. +do eval test x\${$as_var+set} = xset \
  38787. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  38788. +done
  38789. +PS1='$ '
  38790. +PS2='> '
  38791. +PS4='+ '
  38792. +
  38793. +# NLS nuisances.
  38794. +LC_ALL=C
  38795. +export LC_ALL
  38796. +LANGUAGE=C
  38797. +export LANGUAGE
  38798. +
  38799. +# CDPATH.
  38800. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  38801. +
  38802. +
  38803. +# as_fn_error ERROR [LINENO LOG_FD]
  38804. +# ---------------------------------
  38805. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  38806. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  38807. +# script with status $?, using 1 if that was 0.
  38808. +as_fn_error ()
  38809. +{
  38810. + as_status=$?; test $as_status -eq 0 && as_status=1
  38811. + if test "$3"; then
  38812. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  38813. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  38814. + fi
  38815. + $as_echo "$as_me: error: $1" >&2
  38816. + as_fn_exit $as_status
  38817. +} # as_fn_error
  38818. +
  38819. +
  38820. +# as_fn_set_status STATUS
  38821. +# -----------------------
  38822. +# Set $? to STATUS, without forking.
  38823. +as_fn_set_status ()
  38824. +{
  38825. + return $1
  38826. +} # as_fn_set_status
  38827. +
  38828. +# as_fn_exit STATUS
  38829. +# -----------------
  38830. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  38831. +as_fn_exit ()
  38832. +{
  38833. + set +e
  38834. + as_fn_set_status $1
  38835. + exit $1
  38836. +} # as_fn_exit
  38837. +
  38838. +# as_fn_unset VAR
  38839. +# ---------------
  38840. +# Portably unset VAR.
  38841. +as_fn_unset ()
  38842. +{
  38843. + { eval $1=; unset $1;}
  38844. +}
  38845. +as_unset=as_fn_unset
  38846. +# as_fn_append VAR VALUE
  38847. +# ----------------------
  38848. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  38849. +# advantage of any shell optimizations that allow amortized linear growth over
  38850. +# repeated appends, instead of the typical quadratic growth present in naive
  38851. +# implementations.
  38852. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  38853. + eval 'as_fn_append ()
  38854. + {
  38855. + eval $1+=\$2
  38856. + }'
  38857. +else
  38858. + as_fn_append ()
  38859. + {
  38860. + eval $1=\$$1\$2
  38861. + }
  38862. +fi # as_fn_append
  38863. +
  38864. +# as_fn_arith ARG...
  38865. +# ------------------
  38866. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  38867. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  38868. +# must be portable across $(()) and expr.
  38869. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  38870. + eval 'as_fn_arith ()
  38871. + {
  38872. + as_val=$(( $* ))
  38873. + }'
  38874. +else
  38875. + as_fn_arith ()
  38876. + {
  38877. + as_val=`expr "$@" || test $? -eq 1`
  38878. + }
  38879. +fi # as_fn_arith
  38880. +
  38881. +
  38882. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  38883. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  38884. + as_expr=expr
  38885. +else
  38886. + as_expr=false
  38887. +fi
  38888. +
  38889. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  38890. + as_basename=basename
  38891. +else
  38892. + as_basename=false
  38893. +fi
  38894. +
  38895. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  38896. + as_dirname=dirname
  38897. +else
  38898. + as_dirname=false
  38899. +fi
  38900. +
  38901. +as_me=`$as_basename -- "$0" ||
  38902. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  38903. + X"$0" : 'X\(//\)$' \| \
  38904. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  38905. +$as_echo X/"$0" |
  38906. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  38907. + s//\1/
  38908. + q
  38909. + }
  38910. + /^X\/\(\/\/\)$/{
  38911. + s//\1/
  38912. + q
  38913. + }
  38914. + /^X\/\(\/\).*/{
  38915. + s//\1/
  38916. + q
  38917. + }
  38918. + s/.*/./; q'`
  38919. +
  38920. +# Avoid depending upon Character Ranges.
  38921. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  38922. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  38923. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  38924. +as_cr_digits='0123456789'
  38925. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  38926. +
  38927. +ECHO_C= ECHO_N= ECHO_T=
  38928. +case `echo -n x` in #(((((
  38929. +-n*)
  38930. + case `echo 'xy\c'` in
  38931. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  38932. + xy) ECHO_C='\c';;
  38933. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  38934. + ECHO_T=' ';;
  38935. + esac;;
  38936. +*)
  38937. + ECHO_N='-n';;
  38938. +esac
  38939. +
  38940. +rm -f conf$$ conf$$.exe conf$$.file
  38941. +if test -d conf$$.dir; then
  38942. + rm -f conf$$.dir/conf$$.file
  38943. +else
  38944. + rm -f conf$$.dir
  38945. + mkdir conf$$.dir 2>/dev/null
  38946. +fi
  38947. +if (echo >conf$$.file) 2>/dev/null; then
  38948. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  38949. + as_ln_s='ln -s'
  38950. + # ... but there are two gotchas:
  38951. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  38952. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  38953. + # In both cases, we have to default to `cp -p'.
  38954. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  38955. + as_ln_s='cp -p'
  38956. + elif ln conf$$.file conf$$ 2>/dev/null; then
  38957. + as_ln_s=ln
  38958. + else
  38959. + as_ln_s='cp -p'
  38960. + fi
  38961. +else
  38962. + as_ln_s='cp -p'
  38963. +fi
  38964. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  38965. +rmdir conf$$.dir 2>/dev/null
  38966. +
  38967. +
  38968. +# as_fn_mkdir_p
  38969. +# -------------
  38970. +# Create "$as_dir" as a directory, including parents if necessary.
  38971. +as_fn_mkdir_p ()
  38972. +{
  38973. +
  38974. + case $as_dir in #(
  38975. + -*) as_dir=./$as_dir;;
  38976. + esac
  38977. + test -d "$as_dir" || eval $as_mkdir_p || {
  38978. + as_dirs=
  38979. + while :; do
  38980. + case $as_dir in #(
  38981. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  38982. + *) as_qdir=$as_dir;;
  38983. + esac
  38984. + as_dirs="'$as_qdir' $as_dirs"
  38985. + as_dir=`$as_dirname -- "$as_dir" ||
  38986. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  38987. + X"$as_dir" : 'X\(//\)[^/]' \| \
  38988. + X"$as_dir" : 'X\(//\)$' \| \
  38989. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  38990. +$as_echo X"$as_dir" |
  38991. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  38992. + s//\1/
  38993. + q
  38994. + }
  38995. + /^X\(\/\/\)[^/].*/{
  38996. + s//\1/
  38997. + q
  38998. + }
  38999. + /^X\(\/\/\)$/{
  39000. + s//\1/
  39001. + q
  39002. + }
  39003. + /^X\(\/\).*/{
  39004. + s//\1/
  39005. + q
  39006. + }
  39007. + s/.*/./; q'`
  39008. + test -d "$as_dir" && break
  39009. + done
  39010. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  39011. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  39012. +
  39013. +
  39014. +} # as_fn_mkdir_p
  39015. +if mkdir -p . 2>/dev/null; then
  39016. + as_mkdir_p='mkdir -p "$as_dir"'
  39017. +else
  39018. + test -d ./-p && rmdir ./-p
  39019. + as_mkdir_p=false
  39020. +fi
  39021. +
  39022. +if test -x / >/dev/null 2>&1; then
  39023. + as_test_x='test -x'
  39024. +else
  39025. + if ls -dL / >/dev/null 2>&1; then
  39026. + as_ls_L_option=L
  39027. + else
  39028. + as_ls_L_option=
  39029. + fi
  39030. + as_test_x='
  39031. + eval sh -c '\''
  39032. + if test -d "$1"; then
  39033. + test -d "$1/.";
  39034. + else
  39035. + case $1 in #(
  39036. + -*)set "./$1";;
  39037. + esac;
  39038. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  39039. + ???[sx]*):;;*)false;;esac;fi
  39040. + '\'' sh
  39041. + '
  39042. +fi
  39043. +as_executable_p=$as_test_x
  39044. +
  39045. +# Sed expression to map a string onto a valid CPP name.
  39046. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  39047. +
  39048. +# Sed expression to map a string onto a valid variable name.
  39049. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  39050. +
  39051. +
  39052. +exec 6>&1
  39053. +## ----------------------------------- ##
  39054. +## Main body of $CONFIG_STATUS script. ##
  39055. +## ----------------------------------- ##
  39056. +_ASEOF
  39057. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  39058. +
  39059. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39060. +# Save the log message, to keep $0 and so on meaningful, and to
  39061. +# report actual input values of CONFIG_FILES etc. instead of their
  39062. +# values after options handling.
  39063. +ac_log="
  39064. +This file was extended by $as_me, which was
  39065. +generated by GNU Autoconf 2.64. Invocation command line was
  39066. +
  39067. + CONFIG_FILES = $CONFIG_FILES
  39068. + CONFIG_HEADERS = $CONFIG_HEADERS
  39069. + CONFIG_LINKS = $CONFIG_LINKS
  39070. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  39071. + $ $0 $@
  39072. +
  39073. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  39074. +"
  39075. +
  39076. +_ACEOF
  39077. +
  39078. +case $ac_config_files in *"
  39079. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  39080. +esac
  39081. +
  39082. +case $ac_config_headers in *"
  39083. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  39084. +esac
  39085. +
  39086. +
  39087. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39088. +# Files that config.status was made for.
  39089. +config_files="$ac_config_files"
  39090. +config_headers="$ac_config_headers"
  39091. +config_links="$ac_config_links"
  39092. +config_commands="$ac_config_commands"
  39093. +
  39094. +_ACEOF
  39095. +
  39096. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39097. +ac_cs_usage="\
  39098. +\`$as_me' instantiates files and other configuration actions
  39099. +from templates according to the current configuration. Unless the files
  39100. +and actions are specified as TAGs, all are instantiated by default.
  39101. +
  39102. +Usage: $0 [OPTION]... [TAG]...
  39103. +
  39104. + -h, --help print this help, then exit
  39105. + -V, --version print version number and configuration settings, then exit
  39106. + -q, --quiet, --silent
  39107. + do not print progress messages
  39108. + -d, --debug don't remove temporary files
  39109. + --recheck update $as_me by reconfiguring in the same conditions
  39110. + --file=FILE[:TEMPLATE]
  39111. + instantiate the configuration file FILE
  39112. + --header=FILE[:TEMPLATE]
  39113. + instantiate the configuration header FILE
  39114. +
  39115. +Configuration files:
  39116. +$config_files
  39117. +
  39118. +Configuration headers:
  39119. +$config_headers
  39120. +
  39121. +Configuration links:
  39122. +$config_links
  39123. +
  39124. +Configuration commands:
  39125. +$config_commands
  39126. +
  39127. +Report bugs to the package provider."
  39128. +
  39129. +_ACEOF
  39130. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39131. +ac_cs_version="\\
  39132. +config.status
  39133. +configured by $0, generated by GNU Autoconf 2.64,
  39134. + with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  39135. +
  39136. +Copyright (C) 2009 Free Software Foundation, Inc.
  39137. +This config.status script is free software; the Free Software Foundation
  39138. +gives unlimited permission to copy, distribute and modify it."
  39139. +
  39140. +ac_pwd='$ac_pwd'
  39141. +srcdir='$srcdir'
  39142. +AWK='$AWK'
  39143. +test -n "\$AWK" || AWK=awk
  39144. +_ACEOF
  39145. +
  39146. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39147. +# The default lists apply if the user does not specify any file.
  39148. +ac_need_defaults=:
  39149. +while test $# != 0
  39150. +do
  39151. + case $1 in
  39152. + --*=*)
  39153. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  39154. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  39155. + ac_shift=:
  39156. + ;;
  39157. + *)
  39158. + ac_option=$1
  39159. + ac_optarg=$2
  39160. + ac_shift=shift
  39161. + ;;
  39162. + esac
  39163. +
  39164. + case $ac_option in
  39165. + # Handling of the options.
  39166. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  39167. + ac_cs_recheck=: ;;
  39168. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  39169. + $as_echo "$ac_cs_version"; exit ;;
  39170. + --debug | --debu | --deb | --de | --d | -d )
  39171. + debug=: ;;
  39172. + --file | --fil | --fi | --f )
  39173. + $ac_shift
  39174. + case $ac_optarg in
  39175. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  39176. + esac
  39177. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  39178. + ac_need_defaults=false;;
  39179. + --header | --heade | --head | --hea )
  39180. + $ac_shift
  39181. + case $ac_optarg in
  39182. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  39183. + esac
  39184. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  39185. + ac_need_defaults=false;;
  39186. + --he | --h)
  39187. + # Conflict between --help and --header
  39188. + as_fn_error "ambiguous option: \`$1'
  39189. +Try \`$0 --help' for more information.";;
  39190. + --help | --hel | -h )
  39191. + $as_echo "$ac_cs_usage"; exit ;;
  39192. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  39193. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  39194. + ac_cs_silent=: ;;
  39195. +
  39196. + # This is an error.
  39197. + -*) as_fn_error "unrecognized option: \`$1'
  39198. +Try \`$0 --help' for more information." ;;
  39199. +
  39200. + *) as_fn_append ac_config_targets " $1"
  39201. + ac_need_defaults=false ;;
  39202. +
  39203. + esac
  39204. + shift
  39205. +done
  39206. +
  39207. +ac_configure_extra_args=
  39208. +
  39209. +if $ac_cs_silent; then
  39210. + exec 6>/dev/null
  39211. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  39212. +fi
  39213. +
  39214. +_ACEOF
  39215. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39216. +if \$ac_cs_recheck; then
  39217. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  39218. + shift
  39219. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  39220. + CONFIG_SHELL='$SHELL'
  39221. + export CONFIG_SHELL
  39222. + exec "\$@"
  39223. +fi
  39224. +
  39225. +_ACEOF
  39226. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39227. +exec 5>>config.log
  39228. +{
  39229. + echo
  39230. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  39231. +## Running $as_me. ##
  39232. +_ASBOX
  39233. + $as_echo "$ac_log"
  39234. +} >&5
  39235. +
  39236. +_ACEOF
  39237. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39238. +#
  39239. +# INIT-COMMANDS
  39240. +#
  39241. +ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  39242. +subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  39243. +subdirs='$subdirs'
  39244. +
  39245. +_ACEOF
  39246. +
  39247. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39248. +
  39249. +# Handling of arguments.
  39250. +for ac_config_target in $ac_config_targets
  39251. +do
  39252. + case $ac_config_target in
  39253. + "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
  39254. + "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
  39255. + "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
  39256. + "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
  39257. + "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
  39258. + "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
  39259. + "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
  39260. + "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
  39261. + "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  39262. +
  39263. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  39264. + esac
  39265. +done
  39266. +
  39267. +
  39268. +# If the user did not use the arguments to specify the items to instantiate,
  39269. +# then the envvar interface is used. Set only those that are not.
  39270. +# We use the long form for the default assignment because of an extremely
  39271. +# bizarre bug on SunOS 4.1.3.
  39272. +if $ac_need_defaults; then
  39273. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  39274. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  39275. + test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  39276. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  39277. +fi
  39278. +
  39279. +# Have a temporary directory for convenience. Make it in the build tree
  39280. +# simply because there is no reason against having it here, and in addition,
  39281. +# creating and moving files from /tmp can sometimes cause problems.
  39282. +# Hook for its removal unless debugging.
  39283. +# Note that there is a small window in which the directory will not be cleaned:
  39284. +# after its creation but before its name has been assigned to `$tmp'.
  39285. +$debug ||
  39286. +{
  39287. + tmp=
  39288. + trap 'exit_status=$?
  39289. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  39290. +' 0
  39291. + trap 'as_fn_exit 1' 1 2 13 15
  39292. +}
  39293. +# Create a (secure) tmp directory for tmp files.
  39294. +
  39295. +{
  39296. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  39297. + test -n "$tmp" && test -d "$tmp"
  39298. +} ||
  39299. +{
  39300. + tmp=./conf$$-$RANDOM
  39301. + (umask 077 && mkdir "$tmp")
  39302. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  39303. +
  39304. +# Set up the scripts for CONFIG_FILES section.
  39305. +# No need to generate them if there are no CONFIG_FILES.
  39306. +# This happens for instance with `./config.status config.h'.
  39307. +if test -n "$CONFIG_FILES"; then
  39308. +
  39309. +if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  39310. + ac_cs_awk_getline=:
  39311. + ac_cs_awk_pipe_init=
  39312. + ac_cs_awk_read_file='
  39313. + while ((getline aline < (F[key])) > 0)
  39314. + print(aline)
  39315. + close(F[key])'
  39316. + ac_cs_awk_pipe_fini=
  39317. +else
  39318. + ac_cs_awk_getline=false
  39319. + ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  39320. + ac_cs_awk_read_file='
  39321. + print "|#_!!_#|"
  39322. + print "cat " F[key] " &&"
  39323. + '$ac_cs_awk_pipe_init
  39324. + # The final `:' finishes the AND list.
  39325. + ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  39326. +fi
  39327. +ac_cr=`echo X | tr X '\015'`
  39328. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  39329. +# But we know of no other shell where ac_cr would be empty at this
  39330. +# point, so we can use a bashism as a fallback.
  39331. +if test "x$ac_cr" = x; then
  39332. + eval ac_cr=\$\'\\r\'
  39333. +fi
  39334. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  39335. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  39336. + ac_cs_awk_cr='\r'
  39337. +else
  39338. + ac_cs_awk_cr=$ac_cr
  39339. +fi
  39340. +
  39341. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  39342. +_ACEOF
  39343. +
  39344. +# Create commands to substitute file output variables.
  39345. +{
  39346. + echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  39347. + echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
  39348. + echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  39349. + echo "_ACAWK" &&
  39350. + echo "_ACEOF"
  39351. +} >conf$$files.sh &&
  39352. +. ./conf$$files.sh ||
  39353. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  39354. +rm -f conf$$files.sh
  39355. +
  39356. +{
  39357. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  39358. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  39359. + echo "_ACEOF"
  39360. +} >conf$$subs.sh ||
  39361. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  39362. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  39363. +ac_delim='%!_!# '
  39364. +for ac_last_try in false false false false false :; do
  39365. + . ./conf$$subs.sh ||
  39366. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  39367. +
  39368. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  39369. + if test $ac_delim_n = $ac_delim_num; then
  39370. + break
  39371. + elif $ac_last_try; then
  39372. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  39373. + else
  39374. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  39375. + fi
  39376. +done
  39377. +rm -f conf$$subs.sh
  39378. +
  39379. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39380. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  39381. +_ACEOF
  39382. +sed -n '
  39383. +h
  39384. +s/^/S["/; s/!.*/"]=/
  39385. +p
  39386. +g
  39387. +s/^[^!]*!//
  39388. +:repl
  39389. +t repl
  39390. +s/'"$ac_delim"'$//
  39391. +t delim
  39392. +:nl
  39393. +h
  39394. +s/\(.\{148\}\).*/\1/
  39395. +t more1
  39396. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  39397. +p
  39398. +n
  39399. +b repl
  39400. +:more1
  39401. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  39402. +p
  39403. +g
  39404. +s/.\{148\}//
  39405. +t nl
  39406. +:delim
  39407. +h
  39408. +s/\(.\{148\}\).*/\1/
  39409. +t more2
  39410. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  39411. +p
  39412. +b
  39413. +:more2
  39414. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  39415. +p
  39416. +g
  39417. +s/.\{148\}//
  39418. +t delim
  39419. +' <conf$$subs.awk | sed '
  39420. +/^[^""]/{
  39421. + N
  39422. + s/\n//
  39423. +}
  39424. +' >>$CONFIG_STATUS || ac_write_fail=1
  39425. +rm -f conf$$subs.awk
  39426. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39427. +_ACAWK
  39428. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  39429. + for (key in S) S_is_set[key] = 1
  39430. + FS = ""
  39431. + \$ac_cs_awk_pipe_init
  39432. +}
  39433. +{
  39434. + line = $ 0
  39435. + nfields = split(line, field, "@")
  39436. + substed = 0
  39437. + len = length(field[1])
  39438. + for (i = 2; i < nfields; i++) {
  39439. + key = field[i]
  39440. + keylen = length(key)
  39441. + if (S_is_set[key]) {
  39442. + value = S[key]
  39443. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  39444. + len += length(value) + length(field[++i])
  39445. + substed = 1
  39446. + } else
  39447. + len += 1 + keylen
  39448. + }
  39449. + if (nfields == 3 && !substed) {
  39450. + key = field[2]
  39451. + if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  39452. + \$ac_cs_awk_read_file
  39453. + next
  39454. + }
  39455. + }
  39456. + print line
  39457. +}
  39458. +\$ac_cs_awk_pipe_fini
  39459. +_ACAWK
  39460. +_ACEOF
  39461. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39462. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  39463. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  39464. +else
  39465. + cat
  39466. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  39467. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  39468. +_ACEOF
  39469. +
  39470. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  39471. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  39472. +# trailing colons and then remove the whole line if VPATH becomes empty
  39473. +# (actually we leave an empty line to preserve line numbers).
  39474. +if test "x$srcdir" = x.; then
  39475. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  39476. +s/:*\$(srcdir):*/:/
  39477. +s/:*\${srcdir}:*/:/
  39478. +s/:*@srcdir@:*/:/
  39479. +s/^\([^=]*=[ ]*\):*/\1/
  39480. +s/:*$//
  39481. +s/^[^=]*=[ ]*$//
  39482. +}'
  39483. +fi
  39484. +
  39485. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39486. +fi # test -n "$CONFIG_FILES"
  39487. +
  39488. +# Set up the scripts for CONFIG_HEADERS section.
  39489. +# No need to generate them if there are no CONFIG_HEADERS.
  39490. +# This happens for instance with `./config.status Makefile'.
  39491. +if test -n "$CONFIG_HEADERS"; then
  39492. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  39493. +BEGIN {
  39494. +_ACEOF
  39495. +
  39496. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  39497. +# here-document in config.status, that substitutes the proper values into
  39498. +# config.h.in to produce config.h.
  39499. +
  39500. +# Create a delimiter string that does not exist in confdefs.h, to ease
  39501. +# handling of long lines.
  39502. +ac_delim='%!_!# '
  39503. +for ac_last_try in false false :; do
  39504. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  39505. + if test -z "$ac_t"; then
  39506. + break
  39507. + elif $ac_last_try; then
  39508. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  39509. + else
  39510. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  39511. + fi
  39512. +done
  39513. +
  39514. +# For the awk script, D is an array of macro values keyed by name,
  39515. +# likewise P contains macro parameters if any. Preserve backslash
  39516. +# newline sequences.
  39517. +
  39518. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  39519. +sed -n '
  39520. +s/.\{148\}/&'"$ac_delim"'/g
  39521. +t rset
  39522. +:rset
  39523. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  39524. +t def
  39525. +d
  39526. +:def
  39527. +s/\\$//
  39528. +t bsnl
  39529. +s/["\\]/\\&/g
  39530. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  39531. +D["\1"]=" \3"/p
  39532. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  39533. +d
  39534. +:bsnl
  39535. +s/["\\]/\\&/g
  39536. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  39537. +D["\1"]=" \3\\\\\\n"\\/p
  39538. +t cont
  39539. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  39540. +t cont
  39541. +d
  39542. +:cont
  39543. +n
  39544. +s/.\{148\}/&'"$ac_delim"'/g
  39545. +t clear
  39546. +:clear
  39547. +s/\\$//
  39548. +t bsnlc
  39549. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  39550. +d
  39551. +:bsnlc
  39552. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  39553. +b cont
  39554. +' <confdefs.h | sed '
  39555. +s/'"$ac_delim"'/"\\\
  39556. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  39557. +
  39558. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39559. + for (key in D) D_is_set[key] = 1
  39560. + FS = ""
  39561. +}
  39562. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  39563. + line = \$ 0
  39564. + split(line, arg, " ")
  39565. + if (arg[1] == "#") {
  39566. + defundef = arg[2]
  39567. + mac1 = arg[3]
  39568. + } else {
  39569. + defundef = substr(arg[1], 2)
  39570. + mac1 = arg[2]
  39571. + }
  39572. + split(mac1, mac2, "(") #)
  39573. + macro = mac2[1]
  39574. + prefix = substr(line, 1, index(line, defundef) - 1)
  39575. + if (D_is_set[macro]) {
  39576. + # Preserve the white space surrounding the "#".
  39577. + print prefix "define", macro P[macro] D[macro]
  39578. + next
  39579. + } else {
  39580. + # Replace #undef with comments. This is necessary, for example,
  39581. + # in the case of _POSIX_SOURCE, which is predefined and required
  39582. + # on some systems where configure will not decide to define it.
  39583. + if (defundef == "undef") {
  39584. + print "/*", prefix defundef, macro, "*/"
  39585. + next
  39586. + }
  39587. + }
  39588. +}
  39589. +{ print }
  39590. +_ACAWK
  39591. +_ACEOF
  39592. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39593. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  39594. +fi # test -n "$CONFIG_HEADERS"
  39595. +
  39596. +
  39597. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  39598. +shift
  39599. +for ac_tag
  39600. +do
  39601. + case $ac_tag in
  39602. + :[FHLC]) ac_mode=$ac_tag; continue;;
  39603. + esac
  39604. + case $ac_mode$ac_tag in
  39605. + :[FHL]*:*);;
  39606. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  39607. + :[FH]-) ac_tag=-:-;;
  39608. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  39609. + esac
  39610. + ac_save_IFS=$IFS
  39611. + IFS=:
  39612. + set x $ac_tag
  39613. + IFS=$ac_save_IFS
  39614. + shift
  39615. + ac_file=$1
  39616. + shift
  39617. +
  39618. + case $ac_mode in
  39619. + :L) ac_source=$1;;
  39620. + :[FH])
  39621. + ac_file_inputs=
  39622. + for ac_f
  39623. + do
  39624. + case $ac_f in
  39625. + -) ac_f="$tmp/stdin";;
  39626. + *) # Look for the file first in the build tree, then in the source tree
  39627. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  39628. + # because $ac_f cannot contain `:'.
  39629. + test -f "$ac_f" ||
  39630. + case $ac_f in
  39631. + [\\/$]*) false;;
  39632. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  39633. + esac ||
  39634. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  39635. + esac
  39636. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  39637. + as_fn_append ac_file_inputs " '$ac_f'"
  39638. + done
  39639. +
  39640. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  39641. + # use $as_me), people would be surprised to read:
  39642. + # /* config.h. Generated by config.status. */
  39643. + configure_input='Generated from '`
  39644. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  39645. + `' by configure.'
  39646. + if test x"$ac_file" != x-; then
  39647. + configure_input="$ac_file. $configure_input"
  39648. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  39649. +$as_echo "$as_me: creating $ac_file" >&6;}
  39650. + fi
  39651. + # Neutralize special characters interpreted by sed in replacement strings.
  39652. + case $configure_input in #(
  39653. + *\&* | *\|* | *\\* )
  39654. + ac_sed_conf_input=`$as_echo "$configure_input" |
  39655. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  39656. + *) ac_sed_conf_input=$configure_input;;
  39657. + esac
  39658. +
  39659. + case $ac_tag in
  39660. + *:-:* | *:-) cat >"$tmp/stdin" \
  39661. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  39662. + esac
  39663. + ;;
  39664. + esac
  39665. +
  39666. + ac_dir=`$as_dirname -- "$ac_file" ||
  39667. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  39668. + X"$ac_file" : 'X\(//\)[^/]' \| \
  39669. + X"$ac_file" : 'X\(//\)$' \| \
  39670. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  39671. +$as_echo X"$ac_file" |
  39672. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  39673. + s//\1/
  39674. + q
  39675. + }
  39676. + /^X\(\/\/\)[^/].*/{
  39677. + s//\1/
  39678. + q
  39679. + }
  39680. + /^X\(\/\/\)$/{
  39681. + s//\1/
  39682. + q
  39683. + }
  39684. + /^X\(\/\).*/{
  39685. + s//\1/
  39686. + q
  39687. + }
  39688. + s/.*/./; q'`
  39689. + as_dir="$ac_dir"; as_fn_mkdir_p
  39690. + ac_builddir=.
  39691. +
  39692. +case "$ac_dir" in
  39693. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  39694. +*)
  39695. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  39696. + # A ".." for each directory in $ac_dir_suffix.
  39697. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  39698. + case $ac_top_builddir_sub in
  39699. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  39700. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  39701. + esac ;;
  39702. +esac
  39703. +ac_abs_top_builddir=$ac_pwd
  39704. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  39705. +# for backward compatibility:
  39706. +ac_top_builddir=$ac_top_build_prefix
  39707. +
  39708. +case $srcdir in
  39709. + .) # We are building in place.
  39710. + ac_srcdir=.
  39711. + ac_top_srcdir=$ac_top_builddir_sub
  39712. + ac_abs_top_srcdir=$ac_pwd ;;
  39713. + [\\/]* | ?:[\\/]* ) # Absolute name.
  39714. + ac_srcdir=$srcdir$ac_dir_suffix;
  39715. + ac_top_srcdir=$srcdir
  39716. + ac_abs_top_srcdir=$srcdir ;;
  39717. + *) # Relative name.
  39718. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  39719. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  39720. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  39721. +esac
  39722. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  39723. +
  39724. +
  39725. + case $ac_mode in
  39726. + :F)
  39727. + #
  39728. + # CONFIG_FILE
  39729. + #
  39730. +
  39731. +_ACEOF
  39732. +
  39733. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39734. +# If the template does not know about datarootdir, expand it.
  39735. +# FIXME: This hack should be removed a few years after 2.60.
  39736. +ac_datarootdir_hack=; ac_datarootdir_seen=
  39737. +ac_sed_dataroot='
  39738. +/datarootdir/ {
  39739. + p
  39740. + q
  39741. +}
  39742. +/@datadir@/p
  39743. +/@docdir@/p
  39744. +/@infodir@/p
  39745. +/@localedir@/p
  39746. +/@mandir@/p'
  39747. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  39748. +*datarootdir*) ac_datarootdir_seen=yes;;
  39749. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  39750. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  39751. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  39752. +_ACEOF
  39753. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39754. + ac_datarootdir_hack='
  39755. + s&@datadir@&$datadir&g
  39756. + s&@docdir@&$docdir&g
  39757. + s&@infodir@&$infodir&g
  39758. + s&@localedir@&$localedir&g
  39759. + s&@mandir@&$mandir&g
  39760. + s&\\\${datarootdir}&$datarootdir&g' ;;
  39761. +esac
  39762. +_ACEOF
  39763. +
  39764. +# Neutralize VPATH when `$srcdir' = `.'.
  39765. +# Shell code in configure.ac might set extrasub.
  39766. +# FIXME: do we really want to maintain this feature?
  39767. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  39768. +ac_sed_extra="$ac_vpsub
  39769. +$extrasub
  39770. +_ACEOF
  39771. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  39772. +:t
  39773. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  39774. +s|@configure_input@|$ac_sed_conf_input|;t t
  39775. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  39776. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  39777. +s&@srcdir@&$ac_srcdir&;t t
  39778. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  39779. +s&@top_srcdir@&$ac_top_srcdir&;t t
  39780. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  39781. +s&@builddir@&$ac_builddir&;t t
  39782. +s&@abs_builddir@&$ac_abs_builddir&;t t
  39783. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  39784. +$ac_datarootdir_hack
  39785. +"
  39786. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  39787. +if $ac_cs_awk_getline; then
  39788. + $AWK -f "$tmp/subs.awk"
  39789. +else
  39790. + $AWK -f "$tmp/subs.awk" | $SHELL
  39791. +fi >$tmp/out \
  39792. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  39793. +
  39794. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  39795. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  39796. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  39797. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  39798. +which seems to be undefined. Please make sure it is defined." >&5
  39799. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  39800. +which seems to be undefined. Please make sure it is defined." >&2;}
  39801. +
  39802. + rm -f "$tmp/stdin"
  39803. + case $ac_file in
  39804. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  39805. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  39806. + esac \
  39807. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  39808. + ;;
  39809. + :H)
  39810. + #
  39811. + # CONFIG_HEADER
  39812. + #
  39813. + if test x"$ac_file" != x-; then
  39814. + {
  39815. + $as_echo "/* $configure_input */" \
  39816. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  39817. + } >"$tmp/config.h" \
  39818. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  39819. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  39820. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  39821. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  39822. + else
  39823. + rm -f "$ac_file"
  39824. + mv "$tmp/config.h" "$ac_file" \
  39825. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  39826. + fi
  39827. + else
  39828. + $as_echo "/* $configure_input */" \
  39829. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  39830. + || as_fn_error "could not create -" "$LINENO" 5
  39831. + fi
  39832. + ;;
  39833. + :L)
  39834. + #
  39835. + # CONFIG_LINK
  39836. + #
  39837. +
  39838. + if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  39839. + :
  39840. + else
  39841. + # Prefer the file from the source tree if names are identical.
  39842. + if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  39843. + ac_source=$srcdir/$ac_source
  39844. + fi
  39845. +
  39846. + { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  39847. +$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  39848. +
  39849. + if test ! -r "$ac_source"; then
  39850. + as_fn_error "$ac_source: file not found" "$LINENO" 5
  39851. + fi
  39852. + rm -f "$ac_file"
  39853. +
  39854. + # Try a relative symlink, then a hard link, then a copy.
  39855. + case $srcdir in
  39856. + [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  39857. + *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  39858. + esac
  39859. + ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  39860. + ln "$ac_source" "$ac_file" 2>/dev/null ||
  39861. + cp -p "$ac_source" "$ac_file" ||
  39862. + as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  39863. + fi
  39864. + ;;
  39865. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  39866. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  39867. + ;;
  39868. + esac
  39869. +
  39870. +
  39871. + case $ac_file$ac_mode in
  39872. + "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
  39873. + "gccdepdir":C)
  39874. + ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
  39875. + for lang in $subdirs c-family common
  39876. + do
  39877. + ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
  39878. + done ;;
  39879. + "as":F) chmod +x as ;;
  39880. + "collect-ld":F) chmod +x collect-ld ;;
  39881. + "nm":F) chmod +x nm ;;
  39882. + "default":C)
  39883. +case ${CONFIG_HEADERS} in
  39884. + *auto-host.h:config.in*)
  39885. + echo > cstamp-h ;;
  39886. +esac
  39887. +# Make sure all the subdirs exist.
  39888. +for d in $subdirs doc build common c-family
  39889. +do
  39890. + test -d $d || mkdir $d
  39891. +done
  39892. + ;;
  39893. +
  39894. + esac
  39895. +done # for ac_tag
  39896. +
  39897. +
  39898. +as_fn_exit 0
  39899. +_ACEOF
  39900. +ac_clean_files=$ac_clean_files_save
  39901. +
  39902. +test $ac_write_fail = 0 ||
  39903. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  39904. +
  39905. +
  39906. +# configure is writing to config.log, and then calls config.status.
  39907. +# config.status does its own redirection, appending to config.log.
  39908. +# Unfortunately, on DOS this fails, as config.log is still kept open
  39909. +# by configure, so config.status won't be able to write to it; its
  39910. +# output is simply discarded. So we exec the FD to /dev/null,
  39911. +# effectively closing config.log, so it can be properly (re)opened and
  39912. +# appended to by config.status. When coming back to configure, we
  39913. +# need to make the FD available again.
  39914. +if test "$no_create" != yes; then
  39915. + ac_cs_success=:
  39916. + ac_config_status_args=
  39917. + test "$silent" = yes &&
  39918. + ac_config_status_args="$ac_config_status_args --quiet"
  39919. + exec 5>/dev/null
  39920. + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  39921. + exec 5>>config.log
  39922. + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  39923. + # would make configure fail if this is the last instruction.
  39924. + $ac_cs_success || as_fn_exit $?
  39925. +fi
  39926. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  39927. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  39928. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  39929. +fi
  39930. +
  39931. +
  39932. diff -Nur gcc-4.9.2-or1k.orig/gcc/ginclude/stddef.h gcc-4.9.2-or1k/gcc/ginclude/stddef.h
  39933. --- gcc-4.9.2-or1k.orig/gcc/ginclude/stddef.h 2015-07-13 13:42:14.000000000 -0500
  39934. +++ gcc-4.9.2-or1k/gcc/ginclude/stddef.h 2015-07-13 14:13:48.326287000 -0500
  39935. @@ -181,6 +181,7 @@
  39936. #ifndef _GCC_SIZE_T
  39937. #ifndef _SIZET_
  39938. #ifndef __size_t
  39939. +#ifndef __DEFINED_size_t /* musl */
  39940. #define __size_t__ /* BeOS */
  39941. #define __SIZE_T__ /* Cray Unicos/Mk */
  39942. #define _SIZE_T
  39943. @@ -197,6 +198,7 @@
  39944. #define ___int_size_t_h
  39945. #define _GCC_SIZE_T
  39946. #define _SIZET_
  39947. +#define __DEFINED_size_t /* musl */
  39948. #if (defined (__FreeBSD__) && (__FreeBSD__ >= 5)) \
  39949. || defined(__FreeBSD_kernel__)
  39950. /* __size_t is a typedef on FreeBSD 5, must not trash it. */
  39951. @@ -214,6 +216,7 @@
  39952. typedef long ssize_t;
  39953. #endif /* __BEOS__ */
  39954. #endif /* !(defined (__GNUG__) && defined (size_t)) */
  39955. +#endif /* __DEFINED_size_t */
  39956. #endif /* __size_t */
  39957. #endif /* _SIZET_ */
  39958. #endif /* _GCC_SIZE_T */
  39959. diff -Nur gcc-4.9.2-or1k.orig/libgcc/gthr.h gcc-4.9.2-or1k/libgcc/gthr.h
  39960. --- gcc-4.9.2-or1k.orig/libgcc/gthr.h 2015-07-13 13:42:17.000000000 -0500
  39961. +++ gcc-4.9.2-or1k/libgcc/gthr.h 2015-07-13 14:13:48.326287000 -0500
  39962. @@ -136,10 +136,8 @@
  39963. /* The pe-coff weak support isn't fully compatible to ELF's weak.
  39964. For static libraries it might would work, but as we need to deal
  39965. with shared versions too, we disable it for mingw-targets. */
  39966. -#ifdef __MINGW32__
  39967. #undef GTHREAD_USE_WEAK
  39968. #define GTHREAD_USE_WEAK 0
  39969. -#endif
  39970. #ifndef GTHREAD_USE_WEAK
  39971. #define GTHREAD_USE_WEAK 1
  39972. diff -Nur gcc-4.9.2-or1k.orig/libgcc/unwind-dw2-fde-dip.c gcc-4.9.2-or1k/libgcc/unwind-dw2-fde-dip.c
  39973. --- gcc-4.9.2-or1k.orig/libgcc/unwind-dw2-fde-dip.c 2015-07-13 13:42:17.000000000 -0500
  39974. +++ gcc-4.9.2-or1k/libgcc/unwind-dw2-fde-dip.c 2015-07-13 14:13:48.326287000 -0500
  39975. @@ -46,33 +46,13 @@
  39976. #include "unwind-compat.h"
  39977. #include "gthr.h"
  39978. -#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
  39979. - && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
  39980. - || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG)))
  39981. -# define USE_PT_GNU_EH_FRAME
  39982. -#endif
  39983. -
  39984. -#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
  39985. - && defined(__BIONIC__)
  39986. -# define USE_PT_GNU_EH_FRAME
  39987. -#endif
  39988. -
  39989. -#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
  39990. - && defined(__FreeBSD__) && __FreeBSD__ >= 7
  39991. -# define ElfW __ElfN
  39992. -# define USE_PT_GNU_EH_FRAME
  39993. -#endif
  39994. -
  39995. -#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
  39996. - && defined(__OpenBSD__)
  39997. -# define ElfW(type) Elf_##type
  39998. -# define USE_PT_GNU_EH_FRAME
  39999. -#endif
  40000. -
  40001. -#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
  40002. - && defined(TARGET_DL_ITERATE_PHDR) \
  40003. - && defined(__sun__) && defined(__svr4__)
  40004. +#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) && defined(TARGET_DL_ITERATE_PHDR)
  40005. # define USE_PT_GNU_EH_FRAME
  40006. +# ifdef __OpenBSD__
  40007. +# define ElfW(type) Elf_##type
  40008. +# elif defined(__FreeBSD__) && __FreeBSD__ >= 7
  40009. +# define ElfW __ElfN
  40010. +# endif
  40011. #endif
  40012. #if defined(USE_PT_GNU_EH_FRAME)
  40013. diff -Nur gcc-4.9.2-or1k.orig/libgomp/config/posix/time.c gcc-4.9.2-or1k/libgomp/config/posix/time.c
  40014. --- gcc-4.9.2-or1k.orig/libgomp/config/posix/time.c 2015-07-13 13:42:17.000000000 -0500
  40015. +++ gcc-4.9.2-or1k/libgomp/config/posix/time.c 2015-07-13 14:13:48.326287000 -0500
  40016. @@ -28,6 +28,8 @@
  40017. The following implementation uses the most simple POSIX routines.
  40018. If present, POSIX 4 clocks should be used instead. */
  40019. +#define _POSIX_C_SOURCE 199309L /* for clocks */
  40020. +
  40021. #include "libgomp.h"
  40022. #include <unistd.h>
  40023. #if TIME_WITH_SYS_TIME
  40024. diff -Nur gcc-4.9.2-or1k.orig/libitm/config/arm/hwcap.cc gcc-4.9.2-or1k/libitm/config/arm/hwcap.cc
  40025. --- gcc-4.9.2-or1k.orig/libitm/config/arm/hwcap.cc 2015-07-13 13:42:17.000000000 -0500
  40026. +++ gcc-4.9.2-or1k/libitm/config/arm/hwcap.cc 2015-07-13 14:13:48.326287000 -0500
  40027. @@ -40,7 +40,11 @@
  40028. #ifdef __linux__
  40029. #include <unistd.h>
  40030. +#ifdef __GLIBC__
  40031. #include <sys/fcntl.h>
  40032. +#else
  40033. +#include <fcntl.h>
  40034. +#endif
  40035. #include <elf.h>
  40036. static void __attribute__((constructor))
  40037. diff -Nur gcc-4.9.2-or1k.orig/libitm/config/linux/x86/tls.h gcc-4.9.2-or1k/libitm/config/linux/x86/tls.h
  40038. --- gcc-4.9.2-or1k.orig/libitm/config/linux/x86/tls.h 2015-07-13 13:42:17.000000000 -0500
  40039. +++ gcc-4.9.2-or1k/libitm/config/linux/x86/tls.h 2015-07-13 14:13:48.326287000 -0500
  40040. @@ -25,16 +25,19 @@
  40041. #ifndef LIBITM_X86_TLS_H
  40042. #define LIBITM_X86_TLS_H 1
  40043. -#if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 10)
  40044. +#if defined(__GLIBC_PREREQ)
  40045. +#if __GLIBC_PREREQ(2, 10)
  40046. /* Use slots in the TCB head rather than __thread lookups.
  40047. GLIBC has reserved words 10 through 13 for TM. */
  40048. #define HAVE_ARCH_GTM_THREAD 1
  40049. #define HAVE_ARCH_GTM_THREAD_DISP 1
  40050. #endif
  40051. +#endif
  40052. #include "config/generic/tls.h"
  40053. -#if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 10)
  40054. +#if defined(__GLIBC_PREREQ)
  40055. +#if __GLIBC_PREREQ(2, 10)
  40056. namespace GTM HIDDEN {
  40057. #ifdef __x86_64__
  40058. @@ -101,5 +104,6 @@
  40059. } // namespace GTM
  40060. #endif /* >= GLIBC 2.10 */
  40061. +#endif
  40062. #endif // LIBITM_X86_TLS_H
  40063. diff -Nur gcc-4.9.2-or1k.orig/libstdc++-v3/config/os/gnu-linux/os_defines.h gcc-4.9.2-or1k/libstdc++-v3/config/os/gnu-linux/os_defines.h
  40064. --- gcc-4.9.2-or1k.orig/libstdc++-v3/config/os/gnu-linux/os_defines.h 2015-07-13 13:42:19.000000000 -0500
  40065. +++ gcc-4.9.2-or1k/libstdc++-v3/config/os/gnu-linux/os_defines.h 2015-07-13 14:13:48.326287000 -0500
  40066. @@ -41,8 +41,10 @@
  40067. // Provide a declaration for the possibly deprecated gets function, as
  40068. // glibc 2.15 and later does not declare gets for ISO C11 when
  40069. // __GNU_SOURCE is defined.
  40070. +#if defined(__GLIBC_PREREQ)
  40071. #if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
  40072. # undef _GLIBCXX_HAVE_GETS
  40073. #endif
  40074. +#endif
  40075. #endif
  40076. diff -Nur gcc-4.9.2-or1k.orig/libstdc++-v3/configure.host gcc-4.9.2-or1k/libstdc++-v3/configure.host
  40077. --- gcc-4.9.2-or1k.orig/libstdc++-v3/configure.host 2015-07-13 13:42:19.000000000 -0500
  40078. +++ gcc-4.9.2-or1k/libstdc++-v3/configure.host 2015-07-13 14:13:48.326287000 -0500
  40079. @@ -264,6 +264,13 @@
  40080. os_include_dir="os/bsd/freebsd"
  40081. ;;
  40082. gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
  40083. + # check for musl by target
  40084. + case "${host_os}" in
  40085. + *-musl*)
  40086. + os_include_dir="os/generic"
  40087. + ;;
  40088. + *)
  40089. +
  40090. if [ "$uclibc" = "yes" ]; then
  40091. os_include_dir="os/uclibc"
  40092. elif [ "$bionic" = "yes" ]; then
  40093. @@ -272,6 +279,9 @@
  40094. os_include_dir="os/gnu-linux"
  40095. fi
  40096. ;;
  40097. +
  40098. + esac
  40099. + ;;
  40100. hpux*)
  40101. os_include_dir="os/hpux"
  40102. ;;