A C standard library for sh3eb-elf.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure 476KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130
  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. islver
  606. poststage1_ldflags
  607. poststage1_libs
  608. stage1_ldflags
  609. stage1_libs
  610. extra_isl_gmp_configure_flags
  611. extra_mpc_mpfr_configure_flags
  612. extra_mpc_gmp_configure_flags
  613. extra_mpfr_configure_flags
  614. gmpinc
  615. gmplibs
  616. do_compare
  617. GNATMAKE
  618. GNATBIND
  619. ac_ct_CXX
  620. CXXFLAGS
  621. CXX
  622. OBJEXT
  623. EXEEXT
  624. ac_ct_CC
  625. CPPFLAGS
  626. LDFLAGS
  627. CFLAGS
  628. CC
  629. EXTRA_CONFIGARGS_LIBJAVA
  630. extra_liboffloadmic_configure_flags
  631. target_subdir
  632. host_subdir
  633. build_subdir
  634. build_libsubdir
  635. AWK
  636. SED
  637. LN_S
  638. LN
  639. INSTALL_DATA
  640. INSTALL_SCRIPT
  641. INSTALL_PROGRAM
  642. target_os
  643. target_vendor
  644. target_cpu
  645. target
  646. host_os
  647. host_vendor
  648. host_cpu
  649. host
  650. target_noncanonical
  651. host_noncanonical
  652. build_noncanonical
  653. build_os
  654. build_vendor
  655. build_cpu
  656. build
  657. TOPLEVEL_CONFIGURE_ARGUMENTS
  658. target_alias
  659. host_alias
  660. build_alias
  661. LIBS
  662. ECHO_T
  663. ECHO_N
  664. ECHO_C
  665. DEFS
  666. mandir
  667. localedir
  668. libdir
  669. psdir
  670. pdfdir
  671. dvidir
  672. htmldir
  673. infodir
  674. docdir
  675. oldincludedir
  676. includedir
  677. localstatedir
  678. sharedstatedir
  679. sysconfdir
  680. datadir
  681. datarootdir
  682. libexecdir
  683. sbindir
  684. bindir
  685. program_transform_name
  686. prefix
  687. exec_prefix
  688. PACKAGE_URL
  689. PACKAGE_BUGREPORT
  690. PACKAGE_STRING
  691. PACKAGE_VERSION
  692. PACKAGE_TARNAME
  693. PACKAGE_NAME
  694. PATH_SEPARATOR
  695. SHELL'
  696. ac_subst_files='serialization_dependencies
  697. host_makefile_frag
  698. target_makefile_frag
  699. alphaieee_frag
  700. ospace_frag'
  701. ac_user_opts='
  702. enable_option_checking
  703. with_build_libsubdir
  704. with_system_zlib
  705. enable_as_accelerator_for
  706. enable_offload_targets
  707. enable_gold
  708. enable_ld
  709. enable_compressed_debug_sections
  710. enable_libquadmath
  711. enable_libquadmath_support
  712. enable_libada
  713. enable_libssp
  714. enable_libstdcxx
  715. enable_liboffloadmic
  716. enable_static_libjava
  717. enable_bootstrap
  718. with_mpc
  719. with_mpc_include
  720. with_mpc_lib
  721. with_mpfr_dir
  722. with_mpfr
  723. with_mpfr_include
  724. with_mpfr_lib
  725. with_gmp_dir
  726. with_gmp
  727. with_gmp_include
  728. with_gmp_lib
  729. with_stage1_libs
  730. with_stage1_ldflags
  731. with_boot_libs
  732. with_boot_ldflags
  733. with_isl
  734. with_isl_include
  735. with_isl_lib
  736. enable_isl_version_check
  737. enable_lto
  738. enable_linker_plugin_configure_flags
  739. enable_linker_plugin_flags
  740. enable_stage1_languages
  741. enable_objc_gc
  742. with_build_sysroot
  743. with_debug_prefix_map
  744. with_build_config
  745. enable_vtable_verify
  746. enable_serial_configure
  747. with_build_time_tools
  748. enable_maintainer_mode
  749. enable_stage1_checking
  750. enable_werror
  751. enable_host_shared
  752. '
  753. ac_precious_vars='build_alias
  754. host_alias
  755. target_alias
  756. CC
  757. CFLAGS
  758. LDFLAGS
  759. LIBS
  760. CPPFLAGS
  761. CXX
  762. CXXFLAGS
  763. CCC
  764. build_configargs
  765. host_configargs
  766. target_configargs
  767. AR
  768. AS
  769. DLLTOOL
  770. LD
  771. LIPO
  772. NM
  773. RANLIB
  774. STRIP
  775. WINDRES
  776. WINDMC
  777. OBJCOPY
  778. OBJDUMP
  779. READELF
  780. CC_FOR_TARGET
  781. CXX_FOR_TARGET
  782. GCC_FOR_TARGET
  783. GCJ_FOR_TARGET
  784. GFORTRAN_FOR_TARGET
  785. GOC_FOR_TARGET
  786. AR_FOR_TARGET
  787. AS_FOR_TARGET
  788. DLLTOOL_FOR_TARGET
  789. LD_FOR_TARGET
  790. LIPO_FOR_TARGET
  791. NM_FOR_TARGET
  792. OBJCOPY_FOR_TARGET
  793. OBJDUMP_FOR_TARGET
  794. RANLIB_FOR_TARGET
  795. READELF_FOR_TARGET
  796. STRIP_FOR_TARGET
  797. WINDRES_FOR_TARGET
  798. WINDMC_FOR_TARGET'
  799. # Initialize some variables set by options.
  800. ac_init_help=
  801. ac_init_version=false
  802. ac_unrecognized_opts=
  803. ac_unrecognized_sep=
  804. # The variables have the same names as the options, with
  805. # dashes changed to underlines.
  806. cache_file=/dev/null
  807. exec_prefix=NONE
  808. no_create=
  809. no_recursion=
  810. prefix=NONE
  811. program_prefix=NONE
  812. program_suffix=NONE
  813. program_transform_name=s,x,x,
  814. silent=
  815. site=
  816. srcdir=
  817. verbose=
  818. x_includes=NONE
  819. x_libraries=NONE
  820. # Installation directory options.
  821. # These are left unexpanded so users can "make install exec_prefix=/foo"
  822. # and all the variables that are supposed to be based on exec_prefix
  823. # by default will actually change.
  824. # Use braces instead of parens because sh, perl, etc. also accept them.
  825. # (The list follows the same order as the GNU Coding Standards.)
  826. bindir='${exec_prefix}/bin'
  827. sbindir='${exec_prefix}/sbin'
  828. libexecdir='${exec_prefix}/libexec'
  829. datarootdir='${prefix}/share'
  830. datadir='${datarootdir}'
  831. sysconfdir='${prefix}/etc'
  832. sharedstatedir='${prefix}/com'
  833. localstatedir='${prefix}/var'
  834. includedir='${prefix}/include'
  835. oldincludedir='/usr/include'
  836. docdir='${datarootdir}/doc/${PACKAGE}'
  837. infodir='${datarootdir}/info'
  838. htmldir='${docdir}'
  839. dvidir='${docdir}'
  840. pdfdir='${docdir}'
  841. psdir='${docdir}'
  842. libdir='${exec_prefix}/lib'
  843. localedir='${datarootdir}/locale'
  844. mandir='${datarootdir}/man'
  845. ac_prev=
  846. ac_dashdash=
  847. for ac_option
  848. do
  849. # If the previous option needs an argument, assign it.
  850. if test -n "$ac_prev"; then
  851. eval $ac_prev=\$ac_option
  852. ac_prev=
  853. continue
  854. fi
  855. case $ac_option in
  856. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  857. *) ac_optarg=yes ;;
  858. esac
  859. # Accept the important Cygnus configure options, so we can diagnose typos.
  860. case $ac_dashdash$ac_option in
  861. --)
  862. ac_dashdash=yes ;;
  863. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  864. ac_prev=bindir ;;
  865. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  866. bindir=$ac_optarg ;;
  867. -build | --build | --buil | --bui | --bu)
  868. ac_prev=build_alias ;;
  869. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  870. build_alias=$ac_optarg ;;
  871. -cache-file | --cache-file | --cache-fil | --cache-fi \
  872. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  873. ac_prev=cache_file ;;
  874. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  875. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  876. cache_file=$ac_optarg ;;
  877. --config-cache | -C)
  878. cache_file=config.cache ;;
  879. -datadir | --datadir | --datadi | --datad)
  880. ac_prev=datadir ;;
  881. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  882. datadir=$ac_optarg ;;
  883. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  884. | --dataroo | --dataro | --datar)
  885. ac_prev=datarootdir ;;
  886. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  887. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  888. datarootdir=$ac_optarg ;;
  889. -disable-* | --disable-*)
  890. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  891. # Reject names that are not valid shell variable names.
  892. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  893. as_fn_error "invalid feature name: $ac_useropt"
  894. ac_useropt_orig=$ac_useropt
  895. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  896. case $ac_user_opts in
  897. *"
  898. "enable_$ac_useropt"
  899. "*) ;;
  900. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  901. ac_unrecognized_sep=', ';;
  902. esac
  903. eval enable_$ac_useropt=no ;;
  904. -docdir | --docdir | --docdi | --doc | --do)
  905. ac_prev=docdir ;;
  906. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  907. docdir=$ac_optarg ;;
  908. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  909. ac_prev=dvidir ;;
  910. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  911. dvidir=$ac_optarg ;;
  912. -enable-* | --enable-*)
  913. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  914. # Reject names that are not valid shell variable names.
  915. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  916. as_fn_error "invalid feature name: $ac_useropt"
  917. ac_useropt_orig=$ac_useropt
  918. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  919. case $ac_user_opts in
  920. *"
  921. "enable_$ac_useropt"
  922. "*) ;;
  923. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  924. ac_unrecognized_sep=', ';;
  925. esac
  926. eval enable_$ac_useropt=\$ac_optarg ;;
  927. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  928. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  929. | --exec | --exe | --ex)
  930. ac_prev=exec_prefix ;;
  931. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  932. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  933. | --exec=* | --exe=* | --ex=*)
  934. exec_prefix=$ac_optarg ;;
  935. -gas | --gas | --ga | --g)
  936. # Obsolete; use --with-gas.
  937. with_gas=yes ;;
  938. -help | --help | --hel | --he | -h)
  939. ac_init_help=long ;;
  940. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  941. ac_init_help=recursive ;;
  942. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  943. ac_init_help=short ;;
  944. -host | --host | --hos | --ho)
  945. ac_prev=host_alias ;;
  946. -host=* | --host=* | --hos=* | --ho=*)
  947. host_alias=$ac_optarg ;;
  948. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  949. ac_prev=htmldir ;;
  950. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  951. | --ht=*)
  952. htmldir=$ac_optarg ;;
  953. -includedir | --includedir | --includedi | --included | --include \
  954. | --includ | --inclu | --incl | --inc)
  955. ac_prev=includedir ;;
  956. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  957. | --includ=* | --inclu=* | --incl=* | --inc=*)
  958. includedir=$ac_optarg ;;
  959. -infodir | --infodir | --infodi | --infod | --info | --inf)
  960. ac_prev=infodir ;;
  961. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  962. infodir=$ac_optarg ;;
  963. -libdir | --libdir | --libdi | --libd)
  964. ac_prev=libdir ;;
  965. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  966. libdir=$ac_optarg ;;
  967. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  968. | --libexe | --libex | --libe)
  969. ac_prev=libexecdir ;;
  970. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  971. | --libexe=* | --libex=* | --libe=*)
  972. libexecdir=$ac_optarg ;;
  973. -localedir | --localedir | --localedi | --localed | --locale)
  974. ac_prev=localedir ;;
  975. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  976. localedir=$ac_optarg ;;
  977. -localstatedir | --localstatedir | --localstatedi | --localstated \
  978. | --localstate | --localstat | --localsta | --localst | --locals)
  979. ac_prev=localstatedir ;;
  980. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  981. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  982. localstatedir=$ac_optarg ;;
  983. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  984. ac_prev=mandir ;;
  985. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  986. mandir=$ac_optarg ;;
  987. -nfp | --nfp | --nf)
  988. # Obsolete; use --without-fp.
  989. with_fp=no ;;
  990. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  991. | --no-cr | --no-c | -n)
  992. no_create=yes ;;
  993. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  994. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  995. no_recursion=yes ;;
  996. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  997. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  998. | --oldin | --oldi | --old | --ol | --o)
  999. ac_prev=oldincludedir ;;
  1000. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1001. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1002. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1003. oldincludedir=$ac_optarg ;;
  1004. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1005. ac_prev=prefix ;;
  1006. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1007. prefix=$ac_optarg ;;
  1008. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1009. | --program-pre | --program-pr | --program-p)
  1010. ac_prev=program_prefix ;;
  1011. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1012. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1013. program_prefix=$ac_optarg ;;
  1014. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1015. | --program-suf | --program-su | --program-s)
  1016. ac_prev=program_suffix ;;
  1017. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1018. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1019. program_suffix=$ac_optarg ;;
  1020. -program-transform-name | --program-transform-name \
  1021. | --program-transform-nam | --program-transform-na \
  1022. | --program-transform-n | --program-transform- \
  1023. | --program-transform | --program-transfor \
  1024. | --program-transfo | --program-transf \
  1025. | --program-trans | --program-tran \
  1026. | --progr-tra | --program-tr | --program-t)
  1027. ac_prev=program_transform_name ;;
  1028. -program-transform-name=* | --program-transform-name=* \
  1029. | --program-transform-nam=* | --program-transform-na=* \
  1030. | --program-transform-n=* | --program-transform-=* \
  1031. | --program-transform=* | --program-transfor=* \
  1032. | --program-transfo=* | --program-transf=* \
  1033. | --program-trans=* | --program-tran=* \
  1034. | --progr-tra=* | --program-tr=* | --program-t=*)
  1035. program_transform_name=$ac_optarg ;;
  1036. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1037. ac_prev=pdfdir ;;
  1038. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1039. pdfdir=$ac_optarg ;;
  1040. -psdir | --psdir | --psdi | --psd | --ps)
  1041. ac_prev=psdir ;;
  1042. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1043. psdir=$ac_optarg ;;
  1044. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1045. | -silent | --silent | --silen | --sile | --sil)
  1046. silent=yes ;;
  1047. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1048. ac_prev=sbindir ;;
  1049. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1050. | --sbi=* | --sb=*)
  1051. sbindir=$ac_optarg ;;
  1052. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1053. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1054. | --sharedst | --shareds | --shared | --share | --shar \
  1055. | --sha | --sh)
  1056. ac_prev=sharedstatedir ;;
  1057. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1058. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1059. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1060. | --sha=* | --sh=*)
  1061. sharedstatedir=$ac_optarg ;;
  1062. -site | --site | --sit)
  1063. ac_prev=site ;;
  1064. -site=* | --site=* | --sit=*)
  1065. site=$ac_optarg ;;
  1066. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1067. ac_prev=srcdir ;;
  1068. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1069. srcdir=$ac_optarg ;;
  1070. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1071. | --syscon | --sysco | --sysc | --sys | --sy)
  1072. ac_prev=sysconfdir ;;
  1073. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1074. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1075. sysconfdir=$ac_optarg ;;
  1076. -target | --target | --targe | --targ | --tar | --ta | --t)
  1077. ac_prev=target_alias ;;
  1078. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1079. target_alias=$ac_optarg ;;
  1080. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1081. verbose=yes ;;
  1082. -version | --version | --versio | --versi | --vers | -V)
  1083. ac_init_version=: ;;
  1084. -with-* | --with-*)
  1085. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1086. # Reject names that are not valid shell variable names.
  1087. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1088. as_fn_error "invalid package name: $ac_useropt"
  1089. ac_useropt_orig=$ac_useropt
  1090. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1091. case $ac_user_opts in
  1092. *"
  1093. "with_$ac_useropt"
  1094. "*) ;;
  1095. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1096. ac_unrecognized_sep=', ';;
  1097. esac
  1098. eval with_$ac_useropt=\$ac_optarg ;;
  1099. -without-* | --without-*)
  1100. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1101. # Reject names that are not valid shell variable names.
  1102. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1103. as_fn_error "invalid package name: $ac_useropt"
  1104. ac_useropt_orig=$ac_useropt
  1105. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1106. case $ac_user_opts in
  1107. *"
  1108. "with_$ac_useropt"
  1109. "*) ;;
  1110. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1111. ac_unrecognized_sep=', ';;
  1112. esac
  1113. eval with_$ac_useropt=no ;;
  1114. --x)
  1115. # Obsolete; use --with-x.
  1116. with_x=yes ;;
  1117. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1118. | --x-incl | --x-inc | --x-in | --x-i)
  1119. ac_prev=x_includes ;;
  1120. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1121. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1122. x_includes=$ac_optarg ;;
  1123. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1124. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1125. ac_prev=x_libraries ;;
  1126. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1127. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1128. x_libraries=$ac_optarg ;;
  1129. -*) as_fn_error "unrecognized option: \`$ac_option'
  1130. Try \`$0 --help' for more information."
  1131. ;;
  1132. *=*)
  1133. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1134. # Reject names that are not valid shell variable names.
  1135. case $ac_envvar in #(
  1136. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1137. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1138. esac
  1139. eval $ac_envvar=\$ac_optarg
  1140. export $ac_envvar ;;
  1141. *)
  1142. # FIXME: should be removed in autoconf 3.0.
  1143. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1144. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1145. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1146. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1147. ;;
  1148. esac
  1149. done
  1150. if test -n "$ac_prev"; then
  1151. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1152. as_fn_error "missing argument to $ac_option"
  1153. fi
  1154. if test -n "$ac_unrecognized_opts"; then
  1155. case $enable_option_checking in
  1156. no) ;;
  1157. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1158. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1159. esac
  1160. fi
  1161. # Check all directory arguments for consistency.
  1162. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1163. datadir sysconfdir sharedstatedir localstatedir includedir \
  1164. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1165. libdir localedir mandir
  1166. do
  1167. eval ac_val=\$$ac_var
  1168. # Remove trailing slashes.
  1169. case $ac_val in
  1170. */ )
  1171. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1172. eval $ac_var=\$ac_val;;
  1173. esac
  1174. # Be sure to have absolute directory names.
  1175. case $ac_val in
  1176. [\\/$]* | ?:[\\/]* ) continue;;
  1177. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1178. esac
  1179. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1180. done
  1181. # There might be people who depend on the old broken behavior: `$host'
  1182. # used to hold the argument of --host etc.
  1183. # FIXME: To remove some day.
  1184. build=$build_alias
  1185. host=$host_alias
  1186. target=$target_alias
  1187. # FIXME: To remove some day.
  1188. if test "x$host_alias" != x; then
  1189. if test "x$build_alias" = x; then
  1190. cross_compiling=maybe
  1191. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1192. If a cross compiler is detected then cross compile mode will be used." >&2
  1193. elif test "x$build_alias" != "x$host_alias"; then
  1194. cross_compiling=yes
  1195. fi
  1196. fi
  1197. ac_tool_prefix=
  1198. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1199. test "$silent" = yes && exec 6>/dev/null
  1200. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1201. ac_ls_di=`ls -di .` &&
  1202. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1203. as_fn_error "working directory cannot be determined"
  1204. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1205. as_fn_error "pwd does not report name of working directory"
  1206. # Find the source files, if location was not specified.
  1207. if test -z "$srcdir"; then
  1208. ac_srcdir_defaulted=yes
  1209. # Try the directory containing this script, then the parent directory.
  1210. ac_confdir=`$as_dirname -- "$as_myself" ||
  1211. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1212. X"$as_myself" : 'X\(//\)[^/]' \| \
  1213. X"$as_myself" : 'X\(//\)$' \| \
  1214. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1215. $as_echo X"$as_myself" |
  1216. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1217. s//\1/
  1218. q
  1219. }
  1220. /^X\(\/\/\)[^/].*/{
  1221. s//\1/
  1222. q
  1223. }
  1224. /^X\(\/\/\)$/{
  1225. s//\1/
  1226. q
  1227. }
  1228. /^X\(\/\).*/{
  1229. s//\1/
  1230. q
  1231. }
  1232. s/.*/./; q'`
  1233. srcdir=$ac_confdir
  1234. if test ! -r "$srcdir/$ac_unique_file"; then
  1235. srcdir=..
  1236. fi
  1237. else
  1238. ac_srcdir_defaulted=no
  1239. fi
  1240. if test ! -r "$srcdir/$ac_unique_file"; then
  1241. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1242. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1243. fi
  1244. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1245. ac_abs_confdir=`(
  1246. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1247. pwd)`
  1248. # When building in place, set srcdir=.
  1249. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1250. srcdir=.
  1251. fi
  1252. # Remove unnecessary trailing slashes from srcdir.
  1253. # Double slashes in file names in object file debugging info
  1254. # mess up M-x gdb in Emacs.
  1255. case $srcdir in
  1256. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1257. esac
  1258. case $srcdir in
  1259. *" "*)
  1260. as_fn_error "path to source, $srcdir, contains spaces"
  1261. ;;
  1262. esac
  1263. ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
  1264. for ac_var in $ac_precious_vars; do
  1265. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1266. eval ac_env_${ac_var}_value=\$${ac_var}
  1267. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1268. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1269. done
  1270. #
  1271. # Report the --help message.
  1272. #
  1273. if test "$ac_init_help" = "long"; then
  1274. # Omit some internal or obsolete options to make the list less imposing.
  1275. # This message is too long to be a string in the A/UX 3.1 sh.
  1276. cat <<_ACEOF
  1277. \`configure' configures this package to adapt to many kinds of systems.
  1278. Usage: $0 [OPTION]... [VAR=VALUE]...
  1279. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1280. VAR=VALUE. See below for descriptions of some of the useful variables.
  1281. Defaults for the options are specified in brackets.
  1282. Configuration:
  1283. -h, --help display this help and exit
  1284. --help=short display options specific to this package
  1285. --help=recursive display the short help of all the included packages
  1286. -V, --version display version information and exit
  1287. -q, --quiet, --silent do not print \`checking...' messages
  1288. --cache-file=FILE cache test results in FILE [disabled]
  1289. -C, --config-cache alias for \`--cache-file=config.cache'
  1290. -n, --no-create do not create output files
  1291. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1292. Installation directories:
  1293. --prefix=PREFIX install architecture-independent files in PREFIX
  1294. [$ac_default_prefix]
  1295. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1296. [PREFIX]
  1297. By default, \`make install' will install all the files in
  1298. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1299. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1300. for instance \`--prefix=\$HOME'.
  1301. For better control, use the options below.
  1302. Fine tuning of the installation directories:
  1303. --bindir=DIR user executables [EPREFIX/bin]
  1304. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1305. --libexecdir=DIR program executables [EPREFIX/libexec]
  1306. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1307. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1308. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1309. --libdir=DIR object code libraries [EPREFIX/lib]
  1310. --includedir=DIR C header files [PREFIX/include]
  1311. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1312. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1313. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1314. --infodir=DIR info documentation [DATAROOTDIR/info]
  1315. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1316. --mandir=DIR man documentation [DATAROOTDIR/man]
  1317. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1318. --htmldir=DIR html documentation [DOCDIR]
  1319. --dvidir=DIR dvi documentation [DOCDIR]
  1320. --pdfdir=DIR pdf documentation [DOCDIR]
  1321. --psdir=DIR ps documentation [DOCDIR]
  1322. _ACEOF
  1323. cat <<\_ACEOF
  1324. Program names:
  1325. --program-prefix=PREFIX prepend PREFIX to installed program names
  1326. --program-suffix=SUFFIX append SUFFIX to installed program names
  1327. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1328. System types:
  1329. --build=BUILD configure for building on BUILD [guessed]
  1330. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1331. --target=TARGET configure for building compilers for TARGET [HOST]
  1332. _ACEOF
  1333. fi
  1334. if test -n "$ac_init_help"; then
  1335. cat <<\_ACEOF
  1336. Optional Features:
  1337. --disable-option-checking ignore unrecognized --enable/--with options
  1338. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1339. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1340. --enable-as-accelerator-for=ARG
  1341. build as offload target compiler. Specify offload
  1342. host triple by ARG
  1343. --enable-offload-targets=LIST
  1344. enable offloading to devices from comma-separated
  1345. LIST of TARGET[=DIR]. Use optional path to find
  1346. offload target compiler during the build
  1347. --enable-gold[=ARG] build gold [ARG={default,yes,no}]
  1348. --enable-ld[=ARG] build ld [ARG={default,yes,no}]
  1349. --enable-compressed-debug-sections={all,gas,gold,ld,none}
  1350. Enable compressed debug sections for gas, gold or ld
  1351. by default
  1352. --disable-libquadmath do not build libquadmath directory
  1353. --disable-libquadmath-support
  1354. disable libquadmath support for Fortran
  1355. --enable-libada build libada directory
  1356. --enable-libssp build libssp directory
  1357. --disable-libstdcxx do not build libstdc++-v3 directory
  1358. --enable-liboffloadmic=ARG
  1359. build liboffloadmic [ARG={no,host,target}]
  1360. --enable-static-libjava[=ARG]
  1361. build static libjava [default=no]
  1362. --enable-bootstrap enable bootstrapping [yes if native build]
  1363. --disable-isl-version-check
  1364. disable check for isl version
  1365. --enable-lto enable link time optimization support
  1366. --enable-linker-plugin-configure-flags=FLAGS
  1367. additional flags for configuring linker plugins
  1368. [none]
  1369. --enable-linker-plugin-flags=FLAGS
  1370. additional flags for configuring and building linker
  1371. plugins [none]
  1372. --enable-stage1-languages[=all]
  1373. choose additional languages to build during stage1.
  1374. Mostly useful for compiler development
  1375. --enable-objc-gc enable use of Boehm's garbage collector with the GNU
  1376. Objective-C runtime
  1377. --enable-vtable-verify Enable vtable verification feature
  1378. --enable-serial-[{host,target,build}-]configure
  1379. force sequential configuration of sub-packages for
  1380. the host, target or build machine, or all
  1381. sub-packages
  1382. --enable-maintainer-mode
  1383. enable make rules and dependencies not useful (and
  1384. sometimes confusing) to the casual installer
  1385. --enable-stage1-checking[=all]
  1386. choose additional checking for stage1 of the
  1387. compiler
  1388. --enable-werror enable -Werror in bootstrap stage2 and later
  1389. --enable-host-shared build host code as shared libraries
  1390. Optional Packages:
  1391. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1392. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1393. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1394. --with-system-zlib use installed libz
  1395. --with-mpc=PATH specify prefix directory for installed MPC package.
  1396. Equivalent to --with-mpc-include=PATH/include plus
  1397. --with-mpc-lib=PATH/lib
  1398. --with-mpc-include=PATH specify directory for installed MPC include files
  1399. --with-mpc-lib=PATH specify directory for the installed MPC library
  1400. --with-mpfr-dir=PATH this option has been REMOVED
  1401. --with-mpfr=PATH specify prefix directory for installed MPFR package.
  1402. Equivalent to --with-mpfr-include=PATH/include plus
  1403. --with-mpfr-lib=PATH/lib
  1404. --with-mpfr-include=PATH
  1405. specify directory for installed MPFR include files
  1406. --with-mpfr-lib=PATH specify directory for the installed MPFR library
  1407. --with-gmp-dir=PATH this option has been REMOVED
  1408. --with-gmp=PATH specify prefix directory for the installed GMP
  1409. package. Equivalent to
  1410. --with-gmp-include=PATH/include plus
  1411. --with-gmp-lib=PATH/lib
  1412. --with-gmp-include=PATH specify directory for installed GMP include files
  1413. --with-gmp-lib=PATH specify directory for the installed GMP library
  1414. --with-stage1-libs=LIBS libraries for stage1
  1415. --with-stage1-ldflags=FLAGS
  1416. linker flags for stage1
  1417. --with-boot-libs=LIBS libraries for stage2 and later
  1418. --with-boot-ldflags=FLAGS
  1419. linker flags for stage2 and later
  1420. --with-isl=PATH Specify prefix directory for the installed isl
  1421. package. Equivalent to
  1422. --with-isl-include=PATH/include plus
  1423. --with-isl-lib=PATH/lib
  1424. --with-isl-include=PATH Specify directory for installed isl include files
  1425. --with-isl-lib=PATH Specify the directory for the installed isl library
  1426. --with-build-sysroot=SYSROOT
  1427. use sysroot as the system root during the build
  1428. --with-debug-prefix-map='A=B C=D ...'
  1429. map A to B, C to D ... in debug information
  1430. --with-build-config='NAME NAME2...'
  1431. use config/NAME.mk build configuration
  1432. --with-build-time-tools=PATH
  1433. use given path to find target tools during the build
  1434. Some influential environment variables:
  1435. CC C compiler command
  1436. CFLAGS C compiler flags
  1437. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1438. nonstandard directory <lib dir>
  1439. LIBS libraries to pass to the linker, e.g. -l<library>
  1440. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1441. you have headers in a nonstandard directory <include dir>
  1442. CXX C++ compiler command
  1443. CXXFLAGS C++ compiler flags
  1444. build_configargs
  1445. additional configure arguments for build directories
  1446. host_configargs
  1447. additional configure arguments for host directories
  1448. target_configargs
  1449. additional configure arguments for target directories
  1450. AR AR for the host
  1451. AS AS for the host
  1452. DLLTOOL DLLTOOL for the host
  1453. LD LD for the host
  1454. LIPO LIPO for the host
  1455. NM NM for the host
  1456. RANLIB RANLIB for the host
  1457. STRIP STRIP for the host
  1458. WINDRES WINDRES for the host
  1459. WINDMC WINDMC for the host
  1460. OBJCOPY OBJCOPY for the host
  1461. OBJDUMP OBJDUMP for the host
  1462. READELF READELF for the host
  1463. CC_FOR_TARGET
  1464. CC for the target
  1465. CXX_FOR_TARGET
  1466. CXX for the target
  1467. GCC_FOR_TARGET
  1468. GCC for the target
  1469. GCJ_FOR_TARGET
  1470. GCJ for the target
  1471. GFORTRAN_FOR_TARGET
  1472. GFORTRAN for the target
  1473. GOC_FOR_TARGET
  1474. GOC for the target
  1475. AR_FOR_TARGET
  1476. AR for the target
  1477. AS_FOR_TARGET
  1478. AS for the target
  1479. DLLTOOL_FOR_TARGET
  1480. DLLTOOL for the target
  1481. LD_FOR_TARGET
  1482. LD for the target
  1483. LIPO_FOR_TARGET
  1484. LIPO for the target
  1485. NM_FOR_TARGET
  1486. NM for the target
  1487. OBJCOPY_FOR_TARGET
  1488. OBJCOPY for the target
  1489. OBJDUMP_FOR_TARGET
  1490. OBJDUMP for the target
  1491. RANLIB_FOR_TARGET
  1492. RANLIB for the target
  1493. READELF_FOR_TARGET
  1494. READELF for the target
  1495. STRIP_FOR_TARGET
  1496. STRIP for the target
  1497. WINDRES_FOR_TARGET
  1498. WINDRES for the target
  1499. WINDMC_FOR_TARGET
  1500. WINDMC for the target
  1501. Use these variables to override the choices made by `configure' or to help
  1502. it to find libraries and programs with nonstandard names/locations.
  1503. Report bugs to the package provider.
  1504. _ACEOF
  1505. ac_status=$?
  1506. fi
  1507. if test "$ac_init_help" = "recursive"; then
  1508. # If there are subdirs, report their specific --help.
  1509. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1510. test -d "$ac_dir" ||
  1511. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1512. continue
  1513. ac_builddir=.
  1514. case "$ac_dir" in
  1515. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1516. *)
  1517. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1518. # A ".." for each directory in $ac_dir_suffix.
  1519. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1520. case $ac_top_builddir_sub in
  1521. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1522. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1523. esac ;;
  1524. esac
  1525. ac_abs_top_builddir=$ac_pwd
  1526. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1527. # for backward compatibility:
  1528. ac_top_builddir=$ac_top_build_prefix
  1529. case $srcdir in
  1530. .) # We are building in place.
  1531. ac_srcdir=.
  1532. ac_top_srcdir=$ac_top_builddir_sub
  1533. ac_abs_top_srcdir=$ac_pwd ;;
  1534. [\\/]* | ?:[\\/]* ) # Absolute name.
  1535. ac_srcdir=$srcdir$ac_dir_suffix;
  1536. ac_top_srcdir=$srcdir
  1537. ac_abs_top_srcdir=$srcdir ;;
  1538. *) # Relative name.
  1539. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1540. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1541. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1542. esac
  1543. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1544. cd "$ac_dir" || { ac_status=$?; continue; }
  1545. # Check for guested configure.
  1546. if test -f "$ac_srcdir/configure.gnu"; then
  1547. echo &&
  1548. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1549. elif test -f "$ac_srcdir/configure"; then
  1550. echo &&
  1551. $SHELL "$ac_srcdir/configure" --help=recursive
  1552. else
  1553. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1554. fi || ac_status=$?
  1555. cd "$ac_pwd" || { ac_status=$?; break; }
  1556. done
  1557. fi
  1558. test -n "$ac_init_help" && exit $ac_status
  1559. if $ac_init_version; then
  1560. cat <<\_ACEOF
  1561. configure
  1562. generated by GNU Autoconf 2.64
  1563. Copyright (C) 2009 Free Software Foundation, Inc.
  1564. This configure script is free software; the Free Software Foundation
  1565. gives unlimited permission to copy, distribute and modify it.
  1566. _ACEOF
  1567. exit
  1568. fi
  1569. ## ------------------------ ##
  1570. ## Autoconf initialization. ##
  1571. ## ------------------------ ##
  1572. # ac_fn_c_try_compile LINENO
  1573. # --------------------------
  1574. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1575. ac_fn_c_try_compile ()
  1576. {
  1577. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1578. rm -f conftest.$ac_objext
  1579. if { { ac_try="$ac_compile"
  1580. case "(($ac_try" in
  1581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1582. *) ac_try_echo=$ac_try;;
  1583. esac
  1584. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1585. $as_echo "$ac_try_echo"; } >&5
  1586. (eval "$ac_compile") 2>conftest.err
  1587. ac_status=$?
  1588. if test -s conftest.err; then
  1589. grep -v '^ *+' conftest.err >conftest.er1
  1590. cat conftest.er1 >&5
  1591. mv -f conftest.er1 conftest.err
  1592. fi
  1593. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1594. test $ac_status = 0; } && {
  1595. test -z "$ac_c_werror_flag" ||
  1596. test ! -s conftest.err
  1597. } && test -s conftest.$ac_objext; then :
  1598. ac_retval=0
  1599. else
  1600. $as_echo "$as_me: failed program was:" >&5
  1601. sed 's/^/| /' conftest.$ac_ext >&5
  1602. ac_retval=1
  1603. fi
  1604. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1605. return $ac_retval
  1606. } # ac_fn_c_try_compile
  1607. # ac_fn_cxx_try_compile LINENO
  1608. # ----------------------------
  1609. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1610. ac_fn_cxx_try_compile ()
  1611. {
  1612. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1613. rm -f conftest.$ac_objext
  1614. if { { ac_try="$ac_compile"
  1615. case "(($ac_try" in
  1616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1617. *) ac_try_echo=$ac_try;;
  1618. esac
  1619. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1620. $as_echo "$ac_try_echo"; } >&5
  1621. (eval "$ac_compile") 2>conftest.err
  1622. ac_status=$?
  1623. if test -s conftest.err; then
  1624. grep -v '^ *+' conftest.err >conftest.er1
  1625. cat conftest.er1 >&5
  1626. mv -f conftest.er1 conftest.err
  1627. fi
  1628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1629. test $ac_status = 0; } && {
  1630. test -z "$ac_cxx_werror_flag" ||
  1631. test ! -s conftest.err
  1632. } && test -s conftest.$ac_objext; then :
  1633. ac_retval=0
  1634. else
  1635. $as_echo "$as_me: failed program was:" >&5
  1636. sed 's/^/| /' conftest.$ac_ext >&5
  1637. ac_retval=1
  1638. fi
  1639. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1640. return $ac_retval
  1641. } # ac_fn_cxx_try_compile
  1642. # ac_fn_cxx_try_link LINENO
  1643. # -------------------------
  1644. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1645. ac_fn_cxx_try_link ()
  1646. {
  1647. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1648. rm -f conftest.$ac_objext conftest$ac_exeext
  1649. if { { ac_try="$ac_link"
  1650. case "(($ac_try" in
  1651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1652. *) ac_try_echo=$ac_try;;
  1653. esac
  1654. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1655. $as_echo "$ac_try_echo"; } >&5
  1656. (eval "$ac_link") 2>conftest.err
  1657. ac_status=$?
  1658. if test -s conftest.err; then
  1659. grep -v '^ *+' conftest.err >conftest.er1
  1660. cat conftest.er1 >&5
  1661. mv -f conftest.er1 conftest.err
  1662. fi
  1663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1664. test $ac_status = 0; } && {
  1665. test -z "$ac_cxx_werror_flag" ||
  1666. test ! -s conftest.err
  1667. } && test -s conftest$ac_exeext && {
  1668. test "$cross_compiling" = yes ||
  1669. $as_test_x conftest$ac_exeext
  1670. }; then :
  1671. ac_retval=0
  1672. else
  1673. $as_echo "$as_me: failed program was:" >&5
  1674. sed 's/^/| /' conftest.$ac_ext >&5
  1675. ac_retval=1
  1676. fi
  1677. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1678. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1679. # interfere with the next link command; also delete a directory that is
  1680. # left behind by Apple's compiler. We do this before executing the actions.
  1681. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1682. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1683. return $ac_retval
  1684. } # ac_fn_cxx_try_link
  1685. # ac_fn_c_try_link LINENO
  1686. # -----------------------
  1687. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1688. ac_fn_c_try_link ()
  1689. {
  1690. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1691. rm -f conftest.$ac_objext conftest$ac_exeext
  1692. if { { ac_try="$ac_link"
  1693. case "(($ac_try" in
  1694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1695. *) ac_try_echo=$ac_try;;
  1696. esac
  1697. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1698. $as_echo "$ac_try_echo"; } >&5
  1699. (eval "$ac_link") 2>conftest.err
  1700. ac_status=$?
  1701. if test -s conftest.err; then
  1702. grep -v '^ *+' conftest.err >conftest.er1
  1703. cat conftest.er1 >&5
  1704. mv -f conftest.er1 conftest.err
  1705. fi
  1706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1707. test $ac_status = 0; } && {
  1708. test -z "$ac_c_werror_flag" ||
  1709. test ! -s conftest.err
  1710. } && test -s conftest$ac_exeext && {
  1711. test "$cross_compiling" = yes ||
  1712. $as_test_x conftest$ac_exeext
  1713. }; then :
  1714. ac_retval=0
  1715. else
  1716. $as_echo "$as_me: failed program was:" >&5
  1717. sed 's/^/| /' conftest.$ac_ext >&5
  1718. ac_retval=1
  1719. fi
  1720. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1721. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1722. # interfere with the next link command; also delete a directory that is
  1723. # left behind by Apple's compiler. We do this before executing the actions.
  1724. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1725. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1726. return $ac_retval
  1727. } # ac_fn_c_try_link
  1728. cat >config.log <<_ACEOF
  1729. This file contains any messages produced by compilers while
  1730. running configure, to aid debugging if configure makes a mistake.
  1731. It was created by $as_me, which was
  1732. generated by GNU Autoconf 2.64. Invocation command line was
  1733. $ $0 $@
  1734. _ACEOF
  1735. exec 5>>config.log
  1736. {
  1737. cat <<_ASUNAME
  1738. ## --------- ##
  1739. ## Platform. ##
  1740. ## --------- ##
  1741. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1742. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1743. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1744. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1745. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1746. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1747. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1748. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1749. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1750. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1751. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1752. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1753. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1754. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1755. _ASUNAME
  1756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1757. for as_dir in $PATH
  1758. do
  1759. IFS=$as_save_IFS
  1760. test -z "$as_dir" && as_dir=.
  1761. $as_echo "PATH: $as_dir"
  1762. done
  1763. IFS=$as_save_IFS
  1764. } >&5
  1765. cat >&5 <<_ACEOF
  1766. ## ----------- ##
  1767. ## Core tests. ##
  1768. ## ----------- ##
  1769. _ACEOF
  1770. # Keep a trace of the command line.
  1771. # Strip out --no-create and --no-recursion so they do not pile up.
  1772. # Strip out --silent because we don't want to record it for future runs.
  1773. # Also quote any args containing shell meta-characters.
  1774. # Make two passes to allow for proper duplicate-argument suppression.
  1775. ac_configure_args=
  1776. ac_configure_args0=
  1777. ac_configure_args1=
  1778. ac_must_keep_next=false
  1779. for ac_pass in 1 2
  1780. do
  1781. for ac_arg
  1782. do
  1783. case $ac_arg in
  1784. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1785. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1786. | -silent | --silent | --silen | --sile | --sil)
  1787. continue ;;
  1788. *\'*)
  1789. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1790. esac
  1791. case $ac_pass in
  1792. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1793. 2)
  1794. as_fn_append ac_configure_args1 " '$ac_arg'"
  1795. if test $ac_must_keep_next = true; then
  1796. ac_must_keep_next=false # Got value, back to normal.
  1797. else
  1798. case $ac_arg in
  1799. *=* | --config-cache | -C | -disable-* | --disable-* \
  1800. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1801. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1802. | -with-* | --with-* | -without-* | --without-* | --x)
  1803. case "$ac_configure_args0 " in
  1804. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1805. esac
  1806. ;;
  1807. -* ) ac_must_keep_next=true ;;
  1808. esac
  1809. fi
  1810. as_fn_append ac_configure_args " '$ac_arg'"
  1811. ;;
  1812. esac
  1813. done
  1814. done
  1815. { ac_configure_args0=; unset ac_configure_args0;}
  1816. { ac_configure_args1=; unset ac_configure_args1;}
  1817. # When interrupted or exit'd, cleanup temporary files, and complete
  1818. # config.log. We remove comments because anyway the quotes in there
  1819. # would cause problems or look ugly.
  1820. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1821. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1822. trap 'exit_status=$?
  1823. # Save into config.log some information that might help in debugging.
  1824. {
  1825. echo
  1826. cat <<\_ASBOX
  1827. ## ---------------- ##
  1828. ## Cache variables. ##
  1829. ## ---------------- ##
  1830. _ASBOX
  1831. echo
  1832. # The following way of writing the cache mishandles newlines in values,
  1833. (
  1834. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1835. eval ac_val=\$$ac_var
  1836. case $ac_val in #(
  1837. *${as_nl}*)
  1838. case $ac_var in #(
  1839. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1840. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1841. esac
  1842. case $ac_var in #(
  1843. _ | IFS | as_nl) ;; #(
  1844. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1845. *) { eval $ac_var=; unset $ac_var;} ;;
  1846. esac ;;
  1847. esac
  1848. done
  1849. (set) 2>&1 |
  1850. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1851. *${as_nl}ac_space=\ *)
  1852. sed -n \
  1853. "s/'\''/'\''\\\\'\'''\''/g;
  1854. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1855. ;; #(
  1856. *)
  1857. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1858. ;;
  1859. esac |
  1860. sort
  1861. )
  1862. echo
  1863. cat <<\_ASBOX
  1864. ## ----------------- ##
  1865. ## Output variables. ##
  1866. ## ----------------- ##
  1867. _ASBOX
  1868. echo
  1869. for ac_var in $ac_subst_vars
  1870. do
  1871. eval ac_val=\$$ac_var
  1872. case $ac_val in
  1873. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1874. esac
  1875. $as_echo "$ac_var='\''$ac_val'\''"
  1876. done | sort
  1877. echo
  1878. if test -n "$ac_subst_files"; then
  1879. cat <<\_ASBOX
  1880. ## ------------------- ##
  1881. ## File substitutions. ##
  1882. ## ------------------- ##
  1883. _ASBOX
  1884. echo
  1885. for ac_var in $ac_subst_files
  1886. do
  1887. eval ac_val=\$$ac_var
  1888. case $ac_val in
  1889. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1890. esac
  1891. $as_echo "$ac_var='\''$ac_val'\''"
  1892. done | sort
  1893. echo
  1894. fi
  1895. if test -s confdefs.h; then
  1896. cat <<\_ASBOX
  1897. ## ----------- ##
  1898. ## confdefs.h. ##
  1899. ## ----------- ##
  1900. _ASBOX
  1901. echo
  1902. cat confdefs.h
  1903. echo
  1904. fi
  1905. test "$ac_signal" != 0 &&
  1906. $as_echo "$as_me: caught signal $ac_signal"
  1907. $as_echo "$as_me: exit $exit_status"
  1908. } >&5
  1909. rm -f core *.core core.conftest.* &&
  1910. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1911. exit $exit_status
  1912. ' 0
  1913. for ac_signal in 1 2 13 15; do
  1914. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1915. done
  1916. ac_signal=0
  1917. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1918. rm -f -r conftest* confdefs.h
  1919. $as_echo "/* confdefs.h */" > confdefs.h
  1920. # Predefined preprocessor variables.
  1921. cat >>confdefs.h <<_ACEOF
  1922. #define PACKAGE_NAME "$PACKAGE_NAME"
  1923. _ACEOF
  1924. cat >>confdefs.h <<_ACEOF
  1925. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1926. _ACEOF
  1927. cat >>confdefs.h <<_ACEOF
  1928. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1929. _ACEOF
  1930. cat >>confdefs.h <<_ACEOF
  1931. #define PACKAGE_STRING "$PACKAGE_STRING"
  1932. _ACEOF
  1933. cat >>confdefs.h <<_ACEOF
  1934. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1935. _ACEOF
  1936. cat >>confdefs.h <<_ACEOF
  1937. #define PACKAGE_URL "$PACKAGE_URL"
  1938. _ACEOF
  1939. # Let the site file select an alternate cache file if it wants to.
  1940. # Prefer an explicitly selected file to automatically selected ones.
  1941. ac_site_file1=NONE
  1942. ac_site_file2=NONE
  1943. if test -n "$CONFIG_SITE"; then
  1944. ac_site_file1=$CONFIG_SITE
  1945. elif test "x$prefix" != xNONE; then
  1946. ac_site_file1=$prefix/share/config.site
  1947. ac_site_file2=$prefix/etc/config.site
  1948. else
  1949. ac_site_file1=$ac_default_prefix/share/config.site
  1950. ac_site_file2=$ac_default_prefix/etc/config.site
  1951. fi
  1952. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1953. do
  1954. test "x$ac_site_file" = xNONE && continue
  1955. if test -r "$ac_site_file"; then
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1957. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1958. sed 's/^/| /' "$ac_site_file" >&5
  1959. . "$ac_site_file"
  1960. fi
  1961. done
  1962. if test -r "$cache_file"; then
  1963. # Some versions of bash will fail to source /dev/null (special
  1964. # files actually), so we avoid doing that.
  1965. if test -f "$cache_file"; then
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1967. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1968. case $cache_file in
  1969. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1970. *) . "./$cache_file";;
  1971. esac
  1972. fi
  1973. else
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1975. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1976. >$cache_file
  1977. fi
  1978. # Check that the precious variables saved in the cache have kept the same
  1979. # value.
  1980. ac_cache_corrupted=false
  1981. for ac_var in $ac_precious_vars; do
  1982. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1983. eval ac_new_set=\$ac_env_${ac_var}_set
  1984. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1985. eval ac_new_val=\$ac_env_${ac_var}_value
  1986. case $ac_old_set,$ac_new_set in
  1987. set,)
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1989. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1990. ac_cache_corrupted=: ;;
  1991. ,set)
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1993. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1994. ac_cache_corrupted=: ;;
  1995. ,);;
  1996. *)
  1997. if test "x$ac_old_val" != "x$ac_new_val"; then
  1998. # differences in whitespace do not lead to failure.
  1999. ac_old_val_w=`echo x $ac_old_val`
  2000. ac_new_val_w=`echo x $ac_new_val`
  2001. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2003. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2004. ac_cache_corrupted=:
  2005. else
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2007. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2008. eval $ac_var=\$ac_old_val
  2009. fi
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2011. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2012. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2013. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2014. fi;;
  2015. esac
  2016. # Pass precious variables to config.status.
  2017. if test "$ac_new_set" = set; then
  2018. case $ac_new_val in
  2019. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2020. *) ac_arg=$ac_var=$ac_new_val ;;
  2021. esac
  2022. case " $ac_configure_args " in
  2023. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2024. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2025. esac
  2026. fi
  2027. done
  2028. if $ac_cache_corrupted; then
  2029. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2030. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2032. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2033. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2034. fi
  2035. ## -------------------- ##
  2036. ## Main body of script. ##
  2037. ## -------------------- ##
  2038. ac_ext=c
  2039. ac_cpp='$CPP $CPPFLAGS'
  2040. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2041. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2042. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2043. progname=$0
  2044. # if PWD already has a value, it is probably wrong.
  2045. if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
  2046. # Export original configure arguments for use by sub-configures.
  2047. # Quote arguments with shell meta charatcers.
  2048. TOPLEVEL_CONFIGURE_ARGUMENTS=
  2049. set -- "$progname" "$@"
  2050. for ac_arg
  2051. do
  2052. case "$ac_arg" in
  2053. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
  2054. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  2055. # if the argument is of the form -foo=baz, quote the baz part only
  2056. ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
  2057. *) ;;
  2058. esac
  2059. # Add the quoted argument to the list.
  2060. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
  2061. done
  2062. if test "$silent" = yes; then
  2063. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
  2064. fi
  2065. # Remove the initial space we just introduced and, as these will be
  2066. # expanded by make, quote '$'.
  2067. TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  2068. # Find the build, host, and target systems.
  2069. ac_aux_dir=
  2070. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2071. for ac_t in install-sh install.sh shtool; do
  2072. if test -f "$ac_dir/$ac_t"; then
  2073. ac_aux_dir=$ac_dir
  2074. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2075. break 2
  2076. fi
  2077. done
  2078. done
  2079. if test -z "$ac_aux_dir"; then
  2080. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2081. fi
  2082. # These three variables are undocumented and unsupported,
  2083. # and are intended to be withdrawn in a future Autoconf release.
  2084. # They can cause serious problems if a builder's source tree is in a directory
  2085. # whose full name contains unusual characters.
  2086. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2087. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2088. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2089. # Make sure we can run config.sub.
  2090. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2091. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2093. $as_echo_n "checking build system type... " >&6; }
  2094. if test "${ac_cv_build+set}" = set; then :
  2095. $as_echo_n "(cached) " >&6
  2096. else
  2097. ac_build_alias=$build_alias
  2098. test "x$ac_build_alias" = x &&
  2099. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2100. test "x$ac_build_alias" = x &&
  2101. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2102. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2103. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2104. fi
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2106. $as_echo "$ac_cv_build" >&6; }
  2107. case $ac_cv_build in
  2108. *-*-*) ;;
  2109. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2110. esac
  2111. build=$ac_cv_build
  2112. ac_save_IFS=$IFS; IFS='-'
  2113. set x $ac_cv_build
  2114. shift
  2115. build_cpu=$1
  2116. build_vendor=$2
  2117. shift; shift
  2118. # Remember, the first character of IFS is used to create $*,
  2119. # except with old shells:
  2120. build_os=$*
  2121. IFS=$ac_save_IFS
  2122. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2123. case ${build_alias} in
  2124. "") build_noncanonical=${build} ;;
  2125. *) build_noncanonical=${build_alias} ;;
  2126. esac
  2127. case ${host_alias} in
  2128. "") host_noncanonical=${build_noncanonical} ;;
  2129. *) host_noncanonical=${host_alias} ;;
  2130. esac
  2131. case ${target_alias} in
  2132. "") target_noncanonical=${host_noncanonical} ;;
  2133. *) target_noncanonical=${target_alias} ;;
  2134. esac
  2135. test "$host_noncanonical" = "$target_noncanonical" &&
  2136. test "$program_prefix$program_suffix$program_transform_name" = \
  2137. NONENONEs,x,x, &&
  2138. program_transform_name=s,y,y,
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2140. $as_echo_n "checking host system type... " >&6; }
  2141. if test "${ac_cv_host+set}" = set; then :
  2142. $as_echo_n "(cached) " >&6
  2143. else
  2144. if test "x$host_alias" = x; then
  2145. ac_cv_host=$ac_cv_build
  2146. else
  2147. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2148. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2149. fi
  2150. fi
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2152. $as_echo "$ac_cv_host" >&6; }
  2153. case $ac_cv_host in
  2154. *-*-*) ;;
  2155. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2156. esac
  2157. host=$ac_cv_host
  2158. ac_save_IFS=$IFS; IFS='-'
  2159. set x $ac_cv_host
  2160. shift
  2161. host_cpu=$1
  2162. host_vendor=$2
  2163. shift; shift
  2164. # Remember, the first character of IFS is used to create $*,
  2165. # except with old shells:
  2166. host_os=$*
  2167. IFS=$ac_save_IFS
  2168. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2170. $as_echo_n "checking target system type... " >&6; }
  2171. if test "${ac_cv_target+set}" = set; then :
  2172. $as_echo_n "(cached) " >&6
  2173. else
  2174. if test "x$target_alias" = x; then
  2175. ac_cv_target=$ac_cv_host
  2176. else
  2177. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2178. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2179. fi
  2180. fi
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2182. $as_echo "$ac_cv_target" >&6; }
  2183. case $ac_cv_target in
  2184. *-*-*) ;;
  2185. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2186. esac
  2187. target=$ac_cv_target
  2188. ac_save_IFS=$IFS; IFS='-'
  2189. set x $ac_cv_target
  2190. shift
  2191. target_cpu=$1
  2192. target_vendor=$2
  2193. shift; shift
  2194. # Remember, the first character of IFS is used to create $*,
  2195. # except with old shells:
  2196. target_os=$*
  2197. IFS=$ac_save_IFS
  2198. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2199. # The aliases save the names the user supplied, while $host etc.
  2200. # will get canonicalized.
  2201. test -n "$target_alias" &&
  2202. test "$program_prefix$program_suffix$program_transform_name" = \
  2203. NONENONEs,x,x, &&
  2204. program_prefix=${target_alias}-
  2205. test "$program_prefix" != NONE &&
  2206. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2207. # Use a double $ so make ignores it.
  2208. test "$program_suffix" != NONE &&
  2209. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2210. # Double any \ or $.
  2211. # By default was `s,x,x', remove it if useless.
  2212. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2213. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2214. # Get 'install' or 'install-sh' and its variants.
  2215. # Find a good install program. We prefer a C program (faster),
  2216. # so one script is as good as another. But avoid the broken or
  2217. # incompatible versions:
  2218. # SysV /etc/install, /usr/sbin/install
  2219. # SunOS /usr/etc/install
  2220. # IRIX /sbin/install
  2221. # AIX /bin/install
  2222. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2223. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2224. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2225. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2226. # OS/2's system install, which has a completely different semantic
  2227. # ./install, which can be erroneously created by make from ./install.sh.
  2228. # Reject install programs that cannot install multiple files.
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2230. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2231. if test -z "$INSTALL"; then
  2232. if test "${ac_cv_path_install+set}" = set; then :
  2233. $as_echo_n "(cached) " >&6
  2234. else
  2235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2236. for as_dir in $PATH
  2237. do
  2238. IFS=$as_save_IFS
  2239. test -z "$as_dir" && as_dir=.
  2240. # Account for people who put trailing slashes in PATH elements.
  2241. case $as_dir/ in #((
  2242. ./ | .// | /[cC]/* | \
  2243. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2244. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2245. /usr/ucb/* ) ;;
  2246. *)
  2247. # OSF1 and SCO ODT 3.0 have their own names for install.
  2248. # Don't use installbsd from OSF since it installs stuff as root
  2249. # by default.
  2250. for ac_prog in ginstall scoinst install; do
  2251. for ac_exec_ext in '' $ac_executable_extensions; do
  2252. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2253. if test $ac_prog = install &&
  2254. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2255. # AIX install. It has an incompatible calling convention.
  2256. :
  2257. elif test $ac_prog = install &&
  2258. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2259. # program-specific install script used by HP pwplus--don't use.
  2260. :
  2261. else
  2262. rm -rf conftest.one conftest.two conftest.dir
  2263. echo one > conftest.one
  2264. echo two > conftest.two
  2265. mkdir conftest.dir
  2266. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2267. test -s conftest.one && test -s conftest.two &&
  2268. test -s conftest.dir/conftest.one &&
  2269. test -s conftest.dir/conftest.two
  2270. then
  2271. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2272. break 3
  2273. fi
  2274. fi
  2275. fi
  2276. done
  2277. done
  2278. ;;
  2279. esac
  2280. done
  2281. IFS=$as_save_IFS
  2282. rm -rf conftest.one conftest.two conftest.dir
  2283. fi
  2284. if test "${ac_cv_path_install+set}" = set; then
  2285. INSTALL=$ac_cv_path_install
  2286. else
  2287. # As a last resort, use the slow shell script. Don't cache a
  2288. # value for INSTALL within a source directory, because that will
  2289. # break other packages using the cache if that directory is
  2290. # removed, or if the value is a relative name.
  2291. INSTALL=$ac_install_sh
  2292. fi
  2293. fi
  2294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2295. $as_echo "$INSTALL" >&6; }
  2296. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2297. # It thinks the first close brace ends the variable substitution.
  2298. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2299. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2300. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
  2302. $as_echo_n "checking whether ln works... " >&6; }
  2303. if test "${acx_cv_prog_LN+set}" = set; then :
  2304. $as_echo_n "(cached) " >&6
  2305. else
  2306. rm -f conftestdata_t
  2307. echo >conftestdata_f
  2308. if ln conftestdata_f conftestdata_t 2>/dev/null
  2309. then
  2310. acx_cv_prog_LN=ln
  2311. else
  2312. acx_cv_prog_LN=no
  2313. fi
  2314. rm -f conftestdata_f conftestdata_t
  2315. fi
  2316. if test $acx_cv_prog_LN = no; then
  2317. LN="cp"
  2318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
  2319. $as_echo "no, using $LN" >&6; }
  2320. else
  2321. LN="$acx_cv_prog_LN"
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2323. $as_echo "yes" >&6; }
  2324. fi
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  2326. $as_echo_n "checking whether ln -s works... " >&6; }
  2327. LN_S=$as_ln_s
  2328. if test "$LN_S" = "ln -s"; then
  2329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2330. $as_echo "yes" >&6; }
  2331. else
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  2333. $as_echo "no, using $LN_S" >&6; }
  2334. fi
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  2336. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  2337. if test "${ac_cv_path_SED+set}" = set; then :
  2338. $as_echo_n "(cached) " >&6
  2339. else
  2340. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  2341. for ac_i in 1 2 3 4 5 6 7; do
  2342. ac_script="$ac_script$as_nl$ac_script"
  2343. done
  2344. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  2345. { ac_script=; unset ac_script;}
  2346. if test -z "$SED"; then
  2347. ac_path_SED_found=false
  2348. # Loop through the user's path and test for each of PROGNAME-LIST
  2349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2350. for as_dir in $PATH
  2351. do
  2352. IFS=$as_save_IFS
  2353. test -z "$as_dir" && as_dir=.
  2354. for ac_prog in sed gsed; do
  2355. for ac_exec_ext in '' $ac_executable_extensions; do
  2356. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  2357. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  2358. # Check for GNU ac_path_SED and select it if it is found.
  2359. # Check for GNU $ac_path_SED
  2360. case `"$ac_path_SED" --version 2>&1` in
  2361. *GNU*)
  2362. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  2363. *)
  2364. ac_count=0
  2365. $as_echo_n 0123456789 >"conftest.in"
  2366. while :
  2367. do
  2368. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2369. mv "conftest.tmp" "conftest.in"
  2370. cp "conftest.in" "conftest.nl"
  2371. $as_echo '' >> "conftest.nl"
  2372. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2373. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2374. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2375. if test $ac_count -gt ${ac_path_SED_max-0}; then
  2376. # Best one so far, save it but keep looking for a better one
  2377. ac_cv_path_SED="$ac_path_SED"
  2378. ac_path_SED_max=$ac_count
  2379. fi
  2380. # 10*(2^10) chars as input seems more than enough
  2381. test $ac_count -gt 10 && break
  2382. done
  2383. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2384. esac
  2385. $ac_path_SED_found && break 3
  2386. done
  2387. done
  2388. done
  2389. IFS=$as_save_IFS
  2390. if test -z "$ac_cv_path_SED"; then
  2391. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  2392. fi
  2393. else
  2394. ac_cv_path_SED=$SED
  2395. fi
  2396. fi
  2397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  2398. $as_echo "$ac_cv_path_SED" >&6; }
  2399. SED="$ac_cv_path_SED"
  2400. rm -f conftest.sed
  2401. for ac_prog in gawk mawk nawk awk
  2402. do
  2403. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2404. set dummy $ac_prog; ac_word=$2
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2406. $as_echo_n "checking for $ac_word... " >&6; }
  2407. if test "${ac_cv_prog_AWK+set}" = set; then :
  2408. $as_echo_n "(cached) " >&6
  2409. else
  2410. if test -n "$AWK"; then
  2411. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2412. else
  2413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2414. for as_dir in $PATH
  2415. do
  2416. IFS=$as_save_IFS
  2417. test -z "$as_dir" && as_dir=.
  2418. for ac_exec_ext in '' $ac_executable_extensions; do
  2419. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2420. ac_cv_prog_AWK="$ac_prog"
  2421. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2422. break 2
  2423. fi
  2424. done
  2425. done
  2426. IFS=$as_save_IFS
  2427. fi
  2428. fi
  2429. AWK=$ac_cv_prog_AWK
  2430. if test -n "$AWK"; then
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2432. $as_echo "$AWK" >&6; }
  2433. else
  2434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2435. $as_echo "no" >&6; }
  2436. fi
  2437. test -n "$AWK" && break
  2438. done
  2439. srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
  2440. # We pass INSTALL explicitly to sub-makes. Make sure that it is not
  2441. # a relative path.
  2442. if test "$INSTALL" = "${srcdir}/install-sh -c"; then
  2443. INSTALL="${srcpwd}/install-sh -c"
  2444. fi
  2445. # Set srcdir to "." if that's what it is.
  2446. # This is important for multilib support.
  2447. pwd=`${PWDCMD-pwd}`
  2448. if test "${pwd}" = "${srcpwd}" ; then
  2449. srcdir=.
  2450. fi
  2451. topsrcdir=$srcpwd
  2452. extra_host_args=
  2453. ### To add a new directory to the tree, first choose whether it is a target
  2454. ### or a host dependent tool. Then put it into the appropriate list
  2455. ### (library or tools, host or target), doing a dependency sort.
  2456. # Subdirs will be configured in the order listed in build_configdirs,
  2457. # configdirs, or target_configdirs; see the serialization section below.
  2458. # Dependency sorting is only needed when *configuration* must be done in
  2459. # a particular order. In all cases a dependency should be specified in
  2460. # the Makefile, whether or not it's implicitly specified here.
  2461. # Double entries in build_configdirs, configdirs, or target_configdirs may
  2462. # cause circular dependencies and break everything horribly.
  2463. # these library is used by various programs built for the build
  2464. # environment
  2465. #
  2466. build_libs="build-libiberty build-libcpp"
  2467. # these tools are built for the build environment
  2468. build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
  2469. # these libraries are used by various programs built for the host environment
  2470. #f
  2471. host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
  2472. # these tools are built for the host environment
  2473. # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
  2474. # know that we are building the simulator.
  2475. # binutils, gas and ld appear in that order because it makes sense to run
  2476. # "make check" in that particular order.
  2477. # If --enable-gold is used, "gold" may replace "ld".
  2478. 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"
  2479. # libgcj represents the runtime libraries only used by gcj.
  2480. libgcj="target-libffi \
  2481. target-zlib \
  2482. target-libjava"
  2483. # these libraries are built for the target environment, and are built after
  2484. # the host libraries and the host tools (which may be a cross compiler)
  2485. # Note that libiberty is not a target library.
  2486. target_libraries="target-libgcc \
  2487. target-libbacktrace \
  2488. target-libgloss \
  2489. target-newlib \
  2490. target-libgomp \
  2491. target-libcilkrts \
  2492. target-liboffloadmic \
  2493. target-libatomic \
  2494. target-libitm \
  2495. target-libstdc++-v3 \
  2496. target-libsanitizer \
  2497. target-libvtv \
  2498. target-libmpx \
  2499. target-libssp \
  2500. target-libquadmath \
  2501. target-libgfortran \
  2502. target-boehm-gc \
  2503. ${libgcj} \
  2504. target-libobjc \
  2505. target-libada \
  2506. target-libgo"
  2507. # these tools are built using the target libraries, and are intended to
  2508. # run only in the target environment
  2509. #
  2510. # note: any program that *uses* libraries that are in the "target_libraries"
  2511. # list belongs in this list.
  2512. #
  2513. target_tools="target-rda"
  2514. ################################################################################
  2515. ## All tools belong in one of the four categories, and are assigned above
  2516. ## We assign ${configdirs} this way to remove all embedded newlines. This
  2517. ## is important because configure will choke if they ever get through.
  2518. ## ${configdirs} is directories we build using the host tools.
  2519. ## ${target_configdirs} is directories we build using the target tools.
  2520. configdirs=`echo ${host_libs} ${host_tools}`
  2521. target_configdirs=`echo ${target_libraries} ${target_tools}`
  2522. build_configdirs=`echo ${build_libs} ${build_tools}`
  2523. ################################################################################
  2524. srcname="gnu development package"
  2525. # This gets set non-empty for some net releases of packages.
  2526. appdirs=""
  2527. # Define is_cross_compiler to save on calls to 'test'.
  2528. is_cross_compiler=
  2529. if test x"${host}" = x"${target}" ; then
  2530. is_cross_compiler=no
  2531. else
  2532. is_cross_compiler=yes
  2533. fi
  2534. # Find the build and target subdir names.
  2535. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  2536. # have matching libraries, they should use host libraries: Makefile.tpl
  2537. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  2538. # However, they still use the build modules, because the corresponding
  2539. # host modules (e.g. bison) are only built for the host when bootstrap
  2540. # finishes. So:
  2541. # - build_subdir is where we find build modules, and never changes.
  2542. # - build_libsubdir is where we find build libraries, and can be overridden.
  2543. # Prefix 'build-' so this never conflicts with target_subdir.
  2544. build_subdir="build-${build_noncanonical}"
  2545. # Check whether --with-build-libsubdir was given.
  2546. if test "${with_build_libsubdir+set}" = set; then :
  2547. withval=$with_build_libsubdir; build_libsubdir="$withval"
  2548. else
  2549. build_libsubdir="$build_subdir"
  2550. fi
  2551. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  2552. if ( test $srcdir = . && test -d gcc ) \
  2553. || test -d $srcdir/../host-${host_noncanonical}; then
  2554. host_subdir="host-${host_noncanonical}"
  2555. else
  2556. host_subdir=.
  2557. fi
  2558. # No prefix.
  2559. target_subdir=${target_noncanonical}
  2560. # Be sure to cover against remnants of an in-tree build.
  2561. if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
  2562. as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
  2563. Use a pristine source tree when building in a separate tree" "$LINENO" 5
  2564. fi
  2565. # Skipdirs are removed silently.
  2566. skipdirs=
  2567. # Noconfigdirs are removed loudly.
  2568. noconfigdirs=""
  2569. use_gnu_ld=
  2570. # Make sure we don't let GNU ld be added if we didn't want it.
  2571. if test x$with_gnu_ld = xno ; then
  2572. use_gnu_ld=no
  2573. noconfigdirs="$noconfigdirs ld gold"
  2574. fi
  2575. use_gnu_as=
  2576. # Make sure we don't let GNU as be added if we didn't want it.
  2577. if test x$with_gnu_as = xno ; then
  2578. use_gnu_as=no
  2579. noconfigdirs="$noconfigdirs gas"
  2580. fi
  2581. use_included_zlib=
  2582. # Check whether --with-system-zlib was given.
  2583. if test "${with_system_zlib+set}" = set; then :
  2584. withval=$with_system_zlib;
  2585. fi
  2586. # Make sure we don't let ZLIB be added if we didn't want it.
  2587. if test x$with_system_zlib = xyes ; then
  2588. use_included_zlib=no
  2589. noconfigdirs="$noconfigdirs zlib"
  2590. fi
  2591. # some tools are so dependent upon X11 that if we're not building with X,
  2592. # it's not even worth trying to configure, much less build, that tool.
  2593. case ${with_x} in
  2594. yes | "") ;; # the default value for this tree is that X11 is available
  2595. no)
  2596. skipdirs="${skipdirs} tk itcl libgui"
  2597. # We won't be able to build gdbtk without X.
  2598. enable_gdbtk=no
  2599. ;;
  2600. *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
  2601. esac
  2602. # Some are only suitable for cross toolchains.
  2603. # Remove these if host=target.
  2604. cross_only="target-libgloss target-newlib target-opcodes"
  2605. case $is_cross_compiler in
  2606. no) skipdirs="${skipdirs} ${cross_only}" ;;
  2607. esac
  2608. # If both --with-headers and --with-libs are specified, default to
  2609. # --without-newlib.
  2610. if test x"${with_headers}" != x && test x"${with_headers}" != xno \
  2611. && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  2612. if test x"${with_newlib}" = x ; then
  2613. with_newlib=no
  2614. fi
  2615. fi
  2616. # Recognize --with-newlib/--without-newlib.
  2617. case ${with_newlib} in
  2618. no) skipdirs="${skipdirs} target-newlib" ;;
  2619. yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
  2620. esac
  2621. # Check whether --enable-as-accelerator-for was given.
  2622. if test "${enable_as_accelerator_for+set}" = set; then :
  2623. enableval=$enable_as_accelerator_for;
  2624. fi
  2625. # Check whether --enable-offload-targets was given.
  2626. if test "${enable_offload_targets+set}" = set; then :
  2627. enableval=$enable_offload_targets;
  2628. if test x"$enable_offload_targets" = x; then
  2629. as_fn_error "no offload targets specified" "$LINENO" 5
  2630. fi
  2631. else
  2632. enable_offload_targets=
  2633. fi
  2634. # Handle --enable-gold, --enable-ld.
  2635. # --disable-gold [--enable-ld]
  2636. # Build only ld. Default option.
  2637. # --enable-gold [--enable-ld]
  2638. # Build both gold and ld. Install gold as "ld.gold", install ld
  2639. # as "ld.bfd" and "ld".
  2640. # --enable-gold=default [--enable-ld]
  2641. # Build both gold and ld. Install gold as "ld.gold" and "ld",
  2642. # install ld as "ld.bfd".
  2643. # --enable-gold[=default] --disable-ld
  2644. # Build only gold, which is then installed as both "ld.gold" and "ld".
  2645. # --enable-gold --enable-ld=default
  2646. # Build both gold (installed as "ld.gold") and ld (installed as "ld"
  2647. # and ld.bfd).
  2648. # In other words, ld is default
  2649. # --enable-gold=default --enable-ld=default
  2650. # Error.
  2651. default_ld=
  2652. # Check whether --enable-gold was given.
  2653. if test "${enable_gold+set}" = set; then :
  2654. enableval=$enable_gold; ENABLE_GOLD=$enableval
  2655. else
  2656. ENABLE_GOLD=no
  2657. fi
  2658. case "${ENABLE_GOLD}" in
  2659. yes|default)
  2660. # Check for ELF target.
  2661. is_elf=no
  2662. case "${target}" in
  2663. *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
  2664. | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
  2665. | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
  2666. | *-*-solaris2* | *-*-nto* | *-*-nacl*)
  2667. case "${target}" in
  2668. *-*-linux*aout* | *-*-linux*oldld*)
  2669. ;;
  2670. *)
  2671. is_elf=yes
  2672. ;;
  2673. esac
  2674. esac
  2675. if test "$is_elf" = "yes"; then
  2676. # Check for target supported by gold.
  2677. case "${target}" in
  2678. i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
  2679. | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
  2680. configdirs="$configdirs gold"
  2681. if test x${ENABLE_GOLD} = xdefault; then
  2682. default_ld=gold
  2683. fi
  2684. ENABLE_GOLD=yes
  2685. ;;
  2686. esac
  2687. fi
  2688. ;;
  2689. no)
  2690. ;;
  2691. *)
  2692. as_fn_error "invalid --enable-gold argument" "$LINENO" 5
  2693. ;;
  2694. esac
  2695. # Check whether --enable-ld was given.
  2696. if test "${enable_ld+set}" = set; then :
  2697. enableval=$enable_ld; ENABLE_LD=$enableval
  2698. else
  2699. ENABLE_LD=yes
  2700. fi
  2701. case "${ENABLE_LD}" in
  2702. default)
  2703. if test x${default_ld} != x; then
  2704. as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
  2705. fi
  2706. ;;
  2707. yes)
  2708. ;;
  2709. no)
  2710. if test x${ENABLE_GOLD} != xyes; then
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
  2712. $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
  2713. fi
  2714. configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
  2715. ;;
  2716. *)
  2717. as_fn_error "invalid --enable-ld argument" "$LINENO" 5
  2718. ;;
  2719. esac
  2720. # PR gas/19109
  2721. # Decide the default method for compressing debug sections.
  2722. # Provide a configure time option to override our default.
  2723. # Check whether --enable-compressed_debug_sections was given.
  2724. if test "${enable_compressed_debug_sections+set}" = set; then :
  2725. enableval=$enable_compressed_debug_sections;
  2726. if test x"$enable_compressed_debug_sections" = xyes; then
  2727. as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
  2728. fi
  2729. else
  2730. enable_compressed_debug_sections=
  2731. fi
  2732. # Configure extra directories which are host specific
  2733. case "${host}" in
  2734. *-cygwin*)
  2735. configdirs="$configdirs libtermcap" ;;
  2736. esac
  2737. # A target can indicate whether a language isn't supported for some reason.
  2738. # Only spaces may be used in this macro; not newlines or tabs.
  2739. unsupported_languages=
  2740. # Remove more programs from consideration, based on the host or
  2741. # target this usually means that a port of the program doesn't
  2742. # exist yet.
  2743. case "${host}" in
  2744. i[3456789]86-*-msdosdjgpp*)
  2745. noconfigdirs="$noconfigdirs tcl tk itcl"
  2746. ;;
  2747. esac
  2748. # Check whether --enable-libquadmath was given.
  2749. if test "${enable_libquadmath+set}" = set; then :
  2750. enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
  2751. else
  2752. ENABLE_LIBQUADMATH=yes
  2753. fi
  2754. if test "${ENABLE_LIBQUADMATH}" = "no" ; then
  2755. noconfigdirs="$noconfigdirs target-libquadmath"
  2756. fi
  2757. # Check whether --enable-libquadmath-support was given.
  2758. if test "${enable_libquadmath_support+set}" = set; then :
  2759. enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
  2760. else
  2761. ENABLE_LIBQUADMATH_SUPPORT=yes
  2762. fi
  2763. enable_libquadmath_support=
  2764. if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
  2765. enable_libquadmath_support=no
  2766. fi
  2767. # Check whether --enable-libada was given.
  2768. if test "${enable_libada+set}" = set; then :
  2769. enableval=$enable_libada; ENABLE_LIBADA=$enableval
  2770. else
  2771. ENABLE_LIBADA=yes
  2772. fi
  2773. if test "${ENABLE_LIBADA}" != "yes" ; then
  2774. noconfigdirs="$noconfigdirs gnattools"
  2775. fi
  2776. # Check whether --enable-libssp was given.
  2777. if test "${enable_libssp+set}" = set; then :
  2778. enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
  2779. else
  2780. ENABLE_LIBSSP=yes
  2781. fi
  2782. # Check whether --enable-libstdcxx was given.
  2783. if test "${enable_libstdcxx+set}" = set; then :
  2784. enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
  2785. else
  2786. ENABLE_LIBSTDCXX=default
  2787. fi
  2788. if test "${ENABLE_LIBSTDCXX}" = "no" ; then
  2789. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  2790. fi
  2791. # If this is accelerator compiler and its target is intelmic we enable
  2792. # target liboffloadmic by default. If this is compiler with offloading
  2793. # for intelmic we enable host liboffloadmic by default. Otherwise
  2794. # liboffloadmic is disabled by default.
  2795. # Check whether --enable-liboffloadmic was given.
  2796. if test "${enable_liboffloadmic+set}" = set; then :
  2797. enableval=$enable_liboffloadmic; case "$enableval" in
  2798. no | host | target)
  2799. enable_liboffloadmic=$enableval ;;
  2800. *)
  2801. as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
  2802. esac
  2803. else
  2804. if test x"$enable_as_accelerator_for" != x; then
  2805. case "${target}" in
  2806. *-intelmic-* | *-intelmicemul-*)
  2807. enable_liboffloadmic=target
  2808. extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
  2809. ;;
  2810. *)
  2811. enable_liboffloadmic=no
  2812. ;;
  2813. esac
  2814. else
  2815. case "${enable_offload_targets}" in
  2816. *-intelmic-* | *-intelmicemul-*)
  2817. enable_liboffloadmic=host
  2818. extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
  2819. ;;
  2820. *)
  2821. enable_liboffloadmic=no
  2822. ;;
  2823. esac
  2824. fi
  2825. fi
  2826. # Save it here so that, even in case of --enable-libgcj, if the Java
  2827. # front-end isn't enabled, we still get libgcj disabled.
  2828. libgcj_saved=$libgcj
  2829. case $enable_libgcj in
  2830. yes)
  2831. # If we reset it here, it won't get added to noconfigdirs in the
  2832. # target-specific build rules, so it will be forcibly enabled
  2833. # (unless the Java language itself isn't enabled).
  2834. libgcj=
  2835. ;;
  2836. no)
  2837. # Make sure we get it printed in the list of not supported target libs.
  2838. # Don't disable libffi, though, other languages use it.
  2839. noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
  2840. # Clear libgcj_saved so that even if java is enabled libffi won't be
  2841. # built.
  2842. libgcj_saved=
  2843. ;;
  2844. esac
  2845. # Check whether --enable-static-libjava was given.
  2846. if test "${enable_static_libjava+set}" = set; then :
  2847. enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
  2848. else
  2849. ENABLE_STATIC_LIBJAVA=no
  2850. fi
  2851. enable_static_libjava=
  2852. if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
  2853. enable_static_libjava=yes
  2854. fi
  2855. if test x$enable_static_libjava != xyes ; then
  2856. EXTRA_CONFIGARGS_LIBJAVA=--disable-static
  2857. fi
  2858. # Enable libgomp by default on hosted POSIX systems, and a few others.
  2859. if test x$enable_libgomp = x ; then
  2860. case "${target}" in
  2861. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  2862. ;;
  2863. *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
  2864. ;;
  2865. *-*-solaris2* | *-*-hpux11*)
  2866. ;;
  2867. *-*-darwin* | *-*-aix*)
  2868. ;;
  2869. nvptx*-*-*)
  2870. ;;
  2871. *)
  2872. noconfigdirs="$noconfigdirs target-libgomp"
  2873. ;;
  2874. esac
  2875. fi
  2876. # Disable libatomic on unsupported systems.
  2877. if test -d ${srcdir}/libatomic; then
  2878. if test x$enable_libatomic = x; then
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
  2880. $as_echo_n "checking for libatomic support... " >&6; }
  2881. if (srcdir=${srcdir}/libatomic; \
  2882. . ${srcdir}/configure.tgt; \
  2883. test -n "$UNSUPPORTED")
  2884. then
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2886. $as_echo "no" >&6; }
  2887. noconfigdirs="$noconfigdirs target-libatomic"
  2888. else
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2890. $as_echo "yes" >&6; }
  2891. fi
  2892. fi
  2893. fi
  2894. # Disable libcilkrts on unsupported systems.
  2895. if test -d ${srcdir}/libcilkrts; then
  2896. if test x$enable_libcilkrts = x; then
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
  2898. $as_echo_n "checking for libcilkrts support... " >&6; }
  2899. if (srcdir=${srcdir}/libcilkrts; \
  2900. . ${srcdir}/configure.tgt; \
  2901. test -n "$UNSUPPORTED")
  2902. then
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2904. $as_echo "no" >&6; }
  2905. noconfigdirs="$noconfigdirs target-libcilkrts"
  2906. else
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2908. $as_echo "yes" >&6; }
  2909. fi
  2910. fi
  2911. fi
  2912. # Disable liboffloadmic on unsupported systems.
  2913. if test -d ${srcdir}/liboffloadmic; then
  2914. if test x$enable_liboffloadmic != xno; then
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
  2916. $as_echo_n "checking for liboffloadmic support... " >&6; }
  2917. if (srcdir=${srcdir}/liboffloadmic; \
  2918. . ${srcdir}/configure.tgt; \
  2919. test -n "$UNSUPPORTED")
  2920. then
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2922. $as_echo "no" >&6; }
  2923. noconfigdirs="$noconfigdirs target-liboffloadmic"
  2924. else
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2926. $as_echo "yes" >&6; }
  2927. fi
  2928. fi
  2929. fi
  2930. # Disable libitm on unsupported systems.
  2931. if test -d ${srcdir}/libitm; then
  2932. if test x$enable_libitm = x; then
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
  2934. $as_echo_n "checking for libitm support... " >&6; }
  2935. if (srcdir=${srcdir}/libitm; \
  2936. . ${srcdir}/configure.tgt; \
  2937. test -n "$UNSUPPORTED")
  2938. then
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2940. $as_echo "no" >&6; }
  2941. noconfigdirs="$noconfigdirs target-libitm"
  2942. else
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2944. $as_echo "yes" >&6; }
  2945. fi
  2946. fi
  2947. fi
  2948. # Disable libsanitizer on unsupported systems.
  2949. if test -d ${srcdir}/libsanitizer; then
  2950. if test x$enable_libsanitizer = x; then
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
  2952. $as_echo_n "checking for libsanitizer support... " >&6; }
  2953. if (srcdir=${srcdir}/libsanitizer; \
  2954. . ${srcdir}/configure.tgt; \
  2955. test -n "$UNSUPPORTED")
  2956. then
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2958. $as_echo "no" >&6; }
  2959. noconfigdirs="$noconfigdirs target-libsanitizer"
  2960. else
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2962. $as_echo "yes" >&6; }
  2963. fi
  2964. fi
  2965. fi
  2966. # Disable libvtv on unsupported systems.
  2967. if test -d ${srcdir}/libvtv; then
  2968. if test x$enable_libvtv = x; then
  2969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
  2970. $as_echo_n "checking for libvtv support... " >&6; }
  2971. if (srcdir=${srcdir}/libvtv; \
  2972. . ${srcdir}/configure.tgt; \
  2973. test "$VTV_SUPPORTED" != "yes")
  2974. then
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2976. $as_echo "no" >&6; }
  2977. noconfigdirs="$noconfigdirs target-libvtv"
  2978. else
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2980. $as_echo "yes" >&6; }
  2981. fi
  2982. fi
  2983. fi
  2984. # Enable libmpx on supported systems by request.
  2985. if test -d ${srcdir}/libmpx; then
  2986. if test x$enable_libmpx = x; then
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
  2988. $as_echo_n "checking for libmpx support... " >&6; }
  2989. if (srcdir=${srcdir}/libmpx; \
  2990. . ${srcdir}/configure.tgt; \
  2991. test "$LIBMPX_SUPPORTED" != "yes")
  2992. then
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2994. $as_echo "no" >&6; }
  2995. noconfigdirs="$noconfigdirs target-libmpx"
  2996. else
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2998. $as_echo "yes" >&6; }
  2999. fi
  3000. fi
  3001. fi
  3002. # Disable libquadmath for some systems.
  3003. case "${target}" in
  3004. avr-*-*)
  3005. noconfigdirs="$noconfigdirs target-libquadmath"
  3006. ;;
  3007. # libquadmath is unused on AIX and libquadmath build process use of
  3008. # LD_LIBRARY_PATH can break AIX bootstrap.
  3009. powerpc-*-aix* | rs6000-*-aix*)
  3010. noconfigdirs="$noconfigdirs target-libquadmath"
  3011. ;;
  3012. esac
  3013. # Disable libssp for some systems.
  3014. case "${target}" in
  3015. avr-*-*)
  3016. # No hosted I/O support.
  3017. noconfigdirs="$noconfigdirs target-libssp"
  3018. ;;
  3019. powerpc-*-aix* | rs6000-*-aix*)
  3020. noconfigdirs="$noconfigdirs target-libssp"
  3021. ;;
  3022. rl78-*-*)
  3023. # libssp uses a misaligned load to trigger a fault, but the RL78
  3024. # doesn't fault for those - instead, it gives a build-time error
  3025. # for explicit misaligned loads.
  3026. noconfigdirs="$noconfigdirs target-libssp"
  3027. ;;
  3028. visium-*-*)
  3029. # No hosted I/O support.
  3030. noconfigdirs="$noconfigdirs target-libssp"
  3031. ;;
  3032. esac
  3033. # Disable libstdc++-v3 for some systems.
  3034. # Allow user to override this if they pass --enable-libstdc++-v3
  3035. if test "${ENABLE_LIBSTDCXX}" = "default" ; then
  3036. case "${target}" in
  3037. *-*-vxworks*)
  3038. # VxWorks uses the Dinkumware C++ library.
  3039. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3040. ;;
  3041. arm*-wince-pe*)
  3042. # the C++ libraries don't build on top of CE's C libraries
  3043. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3044. ;;
  3045. avr-*-*)
  3046. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3047. ;;
  3048. ft32-*-*)
  3049. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3050. ;;
  3051. esac
  3052. fi
  3053. # Disable Fortran for some systems.
  3054. case "${target}" in
  3055. mmix-*-*)
  3056. # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
  3057. unsupported_languages="$unsupported_languages fortran"
  3058. ;;
  3059. esac
  3060. # Disable Java if libffi is not supported.
  3061. case "${target}" in
  3062. aarch64-*-*)
  3063. ;;
  3064. alpha*-*-*)
  3065. ;;
  3066. arm*-*-*)
  3067. ;;
  3068. cris-*-*)
  3069. ;;
  3070. frv-*-*)
  3071. ;;
  3072. hppa*-*-linux*)
  3073. ;;
  3074. hppa*-*-hpux*)
  3075. ;;
  3076. i?86-*-*)
  3077. ;;
  3078. ia64*-*-*)
  3079. ;;
  3080. m32r*-*-*)
  3081. ;;
  3082. m68k-*-*)
  3083. ;;
  3084. mips*-*-rtems*)
  3085. ;;
  3086. mips*-*-linux*)
  3087. ;;
  3088. powerpc*-*-linux*)
  3089. ;;
  3090. powerpc-*-darwin*)
  3091. ;;
  3092. powerpc-*-aix* | rs6000-*-aix*)
  3093. ;;
  3094. powerpc-*-freebsd*)
  3095. ;;
  3096. powerpc64-*-freebsd*)
  3097. ;;
  3098. powerpc*-*-rtems*)
  3099. ;;
  3100. s390-*-* | s390x-*-*)
  3101. ;;
  3102. sh-*-* | sh[34]*-*-*)
  3103. ;;
  3104. sparc*-*-*)
  3105. ;;
  3106. x86_64-*-*)
  3107. ;;
  3108. *-*-*)
  3109. unsupported_languages="$unsupported_languages java"
  3110. ;;
  3111. esac
  3112. # Disable Java, libgcj or related libraries for some systems.
  3113. case "${target}" in
  3114. powerpc-*-darwin*)
  3115. ;;
  3116. i[3456789]86-*-darwin*)
  3117. ;;
  3118. x86_64-*-darwin[912]*)
  3119. ;;
  3120. *-*-darwin*)
  3121. noconfigdirs="$noconfigdirs ${libgcj}"
  3122. ;;
  3123. *-*-netware*)
  3124. noconfigdirs="$noconfigdirs ${libgcj}"
  3125. ;;
  3126. *-*-phoenix*)
  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. aarch64-*-darwin*)
  3340. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3341. noconfigdirs="$noconfigdirs sim target-rda"
  3342. ;;
  3343. arm-*-darwin*)
  3344. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3345. noconfigdirs="$noconfigdirs sim target-rda"
  3346. ;;
  3347. powerpc-*-darwin*)
  3348. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3349. noconfigdirs="$noconfigdirs sim target-rda"
  3350. ;;
  3351. i[3456789]86-*-darwin*)
  3352. noconfigdirs="$noconfigdirs ld gprof"
  3353. noconfigdirs="$noconfigdirs sim target-rda"
  3354. ;;
  3355. x86_64-*-darwin[912]*)
  3356. noconfigdirs="$noconfigdirs ld gas gprof"
  3357. noconfigdirs="$noconfigdirs sim target-rda"
  3358. ;;
  3359. *-*-darwin*)
  3360. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3361. noconfigdirs="$noconfigdirs sim target-rda"
  3362. ;;
  3363. *-*-dragonfly*)
  3364. ;;
  3365. *-*-freebsd*)
  3366. if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
  3367. && test -f /usr/local/include/gmp.h; then
  3368. with_gmp=/usr/local
  3369. fi
  3370. ;;
  3371. *-*-kaos*)
  3372. # Remove unsupported stuff on all kaOS configurations.
  3373. noconfigdirs="$noconfigdirs target-libgloss"
  3374. ;;
  3375. *-*-netbsd*)
  3376. ;;
  3377. *-*-netware*)
  3378. ;;
  3379. *-*-phoenix*)
  3380. noconfigdirs="$noconfigdirs target-libgloss"
  3381. ;;
  3382. *-*-rtems*)
  3383. noconfigdirs="$noconfigdirs target-libgloss"
  3384. # this is not caught below because this stanza matches earlier
  3385. case $target in
  3386. or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
  3387. esac
  3388. ;;
  3389. # The tpf target doesn't support gdb yet.
  3390. *-*-tpf*)
  3391. noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
  3392. ;;
  3393. *-*-uclinux*)
  3394. noconfigdirs="$noconfigdirs target-rda"
  3395. ;;
  3396. *-*-vxworks*)
  3397. ;;
  3398. alpha*-dec-osf*)
  3399. # ld works, but does not support shared libraries.
  3400. # gas doesn't generate exception information.
  3401. noconfigdirs="$noconfigdirs gas ld"
  3402. ;;
  3403. alpha*-*-*vms*)
  3404. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
  3405. ;;
  3406. alpha*-*-*)
  3407. # newlib is not 64 bit ready
  3408. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3409. ;;
  3410. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  3411. noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
  3412. ;;
  3413. arm-*-pe*)
  3414. noconfigdirs="$noconfigdirs target-libgloss"
  3415. ;;
  3416. arm-*-riscix*)
  3417. noconfigdirs="$noconfigdirs ld target-libgloss"
  3418. ;;
  3419. avr-*-*)
  3420. if test x${with_avrlibc} != xno; then
  3421. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3422. fi
  3423. ;;
  3424. c4x-*-* | tic4x-*-*)
  3425. noconfigdirs="$noconfigdirs target-libgloss"
  3426. ;;
  3427. tic54x-*-*)
  3428. noconfigdirs="$noconfigdirs target-libgloss gdb"
  3429. ;;
  3430. d10v-*-*)
  3431. noconfigdirs="$noconfigdirs target-libgloss"
  3432. ;;
  3433. d30v-*-*)
  3434. noconfigdirs="$noconfigdirs gdb"
  3435. ;;
  3436. fr30-*-elf*)
  3437. noconfigdirs="$noconfigdirs gdb"
  3438. ;;
  3439. ft32-*-*)
  3440. noconfigdirs="$noconfigdirs target-rda gprof"
  3441. ;;
  3442. moxie-*-*)
  3443. noconfigdirs="$noconfigdirs"
  3444. ;;
  3445. h8300*-*-*)
  3446. noconfigdirs="$noconfigdirs target-libgloss"
  3447. ;;
  3448. h8500-*-*)
  3449. noconfigdirs="$noconfigdirs target-libgloss"
  3450. ;;
  3451. hppa1.1-*-osf* | hppa1.1-*-bsd* )
  3452. ;;
  3453. hppa*64*-*-hpux*)
  3454. noconfigdirs="$noconfigdirs gdb"
  3455. ;;
  3456. hppa*-*-hpux11*)
  3457. noconfigdirs="$noconfigdirs gdb ld"
  3458. ;;
  3459. hppa*64*-*-linux*)
  3460. ;;
  3461. hppa*-*-linux*)
  3462. ;;
  3463. hppa*-*-*elf* | \
  3464. hppa*-*-lites* | \
  3465. hppa*-*-openbsd* | \
  3466. hppa*64*-*-*)
  3467. ;;
  3468. hppa*-*-pro*)
  3469. ;;
  3470. hppa*-*-*)
  3471. noconfigdirs="$noconfigdirs ld"
  3472. ;;
  3473. i960-*-*)
  3474. noconfigdirs="$noconfigdirs gdb"
  3475. ;;
  3476. ia64*-*-elf*)
  3477. # No gdb support yet.
  3478. noconfigdirs="$noconfigdirs readline libgui itcl gdb"
  3479. ;;
  3480. ia64*-**-hpux*)
  3481. # No ld support yet.
  3482. noconfigdirs="$noconfigdirs gdb libgui itcl ld"
  3483. ;;
  3484. ia64*-*-*vms*)
  3485. # No ld support yet.
  3486. noconfigdirs="$noconfigdirs libgui itcl ld"
  3487. ;;
  3488. i[3456789]86-w64-mingw*)
  3489. ;;
  3490. i[3456789]86-*-mingw*)
  3491. target_configdirs="$target_configdirs target-winsup"
  3492. ;;
  3493. *-*-cygwin*)
  3494. target_configdirs="$target_configdirs target-libtermcap target-winsup"
  3495. noconfigdirs="$noconfigdirs target-libgloss"
  3496. # always build newlib if winsup directory is present.
  3497. if test -d "$srcdir/winsup/cygwin"; then
  3498. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  3499. elif test -d "$srcdir/newlib"; then
  3500. echo "Warning: winsup/cygwin is missing so newlib can't be built."
  3501. fi
  3502. ;;
  3503. i[3456789]86-*-pe)
  3504. noconfigdirs="$noconfigdirs target-libgloss"
  3505. ;;
  3506. i[3456789]86-*-sco3.2v5*)
  3507. # The linker does not yet know about weak symbols in COFF,
  3508. # and is not configured to handle mixed ELF and COFF.
  3509. noconfigdirs="$noconfigdirs ld target-libgloss"
  3510. ;;
  3511. i[3456789]86-*-sco*)
  3512. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3513. ;;
  3514. i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
  3515. noconfigdirs="$noconfigdirs target-libgloss"
  3516. ;;
  3517. i[3456789]86-*-sysv4*)
  3518. noconfigdirs="$noconfigdirs target-libgloss"
  3519. ;;
  3520. i[3456789]86-*-beos*)
  3521. noconfigdirs="$noconfigdirs gdb"
  3522. ;;
  3523. i[3456789]86-*-rdos*)
  3524. noconfigdirs="$noconfigdirs gdb"
  3525. ;;
  3526. mmix-*-*)
  3527. noconfigdirs="$noconfigdirs gdb"
  3528. ;;
  3529. mt-*-*)
  3530. noconfigdirs="$noconfigdirs sim"
  3531. ;;
  3532. powerpc-*-aix*)
  3533. # copied from rs6000-*-* entry
  3534. noconfigdirs="$noconfigdirs gprof"
  3535. ;;
  3536. powerpc*-*-winnt* | powerpc*-*-pe*)
  3537. target_configdirs="$target_configdirs target-winsup"
  3538. noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
  3539. # always build newlib.
  3540. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  3541. ;;
  3542. # This is temporary until we can link against shared libraries
  3543. powerpcle-*-solaris*)
  3544. noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
  3545. ;;
  3546. powerpc-*-beos*)
  3547. noconfigdirs="$noconfigdirs gdb"
  3548. ;;
  3549. rs6000-*-lynxos*)
  3550. noconfigdirs="$noconfigdirs gprof"
  3551. ;;
  3552. rs6000-*-aix*)
  3553. noconfigdirs="$noconfigdirs gprof"
  3554. ;;
  3555. rs6000-*-*)
  3556. noconfigdirs="$noconfigdirs gprof"
  3557. ;;
  3558. m68k-apollo-*)
  3559. noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
  3560. ;;
  3561. microblaze*)
  3562. noconfigdirs="$noconfigdirs gprof"
  3563. ;;
  3564. mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
  3565. if test x$with_newlib = xyes; then
  3566. noconfigdirs="$noconfigdirs gprof"
  3567. fi
  3568. ;;
  3569. mips*-*-irix5*)
  3570. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3571. ;;
  3572. mips*-*-irix6*)
  3573. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3574. ;;
  3575. mips*-*-bsd*)
  3576. noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
  3577. ;;
  3578. mips*-*-linux*)
  3579. ;;
  3580. mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
  3581. | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
  3582. noconfigdirs="$noconfigdirs ld gas gprof"
  3583. ;;
  3584. mips*-*-*)
  3585. noconfigdirs="$noconfigdirs gprof"
  3586. ;;
  3587. nds32*-*-*)
  3588. noconfigdirs="$noconfigdirs gdb"
  3589. ;;
  3590. nvptx*-*-*)
  3591. noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
  3592. ;;
  3593. or1k*-*-*)
  3594. noconfigdirs="$noconfigdirs gdb"
  3595. ;;
  3596. sh-*-*)
  3597. case "${target}" in
  3598. sh*-*-elf)
  3599. ;;
  3600. *)
  3601. noconfigdirs="$noconfigdirs target-libgloss" ;;
  3602. esac
  3603. ;;
  3604. sparc-*-sunos4*)
  3605. if test x${is_cross_compiler} = xno ; then
  3606. use_gnu_ld=no
  3607. fi
  3608. ;;
  3609. tic6x-*-*)
  3610. noconfigdirs="$noconfigdirs sim"
  3611. ;;
  3612. tilepro*-*-* | tilegx*-*-*)
  3613. noconfigdirs="$noconfigdirs sim"
  3614. ;;
  3615. v810-*-*)
  3616. noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
  3617. ;;
  3618. vax-*-*)
  3619. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3620. ;;
  3621. esac
  3622. # If we aren't building newlib, then don't build libgloss, since libgloss
  3623. # depends upon some newlib header files.
  3624. case "${noconfigdirs}" in
  3625. *target-libgloss*) ;;
  3626. *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
  3627. esac
  3628. # Work in distributions that contain no compiler tools, like Autoconf.
  3629. host_makefile_frag=/dev/null
  3630. if test -d ${srcdir}/config ; then
  3631. case "${host}" in
  3632. i[3456789]86-*-msdosdjgpp*)
  3633. host_makefile_frag="config/mh-djgpp"
  3634. ;;
  3635. *-cygwin*)
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
  3637. $as_echo_n "checking to see if cat works as expected... " >&6; }
  3638. echo a >cygwin-cat-check
  3639. if test `cat cygwin-cat-check` = a ; then
  3640. rm cygwin-cat-check
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3642. $as_echo "yes" >&6; }
  3643. else
  3644. rm cygwin-cat-check
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3646. $as_echo "no" >&6; }
  3647. as_fn_error "The cat command does not ignore carriage return characters.
  3648. Please either mount the build directory in binary mode or run the following
  3649. commands before running any configure script:
  3650. set -o igncr
  3651. export SHELLOPTS
  3652. " "$LINENO" 5
  3653. fi
  3654. host_makefile_frag="config/mh-cygwin"
  3655. ;;
  3656. *-mingw*)
  3657. host_makefile_frag="config/mh-mingw"
  3658. ;;
  3659. alpha*-linux*)
  3660. host_makefile_frag="config/mh-alpha-linux"
  3661. ;;
  3662. hppa*-hp-hpux10*)
  3663. host_makefile_frag="config/mh-pa-hpux10"
  3664. ;;
  3665. hppa*-hp-hpux*)
  3666. host_makefile_frag="config/mh-pa"
  3667. ;;
  3668. hppa*-*)
  3669. host_makefile_frag="config/mh-pa"
  3670. ;;
  3671. *-*-darwin*)
  3672. host_makefile_frag="config/mh-darwin"
  3673. ;;
  3674. powerpc-*-aix*)
  3675. host_makefile_frag="config/mh-ppc-aix"
  3676. ;;
  3677. rs6000-*-aix*)
  3678. host_makefile_frag="config/mh-ppc-aix"
  3679. ;;
  3680. esac
  3681. fi
  3682. if test "${build}" != "${host}" ; then
  3683. AR_FOR_BUILD=${AR_FOR_BUILD-ar}
  3684. AS_FOR_BUILD=${AS_FOR_BUILD-as}
  3685. CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
  3686. CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
  3687. GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
  3688. GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
  3689. GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
  3690. DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
  3691. LD_FOR_BUILD=${LD_FOR_BUILD-ld}
  3692. NM_FOR_BUILD=${NM_FOR_BUILD-nm}
  3693. RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
  3694. WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
  3695. WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
  3696. else
  3697. AR_FOR_BUILD="\$(AR)"
  3698. AS_FOR_BUILD="\$(AS)"
  3699. CC_FOR_BUILD="\$(CC)"
  3700. CXX_FOR_BUILD="\$(CXX)"
  3701. GCJ_FOR_BUILD="\$(GCJ)"
  3702. GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
  3703. GOC_FOR_BUILD="\$(GOC)"
  3704. DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
  3705. LD_FOR_BUILD="\$(LD)"
  3706. NM_FOR_BUILD="\$(NM)"
  3707. RANLIB_FOR_BUILD="\$(RANLIB)"
  3708. WINDRES_FOR_BUILD="\$(WINDRES)"
  3709. WINDMC_FOR_BUILD="\$(WINDMC)"
  3710. fi
  3711. ac_ext=c
  3712. ac_cpp='$CPP $CPPFLAGS'
  3713. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3714. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3715. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3716. if test -n "$ac_tool_prefix"; then
  3717. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3718. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3720. $as_echo_n "checking for $ac_word... " >&6; }
  3721. if test "${ac_cv_prog_CC+set}" = set; then :
  3722. $as_echo_n "(cached) " >&6
  3723. else
  3724. if test -n "$CC"; then
  3725. ac_cv_prog_CC="$CC" # Let the user override the test.
  3726. else
  3727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3728. for as_dir in $PATH
  3729. do
  3730. IFS=$as_save_IFS
  3731. test -z "$as_dir" && as_dir=.
  3732. for ac_exec_ext in '' $ac_executable_extensions; do
  3733. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3734. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3735. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3736. break 2
  3737. fi
  3738. done
  3739. done
  3740. IFS=$as_save_IFS
  3741. fi
  3742. fi
  3743. CC=$ac_cv_prog_CC
  3744. if test -n "$CC"; then
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3746. $as_echo "$CC" >&6; }
  3747. else
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3749. $as_echo "no" >&6; }
  3750. fi
  3751. fi
  3752. if test -z "$ac_cv_prog_CC"; then
  3753. ac_ct_CC=$CC
  3754. # Extract the first word of "gcc", so it can be a program name with args.
  3755. set dummy gcc; ac_word=$2
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3757. $as_echo_n "checking for $ac_word... " >&6; }
  3758. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3759. $as_echo_n "(cached) " >&6
  3760. else
  3761. if test -n "$ac_ct_CC"; then
  3762. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3763. else
  3764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3765. for as_dir in $PATH
  3766. do
  3767. IFS=$as_save_IFS
  3768. test -z "$as_dir" && as_dir=.
  3769. for ac_exec_ext in '' $ac_executable_extensions; do
  3770. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3771. ac_cv_prog_ac_ct_CC="gcc"
  3772. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3773. break 2
  3774. fi
  3775. done
  3776. done
  3777. IFS=$as_save_IFS
  3778. fi
  3779. fi
  3780. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3781. if test -n "$ac_ct_CC"; then
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3783. $as_echo "$ac_ct_CC" >&6; }
  3784. else
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3786. $as_echo "no" >&6; }
  3787. fi
  3788. if test "x$ac_ct_CC" = x; then
  3789. CC=""
  3790. else
  3791. case $cross_compiling:$ac_tool_warned in
  3792. yes:)
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3794. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3795. ac_tool_warned=yes ;;
  3796. esac
  3797. CC=$ac_ct_CC
  3798. fi
  3799. else
  3800. CC="$ac_cv_prog_CC"
  3801. fi
  3802. if test -z "$CC"; then
  3803. if test -n "$ac_tool_prefix"; then
  3804. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3805. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3807. $as_echo_n "checking for $ac_word... " >&6; }
  3808. if test "${ac_cv_prog_CC+set}" = set; then :
  3809. $as_echo_n "(cached) " >&6
  3810. else
  3811. if test -n "$CC"; then
  3812. ac_cv_prog_CC="$CC" # Let the user override the test.
  3813. else
  3814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3815. for as_dir in $PATH
  3816. do
  3817. IFS=$as_save_IFS
  3818. test -z "$as_dir" && as_dir=.
  3819. for ac_exec_ext in '' $ac_executable_extensions; do
  3820. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3821. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3823. break 2
  3824. fi
  3825. done
  3826. done
  3827. IFS=$as_save_IFS
  3828. fi
  3829. fi
  3830. CC=$ac_cv_prog_CC
  3831. if test -n "$CC"; then
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3833. $as_echo "$CC" >&6; }
  3834. else
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3836. $as_echo "no" >&6; }
  3837. fi
  3838. fi
  3839. fi
  3840. if test -z "$CC"; then
  3841. # Extract the first word of "cc", so it can be a program name with args.
  3842. set dummy cc; ac_word=$2
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3844. $as_echo_n "checking for $ac_word... " >&6; }
  3845. if test "${ac_cv_prog_CC+set}" = set; then :
  3846. $as_echo_n "(cached) " >&6
  3847. else
  3848. if test -n "$CC"; then
  3849. ac_cv_prog_CC="$CC" # Let the user override the test.
  3850. else
  3851. ac_prog_rejected=no
  3852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3853. for as_dir in $PATH
  3854. do
  3855. IFS=$as_save_IFS
  3856. test -z "$as_dir" && as_dir=.
  3857. for ac_exec_ext in '' $ac_executable_extensions; do
  3858. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3859. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3860. ac_prog_rejected=yes
  3861. continue
  3862. fi
  3863. ac_cv_prog_CC="cc"
  3864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3865. break 2
  3866. fi
  3867. done
  3868. done
  3869. IFS=$as_save_IFS
  3870. if test $ac_prog_rejected = yes; then
  3871. # We found a bogon in the path, so make sure we never use it.
  3872. set dummy $ac_cv_prog_CC
  3873. shift
  3874. if test $# != 0; then
  3875. # We chose a different compiler from the bogus one.
  3876. # However, it has the same basename, so the bogon will be chosen
  3877. # first if we set CC to just the basename; use the full file name.
  3878. shift
  3879. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3880. fi
  3881. fi
  3882. fi
  3883. fi
  3884. CC=$ac_cv_prog_CC
  3885. if test -n "$CC"; then
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3887. $as_echo "$CC" >&6; }
  3888. else
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3890. $as_echo "no" >&6; }
  3891. fi
  3892. fi
  3893. if test -z "$CC"; then
  3894. if test -n "$ac_tool_prefix"; then
  3895. for ac_prog in cl.exe
  3896. do
  3897. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3898. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3900. $as_echo_n "checking for $ac_word... " >&6; }
  3901. if test "${ac_cv_prog_CC+set}" = set; then :
  3902. $as_echo_n "(cached) " >&6
  3903. else
  3904. if test -n "$CC"; then
  3905. ac_cv_prog_CC="$CC" # Let the user override the test.
  3906. else
  3907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3908. for as_dir in $PATH
  3909. do
  3910. IFS=$as_save_IFS
  3911. test -z "$as_dir" && as_dir=.
  3912. for ac_exec_ext in '' $ac_executable_extensions; do
  3913. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3914. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3916. break 2
  3917. fi
  3918. done
  3919. done
  3920. IFS=$as_save_IFS
  3921. fi
  3922. fi
  3923. CC=$ac_cv_prog_CC
  3924. if test -n "$CC"; then
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3926. $as_echo "$CC" >&6; }
  3927. else
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3929. $as_echo "no" >&6; }
  3930. fi
  3931. test -n "$CC" && break
  3932. done
  3933. fi
  3934. if test -z "$CC"; then
  3935. ac_ct_CC=$CC
  3936. for ac_prog in cl.exe
  3937. do
  3938. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3939. set dummy $ac_prog; ac_word=$2
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3941. $as_echo_n "checking for $ac_word... " >&6; }
  3942. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3943. $as_echo_n "(cached) " >&6
  3944. else
  3945. if test -n "$ac_ct_CC"; then
  3946. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3947. else
  3948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3949. for as_dir in $PATH
  3950. do
  3951. IFS=$as_save_IFS
  3952. test -z "$as_dir" && as_dir=.
  3953. for ac_exec_ext in '' $ac_executable_extensions; do
  3954. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3955. ac_cv_prog_ac_ct_CC="$ac_prog"
  3956. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3957. break 2
  3958. fi
  3959. done
  3960. done
  3961. IFS=$as_save_IFS
  3962. fi
  3963. fi
  3964. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3965. if test -n "$ac_ct_CC"; then
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3967. $as_echo "$ac_ct_CC" >&6; }
  3968. else
  3969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3970. $as_echo "no" >&6; }
  3971. fi
  3972. test -n "$ac_ct_CC" && break
  3973. done
  3974. if test "x$ac_ct_CC" = x; then
  3975. CC=""
  3976. else
  3977. case $cross_compiling:$ac_tool_warned in
  3978. yes:)
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3980. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3981. ac_tool_warned=yes ;;
  3982. esac
  3983. CC=$ac_ct_CC
  3984. fi
  3985. fi
  3986. fi
  3987. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3988. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3989. as_fn_error "no acceptable C compiler found in \$PATH
  3990. See \`config.log' for more details." "$LINENO" 5; }
  3991. # Provide some information about the compiler.
  3992. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3993. set X $ac_compile
  3994. ac_compiler=$2
  3995. for ac_option in --version -v -V -qversion; do
  3996. { { ac_try="$ac_compiler $ac_option >&5"
  3997. case "(($ac_try" in
  3998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3999. *) ac_try_echo=$ac_try;;
  4000. esac
  4001. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4002. $as_echo "$ac_try_echo"; } >&5
  4003. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4004. ac_status=$?
  4005. if test -s conftest.err; then
  4006. sed '10a\
  4007. ... rest of stderr output deleted ...
  4008. 10q' conftest.err >conftest.er1
  4009. cat conftest.er1 >&5
  4010. rm -f conftest.er1 conftest.err
  4011. fi
  4012. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4013. test $ac_status = 0; }
  4014. done
  4015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4016. /* end confdefs.h. */
  4017. int
  4018. main ()
  4019. {
  4020. ;
  4021. return 0;
  4022. }
  4023. _ACEOF
  4024. ac_clean_files_save=$ac_clean_files
  4025. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  4026. # Try to create an executable without -o first, disregard a.out.
  4027. # It will help us diagnose broken compilers, and finding out an intuition
  4028. # of exeext.
  4029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4030. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4031. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4032. # The possible output files:
  4033. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4034. ac_rmfiles=
  4035. for ac_file in $ac_files
  4036. do
  4037. case $ac_file in
  4038. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4039. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4040. esac
  4041. done
  4042. rm -f $ac_rmfiles
  4043. if { { ac_try="$ac_link_default"
  4044. case "(($ac_try" in
  4045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4046. *) ac_try_echo=$ac_try;;
  4047. esac
  4048. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4049. $as_echo "$ac_try_echo"; } >&5
  4050. (eval "$ac_link_default") 2>&5
  4051. ac_status=$?
  4052. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4053. test $ac_status = 0; }; then :
  4054. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4055. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4056. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4057. # so that the user can short-circuit this test for compilers unknown to
  4058. # Autoconf.
  4059. for ac_file in $ac_files ''
  4060. do
  4061. test -f "$ac_file" || continue
  4062. case $ac_file in
  4063. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4064. ;;
  4065. [ab].out )
  4066. # We found the default executable, but exeext='' is most
  4067. # certainly right.
  4068. break;;
  4069. *.* )
  4070. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  4071. then :; else
  4072. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4073. fi
  4074. # We set ac_cv_exeext here because the later test for it is not
  4075. # safe: cross compilers may not add the suffix if given an `-o'
  4076. # argument, so we may need to know it at that point already.
  4077. # Even if this section looks crufty: it has the advantage of
  4078. # actually working.
  4079. break;;
  4080. * )
  4081. break;;
  4082. esac
  4083. done
  4084. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4085. else
  4086. ac_file=''
  4087. fi
  4088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4089. $as_echo "$ac_file" >&6; }
  4090. if test -z "$ac_file"; then :
  4091. $as_echo "$as_me: failed program was:" >&5
  4092. sed 's/^/| /' conftest.$ac_ext >&5
  4093. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4094. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4095. { as_fn_set_status 77
  4096. as_fn_error "C compiler cannot create executables
  4097. See \`config.log' for more details." "$LINENO" 5; }; }
  4098. fi
  4099. ac_exeext=$ac_cv_exeext
  4100. # Check that the compiler produces executables we can run. If not, either
  4101. # the compiler is broken, or we cross compile.
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4103. $as_echo_n "checking whether the C compiler works... " >&6; }
  4104. # If not cross compiling, check that we can run a simple program.
  4105. if test "$cross_compiling" != yes; then
  4106. if { ac_try='./$ac_file'
  4107. { { case "(($ac_try" in
  4108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4109. *) ac_try_echo=$ac_try;;
  4110. esac
  4111. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4112. $as_echo "$ac_try_echo"; } >&5
  4113. (eval "$ac_try") 2>&5
  4114. ac_status=$?
  4115. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4116. test $ac_status = 0; }; }; then
  4117. cross_compiling=no
  4118. else
  4119. if test "$cross_compiling" = maybe; then
  4120. cross_compiling=yes
  4121. else
  4122. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4123. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4124. as_fn_error "cannot run C compiled programs.
  4125. If you meant to cross compile, use \`--host'.
  4126. See \`config.log' for more details." "$LINENO" 5; }
  4127. fi
  4128. fi
  4129. fi
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4131. $as_echo "yes" >&6; }
  4132. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  4133. ac_clean_files=$ac_clean_files_save
  4134. # Check that the compiler produces executables we can run. If not, either
  4135. # the compiler is broken, or we cross compile.
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4137. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4139. $as_echo "$cross_compiling" >&6; }
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4141. $as_echo_n "checking for suffix of executables... " >&6; }
  4142. if { { ac_try="$ac_link"
  4143. case "(($ac_try" in
  4144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4145. *) ac_try_echo=$ac_try;;
  4146. esac
  4147. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4148. $as_echo "$ac_try_echo"; } >&5
  4149. (eval "$ac_link") 2>&5
  4150. ac_status=$?
  4151. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4152. test $ac_status = 0; }; then :
  4153. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4154. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4155. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4156. # `rm'.
  4157. for ac_file in conftest.exe conftest conftest.*; do
  4158. test -f "$ac_file" || continue
  4159. case $ac_file in
  4160. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4161. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4162. break;;
  4163. * ) break;;
  4164. esac
  4165. done
  4166. else
  4167. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4168. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4169. as_fn_error "cannot compute suffix of executables: cannot compile and link
  4170. See \`config.log' for more details." "$LINENO" 5; }
  4171. fi
  4172. rm -f conftest$ac_cv_exeext
  4173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4174. $as_echo "$ac_cv_exeext" >&6; }
  4175. rm -f conftest.$ac_ext
  4176. EXEEXT=$ac_cv_exeext
  4177. ac_exeext=$EXEEXT
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4179. $as_echo_n "checking for suffix of object files... " >&6; }
  4180. if test "${ac_cv_objext+set}" = set; then :
  4181. $as_echo_n "(cached) " >&6
  4182. else
  4183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4184. /* end confdefs.h. */
  4185. int
  4186. main ()
  4187. {
  4188. ;
  4189. return 0;
  4190. }
  4191. _ACEOF
  4192. rm -f conftest.o conftest.obj
  4193. if { { ac_try="$ac_compile"
  4194. case "(($ac_try" in
  4195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4196. *) ac_try_echo=$ac_try;;
  4197. esac
  4198. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4199. $as_echo "$ac_try_echo"; } >&5
  4200. (eval "$ac_compile") 2>&5
  4201. ac_status=$?
  4202. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4203. test $ac_status = 0; }; then :
  4204. for ac_file in conftest.o conftest.obj conftest.*; do
  4205. test -f "$ac_file" || continue;
  4206. case $ac_file in
  4207. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4208. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4209. break;;
  4210. esac
  4211. done
  4212. else
  4213. $as_echo "$as_me: failed program was:" >&5
  4214. sed 's/^/| /' conftest.$ac_ext >&5
  4215. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4216. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4217. as_fn_error "cannot compute suffix of object files: cannot compile
  4218. See \`config.log' for more details." "$LINENO" 5; }
  4219. fi
  4220. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4221. fi
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4223. $as_echo "$ac_cv_objext" >&6; }
  4224. OBJEXT=$ac_cv_objext
  4225. ac_objext=$OBJEXT
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4227. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4228. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4229. $as_echo_n "(cached) " >&6
  4230. else
  4231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4232. /* end confdefs.h. */
  4233. int
  4234. main ()
  4235. {
  4236. #ifndef __GNUC__
  4237. choke me
  4238. #endif
  4239. ;
  4240. return 0;
  4241. }
  4242. _ACEOF
  4243. if ac_fn_c_try_compile "$LINENO"; then :
  4244. ac_compiler_gnu=yes
  4245. else
  4246. ac_compiler_gnu=no
  4247. fi
  4248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4249. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4250. fi
  4251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4252. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4253. if test $ac_compiler_gnu = yes; then
  4254. GCC=yes
  4255. else
  4256. GCC=
  4257. fi
  4258. ac_test_CFLAGS=${CFLAGS+set}
  4259. ac_save_CFLAGS=$CFLAGS
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4261. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4262. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4263. $as_echo_n "(cached) " >&6
  4264. else
  4265. ac_save_c_werror_flag=$ac_c_werror_flag
  4266. ac_c_werror_flag=yes
  4267. ac_cv_prog_cc_g=no
  4268. CFLAGS="-g"
  4269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4270. /* end confdefs.h. */
  4271. int
  4272. main ()
  4273. {
  4274. ;
  4275. return 0;
  4276. }
  4277. _ACEOF
  4278. if ac_fn_c_try_compile "$LINENO"; then :
  4279. ac_cv_prog_cc_g=yes
  4280. else
  4281. CFLAGS=""
  4282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4283. /* end confdefs.h. */
  4284. int
  4285. main ()
  4286. {
  4287. ;
  4288. return 0;
  4289. }
  4290. _ACEOF
  4291. if ac_fn_c_try_compile "$LINENO"; then :
  4292. else
  4293. ac_c_werror_flag=$ac_save_c_werror_flag
  4294. CFLAGS="-g"
  4295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4296. /* end confdefs.h. */
  4297. int
  4298. main ()
  4299. {
  4300. ;
  4301. return 0;
  4302. }
  4303. _ACEOF
  4304. if ac_fn_c_try_compile "$LINENO"; then :
  4305. ac_cv_prog_cc_g=yes
  4306. fi
  4307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4308. fi
  4309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4310. fi
  4311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4312. ac_c_werror_flag=$ac_save_c_werror_flag
  4313. fi
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4315. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4316. if test "$ac_test_CFLAGS" = set; then
  4317. CFLAGS=$ac_save_CFLAGS
  4318. elif test $ac_cv_prog_cc_g = yes; then
  4319. if test "$GCC" = yes; then
  4320. CFLAGS="-g -O2"
  4321. else
  4322. CFLAGS="-g"
  4323. fi
  4324. else
  4325. if test "$GCC" = yes; then
  4326. CFLAGS="-O2"
  4327. else
  4328. CFLAGS=
  4329. fi
  4330. fi
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4332. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4333. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4334. $as_echo_n "(cached) " >&6
  4335. else
  4336. ac_cv_prog_cc_c89=no
  4337. ac_save_CC=$CC
  4338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4339. /* end confdefs.h. */
  4340. #include <stdarg.h>
  4341. #include <stdio.h>
  4342. #include <sys/types.h>
  4343. #include <sys/stat.h>
  4344. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4345. struct buf { int x; };
  4346. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4347. static char *e (p, i)
  4348. char **p;
  4349. int i;
  4350. {
  4351. return p[i];
  4352. }
  4353. static char *f (char * (*g) (char **, int), char **p, ...)
  4354. {
  4355. char *s;
  4356. va_list v;
  4357. va_start (v,p);
  4358. s = g (p, va_arg (v,int));
  4359. va_end (v);
  4360. return s;
  4361. }
  4362. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4363. function prototypes and stuff, but not '\xHH' hex character constants.
  4364. These don't provoke an error unfortunately, instead are silently treated
  4365. as 'x'. The following induces an error, until -std is added to get
  4366. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4367. array size at least. It's necessary to write '\x00'==0 to get something
  4368. that's true only with -std. */
  4369. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4370. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4371. inside strings and character constants. */
  4372. #define FOO(x) 'x'
  4373. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4374. int test (int i, double x);
  4375. struct s1 {int (*f) (int a);};
  4376. struct s2 {int (*f) (double a);};
  4377. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4378. int argc;
  4379. char **argv;
  4380. int
  4381. main ()
  4382. {
  4383. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4384. ;
  4385. return 0;
  4386. }
  4387. _ACEOF
  4388. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4389. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4390. do
  4391. CC="$ac_save_CC $ac_arg"
  4392. if ac_fn_c_try_compile "$LINENO"; then :
  4393. ac_cv_prog_cc_c89=$ac_arg
  4394. fi
  4395. rm -f core conftest.err conftest.$ac_objext
  4396. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4397. done
  4398. rm -f conftest.$ac_ext
  4399. CC=$ac_save_CC
  4400. fi
  4401. # AC_CACHE_VAL
  4402. case "x$ac_cv_prog_cc_c89" in
  4403. x)
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4405. $as_echo "none needed" >&6; } ;;
  4406. xno)
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4408. $as_echo "unsupported" >&6; } ;;
  4409. *)
  4410. CC="$CC $ac_cv_prog_cc_c89"
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4412. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4413. esac
  4414. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4415. fi
  4416. ac_ext=c
  4417. ac_cpp='$CPP $CPPFLAGS'
  4418. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4419. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4420. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4421. ac_ext=cpp
  4422. ac_cpp='$CXXCPP $CPPFLAGS'
  4423. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4424. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4425. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4426. if test -z "$CXX"; then
  4427. if test -n "$CCC"; then
  4428. CXX=$CCC
  4429. else
  4430. if test -n "$ac_tool_prefix"; then
  4431. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4432. do
  4433. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4434. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4436. $as_echo_n "checking for $ac_word... " >&6; }
  4437. if test "${ac_cv_prog_CXX+set}" = set; then :
  4438. $as_echo_n "(cached) " >&6
  4439. else
  4440. if test -n "$CXX"; then
  4441. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4442. else
  4443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4444. for as_dir in $PATH
  4445. do
  4446. IFS=$as_save_IFS
  4447. test -z "$as_dir" && as_dir=.
  4448. for ac_exec_ext in '' $ac_executable_extensions; do
  4449. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4450. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4451. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4452. break 2
  4453. fi
  4454. done
  4455. done
  4456. IFS=$as_save_IFS
  4457. fi
  4458. fi
  4459. CXX=$ac_cv_prog_CXX
  4460. if test -n "$CXX"; then
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4462. $as_echo "$CXX" >&6; }
  4463. else
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4465. $as_echo "no" >&6; }
  4466. fi
  4467. test -n "$CXX" && break
  4468. done
  4469. fi
  4470. if test -z "$CXX"; then
  4471. ac_ct_CXX=$CXX
  4472. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4473. do
  4474. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4475. set dummy $ac_prog; ac_word=$2
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4477. $as_echo_n "checking for $ac_word... " >&6; }
  4478. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  4479. $as_echo_n "(cached) " >&6
  4480. else
  4481. if test -n "$ac_ct_CXX"; then
  4482. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4483. else
  4484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4485. for as_dir in $PATH
  4486. do
  4487. IFS=$as_save_IFS
  4488. test -z "$as_dir" && as_dir=.
  4489. for ac_exec_ext in '' $ac_executable_extensions; do
  4490. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4491. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4492. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4493. break 2
  4494. fi
  4495. done
  4496. done
  4497. IFS=$as_save_IFS
  4498. fi
  4499. fi
  4500. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4501. if test -n "$ac_ct_CXX"; then
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4503. $as_echo "$ac_ct_CXX" >&6; }
  4504. else
  4505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4506. $as_echo "no" >&6; }
  4507. fi
  4508. test -n "$ac_ct_CXX" && break
  4509. done
  4510. if test "x$ac_ct_CXX" = x; then
  4511. CXX="g++"
  4512. else
  4513. case $cross_compiling:$ac_tool_warned in
  4514. yes:)
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4516. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4517. ac_tool_warned=yes ;;
  4518. esac
  4519. CXX=$ac_ct_CXX
  4520. fi
  4521. fi
  4522. fi
  4523. fi
  4524. # Provide some information about the compiler.
  4525. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4526. set X $ac_compile
  4527. ac_compiler=$2
  4528. for ac_option in --version -v -V -qversion; do
  4529. { { ac_try="$ac_compiler $ac_option >&5"
  4530. case "(($ac_try" in
  4531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4532. *) ac_try_echo=$ac_try;;
  4533. esac
  4534. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4535. $as_echo "$ac_try_echo"; } >&5
  4536. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4537. ac_status=$?
  4538. if test -s conftest.err; then
  4539. sed '10a\
  4540. ... rest of stderr output deleted ...
  4541. 10q' conftest.err >conftest.er1
  4542. cat conftest.er1 >&5
  4543. rm -f conftest.er1 conftest.err
  4544. fi
  4545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4546. test $ac_status = 0; }
  4547. done
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4549. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4550. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  4551. $as_echo_n "(cached) " >&6
  4552. else
  4553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4554. /* end confdefs.h. */
  4555. int
  4556. main ()
  4557. {
  4558. #ifndef __GNUC__
  4559. choke me
  4560. #endif
  4561. ;
  4562. return 0;
  4563. }
  4564. _ACEOF
  4565. if ac_fn_cxx_try_compile "$LINENO"; then :
  4566. ac_compiler_gnu=yes
  4567. else
  4568. ac_compiler_gnu=no
  4569. fi
  4570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4571. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4572. fi
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4574. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4575. if test $ac_compiler_gnu = yes; then
  4576. GXX=yes
  4577. else
  4578. GXX=
  4579. fi
  4580. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4581. ac_save_CXXFLAGS=$CXXFLAGS
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4583. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4584. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  4585. $as_echo_n "(cached) " >&6
  4586. else
  4587. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4588. ac_cxx_werror_flag=yes
  4589. ac_cv_prog_cxx_g=no
  4590. CXXFLAGS="-g"
  4591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4592. /* end confdefs.h. */
  4593. int
  4594. main ()
  4595. {
  4596. ;
  4597. return 0;
  4598. }
  4599. _ACEOF
  4600. if ac_fn_cxx_try_compile "$LINENO"; then :
  4601. ac_cv_prog_cxx_g=yes
  4602. else
  4603. CXXFLAGS=""
  4604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4605. /* end confdefs.h. */
  4606. int
  4607. main ()
  4608. {
  4609. ;
  4610. return 0;
  4611. }
  4612. _ACEOF
  4613. if ac_fn_cxx_try_compile "$LINENO"; then :
  4614. else
  4615. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4616. CXXFLAGS="-g"
  4617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4618. /* end confdefs.h. */
  4619. int
  4620. main ()
  4621. {
  4622. ;
  4623. return 0;
  4624. }
  4625. _ACEOF
  4626. if ac_fn_cxx_try_compile "$LINENO"; then :
  4627. ac_cv_prog_cxx_g=yes
  4628. fi
  4629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4630. fi
  4631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4632. fi
  4633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4634. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4635. fi
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4637. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4638. if test "$ac_test_CXXFLAGS" = set; then
  4639. CXXFLAGS=$ac_save_CXXFLAGS
  4640. elif test $ac_cv_prog_cxx_g = yes; then
  4641. if test "$GXX" = yes; then
  4642. CXXFLAGS="-g -O2"
  4643. else
  4644. CXXFLAGS="-g"
  4645. fi
  4646. else
  4647. if test "$GXX" = yes; then
  4648. CXXFLAGS="-O2"
  4649. else
  4650. CXXFLAGS=
  4651. fi
  4652. fi
  4653. ac_ext=c
  4654. ac_cpp='$CPP $CPPFLAGS'
  4655. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4656. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4657. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4658. # We must set the default linker to the linker used by gcc for the correct
  4659. # operation of libtool. If LD is not defined and we are using gcc, try to
  4660. # set the LD default to the ld used by gcc.
  4661. if test -z "$LD"; then
  4662. if test "$GCC" = yes; then
  4663. case $build in
  4664. *-*-mingw*)
  4665. gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
  4666. *)
  4667. gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
  4668. esac
  4669. case $gcc_prog_ld in
  4670. # Accept absolute paths.
  4671. [\\/]* | [A-Za-z]:[\\/]*)
  4672. LD="$gcc_prog_ld" ;;
  4673. esac
  4674. fi
  4675. fi
  4676. # Check whether -static-libstdc++ -static-libgcc is supported.
  4677. have_static_libs=no
  4678. if test "$GCC" = yes; then
  4679. saved_LDFLAGS="$LDFLAGS"
  4680. LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
  4682. $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
  4683. ac_ext=cpp
  4684. ac_cpp='$CXXCPP $CPPFLAGS'
  4685. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4686. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4687. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4689. /* end confdefs.h. */
  4690. #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
  4691. #error -static-libstdc++ not implemented
  4692. #endif
  4693. int main() {}
  4694. _ACEOF
  4695. if ac_fn_cxx_try_link "$LINENO"; then :
  4696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4697. $as_echo "yes" >&6; }; have_static_libs=yes
  4698. else
  4699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4700. $as_echo "no" >&6; }
  4701. fi
  4702. rm -f core conftest.err conftest.$ac_objext \
  4703. conftest$ac_exeext conftest.$ac_ext
  4704. ac_ext=c
  4705. ac_cpp='$CPP $CPPFLAGS'
  4706. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4707. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4708. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4709. LDFLAGS="$saved_LDFLAGS"
  4710. fi
  4711. if test -n "$ac_tool_prefix"; then
  4712. # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
  4713. set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4715. $as_echo_n "checking for $ac_word... " >&6; }
  4716. if test "${ac_cv_prog_GNATBIND+set}" = set; then :
  4717. $as_echo_n "(cached) " >&6
  4718. else
  4719. if test -n "$GNATBIND"; then
  4720. ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
  4721. else
  4722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4723. for as_dir in $PATH
  4724. do
  4725. IFS=$as_save_IFS
  4726. test -z "$as_dir" && as_dir=.
  4727. for ac_exec_ext in '' $ac_executable_extensions; do
  4728. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4729. ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
  4730. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4731. break 2
  4732. fi
  4733. done
  4734. done
  4735. IFS=$as_save_IFS
  4736. fi
  4737. fi
  4738. GNATBIND=$ac_cv_prog_GNATBIND
  4739. if test -n "$GNATBIND"; then
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
  4741. $as_echo "$GNATBIND" >&6; }
  4742. else
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4744. $as_echo "no" >&6; }
  4745. fi
  4746. fi
  4747. if test -z "$ac_cv_prog_GNATBIND"; then
  4748. ac_ct_GNATBIND=$GNATBIND
  4749. # Extract the first word of "gnatbind", so it can be a program name with args.
  4750. set dummy gnatbind; ac_word=$2
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4752. $as_echo_n "checking for $ac_word... " >&6; }
  4753. if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
  4754. $as_echo_n "(cached) " >&6
  4755. else
  4756. if test -n "$ac_ct_GNATBIND"; then
  4757. ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
  4758. else
  4759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4760. for as_dir in $PATH
  4761. do
  4762. IFS=$as_save_IFS
  4763. test -z "$as_dir" && as_dir=.
  4764. for ac_exec_ext in '' $ac_executable_extensions; do
  4765. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4766. ac_cv_prog_ac_ct_GNATBIND="gnatbind"
  4767. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4768. break 2
  4769. fi
  4770. done
  4771. done
  4772. IFS=$as_save_IFS
  4773. fi
  4774. fi
  4775. ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
  4776. if test -n "$ac_ct_GNATBIND"; then
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
  4778. $as_echo "$ac_ct_GNATBIND" >&6; }
  4779. else
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4781. $as_echo "no" >&6; }
  4782. fi
  4783. if test "x$ac_ct_GNATBIND" = x; then
  4784. GNATBIND="no"
  4785. else
  4786. case $cross_compiling:$ac_tool_warned in
  4787. yes:)
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4789. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4790. ac_tool_warned=yes ;;
  4791. esac
  4792. GNATBIND=$ac_ct_GNATBIND
  4793. fi
  4794. else
  4795. GNATBIND="$ac_cv_prog_GNATBIND"
  4796. fi
  4797. if test -n "$ac_tool_prefix"; then
  4798. # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
  4799. set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4801. $as_echo_n "checking for $ac_word... " >&6; }
  4802. if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
  4803. $as_echo_n "(cached) " >&6
  4804. else
  4805. if test -n "$GNATMAKE"; then
  4806. ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
  4807. else
  4808. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4809. for as_dir in $PATH
  4810. do
  4811. IFS=$as_save_IFS
  4812. test -z "$as_dir" && as_dir=.
  4813. for ac_exec_ext in '' $ac_executable_extensions; do
  4814. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4815. ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
  4816. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4817. break 2
  4818. fi
  4819. done
  4820. done
  4821. IFS=$as_save_IFS
  4822. fi
  4823. fi
  4824. GNATMAKE=$ac_cv_prog_GNATMAKE
  4825. if test -n "$GNATMAKE"; then
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
  4827. $as_echo "$GNATMAKE" >&6; }
  4828. else
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4830. $as_echo "no" >&6; }
  4831. fi
  4832. fi
  4833. if test -z "$ac_cv_prog_GNATMAKE"; then
  4834. ac_ct_GNATMAKE=$GNATMAKE
  4835. # Extract the first word of "gnatmake", so it can be a program name with args.
  4836. set dummy gnatmake; ac_word=$2
  4837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4838. $as_echo_n "checking for $ac_word... " >&6; }
  4839. if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
  4840. $as_echo_n "(cached) " >&6
  4841. else
  4842. if test -n "$ac_ct_GNATMAKE"; then
  4843. ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
  4844. else
  4845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4846. for as_dir in $PATH
  4847. do
  4848. IFS=$as_save_IFS
  4849. test -z "$as_dir" && as_dir=.
  4850. for ac_exec_ext in '' $ac_executable_extensions; do
  4851. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4852. ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
  4853. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4854. break 2
  4855. fi
  4856. done
  4857. done
  4858. IFS=$as_save_IFS
  4859. fi
  4860. fi
  4861. ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
  4862. if test -n "$ac_ct_GNATMAKE"; then
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
  4864. $as_echo "$ac_ct_GNATMAKE" >&6; }
  4865. else
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4867. $as_echo "no" >&6; }
  4868. fi
  4869. if test "x$ac_ct_GNATMAKE" = x; then
  4870. GNATMAKE="no"
  4871. else
  4872. case $cross_compiling:$ac_tool_warned in
  4873. yes:)
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4875. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4876. ac_tool_warned=yes ;;
  4877. esac
  4878. GNATMAKE=$ac_ct_GNATMAKE
  4879. fi
  4880. else
  4881. GNATMAKE="$ac_cv_prog_GNATMAKE"
  4882. fi
  4883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
  4884. $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
  4885. if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
  4886. $as_echo_n "(cached) " >&6
  4887. else
  4888. cat >conftest.adb <<EOF
  4889. procedure conftest is begin null; end conftest;
  4890. EOF
  4891. acx_cv_cc_gcc_supports_ada=no
  4892. # There is a bug in old released versions of GCC which causes the
  4893. # driver to exit successfully when the appropriate language module
  4894. # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
  4895. # Therefore we must check for the error message as well as an
  4896. # unsuccessful exit.
  4897. # Other compilers, like HP Tru64 UNIX cc, exit successfully when
  4898. # given a .adb file, but produce no object file. So we must check
  4899. # if an object file was really produced to guard against this.
  4900. errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
  4901. if test x"$errors" = x && test -f conftest.$ac_objext; then
  4902. acx_cv_cc_gcc_supports_ada=yes
  4903. fi
  4904. rm -f conftest.*
  4905. fi
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
  4907. $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
  4908. if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
  4909. have_gnat=yes
  4910. else
  4911. have_gnat=no
  4912. fi
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
  4914. $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
  4915. if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
  4916. $as_echo_n "(cached) " >&6
  4917. else
  4918. echo abfoo >t1
  4919. echo cdfoo >t2
  4920. gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
  4921. if cmp t1 t2 2 2 > /dev/null 2>&1; then
  4922. if cmp t1 t2 1 1 > /dev/null 2>&1; then
  4923. :
  4924. else
  4925. gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
  4926. fi
  4927. fi
  4928. if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
  4929. if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
  4930. :
  4931. else
  4932. gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
  4933. fi
  4934. fi
  4935. rm t1 t2
  4936. fi
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
  4938. $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
  4939. do_compare="$gcc_cv_prog_cmp_skip"
  4940. # Check whether --enable-bootstrap was given.
  4941. if test "${enable_bootstrap+set}" = set; then :
  4942. enableval=$enable_bootstrap;
  4943. else
  4944. enable_bootstrap=default
  4945. fi
  4946. # Issue errors and warnings for invalid/strange bootstrap combinations.
  4947. if test -r $srcdir/gcc/configure; then
  4948. have_compiler=yes
  4949. else
  4950. have_compiler=no
  4951. fi
  4952. case "$have_compiler:$host:$target:$enable_bootstrap" in
  4953. *:*:*:no) ;;
  4954. # Default behavior. Enable bootstrap if we have a compiler
  4955. # and we are in a native configuration.
  4956. yes:$build:$build:default)
  4957. enable_bootstrap=yes ;;
  4958. *:*:*:default)
  4959. enable_bootstrap=no ;;
  4960. # We have a compiler and we are in a native configuration, bootstrap is ok
  4961. yes:$build:$build:yes)
  4962. ;;
  4963. # Other configurations, but we have a compiler. Assume the user knows
  4964. # what he's doing.
  4965. yes:*:*:yes)
  4966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
  4967. $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
  4968. ;;
  4969. # No compiler: if they passed --enable-bootstrap explicitly, fail
  4970. no:*:*:yes)
  4971. as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
  4972. # Fail if wrong command line
  4973. *)
  4974. as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
  4975. ;;
  4976. esac
  4977. # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
  4978. # C++98 compiler can still start the bootstrap.
  4979. if test "$enable_bootstrap:$GXX" = "yes:yes"; then
  4980. CXX="$CXX -std=gnu++98"
  4981. fi
  4982. # Used for setting $lt_cv_objdir
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  4984. $as_echo_n "checking for objdir... " >&6; }
  4985. if test "${lt_cv_objdir+set}" = set; then :
  4986. $as_echo_n "(cached) " >&6
  4987. else
  4988. rm -f .libs 2>/dev/null
  4989. mkdir .libs 2>/dev/null
  4990. if test -d .libs; then
  4991. lt_cv_objdir=.libs
  4992. else
  4993. # MS-DOS does not allow filenames that begin with a dot.
  4994. lt_cv_objdir=_libs
  4995. fi
  4996. rmdir .libs 2>/dev/null
  4997. fi
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  4999. $as_echo "$lt_cv_objdir" >&6; }
  5000. objdir=$lt_cv_objdir
  5001. cat >>confdefs.h <<_ACEOF
  5002. #define LT_OBJDIR "$lt_cv_objdir/"
  5003. _ACEOF
  5004. # Check for GMP, MPFR and MPC
  5005. gmplibs="-lmpc -lmpfr -lgmp"
  5006. gmpinc=
  5007. have_gmp=no
  5008. # Specify a location for mpc
  5009. # check for this first so it ends up on the link line before mpfr.
  5010. # Check whether --with-mpc was given.
  5011. if test "${with_mpc+set}" = set; then :
  5012. withval=$with_mpc;
  5013. fi
  5014. # Check whether --with-mpc-include was given.
  5015. if test "${with_mpc_include+set}" = set; then :
  5016. withval=$with_mpc_include;
  5017. fi
  5018. # Check whether --with-mpc-lib was given.
  5019. if test "${with_mpc_lib+set}" = set; then :
  5020. withval=$with_mpc_lib;
  5021. fi
  5022. if test "x$with_mpc" != x; then
  5023. gmplibs="-L$with_mpc/lib $gmplibs"
  5024. gmpinc="-I$with_mpc/include $gmpinc"
  5025. fi
  5026. if test "x$with_mpc_include" != x; then
  5027. gmpinc="-I$with_mpc_include $gmpinc"
  5028. fi
  5029. if test "x$with_mpc_lib" != x; then
  5030. gmplibs="-L$with_mpc_lib $gmplibs"
  5031. fi
  5032. if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
  5033. gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
  5034. gmpinc='-I$$s/mpc/src '"$gmpinc"
  5035. # Do not test the mpc version. Assume that it is sufficient, since
  5036. # it is in the source tree, and the library has not been built yet
  5037. # but it would be included on the link line in the version check below
  5038. # hence making the test fail.
  5039. have_gmp=yes
  5040. fi
  5041. # Specify a location for mpfr
  5042. # check for this first so it ends up on the link line before gmp.
  5043. # Check whether --with-mpfr-dir was given.
  5044. if test "${with_mpfr_dir+set}" = set; then :
  5045. withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
  5046. Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
  5047. fi
  5048. # Check whether --with-mpfr was given.
  5049. if test "${with_mpfr+set}" = set; then :
  5050. withval=$with_mpfr;
  5051. fi
  5052. # Check whether --with-mpfr-include was given.
  5053. if test "${with_mpfr_include+set}" = set; then :
  5054. withval=$with_mpfr_include;
  5055. fi
  5056. # Check whether --with-mpfr-lib was given.
  5057. if test "${with_mpfr_lib+set}" = set; then :
  5058. withval=$with_mpfr_lib;
  5059. fi
  5060. if test "x$with_mpfr" != x; then
  5061. gmplibs="-L$with_mpfr/lib $gmplibs"
  5062. gmpinc="-I$with_mpfr/include $gmpinc"
  5063. fi
  5064. if test "x$with_mpfr_include" != x; then
  5065. gmpinc="-I$with_mpfr_include $gmpinc"
  5066. fi
  5067. if test "x$with_mpfr_lib" != x; then
  5068. gmplibs="-L$with_mpfr_lib $gmplibs"
  5069. fi
  5070. if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
  5071. gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
  5072. gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
  5073. extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
  5074. # Do not test the mpfr version. Assume that it is sufficient, since
  5075. # it is in the source tree, and the library has not been built yet
  5076. # but it would be included on the link line in the version check below
  5077. # hence making the test fail.
  5078. have_gmp=yes
  5079. fi
  5080. # Specify a location for gmp
  5081. # Check whether --with-gmp-dir was given.
  5082. if test "${with_gmp_dir+set}" = set; then :
  5083. withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
  5084. Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
  5085. fi
  5086. # Check whether --with-gmp was given.
  5087. if test "${with_gmp+set}" = set; then :
  5088. withval=$with_gmp;
  5089. fi
  5090. # Check whether --with-gmp-include was given.
  5091. if test "${with_gmp_include+set}" = set; then :
  5092. withval=$with_gmp_include;
  5093. fi
  5094. # Check whether --with-gmp-lib was given.
  5095. if test "${with_gmp_lib+set}" = set; then :
  5096. withval=$with_gmp_lib;
  5097. fi
  5098. if test "x$with_gmp" != x; then
  5099. gmplibs="-L$with_gmp/lib $gmplibs"
  5100. gmpinc="-I$with_gmp/include $gmpinc"
  5101. fi
  5102. if test "x$with_gmp_include" != x; then
  5103. gmpinc="-I$with_gmp_include $gmpinc"
  5104. fi
  5105. if test "x$with_gmp_lib" != x; then
  5106. gmplibs="-L$with_gmp_lib $gmplibs"
  5107. fi
  5108. if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
  5109. gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
  5110. gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
  5111. extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
  5112. extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
  5113. extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
  5114. # Do not test the gmp version. Assume that it is sufficient, since
  5115. # it is in the source tree, and the library has not been built yet
  5116. # but it would be included on the link line in the version check below
  5117. # hence making the test fail.
  5118. have_gmp=yes
  5119. fi
  5120. if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
  5121. have_gmp=yes
  5122. saved_CFLAGS="$CFLAGS"
  5123. CFLAGS="$CFLAGS $gmpinc"
  5124. # Check for the recommended and required versions of GMP.
  5125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
  5126. $as_echo_n "checking for the correct version of gmp.h... " >&6; }
  5127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5128. /* end confdefs.h. */
  5129. #include "gmp.h"
  5130. int
  5131. main ()
  5132. {
  5133. #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
  5134. #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
  5135. #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
  5136. choke me
  5137. #endif
  5138. ;
  5139. return 0;
  5140. }
  5141. _ACEOF
  5142. if ac_fn_c_try_compile "$LINENO"; then :
  5143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5144. /* end confdefs.h. */
  5145. #include <gmp.h>
  5146. int
  5147. main ()
  5148. {
  5149. #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
  5150. #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
  5151. #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
  5152. choke me
  5153. #endif
  5154. ;
  5155. return 0;
  5156. }
  5157. _ACEOF
  5158. if ac_fn_c_try_compile "$LINENO"; then :
  5159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5160. $as_echo "yes" >&6; }
  5161. else
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  5163. $as_echo "buggy but acceptable" >&6; }
  5164. fi
  5165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5166. else
  5167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5168. $as_echo "no" >&6; }; have_gmp=no
  5169. fi
  5170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5171. # If we have GMP, check the MPFR version.
  5172. if test x"$have_gmp" = xyes; then
  5173. # Check for the recommended and required versions of MPFR.
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
  5175. $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
  5176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5177. /* end confdefs.h. */
  5178. #include <gmp.h>
  5179. #include <mpfr.h>
  5180. int
  5181. main ()
  5182. {
  5183. #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
  5184. choke me
  5185. #endif
  5186. ;
  5187. return 0;
  5188. }
  5189. _ACEOF
  5190. if ac_fn_c_try_compile "$LINENO"; then :
  5191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5192. /* end confdefs.h. */
  5193. #include <gmp.h>
  5194. #include <mpfr.h>
  5195. int
  5196. main ()
  5197. {
  5198. #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
  5199. choke me
  5200. #endif
  5201. ;
  5202. return 0;
  5203. }
  5204. _ACEOF
  5205. if ac_fn_c_try_compile "$LINENO"; then :
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5207. $as_echo "yes" >&6; }
  5208. else
  5209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  5210. $as_echo "buggy but acceptable" >&6; }
  5211. fi
  5212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5213. else
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5215. $as_echo "no" >&6; }; have_gmp=no
  5216. fi
  5217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5218. fi
  5219. # Check for the MPC header version.
  5220. if test x"$have_gmp" = xyes ; then
  5221. # Check for the recommended and required versions of MPC.
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
  5223. $as_echo_n "checking for the correct version of mpc.h... " >&6; }
  5224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5225. /* end confdefs.h. */
  5226. #include <mpc.h>
  5227. int
  5228. main ()
  5229. {
  5230. #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
  5231. choke me
  5232. #endif
  5233. ;
  5234. return 0;
  5235. }
  5236. _ACEOF
  5237. if ac_fn_c_try_compile "$LINENO"; then :
  5238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5239. /* end confdefs.h. */
  5240. #include <mpc.h>
  5241. int
  5242. main ()
  5243. {
  5244. #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
  5245. choke me
  5246. #endif
  5247. ;
  5248. return 0;
  5249. }
  5250. _ACEOF
  5251. if ac_fn_c_try_compile "$LINENO"; then :
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5253. $as_echo "yes" >&6; }
  5254. else
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  5256. $as_echo "buggy but acceptable" >&6; }
  5257. fi
  5258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5259. else
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5261. $as_echo "no" >&6; }; have_gmp=no
  5262. fi
  5263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5264. fi
  5265. # Now check the MPFR library.
  5266. if test x"$have_gmp" = xyes; then
  5267. saved_LIBS="$LIBS"
  5268. LIBS="$LIBS $gmplibs"
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
  5270. $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
  5271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5272. /* end confdefs.h. */
  5273. #include <mpc.h>
  5274. int
  5275. main ()
  5276. {
  5277. mpfr_t n;
  5278. mpfr_t x;
  5279. mpc_t c;
  5280. int t;
  5281. mpfr_init (n);
  5282. mpfr_init (x);
  5283. mpfr_atan2 (n, n, x, GMP_RNDN);
  5284. mpfr_erfc (n, x, GMP_RNDN);
  5285. mpfr_subnormalize (x, t, GMP_RNDN);
  5286. mpfr_clear(n);
  5287. mpfr_clear(x);
  5288. mpc_init2 (c, 53);
  5289. mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
  5290. mpc_cosh (c, c, MPC_RNDNN);
  5291. mpc_pow (c, c, c, MPC_RNDNN);
  5292. mpc_acosh (c, c, MPC_RNDNN);
  5293. mpc_clear (c);
  5294. ;
  5295. return 0;
  5296. }
  5297. _ACEOF
  5298. if ac_fn_c_try_link "$LINENO"; then :
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5300. $as_echo "yes" >&6; }
  5301. else
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5303. $as_echo "no" >&6; }; have_gmp=no
  5304. fi
  5305. rm -f core conftest.err conftest.$ac_objext \
  5306. conftest$ac_exeext conftest.$ac_ext
  5307. LIBS="$saved_LIBS"
  5308. fi
  5309. CFLAGS="$saved_CFLAGS"
  5310. # The library versions listed in the error message below should match
  5311. # the HARD-minimums enforced above.
  5312. if test x$have_gmp != xyes; then
  5313. as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
  5314. Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
  5315. their locations. Source code for these libraries can be found at
  5316. their respective hosting sites as well as at
  5317. ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
  5318. http://gcc.gnu.org/install/prerequisites.html for additional info. If
  5319. you obtained GMP, MPFR and/or MPC from a vendor distribution package,
  5320. make sure that you have installed both the libraries and the header
  5321. files. They may be located in separate packages." "$LINENO" 5
  5322. fi
  5323. fi
  5324. # Flags needed for both GMP, MPFR and/or MPC.
  5325. # Libraries to use for stage1 or when not bootstrapping.
  5326. # Check whether --with-stage1-libs was given.
  5327. if test "${with_stage1_libs+set}" = set; then :
  5328. withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
  5329. stage1_libs=
  5330. else
  5331. stage1_libs=$withval
  5332. fi
  5333. else
  5334. stage1_libs=
  5335. fi
  5336. # Linker flags to use for stage1 or when not bootstrapping.
  5337. # Check whether --with-stage1-ldflags was given.
  5338. if test "${with_stage1_ldflags+set}" = set; then :
  5339. withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
  5340. stage1_ldflags=
  5341. else
  5342. stage1_ldflags=$withval
  5343. fi
  5344. else
  5345. stage1_ldflags=
  5346. # In stage 1, default to linking libstdc++ and libgcc statically with GCC
  5347. # if supported. But if the user explicitly specified the libraries to use,
  5348. # trust that they are doing what they want.
  5349. if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
  5350. stage1_ldflags="-static-libstdc++ -static-libgcc"
  5351. fi
  5352. fi
  5353. # Libraries to use for stage2 and later builds.
  5354. # Check whether --with-boot-libs was given.
  5355. if test "${with_boot_libs+set}" = set; then :
  5356. withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
  5357. poststage1_libs=
  5358. else
  5359. poststage1_libs=$withval
  5360. fi
  5361. else
  5362. poststage1_libs=
  5363. fi
  5364. # Linker flags to use for stage2 and later builds.
  5365. # Check whether --with-boot-ldflags was given.
  5366. if test "${with_boot_ldflags+set}" = set; then :
  5367. withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
  5368. poststage1_ldflags=
  5369. else
  5370. poststage1_ldflags=$withval
  5371. fi
  5372. else
  5373. poststage1_ldflags=
  5374. # In stages 2 and 3, default to linking libstdc++ and libgcc
  5375. # statically. But if the user explicitly specified the libraries to
  5376. # use, trust that they are doing what they want.
  5377. if test "$poststage1_libs" = ""; then
  5378. poststage1_ldflags="-static-libstdc++ -static-libgcc"
  5379. fi
  5380. fi
  5381. # GCC GRAPHITE dependency isl.
  5382. # Basic setup is inlined here, actual checks are in config/isl.m4
  5383. # Check whether --with-isl was given.
  5384. if test "${with_isl+set}" = set; then :
  5385. withval=$with_isl;
  5386. fi
  5387. # Treat --without-isl as a request to disable
  5388. # GRAPHITE support and skip all following checks.
  5389. if test "x$with_isl" != "xno"; then
  5390. # Check for isl
  5391. # Check whether --with-isl-include was given.
  5392. if test "${with_isl_include+set}" = set; then :
  5393. withval=$with_isl_include;
  5394. fi
  5395. # Check whether --with-isl-lib was given.
  5396. if test "${with_isl_lib+set}" = set; then :
  5397. withval=$with_isl_lib;
  5398. fi
  5399. # Check whether --enable-isl-version-check was given.
  5400. if test "${enable_isl_version_check+set}" = set; then :
  5401. enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
  5402. else
  5403. ENABLE_ISL_CHECK=yes
  5404. fi
  5405. # Initialize isllibs and islinc.
  5406. case $with_isl in
  5407. no)
  5408. isllibs=
  5409. islinc=
  5410. ;;
  5411. "" | yes)
  5412. ;;
  5413. *)
  5414. isllibs="-L$with_isl/lib"
  5415. islinc="-I$with_isl/include"
  5416. ;;
  5417. esac
  5418. if test "x${with_isl_include}" != x ; then
  5419. islinc="-I$with_isl_include"
  5420. fi
  5421. if test "x${with_isl_lib}" != x; then
  5422. isllibs="-L$with_isl_lib"
  5423. fi
  5424. if test "x${islinc}" = x && test "x${isllibs}" = x \
  5425. && test -d ${srcdir}/isl; then
  5426. isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
  5427. islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
  5428. ENABLE_ISL_CHECK=no
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
  5430. $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
  5431. fi
  5432. isllibs="${isllibs} -lisl"
  5433. if test "${ENABLE_ISL_CHECK}" = yes ; then
  5434. _isl_saved_CFLAGS=$CFLAGS
  5435. _isl_saved_LDFLAGS=$LDFLAGS
  5436. _isl_saved_LIBS=$LIBS
  5437. CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
  5438. LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
  5439. LIBS="${_isl_saved_LIBS} -lisl -lgmp"
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
  5441. $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
  5442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5443. /* end confdefs.h. */
  5444. #include <isl/ctx.h>
  5445. int
  5446. main ()
  5447. {
  5448. isl_ctx_get_max_operations (isl_ctx_alloc ());
  5449. ;
  5450. return 0;
  5451. }
  5452. _ACEOF
  5453. if ac_fn_c_try_link "$LINENO"; then :
  5454. gcc_cv_isl=yes
  5455. else
  5456. gcc_cv_isl=no
  5457. fi
  5458. rm -f core conftest.err conftest.$ac_objext \
  5459. conftest$ac_exeext conftest.$ac_ext
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
  5461. $as_echo "$gcc_cv_isl" >&6; }
  5462. if test "${gcc_cv_isl}" = no ; then
  5463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
  5464. $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
  5465. fi
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
  5467. $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
  5468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5469. /* end confdefs.h. */
  5470. #include <isl/schedule.h>
  5471. int
  5472. main ()
  5473. {
  5474. isl_options_set_schedule_serialize_sccs (NULL, 0);
  5475. ;
  5476. return 0;
  5477. }
  5478. _ACEOF
  5479. if ac_fn_c_try_link "$LINENO"; then :
  5480. ac_has_isl_options_set_schedule_serialize_sccs=yes
  5481. else
  5482. ac_has_isl_options_set_schedule_serialize_sccs=no
  5483. fi
  5484. rm -f core conftest.err conftest.$ac_objext \
  5485. conftest$ac_exeext conftest.$ac_ext
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
  5487. $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
  5488. if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
  5489. islver="0.15"
  5490. fi
  5491. CFLAGS=$_isl_saved_CFLAGS
  5492. LDFLAGS=$_isl_saved_LDFLAGS
  5493. LIBS=$_isl_saved_LIBS
  5494. fi
  5495. if test "x${with_isl}" = xno; then
  5496. graphite_requested=no
  5497. elif test "x${with_isl}" != x \
  5498. || test "x${with_isl_include}" != x \
  5499. || test "x${with_isl_lib}" != x ; then
  5500. graphite_requested=yes
  5501. else
  5502. graphite_requested=no
  5503. fi
  5504. if test "${gcc_cv_isl}" = no ; then
  5505. isllibs=
  5506. islinc=
  5507. fi
  5508. if test "${graphite_requested}" = yes \
  5509. && test "x${isllibs}" = x \
  5510. && test "x${islinc}" = x ; then
  5511. as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
  5512. fi
  5513. fi
  5514. # If the isl check failed, disable builds of in-tree variant of isl
  5515. if test "x$with_isl" = xno ||
  5516. test "x$gcc_cv_isl" = xno; then
  5517. noconfigdirs="$noconfigdirs isl"
  5518. islinc=
  5519. fi
  5520. # Check for LTO support.
  5521. # Check whether --enable-lto was given.
  5522. if test "${enable_lto+set}" = set; then :
  5523. enableval=$enable_lto; enable_lto=$enableval
  5524. else
  5525. enable_lto=yes; default_enable_lto=yes
  5526. fi
  5527. target_elf=no
  5528. case $target in
  5529. *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
  5530. *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
  5531. alpha*-dec-osf* | hppa[12]*-*-hpux* | \
  5532. nvptx-*-none)
  5533. target_elf=no
  5534. ;;
  5535. *)
  5536. target_elf=yes
  5537. ;;
  5538. esac
  5539. if test $target_elf = yes; then :
  5540. # ELF platforms build the lto-plugin always.
  5541. build_lto_plugin=yes
  5542. else
  5543. if test x"$default_enable_lto" = x"yes" ; then
  5544. case $target in
  5545. *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
  5546. # On other non-ELF platforms, LTO has yet to be validated.
  5547. *) enable_lto=no ;;
  5548. esac
  5549. else
  5550. # Apart from ELF platforms, only Windows and Darwin support LTO so far.
  5551. # It would also be nice to check the binutils support, but we don't
  5552. # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
  5553. # warn during gcc/ subconfigure; unless you're bootstrapping with
  5554. # -flto it won't be needed until after installation anyway.
  5555. case $target in
  5556. *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
  5557. *) if test x"$enable_lto" = x"yes"; then
  5558. as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
  5559. fi
  5560. ;;
  5561. esac
  5562. fi
  5563. # Among non-ELF, only Windows platforms support the lto-plugin so far.
  5564. # Build it unless LTO was explicitly disabled.
  5565. case $target in
  5566. *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
  5567. *) ;;
  5568. esac
  5569. fi
  5570. # Check whether --enable-linker-plugin-configure-flags was given.
  5571. if test "${enable_linker_plugin_configure_flags+set}" = set; then :
  5572. enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
  5573. else
  5574. extra_linker_plugin_configure_flags=
  5575. fi
  5576. # Check whether --enable-linker-plugin-flags was given.
  5577. if test "${enable_linker_plugin_flags+set}" = set; then :
  5578. enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
  5579. else
  5580. extra_linker_plugin_flags=
  5581. fi
  5582. # By default, C and C++ are the only stage 1 languages.
  5583. stage1_languages=,c,
  5584. # Target libraries that we bootstrap.
  5585. bootstrap_target_libs=,target-libgcc,
  5586. # Figure out what language subdirectories are present.
  5587. # Look if the user specified --enable-languages="..."; if not, use
  5588. # the environment variable $LANGUAGES if defined. $LANGUAGES might
  5589. # go away some day.
  5590. # NB: embedded tabs in this IF block -- do not untabify
  5591. if test -d ${srcdir}/gcc; then
  5592. if test x"${enable_languages+set}" != xset; then
  5593. if test x"${LANGUAGES+set}" = xset; then
  5594. enable_languages="${LANGUAGES}"
  5595. echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
  5596. else
  5597. enable_languages=all
  5598. fi
  5599. else
  5600. if test x"${enable_languages}" = x ||
  5601. test x"${enable_languages}" = xyes;
  5602. then
  5603. echo configure.ac: --enable-languages needs at least one language argument 1>&2
  5604. exit 1
  5605. fi
  5606. fi
  5607. enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
  5608. # 'f95' is the old name for the 'fortran' language. We issue a warning
  5609. # and make the substitution.
  5610. case ,${enable_languages}, in
  5611. *,f95,*)
  5612. echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
  5613. enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
  5614. ;;
  5615. esac
  5616. # If bootstrapping, C++ must be enabled.
  5617. case ",$enable_languages,:$enable_bootstrap" in
  5618. *,c++,*:*) ;;
  5619. *:yes)
  5620. if test -f ${srcdir}/gcc/cp/config-lang.in; then
  5621. enable_languages="${enable_languages},c++"
  5622. else
  5623. as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
  5624. fi
  5625. ;;
  5626. esac
  5627. # First scan to see if an enabled language requires some other language.
  5628. # We assume that a given config-lang.in will list all the language
  5629. # front ends it requires, even if some are required indirectly.
  5630. for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
  5631. case ${lang_frag} in
  5632. ..) ;;
  5633. # The odd quoting in the next line works around
  5634. # an apparent bug in bash 1.12 on linux.
  5635. ${srcdir}/gcc/[*]/config-lang.in) ;;
  5636. *)
  5637. # From the config-lang.in, get $language, $lang_requires, and
  5638. # $lang_requires_boot_languages.
  5639. language=
  5640. lang_requires=
  5641. lang_requires_boot_languages=
  5642. . ${lang_frag}
  5643. for other in ${lang_requires} ${lang_requires_boot_languages}; do
  5644. case ,${enable_languages}, in
  5645. *,$other,*) ;;
  5646. *,all,*) ;;
  5647. *,$language,*)
  5648. echo " \`$other' language required by \`$language'; enabling" 1>&2
  5649. enable_languages="${enable_languages},${other}"
  5650. ;;
  5651. esac
  5652. done
  5653. for other in ${lang_requires_boot_languages} ; do
  5654. if test "$other" != "c"; then
  5655. case ,${enable_stage1_languages}, in
  5656. *,$other,*) ;;
  5657. *,all,*) ;;
  5658. *)
  5659. case ,${enable_languages}, in
  5660. *,$language,*)
  5661. echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
  5662. enable_stage1_languages="$enable_stage1_languages,${other}"
  5663. ;;
  5664. esac
  5665. ;;
  5666. esac
  5667. fi
  5668. done
  5669. ;;
  5670. esac
  5671. done
  5672. new_enable_languages=,c,
  5673. # If LTO is enabled, add the LTO front end.
  5674. if test "$enable_lto" = "yes" ; then
  5675. case ,${enable_languages}, in
  5676. *,lto,*) ;;
  5677. *) enable_languages="${enable_languages},lto" ;;
  5678. esac
  5679. if test "${build_lto_plugin}" = "yes" ; then
  5680. configdirs="$configdirs lto-plugin"
  5681. fi
  5682. fi
  5683. # If we're building an offloading compiler, add the LTO front end.
  5684. if test x"$enable_as_accelerator_for" != x ; then
  5685. case ,${enable_languages}, in
  5686. *,lto,*) ;;
  5687. *) enable_languages="${enable_languages},lto" ;;
  5688. esac
  5689. fi
  5690. missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
  5691. potential_languages=,c,
  5692. enabled_target_libs=
  5693. disabled_target_libs=
  5694. for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
  5695. case ${lang_frag} in
  5696. ..) ;;
  5697. # The odd quoting in the next line works around
  5698. # an apparent bug in bash 1.12 on linux.
  5699. ${srcdir}/gcc/[*]/config-lang.in) ;;
  5700. *)
  5701. # From the config-lang.in, get $language, $target_libs,
  5702. # $lang_dirs, $boot_language, and $build_by_default
  5703. language=
  5704. target_libs=
  5705. lang_dirs=
  5706. subdir_requires=
  5707. boot_language=no
  5708. build_by_default=yes
  5709. . ${lang_frag}
  5710. if test x${language} = x; then
  5711. echo "${lang_frag} doesn't set \$language." 1>&2
  5712. exit 1
  5713. fi
  5714. if test "$language" = "c++"; then
  5715. boot_language=yes
  5716. fi
  5717. add_this_lang=no
  5718. case ,${enable_languages}, in
  5719. *,${language},*)
  5720. # Language was explicitly selected; include it
  5721. # unless it is C, which is enabled by default.
  5722. if test "$language" != "c"; then
  5723. add_this_lang=yes
  5724. fi
  5725. ;;
  5726. *,all,*)
  5727. # 'all' was selected, select it if it is a default language
  5728. if test "$language" != "c"; then
  5729. add_this_lang=${build_by_default}
  5730. fi
  5731. ;;
  5732. esac
  5733. # Disable languages that need other directories if these aren't available.
  5734. for i in $subdir_requires; do
  5735. test -f "$srcdir/gcc/$i/config-lang.in" && continue
  5736. case ,${enable_languages}, in
  5737. *,${language},*)
  5738. # Specifically requested language; tell them.
  5739. as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
  5740. ;;
  5741. *)
  5742. # Silently disable.
  5743. add_this_lang=unsupported
  5744. ;;
  5745. esac
  5746. done
  5747. # Disable Ada if no preexisting GNAT is available.
  5748. case ,${enable_languages},:${language}:${have_gnat} in
  5749. *,${language},*:ada:no)
  5750. # Specifically requested language; tell them.
  5751. as_fn_error "GNAT is required to build $language" "$LINENO" 5
  5752. ;;
  5753. *:ada:no)
  5754. # Silently disable.
  5755. add_this_lang=unsupported
  5756. ;;
  5757. esac
  5758. # Disable a language that is unsupported by the target.
  5759. case " $unsupported_languages " in
  5760. *" $language "*)
  5761. add_this_lang=unsupported
  5762. ;;
  5763. esac
  5764. case $add_this_lang in
  5765. unsupported)
  5766. # Remove language-dependent dirs.
  5767. disabled_target_libs="$disabled_target_libs $target_libs"
  5768. noconfigdirs="$noconfigdirs $lang_dirs"
  5769. ;;
  5770. no)
  5771. # Remove language-dependent dirs; still show language as supported.
  5772. disabled_target_libs="$disabled_target_libs $target_libs"
  5773. noconfigdirs="$noconfigdirs $lang_dirs"
  5774. potential_languages="${potential_languages}${language},"
  5775. ;;
  5776. yes)
  5777. new_enable_languages="${new_enable_languages}${language},"
  5778. potential_languages="${potential_languages}${language},"
  5779. missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
  5780. enabled_target_libs="$enabled_target_libs $target_libs"
  5781. case "${boot_language}:,$enable_stage1_languages," in
  5782. yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
  5783. # Add to (comma-separated) list of stage 1 languages.
  5784. case ",$stage1_languages," in
  5785. *,$language,* | ,yes, | ,all,) ;;
  5786. *) stage1_languages="${stage1_languages}${language}," ;;
  5787. esac
  5788. # We need to bootstrap any supporting libraries.
  5789. bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
  5790. ;;
  5791. esac
  5792. ;;
  5793. esac
  5794. ;;
  5795. esac
  5796. done
  5797. # Add target libraries which are only needed for disabled languages
  5798. # to noconfigdirs.
  5799. if test -n "$disabled_target_libs"; then
  5800. for dir in $disabled_target_libs; do
  5801. case " $enabled_target_libs " in
  5802. *" ${dir} "*) ;;
  5803. *) noconfigdirs="$noconfigdirs $dir" ;;
  5804. esac
  5805. done
  5806. fi
  5807. # Check whether --enable-stage1-languages was given.
  5808. if test "${enable_stage1_languages+set}" = set; then :
  5809. enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
  5810. ,no,|,,)
  5811. # Set it to something that will have no effect in the loop below
  5812. enable_stage1_languages=c ;;
  5813. ,yes,)
  5814. enable_stage1_languages=`echo $new_enable_languages | \
  5815. sed -e "s/^,//" -e "s/,$//" ` ;;
  5816. *,all,*)
  5817. enable_stage1_languages=`echo ,$enable_stage1_languages, | \
  5818. sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
  5819. esac
  5820. # Add "good" languages from enable_stage1_languages to stage1_languages,
  5821. # while "bad" languages go in missing_languages. Leave no duplicates.
  5822. for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
  5823. case $potential_languages in
  5824. *,$i,*)
  5825. case $stage1_languages in
  5826. *,$i,*) ;;
  5827. *) stage1_languages="$stage1_languages$i," ;;
  5828. esac ;;
  5829. *)
  5830. case $missing_languages in
  5831. *,$i,*) ;;
  5832. *) missing_languages="$missing_languages$i," ;;
  5833. esac ;;
  5834. esac
  5835. done
  5836. fi
  5837. # Remove leading/trailing commas that were added for simplicity
  5838. potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
  5839. missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
  5840. stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
  5841. new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
  5842. if test "x$missing_languages" != x; then
  5843. as_fn_error "
  5844. The following requested languages could not be built: ${missing_languages}
  5845. Supported languages are: ${potential_languages}" "$LINENO" 5
  5846. fi
  5847. if test "x$new_enable_languages" != "x$enable_languages"; then
  5848. echo The following languages will be built: ${new_enable_languages}
  5849. enable_languages="$new_enable_languages"
  5850. fi
  5851. ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
  5852. fi
  5853. # Handle --disable-<component> generically.
  5854. for dir in $configdirs $build_configdirs $target_configdirs ; do
  5855. dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
  5856. varname=`echo $dirname | sed -e s/+/_/g`
  5857. if eval test x\${enable_${varname}} "=" xno ; then
  5858. noconfigdirs="$noconfigdirs $dir"
  5859. fi
  5860. done
  5861. # Check for Boehm's garbage collector
  5862. # Check whether --enable-objc-gc was given.
  5863. if test "${enable_objc_gc+set}" = set; then :
  5864. enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
  5865. *,objc,*:*:yes:*target-boehm-gc*)
  5866. as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
  5867. ;;
  5868. esac
  5869. fi
  5870. # Make sure we only build Boehm's garbage collector if required.
  5871. case ,${enable_languages},:${enable_objc_gc} in
  5872. *,objc,*:yes)
  5873. # Keep target-boehm-gc if requested for Objective-C.
  5874. ;;
  5875. *)
  5876. # Otherwise remove target-boehm-gc depending on target-libjava.
  5877. if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
  5878. noconfigdirs="$noconfigdirs target-boehm-gc"
  5879. fi
  5880. ;;
  5881. esac
  5882. # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
  5883. case ,${enable_languages}, in
  5884. *,c++,*)
  5885. # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
  5886. case "${noconfigdirs}" in
  5887. *target-libstdc++-v3*)
  5888. noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
  5889. ;;
  5890. *) ;;
  5891. esac
  5892. ;;
  5893. *)
  5894. noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
  5895. ;;
  5896. esac
  5897. # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
  5898. # $build_configdirs and $target_configdirs.
  5899. # If we have the source for $noconfigdirs entries, add them to $notsupp.
  5900. notsupp=""
  5901. for dir in . $skipdirs $noconfigdirs ; do
  5902. dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
  5903. if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5904. configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
  5905. if test -r $srcdir/$dirname/configure ; then
  5906. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5907. true
  5908. else
  5909. notsupp="$notsupp $dir"
  5910. fi
  5911. fi
  5912. fi
  5913. if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5914. build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
  5915. if test -r $srcdir/$dirname/configure ; then
  5916. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5917. true
  5918. else
  5919. notsupp="$notsupp $dir"
  5920. fi
  5921. fi
  5922. fi
  5923. if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5924. target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
  5925. if test -r $srcdir/$dirname/configure ; then
  5926. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5927. true
  5928. else
  5929. notsupp="$notsupp $dir"
  5930. fi
  5931. fi
  5932. fi
  5933. done
  5934. # Quietly strip out all directories which aren't configurable in this tree.
  5935. # This relies on all configurable subdirectories being autoconfiscated, which
  5936. # is now the case.
  5937. build_configdirs_all="$build_configdirs"
  5938. build_configdirs=
  5939. for i in ${build_configdirs_all} ; do
  5940. j=`echo $i | sed -e s/build-//g`
  5941. if test -f ${srcdir}/$j/configure ; then
  5942. build_configdirs="${build_configdirs} $i"
  5943. fi
  5944. done
  5945. configdirs_all="$configdirs"
  5946. configdirs=
  5947. for i in ${configdirs_all} ; do
  5948. if test -f ${srcdir}/$i/configure ; then
  5949. configdirs="${configdirs} $i"
  5950. fi
  5951. done
  5952. target_configdirs_all="$target_configdirs"
  5953. target_configdirs=
  5954. for i in ${target_configdirs_all} ; do
  5955. j=`echo $i | sed -e s/target-//g`
  5956. if test -f ${srcdir}/$j/configure ; then
  5957. target_configdirs="${target_configdirs} $i"
  5958. fi
  5959. done
  5960. # Exclude target-zlib if target-libjava isn't built.
  5961. case ${target_configdirs} in
  5962. *target-libjava*)
  5963. ;;
  5964. *)
  5965. target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
  5966. ;;
  5967. esac
  5968. # libiberty-linker-plugin is special: it doesn't have its own source directory,
  5969. # so we have to add it after the preceding checks.
  5970. if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
  5971. then
  5972. case " $configdirs " in
  5973. *" libiberty "*)
  5974. # If we can build libiberty, we can also build libiberty-linker-plugin.
  5975. configdirs="$configdirs libiberty-linker-plugin"
  5976. extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
  5977. --with-libiberty=../libiberty-linker-plugin";;
  5978. *)
  5979. as_fn_error "libiberty missing" "$LINENO" 5;;
  5980. esac
  5981. fi
  5982. # Sometimes we have special requirements for the host libiberty.
  5983. extra_host_libiberty_configure_flags=
  5984. extra_host_zlib_configure_flags=
  5985. case " $configdirs " in
  5986. *" lto-plugin "* | *" libcc1 "*)
  5987. # When these are to be built as shared libraries, the same applies to
  5988. # libiberty.
  5989. extra_host_libiberty_configure_flags=--enable-shared
  5990. ;;
  5991. *" bfd "*)
  5992. # When bfd is to be built as a shared library, the same applies to
  5993. # zlib.
  5994. if test "$enable_shared" = "yes"; then
  5995. extra_host_zlib_configure_flags=--enable-host-shared
  5996. fi
  5997. ;;
  5998. esac
  5999. # Produce a warning message for the subdirs we can't configure.
  6000. # This isn't especially interesting in the Cygnus tree, but in the individual
  6001. # FSF releases, it's important to let people know when their machine isn't
  6002. # supported by the one or two programs in a package.
  6003. if test -n "${notsupp}" && test -z "${norecursion}" ; then
  6004. # If $appdirs is non-empty, at least one of those directories must still
  6005. # be configured, or we error out. (E.g., if the gas release supports a
  6006. # specified target in some subdirs but not the gas subdir, we shouldn't
  6007. # pretend that all is well.)
  6008. if test -n "$appdirs" ; then
  6009. for dir in $appdirs ; do
  6010. if test -r $dir/Makefile.in ; then
  6011. if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  6012. appdirs=""
  6013. break
  6014. fi
  6015. if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
  6016. appdirs=""
  6017. break
  6018. fi
  6019. fi
  6020. done
  6021. if test -n "$appdirs" ; then
  6022. echo "*** This configuration is not supported by this package." 1>&2
  6023. exit 1
  6024. fi
  6025. fi
  6026. # Okay, some application will build, or we don't care to check. Still
  6027. # notify of subdirs not getting built.
  6028. echo "*** This configuration is not supported in the following subdirectories:" 1>&2
  6029. echo " ${notsupp}" 1>&2
  6030. echo " (Any other directories should still work fine.)" 1>&2
  6031. fi
  6032. case "$host" in
  6033. *msdosdjgpp*)
  6034. enable_gdbtk=no ;;
  6035. esac
  6036. # To find our prefix, in gcc_cv_tool_prefix.
  6037. # The user is always right.
  6038. if test "${PATH_SEPARATOR+set}" != set; then
  6039. echo "#! /bin/sh" >conf$$.sh
  6040. echo "exit 0" >>conf$$.sh
  6041. chmod +x conf$$.sh
  6042. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6043. PATH_SEPARATOR=';'
  6044. else
  6045. PATH_SEPARATOR=:
  6046. fi
  6047. rm -f conf$$.sh
  6048. fi
  6049. if test "x$exec_prefix" = xNONE; then
  6050. if test "x$prefix" = xNONE; then
  6051. gcc_cv_tool_prefix=$ac_default_prefix
  6052. else
  6053. gcc_cv_tool_prefix=$prefix
  6054. fi
  6055. else
  6056. gcc_cv_tool_prefix=$exec_prefix
  6057. fi
  6058. # If there is no compiler in the tree, use the PATH only. In any
  6059. # case, if there is no compiler in the tree nobody should use
  6060. # AS_FOR_TARGET and LD_FOR_TARGET.
  6061. if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
  6062. gcc_version=`cat $srcdir/gcc/BASE-VER`
  6063. gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  6064. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
  6065. gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  6066. gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
  6067. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  6068. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
  6069. else
  6070. gcc_cv_tool_dirs=
  6071. fi
  6072. if test x$build = x$target && test -n "$md_exec_prefix"; then
  6073. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
  6074. fi
  6075. copy_dirs=
  6076. # Check whether --with-build-sysroot was given.
  6077. if test "${with_build_sysroot+set}" = set; then :
  6078. withval=$with_build_sysroot; if test x"$withval" != x ; then
  6079. SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
  6080. fi
  6081. else
  6082. SYSROOT_CFLAGS_FOR_TARGET=
  6083. fi
  6084. # Check whether --with-debug-prefix-map was given.
  6085. if test "${with_debug_prefix_map+set}" = set; then :
  6086. withval=$with_debug_prefix_map; if test x"$withval" != x; then
  6087. DEBUG_PREFIX_CFLAGS_FOR_TARGET=
  6088. for debug_map in $withval; do
  6089. DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
  6090. done
  6091. fi
  6092. else
  6093. DEBUG_PREFIX_CFLAGS_FOR_TARGET=
  6094. fi
  6095. # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
  6096. # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
  6097. # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
  6098. # We want to ensure that TARGET libraries (which we know are built with
  6099. # gcc) are built with "-O2 -g", so include those options when setting
  6100. # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
  6101. if test "x$CFLAGS_FOR_TARGET" = x; then
  6102. if test "x${is_cross_compiler}" = xyes; then
  6103. CFLAGS_FOR_TARGET="-g -O2"
  6104. else
  6105. CFLAGS_FOR_TARGET=$CFLAGS
  6106. case " $CFLAGS " in
  6107. *" -O2 "*) ;;
  6108. *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
  6109. esac
  6110. case " $CFLAGS " in
  6111. *" -g "* | *" -g3 "*) ;;
  6112. *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
  6113. esac
  6114. fi
  6115. fi
  6116. if test "x$CXXFLAGS_FOR_TARGET" = x; then
  6117. if test "x${is_cross_compiler}" = xyes; then
  6118. CXXFLAGS_FOR_TARGET="-g -O2"
  6119. else
  6120. CXXFLAGS_FOR_TARGET=$CXXFLAGS
  6121. case " $CXXFLAGS " in
  6122. *" -O2 "*) ;;
  6123. *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
  6124. esac
  6125. case " $CXXFLAGS " in
  6126. *" -g "* | *" -g3 "*) ;;
  6127. *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
  6128. esac
  6129. fi
  6130. fi
  6131. # Handle --with-headers=XXX. If the value is not "yes", the contents of
  6132. # the named directory are copied to $(tooldir)/sys-include.
  6133. if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
  6134. if test x${is_cross_compiler} = xno ; then
  6135. echo 1>&2 '***' --with-headers is only supported when cross compiling
  6136. exit 1
  6137. fi
  6138. if test x"${with_headers}" != xyes ; then
  6139. x=${gcc_cv_tool_prefix}
  6140. copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
  6141. fi
  6142. fi
  6143. # Handle --with-libs=XXX. If the value is not "yes", the contents of
  6144. # the name directories are copied to $(tooldir)/lib. Multiple directories
  6145. # are permitted.
  6146. if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  6147. if test x${is_cross_compiler} = xno ; then
  6148. echo 1>&2 '***' --with-libs is only supported when cross compiling
  6149. exit 1
  6150. fi
  6151. if test x"${with_libs}" != xyes ; then
  6152. # Copy the libraries in reverse order, so that files in the first named
  6153. # library override files in subsequent libraries.
  6154. x=${gcc_cv_tool_prefix}
  6155. for l in ${with_libs}; do
  6156. copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
  6157. done
  6158. fi
  6159. fi
  6160. # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
  6161. #
  6162. # This is done by determining whether or not the appropriate directory
  6163. # is available, and by checking whether or not specific configurations
  6164. # have requested that this magic not happen.
  6165. #
  6166. # The command line options always override the explicit settings in
  6167. # configure.ac, and the settings in configure.ac override this magic.
  6168. #
  6169. # If the default for a toolchain is to use GNU as and ld, and you don't
  6170. # want to do that, then you should use the --without-gnu-as and
  6171. # --without-gnu-ld options for the configure script. Similarly, if
  6172. # the default is to use the included zlib and you don't want to do that,
  6173. # you should use the --with-system-zlib option for the configure script.
  6174. if test x${use_gnu_as} = x &&
  6175. echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
  6176. with_gnu_as=yes
  6177. extra_host_args="$extra_host_args --with-gnu-as"
  6178. fi
  6179. if test x${use_gnu_ld} = x &&
  6180. echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
  6181. with_gnu_ld=yes
  6182. extra_host_args="$extra_host_args --with-gnu-ld"
  6183. fi
  6184. if test x${use_included_zlib} = x &&
  6185. echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
  6186. :
  6187. else
  6188. with_system_zlib=yes
  6189. extra_host_args="$extra_host_args --with-system-zlib"
  6190. fi
  6191. # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
  6192. # can detect this case.
  6193. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
  6194. with_newlib=yes
  6195. extra_host_args="$extra_host_args --with-newlib"
  6196. fi
  6197. # Handle ${copy_dirs}
  6198. set fnord ${copy_dirs}
  6199. shift
  6200. while test $# != 0 ; do
  6201. if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
  6202. :
  6203. else
  6204. echo Copying $1 to $2
  6205. # Use the install script to create the directory and all required
  6206. # parent directories.
  6207. if test -d $2 ; then
  6208. :
  6209. else
  6210. echo >config.temp
  6211. ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
  6212. fi
  6213. # Copy the directory, assuming we have tar.
  6214. # FIXME: Should we use B in the second tar? Not all systems support it.
  6215. (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
  6216. # It is the responsibility of the user to correctly adjust all
  6217. # symlinks. If somebody can figure out how to handle them correctly
  6218. # here, feel free to add the code.
  6219. echo $1 > $2/COPIED
  6220. fi
  6221. shift; shift
  6222. done
  6223. # Determine a target-dependent exec_prefix that the installed
  6224. # gcc will search in. Keep this list sorted by triplet, with
  6225. # the *-*-osname triplets last.
  6226. md_exec_prefix=
  6227. case "${target}" in
  6228. i[34567]86-pc-msdosdjgpp*)
  6229. md_exec_prefix=/dev/env/DJDIR/bin
  6230. ;;
  6231. *-*-hpux* | \
  6232. *-*-nto-qnx* | \
  6233. *-*-solaris2*)
  6234. md_exec_prefix=/usr/ccs/bin
  6235. ;;
  6236. esac
  6237. extra_arflags_for_target=
  6238. extra_nmflags_for_target=
  6239. extra_ranlibflags_for_target=
  6240. target_makefile_frag=/dev/null
  6241. case "${target}" in
  6242. spu-*-*)
  6243. target_makefile_frag="config/mt-spu"
  6244. ;;
  6245. mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
  6246. target_makefile_frag="config/mt-sde"
  6247. ;;
  6248. mipsisa*-*-elfoabi*)
  6249. target_makefile_frag="config/mt-mips-elfoabi"
  6250. ;;
  6251. mips*-*-*linux* | mips*-*-gnu*)
  6252. target_makefile_frag="config/mt-mips-gnu"
  6253. ;;
  6254. nios2-*-elf*)
  6255. target_makefile_frag="config/mt-nios2-elf"
  6256. ;;
  6257. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  6258. target_makefile_frag="config/mt-gnu"
  6259. ;;
  6260. *-*-aix4.[3456789]* | *-*-aix[56789].*)
  6261. # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
  6262. # commands to handle both 32-bit and 64-bit objects. These flags are
  6263. # harmless if we're using GNU nm or ar.
  6264. extra_arflags_for_target=" -X32_64"
  6265. extra_nmflags_for_target=" -B -X32_64"
  6266. ;;
  6267. esac
  6268. alphaieee_frag=/dev/null
  6269. case $target in
  6270. alpha*-*-*)
  6271. # This just makes sure to use the -mieee option to build target libs.
  6272. # This should probably be set individually by each library.
  6273. alphaieee_frag="config/mt-alphaieee"
  6274. ;;
  6275. esac
  6276. # If --enable-target-optspace always use -Os instead of -O2 to build
  6277. # the target libraries, similarly if it is not specified, use -Os
  6278. # on selected platforms.
  6279. ospace_frag=/dev/null
  6280. case "${enable_target_optspace}:${target}" in
  6281. yes:*)
  6282. ospace_frag="config/mt-ospace"
  6283. ;;
  6284. :d30v-*)
  6285. ospace_frag="config/mt-d30v"
  6286. ;;
  6287. :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
  6288. ospace_frag="config/mt-ospace"
  6289. ;;
  6290. no:* | :*)
  6291. ;;
  6292. *)
  6293. echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
  6294. ;;
  6295. esac
  6296. # Some systems (e.g., one of the i386-aix systems the gas testers are
  6297. # using) don't handle "\$" correctly, so don't use it here.
  6298. tooldir='${exec_prefix}'/${target_noncanonical}
  6299. build_tooldir=${tooldir}
  6300. # Create a .gdbinit file which runs the one in srcdir
  6301. # and tells GDB to look there for source files.
  6302. if test -r ${srcdir}/.gdbinit ; then
  6303. case ${srcdir} in
  6304. .) ;;
  6305. *) cat > ./.gdbinit <<EOF
  6306. # ${NO_EDIT}
  6307. dir ${srcdir}
  6308. dir .
  6309. source ${srcdir}/.gdbinit
  6310. EOF
  6311. ;;
  6312. esac
  6313. fi
  6314. # Make sure that the compiler is able to generate an executable. If it
  6315. # can't, we are probably in trouble. We don't care whether we can run the
  6316. # executable--we might be using a cross compiler--we only care whether it
  6317. # can be created. At this point the main configure script has set CC.
  6318. we_are_ok=no
  6319. echo "int main () { return 0; }" > conftest.c
  6320. ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
  6321. if test $? = 0 ; then
  6322. if test -s conftest || test -s conftest.exe ; then
  6323. we_are_ok=yes
  6324. fi
  6325. fi
  6326. case $we_are_ok in
  6327. no)
  6328. echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
  6329. echo 1>&2 "*** You must set the environment variable CC to a working compiler."
  6330. rm -f conftest*
  6331. exit 1
  6332. ;;
  6333. esac
  6334. rm -f conftest*
  6335. # Decide which environment variable is used to find dynamic libraries.
  6336. case "${host}" in
  6337. *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
  6338. *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
  6339. *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
  6340. *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
  6341. esac
  6342. # On systems where the dynamic library environment variable is PATH,
  6343. # gcc/ will put dynamic libraries into a subdirectory to avoid adding
  6344. # built executables to PATH.
  6345. if test "$RPATH_ENVVAR" = PATH; then
  6346. GCC_SHLIB_SUBDIR=/shlib
  6347. else
  6348. GCC_SHLIB_SUBDIR=
  6349. fi
  6350. # Adjust the toplevel makefile according to whether bootstrap was selected.
  6351. case $enable_bootstrap in
  6352. yes)
  6353. bootstrap_suffix=bootstrap
  6354. BUILD_CONFIG=bootstrap-debug
  6355. ;;
  6356. no)
  6357. bootstrap_suffix=no-bootstrap
  6358. BUILD_CONFIG=
  6359. ;;
  6360. esac
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
  6362. $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
  6363. # Check whether --with-build-config was given.
  6364. if test "${with_build_config+set}" = set; then :
  6365. withval=$with_build_config; case $with_build_config in
  6366. yes) with_build_config= ;;
  6367. no) with_build_config= BUILD_CONFIG= ;;
  6368. esac
  6369. fi
  6370. if test "x${with_build_config}" != x; then
  6371. BUILD_CONFIG=$with_build_config
  6372. else
  6373. case $BUILD_CONFIG in
  6374. bootstrap-debug)
  6375. if echo "int f (void) { return 0; }" > conftest.c &&
  6376. ${CC} -c conftest.c &&
  6377. mv conftest.o conftest.o.g0 &&
  6378. ${CC} -c -g conftest.c &&
  6379. mv conftest.o conftest.o.g &&
  6380. ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
  6381. :
  6382. else
  6383. BUILD_CONFIG=
  6384. fi
  6385. rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
  6386. ;;
  6387. esac
  6388. fi
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
  6390. $as_echo "$BUILD_CONFIG" >&6; }
  6391. # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
  6393. $as_echo_n "checking for --enable-vtable-verify... " >&6; }
  6394. # Check whether --enable-vtable-verify was given.
  6395. if test "${enable_vtable_verify+set}" = set; then :
  6396. enableval=$enable_vtable_verify; case "$enableval" in
  6397. yes) enable_vtable_verify=yes ;;
  6398. no) enable_vtable_verify=no ;;
  6399. *) enable_vtable_verify=no;;
  6400. esac
  6401. else
  6402. enable_vtable_verify=no
  6403. fi
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
  6405. $as_echo "$enable_vtable_verify" >&6; }
  6406. # Record target_configdirs and the configure arguments for target and
  6407. # build configuration in Makefile.
  6408. target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
  6409. build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
  6410. bootstrap_fixincludes=no
  6411. # If we are building libgomp, bootstrap it.
  6412. if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
  6413. bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
  6414. fi
  6415. # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
  6416. # or bootstrap-ubsan, bootstrap it.
  6417. if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
  6418. case "$BUILD_CONFIG" in
  6419. *bootstrap-asan* | *bootstrap-ubsan* )
  6420. bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
  6421. bootstrap_fixincludes=yes
  6422. ;;
  6423. esac
  6424. fi
  6425. # If we are building libvtv and --enable-vtable-verify, bootstrap it.
  6426. if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
  6427. test "$enable_vtable_verify" != no; then
  6428. bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
  6429. fi
  6430. # If we are building libmpx, bootstrap it.
  6431. if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
  6432. bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
  6433. fi
  6434. # Determine whether gdb needs tk/tcl or not.
  6435. # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
  6436. # and in that case we want gdb to be built without tk. Ugh!
  6437. # In fact I believe gdb is the *only* package directly dependent on tk,
  6438. # so we should be able to put the 'maybe's in unconditionally and
  6439. # leave out the maybe dependencies when enable_gdbtk is false. I'm not
  6440. # 100% sure that that's safe though.
  6441. gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
  6442. case "$enable_gdbtk" in
  6443. no)
  6444. GDB_TK="" ;;
  6445. yes)
  6446. GDB_TK="${gdb_tk}" ;;
  6447. *)
  6448. # Only add the dependency on gdbtk when GDBtk is part of the gdb
  6449. # distro. Eventually someone will fix this and move Insight, nee
  6450. # gdbtk to a separate directory.
  6451. if test -d ${srcdir}/gdb/gdbtk ; then
  6452. GDB_TK="${gdb_tk}"
  6453. else
  6454. GDB_TK=""
  6455. fi
  6456. ;;
  6457. esac
  6458. CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
  6459. INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
  6460. # Strip out unwanted targets.
  6461. # While at that, we remove Makefiles if we were started for recursive
  6462. # configuration, so that the top-level Makefile reconfigures them,
  6463. # like we used to do when configure itself was recursive.
  6464. # Loop over modules. We used to use the "$extrasub" feature from Autoconf
  6465. # but now we're fixing up the Makefile ourselves with the additional
  6466. # commands passed to AC_CONFIG_FILES. Use separate variables
  6467. # extrasub-{build,host,target} not because there is any reason to split
  6468. # the substitutions up that way, but only to remain below the limit of
  6469. # 99 commands in a script, for HP-UX sed.
  6470. # Do not nest @if/@endif or @unless/@endunless pairs, because
  6471. # configure will not warn you at all.
  6472. case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
  6473. yes:yes:*\ gold\ *:*,c++,*) ;;
  6474. yes:yes:*\ gold\ *:*)
  6475. as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
  6476. ;;
  6477. esac
  6478. extrasub_build=
  6479. for module in ${build_configdirs} ; do
  6480. if test -z "${no_recursion}" \
  6481. && test -f ${build_subdir}/${module}/Makefile; then
  6482. echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
  6483. rm -f ${build_subdir}/${module}/Makefile
  6484. fi
  6485. extrasub_build="$extrasub_build
  6486. /^@if build-$module\$/d
  6487. /^@endif build-$module\$/d
  6488. /^@unless build-$module\$/,/^@endunless build-$module\$/d
  6489. /^@if build-$module-$bootstrap_suffix\$/d
  6490. /^@endif build-$module-$bootstrap_suffix\$/d
  6491. /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
  6492. done
  6493. extrasub_host=
  6494. for module in ${configdirs} ; do
  6495. if test -z "${no_recursion}"; then
  6496. for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
  6497. if test -f ${file}; then
  6498. echo 1>&2 "*** removing ${file} to force reconfigure"
  6499. rm -f ${file}
  6500. fi
  6501. done
  6502. fi
  6503. case ${module},${bootstrap_fixincludes} in
  6504. fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
  6505. *) host_bootstrap_suffix=$bootstrap_suffix ;;
  6506. esac
  6507. extrasub_host="$extrasub_host
  6508. /^@if $module\$/d
  6509. /^@endif $module\$/d
  6510. /^@unless $module\$/,/^@endunless $module\$/d
  6511. /^@if $module-$host_bootstrap_suffix\$/d
  6512. /^@endif $module-$host_bootstrap_suffix\$/d
  6513. /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
  6514. done
  6515. extrasub_target=
  6516. for module in ${target_configdirs} ; do
  6517. if test -z "${no_recursion}" \
  6518. && test -f ${target_subdir}/${module}/Makefile; then
  6519. echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
  6520. rm -f ${target_subdir}/${module}/Makefile
  6521. fi
  6522. # We only bootstrap target libraries listed in bootstrap_target_libs.
  6523. case $bootstrap_target_libs in
  6524. *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
  6525. *) target_bootstrap_suffix=no-bootstrap ;;
  6526. esac
  6527. extrasub_target="$extrasub_target
  6528. /^@if target-$module\$/d
  6529. /^@endif target-$module\$/d
  6530. /^@unless target-$module\$/,/^@endunless target-$module\$/d
  6531. /^@if target-$module-$target_bootstrap_suffix\$/d
  6532. /^@endif target-$module-$target_bootstrap_suffix\$/d
  6533. /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
  6534. done
  6535. # Do the final fixup along with target modules.
  6536. extrasub_target="$extrasub_target
  6537. /^@if /,/^@endif /d
  6538. /^@unless /d
  6539. /^@endunless /d"
  6540. # Create the serialization dependencies. This uses a temporary file.
  6541. # Check whether --enable-serial-configure was given.
  6542. if test "${enable_serial_configure+set}" = set; then :
  6543. enableval=$enable_serial_configure;
  6544. fi
  6545. case ${enable_serial_configure} in
  6546. yes)
  6547. enable_serial_build_configure=yes
  6548. enable_serial_host_configure=yes
  6549. enable_serial_target_configure=yes
  6550. ;;
  6551. esac
  6552. # These force 'configure's to be done one at a time, to avoid problems
  6553. # with contention over a shared config.cache.
  6554. rm -f serdep.tmp
  6555. echo '# serdep.tmp' > serdep.tmp
  6556. olditem=
  6557. test "x${enable_serial_build_configure}" = xyes &&
  6558. for item in ${build_configdirs} ; do
  6559. case ${olditem} in
  6560. "") ;;
  6561. *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
  6562. esac
  6563. olditem=${item}
  6564. done
  6565. olditem=
  6566. test "x${enable_serial_host_configure}" = xyes &&
  6567. for item in ${configdirs} ; do
  6568. case ${olditem} in
  6569. "") ;;
  6570. *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
  6571. esac
  6572. olditem=${item}
  6573. done
  6574. olditem=
  6575. test "x${enable_serial_target_configure}" = xyes &&
  6576. for item in ${target_configdirs} ; do
  6577. case ${olditem} in
  6578. "") ;;
  6579. *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
  6580. esac
  6581. olditem=${item}
  6582. done
  6583. serialization_dependencies=serdep.tmp
  6584. # Base args. Strip norecursion, cache-file, srcdir, host, build,
  6585. # target, nonopt, and variable assignments. These are the ones we
  6586. # might not want to pass down to subconfigures. The exception being
  6587. # --cache-file=/dev/null, which is used to turn off the use of cache
  6588. # files altogether, and which should be passed on to subconfigures.
  6589. # Also strip program-prefix, program-suffix, and program-transform-name,
  6590. # so that we can pass down a consistent program-transform-name.
  6591. baseargs=
  6592. tbaseargs=
  6593. keep_next=no
  6594. skip_next=no
  6595. eval "set -- $ac_configure_args"
  6596. for ac_arg
  6597. do
  6598. if test X"$skip_next" = X"yes"; then
  6599. skip_next=no
  6600. continue
  6601. fi
  6602. if test X"$keep_next" = X"yes"; then
  6603. case $ac_arg in
  6604. *\'*)
  6605. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6606. esac
  6607. baseargs="$baseargs '$ac_arg'"
  6608. tbaseargs="$tbaseargs '$ac_arg'"
  6609. keep_next=no
  6610. continue
  6611. fi
  6612. # Handle separated arguments. Based on the logic generated by
  6613. # autoconf 2.59.
  6614. case $ac_arg in
  6615. *=* | --config-cache | -C | -disable-* | --disable-* \
  6616. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  6617. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  6618. | -with-* | --with-* | -without-* | --without-* | --x)
  6619. separate_arg=no
  6620. ;;
  6621. -*)
  6622. separate_arg=yes
  6623. ;;
  6624. *)
  6625. separate_arg=no
  6626. ;;
  6627. esac
  6628. skip_targ=no
  6629. case $ac_arg in
  6630. --with-* | --without-*)
  6631. libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
  6632. case $libopt in
  6633. *[-_]include)
  6634. lib=`echo "$libopt" | sed 's,[-_]include$,,'`
  6635. ;;
  6636. *[-_]lib)
  6637. lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
  6638. ;;
  6639. *)
  6640. lib=$libopt
  6641. ;;
  6642. esac
  6643. case $lib in
  6644. mpc | mpfr | gmp | isl)
  6645. # If we're processing --with-$lib, --with-$lib-include or
  6646. # --with-$lib-lib, for one of the libs above, and target is
  6647. # different from host, don't pass the current argument to any
  6648. # target library's configure.
  6649. if test x$is_cross_compiler = xyes; then
  6650. skip_targ=yes
  6651. fi
  6652. ;;
  6653. esac
  6654. ;;
  6655. esac
  6656. case "$ac_arg" in
  6657. --cache-file=/dev/null | \
  6658. -cache-file=/dev/null )
  6659. # Handled here to avoid the test to skip args below.
  6660. baseargs="$baseargs '$ac_arg'"
  6661. tbaseargs="$tbaseargs '$ac_arg'"
  6662. # Assert: $separate_arg should always be no.
  6663. keep_next=$separate_arg
  6664. ;;
  6665. --no*)
  6666. continue
  6667. ;;
  6668. --c* | \
  6669. --sr* | \
  6670. --ho* | \
  6671. --bu* | \
  6672. --t* | \
  6673. --program-* | \
  6674. -cache_file* | \
  6675. -srcdir* | \
  6676. -host* | \
  6677. -build* | \
  6678. -target* | \
  6679. -program-prefix* | \
  6680. -program-suffix* | \
  6681. -program-transform-name* )
  6682. skip_next=$separate_arg
  6683. continue
  6684. ;;
  6685. -*)
  6686. # An option. Add it.
  6687. case $ac_arg in
  6688. *\'*)
  6689. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6690. esac
  6691. baseargs="$baseargs '$ac_arg'"
  6692. if test X"$skip_targ" = Xno; then
  6693. tbaseargs="$tbaseargs '$ac_arg'"
  6694. fi
  6695. keep_next=$separate_arg
  6696. ;;
  6697. *)
  6698. # Either a variable assignment, or a nonopt (triplet). Don't
  6699. # pass it down; let the Makefile handle this.
  6700. continue
  6701. ;;
  6702. esac
  6703. done
  6704. # Remove the initial space we just introduced and, as these will be
  6705. # expanded by make, quote '$'.
  6706. baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  6707. # Add in --program-transform-name, after --program-prefix and
  6708. # --program-suffix have been applied to it. Autoconf has already
  6709. # doubled dollar signs and backslashes in program_transform_name; we want
  6710. # the backslashes un-doubled, and then the entire thing wrapped in single
  6711. # quotes, because this will be expanded first by make and then by the shell.
  6712. # Also, because we want to override the logic in subdir configure scripts to
  6713. # choose program_transform_name, replace any s,x,x, with s,y,y,.
  6714. sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
  6715. ${program_transform_name}
  6716. EOF_SED
  6717. gcc_transform_name=`cat conftestsed.out`
  6718. rm -f conftestsed.out
  6719. baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
  6720. tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
  6721. if test "$silent" = yes; then
  6722. baseargs="$baseargs --silent"
  6723. tbaseargs="$tbaseargs --silent"
  6724. fi
  6725. baseargs="$baseargs --disable-option-checking"
  6726. tbaseargs="$tbaseargs --disable-option-checking"
  6727. # Record and document user additions to sub configure arguments.
  6728. # For the build-side libraries, we just need to pretend we're native,
  6729. # and not use the same cache file. Multilibs are neither needed nor
  6730. # desired. We can't even use the same cache file for all build-side
  6731. # libraries, as they're compiled differently; some with C, some with
  6732. # C++ or with different feature-enabling options.
  6733. build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
  6734. # For host modules, accept cache file option, or specification as blank.
  6735. case "${cache_file}" in
  6736. "") # empty
  6737. cache_file_option="" ;;
  6738. /* | [A-Za-z]:[\\/]* ) # absolute path
  6739. cache_file_option="--cache-file=${cache_file}" ;;
  6740. *) # relative path
  6741. cache_file_option="--cache-file=../${cache_file}" ;;
  6742. esac
  6743. # Host dirs don't like to share a cache file either, horribly enough.
  6744. # This seems to be due to autoconf 2.5x stupidity.
  6745. host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
  6746. target_configargs="$target_configargs ${tbaseargs}"
  6747. # Passing a --with-cross-host argument lets the target libraries know
  6748. # whether they are being built with a cross-compiler or being built
  6749. # native. However, it would be better to use other mechanisms to make the
  6750. # sorts of decisions they want to make on this basis. Please consider
  6751. # this option to be deprecated. FIXME.
  6752. if test x${is_cross_compiler} = xyes ; then
  6753. target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
  6754. fi
  6755. # Special user-friendly check for native x86_64-linux build, if
  6756. # multilib is not explicitly enabled.
  6757. case "$target:$have_compiler:$host:$target:$enable_multilib" in
  6758. x86_64-*linux*:yes:$build:$build:)
  6759. # Make sure we have a development environment that handles 32-bit
  6760. dev64=no
  6761. echo "int main () { return 0; }" > conftest.c
  6762. ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
  6763. if test $? = 0 ; then
  6764. if test -s conftest || test -s conftest.exe ; then
  6765. dev64=yes
  6766. fi
  6767. fi
  6768. rm -f conftest*
  6769. if test x${dev64} != xyes ; then
  6770. 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
  6771. fi
  6772. ;;
  6773. esac
  6774. # Default to --enable-multilib.
  6775. if test x${enable_multilib} = x ; then
  6776. target_configargs="--enable-multilib ${target_configargs}"
  6777. fi
  6778. # Pass --with-newlib if appropriate. Note that target_configdirs has
  6779. # changed from the earlier setting of with_newlib.
  6780. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
  6781. target_configargs="--with-newlib ${target_configargs}"
  6782. fi
  6783. # Different target subdirs use different values of certain variables
  6784. # (notably CXX). Worse, multilibs use *lots* of different values.
  6785. # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
  6786. # it doesn't automatically accept command-line overrides of them.
  6787. # This means it's not safe for target subdirs to share a cache file,
  6788. # which is disgusting, but there you have it. Hopefully this can be
  6789. # fixed in future. It's still worthwhile to use a cache file for each
  6790. # directory. I think.
  6791. # Pass the appropriate --build, --host, --target and --cache-file arguments.
  6792. # We need to pass --target, as newer autoconf's requires consistency
  6793. # for target_alias and gcc doesn't manage it consistently.
  6794. target_configargs="--cache-file=./config.cache ${target_configargs}"
  6795. FLAGS_FOR_TARGET=
  6796. case " $target_configdirs " in
  6797. *" newlib "*)
  6798. case " $target_configargs " in
  6799. *" --with-newlib "*)
  6800. case "$target" in
  6801. *-cygwin*)
  6802. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
  6803. ;;
  6804. esac
  6805. # If we're not building GCC, don't discard standard headers.
  6806. if test -d ${srcdir}/gcc; then
  6807. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
  6808. if test "${build}" != "${host}"; then
  6809. # On Canadian crosses, CC_FOR_TARGET will have already been set
  6810. # by `configure', so we won't have an opportunity to add -Bgcc/
  6811. # to it. This is right: we don't want to search that directory
  6812. # for binaries, but we want the header files in there, so add
  6813. # them explicitly.
  6814. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
  6815. # Someone might think of using the pre-installed headers on
  6816. # Canadian crosses, in case the installed compiler is not fully
  6817. # compatible with the compiler being built. In this case, it
  6818. # would be better to flag an error than risking having
  6819. # incompatible object files being constructed. We can't
  6820. # guarantee that an error will be flagged, but let's hope the
  6821. # compiler will do it, when presented with incompatible header
  6822. # files.
  6823. fi
  6824. fi
  6825. case "${target}-${is_cross_compiler}" in
  6826. i[3456789]86-*-linux*-no)
  6827. # Here host == target, so we don't need to build gcc,
  6828. # so we don't want to discard standard headers.
  6829. FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
  6830. ;;
  6831. *)
  6832. # If we're building newlib, use its generic headers last, but search
  6833. # for any libc-related directories first (so make it the last -B
  6834. # switch).
  6835. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
  6836. # If we're building libgloss, find the startup file, simulator library
  6837. # and linker script.
  6838. case " $target_configdirs " in
  6839. *" libgloss "*)
  6840. # Look for startup file, simulator library and maybe linker script.
  6841. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
  6842. # Look for libnosys.a in case the target needs it.
  6843. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
  6844. # Most targets have the linker script in the source directory.
  6845. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
  6846. ;;
  6847. esac
  6848. ;;
  6849. esac
  6850. ;;
  6851. esac
  6852. ;;
  6853. esac
  6854. case "$target" in
  6855. x86_64-*mingw* | *-w64-mingw*)
  6856. # MinGW-w64 does not use newlib, nor does it use winsup. It may,
  6857. # however, use a symlink named 'mingw' in ${prefix} .
  6858. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
  6859. ;;
  6860. *-mingw*)
  6861. # MinGW can't be handled as Cygwin above since it does not use newlib.
  6862. 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'
  6863. ;;
  6864. esac
  6865. # Allow the user to override the flags for
  6866. # our build compiler if desired.
  6867. if test x"${build}" = x"${host}" ; then
  6868. CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
  6869. CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
  6870. LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
  6871. fi
  6872. # On Canadian crosses, we'll be searching the right directories for
  6873. # the previously-installed cross compiler, so don't bother to add
  6874. # flags for directories within the install tree of the compiler
  6875. # being built; programs in there won't even run.
  6876. if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
  6877. # Search for pre-installed headers if nothing else fits.
  6878. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
  6879. fi
  6880. if test "x${use_gnu_ld}" = x &&
  6881. echo " ${configdirs} " | grep " ld " > /dev/null ; then
  6882. # Arrange for us to find uninstalled linker scripts.
  6883. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
  6884. fi
  6885. # Search for other target-specific linker scripts and such.
  6886. case "${target}" in
  6887. mep*)
  6888. FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
  6889. ;;
  6890. esac
  6891. # Makefile fragments.
  6892. for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
  6893. do
  6894. eval fragval=\$$frag
  6895. if test $fragval != /dev/null; then
  6896. eval $frag=${srcdir}/$fragval
  6897. fi
  6898. done
  6899. # Miscellanea: directories, flags, etc.
  6900. # Build module lists & subconfigure args.
  6901. # Host module lists & subconfigure args.
  6902. # Target module lists & subconfigure args.
  6903. # Build tools.
  6904. # Generate default definitions for YACC, M4, LEX and other programs that run
  6905. # on the build machine. These are used if the Makefile can't locate these
  6906. # programs in objdir.
  6907. MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
  6908. for ac_prog in 'bison -y' byacc yacc
  6909. do
  6910. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6911. set dummy $ac_prog; ac_word=$2
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6913. $as_echo_n "checking for $ac_word... " >&6; }
  6914. if test "${ac_cv_prog_YACC+set}" = set; then :
  6915. $as_echo_n "(cached) " >&6
  6916. else
  6917. if test -n "$YACC"; then
  6918. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  6919. else
  6920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6921. for as_dir in $PATH
  6922. do
  6923. IFS=$as_save_IFS
  6924. test -z "$as_dir" && as_dir=.
  6925. for ac_exec_ext in '' $ac_executable_extensions; do
  6926. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6927. ac_cv_prog_YACC="$ac_prog"
  6928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6929. break 2
  6930. fi
  6931. done
  6932. done
  6933. IFS=$as_save_IFS
  6934. fi
  6935. fi
  6936. YACC=$ac_cv_prog_YACC
  6937. if test -n "$YACC"; then
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  6939. $as_echo "$YACC" >&6; }
  6940. else
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6942. $as_echo "no" >&6; }
  6943. fi
  6944. test -n "$YACC" && break
  6945. done
  6946. test -n "$YACC" || YACC="$MISSING bison -y"
  6947. case " $build_configdirs " in
  6948. *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
  6949. esac
  6950. for ac_prog in bison
  6951. do
  6952. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6953. set dummy $ac_prog; ac_word=$2
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6955. $as_echo_n "checking for $ac_word... " >&6; }
  6956. if test "${ac_cv_prog_BISON+set}" = set; then :
  6957. $as_echo_n "(cached) " >&6
  6958. else
  6959. if test -n "$BISON"; then
  6960. ac_cv_prog_BISON="$BISON" # Let the user override the test.
  6961. else
  6962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6963. for as_dir in $PATH
  6964. do
  6965. IFS=$as_save_IFS
  6966. test -z "$as_dir" && as_dir=.
  6967. for ac_exec_ext in '' $ac_executable_extensions; do
  6968. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6969. ac_cv_prog_BISON="$ac_prog"
  6970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6971. break 2
  6972. fi
  6973. done
  6974. done
  6975. IFS=$as_save_IFS
  6976. fi
  6977. fi
  6978. BISON=$ac_cv_prog_BISON
  6979. if test -n "$BISON"; then
  6980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  6981. $as_echo "$BISON" >&6; }
  6982. else
  6983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6984. $as_echo "no" >&6; }
  6985. fi
  6986. test -n "$BISON" && break
  6987. done
  6988. test -n "$BISON" || BISON="$MISSING bison"
  6989. case " $build_configdirs " in
  6990. *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
  6991. esac
  6992. for ac_prog in gm4 gnum4 m4
  6993. do
  6994. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6995. set dummy $ac_prog; ac_word=$2
  6996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6997. $as_echo_n "checking for $ac_word... " >&6; }
  6998. if test "${ac_cv_prog_M4+set}" = set; then :
  6999. $as_echo_n "(cached) " >&6
  7000. else
  7001. if test -n "$M4"; then
  7002. ac_cv_prog_M4="$M4" # Let the user override the test.
  7003. else
  7004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7005. for as_dir in $PATH
  7006. do
  7007. IFS=$as_save_IFS
  7008. test -z "$as_dir" && as_dir=.
  7009. for ac_exec_ext in '' $ac_executable_extensions; do
  7010. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7011. ac_cv_prog_M4="$ac_prog"
  7012. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7013. break 2
  7014. fi
  7015. done
  7016. done
  7017. IFS=$as_save_IFS
  7018. fi
  7019. fi
  7020. M4=$ac_cv_prog_M4
  7021. if test -n "$M4"; then
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
  7023. $as_echo "$M4" >&6; }
  7024. else
  7025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7026. $as_echo "no" >&6; }
  7027. fi
  7028. test -n "$M4" && break
  7029. done
  7030. test -n "$M4" || M4="$MISSING m4"
  7031. case " $build_configdirs " in
  7032. *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
  7033. esac
  7034. for ac_prog in flex lex
  7035. do
  7036. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7037. set dummy $ac_prog; ac_word=$2
  7038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7039. $as_echo_n "checking for $ac_word... " >&6; }
  7040. if test "${ac_cv_prog_LEX+set}" = set; then :
  7041. $as_echo_n "(cached) " >&6
  7042. else
  7043. if test -n "$LEX"; then
  7044. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  7045. else
  7046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7047. for as_dir in $PATH
  7048. do
  7049. IFS=$as_save_IFS
  7050. test -z "$as_dir" && as_dir=.
  7051. for ac_exec_ext in '' $ac_executable_extensions; do
  7052. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7053. ac_cv_prog_LEX="$ac_prog"
  7054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7055. break 2
  7056. fi
  7057. done
  7058. done
  7059. IFS=$as_save_IFS
  7060. fi
  7061. fi
  7062. LEX=$ac_cv_prog_LEX
  7063. if test -n "$LEX"; then
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  7065. $as_echo "$LEX" >&6; }
  7066. else
  7067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7068. $as_echo "no" >&6; }
  7069. fi
  7070. test -n "$LEX" && break
  7071. done
  7072. test -n "$LEX" || LEX="$MISSING flex"
  7073. case " $build_configdirs " in
  7074. *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
  7075. *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
  7076. esac
  7077. for ac_prog in flex
  7078. do
  7079. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7080. set dummy $ac_prog; ac_word=$2
  7081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7082. $as_echo_n "checking for $ac_word... " >&6; }
  7083. if test "${ac_cv_prog_FLEX+set}" = set; then :
  7084. $as_echo_n "(cached) " >&6
  7085. else
  7086. if test -n "$FLEX"; then
  7087. ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
  7088. else
  7089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7090. for as_dir in $PATH
  7091. do
  7092. IFS=$as_save_IFS
  7093. test -z "$as_dir" && as_dir=.
  7094. for ac_exec_ext in '' $ac_executable_extensions; do
  7095. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7096. ac_cv_prog_FLEX="$ac_prog"
  7097. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7098. break 2
  7099. fi
  7100. done
  7101. done
  7102. IFS=$as_save_IFS
  7103. fi
  7104. fi
  7105. FLEX=$ac_cv_prog_FLEX
  7106. if test -n "$FLEX"; then
  7107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  7108. $as_echo "$FLEX" >&6; }
  7109. else
  7110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7111. $as_echo "no" >&6; }
  7112. fi
  7113. test -n "$FLEX" && break
  7114. done
  7115. test -n "$FLEX" || FLEX="$MISSING flex"
  7116. case " $build_configdirs " in
  7117. *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
  7118. esac
  7119. for ac_prog in makeinfo
  7120. do
  7121. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7122. set dummy $ac_prog; ac_word=$2
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7124. $as_echo_n "checking for $ac_word... " >&6; }
  7125. if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
  7126. $as_echo_n "(cached) " >&6
  7127. else
  7128. if test -n "$MAKEINFO"; then
  7129. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  7130. else
  7131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7132. for as_dir in $PATH
  7133. do
  7134. IFS=$as_save_IFS
  7135. test -z "$as_dir" && as_dir=.
  7136. for ac_exec_ext in '' $ac_executable_extensions; do
  7137. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7138. ac_cv_prog_MAKEINFO="$ac_prog"
  7139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7140. break 2
  7141. fi
  7142. done
  7143. done
  7144. IFS=$as_save_IFS
  7145. fi
  7146. fi
  7147. MAKEINFO=$ac_cv_prog_MAKEINFO
  7148. if test -n "$MAKEINFO"; then
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  7150. $as_echo "$MAKEINFO" >&6; }
  7151. else
  7152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7153. $as_echo "no" >&6; }
  7154. fi
  7155. test -n "$MAKEINFO" && break
  7156. done
  7157. test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
  7158. case " $build_configdirs " in
  7159. *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
  7160. *)
  7161. # For an installed makeinfo, we require it to be from texinfo 4.7 or
  7162. # higher, else we use the "missing" dummy.
  7163. if ${MAKEINFO} --version \
  7164. | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
  7165. :
  7166. else
  7167. MAKEINFO="$MISSING makeinfo"
  7168. fi
  7169. ;;
  7170. esac
  7171. # FIXME: expect and dejagnu may become build tools?
  7172. for ac_prog in expect
  7173. do
  7174. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7175. set dummy $ac_prog; ac_word=$2
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7177. $as_echo_n "checking for $ac_word... " >&6; }
  7178. if test "${ac_cv_prog_EXPECT+set}" = set; then :
  7179. $as_echo_n "(cached) " >&6
  7180. else
  7181. if test -n "$EXPECT"; then
  7182. ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
  7183. else
  7184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7185. for as_dir in $PATH
  7186. do
  7187. IFS=$as_save_IFS
  7188. test -z "$as_dir" && as_dir=.
  7189. for ac_exec_ext in '' $ac_executable_extensions; do
  7190. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7191. ac_cv_prog_EXPECT="$ac_prog"
  7192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7193. break 2
  7194. fi
  7195. done
  7196. done
  7197. IFS=$as_save_IFS
  7198. fi
  7199. fi
  7200. EXPECT=$ac_cv_prog_EXPECT
  7201. if test -n "$EXPECT"; then
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
  7203. $as_echo "$EXPECT" >&6; }
  7204. else
  7205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7206. $as_echo "no" >&6; }
  7207. fi
  7208. test -n "$EXPECT" && break
  7209. done
  7210. test -n "$EXPECT" || EXPECT="expect"
  7211. case " $configdirs " in
  7212. *" expect "*)
  7213. test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
  7214. ;;
  7215. esac
  7216. for ac_prog in runtest
  7217. do
  7218. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7219. set dummy $ac_prog; ac_word=$2
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7221. $as_echo_n "checking for $ac_word... " >&6; }
  7222. if test "${ac_cv_prog_RUNTEST+set}" = set; then :
  7223. $as_echo_n "(cached) " >&6
  7224. else
  7225. if test -n "$RUNTEST"; then
  7226. ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
  7227. else
  7228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7229. for as_dir in $PATH
  7230. do
  7231. IFS=$as_save_IFS
  7232. test -z "$as_dir" && as_dir=.
  7233. for ac_exec_ext in '' $ac_executable_extensions; do
  7234. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7235. ac_cv_prog_RUNTEST="$ac_prog"
  7236. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7237. break 2
  7238. fi
  7239. done
  7240. done
  7241. IFS=$as_save_IFS
  7242. fi
  7243. fi
  7244. RUNTEST=$ac_cv_prog_RUNTEST
  7245. if test -n "$RUNTEST"; then
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
  7247. $as_echo "$RUNTEST" >&6; }
  7248. else
  7249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7250. $as_echo "no" >&6; }
  7251. fi
  7252. test -n "$RUNTEST" && break
  7253. done
  7254. test -n "$RUNTEST" || RUNTEST="runtest"
  7255. case " $configdirs " in
  7256. *" dejagnu "*)
  7257. test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
  7258. ;;
  7259. esac
  7260. # Host tools.
  7261. ncn_tool_prefix=
  7262. test -n "$host_alias" && ncn_tool_prefix=$host_alias-
  7263. ncn_target_tool_prefix=
  7264. test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
  7265. if test -n "$AR"; then
  7266. ac_cv_prog_AR=$AR
  7267. elif test -n "$ac_cv_prog_AR"; then
  7268. AR=$ac_cv_prog_AR
  7269. fi
  7270. if test -n "$ac_cv_prog_AR"; then
  7271. for ncn_progname in ar; do
  7272. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7273. set dummy ${ncn_progname}; ac_word=$2
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7275. $as_echo_n "checking for $ac_word... " >&6; }
  7276. if test "${ac_cv_prog_AR+set}" = set; then :
  7277. $as_echo_n "(cached) " >&6
  7278. else
  7279. if test -n "$AR"; then
  7280. ac_cv_prog_AR="$AR" # Let the user override the test.
  7281. else
  7282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7283. for as_dir in $PATH
  7284. do
  7285. IFS=$as_save_IFS
  7286. test -z "$as_dir" && as_dir=.
  7287. for ac_exec_ext in '' $ac_executable_extensions; do
  7288. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7289. ac_cv_prog_AR="${ncn_progname}"
  7290. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7291. break 2
  7292. fi
  7293. done
  7294. done
  7295. IFS=$as_save_IFS
  7296. fi
  7297. fi
  7298. AR=$ac_cv_prog_AR
  7299. if test -n "$AR"; then
  7300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7301. $as_echo "$AR" >&6; }
  7302. else
  7303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7304. $as_echo "no" >&6; }
  7305. fi
  7306. done
  7307. fi
  7308. for ncn_progname in ar; do
  7309. if test -n "$ncn_tool_prefix"; then
  7310. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7311. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7313. $as_echo_n "checking for $ac_word... " >&6; }
  7314. if test "${ac_cv_prog_AR+set}" = set; then :
  7315. $as_echo_n "(cached) " >&6
  7316. else
  7317. if test -n "$AR"; then
  7318. ac_cv_prog_AR="$AR" # Let the user override the test.
  7319. else
  7320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7321. for as_dir in $PATH
  7322. do
  7323. IFS=$as_save_IFS
  7324. test -z "$as_dir" && as_dir=.
  7325. for ac_exec_ext in '' $ac_executable_extensions; do
  7326. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7327. ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
  7328. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7329. break 2
  7330. fi
  7331. done
  7332. done
  7333. IFS=$as_save_IFS
  7334. fi
  7335. fi
  7336. AR=$ac_cv_prog_AR
  7337. if test -n "$AR"; then
  7338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7339. $as_echo "$AR" >&6; }
  7340. else
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7342. $as_echo "no" >&6; }
  7343. fi
  7344. fi
  7345. if test -z "$ac_cv_prog_AR" && test $build = $host ; then
  7346. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7347. set dummy ${ncn_progname}; ac_word=$2
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7349. $as_echo_n "checking for $ac_word... " >&6; }
  7350. if test "${ac_cv_prog_AR+set}" = set; then :
  7351. $as_echo_n "(cached) " >&6
  7352. else
  7353. if test -n "$AR"; then
  7354. ac_cv_prog_AR="$AR" # Let the user override the test.
  7355. else
  7356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7357. for as_dir in $PATH
  7358. do
  7359. IFS=$as_save_IFS
  7360. test -z "$as_dir" && as_dir=.
  7361. for ac_exec_ext in '' $ac_executable_extensions; do
  7362. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7363. ac_cv_prog_AR="${ncn_progname}"
  7364. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7365. break 2
  7366. fi
  7367. done
  7368. done
  7369. IFS=$as_save_IFS
  7370. fi
  7371. fi
  7372. AR=$ac_cv_prog_AR
  7373. if test -n "$AR"; then
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7375. $as_echo "$AR" >&6; }
  7376. else
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7378. $as_echo "no" >&6; }
  7379. fi
  7380. fi
  7381. test -n "$ac_cv_prog_AR" && break
  7382. done
  7383. if test -z "$ac_cv_prog_AR" ; then
  7384. set dummy ar
  7385. if test $build = $host ; then
  7386. AR="$2"
  7387. else
  7388. AR="${ncn_tool_prefix}$2"
  7389. fi
  7390. fi
  7391. if test -n "$AS"; then
  7392. ac_cv_prog_AS=$AS
  7393. elif test -n "$ac_cv_prog_AS"; then
  7394. AS=$ac_cv_prog_AS
  7395. fi
  7396. if test -n "$ac_cv_prog_AS"; then
  7397. for ncn_progname in as; do
  7398. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7399. set dummy ${ncn_progname}; ac_word=$2
  7400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7401. $as_echo_n "checking for $ac_word... " >&6; }
  7402. if test "${ac_cv_prog_AS+set}" = set; then :
  7403. $as_echo_n "(cached) " >&6
  7404. else
  7405. if test -n "$AS"; then
  7406. ac_cv_prog_AS="$AS" # Let the user override the test.
  7407. else
  7408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7409. for as_dir in $PATH
  7410. do
  7411. IFS=$as_save_IFS
  7412. test -z "$as_dir" && as_dir=.
  7413. for ac_exec_ext in '' $ac_executable_extensions; do
  7414. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7415. ac_cv_prog_AS="${ncn_progname}"
  7416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7417. break 2
  7418. fi
  7419. done
  7420. done
  7421. IFS=$as_save_IFS
  7422. fi
  7423. fi
  7424. AS=$ac_cv_prog_AS
  7425. if test -n "$AS"; then
  7426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7427. $as_echo "$AS" >&6; }
  7428. else
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7430. $as_echo "no" >&6; }
  7431. fi
  7432. done
  7433. fi
  7434. for ncn_progname in as; do
  7435. if test -n "$ncn_tool_prefix"; then
  7436. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7437. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7439. $as_echo_n "checking for $ac_word... " >&6; }
  7440. if test "${ac_cv_prog_AS+set}" = set; then :
  7441. $as_echo_n "(cached) " >&6
  7442. else
  7443. if test -n "$AS"; then
  7444. ac_cv_prog_AS="$AS" # Let the user override the test.
  7445. else
  7446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7447. for as_dir in $PATH
  7448. do
  7449. IFS=$as_save_IFS
  7450. test -z "$as_dir" && as_dir=.
  7451. for ac_exec_ext in '' $ac_executable_extensions; do
  7452. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7453. ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
  7454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7455. break 2
  7456. fi
  7457. done
  7458. done
  7459. IFS=$as_save_IFS
  7460. fi
  7461. fi
  7462. AS=$ac_cv_prog_AS
  7463. if test -n "$AS"; then
  7464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7465. $as_echo "$AS" >&6; }
  7466. else
  7467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7468. $as_echo "no" >&6; }
  7469. fi
  7470. fi
  7471. if test -z "$ac_cv_prog_AS" && test $build = $host ; then
  7472. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7473. set dummy ${ncn_progname}; ac_word=$2
  7474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7475. $as_echo_n "checking for $ac_word... " >&6; }
  7476. if test "${ac_cv_prog_AS+set}" = set; then :
  7477. $as_echo_n "(cached) " >&6
  7478. else
  7479. if test -n "$AS"; then
  7480. ac_cv_prog_AS="$AS" # Let the user override the test.
  7481. else
  7482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7483. for as_dir in $PATH
  7484. do
  7485. IFS=$as_save_IFS
  7486. test -z "$as_dir" && as_dir=.
  7487. for ac_exec_ext in '' $ac_executable_extensions; do
  7488. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7489. ac_cv_prog_AS="${ncn_progname}"
  7490. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7491. break 2
  7492. fi
  7493. done
  7494. done
  7495. IFS=$as_save_IFS
  7496. fi
  7497. fi
  7498. AS=$ac_cv_prog_AS
  7499. if test -n "$AS"; then
  7500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7501. $as_echo "$AS" >&6; }
  7502. else
  7503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7504. $as_echo "no" >&6; }
  7505. fi
  7506. fi
  7507. test -n "$ac_cv_prog_AS" && break
  7508. done
  7509. if test -z "$ac_cv_prog_AS" ; then
  7510. set dummy as
  7511. if test $build = $host ; then
  7512. AS="$2"
  7513. else
  7514. AS="${ncn_tool_prefix}$2"
  7515. fi
  7516. fi
  7517. if test -n "$DLLTOOL"; then
  7518. ac_cv_prog_DLLTOOL=$DLLTOOL
  7519. elif test -n "$ac_cv_prog_DLLTOOL"; then
  7520. DLLTOOL=$ac_cv_prog_DLLTOOL
  7521. fi
  7522. if test -n "$ac_cv_prog_DLLTOOL"; then
  7523. for ncn_progname in dlltool; do
  7524. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7525. set dummy ${ncn_progname}; ac_word=$2
  7526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7527. $as_echo_n "checking for $ac_word... " >&6; }
  7528. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  7529. $as_echo_n "(cached) " >&6
  7530. else
  7531. if test -n "$DLLTOOL"; then
  7532. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7533. else
  7534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7535. for as_dir in $PATH
  7536. do
  7537. IFS=$as_save_IFS
  7538. test -z "$as_dir" && as_dir=.
  7539. for ac_exec_ext in '' $ac_executable_extensions; do
  7540. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7541. ac_cv_prog_DLLTOOL="${ncn_progname}"
  7542. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7543. break 2
  7544. fi
  7545. done
  7546. done
  7547. IFS=$as_save_IFS
  7548. fi
  7549. fi
  7550. DLLTOOL=$ac_cv_prog_DLLTOOL
  7551. if test -n "$DLLTOOL"; then
  7552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7553. $as_echo "$DLLTOOL" >&6; }
  7554. else
  7555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7556. $as_echo "no" >&6; }
  7557. fi
  7558. done
  7559. fi
  7560. for ncn_progname in dlltool; do
  7561. if test -n "$ncn_tool_prefix"; then
  7562. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7563. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7565. $as_echo_n "checking for $ac_word... " >&6; }
  7566. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  7567. $as_echo_n "(cached) " >&6
  7568. else
  7569. if test -n "$DLLTOOL"; then
  7570. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7571. else
  7572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7573. for as_dir in $PATH
  7574. do
  7575. IFS=$as_save_IFS
  7576. test -z "$as_dir" && as_dir=.
  7577. for ac_exec_ext in '' $ac_executable_extensions; do
  7578. if { test -f "$as_dir/$ac_wor