configure 248 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME=
  531. PACKAGE_TARNAME=
  532. PACKAGE_VERSION=
  533. PACKAGE_STRING=
  534. PACKAGE_BUGREPORT=
  535. PACKAGE_URL=
  536. ac_unique_file="xmalloc.c"
  537. # Factoring default headers for most tests.
  538. ac_includes_default="\
  539. #include <stdio.h>
  540. #ifdef HAVE_SYS_TYPES_H
  541. # include <sys/types.h>
  542. #endif
  543. #ifdef HAVE_SYS_STAT_H
  544. # include <sys/stat.h>
  545. #endif
  546. #ifdef STDC_HEADERS
  547. # include <stdlib.h>
  548. # include <stddef.h>
  549. #else
  550. # ifdef HAVE_STDLIB_H
  551. # include <stdlib.h>
  552. # endif
  553. #endif
  554. #ifdef HAVE_STRING_H
  555. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  556. # include <memory.h>
  557. # endif
  558. # include <string.h>
  559. #endif
  560. #ifdef HAVE_STRINGS_H
  561. # include <strings.h>
  562. #endif
  563. #ifdef HAVE_INTTYPES_H
  564. # include <inttypes.h>
  565. #endif
  566. #ifdef HAVE_STDINT_H
  567. # include <stdint.h>
  568. #endif
  569. #ifdef HAVE_UNISTD_H
  570. # include <unistd.h>
  571. #endif"
  572. ac_header_list=
  573. ac_subst_vars='LTLIBOBJS
  574. INSTALL_DEST
  575. pexecute
  576. target_header_dir
  577. CHECK
  578. LIBOBJS
  579. CET_HOST_FLAGS
  580. NOASANFLAG
  581. PICFLAG
  582. INSTALL_DATA
  583. INSTALL_SCRIPT
  584. INSTALL_PROGRAM
  585. OUTPUT_OPTION
  586. NO_MINUS_C_MINUS_O
  587. ac_libiberty_warn_cflags
  588. EGREP
  589. GREP
  590. CPP
  591. OBJEXT
  592. EXEEXT
  593. ac_ct_CC
  594. CPPFLAGS
  595. LDFLAGS
  596. CFLAGS
  597. CC
  598. RANLIB_PLUGIN_OPTION
  599. AR_PLUGIN_OPTION
  600. RANLIB
  601. AR
  602. host_os
  603. host_vendor
  604. host_cpu
  605. host
  606. build_os
  607. build_vendor
  608. build_cpu
  609. build
  610. HAVE_PERL
  611. PERL
  612. BUILD_INFO
  613. MAKEINFO
  614. ETAGS
  615. NOTMAINT
  616. MAINT
  617. libiberty_topdir
  618. target_alias
  619. host_alias
  620. build_alias
  621. LIBS
  622. ECHO_T
  623. ECHO_N
  624. ECHO_C
  625. DEFS
  626. mandir
  627. localedir
  628. libdir
  629. psdir
  630. pdfdir
  631. dvidir
  632. htmldir
  633. infodir
  634. docdir
  635. oldincludedir
  636. includedir
  637. localstatedir
  638. sharedstatedir
  639. sysconfdir
  640. datadir
  641. datarootdir
  642. libexecdir
  643. sbindir
  644. bindir
  645. program_transform_name
  646. prefix
  647. exec_prefix
  648. PACKAGE_URL
  649. PACKAGE_BUGREPORT
  650. PACKAGE_STRING
  651. PACKAGE_VERSION
  652. PACKAGE_TARNAME
  653. PACKAGE_NAME
  654. PATH_SEPARATOR
  655. SHELL'
  656. ac_subst_files='host_makefile_frag'
  657. ac_user_opts='
  658. enable_option_checking
  659. with_target_subdir
  660. with_build_subdir
  661. with_cross_host
  662. with_newlib
  663. enable_maintainer_mode
  664. enable_multilib
  665. enable_install_libiberty
  666. enable_largefile
  667. enable_cet
  668. '
  669. ac_precious_vars='build_alias
  670. host_alias
  671. target_alias
  672. CC
  673. CFLAGS
  674. LDFLAGS
  675. LIBS
  676. CPPFLAGS
  677. CPP'
  678. # Initialize some variables set by options.
  679. ac_init_help=
  680. ac_init_version=false
  681. ac_unrecognized_opts=
  682. ac_unrecognized_sep=
  683. # The variables have the same names as the options, with
  684. # dashes changed to underlines.
  685. cache_file=/dev/null
  686. exec_prefix=NONE
  687. no_create=
  688. no_recursion=
  689. prefix=NONE
  690. program_prefix=NONE
  691. program_suffix=NONE
  692. program_transform_name=s,x,x,
  693. silent=
  694. site=
  695. srcdir=
  696. verbose=
  697. x_includes=NONE
  698. x_libraries=NONE
  699. # Installation directory options.
  700. # These are left unexpanded so users can "make install exec_prefix=/foo"
  701. # and all the variables that are supposed to be based on exec_prefix
  702. # by default will actually change.
  703. # Use braces instead of parens because sh, perl, etc. also accept them.
  704. # (The list follows the same order as the GNU Coding Standards.)
  705. bindir='${exec_prefix}/bin'
  706. sbindir='${exec_prefix}/sbin'
  707. libexecdir='${exec_prefix}/libexec'
  708. datarootdir='${prefix}/share'
  709. datadir='${datarootdir}'
  710. sysconfdir='${prefix}/etc'
  711. sharedstatedir='${prefix}/com'
  712. localstatedir='${prefix}/var'
  713. includedir='${prefix}/include'
  714. oldincludedir='/usr/include'
  715. docdir='${datarootdir}/doc/${PACKAGE}'
  716. infodir='${datarootdir}/info'
  717. htmldir='${docdir}'
  718. dvidir='${docdir}'
  719. pdfdir='${docdir}'
  720. psdir='${docdir}'
  721. libdir='${exec_prefix}/lib'
  722. localedir='${datarootdir}/locale'
  723. mandir='${datarootdir}/man'
  724. ac_prev=
  725. ac_dashdash=
  726. for ac_option
  727. do
  728. # If the previous option needs an argument, assign it.
  729. if test -n "$ac_prev"; then
  730. eval $ac_prev=\$ac_option
  731. ac_prev=
  732. continue
  733. fi
  734. case $ac_option in
  735. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  736. *=) ac_optarg= ;;
  737. *) ac_optarg=yes ;;
  738. esac
  739. # Accept the important Cygnus configure options, so we can diagnose typos.
  740. case $ac_dashdash$ac_option in
  741. --)
  742. ac_dashdash=yes ;;
  743. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  744. ac_prev=bindir ;;
  745. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  746. bindir=$ac_optarg ;;
  747. -build | --build | --buil | --bui | --bu)
  748. ac_prev=build_alias ;;
  749. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  750. build_alias=$ac_optarg ;;
  751. -cache-file | --cache-file | --cache-fil | --cache-fi \
  752. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  753. ac_prev=cache_file ;;
  754. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  755. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  756. cache_file=$ac_optarg ;;
  757. --config-cache | -C)
  758. cache_file=config.cache ;;
  759. -datadir | --datadir | --datadi | --datad)
  760. ac_prev=datadir ;;
  761. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  762. datadir=$ac_optarg ;;
  763. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  764. | --dataroo | --dataro | --datar)
  765. ac_prev=datarootdir ;;
  766. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  767. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  768. datarootdir=$ac_optarg ;;
  769. -disable-* | --disable-*)
  770. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  771. # Reject names that are not valid shell variable names.
  772. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  773. as_fn_error $? "invalid feature name: $ac_useropt"
  774. ac_useropt_orig=$ac_useropt
  775. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  776. case $ac_user_opts in
  777. *"
  778. "enable_$ac_useropt"
  779. "*) ;;
  780. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  781. ac_unrecognized_sep=', ';;
  782. esac
  783. eval enable_$ac_useropt=no ;;
  784. -docdir | --docdir | --docdi | --doc | --do)
  785. ac_prev=docdir ;;
  786. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  787. docdir=$ac_optarg ;;
  788. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  789. ac_prev=dvidir ;;
  790. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  791. dvidir=$ac_optarg ;;
  792. -enable-* | --enable-*)
  793. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  794. # Reject names that are not valid shell variable names.
  795. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  796. as_fn_error $? "invalid feature name: $ac_useropt"
  797. ac_useropt_orig=$ac_useropt
  798. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  799. case $ac_user_opts in
  800. *"
  801. "enable_$ac_useropt"
  802. "*) ;;
  803. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  804. ac_unrecognized_sep=', ';;
  805. esac
  806. eval enable_$ac_useropt=\$ac_optarg ;;
  807. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  808. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  809. | --exec | --exe | --ex)
  810. ac_prev=exec_prefix ;;
  811. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  812. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  813. | --exec=* | --exe=* | --ex=*)
  814. exec_prefix=$ac_optarg ;;
  815. -gas | --gas | --ga | --g)
  816. # Obsolete; use --with-gas.
  817. with_gas=yes ;;
  818. -help | --help | --hel | --he | -h)
  819. ac_init_help=long ;;
  820. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  821. ac_init_help=recursive ;;
  822. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  823. ac_init_help=short ;;
  824. -host | --host | --hos | --ho)
  825. ac_prev=host_alias ;;
  826. -host=* | --host=* | --hos=* | --ho=*)
  827. host_alias=$ac_optarg ;;
  828. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  829. ac_prev=htmldir ;;
  830. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  831. | --ht=*)
  832. htmldir=$ac_optarg ;;
  833. -includedir | --includedir | --includedi | --included | --include \
  834. | --includ | --inclu | --incl | --inc)
  835. ac_prev=includedir ;;
  836. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  837. | --includ=* | --inclu=* | --incl=* | --inc=*)
  838. includedir=$ac_optarg ;;
  839. -infodir | --infodir | --infodi | --infod | --info | --inf)
  840. ac_prev=infodir ;;
  841. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  842. infodir=$ac_optarg ;;
  843. -libdir | --libdir | --libdi | --libd)
  844. ac_prev=libdir ;;
  845. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  846. libdir=$ac_optarg ;;
  847. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  848. | --libexe | --libex | --libe)
  849. ac_prev=libexecdir ;;
  850. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  851. | --libexe=* | --libex=* | --libe=*)
  852. libexecdir=$ac_optarg ;;
  853. -localedir | --localedir | --localedi | --localed | --locale)
  854. ac_prev=localedir ;;
  855. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  856. localedir=$ac_optarg ;;
  857. -localstatedir | --localstatedir | --localstatedi | --localstated \
  858. | --localstate | --localstat | --localsta | --localst | --locals)
  859. ac_prev=localstatedir ;;
  860. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  861. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  862. localstatedir=$ac_optarg ;;
  863. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  864. ac_prev=mandir ;;
  865. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  866. mandir=$ac_optarg ;;
  867. -nfp | --nfp | --nf)
  868. # Obsolete; use --without-fp.
  869. with_fp=no ;;
  870. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  871. | --no-cr | --no-c | -n)
  872. no_create=yes ;;
  873. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  874. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  875. no_recursion=yes ;;
  876. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  877. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  878. | --oldin | --oldi | --old | --ol | --o)
  879. ac_prev=oldincludedir ;;
  880. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  881. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  882. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  883. oldincludedir=$ac_optarg ;;
  884. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  885. ac_prev=prefix ;;
  886. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  887. prefix=$ac_optarg ;;
  888. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  889. | --program-pre | --program-pr | --program-p)
  890. ac_prev=program_prefix ;;
  891. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  892. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  893. program_prefix=$ac_optarg ;;
  894. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  895. | --program-suf | --program-su | --program-s)
  896. ac_prev=program_suffix ;;
  897. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  898. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  899. program_suffix=$ac_optarg ;;
  900. -program-transform-name | --program-transform-name \
  901. | --program-transform-nam | --program-transform-na \
  902. | --program-transform-n | --program-transform- \
  903. | --program-transform | --program-transfor \
  904. | --program-transfo | --program-transf \
  905. | --program-trans | --program-tran \
  906. | --progr-tra | --program-tr | --program-t)
  907. ac_prev=program_transform_name ;;
  908. -program-transform-name=* | --program-transform-name=* \
  909. | --program-transform-nam=* | --program-transform-na=* \
  910. | --program-transform-n=* | --program-transform-=* \
  911. | --program-transform=* | --program-transfor=* \
  912. | --program-transfo=* | --program-transf=* \
  913. | --program-trans=* | --program-tran=* \
  914. | --progr-tra=* | --program-tr=* | --program-t=*)
  915. program_transform_name=$ac_optarg ;;
  916. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  917. ac_prev=pdfdir ;;
  918. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  919. pdfdir=$ac_optarg ;;
  920. -psdir | --psdir | --psdi | --psd | --ps)
  921. ac_prev=psdir ;;
  922. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  923. psdir=$ac_optarg ;;
  924. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  925. | -silent | --silent | --silen | --sile | --sil)
  926. silent=yes ;;
  927. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  928. ac_prev=sbindir ;;
  929. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  930. | --sbi=* | --sb=*)
  931. sbindir=$ac_optarg ;;
  932. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  933. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  934. | --sharedst | --shareds | --shared | --share | --shar \
  935. | --sha | --sh)
  936. ac_prev=sharedstatedir ;;
  937. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  938. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  939. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  940. | --sha=* | --sh=*)
  941. sharedstatedir=$ac_optarg ;;
  942. -site | --site | --sit)
  943. ac_prev=site ;;
  944. -site=* | --site=* | --sit=*)
  945. site=$ac_optarg ;;
  946. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  947. ac_prev=srcdir ;;
  948. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  949. srcdir=$ac_optarg ;;
  950. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  951. | --syscon | --sysco | --sysc | --sys | --sy)
  952. ac_prev=sysconfdir ;;
  953. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  954. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  955. sysconfdir=$ac_optarg ;;
  956. -target | --target | --targe | --targ | --tar | --ta | --t)
  957. ac_prev=target_alias ;;
  958. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  959. target_alias=$ac_optarg ;;
  960. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  961. verbose=yes ;;
  962. -version | --version | --versio | --versi | --vers | -V)
  963. ac_init_version=: ;;
  964. -with-* | --with-*)
  965. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  966. # Reject names that are not valid shell variable names.
  967. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  968. as_fn_error $? "invalid package name: $ac_useropt"
  969. ac_useropt_orig=$ac_useropt
  970. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  971. case $ac_user_opts in
  972. *"
  973. "with_$ac_useropt"
  974. "*) ;;
  975. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  976. ac_unrecognized_sep=', ';;
  977. esac
  978. eval with_$ac_useropt=\$ac_optarg ;;
  979. -without-* | --without-*)
  980. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  981. # Reject names that are not valid shell variable names.
  982. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  983. as_fn_error $? "invalid package name: $ac_useropt"
  984. ac_useropt_orig=$ac_useropt
  985. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  986. case $ac_user_opts in
  987. *"
  988. "with_$ac_useropt"
  989. "*) ;;
  990. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  991. ac_unrecognized_sep=', ';;
  992. esac
  993. eval with_$ac_useropt=no ;;
  994. --x)
  995. # Obsolete; use --with-x.
  996. with_x=yes ;;
  997. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  998. | --x-incl | --x-inc | --x-in | --x-i)
  999. ac_prev=x_includes ;;
  1000. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1001. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1002. x_includes=$ac_optarg ;;
  1003. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1004. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1005. ac_prev=x_libraries ;;
  1006. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1007. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1008. x_libraries=$ac_optarg ;;
  1009. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1010. Try \`$0 --help' for more information"
  1011. ;;
  1012. *=*)
  1013. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1014. # Reject names that are not valid shell variable names.
  1015. case $ac_envvar in #(
  1016. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1017. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1018. esac
  1019. eval $ac_envvar=\$ac_optarg
  1020. export $ac_envvar ;;
  1021. *)
  1022. # FIXME: should be removed in autoconf 3.0.
  1023. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1024. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1025. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1026. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1027. ;;
  1028. esac
  1029. done
  1030. if test -n "$ac_prev"; then
  1031. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1032. as_fn_error $? "missing argument to $ac_option"
  1033. fi
  1034. if test -n "$ac_unrecognized_opts"; then
  1035. case $enable_option_checking in
  1036. no) ;;
  1037. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1038. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1039. esac
  1040. fi
  1041. # Check all directory arguments for consistency.
  1042. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1043. datadir sysconfdir sharedstatedir localstatedir includedir \
  1044. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1045. libdir localedir mandir
  1046. do
  1047. eval ac_val=\$$ac_var
  1048. # Remove trailing slashes.
  1049. case $ac_val in
  1050. */ )
  1051. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1052. eval $ac_var=\$ac_val;;
  1053. esac
  1054. # Be sure to have absolute directory names.
  1055. case $ac_val in
  1056. [\\/$]* | ?:[\\/]* ) continue;;
  1057. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1058. esac
  1059. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1060. done
  1061. # There might be people who depend on the old broken behavior: `$host'
  1062. # used to hold the argument of --host etc.
  1063. # FIXME: To remove some day.
  1064. build=$build_alias
  1065. host=$host_alias
  1066. target=$target_alias
  1067. # FIXME: To remove some day.
  1068. if test "x$host_alias" != x; then
  1069. if test "x$build_alias" = x; then
  1070. cross_compiling=maybe
  1071. elif test "x$build_alias" != "x$host_alias"; then
  1072. cross_compiling=yes
  1073. fi
  1074. fi
  1075. ac_tool_prefix=
  1076. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1077. test "$silent" = yes && exec 6>/dev/null
  1078. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1079. ac_ls_di=`ls -di .` &&
  1080. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1081. as_fn_error $? "working directory cannot be determined"
  1082. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1083. as_fn_error $? "pwd does not report name of working directory"
  1084. # Find the source files, if location was not specified.
  1085. if test -z "$srcdir"; then
  1086. ac_srcdir_defaulted=yes
  1087. # Try the directory containing this script, then the parent directory.
  1088. ac_confdir=`$as_dirname -- "$as_myself" ||
  1089. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1090. X"$as_myself" : 'X\(//\)[^/]' \| \
  1091. X"$as_myself" : 'X\(//\)$' \| \
  1092. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1093. $as_echo X"$as_myself" |
  1094. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1095. s//\1/
  1096. q
  1097. }
  1098. /^X\(\/\/\)[^/].*/{
  1099. s//\1/
  1100. q
  1101. }
  1102. /^X\(\/\/\)$/{
  1103. s//\1/
  1104. q
  1105. }
  1106. /^X\(\/\).*/{
  1107. s//\1/
  1108. q
  1109. }
  1110. s/.*/./; q'`
  1111. srcdir=$ac_confdir
  1112. if test ! -r "$srcdir/$ac_unique_file"; then
  1113. srcdir=..
  1114. fi
  1115. else
  1116. ac_srcdir_defaulted=no
  1117. fi
  1118. if test ! -r "$srcdir/$ac_unique_file"; then
  1119. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1120. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1121. fi
  1122. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1123. ac_abs_confdir=`(
  1124. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1125. pwd)`
  1126. # When building in place, set srcdir=.
  1127. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1128. srcdir=.
  1129. fi
  1130. # Remove unnecessary trailing slashes from srcdir.
  1131. # Double slashes in file names in object file debugging info
  1132. # mess up M-x gdb in Emacs.
  1133. case $srcdir in
  1134. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1135. esac
  1136. for ac_var in $ac_precious_vars; do
  1137. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1138. eval ac_env_${ac_var}_value=\$${ac_var}
  1139. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1140. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1141. done
  1142. #
  1143. # Report the --help message.
  1144. #
  1145. if test "$ac_init_help" = "long"; then
  1146. # Omit some internal or obsolete options to make the list less imposing.
  1147. # This message is too long to be a string in the A/UX 3.1 sh.
  1148. cat <<_ACEOF
  1149. \`configure' configures this package to adapt to many kinds of systems.
  1150. Usage: $0 [OPTION]... [VAR=VALUE]...
  1151. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1152. VAR=VALUE. See below for descriptions of some of the useful variables.
  1153. Defaults for the options are specified in brackets.
  1154. Configuration:
  1155. -h, --help display this help and exit
  1156. --help=short display options specific to this package
  1157. --help=recursive display the short help of all the included packages
  1158. -V, --version display version information and exit
  1159. -q, --quiet, --silent do not print \`checking ...' messages
  1160. --cache-file=FILE cache test results in FILE [disabled]
  1161. -C, --config-cache alias for \`--cache-file=config.cache'
  1162. -n, --no-create do not create output files
  1163. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1164. Installation directories:
  1165. --prefix=PREFIX install architecture-independent files in PREFIX
  1166. [$ac_default_prefix]
  1167. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1168. [PREFIX]
  1169. By default, \`make install' will install all the files in
  1170. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1171. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1172. for instance \`--prefix=\$HOME'.
  1173. For better control, use the options below.
  1174. Fine tuning of the installation directories:
  1175. --bindir=DIR user executables [EPREFIX/bin]
  1176. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1177. --libexecdir=DIR program executables [EPREFIX/libexec]
  1178. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1179. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1180. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1181. --libdir=DIR object code libraries [EPREFIX/lib]
  1182. --includedir=DIR C header files [PREFIX/include]
  1183. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1184. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1185. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1186. --infodir=DIR info documentation [DATAROOTDIR/info]
  1187. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1188. --mandir=DIR man documentation [DATAROOTDIR/man]
  1189. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1190. --htmldir=DIR html documentation [DOCDIR]
  1191. --dvidir=DIR dvi documentation [DOCDIR]
  1192. --pdfdir=DIR pdf documentation [DOCDIR]
  1193. --psdir=DIR ps documentation [DOCDIR]
  1194. _ACEOF
  1195. cat <<\_ACEOF
  1196. System types:
  1197. --build=BUILD configure for building on BUILD [guessed]
  1198. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1199. _ACEOF
  1200. fi
  1201. if test -n "$ac_init_help"; then
  1202. cat <<\_ACEOF
  1203. Optional Features:
  1204. --disable-option-checking ignore unrecognized --enable/--with options
  1205. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1206. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1207. --enable-maintainer-mode
  1208. enable make rules and dependencies not useful
  1209. (and sometimes confusing) to the casual installer
  1210. --enable-multilib build many library versions (default)
  1211. --enable-install-libiberty Install headers and library for end users
  1212. --disable-largefile omit support for large files
  1213. --enable-cet enable Intel CET in host libraries [default=auto]
  1214. Optional Packages:
  1215. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1216. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1217. --with-target-subdir=SUBDIR Configuring in a subdirectory for target
  1218. --with-build-subdir=SUBDIR Configuring in a subdirectory for build
  1219. --with-cross-host=HOST Configuring with a cross compiler
  1220. --with-newlib Configuring with newlib
  1221. Some influential environment variables:
  1222. CC C compiler command
  1223. CFLAGS C compiler flags
  1224. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1225. nonstandard directory <lib dir>
  1226. LIBS libraries to pass to the linker, e.g. -l<library>
  1227. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1228. you have headers in a nonstandard directory <include dir>
  1229. CPP C preprocessor
  1230. Use these variables to override the choices made by `configure' or to help
  1231. it to find libraries and programs with nonstandard names/locations.
  1232. Report bugs to the package provider.
  1233. _ACEOF
  1234. ac_status=$?
  1235. fi
  1236. if test "$ac_init_help" = "recursive"; then
  1237. # If there are subdirs, report their specific --help.
  1238. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1239. test -d "$ac_dir" ||
  1240. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1241. continue
  1242. ac_builddir=.
  1243. case "$ac_dir" in
  1244. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1245. *)
  1246. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1247. # A ".." for each directory in $ac_dir_suffix.
  1248. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1249. case $ac_top_builddir_sub in
  1250. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1251. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1252. esac ;;
  1253. esac
  1254. ac_abs_top_builddir=$ac_pwd
  1255. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1256. # for backward compatibility:
  1257. ac_top_builddir=$ac_top_build_prefix
  1258. case $srcdir in
  1259. .) # We are building in place.
  1260. ac_srcdir=.
  1261. ac_top_srcdir=$ac_top_builddir_sub
  1262. ac_abs_top_srcdir=$ac_pwd ;;
  1263. [\\/]* | ?:[\\/]* ) # Absolute name.
  1264. ac_srcdir=$srcdir$ac_dir_suffix;
  1265. ac_top_srcdir=$srcdir
  1266. ac_abs_top_srcdir=$srcdir ;;
  1267. *) # Relative name.
  1268. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1269. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1270. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1271. esac
  1272. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1273. cd "$ac_dir" || { ac_status=$?; continue; }
  1274. # Check for guested configure.
  1275. if test -f "$ac_srcdir/configure.gnu"; then
  1276. echo &&
  1277. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1278. elif test -f "$ac_srcdir/configure"; then
  1279. echo &&
  1280. $SHELL "$ac_srcdir/configure" --help=recursive
  1281. else
  1282. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1283. fi || ac_status=$?
  1284. cd "$ac_pwd" || { ac_status=$?; break; }
  1285. done
  1286. fi
  1287. test -n "$ac_init_help" && exit $ac_status
  1288. if $ac_init_version; then
  1289. cat <<\_ACEOF
  1290. configure
  1291. generated by GNU Autoconf 2.69
  1292. Copyright (C) 2012 Free Software Foundation, Inc.
  1293. This configure script is free software; the Free Software Foundation
  1294. gives unlimited permission to copy, distribute and modify it.
  1295. _ACEOF
  1296. exit
  1297. fi
  1298. ## ------------------------ ##
  1299. ## Autoconf initialization. ##
  1300. ## ------------------------ ##
  1301. # ac_fn_c_try_compile LINENO
  1302. # --------------------------
  1303. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1304. ac_fn_c_try_compile ()
  1305. {
  1306. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1307. rm -f conftest.$ac_objext
  1308. if { { ac_try="$ac_compile"
  1309. case "(($ac_try" in
  1310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1311. *) ac_try_echo=$ac_try;;
  1312. esac
  1313. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1314. $as_echo "$ac_try_echo"; } >&5
  1315. (eval "$ac_compile") 2>conftest.err
  1316. ac_status=$?
  1317. if test -s conftest.err; then
  1318. grep -v '^ *+' conftest.err >conftest.er1
  1319. cat conftest.er1 >&5
  1320. mv -f conftest.er1 conftest.err
  1321. fi
  1322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1323. test $ac_status = 0; } && {
  1324. test -z "$ac_c_werror_flag" ||
  1325. test ! -s conftest.err
  1326. } && test -s conftest.$ac_objext; then :
  1327. ac_retval=0
  1328. else
  1329. $as_echo "$as_me: failed program was:" >&5
  1330. sed 's/^/| /' conftest.$ac_ext >&5
  1331. ac_retval=1
  1332. fi
  1333. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1334. as_fn_set_status $ac_retval
  1335. } # ac_fn_c_try_compile
  1336. # ac_fn_c_try_cpp LINENO
  1337. # ----------------------
  1338. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1339. ac_fn_c_try_cpp ()
  1340. {
  1341. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1342. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1343. case "(($ac_try" in
  1344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1345. *) ac_try_echo=$ac_try;;
  1346. esac
  1347. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1348. $as_echo "$ac_try_echo"; } >&5
  1349. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1350. ac_status=$?
  1351. if test -s conftest.err; then
  1352. grep -v '^ *+' conftest.err >conftest.er1
  1353. cat conftest.er1 >&5
  1354. mv -f conftest.er1 conftest.err
  1355. fi
  1356. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1357. test $ac_status = 0; } > conftest.i && {
  1358. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1359. test ! -s conftest.err
  1360. }; then :
  1361. ac_retval=0
  1362. else
  1363. $as_echo "$as_me: failed program was:" >&5
  1364. sed 's/^/| /' conftest.$ac_ext >&5
  1365. ac_retval=1
  1366. fi
  1367. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1368. as_fn_set_status $ac_retval
  1369. } # ac_fn_c_try_cpp
  1370. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1371. # -------------------------------------------------------
  1372. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1373. # the include files in INCLUDES and setting the cache variable VAR
  1374. # accordingly.
  1375. ac_fn_c_check_header_mongrel ()
  1376. {
  1377. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1378. if eval \${$3+:} false; then :
  1379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1380. $as_echo_n "checking for $2... " >&6; }
  1381. if eval \${$3+:} false; then :
  1382. $as_echo_n "(cached) " >&6
  1383. fi
  1384. eval ac_res=\$$3
  1385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1386. $as_echo "$ac_res" >&6; }
  1387. else
  1388. # Is the header compilable?
  1389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1390. $as_echo_n "checking $2 usability... " >&6; }
  1391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1392. /* end confdefs.h. */
  1393. $4
  1394. #include <$2>
  1395. _ACEOF
  1396. if ac_fn_c_try_compile "$LINENO"; then :
  1397. ac_header_compiler=yes
  1398. else
  1399. ac_header_compiler=no
  1400. fi
  1401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1403. $as_echo "$ac_header_compiler" >&6; }
  1404. # Is the header present?
  1405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1406. $as_echo_n "checking $2 presence... " >&6; }
  1407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1408. /* end confdefs.h. */
  1409. #include <$2>
  1410. _ACEOF
  1411. if ac_fn_c_try_cpp "$LINENO"; then :
  1412. ac_header_preproc=yes
  1413. else
  1414. ac_header_preproc=no
  1415. fi
  1416. rm -f conftest.err conftest.i conftest.$ac_ext
  1417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1418. $as_echo "$ac_header_preproc" >&6; }
  1419. # So? What about this header?
  1420. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1421. yes:no: )
  1422. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1423. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1424. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1425. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1426. ;;
  1427. no:yes:* )
  1428. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1429. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1430. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1431. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1432. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1433. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1434. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1435. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1437. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1438. ;;
  1439. esac
  1440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1441. $as_echo_n "checking for $2... " >&6; }
  1442. if eval \${$3+:} false; then :
  1443. $as_echo_n "(cached) " >&6
  1444. else
  1445. eval "$3=\$ac_header_compiler"
  1446. fi
  1447. eval ac_res=\$$3
  1448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1449. $as_echo "$ac_res" >&6; }
  1450. fi
  1451. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1452. } # ac_fn_c_check_header_mongrel
  1453. # ac_fn_c_try_run LINENO
  1454. # ----------------------
  1455. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1456. # that executables *can* be run.
  1457. ac_fn_c_try_run ()
  1458. {
  1459. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1460. if { { ac_try="$ac_link"
  1461. case "(($ac_try" in
  1462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1463. *) ac_try_echo=$ac_try;;
  1464. esac
  1465. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1466. $as_echo "$ac_try_echo"; } >&5
  1467. (eval "$ac_link") 2>&5
  1468. ac_status=$?
  1469. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1470. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1471. { { case "(($ac_try" in
  1472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1473. *) ac_try_echo=$ac_try;;
  1474. esac
  1475. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1476. $as_echo "$ac_try_echo"; } >&5
  1477. (eval "$ac_try") 2>&5
  1478. ac_status=$?
  1479. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1480. test $ac_status = 0; }; }; then :
  1481. ac_retval=0
  1482. else
  1483. $as_echo "$as_me: program exited with status $ac_status" >&5
  1484. $as_echo "$as_me: failed program was:" >&5
  1485. sed 's/^/| /' conftest.$ac_ext >&5
  1486. ac_retval=$ac_status
  1487. fi
  1488. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1489. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1490. as_fn_set_status $ac_retval
  1491. } # ac_fn_c_try_run
  1492. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1493. # -------------------------------------------------------
  1494. # Tests whether HEADER exists and can be compiled using the include files in
  1495. # INCLUDES, setting the cache variable VAR accordingly.
  1496. ac_fn_c_check_header_compile ()
  1497. {
  1498. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1500. $as_echo_n "checking for $2... " >&6; }
  1501. if eval \${$3+:} false; then :
  1502. $as_echo_n "(cached) " >&6
  1503. else
  1504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1505. /* end confdefs.h. */
  1506. $4
  1507. #include <$2>
  1508. _ACEOF
  1509. if ac_fn_c_try_compile "$LINENO"; then :
  1510. eval "$3=yes"
  1511. else
  1512. eval "$3=no"
  1513. fi
  1514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1515. fi
  1516. eval ac_res=\$$3
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1518. $as_echo "$ac_res" >&6; }
  1519. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1520. } # ac_fn_c_check_header_compile
  1521. # ac_fn_c_try_link LINENO
  1522. # -----------------------
  1523. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1524. ac_fn_c_try_link ()
  1525. {
  1526. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1527. rm -f conftest.$ac_objext conftest$ac_exeext
  1528. if { { ac_try="$ac_link"
  1529. case "(($ac_try" in
  1530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1531. *) ac_try_echo=$ac_try;;
  1532. esac
  1533. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1534. $as_echo "$ac_try_echo"; } >&5
  1535. (eval "$ac_link") 2>conftest.err
  1536. ac_status=$?
  1537. if test -s conftest.err; then
  1538. grep -v '^ *+' conftest.err >conftest.er1
  1539. cat conftest.er1 >&5
  1540. mv -f conftest.er1 conftest.err
  1541. fi
  1542. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1543. test $ac_status = 0; } && {
  1544. test -z "$ac_c_werror_flag" ||
  1545. test ! -s conftest.err
  1546. } && test -s conftest$ac_exeext && {
  1547. test "$cross_compiling" = yes ||
  1548. test -x conftest$ac_exeext
  1549. }; then :
  1550. ac_retval=0
  1551. else
  1552. $as_echo "$as_me: failed program was:" >&5
  1553. sed 's/^/| /' conftest.$ac_ext >&5
  1554. ac_retval=1
  1555. fi
  1556. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1557. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1558. # interfere with the next link command; also delete a directory that is
  1559. # left behind by Apple's compiler. We do this before executing the actions.
  1560. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1561. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1562. as_fn_set_status $ac_retval
  1563. } # ac_fn_c_try_link
  1564. # ac_fn_c_check_header_preproc LINENO HEADER VAR
  1565. # ----------------------------------------------
  1566. # Tests whether HEADER is present, setting the cache variable VAR accordingly.
  1567. ac_fn_c_check_header_preproc ()
  1568. {
  1569. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1571. $as_echo_n "checking for $2... " >&6; }
  1572. if eval \${$3+:} false; then :
  1573. $as_echo_n "(cached) " >&6
  1574. else
  1575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1576. /* end confdefs.h. */
  1577. #include <$2>
  1578. _ACEOF
  1579. if ac_fn_c_try_cpp "$LINENO"; then :
  1580. eval "$3=yes"
  1581. else
  1582. eval "$3=no"
  1583. fi
  1584. rm -f conftest.err conftest.i conftest.$ac_ext
  1585. fi
  1586. eval ac_res=\$$3
  1587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1588. $as_echo "$ac_res" >&6; }
  1589. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1590. } # ac_fn_c_check_header_preproc
  1591. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1592. # --------------------------------------------
  1593. # Tries to find the compile-time value of EXPR in a program that includes
  1594. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1595. # computed
  1596. ac_fn_c_compute_int ()
  1597. {
  1598. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1599. if test "$cross_compiling" = yes; then
  1600. # Depending upon the size, compute the lo and hi bounds.
  1601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1602. /* end confdefs.h. */
  1603. $4
  1604. int
  1605. main ()
  1606. {
  1607. static int test_array [1 - 2 * !(($2) >= 0)];
  1608. test_array [0] = 0;
  1609. return test_array [0];
  1610. ;
  1611. return 0;
  1612. }
  1613. _ACEOF
  1614. if ac_fn_c_try_compile "$LINENO"; then :
  1615. ac_lo=0 ac_mid=0
  1616. while :; do
  1617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1618. /* end confdefs.h. */
  1619. $4
  1620. int
  1621. main ()
  1622. {
  1623. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1624. test_array [0] = 0;
  1625. return test_array [0];
  1626. ;
  1627. return 0;
  1628. }
  1629. _ACEOF
  1630. if ac_fn_c_try_compile "$LINENO"; then :
  1631. ac_hi=$ac_mid; break
  1632. else
  1633. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1634. if test $ac_lo -le $ac_mid; then
  1635. ac_lo= ac_hi=
  1636. break
  1637. fi
  1638. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1639. fi
  1640. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1641. done
  1642. else
  1643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1644. /* end confdefs.h. */
  1645. $4
  1646. int
  1647. main ()
  1648. {
  1649. static int test_array [1 - 2 * !(($2) < 0)];
  1650. test_array [0] = 0;
  1651. return test_array [0];
  1652. ;
  1653. return 0;
  1654. }
  1655. _ACEOF
  1656. if ac_fn_c_try_compile "$LINENO"; then :
  1657. ac_hi=-1 ac_mid=-1
  1658. while :; do
  1659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1660. /* end confdefs.h. */
  1661. $4
  1662. int
  1663. main ()
  1664. {
  1665. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1666. test_array [0] = 0;
  1667. return test_array [0];
  1668. ;
  1669. return 0;
  1670. }
  1671. _ACEOF
  1672. if ac_fn_c_try_compile "$LINENO"; then :
  1673. ac_lo=$ac_mid; break
  1674. else
  1675. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1676. if test $ac_mid -le $ac_hi; then
  1677. ac_lo= ac_hi=
  1678. break
  1679. fi
  1680. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1681. fi
  1682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1683. done
  1684. else
  1685. ac_lo= ac_hi=
  1686. fi
  1687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1688. fi
  1689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1690. # Binary search between lo and hi bounds.
  1691. while test "x$ac_lo" != "x$ac_hi"; do
  1692. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1694. /* end confdefs.h. */
  1695. $4
  1696. int
  1697. main ()
  1698. {
  1699. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1700. test_array [0] = 0;
  1701. return test_array [0];
  1702. ;
  1703. return 0;
  1704. }
  1705. _ACEOF
  1706. if ac_fn_c_try_compile "$LINENO"; then :
  1707. ac_hi=$ac_mid
  1708. else
  1709. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1710. fi
  1711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1712. done
  1713. case $ac_lo in #((
  1714. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1715. '') ac_retval=1 ;;
  1716. esac
  1717. else
  1718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1719. /* end confdefs.h. */
  1720. $4
  1721. static long int longval () { return $2; }
  1722. static unsigned long int ulongval () { return $2; }
  1723. #include <stdio.h>
  1724. #include <stdlib.h>
  1725. int
  1726. main ()
  1727. {
  1728. FILE *f = fopen ("conftest.val", "w");
  1729. if (! f)
  1730. return 1;
  1731. if (($2) < 0)
  1732. {
  1733. long int i = longval ();
  1734. if (i != ($2))
  1735. return 1;
  1736. fprintf (f, "%ld", i);
  1737. }
  1738. else
  1739. {
  1740. unsigned long int i = ulongval ();
  1741. if (i != ($2))
  1742. return 1;
  1743. fprintf (f, "%lu", i);
  1744. }
  1745. /* Do not output a trailing newline, as this causes \r\n confusion
  1746. on some platforms. */
  1747. return ferror (f) || fclose (f) != 0;
  1748. ;
  1749. return 0;
  1750. }
  1751. _ACEOF
  1752. if ac_fn_c_try_run "$LINENO"; then :
  1753. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1754. else
  1755. ac_retval=1
  1756. fi
  1757. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1758. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1759. rm -f conftest.val
  1760. fi
  1761. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1762. as_fn_set_status $ac_retval
  1763. } # ac_fn_c_compute_int
  1764. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1765. # -------------------------------------------
  1766. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1767. # variable VAR accordingly.
  1768. ac_fn_c_check_type ()
  1769. {
  1770. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1772. $as_echo_n "checking for $2... " >&6; }
  1773. if eval \${$3+:} false; then :
  1774. $as_echo_n "(cached) " >&6
  1775. else
  1776. eval "$3=no"
  1777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1778. /* end confdefs.h. */
  1779. $4
  1780. int
  1781. main ()
  1782. {
  1783. if (sizeof ($2))
  1784. return 0;
  1785. ;
  1786. return 0;
  1787. }
  1788. _ACEOF
  1789. if ac_fn_c_try_compile "$LINENO"; then :
  1790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1791. /* end confdefs.h. */
  1792. $4
  1793. int
  1794. main ()
  1795. {
  1796. if (sizeof (($2)))
  1797. return 0;
  1798. ;
  1799. return 0;
  1800. }
  1801. _ACEOF
  1802. if ac_fn_c_try_compile "$LINENO"; then :
  1803. else
  1804. eval "$3=yes"
  1805. fi
  1806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1807. fi
  1808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1809. fi
  1810. eval ac_res=\$$3
  1811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1812. $as_echo "$ac_res" >&6; }
  1813. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1814. } # ac_fn_c_check_type
  1815. # ac_fn_c_check_func LINENO FUNC VAR
  1816. # ----------------------------------
  1817. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1818. ac_fn_c_check_func ()
  1819. {
  1820. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1822. $as_echo_n "checking for $2... " >&6; }
  1823. if eval \${$3+:} false; then :
  1824. $as_echo_n "(cached) " >&6
  1825. else
  1826. if test x$gcc_no_link = xyes; then
  1827. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1828. fi
  1829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1830. /* end confdefs.h. */
  1831. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1832. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1833. #define $2 innocuous_$2
  1834. /* System header to define __stub macros and hopefully few prototypes,
  1835. which can conflict with char $2 (); below.
  1836. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1837. <limits.h> exists even on freestanding compilers. */
  1838. #ifdef __STDC__
  1839. # include <limits.h>
  1840. #else
  1841. # include <assert.h>
  1842. #endif
  1843. #undef $2
  1844. /* Override any GCC internal prototype to avoid an error.
  1845. Use char because int might match the return type of a GCC
  1846. builtin and then its argument prototype would still apply. */
  1847. #ifdef __cplusplus
  1848. extern "C"
  1849. #endif
  1850. char $2 ();
  1851. /* The GNU C library defines this for functions which it implements
  1852. to always fail with ENOSYS. Some functions are actually named
  1853. something starting with __ and the normal name is an alias. */
  1854. #if defined __stub_$2 || defined __stub___$2
  1855. choke me
  1856. #endif
  1857. int
  1858. main ()
  1859. {
  1860. return $2 ();
  1861. ;
  1862. return 0;
  1863. }
  1864. _ACEOF
  1865. if ac_fn_c_try_link "$LINENO"; then :
  1866. eval "$3=yes"
  1867. else
  1868. eval "$3=no"
  1869. fi
  1870. rm -f core conftest.err conftest.$ac_objext \
  1871. conftest$ac_exeext conftest.$ac_ext
  1872. fi
  1873. eval ac_res=\$$3
  1874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1875. $as_echo "$ac_res" >&6; }
  1876. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1877. } # ac_fn_c_check_func
  1878. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1879. # ---------------------------------------------
  1880. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1881. # accordingly.
  1882. ac_fn_c_check_decl ()
  1883. {
  1884. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1885. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1886. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1888. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1889. if eval \${$3+:} false; then :
  1890. $as_echo_n "(cached) " >&6
  1891. else
  1892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1893. /* end confdefs.h. */
  1894. $4
  1895. int
  1896. main ()
  1897. {
  1898. #ifndef $as_decl_name
  1899. #ifdef __cplusplus
  1900. (void) $as_decl_use;
  1901. #else
  1902. (void) $as_decl_name;
  1903. #endif
  1904. #endif
  1905. ;
  1906. return 0;
  1907. }
  1908. _ACEOF
  1909. if ac_fn_c_try_compile "$LINENO"; then :
  1910. eval "$3=yes"
  1911. else
  1912. eval "$3=no"
  1913. fi
  1914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1915. fi
  1916. eval ac_res=\$$3
  1917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1918. $as_echo "$ac_res" >&6; }
  1919. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1920. } # ac_fn_c_check_decl
  1921. cat >config.log <<_ACEOF
  1922. This file contains any messages produced by compilers while
  1923. running configure, to aid debugging if configure makes a mistake.
  1924. It was created by $as_me, which was
  1925. generated by GNU Autoconf 2.69. Invocation command line was
  1926. $ $0 $@
  1927. _ACEOF
  1928. exec 5>>config.log
  1929. {
  1930. cat <<_ASUNAME
  1931. ## --------- ##
  1932. ## Platform. ##
  1933. ## --------- ##
  1934. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1935. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1936. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1937. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1938. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1939. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1940. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1941. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1942. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1943. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1944. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1945. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1946. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1947. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1948. _ASUNAME
  1949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1950. for as_dir in $PATH
  1951. do
  1952. IFS=$as_save_IFS
  1953. test -z "$as_dir" && as_dir=.
  1954. $as_echo "PATH: $as_dir"
  1955. done
  1956. IFS=$as_save_IFS
  1957. } >&5
  1958. cat >&5 <<_ACEOF
  1959. ## ----------- ##
  1960. ## Core tests. ##
  1961. ## ----------- ##
  1962. _ACEOF
  1963. # Keep a trace of the command line.
  1964. # Strip out --no-create and --no-recursion so they do not pile up.
  1965. # Strip out --silent because we don't want to record it for future runs.
  1966. # Also quote any args containing shell meta-characters.
  1967. # Make two passes to allow for proper duplicate-argument suppression.
  1968. ac_configure_args=
  1969. ac_configure_args0=
  1970. ac_configure_args1=
  1971. ac_must_keep_next=false
  1972. for ac_pass in 1 2
  1973. do
  1974. for ac_arg
  1975. do
  1976. case $ac_arg in
  1977. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1978. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1979. | -silent | --silent | --silen | --sile | --sil)
  1980. continue ;;
  1981. *\'*)
  1982. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1983. esac
  1984. case $ac_pass in
  1985. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1986. 2)
  1987. as_fn_append ac_configure_args1 " '$ac_arg'"
  1988. if test $ac_must_keep_next = true; then
  1989. ac_must_keep_next=false # Got value, back to normal.
  1990. else
  1991. case $ac_arg in
  1992. *=* | --config-cache | -C | -disable-* | --disable-* \
  1993. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1994. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1995. | -with-* | --with-* | -without-* | --without-* | --x)
  1996. case "$ac_configure_args0 " in
  1997. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1998. esac
  1999. ;;
  2000. -* ) ac_must_keep_next=true ;;
  2001. esac
  2002. fi
  2003. as_fn_append ac_configure_args " '$ac_arg'"
  2004. ;;
  2005. esac
  2006. done
  2007. done
  2008. { ac_configure_args0=; unset ac_configure_args0;}
  2009. { ac_configure_args1=; unset ac_configure_args1;}
  2010. # When interrupted or exit'd, cleanup temporary files, and complete
  2011. # config.log. We remove comments because anyway the quotes in there
  2012. # would cause problems or look ugly.
  2013. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2014. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2015. trap 'exit_status=$?
  2016. # Save into config.log some information that might help in debugging.
  2017. {
  2018. echo
  2019. $as_echo "## ---------------- ##
  2020. ## Cache variables. ##
  2021. ## ---------------- ##"
  2022. echo
  2023. # The following way of writing the cache mishandles newlines in values,
  2024. (
  2025. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2026. eval ac_val=\$$ac_var
  2027. case $ac_val in #(
  2028. *${as_nl}*)
  2029. case $ac_var in #(
  2030. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2031. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2032. esac
  2033. case $ac_var in #(
  2034. _ | IFS | as_nl) ;; #(
  2035. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2036. *) { eval $ac_var=; unset $ac_var;} ;;
  2037. esac ;;
  2038. esac
  2039. done
  2040. (set) 2>&1 |
  2041. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2042. *${as_nl}ac_space=\ *)
  2043. sed -n \
  2044. "s/'\''/'\''\\\\'\'''\''/g;
  2045. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2046. ;; #(
  2047. *)
  2048. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2049. ;;
  2050. esac |
  2051. sort
  2052. )
  2053. echo
  2054. $as_echo "## ----------------- ##
  2055. ## Output variables. ##
  2056. ## ----------------- ##"
  2057. echo
  2058. for ac_var in $ac_subst_vars
  2059. do
  2060. eval ac_val=\$$ac_var
  2061. case $ac_val in
  2062. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2063. esac
  2064. $as_echo "$ac_var='\''$ac_val'\''"
  2065. done | sort
  2066. echo
  2067. if test -n "$ac_subst_files"; then
  2068. $as_echo "## ------------------- ##
  2069. ## File substitutions. ##
  2070. ## ------------------- ##"
  2071. echo
  2072. for ac_var in $ac_subst_files
  2073. do
  2074. eval ac_val=\$$ac_var
  2075. case $ac_val in
  2076. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2077. esac
  2078. $as_echo "$ac_var='\''$ac_val'\''"
  2079. done | sort
  2080. echo
  2081. fi
  2082. if test -s confdefs.h; then
  2083. $as_echo "## ----------- ##
  2084. ## confdefs.h. ##
  2085. ## ----------- ##"
  2086. echo
  2087. cat confdefs.h
  2088. echo
  2089. fi
  2090. test "$ac_signal" != 0 &&
  2091. $as_echo "$as_me: caught signal $ac_signal"
  2092. $as_echo "$as_me: exit $exit_status"
  2093. } >&5
  2094. rm -f core *.core core.conftest.* &&
  2095. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2096. exit $exit_status
  2097. ' 0
  2098. for ac_signal in 1 2 13 15; do
  2099. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2100. done
  2101. ac_signal=0
  2102. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2103. rm -f -r conftest* confdefs.h
  2104. $as_echo "/* confdefs.h */" > confdefs.h
  2105. # Predefined preprocessor variables.
  2106. cat >>confdefs.h <<_ACEOF
  2107. #define PACKAGE_NAME "$PACKAGE_NAME"
  2108. _ACEOF
  2109. cat >>confdefs.h <<_ACEOF
  2110. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2111. _ACEOF
  2112. cat >>confdefs.h <<_ACEOF
  2113. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2114. _ACEOF
  2115. cat >>confdefs.h <<_ACEOF
  2116. #define PACKAGE_STRING "$PACKAGE_STRING"
  2117. _ACEOF
  2118. cat >>confdefs.h <<_ACEOF
  2119. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2120. _ACEOF
  2121. cat >>confdefs.h <<_ACEOF
  2122. #define PACKAGE_URL "$PACKAGE_URL"
  2123. _ACEOF
  2124. # Let the site file select an alternate cache file if it wants to.
  2125. # Prefer an explicitly selected file to automatically selected ones.
  2126. ac_site_file1=NONE
  2127. ac_site_file2=NONE
  2128. if test -n "$CONFIG_SITE"; then
  2129. # We do not want a PATH search for config.site.
  2130. case $CONFIG_SITE in #((
  2131. -*) ac_site_file1=./$CONFIG_SITE;;
  2132. */*) ac_site_file1=$CONFIG_SITE;;
  2133. *) ac_site_file1=./$CONFIG_SITE;;
  2134. esac
  2135. elif test "x$prefix" != xNONE; then
  2136. ac_site_file1=$prefix/share/config.site
  2137. ac_site_file2=$prefix/etc/config.site
  2138. else
  2139. ac_site_file1=$ac_default_prefix/share/config.site
  2140. ac_site_file2=$ac_default_prefix/etc/config.site
  2141. fi
  2142. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2143. do
  2144. test "x$ac_site_file" = xNONE && continue
  2145. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2147. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2148. sed 's/^/| /' "$ac_site_file" >&5
  2149. . "$ac_site_file" \
  2150. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2151. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2152. as_fn_error $? "failed to load site script $ac_site_file
  2153. See \`config.log' for more details" "$LINENO" 5; }
  2154. fi
  2155. done
  2156. if test -r "$cache_file"; then
  2157. # Some versions of bash will fail to source /dev/null (special files
  2158. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2159. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2161. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2162. case $cache_file in
  2163. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2164. *) . "./$cache_file";;
  2165. esac
  2166. fi
  2167. else
  2168. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2169. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2170. >$cache_file
  2171. fi
  2172. as_fn_append ac_header_list " stdlib.h"
  2173. as_fn_append ac_header_list " unistd.h"
  2174. as_fn_append ac_header_list " sys/param.h"
  2175. # Check that the precious variables saved in the cache have kept the same
  2176. # value.
  2177. ac_cache_corrupted=false
  2178. for ac_var in $ac_precious_vars; do
  2179. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2180. eval ac_new_set=\$ac_env_${ac_var}_set
  2181. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2182. eval ac_new_val=\$ac_env_${ac_var}_value
  2183. case $ac_old_set,$ac_new_set in
  2184. set,)
  2185. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2186. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2187. ac_cache_corrupted=: ;;
  2188. ,set)
  2189. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2190. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2191. ac_cache_corrupted=: ;;
  2192. ,);;
  2193. *)
  2194. if test "x$ac_old_val" != "x$ac_new_val"; then
  2195. # differences in whitespace do not lead to failure.
  2196. ac_old_val_w=`echo x $ac_old_val`
  2197. ac_new_val_w=`echo x $ac_new_val`
  2198. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2200. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2201. ac_cache_corrupted=:
  2202. else
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2204. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2205. eval $ac_var=\$ac_old_val
  2206. fi
  2207. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2208. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2209. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2210. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2211. fi;;
  2212. esac
  2213. # Pass precious variables to config.status.
  2214. if test "$ac_new_set" = set; then
  2215. case $ac_new_val in
  2216. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2217. *) ac_arg=$ac_var=$ac_new_val ;;
  2218. esac
  2219. case " $ac_configure_args " in
  2220. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2221. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2222. esac
  2223. fi
  2224. done
  2225. if $ac_cache_corrupted; then
  2226. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2227. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2229. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2230. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2231. fi
  2232. ## -------------------- ##
  2233. ## Main body of script. ##
  2234. ## -------------------- ##
  2235. ac_ext=c
  2236. ac_cpp='$CPP $CPPFLAGS'
  2237. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2238. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2239. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2240. # This works around the fact that libtool configuration may change LD
  2241. # for this particular configuration, but some shells, instead of
  2242. # keeping the changes in LD private, export them just because LD is
  2243. # exported. We don't use libtool yet, but some day we might, so...
  2244. ORIGINAL_LD_FOR_MULTILIBS=$LD
  2245. # Check whether --with-target-subdir was given.
  2246. if test "${with_target_subdir+set}" = set; then :
  2247. withval=$with_target_subdir;
  2248. fi
  2249. # Check whether --with-build-subdir was given.
  2250. if test "${with_build_subdir+set}" = set; then :
  2251. withval=$with_build_subdir;
  2252. fi
  2253. # Check whether --with-cross-host was given.
  2254. if test "${with_cross_host+set}" = set; then :
  2255. withval=$with_cross_host;
  2256. fi
  2257. # Check whether --with-newlib was given.
  2258. if test "${with_newlib+set}" = set; then :
  2259. withval=$with_newlib;
  2260. fi
  2261. if test "${srcdir}" = "."; then
  2262. if test -n "${with_build_subdir}"; then
  2263. libiberty_topdir="${srcdir}/../.."
  2264. with_target_subdir=
  2265. elif test -z "${with_target_subdir}"; then
  2266. libiberty_topdir="${srcdir}/.."
  2267. else
  2268. if test "${with_target_subdir}" != "."; then
  2269. libiberty_topdir="${srcdir}/${with_multisrctop}../.."
  2270. else
  2271. libiberty_topdir="${srcdir}/${with_multisrctop}.."
  2272. fi
  2273. fi
  2274. else
  2275. libiberty_topdir="${srcdir}/.."
  2276. fi
  2277. ac_aux_dir=
  2278. for ac_dir in $libiberty_topdir "$srcdir"/$libiberty_topdir; do
  2279. if test -f "$ac_dir/install-sh"; then
  2280. ac_aux_dir=$ac_dir
  2281. ac_install_sh="$ac_aux_dir/install-sh -c"
  2282. break
  2283. elif test -f "$ac_dir/install.sh"; then
  2284. ac_aux_dir=$ac_dir
  2285. ac_install_sh="$ac_aux_dir/install.sh -c"
  2286. break
  2287. elif test -f "$ac_dir/shtool"; then
  2288. ac_aux_dir=$ac_dir
  2289. ac_install_sh="$ac_aux_dir/shtool install -c"
  2290. break
  2291. fi
  2292. done
  2293. if test -z "$ac_aux_dir"; then
  2294. as_fn_error $? "cannot find install-sh, install.sh, or shtool in $libiberty_topdir \"$srcdir\"/$libiberty_topdir" "$LINENO" 5
  2295. fi
  2296. # These three variables are undocumented and unsupported,
  2297. # and are intended to be withdrawn in a future Autoconf release.
  2298. # They can cause serious problems if a builder's source tree is in a directory
  2299. # whose full name contains unusual characters.
  2300. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2301. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2302. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2304. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2305. # Check whether --enable-maintainer-mode was given.
  2306. if test "${enable_maintainer_mode+set}" = set; then :
  2307. enableval=$enable_maintainer_mode; maintainer_mode=$enableval
  2308. else
  2309. maintainer_mode=no
  2310. fi
  2311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
  2312. $as_echo "$maintainer_mode" >&6; }
  2313. if test "$maintainer_mode" = "yes"; then
  2314. MAINT=''
  2315. NOTMAINT='#'
  2316. else
  2317. MAINT='#'
  2318. NOTMAINT=''
  2319. fi
  2320. if test -z "$ETAGS"; then
  2321. ETAGS=etags
  2322. fi
  2323. # Do we have a single-tree copy of texinfo? Even if we do, we can't
  2324. # rely on it - libiberty is built before texinfo.
  2325. # Extract the first word of "makeinfo", so it can be a program name with args.
  2326. set dummy makeinfo; ac_word=$2
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2328. $as_echo_n "checking for $ac_word... " >&6; }
  2329. if ${ac_cv_prog_MAKEINFO+:} false; then :
  2330. $as_echo_n "(cached) " >&6
  2331. else
  2332. if test -n "$MAKEINFO"; then
  2333. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  2334. else
  2335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2336. for as_dir in $PATH
  2337. do
  2338. IFS=$as_save_IFS
  2339. test -z "$as_dir" && as_dir=.
  2340. for ac_exec_ext in '' $ac_executable_extensions; do
  2341. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2342. ac_cv_prog_MAKEINFO="makeinfo"
  2343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2344. break 2
  2345. fi
  2346. done
  2347. done
  2348. IFS=$as_save_IFS
  2349. fi
  2350. fi
  2351. MAKEINFO=$ac_cv_prog_MAKEINFO
  2352. if test -n "$MAKEINFO"; then
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  2354. $as_echo "$MAKEINFO" >&6; }
  2355. else
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2357. $as_echo "no" >&6; }
  2358. fi
  2359. if test "x$MAKEINFO" = "x"; then
  2360. MAKEINFO="@echo makeinfo missing; true"
  2361. BUILD_INFO=
  2362. else
  2363. BUILD_INFO=info
  2364. case "$MAKEINFO" in
  2365. */missing\ makeinfo*)
  2366. BUILD_INFO=
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  2368. *** Makeinfo is missing. Info documentation will not be built." >&5
  2369. $as_echo "$as_me: WARNING:
  2370. *** Makeinfo is missing. Info documentation will not be built." >&2;}
  2371. ;;
  2372. *)
  2373. case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
  2374. x*\ [1-3].* )
  2375. MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
  2376. BUILD_INFO=
  2377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  2378. *** Makeinfo is too old. Info documentation will not be built." >&5
  2379. $as_echo "$as_me: WARNING:
  2380. *** Makeinfo is too old. Info documentation will not be built." >&2;}
  2381. ;;
  2382. esac
  2383. ;;
  2384. esac
  2385. fi
  2386. # Extract the first word of "perl", so it can be a program name with args.
  2387. set dummy perl; ac_word=$2
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2389. $as_echo_n "checking for $ac_word... " >&6; }
  2390. if ${ac_cv_prog_PERL+:} false; then :
  2391. $as_echo_n "(cached) " >&6
  2392. else
  2393. if test -n "$PERL"; then
  2394. ac_cv_prog_PERL="$PERL" # Let the user override the test.
  2395. else
  2396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2397. for as_dir in $PATH
  2398. do
  2399. IFS=$as_save_IFS
  2400. test -z "$as_dir" && as_dir=.
  2401. for ac_exec_ext in '' $ac_executable_extensions; do
  2402. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2403. ac_cv_prog_PERL="perl"
  2404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2405. break 2
  2406. fi
  2407. done
  2408. done
  2409. IFS=$as_save_IFS
  2410. fi
  2411. fi
  2412. PERL=$ac_cv_prog_PERL
  2413. if test -n "$PERL"; then
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  2415. $as_echo "$PERL" >&6; }
  2416. else
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2418. $as_echo "no" >&6; }
  2419. fi
  2420. if test x"$PERL" = x""; then
  2421. HAVE_PERL='#'
  2422. else
  2423. HAVE_PERL=''
  2424. fi
  2425. # Make sure we can run config.sub.
  2426. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2427. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2429. $as_echo_n "checking build system type... " >&6; }
  2430. if ${ac_cv_build+:} false; then :
  2431. $as_echo_n "(cached) " >&6
  2432. else
  2433. ac_build_alias=$build_alias
  2434. test "x$ac_build_alias" = x &&
  2435. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2436. test "x$ac_build_alias" = x &&
  2437. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2438. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2439. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2440. fi
  2441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2442. $as_echo "$ac_cv_build" >&6; }
  2443. case $ac_cv_build in
  2444. *-*-*) ;;
  2445. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2446. esac
  2447. build=$ac_cv_build
  2448. ac_save_IFS=$IFS; IFS='-'
  2449. set x $ac_cv_build
  2450. shift
  2451. build_cpu=$1
  2452. build_vendor=$2
  2453. shift; shift
  2454. # Remember, the first character of IFS is used to create $*,
  2455. # except with old shells:
  2456. build_os=$*
  2457. IFS=$ac_save_IFS
  2458. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2460. $as_echo_n "checking host system type... " >&6; }
  2461. if ${ac_cv_host+:} false; then :
  2462. $as_echo_n "(cached) " >&6
  2463. else
  2464. if test "x$host_alias" = x; then
  2465. ac_cv_host=$ac_cv_build
  2466. else
  2467. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2468. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2469. fi
  2470. fi
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2472. $as_echo "$ac_cv_host" >&6; }
  2473. case $ac_cv_host in
  2474. *-*-*) ;;
  2475. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2476. esac
  2477. host=$ac_cv_host
  2478. ac_save_IFS=$IFS; IFS='-'
  2479. set x $ac_cv_host
  2480. shift
  2481. host_cpu=$1
  2482. host_vendor=$2
  2483. shift; shift
  2484. # Remember, the first character of IFS is used to create $*,
  2485. # except with old shells:
  2486. host_os=$*
  2487. IFS=$ac_save_IFS
  2488. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2489. if test -n "$ac_tool_prefix"; then
  2490. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  2491. set dummy ${ac_tool_prefix}ar; ac_word=$2
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2493. $as_echo_n "checking for $ac_word... " >&6; }
  2494. if ${ac_cv_prog_AR+:} false; then :
  2495. $as_echo_n "(cached) " >&6
  2496. else
  2497. if test -n "$AR"; then
  2498. ac_cv_prog_AR="$AR" # Let the user override the test.
  2499. else
  2500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2501. for as_dir in $PATH
  2502. do
  2503. IFS=$as_save_IFS
  2504. test -z "$as_dir" && as_dir=.
  2505. for ac_exec_ext in '' $ac_executable_extensions; do
  2506. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2507. ac_cv_prog_AR="${ac_tool_prefix}ar"
  2508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2509. break 2
  2510. fi
  2511. done
  2512. done
  2513. IFS=$as_save_IFS
  2514. fi
  2515. fi
  2516. AR=$ac_cv_prog_AR
  2517. if test -n "$AR"; then
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  2519. $as_echo "$AR" >&6; }
  2520. else
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2522. $as_echo "no" >&6; }
  2523. fi
  2524. fi
  2525. if test -z "$ac_cv_prog_AR"; then
  2526. ac_ct_AR=$AR
  2527. # Extract the first word of "ar", so it can be a program name with args.
  2528. set dummy ar; ac_word=$2
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2530. $as_echo_n "checking for $ac_word... " >&6; }
  2531. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  2532. $as_echo_n "(cached) " >&6
  2533. else
  2534. if test -n "$ac_ct_AR"; then
  2535. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  2536. else
  2537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2538. for as_dir in $PATH
  2539. do
  2540. IFS=$as_save_IFS
  2541. test -z "$as_dir" && as_dir=.
  2542. for ac_exec_ext in '' $ac_executable_extensions; do
  2543. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2544. ac_cv_prog_ac_ct_AR="ar"
  2545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2546. break 2
  2547. fi
  2548. done
  2549. done
  2550. IFS=$as_save_IFS
  2551. fi
  2552. fi
  2553. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  2554. if test -n "$ac_ct_AR"; then
  2555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  2556. $as_echo "$ac_ct_AR" >&6; }
  2557. else
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2559. $as_echo "no" >&6; }
  2560. fi
  2561. if test "x$ac_ct_AR" = x; then
  2562. AR=""
  2563. else
  2564. case $cross_compiling:$ac_tool_warned in
  2565. yes:)
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2567. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2568. ac_tool_warned=yes ;;
  2569. esac
  2570. AR=$ac_ct_AR
  2571. fi
  2572. else
  2573. AR="$ac_cv_prog_AR"
  2574. fi
  2575. if test -n "$ac_tool_prefix"; then
  2576. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2577. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2579. $as_echo_n "checking for $ac_word... " >&6; }
  2580. if ${ac_cv_prog_RANLIB+:} false; then :
  2581. $as_echo_n "(cached) " >&6
  2582. else
  2583. if test -n "$RANLIB"; then
  2584. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2585. else
  2586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2587. for as_dir in $PATH
  2588. do
  2589. IFS=$as_save_IFS
  2590. test -z "$as_dir" && as_dir=.
  2591. for ac_exec_ext in '' $ac_executable_extensions; do
  2592. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2593. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2595. break 2
  2596. fi
  2597. done
  2598. done
  2599. IFS=$as_save_IFS
  2600. fi
  2601. fi
  2602. RANLIB=$ac_cv_prog_RANLIB
  2603. if test -n "$RANLIB"; then
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  2605. $as_echo "$RANLIB" >&6; }
  2606. else
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2608. $as_echo "no" >&6; }
  2609. fi
  2610. fi
  2611. if test -z "$ac_cv_prog_RANLIB"; then
  2612. ac_ct_RANLIB=$RANLIB
  2613. # Extract the first word of "ranlib", so it can be a program name with args.
  2614. set dummy ranlib; ac_word=$2
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2616. $as_echo_n "checking for $ac_word... " >&6; }
  2617. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  2618. $as_echo_n "(cached) " >&6
  2619. else
  2620. if test -n "$ac_ct_RANLIB"; then
  2621. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2622. else
  2623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2624. for as_dir in $PATH
  2625. do
  2626. IFS=$as_save_IFS
  2627. test -z "$as_dir" && as_dir=.
  2628. for ac_exec_ext in '' $ac_executable_extensions; do
  2629. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2630. ac_cv_prog_ac_ct_RANLIB="ranlib"
  2631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2632. break 2
  2633. fi
  2634. done
  2635. done
  2636. IFS=$as_save_IFS
  2637. fi
  2638. fi
  2639. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2640. if test -n "$ac_ct_RANLIB"; then
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  2642. $as_echo "$ac_ct_RANLIB" >&6; }
  2643. else
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2645. $as_echo "no" >&6; }
  2646. fi
  2647. if test "x$ac_ct_RANLIB" = x; then
  2648. RANLIB=":"
  2649. else
  2650. case $cross_compiling:$ac_tool_warned in
  2651. yes:)
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2653. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2654. ac_tool_warned=yes ;;
  2655. esac
  2656. RANLIB=$ac_ct_RANLIB
  2657. fi
  2658. else
  2659. RANLIB="$ac_cv_prog_RANLIB"
  2660. fi
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
  2662. $as_echo_n "checking for -plugin option... " >&6; }
  2663. plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
  2664. plugin_option=
  2665. for plugin in $plugin_names; do
  2666. plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
  2667. if test x$plugin_so = x$plugin; then
  2668. plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
  2669. fi
  2670. if test x$plugin_so != x$plugin; then
  2671. plugin_option="--plugin $plugin_so"
  2672. break
  2673. fi
  2674. done
  2675. if test -n "$ac_tool_prefix"; then
  2676. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  2677. set dummy ${ac_tool_prefix}ar; ac_word=$2
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2679. $as_echo_n "checking for $ac_word... " >&6; }
  2680. if ${ac_cv_prog_AR+:} false; then :
  2681. $as_echo_n "(cached) " >&6
  2682. else
  2683. if test -n "$AR"; then
  2684. ac_cv_prog_AR="$AR" # Let the user override the test.
  2685. else
  2686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2687. for as_dir in $PATH
  2688. do
  2689. IFS=$as_save_IFS
  2690. test -z "$as_dir" && as_dir=.
  2691. for ac_exec_ext in '' $ac_executable_extensions; do
  2692. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2693. ac_cv_prog_AR="${ac_tool_prefix}ar"
  2694. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2695. break 2
  2696. fi
  2697. done
  2698. done
  2699. IFS=$as_save_IFS
  2700. fi
  2701. fi
  2702. AR=$ac_cv_prog_AR
  2703. if test -n "$AR"; then
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  2705. $as_echo "$AR" >&6; }
  2706. else
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2708. $as_echo "no" >&6; }
  2709. fi
  2710. fi
  2711. if test -z "$ac_cv_prog_AR"; then
  2712. ac_ct_AR=$AR
  2713. # Extract the first word of "ar", so it can be a program name with args.
  2714. set dummy ar; ac_word=$2
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2716. $as_echo_n "checking for $ac_word... " >&6; }
  2717. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  2718. $as_echo_n "(cached) " >&6
  2719. else
  2720. if test -n "$ac_ct_AR"; then
  2721. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  2722. else
  2723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2724. for as_dir in $PATH
  2725. do
  2726. IFS=$as_save_IFS
  2727. test -z "$as_dir" && as_dir=.
  2728. for ac_exec_ext in '' $ac_executable_extensions; do
  2729. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2730. ac_cv_prog_ac_ct_AR="ar"
  2731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2732. break 2
  2733. fi
  2734. done
  2735. done
  2736. IFS=$as_save_IFS
  2737. fi
  2738. fi
  2739. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  2740. if test -n "$ac_ct_AR"; then
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  2742. $as_echo "$ac_ct_AR" >&6; }
  2743. else
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2745. $as_echo "no" >&6; }
  2746. fi
  2747. if test "x$ac_ct_AR" = x; then
  2748. AR=""
  2749. else
  2750. case $cross_compiling:$ac_tool_warned in
  2751. yes:)
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2753. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2754. ac_tool_warned=yes ;;
  2755. esac
  2756. AR=$ac_ct_AR
  2757. fi
  2758. else
  2759. AR="$ac_cv_prog_AR"
  2760. fi
  2761. if test "${AR}" = "" ; then
  2762. as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
  2763. fi
  2764. touch conftest.c
  2765. ${AR} $plugin_option rc conftest.a conftest.c
  2766. if test "$?" != 0; then
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
  2768. $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
  2769. plugin_option=
  2770. fi
  2771. rm -f conftest.*
  2772. if test -n "$plugin_option"; then
  2773. PLUGIN_OPTION="$plugin_option"
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
  2775. $as_echo "$plugin_option" >&6; }
  2776. else
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2778. $as_echo "no" >&6; }
  2779. fi
  2780. if test -n "$PLUGIN_OPTION"; then
  2781. if $AR --help 2>&1 | grep -q "\--plugin"; then
  2782. AR_PLUGIN_OPTION="$PLUGIN_OPTION"
  2783. fi
  2784. if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
  2785. RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
  2786. fi
  2787. fi
  2788. # Add --enable-multilib to configure.
  2789. # Default to --enable-multilib
  2790. # Check whether --enable-multilib was given.
  2791. if test "${enable_multilib+set}" = set; then :
  2792. enableval=$enable_multilib; case "$enableval" in
  2793. yes) multilib=yes ;;
  2794. no) multilib=no ;;
  2795. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2796. esac
  2797. else
  2798. multilib=yes
  2799. fi
  2800. # Even if the default multilib is not a cross compilation,
  2801. # it may be that some of the other multilibs are.
  2802. if test $cross_compiling = no && test $multilib = yes \
  2803. && test "x${with_multisubdir}" != x ; then
  2804. cross_compiling=maybe
  2805. fi
  2806. # We may wish to install the target headers somewhere.
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libiberty headers and static library" >&5
  2808. $as_echo_n "checking whether to install libiberty headers and static library... " >&6; }
  2809. # Check whether --enable-install-libiberty was given.
  2810. if test "${enable_install_libiberty+set}" = set; then :
  2811. enableval=$enable_install_libiberty; enable_install_libiberty=$enableval
  2812. else
  2813. enable_install_libiberty=no
  2814. fi
  2815. # Option parsed, now set things appropriately.
  2816. case x"$enable_install_libiberty" in
  2817. xyes|x)
  2818. target_header_dir=libiberty
  2819. ;;
  2820. xno)
  2821. target_header_dir=
  2822. ;;
  2823. *)
  2824. # This could be sanity-checked in various ways...
  2825. target_header_dir="${enable_install_libiberty}"
  2826. ;;
  2827. esac
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_install_libiberty" >&5
  2829. $as_echo "$enable_install_libiberty" >&6; }
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: target_header_dir = $target_header_dir" >&5
  2831. $as_echo "$as_me: target_header_dir = $target_header_dir" >&6;}
  2832. ac_ext=c
  2833. ac_cpp='$CPP $CPPFLAGS'
  2834. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2835. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2836. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2837. if test -n "$ac_tool_prefix"; then
  2838. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2839. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2841. $as_echo_n "checking for $ac_word... " >&6; }
  2842. if ${ac_cv_prog_CC+:} false; then :
  2843. $as_echo_n "(cached) " >&6
  2844. else
  2845. if test -n "$CC"; then
  2846. ac_cv_prog_CC="$CC" # Let the user override the test.
  2847. else
  2848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2849. for as_dir in $PATH
  2850. do
  2851. IFS=$as_save_IFS
  2852. test -z "$as_dir" && as_dir=.
  2853. for ac_exec_ext in '' $ac_executable_extensions; do
  2854. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2855. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2857. break 2
  2858. fi
  2859. done
  2860. done
  2861. IFS=$as_save_IFS
  2862. fi
  2863. fi
  2864. CC=$ac_cv_prog_CC
  2865. if test -n "$CC"; then
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2867. $as_echo "$CC" >&6; }
  2868. else
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2870. $as_echo "no" >&6; }
  2871. fi
  2872. fi
  2873. if test -z "$ac_cv_prog_CC"; then
  2874. ac_ct_CC=$CC
  2875. # Extract the first word of "gcc", so it can be a program name with args.
  2876. set dummy gcc; ac_word=$2
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2878. $as_echo_n "checking for $ac_word... " >&6; }
  2879. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2880. $as_echo_n "(cached) " >&6
  2881. else
  2882. if test -n "$ac_ct_CC"; then
  2883. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2884. else
  2885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2886. for as_dir in $PATH
  2887. do
  2888. IFS=$as_save_IFS
  2889. test -z "$as_dir" && as_dir=.
  2890. for ac_exec_ext in '' $ac_executable_extensions; do
  2891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2892. ac_cv_prog_ac_ct_CC="gcc"
  2893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2894. break 2
  2895. fi
  2896. done
  2897. done
  2898. IFS=$as_save_IFS
  2899. fi
  2900. fi
  2901. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2902. if test -n "$ac_ct_CC"; then
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2904. $as_echo "$ac_ct_CC" >&6; }
  2905. else
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2907. $as_echo "no" >&6; }
  2908. fi
  2909. if test "x$ac_ct_CC" = x; then
  2910. CC=""
  2911. else
  2912. case $cross_compiling:$ac_tool_warned in
  2913. yes:)
  2914. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2915. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2916. ac_tool_warned=yes ;;
  2917. esac
  2918. CC=$ac_ct_CC
  2919. fi
  2920. else
  2921. CC="$ac_cv_prog_CC"
  2922. fi
  2923. if test -z "$CC"; then
  2924. if test -n "$ac_tool_prefix"; then
  2925. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2926. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2928. $as_echo_n "checking for $ac_word... " >&6; }
  2929. if ${ac_cv_prog_CC+:} false; then :
  2930. $as_echo_n "(cached) " >&6
  2931. else
  2932. if test -n "$CC"; then
  2933. ac_cv_prog_CC="$CC" # Let the user override the test.
  2934. else
  2935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2936. for as_dir in $PATH
  2937. do
  2938. IFS=$as_save_IFS
  2939. test -z "$as_dir" && as_dir=.
  2940. for ac_exec_ext in '' $ac_executable_extensions; do
  2941. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2942. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2943. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2944. break 2
  2945. fi
  2946. done
  2947. done
  2948. IFS=$as_save_IFS
  2949. fi
  2950. fi
  2951. CC=$ac_cv_prog_CC
  2952. if test -n "$CC"; then
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2954. $as_echo "$CC" >&6; }
  2955. else
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2957. $as_echo "no" >&6; }
  2958. fi
  2959. fi
  2960. fi
  2961. if test -z "$CC"; then
  2962. # Extract the first word of "cc", so it can be a program name with args.
  2963. set dummy cc; ac_word=$2
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2965. $as_echo_n "checking for $ac_word... " >&6; }
  2966. if ${ac_cv_prog_CC+:} false; then :
  2967. $as_echo_n "(cached) " >&6
  2968. else
  2969. if test -n "$CC"; then
  2970. ac_cv_prog_CC="$CC" # Let the user override the test.
  2971. else
  2972. ac_prog_rejected=no
  2973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2974. for as_dir in $PATH
  2975. do
  2976. IFS=$as_save_IFS
  2977. test -z "$as_dir" && as_dir=.
  2978. for ac_exec_ext in '' $ac_executable_extensions; do
  2979. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2980. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2981. ac_prog_rejected=yes
  2982. continue
  2983. fi
  2984. ac_cv_prog_CC="cc"
  2985. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2986. break 2
  2987. fi
  2988. done
  2989. done
  2990. IFS=$as_save_IFS
  2991. if test $ac_prog_rejected = yes; then
  2992. # We found a bogon in the path, so make sure we never use it.
  2993. set dummy $ac_cv_prog_CC
  2994. shift
  2995. if test $# != 0; then
  2996. # We chose a different compiler from the bogus one.
  2997. # However, it has the same basename, so the bogon will be chosen
  2998. # first if we set CC to just the basename; use the full file name.
  2999. shift
  3000. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3001. fi
  3002. fi
  3003. fi
  3004. fi
  3005. CC=$ac_cv_prog_CC
  3006. if test -n "$CC"; then
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3008. $as_echo "$CC" >&6; }
  3009. else
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3011. $as_echo "no" >&6; }
  3012. fi
  3013. fi
  3014. if test -z "$CC"; then
  3015. if test -n "$ac_tool_prefix"; then
  3016. for ac_prog in cl.exe
  3017. do
  3018. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3019. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3021. $as_echo_n "checking for $ac_word... " >&6; }
  3022. if ${ac_cv_prog_CC+:} false; then :
  3023. $as_echo_n "(cached) " >&6
  3024. else
  3025. if test -n "$CC"; then
  3026. ac_cv_prog_CC="$CC" # Let the user override the test.
  3027. else
  3028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3029. for as_dir in $PATH
  3030. do
  3031. IFS=$as_save_IFS
  3032. test -z "$as_dir" && as_dir=.
  3033. for ac_exec_ext in '' $ac_executable_extensions; do
  3034. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3035. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3036. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3037. break 2
  3038. fi
  3039. done
  3040. done
  3041. IFS=$as_save_IFS
  3042. fi
  3043. fi
  3044. CC=$ac_cv_prog_CC
  3045. if test -n "$CC"; then
  3046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3047. $as_echo "$CC" >&6; }
  3048. else
  3049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3050. $as_echo "no" >&6; }
  3051. fi
  3052. test -n "$CC" && break
  3053. done
  3054. fi
  3055. if test -z "$CC"; then
  3056. ac_ct_CC=$CC
  3057. for ac_prog in cl.exe
  3058. do
  3059. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3060. set dummy $ac_prog; ac_word=$2
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3062. $as_echo_n "checking for $ac_word... " >&6; }
  3063. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3064. $as_echo_n "(cached) " >&6
  3065. else
  3066. if test -n "$ac_ct_CC"; then
  3067. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3068. else
  3069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3070. for as_dir in $PATH
  3071. do
  3072. IFS=$as_save_IFS
  3073. test -z "$as_dir" && as_dir=.
  3074. for ac_exec_ext in '' $ac_executable_extensions; do
  3075. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3076. ac_cv_prog_ac_ct_CC="$ac_prog"
  3077. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3078. break 2
  3079. fi
  3080. done
  3081. done
  3082. IFS=$as_save_IFS
  3083. fi
  3084. fi
  3085. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3086. if test -n "$ac_ct_CC"; then
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3088. $as_echo "$ac_ct_CC" >&6; }
  3089. else
  3090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3091. $as_echo "no" >&6; }
  3092. fi
  3093. test -n "$ac_ct_CC" && break
  3094. done
  3095. if test "x$ac_ct_CC" = x; then
  3096. CC=""
  3097. else
  3098. case $cross_compiling:$ac_tool_warned in
  3099. yes:)
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3101. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3102. ac_tool_warned=yes ;;
  3103. esac
  3104. CC=$ac_ct_CC
  3105. fi
  3106. fi
  3107. fi
  3108. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3109. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3110. as_fn_error $? "no acceptable C compiler found in \$PATH
  3111. See \`config.log' for more details" "$LINENO" 5; }
  3112. # Provide some information about the compiler.
  3113. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3114. set X $ac_compile
  3115. ac_compiler=$2
  3116. for ac_option in --version -v -V -qversion; do
  3117. { { ac_try="$ac_compiler $ac_option >&5"
  3118. case "(($ac_try" in
  3119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3120. *) ac_try_echo=$ac_try;;
  3121. esac
  3122. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3123. $as_echo "$ac_try_echo"; } >&5
  3124. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3125. ac_status=$?
  3126. if test -s conftest.err; then
  3127. sed '10a\
  3128. ... rest of stderr output deleted ...
  3129. 10q' conftest.err >conftest.er1
  3130. cat conftest.er1 >&5
  3131. fi
  3132. rm -f conftest.er1 conftest.err
  3133. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3134. test $ac_status = 0; }
  3135. done
  3136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3137. /* end confdefs.h. */
  3138. #include <stdio.h>
  3139. int
  3140. main ()
  3141. {
  3142. printf ("hello world\n");
  3143. ;
  3144. return 0;
  3145. }
  3146. _ACEOF
  3147. # FIXME: Cleanup?
  3148. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  3149. (eval $ac_link) 2>&5
  3150. ac_status=$?
  3151. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3152. test $ac_status = 0; }; then :
  3153. gcc_no_link=no
  3154. else
  3155. gcc_no_link=yes
  3156. fi
  3157. if test x$gcc_no_link = xyes; then
  3158. # Setting cross_compile will disable run tests; it will
  3159. # also disable AC_CHECK_FILE but that's generally
  3160. # correct if we can't link.
  3161. cross_compiling=yes
  3162. EXEEXT=
  3163. else
  3164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3165. /* end confdefs.h. */
  3166. int
  3167. main ()
  3168. {
  3169. ;
  3170. return 0;
  3171. }
  3172. _ACEOF
  3173. ac_clean_files_save=$ac_clean_files
  3174. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3175. # Try to create an executable without -o first, disregard a.out.
  3176. # It will help us diagnose broken compilers, and finding out an intuition
  3177. # of exeext.
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3179. $as_echo_n "checking whether the C compiler works... " >&6; }
  3180. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3181. # The possible output files:
  3182. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3183. ac_rmfiles=
  3184. for ac_file in $ac_files
  3185. do
  3186. case $ac_file in
  3187. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3188. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3189. esac
  3190. done
  3191. rm -f $ac_rmfiles
  3192. if { { ac_try="$ac_link_default"
  3193. case "(($ac_try" in
  3194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3195. *) ac_try_echo=$ac_try;;
  3196. esac
  3197. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3198. $as_echo "$ac_try_echo"; } >&5
  3199. (eval "$ac_link_default") 2>&5
  3200. ac_status=$?
  3201. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3202. test $ac_status = 0; }; then :
  3203. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3204. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3205. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3206. # so that the user can short-circuit this test for compilers unknown to
  3207. # Autoconf.
  3208. for ac_file in $ac_files ''
  3209. do
  3210. test -f "$ac_file" || continue
  3211. case $ac_file in
  3212. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3213. ;;
  3214. [ab].out )
  3215. # We found the default executable, but exeext='' is most
  3216. # certainly right.
  3217. break;;
  3218. *.* )
  3219. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3220. then :; else
  3221. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3222. fi
  3223. # We set ac_cv_exeext here because the later test for it is not
  3224. # safe: cross compilers may not add the suffix if given an `-o'
  3225. # argument, so we may need to know it at that point already.
  3226. # Even if this section looks crufty: it has the advantage of
  3227. # actually working.
  3228. break;;
  3229. * )
  3230. break;;
  3231. esac
  3232. done
  3233. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3234. else
  3235. ac_file=''
  3236. fi
  3237. if test -z "$ac_file"; then :
  3238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3239. $as_echo "no" >&6; }
  3240. $as_echo "$as_me: failed program was:" >&5
  3241. sed 's/^/| /' conftest.$ac_ext >&5
  3242. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3243. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3244. as_fn_error 77 "C compiler cannot create executables
  3245. See \`config.log' for more details" "$LINENO" 5; }
  3246. else
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3248. $as_echo "yes" >&6; }
  3249. fi
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3251. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3253. $as_echo "$ac_file" >&6; }
  3254. ac_exeext=$ac_cv_exeext
  3255. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3256. ac_clean_files=$ac_clean_files_save
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3258. $as_echo_n "checking for suffix of executables... " >&6; }
  3259. if { { ac_try="$ac_link"
  3260. case "(($ac_try" in
  3261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3262. *) ac_try_echo=$ac_try;;
  3263. esac
  3264. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3265. $as_echo "$ac_try_echo"; } >&5
  3266. (eval "$ac_link") 2>&5
  3267. ac_status=$?
  3268. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3269. test $ac_status = 0; }; then :
  3270. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3271. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3272. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3273. # `rm'.
  3274. for ac_file in conftest.exe conftest conftest.*; do
  3275. test -f "$ac_file" || continue
  3276. case $ac_file in
  3277. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3278. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3279. break;;
  3280. * ) break;;
  3281. esac
  3282. done
  3283. else
  3284. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3285. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3286. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3287. See \`config.log' for more details" "$LINENO" 5; }
  3288. fi
  3289. rm -f conftest conftest$ac_cv_exeext
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3291. $as_echo "$ac_cv_exeext" >&6; }
  3292. rm -f conftest.$ac_ext
  3293. EXEEXT=$ac_cv_exeext
  3294. ac_exeext=$EXEEXT
  3295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3296. /* end confdefs.h. */
  3297. #include <stdio.h>
  3298. int
  3299. main ()
  3300. {
  3301. FILE *f = fopen ("conftest.out", "w");
  3302. return ferror (f) || fclose (f) != 0;
  3303. ;
  3304. return 0;
  3305. }
  3306. _ACEOF
  3307. ac_clean_files="$ac_clean_files conftest.out"
  3308. # Check that the compiler produces executables we can run. If not, either
  3309. # the compiler is broken, or we cross compile.
  3310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3311. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3312. if test "$cross_compiling" != yes; then
  3313. { { ac_try="$ac_link"
  3314. case "(($ac_try" in
  3315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3316. *) ac_try_echo=$ac_try;;
  3317. esac
  3318. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3319. $as_echo "$ac_try_echo"; } >&5
  3320. (eval "$ac_link") 2>&5
  3321. ac_status=$?
  3322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3323. test $ac_status = 0; }
  3324. if { ac_try='./conftest$ac_cv_exeext'
  3325. { { case "(($ac_try" in
  3326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3327. *) ac_try_echo=$ac_try;;
  3328. esac
  3329. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3330. $as_echo "$ac_try_echo"; } >&5
  3331. (eval "$ac_try") 2>&5
  3332. ac_status=$?
  3333. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3334. test $ac_status = 0; }; }; then
  3335. cross_compiling=no
  3336. else
  3337. if test "$cross_compiling" = maybe; then
  3338. cross_compiling=yes
  3339. else
  3340. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3341. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3342. as_fn_error $? "cannot run C compiled programs.
  3343. If you meant to cross compile, use \`--host'.
  3344. See \`config.log' for more details" "$LINENO" 5; }
  3345. fi
  3346. fi
  3347. fi
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3349. $as_echo "$cross_compiling" >&6; }
  3350. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3351. ac_clean_files=$ac_clean_files_save
  3352. fi
  3353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3354. $as_echo_n "checking for suffix of object files... " >&6; }
  3355. if ${ac_cv_objext+:} false; then :
  3356. $as_echo_n "(cached) " >&6
  3357. else
  3358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3359. /* end confdefs.h. */
  3360. int
  3361. main ()
  3362. {
  3363. ;
  3364. return 0;
  3365. }
  3366. _ACEOF
  3367. rm -f conftest.o conftest.obj
  3368. if { { ac_try="$ac_compile"
  3369. case "(($ac_try" in
  3370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3371. *) ac_try_echo=$ac_try;;
  3372. esac
  3373. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3374. $as_echo "$ac_try_echo"; } >&5
  3375. (eval "$ac_compile") 2>&5
  3376. ac_status=$?
  3377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3378. test $ac_status = 0; }; then :
  3379. for ac_file in conftest.o conftest.obj conftest.*; do
  3380. test -f "$ac_file" || continue;
  3381. case $ac_file in
  3382. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3383. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3384. break;;
  3385. esac
  3386. done
  3387. else
  3388. $as_echo "$as_me: failed program was:" >&5
  3389. sed 's/^/| /' conftest.$ac_ext >&5
  3390. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3391. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3392. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3393. See \`config.log' for more details" "$LINENO" 5; }
  3394. fi
  3395. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3396. fi
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3398. $as_echo "$ac_cv_objext" >&6; }
  3399. OBJEXT=$ac_cv_objext
  3400. ac_objext=$OBJEXT
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3402. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3403. if ${ac_cv_c_compiler_gnu+:} false; then :
  3404. $as_echo_n "(cached) " >&6
  3405. else
  3406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3407. /* end confdefs.h. */
  3408. int
  3409. main ()
  3410. {
  3411. #ifndef __GNUC__
  3412. choke me
  3413. #endif
  3414. ;
  3415. return 0;
  3416. }
  3417. _ACEOF
  3418. if ac_fn_c_try_compile "$LINENO"; then :
  3419. ac_compiler_gnu=yes
  3420. else
  3421. ac_compiler_gnu=no
  3422. fi
  3423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3424. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3425. fi
  3426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3427. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3428. if test $ac_compiler_gnu = yes; then
  3429. GCC=yes
  3430. else
  3431. GCC=
  3432. fi
  3433. ac_test_CFLAGS=${CFLAGS+set}
  3434. ac_save_CFLAGS=$CFLAGS
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3436. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3437. if ${ac_cv_prog_cc_g+:} false; then :
  3438. $as_echo_n "(cached) " >&6
  3439. else
  3440. ac_save_c_werror_flag=$ac_c_werror_flag
  3441. ac_c_werror_flag=yes
  3442. ac_cv_prog_cc_g=no
  3443. CFLAGS="-g"
  3444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3445. /* end confdefs.h. */
  3446. int
  3447. main ()
  3448. {
  3449. ;
  3450. return 0;
  3451. }
  3452. _ACEOF
  3453. if ac_fn_c_try_compile "$LINENO"; then :
  3454. ac_cv_prog_cc_g=yes
  3455. else
  3456. CFLAGS=""
  3457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3458. /* end confdefs.h. */
  3459. int
  3460. main ()
  3461. {
  3462. ;
  3463. return 0;
  3464. }
  3465. _ACEOF
  3466. if ac_fn_c_try_compile "$LINENO"; then :
  3467. else
  3468. ac_c_werror_flag=$ac_save_c_werror_flag
  3469. CFLAGS="-g"
  3470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3471. /* end confdefs.h. */
  3472. int
  3473. main ()
  3474. {
  3475. ;
  3476. return 0;
  3477. }
  3478. _ACEOF
  3479. if ac_fn_c_try_compile "$LINENO"; then :
  3480. ac_cv_prog_cc_g=yes
  3481. fi
  3482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3483. fi
  3484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3485. fi
  3486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3487. ac_c_werror_flag=$ac_save_c_werror_flag
  3488. fi
  3489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3490. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3491. if test "$ac_test_CFLAGS" = set; then
  3492. CFLAGS=$ac_save_CFLAGS
  3493. elif test $ac_cv_prog_cc_g = yes; then
  3494. if test "$GCC" = yes; then
  3495. CFLAGS="-g -O2"
  3496. else
  3497. CFLAGS="-g"
  3498. fi
  3499. else
  3500. if test "$GCC" = yes; then
  3501. CFLAGS="-O2"
  3502. else
  3503. CFLAGS=
  3504. fi
  3505. fi
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3507. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3508. if ${ac_cv_prog_cc_c89+:} false; then :
  3509. $as_echo_n "(cached) " >&6
  3510. else
  3511. ac_cv_prog_cc_c89=no
  3512. ac_save_CC=$CC
  3513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3514. /* end confdefs.h. */
  3515. #include <stdarg.h>
  3516. #include <stdio.h>
  3517. struct stat;
  3518. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3519. struct buf { int x; };
  3520. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3521. static char *e (p, i)
  3522. char **p;
  3523. int i;
  3524. {
  3525. return p[i];
  3526. }
  3527. static char *f (char * (*g) (char **, int), char **p, ...)
  3528. {
  3529. char *s;
  3530. va_list v;
  3531. va_start (v,p);
  3532. s = g (p, va_arg (v,int));
  3533. va_end (v);
  3534. return s;
  3535. }
  3536. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3537. function prototypes and stuff, but not '\xHH' hex character constants.
  3538. These don't provoke an error unfortunately, instead are silently treated
  3539. as 'x'. The following induces an error, until -std is added to get
  3540. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3541. array size at least. It's necessary to write '\x00'==0 to get something
  3542. that's true only with -std. */
  3543. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3544. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3545. inside strings and character constants. */
  3546. #define FOO(x) 'x'
  3547. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3548. int test (int i, double x);
  3549. struct s1 {int (*f) (int a);};
  3550. struct s2 {int (*f) (double a);};
  3551. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3552. int argc;
  3553. char **argv;
  3554. int
  3555. main ()
  3556. {
  3557. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3558. ;
  3559. return 0;
  3560. }
  3561. _ACEOF
  3562. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3563. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3564. do
  3565. CC="$ac_save_CC $ac_arg"
  3566. if ac_fn_c_try_compile "$LINENO"; then :
  3567. ac_cv_prog_cc_c89=$ac_arg
  3568. fi
  3569. rm -f core conftest.err conftest.$ac_objext
  3570. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3571. done
  3572. rm -f conftest.$ac_ext
  3573. CC=$ac_save_CC
  3574. fi
  3575. # AC_CACHE_VAL
  3576. case "x$ac_cv_prog_cc_c89" in
  3577. x)
  3578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3579. $as_echo "none needed" >&6; } ;;
  3580. xno)
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3582. $as_echo "unsupported" >&6; } ;;
  3583. *)
  3584. CC="$CC $ac_cv_prog_cc_c89"
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3586. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3587. esac
  3588. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3589. fi
  3590. ac_ext=c
  3591. ac_cpp='$CPP $CPPFLAGS'
  3592. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3593. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3594. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3595. ac_ext=c
  3596. ac_cpp='$CPP $CPPFLAGS'
  3597. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3598. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3599. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3601. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3602. # On Suns, sometimes $CPP names a directory.
  3603. if test -n "$CPP" && test -d "$CPP"; then
  3604. CPP=
  3605. fi
  3606. if test -z "$CPP"; then
  3607. if ${ac_cv_prog_CPP+:} false; then :
  3608. $as_echo_n "(cached) " >&6
  3609. else
  3610. # Double quotes because CPP needs to be expanded
  3611. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3612. do
  3613. ac_preproc_ok=false
  3614. for ac_c_preproc_warn_flag in '' yes
  3615. do
  3616. # Use a header file that comes with gcc, so configuring glibc
  3617. # with a fresh cross-compiler works.
  3618. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3619. # <limits.h> exists even on freestanding compilers.
  3620. # On the NeXT, cc -E runs the code through the compiler's parser,
  3621. # not just through cpp. "Syntax error" is here to catch this case.
  3622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3623. /* end confdefs.h. */
  3624. #ifdef __STDC__
  3625. # include <limits.h>
  3626. #else
  3627. # include <assert.h>
  3628. #endif
  3629. Syntax error
  3630. _ACEOF
  3631. if ac_fn_c_try_cpp "$LINENO"; then :
  3632. else
  3633. # Broken: fails on valid input.
  3634. continue
  3635. fi
  3636. rm -f conftest.err conftest.i conftest.$ac_ext
  3637. # OK, works on sane cases. Now check whether nonexistent headers
  3638. # can be detected and how.
  3639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3640. /* end confdefs.h. */
  3641. #include <ac_nonexistent.h>
  3642. _ACEOF
  3643. if ac_fn_c_try_cpp "$LINENO"; then :
  3644. # Broken: success on invalid input.
  3645. continue
  3646. else
  3647. # Passes both tests.
  3648. ac_preproc_ok=:
  3649. break
  3650. fi
  3651. rm -f conftest.err conftest.i conftest.$ac_ext
  3652. done
  3653. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3654. rm -f conftest.i conftest.err conftest.$ac_ext
  3655. if $ac_preproc_ok; then :
  3656. break
  3657. fi
  3658. done
  3659. ac_cv_prog_CPP=$CPP
  3660. fi
  3661. CPP=$ac_cv_prog_CPP
  3662. else
  3663. ac_cv_prog_CPP=$CPP
  3664. fi
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3666. $as_echo "$CPP" >&6; }
  3667. ac_preproc_ok=false
  3668. for ac_c_preproc_warn_flag in '' yes
  3669. do
  3670. # Use a header file that comes with gcc, so configuring glibc
  3671. # with a fresh cross-compiler works.
  3672. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3673. # <limits.h> exists even on freestanding compilers.
  3674. # On the NeXT, cc -E runs the code through the compiler's parser,
  3675. # not just through cpp. "Syntax error" is here to catch this case.
  3676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3677. /* end confdefs.h. */
  3678. #ifdef __STDC__
  3679. # include <limits.h>
  3680. #else
  3681. # include <assert.h>
  3682. #endif
  3683. Syntax error
  3684. _ACEOF
  3685. if ac_fn_c_try_cpp "$LINENO"; then :
  3686. else
  3687. # Broken: fails on valid input.
  3688. continue
  3689. fi
  3690. rm -f conftest.err conftest.i conftest.$ac_ext
  3691. # OK, works on sane cases. Now check whether nonexistent headers
  3692. # can be detected and how.
  3693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3694. /* end confdefs.h. */
  3695. #include <ac_nonexistent.h>
  3696. _ACEOF
  3697. if ac_fn_c_try_cpp "$LINENO"; then :
  3698. # Broken: success on invalid input.
  3699. continue
  3700. else
  3701. # Passes both tests.
  3702. ac_preproc_ok=:
  3703. break
  3704. fi
  3705. rm -f conftest.err conftest.i conftest.$ac_ext
  3706. done
  3707. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3708. rm -f conftest.i conftest.err conftest.$ac_ext
  3709. if $ac_preproc_ok; then :
  3710. else
  3711. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3712. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3713. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3714. See \`config.log' for more details" "$LINENO" 5; }
  3715. fi
  3716. ac_ext=c
  3717. ac_cpp='$CPP $CPPFLAGS'
  3718. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3719. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3720. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3722. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3723. if ${ac_cv_path_GREP+:} false; then :
  3724. $as_echo_n "(cached) " >&6
  3725. else
  3726. if test -z "$GREP"; then
  3727. ac_path_GREP_found=false
  3728. # Loop through the user's path and test for each of PROGNAME-LIST
  3729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3730. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3731. do
  3732. IFS=$as_save_IFS
  3733. test -z "$as_dir" && as_dir=.
  3734. for ac_prog in grep ggrep; do
  3735. for ac_exec_ext in '' $ac_executable_extensions; do
  3736. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3737. as_fn_executable_p "$ac_path_GREP" || continue
  3738. # Check for GNU ac_path_GREP and select it if it is found.
  3739. # Check for GNU $ac_path_GREP
  3740. case `"$ac_path_GREP" --version 2>&1` in
  3741. *GNU*)
  3742. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3743. *)
  3744. ac_count=0
  3745. $as_echo_n 0123456789 >"conftest.in"
  3746. while :
  3747. do
  3748. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3749. mv "conftest.tmp" "conftest.in"
  3750. cp "conftest.in" "conftest.nl"
  3751. $as_echo 'GREP' >> "conftest.nl"
  3752. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3753. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3754. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3755. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3756. # Best one so far, save it but keep looking for a better one
  3757. ac_cv_path_GREP="$ac_path_GREP"
  3758. ac_path_GREP_max=$ac_count
  3759. fi
  3760. # 10*(2^10) chars as input seems more than enough
  3761. test $ac_count -gt 10 && break
  3762. done
  3763. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3764. esac
  3765. $ac_path_GREP_found && break 3
  3766. done
  3767. done
  3768. done
  3769. IFS=$as_save_IFS
  3770. if test -z "$ac_cv_path_GREP"; then
  3771. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3772. fi
  3773. else
  3774. ac_cv_path_GREP=$GREP
  3775. fi
  3776. fi
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3778. $as_echo "$ac_cv_path_GREP" >&6; }
  3779. GREP="$ac_cv_path_GREP"
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3781. $as_echo_n "checking for egrep... " >&6; }
  3782. if ${ac_cv_path_EGREP+:} false; then :
  3783. $as_echo_n "(cached) " >&6
  3784. else
  3785. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3786. then ac_cv_path_EGREP="$GREP -E"
  3787. else
  3788. if test -z "$EGREP"; then
  3789. ac_path_EGREP_found=false
  3790. # Loop through the user's path and test for each of PROGNAME-LIST
  3791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3792. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3793. do
  3794. IFS=$as_save_IFS
  3795. test -z "$as_dir" && as_dir=.
  3796. for ac_prog in egrep; do
  3797. for ac_exec_ext in '' $ac_executable_extensions; do
  3798. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3799. as_fn_executable_p "$ac_path_EGREP" || continue
  3800. # Check for GNU ac_path_EGREP and select it if it is found.
  3801. # Check for GNU $ac_path_EGREP
  3802. case `"$ac_path_EGREP" --version 2>&1` in
  3803. *GNU*)
  3804. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3805. *)
  3806. ac_count=0
  3807. $as_echo_n 0123456789 >"conftest.in"
  3808. while :
  3809. do
  3810. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3811. mv "conftest.tmp" "conftest.in"
  3812. cp "conftest.in" "conftest.nl"
  3813. $as_echo 'EGREP' >> "conftest.nl"
  3814. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3815. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3816. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3817. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3818. # Best one so far, save it but keep looking for a better one
  3819. ac_cv_path_EGREP="$ac_path_EGREP"
  3820. ac_path_EGREP_max=$ac_count
  3821. fi
  3822. # 10*(2^10) chars as input seems more than enough
  3823. test $ac_count -gt 10 && break
  3824. done
  3825. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3826. esac
  3827. $ac_path_EGREP_found && break 3
  3828. done
  3829. done
  3830. done
  3831. IFS=$as_save_IFS
  3832. if test -z "$ac_cv_path_EGREP"; then
  3833. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3834. fi
  3835. else
  3836. ac_cv_path_EGREP=$EGREP
  3837. fi
  3838. fi
  3839. fi
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3841. $as_echo "$ac_cv_path_EGREP" >&6; }
  3842. EGREP="$ac_cv_path_EGREP"
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3844. $as_echo_n "checking for ANSI C header files... " >&6; }
  3845. if ${ac_cv_header_stdc+:} false; then :
  3846. $as_echo_n "(cached) " >&6
  3847. else
  3848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3849. /* end confdefs.h. */
  3850. #include <stdlib.h>
  3851. #include <stdarg.h>
  3852. #include <string.h>
  3853. #include <float.h>
  3854. int
  3855. main ()
  3856. {
  3857. ;
  3858. return 0;
  3859. }
  3860. _ACEOF
  3861. if ac_fn_c_try_compile "$LINENO"; then :
  3862. ac_cv_header_stdc=yes
  3863. else
  3864. ac_cv_header_stdc=no
  3865. fi
  3866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3867. if test $ac_cv_header_stdc = yes; then
  3868. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3870. /* end confdefs.h. */
  3871. #include <string.h>
  3872. _ACEOF
  3873. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3874. $EGREP "memchr" >/dev/null 2>&1; then :
  3875. else
  3876. ac_cv_header_stdc=no
  3877. fi
  3878. rm -f conftest*
  3879. fi
  3880. if test $ac_cv_header_stdc = yes; then
  3881. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3883. /* end confdefs.h. */
  3884. #include <stdlib.h>
  3885. _ACEOF
  3886. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3887. $EGREP "free" >/dev/null 2>&1; then :
  3888. else
  3889. ac_cv_header_stdc=no
  3890. fi
  3891. rm -f conftest*
  3892. fi
  3893. if test $ac_cv_header_stdc = yes; then
  3894. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3895. if test "$cross_compiling" = yes; then :
  3896. :
  3897. else
  3898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3899. /* end confdefs.h. */
  3900. #include <ctype.h>
  3901. #include <stdlib.h>
  3902. #if ((' ' & 0x0FF) == 0x020)
  3903. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3904. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3905. #else
  3906. # define ISLOWER(c) \
  3907. (('a' <= (c) && (c) <= 'i') \
  3908. || ('j' <= (c) && (c) <= 'r') \
  3909. || ('s' <= (c) && (c) <= 'z'))
  3910. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3911. #endif
  3912. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3913. int
  3914. main ()
  3915. {
  3916. int i;
  3917. for (i = 0; i < 256; i++)
  3918. if (XOR (islower (i), ISLOWER (i))
  3919. || toupper (i) != TOUPPER (i))
  3920. return 2;
  3921. return 0;
  3922. }
  3923. _ACEOF
  3924. if ac_fn_c_try_run "$LINENO"; then :
  3925. else
  3926. ac_cv_header_stdc=no
  3927. fi
  3928. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3929. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3930. fi
  3931. fi
  3932. fi
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3934. $as_echo "$ac_cv_header_stdc" >&6; }
  3935. if test $ac_cv_header_stdc = yes; then
  3936. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3937. fi
  3938. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3939. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3940. inttypes.h stdint.h unistd.h
  3941. do :
  3942. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3943. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3944. "
  3945. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3946. cat >>confdefs.h <<_ACEOF
  3947. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3948. _ACEOF
  3949. fi
  3950. done
  3951. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3952. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3953. MINIX=yes
  3954. else
  3955. MINIX=
  3956. fi
  3957. if test "$MINIX" = yes; then
  3958. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3959. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3960. $as_echo "#define _MINIX 1" >>confdefs.h
  3961. fi
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3963. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3964. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3965. $as_echo_n "(cached) " >&6
  3966. else
  3967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3968. /* end confdefs.h. */
  3969. # define __EXTENSIONS__ 1
  3970. $ac_includes_default
  3971. int
  3972. main ()
  3973. {
  3974. ;
  3975. return 0;
  3976. }
  3977. _ACEOF
  3978. if ac_fn_c_try_compile "$LINENO"; then :
  3979. ac_cv_safe_to_define___extensions__=yes
  3980. else
  3981. ac_cv_safe_to_define___extensions__=no
  3982. fi
  3983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3984. fi
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3986. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3987. test $ac_cv_safe_to_define___extensions__ = yes &&
  3988. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3989. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3990. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3991. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3992. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3993. # Check whether --enable-largefile was given.
  3994. if test "${enable_largefile+set}" = set; then :
  3995. enableval=$enable_largefile;
  3996. fi
  3997. if test "$enable_largefile" != no; then
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  3999. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  4000. if ${ac_cv_sys_largefile_CC+:} false; then :
  4001. $as_echo_n "(cached) " >&6
  4002. else
  4003. ac_cv_sys_largefile_CC=no
  4004. if test "$GCC" != yes; then
  4005. ac_save_CC=$CC
  4006. while :; do
  4007. # IRIX 6.2 and later do not support large files by default,
  4008. # so use the C compiler's -n32 option if that helps.
  4009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4010. /* end confdefs.h. */
  4011. #include <sys/types.h>
  4012. /* Check that off_t can represent 2**63 - 1 correctly.
  4013. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4014. since some C++ compilers masquerading as C compilers
  4015. incorrectly reject 9223372036854775807. */
  4016. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4017. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4018. && LARGE_OFF_T % 2147483647 == 1)
  4019. ? 1 : -1];
  4020. int
  4021. main ()
  4022. {
  4023. ;
  4024. return 0;
  4025. }
  4026. _ACEOF
  4027. if ac_fn_c_try_compile "$LINENO"; then :
  4028. break
  4029. fi
  4030. rm -f core conftest.err conftest.$ac_objext
  4031. CC="$CC -n32"
  4032. if ac_fn_c_try_compile "$LINENO"; then :
  4033. ac_cv_sys_largefile_CC=' -n32'; break
  4034. fi
  4035. rm -f core conftest.err conftest.$ac_objext
  4036. break
  4037. done
  4038. CC=$ac_save_CC
  4039. rm -f conftest.$ac_ext
  4040. fi
  4041. fi
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  4043. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  4044. if test "$ac_cv_sys_largefile_CC" != no; then
  4045. CC=$CC$ac_cv_sys_largefile_CC
  4046. fi
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  4048. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  4049. if ${ac_cv_sys_file_offset_bits+:} false; then :
  4050. $as_echo_n "(cached) " >&6
  4051. else
  4052. while :; do
  4053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4054. /* end confdefs.h. */
  4055. #include <sys/types.h>
  4056. /* Check that off_t can represent 2**63 - 1 correctly.
  4057. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4058. since some C++ compilers masquerading as C compilers
  4059. incorrectly reject 9223372036854775807. */
  4060. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4061. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4062. && LARGE_OFF_T % 2147483647 == 1)
  4063. ? 1 : -1];
  4064. int
  4065. main ()
  4066. {
  4067. ;
  4068. return 0;
  4069. }
  4070. _ACEOF
  4071. if ac_fn_c_try_compile "$LINENO"; then :
  4072. ac_cv_sys_file_offset_bits=no; break
  4073. fi
  4074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4076. /* end confdefs.h. */
  4077. #define _FILE_OFFSET_BITS 64
  4078. #include <sys/types.h>
  4079. /* Check that off_t can represent 2**63 - 1 correctly.
  4080. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4081. since some C++ compilers masquerading as C compilers
  4082. incorrectly reject 9223372036854775807. */
  4083. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4084. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4085. && LARGE_OFF_T % 2147483647 == 1)
  4086. ? 1 : -1];
  4087. int
  4088. main ()
  4089. {
  4090. ;
  4091. return 0;
  4092. }
  4093. _ACEOF
  4094. if ac_fn_c_try_compile "$LINENO"; then :
  4095. ac_cv_sys_file_offset_bits=64; break
  4096. fi
  4097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4098. ac_cv_sys_file_offset_bits=unknown
  4099. break
  4100. done
  4101. fi
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  4103. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  4104. case $ac_cv_sys_file_offset_bits in #(
  4105. no | unknown) ;;
  4106. *)
  4107. cat >>confdefs.h <<_ACEOF
  4108. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  4109. _ACEOF
  4110. ;;
  4111. esac
  4112. rm -rf conftest*
  4113. if test $ac_cv_sys_file_offset_bits = unknown; then
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  4115. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  4116. if ${ac_cv_sys_large_files+:} false; then :
  4117. $as_echo_n "(cached) " >&6
  4118. else
  4119. while :; do
  4120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4121. /* end confdefs.h. */
  4122. #include <sys/types.h>
  4123. /* Check that off_t can represent 2**63 - 1 correctly.
  4124. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4125. since some C++ compilers masquerading as C compilers
  4126. incorrectly reject 9223372036854775807. */
  4127. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4128. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4129. && LARGE_OFF_T % 2147483647 == 1)
  4130. ? 1 : -1];
  4131. int
  4132. main ()
  4133. {
  4134. ;
  4135. return 0;
  4136. }
  4137. _ACEOF
  4138. if ac_fn_c_try_compile "$LINENO"; then :
  4139. ac_cv_sys_large_files=no; break
  4140. fi
  4141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4143. /* end confdefs.h. */
  4144. #define _LARGE_FILES 1
  4145. #include <sys/types.h>
  4146. /* Check that off_t can represent 2**63 - 1 correctly.
  4147. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4148. since some C++ compilers masquerading as C compilers
  4149. incorrectly reject 9223372036854775807. */
  4150. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4151. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4152. && LARGE_OFF_T % 2147483647 == 1)
  4153. ? 1 : -1];
  4154. int
  4155. main ()
  4156. {
  4157. ;
  4158. return 0;
  4159. }
  4160. _ACEOF
  4161. if ac_fn_c_try_compile "$LINENO"; then :
  4162. ac_cv_sys_large_files=1; break
  4163. fi
  4164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4165. ac_cv_sys_large_files=unknown
  4166. break
  4167. done
  4168. fi
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  4170. $as_echo "$ac_cv_sys_large_files" >&6; }
  4171. case $ac_cv_sys_large_files in #(
  4172. no | unknown) ;;
  4173. *)
  4174. cat >>confdefs.h <<_ACEOF
  4175. #define _LARGE_FILES $ac_cv_sys_large_files
  4176. _ACEOF
  4177. ;;
  4178. esac
  4179. rm -rf conftest*
  4180. fi
  4181. fi
  4182. ac_c_preproc_warn_flag=yes
  4183. ac_ext=c
  4184. ac_cpp='$CPP $CPPFLAGS'
  4185. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4186. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4187. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4188. ac_libiberty_warn_cflags=
  4189. save_CFLAGS="$CFLAGS"
  4190. for real_option in -W -Wall -Wwrite-strings -Wc++-compat \
  4191. -Wstrict-prototypes \
  4192. -Wshadow=local; do
  4193. # Do the check with the no- prefix removed since gcc silently
  4194. # accepts any -Wno-* option on purpose
  4195. case $real_option in
  4196. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  4197. *) option=$real_option ;;
  4198. esac
  4199. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  4200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  4201. $as_echo_n "checking whether $CC supports $option... " >&6; }
  4202. if eval \${$as_acx_Woption+:} false; then :
  4203. $as_echo_n "(cached) " >&6
  4204. else
  4205. CFLAGS="$option"
  4206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4207. /* end confdefs.h. */
  4208. int
  4209. main ()
  4210. {
  4211. ;
  4212. return 0;
  4213. }
  4214. _ACEOF
  4215. if ac_fn_c_try_compile "$LINENO"; then :
  4216. eval "$as_acx_Woption=yes"
  4217. else
  4218. eval "$as_acx_Woption=no"
  4219. fi
  4220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4221. fi
  4222. eval ac_res=\$$as_acx_Woption
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4224. $as_echo "$ac_res" >&6; }
  4225. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  4226. ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$real_option"
  4227. fi
  4228. done
  4229. CFLAGS="$save_CFLAGS"
  4230. ac_ext=c
  4231. ac_cpp='$CPP $CPPFLAGS'
  4232. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4233. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4234. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4235. ac_ext=c
  4236. ac_cpp='$CPP $CPPFLAGS'
  4237. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4238. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4239. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4240. # Do the check with the no- prefix removed from the warning options
  4241. # since gcc silently accepts any -Wno-* option on purpose
  4242. if test "$GCC" = yes; then :
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic " >&5
  4244. $as_echo_n "checking whether $CC supports -pedantic ... " >&6; }
  4245. if ${acx_cv_prog_cc_pedantic_+:} false; then :
  4246. $as_echo_n "(cached) " >&6
  4247. else
  4248. save_CFLAGS="$CFLAGS"
  4249. CFLAGS="-pedantic "
  4250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4251. /* end confdefs.h. */
  4252. int
  4253. main ()
  4254. {
  4255. ;
  4256. return 0;
  4257. }
  4258. _ACEOF
  4259. if ac_fn_c_try_compile "$LINENO"; then :
  4260. acx_cv_prog_cc_pedantic_=yes
  4261. else
  4262. acx_cv_prog_cc_pedantic_=no
  4263. fi
  4264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4265. CFLAGS="$save_CFLAGS"
  4266. fi
  4267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic_" >&5
  4268. $as_echo "$acx_cv_prog_cc_pedantic_" >&6; }
  4269. if test $acx_cv_prog_cc_pedantic_ = yes; then :
  4270. ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic "
  4271. fi
  4272. fi
  4273. ac_ext=c
  4274. ac_cpp='$CPP $CPPFLAGS'
  4275. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4276. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4277. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4278. if test "x$CC" != xcc; then
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4280. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4281. else
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4283. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4284. fi
  4285. set dummy $CC; ac_cc=`$as_echo "$2" |
  4286. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4287. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4288. $as_echo_n "(cached) " >&6
  4289. else
  4290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4291. /* end confdefs.h. */
  4292. int
  4293. main ()
  4294. {
  4295. ;
  4296. return 0;
  4297. }
  4298. _ACEOF
  4299. # Make sure it works both with $CC and with simple cc.
  4300. # We do the test twice because some compilers refuse to overwrite an
  4301. # existing .o file with -o, though they will create one.
  4302. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4303. rm -f conftest2.*
  4304. if { { case "(($ac_try" in
  4305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4306. *) ac_try_echo=$ac_try;;
  4307. esac
  4308. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4309. $as_echo "$ac_try_echo"; } >&5
  4310. (eval "$ac_try") 2>&5
  4311. ac_status=$?
  4312. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4313. test $ac_status = 0; } &&
  4314. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4316. *) ac_try_echo=$ac_try;;
  4317. esac
  4318. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4319. $as_echo "$ac_try_echo"; } >&5
  4320. (eval "$ac_try") 2>&5
  4321. ac_status=$?
  4322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4323. test $ac_status = 0; };
  4324. then
  4325. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4326. if test "x$CC" != xcc; then
  4327. # Test first that cc exists at all.
  4328. if { ac_try='cc -c conftest.$ac_ext >&5'
  4329. { { case "(($ac_try" in
  4330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4331. *) ac_try_echo=$ac_try;;
  4332. esac
  4333. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4334. $as_echo "$ac_try_echo"; } >&5
  4335. (eval "$ac_try") 2>&5
  4336. ac_status=$?
  4337. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4338. test $ac_status = 0; }; }; then
  4339. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4340. rm -f conftest2.*
  4341. if { { case "(($ac_try" in
  4342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4343. *) ac_try_echo=$ac_try;;
  4344. esac
  4345. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4346. $as_echo "$ac_try_echo"; } >&5
  4347. (eval "$ac_try") 2>&5
  4348. ac_status=$?
  4349. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4350. test $ac_status = 0; } &&
  4351. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4353. *) ac_try_echo=$ac_try;;
  4354. esac
  4355. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4356. $as_echo "$ac_try_echo"; } >&5
  4357. (eval "$ac_try") 2>&5
  4358. ac_status=$?
  4359. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4360. test $ac_status = 0; };
  4361. then
  4362. # cc works too.
  4363. :
  4364. else
  4365. # cc exists but doesn't like -o.
  4366. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4367. fi
  4368. fi
  4369. fi
  4370. else
  4371. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4372. fi
  4373. rm -f core conftest*
  4374. fi
  4375. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4377. $as_echo "yes" >&6; }
  4378. else
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4380. $as_echo "no" >&6; }
  4381. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4382. fi
  4383. # autoconf is lame and doesn't give us any substitution variable for this.
  4384. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
  4385. NO_MINUS_C_MINUS_O=yes
  4386. else
  4387. OUTPUT_OPTION='-o $@'
  4388. fi
  4389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4390. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4391. if ${ac_cv_c_const+:} false; then :
  4392. $as_echo_n "(cached) " >&6
  4393. else
  4394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4395. /* end confdefs.h. */
  4396. int
  4397. main ()
  4398. {
  4399. #ifndef __cplusplus
  4400. /* Ultrix mips cc rejects this sort of thing. */
  4401. typedef int charset[2];
  4402. const charset cs = { 0, 0 };
  4403. /* SunOS 4.1.1 cc rejects this. */
  4404. char const *const *pcpcc;
  4405. char **ppc;
  4406. /* NEC SVR4.0.2 mips cc rejects this. */
  4407. struct point {int x, y;};
  4408. static struct point const zero = {0,0};
  4409. /* AIX XL C 1.02.0.0 rejects this.
  4410. It does not let you subtract one const X* pointer from another in
  4411. an arm of an if-expression whose if-part is not a constant
  4412. expression */
  4413. const char *g = "string";
  4414. pcpcc = &g + (g ? g-g : 0);
  4415. /* HPUX 7.0 cc rejects these. */
  4416. ++pcpcc;
  4417. ppc = (char**) pcpcc;
  4418. pcpcc = (char const *const *) ppc;
  4419. { /* SCO 3.2v4 cc rejects this sort of thing. */
  4420. char tx;
  4421. char *t = &tx;
  4422. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4423. *t++ = 0;
  4424. if (s) return 0;
  4425. }
  4426. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4427. int x[] = {25, 17};
  4428. const int *foo = &x[0];
  4429. ++foo;
  4430. }
  4431. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4432. typedef const int *iptr;
  4433. iptr p = 0;
  4434. ++p;
  4435. }
  4436. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  4437. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4438. struct s { int j; const int *ap[3]; } bx;
  4439. struct s *b = &bx; b->j = 5;
  4440. }
  4441. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4442. const int foo = 10;
  4443. if (!foo) return 0;
  4444. }
  4445. return !cs[0] && !zero.x;
  4446. #endif
  4447. ;
  4448. return 0;
  4449. }
  4450. _ACEOF
  4451. if ac_fn_c_try_compile "$LINENO"; then :
  4452. ac_cv_c_const=yes
  4453. else
  4454. ac_cv_c_const=no
  4455. fi
  4456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4457. fi
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4459. $as_echo "$ac_cv_c_const" >&6; }
  4460. if test $ac_cv_c_const = no; then
  4461. $as_echo "#define const /**/" >>confdefs.h
  4462. fi
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4464. $as_echo_n "checking for inline... " >&6; }
  4465. if ${ac_cv_c_inline+:} false; then :
  4466. $as_echo_n "(cached) " >&6
  4467. else
  4468. ac_cv_c_inline=no
  4469. for ac_kw in inline __inline__ __inline; do
  4470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4471. /* end confdefs.h. */
  4472. #ifndef __cplusplus
  4473. typedef int foo_t;
  4474. static $ac_kw foo_t static_foo () {return 0; }
  4475. $ac_kw foo_t foo () {return 0; }
  4476. #endif
  4477. _ACEOF
  4478. if ac_fn_c_try_compile "$LINENO"; then :
  4479. ac_cv_c_inline=$ac_kw
  4480. fi
  4481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4482. test "$ac_cv_c_inline" != no && break
  4483. done
  4484. fi
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4486. $as_echo "$ac_cv_c_inline" >&6; }
  4487. case $ac_cv_c_inline in
  4488. inline | yes) ;;
  4489. *)
  4490. case $ac_cv_c_inline in
  4491. no) ac_val=;;
  4492. *) ac_val=$ac_cv_c_inline;;
  4493. esac
  4494. cat >>confdefs.h <<_ACEOF
  4495. #ifndef __cplusplus
  4496. #define inline $ac_val
  4497. #endif
  4498. _ACEOF
  4499. ;;
  4500. esac
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4502. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4503. if ${ac_cv_c_bigendian+:} false; then :
  4504. $as_echo_n "(cached) " >&6
  4505. else
  4506. ac_cv_c_bigendian=unknown
  4507. # See if we're dealing with a universal compiler.
  4508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4509. /* end confdefs.h. */
  4510. #ifndef __APPLE_CC__
  4511. not a universal capable compiler
  4512. #endif
  4513. typedef int dummy;
  4514. _ACEOF
  4515. if ac_fn_c_try_compile "$LINENO"; then :
  4516. # Check for potential -arch flags. It is not universal unless
  4517. # there are at least two -arch flags with different values.
  4518. ac_arch=
  4519. ac_prev=
  4520. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4521. if test -n "$ac_prev"; then
  4522. case $ac_word in
  4523. i?86 | x86_64 | ppc | ppc64)
  4524. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4525. ac_arch=$ac_word
  4526. else
  4527. ac_cv_c_bigendian=universal
  4528. break
  4529. fi
  4530. ;;
  4531. esac
  4532. ac_prev=
  4533. elif test "x$ac_word" = "x-arch"; then
  4534. ac_prev=arch
  4535. fi
  4536. done
  4537. fi
  4538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4539. if test $ac_cv_c_bigendian = unknown; then
  4540. # See if sys/param.h defines the BYTE_ORDER macro.
  4541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4542. /* end confdefs.h. */
  4543. #include <sys/types.h>
  4544. #include <sys/param.h>
  4545. int
  4546. main ()
  4547. {
  4548. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4549. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4550. && LITTLE_ENDIAN)
  4551. bogus endian macros
  4552. #endif
  4553. ;
  4554. return 0;
  4555. }
  4556. _ACEOF
  4557. if ac_fn_c_try_compile "$LINENO"; then :
  4558. # It does; now see whether it defined to BIG_ENDIAN or not.
  4559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4560. /* end confdefs.h. */
  4561. #include <sys/types.h>
  4562. #include <sys/param.h>
  4563. int
  4564. main ()
  4565. {
  4566. #if BYTE_ORDER != BIG_ENDIAN
  4567. not big endian
  4568. #endif
  4569. ;
  4570. return 0;
  4571. }
  4572. _ACEOF
  4573. if ac_fn_c_try_compile "$LINENO"; then :
  4574. ac_cv_c_bigendian=yes
  4575. else
  4576. ac_cv_c_bigendian=no
  4577. fi
  4578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4579. fi
  4580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4581. fi
  4582. if test $ac_cv_c_bigendian = unknown; then
  4583. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4585. /* end confdefs.h. */
  4586. #include <limits.h>
  4587. int
  4588. main ()
  4589. {
  4590. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4591. bogus endian macros
  4592. #endif
  4593. ;
  4594. return 0;
  4595. }
  4596. _ACEOF
  4597. if ac_fn_c_try_compile "$LINENO"; then :
  4598. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4600. /* end confdefs.h. */
  4601. #include <limits.h>
  4602. int
  4603. main ()
  4604. {
  4605. #ifndef _BIG_ENDIAN
  4606. not big endian
  4607. #endif
  4608. ;
  4609. return 0;
  4610. }
  4611. _ACEOF
  4612. if ac_fn_c_try_compile "$LINENO"; then :
  4613. ac_cv_c_bigendian=yes
  4614. else
  4615. ac_cv_c_bigendian=no
  4616. fi
  4617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4618. fi
  4619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4620. fi
  4621. if test $ac_cv_c_bigendian = unknown; then
  4622. # Compile a test program.
  4623. if test "$cross_compiling" = yes; then :
  4624. # Try to guess by grepping values from an object file.
  4625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4626. /* end confdefs.h. */
  4627. short int ascii_mm[] =
  4628. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4629. short int ascii_ii[] =
  4630. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4631. int use_ascii (int i) {
  4632. return ascii_mm[i] + ascii_ii[i];
  4633. }
  4634. short int ebcdic_ii[] =
  4635. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4636. short int ebcdic_mm[] =
  4637. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4638. int use_ebcdic (int i) {
  4639. return ebcdic_mm[i] + ebcdic_ii[i];
  4640. }
  4641. extern int foo;
  4642. int
  4643. main ()
  4644. {
  4645. return use_ascii (foo) == use_ebcdic (foo);
  4646. ;
  4647. return 0;
  4648. }
  4649. _ACEOF
  4650. if ac_fn_c_try_compile "$LINENO"; then :
  4651. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4652. ac_cv_c_bigendian=yes
  4653. fi
  4654. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4655. if test "$ac_cv_c_bigendian" = unknown; then
  4656. ac_cv_c_bigendian=no
  4657. else
  4658. # finding both strings is unlikely to happen, but who knows?
  4659. ac_cv_c_bigendian=unknown
  4660. fi
  4661. fi
  4662. fi
  4663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4664. else
  4665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4666. /* end confdefs.h. */
  4667. $ac_includes_default
  4668. int
  4669. main ()
  4670. {
  4671. /* Are we little or big endian? From Harbison&Steele. */
  4672. union
  4673. {
  4674. long int l;
  4675. char c[sizeof (long int)];
  4676. } u;
  4677. u.l = 1;
  4678. return u.c[sizeof (long int) - 1] == 1;
  4679. ;
  4680. return 0;
  4681. }
  4682. _ACEOF
  4683. if ac_fn_c_try_run "$LINENO"; then :
  4684. ac_cv_c_bigendian=no
  4685. else
  4686. ac_cv_c_bigendian=yes
  4687. fi
  4688. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4689. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4690. fi
  4691. fi
  4692. fi
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4694. $as_echo "$ac_cv_c_bigendian" >&6; }
  4695. case $ac_cv_c_bigendian in #(
  4696. yes)
  4697. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4698. ;; #(
  4699. no)
  4700. ;; #(
  4701. universal)
  4702. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4703. ;; #(
  4704. *)
  4705. as_fn_error $? "unknown endianness
  4706. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4707. esac
  4708. ac_config_headers="$ac_config_headers config.h:config.in"
  4709. # Find a good install program. We prefer a C program (faster),
  4710. # so one script is as good as another. But avoid the broken or
  4711. # incompatible versions:
  4712. # SysV /etc/install, /usr/sbin/install
  4713. # SunOS /usr/etc/install
  4714. # IRIX /sbin/install
  4715. # AIX /bin/install
  4716. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4717. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4718. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4719. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4720. # OS/2's system install, which has a completely different semantic
  4721. # ./install, which can be erroneously created by make from ./install.sh.
  4722. # Reject install programs that cannot install multiple files.
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4724. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4725. if test -z "$INSTALL"; then
  4726. if ${ac_cv_path_install+:} false; then :
  4727. $as_echo_n "(cached) " >&6
  4728. else
  4729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4730. for as_dir in $PATH
  4731. do
  4732. IFS=$as_save_IFS
  4733. test -z "$as_dir" && as_dir=.
  4734. # Account for people who put trailing slashes in PATH elements.
  4735. case $as_dir/ in #((
  4736. ./ | .// | /[cC]/* | \
  4737. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4738. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4739. /usr/ucb/* ) ;;
  4740. *)
  4741. # OSF1 and SCO ODT 3.0 have their own names for install.
  4742. # Don't use installbsd from OSF since it installs stuff as root
  4743. # by default.
  4744. for ac_prog in ginstall scoinst install; do
  4745. for ac_exec_ext in '' $ac_executable_extensions; do
  4746. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4747. if test $ac_prog = install &&
  4748. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4749. # AIX install. It has an incompatible calling convention.
  4750. :
  4751. elif test $ac_prog = install &&
  4752. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4753. # program-specific install script used by HP pwplus--don't use.
  4754. :
  4755. else
  4756. rm -rf conftest.one conftest.two conftest.dir
  4757. echo one > conftest.one
  4758. echo two > conftest.two
  4759. mkdir conftest.dir
  4760. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4761. test -s conftest.one && test -s conftest.two &&
  4762. test -s conftest.dir/conftest.one &&
  4763. test -s conftest.dir/conftest.two
  4764. then
  4765. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4766. break 3
  4767. fi
  4768. fi
  4769. fi
  4770. done
  4771. done
  4772. ;;
  4773. esac
  4774. done
  4775. IFS=$as_save_IFS
  4776. rm -rf conftest.one conftest.two conftest.dir
  4777. fi
  4778. if test "${ac_cv_path_install+set}" = set; then
  4779. INSTALL=$ac_cv_path_install
  4780. else
  4781. # As a last resort, use the slow shell script. Don't cache a
  4782. # value for INSTALL within a source directory, because that will
  4783. # break other packages using the cache if that directory is
  4784. # removed, or if the value is a relative name.
  4785. INSTALL=$ac_install_sh
  4786. fi
  4787. fi
  4788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4789. $as_echo "$INSTALL" >&6; }
  4790. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4791. # It thinks the first close brace ends the variable substitution.
  4792. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4793. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4794. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4795. # Don't build the shared library for build.
  4796. if [ -n "${with_build_subdir}" ]; then
  4797. enable_shared=no
  4798. fi
  4799. frag=
  4800. case "${host}" in
  4801. rs6000-ibm-aix3.1 | rs6000-ibm-aix)
  4802. frag=mh-aix ;;
  4803. *-*-cxux7*) frag=mh-cxux7 ;;
  4804. *-*-freebsd2.1.*) frag=mh-fbsd21 ;;
  4805. *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;;
  4806. i370-*-opened*) frag=mh-openedition ;;
  4807. i[34567]86-*-windows*) frag=mh-windows ;;
  4808. esac
  4809. if [ -n "${frag}" ]; then
  4810. frag=${libiberty_topdir}/libiberty/config/$frag
  4811. fi
  4812. case "${host}" in
  4813. # PIC is the default on some targets or must not be used.
  4814. *-*-darwin*)
  4815. # For darwin, common symbols are not allowed in MH_DYLIB files
  4816. case "${CFLAGS}" in
  4817. # If we are using a compiler supporting mdynamic-no-pic
  4818. # and the option has been tested as safe to add, then cancel
  4819. # it here, since the code generated is incompatible with shared
  4820. # libs.
  4821. *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
  4822. *) PICFLAG=-fno-common ;;
  4823. esac
  4824. ;;
  4825. alpha*-dec-osf5*)
  4826. # PIC is the default.
  4827. ;;
  4828. hppa*64*-*-hpux*)
  4829. # PIC is the default for 64-bit PA HP-UX.
  4830. ;;
  4831. i[34567]86-*-cygwin* | x86_64-*-cygwin*)
  4832. ;;
  4833. i[34567]86-*-mingw* | x86_64-*-mingw*)
  4834. ;;
  4835. i[34567]86-*-interix[3-9]*)
  4836. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4837. # Instead, we relocate shared libraries at runtime.
  4838. ;;
  4839. i[34567]86-*-nto-qnx*)
  4840. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4841. # it will coredump.
  4842. PICFLAG='-fPIC -shared'
  4843. ;;
  4844. i[34567]86-pc-msdosdjgpp*)
  4845. # DJGPP does not support shared libraries at all.
  4846. ;;
  4847. ia64*-*-hpux*)
  4848. # On IA64 HP-UX, PIC is the default but the pic flag
  4849. # sets the default TLS model and affects inlining.
  4850. PICFLAG=-fPIC
  4851. ;;
  4852. mips-sgi-irix6*)
  4853. # PIC is the default.
  4854. ;;
  4855. rs6000-ibm-aix* | powerpc-ibm-aix*)
  4856. # All AIX code is PIC.
  4857. ;;
  4858. # Some targets support both -fPIC and -fpic, but prefer the latter.
  4859. # FIXME: Why?
  4860. i[34567]86-*-* | x86_64-*-*)
  4861. PICFLAG=-fpic
  4862. ;;
  4863. # FIXME: Override -fPIC default in libgcc only?
  4864. sh-*-linux* | sh[2346lbe]*-*-linux*)
  4865. PICFLAG=-fpic
  4866. ;;
  4867. sh*-*-netbsd*)
  4868. PICFLAG=-fpic
  4869. ;;
  4870. # Default to -fPIC unless specified otherwise.
  4871. *)
  4872. PICFLAG=-fPIC
  4873. ;;
  4874. esac
  4875. # If the user explicitly uses -fpic/-fPIC, keep that.
  4876. case "${CFLAGS}" in
  4877. *-fpic*)
  4878. PICFLAG=-fpic
  4879. ;;
  4880. *-fPIC*)
  4881. PICFLAG=-fPIC
  4882. ;;
  4883. esac
  4884. # If they didn't specify --enable-shared, don't generate shared libs.
  4885. case "${enable_shared}" in
  4886. yes) shared=yes ;;
  4887. no) shared=no ;;
  4888. "") shared=no ;;
  4889. *) shared=yes ;;
  4890. esac
  4891. # ...unless --enable-host-shared was passed from top-level config:
  4892. if [ "${enable_host_shared}" = "yes" ]; then
  4893. shared=yes
  4894. fi
  4895. if [ "${shared}" != "yes" ]; then
  4896. PICFLAG=
  4897. fi
  4898. NOASANFLAG=
  4899. case " ${CFLAGS} " in
  4900. *\ -fsanitize=address\ *) NOASANFLAG=-fno-sanitize=address ;;
  4901. *\ -fsanitize=hwaddress\ *) NOASANFLAG=-fno-sanitize=hwaddress ;;
  4902. esac
  4903. # Check whether --enable-cet was given.
  4904. if test "${enable_cet+set}" = set; then :
  4905. enableval=$enable_cet;
  4906. case "$enableval" in
  4907. yes|no|auto) ;;
  4908. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  4909. esac
  4910. else
  4911. enable_cet=auto
  4912. fi
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  4914. $as_echo_n "checking for CET support... " >&6; }
  4915. case "$host" in
  4916. i[34567]86-*-linux* | x86_64-*-linux*)
  4917. may_have_cet=yes
  4918. cet_save_CFLAGS="$CFLAGS"
  4919. CFLAGS="$CFLAGS -fcf-protection"
  4920. case "$enable_cet" in
  4921. auto)
  4922. # Check if target supports multi-byte NOPs
  4923. # and if compiler and assembler support CET.
  4924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4925. /* end confdefs.h. */
  4926. int
  4927. main ()
  4928. {
  4929. #if !defined(__SSE2__)
  4930. #error target does not support multi-byte NOPs
  4931. #else
  4932. asm ("setssbsy");
  4933. #endif
  4934. ;
  4935. return 0;
  4936. }
  4937. _ACEOF
  4938. if ac_fn_c_try_compile "$LINENO"; then :
  4939. enable_cet=yes
  4940. else
  4941. enable_cet=no
  4942. fi
  4943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4944. ;;
  4945. yes)
  4946. # Check if compiler and assembler support CET.
  4947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4948. /* end confdefs.h. */
  4949. int
  4950. main ()
  4951. {
  4952. asm ("setssbsy");
  4953. ;
  4954. return 0;
  4955. }
  4956. _ACEOF
  4957. if ac_fn_c_try_compile "$LINENO"; then :
  4958. support_cet=yes
  4959. else
  4960. support_cet=no
  4961. fi
  4962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4963. if test $support_cet = "no"; then
  4964. if test x$enable_bootstrap != xno \
  4965. && test -z "${with_build_subdir}" \
  4966. && (test ! -f ../stage_current \
  4967. || test `cat ../stage_current` != "stage1"); then
  4968. # Require CET support only for the final GCC build.
  4969. as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
  4970. else
  4971. # Don't enable CET without CET support for non-bootstrap
  4972. # build, in stage1 nor for build support.
  4973. enable_cet=no
  4974. fi
  4975. fi
  4976. ;;
  4977. esac
  4978. CFLAGS="$cet_save_CFLAGS"
  4979. ;;
  4980. *)
  4981. may_have_cet=no
  4982. enable_cet=no
  4983. ;;
  4984. esac
  4985. cet_save_CFLAGS="$CFLAGS"
  4986. CFLAGS="$CFLAGS -fcf-protection=none"
  4987. cet_save_LDFLAGS="$LDFLAGS"
  4988. LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
  4989. if test x$may_have_cet = xyes; then
  4990. # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
  4991. if test x$gcc_no_link = xyes; then
  4992. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  4993. fi
  4994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4995. /* end confdefs.h. */
  4996. int
  4997. main ()
  4998. {
  4999. return 0;
  5000. ;
  5001. return 0;
  5002. }
  5003. _ACEOF
  5004. if ac_fn_c_try_link "$LINENO"; then :
  5005. may_have_cet=yes
  5006. else
  5007. may_have_cet=no
  5008. fi
  5009. rm -f core conftest.err conftest.$ac_objext \
  5010. conftest$ac_exeext conftest.$ac_ext
  5011. fi
  5012. if test x$may_have_cet = xyes; then
  5013. if test x$cross_compiling = xno; then
  5014. if test "$cross_compiling" = yes; then :
  5015. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5016. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5017. as_fn_error $? "cannot run test program while cross compiling
  5018. See \`config.log' for more details" "$LINENO" 5; }
  5019. else
  5020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5021. /* end confdefs.h. */
  5022. int
  5023. main ()
  5024. {
  5025. asm ("endbr32");
  5026. return 0;
  5027. }
  5028. _ACEOF
  5029. if ac_fn_c_try_run "$LINENO"; then :
  5030. have_multi_byte_nop=yes
  5031. else
  5032. have_multi_byte_nop=no
  5033. fi
  5034. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5035. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5036. fi
  5037. have_cet=no
  5038. if test x$have_multi_byte_nop = xyes; then
  5039. if test "$cross_compiling" = yes; then :
  5040. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5041. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5042. as_fn_error $? "cannot run test program while cross compiling
  5043. See \`config.log' for more details" "$LINENO" 5; }
  5044. else
  5045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5046. /* end confdefs.h. */
  5047. static void
  5048. foo (void)
  5049. {
  5050. }
  5051. static void
  5052. __attribute__ ((noinline, noclone))
  5053. xxx (void (*f) (void))
  5054. {
  5055. f ();
  5056. }
  5057. static void
  5058. __attribute__ ((noinline, noclone))
  5059. bar (void)
  5060. {
  5061. xxx (foo);
  5062. }
  5063. int
  5064. main ()
  5065. {
  5066. bar ();
  5067. return 0;
  5068. }
  5069. _ACEOF
  5070. if ac_fn_c_try_run "$LINENO"; then :
  5071. have_cet=no
  5072. else
  5073. have_cet=yes
  5074. fi
  5075. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5076. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5077. fi
  5078. fi
  5079. if test x$enable_cet = xno -a x$have_cet = xyes; then
  5080. as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
  5081. fi
  5082. fi
  5083. else
  5084. # Enable CET in cross compiler if possible so that it will run on both
  5085. # CET and non-CET hosts.
  5086. have_cet=yes
  5087. fi
  5088. if test x$enable_cet = xyes; then
  5089. CET_HOST_FLAGS="-fcf-protection"
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5091. $as_echo "yes" >&6; }
  5092. else
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5094. $as_echo "no" >&6; }
  5095. fi
  5096. CFLAGS="$cet_save_CFLAGS"
  5097. LDFLAGS="$cet_save_LDFLAGS"
  5098. echo "# Warning: this fragment is automatically generated" > temp-frag
  5099. if [ -n "${frag}" ] && [ -f "${frag}" ]; then
  5100. echo "Appending ${frag} to xhost-mkfrag"
  5101. echo "# Following fragment copied from ${frag}" >> temp-frag
  5102. cat ${frag} >> temp-frag
  5103. fi
  5104. # record if we want to build shared libs.
  5105. if [ "${shared}" = "yes" ]; then
  5106. echo enable_shared = yes >> temp-frag
  5107. else
  5108. echo enable_shared = no >> temp-frag
  5109. fi
  5110. frag=xhost-mkfrag
  5111. ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
  5112. host_makefile_frag=${frag}
  5113. # It's OK to check for header files. Although the compiler may not be
  5114. # able to link anything, it had better be able to at least compile
  5115. # something.
  5116. for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h stdint.h stdio_ext.h process.h sys/prctl.h
  5117. do :
  5118. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5119. ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
  5120. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5121. cat >>confdefs.h <<_ACEOF
  5122. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5123. _ACEOF
  5124. fi
  5125. done
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5127. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  5128. if ${ac_cv_header_sys_wait_h+:} false; then :
  5129. $as_echo_n "(cached) " >&6
  5130. else
  5131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5132. /* end confdefs.h. */
  5133. #include <sys/types.h>
  5134. #include <sys/wait.h>
  5135. #ifndef WEXITSTATUS
  5136. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  5137. #endif
  5138. #ifndef WIFEXITED
  5139. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5140. #endif
  5141. int
  5142. main ()
  5143. {
  5144. int s;
  5145. wait (&s);
  5146. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5147. ;
  5148. return 0;
  5149. }
  5150. _ACEOF
  5151. if ac_fn_c_try_compile "$LINENO"; then :
  5152. ac_cv_header_sys_wait_h=yes
  5153. else
  5154. ac_cv_header_sys_wait_h=no
  5155. fi
  5156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5157. fi
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  5159. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  5160. if test $ac_cv_header_sys_wait_h = yes; then
  5161. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  5162. fi
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  5164. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  5165. if ${ac_cv_header_time+:} false; then :
  5166. $as_echo_n "(cached) " >&6
  5167. else
  5168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5169. /* end confdefs.h. */
  5170. #include <sys/types.h>
  5171. #include <sys/time.h>
  5172. #include <time.h>
  5173. int
  5174. main ()
  5175. {
  5176. if ((struct tm *) 0)
  5177. return 0;
  5178. ;
  5179. return 0;
  5180. }
  5181. _ACEOF
  5182. if ac_fn_c_try_compile "$LINENO"; then :
  5183. ac_cv_header_time=yes
  5184. else
  5185. ac_cv_header_time=no
  5186. fi
  5187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5188. fi
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  5190. $as_echo "$ac_cv_header_time" >&6; }
  5191. if test $ac_cv_header_time = yes; then
  5192. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  5193. fi
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether errno must be declared" >&5
  5195. $as_echo_n "checking whether errno must be declared... " >&6; }
  5196. if ${libiberty_cv_declare_errno+:} false; then :
  5197. $as_echo_n "(cached) " >&6
  5198. else
  5199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5200. /* end confdefs.h. */
  5201. #include <errno.h>
  5202. int
  5203. main ()
  5204. {
  5205. int x = errno;
  5206. ;
  5207. return 0;
  5208. }
  5209. _ACEOF
  5210. if ac_fn_c_try_compile "$LINENO"; then :
  5211. libiberty_cv_declare_errno=no
  5212. else
  5213. libiberty_cv_declare_errno=yes
  5214. fi
  5215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5216. fi
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_declare_errno" >&5
  5218. $as_echo "$libiberty_cv_declare_errno" >&6; }
  5219. if test $libiberty_cv_declare_errno = yes
  5220. then
  5221. $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
  5222. fi
  5223. # Determine sizes of some types.
  5224. # The cast to long int works around a bug in the HP C Compiler
  5225. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5226. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5227. # This bug is HP SR number 8606223364.
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  5229. $as_echo_n "checking size of int... " >&6; }
  5230. if ${ac_cv_sizeof_int+:} false; then :
  5231. $as_echo_n "(cached) " >&6
  5232. else
  5233. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  5234. else
  5235. if test "$ac_cv_type_int" = yes; then
  5236. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5237. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5238. as_fn_error 77 "cannot compute sizeof (int)
  5239. See \`config.log' for more details" "$LINENO" 5; }
  5240. else
  5241. ac_cv_sizeof_int=0
  5242. fi
  5243. fi
  5244. fi
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  5246. $as_echo "$ac_cv_sizeof_int" >&6; }
  5247. cat >>confdefs.h <<_ACEOF
  5248. #define SIZEOF_INT $ac_cv_sizeof_int
  5249. _ACEOF
  5250. # The cast to long int works around a bug in the HP C Compiler
  5251. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5252. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5253. # This bug is HP SR number 8606223364.
  5254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  5255. $as_echo_n "checking size of long... " >&6; }
  5256. if ${ac_cv_sizeof_long+:} false; then :
  5257. $as_echo_n "(cached) " >&6
  5258. else
  5259. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  5260. else
  5261. if test "$ac_cv_type_long" = yes; then
  5262. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5263. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5264. as_fn_error 77 "cannot compute sizeof (long)
  5265. See \`config.log' for more details" "$LINENO" 5; }
  5266. else
  5267. ac_cv_sizeof_long=0
  5268. fi
  5269. fi
  5270. fi
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  5272. $as_echo "$ac_cv_sizeof_long" >&6; }
  5273. cat >>confdefs.h <<_ACEOF
  5274. #define SIZEOF_LONG $ac_cv_sizeof_long
  5275. _ACEOF
  5276. # The cast to long int works around a bug in the HP C Compiler
  5277. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5278. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5279. # This bug is HP SR number 8606223364.
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  5281. $as_echo_n "checking size of size_t... " >&6; }
  5282. if ${ac_cv_sizeof_size_t+:} false; then :
  5283. $as_echo_n "(cached) " >&6
  5284. else
  5285. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  5286. else
  5287. if test "$ac_cv_type_size_t" = yes; then
  5288. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5289. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5290. as_fn_error 77 "cannot compute sizeof (size_t)
  5291. See \`config.log' for more details" "$LINENO" 5; }
  5292. else
  5293. ac_cv_sizeof_size_t=0
  5294. fi
  5295. fi
  5296. fi
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  5298. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  5299. cat >>confdefs.h <<_ACEOF
  5300. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  5301. _ACEOF
  5302. # Check for presense of long long
  5303. ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  5304. if test "x$ac_cv_type_long_long" = xyes; then :
  5305. $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
  5306. # The cast to long int works around a bug in the HP C Compiler
  5307. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5308. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5309. # This bug is HP SR number 8606223364.
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  5311. $as_echo_n "checking size of long long... " >&6; }
  5312. if ${ac_cv_sizeof_long_long+:} false; then :
  5313. $as_echo_n "(cached) " >&6
  5314. else
  5315. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  5316. else
  5317. if test "$ac_cv_type_long_long" = yes; then
  5318. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5319. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5320. as_fn_error 77 "cannot compute sizeof (long long)
  5321. See \`config.log' for more details" "$LINENO" 5; }
  5322. else
  5323. ac_cv_sizeof_long_long=0
  5324. fi
  5325. fi
  5326. fi
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  5328. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  5329. cat >>confdefs.h <<_ACEOF
  5330. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  5331. _ACEOF
  5332. fi
  5333. # Look for a 64-bit type.
  5334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit type" >&5
  5335. $as_echo_n "checking for a 64-bit type... " >&6; }
  5336. if ${liberty_cv_uint64+:} false; then :
  5337. $as_echo_n "(cached) " >&6
  5338. else
  5339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5340. /* end confdefs.h. */
  5341. #ifdef HAVE_STDINT_H
  5342. #include <stdint.h>
  5343. #endif
  5344. int
  5345. main ()
  5346. {
  5347. extern uint64_t foo;
  5348. ;
  5349. return 0;
  5350. }
  5351. _ACEOF
  5352. if ac_fn_c_try_compile "$LINENO"; then :
  5353. liberty_cv_uint64=uint64_t
  5354. else
  5355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5356. /* end confdefs.h. */
  5357. #ifdef HAVE_LIMITS_H
  5358. #include <limits.h>
  5359. #endif
  5360. #ifndef CHAR_BIT
  5361. #define CHAR_BIT 8
  5362. #endif
  5363. int
  5364. main ()
  5365. {
  5366. extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
  5367. ;
  5368. return 0;
  5369. }
  5370. _ACEOF
  5371. if ac_fn_c_try_compile "$LINENO"; then :
  5372. liberty_cv_uint64="unsigned long"
  5373. else
  5374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5375. /* end confdefs.h. */
  5376. #ifdef HAVE_LIMITS_H
  5377. #include <limits.h>
  5378. #endif
  5379. #ifndef CHAR_BIT
  5380. #define CHAR_BIT 8
  5381. #endif
  5382. int
  5383. main ()
  5384. {
  5385. extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
  5386. ;
  5387. return 0;
  5388. }
  5389. _ACEOF
  5390. if ac_fn_c_try_compile "$LINENO"; then :
  5391. liberty_cv_uint64="unsigned long long"
  5392. else
  5393. liberty_cv_uint64=none
  5394. fi
  5395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5396. fi
  5397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5398. fi
  5399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5400. fi
  5401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liberty_cv_uint64" >&5
  5402. $as_echo "$liberty_cv_uint64" >&6; }
  5403. if test "$liberty_cv_uint64" != none; then
  5404. cat >>confdefs.h <<_ACEOF
  5405. #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
  5406. _ACEOF
  5407. fi
  5408. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  5409. if test "x$ac_cv_type_intptr_t" = xyes; then :
  5410. $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
  5411. else
  5412. for ac_type in 'int' 'long int' 'long long int'; do
  5413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5414. /* end confdefs.h. */
  5415. $ac_includes_default
  5416. int
  5417. main ()
  5418. {
  5419. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  5420. test_array [0] = 0;
  5421. return test_array [0];
  5422. ;
  5423. return 0;
  5424. }
  5425. _ACEOF
  5426. if ac_fn_c_try_compile "$LINENO"; then :
  5427. cat >>confdefs.h <<_ACEOF
  5428. #define intptr_t $ac_type
  5429. _ACEOF
  5430. ac_type=
  5431. fi
  5432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5433. test -z "$ac_type" && break
  5434. done
  5435. fi
  5436. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  5437. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  5438. $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  5439. else
  5440. for ac_type in 'unsigned int' 'unsigned long int' \
  5441. 'unsigned long long int'; do
  5442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5443. /* end confdefs.h. */
  5444. $ac_includes_default
  5445. int
  5446. main ()
  5447. {
  5448. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  5449. test_array [0] = 0;
  5450. return test_array [0];
  5451. ;
  5452. return 0;
  5453. }
  5454. _ACEOF
  5455. if ac_fn_c_try_compile "$LINENO"; then :
  5456. cat >>confdefs.h <<_ACEOF
  5457. #define uintptr_t $ac_type
  5458. _ACEOF
  5459. ac_type=
  5460. fi
  5461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5462. test -z "$ac_type" && break
  5463. done
  5464. fi
  5465. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  5466. if test "x$ac_cv_type_ssize_t" = xyes; then :
  5467. else
  5468. cat >>confdefs.h <<_ACEOF
  5469. #define ssize_t int
  5470. _ACEOF
  5471. fi
  5472. # Given the above check, we always have uintptr_t or a fallback
  5473. # definition. So define HAVE_UINTPTR_T in case any imported code
  5474. # relies on it.
  5475. $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  5476. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  5477. if test "x$ac_cv_type_pid_t" = xyes; then :
  5478. else
  5479. cat >>confdefs.h <<_ACEOF
  5480. #define pid_t int
  5481. _ACEOF
  5482. fi
  5483. # This is the list of functions which libiberty will provide if they
  5484. # are not available on the host.
  5485. funcs="asprintf"
  5486. funcs="$funcs atexit"
  5487. funcs="$funcs basename"
  5488. funcs="$funcs bcmp"
  5489. funcs="$funcs bcopy"
  5490. funcs="$funcs bsearch"
  5491. funcs="$funcs bzero"
  5492. funcs="$funcs calloc"
  5493. funcs="$funcs clock"
  5494. funcs="$funcs ffs"
  5495. funcs="$funcs getcwd"
  5496. funcs="$funcs getpagesize"
  5497. funcs="$funcs gettimeofday"
  5498. funcs="$funcs index"
  5499. funcs="$funcs insque"
  5500. funcs="$funcs memchr"
  5501. funcs="$funcs memcmp"
  5502. funcs="$funcs memcpy"
  5503. funcs="$funcs memmem"
  5504. funcs="$funcs memmove"
  5505. funcs="$funcs mempcpy"
  5506. funcs="$funcs memset"
  5507. funcs="$funcs mkstemps"
  5508. funcs="$funcs putenv"
  5509. funcs="$funcs random"
  5510. funcs="$funcs rename"
  5511. funcs="$funcs rindex"
  5512. funcs="$funcs setenv"
  5513. funcs="$funcs snprintf"
  5514. funcs="$funcs sigsetmask"
  5515. funcs="$funcs stpcpy"
  5516. funcs="$funcs stpncpy"
  5517. funcs="$funcs strcasecmp"
  5518. funcs="$funcs strchr"
  5519. funcs="$funcs strdup"
  5520. funcs="$funcs strncasecmp"
  5521. funcs="$funcs strndup"
  5522. funcs="$funcs strnlen"
  5523. funcs="$funcs strrchr"
  5524. funcs="$funcs strstr"
  5525. funcs="$funcs strtod"
  5526. funcs="$funcs strtol"
  5527. funcs="$funcs strtoul"
  5528. funcs="$funcs strtoll"
  5529. funcs="$funcs strtoull"
  5530. funcs="$funcs strverscmp"
  5531. funcs="$funcs tmpnam"
  5532. funcs="$funcs vasprintf"
  5533. funcs="$funcs vfprintf"
  5534. funcs="$funcs vprintf"
  5535. funcs="$funcs vsnprintf"
  5536. funcs="$funcs vsprintf"
  5537. funcs="$funcs waitpid"
  5538. funcs="$funcs setproctitle"
  5539. # Also in the old function.def file: alloca, vfork, getopt.
  5540. vars="sys_errlist sys_nerr sys_siglist"
  5541. checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \
  5542. getsysinfo gettimeofday on_exit pipe2 psignal pstat_getdynamic pstat_getstatic \
  5543. realpath setrlimit spawnve spawnvpe strerror strsignal sysconf sysctl \
  5544. sysmp table times wait3 wait4"
  5545. # Darwin has sbrk, but it is deprecated and that produces build-time warnings
  5546. # so do not check for it.
  5547. case "${host}" in
  5548. *-*-darwin*) ;;
  5549. *) checkfuncs="$checkfuncs sbrk"
  5550. esac
  5551. # These are neither executed nor required, but they help keep
  5552. # autoheader happy without adding a bunch of text to acconfig.h.
  5553. if test "x" = "y"; then
  5554. for ac_func in asprintf atexit \
  5555. basename bcmp bcopy bsearch bzero \
  5556. calloc canonicalize_file_name clock \
  5557. dup3 \
  5558. ffs __fsetlocking \
  5559. getcwd getpagesize getrlimit getrusage getsysinfo gettimeofday \
  5560. index insque \
  5561. memchr memcmp memcpy memmem memmove memset mkstemps \
  5562. on_exit \
  5563. pipe2 psignal pstat_getdynamic pstat_getstatic putenv \
  5564. random realpath rename rindex \
  5565. sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \
  5566. stpcpy stpncpy strcasecmp strchr strdup \
  5567. strerror strncasecmp strndup strnlen strrchr strsignal strstr strtod \
  5568. strtol strtoul strtoll strtoull strverscmp sysconf sysctl sysmp \
  5569. table times tmpnam \
  5570. vasprintf vfprintf vprintf vsprintf \
  5571. wait3 wait4 waitpid
  5572. do :
  5573. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5574. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5575. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5576. cat >>confdefs.h <<_ACEOF
  5577. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5578. _ACEOF
  5579. fi
  5580. done
  5581. as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
  5582. ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
  5583. if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
  5584. ac_have_decl=1
  5585. else
  5586. ac_have_decl=0
  5587. fi
  5588. cat >>confdefs.h <<_ACEOF
  5589. #define HAVE_DECL_BASENAME $ac_have_decl
  5590. _ACEOF
  5591. ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
  5592. if test "x$ac_cv_have_decl_ffs" = xyes; then :
  5593. ac_have_decl=1
  5594. else
  5595. ac_have_decl=0
  5596. fi
  5597. cat >>confdefs.h <<_ACEOF
  5598. #define HAVE_DECL_FFS $ac_have_decl
  5599. _ACEOF
  5600. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  5601. if test "x$ac_cv_have_decl_asprintf" = xyes; then :
  5602. ac_have_decl=1
  5603. else
  5604. ac_have_decl=0
  5605. fi
  5606. cat >>confdefs.h <<_ACEOF
  5607. #define HAVE_DECL_ASPRINTF $ac_have_decl
  5608. _ACEOF
  5609. ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  5610. if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
  5611. ac_have_decl=1
  5612. else
  5613. ac_have_decl=0
  5614. fi
  5615. cat >>confdefs.h <<_ACEOF
  5616. #define HAVE_DECL_VASPRINTF $ac_have_decl
  5617. _ACEOF
  5618. ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
  5619. if test "x$ac_cv_have_decl_snprintf" = xyes; then :
  5620. ac_have_decl=1
  5621. else
  5622. ac_have_decl=0
  5623. fi
  5624. cat >>confdefs.h <<_ACEOF
  5625. #define HAVE_DECL_SNPRINTF $ac_have_decl
  5626. _ACEOF
  5627. ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  5628. if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
  5629. ac_have_decl=1
  5630. else
  5631. ac_have_decl=0
  5632. fi
  5633. cat >>confdefs.h <<_ACEOF
  5634. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  5635. _ACEOF
  5636. ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
  5637. if test "x$ac_cv_have_decl_strtol" = xyes; then :
  5638. ac_have_decl=1
  5639. else
  5640. ac_have_decl=0
  5641. fi
  5642. cat >>confdefs.h <<_ACEOF
  5643. #define HAVE_DECL_STRTOL $ac_have_decl
  5644. _ACEOF
  5645. ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
  5646. if test "x$ac_cv_have_decl_strtoul" = xyes; then :
  5647. ac_have_decl=1
  5648. else
  5649. ac_have_decl=0
  5650. fi
  5651. cat >>confdefs.h <<_ACEOF
  5652. #define HAVE_DECL_STRTOUL $ac_have_decl
  5653. _ACEOF
  5654. ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
  5655. if test "x$ac_cv_have_decl_strtoll" = xyes; then :
  5656. ac_have_decl=1
  5657. else
  5658. ac_have_decl=0
  5659. fi
  5660. cat >>confdefs.h <<_ACEOF
  5661. #define HAVE_DECL_STRTOLL $ac_have_decl
  5662. _ACEOF
  5663. ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
  5664. if test "x$ac_cv_have_decl_strtoull" = xyes; then :
  5665. ac_have_decl=1
  5666. else
  5667. ac_have_decl=0
  5668. fi
  5669. cat >>confdefs.h <<_ACEOF
  5670. #define HAVE_DECL_STRTOULL $ac_have_decl
  5671. _ACEOF
  5672. ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
  5673. if test "x$ac_cv_have_decl_strnlen" = xyes; then :
  5674. ac_have_decl=1
  5675. else
  5676. ac_have_decl=0
  5677. fi
  5678. cat >>confdefs.h <<_ACEOF
  5679. #define HAVE_DECL_STRNLEN $ac_have_decl
  5680. _ACEOF
  5681. $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
  5682. $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
  5683. $as_echo "#define HAVE_SYS_SIGLIST 1" >>confdefs.h
  5684. fi
  5685. # For each of these functions, if the host does not provide the
  5686. # function we want to put FN.o in LIBOBJS, and if the host does
  5687. # provide the function, we want to define HAVE_FN in config.h.
  5688. setobjs=
  5689. CHECK=
  5690. if test -n "${with_target_subdir}"; then
  5691. # We are being configured as a target library. AC_REPLACE_FUNCS
  5692. # may not work correctly, because the compiler may not be able to
  5693. # link executables. Note that we may still be being configured
  5694. # native.
  5695. # If we are being configured for newlib, we know which functions
  5696. # newlib provide and which ones we will be expected to provide.
  5697. if test "x${with_newlib}" = "xyes"; then
  5698. case " $LIBOBJS " in
  5699. *" asprintf.$ac_objext "* ) ;;
  5700. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  5701. ;;
  5702. esac
  5703. case " $LIBOBJS " in
  5704. *" basename.$ac_objext "* ) ;;
  5705. *) LIBOBJS="$LIBOBJS basename.$ac_objext"
  5706. ;;
  5707. esac
  5708. case " $LIBOBJS " in
  5709. *" insque.$ac_objext "* ) ;;
  5710. *) LIBOBJS="$LIBOBJS insque.$ac_objext"
  5711. ;;
  5712. esac
  5713. case " $LIBOBJS " in
  5714. *" random.$ac_objext "* ) ;;
  5715. *) LIBOBJS="$LIBOBJS random.$ac_objext"
  5716. ;;
  5717. esac
  5718. case " $LIBOBJS " in
  5719. *" strdup.$ac_objext "* ) ;;
  5720. *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
  5721. ;;
  5722. esac
  5723. case " $LIBOBJS " in
  5724. *" vasprintf.$ac_objext "* ) ;;
  5725. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  5726. ;;
  5727. esac
  5728. for f in $funcs; do
  5729. case "$f" in
  5730. asprintf | basename | insque | random | strdup | vasprintf)
  5731. ;;
  5732. *)
  5733. n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5734. cat >>confdefs.h <<_ACEOF
  5735. #define $n 1
  5736. _ACEOF
  5737. ;;
  5738. esac
  5739. done
  5740. # newlib doesnt provide any of the variables in $vars, so we
  5741. # dont have to check them here.
  5742. # Of the functions in $checkfuncs, newlib only has strerror.
  5743. $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
  5744. setobjs=yes
  5745. fi
  5746. # If we are being configured for Mingw, we know which functions
  5747. # Mingw provides and which ones we will be expected to provide.
  5748. case "${host}" in
  5749. *-*-mingw*)
  5750. case " $LIBOBJS " in
  5751. *" asprintf.$ac_objext "* ) ;;
  5752. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  5753. ;;
  5754. esac
  5755. case " $LIBOBJS " in
  5756. *" basename.$ac_objext "* ) ;;
  5757. *) LIBOBJS="$LIBOBJS basename.$ac_objext"
  5758. ;;
  5759. esac
  5760. case " $LIBOBJS " in
  5761. *" bcmp.$ac_objext "* ) ;;
  5762. *) LIBOBJS="$LIBOBJS bcmp.$ac_objext"
  5763. ;;
  5764. esac
  5765. case " $LIBOBJS " in
  5766. *" bcopy.$ac_objext "* ) ;;
  5767. *) LIBOBJS="$LIBOBJS bcopy.$ac_objext"
  5768. ;;
  5769. esac
  5770. case " $LIBOBJS " in
  5771. *" bzero.$ac_objext "* ) ;;
  5772. *) LIBOBJS="$LIBOBJS bzero.$ac_objext"
  5773. ;;
  5774. esac
  5775. case " $LIBOBJS " in
  5776. *" clock.$ac_objext "* ) ;;
  5777. *) LIBOBJS="$LIBOBJS clock.$ac_objext"
  5778. ;;
  5779. esac
  5780. case " $LIBOBJS " in
  5781. *" ffs.$ac_objext "* ) ;;
  5782. *) LIBOBJS="$LIBOBJS ffs.$ac_objext"
  5783. ;;
  5784. esac
  5785. case " $LIBOBJS " in
  5786. *" getpagesize.$ac_objext "* ) ;;
  5787. *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext"
  5788. ;;
  5789. esac
  5790. case " $LIBOBJS " in
  5791. *" index.$ac_objext "* ) ;;
  5792. *) LIBOBJS="$LIBOBJS index.$ac_objext"
  5793. ;;
  5794. esac
  5795. case " $LIBOBJS " in
  5796. *" insque.$ac_objext "* ) ;;
  5797. *) LIBOBJS="$LIBOBJS insque.$ac_objext"
  5798. ;;
  5799. esac
  5800. case " $LIBOBJS " in
  5801. *" mempcpy.$ac_objext "* ) ;;
  5802. *) LIBOBJS="$LIBOBJS mempcpy.$ac_objext"
  5803. ;;
  5804. esac
  5805. case " $LIBOBJS " in
  5806. *" mkstemps.$ac_objext "* ) ;;
  5807. *) LIBOBJS="$LIBOBJS mkstemps.$ac_objext"
  5808. ;;
  5809. esac
  5810. case " $LIBOBJS " in
  5811. *" random.$ac_objext "* ) ;;
  5812. *) LIBOBJS="$LIBOBJS random.$ac_objext"
  5813. ;;
  5814. esac
  5815. case " $LIBOBJS " in
  5816. *" rindex.$ac_objext "* ) ;;
  5817. *) LIBOBJS="$LIBOBJS rindex.$ac_objext"
  5818. ;;
  5819. esac
  5820. case " $LIBOBJS " in
  5821. *" sigsetmask.$ac_objext "* ) ;;
  5822. *) LIBOBJS="$LIBOBJS sigsetmask.$ac_objext"
  5823. ;;
  5824. esac
  5825. case " $LIBOBJS " in
  5826. *" stpcpy.$ac_objext "* ) ;;
  5827. *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
  5828. ;;
  5829. esac
  5830. case " $LIBOBJS " in
  5831. *" stpncpy.$ac_objext "* ) ;;
  5832. *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext"
  5833. ;;
  5834. esac
  5835. case " $LIBOBJS " in
  5836. *" strndup.$ac_objext "* ) ;;
  5837. *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
  5838. ;;
  5839. esac
  5840. case " $LIBOBJS " in
  5841. *" strnlen.$ac_objext "* ) ;;
  5842. *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
  5843. ;;
  5844. esac
  5845. case " $LIBOBJS " in
  5846. *" strverscmp.$ac_objext "* ) ;;
  5847. *) LIBOBJS="$LIBOBJS strverscmp.$ac_objext"
  5848. ;;
  5849. esac
  5850. case " $LIBOBJS " in
  5851. *" vasprintf.$ac_objext "* ) ;;
  5852. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  5853. ;;
  5854. esac
  5855. case " $LIBOBJS " in
  5856. *" waitpid.$ac_objext "* ) ;;
  5857. *) LIBOBJS="$LIBOBJS waitpid.$ac_objext"
  5858. ;;
  5859. esac
  5860. for f in $funcs; do
  5861. case "$f" in
  5862. asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strnlen | strverscmp | vasprintf | waitpid)
  5863. ;;
  5864. *)
  5865. n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5866. cat >>confdefs.h <<_ACEOF
  5867. #define $n 1
  5868. _ACEOF
  5869. ;;
  5870. esac
  5871. done
  5872. # Mingw doesnt provide any of the variables in $vars, so we
  5873. # dont have to check them here.
  5874. # Of the functions in $checkfuncs, Mingw only has strerror.
  5875. $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
  5876. setobjs=yes
  5877. ;;
  5878. *-*-msdosdjgpp)
  5879. case " $LIBOBJS " in
  5880. *" vasprintf.$ac_objext "* ) ;;
  5881. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  5882. ;;
  5883. esac
  5884. case " $LIBOBJS " in
  5885. *" vsnprintf.$ac_objext "* ) ;;
  5886. *) LIBOBJS="$LIBOBJS vsnprintf.$ac_objext"
  5887. ;;
  5888. esac
  5889. case " $LIBOBJS " in
  5890. *" snprintf.$ac_objext "* ) ;;
  5891. *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
  5892. ;;
  5893. esac
  5894. case " $LIBOBJS " in
  5895. *" asprintf.$ac_objext "* ) ;;
  5896. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  5897. ;;
  5898. esac
  5899. for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
  5900. getcwd getpagesize getrusage gettimeofday \
  5901. index insque memchr memcmp memcpy memmove memset psignal \
  5902. putenv random rename rindex sbrk setenv stpcpy strcasecmp \
  5903. strchr strdup strerror strncasecmp strrchr strstr strtod \
  5904. strtol strtoul sysconf times tmpnam vfprintf vprintf \
  5905. vsprintf waitpid
  5906. do
  5907. n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5908. cat >>confdefs.h <<_ACEOF
  5909. #define $n 1
  5910. _ACEOF
  5911. done
  5912. setobjs=yes
  5913. ;;
  5914. esac
  5915. else
  5916. # Not a target library, so we set things up to run the test suite.
  5917. CHECK=really-check
  5918. fi
  5919. case "${host}" in
  5920. *-*-cygwin* | *-*-mingw*)
  5921. $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
  5922. $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
  5923. ;;
  5924. esac
  5925. if test -z "${setobjs}"; then
  5926. case "${host}" in
  5927. *-*-vxworks*)
  5928. # Handle VxWorks configuration specially, since on VxWorks the
  5929. # libraries are actually on the target board, not in the file
  5930. # system.
  5931. case " $LIBOBJS " in
  5932. *" basename.$ac_objext "* ) ;;
  5933. *) LIBOBJS="$LIBOBJS basename.$ac_objext"
  5934. ;;
  5935. esac
  5936. case " $LIBOBJS " in
  5937. *" getpagesize.$ac_objext "* ) ;;
  5938. *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext"
  5939. ;;
  5940. esac
  5941. case " $LIBOBJS " in
  5942. *" insque.$ac_objext "* ) ;;
  5943. *) LIBOBJS="$LIBOBJS insque.$ac_objext"
  5944. ;;
  5945. esac
  5946. case " $LIBOBJS " in
  5947. *" random.$ac_objext "* ) ;;
  5948. *) LIBOBJS="$LIBOBJS random.$ac_objext"
  5949. ;;
  5950. esac
  5951. case " $LIBOBJS " in
  5952. *" strcasecmp.$ac_objext "* ) ;;
  5953. *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
  5954. ;;
  5955. esac
  5956. case " $LIBOBJS " in
  5957. *" strncasecmp.$ac_objext "* ) ;;
  5958. *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
  5959. ;;
  5960. esac
  5961. case " $LIBOBJS " in
  5962. *" strdup.$ac_objext "* ) ;;
  5963. *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
  5964. ;;
  5965. esac
  5966. case " $LIBOBJS " in
  5967. *" vfork.$ac_objext "* ) ;;
  5968. *) LIBOBJS="$LIBOBJS vfork.$ac_objext"
  5969. ;;
  5970. esac
  5971. case " $LIBOBJS " in
  5972. *" waitpid.$ac_objext "* ) ;;
  5973. *) LIBOBJS="$LIBOBJS waitpid.$ac_objext"
  5974. ;;
  5975. esac
  5976. case " $LIBOBJS " in
  5977. *" vasprintf.$ac_objext "* ) ;;
  5978. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  5979. ;;
  5980. esac
  5981. for f in $funcs; do
  5982. case "$f" in
  5983. basename | getpagesize | insque | random | strcasecmp)
  5984. ;;
  5985. strncasecmp | strdup | vfork | waitpid | vasprintf)
  5986. ;;
  5987. *)
  5988. n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  5989. cat >>confdefs.h <<_ACEOF
  5990. #define $n 1
  5991. _ACEOF
  5992. ;;
  5993. esac
  5994. done
  5995. # VxWorks doesn't provide any of the variables in $vars, so we
  5996. # don't have to check them here.
  5997. # Of the functions in $checkfuncs, VxWorks only has strerror.
  5998. $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
  5999. setobjs=yes
  6000. ;;
  6001. esac
  6002. fi
  6003. if test -z "${setobjs}"; then
  6004. case "${host}" in
  6005. *-*-android*)
  6006. # On android, getpagesize is defined in unistd.h as a static inline
  6007. # function, which AC_CHECK_FUNCS does not handle properly.
  6008. ac_cv_func_getpagesize=yes
  6009. ;;
  6010. hppa*-*-hpux*)
  6011. # Replace system snprintf and vsnprintf with libiberty implementations.
  6012. case " $LIBOBJS " in
  6013. *" snprintf.$ac_objext "* ) ;;
  6014. *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
  6015. ;;
  6016. esac
  6017. case " $LIBOBJS " in
  6018. *" vsnprintf.$ac_objext "* ) ;;
  6019. *) LIBOBJS="$LIBOBJS vsnprintf.$ac_objext"
  6020. ;;
  6021. esac
  6022. ;;
  6023. *-*-mingw32*)
  6024. # Under mingw32, sys_nerr and sys_errlist exist, but they are
  6025. # macros, so the test below won't find them.
  6026. libiberty_cv_var_sys_nerr=yes
  6027. libiberty_cv_var_sys_errlist=yes
  6028. ;;
  6029. *-*-msdosdjgpp*)
  6030. # vfork and fork are stubs.
  6031. ac_cv_func_vfork_works=no
  6032. ;;
  6033. *-*-uwin*)
  6034. # Under some versions of uwin, vfork is notoriously buggy and the test
  6035. # can hang configure; on other versions, vfork exists just as a stub.
  6036. # FIXME: This should be removed once vfork in uwin's runtime is fixed.
  6037. ac_cv_func_vfork_works=no
  6038. # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
  6039. # macros (actually, these are imported from a DLL, but the end effect
  6040. # is the same), so the test below won't find them.
  6041. libiberty_cv_var_sys_nerr=yes
  6042. libiberty_cv_var_sys_errlist=yes
  6043. ;;
  6044. *-*-*vms*)
  6045. # Under VMS, vfork works very different than on Unix. The standard test
  6046. # won't work, and it isn't easily adaptable. It makes more sense to
  6047. # just force it.
  6048. ac_cv_func_vfork_works=yes
  6049. ;;
  6050. esac
  6051. # We haven't set the list of objects yet. Use the standard autoconf
  6052. # tests. This will only work if the compiler works.
  6053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  6054. $as_echo_n "checking for library containing strerror... " >&6; }
  6055. if ${ac_cv_search_strerror+:} false; then :
  6056. $as_echo_n "(cached) " >&6
  6057. else
  6058. ac_func_search_save_LIBS=$LIBS
  6059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6060. /* end confdefs.h. */
  6061. /* Override any GCC internal prototype to avoid an error.
  6062. Use char because int might match the return type of a GCC
  6063. builtin and then its argument prototype would still apply. */
  6064. #ifdef __cplusplus
  6065. extern "C"
  6066. #endif
  6067. char strerror ();
  6068. int
  6069. main ()
  6070. {
  6071. return strerror ();
  6072. ;
  6073. return 0;
  6074. }
  6075. _ACEOF
  6076. for ac_lib in '' cposix; do
  6077. if test -z "$ac_lib"; then
  6078. ac_res="none required"
  6079. else
  6080. ac_res=-l$ac_lib
  6081. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6082. fi
  6083. if test x$gcc_no_link = xyes; then
  6084. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  6085. fi
  6086. if ac_fn_c_try_link "$LINENO"; then :
  6087. ac_cv_search_strerror=$ac_res
  6088. fi
  6089. rm -f core conftest.err conftest.$ac_objext \
  6090. conftest$ac_exeext
  6091. if ${ac_cv_search_strerror+:} false; then :
  6092. break
  6093. fi
  6094. done
  6095. if ${ac_cv_search_strerror+:} false; then :
  6096. else
  6097. ac_cv_search_strerror=no
  6098. fi
  6099. rm conftest.$ac_ext
  6100. LIBS=$ac_func_search_save_LIBS
  6101. fi
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  6103. $as_echo "$ac_cv_search_strerror" >&6; }
  6104. ac_res=$ac_cv_search_strerror
  6105. if test "$ac_res" != no; then :
  6106. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6107. fi
  6108. for ac_func in $funcs
  6109. do :
  6110. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6111. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6112. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6113. cat >>confdefs.h <<_ACEOF
  6114. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6115. _ACEOF
  6116. else
  6117. case " $LIBOBJS " in
  6118. *" $ac_func.$ac_objext "* ) ;;
  6119. *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  6120. ;;
  6121. esac
  6122. fi
  6123. done
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloca needs Cray hooks" >&5
  6125. $as_echo_n "checking whether alloca needs Cray hooks... " >&6; }
  6126. if ${ac_cv_os_cray+:} false; then :
  6127. $as_echo_n "(cached) " >&6
  6128. else
  6129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6130. /* end confdefs.h. */
  6131. #if defined(CRAY) && ! defined(CRAY2)
  6132. webecray
  6133. #else
  6134. wenotbecray
  6135. #endif
  6136. _ACEOF
  6137. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6138. $EGREP "webecray" >/dev/null 2>&1; then :
  6139. ac_cv_os_cray=yes
  6140. else
  6141. ac_cv_os_cray=no
  6142. fi
  6143. rm -f conftest*
  6144. fi
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6146. $as_echo "$ac_cv_os_cray" >&6; }
  6147. if test $ac_cv_os_cray = yes; then
  6148. for ac_func in _getb67 GETB67 getb67; do
  6149. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6150. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6151. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6152. cat >>confdefs.h <<_ACEOF
  6153. #define CRAY_STACKSEG_END $ac_func
  6154. _ACEOF
  6155. break
  6156. fi
  6157. done
  6158. fi
  6159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6160. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6161. if ${ac_cv_c_stack_direction+:} false; then :
  6162. $as_echo_n "(cached) " >&6
  6163. else
  6164. if test "$cross_compiling" = yes; then :
  6165. ac_cv_c_stack_direction=0
  6166. else
  6167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6168. /* end confdefs.h. */
  6169. find_stack_direction ()
  6170. {
  6171. static char *addr = 0;
  6172. auto char dummy;
  6173. if (addr == 0)
  6174. {
  6175. addr = &dummy;
  6176. return find_stack_direction ();
  6177. }
  6178. else
  6179. return (&dummy > addr) ? 1 : -1;
  6180. }
  6181. main ()
  6182. {
  6183. exit (find_stack_direction() < 0);
  6184. }
  6185. _ACEOF
  6186. if ac_fn_c_try_run "$LINENO"; then :
  6187. ac_cv_c_stack_direction=1
  6188. else
  6189. ac_cv_c_stack_direction=-1
  6190. fi
  6191. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6192. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6193. fi
  6194. fi
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6196. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6197. cat >>confdefs.h <<_ACEOF
  6198. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6199. _ACEOF
  6200. for ac_header in vfork.h
  6201. do :
  6202. ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
  6203. if test "x$ac_cv_header_vfork_h" = xyes; then :
  6204. cat >>confdefs.h <<_ACEOF
  6205. #define HAVE_VFORK_H 1
  6206. _ACEOF
  6207. fi
  6208. done
  6209. for ac_func in fork vfork
  6210. do :
  6211. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6212. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6213. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6214. cat >>confdefs.h <<_ACEOF
  6215. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6216. _ACEOF
  6217. fi
  6218. done
  6219. if test "x$ac_cv_func_fork" = xyes; then
  6220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  6221. $as_echo_n "checking for working fork... " >&6; }
  6222. if ${ac_cv_func_fork_works+:} false; then :
  6223. $as_echo_n "(cached) " >&6
  6224. else
  6225. if test "$cross_compiling" = yes; then :
  6226. ac_cv_func_fork_works=cross
  6227. else
  6228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6229. /* end confdefs.h. */
  6230. $ac_includes_default
  6231. int
  6232. main ()
  6233. {
  6234. /* By Ruediger Kuhlmann. */
  6235. return fork () < 0;
  6236. ;
  6237. return 0;
  6238. }
  6239. _ACEOF
  6240. if ac_fn_c_try_run "$LINENO"; then :
  6241. ac_cv_func_fork_works=yes
  6242. else
  6243. ac_cv_func_fork_works=no
  6244. fi
  6245. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6246. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6247. fi
  6248. fi
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  6250. $as_echo "$ac_cv_func_fork_works" >&6; }
  6251. else
  6252. ac_cv_func_fork_works=$ac_cv_func_fork
  6253. fi
  6254. if test "x$ac_cv_func_fork_works" = xcross; then
  6255. case $host in
  6256. *-*-amigaos* | *-*-msdosdjgpp*)
  6257. # Override, as these systems have only a dummy fork() stub
  6258. ac_cv_func_fork_works=no
  6259. ;;
  6260. *)
  6261. ac_cv_func_fork_works=yes
  6262. ;;
  6263. esac
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  6265. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  6266. fi
  6267. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6268. if test "x$ac_cv_func_vfork" = xyes; then
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  6270. $as_echo_n "checking for working vfork... " >&6; }
  6271. if ${ac_cv_func_vfork_works+:} false; then :
  6272. $as_echo_n "(cached) " >&6
  6273. else
  6274. if test "$cross_compiling" = yes; then :
  6275. ac_cv_func_vfork_works=cross
  6276. else
  6277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6278. /* end confdefs.h. */
  6279. /* Thanks to Paul Eggert for this test. */
  6280. $ac_includes_default
  6281. #include <sys/wait.h>
  6282. #ifdef HAVE_VFORK_H
  6283. # include <vfork.h>
  6284. #endif
  6285. /* On some sparc systems, changes by the child to local and incoming
  6286. argument registers are propagated back to the parent. The compiler
  6287. is told about this with #include <vfork.h>, but some compilers
  6288. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  6289. static variable whose address is put into a register that is
  6290. clobbered by the vfork. */
  6291. static void
  6292. #ifdef __cplusplus
  6293. sparc_address_test (int arg)
  6294. # else
  6295. sparc_address_test (arg) int arg;
  6296. #endif
  6297. {
  6298. static pid_t child;
  6299. if (!child) {
  6300. child = vfork ();
  6301. if (child < 0) {
  6302. perror ("vfork");
  6303. _exit(2);
  6304. }
  6305. if (!child) {
  6306. arg = getpid();
  6307. write(-1, "", 0);
  6308. _exit (arg);
  6309. }
  6310. }
  6311. }
  6312. int
  6313. main ()
  6314. {
  6315. pid_t parent = getpid ();
  6316. pid_t child;
  6317. sparc_address_test (0);
  6318. child = vfork ();
  6319. if (child == 0) {
  6320. /* Here is another test for sparc vfork register problems. This
  6321. test uses lots of local variables, at least as many local
  6322. variables as main has allocated so far including compiler
  6323. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  6324. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  6325. reuse the register of parent for one of the local variables,
  6326. since it will think that parent can't possibly be used any more
  6327. in this routine. Assigning to the local variable will thus
  6328. munge parent in the parent process. */
  6329. pid_t
  6330. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  6331. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  6332. /* Convince the compiler that p..p7 are live; otherwise, it might
  6333. use the same hardware register for all 8 local variables. */
  6334. if (p != p1 || p != p2 || p != p3 || p != p4
  6335. || p != p5 || p != p6 || p != p7)
  6336. _exit(1);
  6337. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  6338. from child file descriptors. If the child closes a descriptor
  6339. before it execs or exits, this munges the parent's descriptor
  6340. as well. Test for this by closing stdout in the child. */
  6341. _exit(close(fileno(stdout)) != 0);
  6342. } else {
  6343. int status;
  6344. struct stat st;
  6345. while (wait(&status) != child)
  6346. ;
  6347. return (
  6348. /* Was there some problem with vforking? */
  6349. child < 0
  6350. /* Did the child fail? (This shouldn't happen.) */
  6351. || status
  6352. /* Did the vfork/compiler bug occur? */
  6353. || parent != getpid()
  6354. /* Did the file descriptor bug occur? */
  6355. || fstat(fileno(stdout), &st) != 0
  6356. );
  6357. }
  6358. }
  6359. _ACEOF
  6360. if ac_fn_c_try_run "$LINENO"; then :
  6361. ac_cv_func_vfork_works=yes
  6362. else
  6363. ac_cv_func_vfork_works=no
  6364. fi
  6365. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6366. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6367. fi
  6368. fi
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  6370. $as_echo "$ac_cv_func_vfork_works" >&6; }
  6371. fi;
  6372. if test "x$ac_cv_func_fork_works" = xcross; then
  6373. ac_cv_func_vfork_works=$ac_cv_func_vfork
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  6375. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  6376. fi
  6377. if test "x$ac_cv_func_vfork_works" = xyes; then
  6378. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  6379. else
  6380. $as_echo "#define vfork fork" >>confdefs.h
  6381. fi
  6382. if test "x$ac_cv_func_fork_works" = xyes; then
  6383. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  6384. fi
  6385. if test $ac_cv_func_vfork_works = no; then
  6386. case " $LIBOBJS " in
  6387. *" vfork.$ac_objext "* ) ;;
  6388. *) LIBOBJS="$LIBOBJS vfork.$ac_objext"
  6389. ;;
  6390. esac
  6391. fi
  6392. # We only need _doprnt if we might use it to implement v*printf.
  6393. if test $ac_cv_func_vprintf != yes \
  6394. || test $ac_cv_func_vfprintf != yes \
  6395. || test $ac_cv_func_vsprintf != yes; then
  6396. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  6397. if test "x$ac_cv_func__doprnt" = xyes; then :
  6398. $as_echo "#define HAVE__DOPRNT 1" >>confdefs.h
  6399. else
  6400. case " $LIBOBJS " in
  6401. *" _doprnt.$ac_objext "* ) ;;
  6402. *) LIBOBJS="$LIBOBJS _doprnt.$ac_objext"
  6403. ;;
  6404. esac
  6405. fi
  6406. else
  6407. for ac_func in _doprnt
  6408. do :
  6409. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  6410. if test "x$ac_cv_func__doprnt" = xyes; then :
  6411. cat >>confdefs.h <<_ACEOF
  6412. #define HAVE__DOPRNT 1
  6413. _ACEOF
  6414. fi
  6415. done
  6416. fi
  6417. for v in $vars; do
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $v" >&5
  6419. $as_echo_n "checking for $v... " >&6; }
  6420. if eval \${libiberty_cv_var_$v+:} false; then :
  6421. $as_echo_n "(cached) " >&6
  6422. else
  6423. if test x$gcc_no_link = xyes; then
  6424. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  6425. fi
  6426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6427. /* end confdefs.h. */
  6428. extern int $v [];
  6429. int
  6430. main ()
  6431. {
  6432. if ($v [0]) return 1;
  6433. ;
  6434. return 0;
  6435. }
  6436. _ACEOF
  6437. if ac_fn_c_try_link "$LINENO"; then :
  6438. eval "libiberty_cv_var_$v=yes"
  6439. else
  6440. eval "libiberty_cv_var_$v=no"
  6441. fi
  6442. rm -f core conftest.err conftest.$ac_objext \
  6443. conftest$ac_exeext conftest.$ac_ext
  6444. fi
  6445. if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6447. $as_echo "yes" >&6; }
  6448. n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6449. cat >>confdefs.h <<_ACEOF
  6450. #define $n 1
  6451. _ACEOF
  6452. else
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6454. $as_echo "no" >&6; }
  6455. fi
  6456. done
  6457. # special check for _system_configuration because AIX <4.3.2 do not
  6458. # contain the `physmem' member.
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
  6460. $as_echo_n "checking for external symbol _system_configuration... " >&6; }
  6461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6462. /* end confdefs.h. */
  6463. #include <sys/systemcfg.h>
  6464. int
  6465. main ()
  6466. {
  6467. double x = _system_configuration.physmem;
  6468. ;
  6469. return 0;
  6470. }
  6471. _ACEOF
  6472. if ac_fn_c_try_compile "$LINENO"; then :
  6473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6474. $as_echo "yes" >&6; }
  6475. $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
  6476. else
  6477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6478. $as_echo "no" >&6; }
  6479. fi
  6480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6481. for ac_func in $checkfuncs
  6482. do :
  6483. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6484. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6485. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6486. cat >>confdefs.h <<_ACEOF
  6487. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6488. _ACEOF
  6489. fi
  6490. done
  6491. as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
  6492. ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
  6493. if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
  6494. ac_have_decl=1
  6495. else
  6496. ac_have_decl=0
  6497. fi
  6498. cat >>confdefs.h <<_ACEOF
  6499. #define HAVE_DECL_BASENAME $ac_have_decl
  6500. _ACEOF
  6501. ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
  6502. if test "x$ac_cv_have_decl_ffs" = xyes; then :
  6503. ac_have_decl=1
  6504. else
  6505. ac_have_decl=0
  6506. fi
  6507. cat >>confdefs.h <<_ACEOF
  6508. #define HAVE_DECL_FFS $ac_have_decl
  6509. _ACEOF
  6510. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  6511. if test "x$ac_cv_have_decl_asprintf" = xyes; then :
  6512. ac_have_decl=1
  6513. else
  6514. ac_have_decl=0
  6515. fi
  6516. cat >>confdefs.h <<_ACEOF
  6517. #define HAVE_DECL_ASPRINTF $ac_have_decl
  6518. _ACEOF
  6519. ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  6520. if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
  6521. ac_have_decl=1
  6522. else
  6523. ac_have_decl=0
  6524. fi
  6525. cat >>confdefs.h <<_ACEOF
  6526. #define HAVE_DECL_VASPRINTF $ac_have_decl
  6527. _ACEOF
  6528. ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
  6529. if test "x$ac_cv_have_decl_snprintf" = xyes; then :
  6530. ac_have_decl=1
  6531. else
  6532. ac_have_decl=0
  6533. fi
  6534. cat >>confdefs.h <<_ACEOF
  6535. #define HAVE_DECL_SNPRINTF $ac_have_decl
  6536. _ACEOF
  6537. ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  6538. if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
  6539. ac_have_decl=1
  6540. else
  6541. ac_have_decl=0
  6542. fi
  6543. cat >>confdefs.h <<_ACEOF
  6544. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  6545. _ACEOF
  6546. ac_fn_c_check_decl "$LINENO" "calloc" "ac_cv_have_decl_calloc" "$ac_includes_default"
  6547. if test "x$ac_cv_have_decl_calloc" = xyes; then :
  6548. ac_have_decl=1
  6549. else
  6550. ac_have_decl=0
  6551. fi
  6552. cat >>confdefs.h <<_ACEOF
  6553. #define HAVE_DECL_CALLOC $ac_have_decl
  6554. _ACEOF
  6555. ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
  6556. if test "x$ac_cv_have_decl_getenv" = xyes; then :
  6557. ac_have_decl=1
  6558. else
  6559. ac_have_decl=0
  6560. fi
  6561. cat >>confdefs.h <<_ACEOF
  6562. #define HAVE_DECL_GETENV $ac_have_decl
  6563. _ACEOF
  6564. ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
  6565. if test "x$ac_cv_have_decl_getopt" = xyes; then :
  6566. ac_have_decl=1
  6567. else
  6568. ac_have_decl=0
  6569. fi
  6570. cat >>confdefs.h <<_ACEOF
  6571. #define HAVE_DECL_GETOPT $ac_have_decl
  6572. _ACEOF
  6573. ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
  6574. if test "x$ac_cv_have_decl_malloc" = xyes; then :
  6575. ac_have_decl=1
  6576. else
  6577. ac_have_decl=0
  6578. fi
  6579. cat >>confdefs.h <<_ACEOF
  6580. #define HAVE_DECL_MALLOC $ac_have_decl
  6581. _ACEOF
  6582. ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
  6583. if test "x$ac_cv_have_decl_realloc" = xyes; then :
  6584. ac_have_decl=1
  6585. else
  6586. ac_have_decl=0
  6587. fi
  6588. cat >>confdefs.h <<_ACEOF
  6589. #define HAVE_DECL_REALLOC $ac_have_decl
  6590. _ACEOF
  6591. case "${host}" in
  6592. *-*-darwin*) ;; # Darwin's sbrk implementation is deprecated.
  6593. *) ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
  6594. if test "x$ac_cv_have_decl_sbrk" = xyes; then :
  6595. ac_have_decl=1
  6596. else
  6597. ac_have_decl=0
  6598. fi
  6599. cat >>confdefs.h <<_ACEOF
  6600. #define HAVE_DECL_SBRK $ac_have_decl
  6601. _ACEOF
  6602. ;;
  6603. esac
  6604. ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
  6605. if test "x$ac_cv_have_decl_strtol" = xyes; then :
  6606. ac_have_decl=1
  6607. else
  6608. ac_have_decl=0
  6609. fi
  6610. cat >>confdefs.h <<_ACEOF
  6611. #define HAVE_DECL_STRTOL $ac_have_decl
  6612. _ACEOF
  6613. ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
  6614. if test "x$ac_cv_have_decl_strtoul" = xyes; then :
  6615. ac_have_decl=1
  6616. else
  6617. ac_have_decl=0
  6618. fi
  6619. cat >>confdefs.h <<_ACEOF
  6620. #define HAVE_DECL_STRTOUL $ac_have_decl
  6621. _ACEOF
  6622. ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
  6623. if test "x$ac_cv_have_decl_strtoll" = xyes; then :
  6624. ac_have_decl=1
  6625. else
  6626. ac_have_decl=0
  6627. fi
  6628. cat >>confdefs.h <<_ACEOF
  6629. #define HAVE_DECL_STRTOLL $ac_have_decl
  6630. _ACEOF
  6631. ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
  6632. if test "x$ac_cv_have_decl_strtoull" = xyes; then :
  6633. ac_have_decl=1
  6634. else
  6635. ac_have_decl=0
  6636. fi
  6637. cat >>confdefs.h <<_ACEOF
  6638. #define HAVE_DECL_STRTOULL $ac_have_decl
  6639. _ACEOF
  6640. ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
  6641. if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
  6642. ac_have_decl=1
  6643. else
  6644. ac_have_decl=0
  6645. fi
  6646. cat >>confdefs.h <<_ACEOF
  6647. #define HAVE_DECL_STRVERSCMP $ac_have_decl
  6648. _ACEOF
  6649. ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
  6650. if test "x$ac_cv_have_decl_strnlen" = xyes; then :
  6651. ac_have_decl=1
  6652. else
  6653. ac_have_decl=0
  6654. fi
  6655. cat >>confdefs.h <<_ACEOF
  6656. #define HAVE_DECL_STRNLEN $ac_have_decl
  6657. _ACEOF
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether canonicalize_file_name must be declared" >&5
  6659. $as_echo_n "checking whether canonicalize_file_name must be declared... " >&6; }
  6660. if ${libiberty_cv_decl_needed_canonicalize_file_name+:} false; then :
  6661. $as_echo_n "(cached) " >&6
  6662. else
  6663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6664. /* end confdefs.h. */
  6665. #include "confdefs.h"
  6666. #include <stdio.h>
  6667. #ifdef HAVE_STRING_H
  6668. #include <string.h>
  6669. #else
  6670. #ifdef HAVE_STRINGS_H
  6671. #include <strings.h>
  6672. #endif
  6673. #endif
  6674. #ifdef HAVE_STDLIB_H
  6675. #include <stdlib.h>
  6676. #endif
  6677. #ifdef HAVE_UNISTD_H
  6678. #include <unistd.h>
  6679. #endif
  6680. int
  6681. main ()
  6682. {
  6683. char *(*pfn) = (char *(*)) canonicalize_file_name
  6684. ;
  6685. return 0;
  6686. }
  6687. _ACEOF
  6688. if ac_fn_c_try_compile "$LINENO"; then :
  6689. libiberty_cv_decl_needed_canonicalize_file_name=no
  6690. else
  6691. libiberty_cv_decl_needed_canonicalize_file_name=yes
  6692. fi
  6693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6694. fi
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
  6696. $as_echo "$libiberty_cv_decl_needed_canonicalize_file_name" >&6; }
  6697. if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
  6698. $as_echo "#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1" >>confdefs.h
  6699. fi
  6700. fi
  6701. # Figure out which version of pexecute to use.
  6702. case "${host}" in
  6703. *-*-mingw* | *-*-winnt*) pexecute=pex-win32 ;;
  6704. *-*-msdosdjgpp*) pexecute=pex-djgpp ;;
  6705. *-*-msdos*) pexecute=pex-msdos ;;
  6706. *) pexecute=pex-unix ;;
  6707. esac
  6708. for ac_header in $ac_header_list
  6709. do :
  6710. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6711. ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
  6712. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6713. cat >>confdefs.h <<_ACEOF
  6714. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6715. _ACEOF
  6716. fi
  6717. done
  6718. if test x$gcc_no_link = xyes; then
  6719. if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
  6720. ac_cv_func_mmap_fixed_mapped=no
  6721. fi
  6722. fi
  6723. if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
  6724. for ac_func in getpagesize
  6725. do :
  6726. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  6727. if test "x$ac_cv_func_getpagesize" = xyes; then :
  6728. cat >>confdefs.h <<_ACEOF
  6729. #define HAVE_GETPAGESIZE 1
  6730. _ACEOF
  6731. fi
  6732. done
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  6734. $as_echo_n "checking for working mmap... " >&6; }
  6735. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  6736. $as_echo_n "(cached) " >&6
  6737. else
  6738. if test "$cross_compiling" = yes; then :
  6739. ac_cv_func_mmap_fixed_mapped=no
  6740. else
  6741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6742. /* end confdefs.h. */
  6743. $ac_includes_default
  6744. /* malloc might have been renamed as rpl_malloc. */
  6745. #undef malloc
  6746. /* Thanks to Mike Haertel and Jim Avera for this test.
  6747. Here is a matrix of mmap possibilities:
  6748. mmap private not fixed
  6749. mmap private fixed at somewhere currently unmapped
  6750. mmap private fixed at somewhere already mapped
  6751. mmap shared not fixed
  6752. mmap shared fixed at somewhere currently unmapped
  6753. mmap shared fixed at somewhere already mapped
  6754. For private mappings, we should verify that changes cannot be read()
  6755. back from the file, nor mmap's back from the file at a different
  6756. address. (There have been systems where private was not correctly
  6757. implemented like the infamous i386 svr4.0, and systems where the
  6758. VM page cache was not coherent with the file system buffer cache
  6759. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6760. For shared mappings, we should conversely verify that changes get
  6761. propagated back to all the places they're supposed to be.
  6762. Grep wants private fixed already mapped.
  6763. The main things grep needs to know about mmap are:
  6764. * does it exist and is it safe to write into the mmap'd area
  6765. * how to use it (BSD variants) */
  6766. #include <fcntl.h>
  6767. #include <sys/mman.h>
  6768. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  6769. char *malloc ();
  6770. #endif
  6771. /* This mess was copied from the GNU getpagesize.h. */
  6772. #ifndef HAVE_GETPAGESIZE
  6773. # ifdef _SC_PAGESIZE
  6774. # define getpagesize() sysconf(_SC_PAGESIZE)
  6775. # else /* no _SC_PAGESIZE */
  6776. # ifdef HAVE_SYS_PARAM_H
  6777. # include <sys/param.h>
  6778. # ifdef EXEC_PAGESIZE
  6779. # define getpagesize() EXEC_PAGESIZE
  6780. # else /* no EXEC_PAGESIZE */
  6781. # ifdef NBPG
  6782. # define getpagesize() NBPG * CLSIZE
  6783. # ifndef CLSIZE
  6784. # define CLSIZE 1
  6785. # endif /* no CLSIZE */
  6786. # else /* no NBPG */
  6787. # ifdef NBPC
  6788. # define getpagesize() NBPC
  6789. # else /* no NBPC */
  6790. # ifdef PAGESIZE
  6791. # define getpagesize() PAGESIZE
  6792. # endif /* PAGESIZE */
  6793. # endif /* no NBPC */
  6794. # endif /* no NBPG */
  6795. # endif /* no EXEC_PAGESIZE */
  6796. # else /* no HAVE_SYS_PARAM_H */
  6797. # define getpagesize() 8192 /* punt totally */
  6798. # endif /* no HAVE_SYS_PARAM_H */
  6799. # endif /* no _SC_PAGESIZE */
  6800. #endif /* no HAVE_GETPAGESIZE */
  6801. int
  6802. main ()
  6803. {
  6804. char *data, *data2, *data3;
  6805. const char *cdata2;
  6806. int i, pagesize;
  6807. int fd, fd2;
  6808. pagesize = getpagesize ();
  6809. /* First, make a file with some known garbage in it. */
  6810. data = (char *) malloc (pagesize);
  6811. if (!data)
  6812. return 1;
  6813. for (i = 0; i < pagesize; ++i)
  6814. *(data + i) = rand ();
  6815. umask (0);
  6816. fd = creat ("conftest.mmap", 0600);
  6817. if (fd < 0)
  6818. return 2;
  6819. if (write (fd, data, pagesize) != pagesize)
  6820. return 3;
  6821. close (fd);
  6822. /* Next, check that the tail of a page is zero-filled. File must have
  6823. non-zero length, otherwise we risk SIGBUS for entire page. */
  6824. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  6825. if (fd2 < 0)
  6826. return 4;
  6827. cdata2 = "";
  6828. if (write (fd2, cdata2, 1) != 1)
  6829. return 5;
  6830. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  6831. if (data2 == MAP_FAILED)
  6832. return 6;
  6833. for (i = 0; i < pagesize; ++i)
  6834. if (*(data2 + i))
  6835. return 7;
  6836. close (fd2);
  6837. if (munmap (data2, pagesize))
  6838. return 8;
  6839. /* Next, try to mmap the file at a fixed address which already has
  6840. something else allocated at it. If we can, also make sure that
  6841. we see the same garbage. */
  6842. fd = open ("conftest.mmap", O_RDWR);
  6843. if (fd < 0)
  6844. return 9;
  6845. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6846. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6847. return 10;
  6848. for (i = 0; i < pagesize; ++i)
  6849. if (*(data + i) != *(data2 + i))
  6850. return 11;
  6851. /* Finally, make sure that changes to the mapped area do not
  6852. percolate back to the file as seen by read(). (This is a bug on
  6853. some variants of i386 svr4.0.) */
  6854. for (i = 0; i < pagesize; ++i)
  6855. *(data2 + i) = *(data2 + i) + 1;
  6856. data3 = (char *) malloc (pagesize);
  6857. if (!data3)
  6858. return 12;
  6859. if (read (fd, data3, pagesize) != pagesize)
  6860. return 13;
  6861. for (i = 0; i < pagesize; ++i)
  6862. if (*(data + i) != *(data3 + i))
  6863. return 14;
  6864. close (fd);
  6865. return 0;
  6866. }
  6867. _ACEOF
  6868. if ac_fn_c_try_run "$LINENO"; then :
  6869. ac_cv_func_mmap_fixed_mapped=yes
  6870. else
  6871. ac_cv_func_mmap_fixed_mapped=no
  6872. fi
  6873. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6874. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6875. fi
  6876. fi
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  6878. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  6879. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  6880. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  6881. fi
  6882. rm -f conftest.mmap conftest.txt
  6883. fi
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strncmp" >&5
  6885. $as_echo_n "checking for working strncmp... " >&6; }
  6886. if ${ac_cv_func_strncmp_works+:} false; then :
  6887. $as_echo_n "(cached) " >&6
  6888. else
  6889. if test "$cross_compiling" = yes; then :
  6890. ac_cv_func_strncmp_works=yes
  6891. else
  6892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6893. /* end confdefs.h. */
  6894. /* Test by Jim Wilson and Kaveh Ghazi.
  6895. Check whether strncmp reads past the end of its string parameters. */
  6896. #include <sys/types.h>
  6897. #ifdef HAVE_FCNTL_H
  6898. #include <fcntl.h>
  6899. #endif
  6900. #ifdef HAVE_SYS_MMAN_H
  6901. #include <sys/mman.h>
  6902. #endif
  6903. #ifndef MAP_ANON
  6904. #ifdef MAP_ANONYMOUS
  6905. #define MAP_ANON MAP_ANONYMOUS
  6906. #else
  6907. #define MAP_ANON MAP_FILE
  6908. #endif
  6909. #endif
  6910. #ifndef MAP_FILE
  6911. #define MAP_FILE 0
  6912. #endif
  6913. #ifndef O_RDONLY
  6914. #define O_RDONLY 0
  6915. #endif
  6916. #define MAP_LEN 0x10000
  6917. main ()
  6918. {
  6919. #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
  6920. char *p;
  6921. int dev_zero;
  6922. dev_zero = open ("/dev/zero", O_RDONLY);
  6923. if (dev_zero < 0)
  6924. exit (1);
  6925. p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
  6926. MAP_ANON|MAP_PRIVATE, dev_zero, 0);
  6927. if (p == (char *)-1)
  6928. p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
  6929. MAP_ANON|MAP_PRIVATE, -1, 0);
  6930. if (p == (char *)-1)
  6931. exit (2);
  6932. else
  6933. {
  6934. char *string = "__si_type_info";
  6935. char *q = (char *) p + MAP_LEN - strlen (string) - 2;
  6936. char *r = (char *) p + 0xe;
  6937. strcpy (q, string);
  6938. strcpy (r, string);
  6939. strncmp (r, q, 14);
  6940. }
  6941. #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
  6942. exit (0);
  6943. }
  6944. _ACEOF
  6945. if ac_fn_c_try_run "$LINENO"; then :
  6946. ac_cv_func_strncmp_works=yes
  6947. else
  6948. ac_cv_func_strncmp_works=no
  6949. fi
  6950. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6951. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6952. fi
  6953. rm -f core core.* *.core
  6954. fi
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strncmp_works" >&5
  6956. $as_echo "$ac_cv_func_strncmp_works" >&6; }
  6957. if test $ac_cv_func_strncmp_works = no ; then
  6958. case " $LIBOBJS " in
  6959. *" strncmp.$ac_objext "* ) ;;
  6960. *) LIBOBJS="$LIBOBJS strncmp.$ac_objext"
  6961. ;;
  6962. esac
  6963. fi
  6964. # Install a library built with a cross compiler in $(tooldir) rather
  6965. # than $(libdir).
  6966. if test -z "${with_cross_host}"; then
  6967. INSTALL_DEST=libdir
  6968. else
  6969. INSTALL_DEST=tooldir
  6970. fi
  6971. L=""
  6972. for l in x $LIBOBJS; do
  6973. case $l in
  6974. x) ;;
  6975. *) L="$L ./$l" ;;
  6976. esac
  6977. done
  6978. LIBOBJS="$L"
  6979. # We need multilib support, but only if configuring for the target.
  6980. ac_config_files="$ac_config_files Makefile testsuite/Makefile"
  6981. ac_config_commands="$ac_config_commands default"
  6982. cat >confcache <<\_ACEOF
  6983. # This file is a shell script that caches the results of configure
  6984. # tests run on this system so they can be shared between configure
  6985. # scripts and configure runs, see configure's option --config-cache.
  6986. # It is not useful on other systems. If it contains results you don't
  6987. # want to keep, you may remove or edit it.
  6988. #
  6989. # config.status only pays attention to the cache file if you give it
  6990. # the --recheck option to rerun configure.
  6991. #
  6992. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6993. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6994. # following values.
  6995. _ACEOF
  6996. # The following way of writing the cache mishandles newlines in values,
  6997. # but we know of no workaround that is simple, portable, and efficient.
  6998. # So, we kill variables containing newlines.
  6999. # Ultrix sh set writes to stderr and can't be redirected directly,
  7000. # and sets the high bit in the cache file unless we assign to the vars.
  7001. (
  7002. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7003. eval ac_val=\$$ac_var
  7004. case $ac_val in #(
  7005. *${as_nl}*)
  7006. case $ac_var in #(
  7007. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7008. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7009. esac
  7010. case $ac_var in #(
  7011. _ | IFS | as_nl) ;; #(
  7012. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7013. *) { eval $ac_var=; unset $ac_var;} ;;
  7014. esac ;;
  7015. esac
  7016. done
  7017. (set) 2>&1 |
  7018. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7019. *${as_nl}ac_space=\ *)
  7020. # `set' does not quote correctly, so add quotes: double-quote
  7021. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7022. sed -n \
  7023. "s/'/'\\\\''/g;
  7024. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7025. ;; #(
  7026. *)
  7027. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7028. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7029. ;;
  7030. esac |
  7031. sort
  7032. ) |
  7033. sed '
  7034. /^ac_cv_env_/b end
  7035. t clear
  7036. :clear
  7037. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7038. t end
  7039. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7040. :end' >>confcache
  7041. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7042. if test -w "$cache_file"; then
  7043. if test "x$cache_file" != "x/dev/null"; then
  7044. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7045. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7046. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7047. cat confcache >"$cache_file"
  7048. else
  7049. case $cache_file in #(
  7050. */* | ?:*)
  7051. mv -f confcache "$cache_file"$$ &&
  7052. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7053. *)
  7054. mv -f confcache "$cache_file" ;;
  7055. esac
  7056. fi
  7057. fi
  7058. else
  7059. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7060. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7061. fi
  7062. fi
  7063. rm -f confcache
  7064. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7065. # Let make expand exec_prefix.
  7066. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7067. DEFS=-DHAVE_CONFIG_H
  7068. ac_libobjs=
  7069. ac_ltlibobjs=
  7070. U=
  7071. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7072. # 1. Remove the extension, and $U if already installed.
  7073. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  7074. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  7075. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  7076. # will be set to the directory where LIBOBJS objects are built.
  7077. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  7078. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  7079. done
  7080. LIBOBJS=$ac_libobjs
  7081. LTLIBOBJS=$ac_ltlibobjs
  7082. : "${CONFIG_STATUS=./config.status}"
  7083. ac_write_fail=0
  7084. ac_clean_files_save=$ac_clean_files
  7085. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7086. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  7087. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7088. as_write_fail=0
  7089. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  7090. #! $SHELL
  7091. # Generated by $as_me.
  7092. # Run this file to recreate the current configuration.
  7093. # Compiler output produced by configure, useful for debugging
  7094. # configure, is in config.log if it exists.
  7095. debug=false
  7096. ac_cs_recheck=false
  7097. ac_cs_silent=false
  7098. SHELL=\${CONFIG_SHELL-$SHELL}
  7099. export SHELL
  7100. _ASEOF
  7101. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  7102. ## -------------------- ##
  7103. ## M4sh Initialization. ##
  7104. ## -------------------- ##
  7105. # Be more Bourne compatible
  7106. DUALCASE=1; export DUALCASE # for MKS sh
  7107. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  7108. emulate sh
  7109. NULLCMD=:
  7110. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  7111. # is contrary to our usage. Disable this feature.
  7112. alias -g '${1+"$@"}'='"$@"'
  7113. setopt NO_GLOB_SUBST
  7114. else
  7115. case `(set -o) 2>/dev/null` in #(
  7116. *posix*) :
  7117. set -o posix ;; #(
  7118. *) :
  7119. ;;
  7120. esac
  7121. fi
  7122. as_nl='
  7123. '
  7124. export as_nl
  7125. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  7126. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7127. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  7128. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  7129. # Prefer a ksh shell builtin over an external printf program on Solaris,
  7130. # but without wasting forks for bash or zsh.
  7131. if test -z "$BASH_VERSION$ZSH_VERSION" \
  7132. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  7133. as_echo='print -r --'
  7134. as_echo_n='print -rn --'
  7135. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  7136. as_echo='printf %s\n'
  7137. as_echo_n='printf %s'
  7138. else
  7139. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  7140. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  7141. as_echo_n='/usr/ucb/echo -n'
  7142. else
  7143. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  7144. as_echo_n_body='eval
  7145. arg=$1;
  7146. case $arg in #(
  7147. *"$as_nl"*)
  7148. expr "X$arg" : "X\\(.*\\)$as_nl";
  7149. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  7150. esac;
  7151. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  7152. '
  7153. export as_echo_n_body
  7154. as_echo_n='sh -c $as_echo_n_body as_echo'
  7155. fi
  7156. export as_echo_body
  7157. as_echo='sh -c $as_echo_body as_echo'
  7158. fi
  7159. # The user is always right.
  7160. if test "${PATH_SEPARATOR+set}" != set; then
  7161. PATH_SEPARATOR=:
  7162. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  7163. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  7164. PATH_SEPARATOR=';'
  7165. }
  7166. fi
  7167. # IFS
  7168. # We need space, tab and new line, in precisely that order. Quoting is
  7169. # there to prevent editors from complaining about space-tab.
  7170. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  7171. # splitting by setting IFS to empty value.)
  7172. IFS=" "" $as_nl"
  7173. # Find who we are. Look in the path if we contain no directory separator.
  7174. as_myself=
  7175. case $0 in #((
  7176. *[\\/]* ) as_myself=$0 ;;
  7177. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7178. for as_dir in $PATH
  7179. do
  7180. IFS=$as_save_IFS
  7181. test -z "$as_dir" && as_dir=.
  7182. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7183. done
  7184. IFS=$as_save_IFS
  7185. ;;
  7186. esac
  7187. # We did not find ourselves, most probably we were run as `sh COMMAND'
  7188. # in which case we are not to be found in the path.
  7189. if test "x$as_myself" = x; then
  7190. as_myself=$0
  7191. fi
  7192. if test ! -f "$as_myself"; then
  7193. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  7194. exit 1
  7195. fi
  7196. # Unset variables that we do not need and which cause bugs (e.g. in
  7197. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  7198. # suppresses any "Segmentation fault" message there. '((' could
  7199. # trigger a bug in pdksh 5.2.14.
  7200. for as_var in BASH_ENV ENV MAIL MAILPATH
  7201. do eval test x\${$as_var+set} = xset \
  7202. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  7203. done
  7204. PS1='$ '
  7205. PS2='> '
  7206. PS4='+ '
  7207. # NLS nuisances.
  7208. LC_ALL=C
  7209. export LC_ALL
  7210. LANGUAGE=C
  7211. export LANGUAGE
  7212. # CDPATH.
  7213. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7214. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  7215. # ----------------------------------------
  7216. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  7217. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  7218. # script with STATUS, using 1 if that was 0.
  7219. as_fn_error ()
  7220. {
  7221. as_status=$1; test $as_status -eq 0 && as_status=1
  7222. if test "$4"; then
  7223. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7224. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  7225. fi
  7226. $as_echo "$as_me: error: $2" >&2
  7227. as_fn_exit $as_status
  7228. } # as_fn_error
  7229. # as_fn_set_status STATUS
  7230. # -----------------------
  7231. # Set $? to STATUS, without forking.
  7232. as_fn_set_status ()
  7233. {
  7234. return $1
  7235. } # as_fn_set_status
  7236. # as_fn_exit STATUS
  7237. # -----------------
  7238. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  7239. as_fn_exit ()
  7240. {
  7241. set +e
  7242. as_fn_set_status $1
  7243. exit $1
  7244. } # as_fn_exit
  7245. # as_fn_unset VAR
  7246. # ---------------
  7247. # Portably unset VAR.
  7248. as_fn_unset ()
  7249. {
  7250. { eval $1=; unset $1;}
  7251. }
  7252. as_unset=as_fn_unset
  7253. # as_fn_append VAR VALUE
  7254. # ----------------------
  7255. # Append the text in VALUE to the end of the definition contained in VAR. Take
  7256. # advantage of any shell optimizations that allow amortized linear growth over
  7257. # repeated appends, instead of the typical quadratic growth present in naive
  7258. # implementations.
  7259. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  7260. eval 'as_fn_append ()
  7261. {
  7262. eval $1+=\$2
  7263. }'
  7264. else
  7265. as_fn_append ()
  7266. {
  7267. eval $1=\$$1\$2
  7268. }
  7269. fi # as_fn_append
  7270. # as_fn_arith ARG...
  7271. # ------------------
  7272. # Perform arithmetic evaluation on the ARGs, and store the result in the
  7273. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  7274. # must be portable across $(()) and expr.
  7275. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  7276. eval 'as_fn_arith ()
  7277. {
  7278. as_val=$(( $* ))
  7279. }'
  7280. else
  7281. as_fn_arith ()
  7282. {
  7283. as_val=`expr "$@" || test $? -eq 1`
  7284. }
  7285. fi # as_fn_arith
  7286. if expr a : '\(a\)' >/dev/null 2>&1 &&
  7287. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  7288. as_expr=expr
  7289. else
  7290. as_expr=false
  7291. fi
  7292. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  7293. as_basename=basename
  7294. else
  7295. as_basename=false
  7296. fi
  7297. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  7298. as_dirname=dirname
  7299. else
  7300. as_dirname=false
  7301. fi
  7302. as_me=`$as_basename -- "$0" ||
  7303. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7304. X"$0" : 'X\(//\)$' \| \
  7305. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  7306. $as_echo X/"$0" |
  7307. sed '/^.*\/\([^/][^/]*\)\/*$/{
  7308. s//\1/
  7309. q
  7310. }
  7311. /^X\/\(\/\/\)$/{
  7312. s//\1/
  7313. q
  7314. }
  7315. /^X\/\(\/\).*/{
  7316. s//\1/
  7317. q
  7318. }
  7319. s/.*/./; q'`
  7320. # Avoid depending upon Character Ranges.
  7321. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7322. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7323. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7324. as_cr_digits='0123456789'
  7325. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7326. ECHO_C= ECHO_N= ECHO_T=
  7327. case `echo -n x` in #(((((
  7328. -n*)
  7329. case `echo 'xy\c'` in
  7330. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  7331. xy) ECHO_C='\c';;
  7332. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  7333. ECHO_T=' ';;
  7334. esac;;
  7335. *)
  7336. ECHO_N='-n';;
  7337. esac
  7338. rm -f conf$$ conf$$.exe conf$$.file
  7339. if test -d conf$$.dir; then
  7340. rm -f conf$$.dir/conf$$.file
  7341. else
  7342. rm -f conf$$.dir
  7343. mkdir conf$$.dir 2>/dev/null
  7344. fi
  7345. if (echo >conf$$.file) 2>/dev/null; then
  7346. if ln -s conf$$.file conf$$ 2>/dev/null; then
  7347. as_ln_s='ln -s'
  7348. # ... but there are two gotchas:
  7349. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  7350. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  7351. # In both cases, we have to default to `cp -pR'.
  7352. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  7353. as_ln_s='cp -pR'
  7354. elif ln conf$$.file conf$$ 2>/dev/null; then
  7355. as_ln_s=ln
  7356. else
  7357. as_ln_s='cp -pR'
  7358. fi
  7359. else
  7360. as_ln_s='cp -pR'
  7361. fi
  7362. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  7363. rmdir conf$$.dir 2>/dev/null
  7364. # as_fn_mkdir_p
  7365. # -------------
  7366. # Create "$as_dir" as a directory, including parents if necessary.
  7367. as_fn_mkdir_p ()
  7368. {
  7369. case $as_dir in #(
  7370. -*) as_dir=./$as_dir;;
  7371. esac
  7372. test -d "$as_dir" || eval $as_mkdir_p || {
  7373. as_dirs=
  7374. while :; do
  7375. case $as_dir in #(
  7376. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  7377. *) as_qdir=$as_dir;;
  7378. esac
  7379. as_dirs="'$as_qdir' $as_dirs"
  7380. as_dir=`$as_dirname -- "$as_dir" ||
  7381. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7382. X"$as_dir" : 'X\(//\)[^/]' \| \
  7383. X"$as_dir" : 'X\(//\)$' \| \
  7384. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  7385. $as_echo X"$as_dir" |
  7386. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7387. s//\1/
  7388. q
  7389. }
  7390. /^X\(\/\/\)[^/].*/{
  7391. s//\1/
  7392. q
  7393. }
  7394. /^X\(\/\/\)$/{
  7395. s//\1/
  7396. q
  7397. }
  7398. /^X\(\/\).*/{
  7399. s//\1/
  7400. q
  7401. }
  7402. s/.*/./; q'`
  7403. test -d "$as_dir" && break
  7404. done
  7405. test -z "$as_dirs" || eval "mkdir $as_dirs"
  7406. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  7407. } # as_fn_mkdir_p
  7408. if mkdir -p . 2>/dev/null; then
  7409. as_mkdir_p='mkdir -p "$as_dir"'
  7410. else
  7411. test -d ./-p && rmdir ./-p
  7412. as_mkdir_p=false
  7413. fi
  7414. # as_fn_executable_p FILE
  7415. # -----------------------
  7416. # Test if FILE is an executable regular file.
  7417. as_fn_executable_p ()
  7418. {
  7419. test -f "$1" && test -x "$1"
  7420. } # as_fn_executable_p
  7421. as_test_x='test -x'
  7422. as_executable_p=as_fn_executable_p
  7423. # Sed expression to map a string onto a valid CPP name.
  7424. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  7425. # Sed expression to map a string onto a valid variable name.
  7426. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  7427. exec 6>&1
  7428. ## ----------------------------------- ##
  7429. ## Main body of $CONFIG_STATUS script. ##
  7430. ## ----------------------------------- ##
  7431. _ASEOF
  7432. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  7433. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7434. # Save the log message, to keep $0 and so on meaningful, and to
  7435. # report actual input values of CONFIG_FILES etc. instead of their
  7436. # values after options handling.
  7437. ac_log="
  7438. This file was extended by $as_me, which was
  7439. generated by GNU Autoconf 2.69. Invocation command line was
  7440. CONFIG_FILES = $CONFIG_FILES
  7441. CONFIG_HEADERS = $CONFIG_HEADERS
  7442. CONFIG_LINKS = $CONFIG_LINKS
  7443. CONFIG_COMMANDS = $CONFIG_COMMANDS
  7444. $ $0 $@
  7445. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  7446. "
  7447. _ACEOF
  7448. case $ac_config_files in *"
  7449. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  7450. esac
  7451. case $ac_config_headers in *"
  7452. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  7453. esac
  7454. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7455. # Files that config.status was made for.
  7456. config_files="$ac_config_files"
  7457. config_headers="$ac_config_headers"
  7458. config_commands="$ac_config_commands"
  7459. _ACEOF
  7460. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7461. ac_cs_usage="\
  7462. \`$as_me' instantiates files and other configuration actions
  7463. from templates according to the current configuration. Unless the files
  7464. and actions are specified as TAGs, all are instantiated by default.
  7465. Usage: $0 [OPTION]... [TAG]...
  7466. -h, --help print this help, then exit
  7467. -V, --version print version number and configuration settings, then exit
  7468. --config print configuration, then exit
  7469. -q, --quiet, --silent
  7470. do not print progress messages
  7471. -d, --debug don't remove temporary files
  7472. --recheck update $as_me by reconfiguring in the same conditions
  7473. --file=FILE[:TEMPLATE]
  7474. instantiate the configuration file FILE
  7475. --header=FILE[:TEMPLATE]
  7476. instantiate the configuration header FILE
  7477. Configuration files:
  7478. $config_files
  7479. Configuration headers:
  7480. $config_headers
  7481. Configuration commands:
  7482. $config_commands
  7483. Report bugs to the package provider."
  7484. _ACEOF
  7485. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7486. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  7487. ac_cs_version="\\
  7488. config.status
  7489. configured by $0, generated by GNU Autoconf 2.69,
  7490. with options \\"\$ac_cs_config\\"
  7491. Copyright (C) 2012 Free Software Foundation, Inc.
  7492. This config.status script is free software; the Free Software Foundation
  7493. gives unlimited permission to copy, distribute and modify it."
  7494. ac_pwd='$ac_pwd'
  7495. srcdir='$srcdir'
  7496. INSTALL='$INSTALL'
  7497. test -n "\$AWK" || AWK=awk
  7498. _ACEOF
  7499. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7500. # The default lists apply if the user does not specify any file.
  7501. ac_need_defaults=:
  7502. while test $# != 0
  7503. do
  7504. case $1 in
  7505. --*=?*)
  7506. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7507. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  7508. ac_shift=:
  7509. ;;
  7510. --*=)
  7511. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7512. ac_optarg=
  7513. ac_shift=:
  7514. ;;
  7515. *)
  7516. ac_option=$1
  7517. ac_optarg=$2
  7518. ac_shift=shift
  7519. ;;
  7520. esac
  7521. case $ac_option in
  7522. # Handling of the options.
  7523. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7524. ac_cs_recheck=: ;;
  7525. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  7526. $as_echo "$ac_cs_version"; exit ;;
  7527. --config | --confi | --conf | --con | --co | --c )
  7528. $as_echo "$ac_cs_config"; exit ;;
  7529. --debug | --debu | --deb | --de | --d | -d )
  7530. debug=: ;;
  7531. --file | --fil | --fi | --f )
  7532. $ac_shift
  7533. case $ac_optarg in
  7534. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7535. '') as_fn_error $? "missing file argument" ;;
  7536. esac
  7537. as_fn_append CONFIG_FILES " '$ac_optarg'"
  7538. ac_need_defaults=false;;
  7539. --header | --heade | --head | --hea )
  7540. $ac_shift
  7541. case $ac_optarg in
  7542. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7543. esac
  7544. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  7545. ac_need_defaults=false;;
  7546. --he | --h)
  7547. # Conflict between --help and --header
  7548. as_fn_error $? "ambiguous option: \`$1'
  7549. Try \`$0 --help' for more information.";;
  7550. --help | --hel | -h )
  7551. $as_echo "$ac_cs_usage"; exit ;;
  7552. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7553. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7554. ac_cs_silent=: ;;
  7555. # This is an error.
  7556. -*) as_fn_error $? "unrecognized option: \`$1'
  7557. Try \`$0 --help' for more information." ;;
  7558. *) as_fn_append ac_config_targets " $1"
  7559. ac_need_defaults=false ;;
  7560. esac
  7561. shift
  7562. done
  7563. ac_configure_extra_args=
  7564. if $ac_cs_silent; then
  7565. exec 6>/dev/null
  7566. ac_configure_extra_args="$ac_configure_extra_args --silent"
  7567. fi
  7568. _ACEOF
  7569. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7570. if \$ac_cs_recheck; then
  7571. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7572. shift
  7573. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  7574. CONFIG_SHELL='$SHELL'
  7575. export CONFIG_SHELL
  7576. exec "\$@"
  7577. fi
  7578. _ACEOF
  7579. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7580. exec 5>>config.log
  7581. {
  7582. echo
  7583. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7584. ## Running $as_me. ##
  7585. _ASBOX
  7586. $as_echo "$ac_log"
  7587. } >&5
  7588. _ACEOF
  7589. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7590. #
  7591. # INIT-COMMANDS
  7592. #
  7593. srcdir=${srcdir}
  7594. host=${host}
  7595. target=${target}
  7596. with_target_subdir=${with_target_subdir}
  7597. with_multisubdir=${with_multisubdir}
  7598. ac_configure_args="--enable-multilib ${ac_configure_args}"
  7599. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  7600. ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
  7601. libiberty_topdir=${libiberty_topdir}
  7602. _ACEOF
  7603. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7604. # Handling of arguments.
  7605. for ac_config_target in $ac_config_targets
  7606. do
  7607. case $ac_config_target in
  7608. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  7609. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7610. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  7611. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  7612. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  7613. esac
  7614. done
  7615. # If the user did not use the arguments to specify the items to instantiate,
  7616. # then the envvar interface is used. Set only those that are not.
  7617. # We use the long form for the default assignment because of an extremely
  7618. # bizarre bug on SunOS 4.1.3.
  7619. if $ac_need_defaults; then
  7620. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7621. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  7622. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  7623. fi
  7624. # Have a temporary directory for convenience. Make it in the build tree
  7625. # simply because there is no reason against having it here, and in addition,
  7626. # creating and moving files from /tmp can sometimes cause problems.
  7627. # Hook for its removal unless debugging.
  7628. # Note that there is a small window in which the directory will not be cleaned:
  7629. # after its creation but before its name has been assigned to `$tmp'.
  7630. $debug ||
  7631. {
  7632. tmp= ac_tmp=
  7633. trap 'exit_status=$?
  7634. : "${ac_tmp:=$tmp}"
  7635. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  7636. ' 0
  7637. trap 'as_fn_exit 1' 1 2 13 15
  7638. }
  7639. # Create a (secure) tmp directory for tmp files.
  7640. {
  7641. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7642. test -d "$tmp"
  7643. } ||
  7644. {
  7645. tmp=./conf$$-$RANDOM
  7646. (umask 077 && mkdir "$tmp")
  7647. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  7648. ac_tmp=$tmp
  7649. # Set up the scripts for CONFIG_FILES section.
  7650. # No need to generate them if there are no CONFIG_FILES.
  7651. # This happens for instance with `./config.status config.h'.
  7652. if test -n "$CONFIG_FILES"; then
  7653. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  7654. ac_cs_awk_getline=:
  7655. ac_cs_awk_pipe_init=
  7656. ac_cs_awk_read_file='
  7657. while ((getline aline < (F[key])) > 0)
  7658. print(aline)
  7659. close(F[key])'
  7660. ac_cs_awk_pipe_fini=
  7661. else
  7662. ac_cs_awk_getline=false
  7663. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  7664. ac_cs_awk_read_file='
  7665. print "|#_!!_#|"
  7666. print "cat " F[key] " &&"
  7667. '$ac_cs_awk_pipe_init
  7668. # The final `:' finishes the AND list.
  7669. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  7670. fi
  7671. ac_cr=`echo X | tr X '\015'`
  7672. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7673. # But we know of no other shell where ac_cr would be empty at this
  7674. # point, so we can use a bashism as a fallback.
  7675. if test "x$ac_cr" = x; then
  7676. eval ac_cr=\$\'\\r\'
  7677. fi
  7678. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7679. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7680. ac_cs_awk_cr='\\r'
  7681. else
  7682. ac_cs_awk_cr=$ac_cr
  7683. fi
  7684. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  7685. _ACEOF
  7686. # Create commands to substitute file output variables.
  7687. {
  7688. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  7689. echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  7690. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  7691. echo "_ACAWK" &&
  7692. echo "_ACEOF"
  7693. } >conf$$files.sh &&
  7694. . ./conf$$files.sh ||
  7695. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7696. rm -f conf$$files.sh
  7697. {
  7698. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7699. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7700. echo "_ACEOF"
  7701. } >conf$$subs.sh ||
  7702. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7703. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  7704. ac_delim='%!_!# '
  7705. for ac_last_try in false false false false false :; do
  7706. . ./conf$$subs.sh ||
  7707. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7708. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7709. if test $ac_delim_n = $ac_delim_num; then
  7710. break
  7711. elif $ac_last_try; then
  7712. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7713. else
  7714. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7715. fi
  7716. done
  7717. rm -f conf$$subs.sh
  7718. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7719. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  7720. _ACEOF
  7721. sed -n '
  7722. h
  7723. s/^/S["/; s/!.*/"]=/
  7724. p
  7725. g
  7726. s/^[^!]*!//
  7727. :repl
  7728. t repl
  7729. s/'"$ac_delim"'$//
  7730. t delim
  7731. :nl
  7732. h
  7733. s/\(.\{148\}\)..*/\1/
  7734. t more1
  7735. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7736. p
  7737. n
  7738. b repl
  7739. :more1
  7740. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7741. p
  7742. g
  7743. s/.\{148\}//
  7744. t nl
  7745. :delim
  7746. h
  7747. s/\(.\{148\}\)..*/\1/
  7748. t more2
  7749. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7750. p
  7751. b
  7752. :more2
  7753. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7754. p
  7755. g
  7756. s/.\{148\}//
  7757. t delim
  7758. ' <conf$$subs.awk | sed '
  7759. /^[^""]/{
  7760. N
  7761. s/\n//
  7762. }
  7763. ' >>$CONFIG_STATUS || ac_write_fail=1
  7764. rm -f conf$$subs.awk
  7765. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7766. _ACAWK
  7767. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  7768. for (key in S) S_is_set[key] = 1
  7769. FS = ""
  7770. \$ac_cs_awk_pipe_init
  7771. }
  7772. {
  7773. line = $ 0
  7774. nfields = split(line, field, "@")
  7775. substed = 0
  7776. len = length(field[1])
  7777. for (i = 2; i < nfields; i++) {
  7778. key = field[i]
  7779. keylen = length(key)
  7780. if (S_is_set[key]) {
  7781. value = S[key]
  7782. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  7783. len += length(value) + length(field[++i])
  7784. substed = 1
  7785. } else
  7786. len += 1 + keylen
  7787. }
  7788. if (nfields == 3 && !substed) {
  7789. key = field[2]
  7790. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  7791. \$ac_cs_awk_read_file
  7792. next
  7793. }
  7794. }
  7795. print line
  7796. }
  7797. \$ac_cs_awk_pipe_fini
  7798. _ACAWK
  7799. _ACEOF
  7800. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7801. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7802. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7803. else
  7804. cat
  7805. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  7806. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  7807. _ACEOF
  7808. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  7809. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  7810. # trailing colons and then remove the whole line if VPATH becomes empty
  7811. # (actually we leave an empty line to preserve line numbers).
  7812. if test "x$srcdir" = x.; then
  7813. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  7814. h
  7815. s///
  7816. s/^/:/
  7817. s/[ ]*$/:/
  7818. s/:\$(srcdir):/:/g
  7819. s/:\${srcdir}:/:/g
  7820. s/:@srcdir@:/:/g
  7821. s/^:*//
  7822. s/:*$//
  7823. x
  7824. s/\(=[ ]*\).*/\1/
  7825. G
  7826. s/\n//
  7827. s/^[^=]*=[ ]*$//
  7828. }'
  7829. fi
  7830. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7831. fi # test -n "$CONFIG_FILES"
  7832. # Set up the scripts for CONFIG_HEADERS section.
  7833. # No need to generate them if there are no CONFIG_HEADERS.
  7834. # This happens for instance with `./config.status Makefile'.
  7835. if test -n "$CONFIG_HEADERS"; then
  7836. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  7837. BEGIN {
  7838. _ACEOF
  7839. # Transform confdefs.h into an awk script `defines.awk', embedded as
  7840. # here-document in config.status, that substitutes the proper values into
  7841. # config.h.in to produce config.h.
  7842. # Create a delimiter string that does not exist in confdefs.h, to ease
  7843. # handling of long lines.
  7844. ac_delim='%!_!# '
  7845. for ac_last_try in false false :; do
  7846. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  7847. if test -z "$ac_tt"; then
  7848. break
  7849. elif $ac_last_try; then
  7850. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  7851. else
  7852. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7853. fi
  7854. done
  7855. # For the awk script, D is an array of macro values keyed by name,
  7856. # likewise P contains macro parameters if any. Preserve backslash
  7857. # newline sequences.
  7858. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  7859. sed -n '
  7860. s/.\{148\}/&'"$ac_delim"'/g
  7861. t rset
  7862. :rset
  7863. s/^[ ]*#[ ]*define[ ][ ]*/ /
  7864. t def
  7865. d
  7866. :def
  7867. s/\\$//
  7868. t bsnl
  7869. s/["\\]/\\&/g
  7870. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7871. D["\1"]=" \3"/p
  7872. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  7873. d
  7874. :bsnl
  7875. s/["\\]/\\&/g
  7876. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7877. D["\1"]=" \3\\\\\\n"\\/p
  7878. t cont
  7879. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  7880. t cont
  7881. d
  7882. :cont
  7883. n
  7884. s/.\{148\}/&'"$ac_delim"'/g
  7885. t clear
  7886. :clear
  7887. s/\\$//
  7888. t bsnlc
  7889. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  7890. d
  7891. :bsnlc
  7892. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  7893. b cont
  7894. ' <confdefs.h | sed '
  7895. s/'"$ac_delim"'/"\\\
  7896. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  7897. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7898. for (key in D) D_is_set[key] = 1
  7899. FS = ""
  7900. }
  7901. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  7902. line = \$ 0
  7903. split(line, arg, " ")
  7904. if (arg[1] == "#") {
  7905. defundef = arg[2]
  7906. mac1 = arg[3]
  7907. } else {
  7908. defundef = substr(arg[1], 2)
  7909. mac1 = arg[2]
  7910. }
  7911. split(mac1, mac2, "(") #)
  7912. macro = mac2[1]
  7913. prefix = substr(line, 1, index(line, defundef) - 1)
  7914. if (D_is_set[macro]) {
  7915. # Preserve the white space surrounding the "#".
  7916. print prefix "define", macro P[macro] D[macro]
  7917. next
  7918. } else {
  7919. # Replace #undef with comments. This is necessary, for example,
  7920. # in the case of _POSIX_SOURCE, which is predefined and required
  7921. # on some systems where configure will not decide to define it.
  7922. if (defundef == "undef") {
  7923. print "/*", prefix defundef, macro, "*/"
  7924. next
  7925. }
  7926. }
  7927. }
  7928. { print }
  7929. _ACAWK
  7930. _ACEOF
  7931. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7932. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  7933. fi # test -n "$CONFIG_HEADERS"
  7934. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  7935. shift
  7936. for ac_tag
  7937. do
  7938. case $ac_tag in
  7939. :[FHLC]) ac_mode=$ac_tag; continue;;
  7940. esac
  7941. case $ac_mode$ac_tag in
  7942. :[FHL]*:*);;
  7943. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  7944. :[FH]-) ac_tag=-:-;;
  7945. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7946. esac
  7947. ac_save_IFS=$IFS
  7948. IFS=:
  7949. set x $ac_tag
  7950. IFS=$ac_save_IFS
  7951. shift
  7952. ac_file=$1
  7953. shift
  7954. case $ac_mode in
  7955. :L) ac_source=$1;;
  7956. :[FH])
  7957. ac_file_inputs=
  7958. for ac_f
  7959. do
  7960. case $ac_f in
  7961. -) ac_f="$ac_tmp/stdin";;
  7962. *) # Look for the file first in the build tree, then in the source tree
  7963. # (if the path is not absolute). The absolute path cannot be DOS-style,
  7964. # because $ac_f cannot contain `:'.
  7965. test -f "$ac_f" ||
  7966. case $ac_f in
  7967. [\\/$]*) false;;
  7968. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7969. esac ||
  7970. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  7971. esac
  7972. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7973. as_fn_append ac_file_inputs " '$ac_f'"
  7974. done
  7975. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7976. # use $as_me), people would be surprised to read:
  7977. # /* config.h. Generated by config.status. */
  7978. configure_input='Generated from '`
  7979. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7980. `' by configure.'
  7981. if test x"$ac_file" != x-; then
  7982. configure_input="$ac_file. $configure_input"
  7983. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7984. $as_echo "$as_me: creating $ac_file" >&6;}
  7985. fi
  7986. # Neutralize special characters interpreted by sed in replacement strings.
  7987. case $configure_input in #(
  7988. *\&* | *\|* | *\\* )
  7989. ac_sed_conf_input=`$as_echo "$configure_input" |
  7990. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7991. *) ac_sed_conf_input=$configure_input;;
  7992. esac
  7993. case $ac_tag in
  7994. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  7995. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  7996. esac
  7997. ;;
  7998. esac
  7999. ac_dir=`$as_dirname -- "$ac_file" ||
  8000. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8001. X"$ac_file" : 'X\(//\)[^/]' \| \
  8002. X"$ac_file" : 'X\(//\)$' \| \
  8003. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8004. $as_echo X"$ac_file" |
  8005. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8006. s//\1/
  8007. q
  8008. }
  8009. /^X\(\/\/\)[^/].*/{
  8010. s//\1/
  8011. q
  8012. }
  8013. /^X\(\/\/\)$/{
  8014. s//\1/
  8015. q
  8016. }
  8017. /^X\(\/\).*/{
  8018. s//\1/
  8019. q
  8020. }
  8021. s/.*/./; q'`
  8022. as_dir="$ac_dir"; as_fn_mkdir_p
  8023. ac_builddir=.
  8024. case "$ac_dir" in
  8025. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8026. *)
  8027. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8028. # A ".." for each directory in $ac_dir_suffix.
  8029. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8030. case $ac_top_builddir_sub in
  8031. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8032. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8033. esac ;;
  8034. esac
  8035. ac_abs_top_builddir=$ac_pwd
  8036. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8037. # for backward compatibility:
  8038. ac_top_builddir=$ac_top_build_prefix
  8039. case $srcdir in
  8040. .) # We are building in place.
  8041. ac_srcdir=.
  8042. ac_top_srcdir=$ac_top_builddir_sub
  8043. ac_abs_top_srcdir=$ac_pwd ;;
  8044. [\\/]* | ?:[\\/]* ) # Absolute name.
  8045. ac_srcdir=$srcdir$ac_dir_suffix;
  8046. ac_top_srcdir=$srcdir
  8047. ac_abs_top_srcdir=$srcdir ;;
  8048. *) # Relative name.
  8049. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8050. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8051. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8052. esac
  8053. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8054. case $ac_mode in
  8055. :F)
  8056. #
  8057. # CONFIG_FILE
  8058. #
  8059. case $INSTALL in
  8060. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  8061. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  8062. esac
  8063. _ACEOF
  8064. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8065. # If the template does not know about datarootdir, expand it.
  8066. # FIXME: This hack should be removed a few years after 2.60.
  8067. ac_datarootdir_hack=; ac_datarootdir_seen=
  8068. ac_sed_dataroot='
  8069. /datarootdir/ {
  8070. p
  8071. q
  8072. }
  8073. /@datadir@/p
  8074. /@docdir@/p
  8075. /@infodir@/p
  8076. /@localedir@/p
  8077. /@mandir@/p'
  8078. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8079. *datarootdir*) ac_datarootdir_seen=yes;;
  8080. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8081. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8082. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8083. _ACEOF
  8084. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8085. ac_datarootdir_hack='
  8086. s&@datadir@&$datadir&g
  8087. s&@docdir@&$docdir&g
  8088. s&@infodir@&$infodir&g
  8089. s&@localedir@&$localedir&g
  8090. s&@mandir@&$mandir&g
  8091. s&\\\${datarootdir}&$datarootdir&g' ;;
  8092. esac
  8093. _ACEOF
  8094. # Neutralize VPATH when `$srcdir' = `.'.
  8095. # Shell code in configure.ac might set extrasub.
  8096. # FIXME: do we really want to maintain this feature?
  8097. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8098. ac_sed_extra="$ac_vpsub
  8099. $extrasub
  8100. _ACEOF
  8101. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8102. :t
  8103. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8104. s|@configure_input@|$ac_sed_conf_input|;t t
  8105. s&@top_builddir@&$ac_top_builddir_sub&;t t
  8106. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8107. s&@srcdir@&$ac_srcdir&;t t
  8108. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8109. s&@top_srcdir@&$ac_top_srcdir&;t t
  8110. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8111. s&@builddir@&$ac_builddir&;t t
  8112. s&@abs_builddir@&$ac_abs_builddir&;t t
  8113. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8114. s&@INSTALL@&$ac_INSTALL&;t t
  8115. $ac_datarootdir_hack
  8116. "
  8117. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  8118. if $ac_cs_awk_getline; then
  8119. $AWK -f "$ac_tmp/subs.awk"
  8120. else
  8121. $AWK -f "$ac_tmp/subs.awk" | $SHELL
  8122. fi \
  8123. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8124. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8125. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  8126. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  8127. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  8128. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8129. which seems to be undefined. Please make sure it is defined" >&5
  8130. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8131. which seems to be undefined. Please make sure it is defined" >&2;}
  8132. rm -f "$ac_tmp/stdin"
  8133. case $ac_file in
  8134. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  8135. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  8136. esac \
  8137. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8138. ;;
  8139. :H)
  8140. #
  8141. # CONFIG_HEADER
  8142. #
  8143. if test x"$ac_file" != x-; then
  8144. {
  8145. $as_echo "/* $configure_input */" \
  8146. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  8147. } >"$ac_tmp/config.h" \
  8148. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8149. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  8150. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  8151. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  8152. else
  8153. rm -f "$ac_file"
  8154. mv "$ac_tmp/config.h" "$ac_file" \
  8155. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8156. fi
  8157. else
  8158. $as_echo "/* $configure_input */" \
  8159. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  8160. || as_fn_error $? "could not create -" "$LINENO" 5
  8161. fi
  8162. ;;
  8163. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  8164. $as_echo "$as_me: executing $ac_file commands" >&6;}
  8165. ;;
  8166. esac
  8167. case $ac_file$ac_mode in
  8168. "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  8169. if test -n "$CONFIG_FILES"; then
  8170. if test -n "${with_target_subdir}"; then
  8171. # FIXME: We shouldn't need to set ac_file
  8172. ac_file=Makefile
  8173. LD="${ORIGINAL_LD_FOR_MULTILIBS}"
  8174. . ${libiberty_topdir}/config-ml.in
  8175. fi
  8176. fi ;;
  8177. esac
  8178. done # for ac_tag
  8179. as_fn_exit 0
  8180. _ACEOF
  8181. ac_clean_files=$ac_clean_files_save
  8182. test $ac_write_fail = 0 ||
  8183. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  8184. # configure is writing to config.log, and then calls config.status.
  8185. # config.status does its own redirection, appending to config.log.
  8186. # Unfortunately, on DOS this fails, as config.log is still kept open
  8187. # by configure, so config.status won't be able to write to it; its
  8188. # output is simply discarded. So we exec the FD to /dev/null,
  8189. # effectively closing config.log, so it can be properly (re)opened and
  8190. # appended to by config.status. When coming back to configure, we
  8191. # need to make the FD available again.
  8192. if test "$no_create" != yes; then
  8193. ac_cs_success=:
  8194. ac_config_status_args=
  8195. test "$silent" = yes &&
  8196. ac_config_status_args="$ac_config_status_args --quiet"
  8197. exec 5>/dev/null
  8198. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8199. exec 5>>config.log
  8200. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8201. # would make configure fail if this is the last instruction.
  8202. $ac_cs_success || as_fn_exit 1
  8203. fi
  8204. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  8205. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  8206. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  8207. fi