configure 333 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for gdbsupport 1.0.
  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='gdbsupport'
  531. PACKAGE_TARNAME='gdbsupport'
  532. PACKAGE_VERSION='1.0'
  533. PACKAGE_STRING='gdbsupport 1.0'
  534. PACKAGE_BUGREPORT=''
  535. PACKAGE_URL=''
  536. ac_unique_file="common-defs.h"
  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='am__EXEEXT_FALSE
  574. am__EXEEXT_TRUE
  575. LTLIBOBJS
  576. LIBOBJS
  577. WERROR_CFLAGS
  578. WARN_CFLAGS
  579. HAVE_PIPE_OR_PIPE2_FALSE
  580. HAVE_PIPE_OR_PIPE2_TRUE
  581. SELFTEST_FALSE
  582. SELFTEST_TRUE
  583. LTLIBIPT
  584. LIBIPT
  585. HAVE_LIBIPT
  586. PTHREAD_CFLAGS
  587. PTHREAD_LIBS
  588. PTHREAD_CC
  589. ax_pthread_config
  590. SED
  591. ALLOCA
  592. CATOBJEXT
  593. GENCAT
  594. INSTOBJEXT
  595. DATADIRNAME
  596. CATALOGS
  597. POSUB
  598. GMSGFMT
  599. XGETTEXT
  600. INCINTL
  601. LIBINTL_DEP
  602. LIBINTL
  603. USE_NLS
  604. CXX_DIALECT
  605. HAVE_CXX11
  606. LARGEFILE_CPPFLAGS
  607. EGREP
  608. GREP
  609. CPP
  610. RANLIB
  611. am__fastdepCXX_FALSE
  612. am__fastdepCXX_TRUE
  613. CXXDEPMODE
  614. ac_ct_CXX
  615. CXXFLAGS
  616. CXX
  617. am__fastdepCC_FALSE
  618. am__fastdepCC_TRUE
  619. CCDEPMODE
  620. am__nodep
  621. AMDEPBACKSLASH
  622. AMDEP_FALSE
  623. AMDEP_TRUE
  624. am__quote
  625. am__include
  626. DEPDIR
  627. OBJEXT
  628. EXEEXT
  629. ac_ct_CC
  630. CPPFLAGS
  631. LDFLAGS
  632. CFLAGS
  633. CC
  634. AM_BACKSLASH
  635. AM_DEFAULT_VERBOSITY
  636. AM_DEFAULT_V
  637. AM_V
  638. am__untar
  639. am__tar
  640. AMTAR
  641. am__leading_dot
  642. SET_MAKE
  643. AWK
  644. mkdir_p
  645. MKDIR_P
  646. INSTALL_STRIP_PROGRAM
  647. STRIP
  648. install_sh
  649. MAKEINFO
  650. AUTOHEADER
  651. AUTOMAKE
  652. AUTOCONF
  653. ACLOCAL
  654. VERSION
  655. PACKAGE
  656. CYGPATH_W
  657. am__isrc
  658. INSTALL_DATA
  659. INSTALL_SCRIPT
  660. INSTALL_PROGRAM
  661. MAINT
  662. MAINTAINER_MODE_FALSE
  663. MAINTAINER_MODE_TRUE
  664. target_os
  665. target_vendor
  666. target_cpu
  667. target
  668. host_os
  669. host_vendor
  670. host_cpu
  671. host
  672. build_os
  673. build_vendor
  674. build_cpu
  675. build
  676. target_alias
  677. host_alias
  678. build_alias
  679. LIBS
  680. ECHO_T
  681. ECHO_N
  682. ECHO_C
  683. DEFS
  684. mandir
  685. localedir
  686. libdir
  687. psdir
  688. pdfdir
  689. dvidir
  690. htmldir
  691. infodir
  692. docdir
  693. oldincludedir
  694. includedir
  695. localstatedir
  696. sharedstatedir
  697. sysconfdir
  698. datadir
  699. datarootdir
  700. libexecdir
  701. sbindir
  702. bindir
  703. program_transform_name
  704. prefix
  705. exec_prefix
  706. PACKAGE_URL
  707. PACKAGE_BUGREPORT
  708. PACKAGE_STRING
  709. PACKAGE_VERSION
  710. PACKAGE_TARNAME
  711. PACKAGE_NAME
  712. PATH_SEPARATOR
  713. SHELL'
  714. ac_subst_files=''
  715. ac_user_opts='
  716. enable_option_checking
  717. enable_maintainer_mode
  718. enable_silent_rules
  719. enable_dependency_tracking
  720. enable_plugins
  721. enable_largefile
  722. enable_threading
  723. with_intel_pt
  724. with_gnu_ld
  725. enable_rpath
  726. with_libipt_prefix
  727. with_libipt_type
  728. enable_unit_tests
  729. enable_werror
  730. enable_build_warnings
  731. enable_gdb_build_warnings
  732. '
  733. ac_precious_vars='build_alias
  734. host_alias
  735. target_alias
  736. CC
  737. CFLAGS
  738. LDFLAGS
  739. LIBS
  740. CPPFLAGS
  741. CXX
  742. CXXFLAGS
  743. CCC
  744. CPP'
  745. # Initialize some variables set by options.
  746. ac_init_help=
  747. ac_init_version=false
  748. ac_unrecognized_opts=
  749. ac_unrecognized_sep=
  750. # The variables have the same names as the options, with
  751. # dashes changed to underlines.
  752. cache_file=/dev/null
  753. exec_prefix=NONE
  754. no_create=
  755. no_recursion=
  756. prefix=NONE
  757. program_prefix=NONE
  758. program_suffix=NONE
  759. program_transform_name=s,x,x,
  760. silent=
  761. site=
  762. srcdir=
  763. verbose=
  764. x_includes=NONE
  765. x_libraries=NONE
  766. # Installation directory options.
  767. # These are left unexpanded so users can "make install exec_prefix=/foo"
  768. # and all the variables that are supposed to be based on exec_prefix
  769. # by default will actually change.
  770. # Use braces instead of parens because sh, perl, etc. also accept them.
  771. # (The list follows the same order as the GNU Coding Standards.)
  772. bindir='${exec_prefix}/bin'
  773. sbindir='${exec_prefix}/sbin'
  774. libexecdir='${exec_prefix}/libexec'
  775. datarootdir='${prefix}/share'
  776. datadir='${datarootdir}'
  777. sysconfdir='${prefix}/etc'
  778. sharedstatedir='${prefix}/com'
  779. localstatedir='${prefix}/var'
  780. includedir='${prefix}/include'
  781. oldincludedir='/usr/include'
  782. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  783. infodir='${datarootdir}/info'
  784. htmldir='${docdir}'
  785. dvidir='${docdir}'
  786. pdfdir='${docdir}'
  787. psdir='${docdir}'
  788. libdir='${exec_prefix}/lib'
  789. localedir='${datarootdir}/locale'
  790. mandir='${datarootdir}/man'
  791. ac_prev=
  792. ac_dashdash=
  793. for ac_option
  794. do
  795. # If the previous option needs an argument, assign it.
  796. if test -n "$ac_prev"; then
  797. eval $ac_prev=\$ac_option
  798. ac_prev=
  799. continue
  800. fi
  801. case $ac_option in
  802. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  803. *=) ac_optarg= ;;
  804. *) ac_optarg=yes ;;
  805. esac
  806. # Accept the important Cygnus configure options, so we can diagnose typos.
  807. case $ac_dashdash$ac_option in
  808. --)
  809. ac_dashdash=yes ;;
  810. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  811. ac_prev=bindir ;;
  812. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  813. bindir=$ac_optarg ;;
  814. -build | --build | --buil | --bui | --bu)
  815. ac_prev=build_alias ;;
  816. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  817. build_alias=$ac_optarg ;;
  818. -cache-file | --cache-file | --cache-fil | --cache-fi \
  819. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  820. ac_prev=cache_file ;;
  821. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  822. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  823. cache_file=$ac_optarg ;;
  824. --config-cache | -C)
  825. cache_file=config.cache ;;
  826. -datadir | --datadir | --datadi | --datad)
  827. ac_prev=datadir ;;
  828. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  829. datadir=$ac_optarg ;;
  830. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  831. | --dataroo | --dataro | --datar)
  832. ac_prev=datarootdir ;;
  833. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  834. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  835. datarootdir=$ac_optarg ;;
  836. -disable-* | --disable-*)
  837. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  838. # Reject names that are not valid shell variable names.
  839. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  840. as_fn_error $? "invalid feature name: $ac_useropt"
  841. ac_useropt_orig=$ac_useropt
  842. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  843. case $ac_user_opts in
  844. *"
  845. "enable_$ac_useropt"
  846. "*) ;;
  847. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  848. ac_unrecognized_sep=', ';;
  849. esac
  850. eval enable_$ac_useropt=no ;;
  851. -docdir | --docdir | --docdi | --doc | --do)
  852. ac_prev=docdir ;;
  853. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  854. docdir=$ac_optarg ;;
  855. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  856. ac_prev=dvidir ;;
  857. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  858. dvidir=$ac_optarg ;;
  859. -enable-* | --enable-*)
  860. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  861. # Reject names that are not valid shell variable names.
  862. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  863. as_fn_error $? "invalid feature name: $ac_useropt"
  864. ac_useropt_orig=$ac_useropt
  865. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  866. case $ac_user_opts in
  867. *"
  868. "enable_$ac_useropt"
  869. "*) ;;
  870. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  871. ac_unrecognized_sep=', ';;
  872. esac
  873. eval enable_$ac_useropt=\$ac_optarg ;;
  874. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  875. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  876. | --exec | --exe | --ex)
  877. ac_prev=exec_prefix ;;
  878. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  879. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  880. | --exec=* | --exe=* | --ex=*)
  881. exec_prefix=$ac_optarg ;;
  882. -gas | --gas | --ga | --g)
  883. # Obsolete; use --with-gas.
  884. with_gas=yes ;;
  885. -help | --help | --hel | --he | -h)
  886. ac_init_help=long ;;
  887. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  888. ac_init_help=recursive ;;
  889. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  890. ac_init_help=short ;;
  891. -host | --host | --hos | --ho)
  892. ac_prev=host_alias ;;
  893. -host=* | --host=* | --hos=* | --ho=*)
  894. host_alias=$ac_optarg ;;
  895. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  896. ac_prev=htmldir ;;
  897. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  898. | --ht=*)
  899. htmldir=$ac_optarg ;;
  900. -includedir | --includedir | --includedi | --included | --include \
  901. | --includ | --inclu | --incl | --inc)
  902. ac_prev=includedir ;;
  903. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  904. | --includ=* | --inclu=* | --incl=* | --inc=*)
  905. includedir=$ac_optarg ;;
  906. -infodir | --infodir | --infodi | --infod | --info | --inf)
  907. ac_prev=infodir ;;
  908. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  909. infodir=$ac_optarg ;;
  910. -libdir | --libdir | --libdi | --libd)
  911. ac_prev=libdir ;;
  912. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  913. libdir=$ac_optarg ;;
  914. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  915. | --libexe | --libex | --libe)
  916. ac_prev=libexecdir ;;
  917. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  918. | --libexe=* | --libex=* | --libe=*)
  919. libexecdir=$ac_optarg ;;
  920. -localedir | --localedir | --localedi | --localed | --locale)
  921. ac_prev=localedir ;;
  922. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  923. localedir=$ac_optarg ;;
  924. -localstatedir | --localstatedir | --localstatedi | --localstated \
  925. | --localstate | --localstat | --localsta | --localst | --locals)
  926. ac_prev=localstatedir ;;
  927. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  928. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  929. localstatedir=$ac_optarg ;;
  930. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  931. ac_prev=mandir ;;
  932. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  933. mandir=$ac_optarg ;;
  934. -nfp | --nfp | --nf)
  935. # Obsolete; use --without-fp.
  936. with_fp=no ;;
  937. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  938. | --no-cr | --no-c | -n)
  939. no_create=yes ;;
  940. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  941. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  942. no_recursion=yes ;;
  943. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  944. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  945. | --oldin | --oldi | --old | --ol | --o)
  946. ac_prev=oldincludedir ;;
  947. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  948. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  949. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  950. oldincludedir=$ac_optarg ;;
  951. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  952. ac_prev=prefix ;;
  953. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  954. prefix=$ac_optarg ;;
  955. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  956. | --program-pre | --program-pr | --program-p)
  957. ac_prev=program_prefix ;;
  958. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  959. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  960. program_prefix=$ac_optarg ;;
  961. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  962. | --program-suf | --program-su | --program-s)
  963. ac_prev=program_suffix ;;
  964. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  965. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  966. program_suffix=$ac_optarg ;;
  967. -program-transform-name | --program-transform-name \
  968. | --program-transform-nam | --program-transform-na \
  969. | --program-transform-n | --program-transform- \
  970. | --program-transform | --program-transfor \
  971. | --program-transfo | --program-transf \
  972. | --program-trans | --program-tran \
  973. | --progr-tra | --program-tr | --program-t)
  974. ac_prev=program_transform_name ;;
  975. -program-transform-name=* | --program-transform-name=* \
  976. | --program-transform-nam=* | --program-transform-na=* \
  977. | --program-transform-n=* | --program-transform-=* \
  978. | --program-transform=* | --program-transfor=* \
  979. | --program-transfo=* | --program-transf=* \
  980. | --program-trans=* | --program-tran=* \
  981. | --progr-tra=* | --program-tr=* | --program-t=*)
  982. program_transform_name=$ac_optarg ;;
  983. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  984. ac_prev=pdfdir ;;
  985. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  986. pdfdir=$ac_optarg ;;
  987. -psdir | --psdir | --psdi | --psd | --ps)
  988. ac_prev=psdir ;;
  989. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  990. psdir=$ac_optarg ;;
  991. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  992. | -silent | --silent | --silen | --sile | --sil)
  993. silent=yes ;;
  994. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  995. ac_prev=sbindir ;;
  996. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  997. | --sbi=* | --sb=*)
  998. sbindir=$ac_optarg ;;
  999. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1000. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1001. | --sharedst | --shareds | --shared | --share | --shar \
  1002. | --sha | --sh)
  1003. ac_prev=sharedstatedir ;;
  1004. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1005. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1006. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1007. | --sha=* | --sh=*)
  1008. sharedstatedir=$ac_optarg ;;
  1009. -site | --site | --sit)
  1010. ac_prev=site ;;
  1011. -site=* | --site=* | --sit=*)
  1012. site=$ac_optarg ;;
  1013. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1014. ac_prev=srcdir ;;
  1015. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1016. srcdir=$ac_optarg ;;
  1017. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1018. | --syscon | --sysco | --sysc | --sys | --sy)
  1019. ac_prev=sysconfdir ;;
  1020. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1021. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1022. sysconfdir=$ac_optarg ;;
  1023. -target | --target | --targe | --targ | --tar | --ta | --t)
  1024. ac_prev=target_alias ;;
  1025. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1026. target_alias=$ac_optarg ;;
  1027. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1028. verbose=yes ;;
  1029. -version | --version | --versio | --versi | --vers | -V)
  1030. ac_init_version=: ;;
  1031. -with-* | --with-*)
  1032. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1033. # Reject names that are not valid shell variable names.
  1034. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1035. as_fn_error $? "invalid package name: $ac_useropt"
  1036. ac_useropt_orig=$ac_useropt
  1037. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1038. case $ac_user_opts in
  1039. *"
  1040. "with_$ac_useropt"
  1041. "*) ;;
  1042. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1043. ac_unrecognized_sep=', ';;
  1044. esac
  1045. eval with_$ac_useropt=\$ac_optarg ;;
  1046. -without-* | --without-*)
  1047. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1048. # Reject names that are not valid shell variable names.
  1049. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1050. as_fn_error $? "invalid package name: $ac_useropt"
  1051. ac_useropt_orig=$ac_useropt
  1052. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1053. case $ac_user_opts in
  1054. *"
  1055. "with_$ac_useropt"
  1056. "*) ;;
  1057. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1058. ac_unrecognized_sep=', ';;
  1059. esac
  1060. eval with_$ac_useropt=no ;;
  1061. --x)
  1062. # Obsolete; use --with-x.
  1063. with_x=yes ;;
  1064. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1065. | --x-incl | --x-inc | --x-in | --x-i)
  1066. ac_prev=x_includes ;;
  1067. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1068. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1069. x_includes=$ac_optarg ;;
  1070. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1071. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1072. ac_prev=x_libraries ;;
  1073. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1074. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1075. x_libraries=$ac_optarg ;;
  1076. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1077. Try \`$0 --help' for more information"
  1078. ;;
  1079. *=*)
  1080. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1081. # Reject names that are not valid shell variable names.
  1082. case $ac_envvar in #(
  1083. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1084. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1085. esac
  1086. eval $ac_envvar=\$ac_optarg
  1087. export $ac_envvar ;;
  1088. *)
  1089. # FIXME: should be removed in autoconf 3.0.
  1090. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1091. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1092. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1093. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1094. ;;
  1095. esac
  1096. done
  1097. if test -n "$ac_prev"; then
  1098. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1099. as_fn_error $? "missing argument to $ac_option"
  1100. fi
  1101. if test -n "$ac_unrecognized_opts"; then
  1102. case $enable_option_checking in
  1103. no) ;;
  1104. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1105. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1106. esac
  1107. fi
  1108. # Check all directory arguments for consistency.
  1109. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1110. datadir sysconfdir sharedstatedir localstatedir includedir \
  1111. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1112. libdir localedir mandir
  1113. do
  1114. eval ac_val=\$$ac_var
  1115. # Remove trailing slashes.
  1116. case $ac_val in
  1117. */ )
  1118. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1119. eval $ac_var=\$ac_val;;
  1120. esac
  1121. # Be sure to have absolute directory names.
  1122. case $ac_val in
  1123. [\\/$]* | ?:[\\/]* ) continue;;
  1124. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1125. esac
  1126. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1127. done
  1128. # There might be people who depend on the old broken behavior: `$host'
  1129. # used to hold the argument of --host etc.
  1130. # FIXME: To remove some day.
  1131. build=$build_alias
  1132. host=$host_alias
  1133. target=$target_alias
  1134. # FIXME: To remove some day.
  1135. if test "x$host_alias" != x; then
  1136. if test "x$build_alias" = x; then
  1137. cross_compiling=maybe
  1138. elif test "x$build_alias" != "x$host_alias"; then
  1139. cross_compiling=yes
  1140. fi
  1141. fi
  1142. ac_tool_prefix=
  1143. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1144. test "$silent" = yes && exec 6>/dev/null
  1145. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1146. ac_ls_di=`ls -di .` &&
  1147. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1148. as_fn_error $? "working directory cannot be determined"
  1149. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1150. as_fn_error $? "pwd does not report name of working directory"
  1151. # Find the source files, if location was not specified.
  1152. if test -z "$srcdir"; then
  1153. ac_srcdir_defaulted=yes
  1154. # Try the directory containing this script, then the parent directory.
  1155. ac_confdir=`$as_dirname -- "$as_myself" ||
  1156. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1157. X"$as_myself" : 'X\(//\)[^/]' \| \
  1158. X"$as_myself" : 'X\(//\)$' \| \
  1159. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1160. $as_echo X"$as_myself" |
  1161. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1162. s//\1/
  1163. q
  1164. }
  1165. /^X\(\/\/\)[^/].*/{
  1166. s//\1/
  1167. q
  1168. }
  1169. /^X\(\/\/\)$/{
  1170. s//\1/
  1171. q
  1172. }
  1173. /^X\(\/\).*/{
  1174. s//\1/
  1175. q
  1176. }
  1177. s/.*/./; q'`
  1178. srcdir=$ac_confdir
  1179. if test ! -r "$srcdir/$ac_unique_file"; then
  1180. srcdir=..
  1181. fi
  1182. else
  1183. ac_srcdir_defaulted=no
  1184. fi
  1185. if test ! -r "$srcdir/$ac_unique_file"; then
  1186. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1187. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1188. fi
  1189. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1190. ac_abs_confdir=`(
  1191. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1192. pwd)`
  1193. # When building in place, set srcdir=.
  1194. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1195. srcdir=.
  1196. fi
  1197. # Remove unnecessary trailing slashes from srcdir.
  1198. # Double slashes in file names in object file debugging info
  1199. # mess up M-x gdb in Emacs.
  1200. case $srcdir in
  1201. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1202. esac
  1203. for ac_var in $ac_precious_vars; do
  1204. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1205. eval ac_env_${ac_var}_value=\$${ac_var}
  1206. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1207. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1208. done
  1209. #
  1210. # Report the --help message.
  1211. #
  1212. if test "$ac_init_help" = "long"; then
  1213. # Omit some internal or obsolete options to make the list less imposing.
  1214. # This message is too long to be a string in the A/UX 3.1 sh.
  1215. cat <<_ACEOF
  1216. \`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
  1217. Usage: $0 [OPTION]... [VAR=VALUE]...
  1218. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1219. VAR=VALUE. See below for descriptions of some of the useful variables.
  1220. Defaults for the options are specified in brackets.
  1221. Configuration:
  1222. -h, --help display this help and exit
  1223. --help=short display options specific to this package
  1224. --help=recursive display the short help of all the included packages
  1225. -V, --version display version information and exit
  1226. -q, --quiet, --silent do not print \`checking ...' messages
  1227. --cache-file=FILE cache test results in FILE [disabled]
  1228. -C, --config-cache alias for \`--cache-file=config.cache'
  1229. -n, --no-create do not create output files
  1230. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1231. Installation directories:
  1232. --prefix=PREFIX install architecture-independent files in PREFIX
  1233. [$ac_default_prefix]
  1234. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1235. [PREFIX]
  1236. By default, \`make install' will install all the files in
  1237. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1238. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1239. for instance \`--prefix=\$HOME'.
  1240. For better control, use the options below.
  1241. Fine tuning of the installation directories:
  1242. --bindir=DIR user executables [EPREFIX/bin]
  1243. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1244. --libexecdir=DIR program executables [EPREFIX/libexec]
  1245. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1246. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1247. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1248. --libdir=DIR object code libraries [EPREFIX/lib]
  1249. --includedir=DIR C header files [PREFIX/include]
  1250. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1251. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1252. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1253. --infodir=DIR info documentation [DATAROOTDIR/info]
  1254. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1255. --mandir=DIR man documentation [DATAROOTDIR/man]
  1256. --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
  1257. --htmldir=DIR html documentation [DOCDIR]
  1258. --dvidir=DIR dvi documentation [DOCDIR]
  1259. --pdfdir=DIR pdf documentation [DOCDIR]
  1260. --psdir=DIR ps documentation [DOCDIR]
  1261. _ACEOF
  1262. cat <<\_ACEOF
  1263. Program names:
  1264. --program-prefix=PREFIX prepend PREFIX to installed program names
  1265. --program-suffix=SUFFIX append SUFFIX to installed program names
  1266. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1267. System types:
  1268. --build=BUILD configure for building on BUILD [guessed]
  1269. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1270. --target=TARGET configure for building compilers for TARGET [HOST]
  1271. _ACEOF
  1272. fi
  1273. if test -n "$ac_init_help"; then
  1274. case $ac_init_help in
  1275. short | recursive ) echo "Configuration of gdbsupport 1.0:";;
  1276. esac
  1277. cat <<\_ACEOF
  1278. Optional Features:
  1279. --disable-option-checking ignore unrecognized --enable/--with options
  1280. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1281. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1282. --enable-maintainer-mode
  1283. enable make rules and dependencies not useful (and
  1284. sometimes confusing) to the casual installer
  1285. --enable-silent-rules less verbose build output (undo: "make V=1")
  1286. --disable-silent-rules verbose build output (undo: "make V=0")
  1287. --enable-dependency-tracking
  1288. do not reject slow dependency extractors
  1289. --disable-dependency-tracking
  1290. speeds up one-time build
  1291. --enable-plugins Enable support for plugins
  1292. --disable-largefile omit support for large files
  1293. --enable-threading include support for parallel processing of data
  1294. (yes/no)
  1295. --disable-rpath do not hardcode runtime library paths
  1296. --enable-unit-tests Enable the inclusion of unit tests when compiling
  1297. GDB
  1298. --enable-werror treat compile warnings as errors
  1299. --enable-build-warnings enable build-time compiler warnings if gcc is used
  1300. --enable-gdb-build-warnings
  1301. enable GDB specific build-time compiler warnings if
  1302. gcc is used
  1303. Optional Packages:
  1304. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1305. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1306. --with-intel-pt include Intel Processor Trace support (auto/yes/no)
  1307. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1308. --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
  1309. --without-libipt-prefix don't search for libipt in includedir and libdir
  1310. --with-libipt-type=TYPE type of library to search for (auto/static/shared)
  1311. Some influential environment variables:
  1312. CC C compiler command
  1313. CFLAGS C compiler flags
  1314. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1315. nonstandard directory <lib dir>
  1316. LIBS libraries to pass to the linker, e.g. -l<library>
  1317. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1318. you have headers in a nonstandard directory <include dir>
  1319. CXX C++ compiler command
  1320. CXXFLAGS C++ compiler flags
  1321. CPP C preprocessor
  1322. Use these variables to override the choices made by `configure' or to help
  1323. it to find libraries and programs with nonstandard names/locations.
  1324. Report bugs to the package provider.
  1325. _ACEOF
  1326. ac_status=$?
  1327. fi
  1328. if test "$ac_init_help" = "recursive"; then
  1329. # If there are subdirs, report their specific --help.
  1330. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1331. test -d "$ac_dir" ||
  1332. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1333. continue
  1334. ac_builddir=.
  1335. case "$ac_dir" in
  1336. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1337. *)
  1338. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1339. # A ".." for each directory in $ac_dir_suffix.
  1340. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1341. case $ac_top_builddir_sub in
  1342. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1343. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1344. esac ;;
  1345. esac
  1346. ac_abs_top_builddir=$ac_pwd
  1347. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1348. # for backward compatibility:
  1349. ac_top_builddir=$ac_top_build_prefix
  1350. case $srcdir in
  1351. .) # We are building in place.
  1352. ac_srcdir=.
  1353. ac_top_srcdir=$ac_top_builddir_sub
  1354. ac_abs_top_srcdir=$ac_pwd ;;
  1355. [\\/]* | ?:[\\/]* ) # Absolute name.
  1356. ac_srcdir=$srcdir$ac_dir_suffix;
  1357. ac_top_srcdir=$srcdir
  1358. ac_abs_top_srcdir=$srcdir ;;
  1359. *) # Relative name.
  1360. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1361. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1362. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1363. esac
  1364. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1365. cd "$ac_dir" || { ac_status=$?; continue; }
  1366. # Check for guested configure.
  1367. if test -f "$ac_srcdir/configure.gnu"; then
  1368. echo &&
  1369. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1370. elif test -f "$ac_srcdir/configure"; then
  1371. echo &&
  1372. $SHELL "$ac_srcdir/configure" --help=recursive
  1373. else
  1374. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1375. fi || ac_status=$?
  1376. cd "$ac_pwd" || { ac_status=$?; break; }
  1377. done
  1378. fi
  1379. test -n "$ac_init_help" && exit $ac_status
  1380. if $ac_init_version; then
  1381. cat <<\_ACEOF
  1382. gdbsupport configure 1.0
  1383. generated by GNU Autoconf 2.69
  1384. Copyright (C) 2012 Free Software Foundation, Inc.
  1385. This configure script is free software; the Free Software Foundation
  1386. gives unlimited permission to copy, distribute and modify it.
  1387. _ACEOF
  1388. exit
  1389. fi
  1390. ## ------------------------ ##
  1391. ## Autoconf initialization. ##
  1392. ## ------------------------ ##
  1393. # ac_fn_c_try_compile LINENO
  1394. # --------------------------
  1395. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1396. ac_fn_c_try_compile ()
  1397. {
  1398. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1399. rm -f conftest.$ac_objext
  1400. if { { ac_try="$ac_compile"
  1401. case "(($ac_try" in
  1402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1403. *) ac_try_echo=$ac_try;;
  1404. esac
  1405. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1406. $as_echo "$ac_try_echo"; } >&5
  1407. (eval "$ac_compile") 2>conftest.err
  1408. ac_status=$?
  1409. if test -s conftest.err; then
  1410. grep -v '^ *+' conftest.err >conftest.er1
  1411. cat conftest.er1 >&5
  1412. mv -f conftest.er1 conftest.err
  1413. fi
  1414. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1415. test $ac_status = 0; } && {
  1416. test -z "$ac_c_werror_flag" ||
  1417. test ! -s conftest.err
  1418. } && test -s conftest.$ac_objext; then :
  1419. ac_retval=0
  1420. else
  1421. $as_echo "$as_me: failed program was:" >&5
  1422. sed 's/^/| /' conftest.$ac_ext >&5
  1423. ac_retval=1
  1424. fi
  1425. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1426. as_fn_set_status $ac_retval
  1427. } # ac_fn_c_try_compile
  1428. # ac_fn_cxx_try_compile LINENO
  1429. # ----------------------------
  1430. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1431. ac_fn_cxx_try_compile ()
  1432. {
  1433. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1434. rm -f conftest.$ac_objext
  1435. if { { ac_try="$ac_compile"
  1436. case "(($ac_try" in
  1437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1438. *) ac_try_echo=$ac_try;;
  1439. esac
  1440. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1441. $as_echo "$ac_try_echo"; } >&5
  1442. (eval "$ac_compile") 2>conftest.err
  1443. ac_status=$?
  1444. if test -s conftest.err; then
  1445. grep -v '^ *+' conftest.err >conftest.er1
  1446. cat conftest.er1 >&5
  1447. mv -f conftest.er1 conftest.err
  1448. fi
  1449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1450. test $ac_status = 0; } && {
  1451. test -z "$ac_cxx_werror_flag" ||
  1452. test ! -s conftest.err
  1453. } && test -s conftest.$ac_objext; then :
  1454. ac_retval=0
  1455. else
  1456. $as_echo "$as_me: failed program was:" >&5
  1457. sed 's/^/| /' conftest.$ac_ext >&5
  1458. ac_retval=1
  1459. fi
  1460. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1461. as_fn_set_status $ac_retval
  1462. } # ac_fn_cxx_try_compile
  1463. # ac_fn_c_try_cpp LINENO
  1464. # ----------------------
  1465. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1466. ac_fn_c_try_cpp ()
  1467. {
  1468. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1469. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1470. case "(($ac_try" in
  1471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1472. *) ac_try_echo=$ac_try;;
  1473. esac
  1474. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1475. $as_echo "$ac_try_echo"; } >&5
  1476. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1477. ac_status=$?
  1478. if test -s conftest.err; then
  1479. grep -v '^ *+' conftest.err >conftest.er1
  1480. cat conftest.er1 >&5
  1481. mv -f conftest.er1 conftest.err
  1482. fi
  1483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1484. test $ac_status = 0; } > conftest.i && {
  1485. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1486. test ! -s conftest.err
  1487. }; then :
  1488. ac_retval=0
  1489. else
  1490. $as_echo "$as_me: failed program was:" >&5
  1491. sed 's/^/| /' conftest.$ac_ext >&5
  1492. ac_retval=1
  1493. fi
  1494. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1495. as_fn_set_status $ac_retval
  1496. } # ac_fn_c_try_cpp
  1497. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1498. # -------------------------------------------------------
  1499. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1500. # the include files in INCLUDES and setting the cache variable VAR
  1501. # accordingly.
  1502. ac_fn_c_check_header_mongrel ()
  1503. {
  1504. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1505. if eval \${$3+:} false; then :
  1506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1507. $as_echo_n "checking for $2... " >&6; }
  1508. if eval \${$3+:} false; then :
  1509. $as_echo_n "(cached) " >&6
  1510. fi
  1511. eval ac_res=\$$3
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1513. $as_echo "$ac_res" >&6; }
  1514. else
  1515. # Is the header compilable?
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1517. $as_echo_n "checking $2 usability... " >&6; }
  1518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1519. /* end confdefs.h. */
  1520. $4
  1521. #include <$2>
  1522. _ACEOF
  1523. if ac_fn_c_try_compile "$LINENO"; then :
  1524. ac_header_compiler=yes
  1525. else
  1526. ac_header_compiler=no
  1527. fi
  1528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1530. $as_echo "$ac_header_compiler" >&6; }
  1531. # Is the header present?
  1532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1533. $as_echo_n "checking $2 presence... " >&6; }
  1534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1535. /* end confdefs.h. */
  1536. #include <$2>
  1537. _ACEOF
  1538. if ac_fn_c_try_cpp "$LINENO"; then :
  1539. ac_header_preproc=yes
  1540. else
  1541. ac_header_preproc=no
  1542. fi
  1543. rm -f conftest.err conftest.i conftest.$ac_ext
  1544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1545. $as_echo "$ac_header_preproc" >&6; }
  1546. # So? What about this header?
  1547. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1548. yes:no: )
  1549. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1550. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1551. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1552. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1553. ;;
  1554. no:yes:* )
  1555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1556. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1557. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1558. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1559. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1560. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1561. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1562. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1563. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1564. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1565. ;;
  1566. esac
  1567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1568. $as_echo_n "checking for $2... " >&6; }
  1569. if eval \${$3+:} false; then :
  1570. $as_echo_n "(cached) " >&6
  1571. else
  1572. eval "$3=\$ac_header_compiler"
  1573. fi
  1574. eval ac_res=\$$3
  1575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1576. $as_echo "$ac_res" >&6; }
  1577. fi
  1578. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1579. } # ac_fn_c_check_header_mongrel
  1580. # ac_fn_c_try_run LINENO
  1581. # ----------------------
  1582. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1583. # that executables *can* be run.
  1584. ac_fn_c_try_run ()
  1585. {
  1586. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1587. if { { ac_try="$ac_link"
  1588. case "(($ac_try" in
  1589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1590. *) ac_try_echo=$ac_try;;
  1591. esac
  1592. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1593. $as_echo "$ac_try_echo"; } >&5
  1594. (eval "$ac_link") 2>&5
  1595. ac_status=$?
  1596. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1597. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1598. { { case "(($ac_try" in
  1599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1600. *) ac_try_echo=$ac_try;;
  1601. esac
  1602. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1603. $as_echo "$ac_try_echo"; } >&5
  1604. (eval "$ac_try") 2>&5
  1605. ac_status=$?
  1606. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1607. test $ac_status = 0; }; }; then :
  1608. ac_retval=0
  1609. else
  1610. $as_echo "$as_me: program exited with status $ac_status" >&5
  1611. $as_echo "$as_me: failed program was:" >&5
  1612. sed 's/^/| /' conftest.$ac_ext >&5
  1613. ac_retval=$ac_status
  1614. fi
  1615. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1616. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1617. as_fn_set_status $ac_retval
  1618. } # ac_fn_c_try_run
  1619. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1620. # -------------------------------------------------------
  1621. # Tests whether HEADER exists and can be compiled using the include files in
  1622. # INCLUDES, setting the cache variable VAR accordingly.
  1623. ac_fn_c_check_header_compile ()
  1624. {
  1625. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1627. $as_echo_n "checking for $2... " >&6; }
  1628. if eval \${$3+:} false; then :
  1629. $as_echo_n "(cached) " >&6
  1630. else
  1631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1632. /* end confdefs.h. */
  1633. $4
  1634. #include <$2>
  1635. _ACEOF
  1636. if ac_fn_c_try_compile "$LINENO"; then :
  1637. eval "$3=yes"
  1638. else
  1639. eval "$3=no"
  1640. fi
  1641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1642. fi
  1643. eval ac_res=\$$3
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1645. $as_echo "$ac_res" >&6; }
  1646. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1647. } # ac_fn_c_check_header_compile
  1648. # ac_fn_c_try_link LINENO
  1649. # -----------------------
  1650. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1651. ac_fn_c_try_link ()
  1652. {
  1653. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1654. rm -f conftest.$ac_objext conftest$ac_exeext
  1655. if { { ac_try="$ac_link"
  1656. case "(($ac_try" in
  1657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1658. *) ac_try_echo=$ac_try;;
  1659. esac
  1660. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1661. $as_echo "$ac_try_echo"; } >&5
  1662. (eval "$ac_link") 2>conftest.err
  1663. ac_status=$?
  1664. if test -s conftest.err; then
  1665. grep -v '^ *+' conftest.err >conftest.er1
  1666. cat conftest.er1 >&5
  1667. mv -f conftest.er1 conftest.err
  1668. fi
  1669. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1670. test $ac_status = 0; } && {
  1671. test -z "$ac_c_werror_flag" ||
  1672. test ! -s conftest.err
  1673. } && test -s conftest$ac_exeext && {
  1674. test "$cross_compiling" = yes ||
  1675. test -x conftest$ac_exeext
  1676. }; then :
  1677. ac_retval=0
  1678. else
  1679. $as_echo "$as_me: failed program was:" >&5
  1680. sed 's/^/| /' conftest.$ac_ext >&5
  1681. ac_retval=1
  1682. fi
  1683. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1684. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1685. # interfere with the next link command; also delete a directory that is
  1686. # left behind by Apple's compiler. We do this before executing the actions.
  1687. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1688. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1689. as_fn_set_status $ac_retval
  1690. } # ac_fn_c_try_link
  1691. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1692. # -------------------------------------------
  1693. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1694. # variable VAR accordingly.
  1695. ac_fn_c_check_type ()
  1696. {
  1697. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1699. $as_echo_n "checking for $2... " >&6; }
  1700. if eval \${$3+:} false; then :
  1701. $as_echo_n "(cached) " >&6
  1702. else
  1703. eval "$3=no"
  1704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1705. /* end confdefs.h. */
  1706. $4
  1707. int
  1708. main ()
  1709. {
  1710. if (sizeof ($2))
  1711. return 0;
  1712. ;
  1713. return 0;
  1714. }
  1715. _ACEOF
  1716. if ac_fn_c_try_compile "$LINENO"; then :
  1717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1718. /* end confdefs.h. */
  1719. $4
  1720. int
  1721. main ()
  1722. {
  1723. if (sizeof (($2)))
  1724. return 0;
  1725. ;
  1726. return 0;
  1727. }
  1728. _ACEOF
  1729. if ac_fn_c_try_compile "$LINENO"; then :
  1730. else
  1731. eval "$3=yes"
  1732. fi
  1733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1734. fi
  1735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1736. fi
  1737. eval ac_res=\$$3
  1738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1739. $as_echo "$ac_res" >&6; }
  1740. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1741. } # ac_fn_c_check_type
  1742. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1743. # --------------------------------------------
  1744. # Tries to find the compile-time value of EXPR in a program that includes
  1745. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1746. # computed
  1747. ac_fn_c_compute_int ()
  1748. {
  1749. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1750. if test "$cross_compiling" = yes; then
  1751. # Depending upon the size, compute the lo and hi bounds.
  1752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1753. /* end confdefs.h. */
  1754. $4
  1755. int
  1756. main ()
  1757. {
  1758. static int test_array [1 - 2 * !(($2) >= 0)];
  1759. test_array [0] = 0;
  1760. return test_array [0];
  1761. ;
  1762. return 0;
  1763. }
  1764. _ACEOF
  1765. if ac_fn_c_try_compile "$LINENO"; then :
  1766. ac_lo=0 ac_mid=0
  1767. while :; do
  1768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1769. /* end confdefs.h. */
  1770. $4
  1771. int
  1772. main ()
  1773. {
  1774. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1775. test_array [0] = 0;
  1776. return test_array [0];
  1777. ;
  1778. return 0;
  1779. }
  1780. _ACEOF
  1781. if ac_fn_c_try_compile "$LINENO"; then :
  1782. ac_hi=$ac_mid; break
  1783. else
  1784. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1785. if test $ac_lo -le $ac_mid; then
  1786. ac_lo= ac_hi=
  1787. break
  1788. fi
  1789. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1790. fi
  1791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1792. done
  1793. else
  1794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1795. /* end confdefs.h. */
  1796. $4
  1797. int
  1798. main ()
  1799. {
  1800. static int test_array [1 - 2 * !(($2) < 0)];
  1801. test_array [0] = 0;
  1802. return test_array [0];
  1803. ;
  1804. return 0;
  1805. }
  1806. _ACEOF
  1807. if ac_fn_c_try_compile "$LINENO"; then :
  1808. ac_hi=-1 ac_mid=-1
  1809. while :; do
  1810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1811. /* end confdefs.h. */
  1812. $4
  1813. int
  1814. main ()
  1815. {
  1816. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1817. test_array [0] = 0;
  1818. return test_array [0];
  1819. ;
  1820. return 0;
  1821. }
  1822. _ACEOF
  1823. if ac_fn_c_try_compile "$LINENO"; then :
  1824. ac_lo=$ac_mid; break
  1825. else
  1826. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1827. if test $ac_mid -le $ac_hi; then
  1828. ac_lo= ac_hi=
  1829. break
  1830. fi
  1831. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1832. fi
  1833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1834. done
  1835. else
  1836. ac_lo= ac_hi=
  1837. fi
  1838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1839. fi
  1840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1841. # Binary search between lo and hi bounds.
  1842. while test "x$ac_lo" != "x$ac_hi"; do
  1843. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1845. /* end confdefs.h. */
  1846. $4
  1847. int
  1848. main ()
  1849. {
  1850. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1851. test_array [0] = 0;
  1852. return test_array [0];
  1853. ;
  1854. return 0;
  1855. }
  1856. _ACEOF
  1857. if ac_fn_c_try_compile "$LINENO"; then :
  1858. ac_hi=$ac_mid
  1859. else
  1860. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1861. fi
  1862. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1863. done
  1864. case $ac_lo in #((
  1865. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1866. '') ac_retval=1 ;;
  1867. esac
  1868. else
  1869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1870. /* end confdefs.h. */
  1871. $4
  1872. static long int longval () { return $2; }
  1873. static unsigned long int ulongval () { return $2; }
  1874. #include <stdio.h>
  1875. #include <stdlib.h>
  1876. int
  1877. main ()
  1878. {
  1879. FILE *f = fopen ("conftest.val", "w");
  1880. if (! f)
  1881. return 1;
  1882. if (($2) < 0)
  1883. {
  1884. long int i = longval ();
  1885. if (i != ($2))
  1886. return 1;
  1887. fprintf (f, "%ld", i);
  1888. }
  1889. else
  1890. {
  1891. unsigned long int i = ulongval ();
  1892. if (i != ($2))
  1893. return 1;
  1894. fprintf (f, "%lu", i);
  1895. }
  1896. /* Do not output a trailing newline, as this causes \r\n confusion
  1897. on some platforms. */
  1898. return ferror (f) || fclose (f) != 0;
  1899. ;
  1900. return 0;
  1901. }
  1902. _ACEOF
  1903. if ac_fn_c_try_run "$LINENO"; then :
  1904. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1905. else
  1906. ac_retval=1
  1907. fi
  1908. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1909. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1910. rm -f conftest.val
  1911. fi
  1912. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1913. as_fn_set_status $ac_retval
  1914. } # ac_fn_c_compute_int
  1915. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1916. # ---------------------------------------------
  1917. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1918. # accordingly.
  1919. ac_fn_c_check_decl ()
  1920. {
  1921. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1922. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1923. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1925. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1926. if eval \${$3+:} false; then :
  1927. $as_echo_n "(cached) " >&6
  1928. else
  1929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1930. /* end confdefs.h. */
  1931. $4
  1932. int
  1933. main ()
  1934. {
  1935. #ifndef $as_decl_name
  1936. #ifdef __cplusplus
  1937. (void) $as_decl_use;
  1938. #else
  1939. (void) $as_decl_name;
  1940. #endif
  1941. #endif
  1942. ;
  1943. return 0;
  1944. }
  1945. _ACEOF
  1946. if ac_fn_c_try_compile "$LINENO"; then :
  1947. eval "$3=yes"
  1948. else
  1949. eval "$3=no"
  1950. fi
  1951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1952. fi
  1953. eval ac_res=\$$3
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1955. $as_echo "$ac_res" >&6; }
  1956. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1957. } # ac_fn_c_check_decl
  1958. # ac_fn_c_check_func LINENO FUNC VAR
  1959. # ----------------------------------
  1960. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1961. ac_fn_c_check_func ()
  1962. {
  1963. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1965. $as_echo_n "checking for $2... " >&6; }
  1966. if eval \${$3+:} false; then :
  1967. $as_echo_n "(cached) " >&6
  1968. else
  1969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1970. /* end confdefs.h. */
  1971. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1972. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1973. #define $2 innocuous_$2
  1974. /* System header to define __stub macros and hopefully few prototypes,
  1975. which can conflict with char $2 (); below.
  1976. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1977. <limits.h> exists even on freestanding compilers. */
  1978. #ifdef __STDC__
  1979. # include <limits.h>
  1980. #else
  1981. # include <assert.h>
  1982. #endif
  1983. #undef $2
  1984. /* Override any GCC internal prototype to avoid an error.
  1985. Use char because int might match the return type of a GCC
  1986. builtin and then its argument prototype would still apply. */
  1987. #ifdef __cplusplus
  1988. extern "C"
  1989. #endif
  1990. char $2 ();
  1991. /* The GNU C library defines this for functions which it implements
  1992. to always fail with ENOSYS. Some functions are actually named
  1993. something starting with __ and the normal name is an alias. */
  1994. #if defined __stub_$2 || defined __stub___$2
  1995. choke me
  1996. #endif
  1997. int
  1998. main ()
  1999. {
  2000. return $2 ();
  2001. ;
  2002. return 0;
  2003. }
  2004. _ACEOF
  2005. if ac_fn_c_try_link "$LINENO"; then :
  2006. eval "$3=yes"
  2007. else
  2008. eval "$3=no"
  2009. fi
  2010. rm -f core conftest.err conftest.$ac_objext \
  2011. conftest$ac_exeext conftest.$ac_ext
  2012. fi
  2013. eval ac_res=\$$3
  2014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2015. $as_echo "$ac_res" >&6; }
  2016. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2017. } # ac_fn_c_check_func
  2018. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2019. # ----------------------------------------------------
  2020. # Tries to find if the field MEMBER exists in type AGGR, after including
  2021. # INCLUDES, setting cache variable VAR accordingly.
  2022. ac_fn_c_check_member ()
  2023. {
  2024. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2026. $as_echo_n "checking for $2.$3... " >&6; }
  2027. if eval \${$4+:} false; then :
  2028. $as_echo_n "(cached) " >&6
  2029. else
  2030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2031. /* end confdefs.h. */
  2032. $5
  2033. int
  2034. main ()
  2035. {
  2036. static $2 ac_aggr;
  2037. if (ac_aggr.$3)
  2038. return 0;
  2039. ;
  2040. return 0;
  2041. }
  2042. _ACEOF
  2043. if ac_fn_c_try_compile "$LINENO"; then :
  2044. eval "$4=yes"
  2045. else
  2046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2047. /* end confdefs.h. */
  2048. $5
  2049. int
  2050. main ()
  2051. {
  2052. static $2 ac_aggr;
  2053. if (sizeof ac_aggr.$3)
  2054. return 0;
  2055. ;
  2056. return 0;
  2057. }
  2058. _ACEOF
  2059. if ac_fn_c_try_compile "$LINENO"; then :
  2060. eval "$4=yes"
  2061. else
  2062. eval "$4=no"
  2063. fi
  2064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2065. fi
  2066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2067. fi
  2068. eval ac_res=\$$4
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2070. $as_echo "$ac_res" >&6; }
  2071. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2072. } # ac_fn_c_check_member
  2073. # ac_fn_cxx_try_link LINENO
  2074. # -------------------------
  2075. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2076. ac_fn_cxx_try_link ()
  2077. {
  2078. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2079. rm -f conftest.$ac_objext conftest$ac_exeext
  2080. if { { ac_try="$ac_link"
  2081. case "(($ac_try" in
  2082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2083. *) ac_try_echo=$ac_try;;
  2084. esac
  2085. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2086. $as_echo "$ac_try_echo"; } >&5
  2087. (eval "$ac_link") 2>conftest.err
  2088. ac_status=$?
  2089. if test -s conftest.err; then
  2090. grep -v '^ *+' conftest.err >conftest.er1
  2091. cat conftest.er1 >&5
  2092. mv -f conftest.er1 conftest.err
  2093. fi
  2094. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2095. test $ac_status = 0; } && {
  2096. test -z "$ac_cxx_werror_flag" ||
  2097. test ! -s conftest.err
  2098. } && test -s conftest$ac_exeext && {
  2099. test "$cross_compiling" = yes ||
  2100. test -x conftest$ac_exeext
  2101. }; then :
  2102. ac_retval=0
  2103. else
  2104. $as_echo "$as_me: failed program was:" >&5
  2105. sed 's/^/| /' conftest.$ac_ext >&5
  2106. ac_retval=1
  2107. fi
  2108. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2109. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2110. # interfere with the next link command; also delete a directory that is
  2111. # left behind by Apple's compiler. We do this before executing the actions.
  2112. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2113. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2114. as_fn_set_status $ac_retval
  2115. } # ac_fn_cxx_try_link
  2116. # ac_fn_cxx_check_func LINENO FUNC VAR
  2117. # ------------------------------------
  2118. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2119. ac_fn_cxx_check_func ()
  2120. {
  2121. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2123. $as_echo_n "checking for $2... " >&6; }
  2124. if eval \${$3+:} false; then :
  2125. $as_echo_n "(cached) " >&6
  2126. else
  2127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2128. /* end confdefs.h. */
  2129. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2130. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2131. #define $2 innocuous_$2
  2132. /* System header to define __stub macros and hopefully few prototypes,
  2133. which can conflict with char $2 (); below.
  2134. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2135. <limits.h> exists even on freestanding compilers. */
  2136. #ifdef __STDC__
  2137. # include <limits.h>
  2138. #else
  2139. # include <assert.h>
  2140. #endif
  2141. #undef $2
  2142. /* Override any GCC internal prototype to avoid an error.
  2143. Use char because int might match the return type of a GCC
  2144. builtin and then its argument prototype would still apply. */
  2145. #ifdef __cplusplus
  2146. extern "C"
  2147. #endif
  2148. char $2 ();
  2149. /* The GNU C library defines this for functions which it implements
  2150. to always fail with ENOSYS. Some functions are actually named
  2151. something starting with __ and the normal name is an alias. */
  2152. #if defined __stub_$2 || defined __stub___$2
  2153. choke me
  2154. #endif
  2155. int
  2156. main ()
  2157. {
  2158. return $2 ();
  2159. ;
  2160. return 0;
  2161. }
  2162. _ACEOF
  2163. if ac_fn_cxx_try_link "$LINENO"; then :
  2164. eval "$3=yes"
  2165. else
  2166. eval "$3=no"
  2167. fi
  2168. rm -f core conftest.err conftest.$ac_objext \
  2169. conftest$ac_exeext conftest.$ac_ext
  2170. fi
  2171. eval ac_res=\$$3
  2172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2173. $as_echo "$ac_res" >&6; }
  2174. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2175. } # ac_fn_cxx_check_func
  2176. cat >config.log <<_ACEOF
  2177. This file contains any messages produced by compilers while
  2178. running configure, to aid debugging if configure makes a mistake.
  2179. It was created by gdbsupport $as_me 1.0, which was
  2180. generated by GNU Autoconf 2.69. Invocation command line was
  2181. $ $0 $@
  2182. _ACEOF
  2183. exec 5>>config.log
  2184. {
  2185. cat <<_ASUNAME
  2186. ## --------- ##
  2187. ## Platform. ##
  2188. ## --------- ##
  2189. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2190. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2191. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2192. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2193. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2194. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2195. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2196. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2197. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2198. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2199. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2200. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2201. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2202. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2203. _ASUNAME
  2204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2205. for as_dir in $PATH
  2206. do
  2207. IFS=$as_save_IFS
  2208. test -z "$as_dir" && as_dir=.
  2209. $as_echo "PATH: $as_dir"
  2210. done
  2211. IFS=$as_save_IFS
  2212. } >&5
  2213. cat >&5 <<_ACEOF
  2214. ## ----------- ##
  2215. ## Core tests. ##
  2216. ## ----------- ##
  2217. _ACEOF
  2218. # Keep a trace of the command line.
  2219. # Strip out --no-create and --no-recursion so they do not pile up.
  2220. # Strip out --silent because we don't want to record it for future runs.
  2221. # Also quote any args containing shell meta-characters.
  2222. # Make two passes to allow for proper duplicate-argument suppression.
  2223. ac_configure_args=
  2224. ac_configure_args0=
  2225. ac_configure_args1=
  2226. ac_must_keep_next=false
  2227. for ac_pass in 1 2
  2228. do
  2229. for ac_arg
  2230. do
  2231. case $ac_arg in
  2232. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2233. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2234. | -silent | --silent | --silen | --sile | --sil)
  2235. continue ;;
  2236. *\'*)
  2237. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2238. esac
  2239. case $ac_pass in
  2240. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2241. 2)
  2242. as_fn_append ac_configure_args1 " '$ac_arg'"
  2243. if test $ac_must_keep_next = true; then
  2244. ac_must_keep_next=false # Got value, back to normal.
  2245. else
  2246. case $ac_arg in
  2247. *=* | --config-cache | -C | -disable-* | --disable-* \
  2248. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2249. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2250. | -with-* | --with-* | -without-* | --without-* | --x)
  2251. case "$ac_configure_args0 " in
  2252. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2253. esac
  2254. ;;
  2255. -* ) ac_must_keep_next=true ;;
  2256. esac
  2257. fi
  2258. as_fn_append ac_configure_args " '$ac_arg'"
  2259. ;;
  2260. esac
  2261. done
  2262. done
  2263. { ac_configure_args0=; unset ac_configure_args0;}
  2264. { ac_configure_args1=; unset ac_configure_args1;}
  2265. # When interrupted or exit'd, cleanup temporary files, and complete
  2266. # config.log. We remove comments because anyway the quotes in there
  2267. # would cause problems or look ugly.
  2268. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2269. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2270. trap 'exit_status=$?
  2271. # Save into config.log some information that might help in debugging.
  2272. {
  2273. echo
  2274. $as_echo "## ---------------- ##
  2275. ## Cache variables. ##
  2276. ## ---------------- ##"
  2277. echo
  2278. # The following way of writing the cache mishandles newlines in values,
  2279. (
  2280. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2281. eval ac_val=\$$ac_var
  2282. case $ac_val in #(
  2283. *${as_nl}*)
  2284. case $ac_var in #(
  2285. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2286. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2287. esac
  2288. case $ac_var in #(
  2289. _ | IFS | as_nl) ;; #(
  2290. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2291. *) { eval $ac_var=; unset $ac_var;} ;;
  2292. esac ;;
  2293. esac
  2294. done
  2295. (set) 2>&1 |
  2296. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2297. *${as_nl}ac_space=\ *)
  2298. sed -n \
  2299. "s/'\''/'\''\\\\'\'''\''/g;
  2300. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2301. ;; #(
  2302. *)
  2303. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2304. ;;
  2305. esac |
  2306. sort
  2307. )
  2308. echo
  2309. $as_echo "## ----------------- ##
  2310. ## Output variables. ##
  2311. ## ----------------- ##"
  2312. echo
  2313. for ac_var in $ac_subst_vars
  2314. do
  2315. eval ac_val=\$$ac_var
  2316. case $ac_val in
  2317. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2318. esac
  2319. $as_echo "$ac_var='\''$ac_val'\''"
  2320. done | sort
  2321. echo
  2322. if test -n "$ac_subst_files"; then
  2323. $as_echo "## ------------------- ##
  2324. ## File substitutions. ##
  2325. ## ------------------- ##"
  2326. echo
  2327. for ac_var in $ac_subst_files
  2328. do
  2329. eval ac_val=\$$ac_var
  2330. case $ac_val in
  2331. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2332. esac
  2333. $as_echo "$ac_var='\''$ac_val'\''"
  2334. done | sort
  2335. echo
  2336. fi
  2337. if test -s confdefs.h; then
  2338. $as_echo "## ----------- ##
  2339. ## confdefs.h. ##
  2340. ## ----------- ##"
  2341. echo
  2342. cat confdefs.h
  2343. echo
  2344. fi
  2345. test "$ac_signal" != 0 &&
  2346. $as_echo "$as_me: caught signal $ac_signal"
  2347. $as_echo "$as_me: exit $exit_status"
  2348. } >&5
  2349. rm -f core *.core core.conftest.* &&
  2350. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2351. exit $exit_status
  2352. ' 0
  2353. for ac_signal in 1 2 13 15; do
  2354. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2355. done
  2356. ac_signal=0
  2357. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2358. rm -f -r conftest* confdefs.h
  2359. $as_echo "/* confdefs.h */" > confdefs.h
  2360. # Predefined preprocessor variables.
  2361. cat >>confdefs.h <<_ACEOF
  2362. #define PACKAGE_NAME "$PACKAGE_NAME"
  2363. _ACEOF
  2364. cat >>confdefs.h <<_ACEOF
  2365. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2366. _ACEOF
  2367. cat >>confdefs.h <<_ACEOF
  2368. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2369. _ACEOF
  2370. cat >>confdefs.h <<_ACEOF
  2371. #define PACKAGE_STRING "$PACKAGE_STRING"
  2372. _ACEOF
  2373. cat >>confdefs.h <<_ACEOF
  2374. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2375. _ACEOF
  2376. cat >>confdefs.h <<_ACEOF
  2377. #define PACKAGE_URL "$PACKAGE_URL"
  2378. _ACEOF
  2379. # Let the site file select an alternate cache file if it wants to.
  2380. # Prefer an explicitly selected file to automatically selected ones.
  2381. ac_site_file1=NONE
  2382. ac_site_file2=NONE
  2383. if test -n "$CONFIG_SITE"; then
  2384. # We do not want a PATH search for config.site.
  2385. case $CONFIG_SITE in #((
  2386. -*) ac_site_file1=./$CONFIG_SITE;;
  2387. */*) ac_site_file1=$CONFIG_SITE;;
  2388. *) ac_site_file1=./$CONFIG_SITE;;
  2389. esac
  2390. elif test "x$prefix" != xNONE; then
  2391. ac_site_file1=$prefix/share/config.site
  2392. ac_site_file2=$prefix/etc/config.site
  2393. else
  2394. ac_site_file1=$ac_default_prefix/share/config.site
  2395. ac_site_file2=$ac_default_prefix/etc/config.site
  2396. fi
  2397. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2398. do
  2399. test "x$ac_site_file" = xNONE && continue
  2400. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2402. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2403. sed 's/^/| /' "$ac_site_file" >&5
  2404. . "$ac_site_file" \
  2405. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2406. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2407. as_fn_error $? "failed to load site script $ac_site_file
  2408. See \`config.log' for more details" "$LINENO" 5; }
  2409. fi
  2410. done
  2411. if test -r "$cache_file"; then
  2412. # Some versions of bash will fail to source /dev/null (special files
  2413. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2414. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2416. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2417. case $cache_file in
  2418. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2419. *) . "./$cache_file";;
  2420. esac
  2421. fi
  2422. else
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2424. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2425. >$cache_file
  2426. fi
  2427. as_fn_append ac_header_list " stdlib.h"
  2428. as_fn_append ac_header_list " unistd.h"
  2429. as_fn_append ac_header_list " sys/param.h"
  2430. # Check that the precious variables saved in the cache have kept the same
  2431. # value.
  2432. ac_cache_corrupted=false
  2433. for ac_var in $ac_precious_vars; do
  2434. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2435. eval ac_new_set=\$ac_env_${ac_var}_set
  2436. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2437. eval ac_new_val=\$ac_env_${ac_var}_value
  2438. case $ac_old_set,$ac_new_set in
  2439. set,)
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2441. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2442. ac_cache_corrupted=: ;;
  2443. ,set)
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2445. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2446. ac_cache_corrupted=: ;;
  2447. ,);;
  2448. *)
  2449. if test "x$ac_old_val" != "x$ac_new_val"; then
  2450. # differences in whitespace do not lead to failure.
  2451. ac_old_val_w=`echo x $ac_old_val`
  2452. ac_new_val_w=`echo x $ac_new_val`
  2453. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2455. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2456. ac_cache_corrupted=:
  2457. else
  2458. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2459. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2460. eval $ac_var=\$ac_old_val
  2461. fi
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2463. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2465. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2466. fi;;
  2467. esac
  2468. # Pass precious variables to config.status.
  2469. if test "$ac_new_set" = set; then
  2470. case $ac_new_val in
  2471. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2472. *) ac_arg=$ac_var=$ac_new_val ;;
  2473. esac
  2474. case " $ac_configure_args " in
  2475. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2476. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2477. esac
  2478. fi
  2479. done
  2480. if $ac_cache_corrupted; then
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2482. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2484. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2485. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2486. fi
  2487. ## -------------------- ##
  2488. ## Main body of script. ##
  2489. ## -------------------- ##
  2490. ac_ext=c
  2491. ac_cpp='$CPP $CPPFLAGS'
  2492. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2493. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2494. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2495. ac_config_headers="$ac_config_headers config.h:config.in"
  2496. # Set build, build_cpu, build_vendor and build_os.
  2497. ac_aux_dir=
  2498. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2499. if test -f "$ac_dir/install-sh"; then
  2500. ac_aux_dir=$ac_dir
  2501. ac_install_sh="$ac_aux_dir/install-sh -c"
  2502. break
  2503. elif test -f "$ac_dir/install.sh"; then
  2504. ac_aux_dir=$ac_dir
  2505. ac_install_sh="$ac_aux_dir/install.sh -c"
  2506. break
  2507. elif test -f "$ac_dir/shtool"; then
  2508. ac_aux_dir=$ac_dir
  2509. ac_install_sh="$ac_aux_dir/shtool install -c"
  2510. break
  2511. fi
  2512. done
  2513. if test -z "$ac_aux_dir"; then
  2514. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2515. fi
  2516. # These three variables are undocumented and unsupported,
  2517. # and are intended to be withdrawn in a future Autoconf release.
  2518. # They can cause serious problems if a builder's source tree is in a directory
  2519. # whose full name contains unusual characters.
  2520. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2521. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2522. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2523. # Make sure we can run config.sub.
  2524. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2525. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2527. $as_echo_n "checking build system type... " >&6; }
  2528. if ${ac_cv_build+:} false; then :
  2529. $as_echo_n "(cached) " >&6
  2530. else
  2531. ac_build_alias=$build_alias
  2532. test "x$ac_build_alias" = x &&
  2533. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2534. test "x$ac_build_alias" = x &&
  2535. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2536. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2537. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2538. fi
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2540. $as_echo "$ac_cv_build" >&6; }
  2541. case $ac_cv_build in
  2542. *-*-*) ;;
  2543. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2544. esac
  2545. build=$ac_cv_build
  2546. ac_save_IFS=$IFS; IFS='-'
  2547. set x $ac_cv_build
  2548. shift
  2549. build_cpu=$1
  2550. build_vendor=$2
  2551. shift; shift
  2552. # Remember, the first character of IFS is used to create $*,
  2553. # except with old shells:
  2554. build_os=$*
  2555. IFS=$ac_save_IFS
  2556. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2557. # Set host, host_cpu, host_vendor, and host_os.
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2559. $as_echo_n "checking host system type... " >&6; }
  2560. if ${ac_cv_host+:} false; then :
  2561. $as_echo_n "(cached) " >&6
  2562. else
  2563. if test "x$host_alias" = x; then
  2564. ac_cv_host=$ac_cv_build
  2565. else
  2566. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2567. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2568. fi
  2569. fi
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2571. $as_echo "$ac_cv_host" >&6; }
  2572. case $ac_cv_host in
  2573. *-*-*) ;;
  2574. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2575. esac
  2576. host=$ac_cv_host
  2577. ac_save_IFS=$IFS; IFS='-'
  2578. set x $ac_cv_host
  2579. shift
  2580. host_cpu=$1
  2581. host_vendor=$2
  2582. shift; shift
  2583. # Remember, the first character of IFS is used to create $*,
  2584. # except with old shells:
  2585. host_os=$*
  2586. IFS=$ac_save_IFS
  2587. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2588. # Set target, target_cpu, target_vendor, and target_os.
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2590. $as_echo_n "checking target system type... " >&6; }
  2591. if ${ac_cv_target+:} false; then :
  2592. $as_echo_n "(cached) " >&6
  2593. else
  2594. if test "x$target_alias" = x; then
  2595. ac_cv_target=$ac_cv_host
  2596. else
  2597. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2598. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2599. fi
  2600. fi
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2602. $as_echo "$ac_cv_target" >&6; }
  2603. case $ac_cv_target in
  2604. *-*-*) ;;
  2605. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2606. esac
  2607. target=$ac_cv_target
  2608. ac_save_IFS=$IFS; IFS='-'
  2609. set x $ac_cv_target
  2610. shift
  2611. target_cpu=$1
  2612. target_vendor=$2
  2613. shift; shift
  2614. # Remember, the first character of IFS is used to create $*,
  2615. # except with old shells:
  2616. target_os=$*
  2617. IFS=$ac_save_IFS
  2618. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2619. # The aliases save the names the user supplied, while $host etc.
  2620. # will get canonicalized.
  2621. test -n "$target_alias" &&
  2622. test "$program_prefix$program_suffix$program_transform_name" = \
  2623. NONENONEs,x,x, &&
  2624. program_prefix=${target_alias}-
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2626. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2627. # Check whether --enable-maintainer-mode was given.
  2628. if test "${enable_maintainer_mode+set}" = set; then :
  2629. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2630. else
  2631. USE_MAINTAINER_MODE=no
  2632. fi
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2634. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2635. if test $USE_MAINTAINER_MODE = yes; then
  2636. MAINTAINER_MODE_TRUE=
  2637. MAINTAINER_MODE_FALSE='#'
  2638. else
  2639. MAINTAINER_MODE_TRUE='#'
  2640. MAINTAINER_MODE_FALSE=
  2641. fi
  2642. MAINT=$MAINTAINER_MODE_TRUE
  2643. ac_aux_dir=
  2644. for ac_dir in .. "$srcdir"/..; do
  2645. if test -f "$ac_dir/install-sh"; then
  2646. ac_aux_dir=$ac_dir
  2647. ac_install_sh="$ac_aux_dir/install-sh -c"
  2648. break
  2649. elif test -f "$ac_dir/install.sh"; then
  2650. ac_aux_dir=$ac_dir
  2651. ac_install_sh="$ac_aux_dir/install.sh -c"
  2652. break
  2653. elif test -f "$ac_dir/shtool"; then
  2654. ac_aux_dir=$ac_dir
  2655. ac_install_sh="$ac_aux_dir/shtool install -c"
  2656. break
  2657. fi
  2658. done
  2659. if test -z "$ac_aux_dir"; then
  2660. as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
  2661. fi
  2662. # These three variables are undocumented and unsupported,
  2663. # and are intended to be withdrawn in a future Autoconf release.
  2664. # They can cause serious problems if a builder's source tree is in a directory
  2665. # whose full name contains unusual characters.
  2666. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2667. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2668. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2669. am__api_version='1.15'
  2670. # Find a good install program. We prefer a C program (faster),
  2671. # so one script is as good as another. But avoid the broken or
  2672. # incompatible versions:
  2673. # SysV /etc/install, /usr/sbin/install
  2674. # SunOS /usr/etc/install
  2675. # IRIX /sbin/install
  2676. # AIX /bin/install
  2677. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2678. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2679. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2680. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2681. # OS/2's system install, which has a completely different semantic
  2682. # ./install, which can be erroneously created by make from ./install.sh.
  2683. # Reject install programs that cannot install multiple files.
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2685. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2686. if test -z "$INSTALL"; then
  2687. if ${ac_cv_path_install+:} false; then :
  2688. $as_echo_n "(cached) " >&6
  2689. else
  2690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2691. for as_dir in $PATH
  2692. do
  2693. IFS=$as_save_IFS
  2694. test -z "$as_dir" && as_dir=.
  2695. # Account for people who put trailing slashes in PATH elements.
  2696. case $as_dir/ in #((
  2697. ./ | .// | /[cC]/* | \
  2698. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2699. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2700. /usr/ucb/* ) ;;
  2701. *)
  2702. # OSF1 and SCO ODT 3.0 have their own names for install.
  2703. # Don't use installbsd from OSF since it installs stuff as root
  2704. # by default.
  2705. for ac_prog in ginstall scoinst install; do
  2706. for ac_exec_ext in '' $ac_executable_extensions; do
  2707. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2708. if test $ac_prog = install &&
  2709. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2710. # AIX install. It has an incompatible calling convention.
  2711. :
  2712. elif test $ac_prog = install &&
  2713. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2714. # program-specific install script used by HP pwplus--don't use.
  2715. :
  2716. else
  2717. rm -rf conftest.one conftest.two conftest.dir
  2718. echo one > conftest.one
  2719. echo two > conftest.two
  2720. mkdir conftest.dir
  2721. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2722. test -s conftest.one && test -s conftest.two &&
  2723. test -s conftest.dir/conftest.one &&
  2724. test -s conftest.dir/conftest.two
  2725. then
  2726. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2727. break 3
  2728. fi
  2729. fi
  2730. fi
  2731. done
  2732. done
  2733. ;;
  2734. esac
  2735. done
  2736. IFS=$as_save_IFS
  2737. rm -rf conftest.one conftest.two conftest.dir
  2738. fi
  2739. if test "${ac_cv_path_install+set}" = set; then
  2740. INSTALL=$ac_cv_path_install
  2741. else
  2742. # As a last resort, use the slow shell script. Don't cache a
  2743. # value for INSTALL within a source directory, because that will
  2744. # break other packages using the cache if that directory is
  2745. # removed, or if the value is a relative name.
  2746. INSTALL=$ac_install_sh
  2747. fi
  2748. fi
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2750. $as_echo "$INSTALL" >&6; }
  2751. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2752. # It thinks the first close brace ends the variable substitution.
  2753. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2754. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2755. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2757. $as_echo_n "checking whether build environment is sane... " >&6; }
  2758. # Reject unsafe characters in $srcdir or the absolute working directory
  2759. # name. Accept space and tab only in the latter.
  2760. am_lf='
  2761. '
  2762. case `pwd` in
  2763. *[\\\"\#\$\&\'\`$am_lf]*)
  2764. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2765. esac
  2766. case $srcdir in
  2767. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2768. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2769. esac
  2770. # Do 'set' in a subshell so we don't clobber the current shell's
  2771. # arguments. Must try -L first in case configure is actually a
  2772. # symlink; some systems play weird games with the mod time of symlinks
  2773. # (eg FreeBSD returns the mod time of the symlink's containing
  2774. # directory).
  2775. if (
  2776. am_has_slept=no
  2777. for am_try in 1 2; do
  2778. echo "timestamp, slept: $am_has_slept" > conftest.file
  2779. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2780. if test "$*" = "X"; then
  2781. # -L didn't work.
  2782. set X `ls -t "$srcdir/configure" conftest.file`
  2783. fi
  2784. if test "$*" != "X $srcdir/configure conftest.file" \
  2785. && test "$*" != "X conftest.file $srcdir/configure"; then
  2786. # If neither matched, then we have a broken ls. This can happen
  2787. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2788. # broken ls alias from the environment. This has actually
  2789. # happened. Such a system could not be considered "sane".
  2790. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2791. alias in your environment" "$LINENO" 5
  2792. fi
  2793. if test "$2" = conftest.file || test $am_try -eq 2; then
  2794. break
  2795. fi
  2796. # Just in case.
  2797. sleep 1
  2798. am_has_slept=yes
  2799. done
  2800. test "$2" = conftest.file
  2801. )
  2802. then
  2803. # Ok.
  2804. :
  2805. else
  2806. as_fn_error $? "newly created file is older than distributed files!
  2807. Check your system clock" "$LINENO" 5
  2808. fi
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2810. $as_echo "yes" >&6; }
  2811. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2812. # generated files are strictly newer.
  2813. am_sleep_pid=
  2814. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2815. ( sleep 1 ) &
  2816. am_sleep_pid=$!
  2817. fi
  2818. rm -f conftest.file
  2819. test "$program_prefix" != NONE &&
  2820. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2821. # Use a double $ so make ignores it.
  2822. test "$program_suffix" != NONE &&
  2823. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2824. # Double any \ or $.
  2825. # By default was `s,x,x', remove it if useless.
  2826. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2827. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2828. # Expand $ac_aux_dir to an absolute path.
  2829. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2830. if test x"${MISSING+set}" != xset; then
  2831. case $am_aux_dir in
  2832. *\ * | *\ *)
  2833. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2834. *)
  2835. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2836. esac
  2837. fi
  2838. # Use eval to expand $SHELL
  2839. if eval "$MISSING --is-lightweight"; then
  2840. am_missing_run="$MISSING "
  2841. else
  2842. am_missing_run=
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2844. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2845. fi
  2846. if test x"${install_sh+set}" != xset; then
  2847. case $am_aux_dir in
  2848. *\ * | *\ *)
  2849. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2850. *)
  2851. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2852. esac
  2853. fi
  2854. # Installed binaries are usually stripped using 'strip' when the user
  2855. # run "make install-strip". However 'strip' might not be the right
  2856. # tool to use in cross-compilation environments, therefore Automake
  2857. # will honor the 'STRIP' environment variable to overrule this program.
  2858. if test "$cross_compiling" != no; then
  2859. if test -n "$ac_tool_prefix"; then
  2860. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2861. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2863. $as_echo_n "checking for $ac_word... " >&6; }
  2864. if ${ac_cv_prog_STRIP+:} false; then :
  2865. $as_echo_n "(cached) " >&6
  2866. else
  2867. if test -n "$STRIP"; then
  2868. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2869. else
  2870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2871. for as_dir in $PATH
  2872. do
  2873. IFS=$as_save_IFS
  2874. test -z "$as_dir" && as_dir=.
  2875. for ac_exec_ext in '' $ac_executable_extensions; do
  2876. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2877. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2879. break 2
  2880. fi
  2881. done
  2882. done
  2883. IFS=$as_save_IFS
  2884. fi
  2885. fi
  2886. STRIP=$ac_cv_prog_STRIP
  2887. if test -n "$STRIP"; then
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2889. $as_echo "$STRIP" >&6; }
  2890. else
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2892. $as_echo "no" >&6; }
  2893. fi
  2894. fi
  2895. if test -z "$ac_cv_prog_STRIP"; then
  2896. ac_ct_STRIP=$STRIP
  2897. # Extract the first word of "strip", so it can be a program name with args.
  2898. set dummy strip; ac_word=$2
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2900. $as_echo_n "checking for $ac_word... " >&6; }
  2901. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2902. $as_echo_n "(cached) " >&6
  2903. else
  2904. if test -n "$ac_ct_STRIP"; then
  2905. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2906. else
  2907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2908. for as_dir in $PATH
  2909. do
  2910. IFS=$as_save_IFS
  2911. test -z "$as_dir" && as_dir=.
  2912. for ac_exec_ext in '' $ac_executable_extensions; do
  2913. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2914. ac_cv_prog_ac_ct_STRIP="strip"
  2915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2916. break 2
  2917. fi
  2918. done
  2919. done
  2920. IFS=$as_save_IFS
  2921. fi
  2922. fi
  2923. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2924. if test -n "$ac_ct_STRIP"; then
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2926. $as_echo "$ac_ct_STRIP" >&6; }
  2927. else
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2929. $as_echo "no" >&6; }
  2930. fi
  2931. if test "x$ac_ct_STRIP" = x; then
  2932. STRIP=":"
  2933. else
  2934. case $cross_compiling:$ac_tool_warned in
  2935. yes:)
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2937. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2938. ac_tool_warned=yes ;;
  2939. esac
  2940. STRIP=$ac_ct_STRIP
  2941. fi
  2942. else
  2943. STRIP="$ac_cv_prog_STRIP"
  2944. fi
  2945. fi
  2946. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2948. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2949. if test -z "$MKDIR_P"; then
  2950. if ${ac_cv_path_mkdir+:} false; then :
  2951. $as_echo_n "(cached) " >&6
  2952. else
  2953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2954. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2955. do
  2956. IFS=$as_save_IFS
  2957. test -z "$as_dir" && as_dir=.
  2958. for ac_prog in mkdir gmkdir; do
  2959. for ac_exec_ext in '' $ac_executable_extensions; do
  2960. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2961. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2962. 'mkdir (GNU coreutils) '* | \
  2963. 'mkdir (coreutils) '* | \
  2964. 'mkdir (fileutils) '4.1*)
  2965. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2966. break 3;;
  2967. esac
  2968. done
  2969. done
  2970. done
  2971. IFS=$as_save_IFS
  2972. fi
  2973. test -d ./--version && rmdir ./--version
  2974. if test "${ac_cv_path_mkdir+set}" = set; then
  2975. MKDIR_P="$ac_cv_path_mkdir -p"
  2976. else
  2977. # As a last resort, use the slow shell script. Don't cache a
  2978. # value for MKDIR_P within a source directory, because that will
  2979. # break other packages using the cache if that directory is
  2980. # removed, or if the value is a relative name.
  2981. MKDIR_P="$ac_install_sh -d"
  2982. fi
  2983. fi
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2985. $as_echo "$MKDIR_P" >&6; }
  2986. for ac_prog in gawk mawk nawk awk
  2987. do
  2988. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2989. set dummy $ac_prog; ac_word=$2
  2990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2991. $as_echo_n "checking for $ac_word... " >&6; }
  2992. if ${ac_cv_prog_AWK+:} false; then :
  2993. $as_echo_n "(cached) " >&6
  2994. else
  2995. if test -n "$AWK"; then
  2996. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2997. else
  2998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2999. for as_dir in $PATH
  3000. do
  3001. IFS=$as_save_IFS
  3002. test -z "$as_dir" && as_dir=.
  3003. for ac_exec_ext in '' $ac_executable_extensions; do
  3004. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3005. ac_cv_prog_AWK="$ac_prog"
  3006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3007. break 2
  3008. fi
  3009. done
  3010. done
  3011. IFS=$as_save_IFS
  3012. fi
  3013. fi
  3014. AWK=$ac_cv_prog_AWK
  3015. if test -n "$AWK"; then
  3016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3017. $as_echo "$AWK" >&6; }
  3018. else
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3020. $as_echo "no" >&6; }
  3021. fi
  3022. test -n "$AWK" && break
  3023. done
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3025. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3026. set x ${MAKE-make}
  3027. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3028. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3029. $as_echo_n "(cached) " >&6
  3030. else
  3031. cat >conftest.make <<\_ACEOF
  3032. SHELL = /bin/sh
  3033. all:
  3034. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3035. _ACEOF
  3036. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3037. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3038. *@@@%%%=?*=@@@%%%*)
  3039. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3040. *)
  3041. eval ac_cv_prog_make_${ac_make}_set=no;;
  3042. esac
  3043. rm -f conftest.make
  3044. fi
  3045. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3047. $as_echo "yes" >&6; }
  3048. SET_MAKE=
  3049. else
  3050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3051. $as_echo "no" >&6; }
  3052. SET_MAKE="MAKE=${MAKE-make}"
  3053. fi
  3054. rm -rf .tst 2>/dev/null
  3055. mkdir .tst 2>/dev/null
  3056. if test -d .tst; then
  3057. am__leading_dot=.
  3058. else
  3059. am__leading_dot=_
  3060. fi
  3061. rmdir .tst 2>/dev/null
  3062. # Check whether --enable-silent-rules was given.
  3063. if test "${enable_silent_rules+set}" = set; then :
  3064. enableval=$enable_silent_rules;
  3065. fi
  3066. case $enable_silent_rules in # (((
  3067. yes) AM_DEFAULT_VERBOSITY=0;;
  3068. no) AM_DEFAULT_VERBOSITY=1;;
  3069. *) AM_DEFAULT_VERBOSITY=1;;
  3070. esac
  3071. am_make=${MAKE-make}
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3073. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3074. if ${am_cv_make_support_nested_variables+:} false; then :
  3075. $as_echo_n "(cached) " >&6
  3076. else
  3077. if $as_echo 'TRUE=$(BAR$(V))
  3078. BAR0=false
  3079. BAR1=true
  3080. V=1
  3081. am__doit:
  3082. @$(TRUE)
  3083. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3084. am_cv_make_support_nested_variables=yes
  3085. else
  3086. am_cv_make_support_nested_variables=no
  3087. fi
  3088. fi
  3089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3090. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3091. if test $am_cv_make_support_nested_variables = yes; then
  3092. AM_V='$(V)'
  3093. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3094. else
  3095. AM_V=$AM_DEFAULT_VERBOSITY
  3096. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3097. fi
  3098. AM_BACKSLASH='\'
  3099. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3100. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3101. # is not polluted with repeated "-I."
  3102. am__isrc=' -I$(srcdir)'
  3103. # test to see if srcdir already configured
  3104. if test -f $srcdir/config.status; then
  3105. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3106. fi
  3107. fi
  3108. # test whether we have cygpath
  3109. if test -z "$CYGPATH_W"; then
  3110. if (cygpath --version) >/dev/null 2>/dev/null; then
  3111. CYGPATH_W='cygpath -w'
  3112. else
  3113. CYGPATH_W=echo
  3114. fi
  3115. fi
  3116. # Define the identity of the package.
  3117. PACKAGE='gdbsupport'
  3118. VERSION='1.0'
  3119. cat >>confdefs.h <<_ACEOF
  3120. #define PACKAGE "$PACKAGE"
  3121. _ACEOF
  3122. cat >>confdefs.h <<_ACEOF
  3123. #define VERSION "$VERSION"
  3124. _ACEOF
  3125. # Some tools Automake needs.
  3126. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3127. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3128. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3129. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3130. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3131. # For better backward compatibility. To be removed once Automake 1.9.x
  3132. # dies out for good. For more background, see:
  3133. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3134. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3135. mkdir_p='$(MKDIR_P)'
  3136. # We need awk for the "check" target (and possibly the TAP driver). The
  3137. # system "awk" is bad on some platforms.
  3138. # Always define AMTAR for backward compatibility. Yes, it's still used
  3139. # in the wild :-( We should find a proper way to deprecate it ...
  3140. AMTAR='$${TAR-tar}'
  3141. # We'll loop over all known methods to create a tar archive until one works.
  3142. _am_tools='gnutar pax cpio none'
  3143. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3144. # POSIX will say in a future version that running "rm -f" with no argument
  3145. # is OK; and we want to be able to make that assumption in our Makefile
  3146. # recipes. So use an aggressive probe to check that the usage we want is
  3147. # actually supported "in the wild" to an acceptable degree.
  3148. # See automake bug#10828.
  3149. # To make any issue more visible, cause the running configure to be aborted
  3150. # by default if the 'rm' program in use doesn't match our expectations; the
  3151. # user can still override this though.
  3152. if rm -f && rm -fr && rm -rf; then : OK; else
  3153. cat >&2 <<'END'
  3154. Oops!
  3155. Your 'rm' program seems unable to run without file operands specified
  3156. on the command line, even when the '-f' option is present. This is contrary
  3157. to the behaviour of most rm programs out there, and not conforming with
  3158. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3159. Please tell bug-automake@gnu.org about your system, including the value
  3160. of your $PATH and any error possibly output before this message. This
  3161. can help us improve future automake versions.
  3162. END
  3163. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3164. echo 'Configuration will proceed anyway, since you have set the' >&2
  3165. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3166. echo >&2
  3167. else
  3168. cat >&2 <<'END'
  3169. Aborting the configuration process, to ensure you take notice of the issue.
  3170. You can download and install GNU coreutils to get an 'rm' implementation
  3171. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3172. If you want to complete the configuration process using your problematic
  3173. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3174. to "yes", and re-run configure.
  3175. END
  3176. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3177. fi
  3178. fi
  3179. # Check whether --enable-silent-rules was given.
  3180. if test "${enable_silent_rules+set}" = set; then :
  3181. enableval=$enable_silent_rules;
  3182. fi
  3183. case $enable_silent_rules in # (((
  3184. yes) AM_DEFAULT_VERBOSITY=0;;
  3185. no) AM_DEFAULT_VERBOSITY=1;;
  3186. *) AM_DEFAULT_VERBOSITY=0;;
  3187. esac
  3188. am_make=${MAKE-make}
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3190. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3191. if ${am_cv_make_support_nested_variables+:} false; then :
  3192. $as_echo_n "(cached) " >&6
  3193. else
  3194. if $as_echo 'TRUE=$(BAR$(V))
  3195. BAR0=false
  3196. BAR1=true
  3197. V=1
  3198. am__doit:
  3199. @$(TRUE)
  3200. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3201. am_cv_make_support_nested_variables=yes
  3202. else
  3203. am_cv_make_support_nested_variables=no
  3204. fi
  3205. fi
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3207. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3208. if test $am_cv_make_support_nested_variables = yes; then
  3209. AM_V='$(V)'
  3210. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3211. else
  3212. AM_V=$AM_DEFAULT_VERBOSITY
  3213. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3214. fi
  3215. AM_BACKSLASH='\'
  3216. ac_ext=c
  3217. ac_cpp='$CPP $CPPFLAGS'
  3218. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3219. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3220. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3221. if test -n "$ac_tool_prefix"; then
  3222. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3223. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3225. $as_echo_n "checking for $ac_word... " >&6; }
  3226. if ${ac_cv_prog_CC+:} false; then :
  3227. $as_echo_n "(cached) " >&6
  3228. else
  3229. if test -n "$CC"; then
  3230. ac_cv_prog_CC="$CC" # Let the user override the test.
  3231. else
  3232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3233. for as_dir in $PATH
  3234. do
  3235. IFS=$as_save_IFS
  3236. test -z "$as_dir" && as_dir=.
  3237. for ac_exec_ext in '' $ac_executable_extensions; do
  3238. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3239. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3240. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3241. break 2
  3242. fi
  3243. done
  3244. done
  3245. IFS=$as_save_IFS
  3246. fi
  3247. fi
  3248. CC=$ac_cv_prog_CC
  3249. if test -n "$CC"; then
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3251. $as_echo "$CC" >&6; }
  3252. else
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3254. $as_echo "no" >&6; }
  3255. fi
  3256. fi
  3257. if test -z "$ac_cv_prog_CC"; then
  3258. ac_ct_CC=$CC
  3259. # Extract the first word of "gcc", so it can be a program name with args.
  3260. set dummy gcc; ac_word=$2
  3261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3262. $as_echo_n "checking for $ac_word... " >&6; }
  3263. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3264. $as_echo_n "(cached) " >&6
  3265. else
  3266. if test -n "$ac_ct_CC"; then
  3267. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3268. else
  3269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3270. for as_dir in $PATH
  3271. do
  3272. IFS=$as_save_IFS
  3273. test -z "$as_dir" && as_dir=.
  3274. for ac_exec_ext in '' $ac_executable_extensions; do
  3275. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3276. ac_cv_prog_ac_ct_CC="gcc"
  3277. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3278. break 2
  3279. fi
  3280. done
  3281. done
  3282. IFS=$as_save_IFS
  3283. fi
  3284. fi
  3285. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3286. if test -n "$ac_ct_CC"; then
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3288. $as_echo "$ac_ct_CC" >&6; }
  3289. else
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3291. $as_echo "no" >&6; }
  3292. fi
  3293. if test "x$ac_ct_CC" = x; then
  3294. CC=""
  3295. else
  3296. case $cross_compiling:$ac_tool_warned in
  3297. yes:)
  3298. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3299. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3300. ac_tool_warned=yes ;;
  3301. esac
  3302. CC=$ac_ct_CC
  3303. fi
  3304. else
  3305. CC="$ac_cv_prog_CC"
  3306. fi
  3307. if test -z "$CC"; then
  3308. if test -n "$ac_tool_prefix"; then
  3309. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3310. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3312. $as_echo_n "checking for $ac_word... " >&6; }
  3313. if ${ac_cv_prog_CC+:} false; then :
  3314. $as_echo_n "(cached) " >&6
  3315. else
  3316. if test -n "$CC"; then
  3317. ac_cv_prog_CC="$CC" # Let the user override the test.
  3318. else
  3319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3320. for as_dir in $PATH
  3321. do
  3322. IFS=$as_save_IFS
  3323. test -z "$as_dir" && as_dir=.
  3324. for ac_exec_ext in '' $ac_executable_extensions; do
  3325. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3326. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3328. break 2
  3329. fi
  3330. done
  3331. done
  3332. IFS=$as_save_IFS
  3333. fi
  3334. fi
  3335. CC=$ac_cv_prog_CC
  3336. if test -n "$CC"; then
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3338. $as_echo "$CC" >&6; }
  3339. else
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3341. $as_echo "no" >&6; }
  3342. fi
  3343. fi
  3344. fi
  3345. if test -z "$CC"; then
  3346. # Extract the first word of "cc", so it can be a program name with args.
  3347. set dummy cc; ac_word=$2
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3349. $as_echo_n "checking for $ac_word... " >&6; }
  3350. if ${ac_cv_prog_CC+:} false; then :
  3351. $as_echo_n "(cached) " >&6
  3352. else
  3353. if test -n "$CC"; then
  3354. ac_cv_prog_CC="$CC" # Let the user override the test.
  3355. else
  3356. ac_prog_rejected=no
  3357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3358. for as_dir in $PATH
  3359. do
  3360. IFS=$as_save_IFS
  3361. test -z "$as_dir" && as_dir=.
  3362. for ac_exec_ext in '' $ac_executable_extensions; do
  3363. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3364. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3365. ac_prog_rejected=yes
  3366. continue
  3367. fi
  3368. ac_cv_prog_CC="cc"
  3369. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3370. break 2
  3371. fi
  3372. done
  3373. done
  3374. IFS=$as_save_IFS
  3375. if test $ac_prog_rejected = yes; then
  3376. # We found a bogon in the path, so make sure we never use it.
  3377. set dummy $ac_cv_prog_CC
  3378. shift
  3379. if test $# != 0; then
  3380. # We chose a different compiler from the bogus one.
  3381. # However, it has the same basename, so the bogon will be chosen
  3382. # first if we set CC to just the basename; use the full file name.
  3383. shift
  3384. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3385. fi
  3386. fi
  3387. fi
  3388. fi
  3389. CC=$ac_cv_prog_CC
  3390. if test -n "$CC"; then
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3392. $as_echo "$CC" >&6; }
  3393. else
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3395. $as_echo "no" >&6; }
  3396. fi
  3397. fi
  3398. if test -z "$CC"; then
  3399. if test -n "$ac_tool_prefix"; then
  3400. for ac_prog in cl.exe
  3401. do
  3402. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3403. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3405. $as_echo_n "checking for $ac_word... " >&6; }
  3406. if ${ac_cv_prog_CC+:} false; then :
  3407. $as_echo_n "(cached) " >&6
  3408. else
  3409. if test -n "$CC"; then
  3410. ac_cv_prog_CC="$CC" # Let the user override the test.
  3411. else
  3412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3413. for as_dir in $PATH
  3414. do
  3415. IFS=$as_save_IFS
  3416. test -z "$as_dir" && as_dir=.
  3417. for ac_exec_ext in '' $ac_executable_extensions; do
  3418. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3419. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3420. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3421. break 2
  3422. fi
  3423. done
  3424. done
  3425. IFS=$as_save_IFS
  3426. fi
  3427. fi
  3428. CC=$ac_cv_prog_CC
  3429. if test -n "$CC"; then
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3431. $as_echo "$CC" >&6; }
  3432. else
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3434. $as_echo "no" >&6; }
  3435. fi
  3436. test -n "$CC" && break
  3437. done
  3438. fi
  3439. if test -z "$CC"; then
  3440. ac_ct_CC=$CC
  3441. for ac_prog in cl.exe
  3442. do
  3443. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3444. set dummy $ac_prog; ac_word=$2
  3445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3446. $as_echo_n "checking for $ac_word... " >&6; }
  3447. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3448. $as_echo_n "(cached) " >&6
  3449. else
  3450. if test -n "$ac_ct_CC"; then
  3451. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3452. else
  3453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3454. for as_dir in $PATH
  3455. do
  3456. IFS=$as_save_IFS
  3457. test -z "$as_dir" && as_dir=.
  3458. for ac_exec_ext in '' $ac_executable_extensions; do
  3459. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3460. ac_cv_prog_ac_ct_CC="$ac_prog"
  3461. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3462. break 2
  3463. fi
  3464. done
  3465. done
  3466. IFS=$as_save_IFS
  3467. fi
  3468. fi
  3469. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3470. if test -n "$ac_ct_CC"; then
  3471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3472. $as_echo "$ac_ct_CC" >&6; }
  3473. else
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3475. $as_echo "no" >&6; }
  3476. fi
  3477. test -n "$ac_ct_CC" && break
  3478. done
  3479. if test "x$ac_ct_CC" = x; then
  3480. CC=""
  3481. else
  3482. case $cross_compiling:$ac_tool_warned in
  3483. yes:)
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3485. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3486. ac_tool_warned=yes ;;
  3487. esac
  3488. CC=$ac_ct_CC
  3489. fi
  3490. fi
  3491. fi
  3492. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3493. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3494. as_fn_error $? "no acceptable C compiler found in \$PATH
  3495. See \`config.log' for more details" "$LINENO" 5; }
  3496. # Provide some information about the compiler.
  3497. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3498. set X $ac_compile
  3499. ac_compiler=$2
  3500. for ac_option in --version -v -V -qversion; do
  3501. { { ac_try="$ac_compiler $ac_option >&5"
  3502. case "(($ac_try" in
  3503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3504. *) ac_try_echo=$ac_try;;
  3505. esac
  3506. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3507. $as_echo "$ac_try_echo"; } >&5
  3508. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3509. ac_status=$?
  3510. if test -s conftest.err; then
  3511. sed '10a\
  3512. ... rest of stderr output deleted ...
  3513. 10q' conftest.err >conftest.er1
  3514. cat conftest.er1 >&5
  3515. fi
  3516. rm -f conftest.er1 conftest.err
  3517. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3518. test $ac_status = 0; }
  3519. done
  3520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3521. /* end confdefs.h. */
  3522. int
  3523. main ()
  3524. {
  3525. ;
  3526. return 0;
  3527. }
  3528. _ACEOF
  3529. ac_clean_files_save=$ac_clean_files
  3530. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3531. # Try to create an executable without -o first, disregard a.out.
  3532. # It will help us diagnose broken compilers, and finding out an intuition
  3533. # of exeext.
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3535. $as_echo_n "checking whether the C compiler works... " >&6; }
  3536. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3537. # The possible output files:
  3538. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3539. ac_rmfiles=
  3540. for ac_file in $ac_files
  3541. do
  3542. case $ac_file in
  3543. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3544. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3545. esac
  3546. done
  3547. rm -f $ac_rmfiles
  3548. if { { ac_try="$ac_link_default"
  3549. case "(($ac_try" in
  3550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3551. *) ac_try_echo=$ac_try;;
  3552. esac
  3553. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3554. $as_echo "$ac_try_echo"; } >&5
  3555. (eval "$ac_link_default") 2>&5
  3556. ac_status=$?
  3557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3558. test $ac_status = 0; }; then :
  3559. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3560. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3561. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3562. # so that the user can short-circuit this test for compilers unknown to
  3563. # Autoconf.
  3564. for ac_file in $ac_files ''
  3565. do
  3566. test -f "$ac_file" || continue
  3567. case $ac_file in
  3568. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3569. ;;
  3570. [ab].out )
  3571. # We found the default executable, but exeext='' is most
  3572. # certainly right.
  3573. break;;
  3574. *.* )
  3575. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3576. then :; else
  3577. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3578. fi
  3579. # We set ac_cv_exeext here because the later test for it is not
  3580. # safe: cross compilers may not add the suffix if given an `-o'
  3581. # argument, so we may need to know it at that point already.
  3582. # Even if this section looks crufty: it has the advantage of
  3583. # actually working.
  3584. break;;
  3585. * )
  3586. break;;
  3587. esac
  3588. done
  3589. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3590. else
  3591. ac_file=''
  3592. fi
  3593. if test -z "$ac_file"; then :
  3594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3595. $as_echo "no" >&6; }
  3596. $as_echo "$as_me: failed program was:" >&5
  3597. sed 's/^/| /' conftest.$ac_ext >&5
  3598. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3599. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3600. as_fn_error 77 "C compiler cannot create executables
  3601. See \`config.log' for more details" "$LINENO" 5; }
  3602. else
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3604. $as_echo "yes" >&6; }
  3605. fi
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3607. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3609. $as_echo "$ac_file" >&6; }
  3610. ac_exeext=$ac_cv_exeext
  3611. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3612. ac_clean_files=$ac_clean_files_save
  3613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3614. $as_echo_n "checking for suffix of executables... " >&6; }
  3615. if { { ac_try="$ac_link"
  3616. case "(($ac_try" in
  3617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3618. *) ac_try_echo=$ac_try;;
  3619. esac
  3620. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3621. $as_echo "$ac_try_echo"; } >&5
  3622. (eval "$ac_link") 2>&5
  3623. ac_status=$?
  3624. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3625. test $ac_status = 0; }; then :
  3626. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3627. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3628. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3629. # `rm'.
  3630. for ac_file in conftest.exe conftest conftest.*; do
  3631. test -f "$ac_file" || continue
  3632. case $ac_file in
  3633. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3634. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3635. break;;
  3636. * ) break;;
  3637. esac
  3638. done
  3639. else
  3640. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3641. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3642. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3643. See \`config.log' for more details" "$LINENO" 5; }
  3644. fi
  3645. rm -f conftest conftest$ac_cv_exeext
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3647. $as_echo "$ac_cv_exeext" >&6; }
  3648. rm -f conftest.$ac_ext
  3649. EXEEXT=$ac_cv_exeext
  3650. ac_exeext=$EXEEXT
  3651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3652. /* end confdefs.h. */
  3653. #include <stdio.h>
  3654. int
  3655. main ()
  3656. {
  3657. FILE *f = fopen ("conftest.out", "w");
  3658. return ferror (f) || fclose (f) != 0;
  3659. ;
  3660. return 0;
  3661. }
  3662. _ACEOF
  3663. ac_clean_files="$ac_clean_files conftest.out"
  3664. # Check that the compiler produces executables we can run. If not, either
  3665. # the compiler is broken, or we cross compile.
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3667. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3668. if test "$cross_compiling" != yes; then
  3669. { { ac_try="$ac_link"
  3670. case "(($ac_try" in
  3671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3672. *) ac_try_echo=$ac_try;;
  3673. esac
  3674. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3675. $as_echo "$ac_try_echo"; } >&5
  3676. (eval "$ac_link") 2>&5
  3677. ac_status=$?
  3678. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3679. test $ac_status = 0; }
  3680. if { ac_try='./conftest$ac_cv_exeext'
  3681. { { case "(($ac_try" in
  3682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3683. *) ac_try_echo=$ac_try;;
  3684. esac
  3685. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3686. $as_echo "$ac_try_echo"; } >&5
  3687. (eval "$ac_try") 2>&5
  3688. ac_status=$?
  3689. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3690. test $ac_status = 0; }; }; then
  3691. cross_compiling=no
  3692. else
  3693. if test "$cross_compiling" = maybe; then
  3694. cross_compiling=yes
  3695. else
  3696. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3697. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3698. as_fn_error $? "cannot run C compiled programs.
  3699. If you meant to cross compile, use \`--host'.
  3700. See \`config.log' for more details" "$LINENO" 5; }
  3701. fi
  3702. fi
  3703. fi
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3705. $as_echo "$cross_compiling" >&6; }
  3706. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3707. ac_clean_files=$ac_clean_files_save
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3709. $as_echo_n "checking for suffix of object files... " >&6; }
  3710. if ${ac_cv_objext+:} false; then :
  3711. $as_echo_n "(cached) " >&6
  3712. else
  3713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3714. /* end confdefs.h. */
  3715. int
  3716. main ()
  3717. {
  3718. ;
  3719. return 0;
  3720. }
  3721. _ACEOF
  3722. rm -f conftest.o conftest.obj
  3723. if { { ac_try="$ac_compile"
  3724. case "(($ac_try" in
  3725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3726. *) ac_try_echo=$ac_try;;
  3727. esac
  3728. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3729. $as_echo "$ac_try_echo"; } >&5
  3730. (eval "$ac_compile") 2>&5
  3731. ac_status=$?
  3732. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3733. test $ac_status = 0; }; then :
  3734. for ac_file in conftest.o conftest.obj conftest.*; do
  3735. test -f "$ac_file" || continue;
  3736. case $ac_file in
  3737. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3738. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3739. break;;
  3740. esac
  3741. done
  3742. else
  3743. $as_echo "$as_me: failed program was:" >&5
  3744. sed 's/^/| /' conftest.$ac_ext >&5
  3745. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3746. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3747. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3748. See \`config.log' for more details" "$LINENO" 5; }
  3749. fi
  3750. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3751. fi
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3753. $as_echo "$ac_cv_objext" >&6; }
  3754. OBJEXT=$ac_cv_objext
  3755. ac_objext=$OBJEXT
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3757. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3758. if ${ac_cv_c_compiler_gnu+:} false; then :
  3759. $as_echo_n "(cached) " >&6
  3760. else
  3761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3762. /* end confdefs.h. */
  3763. int
  3764. main ()
  3765. {
  3766. #ifndef __GNUC__
  3767. choke me
  3768. #endif
  3769. ;
  3770. return 0;
  3771. }
  3772. _ACEOF
  3773. if ac_fn_c_try_compile "$LINENO"; then :
  3774. ac_compiler_gnu=yes
  3775. else
  3776. ac_compiler_gnu=no
  3777. fi
  3778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3779. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3780. fi
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3782. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3783. if test $ac_compiler_gnu = yes; then
  3784. GCC=yes
  3785. else
  3786. GCC=
  3787. fi
  3788. ac_test_CFLAGS=${CFLAGS+set}
  3789. ac_save_CFLAGS=$CFLAGS
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3791. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3792. if ${ac_cv_prog_cc_g+:} false; then :
  3793. $as_echo_n "(cached) " >&6
  3794. else
  3795. ac_save_c_werror_flag=$ac_c_werror_flag
  3796. ac_c_werror_flag=yes
  3797. ac_cv_prog_cc_g=no
  3798. CFLAGS="-g"
  3799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3800. /* end confdefs.h. */
  3801. int
  3802. main ()
  3803. {
  3804. ;
  3805. return 0;
  3806. }
  3807. _ACEOF
  3808. if ac_fn_c_try_compile "$LINENO"; then :
  3809. ac_cv_prog_cc_g=yes
  3810. else
  3811. CFLAGS=""
  3812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3813. /* end confdefs.h. */
  3814. int
  3815. main ()
  3816. {
  3817. ;
  3818. return 0;
  3819. }
  3820. _ACEOF
  3821. if ac_fn_c_try_compile "$LINENO"; then :
  3822. else
  3823. ac_c_werror_flag=$ac_save_c_werror_flag
  3824. CFLAGS="-g"
  3825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3826. /* end confdefs.h. */
  3827. int
  3828. main ()
  3829. {
  3830. ;
  3831. return 0;
  3832. }
  3833. _ACEOF
  3834. if ac_fn_c_try_compile "$LINENO"; then :
  3835. ac_cv_prog_cc_g=yes
  3836. fi
  3837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3838. fi
  3839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3840. fi
  3841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3842. ac_c_werror_flag=$ac_save_c_werror_flag
  3843. fi
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3845. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3846. if test "$ac_test_CFLAGS" = set; then
  3847. CFLAGS=$ac_save_CFLAGS
  3848. elif test $ac_cv_prog_cc_g = yes; then
  3849. if test "$GCC" = yes; then
  3850. CFLAGS="-g -O2"
  3851. else
  3852. CFLAGS="-g"
  3853. fi
  3854. else
  3855. if test "$GCC" = yes; then
  3856. CFLAGS="-O2"
  3857. else
  3858. CFLAGS=
  3859. fi
  3860. fi
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3862. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3863. if ${ac_cv_prog_cc_c89+:} false; then :
  3864. $as_echo_n "(cached) " >&6
  3865. else
  3866. ac_cv_prog_cc_c89=no
  3867. ac_save_CC=$CC
  3868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3869. /* end confdefs.h. */
  3870. #include <stdarg.h>
  3871. #include <stdio.h>
  3872. struct stat;
  3873. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3874. struct buf { int x; };
  3875. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3876. static char *e (p, i)
  3877. char **p;
  3878. int i;
  3879. {
  3880. return p[i];
  3881. }
  3882. static char *f (char * (*g) (char **, int), char **p, ...)
  3883. {
  3884. char *s;
  3885. va_list v;
  3886. va_start (v,p);
  3887. s = g (p, va_arg (v,int));
  3888. va_end (v);
  3889. return s;
  3890. }
  3891. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3892. function prototypes and stuff, but not '\xHH' hex character constants.
  3893. These don't provoke an error unfortunately, instead are silently treated
  3894. as 'x'. The following induces an error, until -std is added to get
  3895. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3896. array size at least. It's necessary to write '\x00'==0 to get something
  3897. that's true only with -std. */
  3898. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3899. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3900. inside strings and character constants. */
  3901. #define FOO(x) 'x'
  3902. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3903. int test (int i, double x);
  3904. struct s1 {int (*f) (int a);};
  3905. struct s2 {int (*f) (double a);};
  3906. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3907. int argc;
  3908. char **argv;
  3909. int
  3910. main ()
  3911. {
  3912. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3913. ;
  3914. return 0;
  3915. }
  3916. _ACEOF
  3917. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3918. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3919. do
  3920. CC="$ac_save_CC $ac_arg"
  3921. if ac_fn_c_try_compile "$LINENO"; then :
  3922. ac_cv_prog_cc_c89=$ac_arg
  3923. fi
  3924. rm -f core conftest.err conftest.$ac_objext
  3925. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3926. done
  3927. rm -f conftest.$ac_ext
  3928. CC=$ac_save_CC
  3929. fi
  3930. # AC_CACHE_VAL
  3931. case "x$ac_cv_prog_cc_c89" in
  3932. x)
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3934. $as_echo "none needed" >&6; } ;;
  3935. xno)
  3936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3937. $as_echo "unsupported" >&6; } ;;
  3938. *)
  3939. CC="$CC $ac_cv_prog_cc_c89"
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3941. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3942. esac
  3943. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3944. fi
  3945. ac_ext=c
  3946. ac_cpp='$CPP $CPPFLAGS'
  3947. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3948. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3949. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3950. ac_ext=c
  3951. ac_cpp='$CPP $CPPFLAGS'
  3952. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3953. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3954. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3956. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3957. if ${am_cv_prog_cc_c_o+:} false; then :
  3958. $as_echo_n "(cached) " >&6
  3959. else
  3960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3961. /* end confdefs.h. */
  3962. int
  3963. main ()
  3964. {
  3965. ;
  3966. return 0;
  3967. }
  3968. _ACEOF
  3969. # Make sure it works both with $CC and with simple cc.
  3970. # Following AC_PROG_CC_C_O, we do the test twice because some
  3971. # compilers refuse to overwrite an existing .o file with -o,
  3972. # though they will create one.
  3973. am_cv_prog_cc_c_o=yes
  3974. for am_i in 1 2; do
  3975. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3976. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3977. ac_status=$?
  3978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3979. (exit $ac_status); } \
  3980. && test -f conftest2.$ac_objext; then
  3981. : OK
  3982. else
  3983. am_cv_prog_cc_c_o=no
  3984. break
  3985. fi
  3986. done
  3987. rm -f core conftest*
  3988. unset am_i
  3989. fi
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3991. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3992. if test "$am_cv_prog_cc_c_o" != yes; then
  3993. # Losing compiler, so override with the script.
  3994. # FIXME: It is wrong to rewrite CC.
  3995. # But if we don't then we get into trouble of one sort or another.
  3996. # A longer-term fix would be to have automake use am__CC in this case,
  3997. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3998. CC="$am_aux_dir/compile $CC"
  3999. fi
  4000. ac_ext=c
  4001. ac_cpp='$CPP $CPPFLAGS'
  4002. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4003. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4004. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4005. DEPDIR="${am__leading_dot}deps"
  4006. ac_config_commands="$ac_config_commands depfiles"
  4007. am_make=${MAKE-make}
  4008. cat > confinc << 'END'
  4009. am__doit:
  4010. @echo this is the am__doit target
  4011. .PHONY: am__doit
  4012. END
  4013. # If we don't find an include directive, just comment out the code.
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  4015. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  4016. am__include="#"
  4017. am__quote=
  4018. _am_result=none
  4019. # First try GNU make style include.
  4020. echo "include confinc" > confmf
  4021. # Ignore all kinds of additional output from 'make'.
  4022. case `$am_make -s -f confmf 2> /dev/null` in #(
  4023. *the\ am__doit\ target*)
  4024. am__include=include
  4025. am__quote=
  4026. _am_result=GNU
  4027. ;;
  4028. esac
  4029. # Now try BSD make style include.
  4030. if test "$am__include" = "#"; then
  4031. echo '.include "confinc"' > confmf
  4032. case `$am_make -s -f confmf 2> /dev/null` in #(
  4033. *the\ am__doit\ target*)
  4034. am__include=.include
  4035. am__quote="\""
  4036. _am_result=BSD
  4037. ;;
  4038. esac
  4039. fi
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  4041. $as_echo "$_am_result" >&6; }
  4042. rm -f confinc confmf
  4043. # Check whether --enable-dependency-tracking was given.
  4044. if test "${enable_dependency_tracking+set}" = set; then :
  4045. enableval=$enable_dependency_tracking;
  4046. fi
  4047. if test "x$enable_dependency_tracking" != xno; then
  4048. am_depcomp="$ac_aux_dir/depcomp"
  4049. AMDEPBACKSLASH='\'
  4050. am__nodep='_no'
  4051. fi
  4052. if test "x$enable_dependency_tracking" != xno; then
  4053. AMDEP_TRUE=
  4054. AMDEP_FALSE='#'
  4055. else
  4056. AMDEP_TRUE='#'
  4057. AMDEP_FALSE=
  4058. fi
  4059. depcc="$CC" am_compiler_list=
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4061. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4062. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4063. $as_echo_n "(cached) " >&6
  4064. else
  4065. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4066. # We make a subdir and do the tests there. Otherwise we can end up
  4067. # making bogus files that we don't know about and never remove. For
  4068. # instance it was reported that on HP-UX the gcc test will end up
  4069. # making a dummy file named 'D' -- because '-MD' means "put the output
  4070. # in D".
  4071. rm -rf conftest.dir
  4072. mkdir conftest.dir
  4073. # Copy depcomp to subdir because otherwise we won't find it if we're
  4074. # using a relative directory.
  4075. cp "$am_depcomp" conftest.dir
  4076. cd conftest.dir
  4077. # We will build objects and dependencies in a subdirectory because
  4078. # it helps to detect inapplicable dependency modes. For instance
  4079. # both Tru64's cc and ICC support -MD to output dependencies as a
  4080. # side effect of compilation, but ICC will put the dependencies in
  4081. # the current directory while Tru64 will put them in the object
  4082. # directory.
  4083. mkdir sub
  4084. am_cv_CC_dependencies_compiler_type=none
  4085. if test "$am_compiler_list" = ""; then
  4086. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4087. fi
  4088. am__universal=false
  4089. case " $depcc " in #(
  4090. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4091. esac
  4092. for depmode in $am_compiler_list; do
  4093. # Setup a source with many dependencies, because some compilers
  4094. # like to wrap large dependency lists on column 80 (with \), and
  4095. # we should not choose a depcomp mode which is confused by this.
  4096. #
  4097. # We need to recreate these files for each test, as the compiler may
  4098. # overwrite some of them when testing with obscure command lines.
  4099. # This happens at least with the AIX C compiler.
  4100. : > sub/conftest.c
  4101. for i in 1 2 3 4 5 6; do
  4102. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4103. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4104. # Solaris 10 /bin/sh.
  4105. echo '/* dummy */' > sub/conftst$i.h
  4106. done
  4107. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4108. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4109. # mode. It turns out that the SunPro C++ compiler does not properly
  4110. # handle '-M -o', and we need to detect this. Also, some Intel
  4111. # versions had trouble with output in subdirs.
  4112. am__obj=sub/conftest.${OBJEXT-o}
  4113. am__minus_obj="-o $am__obj"
  4114. case $depmode in
  4115. gcc)
  4116. # This depmode causes a compiler race in universal mode.
  4117. test "$am__universal" = false || continue
  4118. ;;
  4119. nosideeffect)
  4120. # After this tag, mechanisms are not by side-effect, so they'll
  4121. # only be used when explicitly requested.
  4122. if test "x$enable_dependency_tracking" = xyes; then
  4123. continue
  4124. else
  4125. break
  4126. fi
  4127. ;;
  4128. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4129. # This compiler won't grok '-c -o', but also, the minuso test has
  4130. # not run yet. These depmodes are late enough in the game, and
  4131. # so weak that their functioning should not be impacted.
  4132. am__obj=conftest.${OBJEXT-o}
  4133. am__minus_obj=
  4134. ;;
  4135. none) break ;;
  4136. esac
  4137. if depmode=$depmode \
  4138. source=sub/conftest.c object=$am__obj \
  4139. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4140. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4141. >/dev/null 2>conftest.err &&
  4142. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4143. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4144. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4145. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4146. # icc doesn't choke on unknown options, it will just issue warnings
  4147. # or remarks (even with -Werror). So we grep stderr for any message
  4148. # that says an option was ignored or not supported.
  4149. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4150. # icc: Command line warning: ignoring option '-M'; no argument required
  4151. # The diagnosis changed in icc 8.0:
  4152. # icc: Command line remark: option '-MP' not supported
  4153. if (grep 'ignoring option' conftest.err ||
  4154. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4155. am_cv_CC_dependencies_compiler_type=$depmode
  4156. break
  4157. fi
  4158. fi
  4159. done
  4160. cd ..
  4161. rm -rf conftest.dir
  4162. else
  4163. am_cv_CC_dependencies_compiler_type=none
  4164. fi
  4165. fi
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4167. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4168. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4169. if
  4170. test "x$enable_dependency_tracking" != xno \
  4171. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4172. am__fastdepCC_TRUE=
  4173. am__fastdepCC_FALSE='#'
  4174. else
  4175. am__fastdepCC_TRUE='#'
  4176. am__fastdepCC_FALSE=
  4177. fi
  4178. ac_ext=cpp
  4179. ac_cpp='$CXXCPP $CPPFLAGS'
  4180. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4181. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4182. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4183. if test -z "$CXX"; then
  4184. if test -n "$CCC"; then
  4185. CXX=$CCC
  4186. else
  4187. if test -n "$ac_tool_prefix"; then
  4188. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4189. do
  4190. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4191. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4193. $as_echo_n "checking for $ac_word... " >&6; }
  4194. if ${ac_cv_prog_CXX+:} false; then :
  4195. $as_echo_n "(cached) " >&6
  4196. else
  4197. if test -n "$CXX"; then
  4198. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4199. else
  4200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4201. for as_dir in $PATH
  4202. do
  4203. IFS=$as_save_IFS
  4204. test -z "$as_dir" && as_dir=.
  4205. for ac_exec_ext in '' $ac_executable_extensions; do
  4206. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4207. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4208. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4209. break 2
  4210. fi
  4211. done
  4212. done
  4213. IFS=$as_save_IFS
  4214. fi
  4215. fi
  4216. CXX=$ac_cv_prog_CXX
  4217. if test -n "$CXX"; then
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4219. $as_echo "$CXX" >&6; }
  4220. else
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4222. $as_echo "no" >&6; }
  4223. fi
  4224. test -n "$CXX" && break
  4225. done
  4226. fi
  4227. if test -z "$CXX"; then
  4228. ac_ct_CXX=$CXX
  4229. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4230. do
  4231. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4232. set dummy $ac_prog; ac_word=$2
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4234. $as_echo_n "checking for $ac_word... " >&6; }
  4235. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4236. $as_echo_n "(cached) " >&6
  4237. else
  4238. if test -n "$ac_ct_CXX"; then
  4239. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4240. else
  4241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4242. for as_dir in $PATH
  4243. do
  4244. IFS=$as_save_IFS
  4245. test -z "$as_dir" && as_dir=.
  4246. for ac_exec_ext in '' $ac_executable_extensions; do
  4247. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4248. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4249. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4250. break 2
  4251. fi
  4252. done
  4253. done
  4254. IFS=$as_save_IFS
  4255. fi
  4256. fi
  4257. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4258. if test -n "$ac_ct_CXX"; then
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4260. $as_echo "$ac_ct_CXX" >&6; }
  4261. else
  4262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4263. $as_echo "no" >&6; }
  4264. fi
  4265. test -n "$ac_ct_CXX" && break
  4266. done
  4267. if test "x$ac_ct_CXX" = x; then
  4268. CXX="g++"
  4269. else
  4270. case $cross_compiling:$ac_tool_warned in
  4271. yes:)
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4273. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4274. ac_tool_warned=yes ;;
  4275. esac
  4276. CXX=$ac_ct_CXX
  4277. fi
  4278. fi
  4279. fi
  4280. fi
  4281. # Provide some information about the compiler.
  4282. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4283. set X $ac_compile
  4284. ac_compiler=$2
  4285. for ac_option in --version -v -V -qversion; do
  4286. { { ac_try="$ac_compiler $ac_option >&5"
  4287. case "(($ac_try" in
  4288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4289. *) ac_try_echo=$ac_try;;
  4290. esac
  4291. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4292. $as_echo "$ac_try_echo"; } >&5
  4293. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4294. ac_status=$?
  4295. if test -s conftest.err; then
  4296. sed '10a\
  4297. ... rest of stderr output deleted ...
  4298. 10q' conftest.err >conftest.er1
  4299. cat conftest.er1 >&5
  4300. fi
  4301. rm -f conftest.er1 conftest.err
  4302. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4303. test $ac_status = 0; }
  4304. done
  4305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4306. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4307. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4308. $as_echo_n "(cached) " >&6
  4309. else
  4310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4311. /* end confdefs.h. */
  4312. int
  4313. main ()
  4314. {
  4315. #ifndef __GNUC__
  4316. choke me
  4317. #endif
  4318. ;
  4319. return 0;
  4320. }
  4321. _ACEOF
  4322. if ac_fn_cxx_try_compile "$LINENO"; then :
  4323. ac_compiler_gnu=yes
  4324. else
  4325. ac_compiler_gnu=no
  4326. fi
  4327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4328. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4329. fi
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4331. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4332. if test $ac_compiler_gnu = yes; then
  4333. GXX=yes
  4334. else
  4335. GXX=
  4336. fi
  4337. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4338. ac_save_CXXFLAGS=$CXXFLAGS
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4340. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4341. if ${ac_cv_prog_cxx_g+:} false; then :
  4342. $as_echo_n "(cached) " >&6
  4343. else
  4344. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4345. ac_cxx_werror_flag=yes
  4346. ac_cv_prog_cxx_g=no
  4347. CXXFLAGS="-g"
  4348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4349. /* end confdefs.h. */
  4350. int
  4351. main ()
  4352. {
  4353. ;
  4354. return 0;
  4355. }
  4356. _ACEOF
  4357. if ac_fn_cxx_try_compile "$LINENO"; then :
  4358. ac_cv_prog_cxx_g=yes
  4359. else
  4360. CXXFLAGS=""
  4361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4362. /* end confdefs.h. */
  4363. int
  4364. main ()
  4365. {
  4366. ;
  4367. return 0;
  4368. }
  4369. _ACEOF
  4370. if ac_fn_cxx_try_compile "$LINENO"; then :
  4371. else
  4372. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4373. CXXFLAGS="-g"
  4374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4375. /* end confdefs.h. */
  4376. int
  4377. main ()
  4378. {
  4379. ;
  4380. return 0;
  4381. }
  4382. _ACEOF
  4383. if ac_fn_cxx_try_compile "$LINENO"; then :
  4384. ac_cv_prog_cxx_g=yes
  4385. fi
  4386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4387. fi
  4388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4389. fi
  4390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4391. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4392. fi
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4394. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4395. if test "$ac_test_CXXFLAGS" = set; then
  4396. CXXFLAGS=$ac_save_CXXFLAGS
  4397. elif test $ac_cv_prog_cxx_g = yes; then
  4398. if test "$GXX" = yes; then
  4399. CXXFLAGS="-g -O2"
  4400. else
  4401. CXXFLAGS="-g"
  4402. fi
  4403. else
  4404. if test "$GXX" = yes; then
  4405. CXXFLAGS="-O2"
  4406. else
  4407. CXXFLAGS=
  4408. fi
  4409. fi
  4410. ac_ext=c
  4411. ac_cpp='$CPP $CPPFLAGS'
  4412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4415. depcc="$CXX" am_compiler_list=
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4417. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4418. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  4419. $as_echo_n "(cached) " >&6
  4420. else
  4421. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4422. # We make a subdir and do the tests there. Otherwise we can end up
  4423. # making bogus files that we don't know about and never remove. For
  4424. # instance it was reported that on HP-UX the gcc test will end up
  4425. # making a dummy file named 'D' -- because '-MD' means "put the output
  4426. # in D".
  4427. rm -rf conftest.dir
  4428. mkdir conftest.dir
  4429. # Copy depcomp to subdir because otherwise we won't find it if we're
  4430. # using a relative directory.
  4431. cp "$am_depcomp" conftest.dir
  4432. cd conftest.dir
  4433. # We will build objects and dependencies in a subdirectory because
  4434. # it helps to detect inapplicable dependency modes. For instance
  4435. # both Tru64's cc and ICC support -MD to output dependencies as a
  4436. # side effect of compilation, but ICC will put the dependencies in
  4437. # the current directory while Tru64 will put them in the object
  4438. # directory.
  4439. mkdir sub
  4440. am_cv_CXX_dependencies_compiler_type=none
  4441. if test "$am_compiler_list" = ""; then
  4442. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4443. fi
  4444. am__universal=false
  4445. case " $depcc " in #(
  4446. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4447. esac
  4448. for depmode in $am_compiler_list; do
  4449. # Setup a source with many dependencies, because some compilers
  4450. # like to wrap large dependency lists on column 80 (with \), and
  4451. # we should not choose a depcomp mode which is confused by this.
  4452. #
  4453. # We need to recreate these files for each test, as the compiler may
  4454. # overwrite some of them when testing with obscure command lines.
  4455. # This happens at least with the AIX C compiler.
  4456. : > sub/conftest.c
  4457. for i in 1 2 3 4 5 6; do
  4458. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4459. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4460. # Solaris 10 /bin/sh.
  4461. echo '/* dummy */' > sub/conftst$i.h
  4462. done
  4463. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4464. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4465. # mode. It turns out that the SunPro C++ compiler does not properly
  4466. # handle '-M -o', and we need to detect this. Also, some Intel
  4467. # versions had trouble with output in subdirs.
  4468. am__obj=sub/conftest.${OBJEXT-o}
  4469. am__minus_obj="-o $am__obj"
  4470. case $depmode in
  4471. gcc)
  4472. # This depmode causes a compiler race in universal mode.
  4473. test "$am__universal" = false || continue
  4474. ;;
  4475. nosideeffect)
  4476. # After this tag, mechanisms are not by side-effect, so they'll
  4477. # only be used when explicitly requested.
  4478. if test "x$enable_dependency_tracking" = xyes; then
  4479. continue
  4480. else
  4481. break
  4482. fi
  4483. ;;
  4484. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4485. # This compiler won't grok '-c -o', but also, the minuso test has
  4486. # not run yet. These depmodes are late enough in the game, and
  4487. # so weak that their functioning should not be impacted.
  4488. am__obj=conftest.${OBJEXT-o}
  4489. am__minus_obj=
  4490. ;;
  4491. none) break ;;
  4492. esac
  4493. if depmode=$depmode \
  4494. source=sub/conftest.c object=$am__obj \
  4495. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4496. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4497. >/dev/null 2>conftest.err &&
  4498. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4499. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4500. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4501. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4502. # icc doesn't choke on unknown options, it will just issue warnings
  4503. # or remarks (even with -Werror). So we grep stderr for any message
  4504. # that says an option was ignored or not supported.
  4505. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4506. # icc: Command line warning: ignoring option '-M'; no argument required
  4507. # The diagnosis changed in icc 8.0:
  4508. # icc: Command line remark: option '-MP' not supported
  4509. if (grep 'ignoring option' conftest.err ||
  4510. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4511. am_cv_CXX_dependencies_compiler_type=$depmode
  4512. break
  4513. fi
  4514. fi
  4515. done
  4516. cd ..
  4517. rm -rf conftest.dir
  4518. else
  4519. am_cv_CXX_dependencies_compiler_type=none
  4520. fi
  4521. fi
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4523. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4524. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4525. if
  4526. test "x$enable_dependency_tracking" != xno \
  4527. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4528. am__fastdepCXX_TRUE=
  4529. am__fastdepCXX_FALSE='#'
  4530. else
  4531. am__fastdepCXX_TRUE='#'
  4532. am__fastdepCXX_FALSE=
  4533. fi
  4534. if test -n "$ac_tool_prefix"; then
  4535. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4536. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4538. $as_echo_n "checking for $ac_word... " >&6; }
  4539. if ${ac_cv_prog_RANLIB+:} false; then :
  4540. $as_echo_n "(cached) " >&6
  4541. else
  4542. if test -n "$RANLIB"; then
  4543. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4544. else
  4545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4546. for as_dir in $PATH
  4547. do
  4548. IFS=$as_save_IFS
  4549. test -z "$as_dir" && as_dir=.
  4550. for ac_exec_ext in '' $ac_executable_extensions; do
  4551. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4552. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4553. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4554. break 2
  4555. fi
  4556. done
  4557. done
  4558. IFS=$as_save_IFS
  4559. fi
  4560. fi
  4561. RANLIB=$ac_cv_prog_RANLIB
  4562. if test -n "$RANLIB"; then
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4564. $as_echo "$RANLIB" >&6; }
  4565. else
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4567. $as_echo "no" >&6; }
  4568. fi
  4569. fi
  4570. if test -z "$ac_cv_prog_RANLIB"; then
  4571. ac_ct_RANLIB=$RANLIB
  4572. # Extract the first word of "ranlib", so it can be a program name with args.
  4573. set dummy ranlib; ac_word=$2
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4575. $as_echo_n "checking for $ac_word... " >&6; }
  4576. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4577. $as_echo_n "(cached) " >&6
  4578. else
  4579. if test -n "$ac_ct_RANLIB"; then
  4580. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4581. else
  4582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4583. for as_dir in $PATH
  4584. do
  4585. IFS=$as_save_IFS
  4586. test -z "$as_dir" && as_dir=.
  4587. for ac_exec_ext in '' $ac_executable_extensions; do
  4588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4589. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4591. break 2
  4592. fi
  4593. done
  4594. done
  4595. IFS=$as_save_IFS
  4596. fi
  4597. fi
  4598. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4599. if test -n "$ac_ct_RANLIB"; then
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4601. $as_echo "$ac_ct_RANLIB" >&6; }
  4602. else
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4604. $as_echo "no" >&6; }
  4605. fi
  4606. if test "x$ac_ct_RANLIB" = x; then
  4607. RANLIB=":"
  4608. else
  4609. case $cross_compiling:$ac_tool_warned in
  4610. yes:)
  4611. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4612. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4613. ac_tool_warned=yes ;;
  4614. esac
  4615. RANLIB=$ac_ct_RANLIB
  4616. fi
  4617. else
  4618. RANLIB="$ac_cv_prog_RANLIB"
  4619. fi
  4620. ac_ext=c
  4621. ac_cpp='$CPP $CPPFLAGS'
  4622. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4623. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4624. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4626. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4627. # On Suns, sometimes $CPP names a directory.
  4628. if test -n "$CPP" && test -d "$CPP"; then
  4629. CPP=
  4630. fi
  4631. if test -z "$CPP"; then
  4632. if ${ac_cv_prog_CPP+:} false; then :
  4633. $as_echo_n "(cached) " >&6
  4634. else
  4635. # Double quotes because CPP needs to be expanded
  4636. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4637. do
  4638. ac_preproc_ok=false
  4639. for ac_c_preproc_warn_flag in '' yes
  4640. do
  4641. # Use a header file that comes with gcc, so configuring glibc
  4642. # with a fresh cross-compiler works.
  4643. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4644. # <limits.h> exists even on freestanding compilers.
  4645. # On the NeXT, cc -E runs the code through the compiler's parser,
  4646. # not just through cpp. "Syntax error" is here to catch this case.
  4647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4648. /* end confdefs.h. */
  4649. #ifdef __STDC__
  4650. # include <limits.h>
  4651. #else
  4652. # include <assert.h>
  4653. #endif
  4654. Syntax error
  4655. _ACEOF
  4656. if ac_fn_c_try_cpp "$LINENO"; then :
  4657. else
  4658. # Broken: fails on valid input.
  4659. continue
  4660. fi
  4661. rm -f conftest.err conftest.i conftest.$ac_ext
  4662. # OK, works on sane cases. Now check whether nonexistent headers
  4663. # can be detected and how.
  4664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4665. /* end confdefs.h. */
  4666. #include <ac_nonexistent.h>
  4667. _ACEOF
  4668. if ac_fn_c_try_cpp "$LINENO"; then :
  4669. # Broken: success on invalid input.
  4670. continue
  4671. else
  4672. # Passes both tests.
  4673. ac_preproc_ok=:
  4674. break
  4675. fi
  4676. rm -f conftest.err conftest.i conftest.$ac_ext
  4677. done
  4678. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4679. rm -f conftest.i conftest.err conftest.$ac_ext
  4680. if $ac_preproc_ok; then :
  4681. break
  4682. fi
  4683. done
  4684. ac_cv_prog_CPP=$CPP
  4685. fi
  4686. CPP=$ac_cv_prog_CPP
  4687. else
  4688. ac_cv_prog_CPP=$CPP
  4689. fi
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4691. $as_echo "$CPP" >&6; }
  4692. ac_preproc_ok=false
  4693. for ac_c_preproc_warn_flag in '' yes
  4694. do
  4695. # Use a header file that comes with gcc, so configuring glibc
  4696. # with a fresh cross-compiler works.
  4697. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4698. # <limits.h> exists even on freestanding compilers.
  4699. # On the NeXT, cc -E runs the code through the compiler's parser,
  4700. # not just through cpp. "Syntax error" is here to catch this case.
  4701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4702. /* end confdefs.h. */
  4703. #ifdef __STDC__
  4704. # include <limits.h>
  4705. #else
  4706. # include <assert.h>
  4707. #endif
  4708. Syntax error
  4709. _ACEOF
  4710. if ac_fn_c_try_cpp "$LINENO"; then :
  4711. else
  4712. # Broken: fails on valid input.
  4713. continue
  4714. fi
  4715. rm -f conftest.err conftest.i conftest.$ac_ext
  4716. # OK, works on sane cases. Now check whether nonexistent headers
  4717. # can be detected and how.
  4718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4719. /* end confdefs.h. */
  4720. #include <ac_nonexistent.h>
  4721. _ACEOF
  4722. if ac_fn_c_try_cpp "$LINENO"; then :
  4723. # Broken: success on invalid input.
  4724. continue
  4725. else
  4726. # Passes both tests.
  4727. ac_preproc_ok=:
  4728. break
  4729. fi
  4730. rm -f conftest.err conftest.i conftest.$ac_ext
  4731. done
  4732. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4733. rm -f conftest.i conftest.err conftest.$ac_ext
  4734. if $ac_preproc_ok; then :
  4735. else
  4736. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4737. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4738. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4739. See \`config.log' for more details" "$LINENO" 5; }
  4740. fi
  4741. ac_ext=c
  4742. ac_cpp='$CPP $CPPFLAGS'
  4743. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4744. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4745. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4747. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4748. if ${ac_cv_path_GREP+:} false; then :
  4749. $as_echo_n "(cached) " >&6
  4750. else
  4751. if test -z "$GREP"; then
  4752. ac_path_GREP_found=false
  4753. # Loop through the user's path and test for each of PROGNAME-LIST
  4754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4755. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4756. do
  4757. IFS=$as_save_IFS
  4758. test -z "$as_dir" && as_dir=.
  4759. for ac_prog in grep ggrep; do
  4760. for ac_exec_ext in '' $ac_executable_extensions; do
  4761. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4762. as_fn_executable_p "$ac_path_GREP" || continue
  4763. # Check for GNU ac_path_GREP and select it if it is found.
  4764. # Check for GNU $ac_path_GREP
  4765. case `"$ac_path_GREP" --version 2>&1` in
  4766. *GNU*)
  4767. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4768. *)
  4769. ac_count=0
  4770. $as_echo_n 0123456789 >"conftest.in"
  4771. while :
  4772. do
  4773. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4774. mv "conftest.tmp" "conftest.in"
  4775. cp "conftest.in" "conftest.nl"
  4776. $as_echo 'GREP' >> "conftest.nl"
  4777. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4778. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4779. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4780. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4781. # Best one so far, save it but keep looking for a better one
  4782. ac_cv_path_GREP="$ac_path_GREP"
  4783. ac_path_GREP_max=$ac_count
  4784. fi
  4785. # 10*(2^10) chars as input seems more than enough
  4786. test $ac_count -gt 10 && break
  4787. done
  4788. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4789. esac
  4790. $ac_path_GREP_found && break 3
  4791. done
  4792. done
  4793. done
  4794. IFS=$as_save_IFS
  4795. if test -z "$ac_cv_path_GREP"; then
  4796. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4797. fi
  4798. else
  4799. ac_cv_path_GREP=$GREP
  4800. fi
  4801. fi
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4803. $as_echo "$ac_cv_path_GREP" >&6; }
  4804. GREP="$ac_cv_path_GREP"
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4806. $as_echo_n "checking for egrep... " >&6; }
  4807. if ${ac_cv_path_EGREP+:} false; then :
  4808. $as_echo_n "(cached) " >&6
  4809. else
  4810. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4811. then ac_cv_path_EGREP="$GREP -E"
  4812. else
  4813. if test -z "$EGREP"; then
  4814. ac_path_EGREP_found=false
  4815. # Loop through the user's path and test for each of PROGNAME-LIST
  4816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4817. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4818. do
  4819. IFS=$as_save_IFS
  4820. test -z "$as_dir" && as_dir=.
  4821. for ac_prog in egrep; do
  4822. for ac_exec_ext in '' $ac_executable_extensions; do
  4823. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4824. as_fn_executable_p "$ac_path_EGREP" || continue
  4825. # Check for GNU ac_path_EGREP and select it if it is found.
  4826. # Check for GNU $ac_path_EGREP
  4827. case `"$ac_path_EGREP" --version 2>&1` in
  4828. *GNU*)
  4829. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4830. *)
  4831. ac_count=0
  4832. $as_echo_n 0123456789 >"conftest.in"
  4833. while :
  4834. do
  4835. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4836. mv "conftest.tmp" "conftest.in"
  4837. cp "conftest.in" "conftest.nl"
  4838. $as_echo 'EGREP' >> "conftest.nl"
  4839. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4840. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4841. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4842. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4843. # Best one so far, save it but keep looking for a better one
  4844. ac_cv_path_EGREP="$ac_path_EGREP"
  4845. ac_path_EGREP_max=$ac_count
  4846. fi
  4847. # 10*(2^10) chars as input seems more than enough
  4848. test $ac_count -gt 10 && break
  4849. done
  4850. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4851. esac
  4852. $ac_path_EGREP_found && break 3
  4853. done
  4854. done
  4855. done
  4856. IFS=$as_save_IFS
  4857. if test -z "$ac_cv_path_EGREP"; then
  4858. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4859. fi
  4860. else
  4861. ac_cv_path_EGREP=$EGREP
  4862. fi
  4863. fi
  4864. fi
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4866. $as_echo "$ac_cv_path_EGREP" >&6; }
  4867. EGREP="$ac_cv_path_EGREP"
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4869. $as_echo_n "checking for ANSI C header files... " >&6; }
  4870. if ${ac_cv_header_stdc+:} false; then :
  4871. $as_echo_n "(cached) " >&6
  4872. else
  4873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4874. /* end confdefs.h. */
  4875. #include <stdlib.h>
  4876. #include <stdarg.h>
  4877. #include <string.h>
  4878. #include <float.h>
  4879. int
  4880. main ()
  4881. {
  4882. ;
  4883. return 0;
  4884. }
  4885. _ACEOF
  4886. if ac_fn_c_try_compile "$LINENO"; then :
  4887. ac_cv_header_stdc=yes
  4888. else
  4889. ac_cv_header_stdc=no
  4890. fi
  4891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4892. if test $ac_cv_header_stdc = yes; then
  4893. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4895. /* end confdefs.h. */
  4896. #include <string.h>
  4897. _ACEOF
  4898. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4899. $EGREP "memchr" >/dev/null 2>&1; then :
  4900. else
  4901. ac_cv_header_stdc=no
  4902. fi
  4903. rm -f conftest*
  4904. fi
  4905. if test $ac_cv_header_stdc = yes; then
  4906. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4908. /* end confdefs.h. */
  4909. #include <stdlib.h>
  4910. _ACEOF
  4911. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4912. $EGREP "free" >/dev/null 2>&1; then :
  4913. else
  4914. ac_cv_header_stdc=no
  4915. fi
  4916. rm -f conftest*
  4917. fi
  4918. if test $ac_cv_header_stdc = yes; then
  4919. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4920. if test "$cross_compiling" = yes; then :
  4921. :
  4922. else
  4923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4924. /* end confdefs.h. */
  4925. #include <ctype.h>
  4926. #include <stdlib.h>
  4927. #if ((' ' & 0x0FF) == 0x020)
  4928. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4929. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4930. #else
  4931. # define ISLOWER(c) \
  4932. (('a' <= (c) && (c) <= 'i') \
  4933. || ('j' <= (c) && (c) <= 'r') \
  4934. || ('s' <= (c) && (c) <= 'z'))
  4935. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4936. #endif
  4937. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4938. int
  4939. main ()
  4940. {
  4941. int i;
  4942. for (i = 0; i < 256; i++)
  4943. if (XOR (islower (i), ISLOWER (i))
  4944. || toupper (i) != TOUPPER (i))
  4945. return 2;
  4946. return 0;
  4947. }
  4948. _ACEOF
  4949. if ac_fn_c_try_run "$LINENO"; then :
  4950. else
  4951. ac_cv_header_stdc=no
  4952. fi
  4953. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4954. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4955. fi
  4956. fi
  4957. fi
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4959. $as_echo "$ac_cv_header_stdc" >&6; }
  4960. if test $ac_cv_header_stdc = yes; then
  4961. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4962. fi
  4963. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4964. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4965. inttypes.h stdint.h unistd.h
  4966. do :
  4967. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4968. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4969. "
  4970. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4971. cat >>confdefs.h <<_ACEOF
  4972. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4973. _ACEOF
  4974. fi
  4975. done
  4976. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4977. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4978. MINIX=yes
  4979. else
  4980. MINIX=
  4981. fi
  4982. if test "$MINIX" = yes; then
  4983. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4984. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4985. $as_echo "#define _MINIX 1" >>confdefs.h
  4986. fi
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4988. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4989. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4990. $as_echo_n "(cached) " >&6
  4991. else
  4992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4993. /* end confdefs.h. */
  4994. # define __EXTENSIONS__ 1
  4995. $ac_includes_default
  4996. int
  4997. main ()
  4998. {
  4999. ;
  5000. return 0;
  5001. }
  5002. _ACEOF
  5003. if ac_fn_c_try_compile "$LINENO"; then :
  5004. ac_cv_safe_to_define___extensions__=yes
  5005. else
  5006. ac_cv_safe_to_define___extensions__=no
  5007. fi
  5008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5009. fi
  5010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5011. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5012. test $ac_cv_safe_to_define___extensions__ = yes &&
  5013. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5014. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5015. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5016. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5017. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5018. # The tests for host and target for $enable_largefile require
  5019. # canonical names.
  5020. # As the $enable_largefile decision depends on --enable-plugins we must set it
  5021. # even in directories otherwise not depending on the $plugins option.
  5022. maybe_plugins=no
  5023. for ac_header in dlfcn.h
  5024. do :
  5025. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  5026. "
  5027. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  5028. cat >>confdefs.h <<_ACEOF
  5029. #define HAVE_DLFCN_H 1
  5030. _ACEOF
  5031. maybe_plugins=yes
  5032. fi
  5033. done
  5034. for ac_header in windows.h
  5035. do :
  5036. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  5037. "
  5038. if test "x$ac_cv_header_windows_h" = xyes; then :
  5039. cat >>confdefs.h <<_ACEOF
  5040. #define HAVE_WINDOWS_H 1
  5041. _ACEOF
  5042. maybe_plugins=yes
  5043. fi
  5044. done
  5045. # Check whether --enable-plugins was given.
  5046. if test "${enable_plugins+set}" = set; then :
  5047. enableval=$enable_plugins; case "${enableval}" in
  5048. no) plugins=no ;;
  5049. *) plugins=yes
  5050. if test "$maybe_plugins" != "yes" ; then
  5051. as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  5052. fi ;;
  5053. esac
  5054. else
  5055. plugins=$maybe_plugins
  5056. fi
  5057. if test "$plugins" = "yes"; then
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
  5059. $as_echo_n "checking for library containing dlsym... " >&6; }
  5060. if ${ac_cv_search_dlsym+:} false; then :
  5061. $as_echo_n "(cached) " >&6
  5062. else
  5063. ac_func_search_save_LIBS=$LIBS
  5064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5065. /* end confdefs.h. */
  5066. /* Override any GCC internal prototype to avoid an error.
  5067. Use char because int might match the return type of a GCC
  5068. builtin and then its argument prototype would still apply. */
  5069. #ifdef __cplusplus
  5070. extern "C"
  5071. #endif
  5072. char dlsym ();
  5073. int
  5074. main ()
  5075. {
  5076. return dlsym ();
  5077. ;
  5078. return 0;
  5079. }
  5080. _ACEOF
  5081. for ac_lib in '' dl; do
  5082. if test -z "$ac_lib"; then
  5083. ac_res="none required"
  5084. else
  5085. ac_res=-l$ac_lib
  5086. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5087. fi
  5088. if ac_fn_c_try_link "$LINENO"; then :
  5089. ac_cv_search_dlsym=$ac_res
  5090. fi
  5091. rm -f core conftest.err conftest.$ac_objext \
  5092. conftest$ac_exeext
  5093. if ${ac_cv_search_dlsym+:} false; then :
  5094. break
  5095. fi
  5096. done
  5097. if ${ac_cv_search_dlsym+:} false; then :
  5098. else
  5099. ac_cv_search_dlsym=no
  5100. fi
  5101. rm conftest.$ac_ext
  5102. LIBS=$ac_func_search_save_LIBS
  5103. fi
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
  5105. $as_echo "$ac_cv_search_dlsym" >&6; }
  5106. ac_res=$ac_cv_search_dlsym
  5107. if test "$ac_res" != no; then :
  5108. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5109. fi
  5110. fi
  5111. case "${host}" in
  5112. sparc-*-solaris*|i?86-*-solaris*)
  5113. # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
  5114. # were mutually exclusive until Solaris 11.3. Without procfs support,
  5115. # the bfd/ elf module cannot provide certain routines such as
  5116. # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
  5117. # explicitly requested large-file support through the
  5118. # --enable-largefile switch, disable large-file support in favor of
  5119. # procfs support.
  5120. #
  5121. # Check if <sys/procfs.h> is incompatible with large-file support.
  5122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5123. /* end confdefs.h. */
  5124. #define _FILE_OFFSET_BITS 64
  5125. #define _STRUCTURED_PROC 1
  5126. #include <sys/procfs.h>
  5127. int
  5128. main ()
  5129. {
  5130. ;
  5131. return 0;
  5132. }
  5133. _ACEOF
  5134. if ac_fn_c_try_compile "$LINENO"; then :
  5135. acx_cv_procfs_lfs=yes
  5136. else
  5137. acx_cv_procfs_lfs=no
  5138. fi
  5139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5140. #
  5141. # Forcefully disable large-file support only if necessary, gdb is in
  5142. # tree and enabled.
  5143. if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
  5144. -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
  5145. : ${enable_largefile="no"}
  5146. if test "$plugins" = yes; then
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  5148. plugin support disabled; require large-file support which is incompatible with GDB." >&5
  5149. $as_echo "$as_me: WARNING:
  5150. plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
  5151. plugins=no
  5152. fi
  5153. fi
  5154. #
  5155. # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
  5156. # benefit of g++ 9+ which predefines it on Solaris.
  5157. if test "$enable_largefile" = no; then
  5158. LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
  5159. fi
  5160. ;;
  5161. esac
  5162. # Check whether --enable-largefile was given.
  5163. if test "${enable_largefile+set}" = set; then :
  5164. enableval=$enable_largefile;
  5165. fi
  5166. if test "$enable_largefile" != no; then
  5167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  5168. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  5169. if ${ac_cv_sys_largefile_CC+:} false; then :
  5170. $as_echo_n "(cached) " >&6
  5171. else
  5172. ac_cv_sys_largefile_CC=no
  5173. if test "$GCC" != yes; then
  5174. ac_save_CC=$CC
  5175. while :; do
  5176. # IRIX 6.2 and later do not support large files by default,
  5177. # so use the C compiler's -n32 option if that helps.
  5178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5179. /* end confdefs.h. */
  5180. #include <sys/types.h>
  5181. /* Check that off_t can represent 2**63 - 1 correctly.
  5182. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5183. since some C++ compilers masquerading as C compilers
  5184. incorrectly reject 9223372036854775807. */
  5185. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5186. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5187. && LARGE_OFF_T % 2147483647 == 1)
  5188. ? 1 : -1];
  5189. int
  5190. main ()
  5191. {
  5192. ;
  5193. return 0;
  5194. }
  5195. _ACEOF
  5196. if ac_fn_c_try_compile "$LINENO"; then :
  5197. break
  5198. fi
  5199. rm -f core conftest.err conftest.$ac_objext
  5200. CC="$CC -n32"
  5201. if ac_fn_c_try_compile "$LINENO"; then :
  5202. ac_cv_sys_largefile_CC=' -n32'; break
  5203. fi
  5204. rm -f core conftest.err conftest.$ac_objext
  5205. break
  5206. done
  5207. CC=$ac_save_CC
  5208. rm -f conftest.$ac_ext
  5209. fi
  5210. fi
  5211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  5212. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  5213. if test "$ac_cv_sys_largefile_CC" != no; then
  5214. CC=$CC$ac_cv_sys_largefile_CC
  5215. fi
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  5217. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  5218. if ${ac_cv_sys_file_offset_bits+:} false; then :
  5219. $as_echo_n "(cached) " >&6
  5220. else
  5221. while :; do
  5222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5223. /* end confdefs.h. */
  5224. #include <sys/types.h>
  5225. /* Check that off_t can represent 2**63 - 1 correctly.
  5226. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5227. since some C++ compilers masquerading as C compilers
  5228. incorrectly reject 9223372036854775807. */
  5229. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5230. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5231. && LARGE_OFF_T % 2147483647 == 1)
  5232. ? 1 : -1];
  5233. int
  5234. main ()
  5235. {
  5236. ;
  5237. return 0;
  5238. }
  5239. _ACEOF
  5240. if ac_fn_c_try_compile "$LINENO"; then :
  5241. ac_cv_sys_file_offset_bits=no; break
  5242. fi
  5243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5245. /* end confdefs.h. */
  5246. #define _FILE_OFFSET_BITS 64
  5247. #include <sys/types.h>
  5248. /* Check that off_t can represent 2**63 - 1 correctly.
  5249. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5250. since some C++ compilers masquerading as C compilers
  5251. incorrectly reject 9223372036854775807. */
  5252. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5253. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5254. && LARGE_OFF_T % 2147483647 == 1)
  5255. ? 1 : -1];
  5256. int
  5257. main ()
  5258. {
  5259. ;
  5260. return 0;
  5261. }
  5262. _ACEOF
  5263. if ac_fn_c_try_compile "$LINENO"; then :
  5264. ac_cv_sys_file_offset_bits=64; break
  5265. fi
  5266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5267. ac_cv_sys_file_offset_bits=unknown
  5268. break
  5269. done
  5270. fi
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  5272. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  5273. case $ac_cv_sys_file_offset_bits in #(
  5274. no | unknown) ;;
  5275. *)
  5276. cat >>confdefs.h <<_ACEOF
  5277. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  5278. _ACEOF
  5279. ;;
  5280. esac
  5281. rm -rf conftest*
  5282. if test $ac_cv_sys_file_offset_bits = unknown; then
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  5284. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  5285. if ${ac_cv_sys_large_files+:} false; then :
  5286. $as_echo_n "(cached) " >&6
  5287. else
  5288. while :; do
  5289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5290. /* end confdefs.h. */
  5291. #include <sys/types.h>
  5292. /* Check that off_t can represent 2**63 - 1 correctly.
  5293. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5294. since some C++ compilers masquerading as C compilers
  5295. incorrectly reject 9223372036854775807. */
  5296. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5297. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5298. && LARGE_OFF_T % 2147483647 == 1)
  5299. ? 1 : -1];
  5300. int
  5301. main ()
  5302. {
  5303. ;
  5304. return 0;
  5305. }
  5306. _ACEOF
  5307. if ac_fn_c_try_compile "$LINENO"; then :
  5308. ac_cv_sys_large_files=no; break
  5309. fi
  5310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5312. /* end confdefs.h. */
  5313. #define _LARGE_FILES 1
  5314. #include <sys/types.h>
  5315. /* Check that off_t can represent 2**63 - 1 correctly.
  5316. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5317. since some C++ compilers masquerading as C compilers
  5318. incorrectly reject 9223372036854775807. */
  5319. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5320. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5321. && LARGE_OFF_T % 2147483647 == 1)
  5322. ? 1 : -1];
  5323. int
  5324. main ()
  5325. {
  5326. ;
  5327. return 0;
  5328. }
  5329. _ACEOF
  5330. if ac_fn_c_try_compile "$LINENO"; then :
  5331. ac_cv_sys_large_files=1; break
  5332. fi
  5333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5334. ac_cv_sys_large_files=unknown
  5335. break
  5336. done
  5337. fi
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  5339. $as_echo "$ac_cv_sys_large_files" >&6; }
  5340. case $ac_cv_sys_large_files in #(
  5341. no | unknown) ;;
  5342. *)
  5343. cat >>confdefs.h <<_ACEOF
  5344. #define _LARGE_FILES $ac_cv_sys_large_files
  5345. _ACEOF
  5346. ;;
  5347. esac
  5348. rm -rf conftest*
  5349. fi
  5350. fi
  5351. # We require a C++11 compiler. Check if one is available, and if
  5352. # necessary, set CXX_DIALECT to some -std=xxx switch.
  5353. ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
  5354. ac_ext=cpp
  5355. ac_cpp='$CXXCPP $CPPFLAGS'
  5356. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5357. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5358. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5359. CXX_DIALECT=""
  5360. ac_success=no
  5361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  5362. $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
  5363. if ${ax_cv_cxx_compile_cxx11+:} false; then :
  5364. $as_echo_n "(cached) " >&6
  5365. else
  5366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5367. /* end confdefs.h. */
  5368. // If the compiler admits that it is not ready for C++11, why torture it?
  5369. // Hopefully, this will speed up the test.
  5370. #ifndef __cplusplus
  5371. #error "This is not a C++ compiler"
  5372. #elif __cplusplus < 201103L
  5373. #error "This is not a C++11 compiler"
  5374. #else
  5375. namespace cxx11
  5376. {
  5377. namespace test_static_assert
  5378. {
  5379. template <typename T>
  5380. struct check
  5381. {
  5382. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  5383. };
  5384. }
  5385. namespace test_final_override
  5386. {
  5387. struct Base
  5388. {
  5389. virtual void f() {}
  5390. };
  5391. struct Derived : public Base
  5392. {
  5393. virtual void f() override {}
  5394. };
  5395. }
  5396. namespace test_double_right_angle_brackets
  5397. {
  5398. template < typename T >
  5399. struct check {};
  5400. typedef check<void> single_type;
  5401. typedef check<check<void>> double_type;
  5402. typedef check<check<check<void>>> triple_type;
  5403. typedef check<check<check<check<void>>>> quadruple_type;
  5404. }
  5405. namespace test_decltype
  5406. {
  5407. int
  5408. f()
  5409. {
  5410. int a = 1;
  5411. decltype(a) b = 2;
  5412. return a + b;
  5413. }
  5414. }
  5415. namespace test_type_deduction
  5416. {
  5417. template < typename T1, typename T2 >
  5418. struct is_same
  5419. {
  5420. static const bool value = false;
  5421. };
  5422. template < typename T >
  5423. struct is_same<T, T>
  5424. {
  5425. static const bool value = true;
  5426. };
  5427. template < typename T1, typename T2 >
  5428. auto
  5429. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  5430. {
  5431. return a1 + a2;
  5432. }
  5433. int
  5434. test(const int c, volatile int v)
  5435. {
  5436. static_assert(is_same<int, decltype(0)>::value == true, "");
  5437. static_assert(is_same<int, decltype(c)>::value == false, "");
  5438. static_assert(is_same<int, decltype(v)>::value == false, "");
  5439. auto ac = c;
  5440. auto av = v;
  5441. auto sumi = ac + av + 'x';
  5442. auto sumf = ac + av + 1.0;
  5443. static_assert(is_same<int, decltype(ac)>::value == true, "");
  5444. static_assert(is_same<int, decltype(av)>::value == true, "");
  5445. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  5446. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  5447. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  5448. return (sumf > 0.0) ? sumi : add(c, v);
  5449. }
  5450. }
  5451. namespace test_noexcept
  5452. {
  5453. int f() { return 0; }
  5454. int g() noexcept { return 0; }
  5455. static_assert(noexcept(f()) == false, "");
  5456. static_assert(noexcept(g()) == true, "");
  5457. }
  5458. namespace test_constexpr
  5459. {
  5460. template < typename CharT >
  5461. unsigned long constexpr
  5462. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  5463. {
  5464. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  5465. }
  5466. template < typename CharT >
  5467. unsigned long constexpr
  5468. strlen_c(const CharT *const s) noexcept
  5469. {
  5470. return strlen_c_r(s, 0UL);
  5471. }
  5472. static_assert(strlen_c("") == 0UL, "");
  5473. static_assert(strlen_c("1") == 1UL, "");
  5474. static_assert(strlen_c("example") == 7UL, "");
  5475. static_assert(strlen_c("another\0example") == 7UL, "");
  5476. }
  5477. namespace test_rvalue_references
  5478. {
  5479. template < int N >
  5480. struct answer
  5481. {
  5482. static constexpr int value = N;
  5483. };
  5484. answer<1> f(int&) { return answer<1>(); }
  5485. answer<2> f(const int&) { return answer<2>(); }
  5486. answer<3> f(int&&) { return answer<3>(); }
  5487. void
  5488. test()
  5489. {
  5490. int i = 0;
  5491. const int c = 0;
  5492. static_assert(decltype(f(i))::value == 1, "");
  5493. static_assert(decltype(f(c))::value == 2, "");
  5494. static_assert(decltype(f(0))::value == 3, "");
  5495. }
  5496. }
  5497. namespace test_uniform_initialization
  5498. {
  5499. struct test
  5500. {
  5501. static const int zero {};
  5502. static const int one {1};
  5503. };
  5504. static_assert(test::zero == 0, "");
  5505. static_assert(test::one == 1, "");
  5506. }
  5507. namespace test_lambdas
  5508. {
  5509. void
  5510. test1()
  5511. {
  5512. auto lambda1 = [](){};
  5513. auto lambda2 = lambda1;
  5514. lambda1();
  5515. lambda2();
  5516. }
  5517. int
  5518. test2()
  5519. {
  5520. auto a = [](int i, int j){ return i + j; }(1, 2);
  5521. auto b = []() -> int { return '0'; }();
  5522. auto c = [=](){ return a + b; }();
  5523. auto d = [&](){ return c; }();
  5524. auto e = [a, &b](int x) mutable {
  5525. const auto identity = [](int y){ return y; };
  5526. for (auto i = 0; i < a; ++i)
  5527. a += b--;
  5528. return x + identity(a + b);
  5529. }(0);
  5530. return a + b + c + d + e;
  5531. }
  5532. int
  5533. test3()
  5534. {
  5535. const auto nullary = [](){ return 0; };
  5536. const auto unary = [](int x){ return x; };
  5537. using nullary_t = decltype(nullary);
  5538. using unary_t = decltype(unary);
  5539. const auto higher1st = [](nullary_t f){ return f(); };
  5540. const auto higher2nd = [unary](nullary_t f1){
  5541. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  5542. };
  5543. return higher1st(nullary) + higher2nd(nullary)(unary);
  5544. }
  5545. }
  5546. namespace test_variadic_templates
  5547. {
  5548. template <int...>
  5549. struct sum;
  5550. template <int N0, int... N1toN>
  5551. struct sum<N0, N1toN...>
  5552. {
  5553. static constexpr auto value = N0 + sum<N1toN...>::value;
  5554. };
  5555. template <>
  5556. struct sum<>
  5557. {
  5558. static constexpr auto value = 0;
  5559. };
  5560. static_assert(sum<>::value == 0, "");
  5561. static_assert(sum<1>::value == 1, "");
  5562. static_assert(sum<23>::value == 23, "");
  5563. static_assert(sum<1, 2>::value == 3, "");
  5564. static_assert(sum<5, 5, 11>::value == 21, "");
  5565. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  5566. }
  5567. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  5568. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  5569. // because of this.
  5570. namespace test_template_alias_sfinae
  5571. {
  5572. struct foo {};
  5573. template<typename T>
  5574. using member = typename T::member_type;
  5575. template<typename T>
  5576. void func(...) {}
  5577. template<typename T>
  5578. void func(member<T>*) {}
  5579. void test();
  5580. void test() { func<foo>(0); }
  5581. }
  5582. } // namespace cxx11
  5583. #endif // __cplusplus >= 201103L
  5584. _ACEOF
  5585. if ac_fn_cxx_try_compile "$LINENO"; then :
  5586. ax_cv_cxx_compile_cxx11=yes
  5587. else
  5588. ax_cv_cxx_compile_cxx11=no
  5589. fi
  5590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5591. fi
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  5593. $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
  5594. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  5595. ac_success=yes
  5596. fi
  5597. if test x$ac_success = xno; then
  5598. for alternative in ${ax_cxx_compile_alternatives}; do
  5599. switch="-std=gnu++${alternative}"
  5600. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  5602. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  5603. if eval \${$cachevar+:} false; then :
  5604. $as_echo_n "(cached) " >&6
  5605. else
  5606. ac_save_CXX="$CXX"
  5607. CXX="$CXX $switch"
  5608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5609. /* end confdefs.h. */
  5610. // If the compiler admits that it is not ready for C++11, why torture it?
  5611. // Hopefully, this will speed up the test.
  5612. #ifndef __cplusplus
  5613. #error "This is not a C++ compiler"
  5614. #elif __cplusplus < 201103L
  5615. #error "This is not a C++11 compiler"
  5616. #else
  5617. namespace cxx11
  5618. {
  5619. namespace test_static_assert
  5620. {
  5621. template <typename T>
  5622. struct check
  5623. {
  5624. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  5625. };
  5626. }
  5627. namespace test_final_override
  5628. {
  5629. struct Base
  5630. {
  5631. virtual void f() {}
  5632. };
  5633. struct Derived : public Base
  5634. {
  5635. virtual void f() override {}
  5636. };
  5637. }
  5638. namespace test_double_right_angle_brackets
  5639. {
  5640. template < typename T >
  5641. struct check {};
  5642. typedef check<void> single_type;
  5643. typedef check<check<void>> double_type;
  5644. typedef check<check<check<void>>> triple_type;
  5645. typedef check<check<check<check<void>>>> quadruple_type;
  5646. }
  5647. namespace test_decltype
  5648. {
  5649. int
  5650. f()
  5651. {
  5652. int a = 1;
  5653. decltype(a) b = 2;
  5654. return a + b;
  5655. }
  5656. }
  5657. namespace test_type_deduction
  5658. {
  5659. template < typename T1, typename T2 >
  5660. struct is_same
  5661. {
  5662. static const bool value = false;
  5663. };
  5664. template < typename T >
  5665. struct is_same<T, T>
  5666. {
  5667. static const bool value = true;
  5668. };
  5669. template < typename T1, typename T2 >
  5670. auto
  5671. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  5672. {
  5673. return a1 + a2;
  5674. }
  5675. int
  5676. test(const int c, volatile int v)
  5677. {
  5678. static_assert(is_same<int, decltype(0)>::value == true, "");
  5679. static_assert(is_same<int, decltype(c)>::value == false, "");
  5680. static_assert(is_same<int, decltype(v)>::value == false, "");
  5681. auto ac = c;
  5682. auto av = v;
  5683. auto sumi = ac + av + 'x';
  5684. auto sumf = ac + av + 1.0;
  5685. static_assert(is_same<int, decltype(ac)>::value == true, "");
  5686. static_assert(is_same<int, decltype(av)>::value == true, "");
  5687. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  5688. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  5689. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  5690. return (sumf > 0.0) ? sumi : add(c, v);
  5691. }
  5692. }
  5693. namespace test_noexcept
  5694. {
  5695. int f() { return 0; }
  5696. int g() noexcept { return 0; }
  5697. static_assert(noexcept(f()) == false, "");
  5698. static_assert(noexcept(g()) == true, "");
  5699. }
  5700. namespace test_constexpr
  5701. {
  5702. template < typename CharT >
  5703. unsigned long constexpr
  5704. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  5705. {
  5706. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  5707. }
  5708. template < typename CharT >
  5709. unsigned long constexpr
  5710. strlen_c(const CharT *const s) noexcept
  5711. {
  5712. return strlen_c_r(s, 0UL);
  5713. }
  5714. static_assert(strlen_c("") == 0UL, "");
  5715. static_assert(strlen_c("1") == 1UL, "");
  5716. static_assert(strlen_c("example") == 7UL, "");
  5717. static_assert(strlen_c("another\0example") == 7UL, "");
  5718. }
  5719. namespace test_rvalue_references
  5720. {
  5721. template < int N >
  5722. struct answer
  5723. {
  5724. static constexpr int value = N;
  5725. };
  5726. answer<1> f(int&) { return answer<1>(); }
  5727. answer<2> f(const int&) { return answer<2>(); }
  5728. answer<3> f(int&&) { return answer<3>(); }
  5729. void
  5730. test()
  5731. {
  5732. int i = 0;
  5733. const int c = 0;
  5734. static_assert(decltype(f(i))::value == 1, "");
  5735. static_assert(decltype(f(c))::value == 2, "");
  5736. static_assert(decltype(f(0))::value == 3, "");
  5737. }
  5738. }
  5739. namespace test_uniform_initialization
  5740. {
  5741. struct test
  5742. {
  5743. static const int zero {};
  5744. static const int one {1};
  5745. };
  5746. static_assert(test::zero == 0, "");
  5747. static_assert(test::one == 1, "");
  5748. }
  5749. namespace test_lambdas
  5750. {
  5751. void
  5752. test1()
  5753. {
  5754. auto lambda1 = [](){};
  5755. auto lambda2 = lambda1;
  5756. lambda1();
  5757. lambda2();
  5758. }
  5759. int
  5760. test2()
  5761. {
  5762. auto a = [](int i, int j){ return i + j; }(1, 2);
  5763. auto b = []() -> int { return '0'; }();
  5764. auto c = [=](){ return a + b; }();
  5765. auto d = [&](){ return c; }();
  5766. auto e = [a, &b](int x) mutable {
  5767. const auto identity = [](int y){ return y; };
  5768. for (auto i = 0; i < a; ++i)
  5769. a += b--;
  5770. return x + identity(a + b);
  5771. }(0);
  5772. return a + b + c + d + e;
  5773. }
  5774. int
  5775. test3()
  5776. {
  5777. const auto nullary = [](){ return 0; };
  5778. const auto unary = [](int x){ return x; };
  5779. using nullary_t = decltype(nullary);
  5780. using unary_t = decltype(unary);
  5781. const auto higher1st = [](nullary_t f){ return f(); };
  5782. const auto higher2nd = [unary](nullary_t f1){
  5783. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  5784. };
  5785. return higher1st(nullary) + higher2nd(nullary)(unary);
  5786. }
  5787. }
  5788. namespace test_variadic_templates
  5789. {
  5790. template <int...>
  5791. struct sum;
  5792. template <int N0, int... N1toN>
  5793. struct sum<N0, N1toN...>
  5794. {
  5795. static constexpr auto value = N0 + sum<N1toN...>::value;
  5796. };
  5797. template <>
  5798. struct sum<>
  5799. {
  5800. static constexpr auto value = 0;
  5801. };
  5802. static_assert(sum<>::value == 0, "");
  5803. static_assert(sum<1>::value == 1, "");
  5804. static_assert(sum<23>::value == 23, "");
  5805. static_assert(sum<1, 2>::value == 3, "");
  5806. static_assert(sum<5, 5, 11>::value == 21, "");
  5807. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  5808. }
  5809. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  5810. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  5811. // because of this.
  5812. namespace test_template_alias_sfinae
  5813. {
  5814. struct foo {};
  5815. template<typename T>
  5816. using member = typename T::member_type;
  5817. template<typename T>
  5818. void func(...) {}
  5819. template<typename T>
  5820. void func(member<T>*) {}
  5821. void test();
  5822. void test() { func<foo>(0); }
  5823. }
  5824. } // namespace cxx11
  5825. #endif // __cplusplus >= 201103L
  5826. _ACEOF
  5827. if ac_fn_cxx_try_compile "$LINENO"; then :
  5828. eval $cachevar=yes
  5829. else
  5830. eval $cachevar=no
  5831. fi
  5832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5833. CXX="$ac_save_CXX"
  5834. fi
  5835. eval ac_res=\$$cachevar
  5836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5837. $as_echo "$ac_res" >&6; }
  5838. if eval test x\$$cachevar = xyes; then
  5839. CXX_DIALECT="$switch"
  5840. CXX="$CXX $switch"
  5841. if test -n "$CXXCPP" ; then
  5842. CXXCPP="$CXXCPP $switch"
  5843. fi
  5844. ac_success=yes
  5845. break
  5846. fi
  5847. done
  5848. fi
  5849. if test x$ac_success = xno; then
  5850. for alternative in ${ax_cxx_compile_alternatives}; do
  5851. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
  5852. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  5854. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  5855. if eval \${$cachevar+:} false; then :
  5856. $as_echo_n "(cached) " >&6
  5857. else
  5858. ac_save_CXX="$CXX"
  5859. CXX="$CXX $switch"
  5860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5861. /* end confdefs.h. */
  5862. // If the compiler admits that it is not ready for C++11, why torture it?
  5863. // Hopefully, this will speed up the test.
  5864. #ifndef __cplusplus
  5865. #error "This is not a C++ compiler"
  5866. #elif __cplusplus < 201103L
  5867. #error "This is not a C++11 compiler"
  5868. #else
  5869. namespace cxx11
  5870. {
  5871. namespace test_static_assert
  5872. {
  5873. template <typename T>
  5874. struct check
  5875. {
  5876. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  5877. };
  5878. }
  5879. namespace test_final_override
  5880. {
  5881. struct Base
  5882. {
  5883. virtual void f() {}
  5884. };
  5885. struct Derived : public Base
  5886. {
  5887. virtual void f() override {}
  5888. };
  5889. }
  5890. namespace test_double_right_angle_brackets
  5891. {
  5892. template < typename T >
  5893. struct check {};
  5894. typedef check<void> single_type;
  5895. typedef check<check<void>> double_type;
  5896. typedef check<check<check<void>>> triple_type;
  5897. typedef check<check<check<check<void>>>> quadruple_type;
  5898. }
  5899. namespace test_decltype
  5900. {
  5901. int
  5902. f()
  5903. {
  5904. int a = 1;
  5905. decltype(a) b = 2;
  5906. return a + b;
  5907. }
  5908. }
  5909. namespace test_type_deduction
  5910. {
  5911. template < typename T1, typename T2 >
  5912. struct is_same
  5913. {
  5914. static const bool value = false;
  5915. };
  5916. template < typename T >
  5917. struct is_same<T, T>
  5918. {
  5919. static const bool value = true;
  5920. };
  5921. template < typename T1, typename T2 >
  5922. auto
  5923. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  5924. {
  5925. return a1 + a2;
  5926. }
  5927. int
  5928. test(const int c, volatile int v)
  5929. {
  5930. static_assert(is_same<int, decltype(0)>::value == true, "");
  5931. static_assert(is_same<int, decltype(c)>::value == false, "");
  5932. static_assert(is_same<int, decltype(v)>::value == false, "");
  5933. auto ac = c;
  5934. auto av = v;
  5935. auto sumi = ac + av + 'x';
  5936. auto sumf = ac + av + 1.0;
  5937. static_assert(is_same<int, decltype(ac)>::value == true, "");
  5938. static_assert(is_same<int, decltype(av)>::value == true, "");
  5939. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  5940. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  5941. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  5942. return (sumf > 0.0) ? sumi : add(c, v);
  5943. }
  5944. }
  5945. namespace test_noexcept
  5946. {
  5947. int f() { return 0; }
  5948. int g() noexcept { return 0; }
  5949. static_assert(noexcept(f()) == false, "");
  5950. static_assert(noexcept(g()) == true, "");
  5951. }
  5952. namespace test_constexpr
  5953. {
  5954. template < typename CharT >
  5955. unsigned long constexpr
  5956. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  5957. {
  5958. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  5959. }
  5960. template < typename CharT >
  5961. unsigned long constexpr
  5962. strlen_c(const CharT *const s) noexcept
  5963. {
  5964. return strlen_c_r(s, 0UL);
  5965. }
  5966. static_assert(strlen_c("") == 0UL, "");
  5967. static_assert(strlen_c("1") == 1UL, "");
  5968. static_assert(strlen_c("example") == 7UL, "");
  5969. static_assert(strlen_c("another\0example") == 7UL, "");
  5970. }
  5971. namespace test_rvalue_references
  5972. {
  5973. template < int N >
  5974. struct answer
  5975. {
  5976. static constexpr int value = N;
  5977. };
  5978. answer<1> f(int&) { return answer<1>(); }
  5979. answer<2> f(const int&) { return answer<2>(); }
  5980. answer<3> f(int&&) { return answer<3>(); }
  5981. void
  5982. test()
  5983. {
  5984. int i = 0;
  5985. const int c = 0;
  5986. static_assert(decltype(f(i))::value == 1, "");
  5987. static_assert(decltype(f(c))::value == 2, "");
  5988. static_assert(decltype(f(0))::value == 3, "");
  5989. }
  5990. }
  5991. namespace test_uniform_initialization
  5992. {
  5993. struct test
  5994. {
  5995. static const int zero {};
  5996. static const int one {1};
  5997. };
  5998. static_assert(test::zero == 0, "");
  5999. static_assert(test::one == 1, "");
  6000. }
  6001. namespace test_lambdas
  6002. {
  6003. void
  6004. test1()
  6005. {
  6006. auto lambda1 = [](){};
  6007. auto lambda2 = lambda1;
  6008. lambda1();
  6009. lambda2();
  6010. }
  6011. int
  6012. test2()
  6013. {
  6014. auto a = [](int i, int j){ return i + j; }(1, 2);
  6015. auto b = []() -> int { return '0'; }();
  6016. auto c = [=](){ return a + b; }();
  6017. auto d = [&](){ return c; }();
  6018. auto e = [a, &b](int x) mutable {
  6019. const auto identity = [](int y){ return y; };
  6020. for (auto i = 0; i < a; ++i)
  6021. a += b--;
  6022. return x + identity(a + b);
  6023. }(0);
  6024. return a + b + c + d + e;
  6025. }
  6026. int
  6027. test3()
  6028. {
  6029. const auto nullary = [](){ return 0; };
  6030. const auto unary = [](int x){ return x; };
  6031. using nullary_t = decltype(nullary);
  6032. using unary_t = decltype(unary);
  6033. const auto higher1st = [](nullary_t f){ return f(); };
  6034. const auto higher2nd = [unary](nullary_t f1){
  6035. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  6036. };
  6037. return higher1st(nullary) + higher2nd(nullary)(unary);
  6038. }
  6039. }
  6040. namespace test_variadic_templates
  6041. {
  6042. template <int...>
  6043. struct sum;
  6044. template <int N0, int... N1toN>
  6045. struct sum<N0, N1toN...>
  6046. {
  6047. static constexpr auto value = N0 + sum<N1toN...>::value;
  6048. };
  6049. template <>
  6050. struct sum<>
  6051. {
  6052. static constexpr auto value = 0;
  6053. };
  6054. static_assert(sum<>::value == 0, "");
  6055. static_assert(sum<1>::value == 1, "");
  6056. static_assert(sum<23>::value == 23, "");
  6057. static_assert(sum<1, 2>::value == 3, "");
  6058. static_assert(sum<5, 5, 11>::value == 21, "");
  6059. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  6060. }
  6061. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  6062. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  6063. // because of this.
  6064. namespace test_template_alias_sfinae
  6065. {
  6066. struct foo {};
  6067. template<typename T>
  6068. using member = typename T::member_type;
  6069. template<typename T>
  6070. void func(...) {}
  6071. template<typename T>
  6072. void func(member<T>*) {}
  6073. void test();
  6074. void test() { func<foo>(0); }
  6075. }
  6076. } // namespace cxx11
  6077. #endif // __cplusplus >= 201103L
  6078. _ACEOF
  6079. if ac_fn_cxx_try_compile "$LINENO"; then :
  6080. eval $cachevar=yes
  6081. else
  6082. eval $cachevar=no
  6083. fi
  6084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6085. CXX="$ac_save_CXX"
  6086. fi
  6087. eval ac_res=\$$cachevar
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6089. $as_echo "$ac_res" >&6; }
  6090. if eval test x\$$cachevar = xyes; then
  6091. CXX_DIALECT="$switch"
  6092. CXX="$CXX $switch"
  6093. if test -n "$CXXCPP" ; then
  6094. CXXCPP="$CXXCPP $switch"
  6095. fi
  6096. ac_success=yes
  6097. break
  6098. fi
  6099. done
  6100. if test x$ac_success = xyes; then
  6101. break
  6102. fi
  6103. done
  6104. fi
  6105. ac_ext=c
  6106. ac_cpp='$CPP $CPPFLAGS'
  6107. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6108. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6109. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6110. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  6111. if test x$ac_success = xno; then
  6112. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  6113. fi
  6114. fi
  6115. if test x$ac_success = xno; then
  6116. HAVE_CXX11=0
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  6118. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  6119. else
  6120. HAVE_CXX11=1
  6121. $as_echo "#define HAVE_CXX11 1" >>confdefs.h
  6122. fi
  6123. # If we haven't got the data from the intl directory,
  6124. # assume NLS is disabled.
  6125. USE_NLS=no
  6126. LIBINTL=
  6127. LIBINTL_DEP=
  6128. INCINTL=
  6129. XGETTEXT=
  6130. GMSGFMT=
  6131. POSUB=
  6132. if test -f ../intl/config.intl; then
  6133. . ../intl/config.intl
  6134. fi
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  6136. $as_echo_n "checking whether NLS is requested... " >&6; }
  6137. if test x"$USE_NLS" != xyes; then
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6139. $as_echo "no" >&6; }
  6140. else
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6142. $as_echo "yes" >&6; }
  6143. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  6144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  6145. $as_echo_n "checking for catalogs to be installed... " >&6; }
  6146. # Look for .po and .gmo files in the source directory.
  6147. CATALOGS=
  6148. XLINGUAS=
  6149. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  6150. # If there aren't any .gmo files the shell will give us the
  6151. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  6152. # weeded out.
  6153. case "$cat" in *\**)
  6154. continue;;
  6155. esac
  6156. # The quadruple backslash is collapsed to a double backslash
  6157. # by the backticks, then collapsed again by the double quotes,
  6158. # leaving us with one backslash in the sed expression (right
  6159. # before the dot that mustn't act as a wildcard).
  6160. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  6161. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  6162. # The user is allowed to set LINGUAS to a list of languages to
  6163. # install catalogs for. If it's empty that means "all of them."
  6164. if test "x$LINGUAS" = x; then
  6165. CATALOGS="$CATALOGS $cat"
  6166. XLINGUAS="$XLINGUAS $lang"
  6167. else
  6168. case "$LINGUAS" in *$lang*)
  6169. CATALOGS="$CATALOGS $cat"
  6170. XLINGUAS="$XLINGUAS $lang"
  6171. ;;
  6172. esac
  6173. fi
  6174. done
  6175. LINGUAS="$XLINGUAS"
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  6177. $as_echo "$LINGUAS" >&6; }
  6178. DATADIRNAME=share
  6179. INSTOBJEXT=.mo
  6180. GENCAT=gencat
  6181. CATOBJEXT=.gmo
  6182. fi
  6183. # Check for presence and size of long long.
  6184. ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  6185. if test "x$ac_cv_type_long_long" = xyes; then :
  6186. cat >>confdefs.h <<_ACEOF
  6187. #define HAVE_LONG_LONG 1
  6188. _ACEOF
  6189. # The cast to long int works around a bug in the HP C Compiler
  6190. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6191. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6192. # This bug is HP SR number 8606223364.
  6193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  6194. $as_echo_n "checking size of long long... " >&6; }
  6195. if ${ac_cv_sizeof_long_long+:} false; then :
  6196. $as_echo_n "(cached) " >&6
  6197. else
  6198. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  6199. else
  6200. if test "$ac_cv_type_long_long" = yes; then
  6201. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6202. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6203. as_fn_error 77 "cannot compute sizeof (long long)
  6204. See \`config.log' for more details" "$LINENO" 5; }
  6205. else
  6206. ac_cv_sizeof_long_long=0
  6207. fi
  6208. fi
  6209. fi
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  6211. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  6212. cat >>confdefs.h <<_ACEOF
  6213. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  6214. _ACEOF
  6215. fi
  6216. as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
  6217. ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
  6218. if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
  6219. ac_have_decl=1
  6220. else
  6221. ac_have_decl=0
  6222. fi
  6223. cat >>confdefs.h <<_ACEOF
  6224. #define HAVE_DECL_BASENAME $ac_have_decl
  6225. _ACEOF
  6226. ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
  6227. if test "x$ac_cv_have_decl_ffs" = xyes; then :
  6228. ac_have_decl=1
  6229. else
  6230. ac_have_decl=0
  6231. fi
  6232. cat >>confdefs.h <<_ACEOF
  6233. #define HAVE_DECL_FFS $ac_have_decl
  6234. _ACEOF
  6235. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  6236. if test "x$ac_cv_have_decl_asprintf" = xyes; then :
  6237. ac_have_decl=1
  6238. else
  6239. ac_have_decl=0
  6240. fi
  6241. cat >>confdefs.h <<_ACEOF
  6242. #define HAVE_DECL_ASPRINTF $ac_have_decl
  6243. _ACEOF
  6244. ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  6245. if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
  6246. ac_have_decl=1
  6247. else
  6248. ac_have_decl=0
  6249. fi
  6250. cat >>confdefs.h <<_ACEOF
  6251. #define HAVE_DECL_VASPRINTF $ac_have_decl
  6252. _ACEOF
  6253. ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
  6254. if test "x$ac_cv_have_decl_snprintf" = xyes; then :
  6255. ac_have_decl=1
  6256. else
  6257. ac_have_decl=0
  6258. fi
  6259. cat >>confdefs.h <<_ACEOF
  6260. #define HAVE_DECL_SNPRINTF $ac_have_decl
  6261. _ACEOF
  6262. ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  6263. if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
  6264. ac_have_decl=1
  6265. else
  6266. ac_have_decl=0
  6267. fi
  6268. cat >>confdefs.h <<_ACEOF
  6269. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  6270. _ACEOF
  6271. ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
  6272. if test "x$ac_cv_have_decl_strtol" = xyes; then :
  6273. ac_have_decl=1
  6274. else
  6275. ac_have_decl=0
  6276. fi
  6277. cat >>confdefs.h <<_ACEOF
  6278. #define HAVE_DECL_STRTOL $ac_have_decl
  6279. _ACEOF
  6280. ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
  6281. if test "x$ac_cv_have_decl_strtoul" = xyes; then :
  6282. ac_have_decl=1
  6283. else
  6284. ac_have_decl=0
  6285. fi
  6286. cat >>confdefs.h <<_ACEOF
  6287. #define HAVE_DECL_STRTOUL $ac_have_decl
  6288. _ACEOF
  6289. ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
  6290. if test "x$ac_cv_have_decl_strtoll" = xyes; then :
  6291. ac_have_decl=1
  6292. else
  6293. ac_have_decl=0
  6294. fi
  6295. cat >>confdefs.h <<_ACEOF
  6296. #define HAVE_DECL_STRTOLL $ac_have_decl
  6297. _ACEOF
  6298. ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
  6299. if test "x$ac_cv_have_decl_strtoull" = xyes; then :
  6300. ac_have_decl=1
  6301. else
  6302. ac_have_decl=0
  6303. fi
  6304. cat >>confdefs.h <<_ACEOF
  6305. #define HAVE_DECL_STRTOULL $ac_have_decl
  6306. _ACEOF
  6307. ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
  6308. if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
  6309. ac_have_decl=1
  6310. else
  6311. ac_have_decl=0
  6312. fi
  6313. cat >>confdefs.h <<_ACEOF
  6314. #define HAVE_DECL_STRVERSCMP $ac_have_decl
  6315. _ACEOF
  6316. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6317. if test "x$ac_cv_type_size_t" = xyes; then :
  6318. else
  6319. cat >>confdefs.h <<_ACEOF
  6320. #define size_t unsigned int
  6321. _ACEOF
  6322. fi
  6323. for ac_header in $ac_header_list
  6324. do :
  6325. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6326. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6327. "
  6328. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6329. cat >>confdefs.h <<_ACEOF
  6330. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6331. _ACEOF
  6332. fi
  6333. done
  6334. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6335. if test "x$ac_cv_type_pid_t" = xyes; then :
  6336. else
  6337. cat >>confdefs.h <<_ACEOF
  6338. #define pid_t int
  6339. _ACEOF
  6340. fi
  6341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  6342. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  6343. if ${ac_cv_path_SED+:} false; then :
  6344. $as_echo_n "(cached) " >&6
  6345. else
  6346. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  6347. for ac_i in 1 2 3 4 5 6 7; do
  6348. ac_script="$ac_script$as_nl$ac_script"
  6349. done
  6350. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  6351. { ac_script=; unset ac_script;}
  6352. if test -z "$SED"; then
  6353. ac_path_SED_found=false
  6354. # Loop through the user's path and test for each of PROGNAME-LIST
  6355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6356. for as_dir in $PATH
  6357. do
  6358. IFS=$as_save_IFS
  6359. test -z "$as_dir" && as_dir=.
  6360. for ac_prog in sed gsed; do
  6361. for ac_exec_ext in '' $ac_executable_extensions; do
  6362. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  6363. as_fn_executable_p "$ac_path_SED" || continue
  6364. # Check for GNU ac_path_SED and select it if it is found.
  6365. # Check for GNU $ac_path_SED
  6366. case `"$ac_path_SED" --version 2>&1` in
  6367. *GNU*)
  6368. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  6369. *)
  6370. ac_count=0
  6371. $as_echo_n 0123456789 >"conftest.in"
  6372. while :
  6373. do
  6374. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6375. mv "conftest.tmp" "conftest.in"
  6376. cp "conftest.in" "conftest.nl"
  6377. $as_echo '' >> "conftest.nl"
  6378. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6379. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6380. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6381. if test $ac_count -gt ${ac_path_SED_max-0}; then
  6382. # Best one so far, save it but keep looking for a better one
  6383. ac_cv_path_SED="$ac_path_SED"
  6384. ac_path_SED_max=$ac_count
  6385. fi
  6386. # 10*(2^10) chars as input seems more than enough
  6387. test $ac_count -gt 10 && break
  6388. done
  6389. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6390. esac
  6391. $ac_path_SED_found && break 3
  6392. done
  6393. done
  6394. done
  6395. IFS=$as_save_IFS
  6396. if test -z "$ac_cv_path_SED"; then
  6397. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  6398. fi
  6399. else
  6400. ac_cv_path_SED=$SED
  6401. fi
  6402. fi
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  6404. $as_echo "$ac_cv_path_SED" >&6; }
  6405. SED="$ac_cv_path_SED"
  6406. rm -f conftest.sed
  6407. if test "X$prefix" = "XNONE"; then
  6408. acl_final_prefix="$ac_default_prefix"
  6409. else
  6410. acl_final_prefix="$prefix"
  6411. fi
  6412. if test "X$exec_prefix" = "XNONE"; then
  6413. acl_final_exec_prefix='${prefix}'
  6414. else
  6415. acl_final_exec_prefix="$exec_prefix"
  6416. fi
  6417. acl_save_prefix="$prefix"
  6418. prefix="$acl_final_prefix"
  6419. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  6420. prefix="$acl_save_prefix"
  6421. # Check whether --with-gnu-ld was given.
  6422. if test "${with_gnu_ld+set}" = set; then :
  6423. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  6424. else
  6425. with_gnu_ld=no
  6426. fi
  6427. # Prepare PATH_SEPARATOR.
  6428. # The user is always right.
  6429. if test "${PATH_SEPARATOR+set}" != set; then
  6430. echo "#! /bin/sh" >conf$$.sh
  6431. echo "exit 0" >>conf$$.sh
  6432. chmod +x conf$$.sh
  6433. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6434. PATH_SEPARATOR=';'
  6435. else
  6436. PATH_SEPARATOR=:
  6437. fi
  6438. rm -f conf$$.sh
  6439. fi
  6440. ac_prog=ld
  6441. if test "$GCC" = yes; then
  6442. # Check if gcc -print-prog-name=ld gives a path.
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  6444. $as_echo_n "checking for ld used by GCC... " >&6; }
  6445. case $host in
  6446. *-*-mingw*)
  6447. # gcc leaves a trailing carriage return which upsets mingw
  6448. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6449. *)
  6450. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6451. esac
  6452. case $ac_prog in
  6453. # Accept absolute paths.
  6454. [\\/]* | [A-Za-z]:[\\/]*)
  6455. re_direlt='/[^/][^/]*/\.\./'
  6456. # Canonicalize the path of ld
  6457. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  6458. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  6459. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  6460. done
  6461. test -z "$LD" && LD="$ac_prog"
  6462. ;;
  6463. "")
  6464. # If it fails, then pretend we aren't using GCC.
  6465. ac_prog=ld
  6466. ;;
  6467. *)
  6468. # If it is relative, then search for the first ld in PATH.
  6469. with_gnu_ld=unknown
  6470. ;;
  6471. esac
  6472. elif test "$with_gnu_ld" = yes; then
  6473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  6474. $as_echo_n "checking for GNU ld... " >&6; }
  6475. else
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  6477. $as_echo_n "checking for non-GNU ld... " >&6; }
  6478. fi
  6479. if ${acl_cv_path_LD+:} false; then :
  6480. $as_echo_n "(cached) " >&6
  6481. else
  6482. if test -z "$LD"; then
  6483. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  6484. for ac_dir in $PATH; do
  6485. test -z "$ac_dir" && ac_dir=.
  6486. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6487. acl_cv_path_LD="$ac_dir/$ac_prog"
  6488. # Check to see if the program is GNU ld. I'd rather use --version,
  6489. # but apparently some GNU ld's only accept -v.
  6490. # Break only if it was the GNU/non-GNU ld that we prefer.
  6491. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  6492. test "$with_gnu_ld" != no && break
  6493. else
  6494. test "$with_gnu_ld" != yes && break
  6495. fi
  6496. fi
  6497. done
  6498. IFS="$ac_save_ifs"
  6499. else
  6500. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  6501. fi
  6502. fi
  6503. LD="$acl_cv_path_LD"
  6504. if test -n "$LD"; then
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6506. $as_echo "$LD" >&6; }
  6507. else
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6509. $as_echo "no" >&6; }
  6510. fi
  6511. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6513. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6514. if ${acl_cv_prog_gnu_ld+:} false; then :
  6515. $as_echo_n "(cached) " >&6
  6516. else
  6517. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  6518. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  6519. acl_cv_prog_gnu_ld=yes
  6520. else
  6521. acl_cv_prog_gnu_ld=no
  6522. fi
  6523. fi
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  6525. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  6526. with_gnu_ld=$acl_cv_prog_gnu_ld
  6527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  6528. $as_echo_n "checking for shared library run path origin... " >&6; }
  6529. if ${acl_cv_rpath+:} false; then :
  6530. $as_echo_n "(cached) " >&6
  6531. else
  6532. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  6533. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  6534. . ./conftest.sh
  6535. rm -f ./conftest.sh
  6536. acl_cv_rpath=done
  6537. fi
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  6539. $as_echo "$acl_cv_rpath" >&6; }
  6540. wl="$acl_cv_wl"
  6541. libext="$acl_cv_libext"
  6542. shlibext="$acl_cv_shlibext"
  6543. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  6544. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  6545. hardcode_direct="$acl_cv_hardcode_direct"
  6546. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  6547. # Check whether --enable-rpath was given.
  6548. if test "${enable_rpath+set}" = set; then :
  6549. enableval=$enable_rpath; :
  6550. else
  6551. enable_rpath=yes
  6552. fi
  6553. # Set the 'development' global.
  6554. . $srcdir/../bfd/development.sh
  6555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6556. $as_echo_n "checking for ANSI C header files... " >&6; }
  6557. if ${ac_cv_header_stdc+:} false; then :
  6558. $as_echo_n "(cached) " >&6
  6559. else
  6560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6561. /* end confdefs.h. */
  6562. #include <stdlib.h>
  6563. #include <stdarg.h>
  6564. #include <string.h>
  6565. #include <float.h>
  6566. int
  6567. main ()
  6568. {
  6569. ;
  6570. return 0;
  6571. }
  6572. _ACEOF
  6573. if ac_fn_c_try_compile "$LINENO"; then :
  6574. ac_cv_header_stdc=yes
  6575. else
  6576. ac_cv_header_stdc=no
  6577. fi
  6578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6579. if test $ac_cv_header_stdc = yes; then
  6580. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6582. /* end confdefs.h. */
  6583. #include <string.h>
  6584. _ACEOF
  6585. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6586. $EGREP "memchr" >/dev/null 2>&1; then :
  6587. else
  6588. ac_cv_header_stdc=no
  6589. fi
  6590. rm -f conftest*
  6591. fi
  6592. if test $ac_cv_header_stdc = yes; then
  6593. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6595. /* end confdefs.h. */
  6596. #include <stdlib.h>
  6597. _ACEOF
  6598. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6599. $EGREP "free" >/dev/null 2>&1; then :
  6600. else
  6601. ac_cv_header_stdc=no
  6602. fi
  6603. rm -f conftest*
  6604. fi
  6605. if test $ac_cv_header_stdc = yes; then
  6606. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6607. if test "$cross_compiling" = yes; then :
  6608. :
  6609. else
  6610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6611. /* end confdefs.h. */
  6612. #include <ctype.h>
  6613. #include <stdlib.h>
  6614. #if ((' ' & 0x0FF) == 0x020)
  6615. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6616. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6617. #else
  6618. # define ISLOWER(c) \
  6619. (('a' <= (c) && (c) <= 'i') \
  6620. || ('j' <= (c) && (c) <= 'r') \
  6621. || ('s' <= (c) && (c) <= 'z'))
  6622. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6623. #endif
  6624. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6625. int
  6626. main ()
  6627. {
  6628. int i;
  6629. for (i = 0; i < 256; i++)
  6630. if (XOR (islower (i), ISLOWER (i))
  6631. || toupper (i) != TOUPPER (i))
  6632. return 2;
  6633. return 0;
  6634. }
  6635. _ACEOF
  6636. if ac_fn_c_try_run "$LINENO"; then :
  6637. else
  6638. ac_cv_header_stdc=no
  6639. fi
  6640. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6641. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6642. fi
  6643. fi
  6644. fi
  6645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6646. $as_echo "$ac_cv_header_stdc" >&6; }
  6647. if test $ac_cv_header_stdc = yes; then
  6648. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6649. fi
  6650. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6651. # for constant arguments. Useless!
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6653. $as_echo_n "checking for working alloca.h... " >&6; }
  6654. if ${ac_cv_working_alloca_h+:} false; then :
  6655. $as_echo_n "(cached) " >&6
  6656. else
  6657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6658. /* end confdefs.h. */
  6659. #include <alloca.h>
  6660. int
  6661. main ()
  6662. {
  6663. char *p = (char *) alloca (2 * sizeof (int));
  6664. if (p) return 0;
  6665. ;
  6666. return 0;
  6667. }
  6668. _ACEOF
  6669. if ac_fn_c_try_link "$LINENO"; then :
  6670. ac_cv_working_alloca_h=yes
  6671. else
  6672. ac_cv_working_alloca_h=no
  6673. fi
  6674. rm -f core conftest.err conftest.$ac_objext \
  6675. conftest$ac_exeext conftest.$ac_ext
  6676. fi
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6678. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6679. if test $ac_cv_working_alloca_h = yes; then
  6680. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6681. fi
  6682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6683. $as_echo_n "checking for alloca... " >&6; }
  6684. if ${ac_cv_func_alloca_works+:} false; then :
  6685. $as_echo_n "(cached) " >&6
  6686. else
  6687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6688. /* end confdefs.h. */
  6689. #ifdef __GNUC__
  6690. # define alloca __builtin_alloca
  6691. #else
  6692. # ifdef _MSC_VER
  6693. # include <malloc.h>
  6694. # define alloca _alloca
  6695. # else
  6696. # ifdef HAVE_ALLOCA_H
  6697. # include <alloca.h>
  6698. # else
  6699. # ifdef _AIX
  6700. #pragma alloca
  6701. # else
  6702. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6703. void *alloca (size_t);
  6704. # endif
  6705. # endif
  6706. # endif
  6707. # endif
  6708. #endif
  6709. int
  6710. main ()
  6711. {
  6712. char *p = (char *) alloca (1);
  6713. if (p) return 0;
  6714. ;
  6715. return 0;
  6716. }
  6717. _ACEOF
  6718. if ac_fn_c_try_link "$LINENO"; then :
  6719. ac_cv_func_alloca_works=yes
  6720. else
  6721. ac_cv_func_alloca_works=no
  6722. fi
  6723. rm -f core conftest.err conftest.$ac_objext \
  6724. conftest$ac_exeext conftest.$ac_ext
  6725. fi
  6726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6727. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6728. if test $ac_cv_func_alloca_works = yes; then
  6729. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6730. else
  6731. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6732. # that cause trouble. Some versions do not even contain alloca or
  6733. # contain a buggy version. If you still want to use their alloca,
  6734. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6735. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6736. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6738. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6739. if ${ac_cv_os_cray+:} false; then :
  6740. $as_echo_n "(cached) " >&6
  6741. else
  6742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6743. /* end confdefs.h. */
  6744. #if defined CRAY && ! defined CRAY2
  6745. webecray
  6746. #else
  6747. wenotbecray
  6748. #endif
  6749. _ACEOF
  6750. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6751. $EGREP "webecray" >/dev/null 2>&1; then :
  6752. ac_cv_os_cray=yes
  6753. else
  6754. ac_cv_os_cray=no
  6755. fi
  6756. rm -f conftest*
  6757. fi
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6759. $as_echo "$ac_cv_os_cray" >&6; }
  6760. if test $ac_cv_os_cray = yes; then
  6761. for ac_func in _getb67 GETB67 getb67; do
  6762. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6763. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6764. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6765. cat >>confdefs.h <<_ACEOF
  6766. #define CRAY_STACKSEG_END $ac_func
  6767. _ACEOF
  6768. break
  6769. fi
  6770. done
  6771. fi
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6773. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6774. if ${ac_cv_c_stack_direction+:} false; then :
  6775. $as_echo_n "(cached) " >&6
  6776. else
  6777. if test "$cross_compiling" = yes; then :
  6778. ac_cv_c_stack_direction=0
  6779. else
  6780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6781. /* end confdefs.h. */
  6782. $ac_includes_default
  6783. int
  6784. find_stack_direction (int *addr, int depth)
  6785. {
  6786. int dir, dummy = 0;
  6787. if (! addr)
  6788. addr = &dummy;
  6789. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  6790. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  6791. return dir + dummy;
  6792. }
  6793. int
  6794. main (int argc, char **argv)
  6795. {
  6796. return find_stack_direction (0, argc + !argv + 20) < 0;
  6797. }
  6798. _ACEOF
  6799. if ac_fn_c_try_run "$LINENO"; then :
  6800. ac_cv_c_stack_direction=1
  6801. else
  6802. ac_cv_c_stack_direction=-1
  6803. fi
  6804. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6805. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6806. fi
  6807. fi
  6808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6809. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6810. cat >>confdefs.h <<_ACEOF
  6811. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6812. _ACEOF
  6813. fi
  6814. WIN32APILIBS=
  6815. case ${host} in
  6816. *mingw32*)
  6817. $as_echo "#define USE_WIN32API 1" >>confdefs.h
  6818. WIN32APILIBS="-lws2_32"
  6819. ;;
  6820. esac
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  6822. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  6823. if ${am_cv_langinfo_codeset+:} false; then :
  6824. $as_echo_n "(cached) " >&6
  6825. else
  6826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6827. /* end confdefs.h. */
  6828. #include <langinfo.h>
  6829. int
  6830. main ()
  6831. {
  6832. char* cs = nl_langinfo(CODESET);
  6833. ;
  6834. return 0;
  6835. }
  6836. _ACEOF
  6837. if ac_fn_c_try_link "$LINENO"; then :
  6838. am_cv_langinfo_codeset=yes
  6839. else
  6840. am_cv_langinfo_codeset=no
  6841. fi
  6842. rm -f core conftest.err conftest.$ac_objext \
  6843. conftest$ac_exeext conftest.$ac_ext
  6844. fi
  6845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  6846. $as_echo "$am_cv_langinfo_codeset" >&6; }
  6847. if test $am_cv_langinfo_codeset = yes; then
  6848. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  6849. fi
  6850. for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h dlfcn.h linux/elf.h proc_service.h poll.h sys/poll.h sys/select.h
  6851. do :
  6852. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6853. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6854. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6855. cat >>confdefs.h <<_ACEOF
  6856. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6857. _ACEOF
  6858. fi
  6859. done
  6860. for ac_func in getpagesize
  6861. do :
  6862. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  6863. if test "x$ac_cv_func_getpagesize" = xyes; then :
  6864. cat >>confdefs.h <<_ACEOF
  6865. #define HAVE_GETPAGESIZE 1
  6866. _ACEOF
  6867. fi
  6868. done
  6869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  6870. $as_echo_n "checking for working mmap... " >&6; }
  6871. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  6872. $as_echo_n "(cached) " >&6
  6873. else
  6874. if test "$cross_compiling" = yes; then :
  6875. ac_cv_func_mmap_fixed_mapped=no
  6876. else
  6877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6878. /* end confdefs.h. */
  6879. $ac_includes_default
  6880. /* malloc might have been renamed as rpl_malloc. */
  6881. #undef malloc
  6882. /* Thanks to Mike Haertel and Jim Avera for this test.
  6883. Here is a matrix of mmap possibilities:
  6884. mmap private not fixed
  6885. mmap private fixed at somewhere currently unmapped
  6886. mmap private fixed at somewhere already mapped
  6887. mmap shared not fixed
  6888. mmap shared fixed at somewhere currently unmapped
  6889. mmap shared fixed at somewhere already mapped
  6890. For private mappings, we should verify that changes cannot be read()
  6891. back from the file, nor mmap's back from the file at a different
  6892. address. (There have been systems where private was not correctly
  6893. implemented like the infamous i386 svr4.0, and systems where the
  6894. VM page cache was not coherent with the file system buffer cache
  6895. like early versions of FreeBSD and possibly contemporary NetBSD.)
  6896. For shared mappings, we should conversely verify that changes get
  6897. propagated back to all the places they're supposed to be.
  6898. Grep wants private fixed already mapped.
  6899. The main things grep needs to know about mmap are:
  6900. * does it exist and is it safe to write into the mmap'd area
  6901. * how to use it (BSD variants) */
  6902. #include <fcntl.h>
  6903. #include <sys/mman.h>
  6904. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  6905. char *malloc ();
  6906. #endif
  6907. /* This mess was copied from the GNU getpagesize.h. */
  6908. #ifndef HAVE_GETPAGESIZE
  6909. # ifdef _SC_PAGESIZE
  6910. # define getpagesize() sysconf(_SC_PAGESIZE)
  6911. # else /* no _SC_PAGESIZE */
  6912. # ifdef HAVE_SYS_PARAM_H
  6913. # include <sys/param.h>
  6914. # ifdef EXEC_PAGESIZE
  6915. # define getpagesize() EXEC_PAGESIZE
  6916. # else /* no EXEC_PAGESIZE */
  6917. # ifdef NBPG
  6918. # define getpagesize() NBPG * CLSIZE
  6919. # ifndef CLSIZE
  6920. # define CLSIZE 1
  6921. # endif /* no CLSIZE */
  6922. # else /* no NBPG */
  6923. # ifdef NBPC
  6924. # define getpagesize() NBPC
  6925. # else /* no NBPC */
  6926. # ifdef PAGESIZE
  6927. # define getpagesize() PAGESIZE
  6928. # endif /* PAGESIZE */
  6929. # endif /* no NBPC */
  6930. # endif /* no NBPG */
  6931. # endif /* no EXEC_PAGESIZE */
  6932. # else /* no HAVE_SYS_PARAM_H */
  6933. # define getpagesize() 8192 /* punt totally */
  6934. # endif /* no HAVE_SYS_PARAM_H */
  6935. # endif /* no _SC_PAGESIZE */
  6936. #endif /* no HAVE_GETPAGESIZE */
  6937. int
  6938. main ()
  6939. {
  6940. char *data, *data2, *data3;
  6941. const char *cdata2;
  6942. int i, pagesize;
  6943. int fd, fd2;
  6944. pagesize = getpagesize ();
  6945. /* First, make a file with some known garbage in it. */
  6946. data = (char *) malloc (pagesize);
  6947. if (!data)
  6948. return 1;
  6949. for (i = 0; i < pagesize; ++i)
  6950. *(data + i) = rand ();
  6951. umask (0);
  6952. fd = creat ("conftest.mmap", 0600);
  6953. if (fd < 0)
  6954. return 2;
  6955. if (write (fd, data, pagesize) != pagesize)
  6956. return 3;
  6957. close (fd);
  6958. /* Next, check that the tail of a page is zero-filled. File must have
  6959. non-zero length, otherwise we risk SIGBUS for entire page. */
  6960. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  6961. if (fd2 < 0)
  6962. return 4;
  6963. cdata2 = "";
  6964. if (write (fd2, cdata2, 1) != 1)
  6965. return 5;
  6966. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  6967. if (data2 == MAP_FAILED)
  6968. return 6;
  6969. for (i = 0; i < pagesize; ++i)
  6970. if (*(data2 + i))
  6971. return 7;
  6972. close (fd2);
  6973. if (munmap (data2, pagesize))
  6974. return 8;
  6975. /* Next, try to mmap the file at a fixed address which already has
  6976. something else allocated at it. If we can, also make sure that
  6977. we see the same garbage. */
  6978. fd = open ("conftest.mmap", O_RDWR);
  6979. if (fd < 0)
  6980. return 9;
  6981. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  6982. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  6983. return 10;
  6984. for (i = 0; i < pagesize; ++i)
  6985. if (*(data + i) != *(data2 + i))
  6986. return 11;
  6987. /* Finally, make sure that changes to the mapped area do not
  6988. percolate back to the file as seen by read(). (This is a bug on
  6989. some variants of i386 svr4.0.) */
  6990. for (i = 0; i < pagesize; ++i)
  6991. *(data2 + i) = *(data2 + i) + 1;
  6992. data3 = (char *) malloc (pagesize);
  6993. if (!data3)
  6994. return 12;
  6995. if (read (fd, data3, pagesize) != pagesize)
  6996. return 13;
  6997. for (i = 0; i < pagesize; ++i)
  6998. if (*(data + i) != *(data3 + i))
  6999. return 14;
  7000. close (fd);
  7001. return 0;
  7002. }
  7003. _ACEOF
  7004. if ac_fn_c_try_run "$LINENO"; then :
  7005. ac_cv_func_mmap_fixed_mapped=yes
  7006. else
  7007. ac_cv_func_mmap_fixed_mapped=no
  7008. fi
  7009. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7010. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7011. fi
  7012. fi
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7014. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  7015. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7016. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  7017. fi
  7018. rm -f conftest.mmap conftest.txt
  7019. for ac_header in vfork.h
  7020. do :
  7021. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  7022. if test "x$ac_cv_header_vfork_h" = xyes; then :
  7023. cat >>confdefs.h <<_ACEOF
  7024. #define HAVE_VFORK_H 1
  7025. _ACEOF
  7026. fi
  7027. done
  7028. for ac_func in fork vfork
  7029. do :
  7030. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7031. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7032. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7033. cat >>confdefs.h <<_ACEOF
  7034. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7035. _ACEOF
  7036. fi
  7037. done
  7038. if test "x$ac_cv_func_fork" = xyes; then
  7039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  7040. $as_echo_n "checking for working fork... " >&6; }
  7041. if ${ac_cv_func_fork_works+:} false; then :
  7042. $as_echo_n "(cached) " >&6
  7043. else
  7044. if test "$cross_compiling" = yes; then :
  7045. ac_cv_func_fork_works=cross
  7046. else
  7047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7048. /* end confdefs.h. */
  7049. $ac_includes_default
  7050. int
  7051. main ()
  7052. {
  7053. /* By Ruediger Kuhlmann. */
  7054. return fork () < 0;
  7055. ;
  7056. return 0;
  7057. }
  7058. _ACEOF
  7059. if ac_fn_c_try_run "$LINENO"; then :
  7060. ac_cv_func_fork_works=yes
  7061. else
  7062. ac_cv_func_fork_works=no
  7063. fi
  7064. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7065. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7066. fi
  7067. fi
  7068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  7069. $as_echo "$ac_cv_func_fork_works" >&6; }
  7070. else
  7071. ac_cv_func_fork_works=$ac_cv_func_fork
  7072. fi
  7073. if test "x$ac_cv_func_fork_works" = xcross; then
  7074. case $host in
  7075. *-*-amigaos* | *-*-msdosdjgpp*)
  7076. # Override, as these systems have only a dummy fork() stub
  7077. ac_cv_func_fork_works=no
  7078. ;;
  7079. *)
  7080. ac_cv_func_fork_works=yes
  7081. ;;
  7082. esac
  7083. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7084. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7085. fi
  7086. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7087. if test "x$ac_cv_func_vfork" = xyes; then
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  7089. $as_echo_n "checking for working vfork... " >&6; }
  7090. if ${ac_cv_func_vfork_works+:} false; then :
  7091. $as_echo_n "(cached) " >&6
  7092. else
  7093. if test "$cross_compiling" = yes; then :
  7094. ac_cv_func_vfork_works=cross
  7095. else
  7096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7097. /* end confdefs.h. */
  7098. /* Thanks to Paul Eggert for this test. */
  7099. $ac_includes_default
  7100. #include <sys/wait.h>
  7101. #ifdef HAVE_VFORK_H
  7102. # include <vfork.h>
  7103. #endif
  7104. /* On some sparc systems, changes by the child to local and incoming
  7105. argument registers are propagated back to the parent. The compiler
  7106. is told about this with #include <vfork.h>, but some compilers
  7107. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  7108. static variable whose address is put into a register that is
  7109. clobbered by the vfork. */
  7110. static void
  7111. #ifdef __cplusplus
  7112. sparc_address_test (int arg)
  7113. # else
  7114. sparc_address_test (arg) int arg;
  7115. #endif
  7116. {
  7117. static pid_t child;
  7118. if (!child) {
  7119. child = vfork ();
  7120. if (child < 0) {
  7121. perror ("vfork");
  7122. _exit(2);
  7123. }
  7124. if (!child) {
  7125. arg = getpid();
  7126. write(-1, "", 0);
  7127. _exit (arg);
  7128. }
  7129. }
  7130. }
  7131. int
  7132. main ()
  7133. {
  7134. pid_t parent = getpid ();
  7135. pid_t child;
  7136. sparc_address_test (0);
  7137. child = vfork ();
  7138. if (child == 0) {
  7139. /* Here is another test for sparc vfork register problems. This
  7140. test uses lots of local variables, at least as many local
  7141. variables as main has allocated so far including compiler
  7142. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  7143. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  7144. reuse the register of parent for one of the local variables,
  7145. since it will think that parent can't possibly be used any more
  7146. in this routine. Assigning to the local variable will thus
  7147. munge parent in the parent process. */
  7148. pid_t
  7149. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  7150. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  7151. /* Convince the compiler that p..p7 are live; otherwise, it might
  7152. use the same hardware register for all 8 local variables. */
  7153. if (p != p1 || p != p2 || p != p3 || p != p4
  7154. || p != p5 || p != p6 || p != p7)
  7155. _exit(1);
  7156. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  7157. from child file descriptors. If the child closes a descriptor
  7158. before it execs or exits, this munges the parent's descriptor
  7159. as well. Test for this by closing stdout in the child. */
  7160. _exit(close(fileno(stdout)) != 0);
  7161. } else {
  7162. int status;
  7163. struct stat st;
  7164. while (wait(&status) != child)
  7165. ;
  7166. return (
  7167. /* Was there some problem with vforking? */
  7168. child < 0
  7169. /* Did the child fail? (This shouldn't happen.) */
  7170. || status
  7171. /* Did the vfork/compiler bug occur? */
  7172. || parent != getpid()
  7173. /* Did the file descriptor bug occur? */
  7174. || fstat(fileno(stdout), &st) != 0
  7175. );
  7176. }
  7177. }
  7178. _ACEOF
  7179. if ac_fn_c_try_run "$LINENO"; then :
  7180. ac_cv_func_vfork_works=yes
  7181. else
  7182. ac_cv_func_vfork_works=no
  7183. fi
  7184. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7185. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7186. fi
  7187. fi
  7188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  7189. $as_echo "$ac_cv_func_vfork_works" >&6; }
  7190. fi;
  7191. if test "x$ac_cv_func_fork_works" = xcross; then
  7192. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7193. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  7194. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  7195. fi
  7196. if test "x$ac_cv_func_vfork_works" = xyes; then
  7197. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  7198. else
  7199. $as_echo "#define vfork fork" >>confdefs.h
  7200. fi
  7201. if test "x$ac_cv_func_fork_works" = xyes; then
  7202. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  7203. fi
  7204. for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
  7205. ptrace64 sbrk setns sigaltstack sigprocmask \
  7206. setpgid setpgrp getrusage getauxval sigtimedwait
  7207. do :
  7208. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7209. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7210. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7211. cat >>confdefs.h <<_ACEOF
  7212. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7213. _ACEOF
  7214. fi
  7215. done
  7216. # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
  7217. # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
  7218. # only in linux/personality.h.
  7219. ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
  7220. "
  7221. if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
  7222. ac_have_decl=1
  7223. else
  7224. ac_have_decl=0
  7225. fi
  7226. cat >>confdefs.h <<_ACEOF
  7227. #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
  7228. _ACEOF
  7229. ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
  7230. if test "x$ac_cv_have_decl_strstr" = xyes; then :
  7231. ac_have_decl=1
  7232. else
  7233. ac_have_decl=0
  7234. fi
  7235. cat >>confdefs.h <<_ACEOF
  7236. #define HAVE_DECL_STRSTR $ac_have_decl
  7237. _ACEOF
  7238. # ----------------------- #
  7239. # Checks for structures. #
  7240. # ----------------------- #
  7241. ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
  7242. if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
  7243. cat >>confdefs.h <<_ACEOF
  7244. #define HAVE_STRUCT_STAT_ST_BLOCKS 1
  7245. _ACEOF
  7246. fi
  7247. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  7248. if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
  7249. cat >>confdefs.h <<_ACEOF
  7250. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  7251. _ACEOF
  7252. fi
  7253. # On FreeBSD we need libutil for the kinfo_get* functions. On
  7254. # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
  7255. # Figure out which one to use.
  7256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
  7257. $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
  7258. if ${ac_cv_search_kinfo_getfile+:} false; then :
  7259. $as_echo_n "(cached) " >&6
  7260. else
  7261. ac_func_search_save_LIBS=$LIBS
  7262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7263. /* end confdefs.h. */
  7264. /* Override any GCC internal prototype to avoid an error.
  7265. Use char because int might match the return type of a GCC
  7266. builtin and then its argument prototype would still apply. */
  7267. #ifdef __cplusplus
  7268. extern "C"
  7269. #endif
  7270. char kinfo_getfile ();
  7271. int
  7272. main ()
  7273. {
  7274. return kinfo_getfile ();
  7275. ;
  7276. return 0;
  7277. }
  7278. _ACEOF
  7279. for ac_lib in '' util util-freebsd; do
  7280. if test -z "$ac_lib"; then
  7281. ac_res="none required"
  7282. else
  7283. ac_res=-l$ac_lib
  7284. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7285. fi
  7286. if ac_fn_c_try_link "$LINENO"; then :
  7287. ac_cv_search_kinfo_getfile=$ac_res
  7288. fi
  7289. rm -f core conftest.err conftest.$ac_objext \
  7290. conftest$ac_exeext
  7291. if ${ac_cv_search_kinfo_getfile+:} false; then :
  7292. break
  7293. fi
  7294. done
  7295. if ${ac_cv_search_kinfo_getfile+:} false; then :
  7296. else
  7297. ac_cv_search_kinfo_getfile=no
  7298. fi
  7299. rm conftest.$ac_ext
  7300. LIBS=$ac_func_search_save_LIBS
  7301. fi
  7302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
  7303. $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
  7304. ac_res=$ac_cv_search_kinfo_getfile
  7305. if test "$ac_res" != no; then :
  7306. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7307. fi
  7308. # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
  7309. for ac_func in kinfo_getfile
  7310. do :
  7311. ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
  7312. if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
  7313. cat >>confdefs.h <<_ACEOF
  7314. #define HAVE_KINFO_GETFILE 1
  7315. _ACEOF
  7316. fi
  7317. done
  7318. # ----------------------- #
  7319. # Check for threading. #
  7320. # ----------------------- #
  7321. # Check whether --enable-threading was given.
  7322. if test "${enable_threading+set}" = set; then :
  7323. enableval=$enable_threading; case "$enableval" in
  7324. yes) want_threading=yes ;;
  7325. no) want_threading=no ;;
  7326. *) as_fn_error $? "bad value $enableval for threading" "$LINENO" 5 ;;
  7327. esac
  7328. else
  7329. want_threading=yes
  7330. fi
  7331. # Check for std::thread. This does not work on some platforms, like
  7332. # mingw and DJGPP.
  7333. ac_ext=cpp
  7334. ac_cpp='$CXXCPP $CPPFLAGS'
  7335. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7336. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7337. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7338. ac_ext=c
  7339. ac_cpp='$CPP $CPPFLAGS'
  7340. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7341. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7342. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7343. ax_pthread_ok=no
  7344. # We used to check for pthread.h first, but this fails if pthread.h
  7345. # requires special compiler flags (e.g. on Tru64 or Sequent).
  7346. # It gets checked for in the link test anyway.
  7347. # First of all, check if the user has set any of the PTHREAD_LIBS,
  7348. # etcetera environment variables, and if threads linking works using
  7349. # them:
  7350. if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
  7351. ax_pthread_save_CC="$CC"
  7352. ax_pthread_save_CFLAGS="$CFLAGS"
  7353. ax_pthread_save_LIBS="$LIBS"
  7354. if test "x$PTHREAD_CC" != "x"; then :
  7355. CC="$PTHREAD_CC"
  7356. fi
  7357. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7358. LIBS="$PTHREAD_LIBS $LIBS"
  7359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
  7360. $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
  7361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7362. /* end confdefs.h. */
  7363. /* Override any GCC internal prototype to avoid an error.
  7364. Use char because int might match the return type of a GCC
  7365. builtin and then its argument prototype would still apply. */
  7366. #ifdef __cplusplus
  7367. extern "C"
  7368. #endif
  7369. char pthread_join ();
  7370. int
  7371. main ()
  7372. {
  7373. return pthread_join ();
  7374. ;
  7375. return 0;
  7376. }
  7377. _ACEOF
  7378. if ac_fn_c_try_link "$LINENO"; then :
  7379. ax_pthread_ok=yes
  7380. fi
  7381. rm -f core conftest.err conftest.$ac_objext \
  7382. conftest$ac_exeext conftest.$ac_ext
  7383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  7384. $as_echo "$ax_pthread_ok" >&6; }
  7385. if test "x$ax_pthread_ok" = "xno"; then
  7386. PTHREAD_LIBS=""
  7387. PTHREAD_CFLAGS=""
  7388. fi
  7389. CC="$ax_pthread_save_CC"
  7390. CFLAGS="$ax_pthread_save_CFLAGS"
  7391. LIBS="$ax_pthread_save_LIBS"
  7392. fi
  7393. # We must check for the threads library under a number of different
  7394. # names; the ordering is very important because some systems
  7395. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  7396. # libraries is broken (non-POSIX).
  7397. # Create a list of thread flags to try. Items starting with a "-" are
  7398. # C compiler flags, and other items are library names, except for "none"
  7399. # which indicates that we try without any flags at all, and "pthread-config"
  7400. # which is a program returning the flags for the Pth emulation library.
  7401. ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  7402. # The ordering *is* (sometimes) important. Some notes on the
  7403. # individual items follow:
  7404. # pthreads: AIX (must check this before -lpthread)
  7405. # none: in case threads are in libc; should be tried before -Kthread and
  7406. # other compiler flags to prevent continual compiler warnings
  7407. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  7408. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
  7409. # (Note: HP C rejects this with "bad form for `-t' option")
  7410. # -pthreads: Solaris/gcc (Note: HP C also rejects)
  7411. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  7412. # doesn't hurt to check since this sometimes defines pthreads and
  7413. # -D_REENTRANT too), HP C (must be checked before -lpthread, which
  7414. # is present but should not be used directly; and before -mthreads,
  7415. # because the compiler interprets this as "-mt" + "-hreads")
  7416. # -mthreads: Mingw32/gcc, Lynx/gcc
  7417. # pthread: Linux, etcetera
  7418. # --thread-safe: KAI C++
  7419. # pthread-config: use pthread-config program (for GNU Pth library)
  7420. case $host_os in
  7421. freebsd*)
  7422. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  7423. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  7424. ax_pthread_flags="-kthread lthread $ax_pthread_flags"
  7425. ;;
  7426. hpux*)
  7427. # From the cc(1) man page: "[-mt] Sets various -D flags to enable
  7428. # multi-threading and also sets -lpthread."
  7429. ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
  7430. ;;
  7431. openedition*)
  7432. # IBM z/OS requires a feature-test macro to be defined in order to
  7433. # enable POSIX threads at all, so give the user a hint if this is
  7434. # not set. (We don't define these ourselves, as they can affect
  7435. # other portions of the system API in unpredictable ways.)
  7436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7437. /* end confdefs.h. */
  7438. # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
  7439. AX_PTHREAD_ZOS_MISSING
  7440. # endif
  7441. _ACEOF
  7442. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7443. $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
  7444. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
  7445. $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
  7446. fi
  7447. rm -f conftest*
  7448. ;;
  7449. solaris*)
  7450. # On Solaris (at least, for some versions), libc contains stubbed
  7451. # (non-functional) versions of the pthreads routines, so link-based
  7452. # tests will erroneously succeed. (N.B.: The stubs are missing
  7453. # pthread_cleanup_push, or rather a function called by this macro,
  7454. # so we could check for that, but who knows whether they'll stub
  7455. # that too in a future libc.) So we'll check first for the
  7456. # standard Solaris way of linking pthreads (-mt -lpthread).
  7457. ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
  7458. ;;
  7459. esac
  7460. # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
  7461. if test "x$GCC" = "xyes"; then :
  7462. ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
  7463. fi
  7464. # The presence of a feature test macro requesting re-entrant function
  7465. # definitions is, on some systems, a strong hint that pthreads support is
  7466. # correctly enabled
  7467. case $host_os in
  7468. darwin* | hpux* | linux* | osf* | solaris*)
  7469. ax_pthread_check_macro="_REENTRANT"
  7470. ;;
  7471. aix*)
  7472. ax_pthread_check_macro="_THREAD_SAFE"
  7473. ;;
  7474. *)
  7475. ax_pthread_check_macro="--"
  7476. ;;
  7477. esac
  7478. if test "x$ax_pthread_check_macro" = "x--"; then :
  7479. ax_pthread_check_cond=0
  7480. else
  7481. ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
  7482. fi
  7483. # Are we compiling with Clang?
  7484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
  7485. $as_echo_n "checking whether $CC is Clang... " >&6; }
  7486. if ${ax_cv_PTHREAD_CLANG+:} false; then :
  7487. $as_echo_n "(cached) " >&6
  7488. else
  7489. ax_cv_PTHREAD_CLANG=no
  7490. # Note that Autoconf sets GCC=yes for Clang as well as GCC
  7491. if test "x$GCC" = "xyes"; then
  7492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7493. /* end confdefs.h. */
  7494. /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
  7495. # if defined(__clang__) && defined(__llvm__)
  7496. AX_PTHREAD_CC_IS_CLANG
  7497. # endif
  7498. _ACEOF
  7499. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7500. $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
  7501. ax_cv_PTHREAD_CLANG=yes
  7502. fi
  7503. rm -f conftest*
  7504. fi
  7505. fi
  7506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
  7507. $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
  7508. ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
  7509. ax_pthread_clang_warning=no
  7510. # Clang needs special handling, because older versions handle the -pthread
  7511. # option in a rather... idiosyncratic way
  7512. if test "x$ax_pthread_clang" = "xyes"; then
  7513. # Clang takes -pthread; it has never supported any other flag
  7514. # (Note 1: This will need to be revisited if a system that Clang
  7515. # supports has POSIX threads in a separate library. This tends not
  7516. # to be the way of modern systems, but it's conceivable.)
  7517. # (Note 2: On some systems, notably Darwin, -pthread is not needed
  7518. # to get POSIX threads support; the API is always present and
  7519. # active. We could reasonably leave PTHREAD_CFLAGS empty. But
  7520. # -pthread does define _REENTRANT, and while the Darwin headers
  7521. # ignore this macro, third-party headers might not.)
  7522. PTHREAD_CFLAGS="-pthread"
  7523. PTHREAD_LIBS=
  7524. ax_pthread_ok=yes
  7525. # However, older versions of Clang make a point of warning the user
  7526. # that, in an invocation where only linking and no compilation is
  7527. # taking place, the -pthread option has no effect ("argument unused
  7528. # during compilation"). They expect -pthread to be passed in only
  7529. # when source code is being compiled.
  7530. #
  7531. # Problem is, this is at odds with the way Automake and most other
  7532. # C build frameworks function, which is that the same flags used in
  7533. # compilation (CFLAGS) are also used in linking. Many systems
  7534. # supported by AX_PTHREAD require exactly this for POSIX threads
  7535. # support, and in fact it is often not straightforward to specify a
  7536. # flag that is used only in the compilation phase and not in
  7537. # linking. Such a scenario is extremely rare in practice.
  7538. #
  7539. # Even though use of the -pthread flag in linking would only print
  7540. # a warning, this can be a nuisance for well-run software projects
  7541. # that build with -Werror. So if the active version of Clang has
  7542. # this misfeature, we search for an option to squash it.
  7543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
  7544. $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
  7545. if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
  7546. $as_echo_n "(cached) " >&6
  7547. else
  7548. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
  7549. # Create an alternate version of $ac_link that compiles and
  7550. # links in two steps (.c -> .o, .o -> exe) instead of one
  7551. # (.c -> exe), because the warning occurs only in the second
  7552. # step
  7553. ax_pthread_save_ac_link="$ac_link"
  7554. ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
  7555. ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
  7556. ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
  7557. ax_pthread_save_CFLAGS="$CFLAGS"
  7558. for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
  7559. if test "x$ax_pthread_try" = "xunknown"; then :
  7560. break
  7561. fi
  7562. CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
  7563. ac_link="$ax_pthread_save_ac_link"
  7564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7565. /* end confdefs.h. */
  7566. int main(void){return 0;}
  7567. _ACEOF
  7568. if ac_fn_c_try_link "$LINENO"; then :
  7569. ac_link="$ax_pthread_2step_ac_link"
  7570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7571. /* end confdefs.h. */
  7572. int main(void){return 0;}
  7573. _ACEOF
  7574. if ac_fn_c_try_link "$LINENO"; then :
  7575. break
  7576. fi
  7577. rm -f core conftest.err conftest.$ac_objext \
  7578. conftest$ac_exeext conftest.$ac_ext
  7579. fi
  7580. rm -f core conftest.err conftest.$ac_objext \
  7581. conftest$ac_exeext conftest.$ac_ext
  7582. done
  7583. ac_link="$ax_pthread_save_ac_link"
  7584. CFLAGS="$ax_pthread_save_CFLAGS"
  7585. if test "x$ax_pthread_try" = "x"; then :
  7586. ax_pthread_try=no
  7587. fi
  7588. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
  7589. fi
  7590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
  7591. $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
  7592. case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
  7593. no | unknown) ;;
  7594. *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
  7595. esac
  7596. fi # $ax_pthread_clang = yes
  7597. if test "x$ax_pthread_ok" = "xno"; then
  7598. for ax_pthread_try_flag in $ax_pthread_flags; do
  7599. case $ax_pthread_try_flag in
  7600. none)
  7601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  7602. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  7603. ;;
  7604. -mt,pthread)
  7605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
  7606. $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
  7607. PTHREAD_CFLAGS="-mt"
  7608. PTHREAD_LIBS="-lpthread"
  7609. ;;
  7610. -*)
  7611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
  7612. $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
  7613. PTHREAD_CFLAGS="$ax_pthread_try_flag"
  7614. ;;
  7615. pthread-config)
  7616. # Extract the first word of "pthread-config", so it can be a program name with args.
  7617. set dummy pthread-config; ac_word=$2
  7618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7619. $as_echo_n "checking for $ac_word... " >&6; }
  7620. if ${ac_cv_prog_ax_pthread_config+:} false; then :
  7621. $as_echo_n "(cached) " >&6
  7622. else
  7623. if test -n "$ax_pthread_config"; then
  7624. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  7625. else
  7626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7627. for as_dir in $PATH
  7628. do
  7629. IFS=$as_save_IFS
  7630. test -z "$as_dir" && as_dir=.
  7631. for ac_exec_ext in '' $ac_executable_extensions; do
  7632. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7633. ac_cv_prog_ax_pthread_config="yes"
  7634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7635. break 2
  7636. fi
  7637. done
  7638. done
  7639. IFS=$as_save_IFS
  7640. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  7641. fi
  7642. fi
  7643. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  7644. if test -n "$ax_pthread_config"; then
  7645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  7646. $as_echo "$ax_pthread_config" >&6; }
  7647. else
  7648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7649. $as_echo "no" >&6; }
  7650. fi
  7651. if test "x$ax_pthread_config" = "xno"; then :
  7652. continue
  7653. fi
  7654. PTHREAD_CFLAGS="`pthread-config --cflags`"
  7655. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  7656. ;;
  7657. *)
  7658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
  7659. $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
  7660. PTHREAD_LIBS="-l$ax_pthread_try_flag"
  7661. ;;
  7662. esac
  7663. ax_pthread_save_CFLAGS="$CFLAGS"
  7664. ax_pthread_save_LIBS="$LIBS"
  7665. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7666. LIBS="$PTHREAD_LIBS $LIBS"
  7667. # Check for various functions. We must include pthread.h,
  7668. # since some functions may be macros. (On the Sequent, we
  7669. # need a special flag -Kthread to make this header compile.)
  7670. # We check for pthread_join because it is in -lpthread on IRIX
  7671. # while pthread_create is in libc. We check for pthread_attr_init
  7672. # due to DEC craziness with -lpthreads. We check for
  7673. # pthread_cleanup_push because it is one of the few pthread
  7674. # functions on Solaris that doesn't have a non-functional libc stub.
  7675. # We try pthread_create on general principles.
  7676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7677. /* end confdefs.h. */
  7678. #include <pthread.h>
  7679. # if $ax_pthread_check_cond
  7680. # error "$ax_pthread_check_macro must be defined"
  7681. # endif
  7682. static void routine(void *a) { a = 0; }
  7683. static void *start_routine(void *a) { return a; }
  7684. int
  7685. main ()
  7686. {
  7687. pthread_t th; pthread_attr_t attr;
  7688. pthread_create(&th, 0, start_routine, 0);
  7689. pthread_join(th, 0);
  7690. pthread_attr_init(&attr);
  7691. pthread_cleanup_push(routine, 0);
  7692. pthread_cleanup_pop(0) /* ; */
  7693. ;
  7694. return 0;
  7695. }
  7696. _ACEOF
  7697. if ac_fn_c_try_link "$LINENO"; then :
  7698. ax_pthread_ok=yes
  7699. fi
  7700. rm -f core conftest.err conftest.$ac_objext \
  7701. conftest$ac_exeext conftest.$ac_ext
  7702. CFLAGS="$ax_pthread_save_CFLAGS"
  7703. LIBS="$ax_pthread_save_LIBS"
  7704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  7705. $as_echo "$ax_pthread_ok" >&6; }
  7706. if test "x$ax_pthread_ok" = "xyes"; then :
  7707. break
  7708. fi
  7709. PTHREAD_LIBS=""
  7710. PTHREAD_CFLAGS=""
  7711. done
  7712. fi
  7713. # Various other checks:
  7714. if test "x$ax_pthread_ok" = "xyes"; then
  7715. ax_pthread_save_CFLAGS="$CFLAGS"
  7716. ax_pthread_save_LIBS="$LIBS"
  7717. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7718. LIBS="$PTHREAD_LIBS $LIBS"
  7719. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  7720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  7721. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  7722. if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
  7723. $as_echo_n "(cached) " >&6
  7724. else
  7725. ax_cv_PTHREAD_JOINABLE_ATTR=unknown
  7726. for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  7727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7728. /* end confdefs.h. */
  7729. #include <pthread.h>
  7730. int
  7731. main ()
  7732. {
  7733. int attr = $ax_pthread_attr; return attr /* ; */
  7734. ;
  7735. return 0;
  7736. }
  7737. _ACEOF
  7738. if ac_fn_c_try_link "$LINENO"; then :
  7739. ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
  7740. fi
  7741. rm -f core conftest.err conftest.$ac_objext \
  7742. conftest$ac_exeext conftest.$ac_ext
  7743. done
  7744. fi
  7745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
  7746. $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
  7747. if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
  7748. test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
  7749. test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
  7750. cat >>confdefs.h <<_ACEOF
  7751. #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
  7752. _ACEOF
  7753. ax_pthread_joinable_attr_defined=yes
  7754. fi
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
  7756. $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
  7757. if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
  7758. $as_echo_n "(cached) " >&6
  7759. else
  7760. ax_cv_PTHREAD_SPECIAL_FLAGS=no
  7761. case $host_os in
  7762. solaris*)
  7763. ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
  7764. ;;
  7765. esac
  7766. fi
  7767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
  7768. $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
  7769. if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
  7770. test "x$ax_pthread_special_flags_added" != "xyes"; then :
  7771. PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
  7772. ax_pthread_special_flags_added=yes
  7773. fi
  7774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  7775. $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  7776. if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
  7777. $as_echo_n "(cached) " >&6
  7778. else
  7779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7780. /* end confdefs.h. */
  7781. #include <pthread.h>
  7782. int
  7783. main ()
  7784. {
  7785. int i = PTHREAD_PRIO_INHERIT;
  7786. ;
  7787. return 0;
  7788. }
  7789. _ACEOF
  7790. if ac_fn_c_try_link "$LINENO"; then :
  7791. ax_cv_PTHREAD_PRIO_INHERIT=yes
  7792. else
  7793. ax_cv_PTHREAD_PRIO_INHERIT=no
  7794. fi
  7795. rm -f core conftest.err conftest.$ac_objext \
  7796. conftest$ac_exeext conftest.$ac_ext
  7797. fi
  7798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  7799. $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  7800. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
  7801. test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
  7802. $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  7803. ax_pthread_prio_inherit_defined=yes
  7804. fi
  7805. CFLAGS="$ax_pthread_save_CFLAGS"
  7806. LIBS="$ax_pthread_save_LIBS"
  7807. # More AIX lossage: compile with *_r variant
  7808. if test "x$GCC" != "xyes"; then
  7809. case $host_os in
  7810. aix*)
  7811. case "x/$CC" in #(
  7812. x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
  7813. #handle absolute path differently from PATH based program lookup
  7814. case "x$CC" in #(
  7815. x/*) :
  7816. if as_fn_executable_p ${CC}_r; then :
  7817. PTHREAD_CC="${CC}_r"
  7818. fi ;; #(
  7819. *) :
  7820. for ac_prog in ${CC}_r
  7821. do
  7822. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7823. set dummy $ac_prog; ac_word=$2
  7824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7825. $as_echo_n "checking for $ac_word... " >&6; }
  7826. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  7827. $as_echo_n "(cached) " >&6
  7828. else
  7829. if test -n "$PTHREAD_CC"; then
  7830. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  7831. else
  7832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7833. for as_dir in $PATH
  7834. do
  7835. IFS=$as_save_IFS
  7836. test -z "$as_dir" && as_dir=.
  7837. for ac_exec_ext in '' $ac_executable_extensions; do
  7838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7839. ac_cv_prog_PTHREAD_CC="$ac_prog"
  7840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7841. break 2
  7842. fi
  7843. done
  7844. done
  7845. IFS=$as_save_IFS
  7846. fi
  7847. fi
  7848. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  7849. if test -n "$PTHREAD_CC"; then
  7850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  7851. $as_echo "$PTHREAD_CC" >&6; }
  7852. else
  7853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7854. $as_echo "no" >&6; }
  7855. fi
  7856. test -n "$PTHREAD_CC" && break
  7857. done
  7858. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  7859. ;;
  7860. esac ;; #(
  7861. *) :
  7862. ;;
  7863. esac
  7864. ;;
  7865. esac
  7866. fi
  7867. fi
  7868. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  7869. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  7870. if test "x$ax_pthread_ok" = "xyes"; then
  7871. threads=yes
  7872. :
  7873. else
  7874. ax_pthread_ok=no
  7875. threads=no
  7876. fi
  7877. ac_ext=cpp
  7878. ac_cpp='$CXXCPP $CPPFLAGS'
  7879. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7880. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7881. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7882. if test "$threads" = "yes"; then
  7883. save_LIBS="$LIBS"
  7884. LIBS="$PTHREAD_LIBS $LIBS"
  7885. save_CXXFLAGS="$CXXFLAGS"
  7886. CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
  7887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
  7888. $as_echo_n "checking for std::thread... " >&6; }
  7889. if ${gdb_cv_cxx_std_thread+:} false; then :
  7890. $as_echo_n "(cached) " >&6
  7891. else
  7892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7893. /* end confdefs.h. */
  7894. #include <thread>
  7895. void callback() { }
  7896. int
  7897. main ()
  7898. {
  7899. std::thread t(callback);
  7900. ;
  7901. return 0;
  7902. }
  7903. _ACEOF
  7904. if ac_fn_cxx_try_compile "$LINENO"; then :
  7905. gdb_cv_cxx_std_thread=yes
  7906. else
  7907. gdb_cv_cxx_std_thread=no
  7908. fi
  7909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7910. fi
  7911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
  7912. $as_echo "$gdb_cv_cxx_std_thread" >&6; }
  7913. # This check must be here, while LIBS includes any necessary
  7914. # threading library.
  7915. for ac_func in pthread_sigmask pthread_setname_np
  7916. do :
  7917. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7918. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7919. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7920. cat >>confdefs.h <<_ACEOF
  7921. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7922. _ACEOF
  7923. fi
  7924. done
  7925. LIBS="$save_LIBS"
  7926. CXXFLAGS="$save_CXXFLAGS"
  7927. fi
  7928. if test "$want_threading" = "yes"; then
  7929. if test "$gdb_cv_cxx_std_thread" = "yes"; then
  7930. $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
  7931. fi
  7932. fi
  7933. ac_ext=c
  7934. ac_cpp='$CPP $CPPFLAGS'
  7935. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7936. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7937. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
  7939. $as_echo_n "checking for sigsetjmp... " >&6; }
  7940. if ${gdb_cv_func_sigsetjmp+:} false; then :
  7941. $as_echo_n "(cached) " >&6
  7942. else
  7943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7944. /* end confdefs.h. */
  7945. #include <setjmp.h>
  7946. int
  7947. main ()
  7948. {
  7949. sigjmp_buf env;
  7950. while (! sigsetjmp (env, 1))
  7951. siglongjmp (env, 1);
  7952. ;
  7953. return 0;
  7954. }
  7955. _ACEOF
  7956. if ac_fn_c_try_compile "$LINENO"; then :
  7957. gdb_cv_func_sigsetjmp=yes
  7958. else
  7959. gdb_cv_func_sigsetjmp=no
  7960. fi
  7961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7962. fi
  7963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
  7964. $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
  7965. if test "$gdb_cv_func_sigsetjmp" = "yes"; then
  7966. $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
  7967. fi
  7968. # Check whether --with-intel_pt was given.
  7969. if test "${with_intel_pt+set}" = set; then :
  7970. withval=$with_intel_pt;
  7971. else
  7972. with_intel_pt=auto
  7973. fi
  7974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
  7975. $as_echo_n "checking whether to use intel pt... " >&6; }
  7976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
  7977. $as_echo "$with_intel_pt" >&6; }
  7978. if test "${with_intel_pt}" = no; then
  7979. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
  7980. $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
  7981. HAVE_LIBIPT=no
  7982. else
  7983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7984. /* end confdefs.h. */
  7985. #include <linux/perf_event.h>
  7986. #ifndef PERF_ATTR_SIZE_VER5
  7987. # error
  7988. #endif
  7989. _ACEOF
  7990. if ac_fn_c_try_cpp "$LINENO"; then :
  7991. perf_event=yes
  7992. else
  7993. perf_event=no
  7994. fi
  7995. rm -f conftest.err conftest.i conftest.$ac_ext
  7996. if test "$perf_event" != yes; then
  7997. if test "$with_intel_pt" = yes; then
  7998. as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
  7999. else
  8000. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
  8001. $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
  8002. fi
  8003. fi
  8004. use_additional=yes
  8005. acl_save_prefix="$prefix"
  8006. prefix="$acl_final_prefix"
  8007. acl_save_exec_prefix="$exec_prefix"
  8008. exec_prefix="$acl_final_exec_prefix"
  8009. eval additional_includedir=\"$includedir\"
  8010. eval additional_libdir=\"$libdir\"
  8011. exec_prefix="$acl_save_exec_prefix"
  8012. prefix="$acl_save_prefix"
  8013. # Check whether --with-libipt-prefix was given.
  8014. if test "${with_libipt_prefix+set}" = set; then :
  8015. withval=$with_libipt_prefix;
  8016. if test "X$withval" = "Xno"; then
  8017. use_additional=no
  8018. else
  8019. if test "X$withval" = "X"; then
  8020. acl_save_prefix="$prefix"
  8021. prefix="$acl_final_prefix"
  8022. acl_save_exec_prefix="$exec_prefix"
  8023. exec_prefix="$acl_final_exec_prefix"
  8024. eval additional_includedir=\"$includedir\"
  8025. eval additional_libdir=\"$libdir\"
  8026. exec_prefix="$acl_save_exec_prefix"
  8027. prefix="$acl_save_prefix"
  8028. else
  8029. additional_includedir="$withval/include"
  8030. additional_libdir="$withval/lib"
  8031. fi
  8032. fi
  8033. fi
  8034. # Check whether --with-libipt-type was given.
  8035. if test "${with_libipt_type+set}" = set; then :
  8036. withval=$with_libipt_type; with_libipt_type=$withval
  8037. else
  8038. with_libipt_type=auto
  8039. fi
  8040. lib_type=`eval echo \$with_libipt_type`
  8041. LIBIPT=
  8042. LTLIBIPT=
  8043. INCIPT=
  8044. rpathdirs=
  8045. ltrpathdirs=
  8046. names_already_handled=
  8047. names_next_round='ipt '
  8048. while test -n "$names_next_round"; do
  8049. names_this_round="$names_next_round"
  8050. names_next_round=
  8051. for name in $names_this_round; do
  8052. already_handled=
  8053. for n in $names_already_handled; do
  8054. if test "$n" = "$name"; then
  8055. already_handled=yes
  8056. break
  8057. fi
  8058. done
  8059. if test -z "$already_handled"; then
  8060. names_already_handled="$names_already_handled $name"
  8061. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8062. eval value=\"\$HAVE_LIB$uppername\"
  8063. if test -n "$value"; then
  8064. if test "$value" = yes; then
  8065. eval value=\"\$LIB$uppername\"
  8066. test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
  8067. eval value=\"\$LTLIB$uppername\"
  8068. test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
  8069. else
  8070. :
  8071. fi
  8072. else
  8073. found_dir=
  8074. found_la=
  8075. found_so=
  8076. found_a=
  8077. if test $use_additional = yes; then
  8078. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  8079. found_dir="$additional_libdir"
  8080. found_so="$additional_libdir/lib$name.$shlibext"
  8081. if test -f "$additional_libdir/lib$name.la"; then
  8082. found_la="$additional_libdir/lib$name.la"
  8083. fi
  8084. elif test x$lib_type != xshared; then
  8085. if test -f "$additional_libdir/lib$name.$libext"; then
  8086. found_dir="$additional_libdir"
  8087. found_a="$additional_libdir/lib$name.$libext"
  8088. if test -f "$additional_libdir/lib$name.la"; then
  8089. found_la="$additional_libdir/lib$name.la"
  8090. fi
  8091. fi
  8092. fi
  8093. fi
  8094. if test "X$found_dir" = "X"; then
  8095. for x in $LDFLAGS $LTLIBIPT; do
  8096. acl_save_prefix="$prefix"
  8097. prefix="$acl_final_prefix"
  8098. acl_save_exec_prefix="$exec_prefix"
  8099. exec_prefix="$acl_final_exec_prefix"
  8100. eval x=\"$x\"
  8101. exec_prefix="$acl_save_exec_prefix"
  8102. prefix="$acl_save_prefix"
  8103. case "$x" in
  8104. -L*)
  8105. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8106. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  8107. found_dir="$dir"
  8108. found_so="$dir/lib$name.$shlibext"
  8109. if test -f "$dir/lib$name.la"; then
  8110. found_la="$dir/lib$name.la"
  8111. fi
  8112. elif test x$lib_type != xshared; then
  8113. if test -f "$dir/lib$name.$libext"; then
  8114. found_dir="$dir"
  8115. found_a="$dir/lib$name.$libext"
  8116. if test -f "$dir/lib$name.la"; then
  8117. found_la="$dir/lib$name.la"
  8118. fi
  8119. fi
  8120. fi
  8121. ;;
  8122. esac
  8123. if test "X$found_dir" != "X"; then
  8124. break
  8125. fi
  8126. done
  8127. fi
  8128. if test "X$found_dir" != "X"; then
  8129. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
  8130. if test "X$found_so" != "X"; then
  8131. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8132. LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
  8133. else
  8134. haveit=
  8135. for x in $ltrpathdirs; do
  8136. if test "X$x" = "X$found_dir"; then
  8137. haveit=yes
  8138. break
  8139. fi
  8140. done
  8141. if test -z "$haveit"; then
  8142. ltrpathdirs="$ltrpathdirs $found_dir"
  8143. fi
  8144. if test "$hardcode_direct" = yes; then
  8145. LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
  8146. else
  8147. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8148. LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
  8149. haveit=
  8150. for x in $rpathdirs; do
  8151. if test "X$x" = "X$found_dir"; then
  8152. haveit=yes
  8153. break
  8154. fi
  8155. done
  8156. if test -z "$haveit"; then
  8157. rpathdirs="$rpathdirs $found_dir"
  8158. fi
  8159. else
  8160. haveit=
  8161. for x in $LDFLAGS $LIBIPT; do
  8162. acl_save_prefix="$prefix"
  8163. prefix="$acl_final_prefix"
  8164. acl_save_exec_prefix="$exec_prefix"
  8165. exec_prefix="$acl_final_exec_prefix"
  8166. eval x=\"$x\"
  8167. exec_prefix="$acl_save_exec_prefix"
  8168. prefix="$acl_save_prefix"
  8169. if test "X$x" = "X-L$found_dir"; then
  8170. haveit=yes
  8171. break
  8172. fi
  8173. done
  8174. if test -z "$haveit"; then
  8175. LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
  8176. fi
  8177. if test "$hardcode_minus_L" != no; then
  8178. LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
  8179. else
  8180. LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
  8181. fi
  8182. fi
  8183. fi
  8184. fi
  8185. else
  8186. if test "X$found_a" != "X"; then
  8187. LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
  8188. else
  8189. LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
  8190. fi
  8191. fi
  8192. additional_includedir=
  8193. case "$found_dir" in
  8194. */lib | */lib/)
  8195. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8196. additional_includedir="$basedir/include"
  8197. ;;
  8198. esac
  8199. if test "X$additional_includedir" != "X"; then
  8200. if test "X$additional_includedir" != "X/usr/include"; then
  8201. haveit=
  8202. if test "X$additional_includedir" = "X/usr/local/include"; then
  8203. if test -n "$GCC"; then
  8204. case $host_os in
  8205. linux*) haveit=yes;;
  8206. esac
  8207. fi
  8208. fi
  8209. if test -z "$haveit"; then
  8210. for x in $CPPFLAGS $INCIPT; do
  8211. acl_save_prefix="$prefix"
  8212. prefix="$acl_final_prefix"
  8213. acl_save_exec_prefix="$exec_prefix"
  8214. exec_prefix="$acl_final_exec_prefix"
  8215. eval x=\"$x\"
  8216. exec_prefix="$acl_save_exec_prefix"
  8217. prefix="$acl_save_prefix"
  8218. if test "X$x" = "X-I$additional_includedir"; then
  8219. haveit=yes
  8220. break
  8221. fi
  8222. done
  8223. if test -z "$haveit"; then
  8224. if test -d "$additional_includedir"; then
  8225. INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
  8226. fi
  8227. fi
  8228. fi
  8229. fi
  8230. fi
  8231. if test -n "$found_la"; then
  8232. save_libdir="$libdir"
  8233. case "$found_la" in
  8234. */* | *\\*) . "$found_la" ;;
  8235. *) . "./$found_la" ;;
  8236. esac
  8237. libdir="$save_libdir"
  8238. for dep in $dependency_libs; do
  8239. case "$dep" in
  8240. -L*)
  8241. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8242. if test "X$additional_libdir" != "X/usr/lib"; then
  8243. haveit=
  8244. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8245. if test -n "$GCC"; then
  8246. case $host_os in
  8247. linux*) haveit=yes;;
  8248. esac
  8249. fi
  8250. fi
  8251. if test -z "$haveit"; then
  8252. haveit=
  8253. for x in $LDFLAGS $LIBIPT; do
  8254. acl_save_prefix="$prefix"
  8255. prefix="$acl_final_prefix"
  8256. acl_save_exec_prefix="$exec_prefix"
  8257. exec_prefix="$acl_final_exec_prefix"
  8258. eval x=\"$x\"
  8259. exec_prefix="$acl_save_exec_prefix"
  8260. prefix="$acl_save_prefix"
  8261. if test "X$x" = "X-L$additional_libdir"; then
  8262. haveit=yes
  8263. break
  8264. fi
  8265. done
  8266. if test -z "$haveit"; then
  8267. if test -d "$additional_libdir"; then
  8268. LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
  8269. fi
  8270. fi
  8271. haveit=
  8272. for x in $LDFLAGS $LTLIBIPT; do
  8273. acl_save_prefix="$prefix"
  8274. prefix="$acl_final_prefix"
  8275. acl_save_exec_prefix="$exec_prefix"
  8276. exec_prefix="$acl_final_exec_prefix"
  8277. eval x=\"$x\"
  8278. exec_prefix="$acl_save_exec_prefix"
  8279. prefix="$acl_save_prefix"
  8280. if test "X$x" = "X-L$additional_libdir"; then
  8281. haveit=yes
  8282. break
  8283. fi
  8284. done
  8285. if test -z "$haveit"; then
  8286. if test -d "$additional_libdir"; then
  8287. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
  8288. fi
  8289. fi
  8290. fi
  8291. fi
  8292. ;;
  8293. -R*)
  8294. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8295. if test "$enable_rpath" != no; then
  8296. haveit=
  8297. for x in $rpathdirs; do
  8298. if test "X$x" = "X$dir"; then
  8299. haveit=yes
  8300. break
  8301. fi
  8302. done
  8303. if test -z "$haveit"; then
  8304. rpathdirs="$rpathdirs $dir"
  8305. fi
  8306. haveit=
  8307. for x in $ltrpathdirs; do
  8308. if test "X$x" = "X$dir"; then
  8309. haveit=yes
  8310. break
  8311. fi
  8312. done
  8313. if test -z "$haveit"; then
  8314. ltrpathdirs="$ltrpathdirs $dir"
  8315. fi
  8316. fi
  8317. ;;
  8318. -l*)
  8319. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8320. ;;
  8321. *.la)
  8322. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8323. ;;
  8324. *)
  8325. LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
  8326. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
  8327. ;;
  8328. esac
  8329. done
  8330. fi
  8331. else
  8332. if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
  8333. LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
  8334. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
  8335. else
  8336. LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
  8337. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
  8338. fi
  8339. fi
  8340. fi
  8341. fi
  8342. done
  8343. done
  8344. if test "X$rpathdirs" != "X"; then
  8345. if test -n "$hardcode_libdir_separator"; then
  8346. alldirs=
  8347. for found_dir in $rpathdirs; do
  8348. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8349. done
  8350. acl_save_libdir="$libdir"
  8351. libdir="$alldirs"
  8352. eval flag=\"$hardcode_libdir_flag_spec\"
  8353. libdir="$acl_save_libdir"
  8354. LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
  8355. else
  8356. for found_dir in $rpathdirs; do
  8357. acl_save_libdir="$libdir"
  8358. libdir="$found_dir"
  8359. eval flag=\"$hardcode_libdir_flag_spec\"
  8360. libdir="$acl_save_libdir"
  8361. LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
  8362. done
  8363. fi
  8364. fi
  8365. if test "X$ltrpathdirs" != "X"; then
  8366. for found_dir in $ltrpathdirs; do
  8367. LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
  8368. done
  8369. fi
  8370. ac_save_CPPFLAGS="$CPPFLAGS"
  8371. for element in $INCIPT; do
  8372. haveit=
  8373. for x in $CPPFLAGS; do
  8374. acl_save_prefix="$prefix"
  8375. prefix="$acl_final_prefix"
  8376. acl_save_exec_prefix="$exec_prefix"
  8377. exec_prefix="$acl_final_exec_prefix"
  8378. eval x=\"$x\"
  8379. exec_prefix="$acl_save_exec_prefix"
  8380. prefix="$acl_save_prefix"
  8381. if test "X$x" = "X$element"; then
  8382. haveit=yes
  8383. break
  8384. fi
  8385. done
  8386. if test -z "$haveit"; then
  8387. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8388. fi
  8389. done
  8390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
  8391. $as_echo_n "checking for libipt... " >&6; }
  8392. if ${ac_cv_libipt+:} false; then :
  8393. $as_echo_n "(cached) " >&6
  8394. else
  8395. ac_save_LIBS="$LIBS"
  8396. LIBS="$LIBS $LIBIPT"
  8397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8398. /* end confdefs.h. */
  8399. #include "intel-pt.h"
  8400. int
  8401. main ()
  8402. {
  8403. pt_insn_alloc_decoder (0);
  8404. ;
  8405. return 0;
  8406. }
  8407. _ACEOF
  8408. if ac_fn_c_try_link "$LINENO"; then :
  8409. ac_cv_libipt=yes
  8410. else
  8411. ac_cv_libipt=no
  8412. fi
  8413. rm -f core conftest.err conftest.$ac_objext \
  8414. conftest$ac_exeext conftest.$ac_ext
  8415. LIBS="$ac_save_LIBS"
  8416. fi
  8417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
  8418. $as_echo "$ac_cv_libipt" >&6; }
  8419. if test "$ac_cv_libipt" = yes; then
  8420. HAVE_LIBIPT=yes
  8421. $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
  8422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
  8423. $as_echo_n "checking how to link with libipt... " >&6; }
  8424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
  8425. $as_echo "$LIBIPT" >&6; }
  8426. else
  8427. HAVE_LIBIPT=no
  8428. CPPFLAGS="$ac_save_CPPFLAGS"
  8429. LIBIPT=
  8430. LTLIBIPT=
  8431. fi
  8432. if test "$HAVE_LIBIPT" != yes; then
  8433. if test "$with_intel_pt" = yes; then
  8434. as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
  8435. else
  8436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
  8437. $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
  8438. fi
  8439. else
  8440. save_LIBS=$LIBS
  8441. LIBS="$LIBS $LIBIPT"
  8442. for ac_func in pt_insn_event
  8443. do :
  8444. ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
  8445. if test "x$ac_cv_func_pt_insn_event" = xyes; then :
  8446. cat >>confdefs.h <<_ACEOF
  8447. #define HAVE_PT_INSN_EVENT 1
  8448. _ACEOF
  8449. fi
  8450. done
  8451. ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
  8452. "
  8453. if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
  8454. cat >>confdefs.h <<_ACEOF
  8455. #define HAVE_STRUCT_PT_INSN_ENABLED 1
  8456. _ACEOF
  8457. fi
  8458. ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
  8459. "
  8460. if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
  8461. cat >>confdefs.h <<_ACEOF
  8462. #define HAVE_STRUCT_PT_INSN_RESYNCED 1
  8463. _ACEOF
  8464. fi
  8465. LIBS=$save_LIBS
  8466. fi
  8467. fi
  8468. # Check if the compiler and runtime support printing long longs.
  8469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
  8470. $as_echo_n "checking for long long support in printf... " >&6; }
  8471. if ${gdb_cv_printf_has_long_long+:} false; then :
  8472. $as_echo_n "(cached) " >&6
  8473. else
  8474. if test "$cross_compiling" = yes; then :
  8475. gdb_cv_printf_has_long_long=no
  8476. else
  8477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8478. /* end confdefs.h. */
  8479. $ac_includes_default
  8480. int
  8481. main ()
  8482. {
  8483. char buf[32];
  8484. long long l = 0;
  8485. l = (l << 16) + 0x0123;
  8486. l = (l << 16) + 0x4567;
  8487. l = (l << 16) + 0x89ab;
  8488. l = (l << 16) + 0xcdef;
  8489. sprintf (buf, "0x%016llx", l);
  8490. return (strcmp ("0x0123456789abcdef", buf));
  8491. ;
  8492. return 0;
  8493. }
  8494. _ACEOF
  8495. if ac_fn_c_try_run "$LINENO"; then :
  8496. gdb_cv_printf_has_long_long=yes
  8497. else
  8498. gdb_cv_printf_has_long_long=no
  8499. fi
  8500. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8501. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8502. fi
  8503. fi
  8504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
  8505. $as_echo "$gdb_cv_printf_has_long_long" >&6; }
  8506. if test "$gdb_cv_printf_has_long_long" = yes; then
  8507. $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
  8508. fi
  8509. $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
  8510. for ac_header in sys/procfs.h
  8511. do :
  8512. ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
  8513. if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
  8514. cat >>confdefs.h <<_ACEOF
  8515. #define HAVE_SYS_PROCFS_H 1
  8516. _ACEOF
  8517. fi
  8518. done
  8519. if test "$ac_cv_header_sys_procfs_h" = yes; then
  8520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
  8521. $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
  8522. if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
  8523. $as_echo_n "(cached) " >&6
  8524. else
  8525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8526. /* end confdefs.h. */
  8527. #define _SYSCALL32
  8528. #include <sys/procfs.h>
  8529. int
  8530. main ()
  8531. {
  8532. gregset_t avar
  8533. ;
  8534. return 0;
  8535. }
  8536. _ACEOF
  8537. if ac_fn_c_try_compile "$LINENO"; then :
  8538. bfd_cv_have_sys_procfs_type_gregset_t=yes
  8539. else
  8540. bfd_cv_have_sys_procfs_type_gregset_t=no
  8541. fi
  8542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8543. fi
  8544. if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
  8545. $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
  8546. fi
  8547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
  8548. $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
  8549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
  8550. $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
  8551. if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
  8552. $as_echo_n "(cached) " >&6
  8553. else
  8554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8555. /* end confdefs.h. */
  8556. #define _SYSCALL32
  8557. #include <sys/procfs.h>
  8558. int
  8559. main ()
  8560. {
  8561. fpregset_t avar
  8562. ;
  8563. return 0;
  8564. }
  8565. _ACEOF
  8566. if ac_fn_c_try_compile "$LINENO"; then :
  8567. bfd_cv_have_sys_procfs_type_fpregset_t=yes
  8568. else
  8569. bfd_cv_have_sys_procfs_type_fpregset_t=no
  8570. fi
  8571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8572. fi
  8573. if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
  8574. $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
  8575. fi
  8576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
  8577. $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
  8578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
  8579. $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
  8580. if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
  8581. $as_echo_n "(cached) " >&6
  8582. else
  8583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8584. /* end confdefs.h. */
  8585. #define _SYSCALL32
  8586. #include <sys/procfs.h>
  8587. int
  8588. main ()
  8589. {
  8590. prgregset_t avar
  8591. ;
  8592. return 0;
  8593. }
  8594. _ACEOF
  8595. if ac_fn_c_try_compile "$LINENO"; then :
  8596. bfd_cv_have_sys_procfs_type_prgregset_t=yes
  8597. else
  8598. bfd_cv_have_sys_procfs_type_prgregset_t=no
  8599. fi
  8600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8601. fi
  8602. if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
  8603. $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
  8604. fi
  8605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
  8606. $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
  8607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
  8608. $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
  8609. if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
  8610. $as_echo_n "(cached) " >&6
  8611. else
  8612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8613. /* end confdefs.h. */
  8614. #define _SYSCALL32
  8615. #include <sys/procfs.h>
  8616. int
  8617. main ()
  8618. {
  8619. prfpregset_t avar
  8620. ;
  8621. return 0;
  8622. }
  8623. _ACEOF
  8624. if ac_fn_c_try_compile "$LINENO"; then :
  8625. bfd_cv_have_sys_procfs_type_prfpregset_t=yes
  8626. else
  8627. bfd_cv_have_sys_procfs_type_prfpregset_t=no
  8628. fi
  8629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8630. fi
  8631. if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
  8632. $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
  8633. fi
  8634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
  8635. $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
  8636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
  8637. $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
  8638. if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
  8639. $as_echo_n "(cached) " >&6
  8640. else
  8641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8642. /* end confdefs.h. */
  8643. #define _SYSCALL32
  8644. #include <sys/procfs.h>
  8645. int
  8646. main ()
  8647. {
  8648. prgregset32_t avar
  8649. ;
  8650. return 0;
  8651. }
  8652. _ACEOF
  8653. if ac_fn_c_try_compile "$LINENO"; then :
  8654. bfd_cv_have_sys_procfs_type_prgregset32_t=yes
  8655. else
  8656. bfd_cv_have_sys_procfs_type_prgregset32_t=no
  8657. fi
  8658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8659. fi
  8660. if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
  8661. $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
  8662. fi
  8663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
  8664. $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
  8665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
  8666. $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
  8667. if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
  8668. $as_echo_n "(cached) " >&6
  8669. else
  8670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8671. /* end confdefs.h. */
  8672. #define _SYSCALL32
  8673. #include <sys/procfs.h>
  8674. int
  8675. main ()
  8676. {
  8677. lwpid_t avar
  8678. ;
  8679. return 0;
  8680. }
  8681. _ACEOF
  8682. if ac_fn_c_try_compile "$LINENO"; then :
  8683. bfd_cv_have_sys_procfs_type_lwpid_t=yes
  8684. else
  8685. bfd_cv_have_sys_procfs_type_lwpid_t=no
  8686. fi
  8687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8688. fi
  8689. if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
  8690. $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
  8691. fi
  8692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
  8693. $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
  8694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
  8695. $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
  8696. if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
  8697. $as_echo_n "(cached) " >&6
  8698. else
  8699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8700. /* end confdefs.h. */
  8701. #define _SYSCALL32
  8702. #include <sys/procfs.h>
  8703. int
  8704. main ()
  8705. {
  8706. psaddr_t avar
  8707. ;
  8708. return 0;
  8709. }
  8710. _ACEOF
  8711. if ac_fn_c_try_compile "$LINENO"; then :
  8712. bfd_cv_have_sys_procfs_type_psaddr_t=yes
  8713. else
  8714. bfd_cv_have_sys_procfs_type_psaddr_t=no
  8715. fi
  8716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8717. fi
  8718. if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
  8719. $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
  8720. fi
  8721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
  8722. $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
  8723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
  8724. $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
  8725. if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
  8726. $as_echo_n "(cached) " >&6
  8727. else
  8728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8729. /* end confdefs.h. */
  8730. #define _SYSCALL32
  8731. #include <sys/procfs.h>
  8732. int
  8733. main ()
  8734. {
  8735. elf_fpregset_t avar
  8736. ;
  8737. return 0;
  8738. }
  8739. _ACEOF
  8740. if ac_fn_c_try_compile "$LINENO"; then :
  8741. bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
  8742. else
  8743. bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
  8744. fi
  8745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8746. fi
  8747. if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
  8748. $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
  8749. fi
  8750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
  8751. $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
  8752. fi
  8753. # Check whether we will enable the inclusion of unit tests when
  8754. # compiling GDB.
  8755. #
  8756. # The default value of this option changes depending whether we're on
  8757. # development mode (in which case it's "true") or not (in which case
  8758. # it's "false"). The $development variable is set by the GDB_AC_COMMON
  8759. # macro, which must therefore be used before GDB_AC_SELFTEST.
  8760. if test "x$development" != xtrue && test "x$development" != xfalse; then :
  8761. as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
  8762. fi
  8763. # Check whether --enable-unit-tests was given.
  8764. if test "${enable_unit_tests+set}" = set; then :
  8765. enableval=$enable_unit_tests; case "${enableval}" in
  8766. yes) enable_unittests=true ;;
  8767. no) enable_unittests=false ;;
  8768. *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
  8769. esac
  8770. else
  8771. enable_unittests=$development
  8772. fi
  8773. if $enable_unittests; then
  8774. $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
  8775. fi
  8776. if $enable_unittests; then
  8777. SELFTEST_TRUE=
  8778. SELFTEST_FALSE='#'
  8779. else
  8780. SELFTEST_TRUE='#'
  8781. SELFTEST_FALSE=
  8782. fi
  8783. if test x$ac_cv_func_pipe = xyes -o x$ac_cv_func_pipe2 = xyes ; then
  8784. HAVE_PIPE_OR_PIPE2_TRUE=
  8785. HAVE_PIPE_OR_PIPE2_FALSE='#'
  8786. else
  8787. HAVE_PIPE_OR_PIPE2_TRUE='#'
  8788. HAVE_PIPE_OR_PIPE2_FALSE=
  8789. fi
  8790. # Check the return and argument types of ptrace.
  8791. for ac_header in sys/ptrace.h ptrace.h
  8792. do :
  8793. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8794. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8795. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8796. cat >>confdefs.h <<_ACEOF
  8797. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8798. _ACEOF
  8799. fi
  8800. done
  8801. gdb_ptrace_headers='
  8802. #include <sys/types.h>
  8803. #if HAVE_SYS_PTRACE_H
  8804. # include <sys/ptrace.h>
  8805. #endif
  8806. #if HAVE_UNISTD_H
  8807. # include <unistd.h>
  8808. #endif
  8809. '
  8810. # Check return type. Varargs (used on GNU/Linux) conflict with the
  8811. # empty argument list, so check for that explicitly.
  8812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
  8813. $as_echo_n "checking return type of ptrace... " >&6; }
  8814. if ${gdb_cv_func_ptrace_ret+:} false; then :
  8815. $as_echo_n "(cached) " >&6
  8816. else
  8817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8818. /* end confdefs.h. */
  8819.  $gdb_ptrace_headers
  8820. int
  8821. main ()
  8822. {
  8823. extern long ptrace (enum __ptrace_request, ...);
  8824. ;
  8825. return 0;
  8826. }
  8827. _ACEOF
  8828. if ac_fn_c_try_compile "$LINENO"; then :
  8829. gdb_cv_func_ptrace_ret='long'
  8830. else
  8831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8832. /* end confdefs.h. */
  8833. $gdb_ptrace_headers
  8834. int
  8835. main ()
  8836. {
  8837. extern int ptrace ();
  8838. ;
  8839. return 0;
  8840. }
  8841. _ACEOF
  8842. if ac_fn_c_try_compile "$LINENO"; then :
  8843. gdb_cv_func_ptrace_ret='int'
  8844. else
  8845. gdb_cv_func_ptrace_ret='long'
  8846. fi
  8847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8848. fi
  8849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8850. fi
  8851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
  8852. $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
  8853. cat >>confdefs.h <<_ACEOF
  8854. #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
  8855. _ACEOF
  8856. # Check argument types.
  8857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
  8858. $as_echo_n "checking types of arguments for ptrace... " >&6; }
  8859. if ${gdb_cv_func_ptrace_args+:} false; then :
  8860. $as_echo_n "(cached) " >&6
  8861. else
  8862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8863. /* end confdefs.h. */
  8864. $gdb_ptrace_headers
  8865. int
  8866. main ()
  8867. {
  8868. extern long ptrace (enum __ptrace_request, ...);
  8869. ;
  8870. return 0;
  8871. }
  8872. _ACEOF
  8873. if ac_fn_c_try_compile "$LINENO"; then :
  8874. gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
  8875. else
  8876. for gdb_arg1 in 'int' 'long'; do
  8877. for gdb_arg2 in 'pid_t' 'int' 'long'; do
  8878. for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
  8879. for gdb_arg4 in 'int' 'long' 'void *'; do
  8880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8881. /* end confdefs.h. */
  8882. $gdb_ptrace_headers
  8883. int
  8884. main ()
  8885. {
  8886. extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
  8887. ;
  8888. return 0;
  8889. }
  8890. _ACEOF
  8891. if ac_fn_c_try_compile "$LINENO"; then :
  8892. gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
  8893. break 4;
  8894. fi
  8895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8896. for gdb_arg5 in 'int *' 'int' 'long'; do
  8897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8898. /* end confdefs.h. */
  8899. $gdb_ptrace_headers
  8900. int
  8901. main ()
  8902. {
  8903. extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
  8904. ;
  8905. return 0;
  8906. }
  8907. _ACEOF
  8908. if ac_fn_c_try_compile "$LINENO"; then :
  8909. gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
  8910. break 5;
  8911. fi
  8912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8913. done
  8914. done
  8915. done
  8916. done
  8917. done
  8918. # Provide a safe default value.
  8919. : ${gdb_cv_func_ptrace_args='int,int,long,long'}
  8920. fi
  8921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8922. fi
  8923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
  8924. $as_echo "$gdb_cv_func_ptrace_args" >&6; }
  8925. ac_save_IFS=$IFS; IFS=','
  8926. set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
  8927. IFS=$ac_save_IFS
  8928. shift
  8929. cat >>confdefs.h <<_ACEOF
  8930. #define PTRACE_TYPE_ARG1 $1
  8931. _ACEOF
  8932. cat >>confdefs.h <<_ACEOF
  8933. #define PTRACE_TYPE_ARG3 $3
  8934. _ACEOF
  8935. cat >>confdefs.h <<_ACEOF
  8936. #define PTRACE_TYPE_ARG4 $4
  8937. _ACEOF
  8938. if test -n "$5"; then
  8939. cat >>confdefs.h <<_ACEOF
  8940. #define PTRACE_TYPE_ARG5 $5
  8941. _ACEOF
  8942. fi
  8943. # Detect support warning flags.
  8944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
  8945. $as_echo_n "checking the compiler type... " >&6; }
  8946. if ${gdb_cv_compiler_type+:} false; then :
  8947. $as_echo_n "(cached) " >&6
  8948. else
  8949. gdb_cv_compiler_type=unknown
  8950. if test "$gdb_cv_compiler_type" = unknown; then
  8951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8952. /* end confdefs.h. */
  8953. int
  8954. main ()
  8955. {
  8956. #if !defined __GNUC__ || defined __clang__
  8957. #error not gcc
  8958. #endif
  8959. ;
  8960. return 0;
  8961. }
  8962. _ACEOF
  8963. if ac_fn_c_try_compile "$LINENO"; then :
  8964. gdb_cv_compiler_type=gcc
  8965. fi
  8966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8967. fi
  8968. if test "$gdb_cv_compiler_type" = unknown; then
  8969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8970. /* end confdefs.h. */
  8971. int
  8972. main ()
  8973. {
  8974. #ifndef __clang__
  8975. #error not clang
  8976. #endif
  8977. ;
  8978. return 0;
  8979. }
  8980. _ACEOF
  8981. if ac_fn_c_try_compile "$LINENO"; then :
  8982. gdb_cv_compiler_type=clang
  8983. fi
  8984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8985. fi
  8986. fi
  8987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
  8988. $as_echo "$gdb_cv_compiler_type" >&6; }
  8989. GDB_COMPILER_TYPE="$gdb_cv_compiler_type"
  8990. # Check whether --enable-werror was given.
  8991. if test "${enable_werror+set}" = set; then :
  8992. enableval=$enable_werror; case "${enableval}" in
  8993. yes | y) ERROR_ON_WARNING="yes" ;;
  8994. no | n) ERROR_ON_WARNING="no" ;;
  8995. *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  8996. esac
  8997. fi
  8998. # Enable -Werror by default when using gcc. Turn it off for releases.
  8999. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
  9000. ERROR_ON_WARNING=yes
  9001. fi
  9002. WERROR_CFLAGS=""
  9003. if test "${ERROR_ON_WARNING}" = yes ; then
  9004. WERROR_CFLAGS="-Werror"
  9005. fi
  9006. # The options we'll try to enable.
  9007. build_warnings="-Wall -Wpointer-arith \
  9008. -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
  9009. -Wno-switch -Wno-char-subscripts \
  9010. -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
  9011. -Wno-sign-compare -Wno-error=maybe-uninitialized \
  9012. -Wno-mismatched-tags \
  9013. -Wno-error=deprecated-register \
  9014. -Wsuggest-override \
  9015. -Wimplicit-fallthrough=3 \
  9016. -Wduplicated-cond \
  9017. -Wshadow=local \
  9018. -Wdeprecated-copy \
  9019. -Wdeprecated-copy-dtor \
  9020. -Wredundant-move \
  9021. -Wmissing-declarations \
  9022. -Wstrict-null-sentinel \
  9023. "
  9024. # The -Wmissing-prototypes flag will be accepted by GCC, but results
  9025. # in a warning being printed about the flag not being valid for C++,
  9026. # this is something to do with using ccache, and argument ordering.
  9027. if test "$GDB_COMPILER_TYPE" != gcc; then
  9028. build_warnings="$build_warnings -Wmissing-prototypes"
  9029. fi
  9030. case "${host}" in
  9031. *-*-mingw32*)
  9032. # Enable -Wno-format by default when using gcc on mingw since many
  9033. # GCC versions complain about %I64.
  9034. build_warnings="$build_warnings -Wno-format" ;;
  9035. *-*-solaris*)
  9036. # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
  9037. # doesn't understand.
  9038. build_warnings="$build_warnings -Wno-unknown-pragmas"
  9039. # Solaris 11 <unistd.h> marks vfork deprecated.
  9040. build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
  9041. *)
  9042. # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
  9043. # but there's a special case for this below.
  9044. build_warnings="$build_warnings -Wformat-nonliteral" ;;
  9045. esac
  9046. # Check whether --enable-build-warnings was given.
  9047. if test "${enable_build_warnings+set}" = set; then :
  9048. enableval=$enable_build_warnings; case "${enableval}" in
  9049. yes) ;;
  9050. no) build_warnings="-w";;
  9051. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  9052. build_warnings="${build_warnings} ${t}";;
  9053. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  9054. build_warnings="${t} ${build_warnings}";;
  9055. *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  9056. esac
  9057. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  9058. echo "Setting compiler warning flags = $build_warnings" 6>&1
  9059. fi
  9060. fi
  9061. # Check whether --enable-gdb-build-warnings was given.
  9062. if test "${enable_gdb_build_warnings+set}" = set; then :
  9063. enableval=$enable_gdb_build_warnings; case "${enableval}" in
  9064. yes) ;;
  9065. no) build_warnings="-w";;
  9066. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  9067. build_warnings="${build_warnings} ${t}";;
  9068. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  9069. build_warnings="${t} ${build_warnings}";;
  9070. *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  9071. esac
  9072. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  9073. echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
  9074. fi
  9075. fi
  9076. # The set of warnings supported by a C++ compiler is not the same as
  9077. # of the C compiler.
  9078. ac_ext=cpp
  9079. ac_cpp='$CXXCPP $CPPFLAGS'
  9080. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9081. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9082. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9083. WARN_CFLAGS=""
  9084. if test "x${build_warnings}" != x -a "x$GCC" = xyes
  9085. then
  9086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
  9087. $as_echo_n "checking compiler warning flags... " >&6; }
  9088. # Separate out the -Werror flag as some files just cannot be
  9089. # compiled with it enabled.
  9090. for w in ${build_warnings}; do
  9091. # GCC does not complain about -Wno-unknown-warning. Invert
  9092. # and test -Wunknown-warning instead.
  9093. case $w in
  9094. -Wno-*)
  9095. wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
  9096. -Wformat-nonliteral)
  9097. # gcc requires -Wformat before -Wformat-nonliteral
  9098. # will work, so stick them together.
  9099. w="-Wformat $w"
  9100. wtest="$w"
  9101. ;;
  9102. *)
  9103. wtest=$w ;;
  9104. esac
  9105. case $w in
  9106. -Werr*) WERROR_CFLAGS=-Werror ;;
  9107. *)
  9108. # Check whether GCC accepts it.
  9109. saved_CFLAGS="$CFLAGS"
  9110. CFLAGS="$CFLAGS -Werror $wtest"
  9111. saved_CXXFLAGS="$CXXFLAGS"
  9112. CXXFLAGS="$CXXFLAGS -Werror $wtest"
  9113. if test "x$w" = "x-Wunused-variable"; then
  9114. # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
  9115. # fixed in GCC 4.9. This test is derived from the gdb
  9116. # source code that triggered this bug in GCC.
  9117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9118. /* end confdefs.h. */
  9119. struct scoped_restore_base {};
  9120. struct scoped_restore_tmpl : public scoped_restore_base {
  9121. ~scoped_restore_tmpl() {}
  9122. };
  9123. int
  9124. main ()
  9125. {
  9126. const scoped_restore_base &b = scoped_restore_tmpl();
  9127. ;
  9128. return 0;
  9129. }
  9130. _ACEOF
  9131. if ac_fn_cxx_try_compile "$LINENO"; then :
  9132. WARN_CFLAGS="${WARN_CFLAGS} $w"
  9133. fi
  9134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9135. else
  9136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9137. /* end confdefs.h. */
  9138. int
  9139. main ()
  9140. {
  9141. ;
  9142. return 0;
  9143. }
  9144. _ACEOF
  9145. if ac_fn_cxx_try_compile "$LINENO"; then :
  9146. WARN_CFLAGS="${WARN_CFLAGS} $w"
  9147. fi
  9148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9149. fi
  9150. CFLAGS="$saved_CFLAGS"
  9151. CXXFLAGS="$saved_CXXFLAGS"
  9152. esac
  9153. done
  9154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
  9155. $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
  9156. fi
  9157. ac_ext=c
  9158. ac_cpp='$CPP $CPPFLAGS'
  9159. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9160. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9161. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9162. case ${host} in
  9163. *mingw32*)
  9164. $as_echo "#define USE_WIN32API 1" >>confdefs.h
  9165. ;;
  9166. esac
  9167. ac_config_files="$ac_config_files Makefile"
  9168. cat >confcache <<\_ACEOF
  9169. # This file is a shell script that caches the results of configure
  9170. # tests run on this system so they can be shared between configure
  9171. # scripts and configure runs, see configure's option --config-cache.
  9172. # It is not useful on other systems. If it contains results you don't
  9173. # want to keep, you may remove or edit it.
  9174. #
  9175. # config.status only pays attention to the cache file if you give it
  9176. # the --recheck option to rerun configure.
  9177. #
  9178. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9179. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9180. # following values.
  9181. _ACEOF
  9182. # The following way of writing the cache mishandles newlines in values,
  9183. # but we know of no workaround that is simple, portable, and efficient.
  9184. # So, we kill variables containing newlines.
  9185. # Ultrix sh set writes to stderr and can't be redirected directly,
  9186. # and sets the high bit in the cache file unless we assign to the vars.
  9187. (
  9188. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9189. eval ac_val=\$$ac_var
  9190. case $ac_val in #(
  9191. *${as_nl}*)
  9192. case $ac_var in #(
  9193. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9194. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9195. esac
  9196. case $ac_var in #(
  9197. _ | IFS | as_nl) ;; #(
  9198. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9199. *) { eval $ac_var=; unset $ac_var;} ;;
  9200. esac ;;
  9201. esac
  9202. done
  9203. (set) 2>&1 |
  9204. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9205. *${as_nl}ac_space=\ *)
  9206. # `set' does not quote correctly, so add quotes: double-quote
  9207. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9208. sed -n \
  9209. "s/'/'\\\\''/g;
  9210. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9211. ;; #(
  9212. *)
  9213. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9214. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9215. ;;
  9216. esac |
  9217. sort
  9218. ) |
  9219. sed '
  9220. /^ac_cv_env_/b end
  9221. t clear
  9222. :clear
  9223. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9224. t end
  9225. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9226. :end' >>confcache
  9227. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9228. if test -w "$cache_file"; then
  9229. if test "x$cache_file" != "x/dev/null"; then
  9230. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9231. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9232. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9233. cat confcache >"$cache_file"
  9234. else
  9235. case $cache_file in #(
  9236. */* | ?:*)
  9237. mv -f confcache "$cache_file"$$ &&
  9238. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9239. *)
  9240. mv -f confcache "$cache_file" ;;
  9241. esac
  9242. fi
  9243. fi
  9244. else
  9245. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9246. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9247. fi
  9248. fi
  9249. rm -f confcache
  9250. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9251. # Let make expand exec_prefix.
  9252. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9253. DEFS=-DHAVE_CONFIG_H
  9254. ac_libobjs=
  9255. ac_ltlibobjs=
  9256. U=
  9257. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9258. # 1. Remove the extension, and $U if already installed.
  9259. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9260. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9261. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9262. # will be set to the directory where LIBOBJS objects are built.
  9263. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9264. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9265. done
  9266. LIBOBJS=$ac_libobjs
  9267. LTLIBOBJS=$ac_ltlibobjs
  9268. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  9269. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  9270. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9271. fi
  9272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  9273. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  9274. if test -n "$am_sleep_pid"; then
  9275. # Hide warnings about reused PIDs.
  9276. wait $am_sleep_pid 2>/dev/null
  9277. fi
  9278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  9279. $as_echo "done" >&6; }
  9280. if test -n "$EXEEXT"; then
  9281. am__EXEEXT_TRUE=
  9282. am__EXEEXT_FALSE='#'
  9283. else
  9284. am__EXEEXT_TRUE='#'
  9285. am__EXEEXT_FALSE=
  9286. fi
  9287. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9288. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9289. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9290. fi
  9291. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9292. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9293. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9294. fi
  9295. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  9296. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  9297. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9298. fi
  9299. if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
  9300. as_fn_error $? "conditional \"SELFTEST\" was never defined.
  9301. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9302. fi
  9303. if test -z "${HAVE_PIPE_OR_PIPE2_TRUE}" && test -z "${HAVE_PIPE_OR_PIPE2_FALSE}"; then
  9304. as_fn_error $? "conditional \"HAVE_PIPE_OR_PIPE2\" was never defined.
  9305. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9306. fi
  9307. : "${CONFIG_STATUS=./config.status}"
  9308. ac_write_fail=0
  9309. ac_clean_files_save=$ac_clean_files
  9310. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9311. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9312. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9313. as_write_fail=0
  9314. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9315. #! $SHELL
  9316. # Generated by $as_me.
  9317. # Run this file to recreate the current configuration.
  9318. # Compiler output produced by configure, useful for debugging
  9319. # configure, is in config.log if it exists.
  9320. debug=false
  9321. ac_cs_recheck=false
  9322. ac_cs_silent=false
  9323. SHELL=\${CONFIG_SHELL-$SHELL}
  9324. export SHELL
  9325. _ASEOF
  9326. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9327. ## -------------------- ##
  9328. ## M4sh Initialization. ##
  9329. ## -------------------- ##
  9330. # Be more Bourne compatible
  9331. DUALCASE=1; export DUALCASE # for MKS sh
  9332. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9333. emulate sh
  9334. NULLCMD=:
  9335. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9336. # is contrary to our usage. Disable this feature.
  9337. alias -g '${1+"$@"}'='"$@"'
  9338. setopt NO_GLOB_SUBST
  9339. else
  9340. case `(set -o) 2>/dev/null` in #(
  9341. *posix*) :
  9342. set -o posix ;; #(
  9343. *) :
  9344. ;;
  9345. esac
  9346. fi
  9347. as_nl='
  9348. '
  9349. export as_nl
  9350. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9351. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9352. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9353. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9354. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9355. # but without wasting forks for bash or zsh.
  9356. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9357. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9358. as_echo='print -r --'
  9359. as_echo_n='print -rn --'
  9360. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9361. as_echo='printf %s\n'
  9362. as_echo_n='printf %s'
  9363. else
  9364. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9365. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9366. as_echo_n='/usr/ucb/echo -n'
  9367. else
  9368. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9369. as_echo_n_body='eval
  9370. arg=$1;
  9371. case $arg in #(
  9372. *"$as_nl"*)
  9373. expr "X$arg" : "X\\(.*\\)$as_nl";
  9374. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9375. esac;
  9376. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9377. '
  9378. export as_echo_n_body
  9379. as_echo_n='sh -c $as_echo_n_body as_echo'
  9380. fi
  9381. export as_echo_body
  9382. as_echo='sh -c $as_echo_body as_echo'
  9383. fi
  9384. # The user is always right.
  9385. if test "${PATH_SEPARATOR+set}" != set; then
  9386. PATH_SEPARATOR=:
  9387. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9388. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9389. PATH_SEPARATOR=';'
  9390. }
  9391. fi
  9392. # IFS
  9393. # We need space, tab and new line, in precisely that order. Quoting is
  9394. # there to prevent editors from complaining about space-tab.
  9395. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9396. # splitting by setting IFS to empty value.)
  9397. IFS=" "" $as_nl"
  9398. # Find who we are. Look in the path if we contain no directory separator.
  9399. as_myself=
  9400. case $0 in #((
  9401. *[\\/]* ) as_myself=$0 ;;
  9402. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9403. for as_dir in $PATH
  9404. do
  9405. IFS=$as_save_IFS
  9406. test -z "$as_dir" && as_dir=.
  9407. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9408. done
  9409. IFS=$as_save_IFS
  9410. ;;
  9411. esac
  9412. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9413. # in which case we are not to be found in the path.
  9414. if test "x$as_myself" = x; then
  9415. as_myself=$0
  9416. fi
  9417. if test ! -f "$as_myself"; then
  9418. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9419. exit 1
  9420. fi
  9421. # Unset variables that we do not need and which cause bugs (e.g. in
  9422. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9423. # suppresses any "Segmentation fault" message there. '((' could
  9424. # trigger a bug in pdksh 5.2.14.
  9425. for as_var in BASH_ENV ENV MAIL MAILPATH
  9426. do eval test x\${$as_var+set} = xset \
  9427. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9428. done
  9429. PS1='$ '
  9430. PS2='> '
  9431. PS4='+ '
  9432. # NLS nuisances.
  9433. LC_ALL=C
  9434. export LC_ALL
  9435. LANGUAGE=C
  9436. export LANGUAGE
  9437. # CDPATH.
  9438. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9439. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9440. # ----------------------------------------
  9441. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9442. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9443. # script with STATUS, using 1 if that was 0.
  9444. as_fn_error ()
  9445. {
  9446. as_status=$1; test $as_status -eq 0 && as_status=1
  9447. if test "$4"; then
  9448. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9449. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9450. fi
  9451. $as_echo "$as_me: error: $2" >&2
  9452. as_fn_exit $as_status
  9453. } # as_fn_error
  9454. # as_fn_set_status STATUS
  9455. # -----------------------
  9456. # Set $? to STATUS, without forking.
  9457. as_fn_set_status ()
  9458. {
  9459. return $1
  9460. } # as_fn_set_status
  9461. # as_fn_exit STATUS
  9462. # -----------------
  9463. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9464. as_fn_exit ()
  9465. {
  9466. set +e
  9467. as_fn_set_status $1
  9468. exit $1
  9469. } # as_fn_exit
  9470. # as_fn_unset VAR
  9471. # ---------------
  9472. # Portably unset VAR.
  9473. as_fn_unset ()
  9474. {
  9475. { eval $1=; unset $1;}
  9476. }
  9477. as_unset=as_fn_unset
  9478. # as_fn_append VAR VALUE
  9479. # ----------------------
  9480. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9481. # advantage of any shell optimizations that allow amortized linear growth over
  9482. # repeated appends, instead of the typical quadratic growth present in naive
  9483. # implementations.
  9484. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9485. eval 'as_fn_append ()
  9486. {
  9487. eval $1+=\$2
  9488. }'
  9489. else
  9490. as_fn_append ()
  9491. {
  9492. eval $1=\$$1\$2
  9493. }
  9494. fi # as_fn_append
  9495. # as_fn_arith ARG...
  9496. # ------------------
  9497. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9498. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9499. # must be portable across $(()) and expr.
  9500. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9501. eval 'as_fn_arith ()
  9502. {
  9503. as_val=$(( $* ))
  9504. }'
  9505. else
  9506. as_fn_arith ()
  9507. {
  9508. as_val=`expr "$@" || test $? -eq 1`
  9509. }
  9510. fi # as_fn_arith
  9511. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9512. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9513. as_expr=expr
  9514. else
  9515. as_expr=false
  9516. fi
  9517. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9518. as_basename=basename
  9519. else
  9520. as_basename=false
  9521. fi
  9522. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9523. as_dirname=dirname
  9524. else
  9525. as_dirname=false
  9526. fi
  9527. as_me=`$as_basename -- "$0" ||
  9528. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9529. X"$0" : 'X\(//\)$' \| \
  9530. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9531. $as_echo X/"$0" |
  9532. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9533. s//\1/
  9534. q
  9535. }
  9536. /^X\/\(\/\/\)$/{
  9537. s//\1/
  9538. q
  9539. }
  9540. /^X\/\(\/\).*/{
  9541. s//\1/
  9542. q
  9543. }
  9544. s/.*/./; q'`
  9545. # Avoid depending upon Character Ranges.
  9546. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9547. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9548. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9549. as_cr_digits='0123456789'
  9550. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9551. ECHO_C= ECHO_N= ECHO_T=
  9552. case `echo -n x` in #(((((
  9553. -n*)
  9554. case `echo 'xy\c'` in
  9555. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9556. xy) ECHO_C='\c';;
  9557. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9558. ECHO_T=' ';;
  9559. esac;;
  9560. *)
  9561. ECHO_N='-n';;
  9562. esac
  9563. rm -f conf$$ conf$$.exe conf$$.file
  9564. if test -d conf$$.dir; then
  9565. rm -f conf$$.dir/conf$$.file
  9566. else
  9567. rm -f conf$$.dir
  9568. mkdir conf$$.dir 2>/dev/null
  9569. fi
  9570. if (echo >conf$$.file) 2>/dev/null; then
  9571. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9572. as_ln_s='ln -s'
  9573. # ... but there are two gotchas:
  9574. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9575. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9576. # In both cases, we have to default to `cp -pR'.
  9577. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9578. as_ln_s='cp -pR'
  9579. elif ln conf$$.file conf$$ 2>/dev/null; then
  9580. as_ln_s=ln
  9581. else
  9582. as_ln_s='cp -pR'
  9583. fi
  9584. else
  9585. as_ln_s='cp -pR'
  9586. fi
  9587. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9588. rmdir conf$$.dir 2>/dev/null
  9589. # as_fn_mkdir_p
  9590. # -------------
  9591. # Create "$as_dir" as a directory, including parents if necessary.
  9592. as_fn_mkdir_p ()
  9593. {
  9594. case $as_dir in #(
  9595. -*) as_dir=./$as_dir;;
  9596. esac
  9597. test -d "$as_dir" || eval $as_mkdir_p || {
  9598. as_dirs=
  9599. while :; do
  9600. case $as_dir in #(
  9601. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9602. *) as_qdir=$as_dir;;
  9603. esac
  9604. as_dirs="'$as_qdir' $as_dirs"
  9605. as_dir=`$as_dirname -- "$as_dir" ||
  9606. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9607. X"$as_dir" : 'X\(//\)[^/]' \| \
  9608. X"$as_dir" : 'X\(//\)$' \| \
  9609. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9610. $as_echo X"$as_dir" |
  9611. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9612. s//\1/
  9613. q
  9614. }
  9615. /^X\(\/\/\)[^/].*/{
  9616. s//\1/
  9617. q
  9618. }
  9619. /^X\(\/\/\)$/{
  9620. s//\1/
  9621. q
  9622. }
  9623. /^X\(\/\).*/{
  9624. s//\1/
  9625. q
  9626. }
  9627. s/.*/./; q'`
  9628. test -d "$as_dir" && break
  9629. done
  9630. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9631. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9632. } # as_fn_mkdir_p
  9633. if mkdir -p . 2>/dev/null; then
  9634. as_mkdir_p='mkdir -p "$as_dir"'
  9635. else
  9636. test -d ./-p && rmdir ./-p
  9637. as_mkdir_p=false
  9638. fi
  9639. # as_fn_executable_p FILE
  9640. # -----------------------
  9641. # Test if FILE is an executable regular file.
  9642. as_fn_executable_p ()
  9643. {
  9644. test -f "$1" && test -x "$1"
  9645. } # as_fn_executable_p
  9646. as_test_x='test -x'
  9647. as_executable_p=as_fn_executable_p
  9648. # Sed expression to map a string onto a valid CPP name.
  9649. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9650. # Sed expression to map a string onto a valid variable name.
  9651. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9652. exec 6>&1
  9653. ## ----------------------------------- ##
  9654. ## Main body of $CONFIG_STATUS script. ##
  9655. ## ----------------------------------- ##
  9656. _ASEOF
  9657. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9658. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9659. # Save the log message, to keep $0 and so on meaningful, and to
  9660. # report actual input values of CONFIG_FILES etc. instead of their
  9661. # values after options handling.
  9662. ac_log="
  9663. This file was extended by gdbsupport $as_me 1.0, which was
  9664. generated by GNU Autoconf 2.69. Invocation command line was
  9665. CONFIG_FILES = $CONFIG_FILES
  9666. CONFIG_HEADERS = $CONFIG_HEADERS
  9667. CONFIG_LINKS = $CONFIG_LINKS
  9668. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9669. $ $0 $@
  9670. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9671. "
  9672. _ACEOF
  9673. case $ac_config_files in *"
  9674. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9675. esac
  9676. case $ac_config_headers in *"
  9677. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9678. esac
  9679. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9680. # Files that config.status was made for.
  9681. config_files="$ac_config_files"
  9682. config_headers="$ac_config_headers"
  9683. config_commands="$ac_config_commands"
  9684. _ACEOF
  9685. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9686. ac_cs_usage="\
  9687. \`$as_me' instantiates files and other configuration actions
  9688. from templates according to the current configuration. Unless the files
  9689. and actions are specified as TAGs, all are instantiated by default.
  9690. Usage: $0 [OPTION]... [TAG]...
  9691. -h, --help print this help, then exit
  9692. -V, --version print version number and configuration settings, then exit
  9693. --config print configuration, then exit
  9694. -q, --quiet, --silent
  9695. do not print progress messages
  9696. -d, --debug don't remove temporary files
  9697. --recheck update $as_me by reconfiguring in the same conditions
  9698. --file=FILE[:TEMPLATE]
  9699. instantiate the configuration file FILE
  9700. --header=FILE[:TEMPLATE]
  9701. instantiate the configuration header FILE
  9702. Configuration files:
  9703. $config_files
  9704. Configuration headers:
  9705. $config_headers
  9706. Configuration commands:
  9707. $config_commands
  9708. Report bugs to the package provider."
  9709. _ACEOF
  9710. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9711. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9712. ac_cs_version="\\
  9713. gdbsupport config.status 1.0
  9714. configured by $0, generated by GNU Autoconf 2.69,
  9715. with options \\"\$ac_cs_config\\"
  9716. Copyright (C) 2012 Free Software Foundation, Inc.
  9717. This config.status script is free software; the Free Software Foundation
  9718. gives unlimited permission to copy, distribute and modify it."
  9719. ac_pwd='$ac_pwd'
  9720. srcdir='$srcdir'
  9721. INSTALL='$INSTALL'
  9722. MKDIR_P='$MKDIR_P'
  9723. AWK='$AWK'
  9724. test -n "\$AWK" || AWK=awk
  9725. _ACEOF
  9726. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9727. # The default lists apply if the user does not specify any file.
  9728. ac_need_defaults=:
  9729. while test $# != 0
  9730. do
  9731. case $1 in
  9732. --*=?*)
  9733. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9734. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9735. ac_shift=:
  9736. ;;
  9737. --*=)
  9738. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9739. ac_optarg=
  9740. ac_shift=:
  9741. ;;
  9742. *)
  9743. ac_option=$1
  9744. ac_optarg=$2
  9745. ac_shift=shift
  9746. ;;
  9747. esac
  9748. case $ac_option in
  9749. # Handling of the options.
  9750. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9751. ac_cs_recheck=: ;;
  9752. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9753. $as_echo "$ac_cs_version"; exit ;;
  9754. --config | --confi | --conf | --con | --co | --c )
  9755. $as_echo "$ac_cs_config"; exit ;;
  9756. --debug | --debu | --deb | --de | --d | -d )
  9757. debug=: ;;
  9758. --file | --fil | --fi | --f )
  9759. $ac_shift
  9760. case $ac_optarg in
  9761. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9762. '') as_fn_error $? "missing file argument" ;;
  9763. esac
  9764. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9765. ac_need_defaults=false;;
  9766. --header | --heade | --head | --hea )
  9767. $ac_shift
  9768. case $ac_optarg in
  9769. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9770. esac
  9771. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9772. ac_need_defaults=false;;
  9773. --he | --h)
  9774. # Conflict between --help and --header
  9775. as_fn_error $? "ambiguous option: \`$1'
  9776. Try \`$0 --help' for more information.";;
  9777. --help | --hel | -h )
  9778. $as_echo "$ac_cs_usage"; exit ;;
  9779. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9780. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9781. ac_cs_silent=: ;;
  9782. # This is an error.
  9783. -*) as_fn_error $? "unrecognized option: \`$1'
  9784. Try \`$0 --help' for more information." ;;
  9785. *) as_fn_append ac_config_targets " $1"
  9786. ac_need_defaults=false ;;
  9787. esac
  9788. shift
  9789. done
  9790. ac_configure_extra_args=
  9791. if $ac_cs_silent; then
  9792. exec 6>/dev/null
  9793. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9794. fi
  9795. _ACEOF
  9796. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9797. if \$ac_cs_recheck; then
  9798. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9799. shift
  9800. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9801. CONFIG_SHELL='$SHELL'
  9802. export CONFIG_SHELL
  9803. exec "\$@"
  9804. fi
  9805. _ACEOF
  9806. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9807. exec 5>>config.log
  9808. {
  9809. echo
  9810. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9811. ## Running $as_me. ##
  9812. _ASBOX
  9813. $as_echo "$ac_log"
  9814. } >&5
  9815. _ACEOF
  9816. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9817. #
  9818. # INIT-COMMANDS
  9819. #
  9820. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9821. _ACEOF
  9822. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9823. # Handling of arguments.
  9824. for ac_config_target in $ac_config_targets
  9825. do
  9826. case $ac_config_target in
  9827. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  9828. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9829. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9830. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9831. esac
  9832. done
  9833. # If the user did not use the arguments to specify the items to instantiate,
  9834. # then the envvar interface is used. Set only those that are not.
  9835. # We use the long form for the default assignment because of an extremely
  9836. # bizarre bug on SunOS 4.1.3.
  9837. if $ac_need_defaults; then
  9838. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9839. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9840. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9841. fi
  9842. # Have a temporary directory for convenience. Make it in the build tree
  9843. # simply because there is no reason against having it here, and in addition,
  9844. # creating and moving files from /tmp can sometimes cause problems.
  9845. # Hook for its removal unless debugging.
  9846. # Note that there is a small window in which the directory will not be cleaned:
  9847. # after its creation but before its name has been assigned to `$tmp'.
  9848. $debug ||
  9849. {
  9850. tmp= ac_tmp=
  9851. trap 'exit_status=$?
  9852. : "${ac_tmp:=$tmp}"
  9853. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9854. ' 0
  9855. trap 'as_fn_exit 1' 1 2 13 15
  9856. }
  9857. # Create a (secure) tmp directory for tmp files.
  9858. {
  9859. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9860. test -d "$tmp"
  9861. } ||
  9862. {
  9863. tmp=./conf$$-$RANDOM
  9864. (umask 077 && mkdir "$tmp")
  9865. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9866. ac_tmp=$tmp
  9867. # Set up the scripts for CONFIG_FILES section.
  9868. # No need to generate them if there are no CONFIG_FILES.
  9869. # This happens for instance with `./config.status config.h'.
  9870. if test -n "$CONFIG_FILES"; then
  9871. ac_cr=`echo X | tr X '\015'`
  9872. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9873. # But we know of no other shell where ac_cr would be empty at this
  9874. # point, so we can use a bashism as a fallback.
  9875. if test "x$ac_cr" = x; then
  9876. eval ac_cr=\$\'\\r\'
  9877. fi
  9878. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9879. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9880. ac_cs_awk_cr='\\r'
  9881. else
  9882. ac_cs_awk_cr=$ac_cr
  9883. fi
  9884. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9885. _ACEOF
  9886. {
  9887. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9888. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9889. echo "_ACEOF"
  9890. } >conf$$subs.sh ||
  9891. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9892. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9893. ac_delim='%!_!# '
  9894. for ac_last_try in false false false false false :; do
  9895. . ./conf$$subs.sh ||
  9896. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9897. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9898. if test $ac_delim_n = $ac_delim_num; then
  9899. break
  9900. elif $ac_last_try; then
  9901. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9902. else
  9903. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9904. fi
  9905. done
  9906. rm -f conf$$subs.sh
  9907. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9908. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9909. _ACEOF
  9910. sed -n '
  9911. h
  9912. s/^/S["/; s/!.*/"]=/
  9913. p
  9914. g
  9915. s/^[^!]*!//
  9916. :repl
  9917. t repl
  9918. s/'"$ac_delim"'$//
  9919. t delim
  9920. :nl
  9921. h
  9922. s/\(.\{148\}\)..*/\1/
  9923. t more1
  9924. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9925. p
  9926. n
  9927. b repl
  9928. :more1
  9929. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9930. p
  9931. g
  9932. s/.\{148\}//
  9933. t nl
  9934. :delim
  9935. h
  9936. s/\(.\{148\}\)..*/\1/
  9937. t more2
  9938. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9939. p
  9940. b
  9941. :more2
  9942. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9943. p
  9944. g
  9945. s/.\{148\}//
  9946. t delim
  9947. ' <conf$$subs.awk | sed '
  9948. /^[^""]/{
  9949. N
  9950. s/\n//
  9951. }
  9952. ' >>$CONFIG_STATUS || ac_write_fail=1
  9953. rm -f conf$$subs.awk
  9954. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9955. _ACAWK
  9956. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9957. for (key in S) S_is_set[key] = 1
  9958. FS = ""
  9959. }
  9960. {
  9961. line = $ 0
  9962. nfields = split(line, field, "@")
  9963. substed = 0
  9964. len = length(field[1])
  9965. for (i = 2; i < nfields; i++) {
  9966. key = field[i]
  9967. keylen = length(key)
  9968. if (S_is_set[key]) {
  9969. value = S[key]
  9970. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9971. len += length(value) + length(field[++i])
  9972. substed = 1
  9973. } else
  9974. len += 1 + keylen
  9975. }
  9976. print line
  9977. }
  9978. _ACAWK
  9979. _ACEOF
  9980. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9981. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9982. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9983. else
  9984. cat
  9985. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  9986. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  9987. _ACEOF
  9988. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  9989. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  9990. # trailing colons and then remove the whole line if VPATH becomes empty
  9991. # (actually we leave an empty line to preserve line numbers).
  9992. if test "x$srcdir" = x.; then
  9993. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  9994. h
  9995. s///
  9996. s/^/:/
  9997. s/[ ]*$/:/
  9998. s/:\$(srcdir):/:/g
  9999. s/:\${srcdir}:/:/g
  10000. s/:@srcdir@:/:/g
  10001. s/^:*//
  10002. s/:*$//
  10003. x
  10004. s/\(=[ ]*\).*/\1/
  10005. G
  10006. s/\n//
  10007. s/^[^=]*=[ ]*$//
  10008. }'
  10009. fi
  10010. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10011. fi # test -n "$CONFIG_FILES"
  10012. # Set up the scripts for CONFIG_HEADERS section.
  10013. # No need to generate them if there are no CONFIG_HEADERS.
  10014. # This happens for instance with `./config.status Makefile'.
  10015. if test -n "$CONFIG_HEADERS"; then
  10016. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  10017. BEGIN {
  10018. _ACEOF
  10019. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10020. # here-document in config.status, that substitutes the proper values into
  10021. # config.h.in to produce config.h.
  10022. # Create a delimiter string that does not exist in confdefs.h, to ease
  10023. # handling of long lines.
  10024. ac_delim='%!_!# '
  10025. for ac_last_try in false false :; do
  10026. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  10027. if test -z "$ac_tt"; then
  10028. break
  10029. elif $ac_last_try; then
  10030. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  10031. else
  10032. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10033. fi
  10034. done
  10035. # For the awk script, D is an array of macro values keyed by name,
  10036. # likewise P contains macro parameters if any. Preserve backslash
  10037. # newline sequences.
  10038. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10039. sed -n '
  10040. s/.\{148\}/&'"$ac_delim"'/g
  10041. t rset
  10042. :rset
  10043. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10044. t def
  10045. d
  10046. :def
  10047. s/\\$//
  10048. t bsnl
  10049. s/["\\]/\\&/g
  10050. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10051. D["\1"]=" \3"/p
  10052. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10053. d
  10054. :bsnl
  10055. s/["\\]/\\&/g
  10056. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10057. D["\1"]=" \3\\\\\\n"\\/p
  10058. t cont
  10059. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10060. t cont
  10061. d
  10062. :cont
  10063. n
  10064. s/.\{148\}/&'"$ac_delim"'/g
  10065. t clear
  10066. :clear
  10067. s/\\$//
  10068. t bsnlc
  10069. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10070. d
  10071. :bsnlc
  10072. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10073. b cont
  10074. ' <confdefs.h | sed '
  10075. s/'"$ac_delim"'/"\\\
  10076. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10077. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10078. for (key in D) D_is_set[key] = 1
  10079. FS = ""
  10080. }
  10081. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10082. line = \$ 0
  10083. split(line, arg, " ")
  10084. if (arg[1] == "#") {
  10085. defundef = arg[2]
  10086. mac1 = arg[3]
  10087. } else {
  10088. defundef = substr(arg[1], 2)
  10089. mac1 = arg[2]
  10090. }
  10091. split(mac1, mac2, "(") #)
  10092. macro = mac2[1]
  10093. prefix = substr(line, 1, index(line, defundef) - 1)
  10094. if (D_is_set[macro]) {
  10095. # Preserve the white space surrounding the "#".
  10096. print prefix "define", macro P[macro] D[macro]
  10097. next
  10098. } else {
  10099. # Replace #undef with comments. This is necessary, for example,
  10100. # in the case of _POSIX_SOURCE, which is predefined and required
  10101. # on some systems where configure will not decide to define it.
  10102. if (defundef == "undef") {
  10103. print "/*", prefix defundef, macro, "*/"
  10104. next
  10105. }
  10106. }
  10107. }
  10108. { print }
  10109. _ACAWK
  10110. _ACEOF
  10111. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10112. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  10113. fi # test -n "$CONFIG_HEADERS"
  10114. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  10115. shift
  10116. for ac_tag
  10117. do
  10118. case $ac_tag in
  10119. :[FHLC]) ac_mode=$ac_tag; continue;;
  10120. esac
  10121. case $ac_mode$ac_tag in
  10122. :[FHL]*:*);;
  10123. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10124. :[FH]-) ac_tag=-:-;;
  10125. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10126. esac
  10127. ac_save_IFS=$IFS
  10128. IFS=:
  10129. set x $ac_tag
  10130. IFS=$ac_save_IFS
  10131. shift
  10132. ac_file=$1
  10133. shift
  10134. case $ac_mode in
  10135. :L) ac_source=$1;;
  10136. :[FH])
  10137. ac_file_inputs=
  10138. for ac_f
  10139. do
  10140. case $ac_f in
  10141. -) ac_f="$ac_tmp/stdin";;
  10142. *) # Look for the file first in the build tree, then in the source tree
  10143. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10144. # because $ac_f cannot contain `:'.
  10145. test -f "$ac_f" ||
  10146. case $ac_f in
  10147. [\\/$]*) false;;
  10148. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10149. esac ||
  10150. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10151. esac
  10152. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10153. as_fn_append ac_file_inputs " '$ac_f'"
  10154. done
  10155. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10156. # use $as_me), people would be surprised to read:
  10157. # /* config.h. Generated by config.status. */
  10158. configure_input='Generated from '`
  10159. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10160. `' by configure.'
  10161. if test x"$ac_file" != x-; then
  10162. configure_input="$ac_file. $configure_input"
  10163. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10164. $as_echo "$as_me: creating $ac_file" >&6;}
  10165. fi
  10166. # Neutralize special characters interpreted by sed in replacement strings.
  10167. case $configure_input in #(
  10168. *\&* | *\|* | *\\* )
  10169. ac_sed_conf_input=`$as_echo "$configure_input" |
  10170. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10171. *) ac_sed_conf_input=$configure_input;;
  10172. esac
  10173. case $ac_tag in
  10174. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  10175. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  10176. esac
  10177. ;;
  10178. esac
  10179. ac_dir=`$as_dirname -- "$ac_file" ||
  10180. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10181. X"$ac_file" : 'X\(//\)[^/]' \| \
  10182. X"$ac_file" : 'X\(//\)$' \| \
  10183. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10184. $as_echo X"$ac_file" |
  10185. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10186. s//\1/
  10187. q
  10188. }
  10189. /^X\(\/\/\)[^/].*/{
  10190. s//\1/
  10191. q
  10192. }
  10193. /^X\(\/\/\)$/{
  10194. s//\1/
  10195. q
  10196. }
  10197. /^X\(\/\).*/{
  10198. s//\1/
  10199. q
  10200. }
  10201. s/.*/./; q'`
  10202. as_dir="$ac_dir"; as_fn_mkdir_p
  10203. ac_builddir=.
  10204. case "$ac_dir" in
  10205. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10206. *)
  10207. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10208. # A ".." for each directory in $ac_dir_suffix.
  10209. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10210. case $ac_top_builddir_sub in
  10211. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10212. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10213. esac ;;
  10214. esac
  10215. ac_abs_top_builddir=$ac_pwd
  10216. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10217. # for backward compatibility:
  10218. ac_top_builddir=$ac_top_build_prefix
  10219. case $srcdir in
  10220. .) # We are building in place.
  10221. ac_srcdir=.
  10222. ac_top_srcdir=$ac_top_builddir_sub
  10223. ac_abs_top_srcdir=$ac_pwd ;;
  10224. [\\/]* | ?:[\\/]* ) # Absolute name.
  10225. ac_srcdir=$srcdir$ac_dir_suffix;
  10226. ac_top_srcdir=$srcdir
  10227. ac_abs_top_srcdir=$srcdir ;;
  10228. *) # Relative name.
  10229. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10230. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10231. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10232. esac
  10233. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10234. case $ac_mode in
  10235. :F)
  10236. #
  10237. # CONFIG_FILE
  10238. #
  10239. case $INSTALL in
  10240. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10241. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10242. esac
  10243. ac_MKDIR_P=$MKDIR_P
  10244. case $MKDIR_P in
  10245. [\\/$]* | ?:[\\/]* ) ;;
  10246. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10247. esac
  10248. _ACEOF
  10249. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10250. # If the template does not know about datarootdir, expand it.
  10251. # FIXME: This hack should be removed a few years after 2.60.
  10252. ac_datarootdir_hack=; ac_datarootdir_seen=
  10253. ac_sed_dataroot='
  10254. /datarootdir/ {
  10255. p
  10256. q
  10257. }
  10258. /@datadir@/p
  10259. /@docdir@/p
  10260. /@infodir@/p
  10261. /@localedir@/p
  10262. /@mandir@/p'
  10263. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10264. *datarootdir*) ac_datarootdir_seen=yes;;
  10265. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10266. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10267. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10268. _ACEOF
  10269. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10270. ac_datarootdir_hack='
  10271. s&@datadir@&$datadir&g
  10272. s&@docdir@&$docdir&g
  10273. s&@infodir@&$infodir&g
  10274. s&@localedir@&$localedir&g
  10275. s&@mandir@&$mandir&g
  10276. s&\\\${datarootdir}&$datarootdir&g' ;;
  10277. esac
  10278. _ACEOF
  10279. # Neutralize VPATH when `$srcdir' = `.'.
  10280. # Shell code in configure.ac might set extrasub.
  10281. # FIXME: do we really want to maintain this feature?
  10282. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10283. ac_sed_extra="$ac_vpsub
  10284. $extrasub
  10285. _ACEOF
  10286. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10287. :t
  10288. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10289. s|@configure_input@|$ac_sed_conf_input|;t t
  10290. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10291. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10292. s&@srcdir@&$ac_srcdir&;t t
  10293. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10294. s&@top_srcdir@&$ac_top_srcdir&;t t
  10295. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10296. s&@builddir@&$ac_builddir&;t t
  10297. s&@abs_builddir@&$ac_abs_builddir&;t t
  10298. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10299. s&@INSTALL@&$ac_INSTALL&;t t
  10300. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10301. $ac_datarootdir_hack
  10302. "
  10303. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10304. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10305. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10306. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10307. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  10308. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10309. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10310. which seems to be undefined. Please make sure it is defined" >&5
  10311. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10312. which seems to be undefined. Please make sure it is defined" >&2;}
  10313. rm -f "$ac_tmp/stdin"
  10314. case $ac_file in
  10315. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10316. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10317. esac \
  10318. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10319. ;;
  10320. :H)
  10321. #
  10322. # CONFIG_HEADER
  10323. #
  10324. if test x"$ac_file" != x-; then
  10325. {
  10326. $as_echo "/* $configure_input */" \
  10327. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  10328. } >"$ac_tmp/config.h" \
  10329. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10330. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10332. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  10333. else
  10334. rm -f "$ac_file"
  10335. mv "$ac_tmp/config.h" "$ac_file" \
  10336. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10337. fi
  10338. else
  10339. $as_echo "/* $configure_input */" \
  10340. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  10341. || as_fn_error $? "could not create -" "$LINENO" 5
  10342. fi
  10343. # Compute "$ac_file"'s index in $config_headers.
  10344. _am_arg="$ac_file"
  10345. _am_stamp_count=1
  10346. for _am_header in $config_headers :; do
  10347. case $_am_header in
  10348. $_am_arg | $_am_arg:* )
  10349. break ;;
  10350. * )
  10351. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  10352. esac
  10353. done
  10354. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  10355. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10356. X"$_am_arg" : 'X\(//\)[^/]' \| \
  10357. X"$_am_arg" : 'X\(//\)$' \| \
  10358. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  10359. $as_echo X"$_am_arg" |
  10360. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10361. s//\1/
  10362. q
  10363. }
  10364. /^X\(\/\/\)[^/].*/{
  10365. s//\1/
  10366. q
  10367. }
  10368. /^X\(\/\/\)$/{
  10369. s//\1/
  10370. q
  10371. }
  10372. /^X\(\/\).*/{
  10373. s//\1/
  10374. q
  10375. }
  10376. s/.*/./; q'`/stamp-h$_am_stamp_count
  10377. ;;
  10378. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10379. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10380. ;;
  10381. esac
  10382. case $ac_file$ac_mode in
  10383. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10384. # Older Autoconf quotes --file arguments for eval, but not when files
  10385. # are listed without --file. Let's play safe and only enable the eval
  10386. # if we detect the quoting.
  10387. case $CONFIG_FILES in
  10388. *\'*) eval set x "$CONFIG_FILES" ;;
  10389. *) set x $CONFIG_FILES ;;
  10390. esac
  10391. shift
  10392. for mf
  10393. do
  10394. # Strip MF so we end up with the name of the file.
  10395. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10396. # Check whether this is an Automake generated Makefile or not.
  10397. # We used to match only the files named 'Makefile.in', but
  10398. # some people rename them; so instead we look at the file content.
  10399. # Grep'ing the first line is not enough: some people post-process
  10400. # each Makefile.in and add a new line on top of each file to say so.
  10401. # Grep'ing the whole file is not good either: AIX grep has a line
  10402. # limit of 2048, but all sed's we know have understand at least 4000.
  10403. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10404. dirpart=`$as_dirname -- "$mf" ||
  10405. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10406. X"$mf" : 'X\(//\)[^/]' \| \
  10407. X"$mf" : 'X\(//\)$' \| \
  10408. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10409. $as_echo X"$mf" |
  10410. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10411. s//\1/
  10412. q
  10413. }
  10414. /^X\(\/\/\)[^/].*/{
  10415. s//\1/
  10416. q
  10417. }
  10418. /^X\(\/\/\)$/{
  10419. s//\1/
  10420. q
  10421. }
  10422. /^X\(\/\).*/{
  10423. s//\1/
  10424. q
  10425. }
  10426. s/.*/./; q'`
  10427. else
  10428. continue
  10429. fi
  10430. # Extract the definition of DEPDIR, am__include, and am__quote
  10431. # from the Makefile without running 'make'.
  10432. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10433. test -z "$DEPDIR" && continue
  10434. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10435. test -z "$am__include" && continue
  10436. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10437. # Find all dependency output files, they are included files with
  10438. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10439. # simplest approach to changing $(DEPDIR) to its actual value in the
  10440. # expansion.
  10441. for file in `sed -n "
  10442. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10443. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  10444. # Make sure the directory exists.
  10445. test -f "$dirpart/$file" && continue
  10446. fdir=`$as_dirname -- "$file" ||
  10447. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10448. X"$file" : 'X\(//\)[^/]' \| \
  10449. X"$file" : 'X\(//\)$' \| \
  10450. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10451. $as_echo X"$file" |
  10452. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10453. s//\1/
  10454. q
  10455. }
  10456. /^X\(\/\/\)[^/].*/{
  10457. s//\1/
  10458. q
  10459. }
  10460. /^X\(\/\/\)$/{
  10461. s//\1/
  10462. q
  10463. }
  10464. /^X\(\/\).*/{
  10465. s//\1/
  10466. q
  10467. }
  10468. s/.*/./; q'`
  10469. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10470. # echo "creating $dirpart/$file"
  10471. echo '# dummy' > "$dirpart/$file"
  10472. done
  10473. done
  10474. }
  10475. ;;
  10476. esac
  10477. done # for ac_tag
  10478. as_fn_exit 0
  10479. _ACEOF
  10480. ac_clean_files=$ac_clean_files_save
  10481. test $ac_write_fail = 0 ||
  10482. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10483. # configure is writing to config.log, and then calls config.status.
  10484. # config.status does its own redirection, appending to config.log.
  10485. # Unfortunately, on DOS this fails, as config.log is still kept open
  10486. # by configure, so config.status won't be able to write to it; its
  10487. # output is simply discarded. So we exec the FD to /dev/null,
  10488. # effectively closing config.log, so it can be properly (re)opened and
  10489. # appended to by config.status. When coming back to configure, we
  10490. # need to make the FD available again.
  10491. if test "$no_create" != yes; then
  10492. ac_cs_success=:
  10493. ac_config_status_args=
  10494. test "$silent" = yes &&
  10495. ac_config_status_args="$ac_config_status_args --quiet"
  10496. exec 5>/dev/null
  10497. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10498. exec 5>>config.log
  10499. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10500. # would make configure fail if this is the last instruction.
  10501. $ac_cs_success || as_fn_exit 1
  10502. fi
  10503. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10505. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10506. fi