configure 198 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for GNU C Runtime Library 1.0.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME='GNU C Runtime Library'
  531. PACKAGE_TARNAME='libgcc'
  532. PACKAGE_VERSION='1.0'
  533. PACKAGE_STRING='GNU C Runtime Library 1.0'
  534. PACKAGE_BUGREPORT=''
  535. PACKAGE_URL='http://www.gnu.org/software/libgcc/'
  536. ac_unique_file="static-object.mk"
  537. ac_includes_default='/* none */'
  538. ac_subst_vars='LTLIBOBJS
  539. LIBOBJS
  540. md_unwind_header
  541. unwind_header
  542. enable_execute_stack
  543. asm_hidden_op
  544. extra_parts
  545. cpu_type
  546. get_gcc_base_ver
  547. thread_header
  548. tm_defines
  549. tm_file
  550. tmake_file
  551. sfp_machine_header
  552. set_use_emutls
  553. set_have_cc_tls
  554. vis_hide
  555. solaris_ld_v2_maps
  556. real_host_noncanonical
  557. accel_dir_suffix
  558. use_tm_clone_registry
  559. force_explicit_eh_registry
  560. CET_FLAGS
  561. fixed_point
  562. enable_decimal_float
  563. decimal_float
  564. EGREP
  565. GREP
  566. long_double_type_size
  567. double_type_size
  568. CPP
  569. OBJEXT
  570. EXEEXT
  571. ac_ct_CC
  572. CPPFLAGS
  573. LDFLAGS
  574. CFLAGS
  575. CC
  576. LN_S
  577. STRIP
  578. RANLIB
  579. NM
  580. LIPO
  581. AR
  582. toolexeclibdir
  583. toolexecdir
  584. enable_gcov
  585. target_subdir
  586. host_subdir
  587. build_subdir
  588. build_libsubdir
  589. target_noncanonical
  590. host_noncanonical
  591. AWK
  592. INSTALL_DATA
  593. INSTALL_SCRIPT
  594. INSTALL_PROGRAM
  595. MAINT
  596. slibdir
  597. PICFLAG
  598. host_os
  599. host_vendor
  600. host_cpu
  601. host
  602. build_os
  603. build_vendor
  604. build_cpu
  605. build
  606. with_aix_soname
  607. enable_vtable_verify
  608. enable_shared
  609. libgcc_topdir
  610. target_alias
  611. host_alias
  612. build_alias
  613. LIBS
  614. ECHO_T
  615. ECHO_N
  616. ECHO_C
  617. DEFS
  618. mandir
  619. localedir
  620. libdir
  621. psdir
  622. pdfdir
  623. dvidir
  624. htmldir
  625. infodir
  626. docdir
  627. oldincludedir
  628. includedir
  629. localstatedir
  630. sharedstatedir
  631. sysconfdir
  632. datadir
  633. datarootdir
  634. libexecdir
  635. sbindir
  636. bindir
  637. program_transform_name
  638. prefix
  639. exec_prefix
  640. PACKAGE_URL
  641. PACKAGE_BUGREPORT
  642. PACKAGE_STRING
  643. PACKAGE_VERSION
  644. PACKAGE_TARNAME
  645. PACKAGE_NAME
  646. PATH_SEPARATOR
  647. SHELL'
  648. ac_subst_files=''
  649. ac_user_opts='
  650. enable_option_checking
  651. with_target_subdir
  652. with_cross_host
  653. with_ld
  654. enable_shared
  655. enable_vtable_verify
  656. with_aix_soname
  657. enable_version_specific_runtime_libs
  658. with_toolexeclibdir
  659. with_slibdir
  660. enable_maintainer_mode
  661. with_build_libsubdir
  662. enable_gcov
  663. enable_largefile
  664. enable_decimal_float
  665. with_system_libunwind
  666. enable_cet
  667. enable_explicit_exception_frame_registration
  668. enable_tm_clone_registry
  669. with_glibc_version
  670. enable_tls
  671. with_gcc_major_version_only
  672. '
  673. ac_precious_vars='build_alias
  674. host_alias
  675. target_alias
  676. CC
  677. CFLAGS
  678. LDFLAGS
  679. LIBS
  680. CPPFLAGS
  681. CPP'
  682. # Initialize some variables set by options.
  683. ac_init_help=
  684. ac_init_version=false
  685. ac_unrecognized_opts=
  686. ac_unrecognized_sep=
  687. # The variables have the same names as the options, with
  688. # dashes changed to underlines.
  689. cache_file=/dev/null
  690. exec_prefix=NONE
  691. no_create=
  692. no_recursion=
  693. prefix=NONE
  694. program_prefix=NONE
  695. program_suffix=NONE
  696. program_transform_name=s,x,x,
  697. silent=
  698. site=
  699. srcdir=
  700. verbose=
  701. x_includes=NONE
  702. x_libraries=NONE
  703. # Installation directory options.
  704. # These are left unexpanded so users can "make install exec_prefix=/foo"
  705. # and all the variables that are supposed to be based on exec_prefix
  706. # by default will actually change.
  707. # Use braces instead of parens because sh, perl, etc. also accept them.
  708. # (The list follows the same order as the GNU Coding Standards.)
  709. bindir='${exec_prefix}/bin'
  710. sbindir='${exec_prefix}/sbin'
  711. libexecdir='${exec_prefix}/libexec'
  712. datarootdir='${prefix}/share'
  713. datadir='${datarootdir}'
  714. sysconfdir='${prefix}/etc'
  715. sharedstatedir='${prefix}/com'
  716. localstatedir='${prefix}/var'
  717. includedir='${prefix}/include'
  718. oldincludedir='/usr/include'
  719. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  720. infodir='${datarootdir}/info'
  721. htmldir='${docdir}'
  722. dvidir='${docdir}'
  723. pdfdir='${docdir}'
  724. psdir='${docdir}'
  725. libdir='${exec_prefix}/lib'
  726. localedir='${datarootdir}/locale'
  727. mandir='${datarootdir}/man'
  728. ac_prev=
  729. ac_dashdash=
  730. for ac_option
  731. do
  732. # If the previous option needs an argument, assign it.
  733. if test -n "$ac_prev"; then
  734. eval $ac_prev=\$ac_option
  735. ac_prev=
  736. continue
  737. fi
  738. case $ac_option in
  739. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  740. *=) ac_optarg= ;;
  741. *) ac_optarg=yes ;;
  742. esac
  743. # Accept the important Cygnus configure options, so we can diagnose typos.
  744. case $ac_dashdash$ac_option in
  745. --)
  746. ac_dashdash=yes ;;
  747. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  748. ac_prev=bindir ;;
  749. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  750. bindir=$ac_optarg ;;
  751. -build | --build | --buil | --bui | --bu)
  752. ac_prev=build_alias ;;
  753. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  754. build_alias=$ac_optarg ;;
  755. -cache-file | --cache-file | --cache-fil | --cache-fi \
  756. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  757. ac_prev=cache_file ;;
  758. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  759. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  760. cache_file=$ac_optarg ;;
  761. --config-cache | -C)
  762. cache_file=config.cache ;;
  763. -datadir | --datadir | --datadi | --datad)
  764. ac_prev=datadir ;;
  765. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  766. datadir=$ac_optarg ;;
  767. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  768. | --dataroo | --dataro | --datar)
  769. ac_prev=datarootdir ;;
  770. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  771. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  772. datarootdir=$ac_optarg ;;
  773. -disable-* | --disable-*)
  774. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  775. # Reject names that are not valid shell variable names.
  776. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  777. as_fn_error $? "invalid feature name: $ac_useropt"
  778. ac_useropt_orig=$ac_useropt
  779. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  780. case $ac_user_opts in
  781. *"
  782. "enable_$ac_useropt"
  783. "*) ;;
  784. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  785. ac_unrecognized_sep=', ';;
  786. esac
  787. eval enable_$ac_useropt=no ;;
  788. -docdir | --docdir | --docdi | --doc | --do)
  789. ac_prev=docdir ;;
  790. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  791. docdir=$ac_optarg ;;
  792. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  793. ac_prev=dvidir ;;
  794. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  795. dvidir=$ac_optarg ;;
  796. -enable-* | --enable-*)
  797. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  798. # Reject names that are not valid shell variable names.
  799. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  800. as_fn_error $? "invalid feature name: $ac_useropt"
  801. ac_useropt_orig=$ac_useropt
  802. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  803. case $ac_user_opts in
  804. *"
  805. "enable_$ac_useropt"
  806. "*) ;;
  807. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  808. ac_unrecognized_sep=', ';;
  809. esac
  810. eval enable_$ac_useropt=\$ac_optarg ;;
  811. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  812. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  813. | --exec | --exe | --ex)
  814. ac_prev=exec_prefix ;;
  815. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  816. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  817. | --exec=* | --exe=* | --ex=*)
  818. exec_prefix=$ac_optarg ;;
  819. -gas | --gas | --ga | --g)
  820. # Obsolete; use --with-gas.
  821. with_gas=yes ;;
  822. -help | --help | --hel | --he | -h)
  823. ac_init_help=long ;;
  824. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  825. ac_init_help=recursive ;;
  826. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  827. ac_init_help=short ;;
  828. -host | --host | --hos | --ho)
  829. ac_prev=host_alias ;;
  830. -host=* | --host=* | --hos=* | --ho=*)
  831. host_alias=$ac_optarg ;;
  832. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  833. ac_prev=htmldir ;;
  834. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  835. | --ht=*)
  836. htmldir=$ac_optarg ;;
  837. -includedir | --includedir | --includedi | --included | --include \
  838. | --includ | --inclu | --incl | --inc)
  839. ac_prev=includedir ;;
  840. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  841. | --includ=* | --inclu=* | --incl=* | --inc=*)
  842. includedir=$ac_optarg ;;
  843. -infodir | --infodir | --infodi | --infod | --info | --inf)
  844. ac_prev=infodir ;;
  845. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  846. infodir=$ac_optarg ;;
  847. -libdir | --libdir | --libdi | --libd)
  848. ac_prev=libdir ;;
  849. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  850. libdir=$ac_optarg ;;
  851. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  852. | --libexe | --libex | --libe)
  853. ac_prev=libexecdir ;;
  854. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  855. | --libexe=* | --libex=* | --libe=*)
  856. libexecdir=$ac_optarg ;;
  857. -localedir | --localedir | --localedi | --localed | --locale)
  858. ac_prev=localedir ;;
  859. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  860. localedir=$ac_optarg ;;
  861. -localstatedir | --localstatedir | --localstatedi | --localstated \
  862. | --localstate | --localstat | --localsta | --localst | --locals)
  863. ac_prev=localstatedir ;;
  864. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  865. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  866. localstatedir=$ac_optarg ;;
  867. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  868. ac_prev=mandir ;;
  869. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  870. mandir=$ac_optarg ;;
  871. -nfp | --nfp | --nf)
  872. # Obsolete; use --without-fp.
  873. with_fp=no ;;
  874. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  875. | --no-cr | --no-c | -n)
  876. no_create=yes ;;
  877. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  878. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  879. no_recursion=yes ;;
  880. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  881. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  882. | --oldin | --oldi | --old | --ol | --o)
  883. ac_prev=oldincludedir ;;
  884. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  885. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  886. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  887. oldincludedir=$ac_optarg ;;
  888. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  889. ac_prev=prefix ;;
  890. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  891. prefix=$ac_optarg ;;
  892. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  893. | --program-pre | --program-pr | --program-p)
  894. ac_prev=program_prefix ;;
  895. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  896. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  897. program_prefix=$ac_optarg ;;
  898. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  899. | --program-suf | --program-su | --program-s)
  900. ac_prev=program_suffix ;;
  901. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  902. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  903. program_suffix=$ac_optarg ;;
  904. -program-transform-name | --program-transform-name \
  905. | --program-transform-nam | --program-transform-na \
  906. | --program-transform-n | --program-transform- \
  907. | --program-transform | --program-transfor \
  908. | --program-transfo | --program-transf \
  909. | --program-trans | --program-tran \
  910. | --progr-tra | --program-tr | --program-t)
  911. ac_prev=program_transform_name ;;
  912. -program-transform-name=* | --program-transform-name=* \
  913. | --program-transform-nam=* | --program-transform-na=* \
  914. | --program-transform-n=* | --program-transform-=* \
  915. | --program-transform=* | --program-transfor=* \
  916. | --program-transfo=* | --program-transf=* \
  917. | --program-trans=* | --program-tran=* \
  918. | --progr-tra=* | --program-tr=* | --program-t=*)
  919. program_transform_name=$ac_optarg ;;
  920. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  921. ac_prev=pdfdir ;;
  922. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  923. pdfdir=$ac_optarg ;;
  924. -psdir | --psdir | --psdi | --psd | --ps)
  925. ac_prev=psdir ;;
  926. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  927. psdir=$ac_optarg ;;
  928. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  929. | -silent | --silent | --silen | --sile | --sil)
  930. silent=yes ;;
  931. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  932. ac_prev=sbindir ;;
  933. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  934. | --sbi=* | --sb=*)
  935. sbindir=$ac_optarg ;;
  936. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  937. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  938. | --sharedst | --shareds | --shared | --share | --shar \
  939. | --sha | --sh)
  940. ac_prev=sharedstatedir ;;
  941. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  942. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  943. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  944. | --sha=* | --sh=*)
  945. sharedstatedir=$ac_optarg ;;
  946. -site | --site | --sit)
  947. ac_prev=site ;;
  948. -site=* | --site=* | --sit=*)
  949. site=$ac_optarg ;;
  950. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  951. ac_prev=srcdir ;;
  952. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  953. srcdir=$ac_optarg ;;
  954. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  955. | --syscon | --sysco | --sysc | --sys | --sy)
  956. ac_prev=sysconfdir ;;
  957. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  958. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  959. sysconfdir=$ac_optarg ;;
  960. -target | --target | --targe | --targ | --tar | --ta | --t)
  961. ac_prev=target_alias ;;
  962. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  963. target_alias=$ac_optarg ;;
  964. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  965. verbose=yes ;;
  966. -version | --version | --versio | --versi | --vers | -V)
  967. ac_init_version=: ;;
  968. -with-* | --with-*)
  969. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  970. # Reject names that are not valid shell variable names.
  971. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  972. as_fn_error $? "invalid package name: $ac_useropt"
  973. ac_useropt_orig=$ac_useropt
  974. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  975. case $ac_user_opts in
  976. *"
  977. "with_$ac_useropt"
  978. "*) ;;
  979. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  980. ac_unrecognized_sep=', ';;
  981. esac
  982. eval with_$ac_useropt=\$ac_optarg ;;
  983. -without-* | --without-*)
  984. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  985. # Reject names that are not valid shell variable names.
  986. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  987. as_fn_error $? "invalid package name: $ac_useropt"
  988. ac_useropt_orig=$ac_useropt
  989. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  990. case $ac_user_opts in
  991. *"
  992. "with_$ac_useropt"
  993. "*) ;;
  994. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  995. ac_unrecognized_sep=', ';;
  996. esac
  997. eval with_$ac_useropt=no ;;
  998. --x)
  999. # Obsolete; use --with-x.
  1000. with_x=yes ;;
  1001. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1002. | --x-incl | --x-inc | --x-in | --x-i)
  1003. ac_prev=x_includes ;;
  1004. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1005. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1006. x_includes=$ac_optarg ;;
  1007. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1008. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1009. ac_prev=x_libraries ;;
  1010. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1011. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1012. x_libraries=$ac_optarg ;;
  1013. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1014. Try \`$0 --help' for more information"
  1015. ;;
  1016. *=*)
  1017. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1018. # Reject names that are not valid shell variable names.
  1019. case $ac_envvar in #(
  1020. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1021. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1022. esac
  1023. eval $ac_envvar=\$ac_optarg
  1024. export $ac_envvar ;;
  1025. *)
  1026. # FIXME: should be removed in autoconf 3.0.
  1027. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1028. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1029. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1030. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1031. ;;
  1032. esac
  1033. done
  1034. if test -n "$ac_prev"; then
  1035. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1036. as_fn_error $? "missing argument to $ac_option"
  1037. fi
  1038. if test -n "$ac_unrecognized_opts"; then
  1039. case $enable_option_checking in
  1040. no) ;;
  1041. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1042. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1043. esac
  1044. fi
  1045. # Check all directory arguments for consistency.
  1046. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1047. datadir sysconfdir sharedstatedir localstatedir includedir \
  1048. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1049. libdir localedir mandir
  1050. do
  1051. eval ac_val=\$$ac_var
  1052. # Remove trailing slashes.
  1053. case $ac_val in
  1054. */ )
  1055. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1056. eval $ac_var=\$ac_val;;
  1057. esac
  1058. # Be sure to have absolute directory names.
  1059. case $ac_val in
  1060. [\\/$]* | ?:[\\/]* ) continue;;
  1061. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1062. esac
  1063. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1064. done
  1065. # There might be people who depend on the old broken behavior: `$host'
  1066. # used to hold the argument of --host etc.
  1067. # FIXME: To remove some day.
  1068. build=$build_alias
  1069. host=$host_alias
  1070. target=$target_alias
  1071. # FIXME: To remove some day.
  1072. if test "x$host_alias" != x; then
  1073. if test "x$build_alias" = x; then
  1074. cross_compiling=maybe
  1075. elif test "x$build_alias" != "x$host_alias"; then
  1076. cross_compiling=yes
  1077. fi
  1078. fi
  1079. ac_tool_prefix=
  1080. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1081. test "$silent" = yes && exec 6>/dev/null
  1082. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1083. ac_ls_di=`ls -di .` &&
  1084. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1085. as_fn_error $? "working directory cannot be determined"
  1086. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1087. as_fn_error $? "pwd does not report name of working directory"
  1088. # Find the source files, if location was not specified.
  1089. if test -z "$srcdir"; then
  1090. ac_srcdir_defaulted=yes
  1091. # Try the directory containing this script, then the parent directory.
  1092. ac_confdir=`$as_dirname -- "$as_myself" ||
  1093. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1094. X"$as_myself" : 'X\(//\)[^/]' \| \
  1095. X"$as_myself" : 'X\(//\)$' \| \
  1096. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1097. $as_echo X"$as_myself" |
  1098. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1099. s//\1/
  1100. q
  1101. }
  1102. /^X\(\/\/\)[^/].*/{
  1103. s//\1/
  1104. q
  1105. }
  1106. /^X\(\/\/\)$/{
  1107. s//\1/
  1108. q
  1109. }
  1110. /^X\(\/\).*/{
  1111. s//\1/
  1112. q
  1113. }
  1114. s/.*/./; q'`
  1115. srcdir=$ac_confdir
  1116. if test ! -r "$srcdir/$ac_unique_file"; then
  1117. srcdir=..
  1118. fi
  1119. else
  1120. ac_srcdir_defaulted=no
  1121. fi
  1122. if test ! -r "$srcdir/$ac_unique_file"; then
  1123. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1124. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1125. fi
  1126. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1127. ac_abs_confdir=`(
  1128. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1129. pwd)`
  1130. # When building in place, set srcdir=.
  1131. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1132. srcdir=.
  1133. fi
  1134. # Remove unnecessary trailing slashes from srcdir.
  1135. # Double slashes in file names in object file debugging info
  1136. # mess up M-x gdb in Emacs.
  1137. case $srcdir in
  1138. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1139. esac
  1140. for ac_var in $ac_precious_vars; do
  1141. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1142. eval ac_env_${ac_var}_value=\$${ac_var}
  1143. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1144. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1145. done
  1146. #
  1147. # Report the --help message.
  1148. #
  1149. if test "$ac_init_help" = "long"; then
  1150. # Omit some internal or obsolete options to make the list less imposing.
  1151. # This message is too long to be a string in the A/UX 3.1 sh.
  1152. cat <<_ACEOF
  1153. \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
  1154. Usage: $0 [OPTION]... [VAR=VALUE]...
  1155. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1156. VAR=VALUE. See below for descriptions of some of the useful variables.
  1157. Defaults for the options are specified in brackets.
  1158. Configuration:
  1159. -h, --help display this help and exit
  1160. --help=short display options specific to this package
  1161. --help=recursive display the short help of all the included packages
  1162. -V, --version display version information and exit
  1163. -q, --quiet, --silent do not print \`checking ...' messages
  1164. --cache-file=FILE cache test results in FILE [disabled]
  1165. -C, --config-cache alias for \`--cache-file=config.cache'
  1166. -n, --no-create do not create output files
  1167. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1168. Installation directories:
  1169. --prefix=PREFIX install architecture-independent files in PREFIX
  1170. [$ac_default_prefix]
  1171. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1172. [PREFIX]
  1173. By default, \`make install' will install all the files in
  1174. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1175. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1176. for instance \`--prefix=\$HOME'.
  1177. For better control, use the options below.
  1178. Fine tuning of the installation directories:
  1179. --bindir=DIR user executables [EPREFIX/bin]
  1180. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1181. --libexecdir=DIR program executables [EPREFIX/libexec]
  1182. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1183. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1184. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1185. --libdir=DIR object code libraries [EPREFIX/lib]
  1186. --includedir=DIR C header files [PREFIX/include]
  1187. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1188. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1189. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1190. --infodir=DIR info documentation [DATAROOTDIR/info]
  1191. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1192. --mandir=DIR man documentation [DATAROOTDIR/man]
  1193. --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
  1194. --htmldir=DIR html documentation [DOCDIR]
  1195. --dvidir=DIR dvi documentation [DOCDIR]
  1196. --pdfdir=DIR pdf documentation [DOCDIR]
  1197. --psdir=DIR ps documentation [DOCDIR]
  1198. _ACEOF
  1199. cat <<\_ACEOF
  1200. System types:
  1201. --build=BUILD configure for building on BUILD [guessed]
  1202. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1203. _ACEOF
  1204. fi
  1205. if test -n "$ac_init_help"; then
  1206. case $ac_init_help in
  1207. short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
  1208. esac
  1209. cat <<\_ACEOF
  1210. Optional Features:
  1211. --disable-option-checking ignore unrecognized --enable/--with options
  1212. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1213. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1214. --disable-shared don't provide a shared libgcc
  1215. --enable-vtable-verify Enable vtable verification feature
  1216. --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
  1217. --enable-maintainer-mode
  1218. enable make rules and dependencies not useful (and
  1219. sometimes confusing) to the casual installer
  1220. --disable-gcov don't provide libgcov and related host tools
  1221. --disable-largefile omit support for large files
  1222. --enable-decimal-float={no,yes,bid,dpd}
  1223. enable decimal float extension to C. Selecting 'bid'
  1224. or 'dpd' choses which decimal floating point format
  1225. to use
  1226. --enable-cet enable Intel CET in target libraries [default=auto]
  1227. --enable-explicit-exception-frame-registration
  1228. register exception tables explicitly at module
  1229. start, for use e.g. for compatibility with
  1230. installations without PT_GNU_EH_FRAME support
  1231. --disable-tm-clone-registry disable TM clone registry
  1232. --enable-tls Use thread-local storage [default=yes]
  1233. Optional Packages:
  1234. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1235. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1236. --with-target-subdir=SUBDIR Configuring in a subdirectory for target
  1237. --with-cross-host=HOST Configuring with a cross compiler
  1238. --with-ld arrange to use the specified ld (full pathname)
  1239. --with-aix-soname=aix|svr4|both
  1240. shared library versioning (aka "SONAME") variant to
  1241. provide on AIX
  1242. --with-toolexeclibdir=DIR
  1243. install libraries built with a cross compiler within
  1244. DIR
  1245. --with-slibdir=DIR shared libraries in DIR LIBDIR
  1246. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1247. --with-system-libunwind use installed libunwind
  1248. --with-glibc-version=M.N
  1249. assume GCC used with glibc version M.N or later
  1250. --with-gcc-major-version-only
  1251. use only GCC major number in filesystem paths
  1252. Some influential environment variables:
  1253. CC C compiler command
  1254. CFLAGS C compiler flags
  1255. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1256. nonstandard directory <lib dir>
  1257. LIBS libraries to pass to the linker, e.g. -l<library>
  1258. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1259. you have headers in a nonstandard directory <include dir>
  1260. CPP C preprocessor
  1261. Use these variables to override the choices made by `configure' or to help
  1262. it to find libraries and programs with nonstandard names/locations.
  1263. Report bugs to the package provider.
  1264. GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
  1265. General help using GNU software: <http://www.gnu.org/gethelp/>.
  1266. _ACEOF
  1267. ac_status=$?
  1268. fi
  1269. if test "$ac_init_help" = "recursive"; then
  1270. # If there are subdirs, report their specific --help.
  1271. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1272. test -d "$ac_dir" ||
  1273. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1274. continue
  1275. ac_builddir=.
  1276. case "$ac_dir" in
  1277. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1278. *)
  1279. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1280. # A ".." for each directory in $ac_dir_suffix.
  1281. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1282. case $ac_top_builddir_sub in
  1283. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1284. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1285. esac ;;
  1286. esac
  1287. ac_abs_top_builddir=$ac_pwd
  1288. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1289. # for backward compatibility:
  1290. ac_top_builddir=$ac_top_build_prefix
  1291. case $srcdir in
  1292. .) # We are building in place.
  1293. ac_srcdir=.
  1294. ac_top_srcdir=$ac_top_builddir_sub
  1295. ac_abs_top_srcdir=$ac_pwd ;;
  1296. [\\/]* | ?:[\\/]* ) # Absolute name.
  1297. ac_srcdir=$srcdir$ac_dir_suffix;
  1298. ac_top_srcdir=$srcdir
  1299. ac_abs_top_srcdir=$srcdir ;;
  1300. *) # Relative name.
  1301. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1302. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1303. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1304. esac
  1305. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1306. cd "$ac_dir" || { ac_status=$?; continue; }
  1307. # Check for guested configure.
  1308. if test -f "$ac_srcdir/configure.gnu"; then
  1309. echo &&
  1310. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1311. elif test -f "$ac_srcdir/configure"; then
  1312. echo &&
  1313. $SHELL "$ac_srcdir/configure" --help=recursive
  1314. else
  1315. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1316. fi || ac_status=$?
  1317. cd "$ac_pwd" || { ac_status=$?; break; }
  1318. done
  1319. fi
  1320. test -n "$ac_init_help" && exit $ac_status
  1321. if $ac_init_version; then
  1322. cat <<\_ACEOF
  1323. GNU C Runtime Library configure 1.0
  1324. generated by GNU Autoconf 2.69
  1325. Copyright (C) 2012 Free Software Foundation, Inc.
  1326. This configure script is free software; the Free Software Foundation
  1327. gives unlimited permission to copy, distribute and modify it.
  1328. _ACEOF
  1329. exit
  1330. fi
  1331. ## ------------------------ ##
  1332. ## Autoconf initialization. ##
  1333. ## ------------------------ ##
  1334. # ac_fn_c_try_compile LINENO
  1335. # --------------------------
  1336. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1337. ac_fn_c_try_compile ()
  1338. {
  1339. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1340. rm -f conftest.$ac_objext
  1341. if { { ac_try="$ac_compile"
  1342. case "(($ac_try" in
  1343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1344. *) ac_try_echo=$ac_try;;
  1345. esac
  1346. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1347. $as_echo "$ac_try_echo"; } >&5
  1348. (eval "$ac_compile") 2>conftest.err
  1349. ac_status=$?
  1350. if test -s conftest.err; then
  1351. grep -v '^ *+' conftest.err >conftest.er1
  1352. cat conftest.er1 >&5
  1353. mv -f conftest.er1 conftest.err
  1354. fi
  1355. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1356. test $ac_status = 0; } && {
  1357. test -z "$ac_c_werror_flag" ||
  1358. test ! -s conftest.err
  1359. } && test -s conftest.$ac_objext; then :
  1360. ac_retval=0
  1361. else
  1362. $as_echo "$as_me: failed program was:" >&5
  1363. sed 's/^/| /' conftest.$ac_ext >&5
  1364. ac_retval=1
  1365. fi
  1366. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1367. as_fn_set_status $ac_retval
  1368. } # ac_fn_c_try_compile
  1369. # ac_fn_c_try_cpp LINENO
  1370. # ----------------------
  1371. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1372. ac_fn_c_try_cpp ()
  1373. {
  1374. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1375. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1376. case "(($ac_try" in
  1377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1378. *) ac_try_echo=$ac_try;;
  1379. esac
  1380. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1381. $as_echo "$ac_try_echo"; } >&5
  1382. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1383. ac_status=$?
  1384. if test -s conftest.err; then
  1385. grep -v '^ *+' conftest.err >conftest.er1
  1386. cat conftest.er1 >&5
  1387. mv -f conftest.er1 conftest.err
  1388. fi
  1389. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1390. test $ac_status = 0; } > conftest.i && {
  1391. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1392. test ! -s conftest.err
  1393. }; then :
  1394. ac_retval=0
  1395. else
  1396. $as_echo "$as_me: failed program was:" >&5
  1397. sed 's/^/| /' conftest.$ac_ext >&5
  1398. ac_retval=1
  1399. fi
  1400. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1401. as_fn_set_status $ac_retval
  1402. } # ac_fn_c_try_cpp
  1403. # ac_fn_c_try_run LINENO
  1404. # ----------------------
  1405. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1406. # that executables *can* be run.
  1407. ac_fn_c_try_run ()
  1408. {
  1409. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1410. if { { ac_try="$ac_link"
  1411. case "(($ac_try" in
  1412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1413. *) ac_try_echo=$ac_try;;
  1414. esac
  1415. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1416. $as_echo "$ac_try_echo"; } >&5
  1417. (eval "$ac_link") 2>&5
  1418. ac_status=$?
  1419. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1420. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1421. { { case "(($ac_try" in
  1422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1423. *) ac_try_echo=$ac_try;;
  1424. esac
  1425. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1426. $as_echo "$ac_try_echo"; } >&5
  1427. (eval "$ac_try") 2>&5
  1428. ac_status=$?
  1429. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1430. test $ac_status = 0; }; }; then :
  1431. ac_retval=0
  1432. else
  1433. $as_echo "$as_me: program exited with status $ac_status" >&5
  1434. $as_echo "$as_me: failed program was:" >&5
  1435. sed 's/^/| /' conftest.$ac_ext >&5
  1436. ac_retval=$ac_status
  1437. fi
  1438. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1439. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1440. as_fn_set_status $ac_retval
  1441. } # ac_fn_c_try_run
  1442. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1443. # --------------------------------------------
  1444. # Tries to find the compile-time value of EXPR in a program that includes
  1445. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1446. # computed
  1447. ac_fn_c_compute_int ()
  1448. {
  1449. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1450. if test "$cross_compiling" = yes; then
  1451. # Depending upon the size, compute the lo and hi bounds.
  1452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1453. /* end confdefs.h. */
  1454. $4
  1455. int
  1456. main ()
  1457. {
  1458. static int test_array [1 - 2 * !(($2) >= 0)];
  1459. test_array [0] = 0;
  1460. return test_array [0];
  1461. ;
  1462. return 0;
  1463. }
  1464. _ACEOF
  1465. if ac_fn_c_try_compile "$LINENO"; then :
  1466. ac_lo=0 ac_mid=0
  1467. while :; do
  1468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1469. /* end confdefs.h. */
  1470. $4
  1471. int
  1472. main ()
  1473. {
  1474. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1475. test_array [0] = 0;
  1476. return test_array [0];
  1477. ;
  1478. return 0;
  1479. }
  1480. _ACEOF
  1481. if ac_fn_c_try_compile "$LINENO"; then :
  1482. ac_hi=$ac_mid; break
  1483. else
  1484. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1485. if test $ac_lo -le $ac_mid; then
  1486. ac_lo= ac_hi=
  1487. break
  1488. fi
  1489. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1490. fi
  1491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1492. done
  1493. else
  1494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1495. /* end confdefs.h. */
  1496. $4
  1497. int
  1498. main ()
  1499. {
  1500. static int test_array [1 - 2 * !(($2) < 0)];
  1501. test_array [0] = 0;
  1502. return test_array [0];
  1503. ;
  1504. return 0;
  1505. }
  1506. _ACEOF
  1507. if ac_fn_c_try_compile "$LINENO"; then :
  1508. ac_hi=-1 ac_mid=-1
  1509. while :; do
  1510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1511. /* end confdefs.h. */
  1512. $4
  1513. int
  1514. main ()
  1515. {
  1516. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1517. test_array [0] = 0;
  1518. return test_array [0];
  1519. ;
  1520. return 0;
  1521. }
  1522. _ACEOF
  1523. if ac_fn_c_try_compile "$LINENO"; then :
  1524. ac_lo=$ac_mid; break
  1525. else
  1526. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1527. if test $ac_mid -le $ac_hi; then
  1528. ac_lo= ac_hi=
  1529. break
  1530. fi
  1531. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1532. fi
  1533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1534. done
  1535. else
  1536. ac_lo= ac_hi=
  1537. fi
  1538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1539. fi
  1540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1541. # Binary search between lo and hi bounds.
  1542. while test "x$ac_lo" != "x$ac_hi"; do
  1543. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1545. /* end confdefs.h. */
  1546. $4
  1547. int
  1548. main ()
  1549. {
  1550. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1551. test_array [0] = 0;
  1552. return test_array [0];
  1553. ;
  1554. return 0;
  1555. }
  1556. _ACEOF
  1557. if ac_fn_c_try_compile "$LINENO"; then :
  1558. ac_hi=$ac_mid
  1559. else
  1560. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1561. fi
  1562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1563. done
  1564. case $ac_lo in #((
  1565. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1566. '') ac_retval=1 ;;
  1567. esac
  1568. else
  1569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1570. /* end confdefs.h. */
  1571. $4
  1572. static long int longval () { return $2; }
  1573. static unsigned long int ulongval () { return $2; }
  1574. #include <stdio.h>
  1575. #include <stdlib.h>
  1576. int
  1577. main ()
  1578. {
  1579. FILE *f = fopen ("conftest.val", "w");
  1580. if (! f)
  1581. return 1;
  1582. if (($2) < 0)
  1583. {
  1584. long int i = longval ();
  1585. if (i != ($2))
  1586. return 1;
  1587. fprintf (f, "%ld", i);
  1588. }
  1589. else
  1590. {
  1591. unsigned long int i = ulongval ();
  1592. if (i != ($2))
  1593. return 1;
  1594. fprintf (f, "%lu", i);
  1595. }
  1596. /* Do not output a trailing newline, as this causes \r\n confusion
  1597. on some platforms. */
  1598. return ferror (f) || fclose (f) != 0;
  1599. ;
  1600. return 0;
  1601. }
  1602. _ACEOF
  1603. if ac_fn_c_try_run "$LINENO"; then :
  1604. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1605. else
  1606. ac_retval=1
  1607. fi
  1608. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1609. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1610. rm -f conftest.val
  1611. fi
  1612. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1613. as_fn_set_status $ac_retval
  1614. } # ac_fn_c_compute_int
  1615. # ac_fn_c_check_header_preproc LINENO HEADER VAR
  1616. # ----------------------------------------------
  1617. # Tests whether HEADER is present, setting the cache variable VAR accordingly.
  1618. ac_fn_c_check_header_preproc ()
  1619. {
  1620. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1622. $as_echo_n "checking for $2... " >&6; }
  1623. if eval \${$3+:} false; then :
  1624. $as_echo_n "(cached) " >&6
  1625. else
  1626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1627. /* end confdefs.h. */
  1628. #include <$2>
  1629. _ACEOF
  1630. if ac_fn_c_try_cpp "$LINENO"; then :
  1631. eval "$3=yes"
  1632. else
  1633. eval "$3=no"
  1634. fi
  1635. rm -f conftest.err conftest.i conftest.$ac_ext
  1636. fi
  1637. eval ac_res=\$$3
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1639. $as_echo "$ac_res" >&6; }
  1640. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1641. } # ac_fn_c_check_header_preproc
  1642. cat >config.log <<_ACEOF
  1643. This file contains any messages produced by compilers while
  1644. running configure, to aid debugging if configure makes a mistake.
  1645. It was created by GNU C Runtime Library $as_me 1.0, which was
  1646. generated by GNU Autoconf 2.69. Invocation command line was
  1647. $ $0 $@
  1648. _ACEOF
  1649. exec 5>>config.log
  1650. {
  1651. cat <<_ASUNAME
  1652. ## --------- ##
  1653. ## Platform. ##
  1654. ## --------- ##
  1655. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1656. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1657. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1658. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1659. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1660. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1661. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1662. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1663. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1664. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1665. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1666. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1667. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1668. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1669. _ASUNAME
  1670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1671. for as_dir in $PATH
  1672. do
  1673. IFS=$as_save_IFS
  1674. test -z "$as_dir" && as_dir=.
  1675. $as_echo "PATH: $as_dir"
  1676. done
  1677. IFS=$as_save_IFS
  1678. } >&5
  1679. cat >&5 <<_ACEOF
  1680. ## ----------- ##
  1681. ## Core tests. ##
  1682. ## ----------- ##
  1683. _ACEOF
  1684. # Keep a trace of the command line.
  1685. # Strip out --no-create and --no-recursion so they do not pile up.
  1686. # Strip out --silent because we don't want to record it for future runs.
  1687. # Also quote any args containing shell meta-characters.
  1688. # Make two passes to allow for proper duplicate-argument suppression.
  1689. ac_configure_args=
  1690. ac_configure_args0=
  1691. ac_configure_args1=
  1692. ac_must_keep_next=false
  1693. for ac_pass in 1 2
  1694. do
  1695. for ac_arg
  1696. do
  1697. case $ac_arg in
  1698. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1699. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1700. | -silent | --silent | --silen | --sile | --sil)
  1701. continue ;;
  1702. *\'*)
  1703. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1704. esac
  1705. case $ac_pass in
  1706. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1707. 2)
  1708. as_fn_append ac_configure_args1 " '$ac_arg'"
  1709. if test $ac_must_keep_next = true; then
  1710. ac_must_keep_next=false # Got value, back to normal.
  1711. else
  1712. case $ac_arg in
  1713. *=* | --config-cache | -C | -disable-* | --disable-* \
  1714. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1715. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1716. | -with-* | --with-* | -without-* | --without-* | --x)
  1717. case "$ac_configure_args0 " in
  1718. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1719. esac
  1720. ;;
  1721. -* ) ac_must_keep_next=true ;;
  1722. esac
  1723. fi
  1724. as_fn_append ac_configure_args " '$ac_arg'"
  1725. ;;
  1726. esac
  1727. done
  1728. done
  1729. { ac_configure_args0=; unset ac_configure_args0;}
  1730. { ac_configure_args1=; unset ac_configure_args1;}
  1731. # When interrupted or exit'd, cleanup temporary files, and complete
  1732. # config.log. We remove comments because anyway the quotes in there
  1733. # would cause problems or look ugly.
  1734. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1735. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1736. trap 'exit_status=$?
  1737. # Save into config.log some information that might help in debugging.
  1738. {
  1739. echo
  1740. $as_echo "## ---------------- ##
  1741. ## Cache variables. ##
  1742. ## ---------------- ##"
  1743. echo
  1744. # The following way of writing the cache mishandles newlines in values,
  1745. (
  1746. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1747. eval ac_val=\$$ac_var
  1748. case $ac_val in #(
  1749. *${as_nl}*)
  1750. case $ac_var in #(
  1751. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1752. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1753. esac
  1754. case $ac_var in #(
  1755. _ | IFS | as_nl) ;; #(
  1756. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1757. *) { eval $ac_var=; unset $ac_var;} ;;
  1758. esac ;;
  1759. esac
  1760. done
  1761. (set) 2>&1 |
  1762. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1763. *${as_nl}ac_space=\ *)
  1764. sed -n \
  1765. "s/'\''/'\''\\\\'\'''\''/g;
  1766. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1767. ;; #(
  1768. *)
  1769. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1770. ;;
  1771. esac |
  1772. sort
  1773. )
  1774. echo
  1775. $as_echo "## ----------------- ##
  1776. ## Output variables. ##
  1777. ## ----------------- ##"
  1778. echo
  1779. for ac_var in $ac_subst_vars
  1780. do
  1781. eval ac_val=\$$ac_var
  1782. case $ac_val in
  1783. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1784. esac
  1785. $as_echo "$ac_var='\''$ac_val'\''"
  1786. done | sort
  1787. echo
  1788. if test -n "$ac_subst_files"; then
  1789. $as_echo "## ------------------- ##
  1790. ## File substitutions. ##
  1791. ## ------------------- ##"
  1792. echo
  1793. for ac_var in $ac_subst_files
  1794. do
  1795. eval ac_val=\$$ac_var
  1796. case $ac_val in
  1797. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1798. esac
  1799. $as_echo "$ac_var='\''$ac_val'\''"
  1800. done | sort
  1801. echo
  1802. fi
  1803. if test -s confdefs.h; then
  1804. $as_echo "## ----------- ##
  1805. ## confdefs.h. ##
  1806. ## ----------- ##"
  1807. echo
  1808. cat confdefs.h
  1809. echo
  1810. fi
  1811. test "$ac_signal" != 0 &&
  1812. $as_echo "$as_me: caught signal $ac_signal"
  1813. $as_echo "$as_me: exit $exit_status"
  1814. } >&5
  1815. rm -f core *.core core.conftest.* &&
  1816. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1817. exit $exit_status
  1818. ' 0
  1819. for ac_signal in 1 2 13 15; do
  1820. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1821. done
  1822. ac_signal=0
  1823. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1824. rm -f -r conftest* confdefs.h
  1825. $as_echo "/* confdefs.h */" > confdefs.h
  1826. # Predefined preprocessor variables.
  1827. cat >>confdefs.h <<_ACEOF
  1828. #define PACKAGE_NAME "$PACKAGE_NAME"
  1829. _ACEOF
  1830. cat >>confdefs.h <<_ACEOF
  1831. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1832. _ACEOF
  1833. cat >>confdefs.h <<_ACEOF
  1834. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1835. _ACEOF
  1836. cat >>confdefs.h <<_ACEOF
  1837. #define PACKAGE_STRING "$PACKAGE_STRING"
  1838. _ACEOF
  1839. cat >>confdefs.h <<_ACEOF
  1840. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1841. _ACEOF
  1842. cat >>confdefs.h <<_ACEOF
  1843. #define PACKAGE_URL "$PACKAGE_URL"
  1844. _ACEOF
  1845. # Let the site file select an alternate cache file if it wants to.
  1846. # Prefer an explicitly selected file to automatically selected ones.
  1847. ac_site_file1=NONE
  1848. ac_site_file2=NONE
  1849. if test -n "$CONFIG_SITE"; then
  1850. # We do not want a PATH search for config.site.
  1851. case $CONFIG_SITE in #((
  1852. -*) ac_site_file1=./$CONFIG_SITE;;
  1853. */*) ac_site_file1=$CONFIG_SITE;;
  1854. *) ac_site_file1=./$CONFIG_SITE;;
  1855. esac
  1856. elif test "x$prefix" != xNONE; then
  1857. ac_site_file1=$prefix/share/config.site
  1858. ac_site_file2=$prefix/etc/config.site
  1859. else
  1860. ac_site_file1=$ac_default_prefix/share/config.site
  1861. ac_site_file2=$ac_default_prefix/etc/config.site
  1862. fi
  1863. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1864. do
  1865. test "x$ac_site_file" = xNONE && continue
  1866. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1867. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1868. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1869. sed 's/^/| /' "$ac_site_file" >&5
  1870. . "$ac_site_file" \
  1871. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1872. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1873. as_fn_error $? "failed to load site script $ac_site_file
  1874. See \`config.log' for more details" "$LINENO" 5; }
  1875. fi
  1876. done
  1877. if test -r "$cache_file"; then
  1878. # Some versions of bash will fail to source /dev/null (special files
  1879. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1880. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1881. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1882. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1883. case $cache_file in
  1884. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1885. *) . "./$cache_file";;
  1886. esac
  1887. fi
  1888. else
  1889. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1890. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1891. >$cache_file
  1892. fi
  1893. # Check that the precious variables saved in the cache have kept the same
  1894. # value.
  1895. ac_cache_corrupted=false
  1896. for ac_var in $ac_precious_vars; do
  1897. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1898. eval ac_new_set=\$ac_env_${ac_var}_set
  1899. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1900. eval ac_new_val=\$ac_env_${ac_var}_value
  1901. case $ac_old_set,$ac_new_set in
  1902. set,)
  1903. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1904. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1905. ac_cache_corrupted=: ;;
  1906. ,set)
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1908. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1909. ac_cache_corrupted=: ;;
  1910. ,);;
  1911. *)
  1912. if test "x$ac_old_val" != "x$ac_new_val"; then
  1913. # differences in whitespace do not lead to failure.
  1914. ac_old_val_w=`echo x $ac_old_val`
  1915. ac_new_val_w=`echo x $ac_new_val`
  1916. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1917. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1918. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1919. ac_cache_corrupted=:
  1920. else
  1921. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1922. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1923. eval $ac_var=\$ac_old_val
  1924. fi
  1925. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1926. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1928. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1929. fi;;
  1930. esac
  1931. # Pass precious variables to config.status.
  1932. if test "$ac_new_set" = set; then
  1933. case $ac_new_val in
  1934. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1935. *) ac_arg=$ac_var=$ac_new_val ;;
  1936. esac
  1937. case " $ac_configure_args " in
  1938. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1939. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1940. esac
  1941. fi
  1942. done
  1943. if $ac_cache_corrupted; then
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1945. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1947. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1948. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1949. fi
  1950. ## -------------------- ##
  1951. ## Main body of script. ##
  1952. ## -------------------- ##
  1953. ac_ext=c
  1954. ac_cpp='$CPP $CPPFLAGS'
  1955. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1956. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1957. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1958. # The libgcc should not depend on any header files
  1959. # Check whether --with-target-subdir was given.
  1960. if test "${with_target_subdir+set}" = set; then :
  1961. withval=$with_target_subdir;
  1962. fi
  1963. # Check whether --with-cross-host was given.
  1964. if test "${with_cross_host+set}" = set; then :
  1965. withval=$with_cross_host;
  1966. fi
  1967. # Check whether --with-ld was given.
  1968. if test "${with_ld+set}" = set; then :
  1969. withval=$with_ld;
  1970. fi
  1971. if test "${srcdir}" = "."; then
  1972. if test -n "${with_build_subdir}"; then
  1973. libgcc_topdir="${srcdir}/../.."
  1974. with_target_subdir=
  1975. elif test -z "${with_target_subdir}"; then
  1976. libgcc_topdir="${srcdir}/.."
  1977. else
  1978. if test "${with_target_subdir}" != "."; then
  1979. libgcc_topdir="${srcdir}/${with_multisrctop}../.."
  1980. else
  1981. libgcc_topdir="${srcdir}/${with_multisrctop}.."
  1982. fi
  1983. fi
  1984. else
  1985. libgcc_topdir="${srcdir}/.."
  1986. fi
  1987. ac_aux_dir=
  1988. for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
  1989. if test -f "$ac_dir/install-sh"; then
  1990. ac_aux_dir=$ac_dir
  1991. ac_install_sh="$ac_aux_dir/install-sh -c"
  1992. break
  1993. elif test -f "$ac_dir/install.sh"; then
  1994. ac_aux_dir=$ac_dir
  1995. ac_install_sh="$ac_aux_dir/install.sh -c"
  1996. break
  1997. elif test -f "$ac_dir/shtool"; then
  1998. ac_aux_dir=$ac_dir
  1999. ac_install_sh="$ac_aux_dir/shtool install -c"
  2000. break
  2001. fi
  2002. done
  2003. if test -z "$ac_aux_dir"; then
  2004. as_fn_error $? "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
  2005. fi
  2006. # These three variables are undocumented and unsupported,
  2007. # and are intended to be withdrawn in a future Autoconf release.
  2008. # They can cause serious problems if a builder's source tree is in a directory
  2009. # whose full name contains unusual characters.
  2010. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2011. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2012. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2013. ac_config_headers="$ac_config_headers auto-target.h:config.in"
  2014. # Check whether --enable-shared was given.
  2015. if test "${enable_shared+set}" = set; then :
  2016. enableval=$enable_shared;
  2017. case $enable_shared in
  2018. yes | no) ;;
  2019. *)
  2020. enable_shared=no
  2021. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  2022. for pkg in $enableval; do
  2023. if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
  2024. enable_shared=yes
  2025. fi
  2026. done
  2027. IFS="$ac_save_ifs"
  2028. ;;
  2029. esac
  2030. else
  2031. enable_shared=yes
  2032. fi
  2033. # Check whether --enable-vtable-verify was given.
  2034. if test "${enable_vtable_verify+set}" = set; then :
  2035. enableval=$enable_vtable_verify; case "$enableval" in
  2036. yes) enable_vtable_verify=yes ;;
  2037. no) enable_vtable_verify=no ;;
  2038. *) enable_vtable_verify=no;;
  2039. esac
  2040. else
  2041. enable_vtable_verify=no
  2042. fi
  2043. # Check whether --with-aix-soname was given.
  2044. if test "${with_aix_soname+set}" = set; then :
  2045. withval=$with_aix_soname; case "${host}:${enable_shared}" in
  2046. power*-*-aix[5-9]*:yes)
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide for shared libgcc" >&5
  2048. $as_echo_n "checking which variant of shared library versioning to provide for shared libgcc... " >&6; }
  2049. case ${withval} in
  2050. aix|svr4|both) ;;
  2051. *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5;;
  2052. esac
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  2054. $as_echo "$withval" >&6; }
  2055. ;;
  2056. *) with_aix_soname=aix ;;
  2057. esac
  2058. else
  2059. with_aix_soname=aix
  2060. fi
  2061. # Make sure we can run config.sub.
  2062. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2063. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2065. $as_echo_n "checking build system type... " >&6; }
  2066. if ${ac_cv_build+:} false; then :
  2067. $as_echo_n "(cached) " >&6
  2068. else
  2069. ac_build_alias=$build_alias
  2070. test "x$ac_build_alias" = x &&
  2071. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2072. test "x$ac_build_alias" = x &&
  2073. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2074. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2075. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2076. fi
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2078. $as_echo "$ac_cv_build" >&6; }
  2079. case $ac_cv_build in
  2080. *-*-*) ;;
  2081. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2082. esac
  2083. build=$ac_cv_build
  2084. ac_save_IFS=$IFS; IFS='-'
  2085. set x $ac_cv_build
  2086. shift
  2087. build_cpu=$1
  2088. build_vendor=$2
  2089. shift; shift
  2090. # Remember, the first character of IFS is used to create $*,
  2091. # except with old shells:
  2092. build_os=$*
  2093. IFS=$ac_save_IFS
  2094. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2096. $as_echo_n "checking host system type... " >&6; }
  2097. if ${ac_cv_host+:} false; then :
  2098. $as_echo_n "(cached) " >&6
  2099. else
  2100. if test "x$host_alias" = x; then
  2101. ac_cv_host=$ac_cv_build
  2102. else
  2103. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2104. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2105. fi
  2106. fi
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2108. $as_echo "$ac_cv_host" >&6; }
  2109. case $ac_cv_host in
  2110. *-*-*) ;;
  2111. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2112. esac
  2113. host=$ac_cv_host
  2114. ac_save_IFS=$IFS; IFS='-'
  2115. set x $ac_cv_host
  2116. shift
  2117. host_cpu=$1
  2118. host_vendor=$2
  2119. shift; shift
  2120. # Remember, the first character of IFS is used to create $*,
  2121. # except with old shells:
  2122. host_os=$*
  2123. IFS=$ac_save_IFS
  2124. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2125. case "${host}" in
  2126. # PIC is the default on some targets or must not be used.
  2127. *-*-darwin*)
  2128. # For darwin, common symbols are not allowed in MH_DYLIB files
  2129. case "${CFLAGS}" in
  2130. # If we are using a compiler supporting mdynamic-no-pic
  2131. # and the option has been tested as safe to add, then cancel
  2132. # it here, since the code generated is incompatible with shared
  2133. # libs.
  2134. *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
  2135. *) PICFLAG=-fno-common ;;
  2136. esac
  2137. ;;
  2138. alpha*-dec-osf5*)
  2139. # PIC is the default.
  2140. ;;
  2141. hppa*64*-*-hpux*)
  2142. # PIC is the default for 64-bit PA HP-UX.
  2143. ;;
  2144. i[34567]86-*-cygwin* | x86_64-*-cygwin*)
  2145. ;;
  2146. i[34567]86-*-mingw* | x86_64-*-mingw*)
  2147. ;;
  2148. i[34567]86-*-interix[3-9]*)
  2149. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  2150. # Instead, we relocate shared libraries at runtime.
  2151. ;;
  2152. i[34567]86-*-nto-qnx*)
  2153. # QNX uses GNU C++, but need to define -shared option too, otherwise
  2154. # it will coredump.
  2155. PICFLAG='-fPIC -shared'
  2156. ;;
  2157. i[34567]86-pc-msdosdjgpp*)
  2158. # DJGPP does not support shared libraries at all.
  2159. ;;
  2160. ia64*-*-hpux*)
  2161. # On IA64 HP-UX, PIC is the default but the pic flag
  2162. # sets the default TLS model and affects inlining.
  2163. PICFLAG=-fPIC
  2164. ;;
  2165. loongarch*-*-*)
  2166. PICFLAG=-fpic
  2167. ;;
  2168. mips-sgi-irix6*)
  2169. # PIC is the default.
  2170. ;;
  2171. rs6000-ibm-aix* | powerpc-ibm-aix*)
  2172. # All AIX code is PIC.
  2173. ;;
  2174. # Some targets support both -fPIC and -fpic, but prefer the latter.
  2175. # FIXME: Why?
  2176. i[34567]86-*-* | x86_64-*-*)
  2177. PICFLAG=-fpic
  2178. ;;
  2179. # FIXME: Override -fPIC default in libgcc only?
  2180. sh-*-linux* | sh[2346lbe]*-*-linux*)
  2181. PICFLAG=-fpic
  2182. ;;
  2183. # FIXME: Simplify to sh*-*-netbsd*?
  2184. sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
  2185. sh64-*-netbsd* | sh64l*-*-netbsd*)
  2186. PICFLAG=-fpic
  2187. ;;
  2188. # Default to -fPIC unless specified otherwise.
  2189. *)
  2190. PICFLAG=-fPIC
  2191. ;;
  2192. esac
  2193. # If the user explicitly uses -fpic/-fPIC, keep that.
  2194. case "${CFLAGS}" in
  2195. *-fpic*)
  2196. PICFLAG=-fpic
  2197. ;;
  2198. *-fPIC*)
  2199. PICFLAG=-fPIC
  2200. ;;
  2201. esac
  2202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2203. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2204. # Check whether --enable-version-specific-runtime-libs was given.
  2205. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2206. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  2207. yes) version_specific_libs=yes ;;
  2208. no) version_specific_libs=no ;;
  2209. *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  2210. esac
  2211. else
  2212. version_specific_libs=no
  2213. fi
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
  2215. $as_echo "$version_specific_libs" >&6; }
  2216. # Check whether --with-toolexeclibdir was given.
  2217. if test "${with_toolexeclibdir+set}" = set; then :
  2218. withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
  2219. /)
  2220. ;;
  2221. */)
  2222. with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
  2223. ;;
  2224. esac
  2225. else
  2226. with_toolexeclibdir=no
  2227. fi
  2228. # Check whether --with-slibdir was given.
  2229. if test "${with_slibdir+set}" = set; then :
  2230. withval=$with_slibdir; slibdir="$with_slibdir"
  2231. else
  2232. if test "${version_specific_libs}" = yes; then
  2233. slibdir='$(libsubdir)'
  2234. elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
  2235. case ${with_toolexeclibdir} in
  2236. no)
  2237. slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
  2238. ;;
  2239. *)
  2240. slibdir=${with_toolexeclibdir}
  2241. ;;
  2242. esac
  2243. else
  2244. slibdir='$(libdir)'
  2245. fi
  2246. fi
  2247. # Command-line options.
  2248. # Very limited version of AC_MAINTAINER_MODE.
  2249. # Check whether --enable-maintainer-mode was given.
  2250. if test "${enable_maintainer_mode+set}" = set; then :
  2251. enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
  2252. yes) MAINT='' ;;
  2253. no) MAINT='#' ;;
  2254. *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
  2255. esac
  2256. maintainer_mode=${enableval}
  2257. else
  2258. MAINT='#'
  2259. fi
  2260. # Find a good install program. We prefer a C program (faster),
  2261. # so one script is as good as another. But avoid the broken or
  2262. # incompatible versions:
  2263. # SysV /etc/install, /usr/sbin/install
  2264. # SunOS /usr/etc/install
  2265. # IRIX /sbin/install
  2266. # AIX /bin/install
  2267. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2268. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2269. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2270. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2271. # OS/2's system install, which has a completely different semantic
  2272. # ./install, which can be erroneously created by make from ./install.sh.
  2273. # Reject install programs that cannot install multiple files.
  2274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2275. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2276. if test -z "$INSTALL"; then
  2277. if ${ac_cv_path_install+:} false; then :
  2278. $as_echo_n "(cached) " >&6
  2279. else
  2280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2281. for as_dir in $PATH
  2282. do
  2283. IFS=$as_save_IFS
  2284. test -z "$as_dir" && as_dir=.
  2285. # Account for people who put trailing slashes in PATH elements.
  2286. case $as_dir/ in #((
  2287. ./ | .// | /[cC]/* | \
  2288. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2289. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2290. /usr/ucb/* ) ;;
  2291. *)
  2292. # OSF1 and SCO ODT 3.0 have their own names for install.
  2293. # Don't use installbsd from OSF since it installs stuff as root
  2294. # by default.
  2295. for ac_prog in ginstall scoinst install; do
  2296. for ac_exec_ext in '' $ac_executable_extensions; do
  2297. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2298. if test $ac_prog = install &&
  2299. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2300. # AIX install. It has an incompatible calling convention.
  2301. :
  2302. elif test $ac_prog = install &&
  2303. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2304. # program-specific install script used by HP pwplus--don't use.
  2305. :
  2306. else
  2307. rm -rf conftest.one conftest.two conftest.dir
  2308. echo one > conftest.one
  2309. echo two > conftest.two
  2310. mkdir conftest.dir
  2311. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2312. test -s conftest.one && test -s conftest.two &&
  2313. test -s conftest.dir/conftest.one &&
  2314. test -s conftest.dir/conftest.two
  2315. then
  2316. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2317. break 3
  2318. fi
  2319. fi
  2320. fi
  2321. done
  2322. done
  2323. ;;
  2324. esac
  2325. done
  2326. IFS=$as_save_IFS
  2327. rm -rf conftest.one conftest.two conftest.dir
  2328. fi
  2329. if test "${ac_cv_path_install+set}" = set; then
  2330. INSTALL=$ac_cv_path_install
  2331. else
  2332. # As a last resort, use the slow shell script. Don't cache a
  2333. # value for INSTALL within a source directory, because that will
  2334. # break other packages using the cache if that directory is
  2335. # removed, or if the value is a relative name.
  2336. INSTALL=$ac_install_sh
  2337. fi
  2338. fi
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2340. $as_echo "$INSTALL" >&6; }
  2341. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2342. # It thinks the first close brace ends the variable substitution.
  2343. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2344. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2345. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2346. for ac_prog in gawk mawk nawk awk
  2347. do
  2348. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2349. set dummy $ac_prog; ac_word=$2
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2351. $as_echo_n "checking for $ac_word... " >&6; }
  2352. if ${ac_cv_prog_AWK+:} false; then :
  2353. $as_echo_n "(cached) " >&6
  2354. else
  2355. if test -n "$AWK"; then
  2356. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2357. else
  2358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2359. for as_dir in $PATH
  2360. do
  2361. IFS=$as_save_IFS
  2362. test -z "$as_dir" && as_dir=.
  2363. for ac_exec_ext in '' $ac_executable_extensions; do
  2364. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2365. ac_cv_prog_AWK="$ac_prog"
  2366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2367. break 2
  2368. fi
  2369. done
  2370. done
  2371. IFS=$as_save_IFS
  2372. fi
  2373. fi
  2374. AWK=$ac_cv_prog_AWK
  2375. if test -n "$AWK"; then
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2377. $as_echo "$AWK" >&6; }
  2378. else
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2380. $as_echo "no" >&6; }
  2381. fi
  2382. test -n "$AWK" && break
  2383. done
  2384. # We need awk; bail out if it's missing.
  2385. case ${AWK} in
  2386. "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
  2387. esac
  2388. case ${build_alias} in
  2389. "") build_noncanonical=${build} ;;
  2390. *) build_noncanonical=${build_alias} ;;
  2391. esac
  2392. case ${host_alias} in
  2393. "") host_noncanonical=${build_noncanonical} ;;
  2394. *) host_noncanonical=${host_alias} ;;
  2395. esac
  2396. case ${target_alias} in
  2397. "") target_noncanonical=${host_noncanonical} ;;
  2398. *) target_noncanonical=${target_alias} ;;
  2399. esac
  2400. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  2401. # have matching libraries, they should use host libraries: Makefile.tpl
  2402. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  2403. # However, they still use the build modules, because the corresponding
  2404. # host modules (e.g. bison) are only built for the host when bootstrap
  2405. # finishes. So:
  2406. # - build_subdir is where we find build modules, and never changes.
  2407. # - build_libsubdir is where we find build libraries, and can be overridden.
  2408. # Prefix 'build-' so this never conflicts with target_subdir.
  2409. build_subdir="build-${build_noncanonical}"
  2410. # Check whether --with-build-libsubdir was given.
  2411. if test "${with_build_libsubdir+set}" = set; then :
  2412. withval=$with_build_libsubdir; build_libsubdir="$withval"
  2413. else
  2414. build_libsubdir="$build_subdir"
  2415. fi
  2416. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  2417. if ( test $srcdir = . && test -d gcc ) \
  2418. || test -d $srcdir/../host-${host_noncanonical}; then
  2419. host_subdir="host-${host_noncanonical}"
  2420. else
  2421. host_subdir=.
  2422. fi
  2423. # No prefix.
  2424. target_subdir=${target_noncanonical}
  2425. # Check whether --enable-gcov was given.
  2426. if test "${enable_gcov+set}" = set; then :
  2427. enableval=$enable_gcov;
  2428. else
  2429. case $target in
  2430. bpf-*-*)
  2431. enable_gcov=no
  2432. ;;
  2433. *)
  2434. enable_gcov=yes
  2435. ;;
  2436. esac
  2437. fi
  2438. # Calculate toolexeclibdir
  2439. # Also toolexecdir, though it's only used in toolexeclibdir
  2440. case ${version_specific_libs} in
  2441. yes)
  2442. # Need the gcc compiler version to know where to install libraries
  2443. # and header files if --enable-version-specific-runtime-libs option
  2444. # is selected.
  2445. toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
  2446. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  2447. ;;
  2448. no)
  2449. if test -n "$with_cross_host" &&
  2450. test x"$with_cross_host" != x"no"; then
  2451. # Install a library built with a cross compiler in tooldir, not libdir.
  2452. toolexecdir='$(exec_prefix)/$(target_noncanonical)'
  2453. case ${with_toolexeclibdir} in
  2454. no)
  2455. toolexeclibdir='$(toolexecdir)/lib'
  2456. ;;
  2457. *)
  2458. toolexeclibdir=${with_toolexeclibdir}
  2459. ;;
  2460. esac
  2461. else
  2462. toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
  2463. toolexeclibdir='$(libdir)'
  2464. fi
  2465. multi_os_directory=`$CC -print-multi-os-directory`
  2466. case $multi_os_directory in
  2467. .) ;; # Avoid trailing /.
  2468. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  2469. esac
  2470. ;;
  2471. esac
  2472. if test -n "$ac_tool_prefix"; then
  2473. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  2474. set dummy ${ac_tool_prefix}ar; ac_word=$2
  2475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2476. $as_echo_n "checking for $ac_word... " >&6; }
  2477. if ${ac_cv_prog_AR+:} false; then :
  2478. $as_echo_n "(cached) " >&6
  2479. else
  2480. if test -n "$AR"; then
  2481. ac_cv_prog_AR="$AR" # Let the user override the test.
  2482. else
  2483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2484. for as_dir in $PATH
  2485. do
  2486. IFS=$as_save_IFS
  2487. test -z "$as_dir" && as_dir=.
  2488. for ac_exec_ext in '' $ac_executable_extensions; do
  2489. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2490. ac_cv_prog_AR="${ac_tool_prefix}ar"
  2491. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2492. break 2
  2493. fi
  2494. done
  2495. done
  2496. IFS=$as_save_IFS
  2497. fi
  2498. fi
  2499. AR=$ac_cv_prog_AR
  2500. if test -n "$AR"; then
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  2502. $as_echo "$AR" >&6; }
  2503. else
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2505. $as_echo "no" >&6; }
  2506. fi
  2507. fi
  2508. if test -z "$ac_cv_prog_AR"; then
  2509. ac_ct_AR=$AR
  2510. # Extract the first word of "ar", so it can be a program name with args.
  2511. set dummy ar; ac_word=$2
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2513. $as_echo_n "checking for $ac_word... " >&6; }
  2514. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  2515. $as_echo_n "(cached) " >&6
  2516. else
  2517. if test -n "$ac_ct_AR"; then
  2518. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  2519. else
  2520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2521. for as_dir in $PATH
  2522. do
  2523. IFS=$as_save_IFS
  2524. test -z "$as_dir" && as_dir=.
  2525. for ac_exec_ext in '' $ac_executable_extensions; do
  2526. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2527. ac_cv_prog_ac_ct_AR="ar"
  2528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2529. break 2
  2530. fi
  2531. done
  2532. done
  2533. IFS=$as_save_IFS
  2534. fi
  2535. fi
  2536. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  2537. if test -n "$ac_ct_AR"; then
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  2539. $as_echo "$ac_ct_AR" >&6; }
  2540. else
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2542. $as_echo "no" >&6; }
  2543. fi
  2544. if test "x$ac_ct_AR" = x; then
  2545. AR=""
  2546. else
  2547. case $cross_compiling:$ac_tool_warned in
  2548. yes:)
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2550. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2551. ac_tool_warned=yes ;;
  2552. esac
  2553. AR=$ac_ct_AR
  2554. fi
  2555. else
  2556. AR="$ac_cv_prog_AR"
  2557. fi
  2558. if test -n "$ac_tool_prefix"; then
  2559. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  2560. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  2561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2562. $as_echo_n "checking for $ac_word... " >&6; }
  2563. if ${ac_cv_prog_LIPO+:} false; then :
  2564. $as_echo_n "(cached) " >&6
  2565. else
  2566. if test -n "$LIPO"; then
  2567. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  2568. else
  2569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2570. for as_dir in $PATH
  2571. do
  2572. IFS=$as_save_IFS
  2573. test -z "$as_dir" && as_dir=.
  2574. for ac_exec_ext in '' $ac_executable_extensions; do
  2575. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2576. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  2577. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2578. break 2
  2579. fi
  2580. done
  2581. done
  2582. IFS=$as_save_IFS
  2583. fi
  2584. fi
  2585. LIPO=$ac_cv_prog_LIPO
  2586. if test -n "$LIPO"; then
  2587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  2588. $as_echo "$LIPO" >&6; }
  2589. else
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2591. $as_echo "no" >&6; }
  2592. fi
  2593. fi
  2594. if test -z "$ac_cv_prog_LIPO"; then
  2595. ac_ct_LIPO=$LIPO
  2596. # Extract the first word of "lipo", so it can be a program name with args.
  2597. set dummy lipo; ac_word=$2
  2598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2599. $as_echo_n "checking for $ac_word... " >&6; }
  2600. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  2601. $as_echo_n "(cached) " >&6
  2602. else
  2603. if test -n "$ac_ct_LIPO"; then
  2604. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  2605. else
  2606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2607. for as_dir in $PATH
  2608. do
  2609. IFS=$as_save_IFS
  2610. test -z "$as_dir" && as_dir=.
  2611. for ac_exec_ext in '' $ac_executable_extensions; do
  2612. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2613. ac_cv_prog_ac_ct_LIPO="lipo"
  2614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2615. break 2
  2616. fi
  2617. done
  2618. done
  2619. IFS=$as_save_IFS
  2620. fi
  2621. fi
  2622. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  2623. if test -n "$ac_ct_LIPO"; then
  2624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  2625. $as_echo "$ac_ct_LIPO" >&6; }
  2626. else
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2628. $as_echo "no" >&6; }
  2629. fi
  2630. if test "x$ac_ct_LIPO" = x; then
  2631. LIPO=":"
  2632. else
  2633. case $cross_compiling:$ac_tool_warned in
  2634. yes:)
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2636. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2637. ac_tool_warned=yes ;;
  2638. esac
  2639. LIPO=$ac_ct_LIPO
  2640. fi
  2641. else
  2642. LIPO="$ac_cv_prog_LIPO"
  2643. fi
  2644. if test -n "$ac_tool_prefix"; then
  2645. # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
  2646. set dummy ${ac_tool_prefix}nm; ac_word=$2
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2648. $as_echo_n "checking for $ac_word... " >&6; }
  2649. if ${ac_cv_prog_NM+:} false; then :
  2650. $as_echo_n "(cached) " >&6
  2651. else
  2652. if test -n "$NM"; then
  2653. ac_cv_prog_NM="$NM" # Let the user override the test.
  2654. else
  2655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2656. for as_dir in $PATH
  2657. do
  2658. IFS=$as_save_IFS
  2659. test -z "$as_dir" && as_dir=.
  2660. for ac_exec_ext in '' $ac_executable_extensions; do
  2661. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2662. ac_cv_prog_NM="${ac_tool_prefix}nm"
  2663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2664. break 2
  2665. fi
  2666. done
  2667. done
  2668. IFS=$as_save_IFS
  2669. fi
  2670. fi
  2671. NM=$ac_cv_prog_NM
  2672. if test -n "$NM"; then
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  2674. $as_echo "$NM" >&6; }
  2675. else
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2677. $as_echo "no" >&6; }
  2678. fi
  2679. fi
  2680. if test -z "$ac_cv_prog_NM"; then
  2681. ac_ct_NM=$NM
  2682. # Extract the first word of "nm", so it can be a program name with args.
  2683. set dummy nm; ac_word=$2
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2685. $as_echo_n "checking for $ac_word... " >&6; }
  2686. if ${ac_cv_prog_ac_ct_NM+:} false; then :
  2687. $as_echo_n "(cached) " >&6
  2688. else
  2689. if test -n "$ac_ct_NM"; then
  2690. ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
  2691. else
  2692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2693. for as_dir in $PATH
  2694. do
  2695. IFS=$as_save_IFS
  2696. test -z "$as_dir" && as_dir=.
  2697. for ac_exec_ext in '' $ac_executable_extensions; do
  2698. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2699. ac_cv_prog_ac_ct_NM="nm"
  2700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2701. break 2
  2702. fi
  2703. done
  2704. done
  2705. IFS=$as_save_IFS
  2706. fi
  2707. fi
  2708. ac_ct_NM=$ac_cv_prog_ac_ct_NM
  2709. if test -n "$ac_ct_NM"; then
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
  2711. $as_echo "$ac_ct_NM" >&6; }
  2712. else
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2714. $as_echo "no" >&6; }
  2715. fi
  2716. if test "x$ac_ct_NM" = x; then
  2717. NM=""
  2718. else
  2719. case $cross_compiling:$ac_tool_warned in
  2720. yes:)
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2722. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2723. ac_tool_warned=yes ;;
  2724. esac
  2725. NM=$ac_ct_NM
  2726. fi
  2727. else
  2728. NM="$ac_cv_prog_NM"
  2729. fi
  2730. if test -n "$ac_tool_prefix"; then
  2731. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2732. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2734. $as_echo_n "checking for $ac_word... " >&6; }
  2735. if ${ac_cv_prog_RANLIB+:} false; then :
  2736. $as_echo_n "(cached) " >&6
  2737. else
  2738. if test -n "$RANLIB"; then
  2739. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2740. else
  2741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2742. for as_dir in $PATH
  2743. do
  2744. IFS=$as_save_IFS
  2745. test -z "$as_dir" && as_dir=.
  2746. for ac_exec_ext in '' $ac_executable_extensions; do
  2747. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2748. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2750. break 2
  2751. fi
  2752. done
  2753. done
  2754. IFS=$as_save_IFS
  2755. fi
  2756. fi
  2757. RANLIB=$ac_cv_prog_RANLIB
  2758. if test -n "$RANLIB"; then
  2759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  2760. $as_echo "$RANLIB" >&6; }
  2761. else
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2763. $as_echo "no" >&6; }
  2764. fi
  2765. fi
  2766. if test -z "$ac_cv_prog_RANLIB"; then
  2767. ac_ct_RANLIB=$RANLIB
  2768. # Extract the first word of "ranlib", so it can be a program name with args.
  2769. set dummy ranlib; ac_word=$2
  2770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2771. $as_echo_n "checking for $ac_word... " >&6; }
  2772. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  2773. $as_echo_n "(cached) " >&6
  2774. else
  2775. if test -n "$ac_ct_RANLIB"; then
  2776. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2777. else
  2778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2779. for as_dir in $PATH
  2780. do
  2781. IFS=$as_save_IFS
  2782. test -z "$as_dir" && as_dir=.
  2783. for ac_exec_ext in '' $ac_executable_extensions; do
  2784. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2785. ac_cv_prog_ac_ct_RANLIB="ranlib"
  2786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2787. break 2
  2788. fi
  2789. done
  2790. done
  2791. IFS=$as_save_IFS
  2792. fi
  2793. fi
  2794. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2795. if test -n "$ac_ct_RANLIB"; then
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  2797. $as_echo "$ac_ct_RANLIB" >&6; }
  2798. else
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2800. $as_echo "no" >&6; }
  2801. fi
  2802. if test "x$ac_ct_RANLIB" = x; then
  2803. RANLIB=":"
  2804. else
  2805. case $cross_compiling:$ac_tool_warned in
  2806. yes:)
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2808. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2809. ac_tool_warned=yes ;;
  2810. esac
  2811. RANLIB=$ac_ct_RANLIB
  2812. fi
  2813. else
  2814. RANLIB="$ac_cv_prog_RANLIB"
  2815. fi
  2816. if test -n "$ac_tool_prefix"; then
  2817. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2818. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2820. $as_echo_n "checking for $ac_word... " >&6; }
  2821. if ${ac_cv_prog_STRIP+:} false; then :
  2822. $as_echo_n "(cached) " >&6
  2823. else
  2824. if test -n "$STRIP"; then
  2825. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2826. else
  2827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2828. for as_dir in $PATH
  2829. do
  2830. IFS=$as_save_IFS
  2831. test -z "$as_dir" && as_dir=.
  2832. for ac_exec_ext in '' $ac_executable_extensions; do
  2833. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2834. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2836. break 2
  2837. fi
  2838. done
  2839. done
  2840. IFS=$as_save_IFS
  2841. fi
  2842. fi
  2843. STRIP=$ac_cv_prog_STRIP
  2844. if test -n "$STRIP"; then
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2846. $as_echo "$STRIP" >&6; }
  2847. else
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2849. $as_echo "no" >&6; }
  2850. fi
  2851. fi
  2852. if test -z "$ac_cv_prog_STRIP"; then
  2853. ac_ct_STRIP=$STRIP
  2854. # Extract the first word of "strip", so it can be a program name with args.
  2855. set dummy strip; ac_word=$2
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2857. $as_echo_n "checking for $ac_word... " >&6; }
  2858. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2859. $as_echo_n "(cached) " >&6
  2860. else
  2861. if test -n "$ac_ct_STRIP"; then
  2862. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2863. else
  2864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2865. for as_dir in $PATH
  2866. do
  2867. IFS=$as_save_IFS
  2868. test -z "$as_dir" && as_dir=.
  2869. for ac_exec_ext in '' $ac_executable_extensions; do
  2870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2871. ac_cv_prog_ac_ct_STRIP="strip"
  2872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2873. break 2
  2874. fi
  2875. done
  2876. done
  2877. IFS=$as_save_IFS
  2878. fi
  2879. fi
  2880. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2881. if test -n "$ac_ct_STRIP"; then
  2882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2883. $as_echo "$ac_ct_STRIP" >&6; }
  2884. else
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2886. $as_echo "no" >&6; }
  2887. fi
  2888. if test "x$ac_ct_STRIP" = x; then
  2889. STRIP=":"
  2890. else
  2891. case $cross_compiling:$ac_tool_warned in
  2892. yes:)
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2894. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2895. ac_tool_warned=yes ;;
  2896. esac
  2897. STRIP=$ac_ct_STRIP
  2898. fi
  2899. else
  2900. STRIP="$ac_cv_prog_STRIP"
  2901. fi
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  2903. $as_echo_n "checking whether ln -s works... " >&6; }
  2904. LN_S=$as_ln_s
  2905. if test "$LN_S" = "ln -s"; then
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2907. $as_echo "yes" >&6; }
  2908. else
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  2910. $as_echo "no, using $LN_S" >&6; }
  2911. fi
  2912. ac_ext=c
  2913. ac_cpp='$CPP $CPPFLAGS'
  2914. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2915. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2916. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2917. if test -n "$ac_tool_prefix"; then
  2918. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2919. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2921. $as_echo_n "checking for $ac_word... " >&6; }
  2922. if ${ac_cv_prog_CC+:} false; then :
  2923. $as_echo_n "(cached) " >&6
  2924. else
  2925. if test -n "$CC"; then
  2926. ac_cv_prog_CC="$CC" # Let the user override the test.
  2927. else
  2928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2929. for as_dir in $PATH
  2930. do
  2931. IFS=$as_save_IFS
  2932. test -z "$as_dir" && as_dir=.
  2933. for ac_exec_ext in '' $ac_executable_extensions; do
  2934. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2935. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2937. break 2
  2938. fi
  2939. done
  2940. done
  2941. IFS=$as_save_IFS
  2942. fi
  2943. fi
  2944. CC=$ac_cv_prog_CC
  2945. if test -n "$CC"; then
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2947. $as_echo "$CC" >&6; }
  2948. else
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2950. $as_echo "no" >&6; }
  2951. fi
  2952. fi
  2953. if test -z "$ac_cv_prog_CC"; then
  2954. ac_ct_CC=$CC
  2955. # Extract the first word of "gcc", so it can be a program name with args.
  2956. set dummy gcc; ac_word=$2
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2958. $as_echo_n "checking for $ac_word... " >&6; }
  2959. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2960. $as_echo_n "(cached) " >&6
  2961. else
  2962. if test -n "$ac_ct_CC"; then
  2963. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2964. else
  2965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2966. for as_dir in $PATH
  2967. do
  2968. IFS=$as_save_IFS
  2969. test -z "$as_dir" && as_dir=.
  2970. for ac_exec_ext in '' $ac_executable_extensions; do
  2971. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2972. ac_cv_prog_ac_ct_CC="gcc"
  2973. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2974. break 2
  2975. fi
  2976. done
  2977. done
  2978. IFS=$as_save_IFS
  2979. fi
  2980. fi
  2981. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2982. if test -n "$ac_ct_CC"; then
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2984. $as_echo "$ac_ct_CC" >&6; }
  2985. else
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2987. $as_echo "no" >&6; }
  2988. fi
  2989. if test "x$ac_ct_CC" = x; then
  2990. CC=""
  2991. else
  2992. case $cross_compiling:$ac_tool_warned in
  2993. yes:)
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2995. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2996. ac_tool_warned=yes ;;
  2997. esac
  2998. CC=$ac_ct_CC
  2999. fi
  3000. else
  3001. CC="$ac_cv_prog_CC"
  3002. fi
  3003. if test -z "$CC"; then
  3004. if test -n "$ac_tool_prefix"; then
  3005. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3006. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3008. $as_echo_n "checking for $ac_word... " >&6; }
  3009. if ${ac_cv_prog_CC+:} false; then :
  3010. $as_echo_n "(cached) " >&6
  3011. else
  3012. if test -n "$CC"; then
  3013. ac_cv_prog_CC="$CC" # Let the user override the test.
  3014. else
  3015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3016. for as_dir in $PATH
  3017. do
  3018. IFS=$as_save_IFS
  3019. test -z "$as_dir" && as_dir=.
  3020. for ac_exec_ext in '' $ac_executable_extensions; do
  3021. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3022. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3023. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3024. break 2
  3025. fi
  3026. done
  3027. done
  3028. IFS=$as_save_IFS
  3029. fi
  3030. fi
  3031. CC=$ac_cv_prog_CC
  3032. if test -n "$CC"; then
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3034. $as_echo "$CC" >&6; }
  3035. else
  3036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3037. $as_echo "no" >&6; }
  3038. fi
  3039. fi
  3040. fi
  3041. if test -z "$CC"; then
  3042. # Extract the first word of "cc", so it can be a program name with args.
  3043. set dummy cc; ac_word=$2
  3044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3045. $as_echo_n "checking for $ac_word... " >&6; }
  3046. if ${ac_cv_prog_CC+:} false; then :
  3047. $as_echo_n "(cached) " >&6
  3048. else
  3049. if test -n "$CC"; then
  3050. ac_cv_prog_CC="$CC" # Let the user override the test.
  3051. else
  3052. ac_prog_rejected=no
  3053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3054. for as_dir in $PATH
  3055. do
  3056. IFS=$as_save_IFS
  3057. test -z "$as_dir" && as_dir=.
  3058. for ac_exec_ext in '' $ac_executable_extensions; do
  3059. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3060. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3061. ac_prog_rejected=yes
  3062. continue
  3063. fi
  3064. ac_cv_prog_CC="cc"
  3065. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3066. break 2
  3067. fi
  3068. done
  3069. done
  3070. IFS=$as_save_IFS
  3071. if test $ac_prog_rejected = yes; then
  3072. # We found a bogon in the path, so make sure we never use it.
  3073. set dummy $ac_cv_prog_CC
  3074. shift
  3075. if test $# != 0; then
  3076. # We chose a different compiler from the bogus one.
  3077. # However, it has the same basename, so the bogon will be chosen
  3078. # first if we set CC to just the basename; use the full file name.
  3079. shift
  3080. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3081. fi
  3082. fi
  3083. fi
  3084. fi
  3085. CC=$ac_cv_prog_CC
  3086. if test -n "$CC"; then
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3088. $as_echo "$CC" >&6; }
  3089. else
  3090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3091. $as_echo "no" >&6; }
  3092. fi
  3093. fi
  3094. if test -z "$CC"; then
  3095. if test -n "$ac_tool_prefix"; then
  3096. for ac_prog in cl.exe
  3097. do
  3098. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3099. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3101. $as_echo_n "checking for $ac_word... " >&6; }
  3102. if ${ac_cv_prog_CC+:} false; then :
  3103. $as_echo_n "(cached) " >&6
  3104. else
  3105. if test -n "$CC"; then
  3106. ac_cv_prog_CC="$CC" # Let the user override the test.
  3107. else
  3108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3109. for as_dir in $PATH
  3110. do
  3111. IFS=$as_save_IFS
  3112. test -z "$as_dir" && as_dir=.
  3113. for ac_exec_ext in '' $ac_executable_extensions; do
  3114. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3115. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3116. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3117. break 2
  3118. fi
  3119. done
  3120. done
  3121. IFS=$as_save_IFS
  3122. fi
  3123. fi
  3124. CC=$ac_cv_prog_CC
  3125. if test -n "$CC"; then
  3126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3127. $as_echo "$CC" >&6; }
  3128. else
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3130. $as_echo "no" >&6; }
  3131. fi
  3132. test -n "$CC" && break
  3133. done
  3134. fi
  3135. if test -z "$CC"; then
  3136. ac_ct_CC=$CC
  3137. for ac_prog in cl.exe
  3138. do
  3139. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3140. set dummy $ac_prog; ac_word=$2
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3142. $as_echo_n "checking for $ac_word... " >&6; }
  3143. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3144. $as_echo_n "(cached) " >&6
  3145. else
  3146. if test -n "$ac_ct_CC"; then
  3147. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3148. else
  3149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3150. for as_dir in $PATH
  3151. do
  3152. IFS=$as_save_IFS
  3153. test -z "$as_dir" && as_dir=.
  3154. for ac_exec_ext in '' $ac_executable_extensions; do
  3155. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3156. ac_cv_prog_ac_ct_CC="$ac_prog"
  3157. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3158. break 2
  3159. fi
  3160. done
  3161. done
  3162. IFS=$as_save_IFS
  3163. fi
  3164. fi
  3165. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3166. if test -n "$ac_ct_CC"; then
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3168. $as_echo "$ac_ct_CC" >&6; }
  3169. else
  3170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3171. $as_echo "no" >&6; }
  3172. fi
  3173. test -n "$ac_ct_CC" && break
  3174. done
  3175. if test "x$ac_ct_CC" = x; then
  3176. CC=""
  3177. else
  3178. case $cross_compiling:$ac_tool_warned in
  3179. yes:)
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3181. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3182. ac_tool_warned=yes ;;
  3183. esac
  3184. CC=$ac_ct_CC
  3185. fi
  3186. fi
  3187. fi
  3188. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3189. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3190. as_fn_error $? "no acceptable C compiler found in \$PATH
  3191. See \`config.log' for more details" "$LINENO" 5; }
  3192. # Provide some information about the compiler.
  3193. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3194. set X $ac_compile
  3195. ac_compiler=$2
  3196. for ac_option in --version -v -V -qversion; do
  3197. { { ac_try="$ac_compiler $ac_option >&5"
  3198. case "(($ac_try" in
  3199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3200. *) ac_try_echo=$ac_try;;
  3201. esac
  3202. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3203. $as_echo "$ac_try_echo"; } >&5
  3204. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3205. ac_status=$?
  3206. if test -s conftest.err; then
  3207. sed '10a\
  3208. ... rest of stderr output deleted ...
  3209. 10q' conftest.err >conftest.er1
  3210. cat conftest.er1 >&5
  3211. fi
  3212. rm -f conftest.er1 conftest.err
  3213. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3214. test $ac_status = 0; }
  3215. done
  3216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3217. /* end confdefs.h. */
  3218. #include <stdio.h>
  3219. int
  3220. main ()
  3221. {
  3222. printf ("hello world\n");
  3223. ;
  3224. return 0;
  3225. }
  3226. _ACEOF
  3227. # FIXME: Cleanup?
  3228. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  3229. (eval $ac_link) 2>&5
  3230. ac_status=$?
  3231. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3232. test $ac_status = 0; }; then :
  3233. gcc_no_link=no
  3234. else
  3235. gcc_no_link=yes
  3236. fi
  3237. if test x$gcc_no_link = xyes; then
  3238. # Setting cross_compile will disable run tests; it will
  3239. # also disable AC_CHECK_FILE but that's generally
  3240. # correct if we can't link.
  3241. cross_compiling=yes
  3242. EXEEXT=
  3243. else
  3244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3245. /* end confdefs.h. */
  3246. int
  3247. main ()
  3248. {
  3249. ;
  3250. return 0;
  3251. }
  3252. _ACEOF
  3253. ac_clean_files_save=$ac_clean_files
  3254. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3255. # Try to create an executable without -o first, disregard a.out.
  3256. # It will help us diagnose broken compilers, and finding out an intuition
  3257. # of exeext.
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3259. $as_echo_n "checking whether the C compiler works... " >&6; }
  3260. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3261. # The possible output files:
  3262. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3263. ac_rmfiles=
  3264. for ac_file in $ac_files
  3265. do
  3266. case $ac_file in
  3267. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3268. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3269. esac
  3270. done
  3271. rm -f $ac_rmfiles
  3272. if { { ac_try="$ac_link_default"
  3273. case "(($ac_try" in
  3274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3275. *) ac_try_echo=$ac_try;;
  3276. esac
  3277. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3278. $as_echo "$ac_try_echo"; } >&5
  3279. (eval "$ac_link_default") 2>&5
  3280. ac_status=$?
  3281. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3282. test $ac_status = 0; }; then :
  3283. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3284. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3285. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3286. # so that the user can short-circuit this test for compilers unknown to
  3287. # Autoconf.
  3288. for ac_file in $ac_files ''
  3289. do
  3290. test -f "$ac_file" || continue
  3291. case $ac_file in
  3292. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3293. ;;
  3294. [ab].out )
  3295. # We found the default executable, but exeext='' is most
  3296. # certainly right.
  3297. break;;
  3298. *.* )
  3299. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3300. then :; else
  3301. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3302. fi
  3303. # We set ac_cv_exeext here because the later test for it is not
  3304. # safe: cross compilers may not add the suffix if given an `-o'
  3305. # argument, so we may need to know it at that point already.
  3306. # Even if this section looks crufty: it has the advantage of
  3307. # actually working.
  3308. break;;
  3309. * )
  3310. break;;
  3311. esac
  3312. done
  3313. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3314. else
  3315. ac_file=''
  3316. fi
  3317. if test -z "$ac_file"; then :
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3319. $as_echo "no" >&6; }
  3320. $as_echo "$as_me: failed program was:" >&5
  3321. sed 's/^/| /' conftest.$ac_ext >&5
  3322. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3323. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3324. as_fn_error 77 "C compiler cannot create executables
  3325. See \`config.log' for more details" "$LINENO" 5; }
  3326. else
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3328. $as_echo "yes" >&6; }
  3329. fi
  3330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3331. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3333. $as_echo "$ac_file" >&6; }
  3334. ac_exeext=$ac_cv_exeext
  3335. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3336. ac_clean_files=$ac_clean_files_save
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3338. $as_echo_n "checking for suffix of executables... " >&6; }
  3339. if { { ac_try="$ac_link"
  3340. case "(($ac_try" in
  3341. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3342. *) ac_try_echo=$ac_try;;
  3343. esac
  3344. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3345. $as_echo "$ac_try_echo"; } >&5
  3346. (eval "$ac_link") 2>&5
  3347. ac_status=$?
  3348. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3349. test $ac_status = 0; }; then :
  3350. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3351. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3352. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3353. # `rm'.
  3354. for ac_file in conftest.exe conftest conftest.*; do
  3355. test -f "$ac_file" || continue
  3356. case $ac_file in
  3357. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3358. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3359. break;;
  3360. * ) break;;
  3361. esac
  3362. done
  3363. else
  3364. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3365. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3366. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3367. See \`config.log' for more details" "$LINENO" 5; }
  3368. fi
  3369. rm -f conftest conftest$ac_cv_exeext
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3371. $as_echo "$ac_cv_exeext" >&6; }
  3372. rm -f conftest.$ac_ext
  3373. EXEEXT=$ac_cv_exeext
  3374. ac_exeext=$EXEEXT
  3375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3376. /* end confdefs.h. */
  3377. #include <stdio.h>
  3378. int
  3379. main ()
  3380. {
  3381. FILE *f = fopen ("conftest.out", "w");
  3382. return ferror (f) || fclose (f) != 0;
  3383. ;
  3384. return 0;
  3385. }
  3386. _ACEOF
  3387. ac_clean_files="$ac_clean_files conftest.out"
  3388. # Check that the compiler produces executables we can run. If not, either
  3389. # the compiler is broken, or we cross compile.
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3391. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3392. if test "$cross_compiling" != yes; then
  3393. { { ac_try="$ac_link"
  3394. case "(($ac_try" in
  3395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3396. *) ac_try_echo=$ac_try;;
  3397. esac
  3398. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3399. $as_echo "$ac_try_echo"; } >&5
  3400. (eval "$ac_link") 2>&5
  3401. ac_status=$?
  3402. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3403. test $ac_status = 0; }
  3404. if { ac_try='./conftest$ac_cv_exeext'
  3405. { { case "(($ac_try" in
  3406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3407. *) ac_try_echo=$ac_try;;
  3408. esac
  3409. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3410. $as_echo "$ac_try_echo"; } >&5
  3411. (eval "$ac_try") 2>&5
  3412. ac_status=$?
  3413. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3414. test $ac_status = 0; }; }; then
  3415. cross_compiling=no
  3416. else
  3417. if test "$cross_compiling" = maybe; then
  3418. cross_compiling=yes
  3419. else
  3420. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3421. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3422. as_fn_error $? "cannot run C compiled programs.
  3423. If you meant to cross compile, use \`--host'.
  3424. See \`config.log' for more details" "$LINENO" 5; }
  3425. fi
  3426. fi
  3427. fi
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3429. $as_echo "$cross_compiling" >&6; }
  3430. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3431. ac_clean_files=$ac_clean_files_save
  3432. fi
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3434. $as_echo_n "checking for suffix of object files... " >&6; }
  3435. if ${ac_cv_objext+:} false; then :
  3436. $as_echo_n "(cached) " >&6
  3437. else
  3438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3439. /* end confdefs.h. */
  3440. int
  3441. main ()
  3442. {
  3443. ;
  3444. return 0;
  3445. }
  3446. _ACEOF
  3447. rm -f conftest.o conftest.obj
  3448. if { { ac_try="$ac_compile"
  3449. case "(($ac_try" in
  3450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3451. *) ac_try_echo=$ac_try;;
  3452. esac
  3453. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3454. $as_echo "$ac_try_echo"; } >&5
  3455. (eval "$ac_compile") 2>&5
  3456. ac_status=$?
  3457. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3458. test $ac_status = 0; }; then :
  3459. for ac_file in conftest.o conftest.obj conftest.*; do
  3460. test -f "$ac_file" || continue;
  3461. case $ac_file in
  3462. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3463. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3464. break;;
  3465. esac
  3466. done
  3467. else
  3468. $as_echo "$as_me: failed program was:" >&5
  3469. sed 's/^/| /' conftest.$ac_ext >&5
  3470. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3471. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3472. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3473. See \`config.log' for more details" "$LINENO" 5; }
  3474. fi
  3475. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3476. fi
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3478. $as_echo "$ac_cv_objext" >&6; }
  3479. OBJEXT=$ac_cv_objext
  3480. ac_objext=$OBJEXT
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3482. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3483. if ${ac_cv_c_compiler_gnu+:} false; then :
  3484. $as_echo_n "(cached) " >&6
  3485. else
  3486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3487. /* end confdefs.h. */
  3488. int
  3489. main ()
  3490. {
  3491. #ifndef __GNUC__
  3492. choke me
  3493. #endif
  3494. ;
  3495. return 0;
  3496. }
  3497. _ACEOF
  3498. if ac_fn_c_try_compile "$LINENO"; then :
  3499. ac_compiler_gnu=yes
  3500. else
  3501. ac_compiler_gnu=no
  3502. fi
  3503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3504. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3505. fi
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3507. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3508. if test $ac_compiler_gnu = yes; then
  3509. GCC=yes
  3510. else
  3511. GCC=
  3512. fi
  3513. ac_test_CFLAGS=${CFLAGS+set}
  3514. ac_save_CFLAGS=$CFLAGS
  3515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3516. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3517. if ${ac_cv_prog_cc_g+:} false; then :
  3518. $as_echo_n "(cached) " >&6
  3519. else
  3520. ac_save_c_werror_flag=$ac_c_werror_flag
  3521. ac_c_werror_flag=yes
  3522. ac_cv_prog_cc_g=no
  3523. CFLAGS="-g"
  3524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3525. /* end confdefs.h. */
  3526. int
  3527. main ()
  3528. {
  3529. ;
  3530. return 0;
  3531. }
  3532. _ACEOF
  3533. if ac_fn_c_try_compile "$LINENO"; then :
  3534. ac_cv_prog_cc_g=yes
  3535. else
  3536. CFLAGS=""
  3537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3538. /* end confdefs.h. */
  3539. int
  3540. main ()
  3541. {
  3542. ;
  3543. return 0;
  3544. }
  3545. _ACEOF
  3546. if ac_fn_c_try_compile "$LINENO"; then :
  3547. else
  3548. ac_c_werror_flag=$ac_save_c_werror_flag
  3549. CFLAGS="-g"
  3550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3551. /* end confdefs.h. */
  3552. int
  3553. main ()
  3554. {
  3555. ;
  3556. return 0;
  3557. }
  3558. _ACEOF
  3559. if ac_fn_c_try_compile "$LINENO"; then :
  3560. ac_cv_prog_cc_g=yes
  3561. fi
  3562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3563. fi
  3564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3565. fi
  3566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3567. ac_c_werror_flag=$ac_save_c_werror_flag
  3568. fi
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3570. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3571. if test "$ac_test_CFLAGS" = set; then
  3572. CFLAGS=$ac_save_CFLAGS
  3573. elif test $ac_cv_prog_cc_g = yes; then
  3574. if test "$GCC" = yes; then
  3575. CFLAGS="-g -O2"
  3576. else
  3577. CFLAGS="-g"
  3578. fi
  3579. else
  3580. if test "$GCC" = yes; then
  3581. CFLAGS="-O2"
  3582. else
  3583. CFLAGS=
  3584. fi
  3585. fi
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3587. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3588. if ${ac_cv_prog_cc_c89+:} false; then :
  3589. $as_echo_n "(cached) " >&6
  3590. else
  3591. ac_cv_prog_cc_c89=no
  3592. ac_save_CC=$CC
  3593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3594. /* end confdefs.h. */
  3595. #include <stdarg.h>
  3596. #include <stdio.h>
  3597. struct stat;
  3598. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3599. struct buf { int x; };
  3600. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3601. static char *e (p, i)
  3602. char **p;
  3603. int i;
  3604. {
  3605. return p[i];
  3606. }
  3607. static char *f (char * (*g) (char **, int), char **p, ...)
  3608. {
  3609. char *s;
  3610. va_list v;
  3611. va_start (v,p);
  3612. s = g (p, va_arg (v,int));
  3613. va_end (v);
  3614. return s;
  3615. }
  3616. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3617. function prototypes and stuff, but not '\xHH' hex character constants.
  3618. These don't provoke an error unfortunately, instead are silently treated
  3619. as 'x'. The following induces an error, until -std is added to get
  3620. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3621. array size at least. It's necessary to write '\x00'==0 to get something
  3622. that's true only with -std. */
  3623. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3624. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3625. inside strings and character constants. */
  3626. #define FOO(x) 'x'
  3627. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3628. int test (int i, double x);
  3629. struct s1 {int (*f) (int a);};
  3630. struct s2 {int (*f) (double a);};
  3631. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3632. int argc;
  3633. char **argv;
  3634. int
  3635. main ()
  3636. {
  3637. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3638. ;
  3639. return 0;
  3640. }
  3641. _ACEOF
  3642. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3643. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3644. do
  3645. CC="$ac_save_CC $ac_arg"
  3646. if ac_fn_c_try_compile "$LINENO"; then :
  3647. ac_cv_prog_cc_c89=$ac_arg
  3648. fi
  3649. rm -f core conftest.err conftest.$ac_objext
  3650. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3651. done
  3652. rm -f conftest.$ac_ext
  3653. CC=$ac_save_CC
  3654. fi
  3655. # AC_CACHE_VAL
  3656. case "x$ac_cv_prog_cc_c89" in
  3657. x)
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3659. $as_echo "none needed" >&6; } ;;
  3660. xno)
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3662. $as_echo "unsupported" >&6; } ;;
  3663. *)
  3664. CC="$CC $ac_cv_prog_cc_c89"
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3666. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3667. esac
  3668. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3669. fi
  3670. ac_ext=c
  3671. ac_cpp='$CPP $CPPFLAGS'
  3672. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3673. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3674. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3675. ac_ext=c
  3676. ac_cpp='$CPP $CPPFLAGS'
  3677. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3678. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3679. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3681. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3682. # On Suns, sometimes $CPP names a directory.
  3683. if test -n "$CPP" && test -d "$CPP"; then
  3684. CPP=
  3685. fi
  3686. if test -z "$CPP"; then
  3687. if ${ac_cv_prog_CPP+:} false; then :
  3688. $as_echo_n "(cached) " >&6
  3689. else
  3690. # Double quotes because CPP needs to be expanded
  3691. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3692. do
  3693. ac_preproc_ok=false
  3694. for ac_c_preproc_warn_flag in '' yes
  3695. do
  3696. # Use a header file that comes with gcc, so configuring glibc
  3697. # with a fresh cross-compiler works.
  3698. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3699. # <limits.h> exists even on freestanding compilers.
  3700. # On the NeXT, cc -E runs the code through the compiler's parser,
  3701. # not just through cpp. "Syntax error" is here to catch this case.
  3702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3703. /* end confdefs.h. */
  3704. #ifdef __STDC__
  3705. # include <limits.h>
  3706. #else
  3707. # include <assert.h>
  3708. #endif
  3709. Syntax error
  3710. _ACEOF
  3711. if ac_fn_c_try_cpp "$LINENO"; then :
  3712. else
  3713. # Broken: fails on valid input.
  3714. continue
  3715. fi
  3716. rm -f conftest.err conftest.i conftest.$ac_ext
  3717. # OK, works on sane cases. Now check whether nonexistent headers
  3718. # can be detected and how.
  3719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3720. /* end confdefs.h. */
  3721. #include <ac_nonexistent.h>
  3722. _ACEOF
  3723. if ac_fn_c_try_cpp "$LINENO"; then :
  3724. # Broken: success on invalid input.
  3725. continue
  3726. else
  3727. # Passes both tests.
  3728. ac_preproc_ok=:
  3729. break
  3730. fi
  3731. rm -f conftest.err conftest.i conftest.$ac_ext
  3732. done
  3733. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3734. rm -f conftest.i conftest.err conftest.$ac_ext
  3735. if $ac_preproc_ok; then :
  3736. break
  3737. fi
  3738. done
  3739. ac_cv_prog_CPP=$CPP
  3740. fi
  3741. CPP=$ac_cv_prog_CPP
  3742. else
  3743. ac_cv_prog_CPP=$CPP
  3744. fi
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3746. $as_echo "$CPP" >&6; }
  3747. ac_preproc_ok=false
  3748. for ac_c_preproc_warn_flag in '' yes
  3749. do
  3750. # Use a header file that comes with gcc, so configuring glibc
  3751. # with a fresh cross-compiler works.
  3752. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3753. # <limits.h> exists even on freestanding compilers.
  3754. # On the NeXT, cc -E runs the code through the compiler's parser,
  3755. # not just through cpp. "Syntax error" is here to catch this case.
  3756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3757. /* end confdefs.h. */
  3758. #ifdef __STDC__
  3759. # include <limits.h>
  3760. #else
  3761. # include <assert.h>
  3762. #endif
  3763. Syntax error
  3764. _ACEOF
  3765. if ac_fn_c_try_cpp "$LINENO"; then :
  3766. else
  3767. # Broken: fails on valid input.
  3768. continue
  3769. fi
  3770. rm -f conftest.err conftest.i conftest.$ac_ext
  3771. # OK, works on sane cases. Now check whether nonexistent headers
  3772. # can be detected and how.
  3773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3774. /* end confdefs.h. */
  3775. #include <ac_nonexistent.h>
  3776. _ACEOF
  3777. if ac_fn_c_try_cpp "$LINENO"; then :
  3778. # Broken: success on invalid input.
  3779. continue
  3780. else
  3781. # Passes both tests.
  3782. ac_preproc_ok=:
  3783. break
  3784. fi
  3785. rm -f conftest.err conftest.i conftest.$ac_ext
  3786. done
  3787. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3788. rm -f conftest.i conftest.err conftest.$ac_ext
  3789. if $ac_preproc_ok; then :
  3790. else
  3791. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3792. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3793. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3794. See \`config.log' for more details" "$LINENO" 5; }
  3795. fi
  3796. ac_ext=c
  3797. ac_cpp='$CPP $CPPFLAGS'
  3798. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3799. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3800. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3801. ac_c_preproc_warn_flag=yes
  3802. # Check whether --enable-largefile was given.
  3803. if test "${enable_largefile+set}" = set; then :
  3804. enableval=$enable_largefile;
  3805. fi
  3806. if test "$enable_largefile" != no; then
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  3808. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  3809. if ${ac_cv_sys_largefile_CC+:} false; then :
  3810. $as_echo_n "(cached) " >&6
  3811. else
  3812. ac_cv_sys_largefile_CC=no
  3813. if test "$GCC" != yes; then
  3814. ac_save_CC=$CC
  3815. while :; do
  3816. # IRIX 6.2 and later do not support large files by default,
  3817. # so use the C compiler's -n32 option if that helps.
  3818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3819. /* end confdefs.h. */
  3820. #include <sys/types.h>
  3821. /* Check that off_t can represent 2**63 - 1 correctly.
  3822. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3823. since some C++ compilers masquerading as C compilers
  3824. incorrectly reject 9223372036854775807. */
  3825. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3826. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3827. && LARGE_OFF_T % 2147483647 == 1)
  3828. ? 1 : -1];
  3829. int
  3830. main ()
  3831. {
  3832. ;
  3833. return 0;
  3834. }
  3835. _ACEOF
  3836. if ac_fn_c_try_compile "$LINENO"; then :
  3837. break
  3838. fi
  3839. rm -f core conftest.err conftest.$ac_objext
  3840. CC="$CC -n32"
  3841. if ac_fn_c_try_compile "$LINENO"; then :
  3842. ac_cv_sys_largefile_CC=' -n32'; break
  3843. fi
  3844. rm -f core conftest.err conftest.$ac_objext
  3845. break
  3846. done
  3847. CC=$ac_save_CC
  3848. rm -f conftest.$ac_ext
  3849. fi
  3850. fi
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  3852. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  3853. if test "$ac_cv_sys_largefile_CC" != no; then
  3854. CC=$CC$ac_cv_sys_largefile_CC
  3855. fi
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  3857. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  3858. if ${ac_cv_sys_file_offset_bits+:} false; then :
  3859. $as_echo_n "(cached) " >&6
  3860. else
  3861. while :; do
  3862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3863. /* end confdefs.h. */
  3864. #include <sys/types.h>
  3865. /* Check that off_t can represent 2**63 - 1 correctly.
  3866. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3867. since some C++ compilers masquerading as C compilers
  3868. incorrectly reject 9223372036854775807. */
  3869. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3870. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3871. && LARGE_OFF_T % 2147483647 == 1)
  3872. ? 1 : -1];
  3873. int
  3874. main ()
  3875. {
  3876. ;
  3877. return 0;
  3878. }
  3879. _ACEOF
  3880. if ac_fn_c_try_compile "$LINENO"; then :
  3881. ac_cv_sys_file_offset_bits=no; break
  3882. fi
  3883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3885. /* end confdefs.h. */
  3886. #define _FILE_OFFSET_BITS 64
  3887. #include <sys/types.h>
  3888. /* Check that off_t can represent 2**63 - 1 correctly.
  3889. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3890. since some C++ compilers masquerading as C compilers
  3891. incorrectly reject 9223372036854775807. */
  3892. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3893. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3894. && LARGE_OFF_T % 2147483647 == 1)
  3895. ? 1 : -1];
  3896. int
  3897. main ()
  3898. {
  3899. ;
  3900. return 0;
  3901. }
  3902. _ACEOF
  3903. if ac_fn_c_try_compile "$LINENO"; then :
  3904. ac_cv_sys_file_offset_bits=64; break
  3905. fi
  3906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3907. ac_cv_sys_file_offset_bits=unknown
  3908. break
  3909. done
  3910. fi
  3911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  3912. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  3913. case $ac_cv_sys_file_offset_bits in #(
  3914. no | unknown) ;;
  3915. *)
  3916. cat >>confdefs.h <<_ACEOF
  3917. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  3918. _ACEOF
  3919. ;;
  3920. esac
  3921. rm -rf conftest*
  3922. if test $ac_cv_sys_file_offset_bits = unknown; then
  3923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  3924. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  3925. if ${ac_cv_sys_large_files+:} false; then :
  3926. $as_echo_n "(cached) " >&6
  3927. else
  3928. while :; do
  3929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3930. /* end confdefs.h. */
  3931. #include <sys/types.h>
  3932. /* Check that off_t can represent 2**63 - 1 correctly.
  3933. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3934. since some C++ compilers masquerading as C compilers
  3935. incorrectly reject 9223372036854775807. */
  3936. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3937. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3938. && LARGE_OFF_T % 2147483647 == 1)
  3939. ? 1 : -1];
  3940. int
  3941. main ()
  3942. {
  3943. ;
  3944. return 0;
  3945. }
  3946. _ACEOF
  3947. if ac_fn_c_try_compile "$LINENO"; then :
  3948. ac_cv_sys_large_files=no; break
  3949. fi
  3950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3952. /* end confdefs.h. */
  3953. #define _LARGE_FILES 1
  3954. #include <sys/types.h>
  3955. /* Check that off_t can represent 2**63 - 1 correctly.
  3956. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3957. since some C++ compilers masquerading as C compilers
  3958. incorrectly reject 9223372036854775807. */
  3959. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3960. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3961. && LARGE_OFF_T % 2147483647 == 1)
  3962. ? 1 : -1];
  3963. int
  3964. main ()
  3965. {
  3966. ;
  3967. return 0;
  3968. }
  3969. _ACEOF
  3970. if ac_fn_c_try_compile "$LINENO"; then :
  3971. ac_cv_sys_large_files=1; break
  3972. fi
  3973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3974. ac_cv_sys_large_files=unknown
  3975. break
  3976. done
  3977. fi
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  3979. $as_echo "$ac_cv_sys_large_files" >&6; }
  3980. case $ac_cv_sys_large_files in #(
  3981. no | unknown) ;;
  3982. *)
  3983. cat >>confdefs.h <<_ACEOF
  3984. #define _LARGE_FILES $ac_cv_sys_large_files
  3985. _ACEOF
  3986. ;;
  3987. esac
  3988. rm -rf conftest*
  3989. fi
  3990. fi
  3991. # The cast to long int works around a bug in the HP C Compiler
  3992. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3993. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3994. # This bug is HP SR number 8606223364.
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
  3996. $as_echo_n "checking size of double... " >&6; }
  3997. if ${ac_cv_sizeof_double+:} false; then :
  3998. $as_echo_n "(cached) " >&6
  3999. else
  4000. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
  4001. else
  4002. if test "$ac_cv_type_double" = yes; then
  4003. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4004. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4005. as_fn_error 77 "cannot compute sizeof (double)
  4006. See \`config.log' for more details" "$LINENO" 5; }
  4007. else
  4008. ac_cv_sizeof_double=0
  4009. fi
  4010. fi
  4011. fi
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
  4013. $as_echo "$ac_cv_sizeof_double" >&6; }
  4014. cat >>confdefs.h <<_ACEOF
  4015. #define SIZEOF_DOUBLE $ac_cv_sizeof_double
  4016. _ACEOF
  4017. # The cast to long int works around a bug in the HP C Compiler
  4018. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4019. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4020. # This bug is HP SR number 8606223364.
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
  4022. $as_echo_n "checking size of long double... " >&6; }
  4023. if ${ac_cv_sizeof_long_double+:} false; then :
  4024. $as_echo_n "(cached) " >&6
  4025. else
  4026. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
  4027. else
  4028. if test "$ac_cv_type_long_double" = yes; then
  4029. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4030. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4031. as_fn_error 77 "cannot compute sizeof (long double)
  4032. See \`config.log' for more details" "$LINENO" 5; }
  4033. else
  4034. ac_cv_sizeof_long_double=0
  4035. fi
  4036. fi
  4037. fi
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
  4039. $as_echo "$ac_cv_sizeof_long_double" >&6; }
  4040. cat >>confdefs.h <<_ACEOF
  4041. #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
  4042. _ACEOF
  4043. as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val
  4044. as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val
  4045. for ac_header in inttypes.h stdint.h stdlib.h ftw.h \
  4046. unistd.h sys/stat.h sys/types.h \
  4047. string.h strings.h memory.h sys/auxv.h sys/mman.h
  4048. do :
  4049. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4050. ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
  4051. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4052. cat >>confdefs.h <<_ACEOF
  4053. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4054. _ACEOF
  4055. fi
  4056. done
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4058. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4059. if ${ac_cv_path_GREP+:} false; then :
  4060. $as_echo_n "(cached) " >&6
  4061. else
  4062. if test -z "$GREP"; then
  4063. ac_path_GREP_found=false
  4064. # Loop through the user's path and test for each of PROGNAME-LIST
  4065. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4066. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4067. do
  4068. IFS=$as_save_IFS
  4069. test -z "$as_dir" && as_dir=.
  4070. for ac_prog in grep ggrep; do
  4071. for ac_exec_ext in '' $ac_executable_extensions; do
  4072. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4073. as_fn_executable_p "$ac_path_GREP" || continue
  4074. # Check for GNU ac_path_GREP and select it if it is found.
  4075. # Check for GNU $ac_path_GREP
  4076. case `"$ac_path_GREP" --version 2>&1` in
  4077. *GNU*)
  4078. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4079. *)
  4080. ac_count=0
  4081. $as_echo_n 0123456789 >"conftest.in"
  4082. while :
  4083. do
  4084. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4085. mv "conftest.tmp" "conftest.in"
  4086. cp "conftest.in" "conftest.nl"
  4087. $as_echo 'GREP' >> "conftest.nl"
  4088. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4089. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4090. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4091. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4092. # Best one so far, save it but keep looking for a better one
  4093. ac_cv_path_GREP="$ac_path_GREP"
  4094. ac_path_GREP_max=$ac_count
  4095. fi
  4096. # 10*(2^10) chars as input seems more than enough
  4097. test $ac_count -gt 10 && break
  4098. done
  4099. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4100. esac
  4101. $ac_path_GREP_found && break 3
  4102. done
  4103. done
  4104. done
  4105. IFS=$as_save_IFS
  4106. if test -z "$ac_cv_path_GREP"; then
  4107. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4108. fi
  4109. else
  4110. ac_cv_path_GREP=$GREP
  4111. fi
  4112. fi
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4114. $as_echo "$ac_cv_path_GREP" >&6; }
  4115. GREP="$ac_cv_path_GREP"
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4117. $as_echo_n "checking for egrep... " >&6; }
  4118. if ${ac_cv_path_EGREP+:} false; then :
  4119. $as_echo_n "(cached) " >&6
  4120. else
  4121. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4122. then ac_cv_path_EGREP="$GREP -E"
  4123. else
  4124. if test -z "$EGREP"; then
  4125. ac_path_EGREP_found=false
  4126. # Loop through the user's path and test for each of PROGNAME-LIST
  4127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4128. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4129. do
  4130. IFS=$as_save_IFS
  4131. test -z "$as_dir" && as_dir=.
  4132. for ac_prog in egrep; do
  4133. for ac_exec_ext in '' $ac_executable_extensions; do
  4134. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4135. as_fn_executable_p "$ac_path_EGREP" || continue
  4136. # Check for GNU ac_path_EGREP and select it if it is found.
  4137. # Check for GNU $ac_path_EGREP
  4138. case `"$ac_path_EGREP" --version 2>&1` in
  4139. *GNU*)
  4140. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4141. *)
  4142. ac_count=0
  4143. $as_echo_n 0123456789 >"conftest.in"
  4144. while :
  4145. do
  4146. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4147. mv "conftest.tmp" "conftest.in"
  4148. cp "conftest.in" "conftest.nl"
  4149. $as_echo 'EGREP' >> "conftest.nl"
  4150. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4151. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4152. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4153. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4154. # Best one so far, save it but keep looking for a better one
  4155. ac_cv_path_EGREP="$ac_path_EGREP"
  4156. ac_path_EGREP_max=$ac_count
  4157. fi
  4158. # 10*(2^10) chars as input seems more than enough
  4159. test $ac_count -gt 10 && break
  4160. done
  4161. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4162. esac
  4163. $ac_path_EGREP_found && break 3
  4164. done
  4165. done
  4166. done
  4167. IFS=$as_save_IFS
  4168. if test -z "$ac_cv_path_EGREP"; then
  4169. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4170. fi
  4171. else
  4172. ac_cv_path_EGREP=$EGREP
  4173. fi
  4174. fi
  4175. fi
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4177. $as_echo "$ac_cv_path_EGREP" >&6; }
  4178. EGREP="$ac_cv_path_EGREP"
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4180. $as_echo_n "checking for ANSI C header files... " >&6; }
  4181. if ${ac_cv_header_stdc+:} false; then :
  4182. $as_echo_n "(cached) " >&6
  4183. else
  4184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4185. /* end confdefs.h. */
  4186. #include <stdlib.h>
  4187. #include <stdarg.h>
  4188. #include <string.h>
  4189. #include <float.h>
  4190. int
  4191. main ()
  4192. {
  4193. ;
  4194. return 0;
  4195. }
  4196. _ACEOF
  4197. if ac_fn_c_try_compile "$LINENO"; then :
  4198. ac_cv_header_stdc=yes
  4199. else
  4200. ac_cv_header_stdc=no
  4201. fi
  4202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4203. if test $ac_cv_header_stdc = yes; then
  4204. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4206. /* end confdefs.h. */
  4207. #include <string.h>
  4208. _ACEOF
  4209. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4210. $EGREP "memchr" >/dev/null 2>&1; then :
  4211. else
  4212. ac_cv_header_stdc=no
  4213. fi
  4214. rm -f conftest*
  4215. fi
  4216. if test $ac_cv_header_stdc = yes; then
  4217. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4219. /* end confdefs.h. */
  4220. #include <stdlib.h>
  4221. _ACEOF
  4222. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4223. $EGREP "free" >/dev/null 2>&1; then :
  4224. else
  4225. ac_cv_header_stdc=no
  4226. fi
  4227. rm -f conftest*
  4228. fi
  4229. if test $ac_cv_header_stdc = yes; then
  4230. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4231. if test "$cross_compiling" = yes; then :
  4232. :
  4233. else
  4234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4235. /* end confdefs.h. */
  4236. #include <ctype.h>
  4237. #include <stdlib.h>
  4238. #if ((' ' & 0x0FF) == 0x020)
  4239. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4240. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4241. #else
  4242. # define ISLOWER(c) \
  4243. (('a' <= (c) && (c) <= 'i') \
  4244. || ('j' <= (c) && (c) <= 'r') \
  4245. || ('s' <= (c) && (c) <= 'z'))
  4246. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4247. #endif
  4248. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4249. int
  4250. main ()
  4251. {
  4252. int i;
  4253. for (i = 0; i < 256; i++)
  4254. if (XOR (islower (i), ISLOWER (i))
  4255. || toupper (i) != TOUPPER (i))
  4256. return 2;
  4257. return 0;
  4258. }
  4259. _ACEOF
  4260. if ac_fn_c_try_run "$LINENO"; then :
  4261. else
  4262. ac_cv_header_stdc=no
  4263. fi
  4264. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4265. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4266. fi
  4267. fi
  4268. fi
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4270. $as_echo "$ac_cv_header_stdc" >&6; }
  4271. if test $ac_cv_header_stdc = yes; then
  4272. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4273. fi
  4274. # Check for decimal float support.
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
  4276. $as_echo_n "checking whether decimal floating point is supported... " >&6; }
  4277. if ${libgcc_cv_dfp+:} false; then :
  4278. $as_echo_n "(cached) " >&6
  4279. else
  4280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4281. /* end confdefs.h. */
  4282. #include <fenv.h>
  4283. int
  4284. main ()
  4285. {
  4286. _Decimal32 x;
  4287. int fe_except =
  4288. FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT;
  4289. ;
  4290. return 0;
  4291. }
  4292. _ACEOF
  4293. if ac_fn_c_try_compile "$LINENO"; then :
  4294. libgcc_cv_dfp=yes
  4295. else
  4296. libgcc_cv_dfp=no
  4297. fi
  4298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4299. fi
  4300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
  4301. $as_echo "$libgcc_cv_dfp" >&6; }
  4302. decimal_float=$libgcc_cv_dfp
  4303. # Check whether --enable-decimal-float was given.
  4304. if test "${enable_decimal_float+set}" = set; then :
  4305. enableval=$enable_decimal_float;
  4306. case $enable_decimal_float in
  4307. yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
  4308. *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
  4309. Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
  4310. esac
  4311. else
  4312. case $host in
  4313. powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
  4314. i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
  4315. i?86*-*-mingw* | x86_64*-*-mingw* | \
  4316. i?86*-*-cygwin* | x86_64*-*-cygwin*)
  4317. enable_decimal_float=yes
  4318. ;;
  4319. *)
  4320. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
  4321. $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
  4322. enable_decimal_float=no
  4323. ;;
  4324. esac
  4325. fi
  4326. # x86's use BID format instead of DPD
  4327. case x$enable_decimal_float in
  4328. xyes)
  4329. case $host in
  4330. i?86*-*-* | x86_64*-*-*)
  4331. enable_decimal_float=bid
  4332. ;;
  4333. *)
  4334. enable_decimal_float=dpd
  4335. ;;
  4336. esac
  4337. default_decimal_float=$enable_decimal_float
  4338. ;;
  4339. xno)
  4340. # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
  4341. # dependency on libdecnumber.
  4342. default_decimal_float=dpd
  4343. ;;
  4344. esac
  4345. # Check for fixed-point support.
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
  4347. $as_echo_n "checking whether fixed-point is supported... " >&6; }
  4348. if ${libgcc_cv_fixed_point+:} false; then :
  4349. $as_echo_n "(cached) " >&6
  4350. else
  4351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4352. /* end confdefs.h. */
  4353. _Sat _Fract x;
  4354. _ACEOF
  4355. if ac_fn_c_try_compile "$LINENO"; then :
  4356. libgcc_cv_fixed_point=yes
  4357. else
  4358. libgcc_cv_fixed_point=no
  4359. fi
  4360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4361. fi
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
  4363. $as_echo "$libgcc_cv_fixed_point" >&6; }
  4364. fixed_point=$libgcc_cv_fixed_point
  4365. # For platforms with the unwind ABI which includes an unwind library,
  4366. # libunwind, we can choose to use the system libunwind.
  4367. # config.gcc also contains tests of with_system_libunwind.
  4368. # Check whether --with-system-libunwind was given.
  4369. if test "${with_system_libunwind+set}" = set; then :
  4370. withval=$with_system_libunwind;
  4371. fi
  4372. # If system-libunwind was not specifically set, pick a default setting.
  4373. if test x$with_system_libunwind = x; then
  4374. case ${target} in
  4375. ia64-*-hpux*) with_system_libunwind=yes ;;
  4376. *) with_system_libunwind=no ;;
  4377. esac
  4378. fi
  4379. # Based on system-libunwind and target, do we have ipinfo?
  4380. if test x$with_system_libunwind = xyes; then
  4381. case ${target} in
  4382. ia64-*-*) have_unwind_getipinfo=no ;;
  4383. *) have_unwind_getipinfo=yes ;;
  4384. esac
  4385. else
  4386. # Darwin before version 9 does not have _Unwind_GetIPInfo.
  4387. case ${target} in
  4388. *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
  4389. *) have_unwind_getipinfo=yes ;;
  4390. esac
  4391. fi
  4392. if test x$have_unwind_getipinfo = xyes; then
  4393. $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
  4394. fi
  4395. # Check if the compiler is configured for setjmp/longjmp exceptions.
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is configured for setjmp/longjmp exceptions" >&5
  4397. $as_echo_n "checking whether the compiler is configured for setjmp/longjmp exceptions... " >&6; }
  4398. if ${ac_cv_sjlj_exceptions+:} false; then :
  4399. $as_echo_n "(cached) " >&6
  4400. else
  4401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4402. /* end confdefs.h. */
  4403. #ifdef __USING_SJLJ_EXCEPTIONS__
  4404. this will fail
  4405. #endif
  4406. int
  4407. main ()
  4408. {
  4409. int i;
  4410. ;
  4411. return 0;
  4412. }
  4413. _ACEOF
  4414. if ac_fn_c_try_compile "$LINENO"; then :
  4415. ac_cv_sjlj_exceptions=no
  4416. else
  4417. ac_cv_sjlj_exceptions=yes
  4418. fi
  4419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4420. fi
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sjlj_exceptions" >&5
  4422. $as_echo "$ac_cv_sjlj_exceptions" >&6; }
  4423. # Check whether --enable-cet was given.
  4424. if test "${enable_cet+set}" = set; then :
  4425. enableval=$enable_cet;
  4426. case "$enableval" in
  4427. yes|no|auto) ;;
  4428. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  4429. esac
  4430. else
  4431. enable_cet=auto
  4432. fi
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  4434. $as_echo_n "checking for CET support... " >&6; }
  4435. # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
  4436. case "$host" in
  4437. i[34567]86-*-linux* | x86_64-*-linux*)
  4438. case "$enable_cet" in
  4439. auto)
  4440. # Check if target supports multi-byte NOPs
  4441. # and if compiler and assembler support CET insn.
  4442. cet_save_CFLAGS="$CFLAGS"
  4443. CFLAGS="$CFLAGS -fcf-protection"
  4444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4445. /* end confdefs.h. */
  4446. int
  4447. main ()
  4448. {
  4449. #if !defined(__SSE2__)
  4450. #error target does not support multi-byte NOPs
  4451. #else
  4452. asm ("setssbsy");
  4453. #endif
  4454. ;
  4455. return 0;
  4456. }
  4457. _ACEOF
  4458. if ac_fn_c_try_compile "$LINENO"; then :
  4459. enable_cet=yes
  4460. else
  4461. enable_cet=no
  4462. fi
  4463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4464. CFLAGS="$cet_save_CFLAGS"
  4465. ;;
  4466. yes)
  4467. # Check if assembler supports CET.
  4468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4469. /* end confdefs.h. */
  4470. int
  4471. main ()
  4472. {
  4473. asm ("setssbsy");
  4474. ;
  4475. return 0;
  4476. }
  4477. _ACEOF
  4478. if ac_fn_c_try_compile "$LINENO"; then :
  4479. else
  4480. as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
  4481. fi
  4482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4483. ;;
  4484. esac
  4485. ;;
  4486. *)
  4487. enable_cet=no
  4488. ;;
  4489. esac
  4490. if test x$enable_cet = xyes; then
  4491. CET_FLAGS="-fcf-protection -mshstk"
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4493. $as_echo "yes" >&6; }
  4494. else
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4496. $as_echo "no" >&6; }
  4497. fi
  4498. # Check whether --enable-explicit-exception-frame-registration was given.
  4499. if test "${enable_explicit_exception_frame_registration+set}" = set; then :
  4500. enableval=$enable_explicit_exception_frame_registration;
  4501. force_explicit_eh_registry=
  4502. if test "$enable_explicit_exception_frame_registration" = yes; then
  4503. if test $ac_cv_sjlj_exceptions = yes; then
  4504. as_fn_error $? "Can't --enable-explicit-exception-frame-registration
  4505. with setjmp/longjmp exceptions" "$LINENO" 5
  4506. fi
  4507. force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS
  4508. fi
  4509. fi
  4510. # Check whether --enable-tm-clone-registry was given.
  4511. if test "${enable_tm_clone_registry+set}" = set; then :
  4512. enableval=$enable_tm_clone_registry;
  4513. use_tm_clone_registry=
  4514. if test "$enable_tm_clone_registry" = no; then
  4515. use_tm_clone_registry=-DUSE_TM_CLONE_REGISTRY=0
  4516. fi
  4517. else
  4518. use_tm_clone_registry=
  4519. case $target in
  4520. msp430*elfbare)
  4521. use_tm_clone_registry=-DUSE_TM_CLONE_REGISTRY=0
  4522. ;;
  4523. esac
  4524. fi
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4526. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4527. if ${acl_cv_prog_gnu_ld+:} false; then :
  4528. $as_echo_n "(cached) " >&6
  4529. else
  4530. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  4531. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  4532. acl_cv_prog_gnu_ld=yes
  4533. else
  4534. acl_cv_prog_gnu_ld=no
  4535. fi
  4536. fi
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  4538. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  4539. with_gnu_ld=$acl_cv_prog_gnu_ld
  4540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
  4541. $as_echo_n "checking for thread model used by GCC... " >&6; }
  4542. target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
  4544. $as_echo "$target_thread_file" >&6; }
  4545. # Check for assembler CFI support.
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
  4547. $as_echo_n "checking whether assembler supports CFI directives... " >&6; }
  4548. if ${libgcc_cv_cfi+:} false; then :
  4549. $as_echo_n "(cached) " >&6
  4550. else
  4551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4552. /* end confdefs.h. */
  4553. asm("\n\
  4554. .text\n\
  4555. .cfi_startproc\n\
  4556. .cfi_personality 0, symbol\n\
  4557. .cfi_endproc");
  4558. _ACEOF
  4559. if ac_fn_c_try_compile "$LINENO"; then :
  4560. libgcc_cv_cfi=yes
  4561. else
  4562. libgcc_cv_cfi=no
  4563. fi
  4564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4565. fi
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
  4567. $as_echo "$libgcc_cv_cfi" >&6; }
  4568. # Check 32bit or 64bit. In the case of MIPS, this really determines the
  4569. # word size rather than the address size.
  4570. cat > conftest.c <<EOF
  4571. #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \
  4572. || defined(__mips64) || defined(__loongarch64)
  4573. host_address=64
  4574. #else
  4575. host_address=32
  4576. #endif
  4577. EOF
  4578. eval `${CC-cc} -E conftest.c | grep host_address=`
  4579. rm -f conftest.c
  4580. case ${host} in
  4581. mips*-*-*)
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target is hard-float" >&5
  4583. $as_echo_n "checking whether the target is hard-float... " >&6; }
  4584. if ${libgcc_cv_mips_hard_float+:} false; then :
  4585. $as_echo_n "(cached) " >&6
  4586. else
  4587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4588. /* end confdefs.h. */
  4589. #ifndef __mips_hard_float
  4590. #error FOO
  4591. #endif
  4592. _ACEOF
  4593. if ac_fn_c_try_compile "$LINENO"; then :
  4594. libgcc_cv_mips_hard_float=yes
  4595. else
  4596. libgcc_cv_mips_hard_float=no
  4597. fi
  4598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4599. fi
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_mips_hard_float" >&5
  4601. $as_echo "$libgcc_cv_mips_hard_float" >&6; }
  4602. esac
  4603. case ${host} in
  4604. *-*-solaris2*)
  4605. # Check for system-provided CRTs on Solaris 11.4.
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
  4607. $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
  4608. if ${libgcc_cv_solaris_crts+:} false; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. libgcc_cv_solaris_crts=no
  4612. libgcc_sysroot="`${CC} -print-sysroot`"
  4613. libgcc_libdir="$libgcc_sysroot/usr/lib"
  4614. # At the time they were added, gcrt1.o became a symlink for backwards
  4615. # compatibility on x86, while crt1.o was added on sparc, so check for that.
  4616. case ${host} in
  4617. i?86-*-solaris2* | x86_64-*-solaris2*)
  4618. if test -h "$libgcc_libdir/gcrt1.o"; then libgcc_cv_solaris_crts=yes; fi
  4619. ;;
  4620. sparc*-*-solaris2*)
  4621. if test -f "$libgcc_libdir/crt1.o"; then libgcc_cv_solaris_crts=yes; fi
  4622. ;;
  4623. esac
  4624. fi
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_solaris_crts" >&5
  4626. $as_echo "$libgcc_cv_solaris_crts" >&6; }
  4627. if test $libgcc_cv_solaris_crts = yes; then
  4628. $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
  4629. fi
  4630. ;;
  4631. esac
  4632. # Determine the version of glibc, if any, used on the target.
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
  4634. $as_echo_n "checking for target glibc version... " >&6; }
  4635. # Check whether --with-glibc-version was given.
  4636. if test "${with_glibc_version+set}" = set; then :
  4637. withval=$with_glibc_version;
  4638. if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
  4639. glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
  4640. glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
  4641. else
  4642. as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
  4643. fi
  4644. else
  4645. if ac_fn_c_compute_int "$LINENO" "__GLIBC__" "glibc_version_major" "#include <features.h>"; then :
  4646. else
  4647. glibc_version_major=0
  4648. fi
  4649. if ac_fn_c_compute_int "$LINENO" "__GLIBC_MINOR__" "glibc_version_minor" "#include <features.h>"; then :
  4650. else
  4651. glibc_version_minor=0
  4652. fi
  4653. fi
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
  4655. $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
  4656. # Determine floating-point type for powerpc*-*-linux* or vxworks7*.
  4657. # Single-precision-only FPRs are not a supported configuration for
  4658. # this target, so are not allowed for in this test.
  4659. case ${host} in
  4660. powerpc*-*-linux* | powerpc*-*-vxworks7*)
  4661. cat > conftest.c <<EOF
  4662. #ifdef __powerpc64__
  4663. ppc_fp_type=64
  4664. #elif defined _SOFT_FLOAT
  4665. ppc_fp_type=soft
  4666. #elif defined _SOFT_DOUBLE
  4667. ppc_fp_type=e500v1
  4668. #elif defined __NO_FPRS__
  4669. ppc_fp_type=e500v2
  4670. #else
  4671. ppc_fp_type=hard
  4672. #endif
  4673. EOF
  4674. eval `${CC-cc} -E conftest.c | grep ppc_fp_type=`
  4675. rm -f conftest.c
  4676. # glibc 2.19 and later provide all the soft-fp functions, with proper
  4677. # interactions with <fenv.h> exception and rounding mode handling, so
  4678. # make libgcc's versions into compat symbols if a recent enough glibc
  4679. # version is being used.
  4680. ppc_fp_compat=
  4681. case ${ppc_fp_type} in
  4682. soft|e500v1|e500v2)
  4683. if test $glibc_version_major -gt 2 \
  4684. || ( test $glibc_version_major -eq 2 \
  4685. && test $glibc_version_minor -ge 19 ); then
  4686. ppc_fp_compat="t-softfp-compat"
  4687. fi
  4688. ;;
  4689. esac
  4690. ;;
  4691. esac
  4692. case ${host} in
  4693. # At present, we cannot turn -mfloat128 on via #pragma GCC target, so just
  4694. # check if we have VSX (ISA 2.06) support to build the software libraries, and
  4695. # whether the assembler can handle xsaddqp for hardware support. Also check if
  4696. # a new glibc is being used so that __builtin_cpu_supports can be used.
  4697. powerpc*-*-linux*)
  4698. saved_CFLAGS="$CFLAGS"
  4699. CFLAGS="$CFLAGS -mabi=altivec -mvsx -mfloat128"
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 2.06 to build __float128 libraries" >&5
  4701. $as_echo_n "checking for PowerPC ISA 2.06 to build __float128 libraries... " >&6; }
  4702. if ${libgcc_cv_powerpc_float128+:} false; then :
  4703. $as_echo_n "(cached) " >&6
  4704. else
  4705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4706. /* end confdefs.h. */
  4707. vector double dadd (vector double a, vector double b) { return a + b; }
  4708. _ACEOF
  4709. if ac_fn_c_try_compile "$LINENO"; then :
  4710. libgcc_cv_powerpc_float128=yes
  4711. else
  4712. libgcc_cv_powerpc_float128=no
  4713. fi
  4714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4715. fi
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128" >&5
  4717. $as_echo "$libgcc_cv_powerpc_float128" >&6; }
  4718. CFLAGS="$CFLAGS -mpower9-vector -mfloat128-hardware"
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.0 to build hardware __float128 libraries" >&5
  4720. $as_echo_n "checking for PowerPC ISA 3.0 to build hardware __float128 libraries... " >&6; }
  4721. if ${libgcc_cv_powerpc_float128_hw+:} false; then :
  4722. $as_echo_n "(cached) " >&6
  4723. else
  4724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4725. /* end confdefs.h. */
  4726. #include <sys/auxv.h>
  4727. #ifndef AT_PLATFORM
  4728. #error "AT_PLATFORM is not defined"
  4729. #endif
  4730. #ifndef __BUILTIN_CPU_SUPPORTS__
  4731. #error "__builtin_cpu_supports is not available"
  4732. #endif
  4733. vector unsigned char add (vector unsigned char a, vector unsigned char b)
  4734. {
  4735. vector unsigned char ret;
  4736. __asm__ ("xsaddqp %0,%1,%2" : "=v" (ret) : "v" (a), "v" (b));
  4737. return ret;
  4738. }
  4739. void *add_resolver (void) { return (void *) add; }
  4740. __float128 add_ifunc (__float128, __float128)
  4741. __attribute__ ((__ifunc__ ("add_resolver")));
  4742. _ACEOF
  4743. if ac_fn_c_try_compile "$LINENO"; then :
  4744. libgcc_cv_powerpc_float128_hw=yes
  4745. else
  4746. libgcc_cv_powerpc_float128_hw=no
  4747. fi
  4748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4749. fi
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128_hw" >&5
  4751. $as_echo "$libgcc_cv_powerpc_float128_hw" >&6; }
  4752. CFLAGS="$saved_CFLAGS"
  4753. saved_CFLAGS="$CFLAGS"
  4754. CFLAGS="$CFLAGS -mcpu=power10 -mfloat128-hardware"
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.1 to build hardware __float128 libraries" >&5
  4756. $as_echo_n "checking for PowerPC ISA 3.1 to build hardware __float128 libraries... " >&6; }
  4757. if ${libgcc_cv_powerpc_3_1_float128_hw+:} false; then :
  4758. $as_echo_n "(cached) " >&6
  4759. else
  4760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4761. /* end confdefs.h. */
  4762. #include <sys/auxv.h>
  4763. #ifndef AT_PLATFORM
  4764. #error "AT_PLATFORM is not defined"
  4765. #endif
  4766. #ifndef __BUILTIN_CPU_SUPPORTS__
  4767. #error "__builtin_cpu_supports is not available"
  4768. #endif
  4769. vector unsigned char conv (vector unsigned char qs)
  4770. {
  4771. vector unsigned char ret;
  4772. __asm__ ("xscvsqqp %0,%1" : "=v" (ret) : "v" (qs));
  4773. return ret;
  4774. }
  4775. void *conv_resolver (void) { return (void *) conv; }
  4776. __float128 conv_ifunc (__float128)
  4777. __attribute__ ((__ifunc__ ("conv_resolver")));
  4778. _ACEOF
  4779. if ac_fn_c_try_compile "$LINENO"; then :
  4780. libgcc_cv_powerpc_3_1_float128_hw=yes
  4781. else
  4782. libgcc_cv_powerpc_3_1_float128_hw=no
  4783. fi
  4784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4785. fi
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_3_1_float128_hw" >&5
  4787. $as_echo "$libgcc_cv_powerpc_3_1_float128_hw" >&6; }
  4788. CFLAGS="$saved_CFLAGS"
  4789. esac
  4790. # Collect host-machine-specific information.
  4791. . ${srcdir}/config.host
  4792. # Used for constructing correct paths for offload compilers.
  4793. accel_dir_suffix=
  4794. real_host_noncanonical=${host_noncanonical}
  4795. if test x"$enable_as_accelerator_for" != x; then
  4796. accel_dir_suffix=/accel/${target_noncanonical}
  4797. real_host_noncanonical=${enable_as_accelerator_for}
  4798. fi
  4799. if test x"$enable_offload_targets" != x; then
  4800. extra_parts="${extra_parts} crtoffloadbegin.o crtoffloadend.o crtoffloadtable.o"
  4801. fi
  4802. # Check if Solaris/x86 linker supports ZERO terminator unwind entries.
  4803. # This is after config.host so we can augment tmake_file.
  4804. # Link with -nostartfiles -nodefaultlibs since neither are present while
  4805. # building libgcc.
  4806. case ${host} in
  4807. i?86-*-solaris2* | x86_64-*-solaris2*)
  4808. cat > conftest.s <<EOF
  4809. .section .eh_frame,"a",@unwind
  4810. .zero 4
  4811. .section .jcr,"aw",@progbits
  4812. .zero 8
  4813. EOF
  4814. if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
  4815. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  4816. (eval $ac_try) 2>&5
  4817. ac_status=$?
  4818. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4819. test $ac_status = 0; }; }; then
  4820. tmake_file="${tmake_file} i386/t-crtstuff"
  4821. fi
  4822. ;;
  4823. esac
  4824. # Check if Solaris linker support v2 linker mapfile syntax.
  4825. # Link with -nostartfiles -nodefaultlibs since neither are present while
  4826. # building libgcc.
  4827. case ${host} in
  4828. *-*-solaris2*)
  4829. solaris_ld_v2_maps=no
  4830. echo 'int main(void) {return 0;}' > conftest.c
  4831. echo '$mapfile_version 2' > conftest.map
  4832. if { ac_try='${CC-cc} -nostartfiles -nodefaultlibs -Wl,-M,conftest.map -o conftest conftest.c 1>&5'
  4833. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  4834. (eval $ac_try) 2>&5
  4835. ac_status=$?
  4836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4837. test $ac_status = 0; }; }; then
  4838. solaris_ld_v2_maps=yes
  4839. fi
  4840. ;;
  4841. esac
  4842. # Check if xtensa target is configured for windowed ABI and thus needs to use
  4843. # custom unwind code.
  4844. # This is after config.host so we can augment tmake_file.
  4845. case ${host} in
  4846. xtensa*-*)
  4847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4848. /* end confdefs.h. */
  4849. #ifdef __XTENSA_CALL0_ABI__
  4850. #error
  4851. #endif
  4852. _ACEOF
  4853. if ac_fn_c_try_compile "$LINENO"; then :
  4854. tmake_file="${tmake_file} xtensa/t-windowed"
  4855. fi
  4856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4857. ;;
  4858. esac
  4859. # Check for visibility support. This is after config.host so that
  4860. # we can check for asm_hidden_op.
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
  4862. $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
  4863. if ${libgcc_cv_hidden_visibility_attribute+:} false; then :
  4864. $as_echo_n "(cached) " >&6
  4865. else
  4866. echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
  4867. libgcc_cv_hidden_visibility_attribute=no
  4868. if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
  4869. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  4870. (eval $ac_try) 2>&5
  4871. ac_status=$?
  4872. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4873. test $ac_status = 0; }; }; then
  4874. if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
  4875. libgcc_cv_hidden_visibility_attribute=yes
  4876. fi
  4877. fi
  4878. rm -f conftest.*
  4879. fi
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
  4881. $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
  4882. if test $libgcc_cv_hidden_visibility_attribute = yes; then
  4883. vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
  4884. cat >>confdefs.h <<_ACEOF
  4885. #define AS_HIDDEN_DIRECTIVE $asm_hidden_op
  4886. _ACEOF
  4887. else
  4888. vis_hide=
  4889. fi
  4890. # Check for .cfi_sections .debug_frame support.
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .cfi_sections .debug_frame" >&5
  4892. $as_echo_n "checking for .cfi_sections .debug_frame... " >&6; }
  4893. if ${libgcc_cv_cfi_sections_directive+:} false; then :
  4894. $as_echo_n "(cached) " >&6
  4895. else
  4896. echo 'int foo (int, char *);' > conftest.c
  4897. echo 'int bar (int x) { char *y = __builtin_alloca (x); return foo (x + 1, y) + 1; }' >> conftest.c
  4898. libgcc_cv_cfi_sections_directive=no
  4899. if { ac_try='${CC-cc} -Werror -g -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-exceptions -S conftest.c -o conftest.s 1>&5'
  4900. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  4901. (eval $ac_try) 2>&5
  4902. ac_status=$?
  4903. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4904. test $ac_status = 0; }; }; then
  4905. if grep "\\.cfi_sections.*\\.debug_frame" conftest.s >/dev/null; then
  4906. libgcc_cv_cfi_sections_directive=yes
  4907. fi
  4908. fi
  4909. rm -f conftest.*
  4910. fi
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi_sections_directive" >&5
  4912. $as_echo "$libgcc_cv_cfi_sections_directive" >&6; }
  4913. if test $libgcc_cv_cfi_sections_directive = yes; then
  4914. $as_echo "#define HAVE_AS_CFI_SECTIONS 1" >>confdefs.h
  4915. fi
  4916. # See if we have thread-local storage. We can only test assembler
  4917. # since link-time and run-time tests require the newly built
  4918. # gcc, which can't be used to build executable due to that libgcc
  4919. # is yet to be built here.
  4920. # Check whether --enable-tls was given.
  4921. if test "${enable_tls+set}" = set; then :
  4922. enableval=$enable_tls;
  4923. case "$enableval" in
  4924. yes|no) ;;
  4925. *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
  4926. esac
  4927. else
  4928. enable_tls=yes
  4929. fi
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
  4931. $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
  4932. if ${gcc_cv_have_cc_tls+:} false; then :
  4933. $as_echo_n "(cached) " >&6
  4934. else
  4935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4936. /* end confdefs.h. */
  4937. __thread int a; int b; int main() { return a = b; }
  4938. _ACEOF
  4939. if ac_fn_c_try_compile "$LINENO"; then :
  4940. gcc_cv_have_cc_tls=yes
  4941. else
  4942. gcc_cv_have_cc_tls=no
  4943. fi
  4944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4945. fi
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
  4947. $as_echo "$gcc_cv_have_cc_tls" >&6; }
  4948. set_have_cc_tls=
  4949. if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
  4950. set_have_cc_tls="-DHAVE_CC_TLS"
  4951. fi
  4952. # See if we have emulated thread-local storage.
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
  4954. $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
  4955. if ${gcc_cv_use_emutls+:} false; then :
  4956. $as_echo_n "(cached) " >&6
  4957. else
  4958. gcc_cv_use_emutls=no
  4959. echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
  4960. if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
  4961. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  4962. (eval $ac_try) 2>&5
  4963. ac_status=$?
  4964. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4965. test $ac_status = 0; }; }; then
  4966. if grep __emutls_get_address conftest.s > /dev/null; then
  4967. gcc_cv_use_emutls=yes
  4968. fi
  4969. fi
  4970. rm -f conftest.*
  4971. fi
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
  4973. $as_echo "$gcc_cv_use_emutls" >&6; }
  4974. if test "$gcc_cv_use_emutls" = "yes" ; then
  4975. $as_echo "#define USE_EMUTLS 1" >>confdefs.h
  4976. fi
  4977. set_use_emutls=
  4978. if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
  4979. set_use_emutls="-DUSE_EMUTLS"
  4980. fi
  4981. case "${target}" in
  4982. i[34567]86-*-* | x86_64-*-*)
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
  4984. $as_echo_n "checking if the assembler supports AVX... " >&6; }
  4985. if ${libgcc_cv_as_avx+:} false; then :
  4986. $as_echo_n "(cached) " >&6
  4987. else
  4988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4989. /* end confdefs.h. */
  4990. int
  4991. main ()
  4992. {
  4993. asm("vzeroupper");
  4994. ;
  4995. return 0;
  4996. }
  4997. _ACEOF
  4998. if ac_fn_c_try_compile "$LINENO"; then :
  4999. libgcc_cv_as_avx=yes
  5000. else
  5001. libgcc_cv_as_avx=no
  5002. fi
  5003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5004. fi
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_avx" >&5
  5006. $as_echo "$libgcc_cv_as_avx" >&6; }
  5007. if test x$libgcc_cv_as_avx = xyes; then
  5008. $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
  5009. fi
  5010. ;;
  5011. esac
  5012. case "${target}" in
  5013. aarch64*-*-*)
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports LSE" >&5
  5015. $as_echo_n "checking if the assembler supports LSE... " >&6; }
  5016. if ${libgcc_cv_as_lse+:} false; then :
  5017. $as_echo_n "(cached) " >&6
  5018. else
  5019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5020. /* end confdefs.h. */
  5021. int
  5022. main ()
  5023. {
  5024. asm(".arch armv8-a+lse\n\tcas w0, w1, [x2]");
  5025. ;
  5026. return 0;
  5027. }
  5028. _ACEOF
  5029. if ac_fn_c_try_compile "$LINENO"; then :
  5030. libgcc_cv_as_lse=yes
  5031. else
  5032. libgcc_cv_as_lse=no
  5033. fi
  5034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5035. fi
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_lse" >&5
  5037. $as_echo "$libgcc_cv_as_lse" >&6; }
  5038. if test x$libgcc_cv_as_lse = xyes; then
  5039. $as_echo "#define HAVE_AS_LSE 1" >>confdefs.h
  5040. fi
  5041. ;;
  5042. esac
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
  5044. $as_echo_n "checking for init priority support... " >&6; }
  5045. if ${libgcc_cv_init_priority+:} false; then :
  5046. $as_echo_n "(cached) " >&6
  5047. else
  5048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5049. /* end confdefs.h. */
  5050. int
  5051. main ()
  5052. {
  5053. void ip (void) __attribute__ ((constructor (1)));
  5054. ;
  5055. return 0;
  5056. }
  5057. _ACEOF
  5058. if ac_fn_c_try_compile "$LINENO"; then :
  5059. libgcc_cv_init_priority=yes
  5060. else
  5061. libgcc_cv_init_priority=no
  5062. fi
  5063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5064. fi
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5
  5066. $as_echo "$libgcc_cv_init_priority" >&6; }
  5067. if test $libgcc_cv_init_priority = yes; then
  5068. $as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h
  5069. fi
  5070. # Conditionalize the sfp-machine.h header for this target machine.
  5071. if test -z "${sfp_machine_header}"; then
  5072. sfp_machine_header=$cpu_type/sfp-machine.h
  5073. if test -f ${srcdir}/config/${sfp_machine_header}; then
  5074. :
  5075. else
  5076. sfp_machine_header=no-sfp-machine.h
  5077. fi
  5078. fi
  5079. # Conditionalize the makefile for this target machine.
  5080. tmake_file_=
  5081. for f in ${tmake_file}
  5082. do
  5083. if test -f ${srcdir}/config/$f
  5084. then
  5085. tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
  5086. fi
  5087. done
  5088. tmake_file="${tmake_file_}"
  5089. # Likewise export definitions for libgcc_tm.h
  5090. tm_file_=
  5091. for f in ${tm_file}
  5092. do
  5093. tm_file_="${tm_file_} \$(srcdir)/config/$f"
  5094. done
  5095. tm_file="${tm_file_}"
  5096. # Map from thread model to thread header.
  5097. case $target_thread_file in
  5098. aix) thread_header=config/rs6000/gthr-aix.h ;;
  5099. dce) thread_header=config/pa/gthr-dce.h ;;
  5100. gcn) thread_header=config/gcn/gthr-gcn.h ;;
  5101. lynx) thread_header=config/gthr-lynx.h ;;
  5102. mipssde) thread_header=config/mips/gthr-mipssde.h ;;
  5103. posix) thread_header=gthr-posix.h ;;
  5104. rtems) thread_header=config/gthr-rtems.h ;;
  5105. single) thread_header=gthr-single.h ;;
  5106. tpf) thread_header=config/s390/gthr-tpf.h ;;
  5107. vxworks) thread_header=config/gthr-vxworks.h ;;
  5108. win32) thread_header=config/i386/gthr-win32.h ;;
  5109. esac
  5110. # Determine what GCC version number to use in filesystem paths.
  5111. get_gcc_base_ver="cat"
  5112. # Check whether --with-gcc-major-version-only was given.
  5113. if test "${with_gcc_major_version_only+set}" = set; then :
  5114. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  5115. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  5116. fi
  5117. fi
  5118. # Substitute configuration variables
  5119. # We need multilib support.
  5120. ac_config_files="$ac_config_files Makefile"
  5121. ac_config_commands="$ac_config_commands default"
  5122. cat >confcache <<\_ACEOF
  5123. # This file is a shell script that caches the results of configure
  5124. # tests run on this system so they can be shared between configure
  5125. # scripts and configure runs, see configure's option --config-cache.
  5126. # It is not useful on other systems. If it contains results you don't
  5127. # want to keep, you may remove or edit it.
  5128. #
  5129. # config.status only pays attention to the cache file if you give it
  5130. # the --recheck option to rerun configure.
  5131. #
  5132. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5133. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5134. # following values.
  5135. _ACEOF
  5136. # The following way of writing the cache mishandles newlines in values,
  5137. # but we know of no workaround that is simple, portable, and efficient.
  5138. # So, we kill variables containing newlines.
  5139. # Ultrix sh set writes to stderr and can't be redirected directly,
  5140. # and sets the high bit in the cache file unless we assign to the vars.
  5141. (
  5142. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5143. eval ac_val=\$$ac_var
  5144. case $ac_val in #(
  5145. *${as_nl}*)
  5146. case $ac_var in #(
  5147. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5148. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5149. esac
  5150. case $ac_var in #(
  5151. _ | IFS | as_nl) ;; #(
  5152. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5153. *) { eval $ac_var=; unset $ac_var;} ;;
  5154. esac ;;
  5155. esac
  5156. done
  5157. (set) 2>&1 |
  5158. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5159. *${as_nl}ac_space=\ *)
  5160. # `set' does not quote correctly, so add quotes: double-quote
  5161. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5162. sed -n \
  5163. "s/'/'\\\\''/g;
  5164. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5165. ;; #(
  5166. *)
  5167. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5168. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5169. ;;
  5170. esac |
  5171. sort
  5172. ) |
  5173. sed '
  5174. /^ac_cv_env_/b end
  5175. t clear
  5176. :clear
  5177. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5178. t end
  5179. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5180. :end' >>confcache
  5181. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5182. if test -w "$cache_file"; then
  5183. if test "x$cache_file" != "x/dev/null"; then
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5185. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5186. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5187. cat confcache >"$cache_file"
  5188. else
  5189. case $cache_file in #(
  5190. */* | ?:*)
  5191. mv -f confcache "$cache_file"$$ &&
  5192. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5193. *)
  5194. mv -f confcache "$cache_file" ;;
  5195. esac
  5196. fi
  5197. fi
  5198. else
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5200. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5201. fi
  5202. fi
  5203. rm -f confcache
  5204. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5205. # Let make expand exec_prefix.
  5206. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5207. DEFS=-DHAVE_CONFIG_H
  5208. ac_libobjs=
  5209. ac_ltlibobjs=
  5210. U=
  5211. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  5212. # 1. Remove the extension, and $U if already installed.
  5213. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  5214. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  5215. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  5216. # will be set to the directory where LIBOBJS objects are built.
  5217. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  5218. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  5219. done
  5220. LIBOBJS=$ac_libobjs
  5221. LTLIBOBJS=$ac_ltlibobjs
  5222. : "${CONFIG_STATUS=./config.status}"
  5223. ac_write_fail=0
  5224. ac_clean_files_save=$ac_clean_files
  5225. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  5226. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  5227. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  5228. as_write_fail=0
  5229. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  5230. #! $SHELL
  5231. # Generated by $as_me.
  5232. # Run this file to recreate the current configuration.
  5233. # Compiler output produced by configure, useful for debugging
  5234. # configure, is in config.log if it exists.
  5235. debug=false
  5236. ac_cs_recheck=false
  5237. ac_cs_silent=false
  5238. SHELL=\${CONFIG_SHELL-$SHELL}
  5239. export SHELL
  5240. _ASEOF
  5241. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  5242. ## -------------------- ##
  5243. ## M4sh Initialization. ##
  5244. ## -------------------- ##
  5245. # Be more Bourne compatible
  5246. DUALCASE=1; export DUALCASE # for MKS sh
  5247. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  5248. emulate sh
  5249. NULLCMD=:
  5250. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  5251. # is contrary to our usage. Disable this feature.
  5252. alias -g '${1+"$@"}'='"$@"'
  5253. setopt NO_GLOB_SUBST
  5254. else
  5255. case `(set -o) 2>/dev/null` in #(
  5256. *posix*) :
  5257. set -o posix ;; #(
  5258. *) :
  5259. ;;
  5260. esac
  5261. fi
  5262. as_nl='
  5263. '
  5264. export as_nl
  5265. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  5266. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5267. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  5268. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  5269. # Prefer a ksh shell builtin over an external printf program on Solaris,
  5270. # but without wasting forks for bash or zsh.
  5271. if test -z "$BASH_VERSION$ZSH_VERSION" \
  5272. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  5273. as_echo='print -r --'
  5274. as_echo_n='print -rn --'
  5275. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  5276. as_echo='printf %s\n'
  5277. as_echo_n='printf %s'
  5278. else
  5279. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  5280. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  5281. as_echo_n='/usr/ucb/echo -n'
  5282. else
  5283. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  5284. as_echo_n_body='eval
  5285. arg=$1;
  5286. case $arg in #(
  5287. *"$as_nl"*)
  5288. expr "X$arg" : "X\\(.*\\)$as_nl";
  5289. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  5290. esac;
  5291. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  5292. '
  5293. export as_echo_n_body
  5294. as_echo_n='sh -c $as_echo_n_body as_echo'
  5295. fi
  5296. export as_echo_body
  5297. as_echo='sh -c $as_echo_body as_echo'
  5298. fi
  5299. # The user is always right.
  5300. if test "${PATH_SEPARATOR+set}" != set; then
  5301. PATH_SEPARATOR=:
  5302. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  5303. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  5304. PATH_SEPARATOR=';'
  5305. }
  5306. fi
  5307. # IFS
  5308. # We need space, tab and new line, in precisely that order. Quoting is
  5309. # there to prevent editors from complaining about space-tab.
  5310. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  5311. # splitting by setting IFS to empty value.)
  5312. IFS=" "" $as_nl"
  5313. # Find who we are. Look in the path if we contain no directory separator.
  5314. as_myself=
  5315. case $0 in #((
  5316. *[\\/]* ) as_myself=$0 ;;
  5317. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5318. for as_dir in $PATH
  5319. do
  5320. IFS=$as_save_IFS
  5321. test -z "$as_dir" && as_dir=.
  5322. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  5323. done
  5324. IFS=$as_save_IFS
  5325. ;;
  5326. esac
  5327. # We did not find ourselves, most probably we were run as `sh COMMAND'
  5328. # in which case we are not to be found in the path.
  5329. if test "x$as_myself" = x; then
  5330. as_myself=$0
  5331. fi
  5332. if test ! -f "$as_myself"; then
  5333. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  5334. exit 1
  5335. fi
  5336. # Unset variables that we do not need and which cause bugs (e.g. in
  5337. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  5338. # suppresses any "Segmentation fault" message there. '((' could
  5339. # trigger a bug in pdksh 5.2.14.
  5340. for as_var in BASH_ENV ENV MAIL MAILPATH
  5341. do eval test x\${$as_var+set} = xset \
  5342. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  5343. done
  5344. PS1='$ '
  5345. PS2='> '
  5346. PS4='+ '
  5347. # NLS nuisances.
  5348. LC_ALL=C
  5349. export LC_ALL
  5350. LANGUAGE=C
  5351. export LANGUAGE
  5352. # CDPATH.
  5353. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  5354. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  5355. # ----------------------------------------
  5356. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  5357. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  5358. # script with STATUS, using 1 if that was 0.
  5359. as_fn_error ()
  5360. {
  5361. as_status=$1; test $as_status -eq 0 && as_status=1
  5362. if test "$4"; then
  5363. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  5364. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  5365. fi
  5366. $as_echo "$as_me: error: $2" >&2
  5367. as_fn_exit $as_status
  5368. } # as_fn_error
  5369. # as_fn_set_status STATUS
  5370. # -----------------------
  5371. # Set $? to STATUS, without forking.
  5372. as_fn_set_status ()
  5373. {
  5374. return $1
  5375. } # as_fn_set_status
  5376. # as_fn_exit STATUS
  5377. # -----------------
  5378. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  5379. as_fn_exit ()
  5380. {
  5381. set +e
  5382. as_fn_set_status $1
  5383. exit $1
  5384. } # as_fn_exit
  5385. # as_fn_unset VAR
  5386. # ---------------
  5387. # Portably unset VAR.
  5388. as_fn_unset ()
  5389. {
  5390. { eval $1=; unset $1;}
  5391. }
  5392. as_unset=as_fn_unset
  5393. # as_fn_append VAR VALUE
  5394. # ----------------------
  5395. # Append the text in VALUE to the end of the definition contained in VAR. Take
  5396. # advantage of any shell optimizations that allow amortized linear growth over
  5397. # repeated appends, instead of the typical quadratic growth present in naive
  5398. # implementations.
  5399. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  5400. eval 'as_fn_append ()
  5401. {
  5402. eval $1+=\$2
  5403. }'
  5404. else
  5405. as_fn_append ()
  5406. {
  5407. eval $1=\$$1\$2
  5408. }
  5409. fi # as_fn_append
  5410. # as_fn_arith ARG...
  5411. # ------------------
  5412. # Perform arithmetic evaluation on the ARGs, and store the result in the
  5413. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  5414. # must be portable across $(()) and expr.
  5415. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  5416. eval 'as_fn_arith ()
  5417. {
  5418. as_val=$(( $* ))
  5419. }'
  5420. else
  5421. as_fn_arith ()
  5422. {
  5423. as_val=`expr "$@" || test $? -eq 1`
  5424. }
  5425. fi # as_fn_arith
  5426. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5427. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5428. as_expr=expr
  5429. else
  5430. as_expr=false
  5431. fi
  5432. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  5433. as_basename=basename
  5434. else
  5435. as_basename=false
  5436. fi
  5437. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  5438. as_dirname=dirname
  5439. else
  5440. as_dirname=false
  5441. fi
  5442. as_me=`$as_basename -- "$0" ||
  5443. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5444. X"$0" : 'X\(//\)$' \| \
  5445. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  5446. $as_echo X/"$0" |
  5447. sed '/^.*\/\([^/][^/]*\)\/*$/{
  5448. s//\1/
  5449. q
  5450. }
  5451. /^X\/\(\/\/\)$/{
  5452. s//\1/
  5453. q
  5454. }
  5455. /^X\/\(\/\).*/{
  5456. s//\1/
  5457. q
  5458. }
  5459. s/.*/./; q'`
  5460. # Avoid depending upon Character Ranges.
  5461. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5462. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  5463. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  5464. as_cr_digits='0123456789'
  5465. as_cr_alnum=$as_cr_Letters$as_cr_digits
  5466. ECHO_C= ECHO_N= ECHO_T=
  5467. case `echo -n x` in #(((((
  5468. -n*)
  5469. case `echo 'xy\c'` in
  5470. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  5471. xy) ECHO_C='\c';;
  5472. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  5473. ECHO_T=' ';;
  5474. esac;;
  5475. *)
  5476. ECHO_N='-n';;
  5477. esac
  5478. rm -f conf$$ conf$$.exe conf$$.file
  5479. if test -d conf$$.dir; then
  5480. rm -f conf$$.dir/conf$$.file
  5481. else
  5482. rm -f conf$$.dir
  5483. mkdir conf$$.dir 2>/dev/null
  5484. fi
  5485. if (echo >conf$$.file) 2>/dev/null; then
  5486. if ln -s conf$$.file conf$$ 2>/dev/null; then
  5487. as_ln_s='ln -s'
  5488. # ... but there are two gotchas:
  5489. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  5490. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  5491. # In both cases, we have to default to `cp -pR'.
  5492. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  5493. as_ln_s='cp -pR'
  5494. elif ln conf$$.file conf$$ 2>/dev/null; then
  5495. as_ln_s=ln
  5496. else
  5497. as_ln_s='cp -pR'
  5498. fi
  5499. else
  5500. as_ln_s='cp -pR'
  5501. fi
  5502. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  5503. rmdir conf$$.dir 2>/dev/null
  5504. # as_fn_mkdir_p
  5505. # -------------
  5506. # Create "$as_dir" as a directory, including parents if necessary.
  5507. as_fn_mkdir_p ()
  5508. {
  5509. case $as_dir in #(
  5510. -*) as_dir=./$as_dir;;
  5511. esac
  5512. test -d "$as_dir" || eval $as_mkdir_p || {
  5513. as_dirs=
  5514. while :; do
  5515. case $as_dir in #(
  5516. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  5517. *) as_qdir=$as_dir;;
  5518. esac
  5519. as_dirs="'$as_qdir' $as_dirs"
  5520. as_dir=`$as_dirname -- "$as_dir" ||
  5521. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5522. X"$as_dir" : 'X\(//\)[^/]' \| \
  5523. X"$as_dir" : 'X\(//\)$' \| \
  5524. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  5525. $as_echo X"$as_dir" |
  5526. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5527. s//\1/
  5528. q
  5529. }
  5530. /^X\(\/\/\)[^/].*/{
  5531. s//\1/
  5532. q
  5533. }
  5534. /^X\(\/\/\)$/{
  5535. s//\1/
  5536. q
  5537. }
  5538. /^X\(\/\).*/{
  5539. s//\1/
  5540. q
  5541. }
  5542. s/.*/./; q'`
  5543. test -d "$as_dir" && break
  5544. done
  5545. test -z "$as_dirs" || eval "mkdir $as_dirs"
  5546. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  5547. } # as_fn_mkdir_p
  5548. if mkdir -p . 2>/dev/null; then
  5549. as_mkdir_p='mkdir -p "$as_dir"'
  5550. else
  5551. test -d ./-p && rmdir ./-p
  5552. as_mkdir_p=false
  5553. fi
  5554. # as_fn_executable_p FILE
  5555. # -----------------------
  5556. # Test if FILE is an executable regular file.
  5557. as_fn_executable_p ()
  5558. {
  5559. test -f "$1" && test -x "$1"
  5560. } # as_fn_executable_p
  5561. as_test_x='test -x'
  5562. as_executable_p=as_fn_executable_p
  5563. # Sed expression to map a string onto a valid CPP name.
  5564. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5565. # Sed expression to map a string onto a valid variable name.
  5566. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5567. exec 6>&1
  5568. ## ----------------------------------- ##
  5569. ## Main body of $CONFIG_STATUS script. ##
  5570. ## ----------------------------------- ##
  5571. _ASEOF
  5572. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  5573. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5574. # Save the log message, to keep $0 and so on meaningful, and to
  5575. # report actual input values of CONFIG_FILES etc. instead of their
  5576. # values after options handling.
  5577. ac_log="
  5578. This file was extended by GNU C Runtime Library $as_me 1.0, which was
  5579. generated by GNU Autoconf 2.69. Invocation command line was
  5580. CONFIG_FILES = $CONFIG_FILES
  5581. CONFIG_HEADERS = $CONFIG_HEADERS
  5582. CONFIG_LINKS = $CONFIG_LINKS
  5583. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5584. $ $0 $@
  5585. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  5586. "
  5587. _ACEOF
  5588. case $ac_config_files in *"
  5589. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  5590. esac
  5591. case $ac_config_headers in *"
  5592. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  5593. esac
  5594. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5595. # Files that config.status was made for.
  5596. config_files="$ac_config_files"
  5597. config_headers="$ac_config_headers"
  5598. config_commands="$ac_config_commands"
  5599. _ACEOF
  5600. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5601. ac_cs_usage="\
  5602. \`$as_me' instantiates files and other configuration actions
  5603. from templates according to the current configuration. Unless the files
  5604. and actions are specified as TAGs, all are instantiated by default.
  5605. Usage: $0 [OPTION]... [TAG]...
  5606. -h, --help print this help, then exit
  5607. -V, --version print version number and configuration settings, then exit
  5608. --config print configuration, then exit
  5609. -q, --quiet, --silent
  5610. do not print progress messages
  5611. -d, --debug don't remove temporary files
  5612. --recheck update $as_me by reconfiguring in the same conditions
  5613. --file=FILE[:TEMPLATE]
  5614. instantiate the configuration file FILE
  5615. --header=FILE[:TEMPLATE]
  5616. instantiate the configuration header FILE
  5617. Configuration files:
  5618. $config_files
  5619. Configuration headers:
  5620. $config_headers
  5621. Configuration commands:
  5622. $config_commands
  5623. Report bugs to the package provider.
  5624. GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
  5625. General help using GNU software: <http://www.gnu.org/gethelp/>."
  5626. _ACEOF
  5627. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5628. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  5629. ac_cs_version="\\
  5630. GNU C Runtime Library config.status 1.0
  5631. configured by $0, generated by GNU Autoconf 2.69,
  5632. with options \\"\$ac_cs_config\\"
  5633. Copyright (C) 2012 Free Software Foundation, Inc.
  5634. This config.status script is free software; the Free Software Foundation
  5635. gives unlimited permission to copy, distribute and modify it."
  5636. ac_pwd='$ac_pwd'
  5637. srcdir='$srcdir'
  5638. INSTALL='$INSTALL'
  5639. AWK='$AWK'
  5640. test -n "\$AWK" || AWK=awk
  5641. _ACEOF
  5642. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5643. # The default lists apply if the user does not specify any file.
  5644. ac_need_defaults=:
  5645. while test $# != 0
  5646. do
  5647. case $1 in
  5648. --*=?*)
  5649. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5650. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  5651. ac_shift=:
  5652. ;;
  5653. --*=)
  5654. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5655. ac_optarg=
  5656. ac_shift=:
  5657. ;;
  5658. *)
  5659. ac_option=$1
  5660. ac_optarg=$2
  5661. ac_shift=shift
  5662. ;;
  5663. esac
  5664. case $ac_option in
  5665. # Handling of the options.
  5666. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5667. ac_cs_recheck=: ;;
  5668. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  5669. $as_echo "$ac_cs_version"; exit ;;
  5670. --config | --confi | --conf | --con | --co | --c )
  5671. $as_echo "$ac_cs_config"; exit ;;
  5672. --debug | --debu | --deb | --de | --d | -d )
  5673. debug=: ;;
  5674. --file | --fil | --fi | --f )
  5675. $ac_shift
  5676. case $ac_optarg in
  5677. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5678. '') as_fn_error $? "missing file argument" ;;
  5679. esac
  5680. as_fn_append CONFIG_FILES " '$ac_optarg'"
  5681. ac_need_defaults=false;;
  5682. --header | --heade | --head | --hea )
  5683. $ac_shift
  5684. case $ac_optarg in
  5685. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5686. esac
  5687. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  5688. ac_need_defaults=false;;
  5689. --he | --h)
  5690. # Conflict between --help and --header
  5691. as_fn_error $? "ambiguous option: \`$1'
  5692. Try \`$0 --help' for more information.";;
  5693. --help | --hel | -h )
  5694. $as_echo "$ac_cs_usage"; exit ;;
  5695. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5696. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5697. ac_cs_silent=: ;;
  5698. # This is an error.
  5699. -*) as_fn_error $? "unrecognized option: \`$1'
  5700. Try \`$0 --help' for more information." ;;
  5701. *) as_fn_append ac_config_targets " $1"
  5702. ac_need_defaults=false ;;
  5703. esac
  5704. shift
  5705. done
  5706. ac_configure_extra_args=
  5707. if $ac_cs_silent; then
  5708. exec 6>/dev/null
  5709. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5710. fi
  5711. _ACEOF
  5712. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5713. if \$ac_cs_recheck; then
  5714. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5715. shift
  5716. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  5717. CONFIG_SHELL='$SHELL'
  5718. export CONFIG_SHELL
  5719. exec "\$@"
  5720. fi
  5721. _ACEOF
  5722. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5723. exec 5>>config.log
  5724. {
  5725. echo
  5726. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5727. ## Running $as_me. ##
  5728. _ASBOX
  5729. $as_echo "$ac_log"
  5730. } >&5
  5731. _ACEOF
  5732. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5733. #
  5734. # INIT-COMMANDS
  5735. #
  5736. srcdir=${srcdir}
  5737. host=${host}
  5738. with_target_subdir=${with_target_subdir}
  5739. with_multisubdir=${with_multisubdir}
  5740. ac_configure_args="--enable-multilib ${ac_configure_args}"
  5741. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  5742. libgcc_topdir=${libgcc_topdir}
  5743. CC="${CC}"
  5744. _ACEOF
  5745. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5746. # Handling of arguments.
  5747. for ac_config_target in $ac_config_targets
  5748. do
  5749. case $ac_config_target in
  5750. "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;;
  5751. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5752. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  5753. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  5754. esac
  5755. done
  5756. # If the user did not use the arguments to specify the items to instantiate,
  5757. # then the envvar interface is used. Set only those that are not.
  5758. # We use the long form for the default assignment because of an extremely
  5759. # bizarre bug on SunOS 4.1.3.
  5760. if $ac_need_defaults; then
  5761. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5762. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  5763. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  5764. fi
  5765. # Have a temporary directory for convenience. Make it in the build tree
  5766. # simply because there is no reason against having it here, and in addition,
  5767. # creating and moving files from /tmp can sometimes cause problems.
  5768. # Hook for its removal unless debugging.
  5769. # Note that there is a small window in which the directory will not be cleaned:
  5770. # after its creation but before its name has been assigned to `$tmp'.
  5771. $debug ||
  5772. {
  5773. tmp= ac_tmp=
  5774. trap 'exit_status=$?
  5775. : "${ac_tmp:=$tmp}"
  5776. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  5777. ' 0
  5778. trap 'as_fn_exit 1' 1 2 13 15
  5779. }
  5780. # Create a (secure) tmp directory for tmp files.
  5781. {
  5782. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  5783. test -d "$tmp"
  5784. } ||
  5785. {
  5786. tmp=./conf$$-$RANDOM
  5787. (umask 077 && mkdir "$tmp")
  5788. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  5789. ac_tmp=$tmp
  5790. # Set up the scripts for CONFIG_FILES section.
  5791. # No need to generate them if there are no CONFIG_FILES.
  5792. # This happens for instance with `./config.status config.h'.
  5793. if test -n "$CONFIG_FILES"; then
  5794. ac_cr=`echo X | tr X '\015'`
  5795. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  5796. # But we know of no other shell where ac_cr would be empty at this
  5797. # point, so we can use a bashism as a fallback.
  5798. if test "x$ac_cr" = x; then
  5799. eval ac_cr=\$\'\\r\'
  5800. fi
  5801. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  5802. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  5803. ac_cs_awk_cr='\\r'
  5804. else
  5805. ac_cs_awk_cr=$ac_cr
  5806. fi
  5807. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  5808. _ACEOF
  5809. {
  5810. echo "cat >conf$$subs.awk <<_ACEOF" &&
  5811. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  5812. echo "_ACEOF"
  5813. } >conf$$subs.sh ||
  5814. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5815. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  5816. ac_delim='%!_!# '
  5817. for ac_last_try in false false false false false :; do
  5818. . ./conf$$subs.sh ||
  5819. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5820. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  5821. if test $ac_delim_n = $ac_delim_num; then
  5822. break
  5823. elif $ac_last_try; then
  5824. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5825. else
  5826. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5827. fi
  5828. done
  5829. rm -f conf$$subs.sh
  5830. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5831. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  5832. _ACEOF
  5833. sed -n '
  5834. h
  5835. s/^/S["/; s/!.*/"]=/
  5836. p
  5837. g
  5838. s/^[^!]*!//
  5839. :repl
  5840. t repl
  5841. s/'"$ac_delim"'$//
  5842. t delim
  5843. :nl
  5844. h
  5845. s/\(.\{148\}\)..*/\1/
  5846. t more1
  5847. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  5848. p
  5849. n
  5850. b repl
  5851. :more1
  5852. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5853. p
  5854. g
  5855. s/.\{148\}//
  5856. t nl
  5857. :delim
  5858. h
  5859. s/\(.\{148\}\)..*/\1/
  5860. t more2
  5861. s/["\\]/\\&/g; s/^/"/; s/$/"/
  5862. p
  5863. b
  5864. :more2
  5865. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5866. p
  5867. g
  5868. s/.\{148\}//
  5869. t delim
  5870. ' <conf$$subs.awk | sed '
  5871. /^[^""]/{
  5872. N
  5873. s/\n//
  5874. }
  5875. ' >>$CONFIG_STATUS || ac_write_fail=1
  5876. rm -f conf$$subs.awk
  5877. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5878. _ACAWK
  5879. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  5880. for (key in S) S_is_set[key] = 1
  5881. FS = ""
  5882. }
  5883. {
  5884. line = $ 0
  5885. nfields = split(line, field, "@")
  5886. substed = 0
  5887. len = length(field[1])
  5888. for (i = 2; i < nfields; i++) {
  5889. key = field[i]
  5890. keylen = length(key)
  5891. if (S_is_set[key]) {
  5892. value = S[key]
  5893. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  5894. len += length(value) + length(field[++i])
  5895. substed = 1
  5896. } else
  5897. len += 1 + keylen
  5898. }
  5899. print line
  5900. }
  5901. _ACAWK
  5902. _ACEOF
  5903. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5904. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  5905. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  5906. else
  5907. cat
  5908. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  5909. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  5910. _ACEOF
  5911. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  5912. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  5913. # trailing colons and then remove the whole line if VPATH becomes empty
  5914. # (actually we leave an empty line to preserve line numbers).
  5915. if test "x$srcdir" = x.; then
  5916. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  5917. h
  5918. s///
  5919. s/^/:/
  5920. s/[ ]*$/:/
  5921. s/:\$(srcdir):/:/g
  5922. s/:\${srcdir}:/:/g
  5923. s/:@srcdir@:/:/g
  5924. s/^:*//
  5925. s/:*$//
  5926. x
  5927. s/\(=[ ]*\).*/\1/
  5928. G
  5929. s/\n//
  5930. s/^[^=]*=[ ]*$//
  5931. }'
  5932. fi
  5933. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5934. fi # test -n "$CONFIG_FILES"
  5935. # Set up the scripts for CONFIG_HEADERS section.
  5936. # No need to generate them if there are no CONFIG_HEADERS.
  5937. # This happens for instance with `./config.status Makefile'.
  5938. if test -n "$CONFIG_HEADERS"; then
  5939. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  5940. BEGIN {
  5941. _ACEOF
  5942. # Transform confdefs.h into an awk script `defines.awk', embedded as
  5943. # here-document in config.status, that substitutes the proper values into
  5944. # config.h.in to produce config.h.
  5945. # Create a delimiter string that does not exist in confdefs.h, to ease
  5946. # handling of long lines.
  5947. ac_delim='%!_!# '
  5948. for ac_last_try in false false :; do
  5949. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  5950. if test -z "$ac_tt"; then
  5951. break
  5952. elif $ac_last_try; then
  5953. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  5954. else
  5955. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5956. fi
  5957. done
  5958. # For the awk script, D is an array of macro values keyed by name,
  5959. # likewise P contains macro parameters if any. Preserve backslash
  5960. # newline sequences.
  5961. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  5962. sed -n '
  5963. s/.\{148\}/&'"$ac_delim"'/g
  5964. t rset
  5965. :rset
  5966. s/^[ ]*#[ ]*define[ ][ ]*/ /
  5967. t def
  5968. d
  5969. :def
  5970. s/\\$//
  5971. t bsnl
  5972. s/["\\]/\\&/g
  5973. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5974. D["\1"]=" \3"/p
  5975. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  5976. d
  5977. :bsnl
  5978. s/["\\]/\\&/g
  5979. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5980. D["\1"]=" \3\\\\\\n"\\/p
  5981. t cont
  5982. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  5983. t cont
  5984. d
  5985. :cont
  5986. n
  5987. s/.\{148\}/&'"$ac_delim"'/g
  5988. t clear
  5989. :clear
  5990. s/\\$//
  5991. t bsnlc
  5992. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  5993. d
  5994. :bsnlc
  5995. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  5996. b cont
  5997. ' <confdefs.h | sed '
  5998. s/'"$ac_delim"'/"\\\
  5999. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  6000. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6001. for (key in D) D_is_set[key] = 1
  6002. FS = ""
  6003. }
  6004. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  6005. line = \$ 0
  6006. split(line, arg, " ")
  6007. if (arg[1] == "#") {
  6008. defundef = arg[2]
  6009. mac1 = arg[3]
  6010. } else {
  6011. defundef = substr(arg[1], 2)
  6012. mac1 = arg[2]
  6013. }
  6014. split(mac1, mac2, "(") #)
  6015. macro = mac2[1]
  6016. prefix = substr(line, 1, index(line, defundef) - 1)
  6017. if (D_is_set[macro]) {
  6018. # Preserve the white space surrounding the "#".
  6019. print prefix "define", macro P[macro] D[macro]
  6020. next
  6021. } else {
  6022. # Replace #undef with comments. This is necessary, for example,
  6023. # in the case of _POSIX_SOURCE, which is predefined and required
  6024. # on some systems where configure will not decide to define it.
  6025. if (defundef == "undef") {
  6026. print "/*", prefix defundef, macro, "*/"
  6027. next
  6028. }
  6029. }
  6030. }
  6031. { print }
  6032. _ACAWK
  6033. _ACEOF
  6034. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6035. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  6036. fi # test -n "$CONFIG_HEADERS"
  6037. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  6038. shift
  6039. for ac_tag
  6040. do
  6041. case $ac_tag in
  6042. :[FHLC]) ac_mode=$ac_tag; continue;;
  6043. esac
  6044. case $ac_mode$ac_tag in
  6045. :[FHL]*:*);;
  6046. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  6047. :[FH]-) ac_tag=-:-;;
  6048. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  6049. esac
  6050. ac_save_IFS=$IFS
  6051. IFS=:
  6052. set x $ac_tag
  6053. IFS=$ac_save_IFS
  6054. shift
  6055. ac_file=$1
  6056. shift
  6057. case $ac_mode in
  6058. :L) ac_source=$1;;
  6059. :[FH])
  6060. ac_file_inputs=
  6061. for ac_f
  6062. do
  6063. case $ac_f in
  6064. -) ac_f="$ac_tmp/stdin";;
  6065. *) # Look for the file first in the build tree, then in the source tree
  6066. # (if the path is not absolute). The absolute path cannot be DOS-style,
  6067. # because $ac_f cannot contain `:'.
  6068. test -f "$ac_f" ||
  6069. case $ac_f in
  6070. [\\/$]*) false;;
  6071. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  6072. esac ||
  6073. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  6074. esac
  6075. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  6076. as_fn_append ac_file_inputs " '$ac_f'"
  6077. done
  6078. # Let's still pretend it is `configure' which instantiates (i.e., don't
  6079. # use $as_me), people would be surprised to read:
  6080. # /* config.h. Generated by config.status. */
  6081. configure_input='Generated from '`
  6082. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  6083. `' by configure.'
  6084. if test x"$ac_file" != x-; then
  6085. configure_input="$ac_file. $configure_input"
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  6087. $as_echo "$as_me: creating $ac_file" >&6;}
  6088. fi
  6089. # Neutralize special characters interpreted by sed in replacement strings.
  6090. case $configure_input in #(
  6091. *\&* | *\|* | *\\* )
  6092. ac_sed_conf_input=`$as_echo "$configure_input" |
  6093. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  6094. *) ac_sed_conf_input=$configure_input;;
  6095. esac
  6096. case $ac_tag in
  6097. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  6098. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  6099. esac
  6100. ;;
  6101. esac
  6102. ac_dir=`$as_dirname -- "$ac_file" ||
  6103. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6104. X"$ac_file" : 'X\(//\)[^/]' \| \
  6105. X"$ac_file" : 'X\(//\)$' \| \
  6106. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  6107. $as_echo X"$ac_file" |
  6108. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6109. s//\1/
  6110. q
  6111. }
  6112. /^X\(\/\/\)[^/].*/{
  6113. s//\1/
  6114. q
  6115. }
  6116. /^X\(\/\/\)$/{
  6117. s//\1/
  6118. q
  6119. }
  6120. /^X\(\/\).*/{
  6121. s//\1/
  6122. q
  6123. }
  6124. s/.*/./; q'`
  6125. as_dir="$ac_dir"; as_fn_mkdir_p
  6126. ac_builddir=.
  6127. case "$ac_dir" in
  6128. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6129. *)
  6130. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  6131. # A ".." for each directory in $ac_dir_suffix.
  6132. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  6133. case $ac_top_builddir_sub in
  6134. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  6135. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  6136. esac ;;
  6137. esac
  6138. ac_abs_top_builddir=$ac_pwd
  6139. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  6140. # for backward compatibility:
  6141. ac_top_builddir=$ac_top_build_prefix
  6142. case $srcdir in
  6143. .) # We are building in place.
  6144. ac_srcdir=.
  6145. ac_top_srcdir=$ac_top_builddir_sub
  6146. ac_abs_top_srcdir=$ac_pwd ;;
  6147. [\\/]* | ?:[\\/]* ) # Absolute name.
  6148. ac_srcdir=$srcdir$ac_dir_suffix;
  6149. ac_top_srcdir=$srcdir
  6150. ac_abs_top_srcdir=$srcdir ;;
  6151. *) # Relative name.
  6152. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  6153. ac_top_srcdir=$ac_top_build_prefix$srcdir
  6154. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  6155. esac
  6156. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  6157. case $ac_mode in
  6158. :F)
  6159. #
  6160. # CONFIG_FILE
  6161. #
  6162. case $INSTALL in
  6163. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  6164. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  6165. esac
  6166. _ACEOF
  6167. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6168. # If the template does not know about datarootdir, expand it.
  6169. # FIXME: This hack should be removed a few years after 2.60.
  6170. ac_datarootdir_hack=; ac_datarootdir_seen=
  6171. ac_sed_dataroot='
  6172. /datarootdir/ {
  6173. p
  6174. q
  6175. }
  6176. /@datadir@/p
  6177. /@docdir@/p
  6178. /@infodir@/p
  6179. /@localedir@/p
  6180. /@mandir@/p'
  6181. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  6182. *datarootdir*) ac_datarootdir_seen=yes;;
  6183. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  6185. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  6186. _ACEOF
  6187. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6188. ac_datarootdir_hack='
  6189. s&@datadir@&$datadir&g
  6190. s&@docdir@&$docdir&g
  6191. s&@infodir@&$infodir&g
  6192. s&@localedir@&$localedir&g
  6193. s&@mandir@&$mandir&g
  6194. s&\\\${datarootdir}&$datarootdir&g' ;;
  6195. esac
  6196. _ACEOF
  6197. # Neutralize VPATH when `$srcdir' = `.'.
  6198. # Shell code in configure.ac might set extrasub.
  6199. # FIXME: do we really want to maintain this feature?
  6200. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6201. ac_sed_extra="$ac_vpsub
  6202. $extrasub
  6203. _ACEOF
  6204. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6205. :t
  6206. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  6207. s|@configure_input@|$ac_sed_conf_input|;t t
  6208. s&@top_builddir@&$ac_top_builddir_sub&;t t
  6209. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  6210. s&@srcdir@&$ac_srcdir&;t t
  6211. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  6212. s&@top_srcdir@&$ac_top_srcdir&;t t
  6213. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  6214. s&@builddir@&$ac_builddir&;t t
  6215. s&@abs_builddir@&$ac_abs_builddir&;t t
  6216. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  6217. s&@INSTALL@&$ac_INSTALL&;t t
  6218. $ac_datarootdir_hack
  6219. "
  6220. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  6221. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6222. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  6223. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  6224. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  6225. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  6226. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6227. which seems to be undefined. Please make sure it is defined" >&5
  6228. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6229. which seems to be undefined. Please make sure it is defined" >&2;}
  6230. rm -f "$ac_tmp/stdin"
  6231. case $ac_file in
  6232. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  6233. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  6234. esac \
  6235. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6236. ;;
  6237. :H)
  6238. #
  6239. # CONFIG_HEADER
  6240. #
  6241. if test x"$ac_file" != x-; then
  6242. {
  6243. $as_echo "/* $configure_input */" \
  6244. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  6245. } >"$ac_tmp/config.h" \
  6246. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6247. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  6249. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  6250. else
  6251. rm -f "$ac_file"
  6252. mv "$ac_tmp/config.h" "$ac_file" \
  6253. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  6254. fi
  6255. else
  6256. $as_echo "/* $configure_input */" \
  6257. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  6258. || as_fn_error $? "could not create -" "$LINENO" 5
  6259. fi
  6260. ;;
  6261. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  6262. $as_echo "$as_me: executing $ac_file commands" >&6;}
  6263. ;;
  6264. esac
  6265. case $ac_file$ac_mode in
  6266. "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  6267. if test -n "$CONFIG_FILES"; then
  6268. # FIXME: We shouldn't need to set ac_file
  6269. ac_file=Makefile
  6270. . ${libgcc_topdir}/config-ml.in
  6271. fi ;;
  6272. esac
  6273. done # for ac_tag
  6274. as_fn_exit 0
  6275. _ACEOF
  6276. ac_clean_files=$ac_clean_files_save
  6277. test $ac_write_fail = 0 ||
  6278. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  6279. # configure is writing to config.log, and then calls config.status.
  6280. # config.status does its own redirection, appending to config.log.
  6281. # Unfortunately, on DOS this fails, as config.log is still kept open
  6282. # by configure, so config.status won't be able to write to it; its
  6283. # output is simply discarded. So we exec the FD to /dev/null,
  6284. # effectively closing config.log, so it can be properly (re)opened and
  6285. # appended to by config.status. When coming back to configure, we
  6286. # need to make the FD available again.
  6287. if test "$no_create" != yes; then
  6288. ac_cs_success=:
  6289. ac_config_status_args=
  6290. test "$silent" = yes &&
  6291. ac_config_status_args="$ac_config_status_args --quiet"
  6292. exec 5>/dev/null
  6293. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  6294. exec 5>>config.log
  6295. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  6296. # would make configure fail if this is the last instruction.
  6297. $ac_cs_success || as_fn_exit 1
  6298. fi
  6299. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  6301. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  6302. fi