GCC with OpenMP stream-computing extension and BatchQueue algorithm
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 462KB

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