configure 479 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME=
  531. PACKAGE_TARNAME=
  532. PACKAGE_VERSION=
  533. PACKAGE_STRING=
  534. PACKAGE_BUGREPORT=
  535. PACKAGE_URL=
  536. ac_unique_file="move-if-change"
  537. enable_option_checking=no
  538. ac_subst_vars='LTLIBOBJS
  539. LIBOBJS
  540. compare_exclusions
  541. stage2_werror_flag
  542. stage1_checking
  543. stage1_cflags
  544. MAINT
  545. MAINTAINER_MODE_FALSE
  546. MAINTAINER_MODE_TRUE
  547. COMPILER_NM_FOR_TARGET
  548. COMPILER_LD_FOR_TARGET
  549. COMPILER_AS_FOR_TARGET
  550. FLAGS_FOR_TARGET
  551. RAW_CXX_FOR_TARGET
  552. WINDMC_FOR_TARGET
  553. WINDRES_FOR_TARGET
  554. STRIP_FOR_TARGET
  555. READELF_FOR_TARGET
  556. RANLIB_FOR_TARGET
  557. OBJDUMP_FOR_TARGET
  558. OBJCOPY_FOR_TARGET
  559. NM_FOR_TARGET
  560. LIPO_FOR_TARGET
  561. LD_FOR_TARGET
  562. DLLTOOL_FOR_TARGET
  563. AS_FOR_TARGET
  564. AR_FOR_TARGET
  565. GOC_FOR_TARGET
  566. GFORTRAN_FOR_TARGET
  567. GCC_FOR_TARGET
  568. CXX_FOR_TARGET
  569. CC_FOR_TARGET
  570. RANLIB_PLUGIN_OPTION
  571. AR_PLUGIN_OPTION
  572. PKG_CONFIG_PATH
  573. READELF
  574. OBJDUMP
  575. OBJCOPY
  576. WINDMC
  577. WINDRES
  578. STRIP
  579. RANLIB
  580. NM
  581. LIPO
  582. LD
  583. DLLTOOL
  584. AS
  585. AR
  586. RUNTEST
  587. EXPECT
  588. MAKEINFO
  589. FLEX
  590. LEX
  591. M4
  592. BISON
  593. YACC
  594. WINDRES_FOR_BUILD
  595. WINDMC_FOR_BUILD
  596. RANLIB_FOR_BUILD
  597. NM_FOR_BUILD
  598. LD_FOR_BUILD
  599. LDFLAGS_FOR_BUILD
  600. GOC_FOR_BUILD
  601. GFORTRAN_FOR_BUILD
  602. DLLTOOL_FOR_BUILD
  603. CXX_FOR_BUILD
  604. CXXFLAGS_FOR_BUILD
  605. CFLAGS_FOR_BUILD
  606. CC_FOR_BUILD
  607. AS_FOR_BUILD
  608. AR_FOR_BUILD
  609. target_configdirs
  610. configdirs
  611. build_configdirs
  612. INSTALL_GDB_TK
  613. GDB_TK
  614. CONFIGURE_GDB_TK
  615. build_tooldir
  616. tooldir
  617. GCC_SHLIB_SUBDIR
  618. RPATH_ENVVAR
  619. target_configargs
  620. host_configargs
  621. build_configargs
  622. BUILD_CONFIG
  623. LDFLAGS_FOR_TARGET
  624. CXXFLAGS_FOR_TARGET
  625. CFLAGS_FOR_TARGET
  626. DEBUG_PREFIX_CFLAGS_FOR_TARGET
  627. SYSROOT_CFLAGS_FOR_TARGET
  628. get_gcc_base_ver
  629. extra_host_zlib_configure_flags
  630. extra_host_libiberty_configure_flags
  631. stage1_languages
  632. host_shared
  633. extra_linker_plugin_flags
  634. extra_linker_plugin_configure_flags
  635. islinc
  636. isllibs
  637. poststage1_ldflags
  638. poststage1_libs
  639. stage1_ldflags
  640. stage1_libs
  641. extra_isl_gmp_configure_flags
  642. extra_mpc_mpfr_configure_flags
  643. extra_mpc_gmp_configure_flags
  644. extra_mpfr_configure_flags
  645. gmpinc
  646. gmplibs
  647. PGO_BUILD_LTO_CFLAGS
  648. PGO_BUILD_USE_CFLAGS
  649. PGO_BUILD_GEN_CFLAGS
  650. do_compare
  651. GNATMAKE
  652. GNATBIND
  653. ac_ct_CXX
  654. CXXFLAGS
  655. CXX
  656. OBJEXT
  657. EXEEXT
  658. ac_ct_CC
  659. CPPFLAGS
  660. LDFLAGS
  661. CFLAGS
  662. CC
  663. extra_liboffloadmic_configure_flags
  664. target_subdir
  665. host_subdir
  666. build_subdir
  667. build_libsubdir
  668. AWK
  669. SED
  670. LN_S
  671. LN
  672. INSTALL_DATA
  673. INSTALL_SCRIPT
  674. INSTALL_PROGRAM
  675. target_os
  676. target_vendor
  677. target_cpu
  678. target
  679. host_os
  680. host_vendor
  681. host_cpu
  682. host
  683. target_noncanonical
  684. host_noncanonical
  685. build_noncanonical
  686. build_os
  687. build_vendor
  688. build_cpu
  689. build
  690. TOPLEVEL_CONFIGURE_ARGUMENTS
  691. target_alias
  692. host_alias
  693. build_alias
  694. LIBS
  695. ECHO_T
  696. ECHO_N
  697. ECHO_C
  698. DEFS
  699. mandir
  700. localedir
  701. libdir
  702. psdir
  703. pdfdir
  704. dvidir
  705. htmldir
  706. infodir
  707. docdir
  708. oldincludedir
  709. includedir
  710. localstatedir
  711. sharedstatedir
  712. sysconfdir
  713. datadir
  714. datarootdir
  715. libexecdir
  716. sbindir
  717. bindir
  718. program_transform_name
  719. prefix
  720. exec_prefix
  721. PACKAGE_URL
  722. PACKAGE_BUGREPORT
  723. PACKAGE_STRING
  724. PACKAGE_VERSION
  725. PACKAGE_TARNAME
  726. PACKAGE_NAME
  727. PATH_SEPARATOR
  728. SHELL'
  729. ac_subst_files='serialization_dependencies
  730. host_makefile_frag
  731. target_makefile_frag
  732. alphaieee_frag
  733. ospace_frag'
  734. ac_user_opts='
  735. enable_option_checking
  736. with_build_libsubdir
  737. with_system_zlib
  738. enable_as_accelerator_for
  739. enable_offload_targets
  740. enable_gold
  741. enable_ld
  742. enable_gprofng
  743. enable_compressed_debug_sections
  744. enable_libquadmath
  745. enable_libquadmath_support
  746. enable_libada
  747. enable_libssp
  748. enable_libstdcxx
  749. enable_liboffloadmic
  750. enable_bootstrap
  751. enable_pgo_build
  752. with_mpc
  753. with_mpc_include
  754. with_mpc_lib
  755. with_mpfr_dir
  756. with_mpfr
  757. with_mpfr_include
  758. with_mpfr_lib
  759. with_gmp_dir
  760. with_gmp
  761. with_gmp_include
  762. with_gmp_lib
  763. with_stage1_libs
  764. with_static_standard_libraries
  765. with_stage1_ldflags
  766. with_boot_libs
  767. with_boot_ldflags
  768. with_isl
  769. with_isl_include
  770. with_isl_lib
  771. enable_isl_version_check
  772. enable_lto
  773. enable_linker_plugin_configure_flags
  774. enable_linker_plugin_flags
  775. enable_host_shared
  776. enable_stage1_languages
  777. enable_objc_gc
  778. with_target_bdw_gc
  779. with_target_bdw_gc_include
  780. with_target_bdw_gc_lib
  781. with_gcc_major_version_only
  782. with_build_sysroot
  783. with_debug_prefix_map
  784. with_build_config
  785. enable_vtable_verify
  786. enable_serial_configure
  787. with_build_time_tools
  788. enable_maintainer_mode
  789. enable_stage1_checking
  790. enable_werror
  791. '
  792. ac_precious_vars='build_alias
  793. host_alias
  794. target_alias
  795. CC
  796. CFLAGS
  797. LDFLAGS
  798. LIBS
  799. CPPFLAGS
  800. CXX
  801. CXXFLAGS
  802. CCC
  803. build_configargs
  804. host_configargs
  805. target_configargs
  806. AR
  807. AS
  808. DLLTOOL
  809. LD
  810. LIPO
  811. NM
  812. RANLIB
  813. STRIP
  814. WINDRES
  815. WINDMC
  816. OBJCOPY
  817. OBJDUMP
  818. READELF
  819. CC_FOR_TARGET
  820. CXX_FOR_TARGET
  821. GCC_FOR_TARGET
  822. GFORTRAN_FOR_TARGET
  823. GOC_FOR_TARGET
  824. AR_FOR_TARGET
  825. AS_FOR_TARGET
  826. DLLTOOL_FOR_TARGET
  827. LD_FOR_TARGET
  828. LIPO_FOR_TARGET
  829. NM_FOR_TARGET
  830. OBJCOPY_FOR_TARGET
  831. OBJDUMP_FOR_TARGET
  832. RANLIB_FOR_TARGET
  833. READELF_FOR_TARGET
  834. STRIP_FOR_TARGET
  835. WINDRES_FOR_TARGET
  836. WINDMC_FOR_TARGET'
  837. # Initialize some variables set by options.
  838. ac_init_help=
  839. ac_init_version=false
  840. ac_unrecognized_opts=
  841. ac_unrecognized_sep=
  842. # The variables have the same names as the options, with
  843. # dashes changed to underlines.
  844. cache_file=/dev/null
  845. exec_prefix=NONE
  846. no_create=
  847. no_recursion=
  848. prefix=NONE
  849. program_prefix=NONE
  850. program_suffix=NONE
  851. program_transform_name=s,x,x,
  852. silent=
  853. site=
  854. srcdir=
  855. verbose=
  856. x_includes=NONE
  857. x_libraries=NONE
  858. # Installation directory options.
  859. # These are left unexpanded so users can "make install exec_prefix=/foo"
  860. # and all the variables that are supposed to be based on exec_prefix
  861. # by default will actually change.
  862. # Use braces instead of parens because sh, perl, etc. also accept them.
  863. # (The list follows the same order as the GNU Coding Standards.)
  864. bindir='${exec_prefix}/bin'
  865. sbindir='${exec_prefix}/sbin'
  866. libexecdir='${exec_prefix}/libexec'
  867. datarootdir='${prefix}/share'
  868. datadir='${datarootdir}'
  869. sysconfdir='${prefix}/etc'
  870. sharedstatedir='${prefix}/com'
  871. localstatedir='${prefix}/var'
  872. includedir='${prefix}/include'
  873. oldincludedir='/usr/include'
  874. docdir='${datarootdir}/doc/${PACKAGE}'
  875. infodir='${datarootdir}/info'
  876. htmldir='${docdir}'
  877. dvidir='${docdir}'
  878. pdfdir='${docdir}'
  879. psdir='${docdir}'
  880. libdir='${exec_prefix}/lib'
  881. localedir='${datarootdir}/locale'
  882. mandir='${datarootdir}/man'
  883. ac_prev=
  884. ac_dashdash=
  885. for ac_option
  886. do
  887. # If the previous option needs an argument, assign it.
  888. if test -n "$ac_prev"; then
  889. eval $ac_prev=\$ac_option
  890. ac_prev=
  891. continue
  892. fi
  893. case $ac_option in
  894. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  895. *=) ac_optarg= ;;
  896. *) ac_optarg=yes ;;
  897. esac
  898. # Accept the important Cygnus configure options, so we can diagnose typos.
  899. case $ac_dashdash$ac_option in
  900. --)
  901. ac_dashdash=yes ;;
  902. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  903. ac_prev=bindir ;;
  904. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  905. bindir=$ac_optarg ;;
  906. -build | --build | --buil | --bui | --bu)
  907. ac_prev=build_alias ;;
  908. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  909. build_alias=$ac_optarg ;;
  910. -cache-file | --cache-file | --cache-fil | --cache-fi \
  911. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  912. ac_prev=cache_file ;;
  913. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  914. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  915. cache_file=$ac_optarg ;;
  916. --config-cache | -C)
  917. cache_file=config.cache ;;
  918. -datadir | --datadir | --datadi | --datad)
  919. ac_prev=datadir ;;
  920. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  921. datadir=$ac_optarg ;;
  922. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  923. | --dataroo | --dataro | --datar)
  924. ac_prev=datarootdir ;;
  925. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  926. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  927. datarootdir=$ac_optarg ;;
  928. -disable-* | --disable-*)
  929. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  930. # Reject names that are not valid shell variable names.
  931. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  932. as_fn_error $? "invalid feature name: $ac_useropt"
  933. ac_useropt_orig=$ac_useropt
  934. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  935. case $ac_user_opts in
  936. *"
  937. "enable_$ac_useropt"
  938. "*) ;;
  939. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  940. ac_unrecognized_sep=', ';;
  941. esac
  942. eval enable_$ac_useropt=no ;;
  943. -docdir | --docdir | --docdi | --doc | --do)
  944. ac_prev=docdir ;;
  945. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  946. docdir=$ac_optarg ;;
  947. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  948. ac_prev=dvidir ;;
  949. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  950. dvidir=$ac_optarg ;;
  951. -enable-* | --enable-*)
  952. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  953. # Reject names that are not valid shell variable names.
  954. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  955. as_fn_error $? "invalid feature name: $ac_useropt"
  956. ac_useropt_orig=$ac_useropt
  957. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  958. case $ac_user_opts in
  959. *"
  960. "enable_$ac_useropt"
  961. "*) ;;
  962. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  963. ac_unrecognized_sep=', ';;
  964. esac
  965. eval enable_$ac_useropt=\$ac_optarg ;;
  966. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  967. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  968. | --exec | --exe | --ex)
  969. ac_prev=exec_prefix ;;
  970. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  971. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  972. | --exec=* | --exe=* | --ex=*)
  973. exec_prefix=$ac_optarg ;;
  974. -gas | --gas | --ga | --g)
  975. # Obsolete; use --with-gas.
  976. with_gas=yes ;;
  977. -help | --help | --hel | --he | -h)
  978. ac_init_help=long ;;
  979. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  980. ac_init_help=recursive ;;
  981. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  982. ac_init_help=short ;;
  983. -host | --host | --hos | --ho)
  984. ac_prev=host_alias ;;
  985. -host=* | --host=* | --hos=* | --ho=*)
  986. host_alias=$ac_optarg ;;
  987. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  988. ac_prev=htmldir ;;
  989. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  990. | --ht=*)
  991. htmldir=$ac_optarg ;;
  992. -includedir | --includedir | --includedi | --included | --include \
  993. | --includ | --inclu | --incl | --inc)
  994. ac_prev=includedir ;;
  995. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  996. | --includ=* | --inclu=* | --incl=* | --inc=*)
  997. includedir=$ac_optarg ;;
  998. -infodir | --infodir | --infodi | --infod | --info | --inf)
  999. ac_prev=infodir ;;
  1000. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1001. infodir=$ac_optarg ;;
  1002. -libdir | --libdir | --libdi | --libd)
  1003. ac_prev=libdir ;;
  1004. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1005. libdir=$ac_optarg ;;
  1006. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1007. | --libexe | --libex | --libe)
  1008. ac_prev=libexecdir ;;
  1009. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1010. | --libexe=* | --libex=* | --libe=*)
  1011. libexecdir=$ac_optarg ;;
  1012. -localedir | --localedir | --localedi | --localed | --locale)
  1013. ac_prev=localedir ;;
  1014. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1015. localedir=$ac_optarg ;;
  1016. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1017. | --localstate | --localstat | --localsta | --localst | --locals)
  1018. ac_prev=localstatedir ;;
  1019. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1020. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1021. localstatedir=$ac_optarg ;;
  1022. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1023. ac_prev=mandir ;;
  1024. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1025. mandir=$ac_optarg ;;
  1026. -nfp | --nfp | --nf)
  1027. # Obsolete; use --without-fp.
  1028. with_fp=no ;;
  1029. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1030. | --no-cr | --no-c | -n)
  1031. no_create=yes ;;
  1032. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1033. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1034. no_recursion=yes ;;
  1035. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1036. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1037. | --oldin | --oldi | --old | --ol | --o)
  1038. ac_prev=oldincludedir ;;
  1039. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1040. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1041. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1042. oldincludedir=$ac_optarg ;;
  1043. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1044. ac_prev=prefix ;;
  1045. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1046. prefix=$ac_optarg ;;
  1047. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1048. | --program-pre | --program-pr | --program-p)
  1049. ac_prev=program_prefix ;;
  1050. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1051. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1052. program_prefix=$ac_optarg ;;
  1053. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1054. | --program-suf | --program-su | --program-s)
  1055. ac_prev=program_suffix ;;
  1056. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1057. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1058. program_suffix=$ac_optarg ;;
  1059. -program-transform-name | --program-transform-name \
  1060. | --program-transform-nam | --program-transform-na \
  1061. | --program-transform-n | --program-transform- \
  1062. | --program-transform | --program-transfor \
  1063. | --program-transfo | --program-transf \
  1064. | --program-trans | --program-tran \
  1065. | --progr-tra | --program-tr | --program-t)
  1066. ac_prev=program_transform_name ;;
  1067. -program-transform-name=* | --program-transform-name=* \
  1068. | --program-transform-nam=* | --program-transform-na=* \
  1069. | --program-transform-n=* | --program-transform-=* \
  1070. | --program-transform=* | --program-transfor=* \
  1071. | --program-transfo=* | --program-transf=* \
  1072. | --program-trans=* | --program-tran=* \
  1073. | --progr-tra=* | --program-tr=* | --program-t=*)
  1074. program_transform_name=$ac_optarg ;;
  1075. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1076. ac_prev=pdfdir ;;
  1077. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1078. pdfdir=$ac_optarg ;;
  1079. -psdir | --psdir | --psdi | --psd | --ps)
  1080. ac_prev=psdir ;;
  1081. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1082. psdir=$ac_optarg ;;
  1083. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1084. | -silent | --silent | --silen | --sile | --sil)
  1085. silent=yes ;;
  1086. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1087. ac_prev=sbindir ;;
  1088. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1089. | --sbi=* | --sb=*)
  1090. sbindir=$ac_optarg ;;
  1091. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1092. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1093. | --sharedst | --shareds | --shared | --share | --shar \
  1094. | --sha | --sh)
  1095. ac_prev=sharedstatedir ;;
  1096. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1097. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1098. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1099. | --sha=* | --sh=*)
  1100. sharedstatedir=$ac_optarg ;;
  1101. -site | --site | --sit)
  1102. ac_prev=site ;;
  1103. -site=* | --site=* | --sit=*)
  1104. site=$ac_optarg ;;
  1105. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1106. ac_prev=srcdir ;;
  1107. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1108. srcdir=$ac_optarg ;;
  1109. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1110. | --syscon | --sysco | --sysc | --sys | --sy)
  1111. ac_prev=sysconfdir ;;
  1112. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1113. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1114. sysconfdir=$ac_optarg ;;
  1115. -target | --target | --targe | --targ | --tar | --ta | --t)
  1116. ac_prev=target_alias ;;
  1117. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1118. target_alias=$ac_optarg ;;
  1119. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1120. verbose=yes ;;
  1121. -version | --version | --versio | --versi | --vers | -V)
  1122. ac_init_version=: ;;
  1123. -with-* | --with-*)
  1124. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1125. # Reject names that are not valid shell variable names.
  1126. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1127. as_fn_error $? "invalid package name: $ac_useropt"
  1128. ac_useropt_orig=$ac_useropt
  1129. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1130. case $ac_user_opts in
  1131. *"
  1132. "with_$ac_useropt"
  1133. "*) ;;
  1134. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1135. ac_unrecognized_sep=', ';;
  1136. esac
  1137. eval with_$ac_useropt=\$ac_optarg ;;
  1138. -without-* | --without-*)
  1139. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1140. # Reject names that are not valid shell variable names.
  1141. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1142. as_fn_error $? "invalid package name: $ac_useropt"
  1143. ac_useropt_orig=$ac_useropt
  1144. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1145. case $ac_user_opts in
  1146. *"
  1147. "with_$ac_useropt"
  1148. "*) ;;
  1149. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1150. ac_unrecognized_sep=', ';;
  1151. esac
  1152. eval with_$ac_useropt=no ;;
  1153. --x)
  1154. # Obsolete; use --with-x.
  1155. with_x=yes ;;
  1156. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1157. | --x-incl | --x-inc | --x-in | --x-i)
  1158. ac_prev=x_includes ;;
  1159. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1160. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1161. x_includes=$ac_optarg ;;
  1162. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1163. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1164. ac_prev=x_libraries ;;
  1165. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1166. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1167. x_libraries=$ac_optarg ;;
  1168. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1169. Try \`$0 --help' for more information"
  1170. ;;
  1171. *=*)
  1172. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1173. # Reject names that are not valid shell variable names.
  1174. case $ac_envvar in #(
  1175. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1176. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1177. esac
  1178. eval $ac_envvar=\$ac_optarg
  1179. export $ac_envvar ;;
  1180. *)
  1181. # FIXME: should be removed in autoconf 3.0.
  1182. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1183. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1184. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1185. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1186. ;;
  1187. esac
  1188. done
  1189. if test -n "$ac_prev"; then
  1190. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1191. as_fn_error $? "missing argument to $ac_option"
  1192. fi
  1193. if test -n "$ac_unrecognized_opts"; then
  1194. case $enable_option_checking in
  1195. no) ;;
  1196. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1197. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1198. esac
  1199. fi
  1200. # Check all directory arguments for consistency.
  1201. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1202. datadir sysconfdir sharedstatedir localstatedir includedir \
  1203. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1204. libdir localedir mandir
  1205. do
  1206. eval ac_val=\$$ac_var
  1207. # Remove trailing slashes.
  1208. case $ac_val in
  1209. */ )
  1210. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1211. eval $ac_var=\$ac_val;;
  1212. esac
  1213. # Be sure to have absolute directory names.
  1214. case $ac_val in
  1215. [\\/$]* | ?:[\\/]* ) continue;;
  1216. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1217. esac
  1218. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1219. done
  1220. # There might be people who depend on the old broken behavior: `$host'
  1221. # used to hold the argument of --host etc.
  1222. # FIXME: To remove some day.
  1223. build=$build_alias
  1224. host=$host_alias
  1225. target=$target_alias
  1226. # FIXME: To remove some day.
  1227. if test "x$host_alias" != x; then
  1228. if test "x$build_alias" = x; then
  1229. cross_compiling=maybe
  1230. elif test "x$build_alias" != "x$host_alias"; then
  1231. cross_compiling=yes
  1232. fi
  1233. fi
  1234. ac_tool_prefix=
  1235. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1236. test "$silent" = yes && exec 6>/dev/null
  1237. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1238. ac_ls_di=`ls -di .` &&
  1239. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1240. as_fn_error $? "working directory cannot be determined"
  1241. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1242. as_fn_error $? "pwd does not report name of working directory"
  1243. # Find the source files, if location was not specified.
  1244. if test -z "$srcdir"; then
  1245. ac_srcdir_defaulted=yes
  1246. # Try the directory containing this script, then the parent directory.
  1247. ac_confdir=`$as_dirname -- "$as_myself" ||
  1248. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1249. X"$as_myself" : 'X\(//\)[^/]' \| \
  1250. X"$as_myself" : 'X\(//\)$' \| \
  1251. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1252. $as_echo X"$as_myself" |
  1253. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1254. s//\1/
  1255. q
  1256. }
  1257. /^X\(\/\/\)[^/].*/{
  1258. s//\1/
  1259. q
  1260. }
  1261. /^X\(\/\/\)$/{
  1262. s//\1/
  1263. q
  1264. }
  1265. /^X\(\/\).*/{
  1266. s//\1/
  1267. q
  1268. }
  1269. s/.*/./; q'`
  1270. srcdir=$ac_confdir
  1271. if test ! -r "$srcdir/$ac_unique_file"; then
  1272. srcdir=..
  1273. fi
  1274. else
  1275. ac_srcdir_defaulted=no
  1276. fi
  1277. if test ! -r "$srcdir/$ac_unique_file"; then
  1278. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1279. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1280. fi
  1281. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1282. ac_abs_confdir=`(
  1283. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1284. pwd)`
  1285. # When building in place, set srcdir=.
  1286. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1287. srcdir=.
  1288. fi
  1289. # Remove unnecessary trailing slashes from srcdir.
  1290. # Double slashes in file names in object file debugging info
  1291. # mess up M-x gdb in Emacs.
  1292. case $srcdir in
  1293. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1294. esac
  1295. case $srcdir in
  1296. *" "*)
  1297. as_fn_error $? "path to source, $srcdir, contains spaces"
  1298. ;;
  1299. esac
  1300. ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
  1301. for ac_var in $ac_precious_vars; do
  1302. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1303. eval ac_env_${ac_var}_value=\$${ac_var}
  1304. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1305. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1306. done
  1307. #
  1308. # Report the --help message.
  1309. #
  1310. if test "$ac_init_help" = "long"; then
  1311. # Omit some internal or obsolete options to make the list less imposing.
  1312. # This message is too long to be a string in the A/UX 3.1 sh.
  1313. cat <<_ACEOF
  1314. \`configure' configures this package to adapt to many kinds of systems.
  1315. Usage: $0 [OPTION]... [VAR=VALUE]...
  1316. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1317. VAR=VALUE. See below for descriptions of some of the useful variables.
  1318. Defaults for the options are specified in brackets.
  1319. Configuration:
  1320. -h, --help display this help and exit
  1321. --help=short display options specific to this package
  1322. --help=recursive display the short help of all the included packages
  1323. -V, --version display version information and exit
  1324. -q, --quiet, --silent do not print \`checking ...' messages
  1325. --cache-file=FILE cache test results in FILE [disabled]
  1326. -C, --config-cache alias for \`--cache-file=config.cache'
  1327. -n, --no-create do not create output files
  1328. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1329. Installation directories:
  1330. --prefix=PREFIX install architecture-independent files in PREFIX
  1331. [$ac_default_prefix]
  1332. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1333. [PREFIX]
  1334. By default, \`make install' will install all the files in
  1335. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1336. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1337. for instance \`--prefix=\$HOME'.
  1338. For better control, use the options below.
  1339. Fine tuning of the installation directories:
  1340. --bindir=DIR user executables [EPREFIX/bin]
  1341. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1342. --libexecdir=DIR program executables [EPREFIX/libexec]
  1343. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1344. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1345. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1346. --libdir=DIR object code libraries [EPREFIX/lib]
  1347. --includedir=DIR C header files [PREFIX/include]
  1348. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1349. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1350. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1351. --infodir=DIR info documentation [DATAROOTDIR/info]
  1352. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1353. --mandir=DIR man documentation [DATAROOTDIR/man]
  1354. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1355. --htmldir=DIR html documentation [DOCDIR]
  1356. --dvidir=DIR dvi documentation [DOCDIR]
  1357. --pdfdir=DIR pdf documentation [DOCDIR]
  1358. --psdir=DIR ps documentation [DOCDIR]
  1359. _ACEOF
  1360. cat <<\_ACEOF
  1361. Program names:
  1362. --program-prefix=PREFIX prepend PREFIX to installed program names
  1363. --program-suffix=SUFFIX append SUFFIX to installed program names
  1364. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1365. System types:
  1366. --build=BUILD configure for building on BUILD [guessed]
  1367. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1368. --target=TARGET configure for building compilers for TARGET [HOST]
  1369. _ACEOF
  1370. fi
  1371. if test -n "$ac_init_help"; then
  1372. cat <<\_ACEOF
  1373. Optional Features:
  1374. --disable-option-checking ignore unrecognized --enable/--with options
  1375. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1376. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1377. --enable-as-accelerator-for=ARG
  1378. build as offload target compiler. Specify offload
  1379. host triple by ARG
  1380. --enable-offload-targets=LIST
  1381. enable offloading to devices from comma-separated
  1382. LIST of TARGET[=DIR]. Use optional path to find
  1383. offload target compiler during the build
  1384. --enable-gold[=ARG] build gold [ARG={default,yes,no}]
  1385. --enable-ld[=ARG] build ld [ARG={default,yes,no}]
  1386. --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
  1387. --enable-compressed-debug-sections={all,gas,gold,ld,none}
  1388. Enable compressed debug sections for gas, gold or ld
  1389. by default
  1390. --disable-libquadmath do not build libquadmath directory
  1391. --disable-libquadmath-support
  1392. disable libquadmath support for Fortran
  1393. --enable-libada build libada directory
  1394. --enable-libssp build libssp directory
  1395. --disable-libstdcxx do not build libstdc++-v3 directory
  1396. --enable-liboffloadmic=ARG
  1397. build liboffloadmic [ARG={no,host,target}]
  1398. --enable-bootstrap enable bootstrapping [yes if native build]
  1399. --enable-pgo-build[=lto]
  1400. enable the PGO build
  1401. --disable-isl-version-check
  1402. disable check for isl version
  1403. --enable-lto enable link time optimization support
  1404. --enable-linker-plugin-configure-flags=FLAGS
  1405. additional flags for configuring linker plugins
  1406. [none]
  1407. --enable-linker-plugin-flags=FLAGS
  1408. additional flags for configuring and building linker
  1409. plugins [none]
  1410. --enable-host-shared build host code as shared libraries
  1411. --enable-stage1-languages[=all]
  1412. choose additional languages to build during stage1.
  1413. Mostly useful for compiler development
  1414. --enable-objc-gc enable use of Boehm's garbage collector with the GNU
  1415. Objective-C runtime
  1416. --enable-vtable-verify Enable vtable verification feature
  1417. --enable-serial-[{host,target,build}-]configure
  1418. force sequential configuration of sub-packages for
  1419. the host, target or build machine, or all
  1420. sub-packages
  1421. --enable-maintainer-mode
  1422. enable make rules and dependencies not useful (and
  1423. sometimes confusing) to the casual installer
  1424. --enable-stage1-checking[=all]
  1425. choose additional checking for stage1 of the
  1426. compiler
  1427. --enable-werror enable -Werror in bootstrap stage2 and later
  1428. Optional Packages:
  1429. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1430. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1431. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1432. --with-system-zlib use installed libz
  1433. --with-mpc=PATH specify prefix directory for installed MPC package.
  1434. Equivalent to --with-mpc-include=PATH/include plus
  1435. --with-mpc-lib=PATH/lib
  1436. --with-mpc-include=PATH specify directory for installed MPC include files
  1437. --with-mpc-lib=PATH specify directory for the installed MPC library
  1438. --with-mpfr-dir=PATH this option has been REMOVED
  1439. --with-mpfr=PATH specify prefix directory for installed MPFR package.
  1440. Equivalent to --with-mpfr-include=PATH/include plus
  1441. --with-mpfr-lib=PATH/lib
  1442. --with-mpfr-include=PATH
  1443. specify directory for installed MPFR include files
  1444. --with-mpfr-lib=PATH specify directory for the installed MPFR library
  1445. --with-gmp-dir=PATH this option has been REMOVED
  1446. --with-gmp=PATH specify prefix directory for the installed GMP
  1447. package. Equivalent to
  1448. --with-gmp-include=PATH/include plus
  1449. --with-gmp-lib=PATH/lib
  1450. --with-gmp-include=PATH specify directory for installed GMP include files
  1451. --with-gmp-lib=PATH specify directory for the installed GMP library
  1452. --with-stage1-libs=LIBS libraries for stage1
  1453. --with-static-standard-libraries
  1454. use -static-libstdc++ and -static-libgcc
  1455. (default=auto)
  1456. --with-stage1-ldflags=FLAGS
  1457. linker flags for stage1
  1458. --with-boot-libs=LIBS libraries for stage2 and later
  1459. --with-boot-ldflags=FLAGS
  1460. linker flags for stage2 and later
  1461. --with-isl=PATH Specify prefix directory for the installed isl
  1462. package. Equivalent to
  1463. --with-isl-include=PATH/include plus
  1464. --with-isl-lib=PATH/lib
  1465. --with-isl-include=PATH Specify directory for installed isl include files
  1466. --with-isl-lib=PATH Specify the directory for the installed isl library
  1467. --with-target-bdw-gc=PATHLIST
  1468. specify prefix directory for installed bdw-gc
  1469. package. Equivalent to
  1470. --with-target-bdw-gc-include=PATH/include plus
  1471. --with-target-bdw-gc-lib=PATH/lib
  1472. --with-target-bdw-gc-include=PATHLIST
  1473. specify directories for installed bdw-gc include
  1474. files
  1475. --with-target-bdw-gc-lib=PATHLIST
  1476. specify directories for installed bdw-gc library
  1477. --with-gcc-major-version-only
  1478. use only GCC major number in filesystem paths
  1479. --with-build-sysroot=SYSROOT
  1480. use sysroot as the system root during the build
  1481. --with-debug-prefix-map='A=B C=D ...'
  1482. map A to B, C to D ... in debug information
  1483. --with-build-config='NAME NAME2...'
  1484. use config/NAME.mk build configuration
  1485. --with-build-time-tools=PATH
  1486. use given path to find target tools during the build
  1487. Some influential environment variables:
  1488. CC C compiler command
  1489. CFLAGS C compiler flags
  1490. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1491. nonstandard directory <lib dir>
  1492. LIBS libraries to pass to the linker, e.g. -l<library>
  1493. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1494. you have headers in a nonstandard directory <include dir>
  1495. CXX C++ compiler command
  1496. CXXFLAGS C++ compiler flags
  1497. build_configargs
  1498. additional configure arguments for build directories
  1499. host_configargs
  1500. additional configure arguments for host directories
  1501. target_configargs
  1502. additional configure arguments for target directories
  1503. AR AR for the host
  1504. AS AS for the host
  1505. DLLTOOL DLLTOOL for the host
  1506. LD LD for the host
  1507. LIPO LIPO for the host
  1508. NM NM for the host
  1509. RANLIB RANLIB for the host
  1510. STRIP STRIP for the host
  1511. WINDRES WINDRES for the host
  1512. WINDMC WINDMC for the host
  1513. OBJCOPY OBJCOPY for the host
  1514. OBJDUMP OBJDUMP for the host
  1515. READELF READELF for the host
  1516. CC_FOR_TARGET
  1517. CC for the target
  1518. CXX_FOR_TARGET
  1519. CXX for the target
  1520. GCC_FOR_TARGET
  1521. GCC for the target
  1522. GFORTRAN_FOR_TARGET
  1523. GFORTRAN for the target
  1524. GOC_FOR_TARGET
  1525. GOC for the target
  1526. AR_FOR_TARGET
  1527. AR for the target
  1528. AS_FOR_TARGET
  1529. AS for the target
  1530. DLLTOOL_FOR_TARGET
  1531. DLLTOOL for the target
  1532. LD_FOR_TARGET
  1533. LD for the target
  1534. LIPO_FOR_TARGET
  1535. LIPO for the target
  1536. NM_FOR_TARGET
  1537. NM for the target
  1538. OBJCOPY_FOR_TARGET
  1539. OBJCOPY for the target
  1540. OBJDUMP_FOR_TARGET
  1541. OBJDUMP for the target
  1542. RANLIB_FOR_TARGET
  1543. RANLIB for the target
  1544. READELF_FOR_TARGET
  1545. READELF for the target
  1546. STRIP_FOR_TARGET
  1547. STRIP for the target
  1548. WINDRES_FOR_TARGET
  1549. WINDRES for the target
  1550. WINDMC_FOR_TARGET
  1551. WINDMC for the target
  1552. Use these variables to override the choices made by `configure' or to help
  1553. it to find libraries and programs with nonstandard names/locations.
  1554. Report bugs to the package provider.
  1555. _ACEOF
  1556. ac_status=$?
  1557. fi
  1558. if test "$ac_init_help" = "recursive"; then
  1559. # If there are subdirs, report their specific --help.
  1560. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1561. test -d "$ac_dir" ||
  1562. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1563. continue
  1564. ac_builddir=.
  1565. case "$ac_dir" in
  1566. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1567. *)
  1568. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1569. # A ".." for each directory in $ac_dir_suffix.
  1570. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1571. case $ac_top_builddir_sub in
  1572. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1573. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1574. esac ;;
  1575. esac
  1576. ac_abs_top_builddir=$ac_pwd
  1577. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1578. # for backward compatibility:
  1579. ac_top_builddir=$ac_top_build_prefix
  1580. case $srcdir in
  1581. .) # We are building in place.
  1582. ac_srcdir=.
  1583. ac_top_srcdir=$ac_top_builddir_sub
  1584. ac_abs_top_srcdir=$ac_pwd ;;
  1585. [\\/]* | ?:[\\/]* ) # Absolute name.
  1586. ac_srcdir=$srcdir$ac_dir_suffix;
  1587. ac_top_srcdir=$srcdir
  1588. ac_abs_top_srcdir=$srcdir ;;
  1589. *) # Relative name.
  1590. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1591. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1592. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1593. esac
  1594. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1595. cd "$ac_dir" || { ac_status=$?; continue; }
  1596. # Check for guested configure.
  1597. if test -f "$ac_srcdir/configure.gnu"; then
  1598. echo &&
  1599. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1600. elif test -f "$ac_srcdir/configure"; then
  1601. echo &&
  1602. $SHELL "$ac_srcdir/configure" --help=recursive
  1603. else
  1604. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1605. fi || ac_status=$?
  1606. cd "$ac_pwd" || { ac_status=$?; break; }
  1607. done
  1608. fi
  1609. test -n "$ac_init_help" && exit $ac_status
  1610. if $ac_init_version; then
  1611. cat <<\_ACEOF
  1612. configure
  1613. generated by GNU Autoconf 2.69
  1614. Copyright (C) 2012 Free Software Foundation, Inc.
  1615. This configure script is free software; the Free Software Foundation
  1616. gives unlimited permission to copy, distribute and modify it.
  1617. _ACEOF
  1618. exit
  1619. fi
  1620. ## ------------------------ ##
  1621. ## Autoconf initialization. ##
  1622. ## ------------------------ ##
  1623. # ac_fn_c_try_compile LINENO
  1624. # --------------------------
  1625. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1626. ac_fn_c_try_compile ()
  1627. {
  1628. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1629. rm -f conftest.$ac_objext
  1630. if { { ac_try="$ac_compile"
  1631. case "(($ac_try" in
  1632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1633. *) ac_try_echo=$ac_try;;
  1634. esac
  1635. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1636. $as_echo "$ac_try_echo"; } >&5
  1637. (eval "$ac_compile") 2>conftest.err
  1638. ac_status=$?
  1639. if test -s conftest.err; then
  1640. grep -v '^ *+' conftest.err >conftest.er1
  1641. cat conftest.er1 >&5
  1642. mv -f conftest.er1 conftest.err
  1643. fi
  1644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1645. test $ac_status = 0; } && {
  1646. test -z "$ac_c_werror_flag" ||
  1647. test ! -s conftest.err
  1648. } && test -s conftest.$ac_objext; then :
  1649. ac_retval=0
  1650. else
  1651. $as_echo "$as_me: failed program was:" >&5
  1652. sed 's/^/| /' conftest.$ac_ext >&5
  1653. ac_retval=1
  1654. fi
  1655. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1656. as_fn_set_status $ac_retval
  1657. } # ac_fn_c_try_compile
  1658. # ac_fn_cxx_try_compile LINENO
  1659. # ----------------------------
  1660. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1661. ac_fn_cxx_try_compile ()
  1662. {
  1663. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1664. rm -f conftest.$ac_objext
  1665. if { { ac_try="$ac_compile"
  1666. case "(($ac_try" in
  1667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1668. *) ac_try_echo=$ac_try;;
  1669. esac
  1670. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1671. $as_echo "$ac_try_echo"; } >&5
  1672. (eval "$ac_compile") 2>conftest.err
  1673. ac_status=$?
  1674. if test -s conftest.err; then
  1675. grep -v '^ *+' conftest.err >conftest.er1
  1676. cat conftest.er1 >&5
  1677. mv -f conftest.er1 conftest.err
  1678. fi
  1679. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1680. test $ac_status = 0; } && {
  1681. test -z "$ac_cxx_werror_flag" ||
  1682. test ! -s conftest.err
  1683. } && test -s conftest.$ac_objext; then :
  1684. ac_retval=0
  1685. else
  1686. $as_echo "$as_me: failed program was:" >&5
  1687. sed 's/^/| /' conftest.$ac_ext >&5
  1688. ac_retval=1
  1689. fi
  1690. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1691. as_fn_set_status $ac_retval
  1692. } # ac_fn_cxx_try_compile
  1693. # ac_fn_cxx_try_link LINENO
  1694. # -------------------------
  1695. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1696. ac_fn_cxx_try_link ()
  1697. {
  1698. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1699. rm -f conftest.$ac_objext conftest$ac_exeext
  1700. if { { ac_try="$ac_link"
  1701. case "(($ac_try" in
  1702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1703. *) ac_try_echo=$ac_try;;
  1704. esac
  1705. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1706. $as_echo "$ac_try_echo"; } >&5
  1707. (eval "$ac_link") 2>conftest.err
  1708. ac_status=$?
  1709. if test -s conftest.err; then
  1710. grep -v '^ *+' conftest.err >conftest.er1
  1711. cat conftest.er1 >&5
  1712. mv -f conftest.er1 conftest.err
  1713. fi
  1714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1715. test $ac_status = 0; } && {
  1716. test -z "$ac_cxx_werror_flag" ||
  1717. test ! -s conftest.err
  1718. } && test -s conftest$ac_exeext && {
  1719. test "$cross_compiling" = yes ||
  1720. test -x conftest$ac_exeext
  1721. }; then :
  1722. ac_retval=0
  1723. else
  1724. $as_echo "$as_me: failed program was:" >&5
  1725. sed 's/^/| /' conftest.$ac_ext >&5
  1726. ac_retval=1
  1727. fi
  1728. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1729. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1730. # interfere with the next link command; also delete a directory that is
  1731. # left behind by Apple's compiler. We do this before executing the actions.
  1732. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1733. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734. as_fn_set_status $ac_retval
  1735. } # ac_fn_cxx_try_link
  1736. # ac_fn_c_try_link LINENO
  1737. # -----------------------
  1738. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1739. ac_fn_c_try_link ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. rm -f conftest.$ac_objext conftest$ac_exeext
  1743. if { { ac_try="$ac_link"
  1744. case "(($ac_try" in
  1745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1746. *) ac_try_echo=$ac_try;;
  1747. esac
  1748. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1749. $as_echo "$ac_try_echo"; } >&5
  1750. (eval "$ac_link") 2>conftest.err
  1751. ac_status=$?
  1752. if test -s conftest.err; then
  1753. grep -v '^ *+' conftest.err >conftest.er1
  1754. cat conftest.er1 >&5
  1755. mv -f conftest.er1 conftest.err
  1756. fi
  1757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1758. test $ac_status = 0; } && {
  1759. test -z "$ac_c_werror_flag" ||
  1760. test ! -s conftest.err
  1761. } && test -s conftest$ac_exeext && {
  1762. test "$cross_compiling" = yes ||
  1763. test -x conftest$ac_exeext
  1764. }; then :
  1765. ac_retval=0
  1766. else
  1767. $as_echo "$as_me: failed program was:" >&5
  1768. sed 's/^/| /' conftest.$ac_ext >&5
  1769. ac_retval=1
  1770. fi
  1771. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1772. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1773. # interfere with the next link command; also delete a directory that is
  1774. # left behind by Apple's compiler. We do this before executing the actions.
  1775. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1776. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1777. as_fn_set_status $ac_retval
  1778. } # ac_fn_c_try_link
  1779. cat >config.log <<_ACEOF
  1780. This file contains any messages produced by compilers while
  1781. running configure, to aid debugging if configure makes a mistake.
  1782. It was created by $as_me, which was
  1783. generated by GNU Autoconf 2.69. Invocation command line was
  1784. $ $0 $@
  1785. _ACEOF
  1786. exec 5>>config.log
  1787. {
  1788. cat <<_ASUNAME
  1789. ## --------- ##
  1790. ## Platform. ##
  1791. ## --------- ##
  1792. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1793. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1794. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1795. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1796. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1797. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1798. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1799. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1800. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1801. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1802. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1803. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1804. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1805. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1806. _ASUNAME
  1807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1808. for as_dir in $PATH
  1809. do
  1810. IFS=$as_save_IFS
  1811. test -z "$as_dir" && as_dir=.
  1812. $as_echo "PATH: $as_dir"
  1813. done
  1814. IFS=$as_save_IFS
  1815. } >&5
  1816. cat >&5 <<_ACEOF
  1817. ## ----------- ##
  1818. ## Core tests. ##
  1819. ## ----------- ##
  1820. _ACEOF
  1821. # Keep a trace of the command line.
  1822. # Strip out --no-create and --no-recursion so they do not pile up.
  1823. # Strip out --silent because we don't want to record it for future runs.
  1824. # Also quote any args containing shell meta-characters.
  1825. # Make two passes to allow for proper duplicate-argument suppression.
  1826. ac_configure_args=
  1827. ac_configure_args0=
  1828. ac_configure_args1=
  1829. ac_must_keep_next=false
  1830. for ac_pass in 1 2
  1831. do
  1832. for ac_arg
  1833. do
  1834. case $ac_arg in
  1835. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1836. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1837. | -silent | --silent | --silen | --sile | --sil)
  1838. continue ;;
  1839. *\'*)
  1840. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1841. esac
  1842. case $ac_pass in
  1843. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1844. 2)
  1845. as_fn_append ac_configure_args1 " '$ac_arg'"
  1846. if test $ac_must_keep_next = true; then
  1847. ac_must_keep_next=false # Got value, back to normal.
  1848. else
  1849. case $ac_arg in
  1850. *=* | --config-cache | -C | -disable-* | --disable-* \
  1851. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1852. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1853. | -with-* | --with-* | -without-* | --without-* | --x)
  1854. case "$ac_configure_args0 " in
  1855. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1856. esac
  1857. ;;
  1858. -* ) ac_must_keep_next=true ;;
  1859. esac
  1860. fi
  1861. as_fn_append ac_configure_args " '$ac_arg'"
  1862. ;;
  1863. esac
  1864. done
  1865. done
  1866. { ac_configure_args0=; unset ac_configure_args0;}
  1867. { ac_configure_args1=; unset ac_configure_args1;}
  1868. # When interrupted or exit'd, cleanup temporary files, and complete
  1869. # config.log. We remove comments because anyway the quotes in there
  1870. # would cause problems or look ugly.
  1871. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1872. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1873. trap 'exit_status=$?
  1874. # Save into config.log some information that might help in debugging.
  1875. {
  1876. echo
  1877. $as_echo "## ---------------- ##
  1878. ## Cache variables. ##
  1879. ## ---------------- ##"
  1880. echo
  1881. # The following way of writing the cache mishandles newlines in values,
  1882. (
  1883. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1884. eval ac_val=\$$ac_var
  1885. case $ac_val in #(
  1886. *${as_nl}*)
  1887. case $ac_var in #(
  1888. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1889. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1890. esac
  1891. case $ac_var in #(
  1892. _ | IFS | as_nl) ;; #(
  1893. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1894. *) { eval $ac_var=; unset $ac_var;} ;;
  1895. esac ;;
  1896. esac
  1897. done
  1898. (set) 2>&1 |
  1899. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1900. *${as_nl}ac_space=\ *)
  1901. sed -n \
  1902. "s/'\''/'\''\\\\'\'''\''/g;
  1903. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1904. ;; #(
  1905. *)
  1906. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1907. ;;
  1908. esac |
  1909. sort
  1910. )
  1911. echo
  1912. $as_echo "## ----------------- ##
  1913. ## Output variables. ##
  1914. ## ----------------- ##"
  1915. echo
  1916. for ac_var in $ac_subst_vars
  1917. do
  1918. eval ac_val=\$$ac_var
  1919. case $ac_val in
  1920. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1921. esac
  1922. $as_echo "$ac_var='\''$ac_val'\''"
  1923. done | sort
  1924. echo
  1925. if test -n "$ac_subst_files"; then
  1926. $as_echo "## ------------------- ##
  1927. ## File substitutions. ##
  1928. ## ------------------- ##"
  1929. echo
  1930. for ac_var in $ac_subst_files
  1931. do
  1932. eval ac_val=\$$ac_var
  1933. case $ac_val in
  1934. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1935. esac
  1936. $as_echo "$ac_var='\''$ac_val'\''"
  1937. done | sort
  1938. echo
  1939. fi
  1940. if test -s confdefs.h; then
  1941. $as_echo "## ----------- ##
  1942. ## confdefs.h. ##
  1943. ## ----------- ##"
  1944. echo
  1945. cat confdefs.h
  1946. echo
  1947. fi
  1948. test "$ac_signal" != 0 &&
  1949. $as_echo "$as_me: caught signal $ac_signal"
  1950. $as_echo "$as_me: exit $exit_status"
  1951. } >&5
  1952. rm -f core *.core core.conftest.* &&
  1953. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1954. exit $exit_status
  1955. ' 0
  1956. for ac_signal in 1 2 13 15; do
  1957. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1958. done
  1959. ac_signal=0
  1960. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1961. rm -f -r conftest* confdefs.h
  1962. $as_echo "/* confdefs.h */" > confdefs.h
  1963. # Predefined preprocessor variables.
  1964. cat >>confdefs.h <<_ACEOF
  1965. #define PACKAGE_NAME "$PACKAGE_NAME"
  1966. _ACEOF
  1967. cat >>confdefs.h <<_ACEOF
  1968. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1969. _ACEOF
  1970. cat >>confdefs.h <<_ACEOF
  1971. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1972. _ACEOF
  1973. cat >>confdefs.h <<_ACEOF
  1974. #define PACKAGE_STRING "$PACKAGE_STRING"
  1975. _ACEOF
  1976. cat >>confdefs.h <<_ACEOF
  1977. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1978. _ACEOF
  1979. cat >>confdefs.h <<_ACEOF
  1980. #define PACKAGE_URL "$PACKAGE_URL"
  1981. _ACEOF
  1982. # Let the site file select an alternate cache file if it wants to.
  1983. # Prefer an explicitly selected file to automatically selected ones.
  1984. ac_site_file1=NONE
  1985. ac_site_file2=NONE
  1986. if test -n "$CONFIG_SITE"; then
  1987. # We do not want a PATH search for config.site.
  1988. case $CONFIG_SITE in #((
  1989. -*) ac_site_file1=./$CONFIG_SITE;;
  1990. */*) ac_site_file1=$CONFIG_SITE;;
  1991. *) ac_site_file1=./$CONFIG_SITE;;
  1992. esac
  1993. elif test "x$prefix" != xNONE; then
  1994. ac_site_file1=$prefix/share/config.site
  1995. ac_site_file2=$prefix/etc/config.site
  1996. else
  1997. ac_site_file1=$ac_default_prefix/share/config.site
  1998. ac_site_file2=$ac_default_prefix/etc/config.site
  1999. fi
  2000. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2001. do
  2002. test "x$ac_site_file" = xNONE && continue
  2003. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2005. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2006. sed 's/^/| /' "$ac_site_file" >&5
  2007. . "$ac_site_file" \
  2008. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2009. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2010. as_fn_error $? "failed to load site script $ac_site_file
  2011. See \`config.log' for more details" "$LINENO" 5; }
  2012. fi
  2013. done
  2014. if test -r "$cache_file"; then
  2015. # Some versions of bash will fail to source /dev/null (special files
  2016. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2017. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2018. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2019. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2020. case $cache_file in
  2021. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2022. *) . "./$cache_file";;
  2023. esac
  2024. fi
  2025. else
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2027. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2028. >$cache_file
  2029. fi
  2030. # Check that the precious variables saved in the cache have kept the same
  2031. # value.
  2032. ac_cache_corrupted=false
  2033. for ac_var in $ac_precious_vars; do
  2034. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2035. eval ac_new_set=\$ac_env_${ac_var}_set
  2036. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2037. eval ac_new_val=\$ac_env_${ac_var}_value
  2038. case $ac_old_set,$ac_new_set in
  2039. set,)
  2040. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2041. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2042. ac_cache_corrupted=: ;;
  2043. ,set)
  2044. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2045. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2046. ac_cache_corrupted=: ;;
  2047. ,);;
  2048. *)
  2049. if test "x$ac_old_val" != "x$ac_new_val"; then
  2050. # differences in whitespace do not lead to failure.
  2051. ac_old_val_w=`echo x $ac_old_val`
  2052. ac_new_val_w=`echo x $ac_new_val`
  2053. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2054. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2055. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2056. ac_cache_corrupted=:
  2057. else
  2058. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2059. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2060. eval $ac_var=\$ac_old_val
  2061. fi
  2062. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2063. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2064. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2065. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2066. fi;;
  2067. esac
  2068. # Pass precious variables to config.status.
  2069. if test "$ac_new_set" = set; then
  2070. case $ac_new_val in
  2071. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2072. *) ac_arg=$ac_var=$ac_new_val ;;
  2073. esac
  2074. case " $ac_configure_args " in
  2075. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2076. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2077. esac
  2078. fi
  2079. done
  2080. if $ac_cache_corrupted; then
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2082. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2083. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2084. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2085. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2086. fi
  2087. ## -------------------- ##
  2088. ## Main body of script. ##
  2089. ## -------------------- ##
  2090. ac_ext=c
  2091. ac_cpp='$CPP $CPPFLAGS'
  2092. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2093. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2094. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2095. progname=$0
  2096. # if PWD already has a value, it is probably wrong.
  2097. if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
  2098. # Export original configure arguments for use by sub-configures.
  2099. # Quote arguments with shell meta charatcers.
  2100. TOPLEVEL_CONFIGURE_ARGUMENTS=
  2101. set -- "$progname" "$@"
  2102. for ac_arg
  2103. do
  2104. case "$ac_arg" in
  2105. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
  2106. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  2107. # if the argument is of the form -foo=baz, quote the baz part only
  2108. ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
  2109. *) ;;
  2110. esac
  2111. # Add the quoted argument to the list.
  2112. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
  2113. done
  2114. if test "$silent" = yes; then
  2115. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
  2116. fi
  2117. # Remove the initial space we just introduced and, as these will be
  2118. # expanded by make, quote '$'.
  2119. TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  2120. # Find the build, host, and target systems.
  2121. ac_aux_dir=
  2122. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2123. if test -f "$ac_dir/install-sh"; then
  2124. ac_aux_dir=$ac_dir
  2125. ac_install_sh="$ac_aux_dir/install-sh -c"
  2126. break
  2127. elif test -f "$ac_dir/install.sh"; then
  2128. ac_aux_dir=$ac_dir
  2129. ac_install_sh="$ac_aux_dir/install.sh -c"
  2130. break
  2131. elif test -f "$ac_dir/shtool"; then
  2132. ac_aux_dir=$ac_dir
  2133. ac_install_sh="$ac_aux_dir/shtool install -c"
  2134. break
  2135. fi
  2136. done
  2137. if test -z "$ac_aux_dir"; then
  2138. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2139. fi
  2140. # These three variables are undocumented and unsupported,
  2141. # and are intended to be withdrawn in a future Autoconf release.
  2142. # They can cause serious problems if a builder's source tree is in a directory
  2143. # whose full name contains unusual characters.
  2144. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2145. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2146. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2147. # Make sure we can run config.sub.
  2148. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2149. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2151. $as_echo_n "checking build system type... " >&6; }
  2152. if ${ac_cv_build+:} false; then :
  2153. $as_echo_n "(cached) " >&6
  2154. else
  2155. ac_build_alias=$build_alias
  2156. test "x$ac_build_alias" = x &&
  2157. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2158. test "x$ac_build_alias" = x &&
  2159. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2160. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2161. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2162. fi
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2164. $as_echo "$ac_cv_build" >&6; }
  2165. case $ac_cv_build in
  2166. *-*-*) ;;
  2167. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2168. esac
  2169. build=$ac_cv_build
  2170. ac_save_IFS=$IFS; IFS='-'
  2171. set x $ac_cv_build
  2172. shift
  2173. build_cpu=$1
  2174. build_vendor=$2
  2175. shift; shift
  2176. # Remember, the first character of IFS is used to create $*,
  2177. # except with old shells:
  2178. build_os=$*
  2179. IFS=$ac_save_IFS
  2180. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2181. case ${build_alias} in
  2182. "") build_noncanonical=${build} ;;
  2183. *) build_noncanonical=${build_alias} ;;
  2184. esac
  2185. case ${host_alias} in
  2186. "") host_noncanonical=${build_noncanonical} ;;
  2187. *) host_noncanonical=${host_alias} ;;
  2188. esac
  2189. case ${target_alias} in
  2190. "") target_noncanonical=${host_noncanonical} ;;
  2191. *) target_noncanonical=${target_alias} ;;
  2192. esac
  2193. test "$host_noncanonical" = "$target_noncanonical" &&
  2194. test "$program_prefix$program_suffix$program_transform_name" = \
  2195. NONENONEs,x,x, &&
  2196. program_transform_name=s,y,y,
  2197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2198. $as_echo_n "checking host system type... " >&6; }
  2199. if ${ac_cv_host+:} false; then :
  2200. $as_echo_n "(cached) " >&6
  2201. else
  2202. if test "x$host_alias" = x; then
  2203. ac_cv_host=$ac_cv_build
  2204. else
  2205. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2206. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2207. fi
  2208. fi
  2209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2210. $as_echo "$ac_cv_host" >&6; }
  2211. case $ac_cv_host in
  2212. *-*-*) ;;
  2213. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2214. esac
  2215. host=$ac_cv_host
  2216. ac_save_IFS=$IFS; IFS='-'
  2217. set x $ac_cv_host
  2218. shift
  2219. host_cpu=$1
  2220. host_vendor=$2
  2221. shift; shift
  2222. # Remember, the first character of IFS is used to create $*,
  2223. # except with old shells:
  2224. host_os=$*
  2225. IFS=$ac_save_IFS
  2226. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2228. $as_echo_n "checking target system type... " >&6; }
  2229. if ${ac_cv_target+:} false; then :
  2230. $as_echo_n "(cached) " >&6
  2231. else
  2232. if test "x$target_alias" = x; then
  2233. ac_cv_target=$ac_cv_host
  2234. else
  2235. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2236. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2237. fi
  2238. fi
  2239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2240. $as_echo "$ac_cv_target" >&6; }
  2241. case $ac_cv_target in
  2242. *-*-*) ;;
  2243. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2244. esac
  2245. target=$ac_cv_target
  2246. ac_save_IFS=$IFS; IFS='-'
  2247. set x $ac_cv_target
  2248. shift
  2249. target_cpu=$1
  2250. target_vendor=$2
  2251. shift; shift
  2252. # Remember, the first character of IFS is used to create $*,
  2253. # except with old shells:
  2254. target_os=$*
  2255. IFS=$ac_save_IFS
  2256. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2257. # The aliases save the names the user supplied, while $host etc.
  2258. # will get canonicalized.
  2259. test -n "$target_alias" &&
  2260. test "$program_prefix$program_suffix$program_transform_name" = \
  2261. NONENONEs,x,x, &&
  2262. program_prefix=${target_alias}-
  2263. test "$program_prefix" != NONE &&
  2264. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2265. # Use a double $ so make ignores it.
  2266. test "$program_suffix" != NONE &&
  2267. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2268. # Double any \ or $.
  2269. # By default was `s,x,x', remove it if useless.
  2270. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2271. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2272. # Get 'install' or 'install-sh' and its variants.
  2273. # Find a good install program. We prefer a C program (faster),
  2274. # so one script is as good as another. But avoid the broken or
  2275. # incompatible versions:
  2276. # SysV /etc/install, /usr/sbin/install
  2277. # SunOS /usr/etc/install
  2278. # IRIX /sbin/install
  2279. # AIX /bin/install
  2280. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2281. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2282. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2283. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2284. # OS/2's system install, which has a completely different semantic
  2285. # ./install, which can be erroneously created by make from ./install.sh.
  2286. # Reject install programs that cannot install multiple files.
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2288. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2289. if test -z "$INSTALL"; then
  2290. if ${ac_cv_path_install+:} false; then :
  2291. $as_echo_n "(cached) " >&6
  2292. else
  2293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2294. for as_dir in $PATH
  2295. do
  2296. IFS=$as_save_IFS
  2297. test -z "$as_dir" && as_dir=.
  2298. # Account for people who put trailing slashes in PATH elements.
  2299. case $as_dir/ in #((
  2300. ./ | .// | /[cC]/* | \
  2301. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2302. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2303. /usr/ucb/* ) ;;
  2304. *)
  2305. # OSF1 and SCO ODT 3.0 have their own names for install.
  2306. # Don't use installbsd from OSF since it installs stuff as root
  2307. # by default.
  2308. for ac_prog in ginstall scoinst install; do
  2309. for ac_exec_ext in '' $ac_executable_extensions; do
  2310. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2311. if test $ac_prog = install &&
  2312. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2313. # AIX install. It has an incompatible calling convention.
  2314. :
  2315. elif test $ac_prog = install &&
  2316. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2317. # program-specific install script used by HP pwplus--don't use.
  2318. :
  2319. else
  2320. rm -rf conftest.one conftest.two conftest.dir
  2321. echo one > conftest.one
  2322. echo two > conftest.two
  2323. mkdir conftest.dir
  2324. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2325. test -s conftest.one && test -s conftest.two &&
  2326. test -s conftest.dir/conftest.one &&
  2327. test -s conftest.dir/conftest.two
  2328. then
  2329. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2330. break 3
  2331. fi
  2332. fi
  2333. fi
  2334. done
  2335. done
  2336. ;;
  2337. esac
  2338. done
  2339. IFS=$as_save_IFS
  2340. rm -rf conftest.one conftest.two conftest.dir
  2341. fi
  2342. if test "${ac_cv_path_install+set}" = set; then
  2343. INSTALL=$ac_cv_path_install
  2344. else
  2345. # As a last resort, use the slow shell script. Don't cache a
  2346. # value for INSTALL within a source directory, because that will
  2347. # break other packages using the cache if that directory is
  2348. # removed, or if the value is a relative name.
  2349. INSTALL=$ac_install_sh
  2350. fi
  2351. fi
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2353. $as_echo "$INSTALL" >&6; }
  2354. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2355. # It thinks the first close brace ends the variable substitution.
  2356. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2357. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2358. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
  2360. $as_echo_n "checking whether ln works... " >&6; }
  2361. if ${acx_cv_prog_LN+:} false; then :
  2362. $as_echo_n "(cached) " >&6
  2363. else
  2364. rm -f conftestdata_t
  2365. echo >conftestdata_f
  2366. if ln conftestdata_f conftestdata_t 2>/dev/null
  2367. then
  2368. acx_cv_prog_LN=ln
  2369. else
  2370. acx_cv_prog_LN=no
  2371. fi
  2372. rm -f conftestdata_f conftestdata_t
  2373. fi
  2374. if test $acx_cv_prog_LN = no; then
  2375. LN="cp"
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
  2377. $as_echo "no, using $LN" >&6; }
  2378. else
  2379. LN="$acx_cv_prog_LN"
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2381. $as_echo "yes" >&6; }
  2382. fi
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  2384. $as_echo_n "checking whether ln -s works... " >&6; }
  2385. LN_S=$as_ln_s
  2386. if test "$LN_S" = "ln -s"; then
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2388. $as_echo "yes" >&6; }
  2389. else
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  2391. $as_echo "no, using $LN_S" >&6; }
  2392. fi
  2393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  2394. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  2395. if ${ac_cv_path_SED+:} false; then :
  2396. $as_echo_n "(cached) " >&6
  2397. else
  2398. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  2399. for ac_i in 1 2 3 4 5 6 7; do
  2400. ac_script="$ac_script$as_nl$ac_script"
  2401. done
  2402. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  2403. { ac_script=; unset ac_script;}
  2404. if test -z "$SED"; then
  2405. ac_path_SED_found=false
  2406. # Loop through the user's path and test for each of PROGNAME-LIST
  2407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2408. for as_dir in $PATH
  2409. do
  2410. IFS=$as_save_IFS
  2411. test -z "$as_dir" && as_dir=.
  2412. for ac_prog in sed gsed; do
  2413. for ac_exec_ext in '' $ac_executable_extensions; do
  2414. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  2415. as_fn_executable_p "$ac_path_SED" || continue
  2416. # Check for GNU ac_path_SED and select it if it is found.
  2417. # Check for GNU $ac_path_SED
  2418. case `"$ac_path_SED" --version 2>&1` in
  2419. *GNU*)
  2420. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  2421. *)
  2422. ac_count=0
  2423. $as_echo_n 0123456789 >"conftest.in"
  2424. while :
  2425. do
  2426. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2427. mv "conftest.tmp" "conftest.in"
  2428. cp "conftest.in" "conftest.nl"
  2429. $as_echo '' >> "conftest.nl"
  2430. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2431. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2432. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2433. if test $ac_count -gt ${ac_path_SED_max-0}; then
  2434. # Best one so far, save it but keep looking for a better one
  2435. ac_cv_path_SED="$ac_path_SED"
  2436. ac_path_SED_max=$ac_count
  2437. fi
  2438. # 10*(2^10) chars as input seems more than enough
  2439. test $ac_count -gt 10 && break
  2440. done
  2441. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2442. esac
  2443. $ac_path_SED_found && break 3
  2444. done
  2445. done
  2446. done
  2447. IFS=$as_save_IFS
  2448. if test -z "$ac_cv_path_SED"; then
  2449. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  2450. fi
  2451. else
  2452. ac_cv_path_SED=$SED
  2453. fi
  2454. fi
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  2456. $as_echo "$ac_cv_path_SED" >&6; }
  2457. SED="$ac_cv_path_SED"
  2458. rm -f conftest.sed
  2459. for ac_prog in gawk mawk nawk awk
  2460. do
  2461. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2462. set dummy $ac_prog; ac_word=$2
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2464. $as_echo_n "checking for $ac_word... " >&6; }
  2465. if ${ac_cv_prog_AWK+:} false; then :
  2466. $as_echo_n "(cached) " >&6
  2467. else
  2468. if test -n "$AWK"; then
  2469. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2470. else
  2471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2472. for as_dir in $PATH
  2473. do
  2474. IFS=$as_save_IFS
  2475. test -z "$as_dir" && as_dir=.
  2476. for ac_exec_ext in '' $ac_executable_extensions; do
  2477. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2478. ac_cv_prog_AWK="$ac_prog"
  2479. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2480. break 2
  2481. fi
  2482. done
  2483. done
  2484. IFS=$as_save_IFS
  2485. fi
  2486. fi
  2487. AWK=$ac_cv_prog_AWK
  2488. if test -n "$AWK"; then
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2490. $as_echo "$AWK" >&6; }
  2491. else
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2493. $as_echo "no" >&6; }
  2494. fi
  2495. test -n "$AWK" && break
  2496. done
  2497. srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
  2498. # We pass INSTALL explicitly to sub-makes. Make sure that it is not
  2499. # a relative path.
  2500. if test "$INSTALL" = "${srcdir}/install-sh -c"; then
  2501. INSTALL="${srcpwd}/install-sh -c"
  2502. fi
  2503. # Set srcdir to "." if that's what it is.
  2504. # This is important for multilib support.
  2505. pwd=`${PWDCMD-pwd}`
  2506. if test "${pwd}" = "${srcpwd}" ; then
  2507. srcdir=.
  2508. fi
  2509. topsrcdir=$srcpwd
  2510. extra_host_args=
  2511. ### To add a new directory to the tree, first choose whether it is a target
  2512. ### or a host dependent tool. Then put it into the appropriate list
  2513. ### (library or tools, host or target), doing a dependency sort.
  2514. # Subdirs will be configured in the order listed in build_configdirs,
  2515. # configdirs, or target_configdirs; see the serialization section below.
  2516. # Dependency sorting is only needed when *configuration* must be done in
  2517. # a particular order. In all cases a dependency should be specified in
  2518. # the Makefile, whether or not it's implicitly specified here.
  2519. # Double entries in build_configdirs, configdirs, or target_configdirs may
  2520. # cause circular dependencies and break everything horribly.
  2521. # these library is used by various programs built for the build
  2522. # environment
  2523. #
  2524. build_libs="build-libiberty build-libcpp"
  2525. # these tools are built for the build environment
  2526. build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
  2527. # these libraries are used by various programs built for the host environment
  2528. #f
  2529. host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
  2530. # these tools are built for the host environment
  2531. # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
  2532. # know that we are building the simulator.
  2533. # binutils, gas and ld appear in that order because it makes sense to run
  2534. # "make check" in that particular order.
  2535. # If --enable-gold is used, "gold" may replace "ld".
  2536. host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
  2537. # these libraries are built for the target environment, and are built after
  2538. # the host libraries and the host tools (which may be a cross compiler)
  2539. # Note that libiberty is not a target library.
  2540. target_libraries="target-libgcc \
  2541. target-libbacktrace \
  2542. target-libgloss \
  2543. target-newlib \
  2544. target-libgomp \
  2545. target-liboffloadmic \
  2546. target-libhsail-rt \
  2547. target-libatomic \
  2548. target-libitm \
  2549. target-libstdc++-v3 \
  2550. target-libsanitizer \
  2551. target-libvtv \
  2552. target-libssp \
  2553. target-libquadmath \
  2554. target-libgfortran \
  2555. target-libffi \
  2556. target-libobjc \
  2557. target-libada \
  2558. target-libgo"
  2559. # these tools are built using the target libraries, and are intended to
  2560. # run only in the target environment
  2561. #
  2562. # note: any program that *uses* libraries that are in the "target_libraries"
  2563. # list belongs in this list.
  2564. #
  2565. target_tools="target-rda"
  2566. ################################################################################
  2567. ## All tools belong in one of the four categories, and are assigned above
  2568. ## We assign ${configdirs} this way to remove all embedded newlines. This
  2569. ## is important because configure will choke if they ever get through.
  2570. ## ${configdirs} is directories we build using the host tools.
  2571. ## ${target_configdirs} is directories we build using the target tools.
  2572. configdirs=`echo ${host_libs} ${host_tools}`
  2573. target_configdirs=`echo ${target_libraries} ${target_tools}`
  2574. build_configdirs=`echo ${build_libs} ${build_tools}`
  2575. ################################################################################
  2576. srcname="gnu development package"
  2577. # This gets set non-empty for some net releases of packages.
  2578. appdirs=""
  2579. # Define is_cross_compiler to save on calls to 'test'.
  2580. is_cross_compiler=
  2581. if test x"${host}" = x"${target}" ; then
  2582. is_cross_compiler=no
  2583. else
  2584. is_cross_compiler=yes
  2585. fi
  2586. # Find the build and target subdir names.
  2587. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  2588. # have matching libraries, they should use host libraries: Makefile.tpl
  2589. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  2590. # However, they still use the build modules, because the corresponding
  2591. # host modules (e.g. bison) are only built for the host when bootstrap
  2592. # finishes. So:
  2593. # - build_subdir is where we find build modules, and never changes.
  2594. # - build_libsubdir is where we find build libraries, and can be overridden.
  2595. # Prefix 'build-' so this never conflicts with target_subdir.
  2596. build_subdir="build-${build_noncanonical}"
  2597. # Check whether --with-build-libsubdir was given.
  2598. if test "${with_build_libsubdir+set}" = set; then :
  2599. withval=$with_build_libsubdir; build_libsubdir="$withval"
  2600. else
  2601. build_libsubdir="$build_subdir"
  2602. fi
  2603. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  2604. if ( test $srcdir = . && test -d gcc ) \
  2605. || test -d $srcdir/../host-${host_noncanonical}; then
  2606. host_subdir="host-${host_noncanonical}"
  2607. else
  2608. host_subdir=.
  2609. fi
  2610. # No prefix.
  2611. target_subdir=${target_noncanonical}
  2612. # Be sure to cover against remnants of an in-tree build.
  2613. if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
  2614. as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
  2615. Use a pristine source tree when building in a separate tree" "$LINENO" 5
  2616. fi
  2617. # Skipdirs are removed silently.
  2618. skipdirs=
  2619. # Noconfigdirs are removed loudly.
  2620. noconfigdirs=""
  2621. use_gnu_ld=
  2622. # Make sure we don't let GNU ld be added if we didn't want it.
  2623. if test x$with_gnu_ld = xno ; then
  2624. use_gnu_ld=no
  2625. noconfigdirs="$noconfigdirs ld gold"
  2626. fi
  2627. use_gnu_as=
  2628. # Make sure we don't let GNU as be added if we didn't want it.
  2629. if test x$with_gnu_as = xno ; then
  2630. use_gnu_as=no
  2631. noconfigdirs="$noconfigdirs gas"
  2632. fi
  2633. use_included_zlib=
  2634. # Check whether --with-system-zlib was given.
  2635. if test "${with_system_zlib+set}" = set; then :
  2636. withval=$with_system_zlib;
  2637. fi
  2638. # Make sure we don't let ZLIB be added if we didn't want it.
  2639. if test x$with_system_zlib = xyes ; then
  2640. use_included_zlib=no
  2641. noconfigdirs="$noconfigdirs zlib"
  2642. fi
  2643. # Don't compile the bundled readline/libreadline.a if --with-system-readline
  2644. # is provided.
  2645. if test x$with_system_readline = xyes ; then
  2646. noconfigdirs="$noconfigdirs readline"
  2647. fi
  2648. # some tools are so dependent upon X11 that if we're not building with X,
  2649. # it's not even worth trying to configure, much less build, that tool.
  2650. case ${with_x} in
  2651. yes | "") ;; # the default value for this tree is that X11 is available
  2652. no)
  2653. skipdirs="${skipdirs} tk itcl libgui"
  2654. # We won't be able to build gdbtk without X.
  2655. enable_gdbtk=no
  2656. ;;
  2657. *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
  2658. esac
  2659. # Some are only suitable for cross toolchains.
  2660. # Remove these if host=target.
  2661. cross_only="target-libgloss target-newlib target-opcodes"
  2662. case $is_cross_compiler in
  2663. no) skipdirs="${skipdirs} ${cross_only}" ;;
  2664. esac
  2665. # If both --with-headers and --with-libs are specified, default to
  2666. # --without-newlib.
  2667. if test x"${with_headers}" != x && test x"${with_headers}" != xno \
  2668. && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  2669. if test x"${with_newlib}" = x ; then
  2670. with_newlib=no
  2671. fi
  2672. fi
  2673. # Recognize --with-newlib/--without-newlib.
  2674. case ${with_newlib} in
  2675. no) skipdirs="${skipdirs} target-newlib" ;;
  2676. yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
  2677. esac
  2678. # Check whether --enable-as-accelerator-for was given.
  2679. if test "${enable_as_accelerator_for+set}" = set; then :
  2680. enableval=$enable_as_accelerator_for;
  2681. fi
  2682. # Check whether --enable-offload-targets was given.
  2683. if test "${enable_offload_targets+set}" = set; then :
  2684. enableval=$enable_offload_targets;
  2685. if test x"$enable_offload_targets" = x; then
  2686. as_fn_error $? "no offload targets specified" "$LINENO" 5
  2687. fi
  2688. else
  2689. enable_offload_targets=
  2690. fi
  2691. # Handle --enable-gold, --enable-ld.
  2692. # --disable-gold [--enable-ld]
  2693. # Build only ld. Default option.
  2694. # --enable-gold [--enable-ld]
  2695. # Build both gold and ld. Install gold as "ld.gold", install ld
  2696. # as "ld.bfd" and "ld".
  2697. # --enable-gold=default [--enable-ld]
  2698. # Build both gold and ld. Install gold as "ld.gold" and "ld",
  2699. # install ld as "ld.bfd".
  2700. # --enable-gold[=default] --disable-ld
  2701. # Build only gold, which is then installed as both "ld.gold" and "ld".
  2702. # --enable-gold --enable-ld=default
  2703. # Build both gold (installed as "ld.gold") and ld (installed as "ld"
  2704. # and ld.bfd).
  2705. # In other words, ld is default
  2706. # --enable-gold=default --enable-ld=default
  2707. # Error.
  2708. default_ld=
  2709. # Check whether --enable-gold was given.
  2710. if test "${enable_gold+set}" = set; then :
  2711. enableval=$enable_gold; ENABLE_GOLD=$enableval
  2712. else
  2713. ENABLE_GOLD=no
  2714. fi
  2715. case "${ENABLE_GOLD}" in
  2716. yes|default)
  2717. # Check for ELF target.
  2718. is_elf=no
  2719. case "${target}" in
  2720. *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
  2721. | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
  2722. | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
  2723. | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
  2724. case "${target}" in
  2725. *-*-linux*aout* | *-*-linux*oldld*)
  2726. ;;
  2727. *)
  2728. is_elf=yes
  2729. ;;
  2730. esac
  2731. esac
  2732. if test "$is_elf" = "yes"; then
  2733. # Check for target supported by gold.
  2734. case "${target}" in
  2735. i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
  2736. | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
  2737. configdirs="$configdirs gold"
  2738. if test x${ENABLE_GOLD} = xdefault; then
  2739. default_ld=gold
  2740. fi
  2741. ENABLE_GOLD=yes
  2742. ;;
  2743. esac
  2744. fi
  2745. ;;
  2746. no)
  2747. ;;
  2748. *)
  2749. as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
  2750. ;;
  2751. esac
  2752. # Check whether --enable-ld was given.
  2753. if test "${enable_ld+set}" = set; then :
  2754. enableval=$enable_ld; ENABLE_LD=$enableval
  2755. else
  2756. ENABLE_LD=yes
  2757. fi
  2758. case "${ENABLE_LD}" in
  2759. default)
  2760. if test x${default_ld} != x; then
  2761. as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
  2762. fi
  2763. ;;
  2764. yes)
  2765. ;;
  2766. no)
  2767. if test x${ENABLE_GOLD} != xyes; then
  2768. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
  2769. $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
  2770. fi
  2771. configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
  2772. ;;
  2773. *)
  2774. as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
  2775. ;;
  2776. esac
  2777. # Check whether --enable-gprofng was given.
  2778. if test "${enable_gprofng+set}" = set; then :
  2779. enableval=$enable_gprofng; enable_gprofng=$enableval
  2780. else
  2781. enable_gprofng=yes
  2782. fi
  2783. if test "$enable_gprofng" = "yes"; then
  2784. case "${target}" in
  2785. x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
  2786. configdirs="$configdirs gprofng"
  2787. ;;
  2788. esac
  2789. fi
  2790. # PR gas/19109
  2791. # Decide the default method for compressing debug sections.
  2792. # Provide a configure time option to override our default.
  2793. # Check whether --enable-compressed_debug_sections was given.
  2794. if test "${enable_compressed_debug_sections+set}" = set; then :
  2795. enableval=$enable_compressed_debug_sections;
  2796. if test x"$enable_compressed_debug_sections" = xyes; then
  2797. as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
  2798. fi
  2799. else
  2800. enable_compressed_debug_sections=
  2801. fi
  2802. # Configure extra directories which are host specific
  2803. case "${host}" in
  2804. *-cygwin*)
  2805. configdirs="$configdirs libtermcap" ;;
  2806. esac
  2807. # A target can indicate whether a language isn't supported for some reason.
  2808. # Only spaces may be used in this macro; not newlines or tabs.
  2809. unsupported_languages=
  2810. # Remove more programs from consideration, based on the host or
  2811. # target this usually means that a port of the program doesn't
  2812. # exist yet.
  2813. case "${host}" in
  2814. i[3456789]86-*-msdosdjgpp*)
  2815. noconfigdirs="$noconfigdirs tcl tk itcl"
  2816. ;;
  2817. esac
  2818. # Check whether --enable-libquadmath was given.
  2819. if test "${enable_libquadmath+set}" = set; then :
  2820. enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
  2821. else
  2822. ENABLE_LIBQUADMATH=yes
  2823. fi
  2824. if test "${ENABLE_LIBQUADMATH}" = "no" ; then
  2825. noconfigdirs="$noconfigdirs target-libquadmath"
  2826. fi
  2827. # Check whether --enable-libquadmath-support was given.
  2828. if test "${enable_libquadmath_support+set}" = set; then :
  2829. enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
  2830. else
  2831. ENABLE_LIBQUADMATH_SUPPORT=yes
  2832. fi
  2833. enable_libquadmath_support=
  2834. if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
  2835. enable_libquadmath_support=no
  2836. fi
  2837. # Check whether --enable-libada was given.
  2838. if test "${enable_libada+set}" = set; then :
  2839. enableval=$enable_libada; ENABLE_LIBADA=$enableval
  2840. else
  2841. ENABLE_LIBADA=yes
  2842. fi
  2843. if test "${ENABLE_LIBADA}" != "yes" ; then
  2844. noconfigdirs="$noconfigdirs gnattools"
  2845. fi
  2846. # Check whether --enable-libssp was given.
  2847. if test "${enable_libssp+set}" = set; then :
  2848. enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
  2849. else
  2850. ENABLE_LIBSSP=yes
  2851. fi
  2852. # Check whether --enable-libstdcxx was given.
  2853. if test "${enable_libstdcxx+set}" = set; then :
  2854. enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
  2855. else
  2856. ENABLE_LIBSTDCXX=default
  2857. fi
  2858. if test "${ENABLE_LIBSTDCXX}" = "no" ; then
  2859. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  2860. fi
  2861. # If this is accelerator compiler and its target is intelmic we enable
  2862. # target liboffloadmic by default. If this is compiler with offloading
  2863. # for intelmic we enable host liboffloadmic by default. Otherwise
  2864. # liboffloadmic is disabled by default.
  2865. # Check whether --enable-liboffloadmic was given.
  2866. if test "${enable_liboffloadmic+set}" = set; then :
  2867. enableval=$enable_liboffloadmic; case "$enableval" in
  2868. no | host | target)
  2869. enable_liboffloadmic=$enableval ;;
  2870. *)
  2871. as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
  2872. esac
  2873. else
  2874. if test x"$enable_as_accelerator_for" != x; then
  2875. case "${target}" in
  2876. *-intelmic-* | *-intelmicemul-*)
  2877. enable_liboffloadmic=target
  2878. extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
  2879. ;;
  2880. *)
  2881. enable_liboffloadmic=no
  2882. ;;
  2883. esac
  2884. else
  2885. case "${enable_offload_targets}" in
  2886. *-intelmic-* | *-intelmicemul-*)
  2887. enable_liboffloadmic=host
  2888. extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
  2889. ;;
  2890. *)
  2891. enable_liboffloadmic=no
  2892. ;;
  2893. esac
  2894. fi
  2895. fi
  2896. # Enable libgomp by default on hosted POSIX systems, and a few others.
  2897. if test x$enable_libgomp = x ; then
  2898. case "${target}" in
  2899. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  2900. ;;
  2901. *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
  2902. ;;
  2903. *-*-solaris2* | *-*-hpux11*)
  2904. ;;
  2905. *-*-darwin* | *-*-aix*)
  2906. ;;
  2907. nvptx*-*-*)
  2908. ;;
  2909. *)
  2910. noconfigdirs="$noconfigdirs target-libgomp"
  2911. ;;
  2912. esac
  2913. fi
  2914. # Disable libatomic on unsupported systems.
  2915. if test -d ${srcdir}/libatomic; then
  2916. if test x$enable_libatomic = x; then
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
  2918. $as_echo_n "checking for libatomic support... " >&6; }
  2919. if (srcdir=${srcdir}/libatomic; \
  2920. . ${srcdir}/configure.tgt; \
  2921. test -n "$UNSUPPORTED")
  2922. then
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2924. $as_echo "no" >&6; }
  2925. noconfigdirs="$noconfigdirs target-libatomic"
  2926. else
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2928. $as_echo "yes" >&6; }
  2929. fi
  2930. fi
  2931. fi
  2932. # Disable liboffloadmic on unsupported systems.
  2933. if test -d ${srcdir}/liboffloadmic; then
  2934. if test x$enable_liboffloadmic != xno; then
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
  2936. $as_echo_n "checking for liboffloadmic support... " >&6; }
  2937. if (srcdir=${srcdir}/liboffloadmic; \
  2938. . ${srcdir}/configure.tgt; \
  2939. test -n "$UNSUPPORTED")
  2940. then
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2942. $as_echo "no" >&6; }
  2943. noconfigdirs="$noconfigdirs target-liboffloadmic"
  2944. else
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2946. $as_echo "yes" >&6; }
  2947. fi
  2948. fi
  2949. fi
  2950. # Disable libitm on unsupported systems.
  2951. if test -d ${srcdir}/libitm; then
  2952. if test x$enable_libitm = x; then
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
  2954. $as_echo_n "checking for libitm support... " >&6; }
  2955. if (srcdir=${srcdir}/libitm; \
  2956. . ${srcdir}/configure.tgt; \
  2957. test -n "$UNSUPPORTED")
  2958. then
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2960. $as_echo "no" >&6; }
  2961. noconfigdirs="$noconfigdirs target-libitm"
  2962. else
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2964. $as_echo "yes" >&6; }
  2965. fi
  2966. fi
  2967. fi
  2968. # Disable libsanitizer on unsupported systems.
  2969. if test -d ${srcdir}/libsanitizer; then
  2970. if test x$enable_libsanitizer = x; then
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
  2972. $as_echo_n "checking for libsanitizer support... " >&6; }
  2973. if (srcdir=${srcdir}/libsanitizer; \
  2974. . ${srcdir}/configure.tgt; \
  2975. test -n "$UNSUPPORTED")
  2976. then
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2978. $as_echo "no" >&6; }
  2979. noconfigdirs="$noconfigdirs target-libsanitizer"
  2980. else
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2982. $as_echo "yes" >&6; }
  2983. fi
  2984. fi
  2985. fi
  2986. # Disable libvtv on unsupported systems.
  2987. if test -d ${srcdir}/libvtv; then
  2988. if test x$enable_libvtv = x; then
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
  2990. $as_echo_n "checking for libvtv support... " >&6; }
  2991. if (srcdir=${srcdir}/libvtv; \
  2992. . ${srcdir}/configure.tgt; \
  2993. test "$VTV_SUPPORTED" != "yes")
  2994. then
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2996. $as_echo "no" >&6; }
  2997. noconfigdirs="$noconfigdirs target-libvtv"
  2998. else
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3000. $as_echo "yes" >&6; }
  3001. fi
  3002. fi
  3003. fi
  3004. # Disable libhsail-rt on unsupported systems.
  3005. if test -d ${srcdir}/libhsail-rt; then
  3006. if test x$enable_libhsail_rt = x; then
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
  3008. $as_echo_n "checking for libhsail-rt support... " >&6; }
  3009. if (srcdir=${srcdir}/libhsail-rt; \
  3010. . ${srcdir}/configure.tgt; \
  3011. test -n "$UNSUPPORTED")
  3012. then
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3014. $as_echo "no" >&6; }
  3015. unsupported_languages="$unsupported_languages brig"
  3016. # This implicitly disables also target-libhsail-rt as it won't
  3017. # get added to the build without BRIG FE.
  3018. else
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3020. $as_echo "yes" >&6; }
  3021. fi
  3022. fi
  3023. fi
  3024. # Disable libquadmath for some systems.
  3025. case "${target}" in
  3026. avr-*-*)
  3027. noconfigdirs="$noconfigdirs target-libquadmath"
  3028. ;;
  3029. # libquadmath is unused on AIX and libquadmath build process use of
  3030. # LD_LIBRARY_PATH can break AIX bootstrap.
  3031. powerpc-*-aix* | rs6000-*-aix*)
  3032. noconfigdirs="$noconfigdirs target-libquadmath"
  3033. ;;
  3034. esac
  3035. # Disable libssp for some systems.
  3036. case "${target}" in
  3037. avr-*-*)
  3038. # No hosted I/O support.
  3039. noconfigdirs="$noconfigdirs target-libssp"
  3040. ;;
  3041. powerpc-*-aix* | rs6000-*-aix*)
  3042. noconfigdirs="$noconfigdirs target-libssp"
  3043. ;;
  3044. rl78-*-*)
  3045. # libssp uses a misaligned load to trigger a fault, but the RL78
  3046. # doesn't fault for those - instead, it gives a build-time error
  3047. # for explicit misaligned loads.
  3048. noconfigdirs="$noconfigdirs target-libssp"
  3049. ;;
  3050. visium-*-*)
  3051. # No hosted I/O support.
  3052. noconfigdirs="$noconfigdirs target-libssp"
  3053. ;;
  3054. esac
  3055. # Disable libstdc++-v3 for some systems.
  3056. # Allow user to override this if they pass --enable-libstdc++-v3
  3057. if test "${ENABLE_LIBSTDCXX}" = "default" ; then
  3058. case "${target}" in
  3059. *-*-vxworks*)
  3060. # VxWorks uses the Dinkumware C++ library.
  3061. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3062. ;;
  3063. arm*-wince-pe*)
  3064. # the C++ libraries don't build on top of CE's C libraries
  3065. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3066. ;;
  3067. avr-*-*)
  3068. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3069. ;;
  3070. ft32-*-*)
  3071. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3072. ;;
  3073. esac
  3074. fi
  3075. # Disable Fortran for some systems.
  3076. case "${target}" in
  3077. mmix-*-*)
  3078. # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
  3079. unsupported_languages="$unsupported_languages fortran"
  3080. ;;
  3081. esac
  3082. # Disable libffi for some systems.
  3083. case "${target}" in
  3084. powerpc-*-darwin*)
  3085. ;;
  3086. i[3456789]86-*-darwin*)
  3087. ;;
  3088. x86_64-*-darwin[912]*)
  3089. ;;
  3090. *-*-darwin*)
  3091. noconfigdirs="$noconfigdirs target-libffi"
  3092. ;;
  3093. *-*-netware*)
  3094. noconfigdirs="$noconfigdirs target-libffi"
  3095. ;;
  3096. *-*-phoenix*)
  3097. noconfigdirs="$noconfigdirs target-libffi"
  3098. ;;
  3099. *-*-rtems*)
  3100. noconfigdirs="$noconfigdirs target-libffi"
  3101. ;;
  3102. *-*-tpf*)
  3103. noconfigdirs="$noconfigdirs target-libffi"
  3104. ;;
  3105. *-*-uclinux*)
  3106. noconfigdirs="$noconfigdirs target-libffi"
  3107. ;;
  3108. *-*-vxworks*)
  3109. noconfigdirs="$noconfigdirs target-libffi"
  3110. ;;
  3111. aarch64*-*-freebsd*)
  3112. noconfigdirs="$noconfigdirs target-libffi"
  3113. ;;
  3114. alpha*-*-*vms*)
  3115. noconfigdirs="$noconfigdirs target-libffi"
  3116. ;;
  3117. arm*-*-freebsd*)
  3118. noconfigdirs="$noconfigdirs target-libffi"
  3119. ;;
  3120. arm-wince-pe)
  3121. noconfigdirs="$noconfigdirs target-libffi"
  3122. ;;
  3123. cris-*-* | crisv32-*-*)
  3124. case "${target}" in
  3125. *-*-linux*)
  3126. ;;
  3127. *) # See PR46792 regarding target-libffi.
  3128. noconfigdirs="$noconfigdirs target-libffi";;
  3129. esac
  3130. ;;
  3131. hppa*64*-*-hpux*)
  3132. noconfigdirs="$noconfigdirs target-libffi"
  3133. ;;
  3134. hppa*-hp-hpux11*)
  3135. ;;
  3136. hppa*-*-hpux*)
  3137. noconfigdirs="$noconfigdirs target-libffi"
  3138. ;;
  3139. ia64*-*-*vms*)
  3140. noconfigdirs="$noconfigdirs target-libffi"
  3141. ;;
  3142. i[3456789]86-w64-mingw*)
  3143. noconfigdirs="$noconfigdirs target-libffi"
  3144. ;;
  3145. i[3456789]86-*-mingw*)
  3146. noconfigdirs="$noconfigdirs target-libffi"
  3147. ;;
  3148. x86_64-*-mingw*)
  3149. noconfigdirs="$noconfigdirs target-libffi"
  3150. ;;
  3151. mmix-*-*)
  3152. noconfigdirs="$noconfigdirs target-libffi"
  3153. ;;
  3154. powerpc-*-aix*)
  3155. ;;
  3156. rs6000-*-aix*)
  3157. ;;
  3158. ft32-*-*)
  3159. noconfigdirs="$noconfigdirs target-libffi"
  3160. ;;
  3161. *-*-lynxos*)
  3162. noconfigdirs="$noconfigdirs target-libffi"
  3163. ;;
  3164. esac
  3165. # Disable the go frontend on systems where it is known to not work. Please keep
  3166. # this in sync with contrib/config-list.mk.
  3167. case "${target}" in
  3168. *-*-darwin* | *-*-cygwin* | *-*-mingw*)
  3169. unsupported_languages="$unsupported_languages go"
  3170. ;;
  3171. esac
  3172. # Only allow gdbserver on some systems.
  3173. if test -d ${srcdir}/gdbserver; then
  3174. if test x$enable_gdbserver = x; then
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
  3176. $as_echo_n "checking for gdbserver support... " >&6; }
  3177. if (srcdir=${srcdir}/gdbserver; \
  3178. . ${srcdir}/configure.srv; \
  3179. test -n "$UNSUPPORTED")
  3180. then
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3182. $as_echo "no" >&6; }
  3183. noconfigdirs="$noconfigdirs gdbserver"
  3184. else
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3186. $as_echo "yes" >&6; }
  3187. fi
  3188. fi
  3189. fi
  3190. # Disable libgo for some systems where it is known to not work.
  3191. # For testing, you can easily override this with --enable-libgo.
  3192. if test x$enable_libgo = x; then
  3193. case "${target}" in
  3194. *-*-darwin*)
  3195. # PR 46986
  3196. noconfigdirs="$noconfigdirs target-libgo"
  3197. ;;
  3198. *-*-cygwin* | *-*-mingw*)
  3199. noconfigdirs="$noconfigdirs target-libgo"
  3200. ;;
  3201. esac
  3202. fi
  3203. # Default libgloss CPU subdirectory.
  3204. libgloss_dir="$target_cpu"
  3205. case "${target}" in
  3206. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  3207. libgloss_dir=wince
  3208. ;;
  3209. aarch64*-*-* )
  3210. libgloss_dir=aarch64
  3211. ;;
  3212. arm*-*-*)
  3213. libgloss_dir=arm
  3214. ;;
  3215. cris-*-* | crisv32-*-*)
  3216. libgloss_dir=cris
  3217. ;;
  3218. hppa*-*-*)
  3219. libgloss_dir=pa
  3220. ;;
  3221. i[3456789]86-*-*)
  3222. libgloss_dir=i386
  3223. ;;
  3224. m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
  3225. libgloss_dir=m68hc11
  3226. ;;
  3227. m68*-*-* | fido-*-*)
  3228. libgloss_dir=m68k
  3229. ;;
  3230. mips*-*-*)
  3231. libgloss_dir=mips
  3232. ;;
  3233. powerpc*-*-*)
  3234. libgloss_dir=rs6000
  3235. ;;
  3236. sparc*-*-*)
  3237. libgloss_dir=sparc
  3238. ;;
  3239. esac
  3240. # Disable newlib and libgloss for various target OSes.
  3241. case "${target}" in
  3242. alpha*-dec-osf*)
  3243. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3244. ;;
  3245. i[3456789]86-*-linux*)
  3246. # This section makes it possible to build newlib natively on linux.
  3247. # If we are using a cross compiler then don't configure newlib.
  3248. if test x${is_cross_compiler} != xno ; then
  3249. noconfigdirs="$noconfigdirs target-newlib"
  3250. fi
  3251. noconfigdirs="$noconfigdirs target-libgloss"
  3252. # If we are not using a cross compiler, do configure newlib.
  3253. # Note however, that newlib will only be configured in this situation
  3254. # if the --with-newlib option has been given, because otherwise
  3255. # 'target-newlib' will appear in skipdirs.
  3256. ;;
  3257. i[3456789]86-*-rdos*)
  3258. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3259. ;;
  3260. sh*-*-pe|mips*-*-pe|arm-wince-pe)
  3261. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3262. ;;
  3263. sparc-*-sunos4*)
  3264. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3265. ;;
  3266. *-*-aix*)
  3267. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3268. ;;
  3269. *-*-beos*)
  3270. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3271. ;;
  3272. *-*-chorusos)
  3273. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3274. ;;
  3275. *-*-dragonfly*)
  3276. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3277. ;;
  3278. *-*-freebsd*)
  3279. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3280. ;;
  3281. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  3282. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3283. ;;
  3284. *-*-lynxos*)
  3285. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3286. ;;
  3287. *-*-mingw*)
  3288. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3289. ;;
  3290. *-*-netbsd*)
  3291. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3292. ;;
  3293. *-*-netware*)
  3294. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3295. ;;
  3296. *-*-tpf*)
  3297. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3298. ;;
  3299. *-*-uclinux*)
  3300. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3301. ;;
  3302. *-*-vxworks*)
  3303. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3304. ;;
  3305. esac
  3306. case "${target}" in
  3307. *-*-chorusos)
  3308. ;;
  3309. aarch64-*-darwin*)
  3310. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3311. noconfigdirs="$noconfigdirs sim target-rda"
  3312. ;;
  3313. arm-*-darwin*)
  3314. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3315. noconfigdirs="$noconfigdirs sim target-rda"
  3316. ;;
  3317. powerpc-*-darwin*)
  3318. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3319. noconfigdirs="$noconfigdirs sim target-rda"
  3320. ;;
  3321. i[3456789]86-*-darwin*)
  3322. noconfigdirs="$noconfigdirs ld gprof"
  3323. noconfigdirs="$noconfigdirs sim target-rda"
  3324. ;;
  3325. x86_64-*-darwin[912]*)
  3326. noconfigdirs="$noconfigdirs ld gas gprof"
  3327. noconfigdirs="$noconfigdirs sim target-rda"
  3328. ;;
  3329. *-*-darwin*)
  3330. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3331. noconfigdirs="$noconfigdirs sim target-rda"
  3332. ;;
  3333. *-*-dragonfly*)
  3334. ;;
  3335. *-*-freebsd*)
  3336. if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
  3337. && test -f /usr/local/include/gmp.h; then
  3338. with_gmp=/usr/local
  3339. fi
  3340. ;;
  3341. *-*-kaos*)
  3342. # Remove unsupported stuff on all kaOS configurations.
  3343. noconfigdirs="$noconfigdirs target-libgloss"
  3344. ;;
  3345. *-*-netbsd*)
  3346. ;;
  3347. *-*-netware*)
  3348. ;;
  3349. *-*-phoenix*)
  3350. noconfigdirs="$noconfigdirs target-libgloss"
  3351. ;;
  3352. *-*-rtems*)
  3353. noconfigdirs="$noconfigdirs target-libgloss"
  3354. ;;
  3355. # The tpf target doesn't support gdb yet.
  3356. *-*-tpf*)
  3357. noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
  3358. ;;
  3359. *-*-uclinux*)
  3360. noconfigdirs="$noconfigdirs target-rda"
  3361. ;;
  3362. *-*-vxworks*)
  3363. ;;
  3364. alpha*-dec-osf*)
  3365. # ld works, but does not support shared libraries.
  3366. # gas doesn't generate exception information.
  3367. noconfigdirs="$noconfigdirs gas ld"
  3368. ;;
  3369. alpha*-*-*vms*)
  3370. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
  3371. ;;
  3372. alpha*-*-*)
  3373. # newlib is not 64 bit ready
  3374. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3375. ;;
  3376. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  3377. noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
  3378. ;;
  3379. arc*-*-*)
  3380. noconfigdirs="$noconfigdirs sim"
  3381. ;;
  3382. arm-*-pe*)
  3383. noconfigdirs="$noconfigdirs target-libgloss"
  3384. ;;
  3385. arm-*-riscix*)
  3386. noconfigdirs="$noconfigdirs ld target-libgloss"
  3387. ;;
  3388. avr-*-*)
  3389. if test x${with_avrlibc} != xno; then
  3390. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3391. fi
  3392. ;;
  3393. c4x-*-* | tic4x-*-*)
  3394. noconfigdirs="$noconfigdirs target-libgloss"
  3395. ;;
  3396. tic54x-*-*)
  3397. noconfigdirs="$noconfigdirs target-libgloss gdb"
  3398. ;;
  3399. d10v-*-*)
  3400. noconfigdirs="$noconfigdirs target-libgloss"
  3401. ;;
  3402. d30v-*-*)
  3403. noconfigdirs="$noconfigdirs gdb"
  3404. ;;
  3405. fr30-*-elf*)
  3406. noconfigdirs="$noconfigdirs gdb"
  3407. ;;
  3408. ft32-*-*)
  3409. noconfigdirs="$noconfigdirs target-rda gprof"
  3410. ;;
  3411. moxie-*-*)
  3412. noconfigdirs="$noconfigdirs"
  3413. ;;
  3414. h8300*-*-*)
  3415. noconfigdirs="$noconfigdirs target-libgloss"
  3416. ;;
  3417. h8500-*-*)
  3418. noconfigdirs="$noconfigdirs target-libgloss"
  3419. ;;
  3420. hppa1.1-*-osf* | hppa1.1-*-bsd* )
  3421. ;;
  3422. hppa*64*-*-hpux*)
  3423. noconfigdirs="$noconfigdirs gdb"
  3424. ;;
  3425. hppa*-*-hpux11*)
  3426. noconfigdirs="$noconfigdirs gdb ld"
  3427. ;;
  3428. hppa*64*-*-linux*)
  3429. ;;
  3430. hppa*-*-linux*)
  3431. ;;
  3432. hppa*-*-*elf* | \
  3433. hppa*-*-lites* | \
  3434. hppa*-*-openbsd* | \
  3435. hppa*64*-*-*)
  3436. ;;
  3437. hppa*-*-pro*)
  3438. ;;
  3439. hppa*-*-*)
  3440. noconfigdirs="$noconfigdirs ld"
  3441. ;;
  3442. i960-*-*)
  3443. noconfigdirs="$noconfigdirs gdb"
  3444. ;;
  3445. ia64*-*-elf*)
  3446. # No gdb support yet.
  3447. noconfigdirs="$noconfigdirs readline libgui itcl gdb"
  3448. ;;
  3449. ia64*-**-hpux*)
  3450. # No ld support yet.
  3451. noconfigdirs="$noconfigdirs gdb libgui itcl ld"
  3452. ;;
  3453. ia64*-*-*vms*)
  3454. # No ld support yet.
  3455. noconfigdirs="$noconfigdirs libgui itcl ld"
  3456. ;;
  3457. i[3456789]86-w64-mingw*)
  3458. ;;
  3459. i[3456789]86-*-mingw*)
  3460. target_configdirs="$target_configdirs target-winsup"
  3461. ;;
  3462. *-*-cygwin*)
  3463. target_configdirs="$target_configdirs target-libtermcap target-winsup"
  3464. noconfigdirs="$noconfigdirs target-libgloss"
  3465. # always build newlib if winsup directory is present.
  3466. if test -d "$srcdir/winsup/cygwin"; then
  3467. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  3468. elif test -d "$srcdir/newlib"; then
  3469. echo "Warning: winsup/cygwin is missing so newlib can't be built."
  3470. fi
  3471. ;;
  3472. i[3456789]86-*-pe)
  3473. noconfigdirs="$noconfigdirs target-libgloss"
  3474. ;;
  3475. i[3456789]86-*-sco3.2v5*)
  3476. # The linker does not yet know about weak symbols in COFF,
  3477. # and is not configured to handle mixed ELF and COFF.
  3478. noconfigdirs="$noconfigdirs ld target-libgloss"
  3479. ;;
  3480. i[3456789]86-*-sco*)
  3481. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3482. ;;
  3483. i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
  3484. noconfigdirs="$noconfigdirs target-libgloss"
  3485. ;;
  3486. i[3456789]86-*-sysv4*)
  3487. noconfigdirs="$noconfigdirs target-libgloss"
  3488. ;;
  3489. i[3456789]86-*-beos*)
  3490. noconfigdirs="$noconfigdirs gdb"
  3491. ;;
  3492. i[3456789]86-*-rdos*)
  3493. noconfigdirs="$noconfigdirs gdb"
  3494. ;;
  3495. mmix-*-*)
  3496. noconfigdirs="$noconfigdirs gdb"
  3497. ;;
  3498. mt-*-*)
  3499. noconfigdirs="$noconfigdirs sim"
  3500. ;;
  3501. nfp-*-*)
  3502. noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
  3503. noconfigdirs="$noconfigdirs $target_libraries"
  3504. ;;
  3505. pdp11-*-*)
  3506. noconfigdirs="$noconfigdirs gdb gprof"
  3507. ;;
  3508. powerpc-*-aix*)
  3509. # copied from rs6000-*-* entry
  3510. noconfigdirs="$noconfigdirs gprof"
  3511. ;;
  3512. powerpc*-*-winnt* | powerpc*-*-pe*)
  3513. target_configdirs="$target_configdirs target-winsup"
  3514. noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
  3515. # always build newlib.
  3516. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  3517. ;;
  3518. # This is temporary until we can link against shared libraries
  3519. powerpcle-*-solaris*)
  3520. noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
  3521. ;;
  3522. powerpc-*-beos*)
  3523. noconfigdirs="$noconfigdirs gdb"
  3524. ;;
  3525. rs6000-*-lynxos*)
  3526. noconfigdirs="$noconfigdirs gprof"
  3527. ;;
  3528. rs6000-*-aix*)
  3529. noconfigdirs="$noconfigdirs gprof"
  3530. ;;
  3531. rs6000-*-*)
  3532. noconfigdirs="$noconfigdirs gprof"
  3533. ;;
  3534. m68k-apollo-*)
  3535. noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
  3536. ;;
  3537. microblaze*)
  3538. noconfigdirs="$noconfigdirs gprof"
  3539. ;;
  3540. mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
  3541. if test x$with_newlib = xyes; then
  3542. noconfigdirs="$noconfigdirs gprof"
  3543. fi
  3544. ;;
  3545. mips*-*-irix5*)
  3546. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3547. ;;
  3548. mips*-*-irix6*)
  3549. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3550. ;;
  3551. mips*-*-bsd*)
  3552. noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
  3553. ;;
  3554. mips*-*-linux*)
  3555. ;;
  3556. mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
  3557. | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
  3558. noconfigdirs="$noconfigdirs ld gas gprof"
  3559. ;;
  3560. mips*-*-*)
  3561. noconfigdirs="$noconfigdirs gprof"
  3562. ;;
  3563. nvptx*-*-*)
  3564. noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
  3565. ;;
  3566. sh-*-*)
  3567. case "${target}" in
  3568. sh*-*-elf)
  3569. ;;
  3570. *)
  3571. noconfigdirs="$noconfigdirs target-libgloss" ;;
  3572. esac
  3573. ;;
  3574. sparc-*-sunos4*)
  3575. if test x${is_cross_compiler} = xno ; then
  3576. use_gnu_ld=no
  3577. fi
  3578. ;;
  3579. tic6x-*-*)
  3580. noconfigdirs="$noconfigdirs sim"
  3581. ;;
  3582. tilepro*-*-* | tilegx*-*-*)
  3583. noconfigdirs="$noconfigdirs sim"
  3584. ;;
  3585. v810-*-*)
  3586. noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
  3587. ;;
  3588. vax-*-*)
  3589. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3590. ;;
  3591. wasm32-*-*)
  3592. noconfigdirs="$noconfigdirs ld"
  3593. ;;
  3594. esac
  3595. # If we aren't building newlib, then don't build libgloss, since libgloss
  3596. # depends upon some newlib header files.
  3597. case "${noconfigdirs}" in
  3598. *target-libgloss*) ;;
  3599. *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
  3600. esac
  3601. # Work in distributions that contain no compiler tools, like Autoconf.
  3602. host_makefile_frag=/dev/null
  3603. if test -d ${srcdir}/config ; then
  3604. case "${host}" in
  3605. i[3456789]86-*-msdosdjgpp*)
  3606. host_makefile_frag="config/mh-djgpp"
  3607. ;;
  3608. *-cygwin*)
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
  3610. $as_echo_n "checking to see if cat works as expected... " >&6; }
  3611. echo a >cygwin-cat-check
  3612. if test `cat cygwin-cat-check` = a ; then
  3613. rm cygwin-cat-check
  3614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3615. $as_echo "yes" >&6; }
  3616. else
  3617. rm cygwin-cat-check
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3619. $as_echo "no" >&6; }
  3620. as_fn_error $? "The cat command does not ignore carriage return characters.
  3621. Please either mount the build directory in binary mode or run the following
  3622. commands before running any configure script:
  3623. set -o igncr
  3624. export SHELLOPTS
  3625. " "$LINENO" 5
  3626. fi
  3627. host_makefile_frag="config/mh-cygwin"
  3628. ;;
  3629. *-mingw*)
  3630. host_makefile_frag="config/mh-mingw"
  3631. ;;
  3632. alpha*-linux*)
  3633. host_makefile_frag="config/mh-alpha-linux"
  3634. ;;
  3635. hppa*-hp-hpux10*)
  3636. host_makefile_frag="config/mh-pa-hpux10"
  3637. ;;
  3638. hppa*-hp-hpux*)
  3639. host_makefile_frag="config/mh-pa"
  3640. ;;
  3641. hppa*-*)
  3642. host_makefile_frag="config/mh-pa"
  3643. ;;
  3644. *-*-darwin*)
  3645. host_makefile_frag="config/mh-darwin"
  3646. ;;
  3647. powerpc-*-aix*)
  3648. host_makefile_frag="config/mh-ppc-aix"
  3649. ;;
  3650. rs6000-*-aix*)
  3651. host_makefile_frag="config/mh-ppc-aix"
  3652. ;;
  3653. esac
  3654. fi
  3655. if test "${build}" != "${host}" ; then
  3656. AR_FOR_BUILD=${AR_FOR_BUILD-ar}
  3657. AS_FOR_BUILD=${AS_FOR_BUILD-as}
  3658. CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
  3659. CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
  3660. GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
  3661. GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
  3662. DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
  3663. LD_FOR_BUILD=${LD_FOR_BUILD-ld}
  3664. NM_FOR_BUILD=${NM_FOR_BUILD-nm}
  3665. RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
  3666. WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
  3667. WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
  3668. else
  3669. AR_FOR_BUILD="\$(AR)"
  3670. AS_FOR_BUILD="\$(AS)"
  3671. CC_FOR_BUILD="\$(CC)"
  3672. CXX_FOR_BUILD="\$(CXX)"
  3673. GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
  3674. GOC_FOR_BUILD="\$(GOC)"
  3675. DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
  3676. LD_FOR_BUILD="\$(LD)"
  3677. NM_FOR_BUILD="\$(NM)"
  3678. RANLIB_FOR_BUILD="\$(RANLIB)"
  3679. WINDRES_FOR_BUILD="\$(WINDRES)"
  3680. WINDMC_FOR_BUILD="\$(WINDMC)"
  3681. fi
  3682. ac_ext=c
  3683. ac_cpp='$CPP $CPPFLAGS'
  3684. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3685. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3686. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3687. if test -n "$ac_tool_prefix"; then
  3688. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3689. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3691. $as_echo_n "checking for $ac_word... " >&6; }
  3692. if ${ac_cv_prog_CC+:} false; then :
  3693. $as_echo_n "(cached) " >&6
  3694. else
  3695. if test -n "$CC"; then
  3696. ac_cv_prog_CC="$CC" # Let the user override the test.
  3697. else
  3698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3699. for as_dir in $PATH
  3700. do
  3701. IFS=$as_save_IFS
  3702. test -z "$as_dir" && as_dir=.
  3703. for ac_exec_ext in '' $ac_executable_extensions; do
  3704. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3705. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3707. break 2
  3708. fi
  3709. done
  3710. done
  3711. IFS=$as_save_IFS
  3712. fi
  3713. fi
  3714. CC=$ac_cv_prog_CC
  3715. if test -n "$CC"; then
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3717. $as_echo "$CC" >&6; }
  3718. else
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3720. $as_echo "no" >&6; }
  3721. fi
  3722. fi
  3723. if test -z "$ac_cv_prog_CC"; then
  3724. ac_ct_CC=$CC
  3725. # Extract the first word of "gcc", so it can be a program name with args.
  3726. set dummy gcc; ac_word=$2
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3728. $as_echo_n "checking for $ac_word... " >&6; }
  3729. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3730. $as_echo_n "(cached) " >&6
  3731. else
  3732. if test -n "$ac_ct_CC"; then
  3733. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3734. else
  3735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3736. for as_dir in $PATH
  3737. do
  3738. IFS=$as_save_IFS
  3739. test -z "$as_dir" && as_dir=.
  3740. for ac_exec_ext in '' $ac_executable_extensions; do
  3741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3742. ac_cv_prog_ac_ct_CC="gcc"
  3743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3744. break 2
  3745. fi
  3746. done
  3747. done
  3748. IFS=$as_save_IFS
  3749. fi
  3750. fi
  3751. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3752. if test -n "$ac_ct_CC"; then
  3753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3754. $as_echo "$ac_ct_CC" >&6; }
  3755. else
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3757. $as_echo "no" >&6; }
  3758. fi
  3759. if test "x$ac_ct_CC" = x; then
  3760. CC=""
  3761. else
  3762. case $cross_compiling:$ac_tool_warned in
  3763. yes:)
  3764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3765. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3766. ac_tool_warned=yes ;;
  3767. esac
  3768. CC=$ac_ct_CC
  3769. fi
  3770. else
  3771. CC="$ac_cv_prog_CC"
  3772. fi
  3773. if test -z "$CC"; then
  3774. if test -n "$ac_tool_prefix"; then
  3775. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3776. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3778. $as_echo_n "checking for $ac_word... " >&6; }
  3779. if ${ac_cv_prog_CC+:} false; then :
  3780. $as_echo_n "(cached) " >&6
  3781. else
  3782. if test -n "$CC"; then
  3783. ac_cv_prog_CC="$CC" # Let the user override the test.
  3784. else
  3785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3786. for as_dir in $PATH
  3787. do
  3788. IFS=$as_save_IFS
  3789. test -z "$as_dir" && as_dir=.
  3790. for ac_exec_ext in '' $ac_executable_extensions; do
  3791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3792. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3794. break 2
  3795. fi
  3796. done
  3797. done
  3798. IFS=$as_save_IFS
  3799. fi
  3800. fi
  3801. CC=$ac_cv_prog_CC
  3802. if test -n "$CC"; then
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3804. $as_echo "$CC" >&6; }
  3805. else
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3807. $as_echo "no" >&6; }
  3808. fi
  3809. fi
  3810. fi
  3811. if test -z "$CC"; then
  3812. # Extract the first word of "cc", so it can be a program name with args.
  3813. set dummy cc; ac_word=$2
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3815. $as_echo_n "checking for $ac_word... " >&6; }
  3816. if ${ac_cv_prog_CC+:} false; then :
  3817. $as_echo_n "(cached) " >&6
  3818. else
  3819. if test -n "$CC"; then
  3820. ac_cv_prog_CC="$CC" # Let the user override the test.
  3821. else
  3822. ac_prog_rejected=no
  3823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3824. for as_dir in $PATH
  3825. do
  3826. IFS=$as_save_IFS
  3827. test -z "$as_dir" && as_dir=.
  3828. for ac_exec_ext in '' $ac_executable_extensions; do
  3829. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3830. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3831. ac_prog_rejected=yes
  3832. continue
  3833. fi
  3834. ac_cv_prog_CC="cc"
  3835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3836. break 2
  3837. fi
  3838. done
  3839. done
  3840. IFS=$as_save_IFS
  3841. if test $ac_prog_rejected = yes; then
  3842. # We found a bogon in the path, so make sure we never use it.
  3843. set dummy $ac_cv_prog_CC
  3844. shift
  3845. if test $# != 0; then
  3846. # We chose a different compiler from the bogus one.
  3847. # However, it has the same basename, so the bogon will be chosen
  3848. # first if we set CC to just the basename; use the full file name.
  3849. shift
  3850. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3851. fi
  3852. fi
  3853. fi
  3854. fi
  3855. CC=$ac_cv_prog_CC
  3856. if test -n "$CC"; then
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3858. $as_echo "$CC" >&6; }
  3859. else
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3861. $as_echo "no" >&6; }
  3862. fi
  3863. fi
  3864. if test -z "$CC"; then
  3865. if test -n "$ac_tool_prefix"; then
  3866. for ac_prog in cl.exe
  3867. do
  3868. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3869. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3871. $as_echo_n "checking for $ac_word... " >&6; }
  3872. if ${ac_cv_prog_CC+:} false; then :
  3873. $as_echo_n "(cached) " >&6
  3874. else
  3875. if test -n "$CC"; then
  3876. ac_cv_prog_CC="$CC" # Let the user override the test.
  3877. else
  3878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3879. for as_dir in $PATH
  3880. do
  3881. IFS=$as_save_IFS
  3882. test -z "$as_dir" && as_dir=.
  3883. for ac_exec_ext in '' $ac_executable_extensions; do
  3884. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3885. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3886. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3887. break 2
  3888. fi
  3889. done
  3890. done
  3891. IFS=$as_save_IFS
  3892. fi
  3893. fi
  3894. CC=$ac_cv_prog_CC
  3895. if test -n "$CC"; then
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3897. $as_echo "$CC" >&6; }
  3898. else
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3900. $as_echo "no" >&6; }
  3901. fi
  3902. test -n "$CC" && break
  3903. done
  3904. fi
  3905. if test -z "$CC"; then
  3906. ac_ct_CC=$CC
  3907. for ac_prog in cl.exe
  3908. do
  3909. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3910. set dummy $ac_prog; ac_word=$2
  3911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3912. $as_echo_n "checking for $ac_word... " >&6; }
  3913. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3914. $as_echo_n "(cached) " >&6
  3915. else
  3916. if test -n "$ac_ct_CC"; then
  3917. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3918. else
  3919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3920. for as_dir in $PATH
  3921. do
  3922. IFS=$as_save_IFS
  3923. test -z "$as_dir" && as_dir=.
  3924. for ac_exec_ext in '' $ac_executable_extensions; do
  3925. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3926. ac_cv_prog_ac_ct_CC="$ac_prog"
  3927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3928. break 2
  3929. fi
  3930. done
  3931. done
  3932. IFS=$as_save_IFS
  3933. fi
  3934. fi
  3935. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3936. if test -n "$ac_ct_CC"; then
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3938. $as_echo "$ac_ct_CC" >&6; }
  3939. else
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3941. $as_echo "no" >&6; }
  3942. fi
  3943. test -n "$ac_ct_CC" && break
  3944. done
  3945. if test "x$ac_ct_CC" = x; then
  3946. CC=""
  3947. else
  3948. case $cross_compiling:$ac_tool_warned in
  3949. yes:)
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3951. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3952. ac_tool_warned=yes ;;
  3953. esac
  3954. CC=$ac_ct_CC
  3955. fi
  3956. fi
  3957. fi
  3958. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3959. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3960. as_fn_error $? "no acceptable C compiler found in \$PATH
  3961. See \`config.log' for more details" "$LINENO" 5; }
  3962. # Provide some information about the compiler.
  3963. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3964. set X $ac_compile
  3965. ac_compiler=$2
  3966. for ac_option in --version -v -V -qversion; do
  3967. { { ac_try="$ac_compiler $ac_option >&5"
  3968. case "(($ac_try" in
  3969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3970. *) ac_try_echo=$ac_try;;
  3971. esac
  3972. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3973. $as_echo "$ac_try_echo"; } >&5
  3974. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3975. ac_status=$?
  3976. if test -s conftest.err; then
  3977. sed '10a\
  3978. ... rest of stderr output deleted ...
  3979. 10q' conftest.err >conftest.er1
  3980. cat conftest.er1 >&5
  3981. fi
  3982. rm -f conftest.er1 conftest.err
  3983. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3984. test $ac_status = 0; }
  3985. done
  3986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3987. /* end confdefs.h. */
  3988. int
  3989. main ()
  3990. {
  3991. ;
  3992. return 0;
  3993. }
  3994. _ACEOF
  3995. ac_clean_files_save=$ac_clean_files
  3996. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3997. # Try to create an executable without -o first, disregard a.out.
  3998. # It will help us diagnose broken compilers, and finding out an intuition
  3999. # of exeext.
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4001. $as_echo_n "checking whether the C compiler works... " >&6; }
  4002. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4003. # The possible output files:
  4004. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4005. ac_rmfiles=
  4006. for ac_file in $ac_files
  4007. do
  4008. case $ac_file in
  4009. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4010. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4011. esac
  4012. done
  4013. rm -f $ac_rmfiles
  4014. if { { ac_try="$ac_link_default"
  4015. case "(($ac_try" in
  4016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4017. *) ac_try_echo=$ac_try;;
  4018. esac
  4019. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4020. $as_echo "$ac_try_echo"; } >&5
  4021. (eval "$ac_link_default") 2>&5
  4022. ac_status=$?
  4023. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4024. test $ac_status = 0; }; then :
  4025. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4026. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4027. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4028. # so that the user can short-circuit this test for compilers unknown to
  4029. # Autoconf.
  4030. for ac_file in $ac_files ''
  4031. do
  4032. test -f "$ac_file" || continue
  4033. case $ac_file in
  4034. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4035. ;;
  4036. [ab].out )
  4037. # We found the default executable, but exeext='' is most
  4038. # certainly right.
  4039. break;;
  4040. *.* )
  4041. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  4042. then :; else
  4043. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4044. fi
  4045. # We set ac_cv_exeext here because the later test for it is not
  4046. # safe: cross compilers may not add the suffix if given an `-o'
  4047. # argument, so we may need to know it at that point already.
  4048. # Even if this section looks crufty: it has the advantage of
  4049. # actually working.
  4050. break;;
  4051. * )
  4052. break;;
  4053. esac
  4054. done
  4055. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4056. else
  4057. ac_file=''
  4058. fi
  4059. if test -z "$ac_file"; then :
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4061. $as_echo "no" >&6; }
  4062. $as_echo "$as_me: failed program was:" >&5
  4063. sed 's/^/| /' conftest.$ac_ext >&5
  4064. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4065. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4066. as_fn_error 77 "C compiler cannot create executables
  4067. See \`config.log' for more details" "$LINENO" 5; }
  4068. else
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4070. $as_echo "yes" >&6; }
  4071. fi
  4072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4073. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4075. $as_echo "$ac_file" >&6; }
  4076. ac_exeext=$ac_cv_exeext
  4077. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4078. ac_clean_files=$ac_clean_files_save
  4079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4080. $as_echo_n "checking for suffix of executables... " >&6; }
  4081. if { { ac_try="$ac_link"
  4082. case "(($ac_try" in
  4083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4084. *) ac_try_echo=$ac_try;;
  4085. esac
  4086. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4087. $as_echo "$ac_try_echo"; } >&5
  4088. (eval "$ac_link") 2>&5
  4089. ac_status=$?
  4090. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4091. test $ac_status = 0; }; then :
  4092. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4093. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4094. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4095. # `rm'.
  4096. for ac_file in conftest.exe conftest conftest.*; do
  4097. test -f "$ac_file" || continue
  4098. case $ac_file in
  4099. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4100. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4101. break;;
  4102. * ) break;;
  4103. esac
  4104. done
  4105. else
  4106. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4107. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4108. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4109. See \`config.log' for more details" "$LINENO" 5; }
  4110. fi
  4111. rm -f conftest conftest$ac_cv_exeext
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4113. $as_echo "$ac_cv_exeext" >&6; }
  4114. rm -f conftest.$ac_ext
  4115. EXEEXT=$ac_cv_exeext
  4116. ac_exeext=$EXEEXT
  4117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4118. /* end confdefs.h. */
  4119. #include <stdio.h>
  4120. int
  4121. main ()
  4122. {
  4123. FILE *f = fopen ("conftest.out", "w");
  4124. return ferror (f) || fclose (f) != 0;
  4125. ;
  4126. return 0;
  4127. }
  4128. _ACEOF
  4129. ac_clean_files="$ac_clean_files conftest.out"
  4130. # Check that the compiler produces executables we can run. If not, either
  4131. # the compiler is broken, or we cross compile.
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4133. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4134. if test "$cross_compiling" != yes; then
  4135. { { ac_try="$ac_link"
  4136. case "(($ac_try" in
  4137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4138. *) ac_try_echo=$ac_try;;
  4139. esac
  4140. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4141. $as_echo "$ac_try_echo"; } >&5
  4142. (eval "$ac_link") 2>&5
  4143. ac_status=$?
  4144. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4145. test $ac_status = 0; }
  4146. if { ac_try='./conftest$ac_cv_exeext'
  4147. { { case "(($ac_try" in
  4148. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4149. *) ac_try_echo=$ac_try;;
  4150. esac
  4151. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4152. $as_echo "$ac_try_echo"; } >&5
  4153. (eval "$ac_try") 2>&5
  4154. ac_status=$?
  4155. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4156. test $ac_status = 0; }; }; then
  4157. cross_compiling=no
  4158. else
  4159. if test "$cross_compiling" = maybe; then
  4160. cross_compiling=yes
  4161. else
  4162. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4163. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4164. as_fn_error $? "cannot run C compiled programs.
  4165. If you meant to cross compile, use \`--host'.
  4166. See \`config.log' for more details" "$LINENO" 5; }
  4167. fi
  4168. fi
  4169. fi
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4171. $as_echo "$cross_compiling" >&6; }
  4172. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4173. ac_clean_files=$ac_clean_files_save
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4175. $as_echo_n "checking for suffix of object files... " >&6; }
  4176. if ${ac_cv_objext+:} false; then :
  4177. $as_echo_n "(cached) " >&6
  4178. else
  4179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4180. /* end confdefs.h. */
  4181. int
  4182. main ()
  4183. {
  4184. ;
  4185. return 0;
  4186. }
  4187. _ACEOF
  4188. rm -f conftest.o conftest.obj
  4189. if { { ac_try="$ac_compile"
  4190. case "(($ac_try" in
  4191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4192. *) ac_try_echo=$ac_try;;
  4193. esac
  4194. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4195. $as_echo "$ac_try_echo"; } >&5
  4196. (eval "$ac_compile") 2>&5
  4197. ac_status=$?
  4198. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4199. test $ac_status = 0; }; then :
  4200. for ac_file in conftest.o conftest.obj conftest.*; do
  4201. test -f "$ac_file" || continue;
  4202. case $ac_file in
  4203. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4204. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4205. break;;
  4206. esac
  4207. done
  4208. else
  4209. $as_echo "$as_me: failed program was:" >&5
  4210. sed 's/^/| /' conftest.$ac_ext >&5
  4211. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4212. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4213. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4214. See \`config.log' for more details" "$LINENO" 5; }
  4215. fi
  4216. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4217. fi
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4219. $as_echo "$ac_cv_objext" >&6; }
  4220. OBJEXT=$ac_cv_objext
  4221. ac_objext=$OBJEXT
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4223. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4224. if ${ac_cv_c_compiler_gnu+:} false; then :
  4225. $as_echo_n "(cached) " >&6
  4226. else
  4227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4228. /* end confdefs.h. */
  4229. int
  4230. main ()
  4231. {
  4232. #ifndef __GNUC__
  4233. choke me
  4234. #endif
  4235. ;
  4236. return 0;
  4237. }
  4238. _ACEOF
  4239. if ac_fn_c_try_compile "$LINENO"; then :
  4240. ac_compiler_gnu=yes
  4241. else
  4242. ac_compiler_gnu=no
  4243. fi
  4244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4245. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4246. fi
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4248. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4249. if test $ac_compiler_gnu = yes; then
  4250. GCC=yes
  4251. else
  4252. GCC=
  4253. fi
  4254. ac_test_CFLAGS=${CFLAGS+set}
  4255. ac_save_CFLAGS=$CFLAGS
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4257. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4258. if ${ac_cv_prog_cc_g+:} false; then :
  4259. $as_echo_n "(cached) " >&6
  4260. else
  4261. ac_save_c_werror_flag=$ac_c_werror_flag
  4262. ac_c_werror_flag=yes
  4263. ac_cv_prog_cc_g=no
  4264. CFLAGS="-g"
  4265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4266. /* end confdefs.h. */
  4267. int
  4268. main ()
  4269. {
  4270. ;
  4271. return 0;
  4272. }
  4273. _ACEOF
  4274. if ac_fn_c_try_compile "$LINENO"; then :
  4275. ac_cv_prog_cc_g=yes
  4276. else
  4277. CFLAGS=""
  4278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4279. /* end confdefs.h. */
  4280. int
  4281. main ()
  4282. {
  4283. ;
  4284. return 0;
  4285. }
  4286. _ACEOF
  4287. if ac_fn_c_try_compile "$LINENO"; then :
  4288. else
  4289. ac_c_werror_flag=$ac_save_c_werror_flag
  4290. CFLAGS="-g"
  4291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4292. /* end confdefs.h. */
  4293. int
  4294. main ()
  4295. {
  4296. ;
  4297. return 0;
  4298. }
  4299. _ACEOF
  4300. if ac_fn_c_try_compile "$LINENO"; then :
  4301. ac_cv_prog_cc_g=yes
  4302. fi
  4303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4304. fi
  4305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4306. fi
  4307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4308. ac_c_werror_flag=$ac_save_c_werror_flag
  4309. fi
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4311. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4312. if test "$ac_test_CFLAGS" = set; then
  4313. CFLAGS=$ac_save_CFLAGS
  4314. elif test $ac_cv_prog_cc_g = yes; then
  4315. if test "$GCC" = yes; then
  4316. CFLAGS="-g -O2"
  4317. else
  4318. CFLAGS="-g"
  4319. fi
  4320. else
  4321. if test "$GCC" = yes; then
  4322. CFLAGS="-O2"
  4323. else
  4324. CFLAGS=
  4325. fi
  4326. fi
  4327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4328. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4329. if ${ac_cv_prog_cc_c89+:} false; then :
  4330. $as_echo_n "(cached) " >&6
  4331. else
  4332. ac_cv_prog_cc_c89=no
  4333. ac_save_CC=$CC
  4334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4335. /* end confdefs.h. */
  4336. #include <stdarg.h>
  4337. #include <stdio.h>
  4338. struct stat;
  4339. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4340. struct buf { int x; };
  4341. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4342. static char *e (p, i)
  4343. char **p;
  4344. int i;
  4345. {
  4346. return p[i];
  4347. }
  4348. static char *f (char * (*g) (char **, int), char **p, ...)
  4349. {
  4350. char *s;
  4351. va_list v;
  4352. va_start (v,p);
  4353. s = g (p, va_arg (v,int));
  4354. va_end (v);
  4355. return s;
  4356. }
  4357. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4358. function prototypes and stuff, but not '\xHH' hex character constants.
  4359. These don't provoke an error unfortunately, instead are silently treated
  4360. as 'x'. The following induces an error, until -std is added to get
  4361. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4362. array size at least. It's necessary to write '\x00'==0 to get something
  4363. that's true only with -std. */
  4364. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4365. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4366. inside strings and character constants. */
  4367. #define FOO(x) 'x'
  4368. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4369. int test (int i, double x);
  4370. struct s1 {int (*f) (int a);};
  4371. struct s2 {int (*f) (double a);};
  4372. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4373. int argc;
  4374. char **argv;
  4375. int
  4376. main ()
  4377. {
  4378. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4379. ;
  4380. return 0;
  4381. }
  4382. _ACEOF
  4383. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4384. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4385. do
  4386. CC="$ac_save_CC $ac_arg"
  4387. if ac_fn_c_try_compile "$LINENO"; then :
  4388. ac_cv_prog_cc_c89=$ac_arg
  4389. fi
  4390. rm -f core conftest.err conftest.$ac_objext
  4391. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4392. done
  4393. rm -f conftest.$ac_ext
  4394. CC=$ac_save_CC
  4395. fi
  4396. # AC_CACHE_VAL
  4397. case "x$ac_cv_prog_cc_c89" in
  4398. x)
  4399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4400. $as_echo "none needed" >&6; } ;;
  4401. xno)
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4403. $as_echo "unsupported" >&6; } ;;
  4404. *)
  4405. CC="$CC $ac_cv_prog_cc_c89"
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4407. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4408. esac
  4409. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4410. fi
  4411. ac_ext=c
  4412. ac_cpp='$CPP $CPPFLAGS'
  4413. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4414. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4415. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  4417. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  4418. if ${ac_cv_prog_cc_c99+:} false; then :
  4419. $as_echo_n "(cached) " >&6
  4420. else
  4421. ac_cv_prog_cc_c99=no
  4422. ac_save_CC=$CC
  4423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4424. /* end confdefs.h. */
  4425. #include <stdarg.h>
  4426. #include <stdbool.h>
  4427. #include <stdlib.h>
  4428. #include <wchar.h>
  4429. #include <stdio.h>
  4430. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  4431. #define debug(...) fprintf (stderr, __VA_ARGS__)
  4432. #define showlist(...) puts (#__VA_ARGS__)
  4433. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  4434. static void
  4435. test_varargs_macros (void)
  4436. {
  4437. int x = 1234;
  4438. int y = 5678;
  4439. debug ("Flag");
  4440. debug ("X = %d\n", x);
  4441. showlist (The first, second, and third items.);
  4442. report (x>y, "x is %d but y is %d", x, y);
  4443. }
  4444. // Check long long types.
  4445. #define BIG64 18446744073709551615ull
  4446. #define BIG32 4294967295ul
  4447. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  4448. #if !BIG_OK
  4449. your preprocessor is broken;
  4450. #endif
  4451. #if BIG_OK
  4452. #else
  4453. your preprocessor is broken;
  4454. #endif
  4455. static long long int bignum = -9223372036854775807LL;
  4456. static unsigned long long int ubignum = BIG64;
  4457. struct incomplete_array
  4458. {
  4459. int datasize;
  4460. double data[];
  4461. };
  4462. struct named_init {
  4463. int number;
  4464. const wchar_t *name;
  4465. double average;
  4466. };
  4467. typedef const char *ccp;
  4468. static inline int
  4469. test_restrict (ccp restrict text)
  4470. {
  4471. // See if C++-style comments work.
  4472. // Iterate through items via the restricted pointer.
  4473. // Also check for declarations in for loops.
  4474. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  4475. continue;
  4476. return 0;
  4477. }
  4478. // Check varargs and va_copy.
  4479. static void
  4480. test_varargs (const char *format, ...)
  4481. {
  4482. va_list args;
  4483. va_start (args, format);
  4484. va_list args_copy;
  4485. va_copy (args_copy, args);
  4486. const char *str;
  4487. int number;
  4488. float fnumber;
  4489. while (*format)
  4490. {
  4491. switch (*format++)
  4492. {
  4493. case 's': // string
  4494. str = va_arg (args_copy, const char *);
  4495. break;
  4496. case 'd': // int
  4497. number = va_arg (args_copy, int);
  4498. break;
  4499. case 'f': // float
  4500. fnumber = va_arg (args_copy, double);
  4501. break;
  4502. default:
  4503. break;
  4504. }
  4505. }
  4506. va_end (args_copy);
  4507. va_end (args);
  4508. }
  4509. int
  4510. main ()
  4511. {
  4512. // Check bool.
  4513. _Bool success = false;
  4514. // Check restrict.
  4515. if (test_restrict ("String literal") == 0)
  4516. success = true;
  4517. char *restrict newvar = "Another string";
  4518. // Check varargs.
  4519. test_varargs ("s, d' f .", "string", 65, 34.234);
  4520. test_varargs_macros ();
  4521. // Check flexible array members.
  4522. struct incomplete_array *ia =
  4523. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  4524. ia->datasize = 10;
  4525. for (int i = 0; i < ia->datasize; ++i)
  4526. ia->data[i] = i * 1.234;
  4527. // Check named initializers.
  4528. struct named_init ni = {
  4529. .number = 34,
  4530. .name = L"Test wide string",
  4531. .average = 543.34343,
  4532. };
  4533. ni.number = 58;
  4534. int dynamic_array[ni.number];
  4535. dynamic_array[ni.number - 1] = 543;
  4536. // work around unused variable warnings
  4537. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  4538. || dynamic_array[ni.number - 1] != 543);
  4539. ;
  4540. return 0;
  4541. }
  4542. _ACEOF
  4543. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  4544. do
  4545. CC="$ac_save_CC $ac_arg"
  4546. if ac_fn_c_try_compile "$LINENO"; then :
  4547. ac_cv_prog_cc_c99=$ac_arg
  4548. fi
  4549. rm -f core conftest.err conftest.$ac_objext
  4550. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4551. done
  4552. rm -f conftest.$ac_ext
  4553. CC=$ac_save_CC
  4554. fi
  4555. # AC_CACHE_VAL
  4556. case "x$ac_cv_prog_cc_c99" in
  4557. x)
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4559. $as_echo "none needed" >&6; } ;;
  4560. xno)
  4561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4562. $as_echo "unsupported" >&6; } ;;
  4563. *)
  4564. CC="$CC $ac_cv_prog_cc_c99"
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4566. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4567. esac
  4568. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4569. fi
  4570. ac_ext=cpp
  4571. ac_cpp='$CXXCPP $CPPFLAGS'
  4572. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4573. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4574. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4575. if test -z "$CXX"; then
  4576. if test -n "$CCC"; then
  4577. CXX=$CCC
  4578. else
  4579. if test -n "$ac_tool_prefix"; then
  4580. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4581. do
  4582. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4583. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4585. $as_echo_n "checking for $ac_word... " >&6; }
  4586. if ${ac_cv_prog_CXX+:} false; then :
  4587. $as_echo_n "(cached) " >&6
  4588. else
  4589. if test -n "$CXX"; then
  4590. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4591. else
  4592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4593. for as_dir in $PATH
  4594. do
  4595. IFS=$as_save_IFS
  4596. test -z "$as_dir" && as_dir=.
  4597. for ac_exec_ext in '' $ac_executable_extensions; do
  4598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4599. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4601. break 2
  4602. fi
  4603. done
  4604. done
  4605. IFS=$as_save_IFS
  4606. fi
  4607. fi
  4608. CXX=$ac_cv_prog_CXX
  4609. if test -n "$CXX"; then
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4611. $as_echo "$CXX" >&6; }
  4612. else
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4614. $as_echo "no" >&6; }
  4615. fi
  4616. test -n "$CXX" && break
  4617. done
  4618. fi
  4619. if test -z "$CXX"; then
  4620. ac_ct_CXX=$CXX
  4621. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4622. do
  4623. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4624. set dummy $ac_prog; ac_word=$2
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4626. $as_echo_n "checking for $ac_word... " >&6; }
  4627. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4628. $as_echo_n "(cached) " >&6
  4629. else
  4630. if test -n "$ac_ct_CXX"; then
  4631. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4632. else
  4633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4634. for as_dir in $PATH
  4635. do
  4636. IFS=$as_save_IFS
  4637. test -z "$as_dir" && as_dir=.
  4638. for ac_exec_ext in '' $ac_executable_extensions; do
  4639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4640. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4642. break 2
  4643. fi
  4644. done
  4645. done
  4646. IFS=$as_save_IFS
  4647. fi
  4648. fi
  4649. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4650. if test -n "$ac_ct_CXX"; then
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4652. $as_echo "$ac_ct_CXX" >&6; }
  4653. else
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4655. $as_echo "no" >&6; }
  4656. fi
  4657. test -n "$ac_ct_CXX" && break
  4658. done
  4659. if test "x$ac_ct_CXX" = x; then
  4660. CXX="g++"
  4661. else
  4662. case $cross_compiling:$ac_tool_warned in
  4663. yes:)
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4665. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4666. ac_tool_warned=yes ;;
  4667. esac
  4668. CXX=$ac_ct_CXX
  4669. fi
  4670. fi
  4671. fi
  4672. fi
  4673. # Provide some information about the compiler.
  4674. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4675. set X $ac_compile
  4676. ac_compiler=$2
  4677. for ac_option in --version -v -V -qversion; do
  4678. { { ac_try="$ac_compiler $ac_option >&5"
  4679. case "(($ac_try" in
  4680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4681. *) ac_try_echo=$ac_try;;
  4682. esac
  4683. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4684. $as_echo "$ac_try_echo"; } >&5
  4685. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4686. ac_status=$?
  4687. if test -s conftest.err; then
  4688. sed '10a\
  4689. ... rest of stderr output deleted ...
  4690. 10q' conftest.err >conftest.er1
  4691. cat conftest.er1 >&5
  4692. fi
  4693. rm -f conftest.er1 conftest.err
  4694. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4695. test $ac_status = 0; }
  4696. done
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4698. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4699. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4700. $as_echo_n "(cached) " >&6
  4701. else
  4702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4703. /* end confdefs.h. */
  4704. int
  4705. main ()
  4706. {
  4707. #ifndef __GNUC__
  4708. choke me
  4709. #endif
  4710. ;
  4711. return 0;
  4712. }
  4713. _ACEOF
  4714. if ac_fn_cxx_try_compile "$LINENO"; then :
  4715. ac_compiler_gnu=yes
  4716. else
  4717. ac_compiler_gnu=no
  4718. fi
  4719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4720. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4721. fi
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4723. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4724. if test $ac_compiler_gnu = yes; then
  4725. GXX=yes
  4726. else
  4727. GXX=
  4728. fi
  4729. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4730. ac_save_CXXFLAGS=$CXXFLAGS
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4732. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4733. if ${ac_cv_prog_cxx_g+:} false; then :
  4734. $as_echo_n "(cached) " >&6
  4735. else
  4736. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4737. ac_cxx_werror_flag=yes
  4738. ac_cv_prog_cxx_g=no
  4739. CXXFLAGS="-g"
  4740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4741. /* end confdefs.h. */
  4742. int
  4743. main ()
  4744. {
  4745. ;
  4746. return 0;
  4747. }
  4748. _ACEOF
  4749. if ac_fn_cxx_try_compile "$LINENO"; then :
  4750. ac_cv_prog_cxx_g=yes
  4751. else
  4752. CXXFLAGS=""
  4753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4754. /* end confdefs.h. */
  4755. int
  4756. main ()
  4757. {
  4758. ;
  4759. return 0;
  4760. }
  4761. _ACEOF
  4762. if ac_fn_cxx_try_compile "$LINENO"; then :
  4763. else
  4764. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4765. CXXFLAGS="-g"
  4766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4767. /* end confdefs.h. */
  4768. int
  4769. main ()
  4770. {
  4771. ;
  4772. return 0;
  4773. }
  4774. _ACEOF
  4775. if ac_fn_cxx_try_compile "$LINENO"; then :
  4776. ac_cv_prog_cxx_g=yes
  4777. fi
  4778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4779. fi
  4780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4781. fi
  4782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4783. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4784. fi
  4785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4786. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4787. if test "$ac_test_CXXFLAGS" = set; then
  4788. CXXFLAGS=$ac_save_CXXFLAGS
  4789. elif test $ac_cv_prog_cxx_g = yes; then
  4790. if test "$GXX" = yes; then
  4791. CXXFLAGS="-g -O2"
  4792. else
  4793. CXXFLAGS="-g"
  4794. fi
  4795. else
  4796. if test "$GXX" = yes; then
  4797. CXXFLAGS="-O2"
  4798. else
  4799. CXXFLAGS=
  4800. fi
  4801. fi
  4802. ac_ext=c
  4803. ac_cpp='$CPP $CPPFLAGS'
  4804. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4805. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4806. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4807. # We must set the default linker to the linker used by gcc for the correct
  4808. # operation of libtool. If LD is not defined and we are using gcc, try to
  4809. # set the LD default to the ld used by gcc.
  4810. if test -z "$LD"; then
  4811. if test "$GCC" = yes; then
  4812. case $build in
  4813. *-*-mingw*)
  4814. gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
  4815. *)
  4816. gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
  4817. esac
  4818. case $gcc_prog_ld in
  4819. # Accept absolute paths.
  4820. [\\/]* | [A-Za-z]:[\\/]*)
  4821. LD="$gcc_prog_ld" ;;
  4822. esac
  4823. fi
  4824. fi
  4825. # Check whether -static-libstdc++ -static-libgcc is supported.
  4826. have_static_libs=no
  4827. if test "$GCC" = yes; then
  4828. saved_LDFLAGS="$LDFLAGS"
  4829. LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
  4830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
  4831. $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
  4832. ac_ext=cpp
  4833. ac_cpp='$CXXCPP $CPPFLAGS'
  4834. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4835. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4836. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4838. /* end confdefs.h. */
  4839. #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
  4840. #error -static-libstdc++ not implemented
  4841. #endif
  4842. int main() {}
  4843. _ACEOF
  4844. if ac_fn_cxx_try_link "$LINENO"; then :
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4846. $as_echo "yes" >&6; }; have_static_libs=yes
  4847. else
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4849. $as_echo "no" >&6; }
  4850. fi
  4851. rm -f core conftest.err conftest.$ac_objext \
  4852. conftest$ac_exeext conftest.$ac_ext
  4853. ac_ext=c
  4854. ac_cpp='$CPP $CPPFLAGS'
  4855. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4856. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4857. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4858. LDFLAGS="$saved_LDFLAGS"
  4859. fi
  4860. if test -n "$ac_tool_prefix"; then
  4861. # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
  4862. set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4864. $as_echo_n "checking for $ac_word... " >&6; }
  4865. if ${ac_cv_prog_GNATBIND+:} false; then :
  4866. $as_echo_n "(cached) " >&6
  4867. else
  4868. if test -n "$GNATBIND"; then
  4869. ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
  4870. else
  4871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4872. for as_dir in $PATH
  4873. do
  4874. IFS=$as_save_IFS
  4875. test -z "$as_dir" && as_dir=.
  4876. for ac_exec_ext in '' $ac_executable_extensions; do
  4877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4878. ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
  4879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4880. break 2
  4881. fi
  4882. done
  4883. done
  4884. IFS=$as_save_IFS
  4885. fi
  4886. fi
  4887. GNATBIND=$ac_cv_prog_GNATBIND
  4888. if test -n "$GNATBIND"; then
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
  4890. $as_echo "$GNATBIND" >&6; }
  4891. else
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4893. $as_echo "no" >&6; }
  4894. fi
  4895. fi
  4896. if test -z "$ac_cv_prog_GNATBIND"; then
  4897. ac_ct_GNATBIND=$GNATBIND
  4898. # Extract the first word of "gnatbind", so it can be a program name with args.
  4899. set dummy gnatbind; ac_word=$2
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4901. $as_echo_n "checking for $ac_word... " >&6; }
  4902. if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
  4903. $as_echo_n "(cached) " >&6
  4904. else
  4905. if test -n "$ac_ct_GNATBIND"; then
  4906. ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
  4907. else
  4908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4909. for as_dir in $PATH
  4910. do
  4911. IFS=$as_save_IFS
  4912. test -z "$as_dir" && as_dir=.
  4913. for ac_exec_ext in '' $ac_executable_extensions; do
  4914. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4915. ac_cv_prog_ac_ct_GNATBIND="gnatbind"
  4916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4917. break 2
  4918. fi
  4919. done
  4920. done
  4921. IFS=$as_save_IFS
  4922. fi
  4923. fi
  4924. ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
  4925. if test -n "$ac_ct_GNATBIND"; then
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
  4927. $as_echo "$ac_ct_GNATBIND" >&6; }
  4928. else
  4929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4930. $as_echo "no" >&6; }
  4931. fi
  4932. if test "x$ac_ct_GNATBIND" = x; then
  4933. GNATBIND="no"
  4934. else
  4935. case $cross_compiling:$ac_tool_warned in
  4936. yes:)
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4938. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4939. ac_tool_warned=yes ;;
  4940. esac
  4941. GNATBIND=$ac_ct_GNATBIND
  4942. fi
  4943. else
  4944. GNATBIND="$ac_cv_prog_GNATBIND"
  4945. fi
  4946. if test -n "$ac_tool_prefix"; then
  4947. # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
  4948. set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4950. $as_echo_n "checking for $ac_word... " >&6; }
  4951. if ${ac_cv_prog_GNATMAKE+:} false; then :
  4952. $as_echo_n "(cached) " >&6
  4953. else
  4954. if test -n "$GNATMAKE"; then
  4955. ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
  4956. else
  4957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4958. for as_dir in $PATH
  4959. do
  4960. IFS=$as_save_IFS
  4961. test -z "$as_dir" && as_dir=.
  4962. for ac_exec_ext in '' $ac_executable_extensions; do
  4963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4964. ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
  4965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4966. break 2
  4967. fi
  4968. done
  4969. done
  4970. IFS=$as_save_IFS
  4971. fi
  4972. fi
  4973. GNATMAKE=$ac_cv_prog_GNATMAKE
  4974. if test -n "$GNATMAKE"; then
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
  4976. $as_echo "$GNATMAKE" >&6; }
  4977. else
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4979. $as_echo "no" >&6; }
  4980. fi
  4981. fi
  4982. if test -z "$ac_cv_prog_GNATMAKE"; then
  4983. ac_ct_GNATMAKE=$GNATMAKE
  4984. # Extract the first word of "gnatmake", so it can be a program name with args.
  4985. set dummy gnatmake; ac_word=$2
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4987. $as_echo_n "checking for $ac_word... " >&6; }
  4988. if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
  4989. $as_echo_n "(cached) " >&6
  4990. else
  4991. if test -n "$ac_ct_GNATMAKE"; then
  4992. ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
  4993. else
  4994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4995. for as_dir in $PATH
  4996. do
  4997. IFS=$as_save_IFS
  4998. test -z "$as_dir" && as_dir=.
  4999. for ac_exec_ext in '' $ac_executable_extensions; do
  5000. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5001. ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
  5002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5003. break 2
  5004. fi
  5005. done
  5006. done
  5007. IFS=$as_save_IFS
  5008. fi
  5009. fi
  5010. ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
  5011. if test -n "$ac_ct_GNATMAKE"; then
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
  5013. $as_echo "$ac_ct_GNATMAKE" >&6; }
  5014. else
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5016. $as_echo "no" >&6; }
  5017. fi
  5018. if test "x$ac_ct_GNATMAKE" = x; then
  5019. GNATMAKE="no"
  5020. else
  5021. case $cross_compiling:$ac_tool_warned in
  5022. yes:)
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5024. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5025. ac_tool_warned=yes ;;
  5026. esac
  5027. GNATMAKE=$ac_ct_GNATMAKE
  5028. fi
  5029. else
  5030. GNATMAKE="$ac_cv_prog_GNATMAKE"
  5031. fi
  5032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
  5033. $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
  5034. if ${acx_cv_cc_gcc_supports_ada+:} false; then :
  5035. $as_echo_n "(cached) " >&6
  5036. else
  5037. cat >conftest.adb <<EOF
  5038. procedure conftest is begin null; end conftest;
  5039. EOF
  5040. acx_cv_cc_gcc_supports_ada=no
  5041. # There is a bug in old released versions of GCC which causes the
  5042. # driver to exit successfully when the appropriate language module
  5043. # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
  5044. # Therefore we must check for the error message as well as an
  5045. # unsuccessful exit.
  5046. # Other compilers, like HP Tru64 UNIX cc, exit successfully when
  5047. # given a .adb file, but produce no object file. So we must check
  5048. # if an object file was really produced to guard against this.
  5049. errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
  5050. if test x"$errors" = x && test -f conftest.$ac_objext; then
  5051. acx_cv_cc_gcc_supports_ada=yes
  5052. fi
  5053. rm -f conftest.*
  5054. fi
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
  5056. $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
  5057. if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
  5058. have_gnat=yes
  5059. else
  5060. have_gnat=no
  5061. fi
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
  5063. $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
  5064. if ${gcc_cv_prog_cmp_skip+:} false; then :
  5065. $as_echo_n "(cached) " >&6
  5066. else
  5067. echo abfoo >t1
  5068. echo cdfoo >t2
  5069. gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
  5070. if cmp t1 t2 2 2 > /dev/null 2>&1; then
  5071. if cmp t1 t2 1 1 > /dev/null 2>&1; then
  5072. :
  5073. else
  5074. gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
  5075. fi
  5076. fi
  5077. if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
  5078. if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
  5079. :
  5080. else
  5081. gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
  5082. fi
  5083. fi
  5084. rm t1 t2
  5085. fi
  5086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
  5087. $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
  5088. do_compare="$gcc_cv_prog_cmp_skip"
  5089. # Check whether --enable-bootstrap was given.
  5090. if test "${enable_bootstrap+set}" = set; then :
  5091. enableval=$enable_bootstrap;
  5092. else
  5093. enable_bootstrap=default
  5094. fi
  5095. # Issue errors and warnings for invalid/strange bootstrap combinations.
  5096. if test -r $srcdir/gcc/configure; then
  5097. have_compiler=yes
  5098. else
  5099. have_compiler=no
  5100. fi
  5101. case "$have_compiler:$host:$target:$enable_bootstrap" in
  5102. *:*:*:no) ;;
  5103. # Default behavior. Enable bootstrap if we have a compiler
  5104. # and we are in a native configuration.
  5105. yes:$build:$build:default)
  5106. enable_bootstrap=yes ;;
  5107. *:*:*:default)
  5108. enable_bootstrap=no ;;
  5109. # We have a compiler and we are in a native configuration, bootstrap is ok
  5110. yes:$build:$build:yes)
  5111. ;;
  5112. # Other configurations, but we have a compiler. Assume the user knows
  5113. # what he's doing.
  5114. yes:*:*:yes)
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
  5116. $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
  5117. ;;
  5118. # No compiler: if they passed --enable-bootstrap explicitly, fail
  5119. no:*:*:yes)
  5120. as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
  5121. # Fail if wrong command line
  5122. *)
  5123. as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
  5124. ;;
  5125. esac
  5126. # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
  5127. # C++98 compiler can still start the bootstrap.
  5128. if test "$enable_bootstrap:$GXX" = "yes:yes"; then
  5129. CXX="$CXX -std=gnu++98"
  5130. fi
  5131. # Check whether --enable-pgo-build was given.
  5132. if test "${enable_pgo_build+set}" = set; then :
  5133. enableval=$enable_pgo_build; enable_pgo_build=$enableval
  5134. else
  5135. enable_pgo_build=no
  5136. fi
  5137. # Issue errors and warnings for invalid/strange PGO build combinations.
  5138. case "$have_compiler:$host:$target:$enable_pgo_build" in
  5139. *:*:*:no) ;;
  5140. # Allow the PGO build only if we aren't building a compiler and
  5141. # we are in a native configuration.
  5142. no:$build:$build:yes | no:$build:$build:lto) ;;
  5143. # Disallow the PGO bootstrap if we are building a compiler.
  5144. yes:*:*:yes | yes:*:*:lto)
  5145. as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
  5146. *)
  5147. as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
  5148. ;;
  5149. esac
  5150. if test "$enable_pgo_build" != "no"; then
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
  5152. $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
  5153. old_CFLAGS="$CFLAGS"
  5154. PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
  5155. CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
  5156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5157. /* end confdefs.h. */
  5158. int foo;
  5159. _ACEOF
  5160. if ac_fn_c_try_compile "$LINENO"; then :
  5161. else
  5162. PGO_BUILD_GEN_CFLAGS=
  5163. fi
  5164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5165. CFLAGS="$old_CFLAGS"
  5166. if test -n "$PGO_BUILD_GEN_CFLAGS"; then
  5167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5168. $as_echo "yes" >&6; }
  5169. PGO_BUILD_USE_CFLAGS="-fprofile-use"
  5170. else
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5172. $as_echo "no" >&6; }
  5173. as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
  5174. fi
  5175. if test "$enable_pgo_build" = "lto"; then
  5176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
  5177. $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
  5178. old_CFLAGS="$CFLAGS"
  5179. PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
  5180. CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
  5181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5182. /* end confdefs.h. */
  5183. int foo;
  5184. _ACEOF
  5185. if ac_fn_c_try_compile "$LINENO"; then :
  5186. else
  5187. PGO_BUILD_LTO_CFLAGS=
  5188. fi
  5189. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5190. CFLAGS="$old_CFLAGS"
  5191. if test -n "$PGO_BUILD_LTO_CFLAGS"; then
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5193. $as_echo "yes" >&6; }
  5194. else
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5196. $as_echo "no" >&6; }
  5197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
  5198. $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
  5199. fi
  5200. fi
  5201. fi
  5202. # Used for setting $lt_cv_objdir
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  5204. $as_echo_n "checking for objdir... " >&6; }
  5205. if ${lt_cv_objdir+:} false; then :
  5206. $as_echo_n "(cached) " >&6
  5207. else
  5208. rm -f .libs 2>/dev/null
  5209. mkdir .libs 2>/dev/null
  5210. if test -d .libs; then
  5211. lt_cv_objdir=.libs
  5212. else
  5213. # MS-DOS does not allow filenames that begin with a dot.
  5214. lt_cv_objdir=_libs
  5215. fi
  5216. rmdir .libs 2>/dev/null
  5217. fi
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  5219. $as_echo "$lt_cv_objdir" >&6; }
  5220. objdir=$lt_cv_objdir
  5221. cat >>confdefs.h <<_ACEOF
  5222. #define LT_OBJDIR "$lt_cv_objdir/"
  5223. _ACEOF
  5224. # Check for GMP, MPFR and MPC
  5225. gmplibs="-lmpc -lmpfr -lgmp"
  5226. gmpinc=
  5227. have_gmp=no
  5228. # Specify a location for mpc
  5229. # check for this first so it ends up on the link line before mpfr.
  5230. # Check whether --with-mpc was given.
  5231. if test "${with_mpc+set}" = set; then :
  5232. withval=$with_mpc;
  5233. fi
  5234. # Check whether --with-mpc-include was given.
  5235. if test "${with_mpc_include+set}" = set; then :
  5236. withval=$with_mpc_include;
  5237. fi
  5238. # Check whether --with-mpc-lib was given.
  5239. if test "${with_mpc_lib+set}" = set; then :
  5240. withval=$with_mpc_lib;
  5241. fi
  5242. if test "x$with_mpc" != x; then
  5243. gmplibs="-L$with_mpc/lib $gmplibs"
  5244. gmpinc="-I$with_mpc/include $gmpinc"
  5245. fi
  5246. if test "x$with_mpc_include" != x; then
  5247. gmpinc="-I$with_mpc_include $gmpinc"
  5248. fi
  5249. if test "x$with_mpc_lib" != x; then
  5250. gmplibs="-L$with_mpc_lib $gmplibs"
  5251. fi
  5252. if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
  5253. gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
  5254. gmpinc='-I$$s/mpc/src '"$gmpinc"
  5255. # Do not test the mpc version. Assume that it is sufficient, since
  5256. # it is in the source tree, and the library has not been built yet
  5257. # but it would be included on the link line in the version check below
  5258. # hence making the test fail.
  5259. have_gmp=yes
  5260. fi
  5261. # Specify a location for mpfr
  5262. # check for this first so it ends up on the link line before gmp.
  5263. # Check whether --with-mpfr-dir was given.
  5264. if test "${with_mpfr_dir+set}" = set; then :
  5265. withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
  5266. Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
  5267. fi
  5268. # Check whether --with-mpfr was given.
  5269. if test "${with_mpfr+set}" = set; then :
  5270. withval=$with_mpfr;
  5271. fi
  5272. # Check whether --with-mpfr-include was given.
  5273. if test "${with_mpfr_include+set}" = set; then :
  5274. withval=$with_mpfr_include;
  5275. fi
  5276. # Check whether --with-mpfr-lib was given.
  5277. if test "${with_mpfr_lib+set}" = set; then :
  5278. withval=$with_mpfr_lib;
  5279. fi
  5280. if test "x$with_mpfr" != x; then
  5281. gmplibs="-L$with_mpfr/lib $gmplibs"
  5282. gmpinc="-I$with_mpfr/include $gmpinc"
  5283. fi
  5284. if test "x$with_mpfr_include" != x; then
  5285. gmpinc="-I$with_mpfr_include $gmpinc"
  5286. fi
  5287. if test "x$with_mpfr_lib" != x; then
  5288. gmplibs="-L$with_mpfr_lib $gmplibs"
  5289. fi
  5290. if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
  5291. # MPFR v3.1.0 moved the sources into a src sub-directory.
  5292. if ! test -d ${srcdir}/mpfr/src; then
  5293. as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
  5294. fi
  5295. gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
  5296. gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
  5297. extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
  5298. # Do not test the mpfr version. Assume that it is sufficient, since
  5299. # it is in the source tree, and the library has not been built yet
  5300. # but it would be included on the link line in the version check below
  5301. # hence making the test fail.
  5302. have_gmp=yes
  5303. fi
  5304. # Specify a location for gmp
  5305. # Check whether --with-gmp-dir was given.
  5306. if test "${with_gmp_dir+set}" = set; then :
  5307. withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
  5308. Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
  5309. fi
  5310. # Check whether --with-gmp was given.
  5311. if test "${with_gmp+set}" = set; then :
  5312. withval=$with_gmp;
  5313. fi
  5314. # Check whether --with-gmp-include was given.
  5315. if test "${with_gmp_include+set}" = set; then :
  5316. withval=$with_gmp_include;
  5317. fi
  5318. # Check whether --with-gmp-lib was given.
  5319. if test "${with_gmp_lib+set}" = set; then :
  5320. withval=$with_gmp_lib;
  5321. fi
  5322. if test "x$with_gmp" != x; then
  5323. gmplibs="-L$with_gmp/lib $gmplibs"
  5324. gmpinc="-I$with_gmp/include $gmpinc"
  5325. fi
  5326. if test "x$with_gmp_include" != x; then
  5327. gmpinc="-I$with_gmp_include $gmpinc"
  5328. fi
  5329. if test "x$with_gmp_lib" != x; then
  5330. gmplibs="-L$with_gmp_lib $gmplibs"
  5331. fi
  5332. if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
  5333. gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
  5334. gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
  5335. extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
  5336. extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
  5337. extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
  5338. # Do not test the gmp version. Assume that it is sufficient, since
  5339. # it is in the source tree, and the library has not been built yet
  5340. # but it would be included on the link line in the version check below
  5341. # hence making the test fail.
  5342. have_gmp=yes
  5343. fi
  5344. if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
  5345. have_gmp=yes
  5346. saved_CFLAGS="$CFLAGS"
  5347. CFLAGS="$CFLAGS $gmpinc"
  5348. # Check for the recommended and required versions of GMP.
  5349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
  5350. $as_echo_n "checking for the correct version of gmp.h... " >&6; }
  5351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5352. /* end confdefs.h. */
  5353. #include "gmp.h"
  5354. int
  5355. main ()
  5356. {
  5357. #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
  5358. #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
  5359. #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
  5360. choke me
  5361. #endif
  5362. ;
  5363. return 0;
  5364. }
  5365. _ACEOF
  5366. if ac_fn_c_try_compile "$LINENO"; then :
  5367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5368. /* end confdefs.h. */
  5369. #include <gmp.h>
  5370. int
  5371. main ()
  5372. {
  5373. #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
  5374. #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
  5375. #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
  5376. choke me
  5377. #endif
  5378. ;
  5379. return 0;
  5380. }
  5381. _ACEOF
  5382. if ac_fn_c_try_compile "$LINENO"; then :
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5384. $as_echo "yes" >&6; }
  5385. else
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  5387. $as_echo "buggy but acceptable" >&6; }
  5388. fi
  5389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5390. else
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5392. $as_echo "no" >&6; }; have_gmp=no
  5393. fi
  5394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5395. # If we have GMP, check the MPFR version.
  5396. if test x"$have_gmp" = xyes; then
  5397. # Check for the recommended and required versions of MPFR.
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
  5399. $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
  5400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5401. /* end confdefs.h. */
  5402. #include <gmp.h>
  5403. #include <mpfr.h>
  5404. int
  5405. main ()
  5406. {
  5407. #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
  5408. choke me
  5409. #endif
  5410. ;
  5411. return 0;
  5412. }
  5413. _ACEOF
  5414. if ac_fn_c_try_compile "$LINENO"; then :
  5415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5416. /* end confdefs.h. */
  5417. #include <gmp.h>
  5418. #include <mpfr.h>
  5419. int
  5420. main ()
  5421. {
  5422. #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
  5423. choke me
  5424. #endif
  5425. ;
  5426. return 0;
  5427. }
  5428. _ACEOF
  5429. if ac_fn_c_try_compile "$LINENO"; then :
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5431. $as_echo "yes" >&6; }
  5432. else
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  5434. $as_echo "buggy but acceptable" >&6; }
  5435. fi
  5436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5437. else
  5438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5439. $as_echo "no" >&6; }; have_gmp=no
  5440. fi
  5441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5442. fi
  5443. # Check for the MPC header version.
  5444. if test x"$have_gmp" = xyes ; then
  5445. # Check for the recommended and required versions of MPC.
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
  5447. $as_echo_n "checking for the correct version of mpc.h... " >&6; }
  5448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5449. /* end confdefs.h. */
  5450. #include <mpc.h>
  5451. int
  5452. main ()
  5453. {
  5454. #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
  5455. choke me
  5456. #endif
  5457. ;
  5458. return 0;
  5459. }
  5460. _ACEOF
  5461. if ac_fn_c_try_compile "$LINENO"; then :
  5462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5463. /* end confdefs.h. */
  5464. #include <mpc.h>
  5465. int
  5466. main ()
  5467. {
  5468. #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
  5469. choke me
  5470. #endif
  5471. ;
  5472. return 0;
  5473. }
  5474. _ACEOF
  5475. if ac_fn_c_try_compile "$LINENO"; then :
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5477. $as_echo "yes" >&6; }
  5478. else
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  5480. $as_echo "buggy but acceptable" >&6; }
  5481. fi
  5482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5483. else
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5485. $as_echo "no" >&6; }; have_gmp=no
  5486. fi
  5487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5488. fi
  5489. # Now check the MPFR library.
  5490. if test x"$have_gmp" = xyes; then
  5491. saved_LIBS="$LIBS"
  5492. LIBS="$LIBS $gmplibs"
  5493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
  5494. $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
  5495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5496. /* end confdefs.h. */
  5497. #include <mpc.h>
  5498. int
  5499. main ()
  5500. {
  5501. mpfr_t n;
  5502. mpfr_t x;
  5503. mpc_t c;
  5504. int t;
  5505. mpfr_init (n);
  5506. mpfr_init (x);
  5507. mpfr_atan2 (n, n, x, GMP_RNDN);
  5508. mpfr_erfc (n, x, GMP_RNDN);
  5509. mpfr_subnormalize (x, t, GMP_RNDN);
  5510. mpfr_clear(n);
  5511. mpfr_clear(x);
  5512. mpc_init2 (c, 53);
  5513. mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
  5514. mpc_cosh (c, c, MPC_RNDNN);
  5515. mpc_pow (c, c, c, MPC_RNDNN);
  5516. mpc_acosh (c, c, MPC_RNDNN);
  5517. mpc_clear (c);
  5518. ;
  5519. return 0;
  5520. }
  5521. _ACEOF
  5522. if ac_fn_c_try_link "$LINENO"; then :
  5523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5524. $as_echo "yes" >&6; }
  5525. else
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5527. $as_echo "no" >&6; }; have_gmp=no
  5528. fi
  5529. rm -f core conftest.err conftest.$ac_objext \
  5530. conftest$ac_exeext conftest.$ac_ext
  5531. LIBS="$saved_LIBS"
  5532. fi
  5533. CFLAGS="$saved_CFLAGS"
  5534. # The library versions listed in the error message below should match
  5535. # the HARD-minimums enforced above.
  5536. if test x$have_gmp != xyes; then
  5537. as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
  5538. Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
  5539. their locations. Source code for these libraries can be found at
  5540. their respective hosting sites as well as at
  5541. ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
  5542. http://gcc.gnu.org/install/prerequisites.html for additional info. If
  5543. you obtained GMP, MPFR and/or MPC from a vendor distribution package,
  5544. make sure that you have installed both the libraries and the header
  5545. files. They may be located in separate packages." "$LINENO" 5
  5546. fi
  5547. fi
  5548. # Flags needed for both GMP, MPFR and/or MPC.
  5549. # Libraries to use for stage1 or when not bootstrapping.
  5550. # Check whether --with-stage1-libs was given.
  5551. if test "${with_stage1_libs+set}" = set; then :
  5552. withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
  5553. stage1_libs=
  5554. else
  5555. stage1_libs=$withval
  5556. fi
  5557. else
  5558. stage1_libs=
  5559. fi
  5560. # Whether or not to use -static-libstdc++ and -static-libgcc. The
  5561. # default is yes if gcc is being built; no otherwise. The reason for
  5562. # this default is that gdb is sometimes linked against GNU Source
  5563. # Highlight, which is a shared library that uses C++ exceptions. In
  5564. # this case, -static-libstdc++ will cause crashes.
  5565. # Check whether --with-static-standard-libraries was given.
  5566. if test "${with_static_standard_libraries+set}" = set; then :
  5567. withval=$with_static_standard_libraries;
  5568. else
  5569. with_static_standard_libraries=auto
  5570. fi
  5571. if test "$with_static_standard_libraries" = auto; then
  5572. with_static_standard_libraries=$have_compiler
  5573. fi
  5574. # Linker flags to use for stage1 or when not bootstrapping.
  5575. # Check whether --with-stage1-ldflags was given.
  5576. if test "${with_stage1_ldflags+set}" = set; then :
  5577. withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
  5578. stage1_ldflags=
  5579. else
  5580. stage1_ldflags=$withval
  5581. fi
  5582. else
  5583. stage1_ldflags=
  5584. # In stage 1, default to linking libstdc++ and libgcc statically with GCC
  5585. # if supported. But if the user explicitly specified the libraries to use,
  5586. # trust that they are doing what they want.
  5587. if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
  5588. -a "$have_static_libs" = yes; then
  5589. stage1_ldflags="-static-libstdc++ -static-libgcc"
  5590. fi
  5591. fi
  5592. # Libraries to use for stage2 and later builds.
  5593. # Check whether --with-boot-libs was given.
  5594. if test "${with_boot_libs+set}" = set; then :
  5595. withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
  5596. poststage1_libs=
  5597. else
  5598. poststage1_libs=$withval
  5599. fi
  5600. else
  5601. poststage1_libs=
  5602. fi
  5603. # Linker flags to use for stage2 and later builds.
  5604. # Check whether --with-boot-ldflags was given.
  5605. if test "${with_boot_ldflags+set}" = set; then :
  5606. withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
  5607. poststage1_ldflags=
  5608. else
  5609. poststage1_ldflags=$withval
  5610. fi
  5611. else
  5612. poststage1_ldflags=
  5613. # In stages 2 and 3, default to linking libstdc++ and libgcc
  5614. # statically. But if the user explicitly specified the libraries to
  5615. # use, trust that they are doing what they want.
  5616. if test "$poststage1_libs" = ""; then
  5617. poststage1_ldflags="-static-libstdc++ -static-libgcc"
  5618. fi
  5619. fi
  5620. # GCC GRAPHITE dependency isl.
  5621. # Basic setup is inlined here, actual checks are in config/isl.m4
  5622. # Check whether --with-isl was given.
  5623. if test "${with_isl+set}" = set; then :
  5624. withval=$with_isl;
  5625. fi
  5626. # Treat --without-isl as a request to disable
  5627. # GRAPHITE support and skip all following checks.
  5628. if test "x$with_isl" != "xno"; then
  5629. # Check for isl
  5630. # Check whether --with-isl-include was given.
  5631. if test "${with_isl_include+set}" = set; then :
  5632. withval=$with_isl_include;
  5633. fi
  5634. # Check whether --with-isl-lib was given.
  5635. if test "${with_isl_lib+set}" = set; then :
  5636. withval=$with_isl_lib;
  5637. fi
  5638. # Check whether --enable-isl-version-check was given.
  5639. if test "${enable_isl_version_check+set}" = set; then :
  5640. enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
  5641. else
  5642. ENABLE_ISL_CHECK=yes
  5643. fi
  5644. # Initialize isllibs and islinc.
  5645. case $with_isl in
  5646. no)
  5647. isllibs=
  5648. islinc=
  5649. ;;
  5650. "" | yes)
  5651. ;;
  5652. *)
  5653. isllibs="-L$with_isl/lib"
  5654. islinc="-I$with_isl/include"
  5655. ;;
  5656. esac
  5657. if test "x${with_isl_include}" != x ; then
  5658. islinc="-I$with_isl_include"
  5659. fi
  5660. if test "x${with_isl_lib}" != x; then
  5661. isllibs="-L$with_isl_lib"
  5662. fi
  5663. if test "x${islinc}" = x && test "x${isllibs}" = x \
  5664. && test -d ${srcdir}/isl; then
  5665. isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
  5666. islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
  5667. ENABLE_ISL_CHECK=no
  5668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
  5669. $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
  5670. fi
  5671. isllibs="${isllibs} -lisl"
  5672. if test "${ENABLE_ISL_CHECK}" = yes ; then
  5673. _isl_saved_CFLAGS=$CFLAGS
  5674. _isl_saved_LDFLAGS=$LDFLAGS
  5675. _isl_saved_LIBS=$LIBS
  5676. CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
  5677. LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
  5678. LIBS="${_isl_saved_LIBS} -lisl -lgmp"
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
  5680. $as_echo_n "checking for isl 0.15 or later... " >&6; }
  5681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5682. /* end confdefs.h. */
  5683. #include <isl/schedule.h>
  5684. int
  5685. main ()
  5686. {
  5687. isl_options_set_schedule_serialize_sccs (NULL, 0);
  5688. ;
  5689. return 0;
  5690. }
  5691. _ACEOF
  5692. if ac_fn_c_try_link "$LINENO"; then :
  5693. gcc_cv_isl=yes
  5694. else
  5695. gcc_cv_isl=no
  5696. fi
  5697. rm -f core conftest.err conftest.$ac_objext \
  5698. conftest$ac_exeext conftest.$ac_ext
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
  5700. $as_echo "$gcc_cv_isl" >&6; }
  5701. if test "${gcc_cv_isl}" = no ; then
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
  5703. $as_echo "required isl version is 0.15 or later" >&6; }
  5704. fi
  5705. CFLAGS=$_isl_saved_CFLAGS
  5706. LDFLAGS=$_isl_saved_LDFLAGS
  5707. LIBS=$_isl_saved_LIBS
  5708. fi
  5709. if test "x${with_isl}" = xno; then
  5710. graphite_requested=no
  5711. elif test "x${with_isl}" != x \
  5712. || test "x${with_isl_include}" != x \
  5713. || test "x${with_isl_lib}" != x ; then
  5714. graphite_requested=yes
  5715. else
  5716. graphite_requested=no
  5717. fi
  5718. if test "${gcc_cv_isl}" = no ; then
  5719. isllibs=
  5720. islinc=
  5721. fi
  5722. if test "${graphite_requested}" = yes \
  5723. && test "x${isllibs}" = x \
  5724. && test "x${islinc}" = x ; then
  5725. as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
  5726. fi
  5727. fi
  5728. # If the isl check failed, disable builds of in-tree variant of isl
  5729. if test "x$with_isl" = xno ||
  5730. test "x$gcc_cv_isl" = xno; then
  5731. noconfigdirs="$noconfigdirs isl"
  5732. islinc=
  5733. fi
  5734. # Check for LTO support.
  5735. # Check whether --enable-lto was given.
  5736. if test "${enable_lto+set}" = set; then :
  5737. enableval=$enable_lto; enable_lto=$enableval
  5738. else
  5739. enable_lto=yes; default_enable_lto=yes
  5740. fi
  5741. target_elf=no
  5742. case $target in
  5743. *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
  5744. *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
  5745. alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
  5746. nvptx-*-none)
  5747. target_elf=no
  5748. ;;
  5749. *)
  5750. target_elf=yes
  5751. ;;
  5752. esac
  5753. if test $target_elf = yes; then :
  5754. # ELF platforms build the lto-plugin always.
  5755. build_lto_plugin=yes
  5756. else
  5757. if test x"$default_enable_lto" = x"yes" ; then
  5758. case $target in
  5759. *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
  5760. # On other non-ELF platforms, LTO has yet to be validated.
  5761. *) enable_lto=no ;;
  5762. esac
  5763. else
  5764. # Apart from ELF platforms, only Windows and Darwin support LTO so far.
  5765. # It would also be nice to check the binutils support, but we don't
  5766. # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
  5767. # warn during gcc/ subconfigure; unless you're bootstrapping with
  5768. # -flto it won't be needed until after installation anyway.
  5769. case $target in
  5770. *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
  5771. *) if test x"$enable_lto" = x"yes"; then
  5772. as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
  5773. fi
  5774. ;;
  5775. esac
  5776. fi
  5777. # Among non-ELF, only Windows platforms support the lto-plugin so far.
  5778. # Build it unless LTO was explicitly disabled.
  5779. case $target in
  5780. *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
  5781. *) ;;
  5782. esac
  5783. fi
  5784. # Check whether --enable-linker-plugin-configure-flags was given.
  5785. if test "${enable_linker_plugin_configure_flags+set}" = set; then :
  5786. enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
  5787. else
  5788. extra_linker_plugin_configure_flags=
  5789. fi
  5790. # Check whether --enable-linker-plugin-flags was given.
  5791. if test "${enable_linker_plugin_flags+set}" = set; then :
  5792. enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
  5793. else
  5794. extra_linker_plugin_flags=
  5795. fi
  5796. # Enable --enable-host-shared.
  5797. # Checked early to determine whether jit is an 'all' language
  5798. # Check whether --enable-host-shared was given.
  5799. if test "${enable_host_shared+set}" = set; then :
  5800. enableval=$enable_host_shared; host_shared=$enableval
  5801. else
  5802. host_shared=no
  5803. fi
  5804. # By default, C and C++ are the only stage 1 languages.
  5805. stage1_languages=,c,
  5806. # Target libraries that we bootstrap.
  5807. bootstrap_target_libs=,target-libgcc,
  5808. # Figure out what language subdirectories are present.
  5809. # Look if the user specified --enable-languages="..."; if not, use
  5810. # the environment variable $LANGUAGES if defined. $LANGUAGES might
  5811. # go away some day.
  5812. # NB: embedded tabs in this IF block -- do not untabify
  5813. if test -d ${srcdir}/gcc; then
  5814. if test x"${enable_languages+set}" != xset; then
  5815. if test x"${LANGUAGES+set}" = xset; then
  5816. enable_languages="${LANGUAGES}"
  5817. echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
  5818. else
  5819. enable_languages=default
  5820. fi
  5821. else
  5822. if test x"${enable_languages}" = x ||
  5823. test x"${enable_languages}" = xyes;
  5824. then
  5825. echo configure.ac: --enable-languages needs at least one language argument 1>&2
  5826. exit 1
  5827. fi
  5828. fi
  5829. enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
  5830. # 'f95' is the old name for the 'fortran' language. We issue a warning
  5831. # and make the substitution.
  5832. case ,${enable_languages}, in
  5833. *,f95,*)
  5834. echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
  5835. enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
  5836. ;;
  5837. esac
  5838. # If bootstrapping, C++ must be enabled.
  5839. case ",$enable_languages,:$enable_bootstrap" in
  5840. *,c++,*:*) ;;
  5841. *:yes)
  5842. if test -f ${srcdir}/gcc/cp/config-lang.in; then
  5843. enable_languages="${enable_languages},c++"
  5844. else
  5845. as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
  5846. fi
  5847. ;;
  5848. esac
  5849. # First scan to see if an enabled language requires some other language.
  5850. # We assume that a given config-lang.in will list all the language
  5851. # front ends it requires, even if some are required indirectly.
  5852. for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
  5853. case ${lang_frag} in
  5854. ..) ;;
  5855. # The odd quoting in the next line works around
  5856. # an apparent bug in bash 1.12 on linux.
  5857. ${srcdir}/gcc/[*]/config-lang.in) ;;
  5858. *)
  5859. # From the config-lang.in, get $language, $lang_requires, and
  5860. # $lang_requires_boot_languages.
  5861. language=
  5862. lang_requires=
  5863. lang_requires_boot_languages=
  5864. # set srcdir during sourcing lang_frag to the gcc dir.
  5865. # Sadly overriding srcdir on the . line doesn't work in plain sh as it
  5866. # polutes this shell
  5867. saved_srcdir=${srcdir}
  5868. srcdir=${srcdir}/gcc . ${lang_frag}
  5869. srcdir=${saved_srcdir}
  5870. for other in ${lang_requires} ${lang_requires_boot_languages}; do
  5871. case ,${enable_languages}, in
  5872. *,$other,*) ;;
  5873. *,default,*) ;;
  5874. *,all,*) ;;
  5875. *,$language,*)
  5876. echo " \`$other' language required by \`$language'; enabling" 1>&2
  5877. enable_languages="${enable_languages},${other}"
  5878. ;;
  5879. esac
  5880. done
  5881. for other in ${lang_requires_boot_languages} ; do
  5882. if test "$other" != "c"; then
  5883. case ,${enable_stage1_languages}, in
  5884. *,$other,*) ;;
  5885. *,default,*) ;;
  5886. *,all,*) ;;
  5887. *)
  5888. case ,${enable_languages}, in
  5889. *,$language,*)
  5890. echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
  5891. enable_stage1_languages="$enable_stage1_languages,${other}"
  5892. ;;
  5893. esac
  5894. ;;
  5895. esac
  5896. fi
  5897. done
  5898. ;;
  5899. esac
  5900. done
  5901. new_enable_languages=,c,
  5902. # If LTO is enabled, add the LTO front end.
  5903. if test "$enable_lto" = "yes" ; then
  5904. case ,${enable_languages}, in
  5905. *,lto,*) ;;
  5906. *) enable_languages="${enable_languages},lto" ;;
  5907. esac
  5908. if test "${build_lto_plugin}" = "yes" ; then
  5909. configdirs="$configdirs lto-plugin"
  5910. fi
  5911. fi
  5912. # If we're building an offloading compiler, add the LTO front end.
  5913. if test x"$enable_as_accelerator_for" != x ; then
  5914. case ,${enable_languages}, in
  5915. *,lto,*) ;;
  5916. *) enable_languages="${enable_languages},lto" ;;
  5917. esac
  5918. fi
  5919. missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
  5920. potential_languages=,c,
  5921. enabled_target_libs=
  5922. disabled_target_libs=
  5923. for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
  5924. case ${lang_frag} in
  5925. ..) ;;
  5926. # The odd quoting in the next line works around
  5927. # an apparent bug in bash 1.12 on linux.
  5928. ${srcdir}/gcc/[*]/config-lang.in) ;;
  5929. *)
  5930. # From the config-lang.in, get $language, $target_libs,
  5931. # $lang_dirs, $boot_language, and $build_by_default
  5932. language=
  5933. target_libs=
  5934. lang_dirs=
  5935. subdir_requires=
  5936. boot_language=no
  5937. build_by_default=yes
  5938. # set srcdir during sourcing. See above about save & restore
  5939. saved_srcdir=${srcdir}
  5940. srcdir=${srcdir}/gcc . ${lang_frag}
  5941. srcdir=${saved_srcdir}
  5942. if test x${language} = x; then
  5943. echo "${lang_frag} doesn't set \$language." 1>&2
  5944. exit 1
  5945. fi
  5946. if test "$language" = "c++"; then
  5947. boot_language=yes
  5948. fi
  5949. add_this_lang=no
  5950. # C is always enabled, so no need to add it again
  5951. if test "$language" != "c"; then
  5952. case ,${enable_languages}, in
  5953. *,${language},*)
  5954. # Language was explicitly selected; include it
  5955. add_this_lang=yes
  5956. ;;
  5957. *,all,*)
  5958. # All languages are enabled
  5959. add_this_lang=all
  5960. ;;
  5961. *,default,*)
  5962. # 'default' was selected, select it if it is a default language
  5963. add_this_lang=${build_by_default}
  5964. ;;
  5965. esac
  5966. fi
  5967. # Disable languages that need other directories if these aren't available.
  5968. for i in $subdir_requires; do
  5969. test -f "$srcdir/gcc/$i/config-lang.in" && continue
  5970. case ${add_this_lang} in
  5971. yes)
  5972. # Specifically requested language; tell them.
  5973. as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
  5974. ;;
  5975. all)
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
  5977. $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
  5978. add_this_lang=unsupported
  5979. ;;
  5980. *)
  5981. # Silently disable.
  5982. add_this_lang=unsupported
  5983. ;;
  5984. esac
  5985. done
  5986. # Disable Ada if no preexisting GNAT is available.
  5987. case ${add_this_lang}:${language}:${have_gnat} in
  5988. yes:ada:no)
  5989. # Specifically requested language; tell them.
  5990. as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
  5991. ;;
  5992. all:ada:no)
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
  5994. $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
  5995. add_this_lang=unsupported
  5996. ;;
  5997. *:ada:no)
  5998. # Silently disable.
  5999. add_this_lang=unsupported
  6000. ;;
  6001. esac
  6002. # Disable jit if -enable-host-shared not specified
  6003. case ${add_this_lang}:${language}:${host_shared} in
  6004. yes:jit:no)
  6005. # PR jit/64780: explicitly specify --enable-host-shared
  6006. as_fn_error $? "
  6007. Enabling language \"jit\" requires --enable-host-shared.
  6008. --enable-host-shared typically slows the rest of the compiler down by
  6009. a few %, so you must explicitly enable it.
  6010. If you want to build both the jit and the regular compiler, it is often
  6011. best to do this via two separate configure/builds, in separate
  6012. directories, to avoid imposing the performance cost of
  6013. --enable-host-shared on the regular compiler." "$LINENO" 5
  6014. ;;
  6015. all:jit:no)
  6016. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
  6017. $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
  6018. add_this_lang=unsupported
  6019. ;;
  6020. *:jit:no)
  6021. # Silently disable.
  6022. add_this_lang=unsupported
  6023. ;;
  6024. esac
  6025. # Disable a language that is unsupported by the target.
  6026. case "${add_this_lang}: $unsupported_languages " in
  6027. no:*) ;;
  6028. unsupported:*) ;;
  6029. *:*" $language "*)
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
  6031. $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
  6032. add_this_lang=unsupported
  6033. ;;
  6034. esac
  6035. case $add_this_lang in
  6036. unsupported)
  6037. # Remove language-dependent dirs.
  6038. disabled_target_libs="$disabled_target_libs $target_libs"
  6039. noconfigdirs="$noconfigdirs $lang_dirs"
  6040. ;;
  6041. no)
  6042. # Remove language-dependent dirs; still show language as supported.
  6043. disabled_target_libs="$disabled_target_libs $target_libs"
  6044. noconfigdirs="$noconfigdirs $lang_dirs"
  6045. potential_languages="${potential_languages}${language},"
  6046. ;;
  6047. all|yes)
  6048. new_enable_languages="${new_enable_languages}${language},"
  6049. potential_languages="${potential_languages}${language},"
  6050. missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
  6051. enabled_target_libs="$enabled_target_libs $target_libs"
  6052. case "${boot_language}:,$enable_stage1_languages," in
  6053. yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
  6054. # Add to (comma-separated) list of stage 1 languages.
  6055. case ",$stage1_languages," in
  6056. *,$language,* | ,yes, | ,all,) ;;
  6057. *) stage1_languages="${stage1_languages}${language}," ;;
  6058. esac
  6059. # We need to bootstrap any supporting libraries.
  6060. bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
  6061. ;;
  6062. esac
  6063. ;;
  6064. esac
  6065. ;;
  6066. esac
  6067. done
  6068. # Add target libraries which are only needed for disabled languages
  6069. # to noconfigdirs.
  6070. if test -n "$disabled_target_libs"; then
  6071. for dir in $disabled_target_libs; do
  6072. case " $enabled_target_libs " in
  6073. *" ${dir} "*) ;;
  6074. *) noconfigdirs="$noconfigdirs $dir" ;;
  6075. esac
  6076. done
  6077. fi
  6078. # Check whether --enable-stage1-languages was given.
  6079. if test "${enable_stage1_languages+set}" = set; then :
  6080. enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
  6081. ,no,|,,)
  6082. # Set it to something that will have no effect in the loop below
  6083. enable_stage1_languages=c ;;
  6084. ,yes,)
  6085. enable_stage1_languages=`echo $new_enable_languages | \
  6086. sed -e "s/^,//" -e "s/,$//" ` ;;
  6087. *,all,*)
  6088. enable_stage1_languages=`echo ,$enable_stage1_languages, | \
  6089. sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
  6090. esac
  6091. # Add "good" languages from enable_stage1_languages to stage1_languages,
  6092. # while "bad" languages go in missing_languages. Leave no duplicates.
  6093. for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
  6094. case $potential_languages in
  6095. *,$i,*)
  6096. case $stage1_languages in
  6097. *,$i,*) ;;
  6098. *) stage1_languages="$stage1_languages$i," ;;
  6099. esac ;;
  6100. *)
  6101. case $missing_languages in
  6102. *,$i,*) ;;
  6103. *) missing_languages="$missing_languages$i," ;;
  6104. esac ;;
  6105. esac
  6106. done
  6107. fi
  6108. # Remove leading/trailing commas that were added for simplicity
  6109. potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
  6110. missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
  6111. stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
  6112. new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
  6113. if test "x$missing_languages" != x; then
  6114. as_fn_error $? "
  6115. The following requested languages could not be built: ${missing_languages}
  6116. Supported languages are: ${potential_languages}" "$LINENO" 5
  6117. fi
  6118. if test "x$new_enable_languages" != "x$enable_languages"; then
  6119. echo The following languages will be built: ${new_enable_languages}
  6120. enable_languages="$new_enable_languages"
  6121. fi
  6122. ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
  6123. fi
  6124. # Handle --disable-<component> generically.
  6125. for dir in $configdirs $build_configdirs $target_configdirs ; do
  6126. dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
  6127. varname=`echo $dirname | sed -e s/+/_/g`
  6128. if eval test x\${enable_${varname}} "=" xno ; then
  6129. noconfigdirs="$noconfigdirs $dir"
  6130. fi
  6131. done
  6132. # Check for Boehm's garbage collector
  6133. # Check whether --enable-objc-gc was given.
  6134. if test "${enable_objc_gc+set}" = set; then :
  6135. enableval=$enable_objc_gc;
  6136. fi
  6137. # Check whether --with-target-bdw-gc was given.
  6138. if test "${with_target_bdw_gc+set}" = set; then :
  6139. withval=$with_target_bdw_gc;
  6140. fi
  6141. # Check whether --with-target-bdw-gc-include was given.
  6142. if test "${with_target_bdw_gc_include+set}" = set; then :
  6143. withval=$with_target_bdw_gc_include;
  6144. fi
  6145. # Check whether --with-target-bdw-gc-lib was given.
  6146. if test "${with_target_bdw_gc_lib+set}" = set; then :
  6147. withval=$with_target_bdw_gc_lib;
  6148. fi
  6149. case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
  6151. $as_echo_n "checking for bdw garbage collector... " >&6; }
  6152. if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
  6154. $as_echo "using bdw-gc in default locations" >&6; }
  6155. else
  6156. if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
  6157. as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
  6158. elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
  6159. as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
  6160. else
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
  6162. $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
  6163. fi
  6164. fi
  6165. esac
  6166. # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
  6167. case ,${enable_languages}, in
  6168. *,c++,*)
  6169. # Disable libitm, libsanitizer if we're not building libstdc++
  6170. case "${noconfigdirs}" in
  6171. *target-libstdc++-v3*)
  6172. noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
  6173. ;;
  6174. *) ;;
  6175. esac
  6176. ;;
  6177. *)
  6178. noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
  6179. ;;
  6180. esac
  6181. # If gcc/ is not in the source tree then we'll not be building a
  6182. # target compiler, assume in that case we don't want to build any
  6183. # target libraries or tools.
  6184. #
  6185. # This was added primarily for the benefit for binutils-gdb who reuse
  6186. # this configure script, but don't always have target tools available.
  6187. if test ! -d ${srcdir}/gcc; then
  6188. skipdirs="${skipdirs} ${target_configdirs}"
  6189. fi
  6190. # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
  6191. # $build_configdirs and $target_configdirs.
  6192. # If we have the source for $noconfigdirs entries, add them to $notsupp.
  6193. notsupp=""
  6194. for dir in . $skipdirs $noconfigdirs ; do
  6195. dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
  6196. if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  6197. configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
  6198. if test -r $srcdir/$dirname/configure ; then
  6199. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  6200. true
  6201. else
  6202. notsupp="$notsupp $dir"
  6203. fi
  6204. fi
  6205. fi
  6206. if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  6207. build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
  6208. if test -r $srcdir/$dirname/configure ; then
  6209. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  6210. true
  6211. else
  6212. notsupp="$notsupp $dir"
  6213. fi
  6214. fi
  6215. fi
  6216. if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  6217. target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
  6218. if test -r $srcdir/$dirname/configure ; then
  6219. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  6220. true
  6221. else
  6222. notsupp="$notsupp $dir"
  6223. fi
  6224. fi
  6225. fi
  6226. done
  6227. # Quietly strip out all directories which aren't configurable in this tree.
  6228. # This relies on all configurable subdirectories being autoconfiscated, which
  6229. # is now the case.
  6230. build_configdirs_all="$build_configdirs"
  6231. build_configdirs=
  6232. for i in ${build_configdirs_all} ; do
  6233. j=`echo $i | sed -e s/build-//g`
  6234. if test -f ${srcdir}/$j/configure ; then
  6235. build_configdirs="${build_configdirs} $i"
  6236. fi
  6237. done
  6238. configdirs_all="$configdirs"
  6239. configdirs=
  6240. for i in ${configdirs_all} ; do
  6241. if test -f ${srcdir}/$i/configure ; then
  6242. configdirs="${configdirs} $i"
  6243. fi
  6244. done
  6245. target_configdirs_all="$target_configdirs"
  6246. target_configdirs=
  6247. for i in ${target_configdirs_all} ; do
  6248. j=`echo $i | sed -e s/target-//g`
  6249. if test -f ${srcdir}/$j/configure ; then
  6250. target_configdirs="${target_configdirs} $i"
  6251. fi
  6252. done
  6253. # libiberty-linker-plugin is special: it doesn't have its own source directory,
  6254. # so we have to add it after the preceding checks.
  6255. if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
  6256. then
  6257. case " $configdirs " in
  6258. *" libiberty "*)
  6259. # If we can build libiberty, we can also build libiberty-linker-plugin.
  6260. configdirs="$configdirs libiberty-linker-plugin"
  6261. extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
  6262. --with-libiberty=../libiberty-linker-plugin";;
  6263. *)
  6264. as_fn_error $? "libiberty missing" "$LINENO" 5;;
  6265. esac
  6266. fi
  6267. # Sometimes we have special requirements for the host libiberty.
  6268. extra_host_libiberty_configure_flags=
  6269. extra_host_zlib_configure_flags=
  6270. case " $configdirs " in
  6271. *" lto-plugin "* | *" libcc1 "*)
  6272. # When these are to be built as shared libraries, the same applies to
  6273. # libiberty.
  6274. extra_host_libiberty_configure_flags=--enable-shared
  6275. ;;
  6276. *" bfd "*)
  6277. # When bfd is to be built as a shared library, the same applies to
  6278. # zlib.
  6279. if test "$enable_shared" = "yes"; then
  6280. extra_host_zlib_configure_flags=--enable-host-shared
  6281. fi
  6282. ;;
  6283. esac
  6284. # Produce a warning message for the subdirs we can't configure.
  6285. # This isn't especially interesting in the Cygnus tree, but in the individual
  6286. # FSF releases, it's important to let people know when their machine isn't
  6287. # supported by the one or two programs in a package.
  6288. if test -n "${notsupp}" && test -z "${norecursion}" ; then
  6289. # If $appdirs is non-empty, at least one of those directories must still
  6290. # be configured, or we error out. (E.g., if the gas release supports a
  6291. # specified target in some subdirs but not the gas subdir, we shouldn't
  6292. # pretend that all is well.)
  6293. if test -n "$appdirs" ; then
  6294. for dir in $appdirs ; do
  6295. if test -r $dir/Makefile.in ; then
  6296. if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  6297. appdirs=""
  6298. break
  6299. fi
  6300. if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
  6301. appdirs=""
  6302. break
  6303. fi
  6304. fi
  6305. done
  6306. if test -n "$appdirs" ; then
  6307. echo "*** This configuration is not supported by this package." 1>&2
  6308. exit 1
  6309. fi
  6310. fi
  6311. # Okay, some application will build, or we don't care to check. Still
  6312. # notify of subdirs not getting built.
  6313. echo "*** This configuration is not supported in the following subdirectories:" 1>&2
  6314. echo " ${notsupp}" 1>&2
  6315. echo " (Any other directories should still work fine.)" 1>&2
  6316. fi
  6317. case "$host" in
  6318. *msdosdjgpp*)
  6319. enable_gdbtk=no ;;
  6320. esac
  6321. # To find our prefix, in gcc_cv_tool_prefix.
  6322. # The user is always right.
  6323. if test "${PATH_SEPARATOR+set}" != set; then
  6324. echo "#! /bin/sh" >conf$$.sh
  6325. echo "exit 0" >>conf$$.sh
  6326. chmod +x conf$$.sh
  6327. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6328. PATH_SEPARATOR=';'
  6329. else
  6330. PATH_SEPARATOR=:
  6331. fi
  6332. rm -f conf$$.sh
  6333. fi
  6334. get_gcc_base_ver="cat"
  6335. # Check whether --with-gcc-major-version-only was given.
  6336. if test "${with_gcc_major_version_only+set}" = set; then :
  6337. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  6338. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  6339. fi
  6340. fi
  6341. if test "x$exec_prefix" = xNONE; then
  6342. if test "x$prefix" = xNONE; then
  6343. gcc_cv_tool_prefix=$ac_default_prefix
  6344. else
  6345. gcc_cv_tool_prefix=$prefix
  6346. fi
  6347. else
  6348. gcc_cv_tool_prefix=$exec_prefix
  6349. fi
  6350. # If there is no compiler in the tree, use the PATH only. In any
  6351. # case, if there is no compiler in the tree nobody should use
  6352. # AS_FOR_TARGET and LD_FOR_TARGET.
  6353. if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
  6354. if test x$with_gcc_major_version_only = xyes ; then
  6355. gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
  6356. else
  6357. gcc_version=`cat $srcdir/gcc/BASE-VER`
  6358. fi
  6359. gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  6360. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
  6361. gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  6362. gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
  6363. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  6364. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
  6365. else
  6366. gcc_cv_tool_dirs=
  6367. fi
  6368. if test x$build = x$target && test -n "$md_exec_prefix"; then
  6369. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
  6370. fi
  6371. copy_dirs=
  6372. # Check whether --with-build-sysroot was given.
  6373. if test "${with_build_sysroot+set}" = set; then :
  6374. withval=$with_build_sysroot; if test x"$withval" != x ; then
  6375. SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
  6376. fi
  6377. else
  6378. SYSROOT_CFLAGS_FOR_TARGET=
  6379. fi
  6380. # Check whether --with-debug-prefix-map was given.
  6381. if test "${with_debug_prefix_map+set}" = set; then :
  6382. withval=$with_debug_prefix_map; if test x"$withval" != x; then
  6383. DEBUG_PREFIX_CFLAGS_FOR_TARGET=
  6384. for debug_map in $withval; do
  6385. DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
  6386. done
  6387. fi
  6388. else
  6389. DEBUG_PREFIX_CFLAGS_FOR_TARGET=
  6390. fi
  6391. # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
  6392. # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
  6393. # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
  6394. # We want to ensure that TARGET libraries (which we know are built with
  6395. # gcc) are built with "-O2 -g", so include those options when setting
  6396. # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
  6397. if test "x$CFLAGS_FOR_TARGET" = x; then
  6398. if test "x${is_cross_compiler}" = xyes; then
  6399. CFLAGS_FOR_TARGET="-g -O2"
  6400. else
  6401. CFLAGS_FOR_TARGET=$CFLAGS
  6402. case " $CFLAGS " in
  6403. *" -O2 "*) ;;
  6404. *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
  6405. esac
  6406. case " $CFLAGS " in
  6407. *" -g "* | *" -g3 "*) ;;
  6408. *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
  6409. esac
  6410. fi
  6411. fi
  6412. if test "x$CXXFLAGS_FOR_TARGET" = x; then
  6413. if test "x${is_cross_compiler}" = xyes; then
  6414. CXXFLAGS_FOR_TARGET="-g -O2"
  6415. else
  6416. CXXFLAGS_FOR_TARGET=$CXXFLAGS
  6417. case " $CXXFLAGS " in
  6418. *" -O2 "*) ;;
  6419. *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
  6420. esac
  6421. case " $CXXFLAGS " in
  6422. *" -g "* | *" -g3 "*) ;;
  6423. *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
  6424. esac
  6425. fi
  6426. fi
  6427. # Handle --with-headers=XXX. If the value is not "yes", the contents of
  6428. # the named directory are copied to $(tooldir)/sys-include.
  6429. if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
  6430. if test x${is_cross_compiler} = xno ; then
  6431. echo 1>&2 '***' --with-headers is only supported when cross compiling
  6432. exit 1
  6433. fi
  6434. if test x"${with_headers}" != xyes ; then
  6435. x=${gcc_cv_tool_prefix}
  6436. copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
  6437. fi
  6438. fi
  6439. # Handle --with-libs=XXX. If the value is not "yes", the contents of
  6440. # the name directories are copied to $(tooldir)/lib. Multiple directories
  6441. # are permitted.
  6442. if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  6443. if test x${is_cross_compiler} = xno ; then
  6444. echo 1>&2 '***' --with-libs is only supported when cross compiling
  6445. exit 1
  6446. fi
  6447. if test x"${with_libs}" != xyes ; then
  6448. # Copy the libraries in reverse order, so that files in the first named
  6449. # library override files in subsequent libraries.
  6450. x=${gcc_cv_tool_prefix}
  6451. for l in ${with_libs}; do
  6452. copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
  6453. done
  6454. fi
  6455. fi
  6456. # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
  6457. #
  6458. # This is done by determining whether or not the appropriate directory
  6459. # is available, and by checking whether or not specific configurations
  6460. # have requested that this magic not happen.
  6461. #
  6462. # The command line options always override the explicit settings in
  6463. # configure.ac, and the settings in configure.ac override this magic.
  6464. #
  6465. # If the default for a toolchain is to use GNU as and ld, and you don't
  6466. # want to do that, then you should use the --without-gnu-as and
  6467. # --without-gnu-ld options for the configure script. Similarly, if
  6468. # the default is to use the included zlib and you don't want to do that,
  6469. # you should use the --with-system-zlib option for the configure script.
  6470. if test x${use_gnu_as} = x &&
  6471. echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
  6472. with_gnu_as=yes
  6473. extra_host_args="$extra_host_args --with-gnu-as"
  6474. fi
  6475. if test x${use_gnu_ld} = x &&
  6476. echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
  6477. with_gnu_ld=yes
  6478. extra_host_args="$extra_host_args --with-gnu-ld"
  6479. fi
  6480. if test x${use_included_zlib} = x &&
  6481. echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
  6482. :
  6483. else
  6484. with_system_zlib=yes
  6485. extra_host_args="$extra_host_args --with-system-zlib"
  6486. fi
  6487. # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
  6488. # can detect this case.
  6489. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
  6490. with_newlib=yes
  6491. extra_host_args="$extra_host_args --with-newlib"
  6492. fi
  6493. # Handle ${copy_dirs}
  6494. set fnord ${copy_dirs}
  6495. shift
  6496. while test $# != 0 ; do
  6497. if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
  6498. :
  6499. else
  6500. echo Copying $1 to $2
  6501. # Use the install script to create the directory and all required
  6502. # parent directories.
  6503. if test -d $2 ; then
  6504. :
  6505. else
  6506. echo >config.temp
  6507. ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
  6508. fi
  6509. # Copy the directory, assuming we have tar.
  6510. # FIXME: Should we use B in the second tar? Not all systems support it.
  6511. (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
  6512. # It is the responsibility of the user to correctly adjust all
  6513. # symlinks. If somebody can figure out how to handle them correctly
  6514. # here, feel free to add the code.
  6515. echo $1 > $2/COPIED
  6516. fi
  6517. shift; shift
  6518. done
  6519. # Determine a target-dependent exec_prefix that the installed
  6520. # gcc will search in. Keep this list sorted by triplet, with
  6521. # the *-*-osname triplets last.
  6522. md_exec_prefix=
  6523. case "${target}" in
  6524. i[34567]86-pc-msdosdjgpp*)
  6525. md_exec_prefix=/dev/env/DJDIR/bin
  6526. ;;
  6527. *-*-hpux* | \
  6528. *-*-nto-qnx* | \
  6529. *-*-solaris2*)
  6530. md_exec_prefix=/usr/ccs/bin
  6531. ;;
  6532. esac
  6533. extra_arflags_for_target=
  6534. extra_nmflags_for_target=
  6535. extra_ranlibflags_for_target=
  6536. target_makefile_frag=/dev/null
  6537. case "${target}" in
  6538. spu-*-*)
  6539. target_makefile_frag="config/mt-spu"
  6540. ;;
  6541. mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
  6542. target_makefile_frag="config/mt-sde"
  6543. ;;
  6544. mipsisa*-*-elfoabi*)
  6545. target_makefile_frag="config/mt-mips-elfoabi"
  6546. ;;
  6547. mips*-*-*linux* | mips*-*-gnu*)
  6548. target_makefile_frag="config/mt-mips-gnu"
  6549. ;;
  6550. nios2-*-elf*)
  6551. target_makefile_frag="config/mt-nios2-elf"
  6552. ;;
  6553. *-*-linux-android*)
  6554. target_makefile_frag="config/mt-android"
  6555. ;;
  6556. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  6557. target_makefile_frag="config/mt-gnu"
  6558. ;;
  6559. *-*-aix4.[3456789]* | *-*-aix[56789].*)
  6560. # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
  6561. # commands to handle both 32-bit and 64-bit objects. These flags are
  6562. # harmless if we're using GNU nm or ar.
  6563. extra_arflags_for_target=" -X32_64"
  6564. extra_nmflags_for_target=" -B -X32_64"
  6565. ;;
  6566. esac
  6567. alphaieee_frag=/dev/null
  6568. case $target in
  6569. alpha*-*-*)
  6570. # This just makes sure to use the -mieee option to build target libs.
  6571. # This should probably be set individually by each library.
  6572. alphaieee_frag="config/mt-alphaieee"
  6573. ;;
  6574. esac
  6575. # If --enable-target-optspace always use -Os instead of -O2 to build
  6576. # the target libraries, similarly if it is not specified, use -Os
  6577. # on selected platforms.
  6578. ospace_frag=/dev/null
  6579. case "${enable_target_optspace}:${target}" in
  6580. yes:*)
  6581. ospace_frag="config/mt-ospace"
  6582. ;;
  6583. :d30v-*)
  6584. ospace_frag="config/mt-d30v"
  6585. ;;
  6586. :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
  6587. ospace_frag="config/mt-ospace"
  6588. ;;
  6589. no:* | :*)
  6590. ;;
  6591. *)
  6592. echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
  6593. ;;
  6594. esac
  6595. # Some systems (e.g., one of the i386-aix systems the gas testers are
  6596. # using) don't handle "\$" correctly, so don't use it here.
  6597. tooldir='${exec_prefix}'/${target_noncanonical}
  6598. build_tooldir=${tooldir}
  6599. # Create a .gdbinit file which runs the one in srcdir
  6600. # and tells GDB to look there for source files.
  6601. if test -r ${srcdir}/.gdbinit ; then
  6602. case ${srcdir} in
  6603. .) ;;
  6604. *) cat > ./.gdbinit <<EOF
  6605. # ${NO_EDIT}
  6606. dir ${srcdir}
  6607. dir .
  6608. source ${srcdir}/.gdbinit
  6609. EOF
  6610. ;;
  6611. esac
  6612. fi
  6613. # Make sure that the compiler is able to generate an executable. If it
  6614. # can't, we are probably in trouble. We don't care whether we can run the
  6615. # executable--we might be using a cross compiler--we only care whether it
  6616. # can be created. At this point the main configure script has set CC.
  6617. we_are_ok=no
  6618. echo "int main () { return 0; }" > conftest.c
  6619. ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
  6620. if test $? = 0 ; then
  6621. if test -s conftest || test -s conftest.exe ; then
  6622. we_are_ok=yes
  6623. fi
  6624. fi
  6625. case $we_are_ok in
  6626. no)
  6627. echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
  6628. echo 1>&2 "*** You must set the environment variable CC to a working compiler."
  6629. rm -f conftest*
  6630. exit 1
  6631. ;;
  6632. esac
  6633. rm -f conftest*
  6634. # Decide which environment variable is used to find dynamic libraries.
  6635. case "${host}" in
  6636. *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
  6637. *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
  6638. *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
  6639. *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
  6640. esac
  6641. # On systems where the dynamic library environment variable is PATH,
  6642. # gcc/ will put dynamic libraries into a subdirectory to avoid adding
  6643. # built executables to PATH.
  6644. if test "$RPATH_ENVVAR" = PATH; then
  6645. GCC_SHLIB_SUBDIR=/shlib
  6646. else
  6647. GCC_SHLIB_SUBDIR=
  6648. fi
  6649. # Adjust the toplevel makefile according to whether bootstrap was selected.
  6650. case $enable_bootstrap in
  6651. yes)
  6652. bootstrap_suffix=bootstrap
  6653. BUILD_CONFIG=bootstrap-debug
  6654. ;;
  6655. no)
  6656. bootstrap_suffix=no-bootstrap
  6657. BUILD_CONFIG=
  6658. ;;
  6659. esac
  6660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
  6661. $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
  6662. # Check whether --with-build-config was given.
  6663. if test "${with_build_config+set}" = set; then :
  6664. withval=$with_build_config; case $with_build_config in
  6665. yes) with_build_config= ;;
  6666. no) with_build_config= BUILD_CONFIG= ;;
  6667. esac
  6668. fi
  6669. if test "x${with_build_config}" != x; then
  6670. BUILD_CONFIG=$with_build_config
  6671. else
  6672. case $BUILD_CONFIG in
  6673. bootstrap-debug)
  6674. if echo "int f (void) { return 0; }" > conftest.c &&
  6675. ${CC} -c conftest.c &&
  6676. mv conftest.o conftest.o.g0 &&
  6677. ${CC} -c -g conftest.c &&
  6678. mv conftest.o conftest.o.g &&
  6679. ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
  6680. :
  6681. else
  6682. BUILD_CONFIG=
  6683. fi
  6684. rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
  6685. ;;
  6686. esac
  6687. fi
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
  6689. $as_echo "$BUILD_CONFIG" >&6; }
  6690. # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
  6691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
  6692. $as_echo_n "checking for --enable-vtable-verify... " >&6; }
  6693. # Check whether --enable-vtable-verify was given.
  6694. if test "${enable_vtable_verify+set}" = set; then :
  6695. enableval=$enable_vtable_verify; case "$enableval" in
  6696. yes) enable_vtable_verify=yes ;;
  6697. no) enable_vtable_verify=no ;;
  6698. *) enable_vtable_verify=no;;
  6699. esac
  6700. else
  6701. enable_vtable_verify=no
  6702. fi
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
  6704. $as_echo "$enable_vtable_verify" >&6; }
  6705. # Record target_configdirs and the configure arguments for target and
  6706. # build configuration in Makefile.
  6707. target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
  6708. build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
  6709. bootstrap_fixincludes=no
  6710. # If we are building libgomp, bootstrap it.
  6711. if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
  6712. bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
  6713. fi
  6714. # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
  6715. # or bootstrap-ubsan, bootstrap it.
  6716. if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
  6717. case "$BUILD_CONFIG" in
  6718. *bootstrap-asan* | *bootstrap-ubsan* )
  6719. bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
  6720. bootstrap_fixincludes=yes
  6721. ;;
  6722. esac
  6723. fi
  6724. # If we are building libvtv and --enable-vtable-verify, bootstrap it.
  6725. if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
  6726. test "$enable_vtable_verify" != no; then
  6727. bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
  6728. fi
  6729. # Determine whether gdb needs tk/tcl or not.
  6730. # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
  6731. # and in that case we want gdb to be built without tk. Ugh!
  6732. # In fact I believe gdb is the *only* package directly dependent on tk,
  6733. # so we should be able to put the 'maybe's in unconditionally and
  6734. # leave out the maybe dependencies when enable_gdbtk is false. I'm not
  6735. # 100% sure that that's safe though.
  6736. gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
  6737. case "$enable_gdbtk" in
  6738. no)
  6739. GDB_TK="" ;;
  6740. yes)
  6741. GDB_TK="${gdb_tk}" ;;
  6742. *)
  6743. # Only add the dependency on gdbtk when GDBtk is part of the gdb
  6744. # distro. Eventually someone will fix this and move Insight, nee
  6745. # gdbtk to a separate directory.
  6746. if test -d ${srcdir}/gdb/gdbtk ; then
  6747. GDB_TK="${gdb_tk}"
  6748. else
  6749. GDB_TK=""
  6750. fi
  6751. ;;
  6752. esac
  6753. CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
  6754. INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
  6755. # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
  6756. # else does, only include them if one of these is built. The Makefile
  6757. # provides the ordering, so it's enough here to add to the list.
  6758. case " ${configdirs} " in
  6759. *\ gdb\ *)
  6760. configdirs="${configdirs} gnulib gdbsupport"
  6761. ;;
  6762. *\ gdbserver\ *)
  6763. configdirs="${configdirs} gnulib gdbsupport"
  6764. ;;
  6765. *\ sim\ *)
  6766. configdirs="${configdirs} gnulib"
  6767. ;;
  6768. esac
  6769. # Strip out unwanted targets.
  6770. # While at that, we remove Makefiles if we were started for recursive
  6771. # configuration, so that the top-level Makefile reconfigures them,
  6772. # like we used to do when configure itself was recursive.
  6773. # Loop over modules. We used to use the "$extrasub" feature from Autoconf
  6774. # but now we're fixing up the Makefile ourselves with the additional
  6775. # commands passed to AC_CONFIG_FILES. Use separate variables
  6776. # extrasub-{build,host,target} not because there is any reason to split
  6777. # the substitutions up that way, but only to remain below the limit of
  6778. # 99 commands in a script, for HP-UX sed.
  6779. # Do not nest @if/@endif or @unless/@endunless pairs, because
  6780. # configure will not warn you at all.
  6781. case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
  6782. yes:yes:*\ gold\ *:*,c++,*) ;;
  6783. yes:yes:*\ gold\ *:*)
  6784. as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
  6785. ;;
  6786. esac
  6787. extrasub_build=
  6788. for module in ${build_configdirs} ; do
  6789. if test -z "${no_recursion}" \
  6790. && test -f ${build_subdir}/${module}/Makefile; then
  6791. echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
  6792. rm -f ${build_subdir}/${module}/Makefile
  6793. fi
  6794. extrasub_build="$extrasub_build
  6795. /^@if build-$module\$/d
  6796. /^@endif build-$module\$/d
  6797. /^@unless build-$module\$/,/^@endunless build-$module\$/d
  6798. /^@if build-$module-$bootstrap_suffix\$/d
  6799. /^@endif build-$module-$bootstrap_suffix\$/d
  6800. /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
  6801. done
  6802. extrasub_host=
  6803. for module in ${configdirs} ; do
  6804. if test -z "${no_recursion}"; then
  6805. for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
  6806. if test -f ${file}; then
  6807. echo 1>&2 "*** removing ${file} to force reconfigure"
  6808. rm -f ${file}
  6809. fi
  6810. done
  6811. fi
  6812. case ${module},${bootstrap_fixincludes} in
  6813. fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
  6814. *) host_bootstrap_suffix=$bootstrap_suffix ;;
  6815. esac
  6816. extrasub_host="$extrasub_host
  6817. /^@if $module\$/d
  6818. /^@endif $module\$/d
  6819. /^@unless $module\$/,/^@endunless $module\$/d
  6820. /^@if $module-$host_bootstrap_suffix\$/d
  6821. /^@endif $module-$host_bootstrap_suffix\$/d
  6822. /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
  6823. done
  6824. extrasub_target=
  6825. for module in ${target_configdirs} ; do
  6826. if test -z "${no_recursion}" \
  6827. && test -f ${target_subdir}/${module}/Makefile; then
  6828. echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
  6829. rm -f ${target_subdir}/${module}/Makefile
  6830. fi
  6831. # We only bootstrap target libraries listed in bootstrap_target_libs.
  6832. case $bootstrap_target_libs in
  6833. *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
  6834. *) target_bootstrap_suffix=no-bootstrap ;;
  6835. esac
  6836. extrasub_target="$extrasub_target
  6837. /^@if target-$module\$/d
  6838. /^@endif target-$module\$/d
  6839. /^@unless target-$module\$/,/^@endunless target-$module\$/d
  6840. /^@if target-$module-$target_bootstrap_suffix\$/d
  6841. /^@endif target-$module-$target_bootstrap_suffix\$/d
  6842. /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
  6843. done
  6844. # Do the final fixup along with target modules.
  6845. extrasub_target="$extrasub_target
  6846. /^@if /,/^@endif /d
  6847. /^@unless /d
  6848. /^@endunless /d"
  6849. if test "$enable_pgo_build" != "no"; then
  6850. extrasub_build="$extrasub_build
  6851. /^@if pgo-build\$/d
  6852. /^@endif pgo-build\$/d"
  6853. fi
  6854. # Create the serialization dependencies. This uses a temporary file.
  6855. # Check whether --enable-serial-configure was given.
  6856. if test "${enable_serial_configure+set}" = set; then :
  6857. enableval=$enable_serial_configure;
  6858. fi
  6859. case ${enable_serial_configure} in
  6860. yes)
  6861. enable_serial_build_configure=yes
  6862. enable_serial_host_configure=yes
  6863. enable_serial_target_configure=yes
  6864. ;;
  6865. esac
  6866. # These force 'configure's to be done one at a time, to avoid problems
  6867. # with contention over a shared config.cache.
  6868. rm -f serdep.tmp
  6869. echo '# serdep.tmp' > serdep.tmp
  6870. olditem=
  6871. test "x${enable_serial_build_configure}" = xyes &&
  6872. for item in ${build_configdirs} ; do
  6873. case ${olditem} in
  6874. "") ;;
  6875. *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
  6876. esac
  6877. olditem=${item}
  6878. done
  6879. olditem=
  6880. test "x${enable_serial_host_configure}" = xyes &&
  6881. for item in ${configdirs} ; do
  6882. case ${olditem} in
  6883. "") ;;
  6884. *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
  6885. esac
  6886. olditem=${item}
  6887. done
  6888. olditem=
  6889. test "x${enable_serial_target_configure}" = xyes &&
  6890. for item in ${target_configdirs} ; do
  6891. case ${olditem} in
  6892. "") ;;
  6893. *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
  6894. esac
  6895. olditem=${item}
  6896. done
  6897. serialization_dependencies=serdep.tmp
  6898. # Base args. Strip norecursion, cache-file, srcdir, host, build,
  6899. # target, nonopt, and variable assignments. These are the ones we
  6900. # might not want to pass down to subconfigures. The exception being
  6901. # --cache-file=/dev/null, which is used to turn off the use of cache
  6902. # files altogether, and which should be passed on to subconfigures.
  6903. # Also strip program-prefix, program-suffix, and program-transform-name,
  6904. # so that we can pass down a consistent program-transform-name.
  6905. baseargs=
  6906. tbaseargs=
  6907. keep_next=no
  6908. skip_next=no
  6909. eval "set -- $ac_configure_args"
  6910. for ac_arg
  6911. do
  6912. if test X"$skip_next" = X"yes"; then
  6913. skip_next=no
  6914. continue
  6915. fi
  6916. if test X"$keep_next" = X"yes"; then
  6917. case $ac_arg in
  6918. *\'*)
  6919. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6920. esac
  6921. baseargs="$baseargs '$ac_arg'"
  6922. tbaseargs="$tbaseargs '$ac_arg'"
  6923. keep_next=no
  6924. continue
  6925. fi
  6926. # Handle separated arguments. Based on the logic generated by
  6927. # autoconf 2.59.
  6928. case $ac_arg in
  6929. *=* | --config-cache | -C | -disable-* | --disable-* \
  6930. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  6931. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  6932. | -with-* | --with-* | -without-* | --without-* | --x)
  6933. separate_arg=no
  6934. ;;
  6935. -*)
  6936. separate_arg=yes
  6937. ;;
  6938. *)
  6939. separate_arg=no
  6940. ;;
  6941. esac
  6942. skip_targ=no
  6943. case $ac_arg in
  6944. --with-* | --without-*)
  6945. libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
  6946. case $libopt in
  6947. *[-_]include)
  6948. lib=`echo "$libopt" | sed 's,[-_]include$,,'`
  6949. ;;
  6950. *[-_]lib)
  6951. lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
  6952. ;;
  6953. *)
  6954. lib=$libopt
  6955. ;;
  6956. esac
  6957. case $lib in
  6958. mpc | mpfr | gmp | isl)
  6959. # If we're processing --with-$lib, --with-$lib-include or
  6960. # --with-$lib-lib, for one of the libs above, and target is
  6961. # different from host, don't pass the current argument to any
  6962. # target library's configure.
  6963. if test x$is_cross_compiler = xyes; then
  6964. skip_targ=yes
  6965. fi
  6966. ;;
  6967. esac
  6968. ;;
  6969. esac
  6970. case "$ac_arg" in
  6971. --cache-file=/dev/null | \
  6972. -cache-file=/dev/null )
  6973. # Handled here to avoid the test to skip args below.
  6974. baseargs="$baseargs '$ac_arg'"
  6975. tbaseargs="$tbaseargs '$ac_arg'"
  6976. # Assert: $separate_arg should always be no.
  6977. keep_next=$separate_arg
  6978. ;;
  6979. --no*)
  6980. continue
  6981. ;;
  6982. --c* | \
  6983. --sr* | \
  6984. --ho* | \
  6985. --bu* | \
  6986. --t* | \
  6987. --program-* | \
  6988. -cache_file* | \
  6989. -srcdir* | \
  6990. -host* | \
  6991. -build* | \
  6992. -target* | \
  6993. -program-prefix* | \
  6994. -program-suffix* | \
  6995. -program-transform-name* )
  6996. skip_next=$separate_arg
  6997. continue
  6998. ;;
  6999. -*)
  7000. # An option. Add it.
  7001. case $ac_arg in
  7002. *\'*)
  7003. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7004. esac
  7005. baseargs="$baseargs '$ac_arg'"
  7006. if test X"$skip_targ" = Xno; then
  7007. tbaseargs="$tbaseargs '$ac_arg'"
  7008. fi
  7009. keep_next=$separate_arg
  7010. ;;
  7011. *)
  7012. # Either a variable assignment, or a nonopt (triplet). Don't
  7013. # pass it down; let the Makefile handle this.
  7014. continue
  7015. ;;
  7016. esac
  7017. done
  7018. # Remove the initial space we just introduced and, as these will be
  7019. # expanded by make, quote '$'.
  7020. baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  7021. # Add in --program-transform-name, after --program-prefix and
  7022. # --program-suffix have been applied to it. Autoconf has already
  7023. # doubled dollar signs and backslashes in program_transform_name; we want
  7024. # the backslashes un-doubled, and then the entire thing wrapped in single
  7025. # quotes, because this will be expanded first by make and then by the shell.
  7026. # Also, because we want to override the logic in subdir configure scripts to
  7027. # choose program_transform_name, replace any s,x,x, with s,y,y,.
  7028. sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
  7029. ${program_transform_name}
  7030. EOF_SED
  7031. gcc_transform_name=`cat conftestsed.out`
  7032. rm -f conftestsed.out
  7033. baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
  7034. tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
  7035. if test "$silent" = yes; then
  7036. baseargs="$baseargs --silent"
  7037. tbaseargs="$tbaseargs --silent"
  7038. fi
  7039. baseargs="$baseargs --disable-option-checking"
  7040. tbaseargs="$tbaseargs --disable-option-checking"
  7041. # Record and document user additions to sub configure arguments.
  7042. # For the build-side libraries, we just need to pretend we're native,
  7043. # and not use the same cache file. Multilibs are neither needed nor
  7044. # desired. We can't even use the same cache file for all build-side
  7045. # libraries, as they're compiled differently; some with C, some with
  7046. # C++ or with different feature-enabling options.
  7047. build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
  7048. # For host modules, accept cache file option, or specification as blank.
  7049. case "${cache_file}" in
  7050. "") # empty
  7051. cache_file_option="" ;;
  7052. /* | [A-Za-z]:[\\/]* ) # absolute path
  7053. cache_file_option="--cache-file=${cache_file}" ;;
  7054. *) # relative path
  7055. cache_file_option="--cache-file=../${cache_file}" ;;
  7056. esac
  7057. # Host dirs don't like to share a cache file either, horribly enough.
  7058. # This seems to be due to autoconf 2.5x stupidity.
  7059. host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
  7060. target_configargs="$target_configargs ${tbaseargs}"
  7061. # Passing a --with-cross-host argument lets the target libraries know
  7062. # whether they are being built with a cross-compiler or being built
  7063. # native. However, it would be better to use other mechanisms to make the
  7064. # sorts of decisions they want to make on this basis. Please consider
  7065. # this option to be deprecated. FIXME.
  7066. if test x${is_cross_compiler} = xyes ; then
  7067. target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
  7068. fi
  7069. # Special user-friendly check for native x86_64-linux build, if
  7070. # multilib is not explicitly enabled.
  7071. case "$target:$have_compiler:$host:$target:$enable_multilib" in
  7072. x86_64-*linux*:yes:$build:$build:)
  7073. # Make sure we have a development environment that handles 32-bit
  7074. dev64=no
  7075. echo "int main () { return 0; }" > conftest.c
  7076. ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
  7077. if test $? = 0 ; then
  7078. if test -s conftest || test -s conftest.exe ; then
  7079. dev64=yes
  7080. fi
  7081. fi
  7082. rm -f conftest*
  7083. if test x${dev64} != xyes ; then
  7084. as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
  7085. fi
  7086. ;;
  7087. esac
  7088. # Default to --enable-multilib.
  7089. if test x${enable_multilib} = x ; then
  7090. target_configargs="--enable-multilib ${target_configargs}"
  7091. fi
  7092. # Pass --with-newlib if appropriate. Note that target_configdirs has
  7093. # changed from the earlier setting of with_newlib.
  7094. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
  7095. target_configargs="--with-newlib ${target_configargs}"
  7096. fi
  7097. # Different target subdirs use different values of certain variables
  7098. # (notably CXX). Worse, multilibs use *lots* of different values.
  7099. # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
  7100. # it doesn't automatically accept command-line overrides of them.
  7101. # This means it's not safe for target subdirs to share a cache file,
  7102. # which is disgusting, but there you have it. Hopefully this can be
  7103. # fixed in future. It's still worthwhile to use a cache file for each
  7104. # directory. I think.
  7105. # Pass the appropriate --build, --host, --target and --cache-file arguments.
  7106. # We need to pass --target, as newer autoconf's requires consistency
  7107. # for target_alias and gcc doesn't manage it consistently.
  7108. target_configargs="--cache-file=./config.cache ${target_configargs}"
  7109. FLAGS_FOR_TARGET=
  7110. case " $target_configdirs " in
  7111. *" newlib "*)
  7112. case " $target_configargs " in
  7113. *" --with-newlib "*)
  7114. case "$target" in
  7115. *-cygwin*)
  7116. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
  7117. ;;
  7118. esac
  7119. # If we're not building GCC, don't discard standard headers.
  7120. if test -d ${srcdir}/gcc; then
  7121. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
  7122. if test "${build}" != "${host}"; then
  7123. # On Canadian crosses, CC_FOR_TARGET will have already been set
  7124. # by `configure', so we won't have an opportunity to add -Bgcc/
  7125. # to it. This is right: we don't want to search that directory
  7126. # for binaries, but we want the header files in there, so add
  7127. # them explicitly.
  7128. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
  7129. # Someone might think of using the pre-installed headers on
  7130. # Canadian crosses, in case the installed compiler is not fully
  7131. # compatible with the compiler being built. In this case, it
  7132. # would be better to flag an error than risking having
  7133. # incompatible object files being constructed. We can't
  7134. # guarantee that an error will be flagged, but let's hope the
  7135. # compiler will do it, when presented with incompatible header
  7136. # files.
  7137. fi
  7138. fi
  7139. case "${target}-${is_cross_compiler}" in
  7140. i[3456789]86-*-linux*-no)
  7141. # Here host == target, so we don't need to build gcc,
  7142. # so we don't want to discard standard headers.
  7143. FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
  7144. ;;
  7145. *)
  7146. # If we're building newlib, use its generic headers last, but search
  7147. # for any libc-related directories first (so make it the last -B
  7148. # switch).
  7149. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
  7150. # If we're building libgloss, find the startup file, simulator library
  7151. # and linker script.
  7152. case " $target_configdirs " in
  7153. *" libgloss "*)
  7154. # Look for startup file, simulator library and maybe linker script.
  7155. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
  7156. # Look for libnosys.a in case the target needs it.
  7157. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
  7158. # Most targets have the linker script in the source directory.
  7159. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
  7160. ;;
  7161. esac
  7162. ;;
  7163. esac
  7164. ;;
  7165. esac
  7166. ;;
  7167. esac
  7168. case "$target" in
  7169. x86_64-*mingw* | *-w64-mingw*)
  7170. # MinGW-w64 does not use newlib, nor does it use winsup. It may,
  7171. # however, use a symlink named 'mingw' in ${prefix} .
  7172. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
  7173. ;;
  7174. *-mingw*)
  7175. # MinGW can't be handled as Cygwin above since it does not use newlib.
  7176. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include'
  7177. ;;
  7178. esac
  7179. # Allow the user to override the flags for
  7180. # our build compiler if desired.
  7181. if test x"${build}" = x"${host}" ; then
  7182. CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
  7183. CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
  7184. LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
  7185. fi
  7186. # On Canadian crosses, we'll be searching the right directories for
  7187. # the previously-installed cross compiler, so don't bother to add
  7188. # flags for directories within the install tree of the compiler
  7189. # being built; programs in there won't even run.
  7190. if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
  7191. # Search for pre-installed headers if nothing else fits.
  7192. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
  7193. fi
  7194. if test "x${use_gnu_ld}" = x &&
  7195. echo " ${configdirs} " | grep " ld " > /dev/null ; then
  7196. # Arrange for us to find uninstalled linker scripts.
  7197. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
  7198. fi
  7199. # Search for other target-specific linker scripts and such.
  7200. case "${target}" in
  7201. mep*)
  7202. FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
  7203. ;;
  7204. esac
  7205. # Makefile fragments.
  7206. for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
  7207. do
  7208. eval fragval=\$$frag
  7209. if test $fragval != /dev/null; then
  7210. eval $frag=${srcdir}/$fragval
  7211. fi
  7212. done
  7213. # Miscellanea: directories, flags, etc.
  7214. # Build module lists & subconfigure args.
  7215. # Host module lists & subconfigure args.
  7216. # Target module lists & subconfigure args.
  7217. # Build tools.
  7218. # Generate default definitions for YACC, M4, LEX and other programs that run
  7219. # on the build machine. These are used if the Makefile can't locate these
  7220. # programs in objdir.
  7221. MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
  7222. for ac_prog in 'bison -y' byacc yacc
  7223. do
  7224. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7225. set dummy $ac_prog; ac_word=$2
  7226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7227. $as_echo_n "checking for $ac_word... " >&6; }
  7228. if ${ac_cv_prog_YACC+:} false; then :
  7229. $as_echo_n "(cached) " >&6
  7230. else
  7231. if test -n "$YACC"; then
  7232. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  7233. else
  7234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7235. for as_dir in $PATH
  7236. do
  7237. IFS=$as_save_IFS
  7238. test -z "$as_dir" && as_dir=.
  7239. for ac_exec_ext in '' $ac_executable_extensions; do
  7240. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7241. ac_cv_prog_YACC="$ac_prog"
  7242. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7243. break 2
  7244. fi
  7245. done
  7246. done
  7247. IFS=$as_save_IFS
  7248. fi
  7249. fi
  7250. YACC=$ac_cv_prog_YACC
  7251. if test -n "$YACC"; then
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  7253. $as_echo "$YACC" >&6; }
  7254. else
  7255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7256. $as_echo "no" >&6; }
  7257. fi
  7258. test -n "$YACC" && break
  7259. done
  7260. test -n "$YACC" || YACC="$MISSING bison -y"
  7261. case " $build_configdirs " in
  7262. *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
  7263. esac
  7264. for ac_prog in bison
  7265. do
  7266. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7267. set dummy $ac_prog; ac_word=$2
  7268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7269. $as_echo_n "checking for $ac_word... " >&6; }
  7270. if ${ac_cv_prog_BISON+:} false; then :
  7271. $as_echo_n "(cached) " >&6
  7272. else
  7273. if test -n "$BISON"; then
  7274. ac_cv_prog_BISON="$BISON" # Let the user override the test.
  7275. else
  7276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7277. for as_dir in $PATH
  7278. do
  7279. IFS=$as_save_IFS
  7280. test -z "$as_dir" && as_dir=.
  7281. for ac_exec_ext in '' $ac_executable_extensions; do
  7282. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7283. ac_cv_prog_BISON="$ac_prog"
  7284. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7285. break 2
  7286. fi
  7287. done
  7288. done
  7289. IFS=$as_save_IFS
  7290. fi
  7291. fi
  7292. BISON=$ac_cv_prog_BISON
  7293. if test -n "$BISON"; then
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  7295. $as_echo "$BISON" >&6; }
  7296. else
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7298. $as_echo "no" >&6; }
  7299. fi
  7300. test -n "$BISON" && break
  7301. done
  7302. test -n "$BISON" || BISON="$MISSING bison"
  7303. case " $build_configdirs " in
  7304. *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
  7305. esac
  7306. for ac_prog in gm4 gnum4 m4
  7307. do
  7308. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7309. set dummy $ac_prog; ac_word=$2
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7311. $as_echo_n "checking for $ac_word... " >&6; }
  7312. if ${ac_cv_prog_M4+:} false; then :
  7313. $as_echo_n "(cached) " >&6
  7314. else
  7315. if test -n "$M4"; then
  7316. ac_cv_prog_M4="$M4" # Let the user override the test.
  7317. else
  7318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7319. for as_dir in $PATH
  7320. do
  7321. IFS=$as_save_IFS
  7322. test -z "$as_dir" && as_dir=.
  7323. for ac_exec_ext in '' $ac_executable_extensions; do
  7324. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7325. ac_cv_prog_M4="$ac_prog"
  7326. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7327. break 2
  7328. fi
  7329. done
  7330. done
  7331. IFS=$as_save_IFS
  7332. fi
  7333. fi
  7334. M4=$ac_cv_prog_M4
  7335. if test -n "$M4"; then
  7336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
  7337. $as_echo "$M4" >&6; }
  7338. else
  7339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7340. $as_echo "no" >&6; }
  7341. fi
  7342. test -n "$M4" && break
  7343. done
  7344. test -n "$M4" || M4="$MISSING m4"
  7345. case " $build_configdirs " in
  7346. *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
  7347. esac
  7348. for ac_prog in flex lex
  7349. do
  7350. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7351. set dummy $ac_prog; ac_word=$2
  7352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7353. $as_echo_n "checking for $ac_word... " >&6; }
  7354. if ${ac_cv_prog_LEX+:} false; then :
  7355. $as_echo_n "(cached) " >&6
  7356. else
  7357. if test -n "$LEX"; then
  7358. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  7359. else
  7360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7361. for as_dir in $PATH
  7362. do
  7363. IFS=$as_save_IFS
  7364. test -z "$as_dir" && as_dir=.
  7365. for ac_exec_ext in '' $ac_executable_extensions; do
  7366. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7367. ac_cv_prog_LEX="$ac_prog"
  7368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7369. break 2
  7370. fi
  7371. done
  7372. done
  7373. IFS=$as_save_IFS
  7374. fi
  7375. fi
  7376. LEX=$ac_cv_prog_LEX
  7377. if test -n "$LEX"; then
  7378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  7379. $as_echo "$LEX" >&6; }
  7380. else
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7382. $as_echo "no" >&6; }
  7383. fi
  7384. test -n "$LEX" && break
  7385. done
  7386. test -n "$LEX" || LEX="$MISSING flex"
  7387. case " $build_configdirs " in
  7388. *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
  7389. *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
  7390. esac
  7391. for ac_prog in flex
  7392. do
  7393. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7394. set dummy $ac_prog; ac_word=$2
  7395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7396. $as_echo_n "checking for $ac_word... " >&6; }
  7397. if ${ac_cv_prog_FLEX+:} false; then :
  7398. $as_echo_n "(cached) " >&6
  7399. else
  7400. if test -n "$FLEX"; then
  7401. ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
  7402. else
  7403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7404. for as_dir in $PATH
  7405. do
  7406. IFS=$as_save_IFS
  7407. test -z "$as_dir" && as_dir=.
  7408. for ac_exec_ext in '' $ac_executable_extensions; do
  7409. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7410. ac_cv_prog_FLEX="$ac_prog"
  7411. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7412. break 2
  7413. fi
  7414. done
  7415. done
  7416. IFS=$as_save_IFS
  7417. fi
  7418. fi
  7419. FLEX=$ac_cv_prog_FLEX
  7420. if test -n "$FLEX"; then
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  7422. $as_echo "$FLEX" >&6; }
  7423. else
  7424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7425. $as_echo "no" >&6; }
  7426. fi
  7427. test -n "$FLEX" && break
  7428. done
  7429. test -n "$FLEX" || FLEX="$MISSING flex"
  7430. case " $build_configdirs " in
  7431. *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
  7432. esac
  7433. for ac_prog in makeinfo
  7434. do
  7435. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7436. set dummy $ac_prog; ac_word=$2
  7437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7438. $as_echo_n "checking for $ac_word... " >&6; }
  7439. if ${ac_cv_prog_MAKEINFO+:} false; then :
  7440. $as_echo_n "(cached) " >&6
  7441. else
  7442. if test -n "$MAKEINFO"; then
  7443. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  7444. else
  7445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7446. for as_dir in $PATH
  7447. do
  7448. IFS=$as_save_IFS
  7449. test -z "$as_dir" && as_dir=.
  7450. for ac_exec_ext in '' $ac_executable_extensions; do
  7451. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7452. ac_cv_prog_MAKEINFO="$ac_prog"
  7453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7454. break 2
  7455. fi
  7456. done
  7457. done
  7458. IFS=$as_save_IFS
  7459. fi
  7460. fi
  7461. MAKEINFO=$ac_cv_prog_MAKEINFO
  7462. if test -n "$MAKEINFO"; then
  7463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  7464. $as_echo "$MAKEINFO" >&6; }
  7465. else
  7466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7467. $as_echo "no" >&6; }
  7468. fi
  7469. test -n "$MAKEINFO" && break
  7470. done
  7471. test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
  7472. case " $build_configdirs " in
  7473. *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
  7474. *)
  7475. # For an installed makeinfo, we require it to be from texinfo 4.7 or
  7476. # higher, else we use the "missing" dummy.
  7477. if ${MAKEINFO} --version \
  7478. | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
  7479. :
  7480. else
  7481. MAKEINFO="$MISSING makeinfo"
  7482. fi
  7483. ;;
  7484. esac
  7485. # FIXME: expect and dejagnu may become build tools?
  7486. for ac_prog in expect
  7487. do
  7488. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7489. set dummy $ac_prog; ac_word=$2
  7490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7491. $as_echo_n "checking for $ac_word... " >&6; }
  7492. if ${ac_cv_prog_EXPECT+:} false; then :
  7493. $as_echo_n "(cached) " >&6
  7494. else
  7495. if test -n "$EXPECT"; then
  7496. ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
  7497. else
  7498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7499. for as_dir in $PATH
  7500. do
  7501. IFS=$as_save_IFS
  7502. test -z "$as_dir" && as_dir=.
  7503. for ac_exec_ext in '' $ac_executable_extensions; do
  7504. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7505. ac_cv_prog_EXPECT="$ac_prog"
  7506. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7507. break 2
  7508. fi
  7509. done
  7510. done
  7511. IFS=$as_save_IFS
  7512. fi
  7513. fi
  7514. EXPECT=$ac_cv_prog_EXPECT
  7515. if test -n "$EXPECT"; then
  7516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
  7517. $as_echo "$EXPECT" >&6; }
  7518. else
  7519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7520. $as_echo "no" >&6; }
  7521. fi
  7522. test -n "$EXPECT" && break
  7523. done
  7524. test -n "$EXPECT" || EXPECT="expect"
  7525. case " $configdirs " in
  7526. *" expect "*)
  7527. test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
  7528. ;;
  7529. esac
  7530. for ac_prog in runtest
  7531. do
  7532. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7533. set dummy $ac_prog; ac_word=$2
  7534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7535. $as_echo_n "checking for $ac_word... " >&6; }
  7536. if ${ac_cv_prog_RUNTEST+:} false; then :
  7537. $as_echo_n "(cached) " >&6
  7538. else
  7539. if test -n "$RUNTEST"; then
  7540. ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
  7541. else
  7542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7543. for as_dir in $PATH
  7544. do
  7545. IFS=$as_save_IFS
  7546. test -z "$as_dir" && as_dir=.
  7547. for ac_exec_ext in '' $ac_executable_extensions; do
  7548. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7549. ac_cv_prog_RUNTEST="$ac_prog"
  7550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7551. break 2
  7552. fi
  7553. done
  7554. done
  7555. IFS=$as_save_IFS
  7556. fi
  7557. fi
  7558. RUNTEST=$ac_cv_prog_RUNTEST
  7559. if test -n "$RUNTEST"; then
  7560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
  7561. $as_echo "$RUNTEST" >&6; }
  7562. else
  7563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7564. $as_echo "no" >&6; }
  7565. fi
  7566. test -n "$RUNTEST" && break
  7567. done
  7568. test -n "$RUNTEST" || RUNTEST="runtest"
  7569. case " $configdirs " in
  7570. *" dejagnu "*)
  7571. test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
  7572. ;;
  7573. esac
  7574. # Host tools.
  7575. ncn_tool_prefix=
  7576. test -n "$host_alias" && ncn_tool_prefix=$host_alias-
  7577. ncn_target_tool_prefix=
  7578. test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
  7579. if test -n "$AR"; then
  7580. ac_cv_prog_AR=$AR
  7581. elif test -n "$ac_cv_prog_AR"; then
  7582. AR=$ac_cv_prog_AR
  7583. fi
  7584. if test -n "$ac_cv_prog_AR"; then
  7585. for ncn_progname in ar; do
  7586. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7587. set dummy ${ncn_progname}; ac_word=$2
  7588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7589. $as_echo_n "checking for $ac_word... " >&6; }
  7590. if ${ac_cv_prog_AR+:} false; then :
  7591. $as_echo_n "(cached) " >&6
  7592. else
  7593. if test -n "$AR"; then
  7594. ac_cv_prog_AR="$AR" # Let the user override the test.
  7595. else
  7596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7597. for as_dir in $PATH
  7598. do
  7599. IFS=$as_save_IFS
  7600. test -z "$as_dir" && as_dir=.
  7601. for ac_exec_ext in '' $ac_executable_extensions; do
  7602. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7603. ac_cv_prog_AR="${ncn_progname}"
  7604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7605. break 2
  7606. fi
  7607. done
  7608. done
  7609. IFS=$as_save_IFS
  7610. fi
  7611. fi
  7612. AR=$ac_cv_prog_AR
  7613. if test -n "$AR"; then
  7614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7615. $as_echo "$AR" >&6; }
  7616. else
  7617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7618. $as_echo "no" >&6; }
  7619. fi
  7620. done
  7621. fi
  7622. for ncn_progname in ar; do
  7623. if test -n "$ncn_tool_prefix"; then
  7624. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7625. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7627. $as_echo_n "checking for $ac_word... " >&6; }
  7628. if ${ac_cv_prog_AR+:} false; then :
  7629. $as_echo_n "(cached) " >&6
  7630. else
  7631. if test -n "$AR"; then
  7632. ac_cv_prog_AR="$AR" # Let the user override the test.
  7633. else
  7634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7635. for as_dir in $PATH
  7636. do
  7637. IFS=$as_save_IFS
  7638. test -z "$as_dir" && as_dir=.
  7639. for ac_exec_ext in '' $ac_executable_extensions; do
  7640. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7641. ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
  7642. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7643. break 2
  7644. fi
  7645. done
  7646. done
  7647. IFS=$as_save_IFS
  7648. fi
  7649. fi
  7650. AR=$ac_cv_prog_AR
  7651. if test -n "$AR"; then
  7652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7653. $as_echo "$AR" >&6; }
  7654. else
  7655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7656. $as_echo "no" >&6; }
  7657. fi
  7658. fi
  7659. if test -z "$ac_cv_prog_AR" && test $build = $host ; then
  7660. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7661. set dummy ${ncn_progname}; ac_word=$2
  7662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7663. $as_echo_n "checking for $ac_word... " >&6; }
  7664. if ${ac_cv_prog_AR+:} false; then :
  7665. $as_echo_n "(cached) " >&6
  7666. else
  7667. if test -n "$AR"; then
  7668. ac_cv_prog_AR="$AR" # Let the user override the test.
  7669. else
  7670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7671. for as_dir in $PATH
  7672. do
  7673. IFS=$as_save_IFS
  7674. test -z "$as_dir" && as_dir=.
  7675. for ac_exec_ext in '' $ac_executable_extensions; do
  7676. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7677. ac_cv_prog_AR="${ncn_progname}"
  7678. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7679. break 2
  7680. fi
  7681. done
  7682. done
  7683. IFS=$as_save_IFS
  7684. fi
  7685. fi
  7686. AR=$ac_cv_prog_AR
  7687. if test -n "$AR"; then
  7688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7689. $as_echo "$AR" >&6; }
  7690. else
  7691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7692. $as_echo "no" >&6; }
  7693. fi
  7694. fi
  7695. test -n "$ac_cv_prog_AR" && break
  7696. done
  7697. if test -z "$ac_cv_prog_AR" ; then
  7698. set dummy ar
  7699. if test $build = $host ; then
  7700. AR="$2"
  7701. else
  7702. AR="${ncn_tool_prefix}$2"
  7703. fi
  7704. fi
  7705. if test -n "$AS"; then
  7706. ac_cv_prog_AS=$AS
  7707. elif test -n "$ac_cv_prog_AS"; then
  7708. AS=$ac_cv_prog_AS
  7709. fi
  7710. if test -n "$ac_cv_prog_AS"; then
  7711. for ncn_progname in as; do
  7712. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7713. set dummy ${ncn_progname}; ac_word=$2
  7714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7715. $as_echo_n "checking for $ac_word... " >&6; }
  7716. if ${ac_cv_prog_AS+:} false; then :
  7717. $as_echo_n "(cached) " >&6
  7718. else
  7719. if test -n "$AS"; then
  7720. ac_cv_prog_AS="$AS" # Let the user override the test.
  7721. else
  7722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7723. for as_dir in $PATH
  7724. do
  7725. IFS=$as_save_IFS
  7726. test -z "$as_dir" && as_dir=.
  7727. for ac_exec_ext in '' $ac_executable_extensions; do
  7728. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7729. ac_cv_prog_AS="${ncn_progname}"
  7730. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7731. break 2
  7732. fi
  7733. done
  7734. done
  7735. IFS=$as_save_IFS
  7736. fi
  7737. fi
  7738. AS=$ac_cv_prog_AS
  7739. if test -n "$AS"; then
  7740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7741. $as_echo "$AS" >&6; }
  7742. else
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7744. $as_echo "no" >&6; }
  7745. fi
  7746. done
  7747. fi
  7748. for ncn_progname in as; do
  7749. if test -n "$ncn_tool_prefix"; then
  7750. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7751. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7753. $as_echo_n "checking for $ac_word... " >&6; }
  7754. if ${ac_cv_prog_AS+:} false; then :
  7755. $as_echo_n "(cached) " >&6
  7756. else
  7757. if test -n "$AS"; then
  7758. ac_cv_prog_AS="$AS" # Let the user override the test.
  7759. else
  7760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7761. for as_dir in $PATH
  7762. do
  7763. IFS=$as_save_IFS
  7764. test -z "$as_dir" && as_dir=.
  7765. for ac_exec_ext in '' $ac_executable_extensions; do
  7766. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7767. ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
  7768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7769. break 2
  7770. fi
  7771. done
  7772. done
  7773. IFS=$as_save_IFS
  7774. fi
  7775. fi
  7776. AS=$ac_cv_prog_AS
  7777. if test -n "$AS"; then
  7778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7779. $as_echo "$AS" >&6; }
  7780. else
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7782. $as_echo "no" >&6; }
  7783. fi
  7784. fi
  7785. if test -z "$ac_cv_prog_AS" && test $build = $host ; then
  7786. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7787. set dummy ${ncn_progname}; ac_word=$2
  7788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7789. $as_echo_n "checking for $ac_word... " >&6; }
  7790. if ${ac_cv_prog_AS+:} false; then :
  7791. $as_echo_n "(cached) " >&6
  7792. else
  7793. if test -n "$AS"; then
  7794. ac_cv_prog_AS="$AS" # Let the user override the test.
  7795. else
  7796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7797. for as_dir in $PATH
  7798. do
  7799. IFS=$as_save_IFS
  7800. test -z "$as_dir" && as_dir=.
  7801. for ac_exec_ext in '' $ac_executable_extensions; do
  7802. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7803. ac_cv_prog_AS="${ncn_progname}"
  7804. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7805. break 2
  7806. fi
  7807. done
  7808. done
  7809. IFS=$as_save_IFS
  7810. fi
  7811. fi
  7812. AS=$ac_cv_prog_AS
  7813. if test -n "$AS"; then
  7814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7815. $as_echo "$AS" >&6; }
  7816. else
  7817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7818. $as_echo "no" >&6; }
  7819. fi
  7820. fi
  7821. test -n "$ac_cv_prog_AS" && break
  7822. done
  7823. if test -z "$ac_cv_prog_AS" ; then
  7824. set dummy as
  7825. if test $build = $host ; then
  7826. AS="$2"
  7827. else
  7828. AS="${ncn_tool_prefix}$2"
  7829. fi
  7830. fi
  7831. if test -n "$DLLTOOL"; then
  7832. ac_cv_prog_DLLTOOL=$DLLTOOL
  7833. elif test -n "$ac_cv_prog_DLLTOOL"; then
  7834. DLLTOOL=$ac_cv_prog_DLLTOOL
  7835. fi
  7836. if test -n "$ac_cv_prog_DLLTOOL"; then
  7837. for ncn_progname in dlltool; do
  7838. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7839. set dummy ${ncn_progname}; ac_word=$2
  7840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7841. $as_echo_n "checking for $ac_word... " >&6; }
  7842. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7843. $as_echo_n "(cached) " >&6
  7844. else
  7845. if test -n "$DLLTOOL"; then
  7846. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7847. else
  7848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7849. for as_dir in $PATH
  7850. do
  7851. IFS=$as_save_IFS
  7852. test -z "$as_dir" && as_dir=.
  7853. for ac_exec_ext in '' $ac_executable_extensions; do
  7854. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7855. ac_cv_prog_DLLTOOL="${ncn_progname}"
  7856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7857. break 2
  7858. fi
  7859. done
  7860. done
  7861. IFS=$as_save_IFS
  7862. fi
  7863. fi
  7864. DLLTOOL=$ac_cv_prog_DLLTOOL
  7865. if test -n "$DLLTOOL"; then
  7866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7867. $as_echo "$DLLTOOL" >&6; }
  7868. else
  7869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7870. $as_echo "no" >&6; }
  7871. fi
  7872. done
  7873. fi
  7874. for ncn_progname in dlltool; do
  7875. if test -n "$ncn_tool_prefix"; then
  7876. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7877. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7879. $as_echo_n "checking for $ac_word... " >&6; }
  7880. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7881. $as_echo_n "(cached) " >&6
  7882. else
  7883. if test -n "$DLLTOOL"; then
  7884. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7885. else
  7886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7887. for as_dir in $PATH
  7888. do
  7889. IFS=$as_save_IFS
  7890. test -z "$as_dir" && as_dir=.
  7891. for ac_exec_ext in '' $ac_executable_extensions; do
  7892. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7893. ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
  7894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7895. break 2
  7896. fi
  7897. done
  7898. done
  7899. IFS=$as_save_IFS
  7900. fi
  7901. fi
  7902. DLLTOOL=$ac_cv_prog_DLLTOOL
  7903. if test -n "$DLLTOOL"; then
  7904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7905. $as_echo "$DLLTOOL" >&6; }
  7906. else
  7907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7908. $as_echo "no" >&6; }
  7909. fi
  7910. fi
  7911. if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
  7912. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7913. set dummy ${ncn_progname}; ac_word=$2
  7914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7915. $as_echo_n "checking for $ac_word... " >&6; }
  7916. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7917. $as_echo_n "(cached) " >&6
  7918. else
  7919. if test -n "$DLLTOOL"; then
  7920. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7921. else
  7922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7923. for as_dir in $PATH
  7924. do
  7925. IFS=$as_save_IFS
  7926. test -z "$as_dir" && as_dir=.
  7927. for ac_exec_ext in '' $ac_executable_extensions; do
  7928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7929. ac_cv_prog_DLLTOOL="${ncn_progname}"
  7930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7931. break 2
  7932. fi
  7933. done
  7934. done
  7935. IFS=$as_save_IFS
  7936. fi
  7937. fi
  7938. DLLTOOL=$ac_cv_prog_DLLTOOL
  7939. if test -n "$DLLTOOL"; then
  7940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7941. $as_echo "$DLLTOOL" >&6; }
  7942. else
  7943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7944. $as_echo "no" >&6; }
  7945. fi
  7946. fi
  7947. test -n "$ac_cv_prog_DLLTOOL" && break
  7948. done
  7949. if test -z "$ac_cv_prog_DLLTOOL" ; then
  7950. set dummy dlltool
  7951. if test $build = $host ; then
  7952. DLLTOOL="$2"
  7953. else
  7954. DLLTOOL="${ncn_tool_prefix}$2"
  7955. fi
  7956. fi
  7957. if test -n "$LD"; then
  7958. ac_cv_prog_LD=$LD
  7959. elif test -n "$ac_cv_prog_LD"; then
  7960. LD=$ac_cv_prog_LD
  7961. fi
  7962. if test -n "$ac_cv_prog_LD"; then
  7963. for ncn_progname in ld; do
  7964. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7965. set dummy ${ncn_progname}; ac_word=$2
  7966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7967. $as_echo_n "checking for $ac_word... " >&6; }
  7968. if ${ac_cv_prog_LD+:} false; then :
  7969. $as_echo_n "(cached) " >&6
  7970. else
  7971. if test -n "$LD"; then
  7972. ac_cv_prog_LD="$LD" # Let the user override the test.
  7973. else
  7974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7975. for as_dir in $PATH
  7976. do
  7977. IFS=$as_save_IFS
  7978. test -z "$as_dir" && as_dir=.
  7979. for ac_exec_ext in '' $ac_executable_extensions; do
  7980. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7981. ac_cv_prog_LD="${ncn_progname}"
  7982. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7983. break 2
  7984. fi
  7985. done
  7986. done
  7987. IFS=$as_save_IFS
  7988. fi
  7989. fi
  7990. LD=$ac_cv_prog_LD
  7991. if test -n "$LD"; then
  7992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7993. $as_echo "$LD" >&6; }
  7994. else
  7995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7996. $as_echo "no" >&6; }
  7997. fi
  7998. done
  7999. fi
  8000. for ncn_progname in ld; do
  8001. if test -n "$ncn_tool_prefix"; then
  8002. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8003. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8005. $as_echo_n "checking for $ac_word... " >&6; }
  8006. if ${ac_cv_prog_LD+:} false; then :
  8007. $as_echo_n "(cached) " >&6
  8008. else
  8009. if test -n "$LD"; then
  8010. ac_cv_prog_LD="$LD" # Let the user override the test.
  8011. else
  8012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8013. for as_dir in $PATH
  8014. do
  8015. IFS=$as_save_IFS
  8016. test -z "$as_dir" && as_dir=.
  8017. for ac_exec_ext in '' $ac_executable_extensions; do
  8018. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8019. ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
  8020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8021. break 2
  8022. fi
  8023. done
  8024. done
  8025. IFS=$as_save_IFS
  8026. fi
  8027. fi
  8028. LD=$ac_cv_prog_LD
  8029. if test -n "$LD"; then
  8030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8031. $as_echo "$LD" >&6; }
  8032. else
  8033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8034. $as_echo "no" >&6; }
  8035. fi
  8036. fi
  8037. if test -z "$ac_cv_prog_LD" && test $build = $host ; then
  8038. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8039. set dummy ${ncn_progname}; ac_word=$2
  8040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8041. $as_echo_n "checking for $ac_word... " >&6; }
  8042. if ${ac_cv_prog_LD+:} false; then :
  8043. $as_echo_n "(cached) " >&6
  8044. else
  8045. if test -n "$LD"; then
  8046. ac_cv_prog_LD="$LD" # Let the user override the test.
  8047. else
  8048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8049. for as_dir in $PATH
  8050. do
  8051. IFS=$as_save_IFS
  8052. test -z "$as_dir" && as_dir=.
  8053. for ac_exec_ext in '' $ac_executable_extensions; do
  8054. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8055. ac_cv_prog_LD="${ncn_progname}"
  8056. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8057. break 2
  8058. fi
  8059. done
  8060. done
  8061. IFS=$as_save_IFS
  8062. fi
  8063. fi
  8064. LD=$ac_cv_prog_LD
  8065. if test -n "$LD"; then
  8066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8067. $as_echo "$LD" >&6; }
  8068. else
  8069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8070. $as_echo "no" >&6; }
  8071. fi
  8072. fi
  8073. test -n "$ac_cv_prog_LD" && break
  8074. done
  8075. if test -z "$ac_cv_prog_LD" ; then
  8076. set dummy ld
  8077. if test $build = $host ; then
  8078. LD="$2"
  8079. else
  8080. LD="${ncn_tool_prefix}$2"
  8081. fi
  8082. fi
  8083. if test -n "$LIPO"; then
  8084. ac_cv_prog_LIPO=$LIPO
  8085. elif test -n "$ac_cv_prog_LIPO"; then
  8086. LIPO=$ac_cv_prog_LIPO
  8087. fi
  8088. if test -n "$ac_cv_prog_LIPO"; then
  8089. for ncn_progname in lipo; do
  8090. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8091. set dummy ${ncn_progname}; ac_word=$2
  8092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8093. $as_echo_n "checking for $ac_word... " >&6; }
  8094. if ${ac_cv_prog_LIPO+:} false; then :
  8095. $as_echo_n "(cached) " >&6
  8096. else
  8097. if test -n "$LIPO"; then
  8098. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8099. else
  8100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8101. for as_dir in $PATH
  8102. do
  8103. IFS=$as_save_IFS
  8104. test -z "$as_dir" && as_dir=.
  8105. for ac_exec_ext in '' $ac_executable_extensions; do
  8106. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8107. ac_cv_prog_LIPO="${ncn_progname}"
  8108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8109. break 2
  8110. fi
  8111. done
  8112. done
  8113. IFS=$as_save_IFS
  8114. fi
  8115. fi
  8116. LIPO=$ac_cv_prog_LIPO
  8117. if test -n "$LIPO"; then
  8118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8119. $as_echo "$LIPO" >&6; }
  8120. else
  8121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8122. $as_echo "no" >&6; }
  8123. fi
  8124. done
  8125. fi
  8126. for ncn_progname in lipo; do
  8127. if test -n "$ncn_tool_prefix"; then
  8128. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8129. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8131. $as_echo_n "checking for $ac_word... " >&6; }
  8132. if ${ac_cv_prog_LIPO+:} false; then :
  8133. $as_echo_n "(cached) " >&6
  8134. else
  8135. if test -n "$LIPO"; then
  8136. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8137. else
  8138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8139. for as_dir in $PATH
  8140. do
  8141. IFS=$as_save_IFS
  8142. test -z "$as_dir" && as_dir=.
  8143. for ac_exec_ext in '' $ac_executable_extensions; do
  8144. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8145. ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
  8146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8147. break 2
  8148. fi
  8149. done
  8150. done
  8151. IFS=$as_save_IFS
  8152. fi
  8153. fi
  8154. LIPO=$ac_cv_prog_LIPO
  8155. if test -n "$LIPO"; then
  8156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8157. $as_echo "$LIPO" >&6; }
  8158. else
  8159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8160. $as_echo "no" >&6; }
  8161. fi
  8162. fi
  8163. if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
  8164. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8165. set dummy ${ncn_progname}; ac_word=$2
  8166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8167. $as_echo_n "checking for $ac_word... " >&6; }
  8168. if ${ac_cv_prog_LIPO+:} false; then :
  8169. $as_echo_n "(cached) " >&6
  8170. else
  8171. if test -n "$LIPO"; then
  8172. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8173. else
  8174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8175. for as_dir in $PATH
  8176. do
  8177. IFS=$as_save_IFS
  8178. test -z "$as_dir" && as_dir=.
  8179. for ac_exec_ext in '' $ac_executable_extensions; do
  8180. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8181. ac_cv_prog_LIPO="${ncn_progname}"
  8182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8183. break 2
  8184. fi
  8185. done
  8186. done
  8187. IFS=$as_save_IFS
  8188. fi
  8189. fi
  8190. LIPO=$ac_cv_prog_LIPO
  8191. if test -n "$LIPO"; then
  8192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8193. $as_echo "$LIPO" >&6; }
  8194. else
  8195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8196. $as_echo "no" >&6; }
  8197. fi
  8198. fi
  8199. test -n "$ac_cv_prog_LIPO" && break
  8200. done
  8201. if test -z "$ac_cv_prog_LIPO" ; then
  8202. set dummy lipo
  8203. if test $build = $host ; then
  8204. LIPO="$2"
  8205. else
  8206. LIPO="${ncn_tool_prefix}$2"
  8207. fi
  8208. fi
  8209. if test -n "$NM"; then
  8210. ac_cv_prog_NM=$NM
  8211. elif test -n "$ac_cv_prog_NM"; then
  8212. NM=$ac_cv_prog_NM
  8213. fi
  8214. if test -n "$ac_cv_prog_NM"; then
  8215. for ncn_progname in nm; do
  8216. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8217. set dummy ${ncn_progname}; ac_word=$2
  8218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8219. $as_echo_n "checking for $ac_word... " >&6; }
  8220. if ${ac_cv_prog_NM+:} false; then :
  8221. $as_echo_n "(cached) " >&6
  8222. else
  8223. if test -n "$NM"; then
  8224. ac_cv_prog_NM="$NM" # Let the user override the test.
  8225. else
  8226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8227. for as_dir in $PATH
  8228. do
  8229. IFS=$as_save_IFS
  8230. test -z "$as_dir" && as_dir=.
  8231. for ac_exec_ext in '' $ac_executable_extensions; do
  8232. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8233. ac_cv_prog_NM="${ncn_progname}"
  8234. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8235. break 2
  8236. fi
  8237. done
  8238. done
  8239. IFS=$as_save_IFS
  8240. fi
  8241. fi
  8242. NM=$ac_cv_prog_NM
  8243. if test -n "$NM"; then
  8244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  8245. $as_echo "$NM" >&6; }
  8246. else
  8247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8248. $as_echo "no" >&6; }
  8249. fi
  8250. done
  8251. fi
  8252. for ncn_progname in nm; do
  8253. if test -n "$ncn_tool_prefix"; then
  8254. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8255. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8257. $as_echo_n "checking for $ac_word... " >&6; }
  8258. if ${ac_cv_prog_NM+:} false; then :
  8259. $as_echo_n "(cached) " >&6
  8260. else
  8261. if test -n "$NM"; then
  8262. ac_cv_prog_NM="$NM" # Let the user override the test.
  8263. else
  8264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8265. for as_dir in $PATH
  8266. do
  8267. IFS=$as_save_IFS
  8268. test -z "$as_dir" && as_dir=.
  8269. for ac_exec_ext in '' $ac_executable_extensions; do
  8270. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8271. ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
  8272. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8273. break 2
  8274. fi
  8275. done
  8276. done
  8277. IFS=$as_save_IFS
  8278. fi
  8279. fi
  8280. NM=$ac_cv_prog_NM
  8281. if test -n "$NM"; then
  8282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  8283. $as_echo "$NM" >&6; }
  8284. else
  8285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8286. $as_echo "no" >&6; }
  8287. fi
  8288. fi
  8289. if test -z "$ac_cv_prog_NM" && test $build = $host ; then
  8290. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8291. set dummy ${ncn_progname}; ac_word=$2
  8292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8293. $as_echo_n "checking for $ac_word... " >&6; }
  8294. if ${ac_cv_prog_NM+:} false; then :
  8295. $as_echo_n "(cached) " >&6
  8296. else
  8297. if test -n "$NM"; then
  8298. ac_cv_prog_NM="$NM" # Let the user override the test.
  8299. else
  8300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8301. for as_dir in $PATH
  8302. do
  8303. IFS=$as_save_IFS
  8304. test -z "$as_dir" && as_dir=.
  8305. for ac_exec_ext in '' $ac_executable_extensions; do
  8306. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8307. ac_cv_prog_NM="${ncn_progname}"
  8308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8309. break 2
  8310. fi
  8311. done
  8312. done
  8313. IFS=$as_save_IFS
  8314. fi
  8315. fi
  8316. NM=$ac_cv_prog_NM
  8317. if test -n "$NM"; then
  8318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  8319. $as_echo "$NM" >&6; }
  8320. else
  8321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8322. $as_echo "no" >&6; }
  8323. fi
  8324. fi
  8325. test -n "$ac_cv_prog_NM" && break
  8326. done
  8327. if test -z "$ac_cv_prog_NM" ; then
  8328. set dummy nm
  8329. if test $build = $host ; then
  8330. NM="$2"
  8331. else
  8332. NM="${ncn_tool_prefix}$2"
  8333. fi
  8334. fi
  8335. if test -n "$RANLIB"; then
  8336. ac_cv_prog_RANLIB=$RANLIB
  8337. elif test -n "$ac_cv_prog_RANLIB"; then
  8338. RANLIB=$ac_cv_prog_RANLIB
  8339. fi
  8340. if test -n "$ac_cv_prog_RANLIB"; then
  8341. for ncn_progname in ranlib; do
  8342. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8343. set dummy ${ncn_progname}; ac_word=$2
  8344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8345. $as_echo_n "checking for $ac_word... " >&6; }
  8346. if ${ac_cv_prog_RANLIB+:} false; then :
  8347. $as_echo_n "(cached) " >&6
  8348. else
  8349. if test -n "$RANLIB"; then
  8350. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8351. else
  8352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8353. for as_dir in $PATH
  8354. do
  8355. IFS=$as_save_IFS
  8356. test -z "$as_dir" && as_dir=.
  8357. for ac_exec_ext in '' $ac_executable_extensions; do
  8358. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8359. ac_cv_prog_RANLIB="${ncn_progname}"
  8360. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8361. break 2
  8362. fi
  8363. done
  8364. done
  8365. IFS=$as_save_IFS
  8366. fi
  8367. fi
  8368. RANLIB=$ac_cv_prog_RANLIB
  8369. if test -n "$RANLIB"; then
  8370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8371. $as_echo "$RANLIB" >&6; }
  8372. else
  8373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8374. $as_echo "no" >&6; }
  8375. fi
  8376. done
  8377. fi
  8378. for ncn_progname in ranlib; do
  8379. if test -n "$ncn_tool_prefix"; then
  8380. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8381. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8383. $as_echo_n "checking for $ac_word... " >&6; }
  8384. if ${ac_cv_prog_RANLIB+:} false; then :
  8385. $as_echo_n "(cached) " >&6
  8386. else
  8387. if test -n "$RANLIB"; then
  8388. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8389. else
  8390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8391. for as_dir in $PATH
  8392. do
  8393. IFS=$as_save_IFS
  8394. test -z "$as_dir" && as_dir=.
  8395. for ac_exec_ext in '' $ac_executable_extensions; do
  8396. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8397. ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
  8398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8399. break 2
  8400. fi
  8401. done
  8402. done
  8403. IFS=$as_save_IFS
  8404. fi
  8405. fi
  8406. RANLIB=$ac_cv_prog_RANLIB
  8407. if test -n "$RANLIB"; then
  8408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8409. $as_echo "$RANLIB" >&6; }
  8410. else
  8411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8412. $as_echo "no" >&6; }
  8413. fi
  8414. fi
  8415. if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
  8416. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8417. set dummy ${ncn_progname}; ac_word=$2
  8418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8419. $as_echo_n "checking for $ac_word... " >&6; }
  8420. if ${ac_cv_prog_RANLIB+:} false; then :
  8421. $as_echo_n "(cached) " >&6
  8422. else
  8423. if test -n "$RANLIB"; then
  8424. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8425. else
  8426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8427. for as_dir in $PATH
  8428. do
  8429. IFS=$as_save_IFS
  8430. test -z "$as_dir" && as_dir=.
  8431. for ac_exec_ext in '' $ac_executable_extensions; do
  8432. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8433. ac_cv_prog_RANLIB="${ncn_progname}"
  8434. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8435. break 2
  8436. fi
  8437. done
  8438. done
  8439. IFS=$as_save_IFS
  8440. fi
  8441. fi
  8442. RANLIB=$ac_cv_prog_RANLIB
  8443. if test -n "$RANLIB"; then
  8444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8445. $as_echo "$RANLIB" >&6; }
  8446. else
  8447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8448. $as_echo "no" >&6; }
  8449. fi
  8450. fi
  8451. test -n "$ac_cv_prog_RANLIB" && break
  8452. done
  8453. if test -z "$ac_cv_prog_RANLIB" ; then
  8454. RANLIB="true"
  8455. fi
  8456. if test -n "$STRIP"; then
  8457. ac_cv_prog_STRIP=$STRIP
  8458. elif test -n "$ac_cv_prog_STRIP"; then
  8459. STRIP=$ac_cv_prog_STRIP
  8460. fi
  8461. if test -n "$ac_cv_prog_STRIP"; then
  8462. for ncn_progname in strip; do
  8463. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8464. set dummy ${ncn_progname}; ac_word=$2
  8465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8466. $as_echo_n "checking for $ac_word... " >&6; }
  8467. if ${ac_cv_prog_STRIP+:} false; then :
  8468. $as_echo_n "(cached) " >&6
  8469. else
  8470. if test -n "$STRIP"; then
  8471. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8472. else
  8473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8474. for as_dir in $PATH
  8475. do
  8476. IFS=$as_save_IFS
  8477. test -z "$as_dir" && as_dir=.
  8478. for ac_exec_ext in '' $ac_executable_extensions; do
  8479. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8480. ac_cv_prog_STRIP="${ncn_progname}"
  8481. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8482. break 2
  8483. fi
  8484. done
  8485. done
  8486. IFS=$as_save_IFS
  8487. fi
  8488. fi
  8489. STRIP=$ac_cv_prog_STRIP
  8490. if test -n "$STRIP"; then
  8491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8492. $as_echo "$STRIP" >&6; }
  8493. else
  8494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8495. $as_echo "no" >&6; }
  8496. fi
  8497. done
  8498. fi
  8499. for ncn_progname in strip; do
  8500. if test -n "$ncn_tool_prefix"; then
  8501. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8502. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8504. $as_echo_n "checking for $ac_word... " >&6; }
  8505. if ${ac_cv_prog_STRIP+:} false; then :
  8506. $as_echo_n "(cached) " >&6
  8507. else
  8508. if test -n "$STRIP"; then
  8509. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8510. else
  8511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8512. for as_dir in $PATH
  8513. do
  8514. IFS=$as_save_IFS
  8515. test -z "$as_dir" && as_dir=.
  8516. for ac_exec_ext in '' $ac_executable_extensions; do
  8517. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8518. ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
  8519. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8520. break 2
  8521. fi
  8522. done
  8523. done
  8524. IFS=$as_save_IFS
  8525. fi
  8526. fi
  8527. STRIP=$ac_cv_prog_STRIP
  8528. if test -n "$STRIP"; then
  8529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8530. $as_echo "$STRIP" >&6; }
  8531. else
  8532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8533. $as_echo "no" >&6; }
  8534. fi
  8535. fi
  8536. if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
  8537. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8538. set dummy ${ncn_progname}; ac_word=$2
  8539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8540. $as_echo_n "checking for $ac_word... " >&6; }
  8541. if ${ac_cv_prog_STRIP+:} false; then :
  8542. $as_echo_n "(cached) " >&6
  8543. else
  8544. if test -n "$STRIP"; then
  8545. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8546. else
  8547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8548. for as_dir in $PATH
  8549. do
  8550. IFS=$as_save_IFS
  8551. test -z "$as_dir" && as_dir=.
  8552. for ac_exec_ext in '' $ac_executable_extensions; do
  8553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8554. ac_cv_prog_STRIP="${ncn_progname}"
  8555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8556. break 2
  8557. fi
  8558. done
  8559. done
  8560. IFS=$as_save_IFS
  8561. fi
  8562. fi
  8563. STRIP=$ac_cv_prog_STRIP
  8564. if test -n "$STRIP"; then
  8565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8566. $as_echo "$STRIP" >&6; }
  8567. else
  8568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8569. $as_echo "no" >&6; }
  8570. fi
  8571. fi
  8572. test -n "$ac_cv_prog_STRIP" && break
  8573. done
  8574. if test -z "$ac_cv_prog_STRIP" ; then
  8575. STRIP="true"
  8576. fi
  8577. if test -n "$WINDRES"; then
  8578. ac_cv_prog_WINDRES=$WINDRES
  8579. elif test -n "$ac_cv_prog_WINDRES"; then
  8580. WINDRES=$ac_cv_prog_WINDRES
  8581. fi
  8582. if test -n "$ac_cv_prog_WINDRES"; then
  8583. for ncn_progname in windres; do
  8584. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8585. set dummy ${ncn_progname}; ac_word=$2
  8586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8587. $as_echo_n "checking for $ac_word... " >&6; }
  8588. if ${ac_cv_prog_WINDRES+:} false; then :
  8589. $as_echo_n "(cached) " >&6
  8590. else
  8591. if test -n "$WINDRES"; then
  8592. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8593. else
  8594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8595. for as_dir in $PATH
  8596. do
  8597. IFS=$as_save_IFS
  8598. test -z "$as_dir" && as_dir=.
  8599. for ac_exec_ext in '' $ac_executable_extensions; do
  8600. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8601. ac_cv_prog_WINDRES="${ncn_progname}"
  8602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8603. break 2
  8604. fi
  8605. done
  8606. done
  8607. IFS=$as_save_IFS
  8608. fi
  8609. fi
  8610. WINDRES=$ac_cv_prog_WINDRES
  8611. if test -n "$WINDRES"; then
  8612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8613. $as_echo "$WINDRES" >&6; }
  8614. else
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8616. $as_echo "no" >&6; }
  8617. fi
  8618. done
  8619. fi
  8620. for ncn_progname in windres; do
  8621. if test -n "$ncn_tool_prefix"; then
  8622. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8623. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8625. $as_echo_n "checking for $ac_word... " >&6; }
  8626. if ${ac_cv_prog_WINDRES+:} false; then :
  8627. $as_echo_n "(cached) " >&6
  8628. else
  8629. if test -n "$WINDRES"; then
  8630. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8631. else
  8632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8633. for as_dir in $PATH
  8634. do
  8635. IFS=$as_save_IFS
  8636. test -z "$as_dir" && as_dir=.
  8637. for ac_exec_ext in '' $ac_executable_extensions; do
  8638. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8639. ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
  8640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8641. break 2
  8642. fi
  8643. done
  8644. done
  8645. IFS=$as_save_IFS
  8646. fi
  8647. fi
  8648. WINDRES=$ac_cv_prog_WINDRES
  8649. if test -n "$WINDRES"; then
  8650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8651. $as_echo "$WINDRES" >&6; }
  8652. else
  8653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8654. $as_echo "no" >&6; }
  8655. fi
  8656. fi
  8657. if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
  8658. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8659. set dummy ${ncn_progname}; ac_word=$2
  8660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8661. $as_echo_n "checking for $ac_word... " >&6; }
  8662. if ${ac_cv_prog_WINDRES+:} false; then :
  8663. $as_echo_n "(cached) " >&6
  8664. else
  8665. if test -n "$WINDRES"; then
  8666. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8667. else
  8668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8669. for as_dir in $PATH
  8670. do
  8671. IFS=$as_save_IFS
  8672. test -z "$as_dir" && as_dir=.
  8673. for ac_exec_ext in '' $ac_executable_extensions; do
  8674. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8675. ac_cv_prog_WINDRES="${ncn_progname}"
  8676. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8677. break 2
  8678. fi
  8679. done
  8680. done
  8681. IFS=$as_save_IFS
  8682. fi
  8683. fi
  8684. WINDRES=$ac_cv_prog_WINDRES
  8685. if test -n "$WINDRES"; then
  8686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8687. $as_echo "$WINDRES" >&6; }
  8688. else
  8689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8690. $as_echo "no" >&6; }
  8691. fi
  8692. fi
  8693. test -n "$ac_cv_prog_WINDRES" && break
  8694. done
  8695. if test -z "$ac_cv_prog_WINDRES" ; then
  8696. set dummy windres
  8697. if test $build = $host ; then
  8698. WINDRES="$2"
  8699. else
  8700. WINDRES="${ncn_tool_prefix}$2"
  8701. fi
  8702. fi
  8703. if test -n "$WINDMC"; then
  8704. ac_cv_prog_WINDMC=$WINDMC
  8705. elif test -n "$ac_cv_prog_WINDMC"; then
  8706. WINDMC=$ac_cv_prog_WINDMC
  8707. fi
  8708. if test -n "$ac_cv_prog_WINDMC"; then
  8709. for ncn_progname in windmc; do
  8710. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8711. set dummy ${ncn_progname}; ac_word=$2
  8712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8713. $as_echo_n "checking for $ac_word... " >&6; }
  8714. if ${ac_cv_prog_WINDMC+:} false; then :
  8715. $as_echo_n "(cached) " >&6
  8716. else
  8717. if test -n "$WINDMC"; then
  8718. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8719. else
  8720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8721. for as_dir in $PATH
  8722. do
  8723. IFS=$as_save_IFS
  8724. test -z "$as_dir" && as_dir=.
  8725. for ac_exec_ext in '' $ac_executable_extensions; do
  8726. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8727. ac_cv_prog_WINDMC="${ncn_progname}"
  8728. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8729. break 2
  8730. fi
  8731. done
  8732. done
  8733. IFS=$as_save_IFS
  8734. fi
  8735. fi
  8736. WINDMC=$ac_cv_prog_WINDMC
  8737. if test -n "$WINDMC"; then
  8738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8739. $as_echo "$WINDMC" >&6; }
  8740. else
  8741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8742. $as_echo "no" >&6; }
  8743. fi
  8744. done
  8745. fi
  8746. for ncn_progname in windmc; do
  8747. if test -n "$ncn_tool_prefix"; then
  8748. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8749. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8751. $as_echo_n "checking for $ac_word... " >&6; }
  8752. if ${ac_cv_prog_WINDMC+:} false; then :
  8753. $as_echo_n "(cached) " >&6
  8754. else
  8755. if test -n "$WINDMC"; then
  8756. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8757. else
  8758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8759. for as_dir in $PATH
  8760. do
  8761. IFS=$as_save_IFS
  8762. test -z "$as_dir" && as_dir=.
  8763. for ac_exec_ext in '' $ac_executable_extensions; do
  8764. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8765. ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
  8766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8767. break 2
  8768. fi
  8769. done
  8770. done
  8771. IFS=$as_save_IFS
  8772. fi
  8773. fi
  8774. WINDMC=$ac_cv_prog_WINDMC
  8775. if test -n "$WINDMC"; then
  8776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8777. $as_echo "$WINDMC" >&6; }
  8778. else
  8779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8780. $as_echo "no" >&6; }
  8781. fi
  8782. fi
  8783. if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
  8784. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8785. set dummy ${ncn_progname}; ac_word=$2
  8786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8787. $as_echo_n "checking for $ac_word... " >&6; }
  8788. if ${ac_cv_prog_WINDMC+:} false; then :
  8789. $as_echo_n "(cached) " >&6
  8790. else
  8791. if test -n "$WINDMC"; then
  8792. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8793. else
  8794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8795. for as_dir in $PATH
  8796. do
  8797. IFS=$as_save_IFS
  8798. test -z "$as_dir" && as_dir=.
  8799. for ac_exec_ext in '' $ac_executable_extensions; do
  8800. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8801. ac_cv_prog_WINDMC="${ncn_progname}"
  8802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8803. break 2
  8804. fi
  8805. done
  8806. done
  8807. IFS=$as_save_IFS
  8808. fi
  8809. fi
  8810. WINDMC=$ac_cv_prog_WINDMC
  8811. if test -n "$WINDMC"; then
  8812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8813. $as_echo "$WINDMC" >&6; }
  8814. else
  8815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8816. $as_echo "no" >&6; }
  8817. fi
  8818. fi
  8819. test -n "$ac_cv_prog_WINDMC" && break
  8820. done
  8821. if test -z "$ac_cv_prog_WINDMC" ; then
  8822. set dummy windmc
  8823. if test $build = $host ; then
  8824. WINDMC="$2"
  8825. else
  8826. WINDMC="${ncn_tool_prefix}$2"
  8827. fi
  8828. fi
  8829. if test -n "$OBJCOPY"; then
  8830. ac_cv_prog_OBJCOPY=$OBJCOPY
  8831. elif test -n "$ac_cv_prog_OBJCOPY"; then
  8832. OBJCOPY=$ac_cv_prog_OBJCOPY
  8833. fi
  8834. if test -n "$ac_cv_prog_OBJCOPY"; then
  8835. for ncn_progname in objcopy; do
  8836. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8837. set dummy ${ncn_progname}; ac_word=$2
  8838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8839. $as_echo_n "checking for $ac_word... " >&6; }
  8840. if ${ac_cv_prog_OBJCOPY+:} false; then :
  8841. $as_echo_n "(cached) " >&6
  8842. else
  8843. if test -n "$OBJCOPY"; then
  8844. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8845. else
  8846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8847. for as_dir in $PATH
  8848. do
  8849. IFS=$as_save_IFS
  8850. test -z "$as_dir" && as_dir=.
  8851. for ac_exec_ext in '' $ac_executable_extensions; do
  8852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8853. ac_cv_prog_OBJCOPY="${ncn_progname}"
  8854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8855. break 2
  8856. fi
  8857. done
  8858. done
  8859. IFS=$as_save_IFS
  8860. fi
  8861. fi
  8862. OBJCOPY=$ac_cv_prog_OBJCOPY
  8863. if test -n "$OBJCOPY"; then
  8864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8865. $as_echo "$OBJCOPY" >&6; }
  8866. else
  8867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8868. $as_echo "no" >&6; }
  8869. fi
  8870. done
  8871. fi
  8872. for ncn_progname in objcopy; do
  8873. if test -n "$ncn_tool_prefix"; then
  8874. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8875. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8877. $as_echo_n "checking for $ac_word... " >&6; }
  8878. if ${ac_cv_prog_OBJCOPY+:} false; then :
  8879. $as_echo_n "(cached) " >&6
  8880. else
  8881. if test -n "$OBJCOPY"; then
  8882. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8883. else
  8884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8885. for as_dir in $PATH
  8886. do
  8887. IFS=$as_save_IFS
  8888. test -z "$as_dir" && as_dir=.
  8889. for ac_exec_ext in '' $ac_executable_extensions; do
  8890. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8891. ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
  8892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8893. break 2
  8894. fi
  8895. done
  8896. done
  8897. IFS=$as_save_IFS
  8898. fi
  8899. fi
  8900. OBJCOPY=$ac_cv_prog_OBJCOPY
  8901. if test -n "$OBJCOPY"; then
  8902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8903. $as_echo "$OBJCOPY" >&6; }
  8904. else
  8905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8906. $as_echo "no" >&6; }
  8907. fi
  8908. fi
  8909. if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
  8910. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8911. set dummy ${ncn_progname}; ac_word=$2
  8912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8913. $as_echo_n "checking for $ac_word... " >&6; }
  8914. if ${ac_cv_prog_OBJCOPY+:} false; then :
  8915. $as_echo_n "(cached) " >&6
  8916. else
  8917. if test -n "$OBJCOPY"; then
  8918. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8919. else
  8920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8921. for as_dir in $PATH
  8922. do
  8923. IFS=$as_save_IFS
  8924. test -z "$as_dir" && as_dir=.
  8925. for ac_exec_ext in '' $ac_executable_extensions; do
  8926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8927. ac_cv_prog_OBJCOPY="${ncn_progname}"
  8928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8929. break 2
  8930. fi
  8931. done
  8932. done
  8933. IFS=$as_save_IFS
  8934. fi
  8935. fi
  8936. OBJCOPY=$ac_cv_prog_OBJCOPY
  8937. if test -n "$OBJCOPY"; then
  8938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8939. $as_echo "$OBJCOPY" >&6; }
  8940. else
  8941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8942. $as_echo "no" >&6; }
  8943. fi
  8944. fi
  8945. test -n "$ac_cv_prog_OBJCOPY" && break
  8946. done
  8947. if test -z "$ac_cv_prog_OBJCOPY" ; then
  8948. set dummy objcopy
  8949. if test $build = $host ; then
  8950. OBJCOPY="$2"
  8951. else
  8952. OBJCOPY="${ncn_tool_prefix}$2"
  8953. fi
  8954. fi
  8955. if test -n "$OBJDUMP"; then
  8956. ac_cv_prog_OBJDUMP=$OBJDUMP
  8957. elif test -n "$ac_cv_prog_OBJDUMP"; then
  8958. OBJDUMP=$ac_cv_prog_OBJDUMP
  8959. fi
  8960. if test -n "$ac_cv_prog_OBJDUMP"; then
  8961. for ncn_progname in objdump; do
  8962. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8963. set dummy ${ncn_progname}; ac_word=$2
  8964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8965. $as_echo_n "checking for $ac_word... " >&6; }
  8966. if ${ac_cv_prog_OBJDUMP+:} false; then :
  8967. $as_echo_n "(cached) " >&6
  8968. else
  8969. if test -n "$OBJDUMP"; then
  8970. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8971. else
  8972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8973. for as_dir in $PATH
  8974. do
  8975. IFS=$as_save_IFS
  8976. test -z "$as_dir" && as_dir=.
  8977. for ac_exec_ext in '' $ac_executable_extensions; do
  8978. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8979. ac_cv_prog_OBJDUMP="${ncn_progname}"
  8980. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8981. break 2
  8982. fi
  8983. done
  8984. done
  8985. IFS=$as_save_IFS
  8986. fi
  8987. fi
  8988. OBJDUMP=$ac_cv_prog_OBJDUMP
  8989. if test -n "$OBJDUMP"; then
  8990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8991. $as_echo "$OBJDUMP" >&6; }
  8992. else
  8993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8994. $as_echo "no" >&6; }
  8995. fi
  8996. done
  8997. fi
  8998. for ncn_progname in objdump; do
  8999. if test -n "$ncn_tool_prefix"; then
  9000. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9001. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  9002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9003. $as_echo_n "checking for $ac_word... " >&6; }
  9004. if ${ac_cv_prog_OBJDUMP+:} false; then :
  9005. $as_echo_n "(cached) " >&6
  9006. else
  9007. if test -n "$OBJDUMP"; then
  9008. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  9009. else
  9010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9011. for as_dir in $PATH
  9012. do
  9013. IFS=$as_save_IFS
  9014. test -z "$as_dir" && as_dir=.
  9015. for ac_exec_ext in '' $ac_executable_extensions; do
  9016. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9017. ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
  9018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9019. break 2
  9020. fi
  9021. done
  9022. done
  9023. IFS=$as_save_IFS
  9024. fi
  9025. fi
  9026. OBJDUMP=$ac_cv_prog_OBJDUMP
  9027. if test -n "$OBJDUMP"; then
  9028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  9029. $as_echo "$OBJDUMP" >&6; }
  9030. else
  9031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9032. $as_echo "no" >&6; }
  9033. fi
  9034. fi
  9035. if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
  9036. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9037. set dummy ${ncn_progname}; ac_word=$2
  9038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9039. $as_echo_n "checking for $ac_word... " >&6; }
  9040. if ${ac_cv_prog_OBJDUMP+:} false; then :
  9041. $as_echo_n "(cached) " >&6
  9042. else
  9043. if test -n "$OBJDUMP"; then
  9044. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  9045. else
  9046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9047. for as_dir in $PATH
  9048. do
  9049. IFS=$as_save_IFS
  9050. test -z "$as_dir" && as_dir=.
  9051. for ac_exec_ext in '' $ac_executable_extensions; do
  9052. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9053. ac_cv_prog_OBJDUMP="${ncn_progname}"
  9054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9055. break 2
  9056. fi
  9057. done
  9058. done
  9059. IFS=$as_save_IFS
  9060. fi
  9061. fi
  9062. OBJDUMP=$ac_cv_prog_OBJDUMP
  9063. if test -n "$OBJDUMP"; then
  9064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  9065. $as_echo "$OBJDUMP" >&6; }
  9066. else
  9067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9068. $as_echo "no" >&6; }
  9069. fi
  9070. fi
  9071. test -n "$ac_cv_prog_OBJDUMP" && break
  9072. done
  9073. if test -z "$ac_cv_prog_OBJDUMP" ; then
  9074. set dummy objdump
  9075. if test $build = $host ; then
  9076. OBJDUMP="$2"
  9077. else
  9078. OBJDUMP="${ncn_tool_prefix}$2"
  9079. fi
  9080. fi
  9081. if test -n "$READELF"; then
  9082. ac_cv_prog_READELF=$READELF
  9083. elif test -n "$ac_cv_prog_READELF"; then
  9084. READELF=$ac_cv_prog_READELF
  9085. fi
  9086. if test -n "$ac_cv_prog_READELF"; then
  9087. for ncn_progname in readelf; do
  9088. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9089. set dummy ${ncn_progname}; ac_word=$2
  9090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9091. $as_echo_n "checking for $ac_word... " >&6; }
  9092. if ${ac_cv_prog_READELF+:} false; then :
  9093. $as_echo_n "(cached) " >&6
  9094. else
  9095. if test -n "$READELF"; then
  9096. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  9097. else
  9098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9099. for as_dir in $PATH
  9100. do
  9101. IFS=$as_save_IFS
  9102. test -z "$as_dir" && as_dir=.
  9103. for ac_exec_ext in '' $ac_executable_extensions; do
  9104. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9105. ac_cv_prog_READELF="${ncn_progname}"
  9106. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9107. break 2
  9108. fi
  9109. done
  9110. done
  9111. IFS=$as_save_IFS
  9112. fi
  9113. fi
  9114. READELF=$ac_cv_prog_READELF
  9115. if test -n "$READELF"; then
  9116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  9117. $as_echo "$READELF" >&6; }
  9118. else
  9119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9120. $as_echo "no" >&6; }
  9121. fi
  9122. done
  9123. fi
  9124. for ncn_progname in readelf; do
  9125. if test -n "$ncn_tool_prefix"; then
  9126. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9127. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  9128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9129. $as_echo_n "checking for $ac_word... " >&6; }
  9130. if ${ac_cv_prog_READELF+:} false; then :
  9131. $as_echo_n "(cached) " >&6
  9132. else
  9133. if test -n "$READELF"; then
  9134. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  9135. else
  9136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9137. for as_dir in $PATH
  9138. do
  9139. IFS=$as_save_IFS
  9140. test -z "$as_dir" && as_dir=.
  9141. for ac_exec_ext in '' $ac_executable_extensions; do
  9142. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9143. ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
  9144. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9145. break 2
  9146. fi
  9147. done
  9148. done
  9149. IFS=$as_save_IFS
  9150. fi
  9151. fi
  9152. READELF=$ac_cv_prog_READELF
  9153. if test -n "$READELF"; then
  9154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  9155. $as_echo "$READELF" >&6; }
  9156. else
  9157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9158. $as_echo "no" >&6; }
  9159. fi
  9160. fi
  9161. if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
  9162. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9163. set dummy ${ncn_progname}; ac_word=$2
  9164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9165. $as_echo_n "checking for $ac_word... " >&6; }
  9166. if ${ac_cv_prog_READELF+:} false; then :
  9167. $as_echo_n "(cached) " >&6
  9168. else
  9169. if test -n "$READELF"; then
  9170. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  9171. else
  9172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9173. for as_dir in $PATH
  9174. do
  9175. IFS=$as_save_IFS
  9176. test -z "$as_dir" && as_dir=.
  9177. for ac_exec_ext in '' $ac_executable_extensions; do
  9178. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9179. ac_cv_prog_READELF="${ncn_progname}"
  9180. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9181. break 2
  9182. fi
  9183. done
  9184. done
  9185. IFS=$as_save_IFS
  9186. fi
  9187. fi
  9188. READELF=$ac_cv_prog_READELF
  9189. if test -n "$READELF"; then
  9190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  9191. $as_echo "$READELF" >&6; }
  9192. else
  9193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9194. $as_echo "no" >&6; }
  9195. fi
  9196. fi
  9197. test -n "$ac_cv_prog_READELF" && break
  9198. done
  9199. if test -z "$ac_cv_prog_READELF" ; then
  9200. set dummy readelf
  9201. if test $build = $host ; then
  9202. READELF="$2"
  9203. else
  9204. READELF="${ncn_tool_prefix}$2"
  9205. fi
  9206. fi
  9207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
  9208. $as_echo_n "checking for -plugin option... " >&6; }
  9209. plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
  9210. plugin_option=
  9211. for plugin in $plugin_names; do
  9212. plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
  9213. if test x$plugin_so = x$plugin; then
  9214. plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
  9215. fi
  9216. if test x$plugin_so != x$plugin; then
  9217. plugin_option="--plugin $plugin_so"
  9218. break
  9219. fi
  9220. done
  9221. if test -n "$ac_tool_prefix"; then
  9222. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  9223. set dummy ${ac_tool_prefix}ar; ac_word=$2
  9224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9225. $as_echo_n "checking for $ac_word... " >&6; }
  9226. if ${ac_cv_prog_AR+:} false; then :
  9227. $as_echo_n "(cached) " >&6
  9228. else
  9229. if test -n "$AR"; then
  9230. ac_cv_prog_AR="$AR" # Let the user override the test.
  9231. else
  9232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9233. for as_dir in $PATH
  9234. do
  9235. IFS=$as_save_IFS
  9236. test -z "$as_dir" && as_dir=.
  9237. for ac_exec_ext in '' $ac_executable_extensions; do
  9238. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9239. ac_cv_prog_AR="${ac_tool_prefix}ar"
  9240. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9241. break 2
  9242. fi
  9243. done
  9244. done
  9245. IFS=$as_save_IFS
  9246. fi
  9247. fi
  9248. AR=$ac_cv_prog_AR
  9249. if test -n "$AR"; then
  9250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  9251. $as_echo "$AR" >&6; }
  9252. else
  9253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9254. $as_echo "no" >&6; }
  9255. fi
  9256. fi
  9257. if test -z "$ac_cv_prog_AR"; then
  9258. ac_ct_AR=$AR
  9259. # Extract the first word of "ar", so it can be a program name with args.
  9260. set dummy ar; ac_word=$2
  9261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9262. $as_echo_n "checking for $ac_word... " >&6; }
  9263. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  9264. $as_echo_n "(cached) " >&6
  9265. else
  9266. if test -n "$ac_ct_AR"; then
  9267. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  9268. else
  9269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9270. for as_dir in $PATH
  9271. do
  9272. IFS=$as_save_IFS
  9273. test -z "$as_dir" && as_dir=.
  9274. for ac_exec_ext in '' $ac_executable_extensions; do
  9275. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9276. ac_cv_prog_ac_ct_AR="ar"
  9277. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9278. break 2
  9279. fi
  9280. done
  9281. done
  9282. IFS=$as_save_IFS
  9283. fi
  9284. fi
  9285. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  9286. if test -n "$ac_ct_AR"; then
  9287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  9288. $as_echo "$ac_ct_AR" >&6; }
  9289. else
  9290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9291. $as_echo "no" >&6; }
  9292. fi
  9293. if test "x$ac_ct_AR" = x; then
  9294. AR=""
  9295. else
  9296. case $cross_compiling:$ac_tool_warned in
  9297. yes:)
  9298. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9299. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9300. ac_tool_warned=yes ;;
  9301. esac
  9302. AR=$ac_ct_AR
  9303. fi
  9304. else
  9305. AR="$ac_cv_prog_AR"
  9306. fi
  9307. if test "${AR}" = "" ; then
  9308. as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
  9309. fi
  9310. touch conftest.c
  9311. ${AR} $plugin_option rc conftest.a conftest.c
  9312. if test "$?" != 0; then
  9313. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
  9314. $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
  9315. plugin_option=
  9316. fi
  9317. rm -f conftest.*
  9318. if test -n "$plugin_option"; then
  9319. PLUGIN_OPTION="$plugin_option"
  9320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
  9321. $as_echo "$plugin_option" >&6; }
  9322. else
  9323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9324. $as_echo "no" >&6; }
  9325. fi
  9326. AR_PLUGIN_OPTION=
  9327. RANLIB_PLUGIN_OPTION=
  9328. if test -n "$PLUGIN_OPTION"; then
  9329. if $AR --help 2>&1 | grep -q "\--plugin"; then
  9330. AR_PLUGIN_OPTION="$PLUGIN_OPTION"
  9331. fi
  9332. if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
  9333. RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
  9334. fi
  9335. else
  9336. if test "$enable_pgo_build" != "no"; then
  9337. as_fn_error $? "AR with --plugin and rc is required for LTO build" "$LINENO" 5
  9338. fi
  9339. fi
  9340. # Target tools.
  9341. # Check whether --with-build-time-tools was given.
  9342. if test "${with_build_time_tools+set}" = set; then :
  9343. withval=$with_build_time_tools; case x"$withval" in
  9344. x/*) ;;
  9345. *)
  9346. with_build_time_tools=
  9347. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
  9348. $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
  9349. ;;
  9350. esac
  9351. else
  9352. with_build_time_tools=
  9353. fi
  9354. if test -n "$CC_FOR_TARGET"; then
  9355. ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
  9356. elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
  9357. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  9358. fi
  9359. if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
  9360. for ncn_progname in cc gcc; do
  9361. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9362. set dummy ${ncn_progname}; ac_word=$2
  9363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9364. $as_echo_n "checking for $ac_word... " >&6; }
  9365. if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
  9366. $as_echo_n "(cached) " >&6
  9367. else
  9368. if test -n "$CC_FOR_TARGET"; then
  9369. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  9370. else
  9371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9372. for as_dir in $PATH
  9373. do
  9374. IFS=$as_save_IFS
  9375. test -z "$as_dir" && as_dir=.
  9376. for ac_exec_ext in '' $ac_executable_extensions; do
  9377. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9378. ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
  9379. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9380. break 2
  9381. fi
  9382. done
  9383. done
  9384. IFS=$as_save_IFS
  9385. fi
  9386. fi
  9387. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  9388. if test -n "$CC_FOR_TARGET"; then
  9389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  9390. $as_echo "$CC_FOR_TARGET" >&6; }
  9391. else
  9392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9393. $as_echo "no" >&6; }
  9394. fi
  9395. done
  9396. fi
  9397. if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9398. for ncn_progname in cc gcc; do
  9399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9400. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9401. if test -x $with_build_time_tools/${ncn_progname}; then
  9402. ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9404. $as_echo "yes" >&6; }
  9405. break
  9406. else
  9407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9408. $as_echo "no" >&6; }
  9409. fi
  9410. done
  9411. fi
  9412. if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
  9413. for ncn_progname in cc gcc; do
  9414. if test -n "$ncn_target_tool_prefix"; then
  9415. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9416. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9418. $as_echo_n "checking for $ac_word... " >&6; }
  9419. if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
  9420. $as_echo_n "(cached) " >&6
  9421. else
  9422. if test -n "$CC_FOR_TARGET"; then
  9423. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  9424. else
  9425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9426. for as_dir in $PATH
  9427. do
  9428. IFS=$as_save_IFS
  9429. test -z "$as_dir" && as_dir=.
  9430. for ac_exec_ext in '' $ac_executable_extensions; do
  9431. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9432. ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9434. break 2
  9435. fi
  9436. done
  9437. done
  9438. IFS=$as_save_IFS
  9439. fi
  9440. fi
  9441. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  9442. if test -n "$CC_FOR_TARGET"; then
  9443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  9444. $as_echo "$CC_FOR_TARGET" >&6; }
  9445. else
  9446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9447. $as_echo "no" >&6; }
  9448. fi
  9449. fi
  9450. if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
  9451. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9452. set dummy ${ncn_progname}; ac_word=$2
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9454. $as_echo_n "checking for $ac_word... " >&6; }
  9455. if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
  9456. $as_echo_n "(cached) " >&6
  9457. else
  9458. if test -n "$CC_FOR_TARGET"; then
  9459. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  9460. else
  9461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9462. for as_dir in $PATH
  9463. do
  9464. IFS=$as_save_IFS
  9465. test -z "$as_dir" && as_dir=.
  9466. for ac_exec_ext in '' $ac_executable_extensions; do
  9467. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9468. ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
  9469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9470. break 2
  9471. fi
  9472. done
  9473. done
  9474. IFS=$as_save_IFS
  9475. fi
  9476. fi
  9477. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  9478. if test -n "$CC_FOR_TARGET"; then
  9479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  9480. $as_echo "$CC_FOR_TARGET" >&6; }
  9481. else
  9482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9483. $as_echo "no" >&6; }
  9484. fi
  9485. fi
  9486. test -n "$ac_cv_prog_CC_FOR_TARGET" && break
  9487. done
  9488. fi
  9489. if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
  9490. set dummy cc gcc
  9491. if test $build = $target ; then
  9492. CC_FOR_TARGET="$2"
  9493. else
  9494. CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9495. fi
  9496. else
  9497. CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
  9498. fi
  9499. if test -n "$CXX_FOR_TARGET"; then
  9500. ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
  9501. elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
  9502. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  9503. fi
  9504. if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
  9505. for ncn_progname in c++ g++ cxx gxx; do
  9506. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9507. set dummy ${ncn_progname}; ac_word=$2
  9508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9509. $as_echo_n "checking for $ac_word... " >&6; }
  9510. if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
  9511. $as_echo_n "(cached) " >&6
  9512. else
  9513. if test -n "$CXX_FOR_TARGET"; then
  9514. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  9515. else
  9516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9517. for as_dir in $PATH
  9518. do
  9519. IFS=$as_save_IFS
  9520. test -z "$as_dir" && as_dir=.
  9521. for ac_exec_ext in '' $ac_executable_extensions; do
  9522. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9523. ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
  9524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9525. break 2
  9526. fi
  9527. done
  9528. done
  9529. IFS=$as_save_IFS
  9530. fi
  9531. fi
  9532. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  9533. if test -n "$CXX_FOR_TARGET"; then
  9534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  9535. $as_echo "$CXX_FOR_TARGET" >&6; }
  9536. else
  9537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9538. $as_echo "no" >&6; }
  9539. fi
  9540. done
  9541. fi
  9542. if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9543. for ncn_progname in c++ g++ cxx gxx; do
  9544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9545. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9546. if test -x $with_build_time_tools/${ncn_progname}; then
  9547. ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9549. $as_echo "yes" >&6; }
  9550. break
  9551. else
  9552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9553. $as_echo "no" >&6; }
  9554. fi
  9555. done
  9556. fi
  9557. if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
  9558. for ncn_progname in c++ g++ cxx gxx; do
  9559. if test -n "$ncn_target_tool_prefix"; then
  9560. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9561. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9563. $as_echo_n "checking for $ac_word... " >&6; }
  9564. if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
  9565. $as_echo_n "(cached) " >&6
  9566. else
  9567. if test -n "$CXX_FOR_TARGET"; then
  9568. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  9569. else
  9570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9571. for as_dir in $PATH
  9572. do
  9573. IFS=$as_save_IFS
  9574. test -z "$as_dir" && as_dir=.
  9575. for ac_exec_ext in '' $ac_executable_extensions; do
  9576. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9577. ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9578. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9579. break 2
  9580. fi
  9581. done
  9582. done
  9583. IFS=$as_save_IFS
  9584. fi
  9585. fi
  9586. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  9587. if test -n "$CXX_FOR_TARGET"; then
  9588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  9589. $as_echo "$CXX_FOR_TARGET" >&6; }
  9590. else
  9591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9592. $as_echo "no" >&6; }
  9593. fi
  9594. fi
  9595. if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
  9596. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9597. set dummy ${ncn_progname}; ac_word=$2
  9598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9599. $as_echo_n "checking for $ac_word... " >&6; }
  9600. if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
  9601. $as_echo_n "(cached) " >&6
  9602. else
  9603. if test -n "$CXX_FOR_TARGET"; then
  9604. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  9605. else
  9606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9607. for as_dir in $PATH
  9608. do
  9609. IFS=$as_save_IFS
  9610. test -z "$as_dir" && as_dir=.
  9611. for ac_exec_ext in '' $ac_executable_extensions; do
  9612. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9613. ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
  9614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9615. break 2
  9616. fi
  9617. done
  9618. done
  9619. IFS=$as_save_IFS
  9620. fi
  9621. fi
  9622. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  9623. if test -n "$CXX_FOR_TARGET"; then
  9624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  9625. $as_echo "$CXX_FOR_TARGET" >&6; }
  9626. else
  9627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9628. $as_echo "no" >&6; }
  9629. fi
  9630. fi
  9631. test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
  9632. done
  9633. fi
  9634. if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
  9635. set dummy c++ g++ cxx gxx
  9636. if test $build = $target ; then
  9637. CXX_FOR_TARGET="$2"
  9638. else
  9639. CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9640. fi
  9641. else
  9642. CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
  9643. fi
  9644. if test -n "$GCC_FOR_TARGET"; then
  9645. ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
  9646. elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
  9647. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  9648. fi
  9649. if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
  9650. for ncn_progname in gcc; do
  9651. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9652. set dummy ${ncn_progname}; ac_word=$2
  9653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9654. $as_echo_n "checking for $ac_word... " >&6; }
  9655. if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
  9656. $as_echo_n "(cached) " >&6
  9657. else
  9658. if test -n "$GCC_FOR_TARGET"; then
  9659. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  9660. else
  9661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9662. for as_dir in $PATH
  9663. do
  9664. IFS=$as_save_IFS
  9665. test -z "$as_dir" && as_dir=.
  9666. for ac_exec_ext in '' $ac_executable_extensions; do
  9667. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9668. ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
  9669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9670. break 2
  9671. fi
  9672. done
  9673. done
  9674. IFS=$as_save_IFS
  9675. fi
  9676. fi
  9677. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  9678. if test -n "$GCC_FOR_TARGET"; then
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  9680. $as_echo "$GCC_FOR_TARGET" >&6; }
  9681. else
  9682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9683. $as_echo "no" >&6; }
  9684. fi
  9685. done
  9686. fi
  9687. if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9688. for ncn_progname in gcc; do
  9689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9690. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9691. if test -x $with_build_time_tools/${ncn_progname}; then
  9692. ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9694. $as_echo "yes" >&6; }
  9695. break
  9696. else
  9697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9698. $as_echo "no" >&6; }
  9699. fi
  9700. done
  9701. fi
  9702. if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
  9703. for ncn_progname in gcc; do
  9704. if test -n "$ncn_target_tool_prefix"; then
  9705. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9706. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9708. $as_echo_n "checking for $ac_word... " >&6; }
  9709. if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
  9710. $as_echo_n "(cached) " >&6
  9711. else
  9712. if test -n "$GCC_FOR_TARGET"; then
  9713. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  9714. else
  9715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9716. for as_dir in $PATH
  9717. do
  9718. IFS=$as_save_IFS
  9719. test -z "$as_dir" && as_dir=.
  9720. for ac_exec_ext in '' $ac_executable_extensions; do
  9721. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9722. ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9724. break 2
  9725. fi
  9726. done
  9727. done
  9728. IFS=$as_save_IFS
  9729. fi
  9730. fi
  9731. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  9732. if test -n "$GCC_FOR_TARGET"; then
  9733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  9734. $as_echo "$GCC_FOR_TARGET" >&6; }
  9735. else
  9736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9737. $as_echo "no" >&6; }
  9738. fi
  9739. fi
  9740. if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
  9741. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9742. set dummy ${ncn_progname}; ac_word=$2
  9743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9744. $as_echo_n "checking for $ac_word... " >&6; }
  9745. if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
  9746. $as_echo_n "(cached) " >&6
  9747. else
  9748. if test -n "$GCC_FOR_TARGET"; then
  9749. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  9750. else
  9751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9752. for as_dir in $PATH
  9753. do
  9754. IFS=$as_save_IFS
  9755. test -z "$as_dir" && as_dir=.
  9756. for ac_exec_ext in '' $ac_executable_extensions; do
  9757. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9758. ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
  9759. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9760. break 2
  9761. fi
  9762. done
  9763. done
  9764. IFS=$as_save_IFS
  9765. fi
  9766. fi
  9767. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  9768. if test -n "$GCC_FOR_TARGET"; then
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  9770. $as_echo "$GCC_FOR_TARGET" >&6; }
  9771. else
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9773. $as_echo "no" >&6; }
  9774. fi
  9775. fi
  9776. test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
  9777. done
  9778. fi
  9779. if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
  9780. GCC_FOR_TARGET="${CC_FOR_TARGET}"
  9781. else
  9782. GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
  9783. fi
  9784. if test -n "$GFORTRAN_FOR_TARGET"; then
  9785. ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
  9786. elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9787. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9788. fi
  9789. if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9790. for ncn_progname in gfortran; do
  9791. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9792. set dummy ${ncn_progname}; ac_word=$2
  9793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9794. $as_echo_n "checking for $ac_word... " >&6; }
  9795. if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
  9796. $as_echo_n "(cached) " >&6
  9797. else
  9798. if test -n "$GFORTRAN_FOR_TARGET"; then
  9799. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9800. else
  9801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9802. for as_dir in $PATH
  9803. do
  9804. IFS=$as_save_IFS
  9805. test -z "$as_dir" && as_dir=.
  9806. for ac_exec_ext in '' $ac_executable_extensions; do
  9807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9808. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
  9809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9810. break 2
  9811. fi
  9812. done
  9813. done
  9814. IFS=$as_save_IFS
  9815. fi
  9816. fi
  9817. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9818. if test -n "$GFORTRAN_FOR_TARGET"; then
  9819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9820. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9821. else
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9823. $as_echo "no" >&6; }
  9824. fi
  9825. done
  9826. fi
  9827. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9828. for ncn_progname in gfortran; do
  9829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9830. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9831. if test -x $with_build_time_tools/${ncn_progname}; then
  9832. ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9834. $as_echo "yes" >&6; }
  9835. break
  9836. else
  9837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9838. $as_echo "no" >&6; }
  9839. fi
  9840. done
  9841. fi
  9842. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9843. for ncn_progname in gfortran; do
  9844. if test -n "$ncn_target_tool_prefix"; then
  9845. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9846. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9848. $as_echo_n "checking for $ac_word... " >&6; }
  9849. if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
  9850. $as_echo_n "(cached) " >&6
  9851. else
  9852. if test -n "$GFORTRAN_FOR_TARGET"; then
  9853. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9854. else
  9855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9856. for as_dir in $PATH
  9857. do
  9858. IFS=$as_save_IFS
  9859. test -z "$as_dir" && as_dir=.
  9860. for ac_exec_ext in '' $ac_executable_extensions; do
  9861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9862. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9864. break 2
  9865. fi
  9866. done
  9867. done
  9868. IFS=$as_save_IFS
  9869. fi
  9870. fi
  9871. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9872. if test -n "$GFORTRAN_FOR_TARGET"; then
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9874. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9875. else
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9877. $as_echo "no" >&6; }
  9878. fi
  9879. fi
  9880. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
  9881. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9882. set dummy ${ncn_progname}; ac_word=$2
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9884. $as_echo_n "checking for $ac_word... " >&6; }
  9885. if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
  9886. $as_echo_n "(cached) " >&6
  9887. else
  9888. if test -n "$GFORTRAN_FOR_TARGET"; then
  9889. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9890. else
  9891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9892. for as_dir in $PATH
  9893. do
  9894. IFS=$as_save_IFS
  9895. test -z "$as_dir" && as_dir=.
  9896. for ac_exec_ext in '' $ac_executable_extensions; do
  9897. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9898. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
  9899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9900. break 2
  9901. fi
  9902. done
  9903. done
  9904. IFS=$as_save_IFS
  9905. fi
  9906. fi
  9907. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9908. if test -n "$GFORTRAN_FOR_TARGET"; then
  9909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9910. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9911. else
  9912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9913. $as_echo "no" >&6; }
  9914. fi
  9915. fi
  9916. test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
  9917. done
  9918. fi
  9919. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
  9920. set dummy gfortran
  9921. if test $build = $target ; then
  9922. GFORTRAN_FOR_TARGET="$2"
  9923. else
  9924. GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9925. fi
  9926. else
  9927. GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
  9928. fi
  9929. if test -n "$GOC_FOR_TARGET"; then
  9930. ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
  9931. elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
  9932. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9933. fi
  9934. if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
  9935. for ncn_progname in gccgo; do
  9936. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9937. set dummy ${ncn_progname}; ac_word=$2
  9938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9939. $as_echo_n "checking for $ac_word... " >&6; }
  9940. if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
  9941. $as_echo_n "(cached) " >&6
  9942. else
  9943. if test -n "$GOC_FOR_TARGET"; then
  9944. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  9945. else
  9946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9947. for as_dir in $PATH
  9948. do
  9949. IFS=$as_save_IFS
  9950. test -z "$as_dir" && as_dir=.
  9951. for ac_exec_ext in '' $ac_executable_extensions; do
  9952. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9953. ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
  9954. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9955. break 2
  9956. fi
  9957. done
  9958. done
  9959. IFS=$as_save_IFS
  9960. fi
  9961. fi
  9962. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9963. if test -n "$GOC_FOR_TARGET"; then
  9964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  9965. $as_echo "$GOC_FOR_TARGET" >&6; }
  9966. else
  9967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9968. $as_echo "no" >&6; }
  9969. fi
  9970. done
  9971. fi
  9972. if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9973. for ncn_progname in gccgo; do
  9974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9975. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9976. if test -x $with_build_time_tools/${ncn_progname}; then
  9977. ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9979. $as_echo "yes" >&6; }
  9980. break
  9981. else
  9982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9983. $as_echo "no" >&6; }
  9984. fi
  9985. done
  9986. fi
  9987. if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
  9988. for ncn_progname in gccgo; do
  9989. if test -n "$ncn_target_tool_prefix"; then
  9990. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9991. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9993. $as_echo_n "checking for $ac_word... " >&6; }
  9994. if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
  9995. $as_echo_n "(cached) " >&6
  9996. else
  9997. if test -n "$GOC_FOR_TARGET"; then
  9998. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  9999. else
  10000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10001. for as_dir in $PATH
  10002. do
  10003. IFS=$as_save_IFS
  10004. test -z "$as_dir" && as_dir=.
  10005. for ac_exec_ext in '' $ac_executable_extensions; do
  10006. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10007. ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10008. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10009. break 2
  10010. fi
  10011. done
  10012. done
  10013. IFS=$as_save_IFS
  10014. fi
  10015. fi
  10016. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  10017. if test -n "$GOC_FOR_TARGET"; then
  10018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  10019. $as_echo "$GOC_FOR_TARGET" >&6; }
  10020. else
  10021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10022. $as_echo "no" >&6; }
  10023. fi
  10024. fi
  10025. if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
  10026. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10027. set dummy ${ncn_progname}; ac_word=$2
  10028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10029. $as_echo_n "checking for $ac_word... " >&6; }
  10030. if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
  10031. $as_echo_n "(cached) " >&6
  10032. else
  10033. if test -n "$GOC_FOR_TARGET"; then
  10034. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  10035. else
  10036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10037. for as_dir in $PATH
  10038. do
  10039. IFS=$as_save_IFS
  10040. test -z "$as_dir" && as_dir=.
  10041. for ac_exec_ext in '' $ac_executable_extensions; do
  10042. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10043. ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
  10044. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10045. break 2
  10046. fi
  10047. done
  10048. done
  10049. IFS=$as_save_IFS
  10050. fi
  10051. fi
  10052. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  10053. if test -n "$GOC_FOR_TARGET"; then
  10054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  10055. $as_echo "$GOC_FOR_TARGET" >&6; }
  10056. else
  10057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10058. $as_echo "no" >&6; }
  10059. fi
  10060. fi
  10061. test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
  10062. done
  10063. fi
  10064. if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
  10065. set dummy gccgo
  10066. if test $build = $target ; then
  10067. GOC_FOR_TARGET="$2"
  10068. else
  10069. GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10070. fi
  10071. else
  10072. GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
  10073. fi
  10074. cat > conftest.c << \EOF
  10075. #ifdef __GNUC__
  10076. gcc_yay;
  10077. #endif
  10078. EOF
  10079. if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
  10080. have_gcc_for_target=yes
  10081. else
  10082. GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
  10083. have_gcc_for_target=no
  10084. fi
  10085. rm conftest.c
  10086. if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
  10087. if test -n "$with_build_time_tools"; then
  10088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
  10089. $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
  10090. if test -x $with_build_time_tools/ar; then
  10091. AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
  10092. ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
  10093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
  10094. $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
  10095. else
  10096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10097. $as_echo "no" >&6; }
  10098. fi
  10099. elif test $build != $host && test $have_gcc_for_target = yes; then
  10100. AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
  10101. test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
  10102. test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
  10103. fi
  10104. fi
  10105. if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10106. # Extract the first word of "ar", so it can be a program name with args.
  10107. set dummy ar; ac_word=$2
  10108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10109. $as_echo_n "checking for $ac_word... " >&6; }
  10110. if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
  10111. $as_echo_n "(cached) " >&6
  10112. else
  10113. case $AR_FOR_TARGET in
  10114. [\\/]* | ?:[\\/]*)
  10115. ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
  10116. ;;
  10117. *)
  10118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10119. for as_dir in $gcc_cv_tool_dirs
  10120. do
  10121. IFS=$as_save_IFS
  10122. test -z "$as_dir" && as_dir=.
  10123. for ac_exec_ext in '' $ac_executable_extensions; do
  10124. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10125. ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10126. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10127. break 2
  10128. fi
  10129. done
  10130. done
  10131. IFS=$as_save_IFS
  10132. ;;
  10133. esac
  10134. fi
  10135. AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
  10136. if test -n "$AR_FOR_TARGET"; then
  10137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  10138. $as_echo "$AR_FOR_TARGET" >&6; }
  10139. else
  10140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10141. $as_echo "no" >&6; }
  10142. fi
  10143. fi
  10144. if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
  10145. if test -n "$AR_FOR_TARGET"; then
  10146. ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
  10147. elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
  10148. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  10149. fi
  10150. if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
  10151. for ncn_progname in ar; do
  10152. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10153. set dummy ${ncn_progname}; ac_word=$2
  10154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10155. $as_echo_n "checking for $ac_word... " >&6; }
  10156. if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
  10157. $as_echo_n "(cached) " >&6
  10158. else
  10159. if test -n "$AR_FOR_TARGET"; then
  10160. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  10161. else
  10162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10163. for as_dir in $PATH
  10164. do
  10165. IFS=$as_save_IFS
  10166. test -z "$as_dir" && as_dir=.
  10167. for ac_exec_ext in '' $ac_executable_extensions; do
  10168. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10169. ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
  10170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10171. break 2
  10172. fi
  10173. done
  10174. done
  10175. IFS=$as_save_IFS
  10176. fi
  10177. fi
  10178. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  10179. if test -n "$AR_FOR_TARGET"; then
  10180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  10181. $as_echo "$AR_FOR_TARGET" >&6; }
  10182. else
  10183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10184. $as_echo "no" >&6; }
  10185. fi
  10186. done
  10187. fi
  10188. if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10189. for ncn_progname in ar; do
  10190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10191. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10192. if test -x $with_build_time_tools/${ncn_progname}; then
  10193. ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10195. $as_echo "yes" >&6; }
  10196. break
  10197. else
  10198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10199. $as_echo "no" >&6; }
  10200. fi
  10201. done
  10202. fi
  10203. if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
  10204. for ncn_progname in ar; do
  10205. if test -n "$ncn_target_tool_prefix"; then
  10206. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10207. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10209. $as_echo_n "checking for $ac_word... " >&6; }
  10210. if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
  10211. $as_echo_n "(cached) " >&6
  10212. else
  10213. if test -n "$AR_FOR_TARGET"; then
  10214. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  10215. else
  10216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10217. for as_dir in $PATH
  10218. do
  10219. IFS=$as_save_IFS
  10220. test -z "$as_dir" && as_dir=.
  10221. for ac_exec_ext in '' $ac_executable_extensions; do
  10222. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10223. ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10224. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10225. break 2
  10226. fi
  10227. done
  10228. done
  10229. IFS=$as_save_IFS
  10230. fi
  10231. fi
  10232. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  10233. if test -n "$AR_FOR_TARGET"; then
  10234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  10235. $as_echo "$AR_FOR_TARGET" >&6; }
  10236. else
  10237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10238. $as_echo "no" >&6; }
  10239. fi
  10240. fi
  10241. if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
  10242. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10243. set dummy ${ncn_progname}; ac_word=$2
  10244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10245. $as_echo_n "checking for $ac_word... " >&6; }
  10246. if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
  10247. $as_echo_n "(cached) " >&6
  10248. else
  10249. if test -n "$AR_FOR_TARGET"; then
  10250. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  10251. else
  10252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10253. for as_dir in $PATH
  10254. do
  10255. IFS=$as_save_IFS
  10256. test -z "$as_dir" && as_dir=.
  10257. for ac_exec_ext in '' $ac_executable_extensions; do
  10258. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10259. ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
  10260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10261. break 2
  10262. fi
  10263. done
  10264. done
  10265. IFS=$as_save_IFS
  10266. fi
  10267. fi
  10268. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  10269. if test -n "$AR_FOR_TARGET"; then
  10270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  10271. $as_echo "$AR_FOR_TARGET" >&6; }
  10272. else
  10273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10274. $as_echo "no" >&6; }
  10275. fi
  10276. fi
  10277. test -n "$ac_cv_prog_AR_FOR_TARGET" && break
  10278. done
  10279. fi
  10280. if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
  10281. set dummy ar
  10282. if test $build = $target ; then
  10283. AR_FOR_TARGET="$2"
  10284. else
  10285. AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10286. fi
  10287. else
  10288. AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
  10289. fi
  10290. else
  10291. AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
  10292. fi
  10293. if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
  10294. if test -n "$with_build_time_tools"; then
  10295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
  10296. $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
  10297. if test -x $with_build_time_tools/as; then
  10298. AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
  10299. ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
  10300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
  10301. $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
  10302. else
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10304. $as_echo "no" >&6; }
  10305. fi
  10306. elif test $build != $host && test $have_gcc_for_target = yes; then
  10307. AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
  10308. test $AS_FOR_TARGET = as && AS_FOR_TARGET=
  10309. test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
  10310. fi
  10311. fi
  10312. if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10313. # Extract the first word of "as", so it can be a program name with args.
  10314. set dummy as; ac_word=$2
  10315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10316. $as_echo_n "checking for $ac_word... " >&6; }
  10317. if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
  10318. $as_echo_n "(cached) " >&6
  10319. else
  10320. case $AS_FOR_TARGET in
  10321. [\\/]* | ?:[\\/]*)
  10322. ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
  10323. ;;
  10324. *)
  10325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10326. for as_dir in $gcc_cv_tool_dirs
  10327. do
  10328. IFS=$as_save_IFS
  10329. test -z "$as_dir" && as_dir=.
  10330. for ac_exec_ext in '' $ac_executable_extensions; do
  10331. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10332. ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10333. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10334. break 2
  10335. fi
  10336. done
  10337. done
  10338. IFS=$as_save_IFS
  10339. ;;
  10340. esac
  10341. fi
  10342. AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
  10343. if test -n "$AS_FOR_TARGET"; then
  10344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  10345. $as_echo "$AS_FOR_TARGET" >&6; }
  10346. else
  10347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10348. $as_echo "no" >&6; }
  10349. fi
  10350. fi
  10351. if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
  10352. if test -n "$AS_FOR_TARGET"; then
  10353. ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
  10354. elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
  10355. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  10356. fi
  10357. if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
  10358. for ncn_progname in as; do
  10359. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10360. set dummy ${ncn_progname}; ac_word=$2
  10361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10362. $as_echo_n "checking for $ac_word... " >&6; }
  10363. if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
  10364. $as_echo_n "(cached) " >&6
  10365. else
  10366. if test -n "$AS_FOR_TARGET"; then
  10367. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  10368. else
  10369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10370. for as_dir in $PATH
  10371. do
  10372. IFS=$as_save_IFS
  10373. test -z "$as_dir" && as_dir=.
  10374. for ac_exec_ext in '' $ac_executable_extensions; do
  10375. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10376. ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
  10377. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10378. break 2
  10379. fi
  10380. done
  10381. done
  10382. IFS=$as_save_IFS
  10383. fi
  10384. fi
  10385. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  10386. if test -n "$AS_FOR_TARGET"; then
  10387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  10388. $as_echo "$AS_FOR_TARGET" >&6; }
  10389. else
  10390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10391. $as_echo "no" >&6; }
  10392. fi
  10393. done
  10394. fi
  10395. if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10396. for ncn_progname in as; do
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10398. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10399. if test -x $with_build_time_tools/${ncn_progname}; then
  10400. ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10402. $as_echo "yes" >&6; }
  10403. break
  10404. else
  10405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10406. $as_echo "no" >&6; }
  10407. fi
  10408. done
  10409. fi
  10410. if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
  10411. for ncn_progname in as; do
  10412. if test -n "$ncn_target_tool_prefix"; then
  10413. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10414. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10416. $as_echo_n "checking for $ac_word... " >&6; }
  10417. if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
  10418. $as_echo_n "(cached) " >&6
  10419. else
  10420. if test -n "$AS_FOR_TARGET"; then
  10421. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  10422. else
  10423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10424. for as_dir in $PATH
  10425. do
  10426. IFS=$as_save_IFS
  10427. test -z "$as_dir" && as_dir=.
  10428. for ac_exec_ext in '' $ac_executable_extensions; do
  10429. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10430. ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10432. break 2
  10433. fi
  10434. done
  10435. done
  10436. IFS=$as_save_IFS
  10437. fi
  10438. fi
  10439. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  10440. if test -n "$AS_FOR_TARGET"; then
  10441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  10442. $as_echo "$AS_FOR_TARGET" >&6; }
  10443. else
  10444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10445. $as_echo "no" >&6; }
  10446. fi
  10447. fi
  10448. if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
  10449. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10450. set dummy ${ncn_progname}; ac_word=$2
  10451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10452. $as_echo_n "checking for $ac_word... " >&6; }
  10453. if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
  10454. $as_echo_n "(cached) " >&6
  10455. else
  10456. if test -n "$AS_FOR_TARGET"; then
  10457. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  10458. else
  10459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10460. for as_dir in $PATH
  10461. do
  10462. IFS=$as_save_IFS
  10463. test -z "$as_dir" && as_dir=.
  10464. for ac_exec_ext in '' $ac_executable_extensions; do
  10465. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10466. ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
  10467. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10468. break 2
  10469. fi
  10470. done
  10471. done
  10472. IFS=$as_save_IFS
  10473. fi
  10474. fi
  10475. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  10476. if test -n "$AS_FOR_TARGET"; then
  10477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  10478. $as_echo "$AS_FOR_TARGET" >&6; }
  10479. else
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10481. $as_echo "no" >&6; }
  10482. fi
  10483. fi
  10484. test -n "$ac_cv_prog_AS_FOR_TARGET" && break
  10485. done
  10486. fi
  10487. if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
  10488. set dummy as
  10489. if test $build = $target ; then
  10490. AS_FOR_TARGET="$2"
  10491. else
  10492. AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10493. fi
  10494. else
  10495. AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
  10496. fi
  10497. else
  10498. AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
  10499. fi
  10500. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
  10501. if test -n "$with_build_time_tools"; then
  10502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
  10503. $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
  10504. if test -x $with_build_time_tools/dlltool; then
  10505. DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
  10506. ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  10507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
  10508. $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
  10509. else
  10510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10511. $as_echo "no" >&6; }
  10512. fi
  10513. elif test $build != $host && test $have_gcc_for_target = yes; then
  10514. DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
  10515. test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
  10516. test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  10517. fi
  10518. fi
  10519. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10520. # Extract the first word of "dlltool", so it can be a program name with args.
  10521. set dummy dlltool; ac_word=$2
  10522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10523. $as_echo_n "checking for $ac_word... " >&6; }
  10524. if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
  10525. $as_echo_n "(cached) " >&6
  10526. else
  10527. case $DLLTOOL_FOR_TARGET in
  10528. [\\/]* | ?:[\\/]*)
  10529. ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
  10530. ;;
  10531. *)
  10532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10533. for as_dir in $gcc_cv_tool_dirs
  10534. do
  10535. IFS=$as_save_IFS
  10536. test -z "$as_dir" && as_dir=.
  10537. for ac_exec_ext in '' $ac_executable_extensions; do
  10538. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10539. ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10541. break 2
  10542. fi
  10543. done
  10544. done
  10545. IFS=$as_save_IFS
  10546. ;;
  10547. esac
  10548. fi
  10549. DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
  10550. if test -n "$DLLTOOL_FOR_TARGET"; then
  10551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10552. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10553. else
  10554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10555. $as_echo "no" >&6; }
  10556. fi
  10557. fi
  10558. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
  10559. if test -n "$DLLTOOL_FOR_TARGET"; then
  10560. ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  10561. elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  10562. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10563. fi
  10564. if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  10565. for ncn_progname in dlltool; do
  10566. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10567. set dummy ${ncn_progname}; ac_word=$2
  10568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10569. $as_echo_n "checking for $ac_word... " >&6; }
  10570. if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
  10571. $as_echo_n "(cached) " >&6
  10572. else
  10573. if test -n "$DLLTOOL_FOR_TARGET"; then
  10574. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  10575. else
  10576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10577. for as_dir in $PATH
  10578. do
  10579. IFS=$as_save_IFS
  10580. test -z "$as_dir" && as_dir=.
  10581. for ac_exec_ext in '' $ac_executable_extensions; do
  10582. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10583. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
  10584. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10585. break 2
  10586. fi
  10587. done
  10588. done
  10589. IFS=$as_save_IFS
  10590. fi
  10591. fi
  10592. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10593. if test -n "$DLLTOOL_FOR_TARGET"; then
  10594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10595. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10596. else
  10597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10598. $as_echo "no" >&6; }
  10599. fi
  10600. done
  10601. fi
  10602. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10603. for ncn_progname in dlltool; do
  10604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10605. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10606. if test -x $with_build_time_tools/${ncn_progname}; then
  10607. ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10609. $as_echo "yes" >&6; }
  10610. break
  10611. else
  10612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10613. $as_echo "no" >&6; }
  10614. fi
  10615. done
  10616. fi
  10617. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  10618. for ncn_progname in dlltool; do
  10619. if test -n "$ncn_target_tool_prefix"; then
  10620. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10621. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10623. $as_echo_n "checking for $ac_word... " >&6; }
  10624. if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
  10625. $as_echo_n "(cached) " >&6
  10626. else
  10627. if test -n "$DLLTOOL_FOR_TARGET"; then
  10628. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  10629. else
  10630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10631. for as_dir in $PATH
  10632. do
  10633. IFS=$as_save_IFS
  10634. test -z "$as_dir" && as_dir=.
  10635. for ac_exec_ext in '' $ac_executable_extensions; do
  10636. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10637. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10639. break 2
  10640. fi
  10641. done
  10642. done
  10643. IFS=$as_save_IFS
  10644. fi
  10645. fi
  10646. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10647. if test -n "$DLLTOOL_FOR_TARGET"; then
  10648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10649. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10650. else
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10652. $as_echo "no" >&6; }
  10653. fi
  10654. fi
  10655. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
  10656. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10657. set dummy ${ncn_progname}; ac_word=$2
  10658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10659. $as_echo_n "checking for $ac_word... " >&6; }
  10660. if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
  10661. $as_echo_n "(cached) " >&6
  10662. else
  10663. if test -n "$DLLTOOL_FOR_TARGET"; then
  10664. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  10665. else
  10666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10667. for as_dir in $PATH
  10668. do
  10669. IFS=$as_save_IFS
  10670. test -z "$as_dir" && as_dir=.
  10671. for ac_exec_ext in '' $ac_executable_extensions; do
  10672. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10673. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
  10674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10675. break 2
  10676. fi
  10677. done
  10678. done
  10679. IFS=$as_save_IFS
  10680. fi
  10681. fi
  10682. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10683. if test -n "$DLLTOOL_FOR_TARGET"; then
  10684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10685. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10686. else
  10687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10688. $as_echo "no" >&6; }
  10689. fi
  10690. fi
  10691. test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
  10692. done
  10693. fi
  10694. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
  10695. set dummy dlltool
  10696. if test $build = $target ; then
  10697. DLLTOOL_FOR_TARGET="$2"
  10698. else
  10699. DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10700. fi
  10701. else
  10702. DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
  10703. fi
  10704. else
  10705. DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
  10706. fi
  10707. if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
  10708. if test -n "$with_build_time_tools"; then
  10709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
  10710. $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
  10711. if test -x $with_build_time_tools/ld; then
  10712. LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
  10713. ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
  10714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
  10715. $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
  10716. else
  10717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10718. $as_echo "no" >&6; }
  10719. fi
  10720. elif test $build != $host && test $have_gcc_for_target = yes; then
  10721. LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
  10722. test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
  10723. test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
  10724. fi
  10725. fi
  10726. if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10727. # Extract the first word of "ld", so it can be a program name with args.
  10728. set dummy ld; ac_word=$2
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10730. $as_echo_n "checking for $ac_word... " >&6; }
  10731. if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
  10732. $as_echo_n "(cached) " >&6
  10733. else
  10734. case $LD_FOR_TARGET in
  10735. [\\/]* | ?:[\\/]*)
  10736. ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
  10737. ;;
  10738. *)
  10739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10740. for as_dir in $gcc_cv_tool_dirs
  10741. do
  10742. IFS=$as_save_IFS
  10743. test -z "$as_dir" && as_dir=.
  10744. for ac_exec_ext in '' $ac_executable_extensions; do
  10745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10746. ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10748. break 2
  10749. fi
  10750. done
  10751. done
  10752. IFS=$as_save_IFS
  10753. ;;
  10754. esac
  10755. fi
  10756. LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
  10757. if test -n "$LD_FOR_TARGET"; then
  10758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10759. $as_echo "$LD_FOR_TARGET" >&6; }
  10760. else
  10761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10762. $as_echo "no" >&6; }
  10763. fi
  10764. fi
  10765. if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
  10766. if test -n "$LD_FOR_TARGET"; then
  10767. ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
  10768. elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
  10769. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10770. fi
  10771. if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
  10772. for ncn_progname in ld; do
  10773. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10774. set dummy ${ncn_progname}; ac_word=$2
  10775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10776. $as_echo_n "checking for $ac_word... " >&6; }
  10777. if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
  10778. $as_echo_n "(cached) " >&6
  10779. else
  10780. if test -n "$LD_FOR_TARGET"; then
  10781. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10782. else
  10783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10784. for as_dir in $PATH
  10785. do
  10786. IFS=$as_save_IFS
  10787. test -z "$as_dir" && as_dir=.
  10788. for ac_exec_ext in '' $ac_executable_extensions; do
  10789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10790. ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
  10791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10792. break 2
  10793. fi
  10794. done
  10795. done
  10796. IFS=$as_save_IFS
  10797. fi
  10798. fi
  10799. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10800. if test -n "$LD_FOR_TARGET"; then
  10801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10802. $as_echo "$LD_FOR_TARGET" >&6; }
  10803. else
  10804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10805. $as_echo "no" >&6; }
  10806. fi
  10807. done
  10808. fi
  10809. if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10810. for ncn_progname in ld; do
  10811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10812. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10813. if test -x $with_build_time_tools/${ncn_progname}; then
  10814. ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10816. $as_echo "yes" >&6; }
  10817. break
  10818. else
  10819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10820. $as_echo "no" >&6; }
  10821. fi
  10822. done
  10823. fi
  10824. if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
  10825. for ncn_progname in ld; do
  10826. if test -n "$ncn_target_tool_prefix"; then
  10827. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10828. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10830. $as_echo_n "checking for $ac_word... " >&6; }
  10831. if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
  10832. $as_echo_n "(cached) " >&6
  10833. else
  10834. if test -n "$LD_FOR_TARGET"; then
  10835. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10836. else
  10837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10838. for as_dir in $PATH
  10839. do
  10840. IFS=$as_save_IFS
  10841. test -z "$as_dir" && as_dir=.
  10842. for ac_exec_ext in '' $ac_executable_extensions; do
  10843. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10844. ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10846. break 2
  10847. fi
  10848. done
  10849. done
  10850. IFS=$as_save_IFS
  10851. fi
  10852. fi
  10853. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10854. if test -n "$LD_FOR_TARGET"; then
  10855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10856. $as_echo "$LD_FOR_TARGET" >&6; }
  10857. else
  10858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10859. $as_echo "no" >&6; }
  10860. fi
  10861. fi
  10862. if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
  10863. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10864. set dummy ${ncn_progname}; ac_word=$2
  10865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10866. $as_echo_n "checking for $ac_word... " >&6; }
  10867. if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
  10868. $as_echo_n "(cached) " >&6
  10869. else
  10870. if test -n "$LD_FOR_TARGET"; then
  10871. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10872. else
  10873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10874. for as_dir in $PATH
  10875. do
  10876. IFS=$as_save_IFS
  10877. test -z "$as_dir" && as_dir=.
  10878. for ac_exec_ext in '' $ac_executable_extensions; do
  10879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10880. ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
  10881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10882. break 2
  10883. fi
  10884. done
  10885. done
  10886. IFS=$as_save_IFS
  10887. fi
  10888. fi
  10889. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10890. if test -n "$LD_FOR_TARGET"; then
  10891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10892. $as_echo "$LD_FOR_TARGET" >&6; }
  10893. else
  10894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10895. $as_echo "no" >&6; }
  10896. fi
  10897. fi
  10898. test -n "$ac_cv_prog_LD_FOR_TARGET" && break
  10899. done
  10900. fi
  10901. if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
  10902. set dummy ld
  10903. if test $build = $target ; then
  10904. LD_FOR_TARGET="$2"
  10905. else
  10906. LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10907. fi
  10908. else
  10909. LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
  10910. fi
  10911. else
  10912. LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
  10913. fi
  10914. if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
  10915. if test -n "$with_build_time_tools"; then
  10916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
  10917. $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
  10918. if test -x $with_build_time_tools/lipo; then
  10919. LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
  10920. ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
  10922. $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
  10923. else
  10924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10925. $as_echo "no" >&6; }
  10926. fi
  10927. elif test $build != $host && test $have_gcc_for_target = yes; then
  10928. LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
  10929. test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
  10930. test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10931. fi
  10932. fi
  10933. if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10934. # Extract the first word of "lipo", so it can be a program name with args.
  10935. set dummy lipo; ac_word=$2
  10936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10937. $as_echo_n "checking for $ac_word... " >&6; }
  10938. if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
  10939. $as_echo_n "(cached) " >&6
  10940. else
  10941. case $LIPO_FOR_TARGET in
  10942. [\\/]* | ?:[\\/]*)
  10943. ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
  10944. ;;
  10945. *)
  10946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10947. for as_dir in $gcc_cv_tool_dirs
  10948. do
  10949. IFS=$as_save_IFS
  10950. test -z "$as_dir" && as_dir=.
  10951. for ac_exec_ext in '' $ac_executable_extensions; do
  10952. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10953. ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10954. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10955. break 2
  10956. fi
  10957. done
  10958. done
  10959. IFS=$as_save_IFS
  10960. ;;
  10961. esac
  10962. fi
  10963. LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
  10964. if test -n "$LIPO_FOR_TARGET"; then
  10965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10966. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10967. else
  10968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10969. $as_echo "no" >&6; }
  10970. fi
  10971. fi
  10972. if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
  10973. if test -n "$LIPO_FOR_TARGET"; then
  10974. ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10975. elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
  10976. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10977. fi
  10978. if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
  10979. for ncn_progname in lipo; do
  10980. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10981. set dummy ${ncn_progname}; ac_word=$2
  10982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10983. $as_echo_n "checking for $ac_word... " >&6; }
  10984. if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
  10985. $as_echo_n "(cached) " >&6
  10986. else
  10987. if test -n "$LIPO_FOR_TARGET"; then
  10988. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  10989. else
  10990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10991. for as_dir in $PATH
  10992. do
  10993. IFS=$as_save_IFS
  10994. test -z "$as_dir" && as_dir=.
  10995. for ac_exec_ext in '' $ac_executable_extensions; do
  10996. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10997. ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
  10998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10999. break 2
  11000. fi
  11001. done
  11002. done
  11003. IFS=$as_save_IFS
  11004. fi
  11005. fi
  11006. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  11007. if test -n "$LIPO_FOR_TARGET"; then
  11008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  11009. $as_echo "$LIPO_FOR_TARGET" >&6; }
  11010. else
  11011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11012. $as_echo "no" >&6; }
  11013. fi
  11014. done
  11015. fi
  11016. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11017. for ncn_progname in lipo; do
  11018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11019. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11020. if test -x $with_build_time_tools/${ncn_progname}; then
  11021. ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11023. $as_echo "yes" >&6; }
  11024. break
  11025. else
  11026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11027. $as_echo "no" >&6; }
  11028. fi
  11029. done
  11030. fi
  11031. if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
  11032. for ncn_progname in lipo; do
  11033. if test -n "$ncn_target_tool_prefix"; then
  11034. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11035. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11037. $as_echo_n "checking for $ac_word... " >&6; }
  11038. if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
  11039. $as_echo_n "(cached) " >&6
  11040. else
  11041. if test -n "$LIPO_FOR_TARGET"; then
  11042. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  11043. else
  11044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11045. for as_dir in $PATH
  11046. do
  11047. IFS=$as_save_IFS
  11048. test -z "$as_dir" && as_dir=.
  11049. for ac_exec_ext in '' $ac_executable_extensions; do
  11050. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11051. ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11052. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11053. break 2
  11054. fi
  11055. done
  11056. done
  11057. IFS=$as_save_IFS
  11058. fi
  11059. fi
  11060. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  11061. if test -n "$LIPO_FOR_TARGET"; then
  11062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  11063. $as_echo "$LIPO_FOR_TARGET" >&6; }
  11064. else
  11065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11066. $as_echo "no" >&6; }
  11067. fi
  11068. fi
  11069. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
  11070. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11071. set dummy ${ncn_progname}; ac_word=$2
  11072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11073. $as_echo_n "checking for $ac_word... " >&6; }
  11074. if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
  11075. $as_echo_n "(cached) " >&6
  11076. else
  11077. if test -n "$LIPO_FOR_TARGET"; then
  11078. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  11079. else
  11080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11081. for as_dir in $PATH
  11082. do
  11083. IFS=$as_save_IFS
  11084. test -z "$as_dir" && as_dir=.
  11085. for ac_exec_ext in '' $ac_executable_extensions; do
  11086. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11087. ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
  11088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11089. break 2
  11090. fi
  11091. done
  11092. done
  11093. IFS=$as_save_IFS
  11094. fi
  11095. fi
  11096. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  11097. if test -n "$LIPO_FOR_TARGET"; then
  11098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  11099. $as_echo "$LIPO_FOR_TARGET" >&6; }
  11100. else
  11101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11102. $as_echo "no" >&6; }
  11103. fi
  11104. fi
  11105. test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
  11106. done
  11107. fi
  11108. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
  11109. set dummy lipo
  11110. if test $build = $target ; then
  11111. LIPO_FOR_TARGET="$2"
  11112. else
  11113. LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11114. fi
  11115. else
  11116. LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
  11117. fi
  11118. else
  11119. LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
  11120. fi
  11121. if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
  11122. if test -n "$with_build_time_tools"; then
  11123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
  11124. $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
  11125. if test -x $with_build_time_tools/nm; then
  11126. NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
  11127. ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
  11128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
  11129. $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
  11130. else
  11131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11132. $as_echo "no" >&6; }
  11133. fi
  11134. elif test $build != $host && test $have_gcc_for_target = yes; then
  11135. NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
  11136. test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
  11137. test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
  11138. fi
  11139. fi
  11140. if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11141. # Extract the first word of "nm", so it can be a program name with args.
  11142. set dummy nm; ac_word=$2
  11143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11144. $as_echo_n "checking for $ac_word... " >&6; }
  11145. if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
  11146. $as_echo_n "(cached) " >&6
  11147. else
  11148. case $NM_FOR_TARGET in
  11149. [\\/]* | ?:[\\/]*)
  11150. ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
  11151. ;;
  11152. *)
  11153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11154. for as_dir in $gcc_cv_tool_dirs
  11155. do
  11156. IFS=$as_save_IFS
  11157. test -z "$as_dir" && as_dir=.
  11158. for ac_exec_ext in '' $ac_executable_extensions; do
  11159. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11160. ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11162. break 2
  11163. fi
  11164. done
  11165. done
  11166. IFS=$as_save_IFS
  11167. ;;
  11168. esac
  11169. fi
  11170. NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
  11171. if test -n "$NM_FOR_TARGET"; then
  11172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  11173. $as_echo "$NM_FOR_TARGET" >&6; }
  11174. else
  11175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11176. $as_echo "no" >&6; }
  11177. fi
  11178. fi
  11179. if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
  11180. if test -n "$NM_FOR_TARGET"; then
  11181. ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
  11182. elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
  11183. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  11184. fi
  11185. if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
  11186. for ncn_progname in nm; do
  11187. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11188. set dummy ${ncn_progname}; ac_word=$2
  11189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11190. $as_echo_n "checking for $ac_word... " >&6; }
  11191. if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
  11192. $as_echo_n "(cached) " >&6
  11193. else
  11194. if test -n "$NM_FOR_TARGET"; then
  11195. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  11196. else
  11197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11198. for as_dir in $PATH
  11199. do
  11200. IFS=$as_save_IFS
  11201. test -z "$as_dir" && as_dir=.
  11202. for ac_exec_ext in '' $ac_executable_extensions; do
  11203. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11204. ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
  11205. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11206. break 2
  11207. fi
  11208. done
  11209. done
  11210. IFS=$as_save_IFS
  11211. fi
  11212. fi
  11213. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  11214. if test -n "$NM_FOR_TARGET"; then
  11215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  11216. $as_echo "$NM_FOR_TARGET" >&6; }
  11217. else
  11218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11219. $as_echo "no" >&6; }
  11220. fi
  11221. done
  11222. fi
  11223. if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11224. for ncn_progname in nm; do
  11225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11226. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11227. if test -x $with_build_time_tools/${ncn_progname}; then
  11228. ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11230. $as_echo "yes" >&6; }
  11231. break
  11232. else
  11233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11234. $as_echo "no" >&6; }
  11235. fi
  11236. done
  11237. fi
  11238. if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
  11239. for ncn_progname in nm; do
  11240. if test -n "$ncn_target_tool_prefix"; then
  11241. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11242. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11244. $as_echo_n "checking for $ac_word... " >&6; }
  11245. if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
  11246. $as_echo_n "(cached) " >&6
  11247. else
  11248. if test -n "$NM_FOR_TARGET"; then
  11249. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  11250. else
  11251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11252. for as_dir in $PATH
  11253. do
  11254. IFS=$as_save_IFS
  11255. test -z "$as_dir" && as_dir=.
  11256. for ac_exec_ext in '' $ac_executable_extensions; do
  11257. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11258. ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11260. break 2
  11261. fi
  11262. done
  11263. done
  11264. IFS=$as_save_IFS
  11265. fi
  11266. fi
  11267. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  11268. if test -n "$NM_FOR_TARGET"; then
  11269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  11270. $as_echo "$NM_FOR_TARGET" >&6; }
  11271. else
  11272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11273. $as_echo "no" >&6; }
  11274. fi
  11275. fi
  11276. if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
  11277. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11278. set dummy ${ncn_progname}; ac_word=$2
  11279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11280. $as_echo_n "checking for $ac_word... " >&6; }
  11281. if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
  11282. $as_echo_n "(cached) " >&6
  11283. else
  11284. if test -n "$NM_FOR_TARGET"; then
  11285. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  11286. else
  11287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11288. for as_dir in $PATH
  11289. do
  11290. IFS=$as_save_IFS
  11291. test -z "$as_dir" && as_dir=.
  11292. for ac_exec_ext in '' $ac_executable_extensions; do
  11293. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11294. ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
  11295. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11296. break 2
  11297. fi
  11298. done
  11299. done
  11300. IFS=$as_save_IFS
  11301. fi
  11302. fi
  11303. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  11304. if test -n "$NM_FOR_TARGET"; then
  11305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  11306. $as_echo "$NM_FOR_TARGET" >&6; }
  11307. else
  11308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11309. $as_echo "no" >&6; }
  11310. fi
  11311. fi
  11312. test -n "$ac_cv_prog_NM_FOR_TARGET" && break
  11313. done
  11314. fi
  11315. if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
  11316. set dummy nm
  11317. if test $build = $target ; then
  11318. NM_FOR_TARGET="$2"
  11319. else
  11320. NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11321. fi
  11322. else
  11323. NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
  11324. fi
  11325. else
  11326. NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
  11327. fi
  11328. if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
  11329. if test -n "$with_build_time_tools"; then
  11330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
  11331. $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
  11332. if test -x $with_build_time_tools/objcopy; then
  11333. OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
  11334. ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
  11335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
  11336. $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
  11337. else
  11338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11339. $as_echo "no" >&6; }
  11340. fi
  11341. elif test $build != $host && test $have_gcc_for_target = yes; then
  11342. OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
  11343. test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
  11344. test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
  11345. fi
  11346. fi
  11347. if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11348. # Extract the first word of "objcopy", so it can be a program name with args.
  11349. set dummy objcopy; ac_word=$2
  11350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11351. $as_echo_n "checking for $ac_word... " >&6; }
  11352. if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
  11353. $as_echo_n "(cached) " >&6
  11354. else
  11355. case $OBJCOPY_FOR_TARGET in
  11356. [\\/]* | ?:[\\/]*)
  11357. ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
  11358. ;;
  11359. *)
  11360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11361. for as_dir in $gcc_cv_tool_dirs
  11362. do
  11363. IFS=$as_save_IFS
  11364. test -z "$as_dir" && as_dir=.
  11365. for ac_exec_ext in '' $ac_executable_extensions; do
  11366. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11367. ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11369. break 2
  11370. fi
  11371. done
  11372. done
  11373. IFS=$as_save_IFS
  11374. ;;
  11375. esac
  11376. fi
  11377. OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
  11378. if test -n "$OBJCOPY_FOR_TARGET"; then
  11379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  11380. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  11381. else
  11382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11383. $as_echo "no" >&6; }
  11384. fi
  11385. fi
  11386. if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
  11387. if test -n "$OBJCOPY_FOR_TARGET"; then
  11388. ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
  11389. elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
  11390. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  11391. fi
  11392. if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
  11393. for ncn_progname in objcopy; do
  11394. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11395. set dummy ${ncn_progname}; ac_word=$2
  11396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11397. $as_echo_n "checking for $ac_word... " >&6; }
  11398. if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
  11399. $as_echo_n "(cached) " >&6
  11400. else
  11401. if test -n "$OBJCOPY_FOR_TARGET"; then
  11402. ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
  11403. else
  11404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11405. for as_dir in $PATH
  11406. do
  11407. IFS=$as_save_IFS
  11408. test -z "$as_dir" && as_dir=.
  11409. for ac_exec_ext in '' $ac_executable_extensions; do
  11410. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11411. ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
  11412. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11413. break 2
  11414. fi
  11415. done
  11416. done
  11417. IFS=$as_save_IFS
  11418. fi
  11419. fi
  11420. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  11421. if test -n "$OBJCOPY_FOR_TARGET"; then
  11422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  11423. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  11424. else
  11425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11426. $as_echo "no" >&6; }
  11427. fi
  11428. done
  11429. fi
  11430. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11431. for ncn_progname in objcopy; do
  11432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11433. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11434. if test -x $with_build_time_tools/${ncn_progname}; then
  11435. ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11437. $as_echo "yes" >&6; }
  11438. break
  11439. else
  11440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11441. $as_echo "no" >&6; }
  11442. fi
  11443. done
  11444. fi
  11445. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
  11446. for ncn_progname in objcopy; do
  11447. if test -n "$ncn_target_tool_prefix"; then
  11448. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11449. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11451. $as_echo_n "checking for $ac_word... " >&6; }
  11452. if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
  11453. $as_echo_n "(cached) " >&6
  11454. else
  11455. if test -n "$OBJCOPY_FOR_TARGET"; then
  11456. ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
  11457. else
  11458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11459. for as_dir in $PATH
  11460. do
  11461. IFS=$as_save_IFS
  11462. test -z "$as_dir" && as_dir=.
  11463. for ac_exec_ext in '' $ac_executable_extensions; do
  11464. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11465. ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11467. break 2
  11468. fi
  11469. done
  11470. done
  11471. IFS=$as_save_IFS
  11472. fi
  11473. fi
  11474. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  11475. if test -n "$OBJCOPY_FOR_TARGET"; then
  11476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  11477. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  11478. else
  11479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11480. $as_echo "no" >&6; }
  11481. fi
  11482. fi
  11483. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
  11484. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11485. set dummy ${ncn_progname}; ac_word=$2
  11486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11487. $as_echo_n "checking for $ac_word... " >&6; }
  11488. if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
  11489. $as_echo_n "(cached) " >&6
  11490. else
  11491. if test -n "$OBJCOPY_FOR_TARGET"; then
  11492. ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
  11493. else
  11494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11495. for as_dir in $PATH
  11496. do
  11497. IFS=$as_save_IFS
  11498. test -z "$as_dir" && as_dir=.
  11499. for ac_exec_ext in '' $ac_executable_extensions; do
  11500. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11501. ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
  11502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11503. break 2
  11504. fi
  11505. done
  11506. done
  11507. IFS=$as_save_IFS
  11508. fi
  11509. fi
  11510. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  11511. if test -n "$OBJCOPY_FOR_TARGET"; then
  11512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  11513. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  11514. else
  11515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11516. $as_echo "no" >&6; }
  11517. fi
  11518. fi
  11519. test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
  11520. done
  11521. fi
  11522. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
  11523. set dummy objcopy
  11524. if test $build = $target ; then
  11525. OBJCOPY_FOR_TARGET="$2"
  11526. else
  11527. OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11528. fi
  11529. else
  11530. OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
  11531. fi
  11532. else
  11533. OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
  11534. fi
  11535. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
  11536. if test -n "$with_build_time_tools"; then
  11537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
  11538. $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
  11539. if test -x $with_build_time_tools/objdump; then
  11540. OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
  11541. ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  11542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
  11543. $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
  11544. else
  11545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11546. $as_echo "no" >&6; }
  11547. fi
  11548. elif test $build != $host && test $have_gcc_for_target = yes; then
  11549. OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
  11550. test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
  11551. test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  11552. fi
  11553. fi
  11554. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11555. # Extract the first word of "objdump", so it can be a program name with args.
  11556. set dummy objdump; ac_word=$2
  11557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11558. $as_echo_n "checking for $ac_word... " >&6; }
  11559. if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
  11560. $as_echo_n "(cached) " >&6
  11561. else
  11562. case $OBJDUMP_FOR_TARGET in
  11563. [\\/]* | ?:[\\/]*)
  11564. ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
  11565. ;;
  11566. *)
  11567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11568. for as_dir in $gcc_cv_tool_dirs
  11569. do
  11570. IFS=$as_save_IFS
  11571. test -z "$as_dir" && as_dir=.
  11572. for ac_exec_ext in '' $ac_executable_extensions; do
  11573. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11574. ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11576. break 2
  11577. fi
  11578. done
  11579. done
  11580. IFS=$as_save_IFS
  11581. ;;
  11582. esac
  11583. fi
  11584. OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
  11585. if test -n "$OBJDUMP_FOR_TARGET"; then
  11586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  11587. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  11588. else
  11589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11590. $as_echo "no" >&6; }
  11591. fi
  11592. fi
  11593. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
  11594. if test -n "$OBJDUMP_FOR_TARGET"; then
  11595. ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  11596. elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  11597. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  11598. fi
  11599. if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  11600. for ncn_progname in objdump; do
  11601. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11602. set dummy ${ncn_progname}; ac_word=$2
  11603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11604. $as_echo_n "checking for $ac_word... " >&6; }
  11605. if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
  11606. $as_echo_n "(cached) " >&6
  11607. else
  11608. if test -n "$OBJDUMP_FOR_TARGET"; then
  11609. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  11610. else
  11611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11612. for as_dir in $PATH
  11613. do
  11614. IFS=$as_save_IFS
  11615. test -z "$as_dir" && as_dir=.
  11616. for ac_exec_ext in '' $ac_executable_extensions; do
  11617. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11618. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
  11619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11620. break 2
  11621. fi
  11622. done
  11623. done
  11624. IFS=$as_save_IFS
  11625. fi
  11626. fi
  11627. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  11628. if test -n "$OBJDUMP_FOR_TARGET"; then
  11629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  11630. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  11631. else
  11632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11633. $as_echo "no" >&6; }
  11634. fi
  11635. done
  11636. fi
  11637. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11638. for ncn_progname in objdump; do
  11639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11640. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11641. if test -x $with_build_time_tools/${ncn_progname}; then
  11642. ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11644. $as_echo "yes" >&6; }
  11645. break
  11646. else
  11647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11648. $as_echo "no" >&6; }
  11649. fi
  11650. done
  11651. fi
  11652. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  11653. for ncn_progname in objdump; do
  11654. if test -n "$ncn_target_tool_prefix"; then
  11655. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11656. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11658. $as_echo_n "checking for $ac_word... " >&6; }
  11659. if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
  11660. $as_echo_n "(cached) " >&6
  11661. else
  11662. if test -n "$OBJDUMP_FOR_TARGET"; then
  11663. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  11664. else
  11665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11666. for as_dir in $PATH
  11667. do
  11668. IFS=$as_save_IFS
  11669. test -z "$as_dir" && as_dir=.
  11670. for ac_exec_ext in '' $ac_executable_extensions; do
  11671. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11672. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11674. break 2
  11675. fi
  11676. done
  11677. done
  11678. IFS=$as_save_IFS
  11679. fi
  11680. fi
  11681. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  11682. if test -n "$OBJDUMP_FOR_TARGET"; then
  11683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  11684. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  11685. else
  11686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11687. $as_echo "no" >&6; }
  11688. fi
  11689. fi
  11690. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
  11691. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11692. set dummy ${ncn_progname}; ac_word=$2
  11693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11694. $as_echo_n "checking for $ac_word... " >&6; }
  11695. if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
  11696. $as_echo_n "(cached) " >&6
  11697. else
  11698. if test -n "$OBJDUMP_FOR_TARGET"; then
  11699. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  11700. else
  11701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11702. for as_dir in $PATH
  11703. do
  11704. IFS=$as_save_IFS
  11705. test -z "$as_dir" && as_dir=.
  11706. for ac_exec_ext in '' $ac_executable_extensions; do
  11707. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11708. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
  11709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11710. break 2
  11711. fi
  11712. done
  11713. done
  11714. IFS=$as_save_IFS
  11715. fi
  11716. fi
  11717. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  11718. if test -n "$OBJDUMP_FOR_TARGET"; then
  11719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  11720. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  11721. else
  11722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11723. $as_echo "no" >&6; }
  11724. fi
  11725. fi
  11726. test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
  11727. done
  11728. fi
  11729. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
  11730. set dummy objdump
  11731. if test $build = $target ; then
  11732. OBJDUMP_FOR_TARGET="$2"
  11733. else
  11734. OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11735. fi
  11736. else
  11737. OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
  11738. fi
  11739. else
  11740. OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
  11741. fi
  11742. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
  11743. if test -n "$with_build_time_tools"; then
  11744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
  11745. $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
  11746. if test -x $with_build_time_tools/ranlib; then
  11747. RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
  11748. ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  11749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
  11750. $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
  11751. else
  11752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11753. $as_echo "no" >&6; }
  11754. fi
  11755. elif test $build != $host && test $have_gcc_for_target = yes; then
  11756. RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
  11757. test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
  11758. test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  11759. fi
  11760. fi
  11761. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11762. # Extract the first word of "ranlib", so it can be a program name with args.
  11763. set dummy ranlib; ac_word=$2
  11764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11765. $as_echo_n "checking for $ac_word... " >&6; }
  11766. if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
  11767. $as_echo_n "(cached) " >&6
  11768. else
  11769. case $RANLIB_FOR_TARGET in
  11770. [\\/]* | ?:[\\/]*)
  11771. ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
  11772. ;;
  11773. *)
  11774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11775. for as_dir in $gcc_cv_tool_dirs
  11776. do
  11777. IFS=$as_save_IFS
  11778. test -z "$as_dir" && as_dir=.
  11779. for ac_exec_ext in '' $ac_executable_extensions; do
  11780. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11781. ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11782. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11783. break 2
  11784. fi
  11785. done
  11786. done
  11787. IFS=$as_save_IFS
  11788. ;;
  11789. esac
  11790. fi
  11791. RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
  11792. if test -n "$RANLIB_FOR_TARGET"; then
  11793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11794. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11795. else
  11796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11797. $as_echo "no" >&6; }
  11798. fi
  11799. fi
  11800. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
  11801. if test -n "$RANLIB_FOR_TARGET"; then
  11802. ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  11803. elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  11804. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11805. fi
  11806. if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  11807. for ncn_progname in ranlib; do
  11808. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11809. set dummy ${ncn_progname}; ac_word=$2
  11810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11811. $as_echo_n "checking for $ac_word... " >&6; }
  11812. if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
  11813. $as_echo_n "(cached) " >&6
  11814. else
  11815. if test -n "$RANLIB_FOR_TARGET"; then
  11816. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  11817. else
  11818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11819. for as_dir in $PATH
  11820. do
  11821. IFS=$as_save_IFS
  11822. test -z "$as_dir" && as_dir=.
  11823. for ac_exec_ext in '' $ac_executable_extensions; do
  11824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11825. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
  11826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11827. break 2
  11828. fi
  11829. done
  11830. done
  11831. IFS=$as_save_IFS
  11832. fi
  11833. fi
  11834. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11835. if test -n "$RANLIB_FOR_TARGET"; then
  11836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11837. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11838. else
  11839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11840. $as_echo "no" >&6; }
  11841. fi
  11842. done
  11843. fi
  11844. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11845. for ncn_progname in ranlib; do
  11846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11847. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11848. if test -x $with_build_time_tools/${ncn_progname}; then
  11849. ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11851. $as_echo "yes" >&6; }
  11852. break
  11853. else
  11854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11855. $as_echo "no" >&6; }
  11856. fi
  11857. done
  11858. fi
  11859. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  11860. for ncn_progname in ranlib; do
  11861. if test -n "$ncn_target_tool_prefix"; then
  11862. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11863. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11865. $as_echo_n "checking for $ac_word... " >&6; }
  11866. if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
  11867. $as_echo_n "(cached) " >&6
  11868. else
  11869. if test -n "$RANLIB_FOR_TARGET"; then
  11870. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  11871. else
  11872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11873. for as_dir in $PATH
  11874. do
  11875. IFS=$as_save_IFS
  11876. test -z "$as_dir" && as_dir=.
  11877. for ac_exec_ext in '' $ac_executable_extensions; do
  11878. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11879. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11881. break 2
  11882. fi
  11883. done
  11884. done
  11885. IFS=$as_save_IFS
  11886. fi
  11887. fi
  11888. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11889. if test -n "$RANLIB_FOR_TARGET"; then
  11890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11891. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11892. else
  11893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11894. $as_echo "no" >&6; }
  11895. fi
  11896. fi
  11897. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
  11898. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11899. set dummy ${ncn_progname}; ac_word=$2
  11900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11901. $as_echo_n "checking for $ac_word... " >&6; }
  11902. if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
  11903. $as_echo_n "(cached) " >&6
  11904. else
  11905. if test -n "$RANLIB_FOR_TARGET"; then
  11906. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  11907. else
  11908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11909. for as_dir in $PATH
  11910. do
  11911. IFS=$as_save_IFS
  11912. test -z "$as_dir" && as_dir=.
  11913. for ac_exec_ext in '' $ac_executable_extensions; do
  11914. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11915. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
  11916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11917. break 2
  11918. fi
  11919. done
  11920. done
  11921. IFS=$as_save_IFS
  11922. fi
  11923. fi
  11924. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11925. if test -n "$RANLIB_FOR_TARGET"; then
  11926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11927. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11928. else
  11929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11930. $as_echo "no" >&6; }
  11931. fi
  11932. fi
  11933. test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
  11934. done
  11935. fi
  11936. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
  11937. set dummy ranlib
  11938. if test $build = $target ; then
  11939. RANLIB_FOR_TARGET="$2"
  11940. else
  11941. RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11942. fi
  11943. else
  11944. RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
  11945. fi
  11946. else
  11947. RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
  11948. fi
  11949. if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
  11950. if test -n "$with_build_time_tools"; then
  11951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
  11952. $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
  11953. if test -x $with_build_time_tools/readelf; then
  11954. READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
  11955. ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
  11956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
  11957. $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
  11958. else
  11959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11960. $as_echo "no" >&6; }
  11961. fi
  11962. elif test $build != $host && test $have_gcc_for_target = yes; then
  11963. READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
  11964. test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
  11965. test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
  11966. fi
  11967. fi
  11968. if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11969. # Extract the first word of "readelf", so it can be a program name with args.
  11970. set dummy readelf; ac_word=$2
  11971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11972. $as_echo_n "checking for $ac_word... " >&6; }
  11973. if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
  11974. $as_echo_n "(cached) " >&6
  11975. else
  11976. case $READELF_FOR_TARGET in
  11977. [\\/]* | ?:[\\/]*)
  11978. ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
  11979. ;;
  11980. *)
  11981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11982. for as_dir in $gcc_cv_tool_dirs
  11983. do
  11984. IFS=$as_save_IFS
  11985. test -z "$as_dir" && as_dir=.
  11986. for ac_exec_ext in '' $ac_executable_extensions; do
  11987. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11988. ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11989. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11990. break 2
  11991. fi
  11992. done
  11993. done
  11994. IFS=$as_save_IFS
  11995. ;;
  11996. esac
  11997. fi
  11998. READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
  11999. if test -n "$READELF_FOR_TARGET"; then
  12000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  12001. $as_echo "$READELF_FOR_TARGET" >&6; }
  12002. else
  12003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12004. $as_echo "no" >&6; }
  12005. fi
  12006. fi
  12007. if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
  12008. if test -n "$READELF_FOR_TARGET"; then
  12009. ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
  12010. elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
  12011. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  12012. fi
  12013. if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
  12014. for ncn_progname in readelf; do
  12015. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12016. set dummy ${ncn_progname}; ac_word=$2
  12017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12018. $as_echo_n "checking for $ac_word... " >&6; }
  12019. if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
  12020. $as_echo_n "(cached) " >&6
  12021. else
  12022. if test -n "$READELF_FOR_TARGET"; then
  12023. ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
  12024. else
  12025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12026. for as_dir in $PATH
  12027. do
  12028. IFS=$as_save_IFS
  12029. test -z "$as_dir" && as_dir=.
  12030. for ac_exec_ext in '' $ac_executable_extensions; do
  12031. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12032. ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
  12033. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12034. break 2
  12035. fi
  12036. done
  12037. done
  12038. IFS=$as_save_IFS
  12039. fi
  12040. fi
  12041. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  12042. if test -n "$READELF_FOR_TARGET"; then
  12043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  12044. $as_echo "$READELF_FOR_TARGET" >&6; }
  12045. else
  12046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12047. $as_echo "no" >&6; }
  12048. fi
  12049. done
  12050. fi
  12051. if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
  12052. for ncn_progname in readelf; do
  12053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  12054. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  12055. if test -x $with_build_time_tools/${ncn_progname}; then
  12056. ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  12057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12058. $as_echo "yes" >&6; }
  12059. break
  12060. else
  12061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12062. $as_echo "no" >&6; }
  12063. fi
  12064. done
  12065. fi
  12066. if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
  12067. for ncn_progname in readelf; do
  12068. if test -n "$ncn_target_tool_prefix"; then
  12069. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  12070. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  12071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12072. $as_echo_n "checking for $ac_word... " >&6; }
  12073. if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
  12074. $as_echo_n "(cached) " >&6
  12075. else
  12076. if test -n "$READELF_FOR_TARGET"; then
  12077. ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
  12078. else
  12079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12080. for as_dir in $PATH
  12081. do
  12082. IFS=$as_save_IFS
  12083. test -z "$as_dir" && as_dir=.
  12084. for ac_exec_ext in '' $ac_executable_extensions; do
  12085. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12086. ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  12087. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12088. break 2
  12089. fi
  12090. done
  12091. done
  12092. IFS=$as_save_IFS
  12093. fi
  12094. fi
  12095. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  12096. if test -n "$READELF_FOR_TARGET"; then
  12097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  12098. $as_echo "$READELF_FOR_TARGET" >&6; }
  12099. else
  12100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12101. $as_echo "no" >&6; }
  12102. fi
  12103. fi
  12104. if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
  12105. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12106. set dummy ${ncn_progname}; ac_word=$2
  12107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12108. $as_echo_n "checking for $ac_word... " >&6; }
  12109. if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
  12110. $as_echo_n "(cached) " >&6
  12111. else
  12112. if test -n "$READELF_FOR_TARGET"; then
  12113. ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
  12114. else
  12115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12116. for as_dir in $PATH
  12117. do
  12118. IFS=$as_save_IFS
  12119. test -z "$as_dir" && as_dir=.
  12120. for ac_exec_ext in '' $ac_executable_extensions; do
  12121. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12122. ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
  12123. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12124. break 2
  12125. fi
  12126. done
  12127. done
  12128. IFS=$as_save_IFS
  12129. fi
  12130. fi
  12131. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  12132. if test -n "$READELF_FOR_TARGET"; then
  12133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  12134. $as_echo "$READELF_FOR_TARGET" >&6; }
  12135. else
  12136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12137. $as_echo "no" >&6; }
  12138. fi
  12139. fi
  12140. test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
  12141. done
  12142. fi
  12143. if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
  12144. set dummy readelf
  12145. if test $build = $target ; then
  12146. READELF_FOR_TARGET="$2"
  12147. else
  12148. READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
  12149. fi
  12150. else
  12151. READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
  12152. fi
  12153. else
  12154. READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
  12155. fi
  12156. if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
  12157. if test -n "$with_build_time_tools"; then
  12158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
  12159. $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
  12160. if test -x $with_build_time_tools/strip; then
  12161. STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
  12162. ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  12163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
  12164. $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
  12165. else
  12166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12167. $as_echo "no" >&6; }
  12168. fi
  12169. elif test $build != $host && test $have_gcc_for_target = yes; then
  12170. STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
  12171. test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
  12172. test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  12173. fi
  12174. fi
  12175. if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  12176. # Extract the first word of "strip", so it can be a program name with args.
  12177. set dummy strip; ac_word=$2
  12178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12179. $as_echo_n "checking for $ac_word... " >&6; }
  12180. if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
  12181. $as_echo_n "(cached) " >&6
  12182. else
  12183. case $STRIP_FOR_TARGET in
  12184. [\\/]* | ?:[\\/]*)
  12185. ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
  12186. ;;
  12187. *)
  12188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12189. for as_dir in $gcc_cv_tool_dirs
  12190. do
  12191. IFS=$as_save_IFS
  12192. test -z "$as_dir" && as_dir=.
  12193. for ac_exec_ext in '' $ac_executable_extensions; do
  12194. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12195. ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  12196. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12197. break 2
  12198. fi
  12199. done
  12200. done
  12201. IFS=$as_save_IFS
  12202. ;;
  12203. esac
  12204. fi
  12205. STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
  12206. if test -n "$STRIP_FOR_TARGET"; then
  12207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  12208. $as_echo "$STRIP_FOR_TARGET" >&6; }
  12209. else
  12210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12211. $as_echo "no" >&6; }
  12212. fi
  12213. fi
  12214. if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
  12215. if test -n "$STRIP_FOR_TARGET"; then
  12216. ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  12217. elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
  12218. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  12219. fi
  12220. if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
  12221. for ncn_progname in strip; do
  12222. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12223. set dummy ${ncn_progname}; ac_word=$2
  12224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12225. $as_echo_n "checking for $ac_word... " >&6; }
  12226. if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
  12227. $as_echo_n "(cached) " >&6
  12228. else
  12229. if test -n "$STRIP_FOR_TARGET"; then
  12230. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  12231. else
  12232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12233. for as_dir in $PATH
  12234. do
  12235. IFS=$as_save_IFS
  12236. test -z "$as_dir" && as_dir=.
  12237. for ac_exec_ext in '' $ac_executable_extensions; do
  12238. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12239. ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
  12240. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12241. break 2
  12242. fi
  12243. done
  12244. done
  12245. IFS=$as_save_IFS
  12246. fi
  12247. fi
  12248. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  12249. if test -n "$STRIP_FOR_TARGET"; then
  12250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  12251. $as_echo "$STRIP_FOR_TARGET" >&6; }
  12252. else
  12253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12254. $as_echo "no" >&6; }
  12255. fi
  12256. done
  12257. fi
  12258. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
  12259. for ncn_progname in strip; do
  12260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  12261. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  12262. if test -x $with_build_time_tools/${ncn_progname}; then
  12263. ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  12264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12265. $as_echo "yes" >&6; }
  12266. break
  12267. else
  12268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12269. $as_echo "no" >&6; }
  12270. fi
  12271. done
  12272. fi
  12273. if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
  12274. for ncn_progname in strip; do
  12275. if test -n "$ncn_target_tool_prefix"; then
  12276. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  12277. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  12278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12279. $as_echo_n "checking for $ac_word... " >&6; }
  12280. if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
  12281. $as_echo_n "(cached) " >&6
  12282. else
  12283. if test -n "$STRIP_FOR_TARGET"; then
  12284. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  12285. else
  12286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12287. for as_dir in $PATH
  12288. do
  12289. IFS=$as_save_IFS
  12290. test -z "$as_dir" && as_dir=.
  12291. for ac_exec_ext in '' $ac_executable_extensions; do
  12292. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12293. ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  12294. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12295. break 2
  12296. fi
  12297. done
  12298. done
  12299. IFS=$as_save_IFS
  12300. fi
  12301. fi
  12302. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  12303. if test -n "$STRIP_FOR_TARGET"; then
  12304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  12305. $as_echo "$STRIP_FOR_TARGET" >&6; }
  12306. else
  12307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12308. $as_echo "no" >&6; }
  12309. fi
  12310. fi
  12311. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
  12312. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12313. set dummy ${ncn_progname}; ac_word=$2
  12314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12315. $as_echo_n "checking for $ac_word... " >&6; }
  12316. if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
  12317. $as_echo_n "(cached) " >&6
  12318. else
  12319. if test -n "$STRIP_FOR_TARGET"; then
  12320. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  12321. else
  12322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12323. for as_dir in $PATH
  12324. do
  12325. IFS=$as_save_IFS
  12326. test -z "$as_dir" && as_dir=.
  12327. for ac_exec_ext in '' $ac_executable_extensions; do
  12328. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12329. ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
  12330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12331. break 2
  12332. fi
  12333. done
  12334. done
  12335. IFS=$as_save_IFS
  12336. fi
  12337. fi
  12338. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  12339. if test -n "$STRIP_FOR_TARGET"; then
  12340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  12341. $as_echo "$STRIP_FOR_TARGET" >&6; }
  12342. else
  12343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12344. $as_echo "no" >&6; }
  12345. fi
  12346. fi
  12347. test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
  12348. done
  12349. fi
  12350. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
  12351. set dummy strip
  12352. if test $build = $target ; then
  12353. STRIP_FOR_TARGET="$2"
  12354. else
  12355. STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
  12356. fi
  12357. else
  12358. STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
  12359. fi
  12360. else
  12361. STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
  12362. fi
  12363. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
  12364. if test -n "$with_build_time_tools"; then
  12365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
  12366. $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
  12367. if test -x $with_build_time_tools/windres; then
  12368. WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
  12369. ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  12370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
  12371. $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
  12372. else
  12373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12374. $as_echo "no" >&6; }
  12375. fi
  12376. elif test $build != $host && test $have_gcc_for_target = yes; then
  12377. WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
  12378. test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
  12379. test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  12380. fi
  12381. fi
  12382. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  12383. # Extract the first word of "windres", so it can be a program name with args.
  12384. set dummy windres; ac_word=$2
  12385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12386. $as_echo_n "checking for $ac_word... " >&6; }
  12387. if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
  12388. $as_echo_n "(cached) " >&6
  12389. else
  12390. case $WINDRES_FOR_TARGET in
  12391. [\\/]* | ?:[\\/]*)
  12392. ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
  12393. ;;
  12394. *)
  12395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12396. for as_dir in $gcc_cv_tool_dirs
  12397. do
  12398. IFS=$as_save_IFS
  12399. test -z "$as_dir" && as_dir=.
  12400. for ac_exec_ext in '' $ac_executable_extensions; do
  12401. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12402. ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  12403. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12404. break 2
  12405. fi
  12406. done
  12407. done
  12408. IFS=$as_save_IFS
  12409. ;;
  12410. esac
  12411. fi
  12412. WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
  12413. if test -n "$WINDRES_FOR_TARGET"; then
  12414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  12415. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  12416. else
  12417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12418. $as_echo "no" >&6; }
  12419. fi
  12420. fi
  12421. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
  12422. if test -n "$WINDRES_FOR_TARGET"; then
  12423. ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  12424. elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  12425. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  12426. fi
  12427. if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  12428. for ncn_progname in windres; do
  12429. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12430. set dummy ${ncn_progname}; ac_word=$2
  12431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12432. $as_echo_n "checking for $ac_word... " >&6; }
  12433. if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
  12434. $as_echo_n "(cached) " >&6
  12435. else
  12436. if test -n "$WINDRES_FOR_TARGET"; then
  12437. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  12438. else
  12439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12440. for as_dir in $PATH
  12441. do
  12442. IFS=$as_save_IFS
  12443. test -z "$as_dir" && as_dir=.
  12444. for ac_exec_ext in '' $ac_executable_extensions; do
  12445. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12446. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
  12447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12448. break 2
  12449. fi
  12450. done
  12451. done
  12452. IFS=$as_save_IFS
  12453. fi
  12454. fi
  12455. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  12456. if test -n "$WINDRES_FOR_TARGET"; then
  12457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  12458. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  12459. else
  12460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12461. $as_echo "no" >&6; }
  12462. fi
  12463. done
  12464. fi
  12465. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
  12466. for ncn_progname in windres; do
  12467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  12468. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  12469. if test -x $with_build_time_tools/${ncn_progname}; then
  12470. ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  12471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12472. $as_echo "yes" >&6; }
  12473. break
  12474. else
  12475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12476. $as_echo "no" >&6; }
  12477. fi
  12478. done
  12479. fi
  12480. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  12481. for ncn_progname in windres; do
  12482. if test -n "$ncn_target_tool_prefix"; then
  12483. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  12484. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  12485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12486. $as_echo_n "checking for $ac_word... " >&6; }
  12487. if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
  12488. $as_echo_n "(cached) " >&6
  12489. else
  12490. if test -n "$WINDRES_FOR_TARGET"; then
  12491. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  12492. else
  12493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12494. for as_dir in $PATH
  12495. do
  12496. IFS=$as_save_IFS
  12497. test -z "$as_dir" && as_dir=.
  12498. for ac_exec_ext in '' $ac_executable_extensions; do
  12499. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12500. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  12501. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12502. break 2
  12503. fi
  12504. done
  12505. done
  12506. IFS=$as_save_IFS
  12507. fi
  12508. fi
  12509. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  12510. if test -n "$WINDRES_FOR_TARGET"; then
  12511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  12512. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  12513. else
  12514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12515. $as_echo "no" >&6; }
  12516. fi
  12517. fi
  12518. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
  12519. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12520. set dummy ${ncn_progname}; ac_word=$2
  12521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12522. $as_echo_n "checking for $ac_word... " >&6; }
  12523. if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
  12524. $as_echo_n "(cached) " >&6
  12525. else
  12526. if test -n "$WINDRES_FOR_TARGET"; then
  12527. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  12528. else
  12529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12530. for as_dir in $PATH
  12531. do
  12532. IFS=$as_save_IFS
  12533. test -z "$as_dir" && as_dir=.
  12534. for ac_exec_ext in '' $ac_executable_extensions; do
  12535. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12536. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
  12537. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12538. break 2
  12539. fi
  12540. done
  12541. done
  12542. IFS=$as_save_IFS
  12543. fi
  12544. fi
  12545. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  12546. if test -n "$WINDRES_FOR_TARGET"; then
  12547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  12548. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  12549. else
  12550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12551. $as_echo "no" >&6; }
  12552. fi
  12553. fi
  12554. test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
  12555. done
  12556. fi
  12557. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
  12558. set dummy windres
  12559. if test $build = $target ; then
  12560. WINDRES_FOR_TARGET="$2"
  12561. else
  12562. WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
  12563. fi
  12564. else
  12565. WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
  12566. fi
  12567. else
  12568. WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
  12569. fi
  12570. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
  12571. if test -n "$with_build_time_tools"; then
  12572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
  12573. $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
  12574. if test -x $with_build_time_tools/windmc; then
  12575. WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
  12576. ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  12577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
  12578. $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
  12579. else
  12580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12581. $as_echo "no" >&6; }
  12582. fi
  12583. elif test $build != $host && test $have_gcc_for_target = yes; then
  12584. WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
  12585. test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
  12586. test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  12587. fi
  12588. fi
  12589. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  12590. # Extract the first word of "windmc", so it can be a program name with args.
  12591. set dummy windmc; ac_word=$2
  12592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12593. $as_echo_n "checking for $ac_word... " >&6; }
  12594. if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
  12595. $as_echo_n "(cached) " >&6
  12596. else
  12597. case $WINDMC_FOR_TARGET in
  12598. [\\/]* | ?:[\\/]*)
  12599. ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
  12600. ;;
  12601. *)
  12602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12603. for as_dir in $gcc_cv_tool_dirs
  12604. do
  12605. IFS=$as_save_IFS
  12606. test -z "$as_dir" && as_dir=.
  12607. for ac_exec_ext in '' $ac_executable_extensions; do
  12608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12609. ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  12610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12611. break 2
  12612. fi
  12613. done
  12614. done
  12615. IFS=$as_save_IFS
  12616. ;;
  12617. esac
  12618. fi
  12619. WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
  12620. if test -n "$WINDMC_FOR_TARGET"; then
  12621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  12622. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  12623. else
  12624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12625. $as_echo "no" >&6; }
  12626. fi
  12627. fi
  12628. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
  12629. if test -n "$WINDMC_FOR_TARGET"; then
  12630. ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  12631. elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  12632. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  12633. fi
  12634. if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  12635. for ncn_progname in windmc; do
  12636. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12637. set dummy ${ncn_progname}; ac_word=$2
  12638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12639. $as_echo_n "checking for $ac_word... " >&6; }
  12640. if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
  12641. $as_echo_n "(cached) " >&6
  12642. else
  12643. if test -n "$WINDMC_FOR_TARGET"; then
  12644. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  12645. else
  12646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12647. for as_dir in $PATH
  12648. do
  12649. IFS=$as_save_IFS
  12650. test -z "$as_dir" && as_dir=.
  12651. for ac_exec_ext in '' $ac_executable_extensions; do
  12652. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12653. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
  12654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12655. break 2
  12656. fi
  12657. done
  12658. done
  12659. IFS=$as_save_IFS
  12660. fi
  12661. fi
  12662. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  12663. if test -n "$WINDMC_FOR_TARGET"; then
  12664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  12665. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  12666. else
  12667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12668. $as_echo "no" >&6; }
  12669. fi
  12670. done
  12671. fi
  12672. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  12673. for ncn_progname in windmc; do
  12674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  12675. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  12676. if test -x $with_build_time_tools/${ncn_progname}; then
  12677. ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  12678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12679. $as_echo "yes" >&6; }
  12680. break
  12681. else
  12682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12683. $as_echo "no" >&6; }
  12684. fi
  12685. done
  12686. fi
  12687. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  12688. for ncn_progname in windmc; do
  12689. if test -n "$ncn_target_tool_prefix"; then
  12690. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  12691. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  12692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12693. $as_echo_n "checking for $ac_word... " >&6; }
  12694. if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
  12695. $as_echo_n "(cached) " >&6
  12696. else
  12697. if test -n "$WINDMC_FOR_TARGET"; then
  12698. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  12699. else
  12700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12701. for as_dir in $PATH
  12702. do
  12703. IFS=$as_save_IFS
  12704. test -z "$as_dir" && as_dir=.
  12705. for ac_exec_ext in '' $ac_executable_extensions; do
  12706. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12707. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  12708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12709. break 2
  12710. fi
  12711. done
  12712. done
  12713. IFS=$as_save_IFS
  12714. fi
  12715. fi
  12716. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  12717. if test -n "$WINDMC_FOR_TARGET"; then
  12718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  12719. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  12720. else
  12721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12722. $as_echo "no" >&6; }
  12723. fi
  12724. fi
  12725. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
  12726. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12727. set dummy ${ncn_progname}; ac_word=$2
  12728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12729. $as_echo_n "checking for $ac_word... " >&6; }
  12730. if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
  12731. $as_echo_n "(cached) " >&6
  12732. else
  12733. if test -n "$WINDMC_FOR_TARGET"; then
  12734. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  12735. else
  12736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12737. for as_dir in $PATH
  12738. do
  12739. IFS=$as_save_IFS
  12740. test -z "$as_dir" && as_dir=.
  12741. for ac_exec_ext in '' $ac_executable_extensions; do
  12742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12743. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
  12744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12745. break 2
  12746. fi
  12747. done
  12748. done
  12749. IFS=$as_save_IFS
  12750. fi
  12751. fi
  12752. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  12753. if test -n "$WINDMC_FOR_TARGET"; then
  12754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  12755. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  12756. else
  12757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12758. $as_echo "no" >&6; }
  12759. fi
  12760. fi
  12761. test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
  12762. done
  12763. fi
  12764. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
  12765. set dummy windmc
  12766. if test $build = $target ; then
  12767. WINDMC_FOR_TARGET="$2"
  12768. else
  12769. WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  12770. fi
  12771. else
  12772. WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
  12773. fi
  12774. else
  12775. WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
  12776. fi
  12777. RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
  12778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
  12779. $as_echo_n "checking where to find the target ar... " >&6; }
  12780. if test "x${build}" != "x${host}" ; then
  12781. if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
  12782. # We already found the complete path
  12783. ac_dir=`dirname $AR_FOR_TARGET`
  12784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12785. $as_echo "pre-installed in $ac_dir" >&6; }
  12786. else
  12787. # Canadian cross, just use what we found
  12788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12789. $as_echo "pre-installed" >&6; }
  12790. fi
  12791. else
  12792. ok=yes
  12793. case " ${configdirs} " in
  12794. *" binutils "*) ;;
  12795. *) ok=no ;;
  12796. esac
  12797. if test $ok = yes; then
  12798. # An in-tree tool is available and we can use it
  12799. AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
  12800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12801. $as_echo "just compiled" >&6; }
  12802. elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
  12803. # We already found the complete path
  12804. ac_dir=`dirname $AR_FOR_TARGET`
  12805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12806. $as_echo "pre-installed in $ac_dir" >&6; }
  12807. elif test "x$target" = "x$host"; then
  12808. # We can use an host tool
  12809. AR_FOR_TARGET='$(AR)'
  12810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12811. $as_echo "host tool" >&6; }
  12812. else
  12813. # We need a cross tool
  12814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12815. $as_echo "pre-installed" >&6; }
  12816. fi
  12817. fi
  12818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
  12819. $as_echo_n "checking where to find the target as... " >&6; }
  12820. if test "x${build}" != "x${host}" ; then
  12821. if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
  12822. # We already found the complete path
  12823. ac_dir=`dirname $AS_FOR_TARGET`
  12824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12825. $as_echo "pre-installed in $ac_dir" >&6; }
  12826. else
  12827. # Canadian cross, just use what we found
  12828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12829. $as_echo "pre-installed" >&6; }
  12830. fi
  12831. else
  12832. ok=yes
  12833. case " ${configdirs} " in
  12834. *" gas "*) ;;
  12835. *) ok=no ;;
  12836. esac
  12837. if test $ok = yes; then
  12838. # An in-tree tool is available and we can use it
  12839. AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
  12840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12841. $as_echo "just compiled" >&6; }
  12842. elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
  12843. # We already found the complete path
  12844. ac_dir=`dirname $AS_FOR_TARGET`
  12845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12846. $as_echo "pre-installed in $ac_dir" >&6; }
  12847. elif test "x$target" = "x$host"; then
  12848. # We can use an host tool
  12849. AS_FOR_TARGET='$(AS)'
  12850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12851. $as_echo "host tool" >&6; }
  12852. else
  12853. # We need a cross tool
  12854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12855. $as_echo "pre-installed" >&6; }
  12856. fi
  12857. fi
  12858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
  12859. $as_echo_n "checking where to find the target cc... " >&6; }
  12860. if test "x${build}" != "x${host}" ; then
  12861. if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
  12862. # We already found the complete path
  12863. ac_dir=`dirname $CC_FOR_TARGET`
  12864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12865. $as_echo "pre-installed in $ac_dir" >&6; }
  12866. else
  12867. # Canadian cross, just use what we found
  12868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12869. $as_echo "pre-installed" >&6; }
  12870. fi
  12871. else
  12872. ok=yes
  12873. case " ${configdirs} " in
  12874. *" gcc "*) ;;
  12875. *) ok=no ;;
  12876. esac
  12877. if test $ok = yes; then
  12878. # An in-tree tool is available and we can use it
  12879. CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
  12880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12881. $as_echo "just compiled" >&6; }
  12882. elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
  12883. # We already found the complete path
  12884. ac_dir=`dirname $CC_FOR_TARGET`
  12885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12886. $as_echo "pre-installed in $ac_dir" >&6; }
  12887. elif test "x$target" = "x$host"; then
  12888. # We can use an host tool
  12889. CC_FOR_TARGET='$(CC)'
  12890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12891. $as_echo "host tool" >&6; }
  12892. else
  12893. # We need a cross tool
  12894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12895. $as_echo "pre-installed" >&6; }
  12896. fi
  12897. fi
  12898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
  12899. $as_echo_n "checking where to find the target c++... " >&6; }
  12900. if test "x${build}" != "x${host}" ; then
  12901. if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
  12902. # We already found the complete path
  12903. ac_dir=`dirname $CXX_FOR_TARGET`
  12904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12905. $as_echo "pre-installed in $ac_dir" >&6; }
  12906. else
  12907. # Canadian cross, just use what we found
  12908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12909. $as_echo "pre-installed" >&6; }
  12910. fi
  12911. else
  12912. ok=yes
  12913. case " ${configdirs} " in
  12914. *" gcc "*) ;;
  12915. *) ok=no ;;
  12916. esac
  12917. case ,${enable_languages}, in
  12918. *,c++,*) ;;
  12919. *) ok=no ;;
  12920. esac
  12921. if test $ok = yes; then
  12922. # An in-tree tool is available and we can use it
  12923. CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
  12924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12925. $as_echo "just compiled" >&6; }
  12926. elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
  12927. # We already found the complete path
  12928. ac_dir=`dirname $CXX_FOR_TARGET`
  12929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12930. $as_echo "pre-installed in $ac_dir" >&6; }
  12931. elif test "x$target" = "x$host"; then
  12932. # We can use an host tool
  12933. CXX_FOR_TARGET='$(CXX)'
  12934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12935. $as_echo "host tool" >&6; }
  12936. else
  12937. # We need a cross tool
  12938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12939. $as_echo "pre-installed" >&6; }
  12940. fi
  12941. fi
  12942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
  12943. $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
  12944. if test "x${build}" != "x${host}" ; then
  12945. if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
  12946. # We already found the complete path
  12947. ac_dir=`dirname $RAW_CXX_FOR_TARGET`
  12948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12949. $as_echo "pre-installed in $ac_dir" >&6; }
  12950. else
  12951. # Canadian cross, just use what we found
  12952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12953. $as_echo "pre-installed" >&6; }
  12954. fi
  12955. else
  12956. ok=yes
  12957. case " ${configdirs} " in
  12958. *" gcc "*) ;;
  12959. *) ok=no ;;
  12960. esac
  12961. case ,${enable_languages}, in
  12962. *,c++,*) ;;
  12963. *) ok=no ;;
  12964. esac
  12965. if test $ok = yes; then
  12966. # An in-tree tool is available and we can use it
  12967. RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
  12968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12969. $as_echo "just compiled" >&6; }
  12970. elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
  12971. # We already found the complete path
  12972. ac_dir=`dirname $RAW_CXX_FOR_TARGET`
  12973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12974. $as_echo "pre-installed in $ac_dir" >&6; }
  12975. elif test "x$target" = "x$host"; then
  12976. # We can use an host tool
  12977. RAW_CXX_FOR_TARGET='$(CXX)'
  12978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12979. $as_echo "host tool" >&6; }
  12980. else
  12981. # We need a cross tool
  12982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12983. $as_echo "pre-installed" >&6; }
  12984. fi
  12985. fi
  12986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
  12987. $as_echo_n "checking where to find the target dlltool... " >&6; }
  12988. if test "x${build}" != "x${host}" ; then
  12989. if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
  12990. # We already found the complete path
  12991. ac_dir=`dirname $DLLTOOL_FOR_TARGET`
  12992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12993. $as_echo "pre-installed in $ac_dir" >&6; }
  12994. else
  12995. # Canadian cross, just use what we found
  12996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12997. $as_echo "pre-installed" >&6; }
  12998. fi
  12999. else
  13000. ok=yes
  13001. case " ${configdirs} " in
  13002. *" binutils "*) ;;
  13003. *) ok=no ;;
  13004. esac
  13005. if test $ok = yes; then
  13006. # An in-tree tool is available and we can use it
  13007. DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
  13008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13009. $as_echo "just compiled" >&6; }
  13010. elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
  13011. # We already found the complete path
  13012. ac_dir=`dirname $DLLTOOL_FOR_TARGET`
  13013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13014. $as_echo "pre-installed in $ac_dir" >&6; }
  13015. elif test "x$target" = "x$host"; then
  13016. # We can use an host tool
  13017. DLLTOOL_FOR_TARGET='$(DLLTOOL)'
  13018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13019. $as_echo "host tool" >&6; }
  13020. else
  13021. # We need a cross tool
  13022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13023. $as_echo "pre-installed" >&6; }
  13024. fi
  13025. fi
  13026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
  13027. $as_echo_n "checking where to find the target gcc... " >&6; }
  13028. if test "x${build}" != "x${host}" ; then
  13029. if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
  13030. # We already found the complete path
  13031. ac_dir=`dirname $GCC_FOR_TARGET`
  13032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13033. $as_echo "pre-installed in $ac_dir" >&6; }
  13034. else
  13035. # Canadian cross, just use what we found
  13036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13037. $as_echo "pre-installed" >&6; }
  13038. fi
  13039. else
  13040. ok=yes
  13041. case " ${configdirs} " in
  13042. *" gcc "*) ;;
  13043. *) ok=no ;;
  13044. esac
  13045. if test $ok = yes; then
  13046. # An in-tree tool is available and we can use it
  13047. GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
  13048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13049. $as_echo "just compiled" >&6; }
  13050. elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
  13051. # We already found the complete path
  13052. ac_dir=`dirname $GCC_FOR_TARGET`
  13053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13054. $as_echo "pre-installed in $ac_dir" >&6; }
  13055. elif test "x$target" = "x$host"; then
  13056. # We can use an host tool
  13057. GCC_FOR_TARGET='$()'
  13058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13059. $as_echo "host tool" >&6; }
  13060. else
  13061. # We need a cross tool
  13062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13063. $as_echo "pre-installed" >&6; }
  13064. fi
  13065. fi
  13066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
  13067. $as_echo_n "checking where to find the target gfortran... " >&6; }
  13068. if test "x${build}" != "x${host}" ; then
  13069. if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
  13070. # We already found the complete path
  13071. ac_dir=`dirname $GFORTRAN_FOR_TARGET`
  13072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13073. $as_echo "pre-installed in $ac_dir" >&6; }
  13074. else
  13075. # Canadian cross, just use what we found
  13076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13077. $as_echo "pre-installed" >&6; }
  13078. fi
  13079. else
  13080. ok=yes
  13081. case " ${configdirs} " in
  13082. *" gcc "*) ;;
  13083. *) ok=no ;;
  13084. esac
  13085. case ,${enable_languages}, in
  13086. *,fortran,*) ;;
  13087. *) ok=no ;;
  13088. esac
  13089. if test $ok = yes; then
  13090. # An in-tree tool is available and we can use it
  13091. GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
  13092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13093. $as_echo "just compiled" >&6; }
  13094. elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
  13095. # We already found the complete path
  13096. ac_dir=`dirname $GFORTRAN_FOR_TARGET`
  13097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13098. $as_echo "pre-installed in $ac_dir" >&6; }
  13099. elif test "x$target" = "x$host"; then
  13100. # We can use an host tool
  13101. GFORTRAN_FOR_TARGET='$(GFORTRAN)'
  13102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13103. $as_echo "host tool" >&6; }
  13104. else
  13105. # We need a cross tool
  13106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13107. $as_echo "pre-installed" >&6; }
  13108. fi
  13109. fi
  13110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
  13111. $as_echo_n "checking where to find the target gccgo... " >&6; }
  13112. if test "x${build}" != "x${host}" ; then
  13113. if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
  13114. # We already found the complete path
  13115. ac_dir=`dirname $GOC_FOR_TARGET`
  13116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13117. $as_echo "pre-installed in $ac_dir" >&6; }
  13118. else
  13119. # Canadian cross, just use what we found
  13120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13121. $as_echo "pre-installed" >&6; }
  13122. fi
  13123. else
  13124. ok=yes
  13125. case " ${configdirs} " in
  13126. *" gcc "*) ;;
  13127. *) ok=no ;;
  13128. esac
  13129. case ,${enable_languages}, in
  13130. *,go,*) ;;
  13131. *) ok=no ;;
  13132. esac
  13133. if test $ok = yes; then
  13134. # An in-tree tool is available and we can use it
  13135. GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
  13136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13137. $as_echo "just compiled" >&6; }
  13138. elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
  13139. # We already found the complete path
  13140. ac_dir=`dirname $GOC_FOR_TARGET`
  13141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13142. $as_echo "pre-installed in $ac_dir" >&6; }
  13143. elif test "x$target" = "x$host"; then
  13144. # We can use an host tool
  13145. GOC_FOR_TARGET='$(GOC)'
  13146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13147. $as_echo "host tool" >&6; }
  13148. else
  13149. # We need a cross tool
  13150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13151. $as_echo "pre-installed" >&6; }
  13152. fi
  13153. fi
  13154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
  13155. $as_echo_n "checking where to find the target ld... " >&6; }
  13156. if test "x${build}" != "x${host}" ; then
  13157. if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
  13158. # We already found the complete path
  13159. ac_dir=`dirname $LD_FOR_TARGET`
  13160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13161. $as_echo "pre-installed in $ac_dir" >&6; }
  13162. else
  13163. # Canadian cross, just use what we found
  13164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13165. $as_echo "pre-installed" >&6; }
  13166. fi
  13167. else
  13168. ok=yes
  13169. case " ${configdirs} " in
  13170. *" ld "*) ;;
  13171. *) ok=no ;;
  13172. esac
  13173. if test $ok = yes; then
  13174. # An in-tree tool is available and we can use it
  13175. LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
  13176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13177. $as_echo "just compiled" >&6; }
  13178. elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
  13179. # We already found the complete path
  13180. ac_dir=`dirname $LD_FOR_TARGET`
  13181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13182. $as_echo "pre-installed in $ac_dir" >&6; }
  13183. elif test "x$target" = "x$host"; then
  13184. # We can use an host tool
  13185. LD_FOR_TARGET='$(LD)'
  13186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13187. $as_echo "host tool" >&6; }
  13188. else
  13189. # We need a cross tool
  13190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13191. $as_echo "pre-installed" >&6; }
  13192. fi
  13193. fi
  13194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
  13195. $as_echo_n "checking where to find the target lipo... " >&6; }
  13196. if test "x${build}" != "x${host}" ; then
  13197. if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
  13198. # We already found the complete path
  13199. ac_dir=`dirname $LIPO_FOR_TARGET`
  13200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13201. $as_echo "pre-installed in $ac_dir" >&6; }
  13202. else
  13203. # Canadian cross, just use what we found
  13204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13205. $as_echo "pre-installed" >&6; }
  13206. fi
  13207. else
  13208. if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
  13209. # We already found the complete path
  13210. ac_dir=`dirname $LIPO_FOR_TARGET`
  13211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13212. $as_echo "pre-installed in $ac_dir" >&6; }
  13213. elif test "x$target" = "x$host"; then
  13214. # We can use an host tool
  13215. LIPO_FOR_TARGET='$(LIPO)'
  13216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13217. $as_echo "host tool" >&6; }
  13218. else
  13219. # We need a cross tool
  13220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13221. $as_echo "pre-installed" >&6; }
  13222. fi
  13223. fi
  13224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
  13225. $as_echo_n "checking where to find the target nm... " >&6; }
  13226. if test "x${build}" != "x${host}" ; then
  13227. if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
  13228. # We already found the complete path
  13229. ac_dir=`dirname $NM_FOR_TARGET`
  13230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13231. $as_echo "pre-installed in $ac_dir" >&6; }
  13232. else
  13233. # Canadian cross, just use what we found
  13234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13235. $as_echo "pre-installed" >&6; }
  13236. fi
  13237. else
  13238. ok=yes
  13239. case " ${configdirs} " in
  13240. *" binutils "*) ;;
  13241. *) ok=no ;;
  13242. esac
  13243. if test $ok = yes; then
  13244. # An in-tree tool is available and we can use it
  13245. NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
  13246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13247. $as_echo "just compiled" >&6; }
  13248. elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
  13249. # We already found the complete path
  13250. ac_dir=`dirname $NM_FOR_TARGET`
  13251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13252. $as_echo "pre-installed in $ac_dir" >&6; }
  13253. elif test "x$target" = "x$host"; then
  13254. # We can use an host tool
  13255. NM_FOR_TARGET='$(NM)'
  13256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13257. $as_echo "host tool" >&6; }
  13258. else
  13259. # We need a cross tool
  13260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13261. $as_echo "pre-installed" >&6; }
  13262. fi
  13263. fi
  13264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
  13265. $as_echo_n "checking where to find the target objcopy... " >&6; }
  13266. if test "x${build}" != "x${host}" ; then
  13267. if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
  13268. # We already found the complete path
  13269. ac_dir=`dirname $OBJCOPY_FOR_TARGET`
  13270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13271. $as_echo "pre-installed in $ac_dir" >&6; }
  13272. else
  13273. # Canadian cross, just use what we found
  13274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13275. $as_echo "pre-installed" >&6; }
  13276. fi
  13277. else
  13278. ok=yes
  13279. case " ${configdirs} " in
  13280. *" binutils "*) ;;
  13281. *) ok=no ;;
  13282. esac
  13283. if test $ok = yes; then
  13284. # An in-tree tool is available and we can use it
  13285. OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
  13286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13287. $as_echo "just compiled" >&6; }
  13288. elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
  13289. # We already found the complete path
  13290. ac_dir=`dirname $OBJCOPY_FOR_TARGET`
  13291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13292. $as_echo "pre-installed in $ac_dir" >&6; }
  13293. elif test "x$target" = "x$host"; then
  13294. # We can use an host tool
  13295. OBJCOPY_FOR_TARGET='$(OBJCOPY)'
  13296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13297. $as_echo "host tool" >&6; }
  13298. else
  13299. # We need a cross tool
  13300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13301. $as_echo "pre-installed" >&6; }
  13302. fi
  13303. fi
  13304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
  13305. $as_echo_n "checking where to find the target objdump... " >&6; }
  13306. if test "x${build}" != "x${host}" ; then
  13307. if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
  13308. # We already found the complete path
  13309. ac_dir=`dirname $OBJDUMP_FOR_TARGET`
  13310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13311. $as_echo "pre-installed in $ac_dir" >&6; }
  13312. else
  13313. # Canadian cross, just use what we found
  13314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13315. $as_echo "pre-installed" >&6; }
  13316. fi
  13317. else
  13318. ok=yes
  13319. case " ${configdirs} " in
  13320. *" binutils "*) ;;
  13321. *) ok=no ;;
  13322. esac
  13323. if test $ok = yes; then
  13324. # An in-tree tool is available and we can use it
  13325. OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
  13326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13327. $as_echo "just compiled" >&6; }
  13328. elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
  13329. # We already found the complete path
  13330. ac_dir=`dirname $OBJDUMP_FOR_TARGET`
  13331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13332. $as_echo "pre-installed in $ac_dir" >&6; }
  13333. elif test "x$target" = "x$host"; then
  13334. # We can use an host tool
  13335. OBJDUMP_FOR_TARGET='$(OBJDUMP)'
  13336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13337. $as_echo "host tool" >&6; }
  13338. else
  13339. # We need a cross tool
  13340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13341. $as_echo "pre-installed" >&6; }
  13342. fi
  13343. fi
  13344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
  13345. $as_echo_n "checking where to find the target ranlib... " >&6; }
  13346. if test "x${build}" != "x${host}" ; then
  13347. if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
  13348. # We already found the complete path
  13349. ac_dir=`dirname $RANLIB_FOR_TARGET`
  13350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13351. $as_echo "pre-installed in $ac_dir" >&6; }
  13352. else
  13353. # Canadian cross, just use what we found
  13354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13355. $as_echo "pre-installed" >&6; }
  13356. fi
  13357. else
  13358. ok=yes
  13359. case " ${configdirs} " in
  13360. *" binutils "*) ;;
  13361. *) ok=no ;;
  13362. esac
  13363. if test $ok = yes; then
  13364. # An in-tree tool is available and we can use it
  13365. RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
  13366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13367. $as_echo "just compiled" >&6; }
  13368. elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
  13369. # We already found the complete path
  13370. ac_dir=`dirname $RANLIB_FOR_TARGET`
  13371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13372. $as_echo "pre-installed in $ac_dir" >&6; }
  13373. elif test "x$target" = "x$host"; then
  13374. # We can use an host tool
  13375. RANLIB_FOR_TARGET='$(RANLIB)'
  13376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13377. $as_echo "host tool" >&6; }
  13378. else
  13379. # We need a cross tool
  13380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13381. $as_echo "pre-installed" >&6; }
  13382. fi
  13383. fi
  13384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
  13385. $as_echo_n "checking where to find the target readelf... " >&6; }
  13386. if test "x${build}" != "x${host}" ; then
  13387. if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
  13388. # We already found the complete path
  13389. ac_dir=`dirname $READELF_FOR_TARGET`
  13390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13391. $as_echo "pre-installed in $ac_dir" >&6; }
  13392. else
  13393. # Canadian cross, just use what we found
  13394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13395. $as_echo "pre-installed" >&6; }
  13396. fi
  13397. else
  13398. ok=yes
  13399. case " ${configdirs} " in
  13400. *" binutils "*) ;;
  13401. *) ok=no ;;
  13402. esac
  13403. if test $ok = yes; then
  13404. # An in-tree tool is available and we can use it
  13405. READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
  13406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13407. $as_echo "just compiled" >&6; }
  13408. elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
  13409. # We already found the complete path
  13410. ac_dir=`dirname $READELF_FOR_TARGET`
  13411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13412. $as_echo "pre-installed in $ac_dir" >&6; }
  13413. elif test "x$target" = "x$host"; then
  13414. # We can use an host tool
  13415. READELF_FOR_TARGET='$(READELF)'
  13416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13417. $as_echo "host tool" >&6; }
  13418. else
  13419. # We need a cross tool
  13420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13421. $as_echo "pre-installed" >&6; }
  13422. fi
  13423. fi
  13424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
  13425. $as_echo_n "checking where to find the target strip... " >&6; }
  13426. if test "x${build}" != "x${host}" ; then
  13427. if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
  13428. # We already found the complete path
  13429. ac_dir=`dirname $STRIP_FOR_TARGET`
  13430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13431. $as_echo "pre-installed in $ac_dir" >&6; }
  13432. else
  13433. # Canadian cross, just use what we found
  13434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13435. $as_echo "pre-installed" >&6; }
  13436. fi
  13437. else
  13438. ok=yes
  13439. case " ${configdirs} " in
  13440. *" binutils "*) ;;
  13441. *) ok=no ;;
  13442. esac
  13443. if test $ok = yes; then
  13444. # An in-tree tool is available and we can use it
  13445. STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
  13446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13447. $as_echo "just compiled" >&6; }
  13448. elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
  13449. # We already found the complete path
  13450. ac_dir=`dirname $STRIP_FOR_TARGET`
  13451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13452. $as_echo "pre-installed in $ac_dir" >&6; }
  13453. elif test "x$target" = "x$host"; then
  13454. # We can use an host tool
  13455. STRIP_FOR_TARGET='$(STRIP)'
  13456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13457. $as_echo "host tool" >&6; }
  13458. else
  13459. # We need a cross tool
  13460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13461. $as_echo "pre-installed" >&6; }
  13462. fi
  13463. fi
  13464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
  13465. $as_echo_n "checking where to find the target windres... " >&6; }
  13466. if test "x${build}" != "x${host}" ; then
  13467. if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
  13468. # We already found the complete path
  13469. ac_dir=`dirname $WINDRES_FOR_TARGET`
  13470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13471. $as_echo "pre-installed in $ac_dir" >&6; }
  13472. else
  13473. # Canadian cross, just use what we found
  13474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13475. $as_echo "pre-installed" >&6; }
  13476. fi
  13477. else
  13478. ok=yes
  13479. case " ${configdirs} " in
  13480. *" binutils "*) ;;
  13481. *) ok=no ;;
  13482. esac
  13483. if test $ok = yes; then
  13484. # An in-tree tool is available and we can use it
  13485. WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
  13486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13487. $as_echo "just compiled" >&6; }
  13488. elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
  13489. # We already found the complete path
  13490. ac_dir=`dirname $WINDRES_FOR_TARGET`
  13491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13492. $as_echo "pre-installed in $ac_dir" >&6; }
  13493. elif test "x$target" = "x$host"; then
  13494. # We can use an host tool
  13495. WINDRES_FOR_TARGET='$(WINDRES)'
  13496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13497. $as_echo "host tool" >&6; }
  13498. else
  13499. # We need a cross tool
  13500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13501. $as_echo "pre-installed" >&6; }
  13502. fi
  13503. fi
  13504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
  13505. $as_echo_n "checking where to find the target windmc... " >&6; }
  13506. if test "x${build}" != "x${host}" ; then
  13507. if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
  13508. # We already found the complete path
  13509. ac_dir=`dirname $WINDMC_FOR_TARGET`
  13510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13511. $as_echo "pre-installed in $ac_dir" >&6; }
  13512. else
  13513. # Canadian cross, just use what we found
  13514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13515. $as_echo "pre-installed" >&6; }
  13516. fi
  13517. else
  13518. ok=yes
  13519. case " ${configdirs} " in
  13520. *" binutils "*) ;;
  13521. *) ok=no ;;
  13522. esac
  13523. if test $ok = yes; then
  13524. # An in-tree tool is available and we can use it
  13525. WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
  13526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13527. $as_echo "just compiled" >&6; }
  13528. elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
  13529. # We already found the complete path
  13530. ac_dir=`dirname $WINDMC_FOR_TARGET`
  13531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13532. $as_echo "pre-installed in $ac_dir" >&6; }
  13533. elif test "x$target" = "x$host"; then
  13534. # We can use an host tool
  13535. WINDMC_FOR_TARGET='$(WINDMC)'
  13536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13537. $as_echo "host tool" >&6; }
  13538. else
  13539. # We need a cross tool
  13540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13541. $as_echo "pre-installed" >&6; }
  13542. fi
  13543. fi
  13544. # Certain tools may need extra flags.
  13545. AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
  13546. RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
  13547. NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
  13548. # When building target libraries, except in a Canadian cross, we use
  13549. # the same toolchain as the compiler we just built.
  13550. COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
  13551. COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
  13552. COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
  13553. if test $host = $build; then
  13554. case " $configdirs " in
  13555. *" gcc "*)
  13556. COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
  13557. COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
  13558. COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
  13559. ;;
  13560. esac
  13561. fi
  13562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  13563. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  13564. # Check whether --enable-maintainer-mode was given.
  13565. if test "${enable_maintainer_mode+set}" = set; then :
  13566. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  13567. else
  13568. USE_MAINTAINER_MODE=no
  13569. fi
  13570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  13571. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  13572. if test "$USE_MAINTAINER_MODE" = yes; then
  13573. MAINTAINER_MODE_TRUE=
  13574. MAINTAINER_MODE_FALSE='#'
  13575. else
  13576. MAINTAINER_MODE_TRUE='#'
  13577. MAINTAINER_MODE_FALSE=
  13578. fi
  13579. MAINT=$MAINTAINER_MODE_TRUE
  13580. # ---------------------
  13581. # GCC bootstrap support
  13582. # ---------------------
  13583. # Stage specific cflags for build.
  13584. stage1_cflags="-g"
  13585. case $build in
  13586. vax-*-*)
  13587. case ${GCC} in
  13588. yes) stage1_cflags="-g -Wa,-J" ;;
  13589. *) stage1_cflags="-g -J" ;;
  13590. esac ;;
  13591. esac
  13592. # Enable --enable-checking in stage1 of the compiler.
  13593. # Check whether --enable-stage1-checking was given.
  13594. if test "${enable_stage1_checking+set}" = set; then :
  13595. enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
  13596. else
  13597. if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
  13598. # For --disable-checking or implicit --enable-checking=release, avoid
  13599. # setting --enable-checking=gc in the default stage1 checking for LTO
  13600. # bootstraps. See PR62077.
  13601. case $BUILD_CONFIG in
  13602. *lto*)
  13603. stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
  13604. *)
  13605. stage1_checking=--enable-checking=yes,types;;
  13606. esac
  13607. if test "x$enable_checking" = x && \
  13608. test -d ${srcdir}/gcc && \
  13609. test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
  13610. stage1_checking=--enable-checking=yes,types,extra
  13611. fi
  13612. else
  13613. stage1_checking=--enable-checking=$enable_checking,types
  13614. fi
  13615. fi
  13616. # Enable -Werror in bootstrap stage2 and later.
  13617. # Check whether --enable-werror was given.
  13618. if test "${enable_werror+set}" = set; then :
  13619. enableval=$enable_werror;
  13620. case ${enable_werror} in
  13621. yes) stage2_werror_flag="--enable-werror-always" ;;
  13622. *) stage2_werror_flag="" ;;
  13623. esac
  13624. else
  13625. if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
  13626. case $BUILD_CONFIG in
  13627. bootstrap-debug)
  13628. stage2_werror_flag="--enable-werror-always" ;;
  13629. "")
  13630. stage2_werror_flag="--enable-werror-always" ;;
  13631. esac
  13632. fi
  13633. fi
  13634. # Specify what files to not compare during bootstrap.
  13635. compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
  13636. case "$target" in
  13637. hppa*64*-*-hpux*) ;;
  13638. hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
  13639. powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
  13640. esac
  13641. ac_config_files="$ac_config_files Makefile"
  13642. cat >confcache <<\_ACEOF
  13643. # This file is a shell script that caches the results of configure
  13644. # tests run on this system so they can be shared between configure
  13645. # scripts and configure runs, see configure's option --config-cache.
  13646. # It is not useful on other systems. If it contains results you don't
  13647. # want to keep, you may remove or edit it.
  13648. #
  13649. # config.status only pays attention to the cache file if you give it
  13650. # the --recheck option to rerun configure.
  13651. #
  13652. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13653. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13654. # following values.
  13655. _ACEOF
  13656. # The following way of writing the cache mishandles newlines in values,
  13657. # but we know of no workaround that is simple, portable, and efficient.
  13658. # So, we kill variables containing newlines.
  13659. # Ultrix sh set writes to stderr and can't be redirected directly,
  13660. # and sets the high bit in the cache file unless we assign to the vars.
  13661. (
  13662. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13663. eval ac_val=\$$ac_var
  13664. case $ac_val in #(
  13665. *${as_nl}*)
  13666. case $ac_var in #(
  13667. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13668. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13669. esac
  13670. case $ac_var in #(
  13671. _ | IFS | as_nl) ;; #(
  13672. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13673. *) { eval $ac_var=; unset $ac_var;} ;;
  13674. esac ;;
  13675. esac
  13676. done
  13677. (set) 2>&1 |
  13678. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13679. *${as_nl}ac_space=\ *)
  13680. # `set' does not quote correctly, so add quotes: double-quote
  13681. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13682. sed -n \
  13683. "s/'/'\\\\''/g;
  13684. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13685. ;; #(
  13686. *)
  13687. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13688. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13689. ;;
  13690. esac |
  13691. sort
  13692. ) |
  13693. sed '
  13694. /^ac_cv_env_/b end
  13695. t clear
  13696. :clear
  13697. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13698. t end
  13699. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13700. :end' >>confcache
  13701. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13702. if test -w "$cache_file"; then
  13703. if test "x$cache_file" != "x/dev/null"; then
  13704. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13705. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13706. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13707. cat confcache >"$cache_file"
  13708. else
  13709. case $cache_file in #(
  13710. */* | ?:*)
  13711. mv -f confcache "$cache_file"$$ &&
  13712. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13713. *)
  13714. mv -f confcache "$cache_file" ;;
  13715. esac
  13716. fi
  13717. fi
  13718. else
  13719. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13720. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13721. fi
  13722. fi
  13723. rm -f confcache
  13724. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13725. # Let make expand exec_prefix.
  13726. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13727. # Transform confdefs.h into DEFS.
  13728. # Protect against shell expansion while executing Makefile rules.
  13729. # Protect against Makefile macro expansion.
  13730. #
  13731. # If the first sed substitution is executed (which looks for macros that
  13732. # take arguments), then branch to the quote section. Otherwise,
  13733. # look for a macro that doesn't take arguments.
  13734. ac_script='
  13735. :mline
  13736. /\\$/{
  13737. N
  13738. s,\\\n,,
  13739. b mline
  13740. }
  13741. t clear
  13742. :clear
  13743. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  13744. t quote
  13745. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  13746. t quote
  13747. b any
  13748. :quote
  13749. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  13750. s/\[/\\&/g
  13751. s/\]/\\&/g
  13752. s/\$/$$/g
  13753. H
  13754. :any
  13755. ${
  13756. g
  13757. s/^\n//
  13758. s/\n/ /g
  13759. p
  13760. }
  13761. '
  13762. DEFS=`sed -n "$ac_script" confdefs.h`
  13763. ac_libobjs=
  13764. ac_ltlibobjs=
  13765. U=
  13766. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13767. # 1. Remove the extension, and $U if already installed.
  13768. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13769. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13770. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13771. # will be set to the directory where LIBOBJS objects are built.
  13772. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13773. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13774. done
  13775. LIBOBJS=$ac_libobjs
  13776. LTLIBOBJS=$ac_ltlibobjs
  13777. : "${CONFIG_STATUS=./config.status}"
  13778. ac_write_fail=0
  13779. ac_clean_files_save=$ac_clean_files
  13780. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13781. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13782. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13783. as_write_fail=0
  13784. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13785. #! $SHELL
  13786. # Generated by $as_me.
  13787. # Run this file to recreate the current configuration.
  13788. # Compiler output produced by configure, useful for debugging
  13789. # configure, is in config.log if it exists.
  13790. debug=false
  13791. ac_cs_recheck=false
  13792. ac_cs_silent=false
  13793. SHELL=\${CONFIG_SHELL-$SHELL}
  13794. export SHELL
  13795. _ASEOF
  13796. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13797. ## -------------------- ##
  13798. ## M4sh Initialization. ##
  13799. ## -------------------- ##
  13800. # Be more Bourne compatible
  13801. DUALCASE=1; export DUALCASE # for MKS sh
  13802. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13803. emulate sh
  13804. NULLCMD=:
  13805. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13806. # is contrary to our usage. Disable this feature.
  13807. alias -g '${1+"$@"}'='"$@"'
  13808. setopt NO_GLOB_SUBST
  13809. else
  13810. case `(set -o) 2>/dev/null` in #(
  13811. *posix*) :
  13812. set -o posix ;; #(
  13813. *) :
  13814. ;;
  13815. esac
  13816. fi
  13817. as_nl='
  13818. '
  13819. export as_nl
  13820. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13821. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13822. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13823. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13824. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13825. # but without wasting forks for bash or zsh.
  13826. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13827. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13828. as_echo='print -r --'
  13829. as_echo_n='print -rn --'
  13830. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13831. as_echo='printf %s\n'
  13832. as_echo_n='printf %s'
  13833. else
  13834. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13835. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13836. as_echo_n='/usr/ucb/echo -n'
  13837. else
  13838. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13839. as_echo_n_body='eval
  13840. arg=$1;
  13841. case $arg in #(
  13842. *"$as_nl"*)
  13843. expr "X$arg" : "X\\(.*\\)$as_nl";
  13844. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13845. esac;
  13846. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13847. '
  13848. export as_echo_n_body
  13849. as_echo_n='sh -c $as_echo_n_body as_echo'
  13850. fi
  13851. export as_echo_body
  13852. as_echo='sh -c $as_echo_body as_echo'
  13853. fi
  13854. # The user is always right.
  13855. if test "${PATH_SEPARATOR+set}" != set; then
  13856. PATH_SEPARATOR=:
  13857. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13858. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13859. PATH_SEPARATOR=';'
  13860. }
  13861. fi
  13862. # IFS
  13863. # We need space, tab and new line, in precisely that order. Quoting is
  13864. # there to prevent editors from complaining about space-tab.
  13865. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13866. # splitting by setting IFS to empty value.)
  13867. IFS=" "" $as_nl"
  13868. # Find who we are. Look in the path if we contain no directory separator.
  13869. as_myself=
  13870. case $0 in #((
  13871. *[\\/]* ) as_myself=$0 ;;
  13872. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13873. for as_dir in $PATH
  13874. do
  13875. IFS=$as_save_IFS
  13876. test -z "$as_dir" && as_dir=.
  13877. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13878. done
  13879. IFS=$as_save_IFS
  13880. ;;
  13881. esac
  13882. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13883. # in which case we are not to be found in the path.
  13884. if test "x$as_myself" = x; then
  13885. as_myself=$0
  13886. fi
  13887. if test ! -f "$as_myself"; then
  13888. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13889. exit 1
  13890. fi
  13891. # Unset variables that we do not need and which cause bugs (e.g. in
  13892. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13893. # suppresses any "Segmentation fault" message there. '((' could
  13894. # trigger a bug in pdksh 5.2.14.
  13895. for as_var in BASH_ENV ENV MAIL MAILPATH
  13896. do eval test x\${$as_var+set} = xset \
  13897. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13898. done
  13899. PS1='$ '
  13900. PS2='> '
  13901. PS4='+ '
  13902. # NLS nuisances.
  13903. LC_ALL=C
  13904. export LC_ALL
  13905. LANGUAGE=C
  13906. export LANGUAGE
  13907. # CDPATH.
  13908. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13909. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13910. # ----------------------------------------
  13911. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13912. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13913. # script with STATUS, using 1 if that was 0.
  13914. as_fn_error ()
  13915. {
  13916. as_status=$1; test $as_status -eq 0 && as_status=1
  13917. if test "$4"; then
  13918. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13919. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13920. fi
  13921. $as_echo "$as_me: error: $2" >&2
  13922. as_fn_exit $as_status
  13923. } # as_fn_error
  13924. # as_fn_set_status STATUS
  13925. # -----------------------
  13926. # Set $? to STATUS, without forking.
  13927. as_fn_set_status ()
  13928. {
  13929. return $1
  13930. } # as_fn_set_status
  13931. # as_fn_exit STATUS
  13932. # -----------------
  13933. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13934. as_fn_exit ()
  13935. {
  13936. set +e
  13937. as_fn_set_status $1
  13938. exit $1
  13939. } # as_fn_exit
  13940. # as_fn_unset VAR
  13941. # ---------------
  13942. # Portably unset VAR.
  13943. as_fn_unset ()
  13944. {
  13945. { eval $1=; unset $1;}
  13946. }
  13947. as_unset=as_fn_unset
  13948. # as_fn_append VAR VALUE
  13949. # ----------------------
  13950. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13951. # advantage of any shell optimizations that allow amortized linear growth over
  13952. # repeated appends, instead of the typical quadratic growth present in naive
  13953. # implementations.
  13954. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13955. eval 'as_fn_append ()
  13956. {
  13957. eval $1+=\$2
  13958. }'
  13959. else
  13960. as_fn_append ()
  13961. {
  13962. eval $1=\$$1\$2
  13963. }
  13964. fi # as_fn_append
  13965. # as_fn_arith ARG...
  13966. # ------------------
  13967. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13968. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13969. # must be portable across $(()) and expr.
  13970. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13971. eval 'as_fn_arith ()
  13972. {
  13973. as_val=$(( $* ))
  13974. }'
  13975. else
  13976. as_fn_arith ()
  13977. {
  13978. as_val=`expr "$@" || test $? -eq 1`
  13979. }
  13980. fi # as_fn_arith
  13981. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13982. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13983. as_expr=expr
  13984. else
  13985. as_expr=false
  13986. fi
  13987. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13988. as_basename=basename
  13989. else
  13990. as_basename=false
  13991. fi
  13992. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13993. as_dirname=dirname
  13994. else
  13995. as_dirname=false
  13996. fi
  13997. as_me=`$as_basename -- "$0" ||
  13998. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13999. X"$0" : 'X\(//\)$' \| \
  14000. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14001. $as_echo X/"$0" |
  14002. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14003. s//\1/
  14004. q
  14005. }
  14006. /^X\/\(\/\/\)$/{
  14007. s//\1/
  14008. q
  14009. }
  14010. /^X\/\(\/\).*/{
  14011. s//\1/
  14012. q
  14013. }
  14014. s/.*/./; q'`
  14015. # Avoid depending upon Character Ranges.
  14016. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14017. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14018. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14019. as_cr_digits='0123456789'
  14020. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14021. ECHO_C= ECHO_N= ECHO_T=
  14022. case `echo -n x` in #(((((
  14023. -n*)
  14024. case `echo 'xy\c'` in
  14025. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14026. xy) ECHO_C='\c';;
  14027. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14028. ECHO_T=' ';;
  14029. esac;;
  14030. *)
  14031. ECHO_N='-n';;
  14032. esac
  14033. rm -f conf$$ conf$$.exe conf$$.file
  14034. if test -d conf$$.dir; then
  14035. rm -f conf$$.dir/conf$$.file
  14036. else
  14037. rm -f conf$$.dir
  14038. mkdir conf$$.dir 2>/dev/null
  14039. fi
  14040. if (echo >conf$$.file) 2>/dev/null; then
  14041. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14042. as_ln_s='ln -s'
  14043. # ... but there are two gotchas:
  14044. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14045. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14046. # In both cases, we have to default to `cp -pR'.
  14047. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14048. as_ln_s='cp -pR'
  14049. elif ln conf$$.file conf$$ 2>/dev/null; then
  14050. as_ln_s=ln
  14051. else
  14052. as_ln_s='cp -pR'
  14053. fi
  14054. else
  14055. as_ln_s='cp -pR'
  14056. fi
  14057. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14058. rmdir conf$$.dir 2>/dev/null
  14059. # as_fn_mkdir_p
  14060. # -------------
  14061. # Create "$as_dir" as a directory, including parents if necessary.
  14062. as_fn_mkdir_p ()
  14063. {
  14064. case $as_dir in #(
  14065. -*) as_dir=./$as_dir;;
  14066. esac
  14067. test -d "$as_dir" || eval $as_mkdir_p || {
  14068. as_dirs=
  14069. while :; do
  14070. case $as_dir in #(
  14071. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14072. *) as_qdir=$as_dir;;
  14073. esac
  14074. as_dirs="'$as_qdir' $as_dirs"
  14075. as_dir=`$as_dirname -- "$as_dir" ||
  14076. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14077. X"$as_dir" : 'X\(//\)[^/]' \| \
  14078. X"$as_dir" : 'X\(//\)$' \| \
  14079. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14080. $as_echo X"$as_dir" |
  14081. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14082. s//\1/
  14083. q
  14084. }
  14085. /^X\(\/\/\)[^/].*/{
  14086. s//\1/
  14087. q
  14088. }
  14089. /^X\(\/\/\)$/{
  14090. s//\1/
  14091. q
  14092. }
  14093. /^X\(\/\).*/{
  14094. s//\1/
  14095. q
  14096. }
  14097. s/.*/./; q'`
  14098. test -d "$as_dir" && break
  14099. done
  14100. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14101. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14102. } # as_fn_mkdir_p
  14103. if mkdir -p . 2>/dev/null; then
  14104. as_mkdir_p='mkdir -p "$as_dir"'
  14105. else
  14106. test -d ./-p && rmdir ./-p
  14107. as_mkdir_p=false
  14108. fi
  14109. # as_fn_executable_p FILE
  14110. # -----------------------
  14111. # Test if FILE is an executable regular file.
  14112. as_fn_executable_p ()
  14113. {
  14114. test -f "$1" && test -x "$1"
  14115. } # as_fn_executable_p
  14116. as_test_x='test -x'
  14117. as_executable_p=as_fn_executable_p
  14118. # Sed expression to map a string onto a valid CPP name.
  14119. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14120. # Sed expression to map a string onto a valid variable name.
  14121. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14122. exec 6>&1
  14123. ## ----------------------------------- ##
  14124. ## Main body of $CONFIG_STATUS script. ##
  14125. ## ----------------------------------- ##
  14126. _ASEOF
  14127. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14128. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14129. # Save the log message, to keep $0 and so on meaningful, and to
  14130. # report actual input values of CONFIG_FILES etc. instead of their
  14131. # values after options handling.
  14132. ac_log="
  14133. This file was extended by $as_me, which was
  14134. generated by GNU Autoconf 2.69. Invocation command line was
  14135. CONFIG_FILES = $CONFIG_FILES
  14136. CONFIG_HEADERS = $CONFIG_HEADERS
  14137. CONFIG_LINKS = $CONFIG_LINKS
  14138. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14139. $ $0 $@
  14140. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14141. "
  14142. _ACEOF
  14143. case $ac_config_files in *"
  14144. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14145. esac
  14146. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14147. # Files that config.status was made for.
  14148. config_files="$ac_config_files"
  14149. _ACEOF
  14150. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14151. ac_cs_usage="\
  14152. \`$as_me' instantiates files and other configuration actions
  14153. from templates according to the current configuration. Unless the files
  14154. and actions are specified as TAGs, all are instantiated by default.
  14155. Usage: $0 [OPTION]... [TAG]...
  14156. -h, --help print this help, then exit
  14157. -V, --version print version number and configuration settings, then exit
  14158. --config print configuration, then exit
  14159. -q, --quiet, --silent
  14160. do not print progress messages
  14161. -d, --debug don't remove temporary files
  14162. --recheck update $as_me by reconfiguring in the same conditions
  14163. --file=FILE[:TEMPLATE]
  14164. instantiate the configuration file FILE
  14165. Configuration files:
  14166. $config_files
  14167. Report bugs to the package provider."
  14168. _ACEOF
  14169. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14170. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14171. ac_cs_version="\\
  14172. config.status
  14173. configured by $0, generated by GNU Autoconf 2.69,
  14174. with options \\"\$ac_cs_config\\"
  14175. Copyright (C) 2012 Free Software Foundation, Inc.
  14176. This config.status script is free software; the Free Software Foundation
  14177. gives unlimited permission to copy, distribute and modify it."
  14178. ac_pwd='$ac_pwd'
  14179. srcdir='$srcdir'
  14180. INSTALL='$INSTALL'
  14181. AWK='$AWK'
  14182. test -n "\$AWK" || AWK=awk
  14183. _ACEOF
  14184. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14185. # The default lists apply if the user does not specify any file.
  14186. ac_need_defaults=:
  14187. while test $# != 0
  14188. do
  14189. case $1 in
  14190. --*=?*)
  14191. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14192. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14193. ac_shift=:
  14194. ;;
  14195. --*=)
  14196. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14197. ac_optarg=
  14198. ac_shift=:
  14199. ;;
  14200. *)
  14201. ac_option=$1
  14202. ac_optarg=$2
  14203. ac_shift=shift
  14204. ;;
  14205. esac
  14206. case $ac_option in
  14207. # Handling of the options.
  14208. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14209. ac_cs_recheck=: ;;
  14210. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14211. $as_echo "$ac_cs_version"; exit ;;
  14212. --config | --confi | --conf | --con | --co | --c )
  14213. $as_echo "$ac_cs_config"; exit ;;
  14214. --debug | --debu | --deb | --de | --d | -d )
  14215. debug=: ;;
  14216. --file | --fil | --fi | --f )
  14217. $ac_shift
  14218. case $ac_optarg in
  14219. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14220. '') as_fn_error $? "missing file argument" ;;
  14221. esac
  14222. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14223. ac_need_defaults=false;;
  14224. --he | --h | --help | --hel | -h )
  14225. $as_echo "$ac_cs_usage"; exit ;;
  14226. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14227. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14228. ac_cs_silent=: ;;
  14229. # This is an error.
  14230. -*) as_fn_error $? "unrecognized option: \`$1'
  14231. Try \`$0 --help' for more information." ;;
  14232. *) as_fn_append ac_config_targets " $1"
  14233. ac_need_defaults=false ;;
  14234. esac
  14235. shift
  14236. done
  14237. ac_configure_extra_args=
  14238. if $ac_cs_silent; then
  14239. exec 6>/dev/null
  14240. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14241. fi
  14242. _ACEOF
  14243. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14244. if \$ac_cs_recheck; then
  14245. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14246. shift
  14247. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14248. CONFIG_SHELL='$SHELL'
  14249. export CONFIG_SHELL
  14250. exec "\$@"
  14251. fi
  14252. _ACEOF
  14253. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14254. exec 5>>config.log
  14255. {
  14256. echo
  14257. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14258. ## Running $as_me. ##
  14259. _ASBOX
  14260. $as_echo "$ac_log"
  14261. } >&5
  14262. _ACEOF
  14263. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14264. #
  14265. # INIT-COMMANDS
  14266. #
  14267. extrasub_build="$extrasub_build"
  14268. extrasub_host="$extrasub_host"
  14269. extrasub_target="$extrasub_target"
  14270. _ACEOF
  14271. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14272. # Handling of arguments.
  14273. for ac_config_target in $ac_config_targets
  14274. do
  14275. case $ac_config_target in
  14276. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14277. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14278. esac
  14279. done
  14280. # If the user did not use the arguments to specify the items to instantiate,
  14281. # then the envvar interface is used. Set only those that are not.
  14282. # We use the long form for the default assignment because of an extremely
  14283. # bizarre bug on SunOS 4.1.3.
  14284. if $ac_need_defaults; then
  14285. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14286. fi
  14287. # Have a temporary directory for convenience. Make it in the build tree
  14288. # simply because there is no reason against having it here, and in addition,
  14289. # creating and moving files from /tmp can sometimes cause problems.
  14290. # Hook for its removal unless debugging.
  14291. # Note that there is a small window in which the directory will not be cleaned:
  14292. # after its creation but before its name has been assigned to `$tmp'.
  14293. $debug ||
  14294. {
  14295. tmp= ac_tmp=
  14296. trap 'exit_status=$?
  14297. : "${ac_tmp:=$tmp}"
  14298. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14299. ' 0
  14300. trap 'as_fn_exit 1' 1 2 13 15
  14301. }
  14302. # Create a (secure) tmp directory for tmp files.
  14303. {
  14304. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14305. test -d "$tmp"
  14306. } ||
  14307. {
  14308. tmp=./conf$$-$RANDOM
  14309. (umask 077 && mkdir "$tmp")
  14310. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14311. ac_tmp=$tmp
  14312. # Set up the scripts for CONFIG_FILES section.
  14313. # No need to generate them if there are no CONFIG_FILES.
  14314. # This happens for instance with `./config.status config.h'.
  14315. if test -n "$CONFIG_FILES"; then
  14316. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  14317. ac_cs_awk_getline=:
  14318. ac_cs_awk_pipe_init=
  14319. ac_cs_awk_read_file='
  14320. while ((getline aline < (F[key])) > 0)
  14321. print(aline)
  14322. close(F[key])'
  14323. ac_cs_awk_pipe_fini=
  14324. else
  14325. ac_cs_awk_getline=false
  14326. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  14327. ac_cs_awk_read_file='
  14328. print "|#_!!_#|"
  14329. print "cat " F[key] " &&"
  14330. '$ac_cs_awk_pipe_init
  14331. # The final `:' finishes the AND list.
  14332. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  14333. fi
  14334. ac_cr=`echo X | tr X '\015'`
  14335. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14336. # But we know of no other shell where ac_cr would be empty at this
  14337. # point, so we can use a bashism as a fallback.
  14338. if test "x$ac_cr" = x; then
  14339. eval ac_cr=\$\'\\r\'
  14340. fi
  14341. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14342. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14343. ac_cs_awk_cr='\\r'
  14344. else
  14345. ac_cs_awk_cr=$ac_cr
  14346. fi
  14347. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14348. _ACEOF
  14349. # Create commands to substitute file output variables.
  14350. {
  14351. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  14352. echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  14353. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  14354. echo "_ACAWK" &&
  14355. echo "_ACEOF"
  14356. } >conf$$files.sh &&
  14357. . ./conf$$files.sh ||
  14358. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14359. rm -f conf$$files.sh
  14360. {
  14361. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14362. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14363. echo "_ACEOF"
  14364. } >conf$$subs.sh ||
  14365. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14366. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14367. ac_delim='%!_!# '
  14368. for ac_last_try in false false false false false :; do
  14369. . ./conf$$subs.sh ||
  14370. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14371. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14372. if test $ac_delim_n = $ac_delim_num; then
  14373. break
  14374. elif $ac_last_try; then
  14375. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14376. else
  14377. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14378. fi
  14379. done
  14380. rm -f conf$$subs.sh
  14381. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14382. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14383. _ACEOF
  14384. sed -n '
  14385. h
  14386. s/^/S["/; s/!.*/"]=/
  14387. p
  14388. g
  14389. s/^[^!]*!//
  14390. :repl
  14391. t repl
  14392. s/'"$ac_delim"'$//
  14393. t delim
  14394. :nl
  14395. h
  14396. s/\(.\{148\}\)..*/\1/
  14397. t more1
  14398. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14399. p
  14400. n
  14401. b repl
  14402. :more1
  14403. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14404. p
  14405. g
  14406. s/.\{148\}//
  14407. t nl
  14408. :delim
  14409. h
  14410. s/\(.\{148\}\)..*/\1/
  14411. t more2
  14412. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14413. p
  14414. b
  14415. :more2
  14416. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14417. p
  14418. g
  14419. s/.\{148\}//
  14420. t delim
  14421. ' <conf$$subs.awk | sed '
  14422. /^[^""]/{
  14423. N
  14424. s/\n//
  14425. }
  14426. ' >>$CONFIG_STATUS || ac_write_fail=1
  14427. rm -f conf$$subs.awk
  14428. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14429. _ACAWK
  14430. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14431. for (key in S) S_is_set[key] = 1
  14432. FS = ""
  14433. \$ac_cs_awk_pipe_init
  14434. }
  14435. {
  14436. line = $ 0
  14437. nfields = split(line, field, "@")
  14438. substed = 0
  14439. len = length(field[1])
  14440. for (i = 2; i < nfields; i++) {
  14441. key = field[i]
  14442. keylen = length(key)
  14443. if (S_is_set[key]) {
  14444. value = S[key]
  14445. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14446. len += length(value) + length(field[++i])
  14447. substed = 1
  14448. } else
  14449. len += 1 + keylen
  14450. }
  14451. if (nfields == 3 && !substed) {
  14452. key = field[2]
  14453. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  14454. \$ac_cs_awk_read_file
  14455. next
  14456. }
  14457. }
  14458. print line
  14459. }
  14460. \$ac_cs_awk_pipe_fini
  14461. _ACAWK
  14462. _ACEOF
  14463. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14464. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14465. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14466. else
  14467. cat
  14468. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14469. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14470. _ACEOF
  14471. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14472. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14473. # trailing colons and then remove the whole line if VPATH becomes empty
  14474. # (actually we leave an empty line to preserve line numbers).
  14475. if test "x$srcdir" = x.; then
  14476. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14477. h
  14478. s///
  14479. s/^/:/
  14480. s/[ ]*$/:/
  14481. s/:\$(srcdir):/:/g
  14482. s/:\${srcdir}:/:/g
  14483. s/:@srcdir@:/:/g
  14484. s/^:*//
  14485. s/:*$//
  14486. x
  14487. s/\(=[ ]*\).*/\1/
  14488. G
  14489. s/\n//
  14490. s/^[^=]*=[ ]*$//
  14491. }'
  14492. fi
  14493. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14494. fi # test -n "$CONFIG_FILES"
  14495. eval set X " :F $CONFIG_FILES "
  14496. shift
  14497. for ac_tag
  14498. do
  14499. case $ac_tag in
  14500. :[FHLC]) ac_mode=$ac_tag; continue;;
  14501. esac
  14502. case $ac_mode$ac_tag in
  14503. :[FHL]*:*);;
  14504. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14505. :[FH]-) ac_tag=-:-;;
  14506. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14507. esac
  14508. ac_save_IFS=$IFS
  14509. IFS=:
  14510. set x $ac_tag
  14511. IFS=$ac_save_IFS
  14512. shift
  14513. ac_file=$1
  14514. shift
  14515. case $ac_mode in
  14516. :L) ac_source=$1;;
  14517. :[FH])
  14518. ac_file_inputs=
  14519. for ac_f
  14520. do
  14521. case $ac_f in
  14522. -) ac_f="$ac_tmp/stdin";;
  14523. *) # Look for the file first in the build tree, then in the source tree
  14524. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14525. # because $ac_f cannot contain `:'.
  14526. test -f "$ac_f" ||
  14527. case $ac_f in
  14528. [\\/$]*) false;;
  14529. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14530. esac ||
  14531. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14532. esac
  14533. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14534. as_fn_append ac_file_inputs " '$ac_f'"
  14535. done
  14536. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14537. # use $as_me), people would be surprised to read:
  14538. # /* config.h. Generated by config.status. */
  14539. configure_input='Generated from '`
  14540. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14541. `' by configure.'
  14542. if test x"$ac_file" != x-; then
  14543. configure_input="$ac_file. $configure_input"
  14544. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14545. $as_echo "$as_me: creating $ac_file" >&6;}
  14546. fi
  14547. # Neutralize special characters interpreted by sed in replacement strings.
  14548. case $configure_input in #(
  14549. *\&* | *\|* | *\\* )
  14550. ac_sed_conf_input=`$as_echo "$configure_input" |
  14551. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14552. *) ac_sed_conf_input=$configure_input;;
  14553. esac
  14554. case $ac_tag in
  14555. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14556. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14557. esac
  14558. ;;
  14559. esac
  14560. ac_dir=`$as_dirname -- "$ac_file" ||
  14561. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14562. X"$ac_file" : 'X\(//\)[^/]' \| \
  14563. X"$ac_file" : 'X\(//\)$' \| \
  14564. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14565. $as_echo X"$ac_file" |
  14566. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14567. s//\1/
  14568. q
  14569. }
  14570. /^X\(\/\/\)[^/].*/{
  14571. s//\1/
  14572. q
  14573. }
  14574. /^X\(\/\/\)$/{
  14575. s//\1/
  14576. q
  14577. }
  14578. /^X\(\/\).*/{
  14579. s//\1/
  14580. q
  14581. }
  14582. s/.*/./; q'`
  14583. as_dir="$ac_dir"; as_fn_mkdir_p
  14584. ac_builddir=.
  14585. case "$ac_dir" in
  14586. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14587. *)
  14588. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14589. # A ".." for each directory in $ac_dir_suffix.
  14590. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14591. case $ac_top_builddir_sub in
  14592. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14593. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14594. esac ;;
  14595. esac
  14596. ac_abs_top_builddir=$ac_pwd
  14597. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14598. # for backward compatibility:
  14599. ac_top_builddir=$ac_top_build_prefix
  14600. case $srcdir in
  14601. .) # We are building in place.
  14602. ac_srcdir=.
  14603. ac_top_srcdir=$ac_top_builddir_sub
  14604. ac_abs_top_srcdir=$ac_pwd ;;
  14605. [\\/]* | ?:[\\/]* ) # Absolute name.
  14606. ac_srcdir=$srcdir$ac_dir_suffix;
  14607. ac_top_srcdir=$srcdir
  14608. ac_abs_top_srcdir=$srcdir ;;
  14609. *) # Relative name.
  14610. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14611. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14612. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14613. esac
  14614. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14615. case $ac_mode in
  14616. :F)
  14617. #
  14618. # CONFIG_FILE
  14619. #
  14620. case $INSTALL in
  14621. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14622. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14623. esac
  14624. _ACEOF
  14625. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14626. # If the template does not know about datarootdir, expand it.
  14627. # FIXME: This hack should be removed a few years after 2.60.
  14628. ac_datarootdir_hack=; ac_datarootdir_seen=
  14629. ac_sed_dataroot='
  14630. /datarootdir/ {
  14631. p
  14632. q
  14633. }
  14634. /@datadir@/p
  14635. /@docdir@/p
  14636. /@infodir@/p
  14637. /@localedir@/p
  14638. /@mandir@/p'
  14639. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14640. *datarootdir*) ac_datarootdir_seen=yes;;
  14641. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14642. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14643. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14644. _ACEOF
  14645. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14646. ac_datarootdir_hack='
  14647. s&@datadir@&$datadir&g
  14648. s&@docdir@&$docdir&g
  14649. s&@infodir@&$infodir&g
  14650. s&@localedir@&$localedir&g
  14651. s&@mandir@&$mandir&g
  14652. s&\\\${datarootdir}&$datarootdir&g' ;;
  14653. esac
  14654. _ACEOF
  14655. # Neutralize VPATH when `$srcdir' = `.'.
  14656. # Shell code in configure.ac might set extrasub.
  14657. # FIXME: do we really want to maintain this feature?
  14658. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14659. ac_sed_extra="$ac_vpsub
  14660. $extrasub
  14661. _ACEOF
  14662. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14663. :t
  14664. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14665. s|@configure_input@|$ac_sed_conf_input|;t t
  14666. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14667. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14668. s&@srcdir@&$ac_srcdir&;t t
  14669. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14670. s&@top_srcdir@&$ac_top_srcdir&;t t
  14671. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14672. s&@builddir@&$ac_builddir&;t t
  14673. s&@abs_builddir@&$ac_abs_builddir&;t t
  14674. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14675. s&@INSTALL@&$ac_INSTALL&;t t
  14676. $ac_datarootdir_hack
  14677. "
  14678. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  14679. if $ac_cs_awk_getline; then
  14680. $AWK -f "$ac_tmp/subs.awk"
  14681. else
  14682. $AWK -f "$ac_tmp/subs.awk" | $SHELL
  14683. fi \
  14684. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14685. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14686. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14687. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14688. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14690. which seems to be undefined. Please make sure it is defined" >&5
  14691. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14692. which seems to be undefined. Please make sure it is defined" >&2;}
  14693. rm -f "$ac_tmp/stdin"
  14694. case $ac_file in
  14695. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14696. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14697. esac \
  14698. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14699. ;;
  14700. esac
  14701. case $ac_file$ac_mode in
  14702. "Makefile":F) sed "$extrasub_build" Makefile |
  14703. sed "$extrasub_host" |
  14704. sed "$extrasub_target" > mf$$
  14705. mv -f mf$$ Makefile ;;
  14706. esac
  14707. done # for ac_tag
  14708. as_fn_exit 0
  14709. _ACEOF
  14710. ac_clean_files=$ac_clean_files_save
  14711. test $ac_write_fail = 0 ||
  14712. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14713. # configure is writing to config.log, and then calls config.status.
  14714. # config.status does its own redirection, appending to config.log.
  14715. # Unfortunately, on DOS this fails, as config.log is still kept open
  14716. # by configure, so config.status won't be able to write to it; its
  14717. # output is simply discarded. So we exec the FD to /dev/null,
  14718. # effectively closing config.log, so it can be properly (re)opened and
  14719. # appended to by config.status. When coming back to configure, we
  14720. # need to make the FD available again.
  14721. if test "$no_create" != yes; then
  14722. ac_cs_success=:
  14723. ac_config_status_args=
  14724. test "$silent" = yes &&
  14725. ac_config_status_args="$ac_config_status_args --quiet"
  14726. exec 5>/dev/null
  14727. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14728. exec 5>>config.log
  14729. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14730. # would make configure fail if this is the last instruction.
  14731. $ac_cs_success || as_fn_exit 1
  14732. fi
  14733. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14734. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14735. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14736. fi