configure 474 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  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. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1"
  159. if (eval "$as_required") 2>/dev/null; then :
  160. as_have_required=yes
  161. else
  162. as_have_required=no
  163. fi
  164. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  165. else
  166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  167. as_found=false
  168. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  169. do
  170. IFS=$as_save_IFS
  171. test -z "$as_dir" && as_dir=.
  172. as_found=:
  173. case $as_dir in #(
  174. /*)
  175. for as_base in sh bash ksh sh5; do
  176. # Try only shells that exist, to save several forks.
  177. as_shell=$as_dir/$as_base
  178. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  179. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  180. CONFIG_SHELL=$as_shell as_have_required=yes
  181. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. break 2
  183. fi
  184. fi
  185. done;;
  186. esac
  187. as_found=false
  188. done
  189. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  190. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  191. CONFIG_SHELL=$SHELL as_have_required=yes
  192. fi; }
  193. IFS=$as_save_IFS
  194. if test "x$CONFIG_SHELL" != x; then :
  195. # We cannot yet assume a decent shell, so we have to provide a
  196. # neutralization value for shells without unset; and this also
  197. # works around shells that cannot unset nonexistent variables.
  198. BASH_ENV=/dev/null
  199. ENV=/dev/null
  200. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  201. export CONFIG_SHELL
  202. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  203. fi
  204. if test x$as_have_required = xno; then :
  205. $as_echo "$0: This script requires a shell more modern than all"
  206. $as_echo "$0: the shells that I found on your system."
  207. if test x${ZSH_VERSION+set} = xset ; then
  208. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  209. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  210. else
  211. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  212. $0: including any error possibly output before this
  213. $0: message. Then install a modern shell, or manually run
  214. $0: the script under such a shell if you do have one."
  215. fi
  216. exit 1
  217. fi
  218. fi
  219. fi
  220. SHELL=${CONFIG_SHELL-/bin/sh}
  221. export SHELL
  222. # Unset more variables known to interfere with behavior of common tools.
  223. CLICOLOR_FORCE= GREP_OPTIONS=
  224. unset CLICOLOR_FORCE GREP_OPTIONS
  225. ## --------------------- ##
  226. ## M4sh Shell Functions. ##
  227. ## --------------------- ##
  228. # as_fn_unset VAR
  229. # ---------------
  230. # Portably unset VAR.
  231. as_fn_unset ()
  232. {
  233. { eval $1=; unset $1;}
  234. }
  235. as_unset=as_fn_unset
  236. # as_fn_set_status STATUS
  237. # -----------------------
  238. # Set $? to STATUS, without forking.
  239. as_fn_set_status ()
  240. {
  241. return $1
  242. } # as_fn_set_status
  243. # as_fn_exit STATUS
  244. # -----------------
  245. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  246. as_fn_exit ()
  247. {
  248. set +e
  249. as_fn_set_status $1
  250. exit $1
  251. } # as_fn_exit
  252. # as_fn_mkdir_p
  253. # -------------
  254. # Create "$as_dir" as a directory, including parents if necessary.
  255. as_fn_mkdir_p ()
  256. {
  257. case $as_dir in #(
  258. -*) as_dir=./$as_dir;;
  259. esac
  260. test -d "$as_dir" || eval $as_mkdir_p || {
  261. as_dirs=
  262. while :; do
  263. case $as_dir in #(
  264. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  265. *) as_qdir=$as_dir;;
  266. esac
  267. as_dirs="'$as_qdir' $as_dirs"
  268. as_dir=`$as_dirname -- "$as_dir" ||
  269. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  270. X"$as_dir" : 'X\(//\)[^/]' \| \
  271. X"$as_dir" : 'X\(//\)$' \| \
  272. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  273. $as_echo X"$as_dir" |
  274. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  275. s//\1/
  276. q
  277. }
  278. /^X\(\/\/\)[^/].*/{
  279. s//\1/
  280. q
  281. }
  282. /^X\(\/\/\)$/{
  283. s//\1/
  284. q
  285. }
  286. /^X\(\/\).*/{
  287. s//\1/
  288. q
  289. }
  290. s/.*/./; q'`
  291. test -d "$as_dir" && break
  292. done
  293. test -z "$as_dirs" || eval "mkdir $as_dirs"
  294. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  295. } # as_fn_mkdir_p
  296. # as_fn_append VAR VALUE
  297. # ----------------------
  298. # Append the text in VALUE to the end of the definition contained in VAR. Take
  299. # advantage of any shell optimizations that allow amortized linear growth over
  300. # repeated appends, instead of the typical quadratic growth present in naive
  301. # implementations.
  302. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  303. eval 'as_fn_append ()
  304. {
  305. eval $1+=\$2
  306. }'
  307. else
  308. as_fn_append ()
  309. {
  310. eval $1=\$$1\$2
  311. }
  312. fi # as_fn_append
  313. # as_fn_arith ARG...
  314. # ------------------
  315. # Perform arithmetic evaluation on the ARGs, and store the result in the
  316. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  317. # must be portable across $(()) and expr.
  318. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  319. eval 'as_fn_arith ()
  320. {
  321. as_val=$(( $* ))
  322. }'
  323. else
  324. as_fn_arith ()
  325. {
  326. as_val=`expr "$@" || test $? -eq 1`
  327. }
  328. fi # as_fn_arith
  329. # as_fn_error ERROR [LINENO LOG_FD]
  330. # ---------------------------------
  331. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  332. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  333. # script with status $?, using 1 if that was 0.
  334. as_fn_error ()
  335. {
  336. as_status=$?; test $as_status -eq 0 && as_status=1
  337. if test "$3"; then
  338. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  339. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  340. fi
  341. $as_echo "$as_me: error: $1" >&2
  342. as_fn_exit $as_status
  343. } # as_fn_error
  344. if expr a : '\(a\)' >/dev/null 2>&1 &&
  345. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  346. as_expr=expr
  347. else
  348. as_expr=false
  349. fi
  350. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  351. as_basename=basename
  352. else
  353. as_basename=false
  354. fi
  355. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  356. as_dirname=dirname
  357. else
  358. as_dirname=false
  359. fi
  360. as_me=`$as_basename -- "$0" ||
  361. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  362. X"$0" : 'X\(//\)$' \| \
  363. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  364. $as_echo X/"$0" |
  365. sed '/^.*\/\([^/][^/]*\)\/*$/{
  366. s//\1/
  367. q
  368. }
  369. /^X\/\(\/\/\)$/{
  370. s//\1/
  371. q
  372. }
  373. /^X\/\(\/\).*/{
  374. s//\1/
  375. q
  376. }
  377. s/.*/./; q'`
  378. # Avoid depending upon Character Ranges.
  379. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  380. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  381. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  382. as_cr_digits='0123456789'
  383. as_cr_alnum=$as_cr_Letters$as_cr_digits
  384. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  385. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  386. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  387. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  388. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  389. sed -n '
  390. p
  391. /[$]LINENO/=
  392. ' <$as_myself |
  393. sed '
  394. s/[$]LINENO.*/&-/
  395. t lineno
  396. b
  397. :lineno
  398. N
  399. :loop
  400. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  401. t loop
  402. s/-\n.*//
  403. ' >$as_me.lineno &&
  404. chmod +x "$as_me.lineno" ||
  405. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  406. # Don't try to exec as it changes $[0], causing all sort of problems
  407. # (the dirname of $[0] is not the place where we might find the
  408. # original and so on. Autoconf is especially sensitive to this).
  409. . "./$as_me.lineno"
  410. # Exit status is that of the last command.
  411. exit
  412. }
  413. ECHO_C= ECHO_N= ECHO_T=
  414. case `echo -n x` in #(((((
  415. -n*)
  416. case `echo 'xy\c'` in
  417. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  418. xy) ECHO_C='\c';;
  419. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  420. ECHO_T=' ';;
  421. esac;;
  422. *)
  423. ECHO_N='-n';;
  424. esac
  425. rm -f conf$$ conf$$.exe conf$$.file
  426. if test -d conf$$.dir; then
  427. rm -f conf$$.dir/conf$$.file
  428. else
  429. rm -f conf$$.dir
  430. mkdir conf$$.dir 2>/dev/null
  431. fi
  432. if (echo >conf$$.file) 2>/dev/null; then
  433. if ln -s conf$$.file conf$$ 2>/dev/null; then
  434. as_ln_s='ln -s'
  435. # ... but there are two gotchas:
  436. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  437. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  438. # In both cases, we have to default to `cp -p'.
  439. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  440. as_ln_s='cp -p'
  441. elif ln conf$$.file conf$$ 2>/dev/null; then
  442. as_ln_s=ln
  443. else
  444. as_ln_s='cp -p'
  445. fi
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  450. rmdir conf$$.dir 2>/dev/null
  451. if mkdir -p . 2>/dev/null; then
  452. as_mkdir_p='mkdir -p "$as_dir"'
  453. else
  454. test -d ./-p && rmdir ./-p
  455. as_mkdir_p=false
  456. fi
  457. if test -x / >/dev/null 2>&1; then
  458. as_test_x='test -x'
  459. else
  460. if ls -dL / >/dev/null 2>&1; then
  461. as_ls_L_option=L
  462. else
  463. as_ls_L_option=
  464. fi
  465. as_test_x='
  466. eval sh -c '\''
  467. if test -d "$1"; then
  468. test -d "$1/.";
  469. else
  470. case $1 in #(
  471. -*)set "./$1";;
  472. esac;
  473. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  474. ???[sx]*):;;*)false;;esac;fi
  475. '\'' sh
  476. '
  477. fi
  478. as_executable_p=$as_test_x
  479. # Sed expression to map a string onto a valid CPP name.
  480. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  481. # Sed expression to map a string onto a valid variable name.
  482. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  483. exec 7<&0 </dev/null 6>&1
  484. # Name of the host.
  485. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  486. # so uname gets run too.
  487. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  488. #
  489. # Initializations.
  490. #
  491. ac_default_prefix=/usr/local
  492. ac_clean_files=
  493. ac_config_libobj_dir=.
  494. LIBOBJS=
  495. cross_compiling=no
  496. subdirs=
  497. MFLAGS=
  498. MAKEFLAGS=
  499. # Identity of this package.
  500. PACKAGE_NAME=
  501. PACKAGE_TARNAME=
  502. PACKAGE_VERSION=
  503. PACKAGE_STRING=
  504. PACKAGE_BUGREPORT=
  505. PACKAGE_URL=
  506. ac_unique_file="move-if-change"
  507. enable_option_checking=no
  508. ac_subst_vars='LTLIBOBJS
  509. LIBOBJS
  510. compare_exclusions
  511. host_shared
  512. stage2_werror_flag
  513. stage1_checking
  514. stage1_cflags
  515. MAINT
  516. MAINTAINER_MODE_FALSE
  517. MAINTAINER_MODE_TRUE
  518. COMPILER_NM_FOR_TARGET
  519. COMPILER_LD_FOR_TARGET
  520. COMPILER_AS_FOR_TARGET
  521. FLAGS_FOR_TARGET
  522. RAW_CXX_FOR_TARGET
  523. WINDMC_FOR_TARGET
  524. WINDRES_FOR_TARGET
  525. STRIP_FOR_TARGET
  526. READELF_FOR_TARGET
  527. RANLIB_FOR_TARGET
  528. OBJDUMP_FOR_TARGET
  529. OBJCOPY_FOR_TARGET
  530. NM_FOR_TARGET
  531. LIPO_FOR_TARGET
  532. LD_FOR_TARGET
  533. DLLTOOL_FOR_TARGET
  534. AS_FOR_TARGET
  535. AR_FOR_TARGET
  536. GOC_FOR_TARGET
  537. GFORTRAN_FOR_TARGET
  538. GCJ_FOR_TARGET
  539. GCC_FOR_TARGET
  540. CXX_FOR_TARGET
  541. CC_FOR_TARGET
  542. READELF
  543. OBJDUMP
  544. OBJCOPY
  545. WINDMC
  546. WINDRES
  547. STRIP
  548. RANLIB
  549. NM
  550. LIPO
  551. LD
  552. DLLTOOL
  553. AS
  554. AR
  555. RUNTEST
  556. EXPECT
  557. MAKEINFO
  558. FLEX
  559. LEX
  560. M4
  561. BISON
  562. YACC
  563. WINDRES_FOR_BUILD
  564. WINDMC_FOR_BUILD
  565. RANLIB_FOR_BUILD
  566. NM_FOR_BUILD
  567. LD_FOR_BUILD
  568. LDFLAGS_FOR_BUILD
  569. GOC_FOR_BUILD
  570. GFORTRAN_FOR_BUILD
  571. GCJ_FOR_BUILD
  572. DLLTOOL_FOR_BUILD
  573. CXX_FOR_BUILD
  574. CXXFLAGS_FOR_BUILD
  575. CFLAGS_FOR_BUILD
  576. CC_FOR_BUILD
  577. AS_FOR_BUILD
  578. AR_FOR_BUILD
  579. target_configdirs
  580. configdirs
  581. build_configdirs
  582. INSTALL_GDB_TK
  583. GDB_TK
  584. CONFIGURE_GDB_TK
  585. build_tooldir
  586. tooldir
  587. GCC_SHLIB_SUBDIR
  588. RPATH_ENVVAR
  589. target_configargs
  590. host_configargs
  591. build_configargs
  592. BUILD_CONFIG
  593. LDFLAGS_FOR_TARGET
  594. CXXFLAGS_FOR_TARGET
  595. CFLAGS_FOR_TARGET
  596. DEBUG_PREFIX_CFLAGS_FOR_TARGET
  597. SYSROOT_CFLAGS_FOR_TARGET
  598. extra_host_zlib_configure_flags
  599. extra_host_libiberty_configure_flags
  600. stage1_languages
  601. extra_linker_plugin_flags
  602. extra_linker_plugin_configure_flags
  603. islinc
  604. isllibs
  605. poststage1_ldflags
  606. poststage1_libs
  607. stage1_ldflags
  608. stage1_libs
  609. extra_isl_gmp_configure_flags
  610. extra_mpc_mpfr_configure_flags
  611. extra_mpc_gmp_configure_flags
  612. extra_mpfr_configure_flags
  613. gmpinc
  614. gmplibs
  615. do_compare
  616. GNATMAKE
  617. GNATBIND
  618. ac_ct_CXX
  619. CXXFLAGS
  620. CXX
  621. OBJEXT
  622. EXEEXT
  623. ac_ct_CC
  624. CPPFLAGS
  625. LDFLAGS
  626. CFLAGS
  627. CC
  628. EXTRA_CONFIGARGS_LIBJAVA
  629. extra_liboffloadmic_configure_flags
  630. target_subdir
  631. host_subdir
  632. build_subdir
  633. build_libsubdir
  634. AWK
  635. SED
  636. LN_S
  637. LN
  638. INSTALL_DATA
  639. INSTALL_SCRIPT
  640. INSTALL_PROGRAM
  641. target_os
  642. target_vendor
  643. target_cpu
  644. target
  645. host_os
  646. host_vendor
  647. host_cpu
  648. host
  649. target_noncanonical
  650. host_noncanonical
  651. build_noncanonical
  652. build_os
  653. build_vendor
  654. build_cpu
  655. build
  656. TOPLEVEL_CONFIGURE_ARGUMENTS
  657. target_alias
  658. host_alias
  659. build_alias
  660. LIBS
  661. ECHO_T
  662. ECHO_N
  663. ECHO_C
  664. DEFS
  665. mandir
  666. localedir
  667. libdir
  668. psdir
  669. pdfdir
  670. dvidir
  671. htmldir
  672. infodir
  673. docdir
  674. oldincludedir
  675. includedir
  676. localstatedir
  677. sharedstatedir
  678. sysconfdir
  679. datadir
  680. datarootdir
  681. libexecdir
  682. sbindir
  683. bindir
  684. program_transform_name
  685. prefix
  686. exec_prefix
  687. PACKAGE_URL
  688. PACKAGE_BUGREPORT
  689. PACKAGE_STRING
  690. PACKAGE_VERSION
  691. PACKAGE_TARNAME
  692. PACKAGE_NAME
  693. PATH_SEPARATOR
  694. SHELL'
  695. ac_subst_files='serialization_dependencies
  696. host_makefile_frag
  697. target_makefile_frag
  698. alphaieee_frag
  699. ospace_frag'
  700. ac_user_opts='
  701. enable_option_checking
  702. with_build_libsubdir
  703. with_system_zlib
  704. enable_as_accelerator_for
  705. enable_offload_targets
  706. enable_gold
  707. enable_ld
  708. enable_compressed_debug_sections
  709. enable_libquadmath
  710. enable_libquadmath_support
  711. enable_libada
  712. enable_libssp
  713. enable_libstdcxx
  714. enable_liboffloadmic
  715. enable_static_libjava
  716. enable_bootstrap
  717. with_mpc
  718. with_mpc_include
  719. with_mpc_lib
  720. with_mpfr_dir
  721. with_mpfr
  722. with_mpfr_include
  723. with_mpfr_lib
  724. with_gmp_dir
  725. with_gmp
  726. with_gmp_include
  727. with_gmp_lib
  728. with_stage1_libs
  729. with_stage1_ldflags
  730. with_boot_libs
  731. with_boot_ldflags
  732. with_isl
  733. with_isl_include
  734. with_isl_lib
  735. enable_isl_version_check
  736. enable_lto
  737. enable_linker_plugin_configure_flags
  738. enable_linker_plugin_flags
  739. enable_stage1_languages
  740. enable_objc_gc
  741. with_build_sysroot
  742. with_debug_prefix_map
  743. with_build_config
  744. enable_vtable_verify
  745. enable_serial_configure
  746. with_build_time_tools
  747. enable_maintainer_mode
  748. enable_stage1_checking
  749. enable_werror
  750. enable_host_shared
  751. '
  752. ac_precious_vars='build_alias
  753. host_alias
  754. target_alias
  755. CC
  756. CFLAGS
  757. LDFLAGS
  758. LIBS
  759. CPPFLAGS
  760. CXX
  761. CXXFLAGS
  762. CCC
  763. build_configargs
  764. host_configargs
  765. target_configargs
  766. AR
  767. AS
  768. DLLTOOL
  769. LD
  770. LIPO
  771. NM
  772. RANLIB
  773. STRIP
  774. WINDRES
  775. WINDMC
  776. OBJCOPY
  777. OBJDUMP
  778. READELF
  779. CC_FOR_TARGET
  780. CXX_FOR_TARGET
  781. GCC_FOR_TARGET
  782. GCJ_FOR_TARGET
  783. GFORTRAN_FOR_TARGET
  784. GOC_FOR_TARGET
  785. AR_FOR_TARGET
  786. AS_FOR_TARGET
  787. DLLTOOL_FOR_TARGET
  788. LD_FOR_TARGET
  789. LIPO_FOR_TARGET
  790. NM_FOR_TARGET
  791. OBJCOPY_FOR_TARGET
  792. OBJDUMP_FOR_TARGET
  793. RANLIB_FOR_TARGET
  794. READELF_FOR_TARGET
  795. STRIP_FOR_TARGET
  796. WINDRES_FOR_TARGET
  797. WINDMC_FOR_TARGET'
  798. # Initialize some variables set by options.
  799. ac_init_help=
  800. ac_init_version=false
  801. ac_unrecognized_opts=
  802. ac_unrecognized_sep=
  803. # The variables have the same names as the options, with
  804. # dashes changed to underlines.
  805. cache_file=/dev/null
  806. exec_prefix=NONE
  807. no_create=
  808. no_recursion=
  809. prefix=NONE
  810. program_prefix=NONE
  811. program_suffix=NONE
  812. program_transform_name=s,x,x,
  813. silent=
  814. site=
  815. srcdir=
  816. verbose=
  817. x_includes=NONE
  818. x_libraries=NONE
  819. # Installation directory options.
  820. # These are left unexpanded so users can "make install exec_prefix=/foo"
  821. # and all the variables that are supposed to be based on exec_prefix
  822. # by default will actually change.
  823. # Use braces instead of parens because sh, perl, etc. also accept them.
  824. # (The list follows the same order as the GNU Coding Standards.)
  825. bindir='${exec_prefix}/bin'
  826. sbindir='${exec_prefix}/sbin'
  827. libexecdir='${exec_prefix}/libexec'
  828. datarootdir='${prefix}/share'
  829. datadir='${datarootdir}'
  830. sysconfdir='${prefix}/etc'
  831. sharedstatedir='${prefix}/com'
  832. localstatedir='${prefix}/var'
  833. includedir='${prefix}/include'
  834. oldincludedir='/usr/include'
  835. docdir='${datarootdir}/doc/${PACKAGE}'
  836. infodir='${datarootdir}/info'
  837. htmldir='${docdir}'
  838. dvidir='${docdir}'
  839. pdfdir='${docdir}'
  840. psdir='${docdir}'
  841. libdir='${exec_prefix}/lib'
  842. localedir='${datarootdir}/locale'
  843. mandir='${datarootdir}/man'
  844. ac_prev=
  845. ac_dashdash=
  846. for ac_option
  847. do
  848. # If the previous option needs an argument, assign it.
  849. if test -n "$ac_prev"; then
  850. eval $ac_prev=\$ac_option
  851. ac_prev=
  852. continue
  853. fi
  854. case $ac_option in
  855. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  856. *) ac_optarg=yes ;;
  857. esac
  858. # Accept the important Cygnus configure options, so we can diagnose typos.
  859. case $ac_dashdash$ac_option in
  860. --)
  861. ac_dashdash=yes ;;
  862. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  863. ac_prev=bindir ;;
  864. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  865. bindir=$ac_optarg ;;
  866. -build | --build | --buil | --bui | --bu)
  867. ac_prev=build_alias ;;
  868. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  869. build_alias=$ac_optarg ;;
  870. -cache-file | --cache-file | --cache-fil | --cache-fi \
  871. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  872. ac_prev=cache_file ;;
  873. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  874. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  875. cache_file=$ac_optarg ;;
  876. --config-cache | -C)
  877. cache_file=config.cache ;;
  878. -datadir | --datadir | --datadi | --datad)
  879. ac_prev=datadir ;;
  880. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  881. datadir=$ac_optarg ;;
  882. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  883. | --dataroo | --dataro | --datar)
  884. ac_prev=datarootdir ;;
  885. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  886. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  887. datarootdir=$ac_optarg ;;
  888. -disable-* | --disable-*)
  889. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  890. # Reject names that are not valid shell variable names.
  891. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  892. as_fn_error "invalid feature name: $ac_useropt"
  893. ac_useropt_orig=$ac_useropt
  894. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  895. case $ac_user_opts in
  896. *"
  897. "enable_$ac_useropt"
  898. "*) ;;
  899. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  900. ac_unrecognized_sep=', ';;
  901. esac
  902. eval enable_$ac_useropt=no ;;
  903. -docdir | --docdir | --docdi | --doc | --do)
  904. ac_prev=docdir ;;
  905. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  906. docdir=$ac_optarg ;;
  907. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  908. ac_prev=dvidir ;;
  909. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  910. dvidir=$ac_optarg ;;
  911. -enable-* | --enable-*)
  912. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  913. # Reject names that are not valid shell variable names.
  914. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  915. as_fn_error "invalid feature name: $ac_useropt"
  916. ac_useropt_orig=$ac_useropt
  917. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  918. case $ac_user_opts in
  919. *"
  920. "enable_$ac_useropt"
  921. "*) ;;
  922. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  923. ac_unrecognized_sep=', ';;
  924. esac
  925. eval enable_$ac_useropt=\$ac_optarg ;;
  926. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  927. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  928. | --exec | --exe | --ex)
  929. ac_prev=exec_prefix ;;
  930. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  931. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  932. | --exec=* | --exe=* | --ex=*)
  933. exec_prefix=$ac_optarg ;;
  934. -gas | --gas | --ga | --g)
  935. # Obsolete; use --with-gas.
  936. with_gas=yes ;;
  937. -help | --help | --hel | --he | -h)
  938. ac_init_help=long ;;
  939. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  940. ac_init_help=recursive ;;
  941. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  942. ac_init_help=short ;;
  943. -host | --host | --hos | --ho)
  944. ac_prev=host_alias ;;
  945. -host=* | --host=* | --hos=* | --ho=*)
  946. host_alias=$ac_optarg ;;
  947. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  948. ac_prev=htmldir ;;
  949. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  950. | --ht=*)
  951. htmldir=$ac_optarg ;;
  952. -includedir | --includedir | --includedi | --included | --include \
  953. | --includ | --inclu | --incl | --inc)
  954. ac_prev=includedir ;;
  955. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  956. | --includ=* | --inclu=* | --incl=* | --inc=*)
  957. includedir=$ac_optarg ;;
  958. -infodir | --infodir | --infodi | --infod | --info | --inf)
  959. ac_prev=infodir ;;
  960. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  961. infodir=$ac_optarg ;;
  962. -libdir | --libdir | --libdi | --libd)
  963. ac_prev=libdir ;;
  964. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  965. libdir=$ac_optarg ;;
  966. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  967. | --libexe | --libex | --libe)
  968. ac_prev=libexecdir ;;
  969. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  970. | --libexe=* | --libex=* | --libe=*)
  971. libexecdir=$ac_optarg ;;
  972. -localedir | --localedir | --localedi | --localed | --locale)
  973. ac_prev=localedir ;;
  974. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  975. localedir=$ac_optarg ;;
  976. -localstatedir | --localstatedir | --localstatedi | --localstated \
  977. | --localstate | --localstat | --localsta | --localst | --locals)
  978. ac_prev=localstatedir ;;
  979. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  980. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  981. localstatedir=$ac_optarg ;;
  982. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  983. ac_prev=mandir ;;
  984. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  985. mandir=$ac_optarg ;;
  986. -nfp | --nfp | --nf)
  987. # Obsolete; use --without-fp.
  988. with_fp=no ;;
  989. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  990. | --no-cr | --no-c | -n)
  991. no_create=yes ;;
  992. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  993. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  994. no_recursion=yes ;;
  995. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  996. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  997. | --oldin | --oldi | --old | --ol | --o)
  998. ac_prev=oldincludedir ;;
  999. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1000. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1001. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1002. oldincludedir=$ac_optarg ;;
  1003. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1004. ac_prev=prefix ;;
  1005. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1006. prefix=$ac_optarg ;;
  1007. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1008. | --program-pre | --program-pr | --program-p)
  1009. ac_prev=program_prefix ;;
  1010. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1011. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1012. program_prefix=$ac_optarg ;;
  1013. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1014. | --program-suf | --program-su | --program-s)
  1015. ac_prev=program_suffix ;;
  1016. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1017. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1018. program_suffix=$ac_optarg ;;
  1019. -program-transform-name | --program-transform-name \
  1020. | --program-transform-nam | --program-transform-na \
  1021. | --program-transform-n | --program-transform- \
  1022. | --program-transform | --program-transfor \
  1023. | --program-transfo | --program-transf \
  1024. | --program-trans | --program-tran \
  1025. | --progr-tra | --program-tr | --program-t)
  1026. ac_prev=program_transform_name ;;
  1027. -program-transform-name=* | --program-transform-name=* \
  1028. | --program-transform-nam=* | --program-transform-na=* \
  1029. | --program-transform-n=* | --program-transform-=* \
  1030. | --program-transform=* | --program-transfor=* \
  1031. | --program-transfo=* | --program-transf=* \
  1032. | --program-trans=* | --program-tran=* \
  1033. | --progr-tra=* | --program-tr=* | --program-t=*)
  1034. program_transform_name=$ac_optarg ;;
  1035. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1036. ac_prev=pdfdir ;;
  1037. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1038. pdfdir=$ac_optarg ;;
  1039. -psdir | --psdir | --psdi | --psd | --ps)
  1040. ac_prev=psdir ;;
  1041. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1042. psdir=$ac_optarg ;;
  1043. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1044. | -silent | --silent | --silen | --sile | --sil)
  1045. silent=yes ;;
  1046. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1047. ac_prev=sbindir ;;
  1048. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1049. | --sbi=* | --sb=*)
  1050. sbindir=$ac_optarg ;;
  1051. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1052. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1053. | --sharedst | --shareds | --shared | --share | --shar \
  1054. | --sha | --sh)
  1055. ac_prev=sharedstatedir ;;
  1056. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1057. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1058. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1059. | --sha=* | --sh=*)
  1060. sharedstatedir=$ac_optarg ;;
  1061. -site | --site | --sit)
  1062. ac_prev=site ;;
  1063. -site=* | --site=* | --sit=*)
  1064. site=$ac_optarg ;;
  1065. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1066. ac_prev=srcdir ;;
  1067. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1068. srcdir=$ac_optarg ;;
  1069. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1070. | --syscon | --sysco | --sysc | --sys | --sy)
  1071. ac_prev=sysconfdir ;;
  1072. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1073. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1074. sysconfdir=$ac_optarg ;;
  1075. -target | --target | --targe | --targ | --tar | --ta | --t)
  1076. ac_prev=target_alias ;;
  1077. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1078. target_alias=$ac_optarg ;;
  1079. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1080. verbose=yes ;;
  1081. -version | --version | --versio | --versi | --vers | -V)
  1082. ac_init_version=: ;;
  1083. -with-* | --with-*)
  1084. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1085. # Reject names that are not valid shell variable names.
  1086. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1087. as_fn_error "invalid package name: $ac_useropt"
  1088. ac_useropt_orig=$ac_useropt
  1089. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1090. case $ac_user_opts in
  1091. *"
  1092. "with_$ac_useropt"
  1093. "*) ;;
  1094. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1095. ac_unrecognized_sep=', ';;
  1096. esac
  1097. eval with_$ac_useropt=\$ac_optarg ;;
  1098. -without-* | --without-*)
  1099. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1100. # Reject names that are not valid shell variable names.
  1101. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1102. as_fn_error "invalid package name: $ac_useropt"
  1103. ac_useropt_orig=$ac_useropt
  1104. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1105. case $ac_user_opts in
  1106. *"
  1107. "with_$ac_useropt"
  1108. "*) ;;
  1109. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1110. ac_unrecognized_sep=', ';;
  1111. esac
  1112. eval with_$ac_useropt=no ;;
  1113. --x)
  1114. # Obsolete; use --with-x.
  1115. with_x=yes ;;
  1116. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1117. | --x-incl | --x-inc | --x-in | --x-i)
  1118. ac_prev=x_includes ;;
  1119. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1120. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1121. x_includes=$ac_optarg ;;
  1122. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1123. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1124. ac_prev=x_libraries ;;
  1125. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1126. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1127. x_libraries=$ac_optarg ;;
  1128. -*) as_fn_error "unrecognized option: \`$ac_option'
  1129. Try \`$0 --help' for more information."
  1130. ;;
  1131. *=*)
  1132. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1133. # Reject names that are not valid shell variable names.
  1134. case $ac_envvar in #(
  1135. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1136. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1137. esac
  1138. eval $ac_envvar=\$ac_optarg
  1139. export $ac_envvar ;;
  1140. *)
  1141. # FIXME: should be removed in autoconf 3.0.
  1142. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1143. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1144. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1145. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1146. ;;
  1147. esac
  1148. done
  1149. if test -n "$ac_prev"; then
  1150. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1151. as_fn_error "missing argument to $ac_option"
  1152. fi
  1153. if test -n "$ac_unrecognized_opts"; then
  1154. case $enable_option_checking in
  1155. no) ;;
  1156. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1157. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1158. esac
  1159. fi
  1160. # Check all directory arguments for consistency.
  1161. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1162. datadir sysconfdir sharedstatedir localstatedir includedir \
  1163. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1164. libdir localedir mandir
  1165. do
  1166. eval ac_val=\$$ac_var
  1167. # Remove trailing slashes.
  1168. case $ac_val in
  1169. */ )
  1170. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1171. eval $ac_var=\$ac_val;;
  1172. esac
  1173. # Be sure to have absolute directory names.
  1174. case $ac_val in
  1175. [\\/$]* | ?:[\\/]* ) continue;;
  1176. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1177. esac
  1178. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1179. done
  1180. # There might be people who depend on the old broken behavior: `$host'
  1181. # used to hold the argument of --host etc.
  1182. # FIXME: To remove some day.
  1183. build=$build_alias
  1184. host=$host_alias
  1185. target=$target_alias
  1186. # FIXME: To remove some day.
  1187. if test "x$host_alias" != x; then
  1188. if test "x$build_alias" = x; then
  1189. cross_compiling=maybe
  1190. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1191. If a cross compiler is detected then cross compile mode will be used." >&2
  1192. elif test "x$build_alias" != "x$host_alias"; then
  1193. cross_compiling=yes
  1194. fi
  1195. fi
  1196. ac_tool_prefix=
  1197. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1198. test "$silent" = yes && exec 6>/dev/null
  1199. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1200. ac_ls_di=`ls -di .` &&
  1201. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1202. as_fn_error "working directory cannot be determined"
  1203. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1204. as_fn_error "pwd does not report name of working directory"
  1205. # Find the source files, if location was not specified.
  1206. if test -z "$srcdir"; then
  1207. ac_srcdir_defaulted=yes
  1208. # Try the directory containing this script, then the parent directory.
  1209. ac_confdir=`$as_dirname -- "$as_myself" ||
  1210. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1211. X"$as_myself" : 'X\(//\)[^/]' \| \
  1212. X"$as_myself" : 'X\(//\)$' \| \
  1213. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1214. $as_echo X"$as_myself" |
  1215. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1216. s//\1/
  1217. q
  1218. }
  1219. /^X\(\/\/\)[^/].*/{
  1220. s//\1/
  1221. q
  1222. }
  1223. /^X\(\/\/\)$/{
  1224. s//\1/
  1225. q
  1226. }
  1227. /^X\(\/\).*/{
  1228. s//\1/
  1229. q
  1230. }
  1231. s/.*/./; q'`
  1232. srcdir=$ac_confdir
  1233. if test ! -r "$srcdir/$ac_unique_file"; then
  1234. srcdir=..
  1235. fi
  1236. else
  1237. ac_srcdir_defaulted=no
  1238. fi
  1239. if test ! -r "$srcdir/$ac_unique_file"; then
  1240. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1241. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1242. fi
  1243. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1244. ac_abs_confdir=`(
  1245. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1246. pwd)`
  1247. # When building in place, set srcdir=.
  1248. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1249. srcdir=.
  1250. fi
  1251. # Remove unnecessary trailing slashes from srcdir.
  1252. # Double slashes in file names in object file debugging info
  1253. # mess up M-x gdb in Emacs.
  1254. case $srcdir in
  1255. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1256. esac
  1257. case $srcdir in
  1258. *" "*)
  1259. as_fn_error "path to source, $srcdir, contains spaces"
  1260. ;;
  1261. esac
  1262. ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
  1263. for ac_var in $ac_precious_vars; do
  1264. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1265. eval ac_env_${ac_var}_value=\$${ac_var}
  1266. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1267. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1268. done
  1269. #
  1270. # Report the --help message.
  1271. #
  1272. if test "$ac_init_help" = "long"; then
  1273. # Omit some internal or obsolete options to make the list less imposing.
  1274. # This message is too long to be a string in the A/UX 3.1 sh.
  1275. cat <<_ACEOF
  1276. \`configure' configures this package to adapt to many kinds of systems.
  1277. Usage: $0 [OPTION]... [VAR=VALUE]...
  1278. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1279. VAR=VALUE. See below for descriptions of some of the useful variables.
  1280. Defaults for the options are specified in brackets.
  1281. Configuration:
  1282. -h, --help display this help and exit
  1283. --help=short display options specific to this package
  1284. --help=recursive display the short help of all the included packages
  1285. -V, --version display version information and exit
  1286. -q, --quiet, --silent do not print \`checking...' messages
  1287. --cache-file=FILE cache test results in FILE [disabled]
  1288. -C, --config-cache alias for \`--cache-file=config.cache'
  1289. -n, --no-create do not create output files
  1290. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1291. Installation directories:
  1292. --prefix=PREFIX install architecture-independent files in PREFIX
  1293. [$ac_default_prefix]
  1294. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1295. [PREFIX]
  1296. By default, \`make install' will install all the files in
  1297. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1298. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1299. for instance \`--prefix=\$HOME'.
  1300. For better control, use the options below.
  1301. Fine tuning of the installation directories:
  1302. --bindir=DIR user executables [EPREFIX/bin]
  1303. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1304. --libexecdir=DIR program executables [EPREFIX/libexec]
  1305. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1306. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1307. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1308. --libdir=DIR object code libraries [EPREFIX/lib]
  1309. --includedir=DIR C header files [PREFIX/include]
  1310. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1311. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1312. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1313. --infodir=DIR info documentation [DATAROOTDIR/info]
  1314. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1315. --mandir=DIR man documentation [DATAROOTDIR/man]
  1316. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1317. --htmldir=DIR html documentation [DOCDIR]
  1318. --dvidir=DIR dvi documentation [DOCDIR]
  1319. --pdfdir=DIR pdf documentation [DOCDIR]
  1320. --psdir=DIR ps documentation [DOCDIR]
  1321. _ACEOF
  1322. cat <<\_ACEOF
  1323. Program names:
  1324. --program-prefix=PREFIX prepend PREFIX to installed program names
  1325. --program-suffix=SUFFIX append SUFFIX to installed program names
  1326. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1327. System types:
  1328. --build=BUILD configure for building on BUILD [guessed]
  1329. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1330. --target=TARGET configure for building compilers for TARGET [HOST]
  1331. _ACEOF
  1332. fi
  1333. if test -n "$ac_init_help"; then
  1334. cat <<\_ACEOF
  1335. Optional Features:
  1336. --disable-option-checking ignore unrecognized --enable/--with options
  1337. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1338. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1339. --enable-as-accelerator-for=ARG
  1340. build as offload target compiler. Specify offload
  1341. host triple by ARG
  1342. --enable-offload-targets=LIST
  1343. enable offloading to devices from comma-separated
  1344. LIST of TARGET[=DIR]. Use optional path to find
  1345. offload target compiler during the build
  1346. --enable-gold[=ARG] build gold [ARG={default,yes,no}]
  1347. --enable-ld[=ARG] build ld [ARG={default,yes,no}]
  1348. --enable-compressed-debug-sections={all,gas,gold,ld,none}
  1349. Enable compressed debug sections for gas, gold or ld
  1350. by default
  1351. --disable-libquadmath do not build libquadmath directory
  1352. --disable-libquadmath-support
  1353. disable libquadmath support for Fortran
  1354. --enable-libada build libada directory
  1355. --enable-libssp build libssp directory
  1356. --disable-libstdcxx do not build libstdc++-v3 directory
  1357. --enable-liboffloadmic=ARG
  1358. build liboffloadmic [ARG={no,host,target}]
  1359. --enable-static-libjava[=ARG]
  1360. build static libjava [default=no]
  1361. --enable-bootstrap enable bootstrapping [yes if native build]
  1362. --disable-isl-version-check
  1363. disable check for ISL version
  1364. --enable-lto enable link time optimization support
  1365. --enable-linker-plugin-configure-flags=FLAGS
  1366. additional flags for configuring linker plugins
  1367. [none]
  1368. --enable-linker-plugin-flags=FLAGS
  1369. additional flags for configuring and building linker
  1370. plugins [none]
  1371. --enable-stage1-languages[=all]
  1372. choose additional languages to build during stage1.
  1373. Mostly useful for compiler development
  1374. --enable-objc-gc enable use of Boehm's garbage collector with the GNU
  1375. Objective-C runtime
  1376. --enable-vtable-verify Enable vtable verification feature
  1377. --enable-serial-[{host,target,build}-]configure
  1378. force sequential configuration of sub-packages for
  1379. the host, target or build machine, or all
  1380. sub-packages
  1381. --enable-maintainer-mode
  1382. enable make rules and dependencies not useful (and
  1383. sometimes confusing) to the casual installer
  1384. --enable-stage1-checking[=all]
  1385. choose additional checking for stage1 of the
  1386. compiler
  1387. --enable-werror enable -Werror in bootstrap stage2 and later
  1388. --enable-host-shared build host code as shared libraries
  1389. Optional Packages:
  1390. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1391. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1392. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1393. --with-system-zlib use installed libz
  1394. --with-mpc=PATH specify prefix directory for installed MPC package.
  1395. Equivalent to --with-mpc-include=PATH/include plus
  1396. --with-mpc-lib=PATH/lib
  1397. --with-mpc-include=PATH specify directory for installed MPC include files
  1398. --with-mpc-lib=PATH specify directory for the installed MPC library
  1399. --with-mpfr-dir=PATH this option has been REMOVED
  1400. --with-mpfr=PATH specify prefix directory for installed MPFR package.
  1401. Equivalent to --with-mpfr-include=PATH/include plus
  1402. --with-mpfr-lib=PATH/lib
  1403. --with-mpfr-include=PATH
  1404. specify directory for installed MPFR include files
  1405. --with-mpfr-lib=PATH specify directory for the installed MPFR library
  1406. --with-gmp-dir=PATH this option has been REMOVED
  1407. --with-gmp=PATH specify prefix directory for the installed GMP
  1408. package. Equivalent to
  1409. --with-gmp-include=PATH/include plus
  1410. --with-gmp-lib=PATH/lib
  1411. --with-gmp-include=PATH specify directory for installed GMP include files
  1412. --with-gmp-lib=PATH specify directory for the installed GMP library
  1413. --with-stage1-libs=LIBS libraries for stage1
  1414. --with-stage1-ldflags=FLAGS
  1415. linker flags for stage1
  1416. --with-boot-libs=LIBS libraries for stage2 and later
  1417. --with-boot-ldflags=FLAGS
  1418. linker flags for stage2 and later
  1419. --with-isl=PATH Specify prefix directory for the installed ISL
  1420. package. Equivalent to
  1421. --with-isl-include=PATH/include plus
  1422. --with-isl-lib=PATH/lib
  1423. --with-isl-include=PATH Specify directory for installed ISL include files
  1424. --with-isl-lib=PATH Specify the directory for the installed ISL library
  1425. --with-build-sysroot=SYSROOT
  1426. use sysroot as the system root during the build
  1427. --with-debug-prefix-map='A=B C=D ...'
  1428. map A to B, C to D ... in debug information
  1429. --with-build-config='NAME NAME2...'
  1430. use config/NAME.mk build configuration
  1431. --with-build-time-tools=PATH
  1432. use given path to find target tools during the build
  1433. Some influential environment variables:
  1434. CC C compiler command
  1435. CFLAGS C compiler flags
  1436. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1437. nonstandard directory <lib dir>
  1438. LIBS libraries to pass to the linker, e.g. -l<library>
  1439. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1440. you have headers in a nonstandard directory <include dir>
  1441. CXX C++ compiler command
  1442. CXXFLAGS C++ compiler flags
  1443. build_configargs
  1444. additional configure arguments for build directories
  1445. host_configargs
  1446. additional configure arguments for host directories
  1447. target_configargs
  1448. additional configure arguments for target directories
  1449. AR AR for the host
  1450. AS AS for the host
  1451. DLLTOOL DLLTOOL for the host
  1452. LD LD for the host
  1453. LIPO LIPO for the host
  1454. NM NM for the host
  1455. RANLIB RANLIB for the host
  1456. STRIP STRIP for the host
  1457. WINDRES WINDRES for the host
  1458. WINDMC WINDMC for the host
  1459. OBJCOPY OBJCOPY for the host
  1460. OBJDUMP OBJDUMP for the host
  1461. READELF READELF for the host
  1462. CC_FOR_TARGET
  1463. CC for the target
  1464. CXX_FOR_TARGET
  1465. CXX for the target
  1466. GCC_FOR_TARGET
  1467. GCC for the target
  1468. GCJ_FOR_TARGET
  1469. GCJ for the target
  1470. GFORTRAN_FOR_TARGET
  1471. GFORTRAN for the target
  1472. GOC_FOR_TARGET
  1473. GOC for the target
  1474. AR_FOR_TARGET
  1475. AR for the target
  1476. AS_FOR_TARGET
  1477. AS for the target
  1478. DLLTOOL_FOR_TARGET
  1479. DLLTOOL for the target
  1480. LD_FOR_TARGET
  1481. LD for the target
  1482. LIPO_FOR_TARGET
  1483. LIPO for the target
  1484. NM_FOR_TARGET
  1485. NM for the target
  1486. OBJCOPY_FOR_TARGET
  1487. OBJCOPY for the target
  1488. OBJDUMP_FOR_TARGET
  1489. OBJDUMP for the target
  1490. RANLIB_FOR_TARGET
  1491. RANLIB for the target
  1492. READELF_FOR_TARGET
  1493. READELF for the target
  1494. STRIP_FOR_TARGET
  1495. STRIP for the target
  1496. WINDRES_FOR_TARGET
  1497. WINDRES for the target
  1498. WINDMC_FOR_TARGET
  1499. WINDMC for the target
  1500. Use these variables to override the choices made by `configure' or to help
  1501. it to find libraries and programs with nonstandard names/locations.
  1502. Report bugs to the package provider.
  1503. _ACEOF
  1504. ac_status=$?
  1505. fi
  1506. if test "$ac_init_help" = "recursive"; then
  1507. # If there are subdirs, report their specific --help.
  1508. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1509. test -d "$ac_dir" ||
  1510. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1511. continue
  1512. ac_builddir=.
  1513. case "$ac_dir" in
  1514. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1515. *)
  1516. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1517. # A ".." for each directory in $ac_dir_suffix.
  1518. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1519. case $ac_top_builddir_sub in
  1520. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1521. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1522. esac ;;
  1523. esac
  1524. ac_abs_top_builddir=$ac_pwd
  1525. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1526. # for backward compatibility:
  1527. ac_top_builddir=$ac_top_build_prefix
  1528. case $srcdir in
  1529. .) # We are building in place.
  1530. ac_srcdir=.
  1531. ac_top_srcdir=$ac_top_builddir_sub
  1532. ac_abs_top_srcdir=$ac_pwd ;;
  1533. [\\/]* | ?:[\\/]* ) # Absolute name.
  1534. ac_srcdir=$srcdir$ac_dir_suffix;
  1535. ac_top_srcdir=$srcdir
  1536. ac_abs_top_srcdir=$srcdir ;;
  1537. *) # Relative name.
  1538. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1539. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1540. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1541. esac
  1542. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1543. cd "$ac_dir" || { ac_status=$?; continue; }
  1544. # Check for guested configure.
  1545. if test -f "$ac_srcdir/configure.gnu"; then
  1546. echo &&
  1547. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1548. elif test -f "$ac_srcdir/configure"; then
  1549. echo &&
  1550. $SHELL "$ac_srcdir/configure" --help=recursive
  1551. else
  1552. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1553. fi || ac_status=$?
  1554. cd "$ac_pwd" || { ac_status=$?; break; }
  1555. done
  1556. fi
  1557. test -n "$ac_init_help" && exit $ac_status
  1558. if $ac_init_version; then
  1559. cat <<\_ACEOF
  1560. configure
  1561. generated by GNU Autoconf 2.64
  1562. Copyright (C) 2009 Free Software Foundation, Inc.
  1563. This configure script is free software; the Free Software Foundation
  1564. gives unlimited permission to copy, distribute and modify it.
  1565. _ACEOF
  1566. exit
  1567. fi
  1568. ## ------------------------ ##
  1569. ## Autoconf initialization. ##
  1570. ## ------------------------ ##
  1571. # ac_fn_c_try_compile LINENO
  1572. # --------------------------
  1573. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1574. ac_fn_c_try_compile ()
  1575. {
  1576. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1577. rm -f conftest.$ac_objext
  1578. if { { ac_try="$ac_compile"
  1579. case "(($ac_try" in
  1580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1581. *) ac_try_echo=$ac_try;;
  1582. esac
  1583. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1584. $as_echo "$ac_try_echo"; } >&5
  1585. (eval "$ac_compile") 2>conftest.err
  1586. ac_status=$?
  1587. if test -s conftest.err; then
  1588. grep -v '^ *+' conftest.err >conftest.er1
  1589. cat conftest.er1 >&5
  1590. mv -f conftest.er1 conftest.err
  1591. fi
  1592. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1593. test $ac_status = 0; } && {
  1594. test -z "$ac_c_werror_flag" ||
  1595. test ! -s conftest.err
  1596. } && test -s conftest.$ac_objext; then :
  1597. ac_retval=0
  1598. else
  1599. $as_echo "$as_me: failed program was:" >&5
  1600. sed 's/^/| /' conftest.$ac_ext >&5
  1601. ac_retval=1
  1602. fi
  1603. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1604. return $ac_retval
  1605. } # ac_fn_c_try_compile
  1606. # ac_fn_cxx_try_compile LINENO
  1607. # ----------------------------
  1608. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1609. ac_fn_cxx_try_compile ()
  1610. {
  1611. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1612. rm -f conftest.$ac_objext
  1613. if { { ac_try="$ac_compile"
  1614. case "(($ac_try" in
  1615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1616. *) ac_try_echo=$ac_try;;
  1617. esac
  1618. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1619. $as_echo "$ac_try_echo"; } >&5
  1620. (eval "$ac_compile") 2>conftest.err
  1621. ac_status=$?
  1622. if test -s conftest.err; then
  1623. grep -v '^ *+' conftest.err >conftest.er1
  1624. cat conftest.er1 >&5
  1625. mv -f conftest.er1 conftest.err
  1626. fi
  1627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1628. test $ac_status = 0; } && {
  1629. test -z "$ac_cxx_werror_flag" ||
  1630. test ! -s conftest.err
  1631. } && test -s conftest.$ac_objext; then :
  1632. ac_retval=0
  1633. else
  1634. $as_echo "$as_me: failed program was:" >&5
  1635. sed 's/^/| /' conftest.$ac_ext >&5
  1636. ac_retval=1
  1637. fi
  1638. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1639. return $ac_retval
  1640. } # ac_fn_cxx_try_compile
  1641. # ac_fn_cxx_try_link LINENO
  1642. # -------------------------
  1643. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1644. ac_fn_cxx_try_link ()
  1645. {
  1646. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1647. rm -f conftest.$ac_objext conftest$ac_exeext
  1648. if { { ac_try="$ac_link"
  1649. case "(($ac_try" in
  1650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1651. *) ac_try_echo=$ac_try;;
  1652. esac
  1653. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1654. $as_echo "$ac_try_echo"; } >&5
  1655. (eval "$ac_link") 2>conftest.err
  1656. ac_status=$?
  1657. if test -s conftest.err; then
  1658. grep -v '^ *+' conftest.err >conftest.er1
  1659. cat conftest.er1 >&5
  1660. mv -f conftest.er1 conftest.err
  1661. fi
  1662. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1663. test $ac_status = 0; } && {
  1664. test -z "$ac_cxx_werror_flag" ||
  1665. test ! -s conftest.err
  1666. } && test -s conftest$ac_exeext && {
  1667. test "$cross_compiling" = yes ||
  1668. $as_test_x conftest$ac_exeext
  1669. }; then :
  1670. ac_retval=0
  1671. else
  1672. $as_echo "$as_me: failed program was:" >&5
  1673. sed 's/^/| /' conftest.$ac_ext >&5
  1674. ac_retval=1
  1675. fi
  1676. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1677. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1678. # interfere with the next link command; also delete a directory that is
  1679. # left behind by Apple's compiler. We do this before executing the actions.
  1680. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1681. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1682. return $ac_retval
  1683. } # ac_fn_cxx_try_link
  1684. # ac_fn_c_try_link LINENO
  1685. # -----------------------
  1686. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1687. ac_fn_c_try_link ()
  1688. {
  1689. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1690. rm -f conftest.$ac_objext conftest$ac_exeext
  1691. if { { ac_try="$ac_link"
  1692. case "(($ac_try" in
  1693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1694. *) ac_try_echo=$ac_try;;
  1695. esac
  1696. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1697. $as_echo "$ac_try_echo"; } >&5
  1698. (eval "$ac_link") 2>conftest.err
  1699. ac_status=$?
  1700. if test -s conftest.err; then
  1701. grep -v '^ *+' conftest.err >conftest.er1
  1702. cat conftest.er1 >&5
  1703. mv -f conftest.er1 conftest.err
  1704. fi
  1705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1706. test $ac_status = 0; } && {
  1707. test -z "$ac_c_werror_flag" ||
  1708. test ! -s conftest.err
  1709. } && test -s conftest$ac_exeext && {
  1710. test "$cross_compiling" = yes ||
  1711. $as_test_x conftest$ac_exeext
  1712. }; then :
  1713. ac_retval=0
  1714. else
  1715. $as_echo "$as_me: failed program was:" >&5
  1716. sed 's/^/| /' conftest.$ac_ext >&5
  1717. ac_retval=1
  1718. fi
  1719. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1720. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1721. # interfere with the next link command; also delete a directory that is
  1722. # left behind by Apple's compiler. We do this before executing the actions.
  1723. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1724. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1725. return $ac_retval
  1726. } # ac_fn_c_try_link
  1727. cat >config.log <<_ACEOF
  1728. This file contains any messages produced by compilers while
  1729. running configure, to aid debugging if configure makes a mistake.
  1730. It was created by $as_me, which was
  1731. generated by GNU Autoconf 2.64. Invocation command line was
  1732. $ $0 $@
  1733. _ACEOF
  1734. exec 5>>config.log
  1735. {
  1736. cat <<_ASUNAME
  1737. ## --------- ##
  1738. ## Platform. ##
  1739. ## --------- ##
  1740. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1741. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1742. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1743. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1744. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1745. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1746. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1747. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1748. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1749. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1750. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1751. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1752. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1753. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1754. _ASUNAME
  1755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1756. for as_dir in $PATH
  1757. do
  1758. IFS=$as_save_IFS
  1759. test -z "$as_dir" && as_dir=.
  1760. $as_echo "PATH: $as_dir"
  1761. done
  1762. IFS=$as_save_IFS
  1763. } >&5
  1764. cat >&5 <<_ACEOF
  1765. ## ----------- ##
  1766. ## Core tests. ##
  1767. ## ----------- ##
  1768. _ACEOF
  1769. # Keep a trace of the command line.
  1770. # Strip out --no-create and --no-recursion so they do not pile up.
  1771. # Strip out --silent because we don't want to record it for future runs.
  1772. # Also quote any args containing shell meta-characters.
  1773. # Make two passes to allow for proper duplicate-argument suppression.
  1774. ac_configure_args=
  1775. ac_configure_args0=
  1776. ac_configure_args1=
  1777. ac_must_keep_next=false
  1778. for ac_pass in 1 2
  1779. do
  1780. for ac_arg
  1781. do
  1782. case $ac_arg in
  1783. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1784. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1785. | -silent | --silent | --silen | --sile | --sil)
  1786. continue ;;
  1787. *\'*)
  1788. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1789. esac
  1790. case $ac_pass in
  1791. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1792. 2)
  1793. as_fn_append ac_configure_args1 " '$ac_arg'"
  1794. if test $ac_must_keep_next = true; then
  1795. ac_must_keep_next=false # Got value, back to normal.
  1796. else
  1797. case $ac_arg in
  1798. *=* | --config-cache | -C | -disable-* | --disable-* \
  1799. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1800. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1801. | -with-* | --with-* | -without-* | --without-* | --x)
  1802. case "$ac_configure_args0 " in
  1803. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1804. esac
  1805. ;;
  1806. -* ) ac_must_keep_next=true ;;
  1807. esac
  1808. fi
  1809. as_fn_append ac_configure_args " '$ac_arg'"
  1810. ;;
  1811. esac
  1812. done
  1813. done
  1814. { ac_configure_args0=; unset ac_configure_args0;}
  1815. { ac_configure_args1=; unset ac_configure_args1;}
  1816. # When interrupted or exit'd, cleanup temporary files, and complete
  1817. # config.log. We remove comments because anyway the quotes in there
  1818. # would cause problems or look ugly.
  1819. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1820. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1821. trap 'exit_status=$?
  1822. # Save into config.log some information that might help in debugging.
  1823. {
  1824. echo
  1825. cat <<\_ASBOX
  1826. ## ---------------- ##
  1827. ## Cache variables. ##
  1828. ## ---------------- ##
  1829. _ASBOX
  1830. echo
  1831. # The following way of writing the cache mishandles newlines in values,
  1832. (
  1833. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1834. eval ac_val=\$$ac_var
  1835. case $ac_val in #(
  1836. *${as_nl}*)
  1837. case $ac_var in #(
  1838. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1839. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1840. esac
  1841. case $ac_var in #(
  1842. _ | IFS | as_nl) ;; #(
  1843. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1844. *) { eval $ac_var=; unset $ac_var;} ;;
  1845. esac ;;
  1846. esac
  1847. done
  1848. (set) 2>&1 |
  1849. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1850. *${as_nl}ac_space=\ *)
  1851. sed -n \
  1852. "s/'\''/'\''\\\\'\'''\''/g;
  1853. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1854. ;; #(
  1855. *)
  1856. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1857. ;;
  1858. esac |
  1859. sort
  1860. )
  1861. echo
  1862. cat <<\_ASBOX
  1863. ## ----------------- ##
  1864. ## Output variables. ##
  1865. ## ----------------- ##
  1866. _ASBOX
  1867. echo
  1868. for ac_var in $ac_subst_vars
  1869. do
  1870. eval ac_val=\$$ac_var
  1871. case $ac_val in
  1872. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1873. esac
  1874. $as_echo "$ac_var='\''$ac_val'\''"
  1875. done | sort
  1876. echo
  1877. if test -n "$ac_subst_files"; then
  1878. cat <<\_ASBOX
  1879. ## ------------------- ##
  1880. ## File substitutions. ##
  1881. ## ------------------- ##
  1882. _ASBOX
  1883. echo
  1884. for ac_var in $ac_subst_files
  1885. do
  1886. eval ac_val=\$$ac_var
  1887. case $ac_val in
  1888. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1889. esac
  1890. $as_echo "$ac_var='\''$ac_val'\''"
  1891. done | sort
  1892. echo
  1893. fi
  1894. if test -s confdefs.h; then
  1895. cat <<\_ASBOX
  1896. ## ----------- ##
  1897. ## confdefs.h. ##
  1898. ## ----------- ##
  1899. _ASBOX
  1900. echo
  1901. cat confdefs.h
  1902. echo
  1903. fi
  1904. test "$ac_signal" != 0 &&
  1905. $as_echo "$as_me: caught signal $ac_signal"
  1906. $as_echo "$as_me: exit $exit_status"
  1907. } >&5
  1908. rm -f core *.core core.conftest.* &&
  1909. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1910. exit $exit_status
  1911. ' 0
  1912. for ac_signal in 1 2 13 15; do
  1913. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1914. done
  1915. ac_signal=0
  1916. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1917. rm -f -r conftest* confdefs.h
  1918. $as_echo "/* confdefs.h */" > confdefs.h
  1919. # Predefined preprocessor variables.
  1920. cat >>confdefs.h <<_ACEOF
  1921. #define PACKAGE_NAME "$PACKAGE_NAME"
  1922. _ACEOF
  1923. cat >>confdefs.h <<_ACEOF
  1924. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1925. _ACEOF
  1926. cat >>confdefs.h <<_ACEOF
  1927. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1928. _ACEOF
  1929. cat >>confdefs.h <<_ACEOF
  1930. #define PACKAGE_STRING "$PACKAGE_STRING"
  1931. _ACEOF
  1932. cat >>confdefs.h <<_ACEOF
  1933. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1934. _ACEOF
  1935. cat >>confdefs.h <<_ACEOF
  1936. #define PACKAGE_URL "$PACKAGE_URL"
  1937. _ACEOF
  1938. # Let the site file select an alternate cache file if it wants to.
  1939. # Prefer an explicitly selected file to automatically selected ones.
  1940. ac_site_file1=NONE
  1941. ac_site_file2=NONE
  1942. if test -n "$CONFIG_SITE"; then
  1943. ac_site_file1=$CONFIG_SITE
  1944. elif test "x$prefix" != xNONE; then
  1945. ac_site_file1=$prefix/share/config.site
  1946. ac_site_file2=$prefix/etc/config.site
  1947. else
  1948. ac_site_file1=$ac_default_prefix/share/config.site
  1949. ac_site_file2=$ac_default_prefix/etc/config.site
  1950. fi
  1951. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1952. do
  1953. test "x$ac_site_file" = xNONE && continue
  1954. if test -r "$ac_site_file"; then
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1956. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1957. sed 's/^/| /' "$ac_site_file" >&5
  1958. . "$ac_site_file"
  1959. fi
  1960. done
  1961. if test -r "$cache_file"; then
  1962. # Some versions of bash will fail to source /dev/null (special
  1963. # files actually), so we avoid doing that.
  1964. if test -f "$cache_file"; then
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1966. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1967. case $cache_file in
  1968. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1969. *) . "./$cache_file";;
  1970. esac
  1971. fi
  1972. else
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1974. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1975. >$cache_file
  1976. fi
  1977. # Check that the precious variables saved in the cache have kept the same
  1978. # value.
  1979. ac_cache_corrupted=false
  1980. for ac_var in $ac_precious_vars; do
  1981. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1982. eval ac_new_set=\$ac_env_${ac_var}_set
  1983. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1984. eval ac_new_val=\$ac_env_${ac_var}_value
  1985. case $ac_old_set,$ac_new_set in
  1986. set,)
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1988. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1989. ac_cache_corrupted=: ;;
  1990. ,set)
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1992. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1993. ac_cache_corrupted=: ;;
  1994. ,);;
  1995. *)
  1996. if test "x$ac_old_val" != "x$ac_new_val"; then
  1997. # differences in whitespace do not lead to failure.
  1998. ac_old_val_w=`echo x $ac_old_val`
  1999. ac_new_val_w=`echo x $ac_new_val`
  2000. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2002. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2003. ac_cache_corrupted=:
  2004. else
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2006. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2007. eval $ac_var=\$ac_old_val
  2008. fi
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2010. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2012. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2013. fi;;
  2014. esac
  2015. # Pass precious variables to config.status.
  2016. if test "$ac_new_set" = set; then
  2017. case $ac_new_val in
  2018. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2019. *) ac_arg=$ac_var=$ac_new_val ;;
  2020. esac
  2021. case " $ac_configure_args " in
  2022. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2023. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2024. esac
  2025. fi
  2026. done
  2027. if $ac_cache_corrupted; then
  2028. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2029. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2030. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2031. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2032. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2033. fi
  2034. ## -------------------- ##
  2035. ## Main body of script. ##
  2036. ## -------------------- ##
  2037. ac_ext=c
  2038. ac_cpp='$CPP $CPPFLAGS'
  2039. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2040. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2041. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2042. progname=$0
  2043. # if PWD already has a value, it is probably wrong.
  2044. if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
  2045. # Export original configure arguments for use by sub-configures.
  2046. # Quote arguments with shell meta charatcers.
  2047. TOPLEVEL_CONFIGURE_ARGUMENTS=
  2048. set -- "$progname" "$@"
  2049. for ac_arg
  2050. do
  2051. case "$ac_arg" in
  2052. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
  2053. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  2054. # if the argument is of the form -foo=baz, quote the baz part only
  2055. ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
  2056. *) ;;
  2057. esac
  2058. # Add the quoted argument to the list.
  2059. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
  2060. done
  2061. if test "$silent" = yes; then
  2062. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
  2063. fi
  2064. # Remove the initial space we just introduced and, as these will be
  2065. # expanded by make, quote '$'.
  2066. TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  2067. # Find the build, host, and target systems.
  2068. ac_aux_dir=
  2069. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2070. for ac_t in install-sh install.sh shtool; do
  2071. if test -f "$ac_dir/$ac_t"; then
  2072. ac_aux_dir=$ac_dir
  2073. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2074. break 2
  2075. fi
  2076. done
  2077. done
  2078. if test -z "$ac_aux_dir"; then
  2079. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2080. fi
  2081. # These three variables are undocumented and unsupported,
  2082. # and are intended to be withdrawn in a future Autoconf release.
  2083. # They can cause serious problems if a builder's source tree is in a directory
  2084. # whose full name contains unusual characters.
  2085. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2086. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2087. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2088. # Make sure we can run config.sub.
  2089. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2090. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2092. $as_echo_n "checking build system type... " >&6; }
  2093. if test "${ac_cv_build+set}" = set; then :
  2094. $as_echo_n "(cached) " >&6
  2095. else
  2096. ac_build_alias=$build_alias
  2097. test "x$ac_build_alias" = x &&
  2098. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2099. test "x$ac_build_alias" = x &&
  2100. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2101. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2102. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2103. fi
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2105. $as_echo "$ac_cv_build" >&6; }
  2106. case $ac_cv_build in
  2107. *-*-*) ;;
  2108. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2109. esac
  2110. build=$ac_cv_build
  2111. ac_save_IFS=$IFS; IFS='-'
  2112. set x $ac_cv_build
  2113. shift
  2114. build_cpu=$1
  2115. build_vendor=$2
  2116. shift; shift
  2117. # Remember, the first character of IFS is used to create $*,
  2118. # except with old shells:
  2119. build_os=$*
  2120. IFS=$ac_save_IFS
  2121. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2122. case ${build_alias} in
  2123. "") build_noncanonical=${build} ;;
  2124. *) build_noncanonical=${build_alias} ;;
  2125. esac
  2126. case ${host_alias} in
  2127. "") host_noncanonical=${build_noncanonical} ;;
  2128. *) host_noncanonical=${host_alias} ;;
  2129. esac
  2130. case ${target_alias} in
  2131. "") target_noncanonical=${host_noncanonical} ;;
  2132. *) target_noncanonical=${target_alias} ;;
  2133. esac
  2134. test "$host_noncanonical" = "$target_noncanonical" &&
  2135. test "$program_prefix$program_suffix$program_transform_name" = \
  2136. NONENONEs,x,x, &&
  2137. program_transform_name=s,y,y,
  2138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2139. $as_echo_n "checking host system type... " >&6; }
  2140. if test "${ac_cv_host+set}" = set; then :
  2141. $as_echo_n "(cached) " >&6
  2142. else
  2143. if test "x$host_alias" = x; then
  2144. ac_cv_host=$ac_cv_build
  2145. else
  2146. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2147. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2148. fi
  2149. fi
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2151. $as_echo "$ac_cv_host" >&6; }
  2152. case $ac_cv_host in
  2153. *-*-*) ;;
  2154. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2155. esac
  2156. host=$ac_cv_host
  2157. ac_save_IFS=$IFS; IFS='-'
  2158. set x $ac_cv_host
  2159. shift
  2160. host_cpu=$1
  2161. host_vendor=$2
  2162. shift; shift
  2163. # Remember, the first character of IFS is used to create $*,
  2164. # except with old shells:
  2165. host_os=$*
  2166. IFS=$ac_save_IFS
  2167. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2169. $as_echo_n "checking target system type... " >&6; }
  2170. if test "${ac_cv_target+set}" = set; then :
  2171. $as_echo_n "(cached) " >&6
  2172. else
  2173. if test "x$target_alias" = x; then
  2174. ac_cv_target=$ac_cv_host
  2175. else
  2176. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2177. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2178. fi
  2179. fi
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2181. $as_echo "$ac_cv_target" >&6; }
  2182. case $ac_cv_target in
  2183. *-*-*) ;;
  2184. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2185. esac
  2186. target=$ac_cv_target
  2187. ac_save_IFS=$IFS; IFS='-'
  2188. set x $ac_cv_target
  2189. shift
  2190. target_cpu=$1
  2191. target_vendor=$2
  2192. shift; shift
  2193. # Remember, the first character of IFS is used to create $*,
  2194. # except with old shells:
  2195. target_os=$*
  2196. IFS=$ac_save_IFS
  2197. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2198. # The aliases save the names the user supplied, while $host etc.
  2199. # will get canonicalized.
  2200. test -n "$target_alias" &&
  2201. test "$program_prefix$program_suffix$program_transform_name" = \
  2202. NONENONEs,x,x, &&
  2203. program_prefix=${target_alias}-
  2204. test "$program_prefix" != NONE &&
  2205. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2206. # Use a double $ so make ignores it.
  2207. test "$program_suffix" != NONE &&
  2208. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2209. # Double any \ or $.
  2210. # By default was `s,x,x', remove it if useless.
  2211. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2212. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2213. # Get 'install' or 'install-sh' and its variants.
  2214. # Find a good install program. We prefer a C program (faster),
  2215. # so one script is as good as another. But avoid the broken or
  2216. # incompatible versions:
  2217. # SysV /etc/install, /usr/sbin/install
  2218. # SunOS /usr/etc/install
  2219. # IRIX /sbin/install
  2220. # AIX /bin/install
  2221. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2222. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2223. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2224. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2225. # OS/2's system install, which has a completely different semantic
  2226. # ./install, which can be erroneously created by make from ./install.sh.
  2227. # Reject install programs that cannot install multiple files.
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2229. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2230. if test -z "$INSTALL"; then
  2231. if test "${ac_cv_path_install+set}" = set; then :
  2232. $as_echo_n "(cached) " >&6
  2233. else
  2234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2235. for as_dir in $PATH
  2236. do
  2237. IFS=$as_save_IFS
  2238. test -z "$as_dir" && as_dir=.
  2239. # Account for people who put trailing slashes in PATH elements.
  2240. case $as_dir/ in #((
  2241. ./ | .// | /[cC]/* | \
  2242. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2243. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2244. /usr/ucb/* ) ;;
  2245. *)
  2246. # OSF1 and SCO ODT 3.0 have their own names for install.
  2247. # Don't use installbsd from OSF since it installs stuff as root
  2248. # by default.
  2249. for ac_prog in ginstall scoinst install; do
  2250. for ac_exec_ext in '' $ac_executable_extensions; do
  2251. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2252. if test $ac_prog = install &&
  2253. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2254. # AIX install. It has an incompatible calling convention.
  2255. :
  2256. elif test $ac_prog = install &&
  2257. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2258. # program-specific install script used by HP pwplus--don't use.
  2259. :
  2260. else
  2261. rm -rf conftest.one conftest.two conftest.dir
  2262. echo one > conftest.one
  2263. echo two > conftest.two
  2264. mkdir conftest.dir
  2265. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2266. test -s conftest.one && test -s conftest.two &&
  2267. test -s conftest.dir/conftest.one &&
  2268. test -s conftest.dir/conftest.two
  2269. then
  2270. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2271. break 3
  2272. fi
  2273. fi
  2274. fi
  2275. done
  2276. done
  2277. ;;
  2278. esac
  2279. done
  2280. IFS=$as_save_IFS
  2281. rm -rf conftest.one conftest.two conftest.dir
  2282. fi
  2283. if test "${ac_cv_path_install+set}" = set; then
  2284. INSTALL=$ac_cv_path_install
  2285. else
  2286. # As a last resort, use the slow shell script. Don't cache a
  2287. # value for INSTALL within a source directory, because that will
  2288. # break other packages using the cache if that directory is
  2289. # removed, or if the value is a relative name.
  2290. INSTALL=$ac_install_sh
  2291. fi
  2292. fi
  2293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2294. $as_echo "$INSTALL" >&6; }
  2295. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2296. # It thinks the first close brace ends the variable substitution.
  2297. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2298. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2299. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
  2301. $as_echo_n "checking whether ln works... " >&6; }
  2302. if test "${acx_cv_prog_LN+set}" = set; then :
  2303. $as_echo_n "(cached) " >&6
  2304. else
  2305. rm -f conftestdata_t
  2306. echo >conftestdata_f
  2307. if ln conftestdata_f conftestdata_t 2>/dev/null
  2308. then
  2309. acx_cv_prog_LN=ln
  2310. else
  2311. acx_cv_prog_LN=no
  2312. fi
  2313. rm -f conftestdata_f conftestdata_t
  2314. fi
  2315. if test $acx_cv_prog_LN = no; then
  2316. LN="cp"
  2317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
  2318. $as_echo "no, using $LN" >&6; }
  2319. else
  2320. LN="$acx_cv_prog_LN"
  2321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2322. $as_echo "yes" >&6; }
  2323. fi
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  2325. $as_echo_n "checking whether ln -s works... " >&6; }
  2326. LN_S=$as_ln_s
  2327. if test "$LN_S" = "ln -s"; then
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2329. $as_echo "yes" >&6; }
  2330. else
  2331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  2332. $as_echo "no, using $LN_S" >&6; }
  2333. fi
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  2335. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  2336. if test "${ac_cv_path_SED+set}" = set; then :
  2337. $as_echo_n "(cached) " >&6
  2338. else
  2339. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  2340. for ac_i in 1 2 3 4 5 6 7; do
  2341. ac_script="$ac_script$as_nl$ac_script"
  2342. done
  2343. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  2344. { ac_script=; unset ac_script;}
  2345. if test -z "$SED"; then
  2346. ac_path_SED_found=false
  2347. # Loop through the user's path and test for each of PROGNAME-LIST
  2348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2349. for as_dir in $PATH
  2350. do
  2351. IFS=$as_save_IFS
  2352. test -z "$as_dir" && as_dir=.
  2353. for ac_prog in sed gsed; do
  2354. for ac_exec_ext in '' $ac_executable_extensions; do
  2355. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  2356. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  2357. # Check for GNU ac_path_SED and select it if it is found.
  2358. # Check for GNU $ac_path_SED
  2359. case `"$ac_path_SED" --version 2>&1` in
  2360. *GNU*)
  2361. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  2362. *)
  2363. ac_count=0
  2364. $as_echo_n 0123456789 >"conftest.in"
  2365. while :
  2366. do
  2367. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2368. mv "conftest.tmp" "conftest.in"
  2369. cp "conftest.in" "conftest.nl"
  2370. $as_echo '' >> "conftest.nl"
  2371. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2372. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2373. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2374. if test $ac_count -gt ${ac_path_SED_max-0}; then
  2375. # Best one so far, save it but keep looking for a better one
  2376. ac_cv_path_SED="$ac_path_SED"
  2377. ac_path_SED_max=$ac_count
  2378. fi
  2379. # 10*(2^10) chars as input seems more than enough
  2380. test $ac_count -gt 10 && break
  2381. done
  2382. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2383. esac
  2384. $ac_path_SED_found && break 3
  2385. done
  2386. done
  2387. done
  2388. IFS=$as_save_IFS
  2389. if test -z "$ac_cv_path_SED"; then
  2390. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  2391. fi
  2392. else
  2393. ac_cv_path_SED=$SED
  2394. fi
  2395. fi
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  2397. $as_echo "$ac_cv_path_SED" >&6; }
  2398. SED="$ac_cv_path_SED"
  2399. rm -f conftest.sed
  2400. for ac_prog in gawk mawk nawk awk
  2401. do
  2402. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2403. set dummy $ac_prog; ac_word=$2
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2405. $as_echo_n "checking for $ac_word... " >&6; }
  2406. if test "${ac_cv_prog_AWK+set}" = set; then :
  2407. $as_echo_n "(cached) " >&6
  2408. else
  2409. if test -n "$AWK"; then
  2410. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2411. else
  2412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2413. for as_dir in $PATH
  2414. do
  2415. IFS=$as_save_IFS
  2416. test -z "$as_dir" && as_dir=.
  2417. for ac_exec_ext in '' $ac_executable_extensions; do
  2418. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2419. ac_cv_prog_AWK="$ac_prog"
  2420. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2421. break 2
  2422. fi
  2423. done
  2424. done
  2425. IFS=$as_save_IFS
  2426. fi
  2427. fi
  2428. AWK=$ac_cv_prog_AWK
  2429. if test -n "$AWK"; then
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2431. $as_echo "$AWK" >&6; }
  2432. else
  2433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2434. $as_echo "no" >&6; }
  2435. fi
  2436. test -n "$AWK" && break
  2437. done
  2438. srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
  2439. # We pass INSTALL explicitly to sub-makes. Make sure that it is not
  2440. # a relative path.
  2441. if test "$INSTALL" = "${srcdir}/install-sh -c"; then
  2442. INSTALL="${srcpwd}/install-sh -c"
  2443. fi
  2444. # Set srcdir to "." if that's what it is.
  2445. # This is important for multilib support.
  2446. pwd=`${PWDCMD-pwd}`
  2447. if test "${pwd}" = "${srcpwd}" ; then
  2448. srcdir=.
  2449. fi
  2450. topsrcdir=$srcpwd
  2451. extra_host_args=
  2452. ### To add a new directory to the tree, first choose whether it is a target
  2453. ### or a host dependent tool. Then put it into the appropriate list
  2454. ### (library or tools, host or target), doing a dependency sort.
  2455. # Subdirs will be configured in the order listed in build_configdirs,
  2456. # configdirs, or target_configdirs; see the serialization section below.
  2457. # Dependency sorting is only needed when *configuration* must be done in
  2458. # a particular order. In all cases a dependency should be specified in
  2459. # the Makefile, whether or not it's implicitly specified here.
  2460. # Double entries in build_configdirs, configdirs, or target_configdirs may
  2461. # cause circular dependencies and break everything horribly.
  2462. # these library is used by various programs built for the build
  2463. # environment
  2464. #
  2465. build_libs="build-libiberty build-libcpp"
  2466. # these tools are built for the build environment
  2467. build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
  2468. # these libraries are used by various programs built for the host environment
  2469. #f
  2470. host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
  2471. # these tools are built for the host environment
  2472. # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
  2473. # know that we are building the simulator.
  2474. # binutils, gas and ld appear in that order because it makes sense to run
  2475. # "make check" in that particular order.
  2476. # If --enable-gold is used, "gold" may replace "ld".
  2477. host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
  2478. # libgcj represents the runtime libraries only used by gcj.
  2479. libgcj="target-libffi \
  2480. target-zlib \
  2481. target-libjava"
  2482. # these libraries are built for the target environment, and are built after
  2483. # the host libraries and the host tools (which may be a cross compiler)
  2484. # Note that libiberty is not a target library.
  2485. target_libraries="target-libgcc \
  2486. target-libbacktrace \
  2487. target-libgloss \
  2488. target-newlib \
  2489. target-libgomp \
  2490. target-libcilkrts \
  2491. target-liboffloadmic \
  2492. target-libatomic \
  2493. target-libitm \
  2494. target-libstdc++-v3 \
  2495. target-libsanitizer \
  2496. target-libvtv \
  2497. target-libmpx \
  2498. target-libssp \
  2499. target-libquadmath \
  2500. target-libgfortran \
  2501. target-boehm-gc \
  2502. ${libgcj} \
  2503. target-libobjc \
  2504. target-libada \
  2505. target-libgo"
  2506. # these tools are built using the target libraries, and are intended to
  2507. # run only in the target environment
  2508. #
  2509. # note: any program that *uses* libraries that are in the "target_libraries"
  2510. # list belongs in this list.
  2511. #
  2512. target_tools="target-rda"
  2513. ################################################################################
  2514. ## All tools belong in one of the four categories, and are assigned above
  2515. ## We assign ${configdirs} this way to remove all embedded newlines. This
  2516. ## is important because configure will choke if they ever get through.
  2517. ## ${configdirs} is directories we build using the host tools.
  2518. ## ${target_configdirs} is directories we build using the target tools.
  2519. configdirs=`echo ${host_libs} ${host_tools}`
  2520. target_configdirs=`echo ${target_libraries} ${target_tools}`
  2521. build_configdirs=`echo ${build_libs} ${build_tools}`
  2522. ################################################################################
  2523. srcname="gnu development package"
  2524. # This gets set non-empty for some net releases of packages.
  2525. appdirs=""
  2526. # Define is_cross_compiler to save on calls to 'test'.
  2527. is_cross_compiler=
  2528. if test x"${host}" = x"${target}" ; then
  2529. is_cross_compiler=no
  2530. else
  2531. is_cross_compiler=yes
  2532. fi
  2533. # Find the build and target subdir names.
  2534. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  2535. # have matching libraries, they should use host libraries: Makefile.tpl
  2536. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  2537. # However, they still use the build modules, because the corresponding
  2538. # host modules (e.g. bison) are only built for the host when bootstrap
  2539. # finishes. So:
  2540. # - build_subdir is where we find build modules, and never changes.
  2541. # - build_libsubdir is where we find build libraries, and can be overridden.
  2542. # Prefix 'build-' so this never conflicts with target_subdir.
  2543. build_subdir="build-${build_noncanonical}"
  2544. # Check whether --with-build-libsubdir was given.
  2545. if test "${with_build_libsubdir+set}" = set; then :
  2546. withval=$with_build_libsubdir; build_libsubdir="$withval"
  2547. else
  2548. build_libsubdir="$build_subdir"
  2549. fi
  2550. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  2551. if ( test $srcdir = . && test -d gcc ) \
  2552. || test -d $srcdir/../host-${host_noncanonical}; then
  2553. host_subdir="host-${host_noncanonical}"
  2554. else
  2555. host_subdir=.
  2556. fi
  2557. # No prefix.
  2558. target_subdir=${target_noncanonical}
  2559. # Be sure to cover against remnants of an in-tree build.
  2560. if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
  2561. as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
  2562. Use a pristine source tree when building in a separate tree" "$LINENO" 5
  2563. fi
  2564. # Skipdirs are removed silently.
  2565. skipdirs=
  2566. # Noconfigdirs are removed loudly.
  2567. noconfigdirs=""
  2568. use_gnu_ld=
  2569. # Make sure we don't let GNU ld be added if we didn't want it.
  2570. if test x$with_gnu_ld = xno ; then
  2571. use_gnu_ld=no
  2572. noconfigdirs="$noconfigdirs ld gold"
  2573. fi
  2574. use_gnu_as=
  2575. # Make sure we don't let GNU as be added if we didn't want it.
  2576. if test x$with_gnu_as = xno ; then
  2577. use_gnu_as=no
  2578. noconfigdirs="$noconfigdirs gas"
  2579. fi
  2580. use_included_zlib=
  2581. # Check whether --with-system-zlib was given.
  2582. if test "${with_system_zlib+set}" = set; then :
  2583. withval=$with_system_zlib;
  2584. fi
  2585. # Make sure we don't let ZLIB be added if we didn't want it.
  2586. if test x$with_system_zlib = xyes ; then
  2587. use_included_zlib=no
  2588. noconfigdirs="$noconfigdirs zlib"
  2589. fi
  2590. # some tools are so dependent upon X11 that if we're not building with X,
  2591. # it's not even worth trying to configure, much less build, that tool.
  2592. case ${with_x} in
  2593. yes | "") ;; # the default value for this tree is that X11 is available
  2594. no)
  2595. skipdirs="${skipdirs} tk itcl libgui"
  2596. # We won't be able to build gdbtk without X.
  2597. enable_gdbtk=no
  2598. ;;
  2599. *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
  2600. esac
  2601. # Some are only suitable for cross toolchains.
  2602. # Remove these if host=target.
  2603. cross_only="target-libgloss target-newlib target-opcodes"
  2604. case $is_cross_compiler in
  2605. no) skipdirs="${skipdirs} ${cross_only}" ;;
  2606. esac
  2607. # If both --with-headers and --with-libs are specified, default to
  2608. # --without-newlib.
  2609. if test x"${with_headers}" != x && test x"${with_headers}" != xno \
  2610. && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  2611. if test x"${with_newlib}" = x ; then
  2612. with_newlib=no
  2613. fi
  2614. fi
  2615. # Recognize --with-newlib/--without-newlib.
  2616. case ${with_newlib} in
  2617. no) skipdirs="${skipdirs} target-newlib" ;;
  2618. yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
  2619. esac
  2620. # Check whether --enable-as-accelerator-for was given.
  2621. if test "${enable_as_accelerator_for+set}" = set; then :
  2622. enableval=$enable_as_accelerator_for;
  2623. fi
  2624. # Check whether --enable-offload-targets was given.
  2625. if test "${enable_offload_targets+set}" = set; then :
  2626. enableval=$enable_offload_targets;
  2627. if test x"$enable_offload_targets" = x; then
  2628. as_fn_error "no offload targets specified" "$LINENO" 5
  2629. fi
  2630. else
  2631. enable_offload_targets=
  2632. fi
  2633. # Handle --enable-gold, --enable-ld.
  2634. # --disable-gold [--enable-ld]
  2635. # Build only ld. Default option.
  2636. # --enable-gold [--enable-ld]
  2637. # Build both gold and ld. Install gold as "ld.gold", install ld
  2638. # as "ld.bfd" and "ld".
  2639. # --enable-gold=default [--enable-ld]
  2640. # Build both gold and ld. Install gold as "ld.gold" and "ld",
  2641. # install ld as "ld.bfd".
  2642. # --enable-gold[=default] --disable-ld
  2643. # Build only gold, which is then installed as both "ld.gold" and "ld".
  2644. # --enable-gold --enable-ld=default
  2645. # Build both gold (installed as "ld.gold") and ld (installed as "ld"
  2646. # and ld.bfd).
  2647. # In other words, ld is default
  2648. # --enable-gold=default --enable-ld=default
  2649. # Error.
  2650. default_ld=
  2651. # Check whether --enable-gold was given.
  2652. if test "${enable_gold+set}" = set; then :
  2653. enableval=$enable_gold; ENABLE_GOLD=$enableval
  2654. else
  2655. ENABLE_GOLD=no
  2656. fi
  2657. case "${ENABLE_GOLD}" in
  2658. yes|default)
  2659. # Check for ELF target.
  2660. is_elf=no
  2661. case "${target}" in
  2662. *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
  2663. | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
  2664. | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
  2665. | *-*-solaris2* | *-*-nto* | *-*-nacl*)
  2666. case "${target}" in
  2667. *-*-linux*aout* | *-*-linux*oldld*)
  2668. ;;
  2669. *)
  2670. is_elf=yes
  2671. ;;
  2672. esac
  2673. esac
  2674. if test "$is_elf" = "yes"; then
  2675. # Check for target supported by gold.
  2676. case "${target}" in
  2677. i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
  2678. | aarch64*-*-* | tilegx*-*-*)
  2679. configdirs="$configdirs gold"
  2680. if test x${ENABLE_GOLD} = xdefault; then
  2681. default_ld=gold
  2682. fi
  2683. ENABLE_GOLD=yes
  2684. ;;
  2685. esac
  2686. fi
  2687. ;;
  2688. no)
  2689. ;;
  2690. *)
  2691. as_fn_error "invalid --enable-gold argument" "$LINENO" 5
  2692. ;;
  2693. esac
  2694. # Check whether --enable-ld was given.
  2695. if test "${enable_ld+set}" = set; then :
  2696. enableval=$enable_ld; ENABLE_LD=$enableval
  2697. else
  2698. ENABLE_LD=yes
  2699. fi
  2700. case "${ENABLE_LD}" in
  2701. default)
  2702. if test x${default_ld} != x; then
  2703. as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
  2704. fi
  2705. ;;
  2706. yes)
  2707. ;;
  2708. no)
  2709. if test x${ENABLE_GOLD} != xyes; then
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
  2711. $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
  2712. fi
  2713. configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
  2714. ;;
  2715. *)
  2716. as_fn_error "invalid --enable-ld argument" "$LINENO" 5
  2717. ;;
  2718. esac
  2719. # PR gas/19109
  2720. # Decide the default method for compressing debug sections.
  2721. # Provide a configure time option to override our default.
  2722. # Check whether --enable-compressed_debug_sections was given.
  2723. if test "${enable_compressed_debug_sections+set}" = set; then :
  2724. enableval=$enable_compressed_debug_sections;
  2725. if test x"$enable_compressed_debug_sections" = xyes; then
  2726. as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
  2727. fi
  2728. else
  2729. enable_compressed_debug_sections=
  2730. fi
  2731. # Configure extra directories which are host specific
  2732. case "${host}" in
  2733. *-cygwin*)
  2734. configdirs="$configdirs libtermcap" ;;
  2735. esac
  2736. # A target can indicate whether a language isn't supported for some reason.
  2737. # Only spaces may be used in this macro; not newlines or tabs.
  2738. unsupported_languages=
  2739. # Remove more programs from consideration, based on the host or
  2740. # target this usually means that a port of the program doesn't
  2741. # exist yet.
  2742. case "${host}" in
  2743. i[3456789]86-*-msdosdjgpp*)
  2744. noconfigdirs="$noconfigdirs tcl tk itcl"
  2745. ;;
  2746. esac
  2747. # Check whether --enable-libquadmath was given.
  2748. if test "${enable_libquadmath+set}" = set; then :
  2749. enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
  2750. else
  2751. ENABLE_LIBQUADMATH=yes
  2752. fi
  2753. if test "${ENABLE_LIBQUADMATH}" = "no" ; then
  2754. noconfigdirs="$noconfigdirs target-libquadmath"
  2755. fi
  2756. # Check whether --enable-libquadmath-support was given.
  2757. if test "${enable_libquadmath_support+set}" = set; then :
  2758. enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
  2759. else
  2760. ENABLE_LIBQUADMATH_SUPPORT=yes
  2761. fi
  2762. enable_libquadmath_support=
  2763. if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
  2764. enable_libquadmath_support=no
  2765. fi
  2766. # Check whether --enable-libada was given.
  2767. if test "${enable_libada+set}" = set; then :
  2768. enableval=$enable_libada; ENABLE_LIBADA=$enableval
  2769. else
  2770. ENABLE_LIBADA=yes
  2771. fi
  2772. if test "${ENABLE_LIBADA}" != "yes" ; then
  2773. noconfigdirs="$noconfigdirs gnattools"
  2774. fi
  2775. # Check whether --enable-libssp was given.
  2776. if test "${enable_libssp+set}" = set; then :
  2777. enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
  2778. else
  2779. ENABLE_LIBSSP=yes
  2780. fi
  2781. # Check whether --enable-libstdcxx was given.
  2782. if test "${enable_libstdcxx+set}" = set; then :
  2783. enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
  2784. else
  2785. ENABLE_LIBSTDCXX=default
  2786. fi
  2787. if test "${ENABLE_LIBSTDCXX}" = "no" ; then
  2788. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  2789. fi
  2790. # If this is accelerator compiler and its target is intelmic we enable
  2791. # target liboffloadmic by default. If this is compiler with offloading
  2792. # for intelmic we enable host liboffloadmic by default. Otherwise
  2793. # liboffloadmic is disabled by default.
  2794. # Check whether --enable-liboffloadmic was given.
  2795. if test "${enable_liboffloadmic+set}" = set; then :
  2796. enableval=$enable_liboffloadmic; case "$enableval" in
  2797. no | host | target)
  2798. enable_liboffloadmic=$enableval ;;
  2799. *)
  2800. as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
  2801. esac
  2802. else
  2803. if test x"$enable_as_accelerator_for" != x; then
  2804. case "${target}" in
  2805. *-intelmic-* | *-intelmicemul-*)
  2806. enable_liboffloadmic=target
  2807. extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
  2808. ;;
  2809. *)
  2810. enable_liboffloadmic=no
  2811. ;;
  2812. esac
  2813. else
  2814. case "${enable_offload_targets}" in
  2815. *-intelmic-* | *-intelmicemul-*)
  2816. enable_liboffloadmic=host
  2817. extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
  2818. ;;
  2819. *)
  2820. enable_liboffloadmic=no
  2821. ;;
  2822. esac
  2823. fi
  2824. fi
  2825. # Save it here so that, even in case of --enable-libgcj, if the Java
  2826. # front-end isn't enabled, we still get libgcj disabled.
  2827. libgcj_saved=$libgcj
  2828. case $enable_libgcj in
  2829. yes)
  2830. # If we reset it here, it won't get added to noconfigdirs in the
  2831. # target-specific build rules, so it will be forcibly enabled
  2832. # (unless the Java language itself isn't enabled).
  2833. libgcj=
  2834. ;;
  2835. no)
  2836. # Make sure we get it printed in the list of not supported target libs.
  2837. # Don't disable libffi, though, other languages use it.
  2838. noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
  2839. # Clear libgcj_saved so that even if java is enabled libffi won't be
  2840. # built.
  2841. libgcj_saved=
  2842. ;;
  2843. esac
  2844. # Check whether --enable-static-libjava was given.
  2845. if test "${enable_static_libjava+set}" = set; then :
  2846. enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
  2847. else
  2848. ENABLE_STATIC_LIBJAVA=no
  2849. fi
  2850. enable_static_libjava=
  2851. if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
  2852. enable_static_libjava=yes
  2853. fi
  2854. if test x$enable_static_libjava != xyes ; then
  2855. EXTRA_CONFIGARGS_LIBJAVA=--disable-static
  2856. fi
  2857. # Enable libgomp by default on hosted POSIX systems, and a few others.
  2858. if test x$enable_libgomp = x ; then
  2859. case "${target}" in
  2860. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  2861. ;;
  2862. *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
  2863. ;;
  2864. *-*-solaris2* | *-*-hpux11*)
  2865. ;;
  2866. *-*-darwin* | *-*-aix*)
  2867. ;;
  2868. nvptx*-*-*)
  2869. ;;
  2870. *)
  2871. noconfigdirs="$noconfigdirs target-libgomp"
  2872. ;;
  2873. esac
  2874. fi
  2875. # Disable libatomic on unsupported systems.
  2876. if test -d ${srcdir}/libatomic; then
  2877. if test x$enable_libatomic = x; then
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
  2879. $as_echo_n "checking for libatomic support... " >&6; }
  2880. if (srcdir=${srcdir}/libatomic; \
  2881. . ${srcdir}/configure.tgt; \
  2882. test -n "$UNSUPPORTED")
  2883. then
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2885. $as_echo "no" >&6; }
  2886. noconfigdirs="$noconfigdirs target-libatomic"
  2887. else
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2889. $as_echo "yes" >&6; }
  2890. fi
  2891. fi
  2892. fi
  2893. # Disable libcilkrts on unsupported systems.
  2894. if test -d ${srcdir}/libcilkrts; then
  2895. if test x$enable_libcilkrts = x; then
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
  2897. $as_echo_n "checking for libcilkrts support... " >&6; }
  2898. if (srcdir=${srcdir}/libcilkrts; \
  2899. . ${srcdir}/configure.tgt; \
  2900. test -n "$UNSUPPORTED")
  2901. then
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2903. $as_echo "no" >&6; }
  2904. noconfigdirs="$noconfigdirs target-libcilkrts"
  2905. else
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2907. $as_echo "yes" >&6; }
  2908. fi
  2909. fi
  2910. fi
  2911. # Disable liboffloadmic on unsupported systems.
  2912. if test -d ${srcdir}/liboffloadmic; then
  2913. if test x$enable_liboffloadmic != xno; then
  2914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
  2915. $as_echo_n "checking for liboffloadmic support... " >&6; }
  2916. if (srcdir=${srcdir}/liboffloadmic; \
  2917. . ${srcdir}/configure.tgt; \
  2918. test -n "$UNSUPPORTED")
  2919. then
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2921. $as_echo "no" >&6; }
  2922. noconfigdirs="$noconfigdirs target-liboffloadmic"
  2923. else
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2925. $as_echo "yes" >&6; }
  2926. fi
  2927. fi
  2928. fi
  2929. # Disable libitm on unsupported systems.
  2930. if test -d ${srcdir}/libitm; then
  2931. if test x$enable_libitm = x; then
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
  2933. $as_echo_n "checking for libitm support... " >&6; }
  2934. if (srcdir=${srcdir}/libitm; \
  2935. . ${srcdir}/configure.tgt; \
  2936. test -n "$UNSUPPORTED")
  2937. then
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2939. $as_echo "no" >&6; }
  2940. noconfigdirs="$noconfigdirs target-libitm"
  2941. else
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2943. $as_echo "yes" >&6; }
  2944. fi
  2945. fi
  2946. fi
  2947. # Disable libsanitizer on unsupported systems.
  2948. if test -d ${srcdir}/libsanitizer; then
  2949. if test x$enable_libsanitizer = x; then
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
  2951. $as_echo_n "checking for libsanitizer support... " >&6; }
  2952. if (srcdir=${srcdir}/libsanitizer; \
  2953. . ${srcdir}/configure.tgt; \
  2954. test -n "$UNSUPPORTED")
  2955. then
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2957. $as_echo "no" >&6; }
  2958. noconfigdirs="$noconfigdirs target-libsanitizer"
  2959. else
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2961. $as_echo "yes" >&6; }
  2962. fi
  2963. fi
  2964. fi
  2965. # Disable libvtv on unsupported systems.
  2966. if test -d ${srcdir}/libvtv; then
  2967. if test x$enable_libvtv = x; then
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
  2969. $as_echo_n "checking for libvtv support... " >&6; }
  2970. if (srcdir=${srcdir}/libvtv; \
  2971. . ${srcdir}/configure.tgt; \
  2972. test "$VTV_SUPPORTED" != "yes")
  2973. then
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2975. $as_echo "no" >&6; }
  2976. noconfigdirs="$noconfigdirs target-libvtv"
  2977. else
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2979. $as_echo "yes" >&6; }
  2980. fi
  2981. fi
  2982. fi
  2983. # Enable libmpx on supported systems by request.
  2984. if test -d ${srcdir}/libmpx; then
  2985. if test x$enable_libmpx = xyes; then
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
  2987. $as_echo_n "checking for libmpx support... " >&6; }
  2988. if (srcdir=${srcdir}/libmpx; \
  2989. . ${srcdir}/configure.tgt; \
  2990. test "$LIBMPX_SUPPORTED" != "yes")
  2991. then
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2993. $as_echo "no" >&6; }
  2994. noconfigdirs="$noconfigdirs target-libmpx"
  2995. else
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2997. $as_echo "yes" >&6; }
  2998. fi
  2999. else
  3000. noconfigdirs="$noconfigdirs target-libmpx"
  3001. fi
  3002. fi
  3003. # Disable libquadmath for some systems.
  3004. case "${target}" in
  3005. avr-*-*)
  3006. noconfigdirs="$noconfigdirs target-libquadmath"
  3007. ;;
  3008. # libquadmath is unused on AIX and libquadmath build process use of
  3009. # LD_LIBRARY_PATH can break AIX bootstrap.
  3010. powerpc-*-aix* | rs6000-*-aix*)
  3011. noconfigdirs="$noconfigdirs target-libquadmath"
  3012. ;;
  3013. esac
  3014. # Disable libssp for some systems.
  3015. case "${target}" in
  3016. avr-*-*)
  3017. # No hosted I/O support.
  3018. noconfigdirs="$noconfigdirs target-libssp"
  3019. ;;
  3020. powerpc-*-aix* | rs6000-*-aix*)
  3021. noconfigdirs="$noconfigdirs target-libssp"
  3022. ;;
  3023. rl78-*-*)
  3024. # libssp uses a misaligned load to trigger a fault, but the RL78
  3025. # doesn't fault for those - instead, it gives a build-time error
  3026. # for explicit misaligned loads.
  3027. noconfigdirs="$noconfigdirs target-libssp"
  3028. ;;
  3029. visium-*-*)
  3030. # No hosted I/O support.
  3031. noconfigdirs="$noconfigdirs target-libssp"
  3032. ;;
  3033. esac
  3034. # Disable libstdc++-v3 for some systems.
  3035. # Allow user to override this if they pass --enable-libstdc++-v3
  3036. if test "${ENABLE_LIBSTDCXX}" = "default" ; then
  3037. case "${target}" in
  3038. *-*-vxworks*)
  3039. # VxWorks uses the Dinkumware C++ library.
  3040. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3041. ;;
  3042. arm*-wince-pe*)
  3043. # the C++ libraries don't build on top of CE's C libraries
  3044. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3045. ;;
  3046. avr-*-*)
  3047. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3048. ;;
  3049. ft32-*-*)
  3050. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3051. ;;
  3052. esac
  3053. fi
  3054. # Disable Fortran for some systems.
  3055. case "${target}" in
  3056. mmix-*-*)
  3057. # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
  3058. unsupported_languages="$unsupported_languages fortran"
  3059. ;;
  3060. esac
  3061. # Disable Java if libffi is not supported.
  3062. case "${target}" in
  3063. aarch64-*-*)
  3064. ;;
  3065. alpha*-*-*)
  3066. ;;
  3067. arm*-*-*)
  3068. ;;
  3069. cris-*-*)
  3070. ;;
  3071. frv-*-*)
  3072. ;;
  3073. hppa*-*-linux*)
  3074. ;;
  3075. hppa*-*-hpux*)
  3076. ;;
  3077. i?86-*-*)
  3078. ;;
  3079. ia64*-*-*)
  3080. ;;
  3081. m32r*-*-*)
  3082. ;;
  3083. m68k-*-*)
  3084. ;;
  3085. mips*-*-rtems*)
  3086. ;;
  3087. mips*-*-linux*)
  3088. ;;
  3089. powerpc*-*-linux*)
  3090. ;;
  3091. powerpc-*-darwin*)
  3092. ;;
  3093. powerpc-*-aix* | rs6000-*-aix*)
  3094. ;;
  3095. powerpc-*-freebsd*)
  3096. ;;
  3097. powerpc64-*-freebsd*)
  3098. ;;
  3099. powerpc*-*-rtems*)
  3100. ;;
  3101. s390-*-* | s390x-*-*)
  3102. ;;
  3103. sh-*-* | sh[34]*-*-*)
  3104. ;;
  3105. sh64-*-* | sh5*-*-*)
  3106. ;;
  3107. sparc*-*-*)
  3108. ;;
  3109. x86_64-*-*)
  3110. ;;
  3111. *-*-*)
  3112. unsupported_languages="$unsupported_languages java"
  3113. ;;
  3114. esac
  3115. # Disable Java, libgcj or related libraries for some systems.
  3116. case "${target}" in
  3117. powerpc-*-darwin*)
  3118. ;;
  3119. i[3456789]86-*-darwin*)
  3120. ;;
  3121. x86_64-*-darwin[912]*)
  3122. ;;
  3123. *-*-darwin*)
  3124. noconfigdirs="$noconfigdirs ${libgcj}"
  3125. ;;
  3126. *-*-netware*)
  3127. noconfigdirs="$noconfigdirs ${libgcj}"
  3128. ;;
  3129. *-*-rtems*)
  3130. noconfigdirs="$noconfigdirs ${libgcj}"
  3131. ;;
  3132. *-*-tpf*)
  3133. noconfigdirs="$noconfigdirs ${libgcj}"
  3134. ;;
  3135. *-*-uclinux*)
  3136. noconfigdirs="$noconfigdirs ${libgcj}"
  3137. ;;
  3138. *-*-vxworks*)
  3139. noconfigdirs="$noconfigdirs ${libgcj}"
  3140. ;;
  3141. alpha*-*-*vms*)
  3142. noconfigdirs="$noconfigdirs ${libgcj}"
  3143. ;;
  3144. arm*-*-freebsd*)
  3145. noconfigdirs="$noconfigdirs ${libgcj}"
  3146. ;;
  3147. arm-wince-pe)
  3148. noconfigdirs="$noconfigdirs ${libgcj}"
  3149. ;;
  3150. arm*-*-symbianelf*)
  3151. noconfigdirs="$noconfigdirs ${libgcj}"
  3152. ;;
  3153. bfin-*-*)
  3154. noconfigdirs="$noconfigdirs target-boehm-gc"
  3155. ;;
  3156. cris-*-* | crisv32-*-*)
  3157. unsupported_languages="$unsupported_languages java"
  3158. case "${target}" in
  3159. *-*-linux*)
  3160. ;;
  3161. *) # See PR46792 regarding target-libffi.
  3162. noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
  3163. esac
  3164. ;;
  3165. hppa*64*-*-linux*)
  3166. # In this case, it's because the hppa64-linux target is for
  3167. # the kernel only at this point and has no libc, and thus no
  3168. # headers, crt*.o, etc., all of which are needed by these.
  3169. unsupported_languages="$unsupported_languages java"
  3170. ;;
  3171. hppa*64*-*-hpux*)
  3172. noconfigdirs="$noconfigdirs ${libgcj}"
  3173. ;;
  3174. hppa*-hp-hpux11*)
  3175. ;;
  3176. hppa*-*-hpux*)
  3177. # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
  3178. # build on HP-UX 10.20.
  3179. noconfigdirs="$noconfigdirs ${libgcj}"
  3180. ;;
  3181. ia64*-*-*vms*)
  3182. noconfigdirs="$noconfigdirs ${libgcj}"
  3183. ;;
  3184. i[3456789]86-w64-mingw*)
  3185. noconfigdirs="$noconfigdirs ${libgcj}"
  3186. ;;
  3187. i[3456789]86-*-mingw*)
  3188. noconfigdirs="$noconfigdirs ${libgcj}"
  3189. ;;
  3190. x86_64-*-mingw*)
  3191. noconfigdirs="$noconfigdirs ${libgcj}"
  3192. ;;
  3193. mmix-*-*)
  3194. noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
  3195. ;;
  3196. powerpc-*-aix*)
  3197. # copied from rs6000-*-* entry
  3198. noconfigdirs="$noconfigdirs ${libgcj}"
  3199. ;;
  3200. rs6000-*-aix*)
  3201. noconfigdirs="$noconfigdirs ${libgcj}"
  3202. ;;
  3203. ft32-*-*)
  3204. noconfigdirs="$noconfigdirs ${libgcj}"
  3205. ;;
  3206. *-*-lynxos*)
  3207. noconfigdirs="$noconfigdirs ${libgcj}"
  3208. ;;
  3209. esac
  3210. # Disable the go frontend on systems where it is known to not work. Please keep
  3211. # this in sync with contrib/config-list.mk.
  3212. case "${target}" in
  3213. *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
  3214. unsupported_languages="$unsupported_languages go"
  3215. ;;
  3216. esac
  3217. # Disable libgo for some systems where it is known to not work.
  3218. # For testing, you can easily override this with --enable-libgo.
  3219. if test x$enable_libgo = x; then
  3220. case "${target}" in
  3221. *-*-darwin*)
  3222. # PR 46986
  3223. noconfigdirs="$noconfigdirs target-libgo"
  3224. ;;
  3225. *-*-cygwin* | *-*-mingw*)
  3226. noconfigdirs="$noconfigdirs target-libgo"
  3227. ;;
  3228. *-*-aix*)
  3229. noconfigdirs="$noconfigdirs target-libgo"
  3230. ;;
  3231. esac
  3232. fi
  3233. # Default libgloss CPU subdirectory.
  3234. libgloss_dir="$target_cpu"
  3235. case "${target}" in
  3236. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  3237. libgloss_dir=wince
  3238. ;;
  3239. aarch64*-*-* )
  3240. libgloss_dir=aarch64
  3241. ;;
  3242. arm*-*-*)
  3243. libgloss_dir=arm
  3244. ;;
  3245. cris-*-* | crisv32-*-*)
  3246. libgloss_dir=cris
  3247. ;;
  3248. hppa*-*-*)
  3249. libgloss_dir=pa
  3250. ;;
  3251. i[3456789]86-*-*)
  3252. libgloss_dir=i386
  3253. ;;
  3254. m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
  3255. libgloss_dir=m68hc11
  3256. ;;
  3257. m68*-*-* | fido-*-*)
  3258. libgloss_dir=m68k
  3259. ;;
  3260. mips*-*-*)
  3261. libgloss_dir=mips
  3262. ;;
  3263. powerpc*-*-*)
  3264. libgloss_dir=rs6000
  3265. ;;
  3266. sparc*-*-*)
  3267. libgloss_dir=sparc
  3268. ;;
  3269. esac
  3270. # Disable newlib and libgloss for various target OSes.
  3271. case "${target}" in
  3272. alpha*-dec-osf*)
  3273. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3274. ;;
  3275. i[3456789]86-*-linux*)
  3276. # This section makes it possible to build newlib natively on linux.
  3277. # If we are using a cross compiler then don't configure newlib.
  3278. if test x${is_cross_compiler} != xno ; then
  3279. noconfigdirs="$noconfigdirs target-newlib"
  3280. fi
  3281. noconfigdirs="$noconfigdirs target-libgloss"
  3282. # If we are not using a cross compiler, do configure newlib.
  3283. # Note however, that newlib will only be configured in this situation
  3284. # if the --with-newlib option has been given, because otherwise
  3285. # 'target-newlib' will appear in skipdirs.
  3286. ;;
  3287. i[3456789]86-*-rdos*)
  3288. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3289. ;;
  3290. sh*-*-pe|mips*-*-pe|arm-wince-pe)
  3291. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3292. ;;
  3293. sparc-*-sunos4*)
  3294. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3295. ;;
  3296. *-*-aix*)
  3297. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3298. ;;
  3299. *-*-beos*)
  3300. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3301. ;;
  3302. *-*-chorusos)
  3303. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3304. ;;
  3305. *-*-dragonfly*)
  3306. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3307. ;;
  3308. *-*-freebsd*)
  3309. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3310. ;;
  3311. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  3312. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3313. ;;
  3314. *-*-lynxos*)
  3315. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3316. ;;
  3317. *-*-mingw*)
  3318. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3319. ;;
  3320. *-*-netbsd*)
  3321. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3322. ;;
  3323. *-*-netware*)
  3324. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3325. ;;
  3326. *-*-tpf*)
  3327. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3328. ;;
  3329. *-*-uclinux*)
  3330. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3331. ;;
  3332. *-*-vxworks*)
  3333. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3334. ;;
  3335. esac
  3336. case "${target}" in
  3337. *-*-chorusos)
  3338. ;;
  3339. powerpc-*-darwin*)
  3340. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3341. noconfigdirs="$noconfigdirs sim target-rda"
  3342. ;;
  3343. i[3456789]86-*-darwin*)
  3344. noconfigdirs="$noconfigdirs ld gprof"
  3345. noconfigdirs="$noconfigdirs sim target-rda"
  3346. ;;
  3347. x86_64-*-darwin[912]*)
  3348. noconfigdirs="$noconfigdirs ld gas gprof"
  3349. noconfigdirs="$noconfigdirs sim target-rda"
  3350. ;;
  3351. *-*-darwin*)
  3352. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3353. noconfigdirs="$noconfigdirs sim target-rda"
  3354. ;;
  3355. *-*-dragonfly*)
  3356. ;;
  3357. *-*-freebsd*)
  3358. if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
  3359. && test -f /usr/local/include/gmp.h; then
  3360. with_gmp=/usr/local
  3361. fi
  3362. ;;
  3363. *-*-kaos*)
  3364. # Remove unsupported stuff on all kaOS configurations.
  3365. noconfigdirs="$noconfigdirs target-libgloss"
  3366. ;;
  3367. *-*-netbsd*)
  3368. ;;
  3369. *-*-netware*)
  3370. ;;
  3371. *-*-rtems*)
  3372. noconfigdirs="$noconfigdirs target-libgloss"
  3373. # this is not caught below because this stanza matches earlier
  3374. case $target in
  3375. or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
  3376. esac
  3377. ;;
  3378. # The tpf target doesn't support gdb yet.
  3379. *-*-tpf*)
  3380. noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
  3381. ;;
  3382. *-*-uclinux*)
  3383. noconfigdirs="$noconfigdirs target-rda"
  3384. ;;
  3385. *-*-vxworks*)
  3386. ;;
  3387. alpha*-dec-osf*)
  3388. # ld works, but does not support shared libraries.
  3389. # gas doesn't generate exception information.
  3390. noconfigdirs="$noconfigdirs gas ld"
  3391. ;;
  3392. alpha*-*-*vms*)
  3393. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
  3394. ;;
  3395. alpha*-*-*)
  3396. # newlib is not 64 bit ready
  3397. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3398. ;;
  3399. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  3400. noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
  3401. ;;
  3402. arc-*-*|arceb-*-*)
  3403. noconfigdirs="$noconfigdirs target-libgloss"
  3404. ;;
  3405. arm-*-pe*)
  3406. noconfigdirs="$noconfigdirs target-libgloss"
  3407. ;;
  3408. arm-*-riscix*)
  3409. noconfigdirs="$noconfigdirs ld target-libgloss"
  3410. ;;
  3411. avr-*-rtems*)
  3412. ;;
  3413. avr-*-*)
  3414. if test x${with_avrlibc} != xno; then
  3415. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3416. fi
  3417. ;;
  3418. c4x-*-* | tic4x-*-*)
  3419. noconfigdirs="$noconfigdirs target-libgloss"
  3420. ;;
  3421. tic54x-*-*)
  3422. noconfigdirs="$noconfigdirs target-libgloss gdb"
  3423. ;;
  3424. d10v-*-*)
  3425. noconfigdirs="$noconfigdirs target-libgloss"
  3426. ;;
  3427. d30v-*-*)
  3428. noconfigdirs="$noconfigdirs gdb"
  3429. ;;
  3430. fr30-*-elf*)
  3431. noconfigdirs="$noconfigdirs gdb"
  3432. ;;
  3433. ft32-*-*)
  3434. noconfigdirs="$noconfigdirs target-rda gprof"
  3435. ;;
  3436. moxie-*-*)
  3437. noconfigdirs="$noconfigdirs"
  3438. ;;
  3439. h8300*-*-*)
  3440. noconfigdirs="$noconfigdirs target-libgloss"
  3441. ;;
  3442. h8500-*-*)
  3443. noconfigdirs="$noconfigdirs target-libgloss"
  3444. ;;
  3445. hppa1.1-*-osf* | hppa1.1-*-bsd* )
  3446. ;;
  3447. hppa*64*-*-hpux*)
  3448. noconfigdirs="$noconfigdirs gdb"
  3449. ;;
  3450. hppa*-*-hpux11*)
  3451. noconfigdirs="$noconfigdirs gdb ld"
  3452. ;;
  3453. hppa*64*-*-linux*)
  3454. ;;
  3455. hppa*-*-linux*)
  3456. ;;
  3457. hppa*-*-*elf* | \
  3458. hppa*-*-lites* | \
  3459. hppa*-*-openbsd* | \
  3460. hppa*64*-*-*)
  3461. ;;
  3462. hppa*-*-pro*)
  3463. ;;
  3464. hppa*-*-*)
  3465. noconfigdirs="$noconfigdirs ld"
  3466. ;;
  3467. i960-*-*)
  3468. noconfigdirs="$noconfigdirs gdb"
  3469. ;;
  3470. ia64*-*-elf*)
  3471. # No gdb support yet.
  3472. noconfigdirs="$noconfigdirs readline libgui itcl gdb"
  3473. ;;
  3474. ia64*-**-hpux*)
  3475. # No ld support yet.
  3476. noconfigdirs="$noconfigdirs gdb libgui itcl ld"
  3477. ;;
  3478. ia64*-*-*vms*)
  3479. # No ld support yet.
  3480. noconfigdirs="$noconfigdirs libgui itcl ld"
  3481. ;;
  3482. i[3456789]86-w64-mingw*)
  3483. ;;
  3484. x86_64-w64-minwin64*)
  3485. ;;
  3486. i[3456789]86-*-mingw*)
  3487. target_configdirs="$target_configdirs target-winsup"
  3488. ;;
  3489. *-*-cygwin*)
  3490. target_configdirs="$target_configdirs target-libtermcap target-winsup"
  3491. noconfigdirs="$noconfigdirs target-libgloss"
  3492. # always build newlib if winsup directory is present.
  3493. if test -d "$srcdir/winsup/cygwin"; then
  3494. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  3495. elif test -d "$srcdir/newlib"; then
  3496. echo "Warning: winsup/cygwin is missing so newlib can't be built."
  3497. fi
  3498. ;;
  3499. i[3456789]86-*-pe)
  3500. noconfigdirs="$noconfigdirs target-libgloss"
  3501. ;;
  3502. i[3456789]86-*-sco3.2v5*)
  3503. # The linker does not yet know about weak symbols in COFF,
  3504. # and is not configured to handle mixed ELF and COFF.
  3505. noconfigdirs="$noconfigdirs ld target-libgloss"
  3506. ;;
  3507. i[3456789]86-*-sco*)
  3508. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3509. ;;
  3510. i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
  3511. noconfigdirs="$noconfigdirs target-libgloss"
  3512. ;;
  3513. i[3456789]86-*-sysv4*)
  3514. noconfigdirs="$noconfigdirs target-libgloss"
  3515. ;;
  3516. i[3456789]86-*-beos*)
  3517. noconfigdirs="$noconfigdirs gdb"
  3518. ;;
  3519. i[3456789]86-*-rdos*)
  3520. noconfigdirs="$noconfigdirs gdb"
  3521. ;;
  3522. mmix-*-*)
  3523. noconfigdirs="$noconfigdirs gdb"
  3524. ;;
  3525. mt-*-*)
  3526. noconfigdirs="$noconfigdirs sim"
  3527. ;;
  3528. powerpc-*-aix*)
  3529. # copied from rs6000-*-* entry
  3530. noconfigdirs="$noconfigdirs gprof"
  3531. ;;
  3532. powerpc*-*-winnt* | powerpc*-*-pe*)
  3533. target_configdirs="$target_configdirs target-winsup"
  3534. noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
  3535. # always build newlib.
  3536. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  3537. ;;
  3538. # This is temporary until we can link against shared libraries
  3539. powerpcle-*-solaris*)
  3540. noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
  3541. ;;
  3542. powerpc-*-beos*)
  3543. noconfigdirs="$noconfigdirs gdb"
  3544. ;;
  3545. rs6000-*-lynxos*)
  3546. noconfigdirs="$noconfigdirs gprof"
  3547. ;;
  3548. rs6000-*-aix*)
  3549. noconfigdirs="$noconfigdirs gprof"
  3550. ;;
  3551. rs6000-*-*)
  3552. noconfigdirs="$noconfigdirs gprof"
  3553. ;;
  3554. m68k-apollo-*)
  3555. noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
  3556. ;;
  3557. microblaze*)
  3558. noconfigdirs="$noconfigdirs gprof"
  3559. ;;
  3560. mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
  3561. if test x$with_newlib = xyes; then
  3562. noconfigdirs="$noconfigdirs gprof"
  3563. fi
  3564. ;;
  3565. mips*-*-irix5*)
  3566. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3567. ;;
  3568. mips*-*-irix6*)
  3569. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3570. ;;
  3571. mips*-*-bsd*)
  3572. noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
  3573. ;;
  3574. mips*-*-linux*)
  3575. ;;
  3576. mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
  3577. | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
  3578. noconfigdirs="$noconfigdirs ld gas gprof"
  3579. ;;
  3580. mips*-*-*)
  3581. noconfigdirs="$noconfigdirs gprof"
  3582. ;;
  3583. nds32*-*-*)
  3584. noconfigdirs="$noconfigdirs gdb"
  3585. ;;
  3586. nvptx*-*-*)
  3587. noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
  3588. ;;
  3589. or1k*-*-*)
  3590. noconfigdirs="$noconfigdirs gdb"
  3591. ;;
  3592. sh-*-* | sh64-*-*)
  3593. case "${target}" in
  3594. sh*-*-elf)
  3595. ;;
  3596. *)
  3597. noconfigdirs="$noconfigdirs target-libgloss" ;;
  3598. esac
  3599. ;;
  3600. sparc-*-sunos4*)
  3601. if test x${is_cross_compiler} = xno ; then
  3602. use_gnu_ld=no
  3603. fi
  3604. ;;
  3605. tic6x-*-*)
  3606. noconfigdirs="$noconfigdirs sim"
  3607. ;;
  3608. tilepro*-*-* | tilegx*-*-*)
  3609. noconfigdirs="$noconfigdirs sim"
  3610. ;;
  3611. v810-*-*)
  3612. noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
  3613. ;;
  3614. vax-*-*)
  3615. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3616. ;;
  3617. esac
  3618. # If we aren't building newlib, then don't build libgloss, since libgloss
  3619. # depends upon some newlib header files.
  3620. case "${noconfigdirs}" in
  3621. *target-libgloss*) ;;
  3622. *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
  3623. esac
  3624. # Work in distributions that contain no compiler tools, like Autoconf.
  3625. host_makefile_frag=/dev/null
  3626. if test -d ${srcdir}/config ; then
  3627. case "${host}" in
  3628. i[3456789]86-*-msdosdjgpp*)
  3629. host_makefile_frag="config/mh-djgpp"
  3630. ;;
  3631. *-cygwin*)
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
  3633. $as_echo_n "checking to see if cat works as expected... " >&6; }
  3634. echo a >cygwin-cat-check
  3635. if test `cat cygwin-cat-check` = a ; then
  3636. rm cygwin-cat-check
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3638. $as_echo "yes" >&6; }
  3639. else
  3640. rm cygwin-cat-check
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3642. $as_echo "no" >&6; }
  3643. as_fn_error "The cat command does not ignore carriage return characters.
  3644. Please either mount the build directory in binary mode or run the following
  3645. commands before running any configure script:
  3646. set -o igncr
  3647. export SHELLOPTS
  3648. " "$LINENO" 5
  3649. fi
  3650. host_makefile_frag="config/mh-cygwin"
  3651. ;;
  3652. *-mingw*)
  3653. host_makefile_frag="config/mh-mingw"
  3654. ;;
  3655. alpha*-linux*)
  3656. host_makefile_frag="config/mh-alpha-linux"
  3657. ;;
  3658. hppa*-hp-hpux10*)
  3659. host_makefile_frag="config/mh-pa-hpux10"
  3660. ;;
  3661. hppa*-hp-hpux*)
  3662. host_makefile_frag="config/mh-pa"
  3663. ;;
  3664. hppa*-*)
  3665. host_makefile_frag="config/mh-pa"
  3666. ;;
  3667. *-*-darwin*)
  3668. host_makefile_frag="config/mh-darwin"
  3669. ;;
  3670. powerpc-*-aix*)
  3671. host_makefile_frag="config/mh-ppc-aix"
  3672. ;;
  3673. rs6000-*-aix*)
  3674. host_makefile_frag="config/mh-ppc-aix"
  3675. ;;
  3676. esac
  3677. fi
  3678. if test "${build}" != "${host}" ; then
  3679. AR_FOR_BUILD=${AR_FOR_BUILD-ar}
  3680. AS_FOR_BUILD=${AS_FOR_BUILD-as}
  3681. CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
  3682. CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
  3683. GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
  3684. GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
  3685. GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
  3686. DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
  3687. LD_FOR_BUILD=${LD_FOR_BUILD-ld}
  3688. NM_FOR_BUILD=${NM_FOR_BUILD-nm}
  3689. RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
  3690. WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
  3691. WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
  3692. else
  3693. AR_FOR_BUILD="\$(AR)"
  3694. AS_FOR_BUILD="\$(AS)"
  3695. CC_FOR_BUILD="\$(CC)"
  3696. CXX_FOR_BUILD="\$(CXX)"
  3697. GCJ_FOR_BUILD="\$(GCJ)"
  3698. GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
  3699. GOC_FOR_BUILD="\$(GOC)"
  3700. DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
  3701. LD_FOR_BUILD="\$(LD)"
  3702. NM_FOR_BUILD="\$(NM)"
  3703. RANLIB_FOR_BUILD="\$(RANLIB)"
  3704. WINDRES_FOR_BUILD="\$(WINDRES)"
  3705. WINDMC_FOR_BUILD="\$(WINDMC)"
  3706. fi
  3707. ac_ext=c
  3708. ac_cpp='$CPP $CPPFLAGS'
  3709. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3710. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3711. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3712. if test -n "$ac_tool_prefix"; then
  3713. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3714. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3716. $as_echo_n "checking for $ac_word... " >&6; }
  3717. if test "${ac_cv_prog_CC+set}" = set; then :
  3718. $as_echo_n "(cached) " >&6
  3719. else
  3720. if test -n "$CC"; then
  3721. ac_cv_prog_CC="$CC" # Let the user override the test.
  3722. else
  3723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3724. for as_dir in $PATH
  3725. do
  3726. IFS=$as_save_IFS
  3727. test -z "$as_dir" && as_dir=.
  3728. for ac_exec_ext in '' $ac_executable_extensions; do
  3729. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3730. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3732. break 2
  3733. fi
  3734. done
  3735. done
  3736. IFS=$as_save_IFS
  3737. fi
  3738. fi
  3739. CC=$ac_cv_prog_CC
  3740. if test -n "$CC"; then
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3742. $as_echo "$CC" >&6; }
  3743. else
  3744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3745. $as_echo "no" >&6; }
  3746. fi
  3747. fi
  3748. if test -z "$ac_cv_prog_CC"; then
  3749. ac_ct_CC=$CC
  3750. # Extract the first word of "gcc", so it can be a program name with args.
  3751. set dummy gcc; ac_word=$2
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3753. $as_echo_n "checking for $ac_word... " >&6; }
  3754. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3755. $as_echo_n "(cached) " >&6
  3756. else
  3757. if test -n "$ac_ct_CC"; then
  3758. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3759. else
  3760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3761. for as_dir in $PATH
  3762. do
  3763. IFS=$as_save_IFS
  3764. test -z "$as_dir" && as_dir=.
  3765. for ac_exec_ext in '' $ac_executable_extensions; do
  3766. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3767. ac_cv_prog_ac_ct_CC="gcc"
  3768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3769. break 2
  3770. fi
  3771. done
  3772. done
  3773. IFS=$as_save_IFS
  3774. fi
  3775. fi
  3776. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3777. if test -n "$ac_ct_CC"; then
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3779. $as_echo "$ac_ct_CC" >&6; }
  3780. else
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3782. $as_echo "no" >&6; }
  3783. fi
  3784. if test "x$ac_ct_CC" = x; then
  3785. CC=""
  3786. else
  3787. case $cross_compiling:$ac_tool_warned in
  3788. yes:)
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3790. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3791. ac_tool_warned=yes ;;
  3792. esac
  3793. CC=$ac_ct_CC
  3794. fi
  3795. else
  3796. CC="$ac_cv_prog_CC"
  3797. fi
  3798. if test -z "$CC"; then
  3799. if test -n "$ac_tool_prefix"; then
  3800. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3801. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3803. $as_echo_n "checking for $ac_word... " >&6; }
  3804. if test "${ac_cv_prog_CC+set}" = set; then :
  3805. $as_echo_n "(cached) " >&6
  3806. else
  3807. if test -n "$CC"; then
  3808. ac_cv_prog_CC="$CC" # Let the user override the test.
  3809. else
  3810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3811. for as_dir in $PATH
  3812. do
  3813. IFS=$as_save_IFS
  3814. test -z "$as_dir" && as_dir=.
  3815. for ac_exec_ext in '' $ac_executable_extensions; do
  3816. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3817. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3819. break 2
  3820. fi
  3821. done
  3822. done
  3823. IFS=$as_save_IFS
  3824. fi
  3825. fi
  3826. CC=$ac_cv_prog_CC
  3827. if test -n "$CC"; then
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3829. $as_echo "$CC" >&6; }
  3830. else
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3832. $as_echo "no" >&6; }
  3833. fi
  3834. fi
  3835. fi
  3836. if test -z "$CC"; then
  3837. # Extract the first word of "cc", so it can be a program name with args.
  3838. set dummy cc; ac_word=$2
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3840. $as_echo_n "checking for $ac_word... " >&6; }
  3841. if test "${ac_cv_prog_CC+set}" = set; then :
  3842. $as_echo_n "(cached) " >&6
  3843. else
  3844. if test -n "$CC"; then
  3845. ac_cv_prog_CC="$CC" # Let the user override the test.
  3846. else
  3847. ac_prog_rejected=no
  3848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3849. for as_dir in $PATH
  3850. do
  3851. IFS=$as_save_IFS
  3852. test -z "$as_dir" && as_dir=.
  3853. for ac_exec_ext in '' $ac_executable_extensions; do
  3854. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3855. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3856. ac_prog_rejected=yes
  3857. continue
  3858. fi
  3859. ac_cv_prog_CC="cc"
  3860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3861. break 2
  3862. fi
  3863. done
  3864. done
  3865. IFS=$as_save_IFS
  3866. if test $ac_prog_rejected = yes; then
  3867. # We found a bogon in the path, so make sure we never use it.
  3868. set dummy $ac_cv_prog_CC
  3869. shift
  3870. if test $# != 0; then
  3871. # We chose a different compiler from the bogus one.
  3872. # However, it has the same basename, so the bogon will be chosen
  3873. # first if we set CC to just the basename; use the full file name.
  3874. shift
  3875. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3876. fi
  3877. fi
  3878. fi
  3879. fi
  3880. CC=$ac_cv_prog_CC
  3881. if test -n "$CC"; then
  3882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3883. $as_echo "$CC" >&6; }
  3884. else
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3886. $as_echo "no" >&6; }
  3887. fi
  3888. fi
  3889. if test -z "$CC"; then
  3890. if test -n "$ac_tool_prefix"; then
  3891. for ac_prog in cl.exe
  3892. do
  3893. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3894. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3896. $as_echo_n "checking for $ac_word... " >&6; }
  3897. if test "${ac_cv_prog_CC+set}" = set; then :
  3898. $as_echo_n "(cached) " >&6
  3899. else
  3900. if test -n "$CC"; then
  3901. ac_cv_prog_CC="$CC" # Let the user override the test.
  3902. else
  3903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3904. for as_dir in $PATH
  3905. do
  3906. IFS=$as_save_IFS
  3907. test -z "$as_dir" && as_dir=.
  3908. for ac_exec_ext in '' $ac_executable_extensions; do
  3909. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3910. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3911. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3912. break 2
  3913. fi
  3914. done
  3915. done
  3916. IFS=$as_save_IFS
  3917. fi
  3918. fi
  3919. CC=$ac_cv_prog_CC
  3920. if test -n "$CC"; then
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3922. $as_echo "$CC" >&6; }
  3923. else
  3924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3925. $as_echo "no" >&6; }
  3926. fi
  3927. test -n "$CC" && break
  3928. done
  3929. fi
  3930. if test -z "$CC"; then
  3931. ac_ct_CC=$CC
  3932. for ac_prog in cl.exe
  3933. do
  3934. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3935. set dummy $ac_prog; ac_word=$2
  3936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3937. $as_echo_n "checking for $ac_word... " >&6; }
  3938. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3939. $as_echo_n "(cached) " >&6
  3940. else
  3941. if test -n "$ac_ct_CC"; then
  3942. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3943. else
  3944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3945. for as_dir in $PATH
  3946. do
  3947. IFS=$as_save_IFS
  3948. test -z "$as_dir" && as_dir=.
  3949. for ac_exec_ext in '' $ac_executable_extensions; do
  3950. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3951. ac_cv_prog_ac_ct_CC="$ac_prog"
  3952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3953. break 2
  3954. fi
  3955. done
  3956. done
  3957. IFS=$as_save_IFS
  3958. fi
  3959. fi
  3960. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3961. if test -n "$ac_ct_CC"; then
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3963. $as_echo "$ac_ct_CC" >&6; }
  3964. else
  3965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3966. $as_echo "no" >&6; }
  3967. fi
  3968. test -n "$ac_ct_CC" && break
  3969. done
  3970. if test "x$ac_ct_CC" = x; then
  3971. CC=""
  3972. else
  3973. case $cross_compiling:$ac_tool_warned in
  3974. yes:)
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3976. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3977. ac_tool_warned=yes ;;
  3978. esac
  3979. CC=$ac_ct_CC
  3980. fi
  3981. fi
  3982. fi
  3983. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3984. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3985. as_fn_error "no acceptable C compiler found in \$PATH
  3986. See \`config.log' for more details." "$LINENO" 5; }
  3987. # Provide some information about the compiler.
  3988. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3989. set X $ac_compile
  3990. ac_compiler=$2
  3991. for ac_option in --version -v -V -qversion; do
  3992. { { ac_try="$ac_compiler $ac_option >&5"
  3993. case "(($ac_try" in
  3994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3995. *) ac_try_echo=$ac_try;;
  3996. esac
  3997. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3998. $as_echo "$ac_try_echo"; } >&5
  3999. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4000. ac_status=$?
  4001. if test -s conftest.err; then
  4002. sed '10a\
  4003. ... rest of stderr output deleted ...
  4004. 10q' conftest.err >conftest.er1
  4005. cat conftest.er1 >&5
  4006. rm -f conftest.er1 conftest.err
  4007. fi
  4008. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4009. test $ac_status = 0; }
  4010. done
  4011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4012. /* end confdefs.h. */
  4013. int
  4014. main ()
  4015. {
  4016. ;
  4017. return 0;
  4018. }
  4019. _ACEOF
  4020. ac_clean_files_save=$ac_clean_files
  4021. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  4022. # Try to create an executable without -o first, disregard a.out.
  4023. # It will help us diagnose broken compilers, and finding out an intuition
  4024. # of exeext.
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4026. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4027. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4028. # The possible output files:
  4029. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4030. ac_rmfiles=
  4031. for ac_file in $ac_files
  4032. do
  4033. case $ac_file in
  4034. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4035. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4036. esac
  4037. done
  4038. rm -f $ac_rmfiles
  4039. if { { ac_try="$ac_link_default"
  4040. case "(($ac_try" in
  4041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4042. *) ac_try_echo=$ac_try;;
  4043. esac
  4044. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4045. $as_echo "$ac_try_echo"; } >&5
  4046. (eval "$ac_link_default") 2>&5
  4047. ac_status=$?
  4048. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4049. test $ac_status = 0; }; then :
  4050. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4051. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4052. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4053. # so that the user can short-circuit this test for compilers unknown to
  4054. # Autoconf.
  4055. for ac_file in $ac_files ''
  4056. do
  4057. test -f "$ac_file" || continue
  4058. case $ac_file in
  4059. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4060. ;;
  4061. [ab].out )
  4062. # We found the default executable, but exeext='' is most
  4063. # certainly right.
  4064. break;;
  4065. *.* )
  4066. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  4067. then :; else
  4068. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4069. fi
  4070. # We set ac_cv_exeext here because the later test for it is not
  4071. # safe: cross compilers may not add the suffix if given an `-o'
  4072. # argument, so we may need to know it at that point already.
  4073. # Even if this section looks crufty: it has the advantage of
  4074. # actually working.
  4075. break;;
  4076. * )
  4077. break;;
  4078. esac
  4079. done
  4080. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4081. else
  4082. ac_file=''
  4083. fi
  4084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4085. $as_echo "$ac_file" >&6; }
  4086. if test -z "$ac_file"; then :
  4087. $as_echo "$as_me: failed program was:" >&5
  4088. sed 's/^/| /' conftest.$ac_ext >&5
  4089. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4090. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4091. { as_fn_set_status 77
  4092. as_fn_error "C compiler cannot create executables
  4093. See \`config.log' for more details." "$LINENO" 5; }; }
  4094. fi
  4095. ac_exeext=$ac_cv_exeext
  4096. # Check that the compiler produces executables we can run. If not, either
  4097. # the compiler is broken, or we cross compile.
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4099. $as_echo_n "checking whether the C compiler works... " >&6; }
  4100. # If not cross compiling, check that we can run a simple program.
  4101. if test "$cross_compiling" != yes; then
  4102. if { ac_try='./$ac_file'
  4103. { { case "(($ac_try" in
  4104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4105. *) ac_try_echo=$ac_try;;
  4106. esac
  4107. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4108. $as_echo "$ac_try_echo"; } >&5
  4109. (eval "$ac_try") 2>&5
  4110. ac_status=$?
  4111. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4112. test $ac_status = 0; }; }; then
  4113. cross_compiling=no
  4114. else
  4115. if test "$cross_compiling" = maybe; then
  4116. cross_compiling=yes
  4117. else
  4118. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4119. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4120. as_fn_error "cannot run C compiled programs.
  4121. If you meant to cross compile, use \`--host'.
  4122. See \`config.log' for more details." "$LINENO" 5; }
  4123. fi
  4124. fi
  4125. fi
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4127. $as_echo "yes" >&6; }
  4128. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  4129. ac_clean_files=$ac_clean_files_save
  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. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4135. $as_echo "$cross_compiling" >&6; }
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4137. $as_echo_n "checking for suffix of executables... " >&6; }
  4138. if { { ac_try="$ac_link"
  4139. case "(($ac_try" in
  4140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4141. *) ac_try_echo=$ac_try;;
  4142. esac
  4143. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4144. $as_echo "$ac_try_echo"; } >&5
  4145. (eval "$ac_link") 2>&5
  4146. ac_status=$?
  4147. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4148. test $ac_status = 0; }; then :
  4149. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4150. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4151. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4152. # `rm'.
  4153. for ac_file in conftest.exe conftest conftest.*; do
  4154. test -f "$ac_file" || continue
  4155. case $ac_file in
  4156. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4157. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4158. break;;
  4159. * ) break;;
  4160. esac
  4161. done
  4162. else
  4163. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4164. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4165. as_fn_error "cannot compute suffix of executables: cannot compile and link
  4166. See \`config.log' for more details." "$LINENO" 5; }
  4167. fi
  4168. rm -f conftest$ac_cv_exeext
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4170. $as_echo "$ac_cv_exeext" >&6; }
  4171. rm -f conftest.$ac_ext
  4172. EXEEXT=$ac_cv_exeext
  4173. ac_exeext=$EXEEXT
  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 test "${ac_cv_objext+set}" = set; 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 test "${ac_cv_c_compiler_gnu+set}" = set; 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 test "${ac_cv_prog_cc_g+set}" = set; 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 test "${ac_cv_prog_cc_c89+set}" = set; 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. #include <sys/types.h>
  4339. #include <sys/stat.h>
  4340. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4341. struct buf { int x; };
  4342. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4343. static char *e (p, i)
  4344. char **p;
  4345. int i;
  4346. {
  4347. return p[i];
  4348. }
  4349. static char *f (char * (*g) (char **, int), char **p, ...)
  4350. {
  4351. char *s;
  4352. va_list v;
  4353. va_start (v,p);
  4354. s = g (p, va_arg (v,int));
  4355. va_end (v);
  4356. return s;
  4357. }
  4358. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4359. function prototypes and stuff, but not '\xHH' hex character constants.
  4360. These don't provoke an error unfortunately, instead are silently treated
  4361. as 'x'. The following induces an error, until -std is added to get
  4362. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4363. array size at least. It's necessary to write '\x00'==0 to get something
  4364. that's true only with -std. */
  4365. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4366. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4367. inside strings and character constants. */
  4368. #define FOO(x) 'x'
  4369. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4370. int test (int i, double x);
  4371. struct s1 {int (*f) (int a);};
  4372. struct s2 {int (*f) (double a);};
  4373. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4374. int argc;
  4375. char **argv;
  4376. int
  4377. main ()
  4378. {
  4379. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4380. ;
  4381. return 0;
  4382. }
  4383. _ACEOF
  4384. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4385. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4386. do
  4387. CC="$ac_save_CC $ac_arg"
  4388. if ac_fn_c_try_compile "$LINENO"; then :
  4389. ac_cv_prog_cc_c89=$ac_arg
  4390. fi
  4391. rm -f core conftest.err conftest.$ac_objext
  4392. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4393. done
  4394. rm -f conftest.$ac_ext
  4395. CC=$ac_save_CC
  4396. fi
  4397. # AC_CACHE_VAL
  4398. case "x$ac_cv_prog_cc_c89" in
  4399. x)
  4400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4401. $as_echo "none needed" >&6; } ;;
  4402. xno)
  4403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4404. $as_echo "unsupported" >&6; } ;;
  4405. *)
  4406. CC="$CC $ac_cv_prog_cc_c89"
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4408. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4409. esac
  4410. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4411. fi
  4412. ac_ext=c
  4413. ac_cpp='$CPP $CPPFLAGS'
  4414. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4415. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4416. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4417. ac_ext=cpp
  4418. ac_cpp='$CXXCPP $CPPFLAGS'
  4419. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4420. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4421. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4422. if test -z "$CXX"; then
  4423. if test -n "$CCC"; then
  4424. CXX=$CCC
  4425. else
  4426. if test -n "$ac_tool_prefix"; then
  4427. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4428. do
  4429. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4430. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4432. $as_echo_n "checking for $ac_word... " >&6; }
  4433. if test "${ac_cv_prog_CXX+set}" = set; then :
  4434. $as_echo_n "(cached) " >&6
  4435. else
  4436. if test -n "$CXX"; then
  4437. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4438. else
  4439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4440. for as_dir in $PATH
  4441. do
  4442. IFS=$as_save_IFS
  4443. test -z "$as_dir" && as_dir=.
  4444. for ac_exec_ext in '' $ac_executable_extensions; do
  4445. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4446. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4448. break 2
  4449. fi
  4450. done
  4451. done
  4452. IFS=$as_save_IFS
  4453. fi
  4454. fi
  4455. CXX=$ac_cv_prog_CXX
  4456. if test -n "$CXX"; then
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4458. $as_echo "$CXX" >&6; }
  4459. else
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4461. $as_echo "no" >&6; }
  4462. fi
  4463. test -n "$CXX" && break
  4464. done
  4465. fi
  4466. if test -z "$CXX"; then
  4467. ac_ct_CXX=$CXX
  4468. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4469. do
  4470. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4471. set dummy $ac_prog; ac_word=$2
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4473. $as_echo_n "checking for $ac_word... " >&6; }
  4474. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  4475. $as_echo_n "(cached) " >&6
  4476. else
  4477. if test -n "$ac_ct_CXX"; then
  4478. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4479. else
  4480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4481. for as_dir in $PATH
  4482. do
  4483. IFS=$as_save_IFS
  4484. test -z "$as_dir" && as_dir=.
  4485. for ac_exec_ext in '' $ac_executable_extensions; do
  4486. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4487. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4488. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4489. break 2
  4490. fi
  4491. done
  4492. done
  4493. IFS=$as_save_IFS
  4494. fi
  4495. fi
  4496. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4497. if test -n "$ac_ct_CXX"; then
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4499. $as_echo "$ac_ct_CXX" >&6; }
  4500. else
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4502. $as_echo "no" >&6; }
  4503. fi
  4504. test -n "$ac_ct_CXX" && break
  4505. done
  4506. if test "x$ac_ct_CXX" = x; then
  4507. CXX="g++"
  4508. else
  4509. case $cross_compiling:$ac_tool_warned in
  4510. yes:)
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4512. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4513. ac_tool_warned=yes ;;
  4514. esac
  4515. CXX=$ac_ct_CXX
  4516. fi
  4517. fi
  4518. fi
  4519. fi
  4520. # Provide some information about the compiler.
  4521. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4522. set X $ac_compile
  4523. ac_compiler=$2
  4524. for ac_option in --version -v -V -qversion; do
  4525. { { ac_try="$ac_compiler $ac_option >&5"
  4526. case "(($ac_try" in
  4527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4528. *) ac_try_echo=$ac_try;;
  4529. esac
  4530. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4531. $as_echo "$ac_try_echo"; } >&5
  4532. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4533. ac_status=$?
  4534. if test -s conftest.err; then
  4535. sed '10a\
  4536. ... rest of stderr output deleted ...
  4537. 10q' conftest.err >conftest.er1
  4538. cat conftest.er1 >&5
  4539. rm -f conftest.er1 conftest.err
  4540. fi
  4541. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4542. test $ac_status = 0; }
  4543. done
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4545. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4546. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  4547. $as_echo_n "(cached) " >&6
  4548. else
  4549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4550. /* end confdefs.h. */
  4551. int
  4552. main ()
  4553. {
  4554. #ifndef __GNUC__
  4555. choke me
  4556. #endif
  4557. ;
  4558. return 0;
  4559. }
  4560. _ACEOF
  4561. if ac_fn_cxx_try_compile "$LINENO"; then :
  4562. ac_compiler_gnu=yes
  4563. else
  4564. ac_compiler_gnu=no
  4565. fi
  4566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4567. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4568. fi
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4570. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4571. if test $ac_compiler_gnu = yes; then
  4572. GXX=yes
  4573. else
  4574. GXX=
  4575. fi
  4576. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4577. ac_save_CXXFLAGS=$CXXFLAGS
  4578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4579. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4580. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  4581. $as_echo_n "(cached) " >&6
  4582. else
  4583. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4584. ac_cxx_werror_flag=yes
  4585. ac_cv_prog_cxx_g=no
  4586. CXXFLAGS="-g"
  4587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4588. /* end confdefs.h. */
  4589. int
  4590. main ()
  4591. {
  4592. ;
  4593. return 0;
  4594. }
  4595. _ACEOF
  4596. if ac_fn_cxx_try_compile "$LINENO"; then :
  4597. ac_cv_prog_cxx_g=yes
  4598. else
  4599. CXXFLAGS=""
  4600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4601. /* end confdefs.h. */
  4602. int
  4603. main ()
  4604. {
  4605. ;
  4606. return 0;
  4607. }
  4608. _ACEOF
  4609. if ac_fn_cxx_try_compile "$LINENO"; then :
  4610. else
  4611. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4612. CXXFLAGS="-g"
  4613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4614. /* end confdefs.h. */
  4615. int
  4616. main ()
  4617. {
  4618. ;
  4619. return 0;
  4620. }
  4621. _ACEOF
  4622. if ac_fn_cxx_try_compile "$LINENO"; then :
  4623. ac_cv_prog_cxx_g=yes
  4624. fi
  4625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4626. fi
  4627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4628. fi
  4629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4630. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4631. fi
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4633. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4634. if test "$ac_test_CXXFLAGS" = set; then
  4635. CXXFLAGS=$ac_save_CXXFLAGS
  4636. elif test $ac_cv_prog_cxx_g = yes; then
  4637. if test "$GXX" = yes; then
  4638. CXXFLAGS="-g -O2"
  4639. else
  4640. CXXFLAGS="-g"
  4641. fi
  4642. else
  4643. if test "$GXX" = yes; then
  4644. CXXFLAGS="-O2"
  4645. else
  4646. CXXFLAGS=
  4647. fi
  4648. fi
  4649. ac_ext=c
  4650. ac_cpp='$CPP $CPPFLAGS'
  4651. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4652. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4653. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4654. # We must set the default linker to the linker used by gcc for the correct
  4655. # operation of libtool. If LD is not defined and we are using gcc, try to
  4656. # set the LD default to the ld used by gcc.
  4657. if test -z "$LD"; then
  4658. if test "$GCC" = yes; then
  4659. case $build in
  4660. *-*-mingw*)
  4661. gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
  4662. *)
  4663. gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
  4664. esac
  4665. case $gcc_prog_ld in
  4666. # Accept absolute paths.
  4667. [\\/]* | [A-Za-z]:[\\/]*)
  4668. LD="$gcc_prog_ld" ;;
  4669. esac
  4670. fi
  4671. fi
  4672. # Check whether -static-libstdc++ -static-libgcc is supported.
  4673. have_static_libs=no
  4674. if test "$GCC" = yes; then
  4675. saved_LDFLAGS="$LDFLAGS"
  4676. LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
  4678. $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
  4679. ac_ext=cpp
  4680. ac_cpp='$CXXCPP $CPPFLAGS'
  4681. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4682. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4683. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4685. /* end confdefs.h. */
  4686. #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
  4687. #error -static-libstdc++ not implemented
  4688. #endif
  4689. int main() {}
  4690. _ACEOF
  4691. if ac_fn_cxx_try_link "$LINENO"; then :
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4693. $as_echo "yes" >&6; }; have_static_libs=yes
  4694. else
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4696. $as_echo "no" >&6; }
  4697. fi
  4698. rm -f core conftest.err conftest.$ac_objext \
  4699. conftest$ac_exeext conftest.$ac_ext
  4700. ac_ext=c
  4701. ac_cpp='$CPP $CPPFLAGS'
  4702. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4703. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4704. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4705. LDFLAGS="$saved_LDFLAGS"
  4706. fi
  4707. if test -n "$ac_tool_prefix"; then
  4708. # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
  4709. set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4711. $as_echo_n "checking for $ac_word... " >&6; }
  4712. if test "${ac_cv_prog_GNATBIND+set}" = set; then :
  4713. $as_echo_n "(cached) " >&6
  4714. else
  4715. if test -n "$GNATBIND"; then
  4716. ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
  4717. else
  4718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4719. for as_dir in $PATH
  4720. do
  4721. IFS=$as_save_IFS
  4722. test -z "$as_dir" && as_dir=.
  4723. for ac_exec_ext in '' $ac_executable_extensions; do
  4724. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4725. ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
  4726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4727. break 2
  4728. fi
  4729. done
  4730. done
  4731. IFS=$as_save_IFS
  4732. fi
  4733. fi
  4734. GNATBIND=$ac_cv_prog_GNATBIND
  4735. if test -n "$GNATBIND"; then
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
  4737. $as_echo "$GNATBIND" >&6; }
  4738. else
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4740. $as_echo "no" >&6; }
  4741. fi
  4742. fi
  4743. if test -z "$ac_cv_prog_GNATBIND"; then
  4744. ac_ct_GNATBIND=$GNATBIND
  4745. # Extract the first word of "gnatbind", so it can be a program name with args.
  4746. set dummy gnatbind; ac_word=$2
  4747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4748. $as_echo_n "checking for $ac_word... " >&6; }
  4749. if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
  4750. $as_echo_n "(cached) " >&6
  4751. else
  4752. if test -n "$ac_ct_GNATBIND"; then
  4753. ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
  4754. else
  4755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4756. for as_dir in $PATH
  4757. do
  4758. IFS=$as_save_IFS
  4759. test -z "$as_dir" && as_dir=.
  4760. for ac_exec_ext in '' $ac_executable_extensions; do
  4761. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4762. ac_cv_prog_ac_ct_GNATBIND="gnatbind"
  4763. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4764. break 2
  4765. fi
  4766. done
  4767. done
  4768. IFS=$as_save_IFS
  4769. fi
  4770. fi
  4771. ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
  4772. if test -n "$ac_ct_GNATBIND"; then
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
  4774. $as_echo "$ac_ct_GNATBIND" >&6; }
  4775. else
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4777. $as_echo "no" >&6; }
  4778. fi
  4779. if test "x$ac_ct_GNATBIND" = x; then
  4780. GNATBIND="no"
  4781. else
  4782. case $cross_compiling:$ac_tool_warned in
  4783. yes:)
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4785. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4786. ac_tool_warned=yes ;;
  4787. esac
  4788. GNATBIND=$ac_ct_GNATBIND
  4789. fi
  4790. else
  4791. GNATBIND="$ac_cv_prog_GNATBIND"
  4792. fi
  4793. if test -n "$ac_tool_prefix"; then
  4794. # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
  4795. set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4797. $as_echo_n "checking for $ac_word... " >&6; }
  4798. if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
  4799. $as_echo_n "(cached) " >&6
  4800. else
  4801. if test -n "$GNATMAKE"; then
  4802. ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
  4803. else
  4804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4805. for as_dir in $PATH
  4806. do
  4807. IFS=$as_save_IFS
  4808. test -z "$as_dir" && as_dir=.
  4809. for ac_exec_ext in '' $ac_executable_extensions; do
  4810. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4811. ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
  4812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4813. break 2
  4814. fi
  4815. done
  4816. done
  4817. IFS=$as_save_IFS
  4818. fi
  4819. fi
  4820. GNATMAKE=$ac_cv_prog_GNATMAKE
  4821. if test -n "$GNATMAKE"; then
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
  4823. $as_echo "$GNATMAKE" >&6; }
  4824. else
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4826. $as_echo "no" >&6; }
  4827. fi
  4828. fi
  4829. if test -z "$ac_cv_prog_GNATMAKE"; then
  4830. ac_ct_GNATMAKE=$GNATMAKE
  4831. # Extract the first word of "gnatmake", so it can be a program name with args.
  4832. set dummy gnatmake; ac_word=$2
  4833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4834. $as_echo_n "checking for $ac_word... " >&6; }
  4835. if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
  4836. $as_echo_n "(cached) " >&6
  4837. else
  4838. if test -n "$ac_ct_GNATMAKE"; then
  4839. ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
  4840. else
  4841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4842. for as_dir in $PATH
  4843. do
  4844. IFS=$as_save_IFS
  4845. test -z "$as_dir" && as_dir=.
  4846. for ac_exec_ext in '' $ac_executable_extensions; do
  4847. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4848. ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
  4849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4850. break 2
  4851. fi
  4852. done
  4853. done
  4854. IFS=$as_save_IFS
  4855. fi
  4856. fi
  4857. ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
  4858. if test -n "$ac_ct_GNATMAKE"; then
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
  4860. $as_echo "$ac_ct_GNATMAKE" >&6; }
  4861. else
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4863. $as_echo "no" >&6; }
  4864. fi
  4865. if test "x$ac_ct_GNATMAKE" = x; then
  4866. GNATMAKE="no"
  4867. else
  4868. case $cross_compiling:$ac_tool_warned in
  4869. yes:)
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4871. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4872. ac_tool_warned=yes ;;
  4873. esac
  4874. GNATMAKE=$ac_ct_GNATMAKE
  4875. fi
  4876. else
  4877. GNATMAKE="$ac_cv_prog_GNATMAKE"
  4878. fi
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
  4880. $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
  4881. if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
  4882. $as_echo_n "(cached) " >&6
  4883. else
  4884. cat >conftest.adb <<EOF
  4885. procedure conftest is begin null; end conftest;
  4886. EOF
  4887. acx_cv_cc_gcc_supports_ada=no
  4888. # There is a bug in old released versions of GCC which causes the
  4889. # driver to exit successfully when the appropriate language module
  4890. # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
  4891. # Therefore we must check for the error message as well as an
  4892. # unsuccessful exit.
  4893. # Other compilers, like HP Tru64 UNIX cc, exit successfully when
  4894. # given a .adb file, but produce no object file. So we must check
  4895. # if an object file was really produced to guard against this.
  4896. errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
  4897. if test x"$errors" = x && test -f conftest.$ac_objext; then
  4898. acx_cv_cc_gcc_supports_ada=yes
  4899. fi
  4900. rm -f conftest.*
  4901. fi
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
  4903. $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
  4904. if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
  4905. have_gnat=yes
  4906. else
  4907. have_gnat=no
  4908. fi
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
  4910. $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
  4911. if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
  4912. $as_echo_n "(cached) " >&6
  4913. else
  4914. echo abfoo >t1
  4915. echo cdfoo >t2
  4916. gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
  4917. if cmp t1 t2 2 2 > /dev/null 2>&1; then
  4918. if cmp t1 t2 1 1 > /dev/null 2>&1; then
  4919. :
  4920. else
  4921. gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
  4922. fi
  4923. fi
  4924. if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
  4925. if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
  4926. :
  4927. else
  4928. gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
  4929. fi
  4930. fi
  4931. rm t1 t2
  4932. fi
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
  4934. $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
  4935. do_compare="$gcc_cv_prog_cmp_skip"
  4936. # Check whether --enable-bootstrap was given.
  4937. if test "${enable_bootstrap+set}" = set; then :
  4938. enableval=$enable_bootstrap;
  4939. else
  4940. enable_bootstrap=default
  4941. fi
  4942. # Issue errors and warnings for invalid/strange bootstrap combinations.
  4943. if test -r $srcdir/gcc/configure; then
  4944. have_compiler=yes
  4945. else
  4946. have_compiler=no
  4947. fi
  4948. case "$have_compiler:$host:$target:$enable_bootstrap" in
  4949. *:*:*:no) ;;
  4950. # Default behavior. Enable bootstrap if we have a compiler
  4951. # and we are in a native configuration.
  4952. yes:$build:$build:default)
  4953. enable_bootstrap=yes ;;
  4954. *:*:*:default)
  4955. enable_bootstrap=no ;;
  4956. # We have a compiler and we are in a native configuration, bootstrap is ok
  4957. yes:$build:$build:yes)
  4958. ;;
  4959. # Other configurations, but we have a compiler. Assume the user knows
  4960. # what he's doing.
  4961. yes:*:*:yes)
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
  4963. $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
  4964. ;;
  4965. # No compiler: if they passed --enable-bootstrap explicitly, fail
  4966. no:*:*:yes)
  4967. as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
  4968. # Fail if wrong command line
  4969. *)
  4970. as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
  4971. ;;
  4972. esac
  4973. # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
  4974. # C++98 compiler can still start the bootstrap.
  4975. if test "$enable_bootstrap:$GXX" = "yes:yes"; then
  4976. CXX="$CXX -std=gnu++98"
  4977. fi
  4978. # Used for setting $lt_cv_objdir
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  4980. $as_echo_n "checking for objdir... " >&6; }
  4981. if test "${lt_cv_objdir+set}" = set; then :
  4982. $as_echo_n "(cached) " >&6
  4983. else
  4984. rm -f .libs 2>/dev/null
  4985. mkdir .libs 2>/dev/null
  4986. if test -d .libs; then
  4987. lt_cv_objdir=.libs
  4988. else
  4989. # MS-DOS does not allow filenames that begin with a dot.
  4990. lt_cv_objdir=_libs
  4991. fi
  4992. rmdir .libs 2>/dev/null
  4993. fi
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  4995. $as_echo "$lt_cv_objdir" >&6; }
  4996. objdir=$lt_cv_objdir
  4997. cat >>confdefs.h <<_ACEOF
  4998. #define LT_OBJDIR "$lt_cv_objdir/"
  4999. _ACEOF
  5000. # Check for GMP, MPFR and MPC
  5001. gmplibs="-lmpc -lmpfr -lgmp"
  5002. gmpinc=
  5003. have_gmp=no
  5004. # Specify a location for mpc
  5005. # check for this first so it ends up on the link line before mpfr.
  5006. # Check whether --with-mpc was given.
  5007. if test "${with_mpc+set}" = set; then :
  5008. withval=$with_mpc;
  5009. fi
  5010. # Check whether --with-mpc-include was given.
  5011. if test "${with_mpc_include+set}" = set; then :
  5012. withval=$with_mpc_include;
  5013. fi
  5014. # Check whether --with-mpc-lib was given.
  5015. if test "${with_mpc_lib+set}" = set; then :
  5016. withval=$with_mpc_lib;
  5017. fi
  5018. if test "x$with_mpc" != x; then
  5019. gmplibs="-L$with_mpc/lib $gmplibs"
  5020. gmpinc="-I$with_mpc/include $gmpinc"
  5021. fi
  5022. if test "x$with_mpc_include" != x; then
  5023. gmpinc="-I$with_mpc_include $gmpinc"
  5024. fi
  5025. if test "x$with_mpc_lib" != x; then
  5026. gmplibs="-L$with_mpc_lib $gmplibs"
  5027. fi
  5028. if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
  5029. gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
  5030. gmpinc='-I$$s/mpc/src '"$gmpinc"
  5031. # Do not test the mpc version. Assume that it is sufficient, since
  5032. # it is in the source tree, and the library has not been built yet
  5033. # but it would be included on the link line in the version check below
  5034. # hence making the test fail.
  5035. have_gmp=yes
  5036. fi
  5037. # Specify a location for mpfr
  5038. # check for this first so it ends up on the link line before gmp.
  5039. # Check whether --with-mpfr-dir was given.
  5040. if test "${with_mpfr_dir+set}" = set; then :
  5041. withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
  5042. Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
  5043. fi
  5044. # Check whether --with-mpfr was given.
  5045. if test "${with_mpfr+set}" = set; then :
  5046. withval=$with_mpfr;
  5047. fi
  5048. # Check whether --with-mpfr-include was given.
  5049. if test "${with_mpfr_include+set}" = set; then :
  5050. withval=$with_mpfr_include;
  5051. fi
  5052. # Check whether --with-mpfr-lib was given.
  5053. if test "${with_mpfr_lib+set}" = set; then :
  5054. withval=$with_mpfr_lib;
  5055. fi
  5056. if test "x$with_mpfr" != x; then
  5057. gmplibs="-L$with_mpfr/lib $gmplibs"
  5058. gmpinc="-I$with_mpfr/include $gmpinc"
  5059. fi
  5060. if test "x$with_mpfr_include" != x; then
  5061. gmpinc="-I$with_mpfr_include $gmpinc"
  5062. fi
  5063. if test "x$with_mpfr_lib" != x; then
  5064. gmplibs="-L$with_mpfr_lib $gmplibs"
  5065. fi
  5066. if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
  5067. # MPFR v3.1.0 moved the sources into a src sub-directory.
  5068. if test -d ${srcdir}/mpfr/src; then
  5069. gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
  5070. gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
  5071. extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
  5072. else
  5073. gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
  5074. gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
  5075. extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
  5076. fi
  5077. # Do not test the mpfr version. Assume that it is sufficient, since
  5078. # it is in the source tree, and the library has not been built yet
  5079. # but it would be included on the link line in the version check below
  5080. # hence making the test fail.
  5081. have_gmp=yes
  5082. fi
  5083. # Specify a location for gmp
  5084. # Check whether --with-gmp-dir was given.
  5085. if test "${with_gmp_dir+set}" = set; then :
  5086. withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
  5087. Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
  5088. fi
  5089. # Check whether --with-gmp was given.
  5090. if test "${with_gmp+set}" = set; then :
  5091. withval=$with_gmp;
  5092. fi
  5093. # Check whether --with-gmp-include was given.
  5094. if test "${with_gmp_include+set}" = set; then :
  5095. withval=$with_gmp_include;
  5096. fi
  5097. # Check whether --with-gmp-lib was given.
  5098. if test "${with_gmp_lib+set}" = set; then :
  5099. withval=$with_gmp_lib;
  5100. fi
  5101. if test "x$with_gmp" != x; then
  5102. gmplibs="-L$with_gmp/lib $gmplibs"
  5103. gmpinc="-I$with_gmp/include $gmpinc"
  5104. fi
  5105. if test "x$with_gmp_include" != x; then
  5106. gmpinc="-I$with_gmp_include $gmpinc"
  5107. fi
  5108. if test "x$with_gmp_lib" != x; then
  5109. gmplibs="-L$with_gmp_lib $gmplibs"
  5110. fi
  5111. if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
  5112. gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
  5113. gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
  5114. extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
  5115. extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
  5116. extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
  5117. # Do not test the gmp version. Assume that it is sufficient, since
  5118. # it is in the source tree, and the library has not been built yet
  5119. # but it would be included on the link line in the version check below
  5120. # hence making the test fail.
  5121. have_gmp=yes
  5122. fi
  5123. if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
  5124. have_gmp=yes
  5125. saved_CFLAGS="$CFLAGS"
  5126. CFLAGS="$CFLAGS $gmpinc"
  5127. # Check for the recommended and required versions of GMP.
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
  5129. $as_echo_n "checking for the correct version of gmp.h... " >&6; }
  5130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5131. /* end confdefs.h. */
  5132. #include "gmp.h"
  5133. int
  5134. main ()
  5135. {
  5136. #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
  5137. #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
  5138. #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
  5139. choke me
  5140. #endif
  5141. ;
  5142. return 0;
  5143. }
  5144. _ACEOF
  5145. if ac_fn_c_try_compile "$LINENO"; then :
  5146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5147. /* end confdefs.h. */
  5148. #include <gmp.h>
  5149. int
  5150. main ()
  5151. {
  5152. #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
  5153. #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
  5154. #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
  5155. choke me
  5156. #endif
  5157. ;
  5158. return 0;
  5159. }
  5160. _ACEOF
  5161. if ac_fn_c_try_compile "$LINENO"; then :
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5163. $as_echo "yes" >&6; }
  5164. else
  5165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  5166. $as_echo "buggy but acceptable" >&6; }
  5167. fi
  5168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5169. else
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5171. $as_echo "no" >&6; }; have_gmp=no
  5172. fi
  5173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5174. # If we have GMP, check the MPFR version.
  5175. if test x"$have_gmp" = xyes; then
  5176. # Check for the recommended and required versions of MPFR.
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
  5178. $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
  5179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5180. /* end confdefs.h. */
  5181. #include <gmp.h>
  5182. #include <mpfr.h>
  5183. int
  5184. main ()
  5185. {
  5186. #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
  5187. choke me
  5188. #endif
  5189. ;
  5190. return 0;
  5191. }
  5192. _ACEOF
  5193. if ac_fn_c_try_compile "$LINENO"; then :
  5194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5195. /* end confdefs.h. */
  5196. #include <gmp.h>
  5197. #include <mpfr.h>
  5198. int
  5199. main ()
  5200. {
  5201. #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
  5202. choke me
  5203. #endif
  5204. ;
  5205. return 0;
  5206. }
  5207. _ACEOF
  5208. if ac_fn_c_try_compile "$LINENO"; then :
  5209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5210. $as_echo "yes" >&6; }
  5211. else
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  5213. $as_echo "buggy but acceptable" >&6; }
  5214. fi
  5215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5216. else
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5218. $as_echo "no" >&6; }; have_gmp=no
  5219. fi
  5220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5221. fi
  5222. # Check for the MPC header version.
  5223. if test x"$have_gmp" = xyes ; then
  5224. # Check for the recommended and required versions of MPC.
  5225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
  5226. $as_echo_n "checking for the correct version of mpc.h... " >&6; }
  5227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5228. /* end confdefs.h. */
  5229. #include <mpc.h>
  5230. int
  5231. main ()
  5232. {
  5233. #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
  5234. choke me
  5235. #endif
  5236. ;
  5237. return 0;
  5238. }
  5239. _ACEOF
  5240. if ac_fn_c_try_compile "$LINENO"; then :
  5241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5242. /* end confdefs.h. */
  5243. #include <mpc.h>
  5244. int
  5245. main ()
  5246. {
  5247. #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
  5248. choke me
  5249. #endif
  5250. ;
  5251. return 0;
  5252. }
  5253. _ACEOF
  5254. if ac_fn_c_try_compile "$LINENO"; then :
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5256. $as_echo "yes" >&6; }
  5257. else
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  5259. $as_echo "buggy but acceptable" >&6; }
  5260. fi
  5261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5262. else
  5263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5264. $as_echo "no" >&6; }; have_gmp=no
  5265. fi
  5266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5267. fi
  5268. # Now check the MPFR library.
  5269. if test x"$have_gmp" = xyes; then
  5270. saved_LIBS="$LIBS"
  5271. LIBS="$LIBS $gmplibs"
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
  5273. $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
  5274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5275. /* end confdefs.h. */
  5276. #include <mpc.h>
  5277. int
  5278. main ()
  5279. {
  5280. mpfr_t n;
  5281. mpfr_t x;
  5282. mpc_t c;
  5283. int t;
  5284. mpfr_init (n);
  5285. mpfr_init (x);
  5286. mpfr_atan2 (n, n, x, GMP_RNDN);
  5287. mpfr_erfc (n, x, GMP_RNDN);
  5288. mpfr_subnormalize (x, t, GMP_RNDN);
  5289. mpfr_clear(n);
  5290. mpfr_clear(x);
  5291. mpc_init2 (c, 53);
  5292. mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
  5293. mpc_cosh (c, c, MPC_RNDNN);
  5294. mpc_pow (c, c, c, MPC_RNDNN);
  5295. mpc_acosh (c, c, MPC_RNDNN);
  5296. mpc_clear (c);
  5297. ;
  5298. return 0;
  5299. }
  5300. _ACEOF
  5301. if ac_fn_c_try_link "$LINENO"; then :
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5303. $as_echo "yes" >&6; }
  5304. else
  5305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5306. $as_echo "no" >&6; }; have_gmp=no
  5307. fi
  5308. rm -f core conftest.err conftest.$ac_objext \
  5309. conftest$ac_exeext conftest.$ac_ext
  5310. LIBS="$saved_LIBS"
  5311. fi
  5312. CFLAGS="$saved_CFLAGS"
  5313. # The library versions listed in the error message below should match
  5314. # the HARD-minimums enforced above.
  5315. if test x$have_gmp != xyes; then
  5316. as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
  5317. Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
  5318. their locations. Source code for these libraries can be found at
  5319. their respective hosting sites as well as at
  5320. ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
  5321. http://gcc.gnu.org/install/prerequisites.html for additional info. If
  5322. you obtained GMP, MPFR and/or MPC from a vendor distribution package,
  5323. make sure that you have installed both the libraries and the header
  5324. files. They may be located in separate packages." "$LINENO" 5
  5325. fi
  5326. fi
  5327. # Flags needed for both GMP, MPFR and/or MPC.
  5328. # Libraries to use for stage1 or when not bootstrapping.
  5329. # Check whether --with-stage1-libs was given.
  5330. if test "${with_stage1_libs+set}" = set; then :
  5331. withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
  5332. stage1_libs=
  5333. else
  5334. stage1_libs=$withval
  5335. fi
  5336. else
  5337. stage1_libs=
  5338. fi
  5339. # Linker flags to use for stage1 or when not bootstrapping.
  5340. # Check whether --with-stage1-ldflags was given.
  5341. if test "${with_stage1_ldflags+set}" = set; then :
  5342. withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
  5343. stage1_ldflags=
  5344. else
  5345. stage1_ldflags=$withval
  5346. fi
  5347. else
  5348. stage1_ldflags=
  5349. # In stage 1, default to linking libstdc++ and libgcc statically with GCC
  5350. # if supported. But if the user explicitly specified the libraries to use,
  5351. # trust that they are doing what they want.
  5352. if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
  5353. stage1_ldflags="-static-libstdc++ -static-libgcc"
  5354. fi
  5355. fi
  5356. # Libraries to use for stage2 and later builds.
  5357. # Check whether --with-boot-libs was given.
  5358. if test "${with_boot_libs+set}" = set; then :
  5359. withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
  5360. poststage1_libs=
  5361. else
  5362. poststage1_libs=$withval
  5363. fi
  5364. else
  5365. poststage1_libs=
  5366. fi
  5367. # Linker flags to use for stage2 and later builds.
  5368. # Check whether --with-boot-ldflags was given.
  5369. if test "${with_boot_ldflags+set}" = set; then :
  5370. withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
  5371. poststage1_ldflags=
  5372. else
  5373. poststage1_ldflags=$withval
  5374. fi
  5375. else
  5376. poststage1_ldflags=
  5377. # In stages 2 and 3, default to linking libstdc++ and libgcc
  5378. # statically. But if the user explicitly specified the libraries to
  5379. # use, trust that they are doing what they want.
  5380. if test "$poststage1_libs" = ""; then
  5381. poststage1_ldflags="-static-libstdc++ -static-libgcc"
  5382. fi
  5383. fi
  5384. # GCC GRAPHITE dependency ISL.
  5385. # Basic setup is inlined here, actual checks are in config/isl.m4
  5386. # Check whether --with-isl was given.
  5387. if test "${with_isl+set}" = set; then :
  5388. withval=$with_isl;
  5389. fi
  5390. # Treat --without-isl as a request to disable
  5391. # GRAPHITE support and skip all following checks.
  5392. if test "x$with_isl" != "xno"; then
  5393. # Check for ISL
  5394. # Check whether --with-isl-include was given.
  5395. if test "${with_isl_include+set}" = set; then :
  5396. withval=$with_isl_include;
  5397. fi
  5398. # Check whether --with-isl-lib was given.
  5399. if test "${with_isl_lib+set}" = set; then :
  5400. withval=$with_isl_lib;
  5401. fi
  5402. # Check whether --enable-isl-version-check was given.
  5403. if test "${enable_isl_version_check+set}" = set; then :
  5404. enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
  5405. else
  5406. ENABLE_ISL_CHECK=yes
  5407. fi
  5408. # Initialize isllibs and islinc.
  5409. case $with_isl in
  5410. no)
  5411. isllibs=
  5412. islinc=
  5413. ;;
  5414. "" | yes)
  5415. ;;
  5416. *)
  5417. isllibs="-L$with_isl/lib"
  5418. islinc="-I$with_isl/include"
  5419. ;;
  5420. esac
  5421. if test "x${with_isl_include}" != x ; then
  5422. islinc="-I$with_isl_include"
  5423. fi
  5424. if test "x${with_isl_lib}" != x; then
  5425. isllibs="-L$with_isl_lib"
  5426. fi
  5427. if test "x${islinc}" = x && test "x${isllibs}" = x \
  5428. && test -d ${srcdir}/isl; then
  5429. isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
  5430. islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
  5431. ENABLE_ISL_CHECK=no
  5432. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
  5433. $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
  5434. fi
  5435. isllibs="${isllibs} -lisl"
  5436. if test "${ENABLE_ISL_CHECK}" = yes ; then
  5437. _isl_saved_CFLAGS=$CFLAGS
  5438. _isl_saved_LDFLAGS=$LDFLAGS
  5439. _isl_saved_LIBS=$LIBS
  5440. CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
  5441. LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
  5442. LIBS="${_isl_saved_LIBS} -lisl"
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
  5444. $as_echo_n "checking for compatible ISL... " >&6; }
  5445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5446. /* end confdefs.h. */
  5447. #include <isl/val.h>
  5448. int
  5449. main ()
  5450. {
  5451. ;
  5452. ;
  5453. return 0;
  5454. }
  5455. _ACEOF
  5456. if ac_fn_c_try_link "$LINENO"; then :
  5457. gcc_cv_isl=yes
  5458. else
  5459. gcc_cv_isl=no
  5460. fi
  5461. rm -f core conftest.err conftest.$ac_objext \
  5462. conftest$ac_exeext conftest.$ac_ext
  5463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
  5464. $as_echo "$gcc_cv_isl" >&6; }
  5465. CFLAGS=$_isl_saved_CFLAGS
  5466. LDFLAGS=$_isl_saved_LDFLAGS
  5467. LIBS=$_isl_saved_LIBS
  5468. fi
  5469. if test "x${with_isl}" = xno; then
  5470. graphite_requested=no
  5471. elif test "x${with_isl}" != x \
  5472. || test "x${with_isl_include}" != x \
  5473. || test "x${with_isl_lib}" != x ; then
  5474. graphite_requested=yes
  5475. else
  5476. graphite_requested=no
  5477. fi
  5478. if test "${gcc_cv_isl}" = no ; then
  5479. isllibs=
  5480. islinc=
  5481. fi
  5482. if test "${graphite_requested}" = yes \
  5483. && test "x${isllibs}" = x \
  5484. && test "x${islinc}" = x ; then
  5485. as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
  5486. fi
  5487. fi
  5488. # If the ISL check failed, disable builds of in-tree variant of ISL
  5489. if test "x$with_isl" = xno ||
  5490. test "x$gcc_cv_isl" = xno; then
  5491. noconfigdirs="$noconfigdirs isl"
  5492. islinc=
  5493. fi
  5494. # Check for LTO support.
  5495. # Check whether --enable-lto was given.
  5496. if test "${enable_lto+set}" = set; then :
  5497. enableval=$enable_lto; enable_lto=$enableval
  5498. else
  5499. enable_lto=yes; default_enable_lto=yes
  5500. fi
  5501. target_elf=no
  5502. case $target in
  5503. *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
  5504. *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
  5505. alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
  5506. nvptx-*-none)
  5507. target_elf=no
  5508. ;;
  5509. *)
  5510. target_elf=yes
  5511. ;;
  5512. esac
  5513. if test $target_elf = yes; then :
  5514. # ELF platforms build the lto-plugin always.
  5515. build_lto_plugin=yes
  5516. else
  5517. if test x"$default_enable_lto" = x"yes" ; then
  5518. case $target in
  5519. *-apple-darwin9* | *-cygwin* | *-mingw* | x86_64-w64-minwin64*) ;;
  5520. # On other non-ELF platforms, LTO has yet to be validated.
  5521. *) enable_lto=no ;;
  5522. esac
  5523. else
  5524. # Apart from ELF platforms, only Windows and Darwin support LTO so far.
  5525. # It would also be nice to check the binutils support, but we don't
  5526. # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
  5527. # warn during gcc/ subconfigure; unless you're bootstrapping with
  5528. # -flto it won't be needed until after installation anyway.
  5529. case $target in
  5530. *-cygwin* | *-mingw* | *-apple-darwin* | x86_64-w64-minwin64*) ;;
  5531. *) if test x"$enable_lto" = x"yes"; then
  5532. as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
  5533. fi
  5534. ;;
  5535. esac
  5536. fi
  5537. # Among non-ELF, only Windows platforms support the lto-plugin so far.
  5538. # Build it unless LTO was explicitly disabled.
  5539. case $target in
  5540. *-cygwin* | *-mingw* | x86_64-w64-minwin64* ) build_lto_plugin=$enable_lto ;;
  5541. *) ;;
  5542. esac
  5543. fi
  5544. # Check whether --enable-linker-plugin-configure-flags was given.
  5545. if test "${enable_linker_plugin_configure_flags+set}" = set; then :
  5546. enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
  5547. else
  5548. extra_linker_plugin_configure_flags=
  5549. fi
  5550. # Check whether --enable-linker-plugin-flags was given.
  5551. if test "${enable_linker_plugin_flags+set}" = set; then :
  5552. enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
  5553. else
  5554. extra_linker_plugin_flags=
  5555. fi
  5556. # By default, C and C++ are the only stage 1 languages.
  5557. stage1_languages=,c,
  5558. # Target libraries that we bootstrap.
  5559. bootstrap_target_libs=,target-libgcc,
  5560. # Figure out what language subdirectories are present.
  5561. # Look if the user specified --enable-languages="..."; if not, use
  5562. # the environment variable $LANGUAGES if defined. $LANGUAGES might
  5563. # go away some day.
  5564. # NB: embedded tabs in this IF block -- do not untabify
  5565. if test -d ${srcdir}/gcc; then
  5566. if test x"${enable_languages+set}" != xset; then
  5567. if test x"${LANGUAGES+set}" = xset; then
  5568. enable_languages="${LANGUAGES}"
  5569. echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
  5570. else
  5571. enable_languages=all
  5572. fi
  5573. else
  5574. if test x"${enable_languages}" = x ||
  5575. test x"${enable_languages}" = xyes;
  5576. then
  5577. echo configure.ac: --enable-languages needs at least one language argument 1>&2
  5578. exit 1
  5579. fi
  5580. fi
  5581. enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
  5582. # 'f95' is the old name for the 'fortran' language. We issue a warning
  5583. # and make the substitution.
  5584. case ,${enable_languages}, in
  5585. *,f95,*)
  5586. echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
  5587. enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
  5588. ;;
  5589. esac
  5590. # If bootstrapping, C++ must be enabled.
  5591. case ",$enable_languages,:$enable_bootstrap" in
  5592. *,c++,*:*) ;;
  5593. *:yes)
  5594. if test -f ${srcdir}/gcc/cp/config-lang.in; then
  5595. enable_languages="${enable_languages},c++"
  5596. else
  5597. as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
  5598. fi
  5599. ;;
  5600. esac
  5601. # First scan to see if an enabled language requires some other language.
  5602. # We assume that a given config-lang.in will list all the language
  5603. # front ends it requires, even if some are required indirectly.
  5604. for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
  5605. case ${lang_frag} in
  5606. ..) ;;
  5607. # The odd quoting in the next line works around
  5608. # an apparent bug in bash 1.12 on linux.
  5609. ${srcdir}/gcc/[*]/config-lang.in) ;;
  5610. *)
  5611. # From the config-lang.in, get $language, $lang_requires, and
  5612. # $lang_requires_boot_languages.
  5613. language=
  5614. lang_requires=
  5615. lang_requires_boot_languages=
  5616. . ${lang_frag}
  5617. for other in ${lang_requires} ${lang_requires_boot_languages}; do
  5618. case ,${enable_languages}, in
  5619. *,$other,*) ;;
  5620. *,all,*) ;;
  5621. *,$language,*)
  5622. echo " \`$other' language required by \`$language'; enabling" 1>&2
  5623. enable_languages="${enable_languages},${other}"
  5624. ;;
  5625. esac
  5626. done
  5627. for other in ${lang_requires_boot_languages} ; do
  5628. if test "$other" != "c"; then
  5629. case ,${enable_stage1_languages}, in
  5630. *,$other,*) ;;
  5631. *,all,*) ;;
  5632. *)
  5633. case ,${enable_languages}, in
  5634. *,$language,*)
  5635. echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
  5636. enable_stage1_languages="$enable_stage1_languages,${other}"
  5637. ;;
  5638. esac
  5639. ;;
  5640. esac
  5641. fi
  5642. done
  5643. ;;
  5644. esac
  5645. done
  5646. new_enable_languages=,c,
  5647. # If LTO is enabled, add the LTO front end.
  5648. if test "$enable_lto" = "yes" ; then
  5649. case ,${enable_languages}, in
  5650. *,lto,*) ;;
  5651. *) enable_languages="${enable_languages},lto" ;;
  5652. esac
  5653. if test "${build_lto_plugin}" = "yes" ; then
  5654. configdirs="$configdirs lto-plugin"
  5655. fi
  5656. fi
  5657. # If we're building an offloading compiler, add the LTO front end.
  5658. if test x"$enable_as_accelerator_for" != x ; then
  5659. case ,${enable_languages}, in
  5660. *,lto,*) ;;
  5661. *) enable_languages="${enable_languages},lto" ;;
  5662. esac
  5663. fi
  5664. missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
  5665. potential_languages=,c,
  5666. enabled_target_libs=
  5667. disabled_target_libs=
  5668. for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
  5669. case ${lang_frag} in
  5670. ..) ;;
  5671. # The odd quoting in the next line works around
  5672. # an apparent bug in bash 1.12 on linux.
  5673. ${srcdir}/gcc/[*]/config-lang.in) ;;
  5674. *)
  5675. # From the config-lang.in, get $language, $target_libs,
  5676. # $lang_dirs, $boot_language, and $build_by_default
  5677. language=
  5678. target_libs=
  5679. lang_dirs=
  5680. subdir_requires=
  5681. boot_language=no
  5682. build_by_default=yes
  5683. . ${lang_frag}
  5684. if test x${language} = x; then
  5685. echo "${lang_frag} doesn't set \$language." 1>&2
  5686. exit 1
  5687. fi
  5688. if test "$language" = "c++"; then
  5689. boot_language=yes
  5690. fi
  5691. add_this_lang=no
  5692. case ,${enable_languages}, in
  5693. *,${language},*)
  5694. # Language was explicitly selected; include it
  5695. # unless it is C, which is enabled by default.
  5696. if test "$language" != "c"; then
  5697. add_this_lang=yes
  5698. fi
  5699. ;;
  5700. *,all,*)
  5701. # 'all' was selected, select it if it is a default language
  5702. if test "$language" != "c"; then
  5703. add_this_lang=${build_by_default}
  5704. fi
  5705. ;;
  5706. esac
  5707. # Disable languages that need other directories if these aren't available.
  5708. for i in $subdir_requires; do
  5709. test -f "$srcdir/gcc/$i/config-lang.in" && continue
  5710. case ,${enable_languages}, in
  5711. *,${language},*)
  5712. # Specifically requested language; tell them.
  5713. as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
  5714. ;;
  5715. *)
  5716. # Silently disable.
  5717. add_this_lang=unsupported
  5718. ;;
  5719. esac
  5720. done
  5721. # Disable Ada if no preexisting GNAT is available.
  5722. case ,${enable_languages},:${language}:${have_gnat} in
  5723. *,${language},*:ada:no)
  5724. # Specifically requested language; tell them.
  5725. as_fn_error "GNAT is required to build $language" "$LINENO" 5
  5726. ;;
  5727. *:ada:no)
  5728. # Silently disable.
  5729. add_this_lang=unsupported
  5730. ;;
  5731. esac
  5732. # Disable a language that is unsupported by the target.
  5733. case " $unsupported_languages " in
  5734. *" $language "*)
  5735. add_this_lang=unsupported
  5736. ;;
  5737. esac
  5738. case $add_this_lang in
  5739. unsupported)
  5740. # Remove language-dependent dirs.
  5741. disabled_target_libs="$disabled_target_libs $target_libs"
  5742. noconfigdirs="$noconfigdirs $lang_dirs"
  5743. ;;
  5744. no)
  5745. # Remove language-dependent dirs; still show language as supported.
  5746. disabled_target_libs="$disabled_target_libs $target_libs"
  5747. noconfigdirs="$noconfigdirs $lang_dirs"
  5748. potential_languages="${potential_languages}${language},"
  5749. ;;
  5750. yes)
  5751. new_enable_languages="${new_enable_languages}${language},"
  5752. potential_languages="${potential_languages}${language},"
  5753. missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
  5754. enabled_target_libs="$enabled_target_libs $target_libs"
  5755. case "${boot_language}:,$enable_stage1_languages," in
  5756. yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
  5757. # Add to (comma-separated) list of stage 1 languages.
  5758. case ",$stage1_languages," in
  5759. *,$language,* | ,yes, | ,all,) ;;
  5760. *) stage1_languages="${stage1_languages}${language}," ;;
  5761. esac
  5762. # We need to bootstrap any supporting libraries.
  5763. bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
  5764. ;;
  5765. esac
  5766. ;;
  5767. esac
  5768. ;;
  5769. esac
  5770. done
  5771. # Add target libraries which are only needed for disabled languages
  5772. # to noconfigdirs.
  5773. if test -n "$disabled_target_libs"; then
  5774. for dir in $disabled_target_libs; do
  5775. case " $enabled_target_libs " in
  5776. *" ${dir} "*) ;;
  5777. *) noconfigdirs="$noconfigdirs $dir" ;;
  5778. esac
  5779. done
  5780. fi
  5781. # Check whether --enable-stage1-languages was given.
  5782. if test "${enable_stage1_languages+set}" = set; then :
  5783. enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
  5784. ,no,|,,)
  5785. # Set it to something that will have no effect in the loop below
  5786. enable_stage1_languages=c ;;
  5787. ,yes,)
  5788. enable_stage1_languages=`echo $new_enable_languages | \
  5789. sed -e "s/^,//" -e "s/,$//" ` ;;
  5790. *,all,*)
  5791. enable_stage1_languages=`echo ,$enable_stage1_languages, | \
  5792. sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
  5793. esac
  5794. # Add "good" languages from enable_stage1_languages to stage1_languages,
  5795. # while "bad" languages go in missing_languages. Leave no duplicates.
  5796. for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
  5797. case $potential_languages in
  5798. *,$i,*)
  5799. case $stage1_languages in
  5800. *,$i,*) ;;
  5801. *) stage1_languages="$stage1_languages$i," ;;
  5802. esac ;;
  5803. *)
  5804. case $missing_languages in
  5805. *,$i,*) ;;
  5806. *) missing_languages="$missing_languages$i," ;;
  5807. esac ;;
  5808. esac
  5809. done
  5810. fi
  5811. # Remove leading/trailing commas that were added for simplicity
  5812. potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
  5813. missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
  5814. stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
  5815. new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
  5816. if test "x$missing_languages" != x; then
  5817. as_fn_error "
  5818. The following requested languages could not be built: ${missing_languages}
  5819. Supported languages are: ${potential_languages}" "$LINENO" 5
  5820. fi
  5821. if test "x$new_enable_languages" != "x$enable_languages"; then
  5822. echo The following languages will be built: ${new_enable_languages}
  5823. enable_languages="$new_enable_languages"
  5824. fi
  5825. ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
  5826. fi
  5827. # Handle --disable-<component> generically.
  5828. for dir in $configdirs $build_configdirs $target_configdirs ; do
  5829. dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
  5830. varname=`echo $dirname | sed -e s/+/_/g`
  5831. if eval test x\${enable_${varname}} "=" xno ; then
  5832. noconfigdirs="$noconfigdirs $dir"
  5833. fi
  5834. done
  5835. # Check for Boehm's garbage collector
  5836. # Check whether --enable-objc-gc was given.
  5837. if test "${enable_objc_gc+set}" = set; then :
  5838. enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
  5839. *,objc,*:*:yes:*target-boehm-gc*)
  5840. as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
  5841. ;;
  5842. esac
  5843. fi
  5844. # Make sure we only build Boehm's garbage collector if required.
  5845. case ,${enable_languages},:${enable_objc_gc} in
  5846. *,objc,*:yes)
  5847. # Keep target-boehm-gc if requested for Objective-C.
  5848. ;;
  5849. *)
  5850. # Otherwise remove target-boehm-gc depending on target-libjava.
  5851. if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
  5852. noconfigdirs="$noconfigdirs target-boehm-gc"
  5853. fi
  5854. ;;
  5855. esac
  5856. # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
  5857. case ,${enable_languages}, in
  5858. *,c++,*)
  5859. # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
  5860. case "${noconfigdirs}" in
  5861. *target-libstdc++-v3*)
  5862. noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
  5863. ;;
  5864. *) ;;
  5865. esac
  5866. ;;
  5867. *)
  5868. noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
  5869. ;;
  5870. esac
  5871. # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
  5872. # $build_configdirs and $target_configdirs.
  5873. # If we have the source for $noconfigdirs entries, add them to $notsupp.
  5874. notsupp=""
  5875. for dir in . $skipdirs $noconfigdirs ; do
  5876. dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
  5877. if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5878. configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
  5879. if test -r $srcdir/$dirname/configure ; then
  5880. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5881. true
  5882. else
  5883. notsupp="$notsupp $dir"
  5884. fi
  5885. fi
  5886. fi
  5887. if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5888. build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
  5889. if test -r $srcdir/$dirname/configure ; then
  5890. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5891. true
  5892. else
  5893. notsupp="$notsupp $dir"
  5894. fi
  5895. fi
  5896. fi
  5897. if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5898. target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
  5899. if test -r $srcdir/$dirname/configure ; then
  5900. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5901. true
  5902. else
  5903. notsupp="$notsupp $dir"
  5904. fi
  5905. fi
  5906. fi
  5907. done
  5908. # Quietly strip out all directories which aren't configurable in this tree.
  5909. # This relies on all configurable subdirectories being autoconfiscated, which
  5910. # is now the case.
  5911. build_configdirs_all="$build_configdirs"
  5912. build_configdirs=
  5913. for i in ${build_configdirs_all} ; do
  5914. j=`echo $i | sed -e s/build-//g`
  5915. if test -f ${srcdir}/$j/configure ; then
  5916. build_configdirs="${build_configdirs} $i"
  5917. fi
  5918. done
  5919. configdirs_all="$configdirs"
  5920. configdirs=
  5921. for i in ${configdirs_all} ; do
  5922. if test -f ${srcdir}/$i/configure ; then
  5923. configdirs="${configdirs} $i"
  5924. fi
  5925. done
  5926. target_configdirs_all="$target_configdirs"
  5927. target_configdirs=
  5928. for i in ${target_configdirs_all} ; do
  5929. j=`echo $i | sed -e s/target-//g`
  5930. if test -f ${srcdir}/$j/configure ; then
  5931. target_configdirs="${target_configdirs} $i"
  5932. fi
  5933. done
  5934. # Exclude target-zlib if target-libjava isn't built.
  5935. case ${target_configdirs} in
  5936. *target-libjava*)
  5937. ;;
  5938. *)
  5939. target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
  5940. ;;
  5941. esac
  5942. # libiberty-linker-plugin is special: it doesn't have its own source directory,
  5943. # so we have to add it after the preceding checks.
  5944. if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
  5945. then
  5946. case " $configdirs " in
  5947. *" libiberty "*)
  5948. # If we can build libiberty, we can also build libiberty-linker-plugin.
  5949. configdirs="$configdirs libiberty-linker-plugin"
  5950. extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
  5951. --with-libiberty=../libiberty-linker-plugin";;
  5952. *)
  5953. as_fn_error "libiberty missing" "$LINENO" 5;;
  5954. esac
  5955. fi
  5956. # Sometimes we have special requirements for the host libiberty.
  5957. extra_host_libiberty_configure_flags=
  5958. extra_host_zlib_configure_flags=
  5959. case " $configdirs " in
  5960. *" lto-plugin "* | *" libcc1 "*)
  5961. # When these are to be built as shared libraries, the same applies to
  5962. # libiberty.
  5963. extra_host_libiberty_configure_flags=--enable-shared
  5964. ;;
  5965. *" bfd "*)
  5966. # When bfd is to be built as a shared library, the same applies to
  5967. # zlib.
  5968. if test "$enable_shared" = "yes"; then
  5969. extra_host_zlib_configure_flags=--enable-host-shared
  5970. fi
  5971. ;;
  5972. esac
  5973. # Produce a warning message for the subdirs we can't configure.
  5974. # This isn't especially interesting in the Cygnus tree, but in the individual
  5975. # FSF releases, it's important to let people know when their machine isn't
  5976. # supported by the one or two programs in a package.
  5977. if test -n "${notsupp}" && test -z "${norecursion}" ; then
  5978. # If $appdirs is non-empty, at least one of those directories must still
  5979. # be configured, or we error out. (E.g., if the gas release supports a
  5980. # specified target in some subdirs but not the gas subdir, we shouldn't
  5981. # pretend that all is well.)
  5982. if test -n "$appdirs" ; then
  5983. for dir in $appdirs ; do
  5984. if test -r $dir/Makefile.in ; then
  5985. if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5986. appdirs=""
  5987. break
  5988. fi
  5989. if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
  5990. appdirs=""
  5991. break
  5992. fi
  5993. fi
  5994. done
  5995. if test -n "$appdirs" ; then
  5996. echo "*** This configuration is not supported by this package." 1>&2
  5997. exit 1
  5998. fi
  5999. fi
  6000. # Okay, some application will build, or we don't care to check. Still
  6001. # notify of subdirs not getting built.
  6002. echo "*** This configuration is not supported in the following subdirectories:" 1>&2
  6003. echo " ${notsupp}" 1>&2
  6004. echo " (Any other directories should still work fine.)" 1>&2
  6005. fi
  6006. case "$host" in
  6007. *msdosdjgpp*)
  6008. enable_gdbtk=no ;;
  6009. esac
  6010. # To find our prefix, in gcc_cv_tool_prefix.
  6011. # The user is always right.
  6012. if test "${PATH_SEPARATOR+set}" != set; then
  6013. echo "#! /bin/sh" >conf$$.sh
  6014. echo "exit 0" >>conf$$.sh
  6015. chmod +x conf$$.sh
  6016. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6017. PATH_SEPARATOR=';'
  6018. else
  6019. PATH_SEPARATOR=:
  6020. fi
  6021. rm -f conf$$.sh
  6022. fi
  6023. if test "x$exec_prefix" = xNONE; then
  6024. if test "x$prefix" = xNONE; then
  6025. gcc_cv_tool_prefix=$ac_default_prefix
  6026. else
  6027. gcc_cv_tool_prefix=$prefix
  6028. fi
  6029. else
  6030. gcc_cv_tool_prefix=$exec_prefix
  6031. fi
  6032. # If there is no compiler in the tree, use the PATH only. In any
  6033. # case, if there is no compiler in the tree nobody should use
  6034. # AS_FOR_TARGET and LD_FOR_TARGET.
  6035. if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
  6036. gcc_version=`cat $srcdir/gcc/BASE-VER`
  6037. gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  6038. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
  6039. gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  6040. gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
  6041. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  6042. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
  6043. else
  6044. gcc_cv_tool_dirs=
  6045. fi
  6046. if test x$build = x$target && test -n "$md_exec_prefix"; then
  6047. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
  6048. fi
  6049. copy_dirs=
  6050. # Check whether --with-build-sysroot was given.
  6051. if test "${with_build_sysroot+set}" = set; then :
  6052. withval=$with_build_sysroot; if test x"$withval" != x ; then
  6053. SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
  6054. fi
  6055. else
  6056. SYSROOT_CFLAGS_FOR_TARGET=
  6057. fi
  6058. # Check whether --with-debug-prefix-map was given.
  6059. if test "${with_debug_prefix_map+set}" = set; then :
  6060. withval=$with_debug_prefix_map; if test x"$withval" != x; then
  6061. DEBUG_PREFIX_CFLAGS_FOR_TARGET=
  6062. for debug_map in $withval; do
  6063. DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
  6064. done
  6065. fi
  6066. else
  6067. DEBUG_PREFIX_CFLAGS_FOR_TARGET=
  6068. fi
  6069. # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
  6070. # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
  6071. # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
  6072. # We want to ensure that TARGET libraries (which we know are built with
  6073. # gcc) are built with "-O2 -g", so include those options when setting
  6074. # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
  6075. if test "x$CFLAGS_FOR_TARGET" = x; then
  6076. if test "x${is_cross_compiler}" = xyes; then
  6077. CFLAGS_FOR_TARGET="-g -O2"
  6078. else
  6079. CFLAGS_FOR_TARGET=$CFLAGS
  6080. case " $CFLAGS " in
  6081. *" -O2 "*) ;;
  6082. *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
  6083. esac
  6084. case " $CFLAGS " in
  6085. *" -g "* | *" -g3 "*) ;;
  6086. *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
  6087. esac
  6088. fi
  6089. fi
  6090. if test "x$CXXFLAGS_FOR_TARGET" = x; then
  6091. if test "x${is_cross_compiler}" = xyes; then
  6092. CXXFLAGS_FOR_TARGET="-g -O2"
  6093. else
  6094. CXXFLAGS_FOR_TARGET=$CXXFLAGS
  6095. case " $CXXFLAGS " in
  6096. *" -O2 "*) ;;
  6097. *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
  6098. esac
  6099. case " $CXXFLAGS " in
  6100. *" -g "* | *" -g3 "*) ;;
  6101. *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
  6102. esac
  6103. fi
  6104. fi
  6105. # Handle --with-headers=XXX. If the value is not "yes", the contents of
  6106. # the named directory are copied to $(tooldir)/sys-include.
  6107. if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
  6108. if test x${is_cross_compiler} = xno ; then
  6109. echo 1>&2 '***' --with-headers is only supported when cross compiling
  6110. exit 1
  6111. fi
  6112. if test x"${with_headers}" != xyes ; then
  6113. x=${gcc_cv_tool_prefix}
  6114. copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
  6115. fi
  6116. fi
  6117. # Handle --with-libs=XXX. If the value is not "yes", the contents of
  6118. # the name directories are copied to $(tooldir)/lib. Multiple directories
  6119. # are permitted.
  6120. if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  6121. if test x${is_cross_compiler} = xno ; then
  6122. echo 1>&2 '***' --with-libs is only supported when cross compiling
  6123. exit 1
  6124. fi
  6125. if test x"${with_libs}" != xyes ; then
  6126. # Copy the libraries in reverse order, so that files in the first named
  6127. # library override files in subsequent libraries.
  6128. x=${gcc_cv_tool_prefix}
  6129. for l in ${with_libs}; do
  6130. copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
  6131. done
  6132. fi
  6133. fi
  6134. # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
  6135. #
  6136. # This is done by determining whether or not the appropriate directory
  6137. # is available, and by checking whether or not specific configurations
  6138. # have requested that this magic not happen.
  6139. #
  6140. # The command line options always override the explicit settings in
  6141. # configure.ac, and the settings in configure.ac override this magic.
  6142. #
  6143. # If the default for a toolchain is to use GNU as and ld, and you don't
  6144. # want to do that, then you should use the --without-gnu-as and
  6145. # --without-gnu-ld options for the configure script. Similarly, if
  6146. # the default is to use the included zlib and you don't want to do that,
  6147. # you should use the --with-system-zlib option for the configure script.
  6148. if test x${use_gnu_as} = x &&
  6149. echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
  6150. with_gnu_as=yes
  6151. extra_host_args="$extra_host_args --with-gnu-as"
  6152. fi
  6153. if test x${use_gnu_ld} = x &&
  6154. echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
  6155. with_gnu_ld=yes
  6156. extra_host_args="$extra_host_args --with-gnu-ld"
  6157. fi
  6158. if test x${use_included_zlib} = x &&
  6159. echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
  6160. :
  6161. else
  6162. with_system_zlib=yes
  6163. extra_host_args="$extra_host_args --with-system-zlib"
  6164. fi
  6165. # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
  6166. # can detect this case.
  6167. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
  6168. with_newlib=yes
  6169. extra_host_args="$extra_host_args --with-newlib"
  6170. fi
  6171. # Handle ${copy_dirs}
  6172. set fnord ${copy_dirs}
  6173. shift
  6174. while test $# != 0 ; do
  6175. if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
  6176. :
  6177. else
  6178. echo Copying $1 to $2
  6179. # Use the install script to create the directory and all required
  6180. # parent directories.
  6181. if test -d $2 ; then
  6182. :
  6183. else
  6184. echo >config.temp
  6185. ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
  6186. fi
  6187. # Copy the directory, assuming we have tar.
  6188. # FIXME: Should we use B in the second tar? Not all systems support it.
  6189. (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
  6190. # It is the responsibility of the user to correctly adjust all
  6191. # symlinks. If somebody can figure out how to handle them correctly
  6192. # here, feel free to add the code.
  6193. echo $1 > $2/COPIED
  6194. fi
  6195. shift; shift
  6196. done
  6197. # Determine a target-dependent exec_prefix that the installed
  6198. # gcc will search in. Keep this list sorted by triplet, with
  6199. # the *-*-osname triplets last.
  6200. md_exec_prefix=
  6201. case "${target}" in
  6202. i[34567]86-pc-msdosdjgpp*)
  6203. md_exec_prefix=/dev/env/DJDIR/bin
  6204. ;;
  6205. *-*-hpux* | \
  6206. *-*-nto-qnx* | \
  6207. *-*-solaris2*)
  6208. md_exec_prefix=/usr/ccs/bin
  6209. ;;
  6210. esac
  6211. extra_arflags_for_target=
  6212. extra_nmflags_for_target=
  6213. extra_ranlibflags_for_target=
  6214. target_makefile_frag=/dev/null
  6215. case "${target}" in
  6216. spu-*-*)
  6217. target_makefile_frag="config/mt-spu"
  6218. ;;
  6219. mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
  6220. target_makefile_frag="config/mt-sde"
  6221. ;;
  6222. mipsisa*-*-elfoabi*)
  6223. target_makefile_frag="config/mt-mips-elfoabi"
  6224. ;;
  6225. mips*-*-*linux* | mips*-*-gnu*)
  6226. target_makefile_frag="config/mt-mips-gnu"
  6227. ;;
  6228. nios2-*-elf*)
  6229. target_makefile_frag="config/mt-nios2-elf"
  6230. ;;
  6231. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  6232. target_makefile_frag="config/mt-gnu"
  6233. ;;
  6234. *-*-aix4.[3456789]* | *-*-aix[56789].*)
  6235. # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
  6236. # commands to handle both 32-bit and 64-bit objects. These flags are
  6237. # harmless if we're using GNU nm or ar.
  6238. extra_arflags_for_target=" -X32_64"
  6239. extra_nmflags_for_target=" -B -X32_64"
  6240. ;;
  6241. esac
  6242. alphaieee_frag=/dev/null
  6243. case $target in
  6244. alpha*-*-*)
  6245. # This just makes sure to use the -mieee option to build target libs.
  6246. # This should probably be set individually by each library.
  6247. alphaieee_frag="config/mt-alphaieee"
  6248. ;;
  6249. esac
  6250. # If --enable-target-optspace always use -Os instead of -O2 to build
  6251. # the target libraries, similarly if it is not specified, use -Os
  6252. # on selected platforms.
  6253. ospace_frag=/dev/null
  6254. case "${enable_target_optspace}:${target}" in
  6255. yes:*)
  6256. ospace_frag="config/mt-ospace"
  6257. ;;
  6258. :d30v-*)
  6259. ospace_frag="config/mt-d30v"
  6260. ;;
  6261. :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
  6262. ospace_frag="config/mt-ospace"
  6263. ;;
  6264. no:* | :*)
  6265. ;;
  6266. *)
  6267. echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
  6268. ;;
  6269. esac
  6270. # Some systems (e.g., one of the i386-aix systems the gas testers are
  6271. # using) don't handle "\$" correctly, so don't use it here.
  6272. tooldir='${exec_prefix}'/${target_noncanonical}
  6273. build_tooldir=${tooldir}
  6274. # Create a .gdbinit file which runs the one in srcdir
  6275. # and tells GDB to look there for source files.
  6276. if test -r ${srcdir}/.gdbinit ; then
  6277. case ${srcdir} in
  6278. .) ;;
  6279. *) cat > ./.gdbinit <<EOF
  6280. # ${NO_EDIT}
  6281. dir ${srcdir}
  6282. dir .
  6283. source ${srcdir}/.gdbinit
  6284. EOF
  6285. ;;
  6286. esac
  6287. fi
  6288. # Make sure that the compiler is able to generate an executable. If it
  6289. # can't, we are probably in trouble. We don't care whether we can run the
  6290. # executable--we might be using a cross compiler--we only care whether it
  6291. # can be created. At this point the main configure script has set CC.
  6292. we_are_ok=no
  6293. echo "int main () { return 0; }" > conftest.c
  6294. ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
  6295. if test $? = 0 ; then
  6296. if test -s conftest || test -s conftest.exe ; then
  6297. we_are_ok=yes
  6298. fi
  6299. fi
  6300. case $we_are_ok in
  6301. no)
  6302. echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
  6303. echo 1>&2 "*** You must set the environment variable CC to a working compiler."
  6304. rm -f conftest*
  6305. exit 1
  6306. ;;
  6307. esac
  6308. rm -f conftest*
  6309. # Decide which environment variable is used to find dynamic libraries.
  6310. case "${host}" in
  6311. *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
  6312. *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
  6313. *-*-mingw* | *-*-cygwin | x86_64-w64-minwin64* ) RPATH_ENVVAR=PATH ;;
  6314. *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
  6315. esac
  6316. # On systems where the dynamic library environment variable is PATH,
  6317. # gcc/ will put dynamic libraries into a subdirectory to avoid adding
  6318. # built executables to PATH.
  6319. if test "$RPATH_ENVVAR" = PATH; then
  6320. GCC_SHLIB_SUBDIR=/shlib
  6321. else
  6322. GCC_SHLIB_SUBDIR=
  6323. fi
  6324. # Adjust the toplevel makefile according to whether bootstrap was selected.
  6325. case $enable_bootstrap in
  6326. yes)
  6327. bootstrap_suffix=bootstrap
  6328. BUILD_CONFIG=bootstrap-debug
  6329. ;;
  6330. no)
  6331. bootstrap_suffix=no-bootstrap
  6332. BUILD_CONFIG=
  6333. ;;
  6334. esac
  6335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
  6336. $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
  6337. # Check whether --with-build-config was given.
  6338. if test "${with_build_config+set}" = set; then :
  6339. withval=$with_build_config; case $with_build_config in
  6340. yes) with_build_config= ;;
  6341. no) with_build_config= BUILD_CONFIG= ;;
  6342. esac
  6343. fi
  6344. if test "x${with_build_config}" != x; then
  6345. BUILD_CONFIG=$with_build_config
  6346. else
  6347. case $BUILD_CONFIG in
  6348. bootstrap-debug)
  6349. if echo "int f (void) { return 0; }" > conftest.c &&
  6350. ${CC} -c conftest.c &&
  6351. mv conftest.o conftest.o.g0 &&
  6352. ${CC} -c -g conftest.c &&
  6353. mv conftest.o conftest.o.g &&
  6354. ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
  6355. :
  6356. else
  6357. BUILD_CONFIG=
  6358. fi
  6359. rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
  6360. ;;
  6361. esac
  6362. fi
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
  6364. $as_echo "$BUILD_CONFIG" >&6; }
  6365. # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
  6367. $as_echo_n "checking for --enable-vtable-verify... " >&6; }
  6368. # Check whether --enable-vtable-verify was given.
  6369. if test "${enable_vtable_verify+set}" = set; then :
  6370. enableval=$enable_vtable_verify; case "$enableval" in
  6371. yes) enable_vtable_verify=yes ;;
  6372. no) enable_vtable_verify=no ;;
  6373. *) enable_vtable_verify=no;;
  6374. esac
  6375. else
  6376. enable_vtable_verify=no
  6377. fi
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
  6379. $as_echo "$enable_vtable_verify" >&6; }
  6380. # Record target_configdirs and the configure arguments for target and
  6381. # build configuration in Makefile.
  6382. target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
  6383. build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
  6384. bootstrap_fixincludes=no
  6385. # If we are building libgomp, bootstrap it.
  6386. if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
  6387. bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
  6388. fi
  6389. # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
  6390. # or bootstrap-ubsan, bootstrap it.
  6391. if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
  6392. case "$BUILD_CONFIG" in
  6393. *bootstrap-asan* | *bootstrap-ubsan* )
  6394. bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
  6395. bootstrap_fixincludes=yes
  6396. ;;
  6397. esac
  6398. fi
  6399. # If we are building libvtv and --enable-vtable-verify, bootstrap it.
  6400. if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
  6401. test "$enable_vtable_verify" != no; then
  6402. bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
  6403. fi
  6404. # If we are building libmpx, bootstrap it.
  6405. if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
  6406. bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
  6407. fi
  6408. # Determine whether gdb needs tk/tcl or not.
  6409. # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
  6410. # and in that case we want gdb to be built without tk. Ugh!
  6411. # In fact I believe gdb is the *only* package directly dependent on tk,
  6412. # so we should be able to put the 'maybe's in unconditionally and
  6413. # leave out the maybe dependencies when enable_gdbtk is false. I'm not
  6414. # 100% sure that that's safe though.
  6415. gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
  6416. case "$enable_gdbtk" in
  6417. no)
  6418. GDB_TK="" ;;
  6419. yes)
  6420. GDB_TK="${gdb_tk}" ;;
  6421. *)
  6422. # Only add the dependency on gdbtk when GDBtk is part of the gdb
  6423. # distro. Eventually someone will fix this and move Insight, nee
  6424. # gdbtk to a separate directory.
  6425. if test -d ${srcdir}/gdb/gdbtk ; then
  6426. GDB_TK="${gdb_tk}"
  6427. else
  6428. GDB_TK=""
  6429. fi
  6430. ;;
  6431. esac
  6432. CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
  6433. INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
  6434. # Strip out unwanted targets.
  6435. # While at that, we remove Makefiles if we were started for recursive
  6436. # configuration, so that the top-level Makefile reconfigures them,
  6437. # like we used to do when configure itself was recursive.
  6438. # Loop over modules. We used to use the "$extrasub" feature from Autoconf
  6439. # but now we're fixing up the Makefile ourselves with the additional
  6440. # commands passed to AC_CONFIG_FILES. Use separate variables
  6441. # extrasub-{build,host,target} not because there is any reason to split
  6442. # the substitutions up that way, but only to remain below the limit of
  6443. # 99 commands in a script, for HP-UX sed.
  6444. # Do not nest @if/@endif pairs, because configure will not warn you at all.
  6445. case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
  6446. yes:yes:*\ gold\ *:*,c++,*) ;;
  6447. yes:yes:*\ gold\ *:*)
  6448. as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
  6449. ;;
  6450. esac
  6451. extrasub_build=
  6452. for module in ${build_configdirs} ; do
  6453. if test -z "${no_recursion}" \
  6454. && test -f ${build_subdir}/${module}/Makefile; then
  6455. echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
  6456. rm -f ${build_subdir}/${module}/Makefile
  6457. fi
  6458. extrasub_build="$extrasub_build
  6459. /^@if build-$module\$/d
  6460. /^@endif build-$module\$/d
  6461. /^@if build-$module-$bootstrap_suffix\$/d
  6462. /^@endif build-$module-$bootstrap_suffix\$/d"
  6463. done
  6464. extrasub_host=
  6465. for module in ${configdirs} ; do
  6466. if test -z "${no_recursion}"; then
  6467. for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
  6468. if test -f ${file}; then
  6469. echo 1>&2 "*** removing ${file} to force reconfigure"
  6470. rm -f ${file}
  6471. fi
  6472. done
  6473. fi
  6474. case ${module},${bootstrap_fixincludes} in
  6475. fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
  6476. *) host_bootstrap_suffix=$bootstrap_suffix ;;
  6477. esac
  6478. extrasub_host="$extrasub_host
  6479. /^@if $module\$/d
  6480. /^@endif $module\$/d
  6481. /^@if $module-$host_bootstrap_suffix\$/d
  6482. /^@endif $module-$host_bootstrap_suffix\$/d"
  6483. done
  6484. extrasub_target=
  6485. for module in ${target_configdirs} ; do
  6486. if test -z "${no_recursion}" \
  6487. && test -f ${target_subdir}/${module}/Makefile; then
  6488. echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
  6489. rm -f ${target_subdir}/${module}/Makefile
  6490. fi
  6491. # We only bootstrap target libraries listed in bootstrap_target_libs.
  6492. case $bootstrap_target_libs in
  6493. *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
  6494. *) target_bootstrap_suffix=no-bootstrap ;;
  6495. esac
  6496. extrasub_target="$extrasub_target
  6497. /^@if target-$module\$/d
  6498. /^@endif target-$module\$/d
  6499. /^@if target-$module-$target_bootstrap_suffix\$/d
  6500. /^@endif target-$module-$target_bootstrap_suffix\$/d"
  6501. done
  6502. # Do the final fixup along with target modules.
  6503. extrasub_target="$extrasub_target
  6504. /^@if /,/^@endif /d"
  6505. # Create the serialization dependencies. This uses a temporary file.
  6506. # Check whether --enable-serial-configure was given.
  6507. if test "${enable_serial_configure+set}" = set; then :
  6508. enableval=$enable_serial_configure;
  6509. fi
  6510. case ${enable_serial_configure} in
  6511. yes)
  6512. enable_serial_build_configure=yes
  6513. enable_serial_host_configure=yes
  6514. enable_serial_target_configure=yes
  6515. ;;
  6516. esac
  6517. # These force 'configure's to be done one at a time, to avoid problems
  6518. # with contention over a shared config.cache.
  6519. rm -f serdep.tmp
  6520. echo '# serdep.tmp' > serdep.tmp
  6521. olditem=
  6522. test "x${enable_serial_build_configure}" = xyes &&
  6523. for item in ${build_configdirs} ; do
  6524. case ${olditem} in
  6525. "") ;;
  6526. *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
  6527. esac
  6528. olditem=${item}
  6529. done
  6530. olditem=
  6531. test "x${enable_serial_host_configure}" = xyes &&
  6532. for item in ${configdirs} ; do
  6533. case ${olditem} in
  6534. "") ;;
  6535. *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
  6536. esac
  6537. olditem=${item}
  6538. done
  6539. olditem=
  6540. test "x${enable_serial_target_configure}" = xyes &&
  6541. for item in ${target_configdirs} ; do
  6542. case ${olditem} in
  6543. "") ;;
  6544. *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
  6545. esac
  6546. olditem=${item}
  6547. done
  6548. serialization_dependencies=serdep.tmp
  6549. # Base args. Strip norecursion, cache-file, srcdir, host, build,
  6550. # target, nonopt, and variable assignments. These are the ones we
  6551. # might not want to pass down to subconfigures. The exception being
  6552. # --cache-file=/dev/null, which is used to turn off the use of cache
  6553. # files altogether, and which should be passed on to subconfigures.
  6554. # Also strip program-prefix, program-suffix, and program-transform-name,
  6555. # so that we can pass down a consistent program-transform-name.
  6556. baseargs=
  6557. tbaseargs=
  6558. keep_next=no
  6559. skip_next=no
  6560. eval "set -- $ac_configure_args"
  6561. for ac_arg
  6562. do
  6563. if test X"$skip_next" = X"yes"; then
  6564. skip_next=no
  6565. continue
  6566. fi
  6567. if test X"$keep_next" = X"yes"; then
  6568. case $ac_arg in
  6569. *\'*)
  6570. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6571. esac
  6572. baseargs="$baseargs '$ac_arg'"
  6573. tbaseargs="$tbaseargs '$ac_arg'"
  6574. keep_next=no
  6575. continue
  6576. fi
  6577. # Handle separated arguments. Based on the logic generated by
  6578. # autoconf 2.59.
  6579. case $ac_arg in
  6580. *=* | --config-cache | -C | -disable-* | --disable-* \
  6581. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  6582. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  6583. | -with-* | --with-* | -without-* | --without-* | --x)
  6584. separate_arg=no
  6585. ;;
  6586. -*)
  6587. separate_arg=yes
  6588. ;;
  6589. *)
  6590. separate_arg=no
  6591. ;;
  6592. esac
  6593. skip_targ=no
  6594. case $ac_arg in
  6595. --with-* | --without-*)
  6596. libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
  6597. case $libopt in
  6598. *[-_]include)
  6599. lib=`echo "$libopt" | sed 's,[-_]include$,,'`
  6600. ;;
  6601. *[-_]lib)
  6602. lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
  6603. ;;
  6604. *)
  6605. lib=$libopt
  6606. ;;
  6607. esac
  6608. case $lib in
  6609. mpc | mpfr | gmp | isl)
  6610. # If we're processing --with-$lib, --with-$lib-include or
  6611. # --with-$lib-lib, for one of the libs above, and target is
  6612. # different from host, don't pass the current argument to any
  6613. # target library's configure.
  6614. if test x$is_cross_compiler = xyes; then
  6615. skip_targ=yes
  6616. fi
  6617. ;;
  6618. esac
  6619. ;;
  6620. esac
  6621. case "$ac_arg" in
  6622. --cache-file=/dev/null | \
  6623. -cache-file=/dev/null )
  6624. # Handled here to avoid the test to skip args below.
  6625. baseargs="$baseargs '$ac_arg'"
  6626. tbaseargs="$tbaseargs '$ac_arg'"
  6627. # Assert: $separate_arg should always be no.
  6628. keep_next=$separate_arg
  6629. ;;
  6630. --no*)
  6631. continue
  6632. ;;
  6633. --c* | \
  6634. --sr* | \
  6635. --ho* | \
  6636. --bu* | \
  6637. --t* | \
  6638. --program-* | \
  6639. -cache_file* | \
  6640. -srcdir* | \
  6641. -host* | \
  6642. -build* | \
  6643. -target* | \
  6644. -program-prefix* | \
  6645. -program-suffix* | \
  6646. -program-transform-name* )
  6647. skip_next=$separate_arg
  6648. continue
  6649. ;;
  6650. -*)
  6651. # An option. Add it.
  6652. case $ac_arg in
  6653. *\'*)
  6654. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6655. esac
  6656. baseargs="$baseargs '$ac_arg'"
  6657. if test X"$skip_targ" = Xno; then
  6658. tbaseargs="$tbaseargs '$ac_arg'"
  6659. fi
  6660. keep_next=$separate_arg
  6661. ;;
  6662. *)
  6663. # Either a variable assignment, or a nonopt (triplet). Don't
  6664. # pass it down; let the Makefile handle this.
  6665. continue
  6666. ;;
  6667. esac
  6668. done
  6669. # Remove the initial space we just introduced and, as these will be
  6670. # expanded by make, quote '$'.
  6671. baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  6672. # Add in --program-transform-name, after --program-prefix and
  6673. # --program-suffix have been applied to it. Autoconf has already
  6674. # doubled dollar signs and backslashes in program_transform_name; we want
  6675. # the backslashes un-doubled, and then the entire thing wrapped in single
  6676. # quotes, because this will be expanded first by make and then by the shell.
  6677. # Also, because we want to override the logic in subdir configure scripts to
  6678. # choose program_transform_name, replace any s,x,x, with s,y,y,.
  6679. sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
  6680. ${program_transform_name}
  6681. EOF_SED
  6682. gcc_transform_name=`cat conftestsed.out`
  6683. rm -f conftestsed.out
  6684. baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
  6685. tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
  6686. if test "$silent" = yes; then
  6687. baseargs="$baseargs --silent"
  6688. tbaseargs="$tbaseargs --silent"
  6689. fi
  6690. baseargs="$baseargs --disable-option-checking"
  6691. tbaseargs="$tbaseargs --disable-option-checking"
  6692. # Record and document user additions to sub configure arguments.
  6693. # For the build-side libraries, we just need to pretend we're native,
  6694. # and not use the same cache file. Multilibs are neither needed nor
  6695. # desired. We can't even use the same cache file for all build-side
  6696. # libraries, as they're compiled differently; some with C, some with
  6697. # C++ or with different feature-enabling options.
  6698. build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
  6699. # For host modules, accept cache file option, or specification as blank.
  6700. case "${cache_file}" in
  6701. "") # empty
  6702. cache_file_option="" ;;
  6703. /* | [A-Za-z]:[\\/]* ) # absolute path
  6704. cache_file_option="--cache-file=${cache_file}" ;;
  6705. *) # relative path
  6706. cache_file_option="--cache-file=../${cache_file}" ;;
  6707. esac
  6708. # Host dirs don't like to share a cache file either, horribly enough.
  6709. # This seems to be due to autoconf 2.5x stupidity.
  6710. host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
  6711. target_configargs="$target_configargs ${tbaseargs}"
  6712. # Passing a --with-cross-host argument lets the target libraries know
  6713. # whether they are being built with a cross-compiler or being built
  6714. # native. However, it would be better to use other mechanisms to make the
  6715. # sorts of decisions they want to make on this basis. Please consider
  6716. # this option to be deprecated. FIXME.
  6717. if test x${is_cross_compiler} = xyes ; then
  6718. target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
  6719. fi
  6720. # Special user-friendly check for native x86_64-linux build, if
  6721. # multilib is not explicitly enabled.
  6722. case "$target:$have_compiler:$host:$target:$enable_multilib" in
  6723. x86_64-*linux*:yes:$build:$build:)
  6724. # Make sure we have a development environment that handles 32-bit
  6725. dev64=no
  6726. echo "int main () { return 0; }" > conftest.c
  6727. ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
  6728. if test $? = 0 ; then
  6729. if test -s conftest || test -s conftest.exe ; then
  6730. dev64=yes
  6731. fi
  6732. fi
  6733. rm -f conftest*
  6734. if test x${dev64} != xyes ; then
  6735. 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
  6736. fi
  6737. ;;
  6738. esac
  6739. # Default to --enable-multilib.
  6740. if test x${enable_multilib} = x ; then
  6741. target_configargs="--enable-multilib ${target_configargs}"
  6742. fi
  6743. # Pass --with-newlib if appropriate. Note that target_configdirs has
  6744. # changed from the earlier setting of with_newlib.
  6745. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
  6746. target_configargs="--with-newlib ${target_configargs}"
  6747. fi
  6748. # Different target subdirs use different values of certain variables
  6749. # (notably CXX). Worse, multilibs use *lots* of different values.
  6750. # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
  6751. # it doesn't automatically accept command-line overrides of them.
  6752. # This means it's not safe for target subdirs to share a cache file,
  6753. # which is disgusting, but there you have it. Hopefully this can be
  6754. # fixed in future. It's still worthwhile to use a cache file for each
  6755. # directory. I think.
  6756. # Pass the appropriate --build, --host, --target and --cache-file arguments.
  6757. # We need to pass --target, as newer autoconf's requires consistency
  6758. # for target_alias and gcc doesn't manage it consistently.
  6759. target_configargs="--cache-file=./config.cache ${target_configargs}"
  6760. FLAGS_FOR_TARGET=
  6761. case " $target_configdirs " in
  6762. *" newlib "*)
  6763. case " $target_configargs " in
  6764. *" --with-newlib "*)
  6765. case "$target" in
  6766. *-cygwin*)
  6767. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
  6768. ;;
  6769. esac
  6770. # If we're not building GCC, don't discard standard headers.
  6771. if test -d ${srcdir}/gcc; then
  6772. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
  6773. if test "${build}" != "${host}"; then
  6774. # On Canadian crosses, CC_FOR_TARGET will have already been set
  6775. # by `configure', so we won't have an opportunity to add -Bgcc/
  6776. # to it. This is right: we don't want to search that directory
  6777. # for binaries, but we want the header files in there, so add
  6778. # them explicitly.
  6779. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
  6780. # Someone might think of using the pre-installed headers on
  6781. # Canadian crosses, in case the installed compiler is not fully
  6782. # compatible with the compiler being built. In this case, it
  6783. # would be better to flag an error than risking having
  6784. # incompatible object files being constructed. We can't
  6785. # guarantee that an error will be flagged, but let's hope the
  6786. # compiler will do it, when presented with incompatible header
  6787. # files.
  6788. fi
  6789. fi
  6790. case "${target}-${is_cross_compiler}" in
  6791. i[3456789]86-*-linux*-no)
  6792. # Here host == target, so we don't need to build gcc,
  6793. # so we don't want to discard standard headers.
  6794. FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
  6795. ;;
  6796. *)
  6797. # If we're building newlib, use its generic headers last, but search
  6798. # for any libc-related directories first (so make it the last -B
  6799. # switch).
  6800. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
  6801. # If we're building libgloss, find the startup file, simulator library
  6802. # and linker script.
  6803. case " $target_configdirs " in
  6804. *" libgloss "*)
  6805. # Look for startup file, simulator library and maybe linker script.
  6806. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
  6807. # Look for libnosys.a in case the target needs it.
  6808. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
  6809. # Most targets have the linker script in the source directory.
  6810. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
  6811. ;;
  6812. esac
  6813. ;;
  6814. esac
  6815. ;;
  6816. esac
  6817. ;;
  6818. esac
  6819. case "$target" in
  6820. x86_64-*mingw* | *-w64-mingw* | x86_64-w64-minwin64*)
  6821. # MinGW-w64 does not use newlib, nor does it use winsup. It may,
  6822. # however, use a symlink named 'mingw' in ${prefix} .
  6823. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
  6824. ;;
  6825. *-mingw*)
  6826. # MinGW can't be handled as Cygwin above since it does not use newlib.
  6827. 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'
  6828. ;;
  6829. esac
  6830. # Allow the user to override the flags for
  6831. # our build compiler if desired.
  6832. if test x"${build}" = x"${host}" ; then
  6833. CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
  6834. CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
  6835. LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
  6836. fi
  6837. # On Canadian crosses, we'll be searching the right directories for
  6838. # the previously-installed cross compiler, so don't bother to add
  6839. # flags for directories within the install tree of the compiler
  6840. # being built; programs in there won't even run.
  6841. if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
  6842. # Search for pre-installed headers if nothing else fits.
  6843. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
  6844. fi
  6845. if test "x${use_gnu_ld}" = x &&
  6846. echo " ${configdirs} " | grep " ld " > /dev/null ; then
  6847. # Arrange for us to find uninstalled linker scripts.
  6848. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
  6849. fi
  6850. # Search for other target-specific linker scripts and such.
  6851. case "${target}" in
  6852. mep*)
  6853. FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
  6854. ;;
  6855. esac
  6856. # Makefile fragments.
  6857. for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
  6858. do
  6859. eval fragval=\$$frag
  6860. if test $fragval != /dev/null; then
  6861. eval $frag=${srcdir}/$fragval
  6862. fi
  6863. done
  6864. # Miscellanea: directories, flags, etc.
  6865. # Build module lists & subconfigure args.
  6866. # Host module lists & subconfigure args.
  6867. # Target module lists & subconfigure args.
  6868. # Build tools.
  6869. # Generate default definitions for YACC, M4, LEX and other programs that run
  6870. # on the build machine. These are used if the Makefile can't locate these
  6871. # programs in objdir.
  6872. MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
  6873. for ac_prog in 'bison -y' byacc yacc
  6874. do
  6875. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6876. set dummy $ac_prog; ac_word=$2
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6878. $as_echo_n "checking for $ac_word... " >&6; }
  6879. if test "${ac_cv_prog_YACC+set}" = set; then :
  6880. $as_echo_n "(cached) " >&6
  6881. else
  6882. if test -n "$YACC"; then
  6883. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  6884. else
  6885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6886. for as_dir in $PATH
  6887. do
  6888. IFS=$as_save_IFS
  6889. test -z "$as_dir" && as_dir=.
  6890. for ac_exec_ext in '' $ac_executable_extensions; do
  6891. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6892. ac_cv_prog_YACC="$ac_prog"
  6893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6894. break 2
  6895. fi
  6896. done
  6897. done
  6898. IFS=$as_save_IFS
  6899. fi
  6900. fi
  6901. YACC=$ac_cv_prog_YACC
  6902. if test -n "$YACC"; then
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  6904. $as_echo "$YACC" >&6; }
  6905. else
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6907. $as_echo "no" >&6; }
  6908. fi
  6909. test -n "$YACC" && break
  6910. done
  6911. test -n "$YACC" || YACC="$MISSING bison -y"
  6912. case " $build_configdirs " in
  6913. *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
  6914. esac
  6915. for ac_prog in bison
  6916. do
  6917. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6918. set dummy $ac_prog; ac_word=$2
  6919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6920. $as_echo_n "checking for $ac_word... " >&6; }
  6921. if test "${ac_cv_prog_BISON+set}" = set; then :
  6922. $as_echo_n "(cached) " >&6
  6923. else
  6924. if test -n "$BISON"; then
  6925. ac_cv_prog_BISON="$BISON" # Let the user override the test.
  6926. else
  6927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6928. for as_dir in $PATH
  6929. do
  6930. IFS=$as_save_IFS
  6931. test -z "$as_dir" && as_dir=.
  6932. for ac_exec_ext in '' $ac_executable_extensions; do
  6933. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6934. ac_cv_prog_BISON="$ac_prog"
  6935. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6936. break 2
  6937. fi
  6938. done
  6939. done
  6940. IFS=$as_save_IFS
  6941. fi
  6942. fi
  6943. BISON=$ac_cv_prog_BISON
  6944. if test -n "$BISON"; then
  6945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  6946. $as_echo "$BISON" >&6; }
  6947. else
  6948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6949. $as_echo "no" >&6; }
  6950. fi
  6951. test -n "$BISON" && break
  6952. done
  6953. test -n "$BISON" || BISON="$MISSING bison"
  6954. case " $build_configdirs " in
  6955. *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
  6956. esac
  6957. for ac_prog in gm4 gnum4 m4
  6958. do
  6959. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6960. set dummy $ac_prog; ac_word=$2
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6962. $as_echo_n "checking for $ac_word... " >&6; }
  6963. if test "${ac_cv_prog_M4+set}" = set; then :
  6964. $as_echo_n "(cached) " >&6
  6965. else
  6966. if test -n "$M4"; then
  6967. ac_cv_prog_M4="$M4" # Let the user override the test.
  6968. else
  6969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6970. for as_dir in $PATH
  6971. do
  6972. IFS=$as_save_IFS
  6973. test -z "$as_dir" && as_dir=.
  6974. for ac_exec_ext in '' $ac_executable_extensions; do
  6975. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6976. ac_cv_prog_M4="$ac_prog"
  6977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6978. break 2
  6979. fi
  6980. done
  6981. done
  6982. IFS=$as_save_IFS
  6983. fi
  6984. fi
  6985. M4=$ac_cv_prog_M4
  6986. if test -n "$M4"; then
  6987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
  6988. $as_echo "$M4" >&6; }
  6989. else
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6991. $as_echo "no" >&6; }
  6992. fi
  6993. test -n "$M4" && break
  6994. done
  6995. test -n "$M4" || M4="$MISSING m4"
  6996. case " $build_configdirs " in
  6997. *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
  6998. esac
  6999. for ac_prog in flex lex
  7000. do
  7001. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7002. set dummy $ac_prog; ac_word=$2
  7003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7004. $as_echo_n "checking for $ac_word... " >&6; }
  7005. if test "${ac_cv_prog_LEX+set}" = set; then :
  7006. $as_echo_n "(cached) " >&6
  7007. else
  7008. if test -n "$LEX"; then
  7009. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  7010. else
  7011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7012. for as_dir in $PATH
  7013. do
  7014. IFS=$as_save_IFS
  7015. test -z "$as_dir" && as_dir=.
  7016. for ac_exec_ext in '' $ac_executable_extensions; do
  7017. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7018. ac_cv_prog_LEX="$ac_prog"
  7019. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7020. break 2
  7021. fi
  7022. done
  7023. done
  7024. IFS=$as_save_IFS
  7025. fi
  7026. fi
  7027. LEX=$ac_cv_prog_LEX
  7028. if test -n "$LEX"; then
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  7030. $as_echo "$LEX" >&6; }
  7031. else
  7032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7033. $as_echo "no" >&6; }
  7034. fi
  7035. test -n "$LEX" && break
  7036. done
  7037. test -n "$LEX" || LEX="$MISSING flex"
  7038. case " $build_configdirs " in
  7039. *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
  7040. *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
  7041. esac
  7042. for ac_prog in flex
  7043. do
  7044. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7045. set dummy $ac_prog; ac_word=$2
  7046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7047. $as_echo_n "checking for $ac_word... " >&6; }
  7048. if test "${ac_cv_prog_FLEX+set}" = set; then :
  7049. $as_echo_n "(cached) " >&6
  7050. else
  7051. if test -n "$FLEX"; then
  7052. ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
  7053. else
  7054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7055. for as_dir in $PATH
  7056. do
  7057. IFS=$as_save_IFS
  7058. test -z "$as_dir" && as_dir=.
  7059. for ac_exec_ext in '' $ac_executable_extensions; do
  7060. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7061. ac_cv_prog_FLEX="$ac_prog"
  7062. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7063. break 2
  7064. fi
  7065. done
  7066. done
  7067. IFS=$as_save_IFS
  7068. fi
  7069. fi
  7070. FLEX=$ac_cv_prog_FLEX
  7071. if test -n "$FLEX"; then
  7072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  7073. $as_echo "$FLEX" >&6; }
  7074. else
  7075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7076. $as_echo "no" >&6; }
  7077. fi
  7078. test -n "$FLEX" && break
  7079. done
  7080. test -n "$FLEX" || FLEX="$MISSING flex"
  7081. case " $build_configdirs " in
  7082. *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
  7083. esac
  7084. for ac_prog in makeinfo
  7085. do
  7086. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7087. set dummy $ac_prog; ac_word=$2
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7089. $as_echo_n "checking for $ac_word... " >&6; }
  7090. if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
  7091. $as_echo_n "(cached) " >&6
  7092. else
  7093. if test -n "$MAKEINFO"; then
  7094. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  7095. else
  7096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7097. for as_dir in $PATH
  7098. do
  7099. IFS=$as_save_IFS
  7100. test -z "$as_dir" && as_dir=.
  7101. for ac_exec_ext in '' $ac_executable_extensions; do
  7102. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7103. ac_cv_prog_MAKEINFO="$ac_prog"
  7104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7105. break 2
  7106. fi
  7107. done
  7108. done
  7109. IFS=$as_save_IFS
  7110. fi
  7111. fi
  7112. MAKEINFO=$ac_cv_prog_MAKEINFO
  7113. if test -n "$MAKEINFO"; then
  7114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  7115. $as_echo "$MAKEINFO" >&6; }
  7116. else
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7118. $as_echo "no" >&6; }
  7119. fi
  7120. test -n "$MAKEINFO" && break
  7121. done
  7122. test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
  7123. case " $build_configdirs " in
  7124. *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
  7125. *)
  7126. # For an installed makeinfo, we require it to be from texinfo 4.7 or
  7127. # higher, else we use the "missing" dummy.
  7128. if ${MAKEINFO} --version \
  7129. | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
  7130. :
  7131. else
  7132. MAKEINFO="$MISSING makeinfo"
  7133. fi
  7134. ;;
  7135. esac
  7136. # FIXME: expect and dejagnu may become build tools?
  7137. for ac_prog in expect
  7138. do
  7139. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7140. set dummy $ac_prog; ac_word=$2
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7142. $as_echo_n "checking for $ac_word... " >&6; }
  7143. if test "${ac_cv_prog_EXPECT+set}" = set; then :
  7144. $as_echo_n "(cached) " >&6
  7145. else
  7146. if test -n "$EXPECT"; then
  7147. ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
  7148. else
  7149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7150. for as_dir in $PATH
  7151. do
  7152. IFS=$as_save_IFS
  7153. test -z "$as_dir" && as_dir=.
  7154. for ac_exec_ext in '' $ac_executable_extensions; do
  7155. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7156. ac_cv_prog_EXPECT="$ac_prog"
  7157. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7158. break 2
  7159. fi
  7160. done
  7161. done
  7162. IFS=$as_save_IFS
  7163. fi
  7164. fi
  7165. EXPECT=$ac_cv_prog_EXPECT
  7166. if test -n "$EXPECT"; then
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
  7168. $as_echo "$EXPECT" >&6; }
  7169. else
  7170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7171. $as_echo "no" >&6; }
  7172. fi
  7173. test -n "$EXPECT" && break
  7174. done
  7175. test -n "$EXPECT" || EXPECT="expect"
  7176. case " $configdirs " in
  7177. *" expect "*)
  7178. test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
  7179. ;;
  7180. esac
  7181. for ac_prog in runtest
  7182. do
  7183. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7184. set dummy $ac_prog; ac_word=$2
  7185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7186. $as_echo_n "checking for $ac_word... " >&6; }
  7187. if test "${ac_cv_prog_RUNTEST+set}" = set; then :
  7188. $as_echo_n "(cached) " >&6
  7189. else
  7190. if test -n "$RUNTEST"; then
  7191. ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
  7192. else
  7193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7194. for as_dir in $PATH
  7195. do
  7196. IFS=$as_save_IFS
  7197. test -z "$as_dir" && as_dir=.
  7198. for ac_exec_ext in '' $ac_executable_extensions; do
  7199. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7200. ac_cv_prog_RUNTEST="$ac_prog"
  7201. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7202. break 2
  7203. fi
  7204. done
  7205. done
  7206. IFS=$as_save_IFS
  7207. fi
  7208. fi
  7209. RUNTEST=$ac_cv_prog_RUNTEST
  7210. if test -n "$RUNTEST"; then
  7211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
  7212. $as_echo "$RUNTEST" >&6; }
  7213. else
  7214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7215. $as_echo "no" >&6; }
  7216. fi
  7217. test -n "$RUNTEST" && break
  7218. done
  7219. test -n "$RUNTEST" || RUNTEST="runtest"
  7220. case " $configdirs " in
  7221. *" dejagnu "*)
  7222. test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
  7223. ;;
  7224. esac
  7225. # Host tools.
  7226. ncn_tool_prefix=
  7227. test -n "$host_alias" && ncn_tool_prefix=$host_alias-
  7228. ncn_target_tool_prefix=
  7229. test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
  7230. if test -n "$AR"; then
  7231. ac_cv_prog_AR=$AR
  7232. elif test -n "$ac_cv_prog_AR"; then
  7233. AR=$ac_cv_prog_AR
  7234. fi
  7235. if test -n "$ac_cv_prog_AR"; then
  7236. for ncn_progname in ar; do
  7237. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7238. set dummy ${ncn_progname}; ac_word=$2
  7239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7240. $as_echo_n "checking for $ac_word... " >&6; }
  7241. if test "${ac_cv_prog_AR+set}" = set; then :
  7242. $as_echo_n "(cached) " >&6
  7243. else
  7244. if test -n "$AR"; then
  7245. ac_cv_prog_AR="$AR" # Let the user override the test.
  7246. else
  7247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7248. for as_dir in $PATH
  7249. do
  7250. IFS=$as_save_IFS
  7251. test -z "$as_dir" && as_dir=.
  7252. for ac_exec_ext in '' $ac_executable_extensions; do
  7253. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7254. ac_cv_prog_AR="${ncn_progname}"
  7255. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7256. break 2
  7257. fi
  7258. done
  7259. done
  7260. IFS=$as_save_IFS
  7261. fi
  7262. fi
  7263. AR=$ac_cv_prog_AR
  7264. if test -n "$AR"; then
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7266. $as_echo "$AR" >&6; }
  7267. else
  7268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7269. $as_echo "no" >&6; }
  7270. fi
  7271. done
  7272. fi
  7273. for ncn_progname in ar; do
  7274. if test -n "$ncn_tool_prefix"; then
  7275. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7276. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7278. $as_echo_n "checking for $ac_word... " >&6; }
  7279. if test "${ac_cv_prog_AR+set}" = set; then :
  7280. $as_echo_n "(cached) " >&6
  7281. else
  7282. if test -n "$AR"; then
  7283. ac_cv_prog_AR="$AR" # Let the user override the test.
  7284. else
  7285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7286. for as_dir in $PATH
  7287. do
  7288. IFS=$as_save_IFS
  7289. test -z "$as_dir" && as_dir=.
  7290. for ac_exec_ext in '' $ac_executable_extensions; do
  7291. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7292. ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
  7293. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7294. break 2
  7295. fi
  7296. done
  7297. done
  7298. IFS=$as_save_IFS
  7299. fi
  7300. fi
  7301. AR=$ac_cv_prog_AR
  7302. if test -n "$AR"; then
  7303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7304. $as_echo "$AR" >&6; }
  7305. else
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7307. $as_echo "no" >&6; }
  7308. fi
  7309. fi
  7310. if test -z "$ac_cv_prog_AR" && test $build = $host ; then
  7311. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7312. set dummy ${ncn_progname}; ac_word=$2
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7314. $as_echo_n "checking for $ac_word... " >&6; }
  7315. if test "${ac_cv_prog_AR+set}" = set; then :
  7316. $as_echo_n "(cached) " >&6
  7317. else
  7318. if test -n "$AR"; then
  7319. ac_cv_prog_AR="$AR" # Let the user override the test.
  7320. else
  7321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7322. for as_dir in $PATH
  7323. do
  7324. IFS=$as_save_IFS
  7325. test -z "$as_dir" && as_dir=.
  7326. for ac_exec_ext in '' $ac_executable_extensions; do
  7327. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7328. ac_cv_prog_AR="${ncn_progname}"
  7329. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7330. break 2
  7331. fi
  7332. done
  7333. done
  7334. IFS=$as_save_IFS
  7335. fi
  7336. fi
  7337. AR=$ac_cv_prog_AR
  7338. if test -n "$AR"; then
  7339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7340. $as_echo "$AR" >&6; }
  7341. else
  7342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7343. $as_echo "no" >&6; }
  7344. fi
  7345. fi
  7346. test -n "$ac_cv_prog_AR" && break
  7347. done
  7348. if test -z "$ac_cv_prog_AR" ; then
  7349. set dummy ar
  7350. if test $build = $host ; then
  7351. AR="$2"
  7352. else
  7353. AR="${ncn_tool_prefix}$2"
  7354. fi
  7355. fi
  7356. if test -n "$AS"; then
  7357. ac_cv_prog_AS=$AS
  7358. elif test -n "$ac_cv_prog_AS"; then
  7359. AS=$ac_cv_prog_AS
  7360. fi
  7361. if test -n "$ac_cv_prog_AS"; then
  7362. for ncn_progname in as; do
  7363. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7364. set dummy ${ncn_progname}; ac_word=$2
  7365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7366. $as_echo_n "checking for $ac_word... " >&6; }
  7367. if test "${ac_cv_prog_AS+set}" = set; then :
  7368. $as_echo_n "(cached) " >&6
  7369. else
  7370. if test -n "$AS"; then
  7371. ac_cv_prog_AS="$AS" # Let the user override the test.
  7372. else
  7373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7374. for as_dir in $PATH
  7375. do
  7376. IFS=$as_save_IFS
  7377. test -z "$as_dir" && as_dir=.
  7378. for ac_exec_ext in '' $ac_executable_extensions; do
  7379. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7380. ac_cv_prog_AS="${ncn_progname}"
  7381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7382. break 2
  7383. fi
  7384. done
  7385. done
  7386. IFS=$as_save_IFS
  7387. fi
  7388. fi
  7389. AS=$ac_cv_prog_AS
  7390. if test -n "$AS"; then
  7391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7392. $as_echo "$AS" >&6; }
  7393. else
  7394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7395. $as_echo "no" >&6; }
  7396. fi
  7397. done
  7398. fi
  7399. for ncn_progname in as; do
  7400. if test -n "$ncn_tool_prefix"; then
  7401. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7402. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7404. $as_echo_n "checking for $ac_word... " >&6; }
  7405. if test "${ac_cv_prog_AS+set}" = set; then :
  7406. $as_echo_n "(cached) " >&6
  7407. else
  7408. if test -n "$AS"; then
  7409. ac_cv_prog_AS="$AS" # Let the user override the test.
  7410. else
  7411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7412. for as_dir in $PATH
  7413. do
  7414. IFS=$as_save_IFS
  7415. test -z "$as_dir" && as_dir=.
  7416. for ac_exec_ext in '' $ac_executable_extensions; do
  7417. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7418. ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
  7419. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7420. break 2
  7421. fi
  7422. done
  7423. done
  7424. IFS=$as_save_IFS
  7425. fi
  7426. fi
  7427. AS=$ac_cv_prog_AS
  7428. if test -n "$AS"; then
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7430. $as_echo "$AS" >&6; }
  7431. else
  7432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7433. $as_echo "no" >&6; }
  7434. fi
  7435. fi
  7436. if test -z "$ac_cv_prog_AS" && test $build = $host ; then
  7437. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7438. set dummy ${ncn_progname}; ac_word=$2
  7439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7440. $as_echo_n "checking for $ac_word... " >&6; }
  7441. if test "${ac_cv_prog_AS+set}" = set; then :
  7442. $as_echo_n "(cached) " >&6
  7443. else
  7444. if test -n "$AS"; then
  7445. ac_cv_prog_AS="$AS" # Let the user override the test.
  7446. else
  7447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7448. for as_dir in $PATH
  7449. do
  7450. IFS=$as_save_IFS
  7451. test -z "$as_dir" && as_dir=.
  7452. for ac_exec_ext in '' $ac_executable_extensions; do
  7453. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7454. ac_cv_prog_AS="${ncn_progname}"
  7455. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7456. break 2
  7457. fi
  7458. done
  7459. done
  7460. IFS=$as_save_IFS
  7461. fi
  7462. fi
  7463. AS=$ac_cv_prog_AS
  7464. if test -n "$AS"; then
  7465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7466. $as_echo "$AS" >&6; }
  7467. else
  7468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7469. $as_echo "no" >&6; }
  7470. fi
  7471. fi
  7472. test -n "$ac_cv_prog_AS" && break
  7473. done
  7474. if test -z "$ac_cv_prog_AS" ; then
  7475. set dummy as
  7476. if test $build = $host ; then
  7477. AS="$2"
  7478. else
  7479. AS="${ncn_tool_prefix}$2"
  7480. fi
  7481. fi
  7482. if test -n "$DLLTOOL"; then
  7483. ac_cv_prog_DLLTOOL=$DLLTOOL
  7484. elif test -n "$ac_cv_prog_DLLTOOL"; then
  7485. DLLTOOL=$ac_cv_prog_DLLTOOL
  7486. fi
  7487. if test -n "$ac_cv_prog_DLLTOOL"; then
  7488. for ncn_progname in dlltool; do
  7489. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7490. set dummy ${ncn_progname}; ac_word=$2
  7491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7492. $as_echo_n "checking for $ac_word... " >&6; }
  7493. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  7494. $as_echo_n "(cached) " >&6
  7495. else
  7496. if test -n "$DLLTOOL"; then
  7497. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7498. else
  7499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7500. for as_dir in $PATH
  7501. do
  7502. IFS=$as_save_IFS
  7503. test -z "$as_dir" && as_dir=.
  7504. for ac_exec_ext in '' $ac_executable_extensions; do
  7505. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7506. ac_cv_prog_DLLTOOL="${ncn_progname}"
  7507. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7508. break 2
  7509. fi
  7510. done
  7511. done
  7512. IFS=$as_save_IFS
  7513. fi
  7514. fi
  7515. DLLTOOL=$ac_cv_prog_DLLTOOL
  7516. if test -n "$DLLTOOL"; then
  7517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7518. $as_echo "$DLLTOOL" >&6; }
  7519. else
  7520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7521. $as_echo "no" >&6; }
  7522. fi
  7523. done
  7524. fi
  7525. for ncn_progname in dlltool; do
  7526. if test -n "$ncn_tool_prefix"; then
  7527. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7528. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7530. $as_echo_n "checking for $ac_word... " >&6; }
  7531. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  7532. $as_echo_n "(cached) " >&6
  7533. else
  7534. if test -n "$DLLTOOL"; then
  7535. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7536. else
  7537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7538. for as_dir in $PATH
  7539. do
  7540. IFS=$as_save_IFS
  7541. test -z "$as_dir" && as_dir=.
  7542. for ac_exec_ext in '' $ac_executable_extensions; do
  7543. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7544. ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
  7545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7546. break 2
  7547. fi
  7548. done
  7549. done
  7550. IFS=$as_save_IFS
  7551. fi
  7552. fi
  7553. DLLTOOL=$ac_cv_prog_DLLTOOL
  7554. if test -n "$DLLTOOL"; then
  7555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7556. $as_echo "$DLLTOOL" >&6; }
  7557. else
  7558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7559. $as_echo "no" >&6; }
  7560. fi
  7561. fi
  7562. if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
  7563. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7564. set dummy ${ncn_progname}; ac_word=$2
  7565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7566. $as_echo_n "checking for $ac_word... " >&6; }
  7567. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  7568. $as_echo_n "(cached) " >&6
  7569. else
  7570. if test -n "$DLLTOOL"; then
  7571. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7572. else
  7573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7574. for as_dir in $PATH
  7575. do
  7576. IFS=$as_save_IFS
  7577. test -z "$as_dir" && as_dir=.
  7578. for ac_exec_ext in '' $ac_executable_extensions; do
  7579. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7580. ac_cv_prog_DLLTOOL="${ncn_progname}"
  7581. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7582. break 2
  7583. fi
  7584. done
  7585. done
  7586. IFS=$as_save_IFS
  7587. fi
  7588. fi
  7589. DLLTOOL=$ac_cv_prog_DLLTOOL
  7590. if test -n "$DLLTOOL"; then
  7591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7592. $as_echo "$DLLTOOL" >&6; }
  7593. else
  7594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7595. $as_echo "no" >&6; }
  7596. fi
  7597. fi
  7598. test -n "$ac_cv_prog_DLLTOOL" && break
  7599. done
  7600. if test -z "$ac_cv_prog_DLLTOOL" ; then
  7601. set dummy dlltool
  7602. if test $build = $host ; then
  7603. DLLTOOL="$2"
  7604. else
  7605. DLLTOOL="${ncn_tool_prefix}$2"
  7606. fi
  7607. fi
  7608. if test -n "$LD"; then
  7609. ac_cv_prog_LD=$LD
  7610. elif test -n "$ac_cv_prog_LD"; then
  7611. LD=$ac_cv_prog_LD
  7612. fi
  7613. if test -n "$ac_cv_prog_LD"; then
  7614. for ncn_progname in ld; do
  7615. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7616. set dummy ${ncn_progname}; ac_word=$2
  7617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7618. $as_echo_n "checking for $ac_word... " >&6; }
  7619. if test "${ac_cv_prog_LD+set}" = set; then :
  7620. $as_echo_n "(cached) " >&6
  7621. else
  7622. if test -n "$LD"; then
  7623. ac_cv_prog_LD="$LD" # Let the user override the test.
  7624. else
  7625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7626. for as_dir in $PATH
  7627. do
  7628. IFS=$as_save_IFS
  7629. test -z "$as_dir" && as_dir=.
  7630. for ac_exec_ext in '' $ac_executable_extensions; do
  7631. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7632. ac_cv_prog_LD="${ncn_progname}"
  7633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7634. break 2
  7635. fi
  7636. done
  7637. done
  7638. IFS=$as_save_IFS
  7639. fi
  7640. fi
  7641. LD=$ac_cv_prog_LD
  7642. if test -n "$LD"; then
  7643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7644. $as_echo "$LD" >&6; }
  7645. else
  7646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7647. $as_echo "no" >&6; }
  7648. fi
  7649. done
  7650. fi
  7651. for ncn_progname in ld; do
  7652. if test -n "$ncn_tool_prefix"; then
  7653. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7654. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7656. $as_echo_n "checking for $ac_word... " >&6; }
  7657. if test "${ac_cv_prog_LD+set}" = set; then :
  7658. $as_echo_n "(cached) " >&6
  7659. else
  7660. if test -n "$LD"; then
  7661. ac_cv_prog_LD="$LD" # Let the user override the test.
  7662. else
  7663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7664. for as_dir in $PATH
  7665. do
  7666. IFS=$as_save_IFS
  7667. test -z "$as_dir" && as_dir=.
  7668. for ac_exec_ext in '' $ac_executable_extensions; do
  7669. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7670. ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
  7671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7672. break 2
  7673. fi
  7674. done
  7675. done
  7676. IFS=$as_save_IFS
  7677. fi
  7678. fi
  7679. LD=$ac_cv_prog_LD
  7680. if test -n "$LD"; then
  7681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7682. $as_echo "$LD" >&6; }
  7683. else
  7684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7685. $as_echo "no" >&6; }
  7686. fi
  7687. fi
  7688. if test -z "$ac_cv_prog_LD" && test $build = $host ; then
  7689. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7690. set dummy ${ncn_progname}; ac_word=$2
  7691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7692. $as_echo_n "checking for $ac_word... " >&6; }
  7693. if test "${ac_cv_prog_LD+set}" = set; then :
  7694. $as_echo_n "(cached) " >&6
  7695. else
  7696. if test -n "$LD"; then
  7697. ac_cv_prog_LD="$LD" # Let the user override the test.
  7698. else
  7699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7700. for as_dir in $PATH
  7701. do
  7702. IFS=$as_save_IFS
  7703. test -z "$as_dir" && as_dir=.
  7704. for ac_exec_ext in '' $ac_executable_extensions; do
  7705. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7706. ac_cv_prog_LD="${ncn_progname}"
  7707. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7708. break 2
  7709. fi
  7710. done
  7711. done
  7712. IFS=$as_save_IFS
  7713. fi
  7714. fi
  7715. LD=$ac_cv_prog_LD
  7716. if test -n "$LD"; then
  7717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7718. $as_echo "$LD" >&6; }
  7719. else
  7720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7721. $as_echo "no" >&6; }
  7722. fi
  7723. fi
  7724. test -n "$ac_cv_prog_LD" && break
  7725. done
  7726. if test -z "$ac_cv_prog_LD" ; then
  7727. set dummy ld
  7728. if test $build = $host ; then
  7729. LD="$2"
  7730. else
  7731. LD="${ncn_tool_prefix}$2"
  7732. fi
  7733. fi
  7734. if test -n "$LIPO"; then
  7735. ac_cv_prog_LIPO=$LIPO
  7736. elif test -n "$ac_cv_prog_LIPO"; then
  7737. LIPO=$ac_cv_prog_LIPO
  7738. fi
  7739. if test -n "$ac_cv_prog_LIPO"; then
  7740. for ncn_progname in lipo; do
  7741. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7742. set dummy ${ncn_progname}; ac_word=$2
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7744. $as_echo_n "checking for $ac_word... " >&6; }
  7745. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7746. $as_echo_n "(cached) " >&6
  7747. else
  7748. if test -n "$LIPO"; then
  7749. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7750. else
  7751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7752. for as_dir in $PATH
  7753. do
  7754. IFS=$as_save_IFS
  7755. test -z "$as_dir" && as_dir=.
  7756. for ac_exec_ext in '' $ac_executable_extensions; do
  7757. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7758. ac_cv_prog_LIPO="${ncn_progname}"
  7759. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7760. break 2
  7761. fi
  7762. done
  7763. done
  7764. IFS=$as_save_IFS
  7765. fi
  7766. fi
  7767. LIPO=$ac_cv_prog_LIPO
  7768. if test -n "$LIPO"; then
  7769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7770. $as_echo "$LIPO" >&6; }
  7771. else
  7772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7773. $as_echo "no" >&6; }
  7774. fi
  7775. done
  7776. fi
  7777. for ncn_progname in lipo; do
  7778. if test -n "$ncn_tool_prefix"; then
  7779. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7780. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7782. $as_echo_n "checking for $ac_word... " >&6; }
  7783. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7784. $as_echo_n "(cached) " >&6
  7785. else
  7786. if test -n "$LIPO"; then
  7787. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7788. else
  7789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7790. for as_dir in $PATH
  7791. do
  7792. IFS=$as_save_IFS
  7793. test -z "$as_dir" && as_dir=.
  7794. for ac_exec_ext in '' $ac_executable_extensions; do
  7795. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7796. ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
  7797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7798. break 2
  7799. fi
  7800. done
  7801. done
  7802. IFS=$as_save_IFS
  7803. fi
  7804. fi
  7805. LIPO=$ac_cv_prog_LIPO
  7806. if test -n "$LIPO"; then
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7808. $as_echo "$LIPO" >&6; }
  7809. else
  7810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7811. $as_echo "no" >&6; }
  7812. fi
  7813. fi
  7814. if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
  7815. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7816. set dummy ${ncn_progname}; ac_word=$2
  7817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7818. $as_echo_n "checking for $ac_word... " >&6; }
  7819. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7820. $as_echo_n "(cached) " >&6
  7821. else
  7822. if test -n "$LIPO"; then
  7823. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7824. else
  7825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7826. for as_dir in $PATH
  7827. do
  7828. IFS=$as_save_IFS
  7829. test -z "$as_dir" && as_dir=.
  7830. for ac_exec_ext in '' $ac_executable_extensions; do
  7831. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7832. ac_cv_prog_LIPO="${ncn_progname}"
  7833. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7834. break 2
  7835. fi
  7836. done
  7837. done
  7838. IFS=$as_save_IFS
  7839. fi
  7840. fi
  7841. LIPO=$ac_cv_prog_LIPO
  7842. if test -n "$LIPO"; then
  7843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7844. $as_echo "$LIPO" >&6; }
  7845. else
  7846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7847. $as_echo "no" >&6; }
  7848. fi
  7849. fi
  7850. test -n "$ac_cv_prog_LIPO" && break
  7851. done
  7852. if test -z "$ac_cv_prog_LIPO" ; then
  7853. set dummy lipo
  7854. if test $build = $host ; then
  7855. LIPO="$2"
  7856. else
  7857. LIPO="${ncn_tool_prefix}$2"
  7858. fi
  7859. fi
  7860. if test -n "$NM"; then
  7861. ac_cv_prog_NM=$NM
  7862. elif test -n "$ac_cv_prog_NM"; then
  7863. NM=$ac_cv_prog_NM
  7864. fi
  7865. if test -n "$ac_cv_prog_NM"; then
  7866. for ncn_progname in nm; do
  7867. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7868. set dummy ${ncn_progname}; ac_word=$2
  7869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7870. $as_echo_n "checking for $ac_word... " >&6; }
  7871. if test "${ac_cv_prog_NM+set}" = set; then :
  7872. $as_echo_n "(cached) " >&6
  7873. else
  7874. if test -n "$NM"; then
  7875. ac_cv_prog_NM="$NM" # Let the user override the test.
  7876. else
  7877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7878. for as_dir in $PATH
  7879. do
  7880. IFS=$as_save_IFS
  7881. test -z "$as_dir" && as_dir=.
  7882. for ac_exec_ext in '' $ac_executable_extensions; do
  7883. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7884. ac_cv_prog_NM="${ncn_progname}"
  7885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7886. break 2
  7887. fi
  7888. done
  7889. done
  7890. IFS=$as_save_IFS
  7891. fi
  7892. fi
  7893. NM=$ac_cv_prog_NM
  7894. if test -n "$NM"; then
  7895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  7896. $as_echo "$NM" >&6; }
  7897. else
  7898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7899. $as_echo "no" >&6; }
  7900. fi
  7901. done
  7902. fi
  7903. for ncn_progname in nm; do
  7904. if test -n "$ncn_tool_prefix"; then
  7905. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7906. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7908. $as_echo_n "checking for $ac_word... " >&6; }
  7909. if test "${ac_cv_prog_NM+set}" = set; then :
  7910. $as_echo_n "(cached) " >&6
  7911. else
  7912. if test -n "$NM"; then
  7913. ac_cv_prog_NM="$NM" # Let the user override the test.
  7914. else
  7915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7916. for as_dir in $PATH
  7917. do
  7918. IFS=$as_save_IFS
  7919. test -z "$as_dir" && as_dir=.
  7920. for ac_exec_ext in '' $ac_executable_extensions; do
  7921. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7922. ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
  7923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7924. break 2
  7925. fi
  7926. done
  7927. done
  7928. IFS=$as_save_IFS
  7929. fi
  7930. fi
  7931. NM=$ac_cv_prog_NM
  7932. if test -n "$NM"; then
  7933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  7934. $as_echo "$NM" >&6; }
  7935. else
  7936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7937. $as_echo "no" >&6; }
  7938. fi
  7939. fi
  7940. if test -z "$ac_cv_prog_NM" && test $build = $host ; then
  7941. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7942. set dummy ${ncn_progname}; ac_word=$2
  7943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7944. $as_echo_n "checking for $ac_word... " >&6; }
  7945. if test "${ac_cv_prog_NM+set}" = set; then :
  7946. $as_echo_n "(cached) " >&6
  7947. else
  7948. if test -n "$NM"; then
  7949. ac_cv_prog_NM="$NM" # Let the user override the test.
  7950. else
  7951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7952. for as_dir in $PATH
  7953. do
  7954. IFS=$as_save_IFS
  7955. test -z "$as_dir" && as_dir=.
  7956. for ac_exec_ext in '' $ac_executable_extensions; do
  7957. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7958. ac_cv_prog_NM="${ncn_progname}"
  7959. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7960. break 2
  7961. fi
  7962. done
  7963. done
  7964. IFS=$as_save_IFS
  7965. fi
  7966. fi
  7967. NM=$ac_cv_prog_NM
  7968. if test -n "$NM"; then
  7969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  7970. $as_echo "$NM" >&6; }
  7971. else
  7972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7973. $as_echo "no" >&6; }
  7974. fi
  7975. fi
  7976. test -n "$ac_cv_prog_NM" && break
  7977. done
  7978. if test -z "$ac_cv_prog_NM" ; then
  7979. set dummy nm
  7980. if test $build = $host ; then
  7981. NM="$2"
  7982. else
  7983. NM="${ncn_tool_prefix}$2"
  7984. fi
  7985. fi
  7986. if test -n "$RANLIB"; then
  7987. ac_cv_prog_RANLIB=$RANLIB
  7988. elif test -n "$ac_cv_prog_RANLIB"; then
  7989. RANLIB=$ac_cv_prog_RANLIB
  7990. fi
  7991. if test -n "$ac_cv_prog_RANLIB"; then
  7992. for ncn_progname in ranlib; do
  7993. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7994. set dummy ${ncn_progname}; ac_word=$2
  7995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7996. $as_echo_n "checking for $ac_word... " >&6; }
  7997. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  7998. $as_echo_n "(cached) " >&6
  7999. else
  8000. if test -n "$RANLIB"; then
  8001. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8002. else
  8003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8004. for as_dir in $PATH
  8005. do
  8006. IFS=$as_save_IFS
  8007. test -z "$as_dir" && as_dir=.
  8008. for ac_exec_ext in '' $ac_executable_extensions; do
  8009. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8010. ac_cv_prog_RANLIB="${ncn_progname}"
  8011. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8012. break 2
  8013. fi
  8014. done
  8015. done
  8016. IFS=$as_save_IFS
  8017. fi
  8018. fi
  8019. RANLIB=$ac_cv_prog_RANLIB
  8020. if test -n "$RANLIB"; then
  8021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8022. $as_echo "$RANLIB" >&6; }
  8023. else
  8024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8025. $as_echo "no" >&6; }
  8026. fi
  8027. done
  8028. fi
  8029. for ncn_progname in ranlib; do
  8030. if test -n "$ncn_tool_prefix"; then
  8031. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8032. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8034. $as_echo_n "checking for $ac_word... " >&6; }
  8035. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  8036. $as_echo_n "(cached) " >&6
  8037. else
  8038. if test -n "$RANLIB"; then
  8039. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8040. else
  8041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8042. for as_dir in $PATH
  8043. do
  8044. IFS=$as_save_IFS
  8045. test -z "$as_dir" && as_dir=.
  8046. for ac_exec_ext in '' $ac_executable_extensions; do
  8047. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8048. ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
  8049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8050. break 2
  8051. fi
  8052. done
  8053. done
  8054. IFS=$as_save_IFS
  8055. fi
  8056. fi
  8057. RANLIB=$ac_cv_prog_RANLIB
  8058. if test -n "$RANLIB"; then
  8059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8060. $as_echo "$RANLIB" >&6; }
  8061. else
  8062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8063. $as_echo "no" >&6; }
  8064. fi
  8065. fi
  8066. if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
  8067. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8068. set dummy ${ncn_progname}; ac_word=$2
  8069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8070. $as_echo_n "checking for $ac_word... " >&6; }
  8071. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  8072. $as_echo_n "(cached) " >&6
  8073. else
  8074. if test -n "$RANLIB"; then
  8075. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8076. else
  8077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8078. for as_dir in $PATH
  8079. do
  8080. IFS=$as_save_IFS
  8081. test -z "$as_dir" && as_dir=.
  8082. for ac_exec_ext in '' $ac_executable_extensions; do
  8083. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8084. ac_cv_prog_RANLIB="${ncn_progname}"
  8085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8086. break 2
  8087. fi
  8088. done
  8089. done
  8090. IFS=$as_save_IFS
  8091. fi
  8092. fi
  8093. RANLIB=$ac_cv_prog_RANLIB
  8094. if test -n "$RANLIB"; then
  8095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8096. $as_echo "$RANLIB" >&6; }
  8097. else
  8098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8099. $as_echo "no" >&6; }
  8100. fi
  8101. fi
  8102. test -n "$ac_cv_prog_RANLIB" && break
  8103. done
  8104. if test -z "$ac_cv_prog_RANLIB" ; then
  8105. RANLIB="true"
  8106. fi
  8107. if test -n "$STRIP"; then
  8108. ac_cv_prog_STRIP=$STRIP
  8109. elif test -n "$ac_cv_prog_STRIP"; then
  8110. STRIP=$ac_cv_prog_STRIP
  8111. fi
  8112. if test -n "$ac_cv_prog_STRIP"; then
  8113. for ncn_progname in strip; do
  8114. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8115. set dummy ${ncn_progname}; ac_word=$2
  8116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8117. $as_echo_n "checking for $ac_word... " >&6; }
  8118. if test "${ac_cv_prog_STRIP+set}" = set; then :
  8119. $as_echo_n "(cached) " >&6
  8120. else
  8121. if test -n "$STRIP"; then
  8122. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8123. else
  8124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8125. for as_dir in $PATH
  8126. do
  8127. IFS=$as_save_IFS
  8128. test -z "$as_dir" && as_dir=.
  8129. for ac_exec_ext in '' $ac_executable_extensions; do
  8130. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8131. ac_cv_prog_STRIP="${ncn_progname}"
  8132. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8133. break 2
  8134. fi
  8135. done
  8136. done
  8137. IFS=$as_save_IFS
  8138. fi
  8139. fi
  8140. STRIP=$ac_cv_prog_STRIP
  8141. if test -n "$STRIP"; then
  8142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8143. $as_echo "$STRIP" >&6; }
  8144. else
  8145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8146. $as_echo "no" >&6; }
  8147. fi
  8148. done
  8149. fi
  8150. for ncn_progname in strip; do
  8151. if test -n "$ncn_tool_prefix"; then
  8152. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8153. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8155. $as_echo_n "checking for $ac_word... " >&6; }
  8156. if test "${ac_cv_prog_STRIP+set}" = set; then :
  8157. $as_echo_n "(cached) " >&6
  8158. else
  8159. if test -n "$STRIP"; then
  8160. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8161. else
  8162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8163. for as_dir in $PATH
  8164. do
  8165. IFS=$as_save_IFS
  8166. test -z "$as_dir" && as_dir=.
  8167. for ac_exec_ext in '' $ac_executable_extensions; do
  8168. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8169. ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
  8170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8171. break 2
  8172. fi
  8173. done
  8174. done
  8175. IFS=$as_save_IFS
  8176. fi
  8177. fi
  8178. STRIP=$ac_cv_prog_STRIP
  8179. if test -n "$STRIP"; then
  8180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8181. $as_echo "$STRIP" >&6; }
  8182. else
  8183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8184. $as_echo "no" >&6; }
  8185. fi
  8186. fi
  8187. if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
  8188. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8189. set dummy ${ncn_progname}; ac_word=$2
  8190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8191. $as_echo_n "checking for $ac_word... " >&6; }
  8192. if test "${ac_cv_prog_STRIP+set}" = set; then :
  8193. $as_echo_n "(cached) " >&6
  8194. else
  8195. if test -n "$STRIP"; then
  8196. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8197. else
  8198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8199. for as_dir in $PATH
  8200. do
  8201. IFS=$as_save_IFS
  8202. test -z "$as_dir" && as_dir=.
  8203. for ac_exec_ext in '' $ac_executable_extensions; do
  8204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8205. ac_cv_prog_STRIP="${ncn_progname}"
  8206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8207. break 2
  8208. fi
  8209. done
  8210. done
  8211. IFS=$as_save_IFS
  8212. fi
  8213. fi
  8214. STRIP=$ac_cv_prog_STRIP
  8215. if test -n "$STRIP"; then
  8216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8217. $as_echo "$STRIP" >&6; }
  8218. else
  8219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8220. $as_echo "no" >&6; }
  8221. fi
  8222. fi
  8223. test -n "$ac_cv_prog_STRIP" && break
  8224. done
  8225. if test -z "$ac_cv_prog_STRIP" ; then
  8226. STRIP="true"
  8227. fi
  8228. if test -n "$WINDRES"; then
  8229. ac_cv_prog_WINDRES=$WINDRES
  8230. elif test -n "$ac_cv_prog_WINDRES"; then
  8231. WINDRES=$ac_cv_prog_WINDRES
  8232. fi
  8233. if test -n "$ac_cv_prog_WINDRES"; then
  8234. for ncn_progname in windres; do
  8235. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8236. set dummy ${ncn_progname}; ac_word=$2
  8237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8238. $as_echo_n "checking for $ac_word... " >&6; }
  8239. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  8240. $as_echo_n "(cached) " >&6
  8241. else
  8242. if test -n "$WINDRES"; then
  8243. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8244. else
  8245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8246. for as_dir in $PATH
  8247. do
  8248. IFS=$as_save_IFS
  8249. test -z "$as_dir" && as_dir=.
  8250. for ac_exec_ext in '' $ac_executable_extensions; do
  8251. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8252. ac_cv_prog_WINDRES="${ncn_progname}"
  8253. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8254. break 2
  8255. fi
  8256. done
  8257. done
  8258. IFS=$as_save_IFS
  8259. fi
  8260. fi
  8261. WINDRES=$ac_cv_prog_WINDRES
  8262. if test -n "$WINDRES"; then
  8263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8264. $as_echo "$WINDRES" >&6; }
  8265. else
  8266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8267. $as_echo "no" >&6; }
  8268. fi
  8269. done
  8270. fi
  8271. for ncn_progname in windres; do
  8272. if test -n "$ncn_tool_prefix"; then
  8273. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8274. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8276. $as_echo_n "checking for $ac_word... " >&6; }
  8277. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  8278. $as_echo_n "(cached) " >&6
  8279. else
  8280. if test -n "$WINDRES"; then
  8281. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8282. else
  8283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8284. for as_dir in $PATH
  8285. do
  8286. IFS=$as_save_IFS
  8287. test -z "$as_dir" && as_dir=.
  8288. for ac_exec_ext in '' $ac_executable_extensions; do
  8289. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8290. ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
  8291. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8292. break 2
  8293. fi
  8294. done
  8295. done
  8296. IFS=$as_save_IFS
  8297. fi
  8298. fi
  8299. WINDRES=$ac_cv_prog_WINDRES
  8300. if test -n "$WINDRES"; then
  8301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8302. $as_echo "$WINDRES" >&6; }
  8303. else
  8304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8305. $as_echo "no" >&6; }
  8306. fi
  8307. fi
  8308. if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
  8309. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8310. set dummy ${ncn_progname}; ac_word=$2
  8311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8312. $as_echo_n "checking for $ac_word... " >&6; }
  8313. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  8314. $as_echo_n "(cached) " >&6
  8315. else
  8316. if test -n "$WINDRES"; then
  8317. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8318. else
  8319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8320. for as_dir in $PATH
  8321. do
  8322. IFS=$as_save_IFS
  8323. test -z "$as_dir" && as_dir=.
  8324. for ac_exec_ext in '' $ac_executable_extensions; do
  8325. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8326. ac_cv_prog_WINDRES="${ncn_progname}"
  8327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8328. break 2
  8329. fi
  8330. done
  8331. done
  8332. IFS=$as_save_IFS
  8333. fi
  8334. fi
  8335. WINDRES=$ac_cv_prog_WINDRES
  8336. if test -n "$WINDRES"; then
  8337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8338. $as_echo "$WINDRES" >&6; }
  8339. else
  8340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8341. $as_echo "no" >&6; }
  8342. fi
  8343. fi
  8344. test -n "$ac_cv_prog_WINDRES" && break
  8345. done
  8346. if test -z "$ac_cv_prog_WINDRES" ; then
  8347. set dummy windres
  8348. if test $build = $host ; then
  8349. WINDRES="$2"
  8350. else
  8351. WINDRES="${ncn_tool_prefix}$2"
  8352. fi
  8353. fi
  8354. if test -n "$WINDMC"; then
  8355. ac_cv_prog_WINDMC=$WINDMC
  8356. elif test -n "$ac_cv_prog_WINDMC"; then
  8357. WINDMC=$ac_cv_prog_WINDMC
  8358. fi
  8359. if test -n "$ac_cv_prog_WINDMC"; then
  8360. for ncn_progname in windmc; do
  8361. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8362. set dummy ${ncn_progname}; ac_word=$2
  8363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8364. $as_echo_n "checking for $ac_word... " >&6; }
  8365. if test "${ac_cv_prog_WINDMC+set}" = set; then :
  8366. $as_echo_n "(cached) " >&6
  8367. else
  8368. if test -n "$WINDMC"; then
  8369. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8370. else
  8371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8372. for as_dir in $PATH
  8373. do
  8374. IFS=$as_save_IFS
  8375. test -z "$as_dir" && as_dir=.
  8376. for ac_exec_ext in '' $ac_executable_extensions; do
  8377. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8378. ac_cv_prog_WINDMC="${ncn_progname}"
  8379. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8380. break 2
  8381. fi
  8382. done
  8383. done
  8384. IFS=$as_save_IFS
  8385. fi
  8386. fi
  8387. WINDMC=$ac_cv_prog_WINDMC
  8388. if test -n "$WINDMC"; then
  8389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8390. $as_echo "$WINDMC" >&6; }
  8391. else
  8392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8393. $as_echo "no" >&6; }
  8394. fi
  8395. done
  8396. fi
  8397. for ncn_progname in windmc; do
  8398. if test -n "$ncn_tool_prefix"; then
  8399. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8400. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8402. $as_echo_n "checking for $ac_word... " >&6; }
  8403. if test "${ac_cv_prog_WINDMC+set}" = set; then :
  8404. $as_echo_n "(cached) " >&6
  8405. else
  8406. if test -n "$WINDMC"; then
  8407. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8408. else
  8409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8410. for as_dir in $PATH
  8411. do
  8412. IFS=$as_save_IFS
  8413. test -z "$as_dir" && as_dir=.
  8414. for ac_exec_ext in '' $ac_executable_extensions; do
  8415. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8416. ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
  8417. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8418. break 2
  8419. fi
  8420. done
  8421. done
  8422. IFS=$as_save_IFS
  8423. fi
  8424. fi
  8425. WINDMC=$ac_cv_prog_WINDMC
  8426. if test -n "$WINDMC"; then
  8427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8428. $as_echo "$WINDMC" >&6; }
  8429. else
  8430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8431. $as_echo "no" >&6; }
  8432. fi
  8433. fi
  8434. if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
  8435. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8436. set dummy ${ncn_progname}; ac_word=$2
  8437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8438. $as_echo_n "checking for $ac_word... " >&6; }
  8439. if test "${ac_cv_prog_WINDMC+set}" = set; then :
  8440. $as_echo_n "(cached) " >&6
  8441. else
  8442. if test -n "$WINDMC"; then
  8443. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8444. else
  8445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8446. for as_dir in $PATH
  8447. do
  8448. IFS=$as_save_IFS
  8449. test -z "$as_dir" && as_dir=.
  8450. for ac_exec_ext in '' $ac_executable_extensions; do
  8451. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8452. ac_cv_prog_WINDMC="${ncn_progname}"
  8453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8454. break 2
  8455. fi
  8456. done
  8457. done
  8458. IFS=$as_save_IFS
  8459. fi
  8460. fi
  8461. WINDMC=$ac_cv_prog_WINDMC
  8462. if test -n "$WINDMC"; then
  8463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8464. $as_echo "$WINDMC" >&6; }
  8465. else
  8466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8467. $as_echo "no" >&6; }
  8468. fi
  8469. fi
  8470. test -n "$ac_cv_prog_WINDMC" && break
  8471. done
  8472. if test -z "$ac_cv_prog_WINDMC" ; then
  8473. set dummy windmc
  8474. if test $build = $host ; then
  8475. WINDMC="$2"
  8476. else
  8477. WINDMC="${ncn_tool_prefix}$2"
  8478. fi
  8479. fi
  8480. if test -n "$OBJCOPY"; then
  8481. ac_cv_prog_OBJCOPY=$OBJCOPY
  8482. elif test -n "$ac_cv_prog_OBJCOPY"; then
  8483. OBJCOPY=$ac_cv_prog_OBJCOPY
  8484. fi
  8485. if test -n "$ac_cv_prog_OBJCOPY"; then
  8486. for ncn_progname in objcopy; do
  8487. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8488. set dummy ${ncn_progname}; ac_word=$2
  8489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8490. $as_echo_n "checking for $ac_word... " >&6; }
  8491. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  8492. $as_echo_n "(cached) " >&6
  8493. else
  8494. if test -n "$OBJCOPY"; then
  8495. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8496. else
  8497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8498. for as_dir in $PATH
  8499. do
  8500. IFS=$as_save_IFS
  8501. test -z "$as_dir" && as_dir=.
  8502. for ac_exec_ext in '' $ac_executable_extensions; do
  8503. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8504. ac_cv_prog_OBJCOPY="${ncn_progname}"
  8505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8506. break 2
  8507. fi
  8508. done
  8509. done
  8510. IFS=$as_save_IFS
  8511. fi
  8512. fi
  8513. OBJCOPY=$ac_cv_prog_OBJCOPY
  8514. if test -n "$OBJCOPY"; then
  8515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8516. $as_echo "$OBJCOPY" >&6; }
  8517. else
  8518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8519. $as_echo "no" >&6; }
  8520. fi
  8521. done
  8522. fi
  8523. for ncn_progname in objcopy; do
  8524. if test -n "$ncn_tool_prefix"; then
  8525. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8526. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8528. $as_echo_n "checking for $ac_word... " >&6; }
  8529. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  8530. $as_echo_n "(cached) " >&6
  8531. else
  8532. if test -n "$OBJCOPY"; then
  8533. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8534. else
  8535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8536. for as_dir in $PATH
  8537. do
  8538. IFS=$as_save_IFS
  8539. test -z "$as_dir" && as_dir=.
  8540. for ac_exec_ext in '' $ac_executable_extensions; do
  8541. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8542. ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
  8543. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8544. break 2
  8545. fi
  8546. done
  8547. done
  8548. IFS=$as_save_IFS
  8549. fi
  8550. fi
  8551. OBJCOPY=$ac_cv_prog_OBJCOPY
  8552. if test -n "$OBJCOPY"; then
  8553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8554. $as_echo "$OBJCOPY" >&6; }
  8555. else
  8556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8557. $as_echo "no" >&6; }
  8558. fi
  8559. fi
  8560. if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
  8561. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8562. set dummy ${ncn_progname}; ac_word=$2
  8563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8564. $as_echo_n "checking for $ac_word... " >&6; }
  8565. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  8566. $as_echo_n "(cached) " >&6
  8567. else
  8568. if test -n "$OBJCOPY"; then
  8569. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8570. else
  8571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8572. for as_dir in $PATH
  8573. do
  8574. IFS=$as_save_IFS
  8575. test -z "$as_dir" && as_dir=.
  8576. for ac_exec_ext in '' $ac_executable_extensions; do
  8577. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8578. ac_cv_prog_OBJCOPY="${ncn_progname}"
  8579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8580. break 2
  8581. fi
  8582. done
  8583. done
  8584. IFS=$as_save_IFS
  8585. fi
  8586. fi
  8587. OBJCOPY=$ac_cv_prog_OBJCOPY
  8588. if test -n "$OBJCOPY"; then
  8589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8590. $as_echo "$OBJCOPY" >&6; }
  8591. else
  8592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8593. $as_echo "no" >&6; }
  8594. fi
  8595. fi
  8596. test -n "$ac_cv_prog_OBJCOPY" && break
  8597. done
  8598. if test -z "$ac_cv_prog_OBJCOPY" ; then
  8599. set dummy objcopy
  8600. if test $build = $host ; then
  8601. OBJCOPY="$2"
  8602. else
  8603. OBJCOPY="${ncn_tool_prefix}$2"
  8604. fi
  8605. fi
  8606. if test -n "$OBJDUMP"; then
  8607. ac_cv_prog_OBJDUMP=$OBJDUMP
  8608. elif test -n "$ac_cv_prog_OBJDUMP"; then
  8609. OBJDUMP=$ac_cv_prog_OBJDUMP
  8610. fi
  8611. if test -n "$ac_cv_prog_OBJDUMP"; then
  8612. for ncn_progname in objdump; do
  8613. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8614. set dummy ${ncn_progname}; ac_word=$2
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8616. $as_echo_n "checking for $ac_word... " >&6; }
  8617. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  8618. $as_echo_n "(cached) " >&6
  8619. else
  8620. if test -n "$OBJDUMP"; then
  8621. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8622. else
  8623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8624. for as_dir in $PATH
  8625. do
  8626. IFS=$as_save_IFS
  8627. test -z "$as_dir" && as_dir=.
  8628. for ac_exec_ext in '' $ac_executable_extensions; do
  8629. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8630. ac_cv_prog_OBJDUMP="${ncn_progname}"
  8631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8632. break 2
  8633. fi
  8634. done
  8635. done
  8636. IFS=$as_save_IFS
  8637. fi
  8638. fi
  8639. OBJDUMP=$ac_cv_prog_OBJDUMP
  8640. if test -n "$OBJDUMP"; then
  8641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8642. $as_echo "$OBJDUMP" >&6; }
  8643. else
  8644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8645. $as_echo "no" >&6; }
  8646. fi
  8647. done
  8648. fi
  8649. for ncn_progname in objdump; do
  8650. if test -n "$ncn_tool_prefix"; then
  8651. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8652. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8654. $as_echo_n "checking for $ac_word... " >&6; }
  8655. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  8656. $as_echo_n "(cached) " >&6
  8657. else
  8658. if test -n "$OBJDUMP"; then
  8659. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8660. else
  8661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8662. for as_dir in $PATH
  8663. do
  8664. IFS=$as_save_IFS
  8665. test -z "$as_dir" && as_dir=.
  8666. for ac_exec_ext in '' $ac_executable_extensions; do
  8667. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8668. ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
  8669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8670. break 2
  8671. fi
  8672. done
  8673. done
  8674. IFS=$as_save_IFS
  8675. fi
  8676. fi
  8677. OBJDUMP=$ac_cv_prog_OBJDUMP
  8678. if test -n "$OBJDUMP"; then
  8679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8680. $as_echo "$OBJDUMP" >&6; }
  8681. else
  8682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8683. $as_echo "no" >&6; }
  8684. fi
  8685. fi
  8686. if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
  8687. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8688. set dummy ${ncn_progname}; ac_word=$2
  8689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8690. $as_echo_n "checking for $ac_word... " >&6; }
  8691. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  8692. $as_echo_n "(cached) " >&6
  8693. else
  8694. if test -n "$OBJDUMP"; then
  8695. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8696. else
  8697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8698. for as_dir in $PATH
  8699. do
  8700. IFS=$as_save_IFS
  8701. test -z "$as_dir" && as_dir=.
  8702. for ac_exec_ext in '' $ac_executable_extensions; do
  8703. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8704. ac_cv_prog_OBJDUMP="${ncn_progname}"
  8705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8706. break 2
  8707. fi
  8708. done
  8709. done
  8710. IFS=$as_save_IFS
  8711. fi
  8712. fi
  8713. OBJDUMP=$ac_cv_prog_OBJDUMP
  8714. if test -n "$OBJDUMP"; then
  8715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8716. $as_echo "$OBJDUMP" >&6; }
  8717. else
  8718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8719. $as_echo "no" >&6; }
  8720. fi
  8721. fi
  8722. test -n "$ac_cv_prog_OBJDUMP" && break
  8723. done
  8724. if test -z "$ac_cv_prog_OBJDUMP" ; then
  8725. set dummy objdump
  8726. if test $build = $host ; then
  8727. OBJDUMP="$2"
  8728. else
  8729. OBJDUMP="${ncn_tool_prefix}$2"
  8730. fi
  8731. fi
  8732. if test -n "$READELF"; then
  8733. ac_cv_prog_READELF=$READELF
  8734. elif test -n "$ac_cv_prog_READELF"; then
  8735. READELF=$ac_cv_prog_READELF
  8736. fi
  8737. if test -n "$ac_cv_prog_READELF"; then
  8738. for ncn_progname in readelf; do
  8739. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8740. set dummy ${ncn_progname}; ac_word=$2
  8741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8742. $as_echo_n "checking for $ac_word... " >&6; }
  8743. if test "${ac_cv_prog_READELF+set}" = set; then :
  8744. $as_echo_n "(cached) " >&6
  8745. else
  8746. if test -n "$READELF"; then
  8747. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  8748. else
  8749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8750. for as_dir in $PATH
  8751. do
  8752. IFS=$as_save_IFS
  8753. test -z "$as_dir" && as_dir=.
  8754. for ac_exec_ext in '' $ac_executable_extensions; do
  8755. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8756. ac_cv_prog_READELF="${ncn_progname}"
  8757. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8758. break 2
  8759. fi
  8760. done
  8761. done
  8762. IFS=$as_save_IFS
  8763. fi
  8764. fi
  8765. READELF=$ac_cv_prog_READELF
  8766. if test -n "$READELF"; then
  8767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  8768. $as_echo "$READELF" >&6; }
  8769. else
  8770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8771. $as_echo "no" >&6; }
  8772. fi
  8773. done
  8774. fi
  8775. for ncn_progname in readelf; do
  8776. if test -n "$ncn_tool_prefix"; then
  8777. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8778. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8780. $as_echo_n "checking for $ac_word... " >&6; }
  8781. if test "${ac_cv_prog_READELF+set}" = set; then :
  8782. $as_echo_n "(cached) " >&6
  8783. else
  8784. if test -n "$READELF"; then
  8785. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  8786. else
  8787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8788. for as_dir in $PATH
  8789. do
  8790. IFS=$as_save_IFS
  8791. test -z "$as_dir" && as_dir=.
  8792. for ac_exec_ext in '' $ac_executable_extensions; do
  8793. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8794. ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
  8795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8796. break 2
  8797. fi
  8798. done
  8799. done
  8800. IFS=$as_save_IFS
  8801. fi
  8802. fi
  8803. READELF=$ac_cv_prog_READELF
  8804. if test -n "$READELF"; then
  8805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  8806. $as_echo "$READELF" >&6; }
  8807. else
  8808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8809. $as_echo "no" >&6; }
  8810. fi
  8811. fi
  8812. if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
  8813. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8814. set dummy ${ncn_progname}; ac_word=$2
  8815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8816. $as_echo_n "checking for $ac_word... " >&6; }
  8817. if test "${ac_cv_prog_READELF+set}" = set; then :
  8818. $as_echo_n "(cached) " >&6
  8819. else
  8820. if test -n "$READELF"; then
  8821. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  8822. else
  8823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8824. for as_dir in $PATH
  8825. do
  8826. IFS=$as_save_IFS
  8827. test -z "$as_dir" && as_dir=.
  8828. for ac_exec_ext in '' $ac_executable_extensions; do
  8829. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8830. ac_cv_prog_READELF="${ncn_progname}"
  8831. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8832. break 2
  8833. fi
  8834. done
  8835. done
  8836. IFS=$as_save_IFS
  8837. fi
  8838. fi
  8839. READELF=$ac_cv_prog_READELF
  8840. if test -n "$READELF"; then
  8841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  8842. $as_echo "$READELF" >&6; }
  8843. else
  8844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8845. $as_echo "no" >&6; }
  8846. fi
  8847. fi
  8848. test -n "$ac_cv_prog_READELF" && break
  8849. done
  8850. if test -z "$ac_cv_prog_READELF" ; then
  8851. set dummy readelf
  8852. if test $build = $host ; then
  8853. READELF="$2"
  8854. else
  8855. READELF="${ncn_tool_prefix}$2"
  8856. fi
  8857. fi
  8858. # Target tools.
  8859. # Check whether --with-build-time-tools was given.
  8860. if test "${with_build_time_tools+set}" = set; then :
  8861. withval=$with_build_time_tools; case x"$withval" in
  8862. x/*) ;;
  8863. *)
  8864. with_build_time_tools=
  8865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
  8866. $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
  8867. ;;
  8868. esac
  8869. else
  8870. with_build_time_tools=
  8871. fi
  8872. if test -n "$CC_FOR_TARGET"; then
  8873. ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
  8874. elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
  8875. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8876. fi
  8877. if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
  8878. for ncn_progname in cc gcc; do
  8879. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8880. set dummy ${ncn_progname}; ac_word=$2
  8881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8882. $as_echo_n "checking for $ac_word... " >&6; }
  8883. if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
  8884. $as_echo_n "(cached) " >&6
  8885. else
  8886. if test -n "$CC_FOR_TARGET"; then
  8887. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  8888. else
  8889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8890. for as_dir in $PATH
  8891. do
  8892. IFS=$as_save_IFS
  8893. test -z "$as_dir" && as_dir=.
  8894. for ac_exec_ext in '' $ac_executable_extensions; do
  8895. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8896. ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
  8897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8898. break 2
  8899. fi
  8900. done
  8901. done
  8902. IFS=$as_save_IFS
  8903. fi
  8904. fi
  8905. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8906. if test -n "$CC_FOR_TARGET"; then
  8907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  8908. $as_echo "$CC_FOR_TARGET" >&6; }
  8909. else
  8910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8911. $as_echo "no" >&6; }
  8912. fi
  8913. done
  8914. fi
  8915. if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  8916. for ncn_progname in cc gcc; do
  8917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  8918. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  8919. if test -x $with_build_time_tools/${ncn_progname}; then
  8920. ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  8921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8922. $as_echo "yes" >&6; }
  8923. break
  8924. else
  8925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8926. $as_echo "no" >&6; }
  8927. fi
  8928. done
  8929. fi
  8930. if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
  8931. for ncn_progname in cc gcc; do
  8932. if test -n "$ncn_target_tool_prefix"; then
  8933. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8934. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  8935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8936. $as_echo_n "checking for $ac_word... " >&6; }
  8937. if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
  8938. $as_echo_n "(cached) " >&6
  8939. else
  8940. if test -n "$CC_FOR_TARGET"; then
  8941. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  8942. else
  8943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8944. for as_dir in $PATH
  8945. do
  8946. IFS=$as_save_IFS
  8947. test -z "$as_dir" && as_dir=.
  8948. for ac_exec_ext in '' $ac_executable_extensions; do
  8949. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8950. ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  8951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8952. break 2
  8953. fi
  8954. done
  8955. done
  8956. IFS=$as_save_IFS
  8957. fi
  8958. fi
  8959. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8960. if test -n "$CC_FOR_TARGET"; then
  8961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  8962. $as_echo "$CC_FOR_TARGET" >&6; }
  8963. else
  8964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8965. $as_echo "no" >&6; }
  8966. fi
  8967. fi
  8968. if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
  8969. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8970. set dummy ${ncn_progname}; ac_word=$2
  8971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8972. $as_echo_n "checking for $ac_word... " >&6; }
  8973. if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
  8974. $as_echo_n "(cached) " >&6
  8975. else
  8976. if test -n "$CC_FOR_TARGET"; then
  8977. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  8978. else
  8979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8980. for as_dir in $PATH
  8981. do
  8982. IFS=$as_save_IFS
  8983. test -z "$as_dir" && as_dir=.
  8984. for ac_exec_ext in '' $ac_executable_extensions; do
  8985. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8986. ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
  8987. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8988. break 2
  8989. fi
  8990. done
  8991. done
  8992. IFS=$as_save_IFS
  8993. fi
  8994. fi
  8995. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8996. if test -n "$CC_FOR_TARGET"; then
  8997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  8998. $as_echo "$CC_FOR_TARGET" >&6; }
  8999. else
  9000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9001. $as_echo "no" >&6; }
  9002. fi
  9003. fi
  9004. test -n "$ac_cv_prog_CC_FOR_TARGET" && break
  9005. done
  9006. fi
  9007. if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
  9008. set dummy cc gcc
  9009. if test $build = $target ; then
  9010. CC_FOR_TARGET="$2"
  9011. else
  9012. CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9013. fi
  9014. else
  9015. CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
  9016. fi
  9017. if test -n "$CXX_FOR_TARGET"; then
  9018. ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
  9019. elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
  9020. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  9021. fi
  9022. if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
  9023. for ncn_progname in c++ g++ cxx gxx; do
  9024. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9025. set dummy ${ncn_progname}; ac_word=$2
  9026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9027. $as_echo_n "checking for $ac_word... " >&6; }
  9028. if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
  9029. $as_echo_n "(cached) " >&6
  9030. else
  9031. if test -n "$CXX_FOR_TARGET"; then
  9032. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  9033. else
  9034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9035. for as_dir in $PATH
  9036. do
  9037. IFS=$as_save_IFS
  9038. test -z "$as_dir" && as_dir=.
  9039. for ac_exec_ext in '' $ac_executable_extensions; do
  9040. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9041. ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
  9042. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9043. break 2
  9044. fi
  9045. done
  9046. done
  9047. IFS=$as_save_IFS
  9048. fi
  9049. fi
  9050. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  9051. if test -n "$CXX_FOR_TARGET"; then
  9052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  9053. $as_echo "$CXX_FOR_TARGET" >&6; }
  9054. else
  9055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9056. $as_echo "no" >&6; }
  9057. fi
  9058. done
  9059. fi
  9060. if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9061. for ncn_progname in c++ g++ cxx gxx; do
  9062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9063. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9064. if test -x $with_build_time_tools/${ncn_progname}; then
  9065. ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9067. $as_echo "yes" >&6; }
  9068. break
  9069. else
  9070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9071. $as_echo "no" >&6; }
  9072. fi
  9073. done
  9074. fi
  9075. if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
  9076. for ncn_progname in c++ g++ cxx gxx; do
  9077. if test -n "$ncn_target_tool_prefix"; then
  9078. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9079. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9081. $as_echo_n "checking for $ac_word... " >&6; }
  9082. if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
  9083. $as_echo_n "(cached) " >&6
  9084. else
  9085. if test -n "$CXX_FOR_TARGET"; then
  9086. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  9087. else
  9088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9089. for as_dir in $PATH
  9090. do
  9091. IFS=$as_save_IFS
  9092. test -z "$as_dir" && as_dir=.
  9093. for ac_exec_ext in '' $ac_executable_extensions; do
  9094. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9095. ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9096. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9097. break 2
  9098. fi
  9099. done
  9100. done
  9101. IFS=$as_save_IFS
  9102. fi
  9103. fi
  9104. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  9105. if test -n "$CXX_FOR_TARGET"; then
  9106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  9107. $as_echo "$CXX_FOR_TARGET" >&6; }
  9108. else
  9109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9110. $as_echo "no" >&6; }
  9111. fi
  9112. fi
  9113. if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
  9114. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9115. set dummy ${ncn_progname}; ac_word=$2
  9116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9117. $as_echo_n "checking for $ac_word... " >&6; }
  9118. if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
  9119. $as_echo_n "(cached) " >&6
  9120. else
  9121. if test -n "$CXX_FOR_TARGET"; then
  9122. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  9123. else
  9124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9125. for as_dir in $PATH
  9126. do
  9127. IFS=$as_save_IFS
  9128. test -z "$as_dir" && as_dir=.
  9129. for ac_exec_ext in '' $ac_executable_extensions; do
  9130. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9131. ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
  9132. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9133. break 2
  9134. fi
  9135. done
  9136. done
  9137. IFS=$as_save_IFS
  9138. fi
  9139. fi
  9140. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  9141. if test -n "$CXX_FOR_TARGET"; then
  9142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  9143. $as_echo "$CXX_FOR_TARGET" >&6; }
  9144. else
  9145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9146. $as_echo "no" >&6; }
  9147. fi
  9148. fi
  9149. test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
  9150. done
  9151. fi
  9152. if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
  9153. set dummy c++ g++ cxx gxx
  9154. if test $build = $target ; then
  9155. CXX_FOR_TARGET="$2"
  9156. else
  9157. CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9158. fi
  9159. else
  9160. CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
  9161. fi
  9162. if test -n "$GCC_FOR_TARGET"; then
  9163. ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
  9164. elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
  9165. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  9166. fi
  9167. if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
  9168. for ncn_progname in gcc; do
  9169. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9170. set dummy ${ncn_progname}; ac_word=$2
  9171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9172. $as_echo_n "checking for $ac_word... " >&6; }
  9173. if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
  9174. $as_echo_n "(cached) " >&6
  9175. else
  9176. if test -n "$GCC_FOR_TARGET"; then
  9177. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  9178. else
  9179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9180. for as_dir in $PATH
  9181. do
  9182. IFS=$as_save_IFS
  9183. test -z "$as_dir" && as_dir=.
  9184. for ac_exec_ext in '' $ac_executable_extensions; do
  9185. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9186. ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
  9187. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9188. break 2
  9189. fi
  9190. done
  9191. done
  9192. IFS=$as_save_IFS
  9193. fi
  9194. fi
  9195. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  9196. if test -n "$GCC_FOR_TARGET"; then
  9197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  9198. $as_echo "$GCC_FOR_TARGET" >&6; }
  9199. else
  9200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9201. $as_echo "no" >&6; }
  9202. fi
  9203. done
  9204. fi
  9205. if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9206. for ncn_progname in gcc; do
  9207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9208. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9209. if test -x $with_build_time_tools/${ncn_progname}; then
  9210. ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9212. $as_echo "yes" >&6; }
  9213. break
  9214. else
  9215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9216. $as_echo "no" >&6; }
  9217. fi
  9218. done
  9219. fi
  9220. if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
  9221. for ncn_progname in gcc; do
  9222. if test -n "$ncn_target_tool_prefix"; then
  9223. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9224. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9226. $as_echo_n "checking for $ac_word... " >&6; }
  9227. if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
  9228. $as_echo_n "(cached) " >&6
  9229. else
  9230. if test -n "$GCC_FOR_TARGET"; then
  9231. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  9232. else
  9233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9234. for as_dir in $PATH
  9235. do
  9236. IFS=$as_save_IFS
  9237. test -z "$as_dir" && as_dir=.
  9238. for ac_exec_ext in '' $ac_executable_extensions; do
  9239. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9240. ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9242. break 2
  9243. fi
  9244. done
  9245. done
  9246. IFS=$as_save_IFS
  9247. fi
  9248. fi
  9249. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  9250. if test -n "$GCC_FOR_TARGET"; then
  9251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  9252. $as_echo "$GCC_FOR_TARGET" >&6; }
  9253. else
  9254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9255. $as_echo "no" >&6; }
  9256. fi
  9257. fi
  9258. if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
  9259. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9260. set dummy ${ncn_progname}; 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 test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
  9264. $as_echo_n "(cached) " >&6
  9265. else
  9266. if test -n "$GCC_FOR_TARGET"; then
  9267. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9276. ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
  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. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  9286. if test -n "$GCC_FOR_TARGET"; then
  9287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  9288. $as_echo "$GCC_FOR_TARGET" >&6; }
  9289. else
  9290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9291. $as_echo "no" >&6; }
  9292. fi
  9293. fi
  9294. test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
  9295. done
  9296. fi
  9297. if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
  9298. GCC_FOR_TARGET="${CC_FOR_TARGET}"
  9299. else
  9300. GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
  9301. fi
  9302. if test -n "$GCJ_FOR_TARGET"; then
  9303. ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
  9304. elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
  9305. GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
  9306. fi
  9307. if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
  9308. for ncn_progname in gcj; do
  9309. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9310. set dummy ${ncn_progname}; ac_word=$2
  9311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9312. $as_echo_n "checking for $ac_word... " >&6; }
  9313. if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
  9314. $as_echo_n "(cached) " >&6
  9315. else
  9316. if test -n "$GCJ_FOR_TARGET"; then
  9317. ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
  9318. else
  9319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9320. for as_dir in $PATH
  9321. do
  9322. IFS=$as_save_IFS
  9323. test -z "$as_dir" && as_dir=.
  9324. for ac_exec_ext in '' $ac_executable_extensions; do
  9325. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9326. ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
  9327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9328. break 2
  9329. fi
  9330. done
  9331. done
  9332. IFS=$as_save_IFS
  9333. fi
  9334. fi
  9335. GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
  9336. if test -n "$GCJ_FOR_TARGET"; then
  9337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
  9338. $as_echo "$GCJ_FOR_TARGET" >&6; }
  9339. else
  9340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9341. $as_echo "no" >&6; }
  9342. fi
  9343. done
  9344. fi
  9345. if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9346. for ncn_progname in gcj; do
  9347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9348. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9349. if test -x $with_build_time_tools/${ncn_progname}; then
  9350. ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9352. $as_echo "yes" >&6; }
  9353. break
  9354. else
  9355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9356. $as_echo "no" >&6; }
  9357. fi
  9358. done
  9359. fi
  9360. if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
  9361. for ncn_progname in gcj; do
  9362. if test -n "$ncn_target_tool_prefix"; then
  9363. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9364. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9366. $as_echo_n "checking for $ac_word... " >&6; }
  9367. if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
  9368. $as_echo_n "(cached) " >&6
  9369. else
  9370. if test -n "$GCJ_FOR_TARGET"; then
  9371. ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
  9372. else
  9373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9374. for as_dir in $PATH
  9375. do
  9376. IFS=$as_save_IFS
  9377. test -z "$as_dir" && as_dir=.
  9378. for ac_exec_ext in '' $ac_executable_extensions; do
  9379. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9380. ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9382. break 2
  9383. fi
  9384. done
  9385. done
  9386. IFS=$as_save_IFS
  9387. fi
  9388. fi
  9389. GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
  9390. if test -n "$GCJ_FOR_TARGET"; then
  9391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
  9392. $as_echo "$GCJ_FOR_TARGET" >&6; }
  9393. else
  9394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9395. $as_echo "no" >&6; }
  9396. fi
  9397. fi
  9398. if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
  9399. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9400. set dummy ${ncn_progname}; ac_word=$2
  9401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9402. $as_echo_n "checking for $ac_word... " >&6; }
  9403. if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
  9404. $as_echo_n "(cached) " >&6
  9405. else
  9406. if test -n "$GCJ_FOR_TARGET"; then
  9407. ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
  9408. else
  9409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9410. for as_dir in $PATH
  9411. do
  9412. IFS=$as_save_IFS
  9413. test -z "$as_dir" && as_dir=.
  9414. for ac_exec_ext in '' $ac_executable_extensions; do
  9415. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9416. ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
  9417. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9418. break 2
  9419. fi
  9420. done
  9421. done
  9422. IFS=$as_save_IFS
  9423. fi
  9424. fi
  9425. GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
  9426. if test -n "$GCJ_FOR_TARGET"; then
  9427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
  9428. $as_echo "$GCJ_FOR_TARGET" >&6; }
  9429. else
  9430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9431. $as_echo "no" >&6; }
  9432. fi
  9433. fi
  9434. test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
  9435. done
  9436. fi
  9437. if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
  9438. set dummy gcj
  9439. if test $build = $target ; then
  9440. GCJ_FOR_TARGET="$2"
  9441. else
  9442. GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9443. fi
  9444. else
  9445. GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
  9446. fi
  9447. if test -n "$GFORTRAN_FOR_TARGET"; then
  9448. ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
  9449. elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9450. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9451. fi
  9452. if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9453. for ncn_progname in gfortran; do
  9454. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9455. set dummy ${ncn_progname}; ac_word=$2
  9456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9457. $as_echo_n "checking for $ac_word... " >&6; }
  9458. if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
  9459. $as_echo_n "(cached) " >&6
  9460. else
  9461. if test -n "$GFORTRAN_FOR_TARGET"; then
  9462. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9463. else
  9464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9465. for as_dir in $PATH
  9466. do
  9467. IFS=$as_save_IFS
  9468. test -z "$as_dir" && as_dir=.
  9469. for ac_exec_ext in '' $ac_executable_extensions; do
  9470. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9471. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
  9472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9473. break 2
  9474. fi
  9475. done
  9476. done
  9477. IFS=$as_save_IFS
  9478. fi
  9479. fi
  9480. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9481. if test -n "$GFORTRAN_FOR_TARGET"; then
  9482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9483. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9484. else
  9485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9486. $as_echo "no" >&6; }
  9487. fi
  9488. done
  9489. fi
  9490. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9491. for ncn_progname in gfortran; do
  9492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9493. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9494. if test -x $with_build_time_tools/${ncn_progname}; then
  9495. ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9497. $as_echo "yes" >&6; }
  9498. break
  9499. else
  9500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9501. $as_echo "no" >&6; }
  9502. fi
  9503. done
  9504. fi
  9505. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9506. for ncn_progname in gfortran; do
  9507. if test -n "$ncn_target_tool_prefix"; then
  9508. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9509. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9511. $as_echo_n "checking for $ac_word... " >&6; }
  9512. if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
  9513. $as_echo_n "(cached) " >&6
  9514. else
  9515. if test -n "$GFORTRAN_FOR_TARGET"; then
  9516. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9517. else
  9518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9519. for as_dir in $PATH
  9520. do
  9521. IFS=$as_save_IFS
  9522. test -z "$as_dir" && as_dir=.
  9523. for ac_exec_ext in '' $ac_executable_extensions; do
  9524. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9525. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9527. break 2
  9528. fi
  9529. done
  9530. done
  9531. IFS=$as_save_IFS
  9532. fi
  9533. fi
  9534. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9535. if test -n "$GFORTRAN_FOR_TARGET"; then
  9536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9537. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9538. else
  9539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9540. $as_echo "no" >&6; }
  9541. fi
  9542. fi
  9543. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
  9544. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9545. set dummy ${ncn_progname}; ac_word=$2
  9546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9547. $as_echo_n "checking for $ac_word... " >&6; }
  9548. if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
  9549. $as_echo_n "(cached) " >&6
  9550. else
  9551. if test -n "$GFORTRAN_FOR_TARGET"; then
  9552. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9553. else
  9554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9555. for as_dir in $PATH
  9556. do
  9557. IFS=$as_save_IFS
  9558. test -z "$as_dir" && as_dir=.
  9559. for ac_exec_ext in '' $ac_executable_extensions; do
  9560. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9561. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
  9562. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9563. break 2
  9564. fi
  9565. done
  9566. done
  9567. IFS=$as_save_IFS
  9568. fi
  9569. fi
  9570. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9571. if test -n "$GFORTRAN_FOR_TARGET"; then
  9572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9573. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9574. else
  9575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9576. $as_echo "no" >&6; }
  9577. fi
  9578. fi
  9579. test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
  9580. done
  9581. fi
  9582. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
  9583. set dummy gfortran
  9584. if test $build = $target ; then
  9585. GFORTRAN_FOR_TARGET="$2"
  9586. else
  9587. GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9588. fi
  9589. else
  9590. GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
  9591. fi
  9592. if test -n "$GOC_FOR_TARGET"; then
  9593. ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
  9594. elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
  9595. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9596. fi
  9597. if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
  9598. for ncn_progname in gccgo; do
  9599. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9600. set dummy ${ncn_progname}; ac_word=$2
  9601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9602. $as_echo_n "checking for $ac_word... " >&6; }
  9603. if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
  9604. $as_echo_n "(cached) " >&6
  9605. else
  9606. if test -n "$GOC_FOR_TARGET"; then
  9607. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  9608. else
  9609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9610. for as_dir in $PATH
  9611. do
  9612. IFS=$as_save_IFS
  9613. test -z "$as_dir" && as_dir=.
  9614. for ac_exec_ext in '' $ac_executable_extensions; do
  9615. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9616. ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
  9617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9618. break 2
  9619. fi
  9620. done
  9621. done
  9622. IFS=$as_save_IFS
  9623. fi
  9624. fi
  9625. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9626. if test -n "$GOC_FOR_TARGET"; then
  9627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  9628. $as_echo "$GOC_FOR_TARGET" >&6; }
  9629. else
  9630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9631. $as_echo "no" >&6; }
  9632. fi
  9633. done
  9634. fi
  9635. if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9636. for ncn_progname in gccgo; do
  9637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9638. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9639. if test -x $with_build_time_tools/${ncn_progname}; then
  9640. ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9642. $as_echo "yes" >&6; }
  9643. break
  9644. else
  9645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9646. $as_echo "no" >&6; }
  9647. fi
  9648. done
  9649. fi
  9650. if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
  9651. for ncn_progname in gccgo; do
  9652. if test -n "$ncn_target_tool_prefix"; then
  9653. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9654. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9656. $as_echo_n "checking for $ac_word... " >&6; }
  9657. if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
  9658. $as_echo_n "(cached) " >&6
  9659. else
  9660. if test -n "$GOC_FOR_TARGET"; then
  9661. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  9662. else
  9663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9664. for as_dir in $PATH
  9665. do
  9666. IFS=$as_save_IFS
  9667. test -z "$as_dir" && as_dir=.
  9668. for ac_exec_ext in '' $ac_executable_extensions; do
  9669. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9670. ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9672. break 2
  9673. fi
  9674. done
  9675. done
  9676. IFS=$as_save_IFS
  9677. fi
  9678. fi
  9679. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9680. if test -n "$GOC_FOR_TARGET"; then
  9681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  9682. $as_echo "$GOC_FOR_TARGET" >&6; }
  9683. else
  9684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9685. $as_echo "no" >&6; }
  9686. fi
  9687. fi
  9688. if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
  9689. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9690. set dummy ${ncn_progname}; ac_word=$2
  9691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9692. $as_echo_n "checking for $ac_word... " >&6; }
  9693. if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
  9694. $as_echo_n "(cached) " >&6
  9695. else
  9696. if test -n "$GOC_FOR_TARGET"; then
  9697. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  9698. else
  9699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9700. for as_dir in $PATH
  9701. do
  9702. IFS=$as_save_IFS
  9703. test -z "$as_dir" && as_dir=.
  9704. for ac_exec_ext in '' $ac_executable_extensions; do
  9705. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9706. ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
  9707. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9708. break 2
  9709. fi
  9710. done
  9711. done
  9712. IFS=$as_save_IFS
  9713. fi
  9714. fi
  9715. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9716. if test -n "$GOC_FOR_TARGET"; then
  9717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  9718. $as_echo "$GOC_FOR_TARGET" >&6; }
  9719. else
  9720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9721. $as_echo "no" >&6; }
  9722. fi
  9723. fi
  9724. test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
  9725. done
  9726. fi
  9727. if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
  9728. set dummy gccgo
  9729. if test $build = $target ; then
  9730. GOC_FOR_TARGET="$2"
  9731. else
  9732. GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9733. fi
  9734. else
  9735. GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
  9736. fi
  9737. cat > conftest.c << \EOF
  9738. #ifdef __GNUC__
  9739. gcc_yay;
  9740. #endif
  9741. EOF
  9742. if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
  9743. have_gcc_for_target=yes
  9744. else
  9745. GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
  9746. have_gcc_for_target=no
  9747. fi
  9748. rm conftest.c
  9749. if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
  9750. if test -n "$with_build_time_tools"; then
  9751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
  9752. $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
  9753. if test -x $with_build_time_tools/ar; then
  9754. AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
  9755. ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
  9756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
  9757. $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
  9758. else
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9760. $as_echo "no" >&6; }
  9761. fi
  9762. elif test $build != $host && test $have_gcc_for_target = yes; then
  9763. AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
  9764. test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
  9765. test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
  9766. fi
  9767. fi
  9768. if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  9769. # Extract the first word of "ar", so it can be a program name with args.
  9770. set dummy ar; ac_word=$2
  9771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9772. $as_echo_n "checking for $ac_word... " >&6; }
  9773. if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
  9774. $as_echo_n "(cached) " >&6
  9775. else
  9776. case $AR_FOR_TARGET in
  9777. [\\/]* | ?:[\\/]*)
  9778. ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
  9779. ;;
  9780. *)
  9781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9782. for as_dir in $gcc_cv_tool_dirs
  9783. do
  9784. IFS=$as_save_IFS
  9785. test -z "$as_dir" && as_dir=.
  9786. for ac_exec_ext in '' $ac_executable_extensions; do
  9787. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9788. ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  9789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9790. break 2
  9791. fi
  9792. done
  9793. done
  9794. IFS=$as_save_IFS
  9795. ;;
  9796. esac
  9797. fi
  9798. AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
  9799. if test -n "$AR_FOR_TARGET"; then
  9800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9801. $as_echo "$AR_FOR_TARGET" >&6; }
  9802. else
  9803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9804. $as_echo "no" >&6; }
  9805. fi
  9806. fi
  9807. if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
  9808. if test -n "$AR_FOR_TARGET"; then
  9809. ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
  9810. elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
  9811. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9812. fi
  9813. if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
  9814. for ncn_progname in ar; do
  9815. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9816. set dummy ${ncn_progname}; ac_word=$2
  9817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9818. $as_echo_n "checking for $ac_word... " >&6; }
  9819. if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
  9820. $as_echo_n "(cached) " >&6
  9821. else
  9822. if test -n "$AR_FOR_TARGET"; then
  9823. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  9824. else
  9825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9826. for as_dir in $PATH
  9827. do
  9828. IFS=$as_save_IFS
  9829. test -z "$as_dir" && as_dir=.
  9830. for ac_exec_ext in '' $ac_executable_extensions; do
  9831. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9832. ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
  9833. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9834. break 2
  9835. fi
  9836. done
  9837. done
  9838. IFS=$as_save_IFS
  9839. fi
  9840. fi
  9841. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9842. if test -n "$AR_FOR_TARGET"; then
  9843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9844. $as_echo "$AR_FOR_TARGET" >&6; }
  9845. else
  9846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9847. $as_echo "no" >&6; }
  9848. fi
  9849. done
  9850. fi
  9851. if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9852. for ncn_progname in ar; do
  9853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9854. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9855. if test -x $with_build_time_tools/${ncn_progname}; then
  9856. ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9858. $as_echo "yes" >&6; }
  9859. break
  9860. else
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9862. $as_echo "no" >&6; }
  9863. fi
  9864. done
  9865. fi
  9866. if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
  9867. for ncn_progname in ar; do
  9868. if test -n "$ncn_target_tool_prefix"; then
  9869. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9870. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9872. $as_echo_n "checking for $ac_word... " >&6; }
  9873. if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
  9874. $as_echo_n "(cached) " >&6
  9875. else
  9876. if test -n "$AR_FOR_TARGET"; then
  9877. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  9878. else
  9879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9880. for as_dir in $PATH
  9881. do
  9882. IFS=$as_save_IFS
  9883. test -z "$as_dir" && as_dir=.
  9884. for ac_exec_ext in '' $ac_executable_extensions; do
  9885. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9886. ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9887. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9888. break 2
  9889. fi
  9890. done
  9891. done
  9892. IFS=$as_save_IFS
  9893. fi
  9894. fi
  9895. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9896. if test -n "$AR_FOR_TARGET"; then
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9898. $as_echo "$AR_FOR_TARGET" >&6; }
  9899. else
  9900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9901. $as_echo "no" >&6; }
  9902. fi
  9903. fi
  9904. if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
  9905. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9906. set dummy ${ncn_progname}; ac_word=$2
  9907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9908. $as_echo_n "checking for $ac_word... " >&6; }
  9909. if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
  9910. $as_echo_n "(cached) " >&6
  9911. else
  9912. if test -n "$AR_FOR_TARGET"; then
  9913. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  9914. else
  9915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9916. for as_dir in $PATH
  9917. do
  9918. IFS=$as_save_IFS
  9919. test -z "$as_dir" && as_dir=.
  9920. for ac_exec_ext in '' $ac_executable_extensions; do
  9921. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9922. ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
  9923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9924. break 2
  9925. fi
  9926. done
  9927. done
  9928. IFS=$as_save_IFS
  9929. fi
  9930. fi
  9931. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9932. if test -n "$AR_FOR_TARGET"; then
  9933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9934. $as_echo "$AR_FOR_TARGET" >&6; }
  9935. else
  9936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9937. $as_echo "no" >&6; }
  9938. fi
  9939. fi
  9940. test -n "$ac_cv_prog_AR_FOR_TARGET" && break
  9941. done
  9942. fi
  9943. if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
  9944. set dummy ar
  9945. if test $build = $target ; then
  9946. AR_FOR_TARGET="$2"
  9947. else
  9948. AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9949. fi
  9950. else
  9951. AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
  9952. fi
  9953. else
  9954. AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
  9955. fi
  9956. if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
  9957. if test -n "$with_build_time_tools"; then
  9958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
  9959. $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
  9960. if test -x $with_build_time_tools/as; then
  9961. AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
  9962. ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
  9963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
  9964. $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
  9965. else
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9967. $as_echo "no" >&6; }
  9968. fi
  9969. elif test $build != $host && test $have_gcc_for_target = yes; then
  9970. AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
  9971. test $AS_FOR_TARGET = as && AS_FOR_TARGET=
  9972. test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
  9973. fi
  9974. fi
  9975. if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  9976. # Extract the first word of "as", so it can be a program name with args.
  9977. set dummy as; ac_word=$2
  9978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9979. $as_echo_n "checking for $ac_word... " >&6; }
  9980. if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
  9981. $as_echo_n "(cached) " >&6
  9982. else
  9983. case $AS_FOR_TARGET in
  9984. [\\/]* | ?:[\\/]*)
  9985. ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
  9986. ;;
  9987. *)
  9988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9989. for as_dir in $gcc_cv_tool_dirs
  9990. do
  9991. IFS=$as_save_IFS
  9992. test -z "$as_dir" && as_dir=.
  9993. for ac_exec_ext in '' $ac_executable_extensions; do
  9994. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9995. ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  9996. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9997. break 2
  9998. fi
  9999. done
  10000. done
  10001. IFS=$as_save_IFS
  10002. ;;
  10003. esac
  10004. fi
  10005. AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
  10006. if test -n "$AS_FOR_TARGET"; then
  10007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  10008. $as_echo "$AS_FOR_TARGET" >&6; }
  10009. else
  10010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10011. $as_echo "no" >&6; }
  10012. fi
  10013. fi
  10014. if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
  10015. if test -n "$AS_FOR_TARGET"; then
  10016. ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
  10017. elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
  10018. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  10019. fi
  10020. if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
  10021. for ncn_progname in as; do
  10022. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10023. set dummy ${ncn_progname}; ac_word=$2
  10024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10025. $as_echo_n "checking for $ac_word... " >&6; }
  10026. if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
  10027. $as_echo_n "(cached) " >&6
  10028. else
  10029. if test -n "$AS_FOR_TARGET"; then
  10030. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  10031. else
  10032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10033. for as_dir in $PATH
  10034. do
  10035. IFS=$as_save_IFS
  10036. test -z "$as_dir" && as_dir=.
  10037. for ac_exec_ext in '' $ac_executable_extensions; do
  10038. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10039. ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
  10040. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10041. break 2
  10042. fi
  10043. done
  10044. done
  10045. IFS=$as_save_IFS
  10046. fi
  10047. fi
  10048. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  10049. if test -n "$AS_FOR_TARGET"; then
  10050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  10051. $as_echo "$AS_FOR_TARGET" >&6; }
  10052. else
  10053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10054. $as_echo "no" >&6; }
  10055. fi
  10056. done
  10057. fi
  10058. if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10059. for ncn_progname in as; do
  10060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10061. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10062. if test -x $with_build_time_tools/${ncn_progname}; then
  10063. ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10065. $as_echo "yes" >&6; }
  10066. break
  10067. else
  10068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10069. $as_echo "no" >&6; }
  10070. fi
  10071. done
  10072. fi
  10073. if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
  10074. for ncn_progname in as; do
  10075. if test -n "$ncn_target_tool_prefix"; then
  10076. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10077. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10079. $as_echo_n "checking for $ac_word... " >&6; }
  10080. if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
  10081. $as_echo_n "(cached) " >&6
  10082. else
  10083. if test -n "$AS_FOR_TARGET"; then
  10084. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  10085. else
  10086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10087. for as_dir in $PATH
  10088. do
  10089. IFS=$as_save_IFS
  10090. test -z "$as_dir" && as_dir=.
  10091. for ac_exec_ext in '' $ac_executable_extensions; do
  10092. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10093. ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10094. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10095. break 2
  10096. fi
  10097. done
  10098. done
  10099. IFS=$as_save_IFS
  10100. fi
  10101. fi
  10102. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  10103. if test -n "$AS_FOR_TARGET"; then
  10104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  10105. $as_echo "$AS_FOR_TARGET" >&6; }
  10106. else
  10107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10108. $as_echo "no" >&6; }
  10109. fi
  10110. fi
  10111. if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
  10112. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10113. set dummy ${ncn_progname}; ac_word=$2
  10114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10115. $as_echo_n "checking for $ac_word... " >&6; }
  10116. if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
  10117. $as_echo_n "(cached) " >&6
  10118. else
  10119. if test -n "$AS_FOR_TARGET"; then
  10120. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  10121. else
  10122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10123. for as_dir in $PATH
  10124. do
  10125. IFS=$as_save_IFS
  10126. test -z "$as_dir" && as_dir=.
  10127. for ac_exec_ext in '' $ac_executable_extensions; do
  10128. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10129. ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
  10130. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10131. break 2
  10132. fi
  10133. done
  10134. done
  10135. IFS=$as_save_IFS
  10136. fi
  10137. fi
  10138. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  10139. if test -n "$AS_FOR_TARGET"; then
  10140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  10141. $as_echo "$AS_FOR_TARGET" >&6; }
  10142. else
  10143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10144. $as_echo "no" >&6; }
  10145. fi
  10146. fi
  10147. test -n "$ac_cv_prog_AS_FOR_TARGET" && break
  10148. done
  10149. fi
  10150. if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
  10151. set dummy as
  10152. if test $build = $target ; then
  10153. AS_FOR_TARGET="$2"
  10154. else
  10155. AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10156. fi
  10157. else
  10158. AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
  10159. fi
  10160. else
  10161. AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
  10162. fi
  10163. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
  10164. if test -n "$with_build_time_tools"; then
  10165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
  10166. $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
  10167. if test -x $with_build_time_tools/dlltool; then
  10168. DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
  10169. ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  10170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
  10171. $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
  10172. else
  10173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10174. $as_echo "no" >&6; }
  10175. fi
  10176. elif test $build != $host && test $have_gcc_for_target = yes; then
  10177. DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
  10178. test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
  10179. test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  10180. fi
  10181. fi
  10182. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10183. # Extract the first word of "dlltool", so it can be a program name with args.
  10184. set dummy dlltool; ac_word=$2
  10185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10186. $as_echo_n "checking for $ac_word... " >&6; }
  10187. if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
  10188. $as_echo_n "(cached) " >&6
  10189. else
  10190. case $DLLTOOL_FOR_TARGET in
  10191. [\\/]* | ?:[\\/]*)
  10192. ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
  10193. ;;
  10194. *)
  10195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10196. for as_dir in $gcc_cv_tool_dirs
  10197. do
  10198. IFS=$as_save_IFS
  10199. test -z "$as_dir" && as_dir=.
  10200. for ac_exec_ext in '' $ac_executable_extensions; do
  10201. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10202. ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10203. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10204. break 2
  10205. fi
  10206. done
  10207. done
  10208. IFS=$as_save_IFS
  10209. ;;
  10210. esac
  10211. fi
  10212. DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
  10213. if test -n "$DLLTOOL_FOR_TARGET"; then
  10214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10215. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10216. else
  10217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10218. $as_echo "no" >&6; }
  10219. fi
  10220. fi
  10221. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
  10222. if test -n "$DLLTOOL_FOR_TARGET"; then
  10223. ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  10224. elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  10225. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10226. fi
  10227. if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  10228. for ncn_progname in dlltool; do
  10229. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10230. set dummy ${ncn_progname}; ac_word=$2
  10231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10232. $as_echo_n "checking for $ac_word... " >&6; }
  10233. if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
  10234. $as_echo_n "(cached) " >&6
  10235. else
  10236. if test -n "$DLLTOOL_FOR_TARGET"; then
  10237. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  10238. else
  10239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10240. for as_dir in $PATH
  10241. do
  10242. IFS=$as_save_IFS
  10243. test -z "$as_dir" && as_dir=.
  10244. for ac_exec_ext in '' $ac_executable_extensions; do
  10245. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10246. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
  10247. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10248. break 2
  10249. fi
  10250. done
  10251. done
  10252. IFS=$as_save_IFS
  10253. fi
  10254. fi
  10255. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10256. if test -n "$DLLTOOL_FOR_TARGET"; then
  10257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10258. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10259. else
  10260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10261. $as_echo "no" >&6; }
  10262. fi
  10263. done
  10264. fi
  10265. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10266. for ncn_progname in dlltool; do
  10267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10268. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10269. if test -x $with_build_time_tools/${ncn_progname}; then
  10270. ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10272. $as_echo "yes" >&6; }
  10273. break
  10274. else
  10275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10276. $as_echo "no" >&6; }
  10277. fi
  10278. done
  10279. fi
  10280. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  10281. for ncn_progname in dlltool; do
  10282. if test -n "$ncn_target_tool_prefix"; then
  10283. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10284. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10286. $as_echo_n "checking for $ac_word... " >&6; }
  10287. if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
  10288. $as_echo_n "(cached) " >&6
  10289. else
  10290. if test -n "$DLLTOOL_FOR_TARGET"; then
  10291. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  10292. else
  10293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10294. for as_dir in $PATH
  10295. do
  10296. IFS=$as_save_IFS
  10297. test -z "$as_dir" && as_dir=.
  10298. for ac_exec_ext in '' $ac_executable_extensions; do
  10299. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10300. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10302. break 2
  10303. fi
  10304. done
  10305. done
  10306. IFS=$as_save_IFS
  10307. fi
  10308. fi
  10309. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10310. if test -n "$DLLTOOL_FOR_TARGET"; then
  10311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10312. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10313. else
  10314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10315. $as_echo "no" >&6; }
  10316. fi
  10317. fi
  10318. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
  10319. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10320. set dummy ${ncn_progname}; ac_word=$2
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10322. $as_echo_n "checking for $ac_word... " >&6; }
  10323. if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
  10324. $as_echo_n "(cached) " >&6
  10325. else
  10326. if test -n "$DLLTOOL_FOR_TARGET"; then
  10327. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  10328. else
  10329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10330. for as_dir in $PATH
  10331. do
  10332. IFS=$as_save_IFS
  10333. test -z "$as_dir" && as_dir=.
  10334. for ac_exec_ext in '' $ac_executable_extensions; do
  10335. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10336. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
  10337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10338. break 2
  10339. fi
  10340. done
  10341. done
  10342. IFS=$as_save_IFS
  10343. fi
  10344. fi
  10345. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10346. if test -n "$DLLTOOL_FOR_TARGET"; then
  10347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10348. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10349. else
  10350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10351. $as_echo "no" >&6; }
  10352. fi
  10353. fi
  10354. test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
  10355. done
  10356. fi
  10357. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
  10358. set dummy dlltool
  10359. if test $build = $target ; then
  10360. DLLTOOL_FOR_TARGET="$2"
  10361. else
  10362. DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10363. fi
  10364. else
  10365. DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
  10366. fi
  10367. else
  10368. DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
  10369. fi
  10370. if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
  10371. if test -n "$with_build_time_tools"; then
  10372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
  10373. $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
  10374. if test -x $with_build_time_tools/ld; then
  10375. LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
  10376. ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
  10378. $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
  10379. else
  10380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10381. $as_echo "no" >&6; }
  10382. fi
  10383. elif test $build != $host && test $have_gcc_for_target = yes; then
  10384. LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
  10385. test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
  10386. test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
  10387. fi
  10388. fi
  10389. if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10390. # Extract the first word of "ld", so it can be a program name with args.
  10391. set dummy ld; ac_word=$2
  10392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10393. $as_echo_n "checking for $ac_word... " >&6; }
  10394. if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
  10395. $as_echo_n "(cached) " >&6
  10396. else
  10397. case $LD_FOR_TARGET in
  10398. [\\/]* | ?:[\\/]*)
  10399. ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
  10400. ;;
  10401. *)
  10402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10403. for as_dir in $gcc_cv_tool_dirs
  10404. do
  10405. IFS=$as_save_IFS
  10406. test -z "$as_dir" && as_dir=.
  10407. for ac_exec_ext in '' $ac_executable_extensions; do
  10408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10409. ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10411. break 2
  10412. fi
  10413. done
  10414. done
  10415. IFS=$as_save_IFS
  10416. ;;
  10417. esac
  10418. fi
  10419. LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
  10420. if test -n "$LD_FOR_TARGET"; then
  10421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10422. $as_echo "$LD_FOR_TARGET" >&6; }
  10423. else
  10424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10425. $as_echo "no" >&6; }
  10426. fi
  10427. fi
  10428. if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
  10429. if test -n "$LD_FOR_TARGET"; then
  10430. ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
  10431. elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
  10432. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10433. fi
  10434. if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
  10435. for ncn_progname in ld; do
  10436. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10437. set dummy ${ncn_progname}; ac_word=$2
  10438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10439. $as_echo_n "checking for $ac_word... " >&6; }
  10440. if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
  10441. $as_echo_n "(cached) " >&6
  10442. else
  10443. if test -n "$LD_FOR_TARGET"; then
  10444. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10445. else
  10446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10447. for as_dir in $PATH
  10448. do
  10449. IFS=$as_save_IFS
  10450. test -z "$as_dir" && as_dir=.
  10451. for ac_exec_ext in '' $ac_executable_extensions; do
  10452. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10453. ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
  10454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10455. break 2
  10456. fi
  10457. done
  10458. done
  10459. IFS=$as_save_IFS
  10460. fi
  10461. fi
  10462. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10463. if test -n "$LD_FOR_TARGET"; then
  10464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10465. $as_echo "$LD_FOR_TARGET" >&6; }
  10466. else
  10467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10468. $as_echo "no" >&6; }
  10469. fi
  10470. done
  10471. fi
  10472. if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10473. for ncn_progname in ld; do
  10474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10475. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10476. if test -x $with_build_time_tools/${ncn_progname}; then
  10477. ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10479. $as_echo "yes" >&6; }
  10480. break
  10481. else
  10482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10483. $as_echo "no" >&6; }
  10484. fi
  10485. done
  10486. fi
  10487. if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
  10488. for ncn_progname in ld; do
  10489. if test -n "$ncn_target_tool_prefix"; then
  10490. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10491. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10493. $as_echo_n "checking for $ac_word... " >&6; }
  10494. if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
  10495. $as_echo_n "(cached) " >&6
  10496. else
  10497. if test -n "$LD_FOR_TARGET"; then
  10498. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10499. else
  10500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10501. for as_dir in $PATH
  10502. do
  10503. IFS=$as_save_IFS
  10504. test -z "$as_dir" && as_dir=.
  10505. for ac_exec_ext in '' $ac_executable_extensions; do
  10506. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10507. ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10509. break 2
  10510. fi
  10511. done
  10512. done
  10513. IFS=$as_save_IFS
  10514. fi
  10515. fi
  10516. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10517. if test -n "$LD_FOR_TARGET"; then
  10518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10519. $as_echo "$LD_FOR_TARGET" >&6; }
  10520. else
  10521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10522. $as_echo "no" >&6; }
  10523. fi
  10524. fi
  10525. if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
  10526. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10527. set dummy ${ncn_progname}; ac_word=$2
  10528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10529. $as_echo_n "checking for $ac_word... " >&6; }
  10530. if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
  10531. $as_echo_n "(cached) " >&6
  10532. else
  10533. if test -n "$LD_FOR_TARGET"; then
  10534. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10535. else
  10536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10537. for as_dir in $PATH
  10538. do
  10539. IFS=$as_save_IFS
  10540. test -z "$as_dir" && as_dir=.
  10541. for ac_exec_ext in '' $ac_executable_extensions; do
  10542. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10543. ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
  10544. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10545. break 2
  10546. fi
  10547. done
  10548. done
  10549. IFS=$as_save_IFS
  10550. fi
  10551. fi
  10552. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10553. if test -n "$LD_FOR_TARGET"; then
  10554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10555. $as_echo "$LD_FOR_TARGET" >&6; }
  10556. else
  10557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10558. $as_echo "no" >&6; }
  10559. fi
  10560. fi
  10561. test -n "$ac_cv_prog_LD_FOR_TARGET" && break
  10562. done
  10563. fi
  10564. if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
  10565. set dummy ld
  10566. if test $build = $target ; then
  10567. LD_FOR_TARGET="$2"
  10568. else
  10569. LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10570. fi
  10571. else
  10572. LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
  10573. fi
  10574. else
  10575. LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
  10576. fi
  10577. if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
  10578. if test -n "$with_build_time_tools"; then
  10579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
  10580. $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
  10581. if test -x $with_build_time_tools/lipo; then
  10582. LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
  10583. ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
  10585. $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
  10586. else
  10587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10588. $as_echo "no" >&6; }
  10589. fi
  10590. elif test $build != $host && test $have_gcc_for_target = yes; then
  10591. LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
  10592. test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
  10593. test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10594. fi
  10595. fi
  10596. if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10597. # Extract the first word of "lipo", so it can be a program name with args.
  10598. set dummy lipo; ac_word=$2
  10599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10600. $as_echo_n "checking for $ac_word... " >&6; }
  10601. if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
  10602. $as_echo_n "(cached) " >&6
  10603. else
  10604. case $LIPO_FOR_TARGET in
  10605. [\\/]* | ?:[\\/]*)
  10606. ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
  10607. ;;
  10608. *)
  10609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10610. for as_dir in $gcc_cv_tool_dirs
  10611. do
  10612. IFS=$as_save_IFS
  10613. test -z "$as_dir" && as_dir=.
  10614. for ac_exec_ext in '' $ac_executable_extensions; do
  10615. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10616. ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10618. break 2
  10619. fi
  10620. done
  10621. done
  10622. IFS=$as_save_IFS
  10623. ;;
  10624. esac
  10625. fi
  10626. LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
  10627. if test -n "$LIPO_FOR_TARGET"; then
  10628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10629. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10630. else
  10631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10632. $as_echo "no" >&6; }
  10633. fi
  10634. fi
  10635. if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
  10636. if test -n "$LIPO_FOR_TARGET"; then
  10637. ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10638. elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
  10639. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10640. fi
  10641. if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
  10642. for ncn_progname in lipo; do
  10643. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10644. set dummy ${ncn_progname}; ac_word=$2
  10645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10646. $as_echo_n "checking for $ac_word... " >&6; }
  10647. if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
  10648. $as_echo_n "(cached) " >&6
  10649. else
  10650. if test -n "$LIPO_FOR_TARGET"; then
  10651. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  10652. else
  10653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10654. for as_dir in $PATH
  10655. do
  10656. IFS=$as_save_IFS
  10657. test -z "$as_dir" && as_dir=.
  10658. for ac_exec_ext in '' $ac_executable_extensions; do
  10659. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10660. ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
  10661. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10662. break 2
  10663. fi
  10664. done
  10665. done
  10666. IFS=$as_save_IFS
  10667. fi
  10668. fi
  10669. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10670. if test -n "$LIPO_FOR_TARGET"; then
  10671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10672. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10673. else
  10674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10675. $as_echo "no" >&6; }
  10676. fi
  10677. done
  10678. fi
  10679. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10680. for ncn_progname in lipo; do
  10681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10682. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10683. if test -x $with_build_time_tools/${ncn_progname}; then
  10684. ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10686. $as_echo "yes" >&6; }
  10687. break
  10688. else
  10689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10690. $as_echo "no" >&6; }
  10691. fi
  10692. done
  10693. fi
  10694. if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
  10695. for ncn_progname in lipo; do
  10696. if test -n "$ncn_target_tool_prefix"; then
  10697. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10698. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10700. $as_echo_n "checking for $ac_word... " >&6; }
  10701. if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
  10702. $as_echo_n "(cached) " >&6
  10703. else
  10704. if test -n "$LIPO_FOR_TARGET"; then
  10705. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  10706. else
  10707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10708. for as_dir in $PATH
  10709. do
  10710. IFS=$as_save_IFS
  10711. test -z "$as_dir" && as_dir=.
  10712. for ac_exec_ext in '' $ac_executable_extensions; do
  10713. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10714. ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10716. break 2
  10717. fi
  10718. done
  10719. done
  10720. IFS=$as_save_IFS
  10721. fi
  10722. fi
  10723. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10724. if test -n "$LIPO_FOR_TARGET"; then
  10725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10726. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10727. else
  10728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10729. $as_echo "no" >&6; }
  10730. fi
  10731. fi
  10732. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
  10733. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10734. set dummy ${ncn_progname}; ac_word=$2
  10735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10736. $as_echo_n "checking for $ac_word... " >&6; }
  10737. if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
  10738. $as_echo_n "(cached) " >&6
  10739. else
  10740. if test -n "$LIPO_FOR_TARGET"; then
  10741. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  10742. else
  10743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10744. for as_dir in $PATH
  10745. do
  10746. IFS=$as_save_IFS
  10747. test -z "$as_dir" && as_dir=.
  10748. for ac_exec_ext in '' $ac_executable_extensions; do
  10749. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10750. ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
  10751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10752. break 2
  10753. fi
  10754. done
  10755. done
  10756. IFS=$as_save_IFS
  10757. fi
  10758. fi
  10759. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10760. if test -n "$LIPO_FOR_TARGET"; then
  10761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10762. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10763. else
  10764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10765. $as_echo "no" >&6; }
  10766. fi
  10767. fi
  10768. test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
  10769. done
  10770. fi
  10771. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
  10772. set dummy lipo
  10773. if test $build = $target ; then
  10774. LIPO_FOR_TARGET="$2"
  10775. else
  10776. LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10777. fi
  10778. else
  10779. LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
  10780. fi
  10781. else
  10782. LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
  10783. fi
  10784. if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
  10785. if test -n "$with_build_time_tools"; then
  10786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
  10787. $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
  10788. if test -x $with_build_time_tools/nm; then
  10789. NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
  10790. ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
  10791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
  10792. $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
  10793. else
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10795. $as_echo "no" >&6; }
  10796. fi
  10797. elif test $build != $host && test $have_gcc_for_target = yes; then
  10798. NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
  10799. test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
  10800. test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
  10801. fi
  10802. fi
  10803. if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10804. # Extract the first word of "nm", so it can be a program name with args.
  10805. set dummy nm; ac_word=$2
  10806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10807. $as_echo_n "checking for $ac_word... " >&6; }
  10808. if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
  10809. $as_echo_n "(cached) " >&6
  10810. else
  10811. case $NM_FOR_TARGET in
  10812. [\\/]* | ?:[\\/]*)
  10813. ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
  10814. ;;
  10815. *)
  10816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10817. for as_dir in $gcc_cv_tool_dirs
  10818. do
  10819. IFS=$as_save_IFS
  10820. test -z "$as_dir" && as_dir=.
  10821. for ac_exec_ext in '' $ac_executable_extensions; do
  10822. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10823. ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10825. break 2
  10826. fi
  10827. done
  10828. done
  10829. IFS=$as_save_IFS
  10830. ;;
  10831. esac
  10832. fi
  10833. NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
  10834. if test -n "$NM_FOR_TARGET"; then
  10835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10836. $as_echo "$NM_FOR_TARGET" >&6; }
  10837. else
  10838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10839. $as_echo "no" >&6; }
  10840. fi
  10841. fi
  10842. if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
  10843. if test -n "$NM_FOR_TARGET"; then
  10844. ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
  10845. elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
  10846. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10847. fi
  10848. if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
  10849. for ncn_progname in nm; do
  10850. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10851. set dummy ${ncn_progname}; ac_word=$2
  10852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10853. $as_echo_n "checking for $ac_word... " >&6; }
  10854. if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
  10855. $as_echo_n "(cached) " >&6
  10856. else
  10857. if test -n "$NM_FOR_TARGET"; then
  10858. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  10859. else
  10860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10861. for as_dir in $PATH
  10862. do
  10863. IFS=$as_save_IFS
  10864. test -z "$as_dir" && as_dir=.
  10865. for ac_exec_ext in '' $ac_executable_extensions; do
  10866. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10867. ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
  10868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10869. break 2
  10870. fi
  10871. done
  10872. done
  10873. IFS=$as_save_IFS
  10874. fi
  10875. fi
  10876. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10877. if test -n "$NM_FOR_TARGET"; then
  10878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10879. $as_echo "$NM_FOR_TARGET" >&6; }
  10880. else
  10881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10882. $as_echo "no" >&6; }
  10883. fi
  10884. done
  10885. fi
  10886. if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10887. for ncn_progname in nm; do
  10888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10889. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10890. if test -x $with_build_time_tools/${ncn_progname}; then
  10891. ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10893. $as_echo "yes" >&6; }
  10894. break
  10895. else
  10896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10897. $as_echo "no" >&6; }
  10898. fi
  10899. done
  10900. fi
  10901. if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
  10902. for ncn_progname in nm; do
  10903. if test -n "$ncn_target_tool_prefix"; then
  10904. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10905. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10907. $as_echo_n "checking for $ac_word... " >&6; }
  10908. if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
  10909. $as_echo_n "(cached) " >&6
  10910. else
  10911. if test -n "$NM_FOR_TARGET"; then
  10912. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  10913. else
  10914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10915. for as_dir in $PATH
  10916. do
  10917. IFS=$as_save_IFS
  10918. test -z "$as_dir" && as_dir=.
  10919. for ac_exec_ext in '' $ac_executable_extensions; do
  10920. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10921. ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10922. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10923. break 2
  10924. fi
  10925. done
  10926. done
  10927. IFS=$as_save_IFS
  10928. fi
  10929. fi
  10930. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10931. if test -n "$NM_FOR_TARGET"; then
  10932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10933. $as_echo "$NM_FOR_TARGET" >&6; }
  10934. else
  10935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10936. $as_echo "no" >&6; }
  10937. fi
  10938. fi
  10939. if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
  10940. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10941. set dummy ${ncn_progname}; ac_word=$2
  10942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10943. $as_echo_n "checking for $ac_word... " >&6; }
  10944. if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
  10945. $as_echo_n "(cached) " >&6
  10946. else
  10947. if test -n "$NM_FOR_TARGET"; then
  10948. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  10949. else
  10950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10951. for as_dir in $PATH
  10952. do
  10953. IFS=$as_save_IFS
  10954. test -z "$as_dir" && as_dir=.
  10955. for ac_exec_ext in '' $ac_executable_extensions; do
  10956. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10957. ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
  10958. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10959. break 2
  10960. fi
  10961. done
  10962. done
  10963. IFS=$as_save_IFS
  10964. fi
  10965. fi
  10966. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10967. if test -n "$NM_FOR_TARGET"; then
  10968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10969. $as_echo "$NM_FOR_TARGET" >&6; }
  10970. else
  10971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10972. $as_echo "no" >&6; }
  10973. fi
  10974. fi
  10975. test -n "$ac_cv_prog_NM_FOR_TARGET" && break
  10976. done
  10977. fi
  10978. if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
  10979. set dummy nm
  10980. if test $build = $target ; then
  10981. NM_FOR_TARGET="$2"
  10982. else
  10983. NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10984. fi
  10985. else
  10986. NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
  10987. fi
  10988. else
  10989. NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
  10990. fi
  10991. if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
  10992. if test -n "$with_build_time_tools"; then
  10993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
  10994. $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
  10995. if test -x $with_build_time_tools/objcopy; then
  10996. OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
  10997. ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
  10998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
  10999. $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
  11000. else
  11001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11002. $as_echo "no" >&6; }
  11003. fi
  11004. elif test $build != $host && test $have_gcc_for_target = yes; then
  11005. OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
  11006. test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
  11007. test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
  11008. fi
  11009. fi
  11010. if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11011. # Extract the first word of "objcopy", so it can be a program name with args.
  11012. set dummy objcopy; ac_word=$2
  11013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11014. $as_echo_n "checking for $ac_word... " >&6; }
  11015. if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
  11016. $as_echo_n "(cached) " >&6
  11017. else
  11018. case $OBJCOPY_FOR_TARGET in
  11019. [\\/]* | ?:[\\/]*)
  11020. ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
  11021. ;;
  11022. *)
  11023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11024. for as_dir in $gcc_cv_tool_dirs
  11025. do
  11026. IFS=$as_save_IFS
  11027. test -z "$as_dir" && as_dir=.
  11028. for ac_exec_ext in '' $ac_executable_extensions; do
  11029. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11030. ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11032. break 2
  11033. fi
  11034. done
  11035. done
  11036. IFS=$as_save_IFS
  11037. ;;
  11038. esac
  11039. fi
  11040. OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
  11041. if test -n "$OBJCOPY_FOR_TARGET"; then
  11042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  11043. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  11044. else
  11045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11046. $as_echo "no" >&6; }
  11047. fi
  11048. fi
  11049. if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
  11050. if test -n "$OBJCOPY_FOR_TARGET"; then
  11051. ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
  11052. elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
  11053. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  11054. fi
  11055. if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
  11056. for ncn_progname in objcopy; do
  11057. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11058. set dummy ${ncn_progname}; ac_word=$2
  11059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11060. $as_echo_n "checking for $ac_word... " >&6; }
  11061. if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
  11062. $as_echo_n "(cached) " >&6
  11063. else
  11064. if test -n "$OBJCOPY_FOR_TARGET"; then
  11065. ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
  11066. else
  11067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11068. for as_dir in $PATH
  11069. do
  11070. IFS=$as_save_IFS
  11071. test -z "$as_dir" && as_dir=.
  11072. for ac_exec_ext in '' $ac_executable_extensions; do
  11073. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11074. ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
  11075. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11076. break 2
  11077. fi
  11078. done
  11079. done
  11080. IFS=$as_save_IFS
  11081. fi
  11082. fi
  11083. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  11084. if test -n "$OBJCOPY_FOR_TARGET"; then
  11085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  11086. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  11087. else
  11088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11089. $as_echo "no" >&6; }
  11090. fi
  11091. done
  11092. fi
  11093. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11094. for ncn_progname in objcopy; do
  11095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11096. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11097. if test -x $with_build_time_tools/${ncn_progname}; then
  11098. ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11100. $as_echo "yes" >&6; }
  11101. break
  11102. else
  11103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11104. $as_echo "no" >&6; }
  11105. fi
  11106. done
  11107. fi
  11108. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
  11109. for ncn_progname in objcopy; do
  11110. if test -n "$ncn_target_tool_prefix"; then
  11111. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11112. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11114. $as_echo_n "checking for $ac_word... " >&6; }
  11115. if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
  11116. $as_echo_n "(cached) " >&6
  11117. else
  11118. if test -n "$OBJCOPY_FOR_TARGET"; then
  11119. ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
  11120. else
  11121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11122. for as_dir in $PATH
  11123. do
  11124. IFS=$as_save_IFS
  11125. test -z "$as_dir" && as_dir=.
  11126. for ac_exec_ext in '' $ac_executable_extensions; do
  11127. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11128. ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11129. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11130. break 2
  11131. fi
  11132. done
  11133. done
  11134. IFS=$as_save_IFS
  11135. fi
  11136. fi
  11137. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  11138. if test -n "$OBJCOPY_FOR_TARGET"; then
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  11140. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  11141. else
  11142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11143. $as_echo "no" >&6; }
  11144. fi
  11145. fi
  11146. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
  11147. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11148. set dummy ${ncn_progname}; ac_word=$2
  11149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11150. $as_echo_n "checking for $ac_word... " >&6; }
  11151. if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
  11152. $as_echo_n "(cached) " >&6
  11153. else
  11154. if test -n "$OBJCOPY_FOR_TARGET"; then
  11155. ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
  11156. else
  11157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11158. for as_dir in $PATH
  11159. do
  11160. IFS=$as_save_IFS
  11161. test -z "$as_dir" && as_dir=.
  11162. for ac_exec_ext in '' $ac_executable_extensions; do
  11163. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11164. ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
  11165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11166. break 2
  11167. fi
  11168. done
  11169. done
  11170. IFS=$as_save_IFS
  11171. fi
  11172. fi
  11173. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  11174. if test -n "$OBJCOPY_FOR_TARGET"; then
  11175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  11176. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  11177. else
  11178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11179. $as_echo "no" >&6; }
  11180. fi
  11181. fi
  11182. test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
  11183. done
  11184. fi
  11185. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
  11186. set dummy objcopy
  11187. if test $build = $target ; then
  11188. OBJCOPY_FOR_TARGET="$2"
  11189. else
  11190. OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11191. fi
  11192. else
  11193. OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
  11194. fi
  11195. else
  11196. OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
  11197. fi
  11198. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
  11199. if test -n "$with_build_time_tools"; then
  11200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
  11201. $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
  11202. if test -x $with_build_time_tools/objdump; then
  11203. OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
  11204. ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  11205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
  11206. $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
  11207. else
  11208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11209. $as_echo "no" >&6; }
  11210. fi
  11211. elif test $build != $host && test $have_gcc_for_target = yes; then
  11212. OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
  11213. test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
  11214. test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  11215. fi
  11216. fi
  11217. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11218. # Extract the first word of "objdump", so it can be a program name with args.
  11219. set dummy objdump; ac_word=$2
  11220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11221. $as_echo_n "checking for $ac_word... " >&6; }
  11222. if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
  11223. $as_echo_n "(cached) " >&6
  11224. else
  11225. case $OBJDUMP_FOR_TARGET in
  11226. [\\/]* | ?:[\\/]*)
  11227. ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
  11228. ;;
  11229. *)
  11230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11231. for as_dir in $gcc_cv_tool_dirs
  11232. do
  11233. IFS=$as_save_IFS
  11234. test -z "$as_dir" && as_dir=.
  11235. for ac_exec_ext in '' $ac_executable_extensions; do
  11236. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11237. ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11238. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11239. break 2
  11240. fi
  11241. done
  11242. done
  11243. IFS=$as_save_IFS
  11244. ;;
  11245. esac
  11246. fi
  11247. OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
  11248. if test -n "$OBJDUMP_FOR_TARGET"; then
  11249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  11250. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  11251. else
  11252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11253. $as_echo "no" >&6; }
  11254. fi
  11255. fi
  11256. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
  11257. if test -n "$OBJDUMP_FOR_TARGET"; then
  11258. ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  11259. elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  11260. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  11261. fi
  11262. if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  11263. for ncn_progname in objdump; do
  11264. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11265. set dummy ${ncn_progname}; ac_word=$2
  11266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11267. $as_echo_n "checking for $ac_word... " >&6; }
  11268. if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
  11269. $as_echo_n "(cached) " >&6
  11270. else
  11271. if test -n "$OBJDUMP_FOR_TARGET"; then
  11272. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  11273. else
  11274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11275. for as_dir in $PATH
  11276. do
  11277. IFS=$as_save_IFS
  11278. test -z "$as_dir" && as_dir=.
  11279. for ac_exec_ext in '' $ac_executable_extensions; do
  11280. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11281. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
  11282. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11283. break 2
  11284. fi
  11285. done
  11286. done
  11287. IFS=$as_save_IFS
  11288. fi
  11289. fi
  11290. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  11291. if test -n "$OBJDUMP_FOR_TARGET"; then
  11292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  11293. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  11294. else
  11295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11296. $as_echo "no" >&6; }
  11297. fi
  11298. done
  11299. fi
  11300. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11301. for ncn_progname in objdump; do
  11302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11303. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11304. if test -x $with_build_time_tools/${ncn_progname}; then
  11305. ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11307. $as_echo "yes" >&6; }
  11308. break
  11309. else
  11310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11311. $as_echo "no" >&6; }
  11312. fi
  11313. done
  11314. fi
  11315. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  11316. for ncn_progname in objdump; do
  11317. if test -n "$ncn_target_tool_prefix"; then
  11318. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11319. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11321. $as_echo_n "checking for $ac_word... " >&6; }
  11322. if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
  11323. $as_echo_n "(cached) " >&6
  11324. else
  11325. if test -n "$OBJDUMP_FOR_TARGET"; then
  11326. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  11327. else
  11328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11329. for as_dir in $PATH
  11330. do
  11331. IFS=$as_save_IFS
  11332. test -z "$as_dir" && as_dir=.
  11333. for ac_exec_ext in '' $ac_executable_extensions; do
  11334. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11335. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11336. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11337. break 2
  11338. fi
  11339. done
  11340. done
  11341. IFS=$as_save_IFS
  11342. fi
  11343. fi
  11344. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  11345. if test -n "$OBJDUMP_FOR_TARGET"; then
  11346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  11347. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  11348. else
  11349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11350. $as_echo "no" >&6; }
  11351. fi
  11352. fi
  11353. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
  11354. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11355. set dummy ${ncn_progname}; ac_word=$2
  11356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11357. $as_echo_n "checking for $ac_word... " >&6; }
  11358. if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
  11359. $as_echo_n "(cached) " >&6
  11360. else
  11361. if test -n "$OBJDUMP_FOR_TARGET"; then
  11362. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  11363. else
  11364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11365. for as_dir in $PATH
  11366. do
  11367. IFS=$as_save_IFS
  11368. test -z "$as_dir" && as_dir=.
  11369. for ac_exec_ext in '' $ac_executable_extensions; do
  11370. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11371. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
  11372. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11373. break 2
  11374. fi
  11375. done
  11376. done
  11377. IFS=$as_save_IFS
  11378. fi
  11379. fi
  11380. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  11381. if test -n "$OBJDUMP_FOR_TARGET"; then
  11382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  11383. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  11384. else
  11385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11386. $as_echo "no" >&6; }
  11387. fi
  11388. fi
  11389. test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
  11390. done
  11391. fi
  11392. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
  11393. set dummy objdump
  11394. if test $build = $target ; then
  11395. OBJDUMP_FOR_TARGET="$2"
  11396. else
  11397. OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11398. fi
  11399. else
  11400. OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
  11401. fi
  11402. else
  11403. OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
  11404. fi
  11405. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
  11406. if test -n "$with_build_time_tools"; then
  11407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
  11408. $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
  11409. if test -x $with_build_time_tools/ranlib; then
  11410. RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
  11411. ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  11412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
  11413. $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
  11414. else
  11415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11416. $as_echo "no" >&6; }
  11417. fi
  11418. elif test $build != $host && test $have_gcc_for_target = yes; then
  11419. RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
  11420. test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
  11421. test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  11422. fi
  11423. fi
  11424. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11425. # Extract the first word of "ranlib", so it can be a program name with args.
  11426. set dummy ranlib; ac_word=$2
  11427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11428. $as_echo_n "checking for $ac_word... " >&6; }
  11429. if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
  11430. $as_echo_n "(cached) " >&6
  11431. else
  11432. case $RANLIB_FOR_TARGET in
  11433. [\\/]* | ?:[\\/]*)
  11434. ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
  11435. ;;
  11436. *)
  11437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11438. for as_dir in $gcc_cv_tool_dirs
  11439. do
  11440. IFS=$as_save_IFS
  11441. test -z "$as_dir" && as_dir=.
  11442. for ac_exec_ext in '' $ac_executable_extensions; do
  11443. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11444. ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11445. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11446. break 2
  11447. fi
  11448. done
  11449. done
  11450. IFS=$as_save_IFS
  11451. ;;
  11452. esac
  11453. fi
  11454. RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
  11455. if test -n "$RANLIB_FOR_TARGET"; then
  11456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11457. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11458. else
  11459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11460. $as_echo "no" >&6; }
  11461. fi
  11462. fi
  11463. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
  11464. if test -n "$RANLIB_FOR_TARGET"; then
  11465. ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  11466. elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  11467. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11468. fi
  11469. if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  11470. for ncn_progname in ranlib; do
  11471. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11472. set dummy ${ncn_progname}; ac_word=$2
  11473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11474. $as_echo_n "checking for $ac_word... " >&6; }
  11475. if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
  11476. $as_echo_n "(cached) " >&6
  11477. else
  11478. if test -n "$RANLIB_FOR_TARGET"; then
  11479. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  11480. else
  11481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11482. for as_dir in $PATH
  11483. do
  11484. IFS=$as_save_IFS
  11485. test -z "$as_dir" && as_dir=.
  11486. for ac_exec_ext in '' $ac_executable_extensions; do
  11487. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11488. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
  11489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11490. break 2
  11491. fi
  11492. done
  11493. done
  11494. IFS=$as_save_IFS
  11495. fi
  11496. fi
  11497. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11498. if test -n "$RANLIB_FOR_TARGET"; then
  11499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11500. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11501. else
  11502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11503. $as_echo "no" >&6; }
  11504. fi
  11505. done
  11506. fi
  11507. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11508. for ncn_progname in ranlib; do
  11509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11510. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11511. if test -x $with_build_time_tools/${ncn_progname}; then
  11512. ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11514. $as_echo "yes" >&6; }
  11515. break
  11516. else
  11517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11518. $as_echo "no" >&6; }
  11519. fi
  11520. done
  11521. fi
  11522. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  11523. for ncn_progname in ranlib; do
  11524. if test -n "$ncn_target_tool_prefix"; then
  11525. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11526. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11528. $as_echo_n "checking for $ac_word... " >&6; }
  11529. if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
  11530. $as_echo_n "(cached) " >&6
  11531. else
  11532. if test -n "$RANLIB_FOR_TARGET"; then
  11533. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  11534. else
  11535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11536. for as_dir in $PATH
  11537. do
  11538. IFS=$as_save_IFS
  11539. test -z "$as_dir" && as_dir=.
  11540. for ac_exec_ext in '' $ac_executable_extensions; do
  11541. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11542. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11543. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11544. break 2
  11545. fi
  11546. done
  11547. done
  11548. IFS=$as_save_IFS
  11549. fi
  11550. fi
  11551. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11552. if test -n "$RANLIB_FOR_TARGET"; then
  11553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11554. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11555. else
  11556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11557. $as_echo "no" >&6; }
  11558. fi
  11559. fi
  11560. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
  11561. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11562. set dummy ${ncn_progname}; ac_word=$2
  11563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11564. $as_echo_n "checking for $ac_word... " >&6; }
  11565. if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
  11566. $as_echo_n "(cached) " >&6
  11567. else
  11568. if test -n "$RANLIB_FOR_TARGET"; then
  11569. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  11570. else
  11571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11572. for as_dir in $PATH
  11573. do
  11574. IFS=$as_save_IFS
  11575. test -z "$as_dir" && as_dir=.
  11576. for ac_exec_ext in '' $ac_executable_extensions; do
  11577. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11578. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
  11579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11580. break 2
  11581. fi
  11582. done
  11583. done
  11584. IFS=$as_save_IFS
  11585. fi
  11586. fi
  11587. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11588. if test -n "$RANLIB_FOR_TARGET"; then
  11589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11590. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11591. else
  11592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11593. $as_echo "no" >&6; }
  11594. fi
  11595. fi
  11596. test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
  11597. done
  11598. fi
  11599. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
  11600. set dummy ranlib
  11601. if test $build = $target ; then
  11602. RANLIB_FOR_TARGET="$2"
  11603. else
  11604. RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11605. fi
  11606. else
  11607. RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
  11608. fi
  11609. else
  11610. RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
  11611. fi
  11612. if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
  11613. if test -n "$with_build_time_tools"; then
  11614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
  11615. $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
  11616. if test -x $with_build_time_tools/readelf; then
  11617. READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
  11618. ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
  11619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
  11620. $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
  11621. else
  11622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11623. $as_echo "no" >&6; }
  11624. fi
  11625. elif test $build != $host && test $have_gcc_for_target = yes; then
  11626. READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
  11627. test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
  11628. test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
  11629. fi
  11630. fi
  11631. if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11632. # Extract the first word of "readelf", so it can be a program name with args.
  11633. set dummy readelf; ac_word=$2
  11634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11635. $as_echo_n "checking for $ac_word... " >&6; }
  11636. if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
  11637. $as_echo_n "(cached) " >&6
  11638. else
  11639. case $READELF_FOR_TARGET in
  11640. [\\/]* | ?:[\\/]*)
  11641. ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
  11642. ;;
  11643. *)
  11644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11645. for as_dir in $gcc_cv_tool_dirs
  11646. do
  11647. IFS=$as_save_IFS
  11648. test -z "$as_dir" && as_dir=.
  11649. for ac_exec_ext in '' $ac_executable_extensions; do
  11650. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11651. ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11653. break 2
  11654. fi
  11655. done
  11656. done
  11657. IFS=$as_save_IFS
  11658. ;;
  11659. esac
  11660. fi
  11661. READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
  11662. if test -n "$READELF_FOR_TARGET"; then
  11663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  11664. $as_echo "$READELF_FOR_TARGET" >&6; }
  11665. else
  11666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11667. $as_echo "no" >&6; }
  11668. fi
  11669. fi
  11670. if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
  11671. if test -n "$READELF_FOR_TARGET"; then
  11672. ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
  11673. elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
  11674. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  11675. fi
  11676. if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
  11677. for ncn_progname in readelf; do
  11678. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11679. set dummy ${ncn_progname}; ac_word=$2
  11680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11681. $as_echo_n "checking for $ac_word... " >&6; }
  11682. if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
  11683. $as_echo_n "(cached) " >&6
  11684. else
  11685. if test -n "$READELF_FOR_TARGET"; then
  11686. ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
  11687. else
  11688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11689. for as_dir in $PATH
  11690. do
  11691. IFS=$as_save_IFS
  11692. test -z "$as_dir" && as_dir=.
  11693. for ac_exec_ext in '' $ac_executable_extensions; do
  11694. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11695. ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
  11696. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11697. break 2
  11698. fi
  11699. done
  11700. done
  11701. IFS=$as_save_IFS
  11702. fi
  11703. fi
  11704. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  11705. if test -n "$READELF_FOR_TARGET"; then
  11706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  11707. $as_echo "$READELF_FOR_TARGET" >&6; }
  11708. else
  11709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11710. $as_echo "no" >&6; }
  11711. fi
  11712. done
  11713. fi
  11714. if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11715. for ncn_progname in readelf; do
  11716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11717. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11718. if test -x $with_build_time_tools/${ncn_progname}; then
  11719. ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11721. $as_echo "yes" >&6; }
  11722. break
  11723. else
  11724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11725. $as_echo "no" >&6; }
  11726. fi
  11727. done
  11728. fi
  11729. if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
  11730. for ncn_progname in readelf; do
  11731. if test -n "$ncn_target_tool_prefix"; then
  11732. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11733. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11735. $as_echo_n "checking for $ac_word... " >&6; }
  11736. if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
  11737. $as_echo_n "(cached) " >&6
  11738. else
  11739. if test -n "$READELF_FOR_TARGET"; then
  11740. ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
  11741. else
  11742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11743. for as_dir in $PATH
  11744. do
  11745. IFS=$as_save_IFS
  11746. test -z "$as_dir" && as_dir=.
  11747. for ac_exec_ext in '' $ac_executable_extensions; do
  11748. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11749. ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11751. break 2
  11752. fi
  11753. done
  11754. done
  11755. IFS=$as_save_IFS
  11756. fi
  11757. fi
  11758. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  11759. if test -n "$READELF_FOR_TARGET"; then
  11760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  11761. $as_echo "$READELF_FOR_TARGET" >&6; }
  11762. else
  11763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11764. $as_echo "no" >&6; }
  11765. fi
  11766. fi
  11767. if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
  11768. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11769. set dummy ${ncn_progname}; ac_word=$2
  11770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11771. $as_echo_n "checking for $ac_word... " >&6; }
  11772. if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
  11773. $as_echo_n "(cached) " >&6
  11774. else
  11775. if test -n "$READELF_FOR_TARGET"; then
  11776. ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
  11777. else
  11778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11779. for as_dir in $PATH
  11780. do
  11781. IFS=$as_save_IFS
  11782. test -z "$as_dir" && as_dir=.
  11783. for ac_exec_ext in '' $ac_executable_extensions; do
  11784. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11785. ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
  11786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11787. break 2
  11788. fi
  11789. done
  11790. done
  11791. IFS=$as_save_IFS
  11792. fi
  11793. fi
  11794. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  11795. if test -n "$READELF_FOR_TARGET"; then
  11796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  11797. $as_echo "$READELF_FOR_TARGET" >&6; }
  11798. else
  11799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11800. $as_echo "no" >&6; }
  11801. fi
  11802. fi
  11803. test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
  11804. done
  11805. fi
  11806. if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
  11807. set dummy readelf
  11808. if test $build = $target ; then
  11809. READELF_FOR_TARGET="$2"
  11810. else
  11811. READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11812. fi
  11813. else
  11814. READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
  11815. fi
  11816. else
  11817. READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
  11818. fi
  11819. if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
  11820. if test -n "$with_build_time_tools"; then
  11821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
  11822. $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
  11823. if test -x $with_build_time_tools/strip; then
  11824. STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
  11825. ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  11826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
  11827. $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
  11828. else
  11829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11830. $as_echo "no" >&6; }
  11831. fi
  11832. elif test $build != $host && test $have_gcc_for_target = yes; then
  11833. STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
  11834. test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
  11835. test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  11836. fi
  11837. fi
  11838. if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11839. # Extract the first word of "strip", so it can be a program name with args.
  11840. set dummy strip; ac_word=$2
  11841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11842. $as_echo_n "checking for $ac_word... " >&6; }
  11843. if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
  11844. $as_echo_n "(cached) " >&6
  11845. else
  11846. case $STRIP_FOR_TARGET in
  11847. [\\/]* | ?:[\\/]*)
  11848. ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
  11849. ;;
  11850. *)
  11851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11852. for as_dir in $gcc_cv_tool_dirs
  11853. do
  11854. IFS=$as_save_IFS
  11855. test -z "$as_dir" && as_dir=.
  11856. for ac_exec_ext in '' $ac_executable_extensions; do
  11857. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11858. ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11860. break 2
  11861. fi
  11862. done
  11863. done
  11864. IFS=$as_save_IFS
  11865. ;;
  11866. esac
  11867. fi
  11868. STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
  11869. if test -n "$STRIP_FOR_TARGET"; then
  11870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11871. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11872. else
  11873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11874. $as_echo "no" >&6; }
  11875. fi
  11876. fi
  11877. if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
  11878. if test -n "$STRIP_FOR_TARGET"; then
  11879. ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  11880. elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
  11881. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11882. fi
  11883. if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
  11884. for ncn_progname in strip; do
  11885. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11886. set dummy ${ncn_progname}; ac_word=$2
  11887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11888. $as_echo_n "checking for $ac_word... " >&6; }
  11889. if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
  11890. $as_echo_n "(cached) " >&6
  11891. else
  11892. if test -n "$STRIP_FOR_TARGET"; then
  11893. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  11894. else
  11895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11896. for as_dir in $PATH
  11897. do
  11898. IFS=$as_save_IFS
  11899. test -z "$as_dir" && as_dir=.
  11900. for ac_exec_ext in '' $ac_executable_extensions; do
  11901. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11902. ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
  11903. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11904. break 2
  11905. fi
  11906. done
  11907. done
  11908. IFS=$as_save_IFS
  11909. fi
  11910. fi
  11911. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11912. if test -n "$STRIP_FOR_TARGET"; then
  11913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11914. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11915. else
  11916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11917. $as_echo "no" >&6; }
  11918. fi
  11919. done
  11920. fi
  11921. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11922. for ncn_progname in strip; do
  11923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11924. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11925. if test -x $with_build_time_tools/${ncn_progname}; then
  11926. ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11928. $as_echo "yes" >&6; }
  11929. break
  11930. else
  11931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11932. $as_echo "no" >&6; }
  11933. fi
  11934. done
  11935. fi
  11936. if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
  11937. for ncn_progname in strip; do
  11938. if test -n "$ncn_target_tool_prefix"; then
  11939. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11940. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11942. $as_echo_n "checking for $ac_word... " >&6; }
  11943. if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
  11944. $as_echo_n "(cached) " >&6
  11945. else
  11946. if test -n "$STRIP_FOR_TARGET"; then
  11947. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  11948. else
  11949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11950. for as_dir in $PATH
  11951. do
  11952. IFS=$as_save_IFS
  11953. test -z "$as_dir" && as_dir=.
  11954. for ac_exec_ext in '' $ac_executable_extensions; do
  11955. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11956. ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11958. break 2
  11959. fi
  11960. done
  11961. done
  11962. IFS=$as_save_IFS
  11963. fi
  11964. fi
  11965. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11966. if test -n "$STRIP_FOR_TARGET"; then
  11967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11968. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11969. else
  11970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11971. $as_echo "no" >&6; }
  11972. fi
  11973. fi
  11974. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
  11975. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11976. set dummy ${ncn_progname}; ac_word=$2
  11977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11978. $as_echo_n "checking for $ac_word... " >&6; }
  11979. if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
  11980. $as_echo_n "(cached) " >&6
  11981. else
  11982. if test -n "$STRIP_FOR_TARGET"; then
  11983. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  11984. else
  11985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11986. for as_dir in $PATH
  11987. do
  11988. IFS=$as_save_IFS
  11989. test -z "$as_dir" && as_dir=.
  11990. for ac_exec_ext in '' $ac_executable_extensions; do
  11991. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11992. ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
  11993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11994. break 2
  11995. fi
  11996. done
  11997. done
  11998. IFS=$as_save_IFS
  11999. fi
  12000. fi
  12001. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  12002. if test -n "$STRIP_FOR_TARGET"; then
  12003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  12004. $as_echo "$STRIP_FOR_TARGET" >&6; }
  12005. else
  12006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12007. $as_echo "no" >&6; }
  12008. fi
  12009. fi
  12010. test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
  12011. done
  12012. fi
  12013. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
  12014. set dummy strip
  12015. if test $build = $target ; then
  12016. STRIP_FOR_TARGET="$2"
  12017. else
  12018. STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
  12019. fi
  12020. else
  12021. STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
  12022. fi
  12023. else
  12024. STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
  12025. fi
  12026. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
  12027. if test -n "$with_build_time_tools"; then
  12028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
  12029. $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
  12030. if test -x $with_build_time_tools/windres; then
  12031. WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
  12032. ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  12033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
  12034. $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
  12035. else
  12036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12037. $as_echo "no" >&6; }
  12038. fi
  12039. elif test $build != $host && test $have_gcc_for_target = yes; then
  12040. WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
  12041. test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
  12042. test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  12043. fi
  12044. fi
  12045. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  12046. # Extract the first word of "windres", so it can be a program name with args.
  12047. set dummy windres; ac_word=$2
  12048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12049. $as_echo_n "checking for $ac_word... " >&6; }
  12050. if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
  12051. $as_echo_n "(cached) " >&6
  12052. else
  12053. case $WINDRES_FOR_TARGET in
  12054. [\\/]* | ?:[\\/]*)
  12055. ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
  12056. ;;
  12057. *)
  12058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12059. for as_dir in $gcc_cv_tool_dirs
  12060. do
  12061. IFS=$as_save_IFS
  12062. test -z "$as_dir" && as_dir=.
  12063. for ac_exec_ext in '' $ac_executable_extensions; do
  12064. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12065. ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  12066. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12067. break 2
  12068. fi
  12069. done
  12070. done
  12071. IFS=$as_save_IFS
  12072. ;;
  12073. esac
  12074. fi
  12075. WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
  12076. if test -n "$WINDRES_FOR_TARGET"; then
  12077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  12078. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  12079. else
  12080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12081. $as_echo "no" >&6; }
  12082. fi
  12083. fi
  12084. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
  12085. if test -n "$WINDRES_FOR_TARGET"; then
  12086. ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  12087. elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  12088. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  12089. fi
  12090. if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  12091. for ncn_progname in windres; do
  12092. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12093. set dummy ${ncn_progname}; ac_word=$2
  12094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12095. $as_echo_n "checking for $ac_word... " >&6; }
  12096. if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
  12097. $as_echo_n "(cached) " >&6
  12098. else
  12099. if test -n "$WINDRES_FOR_TARGET"; then
  12100. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  12101. else
  12102. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12103. for as_dir in $PATH
  12104. do
  12105. IFS=$as_save_IFS
  12106. test -z "$as_dir" && as_dir=.
  12107. for ac_exec_ext in '' $ac_executable_extensions; do
  12108. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12109. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
  12110. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12111. break 2
  12112. fi
  12113. done
  12114. done
  12115. IFS=$as_save_IFS
  12116. fi
  12117. fi
  12118. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  12119. if test -n "$WINDRES_FOR_TARGET"; then
  12120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  12121. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  12122. else
  12123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12124. $as_echo "no" >&6; }
  12125. fi
  12126. done
  12127. fi
  12128. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
  12129. for ncn_progname in windres; do
  12130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  12131. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  12132. if test -x $with_build_time_tools/${ncn_progname}; then
  12133. ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  12134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12135. $as_echo "yes" >&6; }
  12136. break
  12137. else
  12138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12139. $as_echo "no" >&6; }
  12140. fi
  12141. done
  12142. fi
  12143. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  12144. for ncn_progname in windres; do
  12145. if test -n "$ncn_target_tool_prefix"; then
  12146. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  12147. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  12148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12149. $as_echo_n "checking for $ac_word... " >&6; }
  12150. if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
  12151. $as_echo_n "(cached) " >&6
  12152. else
  12153. if test -n "$WINDRES_FOR_TARGET"; then
  12154. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  12155. else
  12156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12157. for as_dir in $PATH
  12158. do
  12159. IFS=$as_save_IFS
  12160. test -z "$as_dir" && as_dir=.
  12161. for ac_exec_ext in '' $ac_executable_extensions; do
  12162. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12163. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  12164. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12165. break 2
  12166. fi
  12167. done
  12168. done
  12169. IFS=$as_save_IFS
  12170. fi
  12171. fi
  12172. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  12173. if test -n "$WINDRES_FOR_TARGET"; then
  12174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  12175. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  12176. else
  12177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12178. $as_echo "no" >&6; }
  12179. fi
  12180. fi
  12181. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
  12182. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12183. set dummy ${ncn_progname}; ac_word=$2
  12184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12185. $as_echo_n "checking for $ac_word... " >&6; }
  12186. if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
  12187. $as_echo_n "(cached) " >&6
  12188. else
  12189. if test -n "$WINDRES_FOR_TARGET"; then
  12190. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  12191. else
  12192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12193. for as_dir in $PATH
  12194. do
  12195. IFS=$as_save_IFS
  12196. test -z "$as_dir" && as_dir=.
  12197. for ac_exec_ext in '' $ac_executable_extensions; do
  12198. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12199. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
  12200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12201. break 2
  12202. fi
  12203. done
  12204. done
  12205. IFS=$as_save_IFS
  12206. fi
  12207. fi
  12208. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  12209. if test -n "$WINDRES_FOR_TARGET"; then
  12210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  12211. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  12212. else
  12213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12214. $as_echo "no" >&6; }
  12215. fi
  12216. fi
  12217. test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
  12218. done
  12219. fi
  12220. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
  12221. set dummy windres
  12222. if test $build = $target ; then
  12223. WINDRES_FOR_TARGET="$2"
  12224. else
  12225. WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
  12226. fi
  12227. else
  12228. WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
  12229. fi
  12230. else
  12231. WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
  12232. fi
  12233. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
  12234. if test -n "$with_build_time_tools"; then
  12235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
  12236. $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
  12237. if test -x $with_build_time_tools/windmc; then
  12238. WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
  12239. ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  12240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
  12241. $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
  12242. else
  12243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12244. $as_echo "no" >&6; }
  12245. fi
  12246. elif test $build != $host && test $have_gcc_for_target = yes; then
  12247. WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
  12248. test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
  12249. test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  12250. fi
  12251. fi
  12252. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  12253. # Extract the first word of "windmc", so it can be a program name with args.
  12254. set dummy windmc; ac_word=$2
  12255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12256. $as_echo_n "checking for $ac_word... " >&6; }
  12257. if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
  12258. $as_echo_n "(cached) " >&6
  12259. else
  12260. case $WINDMC_FOR_TARGET in
  12261. [\\/]* | ?:[\\/]*)
  12262. ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
  12263. ;;
  12264. *)
  12265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12266. for as_dir in $gcc_cv_tool_dirs
  12267. do
  12268. IFS=$as_save_IFS
  12269. test -z "$as_dir" && as_dir=.
  12270. for ac_exec_ext in '' $ac_executable_extensions; do
  12271. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12272. ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  12273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12274. break 2
  12275. fi
  12276. done
  12277. done
  12278. IFS=$as_save_IFS
  12279. ;;
  12280. esac
  12281. fi
  12282. WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
  12283. if test -n "$WINDMC_FOR_TARGET"; then
  12284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  12285. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  12286. else
  12287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12288. $as_echo "no" >&6; }
  12289. fi
  12290. fi
  12291. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
  12292. if test -n "$WINDMC_FOR_TARGET"; then
  12293. ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  12294. elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  12295. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  12296. fi
  12297. if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  12298. for ncn_progname in windmc; do
  12299. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12300. set dummy ${ncn_progname}; ac_word=$2
  12301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12302. $as_echo_n "checking for $ac_word... " >&6; }
  12303. if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
  12304. $as_echo_n "(cached) " >&6
  12305. else
  12306. if test -n "$WINDMC_FOR_TARGET"; then
  12307. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  12308. else
  12309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12310. for as_dir in $PATH
  12311. do
  12312. IFS=$as_save_IFS
  12313. test -z "$as_dir" && as_dir=.
  12314. for ac_exec_ext in '' $ac_executable_extensions; do
  12315. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12316. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
  12317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12318. break 2
  12319. fi
  12320. done
  12321. done
  12322. IFS=$as_save_IFS
  12323. fi
  12324. fi
  12325. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  12326. if test -n "$WINDMC_FOR_TARGET"; then
  12327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  12328. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  12329. else
  12330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12331. $as_echo "no" >&6; }
  12332. fi
  12333. done
  12334. fi
  12335. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  12336. for ncn_progname in windmc; do
  12337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  12338. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  12339. if test -x $with_build_time_tools/${ncn_progname}; then
  12340. ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  12341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12342. $as_echo "yes" >&6; }
  12343. break
  12344. else
  12345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12346. $as_echo "no" >&6; }
  12347. fi
  12348. done
  12349. fi
  12350. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  12351. for ncn_progname in windmc; do
  12352. if test -n "$ncn_target_tool_prefix"; then
  12353. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  12354. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  12355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12356. $as_echo_n "checking for $ac_word... " >&6; }
  12357. if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
  12358. $as_echo_n "(cached) " >&6
  12359. else
  12360. if test -n "$WINDMC_FOR_TARGET"; then
  12361. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  12362. else
  12363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12364. for as_dir in $PATH
  12365. do
  12366. IFS=$as_save_IFS
  12367. test -z "$as_dir" && as_dir=.
  12368. for ac_exec_ext in '' $ac_executable_extensions; do
  12369. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12370. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  12371. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12372. break 2
  12373. fi
  12374. done
  12375. done
  12376. IFS=$as_save_IFS
  12377. fi
  12378. fi
  12379. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  12380. if test -n "$WINDMC_FOR_TARGET"; then
  12381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  12382. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  12383. else
  12384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12385. $as_echo "no" >&6; }
  12386. fi
  12387. fi
  12388. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
  12389. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12390. set dummy ${ncn_progname}; ac_word=$2
  12391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12392. $as_echo_n "checking for $ac_word... " >&6; }
  12393. if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
  12394. $as_echo_n "(cached) " >&6
  12395. else
  12396. if test -n "$WINDMC_FOR_TARGET"; then
  12397. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  12398. else
  12399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12400. for as_dir in $PATH
  12401. do
  12402. IFS=$as_save_IFS
  12403. test -z "$as_dir" && as_dir=.
  12404. for ac_exec_ext in '' $ac_executable_extensions; do
  12405. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12406. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
  12407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12408. break 2
  12409. fi
  12410. done
  12411. done
  12412. IFS=$as_save_IFS
  12413. fi
  12414. fi
  12415. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  12416. if test -n "$WINDMC_FOR_TARGET"; then
  12417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  12418. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  12419. else
  12420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12421. $as_echo "no" >&6; }
  12422. fi
  12423. fi
  12424. test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
  12425. done
  12426. fi
  12427. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
  12428. set dummy windmc
  12429. if test $build = $target ; then
  12430. WINDMC_FOR_TARGET="$2"
  12431. else
  12432. WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  12433. fi
  12434. else
  12435. WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
  12436. fi
  12437. else
  12438. WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
  12439. fi
  12440. RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
  12441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
  12442. $as_echo_n "checking where to find the target ar... " >&6; }
  12443. if test "x${build}" != "x${host}" ; then
  12444. if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
  12445. # We already found the complete path
  12446. ac_dir=`dirname $AR_FOR_TARGET`
  12447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12448. $as_echo "pre-installed in $ac_dir" >&6; }
  12449. else
  12450. # Canadian cross, just use what we found
  12451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12452. $as_echo "pre-installed" >&6; }
  12453. fi
  12454. else
  12455. ok=yes
  12456. case " ${configdirs} " in
  12457. *" binutils "*) ;;
  12458. *) ok=no ;;
  12459. esac
  12460. if test $ok = yes; then
  12461. # An in-tree tool is available and we can use it
  12462. AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
  12463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12464. $as_echo "just compiled" >&6; }
  12465. elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
  12466. # We already found the complete path
  12467. ac_dir=`dirname $AR_FOR_TARGET`
  12468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12469. $as_echo "pre-installed in $ac_dir" >&6; }
  12470. elif test "x$target" = "x$host"; then
  12471. # We can use an host tool
  12472. AR_FOR_TARGET='$(AR)'
  12473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12474. $as_echo "host tool" >&6; }
  12475. else
  12476. # We need a cross tool
  12477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12478. $as_echo "pre-installed" >&6; }
  12479. fi
  12480. fi
  12481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
  12482. $as_echo_n "checking where to find the target as... " >&6; }
  12483. if test "x${build}" != "x${host}" ; then
  12484. if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
  12485. # We already found the complete path
  12486. ac_dir=`dirname $AS_FOR_TARGET`
  12487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12488. $as_echo "pre-installed in $ac_dir" >&6; }
  12489. else
  12490. # Canadian cross, just use what we found
  12491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12492. $as_echo "pre-installed" >&6; }
  12493. fi
  12494. else
  12495. ok=yes
  12496. case " ${configdirs} " in
  12497. *" gas "*) ;;
  12498. *) ok=no ;;
  12499. esac
  12500. if test $ok = yes; then
  12501. # An in-tree tool is available and we can use it
  12502. AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
  12503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12504. $as_echo "just compiled" >&6; }
  12505. elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
  12506. # We already found the complete path
  12507. ac_dir=`dirname $AS_FOR_TARGET`
  12508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12509. $as_echo "pre-installed in $ac_dir" >&6; }
  12510. elif test "x$target" = "x$host"; then
  12511. # We can use an host tool
  12512. AS_FOR_TARGET='$(AS)'
  12513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12514. $as_echo "host tool" >&6; }
  12515. else
  12516. # We need a cross tool
  12517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12518. $as_echo "pre-installed" >&6; }
  12519. fi
  12520. fi
  12521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
  12522. $as_echo_n "checking where to find the target cc... " >&6; }
  12523. if test "x${build}" != "x${host}" ; then
  12524. if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
  12525. # We already found the complete path
  12526. ac_dir=`dirname $CC_FOR_TARGET`
  12527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12528. $as_echo "pre-installed in $ac_dir" >&6; }
  12529. else
  12530. # Canadian cross, just use what we found
  12531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12532. $as_echo "pre-installed" >&6; }
  12533. fi
  12534. else
  12535. ok=yes
  12536. case " ${configdirs} " in
  12537. *" gcc "*) ;;
  12538. *) ok=no ;;
  12539. esac
  12540. if test $ok = yes; then
  12541. # An in-tree tool is available and we can use it
  12542. CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
  12543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12544. $as_echo "just compiled" >&6; }
  12545. elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
  12546. # We already found the complete path
  12547. ac_dir=`dirname $CC_FOR_TARGET`
  12548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12549. $as_echo "pre-installed in $ac_dir" >&6; }
  12550. elif test "x$target" = "x$host"; then
  12551. # We can use an host tool
  12552. CC_FOR_TARGET='$(CC)'
  12553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12554. $as_echo "host tool" >&6; }
  12555. else
  12556. # We need a cross tool
  12557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12558. $as_echo "pre-installed" >&6; }
  12559. fi
  12560. fi
  12561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
  12562. $as_echo_n "checking where to find the target c++... " >&6; }
  12563. if test "x${build}" != "x${host}" ; then
  12564. if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
  12565. # We already found the complete path
  12566. ac_dir=`dirname $CXX_FOR_TARGET`
  12567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12568. $as_echo "pre-installed in $ac_dir" >&6; }
  12569. else
  12570. # Canadian cross, just use what we found
  12571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12572. $as_echo "pre-installed" >&6; }
  12573. fi
  12574. else
  12575. ok=yes
  12576. case " ${configdirs} " in
  12577. *" gcc "*) ;;
  12578. *) ok=no ;;
  12579. esac
  12580. case ,${enable_languages}, in
  12581. *,c++,*) ;;
  12582. *) ok=no ;;
  12583. esac
  12584. if test $ok = yes; then
  12585. # An in-tree tool is available and we can use it
  12586. 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'
  12587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12588. $as_echo "just compiled" >&6; }
  12589. elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
  12590. # We already found the complete path
  12591. ac_dir=`dirname $CXX_FOR_TARGET`
  12592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12593. $as_echo "pre-installed in $ac_dir" >&6; }
  12594. elif test "x$target" = "x$host"; then
  12595. # We can use an host tool
  12596. CXX_FOR_TARGET='$(CXX)'
  12597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12598. $as_echo "host tool" >&6; }
  12599. else
  12600. # We need a cross tool
  12601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12602. $as_echo "pre-installed" >&6; }
  12603. fi
  12604. fi
  12605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
  12606. $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
  12607. if test "x${build}" != "x${host}" ; then
  12608. if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
  12609. # We already found the complete path
  12610. ac_dir=`dirname $RAW_CXX_FOR_TARGET`
  12611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12612. $as_echo "pre-installed in $ac_dir" >&6; }
  12613. else
  12614. # Canadian cross, just use what we found
  12615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12616. $as_echo "pre-installed" >&6; }
  12617. fi
  12618. else
  12619. ok=yes
  12620. case " ${configdirs} " in
  12621. *" gcc "*) ;;
  12622. *) ok=no ;;
  12623. esac
  12624. case ,${enable_languages}, in
  12625. *,c++,*) ;;
  12626. *) ok=no ;;
  12627. esac
  12628. if test $ok = yes; then
  12629. # An in-tree tool is available and we can use it
  12630. 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'
  12631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12632. $as_echo "just compiled" >&6; }
  12633. elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
  12634. # We already found the complete path
  12635. ac_dir=`dirname $RAW_CXX_FOR_TARGET`
  12636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12637. $as_echo "pre-installed in $ac_dir" >&6; }
  12638. elif test "x$target" = "x$host"; then
  12639. # We can use an host tool
  12640. RAW_CXX_FOR_TARGET='$(CXX)'
  12641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12642. $as_echo "host tool" >&6; }
  12643. else
  12644. # We need a cross tool
  12645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12646. $as_echo "pre-installed" >&6; }
  12647. fi
  12648. fi
  12649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
  12650. $as_echo_n "checking where to find the target dlltool... " >&6; }
  12651. if test "x${build}" != "x${host}" ; then
  12652. if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
  12653. # We already found the complete path
  12654. ac_dir=`dirname $DLLTOOL_FOR_TARGET`
  12655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12656. $as_echo "pre-installed in $ac_dir" >&6; }
  12657. else
  12658. # Canadian cross, just use what we found
  12659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12660. $as_echo "pre-installed" >&6; }
  12661. fi
  12662. else
  12663. ok=yes
  12664. case " ${configdirs} " in
  12665. *" binutils "*) ;;
  12666. *) ok=no ;;
  12667. esac
  12668. if test $ok = yes; then
  12669. # An in-tree tool is available and we can use it
  12670. DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
  12671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12672. $as_echo "just compiled" >&6; }
  12673. elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
  12674. # We already found the complete path
  12675. ac_dir=`dirname $DLLTOOL_FOR_TARGET`
  12676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12677. $as_echo "pre-installed in $ac_dir" >&6; }
  12678. elif test "x$target" = "x$host"; then
  12679. # We can use an host tool
  12680. DLLTOOL_FOR_TARGET='$(DLLTOOL)'
  12681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12682. $as_echo "host tool" >&6; }
  12683. else
  12684. # We need a cross tool
  12685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12686. $as_echo "pre-installed" >&6; }
  12687. fi
  12688. fi
  12689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
  12690. $as_echo_n "checking where to find the target gcc... " >&6; }
  12691. if test "x${build}" != "x${host}" ; then
  12692. if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
  12693. # We already found the complete path
  12694. ac_dir=`dirname $GCC_FOR_TARGET`
  12695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12696. $as_echo "pre-installed in $ac_dir" >&6; }
  12697. else
  12698. # Canadian cross, just use what we found
  12699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12700. $as_echo "pre-installed" >&6; }
  12701. fi
  12702. else
  12703. ok=yes
  12704. case " ${configdirs} " in
  12705. *" gcc "*) ;;
  12706. *) ok=no ;;
  12707. esac
  12708. if test $ok = yes; then
  12709. # An in-tree tool is available and we can use it
  12710. GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
  12711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12712. $as_echo "just compiled" >&6; }
  12713. elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
  12714. # We already found the complete path
  12715. ac_dir=`dirname $GCC_FOR_TARGET`
  12716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12717. $as_echo "pre-installed in $ac_dir" >&6; }
  12718. elif test "x$target" = "x$host"; then
  12719. # We can use an host tool
  12720. GCC_FOR_TARGET='$()'
  12721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12722. $as_echo "host tool" >&6; }
  12723. else
  12724. # We need a cross tool
  12725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12726. $as_echo "pre-installed" >&6; }
  12727. fi
  12728. fi
  12729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
  12730. $as_echo_n "checking where to find the target gcj... " >&6; }
  12731. if test "x${build}" != "x${host}" ; then
  12732. if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
  12733. # We already found the complete path
  12734. ac_dir=`dirname $GCJ_FOR_TARGET`
  12735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12736. $as_echo "pre-installed in $ac_dir" >&6; }
  12737. else
  12738. # Canadian cross, just use what we found
  12739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12740. $as_echo "pre-installed" >&6; }
  12741. fi
  12742. else
  12743. ok=yes
  12744. case " ${configdirs} " in
  12745. *" gcc "*) ;;
  12746. *) ok=no ;;
  12747. esac
  12748. case ,${enable_languages}, in
  12749. *,java,*) ;;
  12750. *) ok=no ;;
  12751. esac
  12752. if test $ok = yes; then
  12753. # An in-tree tool is available and we can use it
  12754. GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
  12755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12756. $as_echo "just compiled" >&6; }
  12757. elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
  12758. # We already found the complete path
  12759. ac_dir=`dirname $GCJ_FOR_TARGET`
  12760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12761. $as_echo "pre-installed in $ac_dir" >&6; }
  12762. elif test "x$target" = "x$host"; then
  12763. # We can use an host tool
  12764. GCJ_FOR_TARGET='$(GCJ)'
  12765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12766. $as_echo "host tool" >&6; }
  12767. else
  12768. # We need a cross tool
  12769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12770. $as_echo "pre-installed" >&6; }
  12771. fi
  12772. fi
  12773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
  12774. $as_echo_n "checking where to find the target gfortran... " >&6; }
  12775. if test "x${build}" != "x${host}" ; then
  12776. if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
  12777. # We already found the complete path
  12778. ac_dir=`dirname $GFORTRAN_FOR_TARGET`
  12779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12780. $as_echo "pre-installed in $ac_dir" >&6; }
  12781. else
  12782. # Canadian cross, just use what we found
  12783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12784. $as_echo "pre-installed" >&6; }
  12785. fi
  12786. else
  12787. ok=yes
  12788. case " ${configdirs} " in
  12789. *" gcc "*) ;;
  12790. *) ok=no ;;
  12791. esac
  12792. case ,${enable_languages}, in
  12793. *,fortran,*) ;;
  12794. *) ok=no ;;
  12795. esac
  12796. if test $ok = yes; then
  12797. # An in-tree tool is available and we can use it
  12798. GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
  12799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12800. $as_echo "just compiled" >&6; }
  12801. elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
  12802. # We already found the complete path
  12803. ac_dir=`dirname $GFORTRAN_FOR_TARGET`
  12804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12805. $as_echo "pre-installed in $ac_dir" >&6; }
  12806. elif test "x$target" = "x$host"; then
  12807. # We can use an host tool
  12808. GFORTRAN_FOR_TARGET='$(GFORTRAN)'
  12809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12810. $as_echo "host tool" >&6; }
  12811. else
  12812. # We need a cross tool
  12813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12814. $as_echo "pre-installed" >&6; }
  12815. fi
  12816. fi
  12817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
  12818. $as_echo_n "checking where to find the target gccgo... " >&6; }
  12819. if test "x${build}" != "x${host}" ; then
  12820. if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
  12821. # We already found the complete path
  12822. ac_dir=`dirname $GOC_FOR_TARGET`
  12823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12824. $as_echo "pre-installed in $ac_dir" >&6; }
  12825. else
  12826. # Canadian cross, just use what we found
  12827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12828. $as_echo "pre-installed" >&6; }
  12829. fi
  12830. else
  12831. ok=yes
  12832. case " ${configdirs} " in
  12833. *" gcc "*) ;;
  12834. *) ok=no ;;
  12835. esac
  12836. case ,${enable_languages}, in
  12837. *,go,*) ;;
  12838. *) ok=no ;;
  12839. esac
  12840. if test $ok = yes; then
  12841. # An in-tree tool is available and we can use it
  12842. GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
  12843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12844. $as_echo "just compiled" >&6; }
  12845. elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
  12846. # We already found the complete path
  12847. ac_dir=`dirname $GOC_FOR_TARGET`
  12848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12849. $as_echo "pre-installed in $ac_dir" >&6; }
  12850. elif test "x$target" = "x$host"; then
  12851. # We can use an host tool
  12852. GOC_FOR_TARGET='$(GOC)'
  12853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12854. $as_echo "host tool" >&6; }
  12855. else
  12856. # We need a cross tool
  12857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12858. $as_echo "pre-installed" >&6; }
  12859. fi
  12860. fi
  12861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
  12862. $as_echo_n "checking where to find the target ld... " >&6; }
  12863. if test "x${build}" != "x${host}" ; then
  12864. if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
  12865. # We already found the complete path
  12866. ac_dir=`dirname $LD_FOR_TARGET`
  12867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12868. $as_echo "pre-installed in $ac_dir" >&6; }
  12869. else
  12870. # Canadian cross, just use what we found
  12871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12872. $as_echo "pre-installed" >&6; }
  12873. fi
  12874. else
  12875. ok=yes
  12876. case " ${configdirs} " in
  12877. *" ld "*) ;;
  12878. *) ok=no ;;
  12879. esac
  12880. if test $ok = yes; then
  12881. # An in-tree tool is available and we can use it
  12882. LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
  12883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12884. $as_echo "just compiled" >&6; }
  12885. elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
  12886. # We already found the complete path
  12887. ac_dir=`dirname $LD_FOR_TARGET`
  12888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12889. $as_echo "pre-installed in $ac_dir" >&6; }
  12890. elif test "x$target" = "x$host"; then
  12891. # We can use an host tool
  12892. LD_FOR_TARGET='$(LD)'
  12893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12894. $as_echo "host tool" >&6; }
  12895. else
  12896. # We need a cross tool
  12897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12898. $as_echo "pre-installed" >&6; }
  12899. fi
  12900. fi
  12901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
  12902. $as_echo_n "checking where to find the target lipo... " >&6; }
  12903. if test "x${build}" != "x${host}" ; then
  12904. if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
  12905. # We already found the complete path
  12906. ac_dir=`dirname $LIPO_FOR_TARGET`
  12907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12908. $as_echo "pre-installed in $ac_dir" >&6; }
  12909. else
  12910. # Canadian cross, just use what we found
  12911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12912. $as_echo "pre-installed" >&6; }
  12913. fi
  12914. else
  12915. if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
  12916. # We already found the complete path
  12917. ac_dir=`dirname $LIPO_FOR_TARGET`
  12918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12919. $as_echo "pre-installed in $ac_dir" >&6; }
  12920. elif test "x$target" = "x$host"; then
  12921. # We can use an host tool
  12922. LIPO_FOR_TARGET='$(LIPO)'
  12923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12924. $as_echo "host tool" >&6; }
  12925. else
  12926. # We need a cross tool
  12927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12928. $as_echo "pre-installed" >&6; }
  12929. fi
  12930. fi
  12931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
  12932. $as_echo_n "checking where to find the target nm... " >&6; }
  12933. if test "x${build}" != "x${host}" ; then
  12934. if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
  12935. # We already found the complete path
  12936. ac_dir=`dirname $NM_FOR_TARGET`
  12937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12938. $as_echo "pre-installed in $ac_dir" >&6; }
  12939. else
  12940. # Canadian cross, just use what we found
  12941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12942. $as_echo "pre-installed" >&6; }
  12943. fi
  12944. else
  12945. ok=yes
  12946. case " ${configdirs} " in
  12947. *" binutils "*) ;;
  12948. *) ok=no ;;
  12949. esac
  12950. if test $ok = yes; then
  12951. # An in-tree tool is available and we can use it
  12952. NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
  12953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12954. $as_echo "just compiled" >&6; }
  12955. elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
  12956. # We already found the complete path
  12957. ac_dir=`dirname $NM_FOR_TARGET`
  12958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12959. $as_echo "pre-installed in $ac_dir" >&6; }
  12960. elif test "x$target" = "x$host"; then
  12961. # We can use an host tool
  12962. NM_FOR_TARGET='$(NM)'
  12963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12964. $as_echo "host tool" >&6; }
  12965. else
  12966. # We need a cross tool
  12967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12968. $as_echo "pre-installed" >&6; }
  12969. fi
  12970. fi
  12971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
  12972. $as_echo_n "checking where to find the target objcopy... " >&6; }
  12973. if test "x${build}" != "x${host}" ; then
  12974. if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
  12975. # We already found the complete path
  12976. ac_dir=`dirname $OBJCOPY_FOR_TARGET`
  12977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12978. $as_echo "pre-installed in $ac_dir" >&6; }
  12979. else
  12980. # Canadian cross, just use what we found
  12981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12982. $as_echo "pre-installed" >&6; }
  12983. fi
  12984. else
  12985. ok=yes
  12986. case " ${configdirs} " in
  12987. *" binutils "*) ;;
  12988. *) ok=no ;;
  12989. esac
  12990. if test $ok = yes; then
  12991. # An in-tree tool is available and we can use it
  12992. OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
  12993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12994. $as_echo "just compiled" >&6; }
  12995. elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
  12996. # We already found the complete path
  12997. ac_dir=`dirname $OBJCOPY_FOR_TARGET`
  12998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12999. $as_echo "pre-installed in $ac_dir" >&6; }
  13000. elif test "x$target" = "x$host"; then
  13001. # We can use an host tool
  13002. OBJCOPY_FOR_TARGET='$(OBJCOPY)'
  13003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13004. $as_echo "host tool" >&6; }
  13005. else
  13006. # We need a cross tool
  13007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13008. $as_echo "pre-installed" >&6; }
  13009. fi
  13010. fi
  13011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
  13012. $as_echo_n "checking where to find the target objdump... " >&6; }
  13013. if test "x${build}" != "x${host}" ; then
  13014. if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
  13015. # We already found the complete path
  13016. ac_dir=`dirname $OBJDUMP_FOR_TARGET`
  13017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13018. $as_echo "pre-installed in $ac_dir" >&6; }
  13019. else
  13020. # Canadian cross, just use what we found
  13021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13022. $as_echo "pre-installed" >&6; }
  13023. fi
  13024. else
  13025. ok=yes
  13026. case " ${configdirs} " in
  13027. *" binutils "*) ;;
  13028. *) ok=no ;;
  13029. esac
  13030. if test $ok = yes; then
  13031. # An in-tree tool is available and we can use it
  13032. OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
  13033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13034. $as_echo "just compiled" >&6; }
  13035. elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
  13036. # We already found the complete path
  13037. ac_dir=`dirname $OBJDUMP_FOR_TARGET`
  13038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13039. $as_echo "pre-installed in $ac_dir" >&6; }
  13040. elif test "x$target" = "x$host"; then
  13041. # We can use an host tool
  13042. OBJDUMP_FOR_TARGET='$(OBJDUMP)'
  13043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13044. $as_echo "host tool" >&6; }
  13045. else
  13046. # We need a cross tool
  13047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13048. $as_echo "pre-installed" >&6; }
  13049. fi
  13050. fi
  13051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
  13052. $as_echo_n "checking where to find the target ranlib... " >&6; }
  13053. if test "x${build}" != "x${host}" ; then
  13054. if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
  13055. # We already found the complete path
  13056. ac_dir=`dirname $RANLIB_FOR_TARGET`
  13057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13058. $as_echo "pre-installed in $ac_dir" >&6; }
  13059. else
  13060. # Canadian cross, just use what we found
  13061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13062. $as_echo "pre-installed" >&6; }
  13063. fi
  13064. else
  13065. ok=yes
  13066. case " ${configdirs} " in
  13067. *" binutils "*) ;;
  13068. *) ok=no ;;
  13069. esac
  13070. if test $ok = yes; then
  13071. # An in-tree tool is available and we can use it
  13072. RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
  13073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13074. $as_echo "just compiled" >&6; }
  13075. elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
  13076. # We already found the complete path
  13077. ac_dir=`dirname $RANLIB_FOR_TARGET`
  13078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13079. $as_echo "pre-installed in $ac_dir" >&6; }
  13080. elif test "x$target" = "x$host"; then
  13081. # We can use an host tool
  13082. RANLIB_FOR_TARGET='$(RANLIB)'
  13083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13084. $as_echo "host tool" >&6; }
  13085. else
  13086. # We need a cross tool
  13087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13088. $as_echo "pre-installed" >&6; }
  13089. fi
  13090. fi
  13091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
  13092. $as_echo_n "checking where to find the target readelf... " >&6; }
  13093. if test "x${build}" != "x${host}" ; then
  13094. if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
  13095. # We already found the complete path
  13096. ac_dir=`dirname $READELF_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. else
  13100. # Canadian cross, just use what we found
  13101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13102. $as_echo "pre-installed" >&6; }
  13103. fi
  13104. else
  13105. ok=yes
  13106. case " ${configdirs} " in
  13107. *" binutils "*) ;;
  13108. *) ok=no ;;
  13109. esac
  13110. if test $ok = yes; then
  13111. # An in-tree tool is available and we can use it
  13112. READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
  13113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13114. $as_echo "just compiled" >&6; }
  13115. elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
  13116. # We already found the complete path
  13117. ac_dir=`dirname $READELF_FOR_TARGET`
  13118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13119. $as_echo "pre-installed in $ac_dir" >&6; }
  13120. elif test "x$target" = "x$host"; then
  13121. # We can use an host tool
  13122. READELF_FOR_TARGET='$(READELF)'
  13123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13124. $as_echo "host tool" >&6; }
  13125. else
  13126. # We need a cross tool
  13127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13128. $as_echo "pre-installed" >&6; }
  13129. fi
  13130. fi
  13131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
  13132. $as_echo_n "checking where to find the target strip... " >&6; }
  13133. if test "x${build}" != "x${host}" ; then
  13134. if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
  13135. # We already found the complete path
  13136. ac_dir=`dirname $STRIP_FOR_TARGET`
  13137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13138. $as_echo "pre-installed in $ac_dir" >&6; }
  13139. else
  13140. # Canadian cross, just use what we found
  13141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13142. $as_echo "pre-installed" >&6; }
  13143. fi
  13144. else
  13145. ok=yes
  13146. case " ${configdirs} " in
  13147. *" binutils "*) ;;
  13148. *) ok=no ;;
  13149. esac
  13150. if test $ok = yes; then
  13151. # An in-tree tool is available and we can use it
  13152. STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
  13153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13154. $as_echo "just compiled" >&6; }
  13155. elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
  13156. # We already found the complete path
  13157. ac_dir=`dirname $STRIP_FOR_TARGET`
  13158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13159. $as_echo "pre-installed in $ac_dir" >&6; }
  13160. elif test "x$target" = "x$host"; then
  13161. # We can use an host tool
  13162. STRIP_FOR_TARGET='$(STRIP)'
  13163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13164. $as_echo "host tool" >&6; }
  13165. else
  13166. # We need a cross tool
  13167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13168. $as_echo "pre-installed" >&6; }
  13169. fi
  13170. fi
  13171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
  13172. $as_echo_n "checking where to find the target windres... " >&6; }
  13173. if test "x${build}" != "x${host}" ; then
  13174. if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
  13175. # We already found the complete path
  13176. ac_dir=`dirname $WINDRES_FOR_TARGET`
  13177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13178. $as_echo "pre-installed in $ac_dir" >&6; }
  13179. else
  13180. # Canadian cross, just use what we found
  13181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13182. $as_echo "pre-installed" >&6; }
  13183. fi
  13184. else
  13185. ok=yes
  13186. case " ${configdirs} " in
  13187. *" binutils "*) ;;
  13188. *) ok=no ;;
  13189. esac
  13190. if test $ok = yes; then
  13191. # An in-tree tool is available and we can use it
  13192. WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
  13193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13194. $as_echo "just compiled" >&6; }
  13195. elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
  13196. # We already found the complete path
  13197. ac_dir=`dirname $WINDRES_FOR_TARGET`
  13198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13199. $as_echo "pre-installed in $ac_dir" >&6; }
  13200. elif test "x$target" = "x$host"; then
  13201. # We can use an host tool
  13202. WINDRES_FOR_TARGET='$(WINDRES)'
  13203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13204. $as_echo "host tool" >&6; }
  13205. else
  13206. # We need a cross tool
  13207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13208. $as_echo "pre-installed" >&6; }
  13209. fi
  13210. fi
  13211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
  13212. $as_echo_n "checking where to find the target windmc... " >&6; }
  13213. if test "x${build}" != "x${host}" ; then
  13214. if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
  13215. # We already found the complete path
  13216. ac_dir=`dirname $WINDMC_FOR_TARGET`
  13217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13218. $as_echo "pre-installed in $ac_dir" >&6; }
  13219. else
  13220. # Canadian cross, just use what we found
  13221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13222. $as_echo "pre-installed" >&6; }
  13223. fi
  13224. else
  13225. ok=yes
  13226. case " ${configdirs} " in
  13227. *" binutils "*) ;;
  13228. *) ok=no ;;
  13229. esac
  13230. if test $ok = yes; then
  13231. # An in-tree tool is available and we can use it
  13232. WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
  13233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  13234. $as_echo "just compiled" >&6; }
  13235. elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
  13236. # We already found the complete path
  13237. ac_dir=`dirname $WINDMC_FOR_TARGET`
  13238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  13239. $as_echo "pre-installed in $ac_dir" >&6; }
  13240. elif test "x$target" = "x$host"; then
  13241. # We can use an host tool
  13242. WINDMC_FOR_TARGET='$(WINDMC)'
  13243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  13244. $as_echo "host tool" >&6; }
  13245. else
  13246. # We need a cross tool
  13247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13248. $as_echo "pre-installed" >&6; }
  13249. fi
  13250. fi
  13251. # Certain tools may need extra flags.
  13252. AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
  13253. RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
  13254. NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
  13255. # When building target libraries, except in a Canadian cross, we use
  13256. # the same toolchain as the compiler we just built.
  13257. COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
  13258. COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
  13259. COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
  13260. if test $host = $build; then
  13261. case " $configdirs " in
  13262. *" gcc "*)
  13263. COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
  13264. COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
  13265. COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
  13266. ;;
  13267. esac
  13268. fi
  13269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  13270. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  13271. # Check whether --enable-maintainer-mode was given.
  13272. if test "${enable_maintainer_mode+set}" = set; then :
  13273. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  13274. else
  13275. USE_MAINTAINER_MODE=no
  13276. fi
  13277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  13278. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  13279. if test "$USE_MAINTAINER_MODE" = yes; then
  13280. MAINTAINER_MODE_TRUE=
  13281. MAINTAINER_MODE_FALSE='#'
  13282. else
  13283. MAINTAINER_MODE_TRUE='#'
  13284. MAINTAINER_MODE_FALSE=
  13285. fi
  13286. MAINT=$MAINTAINER_MODE_TRUE
  13287. # ---------------------
  13288. # GCC bootstrap support
  13289. # ---------------------
  13290. # Stage specific cflags for build.
  13291. stage1_cflags="-g"
  13292. case $build in
  13293. vax-*-*)
  13294. case ${GCC} in
  13295. yes) stage1_cflags="-g -Wa,-J" ;;
  13296. *) stage1_cflags="-g -J" ;;
  13297. esac ;;
  13298. esac
  13299. # Enable --enable-checking in stage1 of the compiler.
  13300. # Check whether --enable-stage1-checking was given.
  13301. if test "${enable_stage1_checking+set}" = set; then :
  13302. enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
  13303. else
  13304. if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
  13305. # For --disable-checking or implicit --enable-checking=release, avoid
  13306. # setting --enable-checking=gc in the default stage1 checking for LTO
  13307. # bootstraps. See PR62077.
  13308. stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
  13309. case $BUILD_CONFIG in
  13310. *lto*)
  13311. if test "x$enable_checking" = x && \
  13312. test -d ${srcdir}/gcc && \
  13313. test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
  13314. stage1_checking=--enable-checking=yes,types
  13315. fi;;
  13316. *) stage1_checking=--enable-checking=yes,types;;
  13317. esac
  13318. else
  13319. stage1_checking=--enable-checking=$enable_checking,types
  13320. fi
  13321. fi
  13322. # Enable -Werror in bootstrap stage2 and later.
  13323. # Check whether --enable-werror was given.
  13324. if test "${enable_werror+set}" = set; then :
  13325. enableval=$enable_werror;
  13326. else
  13327. if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
  13328. enable_werror=yes
  13329. else
  13330. enable_werror=no
  13331. fi
  13332. fi
  13333. case ${enable_werror} in
  13334. yes) stage2_werror_flag="--enable-werror-always" ;;
  13335. *) stage2_werror_flag="" ;;
  13336. esac
  13337. # Enable --enable-host-shared.
  13338. # Check whether --enable-host-shared was given.
  13339. if test "${enable_host_shared+set}" = set; then :
  13340. enableval=$enable_host_shared; host_shared=$enableval
  13341. else
  13342. host_shared=no
  13343. fi
  13344. # PR jit/64780: Require the user to explicitly specify
  13345. # --enable-host-shared if the jit is enabled, hinting
  13346. # that they might want to do a separate configure/build of
  13347. # the jit, to avoid users from slowing down the rest of the
  13348. # compiler by enabling the jit.
  13349. if test ${host_shared} = "no" ; then
  13350. case "${enable_languages}" in
  13351. *jit*)
  13352. as_fn_error "
  13353. Enabling language \"jit\" requires --enable-host-shared.
  13354. --enable-host-shared typically slows the rest of the compiler down by
  13355. a few %, so you must explicitly enable it.
  13356. If you want to build both the jit and the regular compiler, it is often
  13357. best to do this via two separate configure/builds, in separate
  13358. directories, to avoid imposing the performance cost of
  13359. --enable-host-shared on the regular compiler." "$LINENO" 5
  13360. ;;
  13361. *)
  13362. ;;
  13363. esac
  13364. fi
  13365. # Specify what files to not compare during bootstrap.
  13366. compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
  13367. case "$target" in
  13368. hppa*64*-*-hpux*) ;;
  13369. hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
  13370. powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
  13371. esac
  13372. ac_config_files="$ac_config_files Makefile"
  13373. cat >confcache <<\_ACEOF
  13374. # This file is a shell script that caches the results of configure
  13375. # tests run on this system so they can be shared between configure
  13376. # scripts and configure runs, see configure's option --config-cache.
  13377. # It is not useful on other systems. If it contains results you don't
  13378. # want to keep, you may remove or edit it.
  13379. #
  13380. # config.status only pays attention to the cache file if you give it
  13381. # the --recheck option to rerun configure.
  13382. #
  13383. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13384. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13385. # following values.
  13386. _ACEOF
  13387. # The following way of writing the cache mishandles newlines in values,
  13388. # but we know of no workaround that is simple, portable, and efficient.
  13389. # So, we kill variables containing newlines.
  13390. # Ultrix sh set writes to stderr and can't be redirected directly,
  13391. # and sets the high bit in the cache file unless we assign to the vars.
  13392. (
  13393. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13394. eval ac_val=\$$ac_var
  13395. case $ac_val in #(
  13396. *${as_nl}*)
  13397. case $ac_var in #(
  13398. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13399. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13400. esac
  13401. case $ac_var in #(
  13402. _ | IFS | as_nl) ;; #(
  13403. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13404. *) { eval $ac_var=; unset $ac_var;} ;;
  13405. esac ;;
  13406. esac
  13407. done
  13408. (set) 2>&1 |
  13409. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13410. *${as_nl}ac_space=\ *)
  13411. # `set' does not quote correctly, so add quotes: double-quote
  13412. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13413. sed -n \
  13414. "s/'/'\\\\''/g;
  13415. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13416. ;; #(
  13417. *)
  13418. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13419. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13420. ;;
  13421. esac |
  13422. sort
  13423. ) |
  13424. sed '
  13425. /^ac_cv_env_/b end
  13426. t clear
  13427. :clear
  13428. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13429. t end
  13430. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13431. :end' >>confcache
  13432. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13433. if test -w "$cache_file"; then
  13434. test "x$cache_file" != "x/dev/null" &&
  13435. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13436. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13437. cat confcache >$cache_file
  13438. else
  13439. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13440. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13441. fi
  13442. fi
  13443. rm -f confcache
  13444. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13445. # Let make expand exec_prefix.
  13446. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13447. # Transform confdefs.h into DEFS.
  13448. # Protect against shell expansion while executing Makefile rules.
  13449. # Protect against Makefile macro expansion.
  13450. #
  13451. # If the first sed substitution is executed (which looks for macros that
  13452. # take arguments), then branch to the quote section. Otherwise,
  13453. # look for a macro that doesn't take arguments.
  13454. ac_script='
  13455. :mline
  13456. /\\$/{
  13457. N
  13458. s,\\\n,,
  13459. b mline
  13460. }
  13461. t clear
  13462. :clear
  13463. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  13464. t quote
  13465. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  13466. t quote
  13467. b any
  13468. :quote
  13469. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  13470. s/\[/\\&/g
  13471. s/\]/\\&/g
  13472. s/\$/$$/g
  13473. H
  13474. :any
  13475. ${
  13476. g
  13477. s/^\n//
  13478. s/\n/ /g
  13479. p
  13480. }
  13481. '
  13482. DEFS=`sed -n "$ac_script" confdefs.h`
  13483. ac_libobjs=
  13484. ac_ltlibobjs=
  13485. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13486. # 1. Remove the extension, and $U if already installed.
  13487. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13488. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13489. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13490. # will be set to the directory where LIBOBJS objects are built.
  13491. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13492. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13493. done
  13494. LIBOBJS=$ac_libobjs
  13495. LTLIBOBJS=$ac_ltlibobjs
  13496. : ${CONFIG_STATUS=./config.status}
  13497. ac_write_fail=0
  13498. ac_clean_files_save=$ac_clean_files
  13499. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13500. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13501. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13502. as_write_fail=0
  13503. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13504. #! $SHELL
  13505. # Generated by $as_me.
  13506. # Run this file to recreate the current configuration.
  13507. # Compiler output produced by configure, useful for debugging
  13508. # configure, is in config.log if it exists.
  13509. debug=false
  13510. ac_cs_recheck=false
  13511. ac_cs_silent=false
  13512. SHELL=\${CONFIG_SHELL-$SHELL}
  13513. export SHELL
  13514. _ASEOF
  13515. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13516. ## -------------------- ##
  13517. ## M4sh Initialization. ##
  13518. ## -------------------- ##
  13519. # Be more Bourne compatible
  13520. DUALCASE=1; export DUALCASE # for MKS sh
  13521. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13522. emulate sh
  13523. NULLCMD=:
  13524. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13525. # is contrary to our usage. Disable this feature.
  13526. alias -g '${1+"$@"}'='"$@"'
  13527. setopt NO_GLOB_SUBST
  13528. else
  13529. case `(set -o) 2>/dev/null` in #(
  13530. *posix*) :
  13531. set -o posix ;; #(
  13532. *) :
  13533. ;;
  13534. esac
  13535. fi
  13536. as_nl='
  13537. '
  13538. export as_nl
  13539. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13540. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13541. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13542. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13543. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13544. # but without wasting forks for bash or zsh.
  13545. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13546. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13547. as_echo='print -r --'
  13548. as_echo_n='print -rn --'
  13549. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13550. as_echo='printf %s\n'
  13551. as_echo_n='printf %s'
  13552. else
  13553. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13554. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13555. as_echo_n='/usr/ucb/echo -n'
  13556. else
  13557. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13558. as_echo_n_body='eval
  13559. arg=$1;
  13560. case $arg in #(
  13561. *"$as_nl"*)
  13562. expr "X$arg" : "X\\(.*\\)$as_nl";
  13563. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13564. esac;
  13565. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13566. '
  13567. export as_echo_n_body
  13568. as_echo_n='sh -c $as_echo_n_body as_echo'
  13569. fi
  13570. export as_echo_body
  13571. as_echo='sh -c $as_echo_body as_echo'
  13572. fi
  13573. # The user is always right.
  13574. if test "${PATH_SEPARATOR+set}" != set; then
  13575. PATH_SEPARATOR=:
  13576. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13577. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13578. PATH_SEPARATOR=';'
  13579. }
  13580. fi
  13581. # IFS
  13582. # We need space, tab and new line, in precisely that order. Quoting is
  13583. # there to prevent editors from complaining about space-tab.
  13584. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13585. # splitting by setting IFS to empty value.)
  13586. IFS=" "" $as_nl"
  13587. # Find who we are. Look in the path if we contain no directory separator.
  13588. case $0 in #((
  13589. *[\\/]* ) as_myself=$0 ;;
  13590. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13591. for as_dir in $PATH
  13592. do
  13593. IFS=$as_save_IFS
  13594. test -z "$as_dir" && as_dir=.
  13595. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13596. done
  13597. IFS=$as_save_IFS
  13598. ;;
  13599. esac
  13600. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13601. # in which case we are not to be found in the path.
  13602. if test "x$as_myself" = x; then
  13603. as_myself=$0
  13604. fi
  13605. if test ! -f "$as_myself"; then
  13606. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13607. exit 1
  13608. fi
  13609. # Unset variables that we do not need and which cause bugs (e.g. in
  13610. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13611. # suppresses any "Segmentation fault" message there. '((' could
  13612. # trigger a bug in pdksh 5.2.14.
  13613. for as_var in BASH_ENV ENV MAIL MAILPATH
  13614. do eval test x\${$as_var+set} = xset \
  13615. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13616. done
  13617. PS1='$ '
  13618. PS2='> '
  13619. PS4='+ '
  13620. # NLS nuisances.
  13621. LC_ALL=C
  13622. export LC_ALL
  13623. LANGUAGE=C
  13624. export LANGUAGE
  13625. # CDPATH.
  13626. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13627. # as_fn_error ERROR [LINENO LOG_FD]
  13628. # ---------------------------------
  13629. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13630. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13631. # script with status $?, using 1 if that was 0.
  13632. as_fn_error ()
  13633. {
  13634. as_status=$?; test $as_status -eq 0 && as_status=1
  13635. if test "$3"; then
  13636. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13637. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13638. fi
  13639. $as_echo "$as_me: error: $1" >&2
  13640. as_fn_exit $as_status
  13641. } # as_fn_error
  13642. # as_fn_set_status STATUS
  13643. # -----------------------
  13644. # Set $? to STATUS, without forking.
  13645. as_fn_set_status ()
  13646. {
  13647. return $1
  13648. } # as_fn_set_status
  13649. # as_fn_exit STATUS
  13650. # -----------------
  13651. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13652. as_fn_exit ()
  13653. {
  13654. set +e
  13655. as_fn_set_status $1
  13656. exit $1
  13657. } # as_fn_exit
  13658. # as_fn_unset VAR
  13659. # ---------------
  13660. # Portably unset VAR.
  13661. as_fn_unset ()
  13662. {
  13663. { eval $1=; unset $1;}
  13664. }
  13665. as_unset=as_fn_unset
  13666. # as_fn_append VAR VALUE
  13667. # ----------------------
  13668. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13669. # advantage of any shell optimizations that allow amortized linear growth over
  13670. # repeated appends, instead of the typical quadratic growth present in naive
  13671. # implementations.
  13672. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13673. eval 'as_fn_append ()
  13674. {
  13675. eval $1+=\$2
  13676. }'
  13677. else
  13678. as_fn_append ()
  13679. {
  13680. eval $1=\$$1\$2
  13681. }
  13682. fi # as_fn_append
  13683. # as_fn_arith ARG...
  13684. # ------------------
  13685. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13686. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13687. # must be portable across $(()) and expr.
  13688. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13689. eval 'as_fn_arith ()
  13690. {
  13691. as_val=$(( $* ))
  13692. }'
  13693. else
  13694. as_fn_arith ()
  13695. {
  13696. as_val=`expr "$@" || test $? -eq 1`
  13697. }
  13698. fi # as_fn_arith
  13699. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13700. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13701. as_expr=expr
  13702. else
  13703. as_expr=false
  13704. fi
  13705. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13706. as_basename=basename
  13707. else
  13708. as_basename=false
  13709. fi
  13710. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13711. as_dirname=dirname
  13712. else
  13713. as_dirname=false
  13714. fi
  13715. as_me=`$as_basename -- "$0" ||
  13716. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13717. X"$0" : 'X\(//\)$' \| \
  13718. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13719. $as_echo X/"$0" |
  13720. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13721. s//\1/
  13722. q
  13723. }
  13724. /^X\/\(\/\/\)$/{
  13725. s//\1/
  13726. q
  13727. }
  13728. /^X\/\(\/\).*/{
  13729. s//\1/
  13730. q
  13731. }
  13732. s/.*/./; q'`
  13733. # Avoid depending upon Character Ranges.
  13734. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13735. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13736. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13737. as_cr_digits='0123456789'
  13738. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13739. ECHO_C= ECHO_N= ECHO_T=
  13740. case `echo -n x` in #(((((
  13741. -n*)
  13742. case `echo 'xy\c'` in
  13743. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13744. xy) ECHO_C='\c';;
  13745. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13746. ECHO_T=' ';;
  13747. esac;;
  13748. *)
  13749. ECHO_N='-n';;
  13750. esac
  13751. rm -f conf$$ conf$$.exe conf$$.file
  13752. if test -d conf$$.dir; then
  13753. rm -f conf$$.dir/conf$$.file
  13754. else
  13755. rm -f conf$$.dir
  13756. mkdir conf$$.dir 2>/dev/null
  13757. fi
  13758. if (echo >conf$$.file) 2>/dev/null; then
  13759. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13760. as_ln_s='ln -s'
  13761. # ... but there are two gotchas:
  13762. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13763. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13764. # In both cases, we have to default to `cp -p'.
  13765. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13766. as_ln_s='cp -p'
  13767. elif ln conf$$.file conf$$ 2>/dev/null; then
  13768. as_ln_s=ln
  13769. else
  13770. as_ln_s='cp -p'
  13771. fi
  13772. else
  13773. as_ln_s='cp -p'
  13774. fi
  13775. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13776. rmdir conf$$.dir 2>/dev/null
  13777. # as_fn_mkdir_p
  13778. # -------------
  13779. # Create "$as_dir" as a directory, including parents if necessary.
  13780. as_fn_mkdir_p ()
  13781. {
  13782. case $as_dir in #(
  13783. -*) as_dir=./$as_dir;;
  13784. esac
  13785. test -d "$as_dir" || eval $as_mkdir_p || {
  13786. as_dirs=
  13787. while :; do
  13788. case $as_dir in #(
  13789. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13790. *) as_qdir=$as_dir;;
  13791. esac
  13792. as_dirs="'$as_qdir' $as_dirs"
  13793. as_dir=`$as_dirname -- "$as_dir" ||
  13794. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13795. X"$as_dir" : 'X\(//\)[^/]' \| \
  13796. X"$as_dir" : 'X\(//\)$' \| \
  13797. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13798. $as_echo X"$as_dir" |
  13799. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13800. s//\1/
  13801. q
  13802. }
  13803. /^X\(\/\/\)[^/].*/{
  13804. s//\1/
  13805. q
  13806. }
  13807. /^X\(\/\/\)$/{
  13808. s//\1/
  13809. q
  13810. }
  13811. /^X\(\/\).*/{
  13812. s//\1/
  13813. q
  13814. }
  13815. s/.*/./; q'`
  13816. test -d "$as_dir" && break
  13817. done
  13818. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13819. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13820. } # as_fn_mkdir_p
  13821. if mkdir -p . 2>/dev/null; then
  13822. as_mkdir_p='mkdir -p "$as_dir"'
  13823. else
  13824. test -d ./-p && rmdir ./-p
  13825. as_mkdir_p=false
  13826. fi
  13827. if test -x / >/dev/null 2>&1; then
  13828. as_test_x='test -x'
  13829. else
  13830. if ls -dL / >/dev/null 2>&1; then
  13831. as_ls_L_option=L
  13832. else
  13833. as_ls_L_option=
  13834. fi
  13835. as_test_x='
  13836. eval sh -c '\''
  13837. if test -d "$1"; then
  13838. test -d "$1/.";
  13839. else
  13840. case $1 in #(
  13841. -*)set "./$1";;
  13842. esac;
  13843. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13844. ???[sx]*):;;*)false;;esac;fi
  13845. '\'' sh
  13846. '
  13847. fi
  13848. as_executable_p=$as_test_x
  13849. # Sed expression to map a string onto a valid CPP name.
  13850. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13851. # Sed expression to map a string onto a valid variable name.
  13852. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13853. exec 6>&1
  13854. ## ----------------------------------- ##
  13855. ## Main body of $CONFIG_STATUS script. ##
  13856. ## ----------------------------------- ##
  13857. _ASEOF
  13858. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13859. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13860. # Save the log message, to keep $0 and so on meaningful, and to
  13861. # report actual input values of CONFIG_FILES etc. instead of their
  13862. # values after options handling.
  13863. ac_log="
  13864. This file was extended by $as_me, which was
  13865. generated by GNU Autoconf 2.64. Invocation command line was
  13866. CONFIG_FILES = $CONFIG_FILES
  13867. CONFIG_HEADERS = $CONFIG_HEADERS
  13868. CONFIG_LINKS = $CONFIG_LINKS
  13869. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13870. $ $0 $@
  13871. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13872. "
  13873. _ACEOF
  13874. case $ac_config_files in *"
  13875. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13876. esac
  13877. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13878. # Files that config.status was made for.
  13879. config_files="$ac_config_files"
  13880. _ACEOF
  13881. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13882. ac_cs_usage="\
  13883. \`$as_me' instantiates files and other configuration actions
  13884. from templates according to the current configuration. Unless the files
  13885. and actions are specified as TAGs, all are instantiated by default.
  13886. Usage: $0 [OPTION]... [TAG]...
  13887. -h, --help print this help, then exit
  13888. -V, --version print version number and configuration settings, then exit
  13889. -q, --quiet, --silent
  13890. do not print progress messages
  13891. -d, --debug don't remove temporary files
  13892. --recheck update $as_me by reconfiguring in the same conditions
  13893. --file=FILE[:TEMPLATE]
  13894. instantiate the configuration file FILE
  13895. Configuration files:
  13896. $config_files
  13897. Report bugs to the package provider."
  13898. _ACEOF
  13899. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13900. ac_cs_version="\\
  13901. config.status
  13902. configured by $0, generated by GNU Autoconf 2.64,
  13903. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13904. Copyright (C) 2009 Free Software Foundation, Inc.
  13905. This config.status script is free software; the Free Software Foundation
  13906. gives unlimited permission to copy, distribute and modify it."
  13907. ac_pwd='$ac_pwd'
  13908. srcdir='$srcdir'
  13909. INSTALL='$INSTALL'
  13910. AWK='$AWK'
  13911. test -n "\$AWK" || AWK=awk
  13912. _ACEOF
  13913. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13914. # The default lists apply if the user does not specify any file.
  13915. ac_need_defaults=:
  13916. while test $# != 0
  13917. do
  13918. case $1 in
  13919. --*=*)
  13920. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13921. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13922. ac_shift=:
  13923. ;;
  13924. *)
  13925. ac_option=$1
  13926. ac_optarg=$2
  13927. ac_shift=shift
  13928. ;;
  13929. esac
  13930. case $ac_option in
  13931. # Handling of the options.
  13932. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13933. ac_cs_recheck=: ;;
  13934. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13935. $as_echo "$ac_cs_version"; exit ;;
  13936. --debug | --debu | --deb | --de | --d | -d )
  13937. debug=: ;;
  13938. --file | --fil | --fi | --f )
  13939. $ac_shift
  13940. case $ac_optarg in
  13941. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13942. esac
  13943. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13944. ac_need_defaults=false;;
  13945. --he | --h | --help | --hel | -h )
  13946. $as_echo "$ac_cs_usage"; exit ;;
  13947. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13948. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13949. ac_cs_silent=: ;;
  13950. # This is an error.
  13951. -*) as_fn_error "unrecognized option: \`$1'
  13952. Try \`$0 --help' for more information." ;;
  13953. *) as_fn_append ac_config_targets " $1"
  13954. ac_need_defaults=false ;;
  13955. esac
  13956. shift
  13957. done
  13958. ac_configure_extra_args=
  13959. if $ac_cs_silent; then
  13960. exec 6>/dev/null
  13961. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13962. fi
  13963. _ACEOF
  13964. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13965. if \$ac_cs_recheck; then
  13966. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13967. shift
  13968. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13969. CONFIG_SHELL='$SHELL'
  13970. export CONFIG_SHELL
  13971. exec "\$@"
  13972. fi
  13973. _ACEOF
  13974. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13975. exec 5>>config.log
  13976. {
  13977. echo
  13978. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13979. ## Running $as_me. ##
  13980. _ASBOX
  13981. $as_echo "$ac_log"
  13982. } >&5
  13983. _ACEOF
  13984. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13985. #
  13986. # INIT-COMMANDS
  13987. #
  13988. extrasub_build="$extrasub_build"
  13989. extrasub_host="$extrasub_host"
  13990. extrasub_target="$extrasub_target"
  13991. _ACEOF
  13992. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13993. # Handling of arguments.
  13994. for ac_config_target in $ac_config_targets
  13995. do
  13996. case $ac_config_target in
  13997. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13998. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13999. esac
  14000. done
  14001. # If the user did not use the arguments to specify the items to instantiate,
  14002. # then the envvar interface is used. Set only those that are not.
  14003. # We use the long form for the default assignment because of an extremely
  14004. # bizarre bug on SunOS 4.1.3.
  14005. if $ac_need_defaults; then
  14006. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14007. fi
  14008. # Have a temporary directory for convenience. Make it in the build tree
  14009. # simply because there is no reason against having it here, and in addition,
  14010. # creating and moving files from /tmp can sometimes cause problems.
  14011. # Hook for its removal unless debugging.
  14012. # Note that there is a small window in which the directory will not be cleaned:
  14013. # after its creation but before its name has been assigned to `$tmp'.
  14014. $debug ||
  14015. {
  14016. tmp=
  14017. trap 'exit_status=$?
  14018. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14019. ' 0
  14020. trap 'as_fn_exit 1' 1 2 13 15
  14021. }
  14022. # Create a (secure) tmp directory for tmp files.
  14023. {
  14024. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14025. test -n "$tmp" && test -d "$tmp"
  14026. } ||
  14027. {
  14028. tmp=./conf$$-$RANDOM
  14029. (umask 077 && mkdir "$tmp")
  14030. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14031. # Set up the scripts for CONFIG_FILES section.
  14032. # No need to generate them if there are no CONFIG_FILES.
  14033. # This happens for instance with `./config.status config.h'.
  14034. if test -n "$CONFIG_FILES"; then
  14035. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  14036. ac_cs_awk_getline=:
  14037. ac_cs_awk_pipe_init=
  14038. ac_cs_awk_read_file='
  14039. while ((getline aline < (F[key])) > 0)
  14040. print(aline)
  14041. close(F[key])'
  14042. ac_cs_awk_pipe_fini=
  14043. else
  14044. ac_cs_awk_getline=false
  14045. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  14046. ac_cs_awk_read_file='
  14047. print "|#_!!_#|"
  14048. print "cat " F[key] " &&"
  14049. '$ac_cs_awk_pipe_init
  14050. # The final `:' finishes the AND list.
  14051. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  14052. fi
  14053. ac_cr=`echo X | tr X '\015'`
  14054. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14055. # But we know of no other shell where ac_cr would be empty at this
  14056. # point, so we can use a bashism as a fallback.
  14057. if test "x$ac_cr" = x; then
  14058. eval ac_cr=\$\'\\r\'
  14059. fi
  14060. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14061. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14062. ac_cs_awk_cr='\r'
  14063. else
  14064. ac_cs_awk_cr=$ac_cr
  14065. fi
  14066. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14067. _ACEOF
  14068. # Create commands to substitute file output variables.
  14069. {
  14070. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  14071. echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
  14072. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  14073. echo "_ACAWK" &&
  14074. echo "_ACEOF"
  14075. } >conf$$files.sh &&
  14076. . ./conf$$files.sh ||
  14077. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14078. rm -f conf$$files.sh
  14079. {
  14080. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14081. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14082. echo "_ACEOF"
  14083. } >conf$$subs.sh ||
  14084. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14085. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14086. ac_delim='%!_!# '
  14087. for ac_last_try in false false false false false :; do
  14088. . ./conf$$subs.sh ||
  14089. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14090. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14091. if test $ac_delim_n = $ac_delim_num; then
  14092. break
  14093. elif $ac_last_try; then
  14094. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14095. else
  14096. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14097. fi
  14098. done
  14099. rm -f conf$$subs.sh
  14100. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14101. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14102. _ACEOF
  14103. sed -n '
  14104. h
  14105. s/^/S["/; s/!.*/"]=/
  14106. p
  14107. g
  14108. s/^[^!]*!//
  14109. :repl
  14110. t repl
  14111. s/'"$ac_delim"'$//
  14112. t delim
  14113. :nl
  14114. h
  14115. s/\(.\{148\}\).*/\1/
  14116. t more1
  14117. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14118. p
  14119. n
  14120. b repl
  14121. :more1
  14122. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14123. p
  14124. g
  14125. s/.\{148\}//
  14126. t nl
  14127. :delim
  14128. h
  14129. s/\(.\{148\}\).*/\1/
  14130. t more2
  14131. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14132. p
  14133. b
  14134. :more2
  14135. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14136. p
  14137. g
  14138. s/.\{148\}//
  14139. t delim
  14140. ' <conf$$subs.awk | sed '
  14141. /^[^""]/{
  14142. N
  14143. s/\n//
  14144. }
  14145. ' >>$CONFIG_STATUS || ac_write_fail=1
  14146. rm -f conf$$subs.awk
  14147. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14148. _ACAWK
  14149. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14150. for (key in S) S_is_set[key] = 1
  14151. FS = ""
  14152. \$ac_cs_awk_pipe_init
  14153. }
  14154. {
  14155. line = $ 0
  14156. nfields = split(line, field, "@")
  14157. substed = 0
  14158. len = length(field[1])
  14159. for (i = 2; i < nfields; i++) {
  14160. key = field[i]
  14161. keylen = length(key)
  14162. if (S_is_set[key]) {
  14163. value = S[key]
  14164. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14165. len += length(value) + length(field[++i])
  14166. substed = 1
  14167. } else
  14168. len += 1 + keylen
  14169. }
  14170. if (nfields == 3 && !substed) {
  14171. key = field[2]
  14172. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  14173. \$ac_cs_awk_read_file
  14174. next
  14175. }
  14176. }
  14177. print line
  14178. }
  14179. \$ac_cs_awk_pipe_fini
  14180. _ACAWK
  14181. _ACEOF
  14182. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14183. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14184. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14185. else
  14186. cat
  14187. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14188. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14189. _ACEOF
  14190. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14191. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14192. # trailing colons and then remove the whole line if VPATH becomes empty
  14193. # (actually we leave an empty line to preserve line numbers).
  14194. if test "x$srcdir" = x.; then
  14195. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14196. s/:*\$(srcdir):*/:/
  14197. s/:*\${srcdir}:*/:/
  14198. s/:*@srcdir@:*/:/
  14199. s/^\([^=]*=[ ]*\):*/\1/
  14200. s/:*$//
  14201. s/^[^=]*=[ ]*$//
  14202. }'
  14203. fi
  14204. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14205. fi # test -n "$CONFIG_FILES"
  14206. eval set X " :F $CONFIG_FILES "
  14207. shift
  14208. for ac_tag
  14209. do
  14210. case $ac_tag in
  14211. :[FHLC]) ac_mode=$ac_tag; continue;;
  14212. esac
  14213. case $ac_mode$ac_tag in
  14214. :[FHL]*:*);;
  14215. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14216. :[FH]-) ac_tag=-:-;;
  14217. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14218. esac
  14219. ac_save_IFS=$IFS
  14220. IFS=:
  14221. set x $ac_tag
  14222. IFS=$ac_save_IFS
  14223. shift
  14224. ac_file=$1
  14225. shift
  14226. case $ac_mode in
  14227. :L) ac_source=$1;;
  14228. :[FH])
  14229. ac_file_inputs=
  14230. for ac_f
  14231. do
  14232. case $ac_f in
  14233. -) ac_f="$tmp/stdin";;
  14234. *) # Look for the file first in the build tree, then in the source tree
  14235. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14236. # because $ac_f cannot contain `:'.
  14237. test -f "$ac_f" ||
  14238. case $ac_f in
  14239. [\\/$]*) false;;
  14240. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14241. esac ||
  14242. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14243. esac
  14244. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14245. as_fn_append ac_file_inputs " '$ac_f'"
  14246. done
  14247. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14248. # use $as_me), people would be surprised to read:
  14249. # /* config.h. Generated by config.status. */
  14250. configure_input='Generated from '`
  14251. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14252. `' by configure.'
  14253. if test x"$ac_file" != x-; then
  14254. configure_input="$ac_file. $configure_input"
  14255. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14256. $as_echo "$as_me: creating $ac_file" >&6;}
  14257. fi
  14258. # Neutralize special characters interpreted by sed in replacement strings.
  14259. case $configure_input in #(
  14260. *\&* | *\|* | *\\* )
  14261. ac_sed_conf_input=`$as_echo "$configure_input" |
  14262. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14263. *) ac_sed_conf_input=$configure_input;;
  14264. esac
  14265. case $ac_tag in
  14266. *:-:* | *:-) cat >"$tmp/stdin" \
  14267. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14268. esac
  14269. ;;
  14270. esac
  14271. ac_dir=`$as_dirname -- "$ac_file" ||
  14272. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14273. X"$ac_file" : 'X\(//\)[^/]' \| \
  14274. X"$ac_file" : 'X\(//\)$' \| \
  14275. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14276. $as_echo X"$ac_file" |
  14277. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14278. s//\1/
  14279. q
  14280. }
  14281. /^X\(\/\/\)[^/].*/{
  14282. s//\1/
  14283. q
  14284. }
  14285. /^X\(\/\/\)$/{
  14286. s//\1/
  14287. q
  14288. }
  14289. /^X\(\/\).*/{
  14290. s//\1/
  14291. q
  14292. }
  14293. s/.*/./; q'`
  14294. as_dir="$ac_dir"; as_fn_mkdir_p
  14295. ac_builddir=.
  14296. case "$ac_dir" in
  14297. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14298. *)
  14299. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14300. # A ".." for each directory in $ac_dir_suffix.
  14301. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14302. case $ac_top_builddir_sub in
  14303. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14304. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14305. esac ;;
  14306. esac
  14307. ac_abs_top_builddir=$ac_pwd
  14308. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14309. # for backward compatibility:
  14310. ac_top_builddir=$ac_top_build_prefix
  14311. case $srcdir in
  14312. .) # We are building in place.
  14313. ac_srcdir=.
  14314. ac_top_srcdir=$ac_top_builddir_sub
  14315. ac_abs_top_srcdir=$ac_pwd ;;
  14316. [\\/]* | ?:[\\/]* ) # Absolute name.
  14317. ac_srcdir=$srcdir$ac_dir_suffix;
  14318. ac_top_srcdir=$srcdir
  14319. ac_abs_top_srcdir=$srcdir ;;
  14320. *) # Relative name.
  14321. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14322. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14323. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14324. esac
  14325. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14326. case $ac_mode in
  14327. :F)
  14328. #
  14329. # CONFIG_FILE
  14330. #
  14331. case $INSTALL in
  14332. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14333. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14334. esac
  14335. _ACEOF
  14336. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14337. # If the template does not know about datarootdir, expand it.
  14338. # FIXME: This hack should be removed a few years after 2.60.
  14339. ac_datarootdir_hack=; ac_datarootdir_seen=
  14340. ac_sed_dataroot='
  14341. /datarootdir/ {
  14342. p
  14343. q
  14344. }
  14345. /@datadir@/p
  14346. /@docdir@/p
  14347. /@infodir@/p
  14348. /@localedir@/p
  14349. /@mandir@/p'
  14350. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14351. *datarootdir*) ac_datarootdir_seen=yes;;
  14352. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14353. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14354. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14355. _ACEOF
  14356. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14357. ac_datarootdir_hack='
  14358. s&@datadir@&$datadir&g
  14359. s&@docdir@&$docdir&g
  14360. s&@infodir@&$infodir&g
  14361. s&@localedir@&$localedir&g
  14362. s&@mandir@&$mandir&g
  14363. s&\\\${datarootdir}&$datarootdir&g' ;;
  14364. esac
  14365. _ACEOF
  14366. # Neutralize VPATH when `$srcdir' = `.'.
  14367. # Shell code in configure.ac might set extrasub.
  14368. # FIXME: do we really want to maintain this feature?
  14369. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14370. ac_sed_extra="$ac_vpsub
  14371. $extrasub
  14372. _ACEOF
  14373. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14374. :t
  14375. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14376. s|@configure_input@|$ac_sed_conf_input|;t t
  14377. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14378. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14379. s&@srcdir@&$ac_srcdir&;t t
  14380. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14381. s&@top_srcdir@&$ac_top_srcdir&;t t
  14382. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14383. s&@builddir@&$ac_builddir&;t t
  14384. s&@abs_builddir@&$ac_abs_builddir&;t t
  14385. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14386. s&@INSTALL@&$ac_INSTALL&;t t
  14387. $ac_datarootdir_hack
  14388. "
  14389. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  14390. if $ac_cs_awk_getline; then
  14391. $AWK -f "$tmp/subs.awk"
  14392. else
  14393. $AWK -f "$tmp/subs.awk" | $SHELL
  14394. fi >$tmp/out \
  14395. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14396. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14397. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14398. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14399. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14400. which seems to be undefined. Please make sure it is defined." >&5
  14401. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14402. which seems to be undefined. Please make sure it is defined." >&2;}
  14403. rm -f "$tmp/stdin"
  14404. case $ac_file in
  14405. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14406. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14407. esac \
  14408. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14409. ;;
  14410. esac
  14411. case $ac_file$ac_mode in
  14412. "Makefile":F) sed "$extrasub_build" Makefile |
  14413. sed "$extrasub_host" |
  14414. sed "$extrasub_target" > mf$$
  14415. mv -f mf$$ Makefile ;;
  14416. esac
  14417. done # for ac_tag
  14418. as_fn_exit 0
  14419. _ACEOF
  14420. ac_clean_files=$ac_clean_files_save
  14421. test $ac_write_fail = 0 ||
  14422. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14423. # configure is writing to config.log, and then calls config.status.
  14424. # config.status does its own redirection, appending to config.log.
  14425. # Unfortunately, on DOS this fails, as config.log is still kept open
  14426. # by configure, so config.status won't be able to write to it; its
  14427. # output is simply discarded. So we exec the FD to /dev/null,
  14428. # effectively closing config.log, so it can be properly (re)opened and
  14429. # appended to by config.status. When coming back to configure, we
  14430. # need to make the FD available again.
  14431. if test "$no_create" != yes; then
  14432. ac_cs_success=:
  14433. ac_config_status_args=
  14434. test "$silent" = yes &&
  14435. ac_config_status_args="$ac_config_status_args --quiet"
  14436. exec 5>/dev/null
  14437. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14438. exec 5>>config.log
  14439. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14440. # would make configure fail if this is the last instruction.
  14441. $ac_cs_success || as_fn_exit $?
  14442. fi
  14443. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14444. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14445. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14446. fi