1
0

configure 835 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. INSTALL_SDL2_CONFIG
  603. LIBUSB_LIBS
  604. LIBUSB_CFLAGS
  605. FCITX_LIBS
  606. FCITX_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. FUSIONSOUND_LIBS
  625. FUSIONSOUND_CFLAGS
  626. ARTSCONFIG
  627. PULSEAUDIO_LIBS
  628. PULSEAUDIO_CFLAGS
  629. ESD_LIBS
  630. ESD_CFLAGS
  631. ESD_CONFIG
  632. JACK_LIBS
  633. JACK_CFLAGS
  634. ALSA_LIBS
  635. ALSA_CFLAGS
  636. POW_LIB
  637. LIBOBJS
  638. ALLOCA
  639. PKG_CONFIG_LIBDIR
  640. PKG_CONFIG_PATH
  641. PKG_CONFIG
  642. SET_MAKE
  643. INSTALL_DATA
  644. INSTALL_SCRIPT
  645. INSTALL_PROGRAM
  646. CXXCPP
  647. ac_ct_CXX
  648. CXXFLAGS
  649. CXX
  650. LT_AGE
  651. LT_REVISION
  652. LT_CURRENT
  653. LT_RELEASE
  654. RC
  655. CPP
  656. OTOOL64
  657. OTOOL
  658. LIPO
  659. NMEDIT
  660. DSYMUTIL
  661. MANIFEST_TOOL
  662. AWK
  663. RANLIB
  664. STRIP
  665. ac_ct_AR
  666. AR
  667. LN_S
  668. NM
  669. ac_ct_DUMPBIN
  670. DUMPBIN
  671. LD
  672. FGREP
  673. EGREP
  674. GREP
  675. SED
  676. OBJEXT
  677. EXEEXT
  678. ac_ct_CC
  679. CPPFLAGS
  680. LDFLAGS
  681. CFLAGS
  682. CC
  683. host_os
  684. host_vendor
  685. host_cpu
  686. host
  687. build_os
  688. build_vendor
  689. build_cpu
  690. build
  691. LIBTOOL
  692. OBJDUMP
  693. DLLTOOL
  694. AS
  695. SDL_VERSION
  696. SDL_BINARY_AGE
  697. SDL_INTERFACE_AGE
  698. SDL_MICRO_VERSION
  699. SDL_MINOR_VERSION
  700. SDL_MAJOR_VERSION
  701. target_alias
  702. host_alias
  703. build_alias
  704. LIBS
  705. ECHO_T
  706. ECHO_N
  707. ECHO_C
  708. DEFS
  709. mandir
  710. localedir
  711. libdir
  712. psdir
  713. pdfdir
  714. dvidir
  715. htmldir
  716. infodir
  717. docdir
  718. oldincludedir
  719. includedir
  720. localstatedir
  721. sharedstatedir
  722. sysconfdir
  723. datadir
  724. datarootdir
  725. libexecdir
  726. sbindir
  727. bindir
  728. program_transform_name
  729. prefix
  730. exec_prefix
  731. PACKAGE_URL
  732. PACKAGE_BUGREPORT
  733. PACKAGE_STRING
  734. PACKAGE_VERSION
  735. PACKAGE_TARNAME
  736. PACKAGE_NAME
  737. PATH_SEPARATOR
  738. SHELL'
  739. ac_subst_files=''
  740. ac_user_opts='
  741. enable_option_checking
  742. enable_shared
  743. enable_static
  744. with_pic
  745. enable_fast_install
  746. with_gnu_ld
  747. with_sysroot
  748. enable_libtool_lock
  749. enable_assertions
  750. enable_dependency_tracking
  751. enable_libc
  752. enable_gcc_atomics
  753. enable_atomic
  754. enable_audio
  755. enable_video
  756. enable_render
  757. enable_events
  758. enable_joystick
  759. enable_haptic
  760. enable_sensor
  761. enable_power
  762. enable_filesystem
  763. enable_threads
  764. enable_timers
  765. enable_file
  766. enable_loadso
  767. enable_cpuinfo
  768. enable_assembly
  769. enable_ssemath
  770. enable_mmx
  771. enable_3dnow
  772. enable_sse
  773. enable_sse2
  774. enable_sse3
  775. enable_altivec
  776. enable_oss
  777. enable_alsa
  778. with_alsa_prefix
  779. with_alsa_inc_prefix
  780. enable_alsatest
  781. enable_alsa_shared
  782. enable_jack
  783. enable_jack_shared
  784. enable_esd
  785. with_esd_prefix
  786. with_esd_exec_prefix
  787. enable_esdtest
  788. enable_esd_shared
  789. enable_pulseaudio
  790. enable_pulseaudio_shared
  791. enable_arts
  792. enable_arts_shared
  793. enable_nas
  794. enable_nas_shared
  795. enable_sndio
  796. enable_sndio_shared
  797. enable_fusionsound
  798. enable_fusionsound_shared
  799. enable_diskaudio
  800. enable_dummyaudio
  801. enable_libsamplerate
  802. enable_libsamplerate_shared
  803. enable_arm_simd
  804. enable_arm_neon
  805. enable_video_wayland
  806. enable_video_wayland_qt_touch
  807. enable_wayland_shared
  808. enable_video_rpi
  809. enable_video_x11
  810. with_x
  811. enable_x11_shared
  812. enable_video_x11_xcursor
  813. enable_video_x11_xdbe
  814. enable_video_x11_xinerama
  815. enable_video_x11_xinput
  816. enable_video_x11_xrandr
  817. enable_video_x11_scrnsaver
  818. enable_video_x11_xshape
  819. enable_video_x11_vm
  820. enable_video_vivante
  821. enable_video_cocoa
  822. enable_video_metal
  823. enable_render_metal
  824. enable_video_directfb
  825. enable_directfb_shared
  826. enable_video_kmsdrm
  827. enable_kmsdrm_shared
  828. enable_video_dummy
  829. enable_video_opengl
  830. enable_video_opengles
  831. enable_video_opengles1
  832. enable_video_opengles2
  833. enable_video_vulkan
  834. enable_libudev
  835. enable_dbus
  836. enable_ime
  837. enable_ibus
  838. enable_fcitx
  839. enable_input_tslib
  840. enable_pthreads
  841. enable_pthread_sem
  842. enable_directx
  843. enable_wasapi
  844. enable_sdl_dlopen
  845. enable_hidapi
  846. enable_clock_gettime
  847. enable_rpath
  848. enable_backgrounding_signal
  849. enable_foregrounding_signal
  850. enable_joystick_virtual
  851. enable_render_d3d
  852. enable_sdl2_config
  853. '
  854. ac_precious_vars='build_alias
  855. host_alias
  856. target_alias
  857. CC
  858. CFLAGS
  859. LDFLAGS
  860. LIBS
  861. CPPFLAGS
  862. CPP
  863. CXX
  864. CXXFLAGS
  865. CCC
  866. CXXCPP
  867. PKG_CONFIG
  868. PKG_CONFIG_PATH
  869. PKG_CONFIG_LIBDIR
  870. JACK_CFLAGS
  871. JACK_LIBS
  872. PULSEAUDIO_CFLAGS
  873. PULSEAUDIO_LIBS
  874. FUSIONSOUND_CFLAGS
  875. FUSIONSOUND_LIBS
  876. RPI_CFLAGS
  877. RPI_LIBS
  878. XMKMF
  879. DIRECTFB_CFLAGS
  880. DIRECTFB_LIBS
  881. LIBDRM_CFLAGS
  882. LIBDRM_LIBS
  883. LIBGBM_CFLAGS
  884. LIBGBM_LIBS
  885. DBUS_CFLAGS
  886. DBUS_LIBS
  887. IBUS_CFLAGS
  888. IBUS_LIBS
  889. FCITX_CFLAGS
  890. FCITX_LIBS
  891. LIBUSB_CFLAGS
  892. LIBUSB_LIBS'
  893. # Initialize some variables set by options.
  894. ac_init_help=
  895. ac_init_version=false
  896. ac_unrecognized_opts=
  897. ac_unrecognized_sep=
  898. # The variables have the same names as the options, with
  899. # dashes changed to underlines.
  900. cache_file=/dev/null
  901. exec_prefix=NONE
  902. no_create=
  903. no_recursion=
  904. prefix=NONE
  905. program_prefix=NONE
  906. program_suffix=NONE
  907. program_transform_name=s,x,x,
  908. silent=
  909. site=
  910. srcdir=
  911. verbose=
  912. x_includes=NONE
  913. x_libraries=NONE
  914. # Installation directory options.
  915. # These are left unexpanded so users can "make install exec_prefix=/foo"
  916. # and all the variables that are supposed to be based on exec_prefix
  917. # by default will actually change.
  918. # Use braces instead of parens because sh, perl, etc. also accept them.
  919. # (The list follows the same order as the GNU Coding Standards.)
  920. bindir='${exec_prefix}/bin'
  921. sbindir='${exec_prefix}/sbin'
  922. libexecdir='${exec_prefix}/libexec'
  923. datarootdir='${prefix}/share'
  924. datadir='${datarootdir}'
  925. sysconfdir='${prefix}/etc'
  926. sharedstatedir='${prefix}/com'
  927. localstatedir='${prefix}/var'
  928. includedir='${prefix}/include'
  929. oldincludedir='/usr/include'
  930. docdir='${datarootdir}/doc/${PACKAGE}'
  931. infodir='${datarootdir}/info'
  932. htmldir='${docdir}'
  933. dvidir='${docdir}'
  934. pdfdir='${docdir}'
  935. psdir='${docdir}'
  936. libdir='${exec_prefix}/lib'
  937. localedir='${datarootdir}/locale'
  938. mandir='${datarootdir}/man'
  939. ac_prev=
  940. ac_dashdash=
  941. for ac_option
  942. do
  943. # If the previous option needs an argument, assign it.
  944. if test -n "$ac_prev"; then
  945. eval $ac_prev=\$ac_option
  946. ac_prev=
  947. continue
  948. fi
  949. case $ac_option in
  950. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  951. *=) ac_optarg= ;;
  952. *) ac_optarg=yes ;;
  953. esac
  954. # Accept the important Cygnus configure options, so we can diagnose typos.
  955. case $ac_dashdash$ac_option in
  956. --)
  957. ac_dashdash=yes ;;
  958. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  959. ac_prev=bindir ;;
  960. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  961. bindir=$ac_optarg ;;
  962. -build | --build | --buil | --bui | --bu)
  963. ac_prev=build_alias ;;
  964. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  965. build_alias=$ac_optarg ;;
  966. -cache-file | --cache-file | --cache-fil | --cache-fi \
  967. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  968. ac_prev=cache_file ;;
  969. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  970. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  971. cache_file=$ac_optarg ;;
  972. --config-cache | -C)
  973. cache_file=config.cache ;;
  974. -datadir | --datadir | --datadi | --datad)
  975. ac_prev=datadir ;;
  976. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  977. datadir=$ac_optarg ;;
  978. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  979. | --dataroo | --dataro | --datar)
  980. ac_prev=datarootdir ;;
  981. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  982. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  983. datarootdir=$ac_optarg ;;
  984. -disable-* | --disable-*)
  985. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  986. # Reject names that are not valid shell variable names.
  987. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  988. as_fn_error $? "invalid feature name: $ac_useropt"
  989. ac_useropt_orig=$ac_useropt
  990. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  991. case $ac_user_opts in
  992. *"
  993. "enable_$ac_useropt"
  994. "*) ;;
  995. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  996. ac_unrecognized_sep=', ';;
  997. esac
  998. eval enable_$ac_useropt=no ;;
  999. -docdir | --docdir | --docdi | --doc | --do)
  1000. ac_prev=docdir ;;
  1001. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1002. docdir=$ac_optarg ;;
  1003. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1004. ac_prev=dvidir ;;
  1005. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1006. dvidir=$ac_optarg ;;
  1007. -enable-* | --enable-*)
  1008. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1009. # Reject names that are not valid shell variable names.
  1010. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1011. as_fn_error $? "invalid feature name: $ac_useropt"
  1012. ac_useropt_orig=$ac_useropt
  1013. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1014. case $ac_user_opts in
  1015. *"
  1016. "enable_$ac_useropt"
  1017. "*) ;;
  1018. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1019. ac_unrecognized_sep=', ';;
  1020. esac
  1021. eval enable_$ac_useropt=\$ac_optarg ;;
  1022. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1023. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1024. | --exec | --exe | --ex)
  1025. ac_prev=exec_prefix ;;
  1026. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1027. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1028. | --exec=* | --exe=* | --ex=*)
  1029. exec_prefix=$ac_optarg ;;
  1030. -gas | --gas | --ga | --g)
  1031. # Obsolete; use --with-gas.
  1032. with_gas=yes ;;
  1033. -help | --help | --hel | --he | -h)
  1034. ac_init_help=long ;;
  1035. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1036. ac_init_help=recursive ;;
  1037. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1038. ac_init_help=short ;;
  1039. -host | --host | --hos | --ho)
  1040. ac_prev=host_alias ;;
  1041. -host=* | --host=* | --hos=* | --ho=*)
  1042. host_alias=$ac_optarg ;;
  1043. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1044. ac_prev=htmldir ;;
  1045. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1046. | --ht=*)
  1047. htmldir=$ac_optarg ;;
  1048. -includedir | --includedir | --includedi | --included | --include \
  1049. | --includ | --inclu | --incl | --inc)
  1050. ac_prev=includedir ;;
  1051. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1052. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1053. includedir=$ac_optarg ;;
  1054. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1055. ac_prev=infodir ;;
  1056. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1057. infodir=$ac_optarg ;;
  1058. -libdir | --libdir | --libdi | --libd)
  1059. ac_prev=libdir ;;
  1060. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1061. libdir=$ac_optarg ;;
  1062. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1063. | --libexe | --libex | --libe)
  1064. ac_prev=libexecdir ;;
  1065. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1066. | --libexe=* | --libex=* | --libe=*)
  1067. libexecdir=$ac_optarg ;;
  1068. -localedir | --localedir | --localedi | --localed | --locale)
  1069. ac_prev=localedir ;;
  1070. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1071. localedir=$ac_optarg ;;
  1072. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1073. | --localstate | --localstat | --localsta | --localst | --locals)
  1074. ac_prev=localstatedir ;;
  1075. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1076. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1077. localstatedir=$ac_optarg ;;
  1078. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1079. ac_prev=mandir ;;
  1080. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1081. mandir=$ac_optarg ;;
  1082. -nfp | --nfp | --nf)
  1083. # Obsolete; use --without-fp.
  1084. with_fp=no ;;
  1085. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1086. | --no-cr | --no-c | -n)
  1087. no_create=yes ;;
  1088. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1089. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1090. no_recursion=yes ;;
  1091. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1092. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1093. | --oldin | --oldi | --old | --ol | --o)
  1094. ac_prev=oldincludedir ;;
  1095. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1096. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1097. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1098. oldincludedir=$ac_optarg ;;
  1099. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1100. ac_prev=prefix ;;
  1101. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1102. prefix=$ac_optarg ;;
  1103. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1104. | --program-pre | --program-pr | --program-p)
  1105. ac_prev=program_prefix ;;
  1106. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1107. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1108. program_prefix=$ac_optarg ;;
  1109. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1110. | --program-suf | --program-su | --program-s)
  1111. ac_prev=program_suffix ;;
  1112. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1113. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1114. program_suffix=$ac_optarg ;;
  1115. -program-transform-name | --program-transform-name \
  1116. | --program-transform-nam | --program-transform-na \
  1117. | --program-transform-n | --program-transform- \
  1118. | --program-transform | --program-transfor \
  1119. | --program-transfo | --program-transf \
  1120. | --program-trans | --program-tran \
  1121. | --progr-tra | --program-tr | --program-t)
  1122. ac_prev=program_transform_name ;;
  1123. -program-transform-name=* | --program-transform-name=* \
  1124. | --program-transform-nam=* | --program-transform-na=* \
  1125. | --program-transform-n=* | --program-transform-=* \
  1126. | --program-transform=* | --program-transfor=* \
  1127. | --program-transfo=* | --program-transf=* \
  1128. | --program-trans=* | --program-tran=* \
  1129. | --progr-tra=* | --program-tr=* | --program-t=*)
  1130. program_transform_name=$ac_optarg ;;
  1131. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1132. ac_prev=pdfdir ;;
  1133. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1134. pdfdir=$ac_optarg ;;
  1135. -psdir | --psdir | --psdi | --psd | --ps)
  1136. ac_prev=psdir ;;
  1137. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1138. psdir=$ac_optarg ;;
  1139. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1140. | -silent | --silent | --silen | --sile | --sil)
  1141. silent=yes ;;
  1142. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1143. ac_prev=sbindir ;;
  1144. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1145. | --sbi=* | --sb=*)
  1146. sbindir=$ac_optarg ;;
  1147. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1148. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1149. | --sharedst | --shareds | --shared | --share | --shar \
  1150. | --sha | --sh)
  1151. ac_prev=sharedstatedir ;;
  1152. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1153. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1154. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1155. | --sha=* | --sh=*)
  1156. sharedstatedir=$ac_optarg ;;
  1157. -site | --site | --sit)
  1158. ac_prev=site ;;
  1159. -site=* | --site=* | --sit=*)
  1160. site=$ac_optarg ;;
  1161. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1162. ac_prev=srcdir ;;
  1163. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1164. srcdir=$ac_optarg ;;
  1165. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1166. | --syscon | --sysco | --sysc | --sys | --sy)
  1167. ac_prev=sysconfdir ;;
  1168. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1169. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1170. sysconfdir=$ac_optarg ;;
  1171. -target | --target | --targe | --targ | --tar | --ta | --t)
  1172. ac_prev=target_alias ;;
  1173. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1174. target_alias=$ac_optarg ;;
  1175. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1176. verbose=yes ;;
  1177. -version | --version | --versio | --versi | --vers | -V)
  1178. ac_init_version=: ;;
  1179. -with-* | --with-*)
  1180. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1181. # Reject names that are not valid shell variable names.
  1182. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1183. as_fn_error $? "invalid package name: $ac_useropt"
  1184. ac_useropt_orig=$ac_useropt
  1185. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1186. case $ac_user_opts in
  1187. *"
  1188. "with_$ac_useropt"
  1189. "*) ;;
  1190. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1191. ac_unrecognized_sep=', ';;
  1192. esac
  1193. eval with_$ac_useropt=\$ac_optarg ;;
  1194. -without-* | --without-*)
  1195. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1196. # Reject names that are not valid shell variable names.
  1197. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1198. as_fn_error $? "invalid package name: $ac_useropt"
  1199. ac_useropt_orig=$ac_useropt
  1200. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1201. case $ac_user_opts in
  1202. *"
  1203. "with_$ac_useropt"
  1204. "*) ;;
  1205. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1206. ac_unrecognized_sep=', ';;
  1207. esac
  1208. eval with_$ac_useropt=no ;;
  1209. --x)
  1210. # Obsolete; use --with-x.
  1211. with_x=yes ;;
  1212. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1213. | --x-incl | --x-inc | --x-in | --x-i)
  1214. ac_prev=x_includes ;;
  1215. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1216. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1217. x_includes=$ac_optarg ;;
  1218. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1219. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1220. ac_prev=x_libraries ;;
  1221. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1222. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1223. x_libraries=$ac_optarg ;;
  1224. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1225. Try \`$0 --help' for more information"
  1226. ;;
  1227. *=*)
  1228. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1229. # Reject names that are not valid shell variable names.
  1230. case $ac_envvar in #(
  1231. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1232. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1233. esac
  1234. eval $ac_envvar=\$ac_optarg
  1235. export $ac_envvar ;;
  1236. *)
  1237. # FIXME: should be removed in autoconf 3.0.
  1238. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1239. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1240. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1241. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1242. ;;
  1243. esac
  1244. done
  1245. if test -n "$ac_prev"; then
  1246. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1247. as_fn_error $? "missing argument to $ac_option"
  1248. fi
  1249. if test -n "$ac_unrecognized_opts"; then
  1250. case $enable_option_checking in
  1251. no) ;;
  1252. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1253. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1254. esac
  1255. fi
  1256. # Check all directory arguments for consistency.
  1257. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1258. datadir sysconfdir sharedstatedir localstatedir includedir \
  1259. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1260. libdir localedir mandir
  1261. do
  1262. eval ac_val=\$$ac_var
  1263. # Remove trailing slashes.
  1264. case $ac_val in
  1265. */ )
  1266. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1267. eval $ac_var=\$ac_val;;
  1268. esac
  1269. # Be sure to have absolute directory names.
  1270. case $ac_val in
  1271. [\\/$]* | ?:[\\/]* ) continue;;
  1272. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1273. esac
  1274. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1275. done
  1276. # There might be people who depend on the old broken behavior: `$host'
  1277. # used to hold the argument of --host etc.
  1278. # FIXME: To remove some day.
  1279. build=$build_alias
  1280. host=$host_alias
  1281. target=$target_alias
  1282. # FIXME: To remove some day.
  1283. if test "x$host_alias" != x; then
  1284. if test "x$build_alias" = x; then
  1285. cross_compiling=maybe
  1286. elif test "x$build_alias" != "x$host_alias"; then
  1287. cross_compiling=yes
  1288. fi
  1289. fi
  1290. ac_tool_prefix=
  1291. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1292. test "$silent" = yes && exec 6>/dev/null
  1293. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1294. ac_ls_di=`ls -di .` &&
  1295. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1296. as_fn_error $? "working directory cannot be determined"
  1297. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1298. as_fn_error $? "pwd does not report name of working directory"
  1299. # Find the source files, if location was not specified.
  1300. if test -z "$srcdir"; then
  1301. ac_srcdir_defaulted=yes
  1302. # Try the directory containing this script, then the parent directory.
  1303. ac_confdir=`$as_dirname -- "$as_myself" ||
  1304. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1305. X"$as_myself" : 'X\(//\)[^/]' \| \
  1306. X"$as_myself" : 'X\(//\)$' \| \
  1307. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1308. $as_echo X"$as_myself" |
  1309. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1310. s//\1/
  1311. q
  1312. }
  1313. /^X\(\/\/\)[^/].*/{
  1314. s//\1/
  1315. q
  1316. }
  1317. /^X\(\/\/\)$/{
  1318. s//\1/
  1319. q
  1320. }
  1321. /^X\(\/\).*/{
  1322. s//\1/
  1323. q
  1324. }
  1325. s/.*/./; q'`
  1326. srcdir=$ac_confdir
  1327. if test ! -r "$srcdir/$ac_unique_file"; then
  1328. srcdir=..
  1329. fi
  1330. else
  1331. ac_srcdir_defaulted=no
  1332. fi
  1333. if test ! -r "$srcdir/$ac_unique_file"; then
  1334. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1335. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1336. fi
  1337. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1338. ac_abs_confdir=`(
  1339. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1340. pwd)`
  1341. # When building in place, set srcdir=.
  1342. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1343. srcdir=.
  1344. fi
  1345. # Remove unnecessary trailing slashes from srcdir.
  1346. # Double slashes in file names in object file debugging info
  1347. # mess up M-x gdb in Emacs.
  1348. case $srcdir in
  1349. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1350. esac
  1351. for ac_var in $ac_precious_vars; do
  1352. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1353. eval ac_env_${ac_var}_value=\$${ac_var}
  1354. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1355. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1356. done
  1357. #
  1358. # Report the --help message.
  1359. #
  1360. if test "$ac_init_help" = "long"; then
  1361. # Omit some internal or obsolete options to make the list less imposing.
  1362. # This message is too long to be a string in the A/UX 3.1 sh.
  1363. cat <<_ACEOF
  1364. \`configure' configures this package to adapt to many kinds of systems.
  1365. Usage: $0 [OPTION]... [VAR=VALUE]...
  1366. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1367. VAR=VALUE. See below for descriptions of some of the useful variables.
  1368. Defaults for the options are specified in brackets.
  1369. Configuration:
  1370. -h, --help display this help and exit
  1371. --help=short display options specific to this package
  1372. --help=recursive display the short help of all the included packages
  1373. -V, --version display version information and exit
  1374. -q, --quiet, --silent do not print \`checking ...' messages
  1375. --cache-file=FILE cache test results in FILE [disabled]
  1376. -C, --config-cache alias for \`--cache-file=config.cache'
  1377. -n, --no-create do not create output files
  1378. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1379. Installation directories:
  1380. --prefix=PREFIX install architecture-independent files in PREFIX
  1381. [$ac_default_prefix]
  1382. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1383. [PREFIX]
  1384. By default, \`make install' will install all the files in
  1385. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1386. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1387. for instance \`--prefix=\$HOME'.
  1388. For better control, use the options below.
  1389. Fine tuning of the installation directories:
  1390. --bindir=DIR user executables [EPREFIX/bin]
  1391. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1392. --libexecdir=DIR program executables [EPREFIX/libexec]
  1393. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1394. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1395. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1396. --libdir=DIR object code libraries [EPREFIX/lib]
  1397. --includedir=DIR C header files [PREFIX/include]
  1398. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1399. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1400. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1401. --infodir=DIR info documentation [DATAROOTDIR/info]
  1402. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1403. --mandir=DIR man documentation [DATAROOTDIR/man]
  1404. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1405. --htmldir=DIR html documentation [DOCDIR]
  1406. --dvidir=DIR dvi documentation [DOCDIR]
  1407. --pdfdir=DIR pdf documentation [DOCDIR]
  1408. --psdir=DIR ps documentation [DOCDIR]
  1409. _ACEOF
  1410. cat <<\_ACEOF
  1411. X features:
  1412. --x-includes=DIR X include files are in DIR
  1413. --x-libraries=DIR X library files are in DIR
  1414. System types:
  1415. --build=BUILD configure for building on BUILD [guessed]
  1416. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1417. _ACEOF
  1418. fi
  1419. if test -n "$ac_init_help"; then
  1420. cat <<\_ACEOF
  1421. Optional Features:
  1422. --disable-option-checking ignore unrecognized --enable/--with options
  1423. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1424. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1425. --enable-shared[=PKGS] build shared libraries [default=yes]
  1426. --enable-static[=PKGS] build static libraries [default=yes]
  1427. --enable-fast-install[=PKGS]
  1428. optimize for fast installation [default=yes]
  1429. --disable-libtool-lock avoid locking (might break parallel builds)
  1430. --enable-assertions Enable internal sanity checks
  1431. (auto/disabled/release/enabled/paranoid)
  1432. [[default=auto]]
  1433. --enable-dependency-tracking
  1434. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1435. --enable-libc Use the system C library [[default=yes]]
  1436. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1437. --enable-atomic Enable the atomic operations subsystem
  1438. [[default=yes]]
  1439. --enable-audio Enable the audio subsystem [[default=yes]]
  1440. --enable-video Enable the video subsystem [[default=yes]]
  1441. --enable-render Enable the render subsystem [[default=yes]]
  1442. --enable-events Enable the events subsystem [[default=yes]]
  1443. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1444. --enable-haptic Enable the haptic (force feedback) subsystem
  1445. [[default=yes]]
  1446. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1447. --enable-power Enable the power subsystem [[default=yes]]
  1448. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1449. --enable-threads Enable the threading subsystem [[default=yes]]
  1450. --enable-timers Enable the timer subsystem [[default=yes]]
  1451. --enable-file Enable the file subsystem [[default=yes]]
  1452. --enable-loadso Enable the shared object loading subsystem
  1453. [[default=yes]]
  1454. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1455. --enable-assembly Enable assembly routines [[default=yes]]
  1456. --enable-ssemath Allow GCC to use SSE floating point math
  1457. [[default=maybe]]
  1458. --enable-mmx use MMX assembly routines [[default=yes]]
  1459. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1460. --enable-sse use SSE assembly routines [[default=yes]]
  1461. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1462. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1463. --enable-altivec use Altivec assembly routines [[default=yes]]
  1464. --enable-oss support the OSS audio API [[default=maybe]]
  1465. --enable-alsa support the ALSA audio API [[default=yes]]
  1466. --disable-alsatest Do not try to compile and run a test Alsa program
  1467. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1468. --enable-jack use JACK audio [[default=yes]]
  1469. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1470. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1471. --disable-esdtest Do not try to compile and run a test ESD program
  1472. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1473. --enable-pulseaudio use PulseAudio [[default=yes]]
  1474. --enable-pulseaudio-shared
  1475. dynamically load PulseAudio support [[default=yes]]
  1476. --enable-arts support the Analog Real Time Synthesizer
  1477. [[default=yes]]
  1478. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1479. --enable-nas support the NAS audio API [[default=yes]]
  1480. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1481. --enable-sndio support the sndio audio API [[default=yes]]
  1482. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1483. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1484. --enable-fusionsound-shared
  1485. dynamically load fusionsound audio support
  1486. [[default=yes]]
  1487. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1488. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1489. --enable-libsamplerate use libsamplerate for audio rate conversion
  1490. [[default=yes]]
  1491. --enable-libsamplerate-shared
  1492. dynamically load libsamplerate [[default=yes]]
  1493. --enable-arm-simd use SIMD assembly blitters on ARM [[default=yes]]
  1494. --enable-arm-neon use NEON assembly blitters on ARM [[default=no]]
  1495. --enable-video-wayland use Wayland video driver [[default=yes]]
  1496. --enable-video-wayland-qt-touch
  1497. QtWayland server support for Wayland video driver
  1498. [[default=yes]]
  1499. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1500. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1501. --enable-video-x11 use X11 video driver [[default=yes]]
  1502. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1503. --enable-video-x11-xcursor
  1504. enable X11 Xcursor support [[default=yes]]
  1505. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1506. --enable-video-x11-xinerama
  1507. enable X11 Xinerama support [[default=yes]]
  1508. --enable-video-x11-xinput
  1509. enable X11 XInput extension for manymouse, tablets,
  1510. etc [[default=yes]]
  1511. --enable-video-x11-xrandr
  1512. enable X11 Xrandr extension for fullscreen
  1513. [[default=yes]]
  1514. --enable-video-x11-scrnsaver
  1515. enable X11 screensaver extension [[default=yes]]
  1516. --enable-video-x11-xshape
  1517. enable X11 XShape support [[default=yes]]
  1518. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1519. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1520. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1521. --enable-video-metal include Metal support [[default=yes]]
  1522. --enable-render-metal enable the Metal render driver [[default=yes]]
  1523. --enable-video-directfb use DirectFB video driver [[default=no]]
  1524. --enable-directfb-shared
  1525. dynamically load directfb support [[default=yes]]
  1526. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1527. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1528. --enable-video-dummy use dummy video driver [[default=yes]]
  1529. --enable-video-opengl include OpenGL support [[default=yes]]
  1530. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1531. --enable-video-opengles1
  1532. include OpenGL ES 1.1 support [[default=yes]]
  1533. --enable-video-opengles2
  1534. include OpenGL ES 2.0 support [[default=yes]]
  1535. --enable-video-vulkan include Vulkan support [[default=yes]]
  1536. --enable-libudev enable libudev support [[default=yes]]
  1537. --enable-dbus enable D-Bus support [[default=yes]]
  1538. --enable-ime enable IME support [[default=yes]]
  1539. --enable-ibus enable IBus support [[default=yes]]
  1540. --enable-fcitx enable fcitx support [[default=yes]]
  1541. --enable-input-tslib use the Touchscreen library for input
  1542. [[default=yes]]
  1543. --enable-pthreads use POSIX threads for multi-threading
  1544. [[default=yes]]
  1545. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1546. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1547. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1548. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1549. --enable-hidapi use HIDAPI for low level joystick drivers
  1550. [[default=no]]
  1551. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1552. UNIX [[default=yes]]
  1553. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1554. --enable-backgrounding-signal
  1555. number to use for magic backgrounding signal or 'no'
  1556. [[default=no]]
  1557. --enable-foregrounding-signal
  1558. number to use for magic foregrounding signal or 'no'
  1559. [[default=no]]
  1560. --enable-joystick-virtual
  1561. enable virtual joystick APIs [[default=no]]
  1562. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1563. --enable-sdl2-config Install sdl2-config [default=yes]
  1564. Optional Packages:
  1565. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1566. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1567. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1568. both]
  1569. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1570. --with-sysroot=DIR Search for dependent libraries within DIR
  1571. (or the compiler's sysroot if not specified).
  1572. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1573. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1574. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1575. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1576. --with-x use the X Window System
  1577. Some influential environment variables:
  1578. CC C compiler command
  1579. CFLAGS C compiler flags
  1580. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1581. nonstandard directory <lib dir>
  1582. LIBS libraries to pass to the linker, e.g. -l<library>
  1583. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1584. you have headers in a nonstandard directory <include dir>
  1585. CPP C preprocessor
  1586. CXX C++ compiler command
  1587. CXXFLAGS C++ compiler flags
  1588. CXXCPP C++ preprocessor
  1589. PKG_CONFIG path to pkg-config utility
  1590. PKG_CONFIG_PATH
  1591. directories to add to pkg-config's search path
  1592. PKG_CONFIG_LIBDIR
  1593. path overriding pkg-config's built-in search path
  1594. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1595. JACK_LIBS linker flags for JACK, overriding pkg-config
  1596. PULSEAUDIO_CFLAGS
  1597. C compiler flags for PULSEAUDIO, overriding pkg-config
  1598. PULSEAUDIO_LIBS
  1599. linker flags for PULSEAUDIO, overriding pkg-config
  1600. FUSIONSOUND_CFLAGS
  1601. C compiler flags for FUSIONSOUND, overriding pkg-config
  1602. FUSIONSOUND_LIBS
  1603. linker flags for FUSIONSOUND, overriding pkg-config
  1604. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1605. RPI_LIBS linker flags for RPI, overriding pkg-config
  1606. XMKMF Path to xmkmf, Makefile generator for X Window System
  1607. DIRECTFB_CFLAGS
  1608. C compiler flags for DIRECTFB, overriding pkg-config
  1609. DIRECTFB_LIBS
  1610. linker flags for DIRECTFB, overriding pkg-config
  1611. LIBDRM_CFLAGS
  1612. C compiler flags for LIBDRM, overriding pkg-config
  1613. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1614. LIBGBM_CFLAGS
  1615. C compiler flags for LIBGBM, overriding pkg-config
  1616. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1617. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1618. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1619. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1620. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1621. FCITX_CFLAGS
  1622. C compiler flags for FCITX, overriding pkg-config
  1623. FCITX_LIBS linker flags for FCITX, overriding pkg-config
  1624. LIBUSB_CFLAGS
  1625. C compiler flags for LIBUSB, overriding pkg-config
  1626. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1627. Use these variables to override the choices made by `configure' or to help
  1628. it to find libraries and programs with nonstandard names/locations.
  1629. Report bugs to the package provider.
  1630. _ACEOF
  1631. ac_status=$?
  1632. fi
  1633. if test "$ac_init_help" = "recursive"; then
  1634. # If there are subdirs, report their specific --help.
  1635. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1636. test -d "$ac_dir" ||
  1637. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1638. continue
  1639. ac_builddir=.
  1640. case "$ac_dir" in
  1641. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1642. *)
  1643. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1644. # A ".." for each directory in $ac_dir_suffix.
  1645. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1646. case $ac_top_builddir_sub in
  1647. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1648. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1649. esac ;;
  1650. esac
  1651. ac_abs_top_builddir=$ac_pwd
  1652. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1653. # for backward compatibility:
  1654. ac_top_builddir=$ac_top_build_prefix
  1655. case $srcdir in
  1656. .) # We are building in place.
  1657. ac_srcdir=.
  1658. ac_top_srcdir=$ac_top_builddir_sub
  1659. ac_abs_top_srcdir=$ac_pwd ;;
  1660. [\\/]* | ?:[\\/]* ) # Absolute name.
  1661. ac_srcdir=$srcdir$ac_dir_suffix;
  1662. ac_top_srcdir=$srcdir
  1663. ac_abs_top_srcdir=$srcdir ;;
  1664. *) # Relative name.
  1665. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1666. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1667. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1668. esac
  1669. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1670. cd "$ac_dir" || { ac_status=$?; continue; }
  1671. # Check for guested configure.
  1672. if test -f "$ac_srcdir/configure.gnu"; then
  1673. echo &&
  1674. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1675. elif test -f "$ac_srcdir/configure"; then
  1676. echo &&
  1677. $SHELL "$ac_srcdir/configure" --help=recursive
  1678. else
  1679. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1680. fi || ac_status=$?
  1681. cd "$ac_pwd" || { ac_status=$?; break; }
  1682. done
  1683. fi
  1684. test -n "$ac_init_help" && exit $ac_status
  1685. if $ac_init_version; then
  1686. cat <<\_ACEOF
  1687. configure
  1688. generated by GNU Autoconf 2.69
  1689. Copyright (C) 2012 Free Software Foundation, Inc.
  1690. This configure script is free software; the Free Software Foundation
  1691. gives unlimited permission to copy, distribute and modify it.
  1692. _ACEOF
  1693. exit
  1694. fi
  1695. ## ------------------------ ##
  1696. ## Autoconf initialization. ##
  1697. ## ------------------------ ##
  1698. # ac_fn_c_try_compile LINENO
  1699. # --------------------------
  1700. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1701. ac_fn_c_try_compile ()
  1702. {
  1703. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1704. rm -f conftest.$ac_objext
  1705. if { { ac_try="$ac_compile"
  1706. case "(($ac_try" in
  1707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1708. *) ac_try_echo=$ac_try;;
  1709. esac
  1710. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1711. $as_echo "$ac_try_echo"; } >&5
  1712. (eval "$ac_compile") 2>conftest.err
  1713. ac_status=$?
  1714. if test -s conftest.err; then
  1715. grep -v '^ *+' conftest.err >conftest.er1
  1716. cat conftest.er1 >&5
  1717. mv -f conftest.er1 conftest.err
  1718. fi
  1719. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1720. test $ac_status = 0; } && {
  1721. test -z "$ac_c_werror_flag" ||
  1722. test ! -s conftest.err
  1723. } && test -s conftest.$ac_objext; then :
  1724. ac_retval=0
  1725. else
  1726. $as_echo "$as_me: failed program was:" >&5
  1727. sed 's/^/| /' conftest.$ac_ext >&5
  1728. ac_retval=1
  1729. fi
  1730. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1731. as_fn_set_status $ac_retval
  1732. } # ac_fn_c_try_compile
  1733. # ac_fn_c_try_link LINENO
  1734. # -----------------------
  1735. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1736. ac_fn_c_try_link ()
  1737. {
  1738. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1739. rm -f conftest.$ac_objext conftest$ac_exeext
  1740. if { { ac_try="$ac_link"
  1741. case "(($ac_try" in
  1742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1743. *) ac_try_echo=$ac_try;;
  1744. esac
  1745. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1746. $as_echo "$ac_try_echo"; } >&5
  1747. (eval "$ac_link") 2>conftest.err
  1748. ac_status=$?
  1749. if test -s conftest.err; then
  1750. grep -v '^ *+' conftest.err >conftest.er1
  1751. cat conftest.er1 >&5
  1752. mv -f conftest.er1 conftest.err
  1753. fi
  1754. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1755. test $ac_status = 0; } && {
  1756. test -z "$ac_c_werror_flag" ||
  1757. test ! -s conftest.err
  1758. } && test -s conftest$ac_exeext && {
  1759. test "$cross_compiling" = yes ||
  1760. test -x conftest$ac_exeext
  1761. }; then :
  1762. ac_retval=0
  1763. else
  1764. $as_echo "$as_me: failed program was:" >&5
  1765. sed 's/^/| /' conftest.$ac_ext >&5
  1766. ac_retval=1
  1767. fi
  1768. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1769. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1770. # interfere with the next link command; also delete a directory that is
  1771. # left behind by Apple's compiler. We do this before executing the actions.
  1772. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1773. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1774. as_fn_set_status $ac_retval
  1775. } # ac_fn_c_try_link
  1776. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1777. # -------------------------------------------------------
  1778. # Tests whether HEADER exists and can be compiled using the include files in
  1779. # INCLUDES, setting the cache variable VAR accordingly.
  1780. ac_fn_c_check_header_compile ()
  1781. {
  1782. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1784. $as_echo_n "checking for $2... " >&6; }
  1785. if eval \${$3+:} false; then :
  1786. $as_echo_n "(cached) " >&6
  1787. else
  1788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1789. /* end confdefs.h. */
  1790. $4
  1791. #include <$2>
  1792. _ACEOF
  1793. if ac_fn_c_try_compile "$LINENO"; then :
  1794. eval "$3=yes"
  1795. else
  1796. eval "$3=no"
  1797. fi
  1798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1799. fi
  1800. eval ac_res=\$$3
  1801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1802. $as_echo "$ac_res" >&6; }
  1803. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1804. } # ac_fn_c_check_header_compile
  1805. # ac_fn_c_try_cpp LINENO
  1806. # ----------------------
  1807. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1808. ac_fn_c_try_cpp ()
  1809. {
  1810. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1811. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1812. case "(($ac_try" in
  1813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1814. *) ac_try_echo=$ac_try;;
  1815. esac
  1816. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1817. $as_echo "$ac_try_echo"; } >&5
  1818. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1819. ac_status=$?
  1820. if test -s conftest.err; then
  1821. grep -v '^ *+' conftest.err >conftest.er1
  1822. cat conftest.er1 >&5
  1823. mv -f conftest.er1 conftest.err
  1824. fi
  1825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1826. test $ac_status = 0; } > conftest.i && {
  1827. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1828. test ! -s conftest.err
  1829. }; then :
  1830. ac_retval=0
  1831. else
  1832. $as_echo "$as_me: failed program was:" >&5
  1833. sed 's/^/| /' conftest.$ac_ext >&5
  1834. ac_retval=1
  1835. fi
  1836. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1837. as_fn_set_status $ac_retval
  1838. } # ac_fn_c_try_cpp
  1839. # ac_fn_c_try_run LINENO
  1840. # ----------------------
  1841. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1842. # that executables *can* be run.
  1843. ac_fn_c_try_run ()
  1844. {
  1845. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1846. if { { ac_try="$ac_link"
  1847. case "(($ac_try" in
  1848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1849. *) ac_try_echo=$ac_try;;
  1850. esac
  1851. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1852. $as_echo "$ac_try_echo"; } >&5
  1853. (eval "$ac_link") 2>&5
  1854. ac_status=$?
  1855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1856. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1857. { { case "(($ac_try" in
  1858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1859. *) ac_try_echo=$ac_try;;
  1860. esac
  1861. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1862. $as_echo "$ac_try_echo"; } >&5
  1863. (eval "$ac_try") 2>&5
  1864. ac_status=$?
  1865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1866. test $ac_status = 0; }; }; then :
  1867. ac_retval=0
  1868. else
  1869. $as_echo "$as_me: program exited with status $ac_status" >&5
  1870. $as_echo "$as_me: failed program was:" >&5
  1871. sed 's/^/| /' conftest.$ac_ext >&5
  1872. ac_retval=$ac_status
  1873. fi
  1874. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1875. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1876. as_fn_set_status $ac_retval
  1877. } # ac_fn_c_try_run
  1878. # ac_fn_c_check_func LINENO FUNC VAR
  1879. # ----------------------------------
  1880. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1881. ac_fn_c_check_func ()
  1882. {
  1883. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1885. $as_echo_n "checking for $2... " >&6; }
  1886. if eval \${$3+:} false; then :
  1887. $as_echo_n "(cached) " >&6
  1888. else
  1889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1890. /* end confdefs.h. */
  1891. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1892. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1893. #define $2 innocuous_$2
  1894. /* System header to define __stub macros and hopefully few prototypes,
  1895. which can conflict with char $2 (); below.
  1896. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1897. <limits.h> exists even on freestanding compilers. */
  1898. #ifdef __STDC__
  1899. # include <limits.h>
  1900. #else
  1901. # include <assert.h>
  1902. #endif
  1903. #undef $2
  1904. /* Override any GCC internal prototype to avoid an error.
  1905. Use char because int might match the return type of a GCC
  1906. builtin and then its argument prototype would still apply. */
  1907. #ifdef __cplusplus
  1908. extern "C"
  1909. #endif
  1910. char $2 ();
  1911. /* The GNU C library defines this for functions which it implements
  1912. to always fail with ENOSYS. Some functions are actually named
  1913. something starting with __ and the normal name is an alias. */
  1914. #if defined __stub_$2 || defined __stub___$2
  1915. choke me
  1916. #endif
  1917. int
  1918. main ()
  1919. {
  1920. return $2 ();
  1921. ;
  1922. return 0;
  1923. }
  1924. _ACEOF
  1925. if ac_fn_c_try_link "$LINENO"; then :
  1926. eval "$3=yes"
  1927. else
  1928. eval "$3=no"
  1929. fi
  1930. rm -f core conftest.err conftest.$ac_objext \
  1931. conftest$ac_exeext conftest.$ac_ext
  1932. fi
  1933. eval ac_res=\$$3
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1935. $as_echo "$ac_res" >&6; }
  1936. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1937. } # ac_fn_c_check_func
  1938. # ac_fn_cxx_try_compile LINENO
  1939. # ----------------------------
  1940. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1941. ac_fn_cxx_try_compile ()
  1942. {
  1943. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1944. rm -f conftest.$ac_objext
  1945. if { { ac_try="$ac_compile"
  1946. case "(($ac_try" in
  1947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1948. *) ac_try_echo=$ac_try;;
  1949. esac
  1950. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1951. $as_echo "$ac_try_echo"; } >&5
  1952. (eval "$ac_compile") 2>conftest.err
  1953. ac_status=$?
  1954. if test -s conftest.err; then
  1955. grep -v '^ *+' conftest.err >conftest.er1
  1956. cat conftest.er1 >&5
  1957. mv -f conftest.er1 conftest.err
  1958. fi
  1959. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1960. test $ac_status = 0; } && {
  1961. test -z "$ac_cxx_werror_flag" ||
  1962. test ! -s conftest.err
  1963. } && test -s conftest.$ac_objext; then :
  1964. ac_retval=0
  1965. else
  1966. $as_echo "$as_me: failed program was:" >&5
  1967. sed 's/^/| /' conftest.$ac_ext >&5
  1968. ac_retval=1
  1969. fi
  1970. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1971. as_fn_set_status $ac_retval
  1972. } # ac_fn_cxx_try_compile
  1973. # ac_fn_cxx_try_cpp LINENO
  1974. # ------------------------
  1975. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1976. ac_fn_cxx_try_cpp ()
  1977. {
  1978. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1979. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1980. case "(($ac_try" in
  1981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1982. *) ac_try_echo=$ac_try;;
  1983. esac
  1984. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1985. $as_echo "$ac_try_echo"; } >&5
  1986. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1987. ac_status=$?
  1988. if test -s conftest.err; then
  1989. grep -v '^ *+' conftest.err >conftest.er1
  1990. cat conftest.er1 >&5
  1991. mv -f conftest.er1 conftest.err
  1992. fi
  1993. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1994. test $ac_status = 0; } > conftest.i && {
  1995. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1996. test ! -s conftest.err
  1997. }; then :
  1998. ac_retval=0
  1999. else
  2000. $as_echo "$as_me: failed program was:" >&5
  2001. sed 's/^/| /' conftest.$ac_ext >&5
  2002. ac_retval=1
  2003. fi
  2004. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2005. as_fn_set_status $ac_retval
  2006. } # ac_fn_cxx_try_cpp
  2007. # ac_fn_cxx_try_link LINENO
  2008. # -------------------------
  2009. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2010. ac_fn_cxx_try_link ()
  2011. {
  2012. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2013. rm -f conftest.$ac_objext conftest$ac_exeext
  2014. if { { ac_try="$ac_link"
  2015. case "(($ac_try" in
  2016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2017. *) ac_try_echo=$ac_try;;
  2018. esac
  2019. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2020. $as_echo "$ac_try_echo"; } >&5
  2021. (eval "$ac_link") 2>conftest.err
  2022. ac_status=$?
  2023. if test -s conftest.err; then
  2024. grep -v '^ *+' conftest.err >conftest.er1
  2025. cat conftest.er1 >&5
  2026. mv -f conftest.er1 conftest.err
  2027. fi
  2028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2029. test $ac_status = 0; } && {
  2030. test -z "$ac_cxx_werror_flag" ||
  2031. test ! -s conftest.err
  2032. } && test -s conftest$ac_exeext && {
  2033. test "$cross_compiling" = yes ||
  2034. test -x conftest$ac_exeext
  2035. }; then :
  2036. ac_retval=0
  2037. else
  2038. $as_echo "$as_me: failed program was:" >&5
  2039. sed 's/^/| /' conftest.$ac_ext >&5
  2040. ac_retval=1
  2041. fi
  2042. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2043. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2044. # interfere with the next link command; also delete a directory that is
  2045. # left behind by Apple's compiler. We do this before executing the actions.
  2046. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2047. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2048. as_fn_set_status $ac_retval
  2049. } # ac_fn_cxx_try_link
  2050. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2051. # -------------------------------------------------------
  2052. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2053. # the include files in INCLUDES and setting the cache variable VAR
  2054. # accordingly.
  2055. ac_fn_c_check_header_mongrel ()
  2056. {
  2057. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2058. if eval \${$3+:} false; then :
  2059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2060. $as_echo_n "checking for $2... " >&6; }
  2061. if eval \${$3+:} false; then :
  2062. $as_echo_n "(cached) " >&6
  2063. fi
  2064. eval ac_res=\$$3
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2066. $as_echo "$ac_res" >&6; }
  2067. else
  2068. # Is the header compilable?
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2070. $as_echo_n "checking $2 usability... " >&6; }
  2071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2072. /* end confdefs.h. */
  2073. $4
  2074. #include <$2>
  2075. _ACEOF
  2076. if ac_fn_c_try_compile "$LINENO"; then :
  2077. ac_header_compiler=yes
  2078. else
  2079. ac_header_compiler=no
  2080. fi
  2081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2083. $as_echo "$ac_header_compiler" >&6; }
  2084. # Is the header present?
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2086. $as_echo_n "checking $2 presence... " >&6; }
  2087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2088. /* end confdefs.h. */
  2089. #include <$2>
  2090. _ACEOF
  2091. if ac_fn_c_try_cpp "$LINENO"; then :
  2092. ac_header_preproc=yes
  2093. else
  2094. ac_header_preproc=no
  2095. fi
  2096. rm -f conftest.err conftest.i conftest.$ac_ext
  2097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2098. $as_echo "$ac_header_preproc" >&6; }
  2099. # So? What about this header?
  2100. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2101. yes:no: )
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2103. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2105. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2106. ;;
  2107. no:yes:* )
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2109. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2111. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2113. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2115. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2117. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2118. ;;
  2119. esac
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2121. $as_echo_n "checking for $2... " >&6; }
  2122. if eval \${$3+:} false; then :
  2123. $as_echo_n "(cached) " >&6
  2124. else
  2125. eval "$3=\$ac_header_compiler"
  2126. fi
  2127. eval ac_res=\$$3
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2129. $as_echo "$ac_res" >&6; }
  2130. fi
  2131. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2132. } # ac_fn_c_check_header_mongrel
  2133. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2134. # -------------------------------------------
  2135. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2136. # variable VAR accordingly.
  2137. ac_fn_c_check_type ()
  2138. {
  2139. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2141. $as_echo_n "checking for $2... " >&6; }
  2142. if eval \${$3+:} false; then :
  2143. $as_echo_n "(cached) " >&6
  2144. else
  2145. eval "$3=no"
  2146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2147. /* end confdefs.h. */
  2148. $4
  2149. int
  2150. main ()
  2151. {
  2152. if (sizeof ($2))
  2153. return 0;
  2154. ;
  2155. return 0;
  2156. }
  2157. _ACEOF
  2158. if ac_fn_c_try_compile "$LINENO"; then :
  2159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2160. /* end confdefs.h. */
  2161. $4
  2162. int
  2163. main ()
  2164. {
  2165. if (sizeof (($2)))
  2166. return 0;
  2167. ;
  2168. return 0;
  2169. }
  2170. _ACEOF
  2171. if ac_fn_c_try_compile "$LINENO"; then :
  2172. else
  2173. eval "$3=yes"
  2174. fi
  2175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2176. fi
  2177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2178. fi
  2179. eval ac_res=\$$3
  2180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2181. $as_echo "$ac_res" >&6; }
  2182. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2183. } # ac_fn_c_check_type
  2184. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2185. # ----------------------------------------------------
  2186. # Tries to find if the field MEMBER exists in type AGGR, after including
  2187. # INCLUDES, setting cache variable VAR accordingly.
  2188. ac_fn_c_check_member ()
  2189. {
  2190. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2192. $as_echo_n "checking for $2.$3... " >&6; }
  2193. if eval \${$4+:} false; then :
  2194. $as_echo_n "(cached) " >&6
  2195. else
  2196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2197. /* end confdefs.h. */
  2198. $5
  2199. int
  2200. main ()
  2201. {
  2202. static $2 ac_aggr;
  2203. if (ac_aggr.$3)
  2204. return 0;
  2205. ;
  2206. return 0;
  2207. }
  2208. _ACEOF
  2209. if ac_fn_c_try_compile "$LINENO"; then :
  2210. eval "$4=yes"
  2211. else
  2212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2213. /* end confdefs.h. */
  2214. $5
  2215. int
  2216. main ()
  2217. {
  2218. static $2 ac_aggr;
  2219. if (sizeof ac_aggr.$3)
  2220. return 0;
  2221. ;
  2222. return 0;
  2223. }
  2224. _ACEOF
  2225. if ac_fn_c_try_compile "$LINENO"; then :
  2226. eval "$4=yes"
  2227. else
  2228. eval "$4=no"
  2229. fi
  2230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2231. fi
  2232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2233. fi
  2234. eval ac_res=\$$4
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2236. $as_echo "$ac_res" >&6; }
  2237. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2238. } # ac_fn_c_check_member
  2239. cat >config.log <<_ACEOF
  2240. This file contains any messages produced by compilers while
  2241. running configure, to aid debugging if configure makes a mistake.
  2242. It was created by $as_me, which was
  2243. generated by GNU Autoconf 2.69. Invocation command line was
  2244. $ $0 $@
  2245. _ACEOF
  2246. exec 5>>config.log
  2247. {
  2248. cat <<_ASUNAME
  2249. ## --------- ##
  2250. ## Platform. ##
  2251. ## --------- ##
  2252. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2253. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2254. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2255. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2256. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2257. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2258. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2259. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2260. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2261. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2262. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2263. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2264. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2265. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2266. _ASUNAME
  2267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2268. for as_dir in $PATH
  2269. do
  2270. IFS=$as_save_IFS
  2271. test -z "$as_dir" && as_dir=.
  2272. $as_echo "PATH: $as_dir"
  2273. done
  2274. IFS=$as_save_IFS
  2275. } >&5
  2276. cat >&5 <<_ACEOF
  2277. ## ----------- ##
  2278. ## Core tests. ##
  2279. ## ----------- ##
  2280. _ACEOF
  2281. # Keep a trace of the command line.
  2282. # Strip out --no-create and --no-recursion so they do not pile up.
  2283. # Strip out --silent because we don't want to record it for future runs.
  2284. # Also quote any args containing shell meta-characters.
  2285. # Make two passes to allow for proper duplicate-argument suppression.
  2286. ac_configure_args=
  2287. ac_configure_args0=
  2288. ac_configure_args1=
  2289. ac_must_keep_next=false
  2290. for ac_pass in 1 2
  2291. do
  2292. for ac_arg
  2293. do
  2294. case $ac_arg in
  2295. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2296. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2297. | -silent | --silent | --silen | --sile | --sil)
  2298. continue ;;
  2299. *\'*)
  2300. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2301. esac
  2302. case $ac_pass in
  2303. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2304. 2)
  2305. as_fn_append ac_configure_args1 " '$ac_arg'"
  2306. if test $ac_must_keep_next = true; then
  2307. ac_must_keep_next=false # Got value, back to normal.
  2308. else
  2309. case $ac_arg in
  2310. *=* | --config-cache | -C | -disable-* | --disable-* \
  2311. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2312. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2313. | -with-* | --with-* | -without-* | --without-* | --x)
  2314. case "$ac_configure_args0 " in
  2315. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2316. esac
  2317. ;;
  2318. -* ) ac_must_keep_next=true ;;
  2319. esac
  2320. fi
  2321. as_fn_append ac_configure_args " '$ac_arg'"
  2322. ;;
  2323. esac
  2324. done
  2325. done
  2326. { ac_configure_args0=; unset ac_configure_args0;}
  2327. { ac_configure_args1=; unset ac_configure_args1;}
  2328. # When interrupted or exit'd, cleanup temporary files, and complete
  2329. # config.log. We remove comments because anyway the quotes in there
  2330. # would cause problems or look ugly.
  2331. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2332. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2333. trap 'exit_status=$?
  2334. # Save into config.log some information that might help in debugging.
  2335. {
  2336. echo
  2337. $as_echo "## ---------------- ##
  2338. ## Cache variables. ##
  2339. ## ---------------- ##"
  2340. echo
  2341. # The following way of writing the cache mishandles newlines in values,
  2342. (
  2343. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2344. eval ac_val=\$$ac_var
  2345. case $ac_val in #(
  2346. *${as_nl}*)
  2347. case $ac_var in #(
  2348. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2349. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2350. esac
  2351. case $ac_var in #(
  2352. _ | IFS | as_nl) ;; #(
  2353. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2354. *) { eval $ac_var=; unset $ac_var;} ;;
  2355. esac ;;
  2356. esac
  2357. done
  2358. (set) 2>&1 |
  2359. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2360. *${as_nl}ac_space=\ *)
  2361. sed -n \
  2362. "s/'\''/'\''\\\\'\'''\''/g;
  2363. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2364. ;; #(
  2365. *)
  2366. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2367. ;;
  2368. esac |
  2369. sort
  2370. )
  2371. echo
  2372. $as_echo "## ----------------- ##
  2373. ## Output variables. ##
  2374. ## ----------------- ##"
  2375. echo
  2376. for ac_var in $ac_subst_vars
  2377. do
  2378. eval ac_val=\$$ac_var
  2379. case $ac_val in
  2380. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2381. esac
  2382. $as_echo "$ac_var='\''$ac_val'\''"
  2383. done | sort
  2384. echo
  2385. if test -n "$ac_subst_files"; then
  2386. $as_echo "## ------------------- ##
  2387. ## File substitutions. ##
  2388. ## ------------------- ##"
  2389. echo
  2390. for ac_var in $ac_subst_files
  2391. do
  2392. eval ac_val=\$$ac_var
  2393. case $ac_val in
  2394. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2395. esac
  2396. $as_echo "$ac_var='\''$ac_val'\''"
  2397. done | sort
  2398. echo
  2399. fi
  2400. if test -s confdefs.h; then
  2401. $as_echo "## ----------- ##
  2402. ## confdefs.h. ##
  2403. ## ----------- ##"
  2404. echo
  2405. cat confdefs.h
  2406. echo
  2407. fi
  2408. test "$ac_signal" != 0 &&
  2409. $as_echo "$as_me: caught signal $ac_signal"
  2410. $as_echo "$as_me: exit $exit_status"
  2411. } >&5
  2412. rm -f core *.core core.conftest.* &&
  2413. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2414. exit $exit_status
  2415. ' 0
  2416. for ac_signal in 1 2 13 15; do
  2417. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2418. done
  2419. ac_signal=0
  2420. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2421. rm -f -r conftest* confdefs.h
  2422. $as_echo "/* confdefs.h */" > confdefs.h
  2423. # Predefined preprocessor variables.
  2424. cat >>confdefs.h <<_ACEOF
  2425. #define PACKAGE_NAME "$PACKAGE_NAME"
  2426. _ACEOF
  2427. cat >>confdefs.h <<_ACEOF
  2428. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2429. _ACEOF
  2430. cat >>confdefs.h <<_ACEOF
  2431. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2432. _ACEOF
  2433. cat >>confdefs.h <<_ACEOF
  2434. #define PACKAGE_STRING "$PACKAGE_STRING"
  2435. _ACEOF
  2436. cat >>confdefs.h <<_ACEOF
  2437. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2438. _ACEOF
  2439. cat >>confdefs.h <<_ACEOF
  2440. #define PACKAGE_URL "$PACKAGE_URL"
  2441. _ACEOF
  2442. # Let the site file select an alternate cache file if it wants to.
  2443. # Prefer an explicitly selected file to automatically selected ones.
  2444. ac_site_file1=NONE
  2445. ac_site_file2=NONE
  2446. if test -n "$CONFIG_SITE"; then
  2447. # We do not want a PATH search for config.site.
  2448. case $CONFIG_SITE in #((
  2449. -*) ac_site_file1=./$CONFIG_SITE;;
  2450. */*) ac_site_file1=$CONFIG_SITE;;
  2451. *) ac_site_file1=./$CONFIG_SITE;;
  2452. esac
  2453. elif test "x$prefix" != xNONE; then
  2454. ac_site_file1=$prefix/share/config.site
  2455. ac_site_file2=$prefix/etc/config.site
  2456. else
  2457. ac_site_file1=$ac_default_prefix/share/config.site
  2458. ac_site_file2=$ac_default_prefix/etc/config.site
  2459. fi
  2460. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2461. do
  2462. test "x$ac_site_file" = xNONE && continue
  2463. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2465. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2466. sed 's/^/| /' "$ac_site_file" >&5
  2467. . "$ac_site_file" \
  2468. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2469. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2470. as_fn_error $? "failed to load site script $ac_site_file
  2471. See \`config.log' for more details" "$LINENO" 5; }
  2472. fi
  2473. done
  2474. if test -r "$cache_file"; then
  2475. # Some versions of bash will fail to source /dev/null (special files
  2476. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2477. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2478. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2479. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2480. case $cache_file in
  2481. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2482. *) . "./$cache_file";;
  2483. esac
  2484. fi
  2485. else
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2487. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2488. >$cache_file
  2489. fi
  2490. # Check that the precious variables saved in the cache have kept the same
  2491. # value.
  2492. ac_cache_corrupted=false
  2493. for ac_var in $ac_precious_vars; do
  2494. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2495. eval ac_new_set=\$ac_env_${ac_var}_set
  2496. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2497. eval ac_new_val=\$ac_env_${ac_var}_value
  2498. case $ac_old_set,$ac_new_set in
  2499. set,)
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2501. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2502. ac_cache_corrupted=: ;;
  2503. ,set)
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2505. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2506. ac_cache_corrupted=: ;;
  2507. ,);;
  2508. *)
  2509. if test "x$ac_old_val" != "x$ac_new_val"; then
  2510. # differences in whitespace do not lead to failure.
  2511. ac_old_val_w=`echo x $ac_old_val`
  2512. ac_new_val_w=`echo x $ac_new_val`
  2513. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2515. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2516. ac_cache_corrupted=:
  2517. else
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2519. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2520. eval $ac_var=\$ac_old_val
  2521. fi
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2523. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2525. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2526. fi;;
  2527. esac
  2528. # Pass precious variables to config.status.
  2529. if test "$ac_new_set" = set; then
  2530. case $ac_new_val in
  2531. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2532. *) ac_arg=$ac_var=$ac_new_val ;;
  2533. esac
  2534. case " $ac_configure_args " in
  2535. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2536. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2537. esac
  2538. fi
  2539. done
  2540. if $ac_cache_corrupted; then
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2542. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2544. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2545. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2546. fi
  2547. ## -------------------- ##
  2548. ## Main body of script. ##
  2549. ## -------------------- ##
  2550. ac_ext=c
  2551. ac_cpp='$CPP $CPPFLAGS'
  2552. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2553. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2554. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2555. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2556. ac_aux_dir=
  2557. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2558. if test -f "$ac_dir/install-sh"; then
  2559. ac_aux_dir=$ac_dir
  2560. ac_install_sh="$ac_aux_dir/install-sh -c"
  2561. break
  2562. elif test -f "$ac_dir/install.sh"; then
  2563. ac_aux_dir=$ac_dir
  2564. ac_install_sh="$ac_aux_dir/install.sh -c"
  2565. break
  2566. elif test -f "$ac_dir/shtool"; then
  2567. ac_aux_dir=$ac_dir
  2568. ac_install_sh="$ac_aux_dir/shtool install -c"
  2569. break
  2570. fi
  2571. done
  2572. if test -z "$ac_aux_dir"; then
  2573. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2574. fi
  2575. # These three variables are undocumented and unsupported,
  2576. # and are intended to be withdrawn in a future Autoconf release.
  2577. # They can cause serious problems if a builder's source tree is in a directory
  2578. # whose full name contains unusual characters.
  2579. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2580. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2581. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2582. orig_CFLAGS="$CFLAGS"
  2583. #
  2584. # Making releases:
  2585. # Edit include/SDL_version.h and change the version, then:
  2586. # SDL_MICRO_VERSION += 1;
  2587. # SDL_INTERFACE_AGE += 1;
  2588. # SDL_BINARY_AGE += 1;
  2589. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2590. # if backwards compatibility has been broken,
  2591. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2592. #
  2593. SDL_MAJOR_VERSION=2
  2594. SDL_MINOR_VERSION=0
  2595. SDL_MICRO_VERSION=13
  2596. SDL_INTERFACE_AGE=1
  2597. SDL_BINARY_AGE=13
  2598. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2599. # libtool versioning
  2600. case `pwd` in
  2601. *\ * | *\ *)
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2603. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2604. esac
  2605. macro_version='2.4.2'
  2606. macro_revision='1.3337'
  2607. ltmain="$ac_aux_dir/ltmain.sh"
  2608. # Make sure we can run config.sub.
  2609. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2610. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2612. $as_echo_n "checking build system type... " >&6; }
  2613. if ${ac_cv_build+:} false; then :
  2614. $as_echo_n "(cached) " >&6
  2615. else
  2616. ac_build_alias=$build_alias
  2617. test "x$ac_build_alias" = x &&
  2618. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2619. test "x$ac_build_alias" = x &&
  2620. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2621. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2622. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2623. fi
  2624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2625. $as_echo "$ac_cv_build" >&6; }
  2626. case $ac_cv_build in
  2627. *-*-*) ;;
  2628. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2629. esac
  2630. build=$ac_cv_build
  2631. ac_save_IFS=$IFS; IFS='-'
  2632. set x $ac_cv_build
  2633. shift
  2634. build_cpu=$1
  2635. build_vendor=$2
  2636. shift; shift
  2637. # Remember, the first character of IFS is used to create $*,
  2638. # except with old shells:
  2639. build_os=$*
  2640. IFS=$ac_save_IFS
  2641. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2643. $as_echo_n "checking host system type... " >&6; }
  2644. if ${ac_cv_host+:} false; then :
  2645. $as_echo_n "(cached) " >&6
  2646. else
  2647. if test "x$host_alias" = x; then
  2648. ac_cv_host=$ac_cv_build
  2649. else
  2650. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2651. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2652. fi
  2653. fi
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2655. $as_echo "$ac_cv_host" >&6; }
  2656. case $ac_cv_host in
  2657. *-*-*) ;;
  2658. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2659. esac
  2660. host=$ac_cv_host
  2661. ac_save_IFS=$IFS; IFS='-'
  2662. set x $ac_cv_host
  2663. shift
  2664. host_cpu=$1
  2665. host_vendor=$2
  2666. shift; shift
  2667. # Remember, the first character of IFS is used to create $*,
  2668. # except with old shells:
  2669. host_os=$*
  2670. IFS=$ac_save_IFS
  2671. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2672. # Backslashify metacharacters that are still active within
  2673. # double-quoted strings.
  2674. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2675. # Same as above, but do not quote variable references.
  2676. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2677. # Sed substitution to delay expansion of an escaped shell variable in a
  2678. # double_quote_subst'ed string.
  2679. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2680. # Sed substitution to delay expansion of an escaped single quote.
  2681. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2682. # Sed substitution to avoid accidental globbing in evaled expressions
  2683. no_glob_subst='s/\*/\\\*/g'
  2684. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2685. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2686. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2688. $as_echo_n "checking how to print strings... " >&6; }
  2689. # Test print first, because it will be a builtin if present.
  2690. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2691. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2692. ECHO='print -r --'
  2693. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2694. ECHO='printf %s\n'
  2695. else
  2696. # Use this function as a fallback that always works.
  2697. func_fallback_echo ()
  2698. {
  2699. eval 'cat <<_LTECHO_EOF
  2700. $1
  2701. _LTECHO_EOF'
  2702. }
  2703. ECHO='func_fallback_echo'
  2704. fi
  2705. # func_echo_all arg...
  2706. # Invoke $ECHO with all args, space-separated.
  2707. func_echo_all ()
  2708. {
  2709. $ECHO ""
  2710. }
  2711. case "$ECHO" in
  2712. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2713. $as_echo "printf" >&6; } ;;
  2714. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2715. $as_echo "print -r" >&6; } ;;
  2716. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2717. $as_echo "cat" >&6; } ;;
  2718. esac
  2719. ac_ext=c
  2720. ac_cpp='$CPP $CPPFLAGS'
  2721. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2722. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2723. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2724. if test -n "$ac_tool_prefix"; then
  2725. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2726. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2728. $as_echo_n "checking for $ac_word... " >&6; }
  2729. if ${ac_cv_prog_CC+:} false; then :
  2730. $as_echo_n "(cached) " >&6
  2731. else
  2732. if test -n "$CC"; then
  2733. ac_cv_prog_CC="$CC" # Let the user override the test.
  2734. else
  2735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2736. for as_dir in $PATH
  2737. do
  2738. IFS=$as_save_IFS
  2739. test -z "$as_dir" && as_dir=.
  2740. for ac_exec_ext in '' $ac_executable_extensions; do
  2741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2742. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2744. break 2
  2745. fi
  2746. done
  2747. done
  2748. IFS=$as_save_IFS
  2749. fi
  2750. fi
  2751. CC=$ac_cv_prog_CC
  2752. if test -n "$CC"; then
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2754. $as_echo "$CC" >&6; }
  2755. else
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2757. $as_echo "no" >&6; }
  2758. fi
  2759. fi
  2760. if test -z "$ac_cv_prog_CC"; then
  2761. ac_ct_CC=$CC
  2762. # Extract the first word of "gcc", so it can be a program name with args.
  2763. set dummy gcc; ac_word=$2
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2765. $as_echo_n "checking for $ac_word... " >&6; }
  2766. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2767. $as_echo_n "(cached) " >&6
  2768. else
  2769. if test -n "$ac_ct_CC"; then
  2770. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2771. else
  2772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2773. for as_dir in $PATH
  2774. do
  2775. IFS=$as_save_IFS
  2776. test -z "$as_dir" && as_dir=.
  2777. for ac_exec_ext in '' $ac_executable_extensions; do
  2778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2779. ac_cv_prog_ac_ct_CC="gcc"
  2780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2781. break 2
  2782. fi
  2783. done
  2784. done
  2785. IFS=$as_save_IFS
  2786. fi
  2787. fi
  2788. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2789. if test -n "$ac_ct_CC"; then
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2791. $as_echo "$ac_ct_CC" >&6; }
  2792. else
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2794. $as_echo "no" >&6; }
  2795. fi
  2796. if test "x$ac_ct_CC" = x; then
  2797. CC=""
  2798. else
  2799. case $cross_compiling:$ac_tool_warned in
  2800. yes:)
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2802. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2803. ac_tool_warned=yes ;;
  2804. esac
  2805. CC=$ac_ct_CC
  2806. fi
  2807. else
  2808. CC="$ac_cv_prog_CC"
  2809. fi
  2810. if test -z "$CC"; then
  2811. if test -n "$ac_tool_prefix"; then
  2812. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2813. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2815. $as_echo_n "checking for $ac_word... " >&6; }
  2816. if ${ac_cv_prog_CC+:} false; then :
  2817. $as_echo_n "(cached) " >&6
  2818. else
  2819. if test -n "$CC"; then
  2820. ac_cv_prog_CC="$CC" # Let the user override the test.
  2821. else
  2822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2823. for as_dir in $PATH
  2824. do
  2825. IFS=$as_save_IFS
  2826. test -z "$as_dir" && as_dir=.
  2827. for ac_exec_ext in '' $ac_executable_extensions; do
  2828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2829. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2831. break 2
  2832. fi
  2833. done
  2834. done
  2835. IFS=$as_save_IFS
  2836. fi
  2837. fi
  2838. CC=$ac_cv_prog_CC
  2839. if test -n "$CC"; then
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2841. $as_echo "$CC" >&6; }
  2842. else
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2844. $as_echo "no" >&6; }
  2845. fi
  2846. fi
  2847. fi
  2848. if test -z "$CC"; then
  2849. # Extract the first word of "cc", so it can be a program name with args.
  2850. set dummy cc; ac_word=$2
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2852. $as_echo_n "checking for $ac_word... " >&6; }
  2853. if ${ac_cv_prog_CC+:} false; then :
  2854. $as_echo_n "(cached) " >&6
  2855. else
  2856. if test -n "$CC"; then
  2857. ac_cv_prog_CC="$CC" # Let the user override the test.
  2858. else
  2859. ac_prog_rejected=no
  2860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2861. for as_dir in $PATH
  2862. do
  2863. IFS=$as_save_IFS
  2864. test -z "$as_dir" && as_dir=.
  2865. for ac_exec_ext in '' $ac_executable_extensions; do
  2866. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2867. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2868. ac_prog_rejected=yes
  2869. continue
  2870. fi
  2871. ac_cv_prog_CC="cc"
  2872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2873. break 2
  2874. fi
  2875. done
  2876. done
  2877. IFS=$as_save_IFS
  2878. if test $ac_prog_rejected = yes; then
  2879. # We found a bogon in the path, so make sure we never use it.
  2880. set dummy $ac_cv_prog_CC
  2881. shift
  2882. if test $# != 0; then
  2883. # We chose a different compiler from the bogus one.
  2884. # However, it has the same basename, so the bogon will be chosen
  2885. # first if we set CC to just the basename; use the full file name.
  2886. shift
  2887. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2888. fi
  2889. fi
  2890. fi
  2891. fi
  2892. CC=$ac_cv_prog_CC
  2893. if test -n "$CC"; then
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2895. $as_echo "$CC" >&6; }
  2896. else
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2898. $as_echo "no" >&6; }
  2899. fi
  2900. fi
  2901. if test -z "$CC"; then
  2902. if test -n "$ac_tool_prefix"; then
  2903. for ac_prog in cl.exe
  2904. do
  2905. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2906. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2908. $as_echo_n "checking for $ac_word... " >&6; }
  2909. if ${ac_cv_prog_CC+:} false; then :
  2910. $as_echo_n "(cached) " >&6
  2911. else
  2912. if test -n "$CC"; then
  2913. ac_cv_prog_CC="$CC" # Let the user override the test.
  2914. else
  2915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2916. for as_dir in $PATH
  2917. do
  2918. IFS=$as_save_IFS
  2919. test -z "$as_dir" && as_dir=.
  2920. for ac_exec_ext in '' $ac_executable_extensions; do
  2921. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2922. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2924. break 2
  2925. fi
  2926. done
  2927. done
  2928. IFS=$as_save_IFS
  2929. fi
  2930. fi
  2931. CC=$ac_cv_prog_CC
  2932. if test -n "$CC"; then
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2934. $as_echo "$CC" >&6; }
  2935. else
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2937. $as_echo "no" >&6; }
  2938. fi
  2939. test -n "$CC" && break
  2940. done
  2941. fi
  2942. if test -z "$CC"; then
  2943. ac_ct_CC=$CC
  2944. for ac_prog in cl.exe
  2945. do
  2946. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2947. set dummy $ac_prog; ac_word=$2
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2949. $as_echo_n "checking for $ac_word... " >&6; }
  2950. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2951. $as_echo_n "(cached) " >&6
  2952. else
  2953. if test -n "$ac_ct_CC"; then
  2954. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2955. else
  2956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2957. for as_dir in $PATH
  2958. do
  2959. IFS=$as_save_IFS
  2960. test -z "$as_dir" && as_dir=.
  2961. for ac_exec_ext in '' $ac_executable_extensions; do
  2962. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2963. ac_cv_prog_ac_ct_CC="$ac_prog"
  2964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2965. break 2
  2966. fi
  2967. done
  2968. done
  2969. IFS=$as_save_IFS
  2970. fi
  2971. fi
  2972. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2973. if test -n "$ac_ct_CC"; then
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2975. $as_echo "$ac_ct_CC" >&6; }
  2976. else
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2978. $as_echo "no" >&6; }
  2979. fi
  2980. test -n "$ac_ct_CC" && break
  2981. done
  2982. if test "x$ac_ct_CC" = x; then
  2983. CC=""
  2984. else
  2985. case $cross_compiling:$ac_tool_warned in
  2986. yes:)
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2988. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2989. ac_tool_warned=yes ;;
  2990. esac
  2991. CC=$ac_ct_CC
  2992. fi
  2993. fi
  2994. fi
  2995. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2996. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2997. as_fn_error $? "no acceptable C compiler found in \$PATH
  2998. See \`config.log' for more details" "$LINENO" 5; }
  2999. # Provide some information about the compiler.
  3000. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3001. set X $ac_compile
  3002. ac_compiler=$2
  3003. for ac_option in --version -v -V -qversion; do
  3004. { { ac_try="$ac_compiler $ac_option >&5"
  3005. case "(($ac_try" in
  3006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3007. *) ac_try_echo=$ac_try;;
  3008. esac
  3009. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3010. $as_echo "$ac_try_echo"; } >&5
  3011. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3012. ac_status=$?
  3013. if test -s conftest.err; then
  3014. sed '10a\
  3015. ... rest of stderr output deleted ...
  3016. 10q' conftest.err >conftest.er1
  3017. cat conftest.er1 >&5
  3018. fi
  3019. rm -f conftest.er1 conftest.err
  3020. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3021. test $ac_status = 0; }
  3022. done
  3023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3024. /* end confdefs.h. */
  3025. int
  3026. main ()
  3027. {
  3028. ;
  3029. return 0;
  3030. }
  3031. _ACEOF
  3032. ac_clean_files_save=$ac_clean_files
  3033. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3034. # Try to create an executable without -o first, disregard a.out.
  3035. # It will help us diagnose broken compilers, and finding out an intuition
  3036. # of exeext.
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3038. $as_echo_n "checking whether the C compiler works... " >&6; }
  3039. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3040. # The possible output files:
  3041. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3042. ac_rmfiles=
  3043. for ac_file in $ac_files
  3044. do
  3045. case $ac_file in
  3046. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3047. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3048. esac
  3049. done
  3050. rm -f $ac_rmfiles
  3051. if { { ac_try="$ac_link_default"
  3052. case "(($ac_try" in
  3053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3054. *) ac_try_echo=$ac_try;;
  3055. esac
  3056. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3057. $as_echo "$ac_try_echo"; } >&5
  3058. (eval "$ac_link_default") 2>&5
  3059. ac_status=$?
  3060. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3061. test $ac_status = 0; }; then :
  3062. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3063. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3064. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3065. # so that the user can short-circuit this test for compilers unknown to
  3066. # Autoconf.
  3067. for ac_file in $ac_files ''
  3068. do
  3069. test -f "$ac_file" || continue
  3070. case $ac_file in
  3071. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3072. ;;
  3073. [ab].out )
  3074. # We found the default executable, but exeext='' is most
  3075. # certainly right.
  3076. break;;
  3077. *.* )
  3078. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3079. then :; else
  3080. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3081. fi
  3082. # We set ac_cv_exeext here because the later test for it is not
  3083. # safe: cross compilers may not add the suffix if given an `-o'
  3084. # argument, so we may need to know it at that point already.
  3085. # Even if this section looks crufty: it has the advantage of
  3086. # actually working.
  3087. break;;
  3088. * )
  3089. break;;
  3090. esac
  3091. done
  3092. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3093. else
  3094. ac_file=''
  3095. fi
  3096. if test -z "$ac_file"; then :
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3098. $as_echo "no" >&6; }
  3099. $as_echo "$as_me: failed program was:" >&5
  3100. sed 's/^/| /' conftest.$ac_ext >&5
  3101. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3102. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3103. as_fn_error 77 "C compiler cannot create executables
  3104. See \`config.log' for more details" "$LINENO" 5; }
  3105. else
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3107. $as_echo "yes" >&6; }
  3108. fi
  3109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3110. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3112. $as_echo "$ac_file" >&6; }
  3113. ac_exeext=$ac_cv_exeext
  3114. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3115. ac_clean_files=$ac_clean_files_save
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3117. $as_echo_n "checking for suffix of executables... " >&6; }
  3118. if { { ac_try="$ac_link"
  3119. case "(($ac_try" in
  3120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3121. *) ac_try_echo=$ac_try;;
  3122. esac
  3123. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3124. $as_echo "$ac_try_echo"; } >&5
  3125. (eval "$ac_link") 2>&5
  3126. ac_status=$?
  3127. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3128. test $ac_status = 0; }; then :
  3129. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3130. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3131. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3132. # `rm'.
  3133. for ac_file in conftest.exe conftest conftest.*; do
  3134. test -f "$ac_file" || continue
  3135. case $ac_file in
  3136. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3137. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3138. break;;
  3139. * ) break;;
  3140. esac
  3141. done
  3142. else
  3143. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3144. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3145. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3146. See \`config.log' for more details" "$LINENO" 5; }
  3147. fi
  3148. rm -f conftest conftest$ac_cv_exeext
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3150. $as_echo "$ac_cv_exeext" >&6; }
  3151. rm -f conftest.$ac_ext
  3152. EXEEXT=$ac_cv_exeext
  3153. ac_exeext=$EXEEXT
  3154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3155. /* end confdefs.h. */
  3156. #include <stdio.h>
  3157. int
  3158. main ()
  3159. {
  3160. FILE *f = fopen ("conftest.out", "w");
  3161. return ferror (f) || fclose (f) != 0;
  3162. ;
  3163. return 0;
  3164. }
  3165. _ACEOF
  3166. ac_clean_files="$ac_clean_files conftest.out"
  3167. # Check that the compiler produces executables we can run. If not, either
  3168. # the compiler is broken, or we cross compile.
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3170. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3171. if test "$cross_compiling" != yes; then
  3172. { { ac_try="$ac_link"
  3173. case "(($ac_try" in
  3174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3175. *) ac_try_echo=$ac_try;;
  3176. esac
  3177. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3178. $as_echo "$ac_try_echo"; } >&5
  3179. (eval "$ac_link") 2>&5
  3180. ac_status=$?
  3181. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3182. test $ac_status = 0; }
  3183. if { ac_try='./conftest$ac_cv_exeext'
  3184. { { case "(($ac_try" in
  3185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3186. *) ac_try_echo=$ac_try;;
  3187. esac
  3188. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3189. $as_echo "$ac_try_echo"; } >&5
  3190. (eval "$ac_try") 2>&5
  3191. ac_status=$?
  3192. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3193. test $ac_status = 0; }; }; then
  3194. cross_compiling=no
  3195. else
  3196. if test "$cross_compiling" = maybe; then
  3197. cross_compiling=yes
  3198. else
  3199. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3200. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3201. as_fn_error $? "cannot run C compiled programs.
  3202. If you meant to cross compile, use \`--host'.
  3203. See \`config.log' for more details" "$LINENO" 5; }
  3204. fi
  3205. fi
  3206. fi
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3208. $as_echo "$cross_compiling" >&6; }
  3209. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3210. ac_clean_files=$ac_clean_files_save
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3212. $as_echo_n "checking for suffix of object files... " >&6; }
  3213. if ${ac_cv_objext+:} false; then :
  3214. $as_echo_n "(cached) " >&6
  3215. else
  3216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3217. /* end confdefs.h. */
  3218. int
  3219. main ()
  3220. {
  3221. ;
  3222. return 0;
  3223. }
  3224. _ACEOF
  3225. rm -f conftest.o conftest.obj
  3226. if { { ac_try="$ac_compile"
  3227. case "(($ac_try" in
  3228. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3229. *) ac_try_echo=$ac_try;;
  3230. esac
  3231. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3232. $as_echo "$ac_try_echo"; } >&5
  3233. (eval "$ac_compile") 2>&5
  3234. ac_status=$?
  3235. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3236. test $ac_status = 0; }; then :
  3237. for ac_file in conftest.o conftest.obj conftest.*; do
  3238. test -f "$ac_file" || continue;
  3239. case $ac_file in
  3240. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3241. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3242. break;;
  3243. esac
  3244. done
  3245. else
  3246. $as_echo "$as_me: failed program was:" >&5
  3247. sed 's/^/| /' conftest.$ac_ext >&5
  3248. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3249. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3250. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3251. See \`config.log' for more details" "$LINENO" 5; }
  3252. fi
  3253. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3254. fi
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3256. $as_echo "$ac_cv_objext" >&6; }
  3257. OBJEXT=$ac_cv_objext
  3258. ac_objext=$OBJEXT
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3260. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3261. if ${ac_cv_c_compiler_gnu+:} false; then :
  3262. $as_echo_n "(cached) " >&6
  3263. else
  3264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3265. /* end confdefs.h. */
  3266. int
  3267. main ()
  3268. {
  3269. #ifndef __GNUC__
  3270. choke me
  3271. #endif
  3272. ;
  3273. return 0;
  3274. }
  3275. _ACEOF
  3276. if ac_fn_c_try_compile "$LINENO"; then :
  3277. ac_compiler_gnu=yes
  3278. else
  3279. ac_compiler_gnu=no
  3280. fi
  3281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3282. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3283. fi
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3285. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3286. if test $ac_compiler_gnu = yes; then
  3287. GCC=yes
  3288. else
  3289. GCC=
  3290. fi
  3291. ac_test_CFLAGS=${CFLAGS+set}
  3292. ac_save_CFLAGS=$CFLAGS
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3294. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3295. if ${ac_cv_prog_cc_g+:} false; then :
  3296. $as_echo_n "(cached) " >&6
  3297. else
  3298. ac_save_c_werror_flag=$ac_c_werror_flag
  3299. ac_c_werror_flag=yes
  3300. ac_cv_prog_cc_g=no
  3301. CFLAGS="-g"
  3302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3303. /* end confdefs.h. */
  3304. int
  3305. main ()
  3306. {
  3307. ;
  3308. return 0;
  3309. }
  3310. _ACEOF
  3311. if ac_fn_c_try_compile "$LINENO"; then :
  3312. ac_cv_prog_cc_g=yes
  3313. else
  3314. CFLAGS=""
  3315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3316. /* end confdefs.h. */
  3317. int
  3318. main ()
  3319. {
  3320. ;
  3321. return 0;
  3322. }
  3323. _ACEOF
  3324. if ac_fn_c_try_compile "$LINENO"; then :
  3325. else
  3326. ac_c_werror_flag=$ac_save_c_werror_flag
  3327. CFLAGS="-g"
  3328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3329. /* end confdefs.h. */
  3330. int
  3331. main ()
  3332. {
  3333. ;
  3334. return 0;
  3335. }
  3336. _ACEOF
  3337. if ac_fn_c_try_compile "$LINENO"; then :
  3338. ac_cv_prog_cc_g=yes
  3339. fi
  3340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3341. fi
  3342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3343. fi
  3344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3345. ac_c_werror_flag=$ac_save_c_werror_flag
  3346. fi
  3347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3348. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3349. if test "$ac_test_CFLAGS" = set; then
  3350. CFLAGS=$ac_save_CFLAGS
  3351. elif test $ac_cv_prog_cc_g = yes; then
  3352. if test "$GCC" = yes; then
  3353. CFLAGS="-g -O2"
  3354. else
  3355. CFLAGS="-g"
  3356. fi
  3357. else
  3358. if test "$GCC" = yes; then
  3359. CFLAGS="-O2"
  3360. else
  3361. CFLAGS=
  3362. fi
  3363. fi
  3364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3365. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3366. if ${ac_cv_prog_cc_c89+:} false; then :
  3367. $as_echo_n "(cached) " >&6
  3368. else
  3369. ac_cv_prog_cc_c89=no
  3370. ac_save_CC=$CC
  3371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3372. /* end confdefs.h. */
  3373. #include <stdarg.h>
  3374. #include <stdio.h>
  3375. struct stat;
  3376. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3377. struct buf { int x; };
  3378. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3379. static char *e (p, i)
  3380. char **p;
  3381. int i;
  3382. {
  3383. return p[i];
  3384. }
  3385. static char *f (char * (*g) (char **, int), char **p, ...)
  3386. {
  3387. char *s;
  3388. va_list v;
  3389. va_start (v,p);
  3390. s = g (p, va_arg (v,int));
  3391. va_end (v);
  3392. return s;
  3393. }
  3394. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3395. function prototypes and stuff, but not '\xHH' hex character constants.
  3396. These don't provoke an error unfortunately, instead are silently treated
  3397. as 'x'. The following induces an error, until -std is added to get
  3398. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3399. array size at least. It's necessary to write '\x00'==0 to get something
  3400. that's true only with -std. */
  3401. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3402. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3403. inside strings and character constants. */
  3404. #define FOO(x) 'x'
  3405. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3406. int test (int i, double x);
  3407. struct s1 {int (*f) (int a);};
  3408. struct s2 {int (*f) (double a);};
  3409. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3410. int argc;
  3411. char **argv;
  3412. int
  3413. main ()
  3414. {
  3415. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3416. ;
  3417. return 0;
  3418. }
  3419. _ACEOF
  3420. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3421. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3422. do
  3423. CC="$ac_save_CC $ac_arg"
  3424. if ac_fn_c_try_compile "$LINENO"; then :
  3425. ac_cv_prog_cc_c89=$ac_arg
  3426. fi
  3427. rm -f core conftest.err conftest.$ac_objext
  3428. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3429. done
  3430. rm -f conftest.$ac_ext
  3431. CC=$ac_save_CC
  3432. fi
  3433. # AC_CACHE_VAL
  3434. case "x$ac_cv_prog_cc_c89" in
  3435. x)
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3437. $as_echo "none needed" >&6; } ;;
  3438. xno)
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3440. $as_echo "unsupported" >&6; } ;;
  3441. *)
  3442. CC="$CC $ac_cv_prog_cc_c89"
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3444. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3445. esac
  3446. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3447. fi
  3448. ac_ext=c
  3449. ac_cpp='$CPP $CPPFLAGS'
  3450. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3451. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3452. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3454. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3455. if ${ac_cv_path_SED+:} false; then :
  3456. $as_echo_n "(cached) " >&6
  3457. else
  3458. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3459. for ac_i in 1 2 3 4 5 6 7; do
  3460. ac_script="$ac_script$as_nl$ac_script"
  3461. done
  3462. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3463. { ac_script=; unset ac_script;}
  3464. if test -z "$SED"; then
  3465. ac_path_SED_found=false
  3466. # Loop through the user's path and test for each of PROGNAME-LIST
  3467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3468. for as_dir in $PATH
  3469. do
  3470. IFS=$as_save_IFS
  3471. test -z "$as_dir" && as_dir=.
  3472. for ac_prog in sed gsed; do
  3473. for ac_exec_ext in '' $ac_executable_extensions; do
  3474. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3475. as_fn_executable_p "$ac_path_SED" || continue
  3476. # Check for GNU ac_path_SED and select it if it is found.
  3477. # Check for GNU $ac_path_SED
  3478. case `"$ac_path_SED" --version 2>&1` in
  3479. *GNU*)
  3480. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3481. *)
  3482. ac_count=0
  3483. $as_echo_n 0123456789 >"conftest.in"
  3484. while :
  3485. do
  3486. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3487. mv "conftest.tmp" "conftest.in"
  3488. cp "conftest.in" "conftest.nl"
  3489. $as_echo '' >> "conftest.nl"
  3490. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3491. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3492. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3493. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3494. # Best one so far, save it but keep looking for a better one
  3495. ac_cv_path_SED="$ac_path_SED"
  3496. ac_path_SED_max=$ac_count
  3497. fi
  3498. # 10*(2^10) chars as input seems more than enough
  3499. test $ac_count -gt 10 && break
  3500. done
  3501. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3502. esac
  3503. $ac_path_SED_found && break 3
  3504. done
  3505. done
  3506. done
  3507. IFS=$as_save_IFS
  3508. if test -z "$ac_cv_path_SED"; then
  3509. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3510. fi
  3511. else
  3512. ac_cv_path_SED=$SED
  3513. fi
  3514. fi
  3515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3516. $as_echo "$ac_cv_path_SED" >&6; }
  3517. SED="$ac_cv_path_SED"
  3518. rm -f conftest.sed
  3519. test -z "$SED" && SED=sed
  3520. Xsed="$SED -e 1s/^X//"
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3522. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3523. if ${ac_cv_path_GREP+:} false; then :
  3524. $as_echo_n "(cached) " >&6
  3525. else
  3526. if test -z "$GREP"; then
  3527. ac_path_GREP_found=false
  3528. # Loop through the user's path and test for each of PROGNAME-LIST
  3529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3530. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3531. do
  3532. IFS=$as_save_IFS
  3533. test -z "$as_dir" && as_dir=.
  3534. for ac_prog in grep ggrep; do
  3535. for ac_exec_ext in '' $ac_executable_extensions; do
  3536. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3537. as_fn_executable_p "$ac_path_GREP" || continue
  3538. # Check for GNU ac_path_GREP and select it if it is found.
  3539. # Check for GNU $ac_path_GREP
  3540. case `"$ac_path_GREP" --version 2>&1` in
  3541. *GNU*)
  3542. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3543. *)
  3544. ac_count=0
  3545. $as_echo_n 0123456789 >"conftest.in"
  3546. while :
  3547. do
  3548. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3549. mv "conftest.tmp" "conftest.in"
  3550. cp "conftest.in" "conftest.nl"
  3551. $as_echo 'GREP' >> "conftest.nl"
  3552. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3553. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3554. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3555. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3556. # Best one so far, save it but keep looking for a better one
  3557. ac_cv_path_GREP="$ac_path_GREP"
  3558. ac_path_GREP_max=$ac_count
  3559. fi
  3560. # 10*(2^10) chars as input seems more than enough
  3561. test $ac_count -gt 10 && break
  3562. done
  3563. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3564. esac
  3565. $ac_path_GREP_found && break 3
  3566. done
  3567. done
  3568. done
  3569. IFS=$as_save_IFS
  3570. if test -z "$ac_cv_path_GREP"; then
  3571. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3572. fi
  3573. else
  3574. ac_cv_path_GREP=$GREP
  3575. fi
  3576. fi
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3578. $as_echo "$ac_cv_path_GREP" >&6; }
  3579. GREP="$ac_cv_path_GREP"
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3581. $as_echo_n "checking for egrep... " >&6; }
  3582. if ${ac_cv_path_EGREP+:} false; then :
  3583. $as_echo_n "(cached) " >&6
  3584. else
  3585. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3586. then ac_cv_path_EGREP="$GREP -E"
  3587. else
  3588. if test -z "$EGREP"; then
  3589. ac_path_EGREP_found=false
  3590. # Loop through the user's path and test for each of PROGNAME-LIST
  3591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3592. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3593. do
  3594. IFS=$as_save_IFS
  3595. test -z "$as_dir" && as_dir=.
  3596. for ac_prog in egrep; do
  3597. for ac_exec_ext in '' $ac_executable_extensions; do
  3598. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3599. as_fn_executable_p "$ac_path_EGREP" || continue
  3600. # Check for GNU ac_path_EGREP and select it if it is found.
  3601. # Check for GNU $ac_path_EGREP
  3602. case `"$ac_path_EGREP" --version 2>&1` in
  3603. *GNU*)
  3604. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3605. *)
  3606. ac_count=0
  3607. $as_echo_n 0123456789 >"conftest.in"
  3608. while :
  3609. do
  3610. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3611. mv "conftest.tmp" "conftest.in"
  3612. cp "conftest.in" "conftest.nl"
  3613. $as_echo 'EGREP' >> "conftest.nl"
  3614. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3615. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3616. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3617. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3618. # Best one so far, save it but keep looking for a better one
  3619. ac_cv_path_EGREP="$ac_path_EGREP"
  3620. ac_path_EGREP_max=$ac_count
  3621. fi
  3622. # 10*(2^10) chars as input seems more than enough
  3623. test $ac_count -gt 10 && break
  3624. done
  3625. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3626. esac
  3627. $ac_path_EGREP_found && break 3
  3628. done
  3629. done
  3630. done
  3631. IFS=$as_save_IFS
  3632. if test -z "$ac_cv_path_EGREP"; then
  3633. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3634. fi
  3635. else
  3636. ac_cv_path_EGREP=$EGREP
  3637. fi
  3638. fi
  3639. fi
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3641. $as_echo "$ac_cv_path_EGREP" >&6; }
  3642. EGREP="$ac_cv_path_EGREP"
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3644. $as_echo_n "checking for fgrep... " >&6; }
  3645. if ${ac_cv_path_FGREP+:} false; then :
  3646. $as_echo_n "(cached) " >&6
  3647. else
  3648. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3649. then ac_cv_path_FGREP="$GREP -F"
  3650. else
  3651. if test -z "$FGREP"; then
  3652. ac_path_FGREP_found=false
  3653. # Loop through the user's path and test for each of PROGNAME-LIST
  3654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3655. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3656. do
  3657. IFS=$as_save_IFS
  3658. test -z "$as_dir" && as_dir=.
  3659. for ac_prog in fgrep; do
  3660. for ac_exec_ext in '' $ac_executable_extensions; do
  3661. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3662. as_fn_executable_p "$ac_path_FGREP" || continue
  3663. # Check for GNU ac_path_FGREP and select it if it is found.
  3664. # Check for GNU $ac_path_FGREP
  3665. case `"$ac_path_FGREP" --version 2>&1` in
  3666. *GNU*)
  3667. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3668. *)
  3669. ac_count=0
  3670. $as_echo_n 0123456789 >"conftest.in"
  3671. while :
  3672. do
  3673. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3674. mv "conftest.tmp" "conftest.in"
  3675. cp "conftest.in" "conftest.nl"
  3676. $as_echo 'FGREP' >> "conftest.nl"
  3677. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3678. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3679. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3680. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3681. # Best one so far, save it but keep looking for a better one
  3682. ac_cv_path_FGREP="$ac_path_FGREP"
  3683. ac_path_FGREP_max=$ac_count
  3684. fi
  3685. # 10*(2^10) chars as input seems more than enough
  3686. test $ac_count -gt 10 && break
  3687. done
  3688. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3689. esac
  3690. $ac_path_FGREP_found && break 3
  3691. done
  3692. done
  3693. done
  3694. IFS=$as_save_IFS
  3695. if test -z "$ac_cv_path_FGREP"; then
  3696. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3697. fi
  3698. else
  3699. ac_cv_path_FGREP=$FGREP
  3700. fi
  3701. fi
  3702. fi
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3704. $as_echo "$ac_cv_path_FGREP" >&6; }
  3705. FGREP="$ac_cv_path_FGREP"
  3706. test -z "$GREP" && GREP=grep
  3707. # Check whether --with-gnu-ld was given.
  3708. if test "${with_gnu_ld+set}" = set; then :
  3709. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3710. else
  3711. with_gnu_ld=no
  3712. fi
  3713. ac_prog=ld
  3714. if test "$GCC" = yes; then
  3715. # Check if gcc -print-prog-name=ld gives a path.
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3717. $as_echo_n "checking for ld used by $CC... " >&6; }
  3718. case $host in
  3719. *-*-mingw*)
  3720. # gcc leaves a trailing carriage return which upsets mingw
  3721. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3722. *)
  3723. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3724. esac
  3725. case $ac_prog in
  3726. # Accept absolute paths.
  3727. [\\/]* | ?:[\\/]*)
  3728. re_direlt='/[^/][^/]*/\.\./'
  3729. # Canonicalize the pathname of ld
  3730. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3731. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3732. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3733. done
  3734. test -z "$LD" && LD="$ac_prog"
  3735. ;;
  3736. "")
  3737. # If it fails, then pretend we aren't using GCC.
  3738. ac_prog=ld
  3739. ;;
  3740. *)
  3741. # If it is relative, then search for the first ld in PATH.
  3742. with_gnu_ld=unknown
  3743. ;;
  3744. esac
  3745. elif test "$with_gnu_ld" = yes; then
  3746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3747. $as_echo_n "checking for GNU ld... " >&6; }
  3748. else
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3750. $as_echo_n "checking for non-GNU ld... " >&6; }
  3751. fi
  3752. if ${lt_cv_path_LD+:} false; then :
  3753. $as_echo_n "(cached) " >&6
  3754. else
  3755. if test -z "$LD"; then
  3756. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3757. for ac_dir in $PATH; do
  3758. IFS="$lt_save_ifs"
  3759. test -z "$ac_dir" && ac_dir=.
  3760. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3761. lt_cv_path_LD="$ac_dir/$ac_prog"
  3762. # Check to see if the program is GNU ld. I'd rather use --version,
  3763. # but apparently some variants of GNU ld only accept -v.
  3764. # Break only if it was the GNU/non-GNU ld that we prefer.
  3765. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3766. *GNU* | *'with BFD'*)
  3767. test "$with_gnu_ld" != no && break
  3768. ;;
  3769. *)
  3770. test "$with_gnu_ld" != yes && break
  3771. ;;
  3772. esac
  3773. fi
  3774. done
  3775. IFS="$lt_save_ifs"
  3776. else
  3777. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3778. fi
  3779. fi
  3780. LD="$lt_cv_path_LD"
  3781. if test -n "$LD"; then
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3783. $as_echo "$LD" >&6; }
  3784. else
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3786. $as_echo "no" >&6; }
  3787. fi
  3788. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3790. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3791. if ${lt_cv_prog_gnu_ld+:} false; then :
  3792. $as_echo_n "(cached) " >&6
  3793. else
  3794. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3795. case `$LD -v 2>&1 </dev/null` in
  3796. *GNU* | *'with BFD'*)
  3797. lt_cv_prog_gnu_ld=yes
  3798. ;;
  3799. *)
  3800. lt_cv_prog_gnu_ld=no
  3801. ;;
  3802. esac
  3803. fi
  3804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3805. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3806. with_gnu_ld=$lt_cv_prog_gnu_ld
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3808. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3809. if ${lt_cv_path_NM+:} false; then :
  3810. $as_echo_n "(cached) " >&6
  3811. else
  3812. if test -n "$NM"; then
  3813. # Let the user override the test.
  3814. lt_cv_path_NM="$NM"
  3815. else
  3816. lt_nm_to_check="${ac_tool_prefix}nm"
  3817. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3818. lt_nm_to_check="$lt_nm_to_check nm"
  3819. fi
  3820. for lt_tmp_nm in $lt_nm_to_check; do
  3821. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3822. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3823. IFS="$lt_save_ifs"
  3824. test -z "$ac_dir" && ac_dir=.
  3825. tmp_nm="$ac_dir/$lt_tmp_nm"
  3826. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3827. # Check to see if the nm accepts a BSD-compat flag.
  3828. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3829. # nm: unknown option "B" ignored
  3830. # Tru64's nm complains that /dev/null is an invalid object file
  3831. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3832. */dev/null* | *'Invalid file or object type'*)
  3833. lt_cv_path_NM="$tmp_nm -B"
  3834. break
  3835. ;;
  3836. *)
  3837. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3838. */dev/null*)
  3839. lt_cv_path_NM="$tmp_nm -p"
  3840. break
  3841. ;;
  3842. *)
  3843. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3844. continue # so that we can try to find one that supports BSD flags
  3845. ;;
  3846. esac
  3847. ;;
  3848. esac
  3849. fi
  3850. done
  3851. IFS="$lt_save_ifs"
  3852. done
  3853. : ${lt_cv_path_NM=no}
  3854. fi
  3855. fi
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3857. $as_echo "$lt_cv_path_NM" >&6; }
  3858. if test "$lt_cv_path_NM" != "no"; then
  3859. NM="$lt_cv_path_NM"
  3860. else
  3861. # Didn't find any BSD compatible name lister, look for dumpbin.
  3862. if test -n "$DUMPBIN"; then :
  3863. # Let the user override the test.
  3864. else
  3865. if test -n "$ac_tool_prefix"; then
  3866. for ac_prog in dumpbin "link -dump"
  3867. do
  3868. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3869. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3871. $as_echo_n "checking for $ac_word... " >&6; }
  3872. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3873. $as_echo_n "(cached) " >&6
  3874. else
  3875. if test -n "$DUMPBIN"; then
  3876. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3877. else
  3878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3879. for as_dir in $PATH
  3880. do
  3881. IFS=$as_save_IFS
  3882. test -z "$as_dir" && as_dir=.
  3883. for ac_exec_ext in '' $ac_executable_extensions; do
  3884. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3885. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3886. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3887. break 2
  3888. fi
  3889. done
  3890. done
  3891. IFS=$as_save_IFS
  3892. fi
  3893. fi
  3894. DUMPBIN=$ac_cv_prog_DUMPBIN
  3895. if test -n "$DUMPBIN"; then
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3897. $as_echo "$DUMPBIN" >&6; }
  3898. else
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3900. $as_echo "no" >&6; }
  3901. fi
  3902. test -n "$DUMPBIN" && break
  3903. done
  3904. fi
  3905. if test -z "$DUMPBIN"; then
  3906. ac_ct_DUMPBIN=$DUMPBIN
  3907. for ac_prog in dumpbin "link -dump"
  3908. do
  3909. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3910. set dummy $ac_prog; ac_word=$2
  3911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3912. $as_echo_n "checking for $ac_word... " >&6; }
  3913. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3914. $as_echo_n "(cached) " >&6
  3915. else
  3916. if test -n "$ac_ct_DUMPBIN"; then
  3917. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3918. else
  3919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3920. for as_dir in $PATH
  3921. do
  3922. IFS=$as_save_IFS
  3923. test -z "$as_dir" && as_dir=.
  3924. for ac_exec_ext in '' $ac_executable_extensions; do
  3925. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3926. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3928. break 2
  3929. fi
  3930. done
  3931. done
  3932. IFS=$as_save_IFS
  3933. fi
  3934. fi
  3935. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3936. if test -n "$ac_ct_DUMPBIN"; then
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3938. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3939. else
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3941. $as_echo "no" >&6; }
  3942. fi
  3943. test -n "$ac_ct_DUMPBIN" && break
  3944. done
  3945. if test "x$ac_ct_DUMPBIN" = x; then
  3946. DUMPBIN=":"
  3947. else
  3948. case $cross_compiling:$ac_tool_warned in
  3949. yes:)
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3951. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3952. ac_tool_warned=yes ;;
  3953. esac
  3954. DUMPBIN=$ac_ct_DUMPBIN
  3955. fi
  3956. fi
  3957. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3958. *COFF*)
  3959. DUMPBIN="$DUMPBIN -symbols"
  3960. ;;
  3961. *)
  3962. DUMPBIN=:
  3963. ;;
  3964. esac
  3965. fi
  3966. if test "$DUMPBIN" != ":"; then
  3967. NM="$DUMPBIN"
  3968. fi
  3969. fi
  3970. test -z "$NM" && NM=nm
  3971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3972. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3973. if ${lt_cv_nm_interface+:} false; then :
  3974. $as_echo_n "(cached) " >&6
  3975. else
  3976. lt_cv_nm_interface="BSD nm"
  3977. echo "int some_variable = 0;" > conftest.$ac_ext
  3978. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3979. (eval "$ac_compile" 2>conftest.err)
  3980. cat conftest.err >&5
  3981. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3982. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3983. cat conftest.err >&5
  3984. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3985. cat conftest.out >&5
  3986. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3987. lt_cv_nm_interface="MS dumpbin"
  3988. fi
  3989. rm -f conftest*
  3990. fi
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3992. $as_echo "$lt_cv_nm_interface" >&6; }
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3994. $as_echo_n "checking whether ln -s works... " >&6; }
  3995. LN_S=$as_ln_s
  3996. if test "$LN_S" = "ln -s"; then
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3998. $as_echo "yes" >&6; }
  3999. else
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4001. $as_echo "no, using $LN_S" >&6; }
  4002. fi
  4003. # find the maximum length of command line arguments
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4005. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4006. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4007. $as_echo_n "(cached) " >&6
  4008. else
  4009. i=0
  4010. teststring="ABCD"
  4011. case $build_os in
  4012. msdosdjgpp*)
  4013. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4014. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4015. # during glob expansion). Even if it were fixed, the result of this
  4016. # check would be larger than it should be.
  4017. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4018. ;;
  4019. gnu*)
  4020. # Under GNU Hurd, this test is not required because there is
  4021. # no limit to the length of command line arguments.
  4022. # Libtool will interpret -1 as no limit whatsoever
  4023. lt_cv_sys_max_cmd_len=-1;
  4024. ;;
  4025. cygwin* | mingw* | cegcc*)
  4026. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4027. # about 5 minutes as the teststring grows exponentially.
  4028. # Worse, since 9x/ME are not pre-emptively multitasking,
  4029. # you end up with a "frozen" computer, even though with patience
  4030. # the test eventually succeeds (with a max line length of 256k).
  4031. # Instead, let's just punt: use the minimum linelength reported by
  4032. # all of the supported platforms: 8192 (on NT/2K/XP).
  4033. lt_cv_sys_max_cmd_len=8192;
  4034. ;;
  4035. mint*)
  4036. # On MiNT this can take a long time and run out of memory.
  4037. lt_cv_sys_max_cmd_len=8192;
  4038. ;;
  4039. amigaos*)
  4040. # On AmigaOS with pdksh, this test takes hours, literally.
  4041. # So we just punt and use a minimum line length of 8192.
  4042. lt_cv_sys_max_cmd_len=8192;
  4043. ;;
  4044. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4045. # This has been around since 386BSD, at least. Likely further.
  4046. if test -x /sbin/sysctl; then
  4047. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4048. elif test -x /usr/sbin/sysctl; then
  4049. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4050. else
  4051. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4052. fi
  4053. # And add a safety zone
  4054. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4055. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4056. ;;
  4057. interix*)
  4058. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4059. lt_cv_sys_max_cmd_len=196608
  4060. ;;
  4061. os2*)
  4062. # The test takes a long time on OS/2.
  4063. lt_cv_sys_max_cmd_len=8192
  4064. ;;
  4065. osf*)
  4066. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4067. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4068. # nice to cause kernel panics so lets avoid the loop below.
  4069. # First set a reasonable default.
  4070. lt_cv_sys_max_cmd_len=16384
  4071. #
  4072. if test -x /sbin/sysconfig; then
  4073. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4074. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4075. esac
  4076. fi
  4077. ;;
  4078. sco3.2v5*)
  4079. lt_cv_sys_max_cmd_len=102400
  4080. ;;
  4081. sysv5* | sco5v6* | sysv4.2uw2*)
  4082. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4083. if test -n "$kargmax"; then
  4084. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4085. else
  4086. lt_cv_sys_max_cmd_len=32768
  4087. fi
  4088. ;;
  4089. *)
  4090. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4091. if test -n "$lt_cv_sys_max_cmd_len"; then
  4092. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4093. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4094. else
  4095. # Make teststring a little bigger before we do anything with it.
  4096. # a 1K string should be a reasonable start.
  4097. for i in 1 2 3 4 5 6 7 8 ; do
  4098. teststring=$teststring$teststring
  4099. done
  4100. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4101. # If test is not a shell built-in, we'll probably end up computing a
  4102. # maximum length that is only half of the actual maximum length, but
  4103. # we can't tell.
  4104. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4105. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4106. test $i != 17 # 1/2 MB should be enough
  4107. do
  4108. i=`expr $i + 1`
  4109. teststring=$teststring$teststring
  4110. done
  4111. # Only check the string length outside the loop.
  4112. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4113. teststring=
  4114. # Add a significant safety factor because C++ compilers can tack on
  4115. # massive amounts of additional arguments before passing them to the
  4116. # linker. It appears as though 1/2 is a usable value.
  4117. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4118. fi
  4119. ;;
  4120. esac
  4121. fi
  4122. if test -n $lt_cv_sys_max_cmd_len ; then
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4124. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4125. else
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4127. $as_echo "none" >&6; }
  4128. fi
  4129. max_cmd_len=$lt_cv_sys_max_cmd_len
  4130. : ${CP="cp -f"}
  4131. : ${MV="mv -f"}
  4132. : ${RM="rm -f"}
  4133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4134. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4135. # Try some XSI features
  4136. xsi_shell=no
  4137. ( _lt_dummy="a/b/c"
  4138. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4139. = c,a/b,b/c, \
  4140. && eval 'test $(( 1 + 1 )) -eq 2 \
  4141. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4142. && xsi_shell=yes
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4144. $as_echo "$xsi_shell" >&6; }
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4146. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4147. lt_shell_append=no
  4148. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4149. >/dev/null 2>&1 \
  4150. && lt_shell_append=yes
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4152. $as_echo "$lt_shell_append" >&6; }
  4153. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4154. lt_unset=unset
  4155. else
  4156. lt_unset=false
  4157. fi
  4158. # test EBCDIC or ASCII
  4159. case `echo X|tr X '\101'` in
  4160. A) # ASCII based system
  4161. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4162. lt_SP2NL='tr \040 \012'
  4163. lt_NL2SP='tr \015\012 \040\040'
  4164. ;;
  4165. *) # EBCDIC based system
  4166. lt_SP2NL='tr \100 \n'
  4167. lt_NL2SP='tr \r\n \100\100'
  4168. ;;
  4169. esac
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4171. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4172. if ${lt_cv_to_host_file_cmd+:} false; then :
  4173. $as_echo_n "(cached) " >&6
  4174. else
  4175. case $host in
  4176. *-*-mingw* )
  4177. case $build in
  4178. *-*-mingw* ) # actually msys
  4179. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4180. ;;
  4181. *-*-cygwin* )
  4182. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4183. ;;
  4184. * ) # otherwise, assume *nix
  4185. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4186. ;;
  4187. esac
  4188. ;;
  4189. *-*-cygwin* )
  4190. case $build in
  4191. *-*-mingw* ) # actually msys
  4192. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4193. ;;
  4194. *-*-cygwin* )
  4195. lt_cv_to_host_file_cmd=func_convert_file_noop
  4196. ;;
  4197. * ) # otherwise, assume *nix
  4198. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4199. ;;
  4200. esac
  4201. ;;
  4202. * ) # unhandled hosts (and "normal" native builds)
  4203. lt_cv_to_host_file_cmd=func_convert_file_noop
  4204. ;;
  4205. esac
  4206. fi
  4207. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4209. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4211. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4212. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4213. $as_echo_n "(cached) " >&6
  4214. else
  4215. #assume ordinary cross tools, or native build.
  4216. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4217. case $host in
  4218. *-*-mingw* )
  4219. case $build in
  4220. *-*-mingw* ) # actually msys
  4221. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4222. ;;
  4223. esac
  4224. ;;
  4225. esac
  4226. fi
  4227. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4229. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4231. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4232. if ${lt_cv_ld_reload_flag+:} false; then :
  4233. $as_echo_n "(cached) " >&6
  4234. else
  4235. lt_cv_ld_reload_flag='-r'
  4236. fi
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4238. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4239. reload_flag=$lt_cv_ld_reload_flag
  4240. case $reload_flag in
  4241. "" | " "*) ;;
  4242. *) reload_flag=" $reload_flag" ;;
  4243. esac
  4244. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4245. case $host_os in
  4246. cygwin* | mingw* | pw32* | cegcc*)
  4247. if test "$GCC" != yes; then
  4248. reload_cmds=false
  4249. fi
  4250. ;;
  4251. darwin*)
  4252. if test "$GCC" = yes; then
  4253. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4254. else
  4255. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4256. fi
  4257. ;;
  4258. esac
  4259. if test -n "$ac_tool_prefix"; then
  4260. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4261. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4263. $as_echo_n "checking for $ac_word... " >&6; }
  4264. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4265. $as_echo_n "(cached) " >&6
  4266. else
  4267. if test -n "$OBJDUMP"; then
  4268. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4269. else
  4270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4271. for as_dir in $PATH
  4272. do
  4273. IFS=$as_save_IFS
  4274. test -z "$as_dir" && as_dir=.
  4275. for ac_exec_ext in '' $ac_executable_extensions; do
  4276. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4277. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4279. break 2
  4280. fi
  4281. done
  4282. done
  4283. IFS=$as_save_IFS
  4284. fi
  4285. fi
  4286. OBJDUMP=$ac_cv_prog_OBJDUMP
  4287. if test -n "$OBJDUMP"; then
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4289. $as_echo "$OBJDUMP" >&6; }
  4290. else
  4291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4292. $as_echo "no" >&6; }
  4293. fi
  4294. fi
  4295. if test -z "$ac_cv_prog_OBJDUMP"; then
  4296. ac_ct_OBJDUMP=$OBJDUMP
  4297. # Extract the first word of "objdump", so it can be a program name with args.
  4298. set dummy objdump; ac_word=$2
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4300. $as_echo_n "checking for $ac_word... " >&6; }
  4301. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4302. $as_echo_n "(cached) " >&6
  4303. else
  4304. if test -n "$ac_ct_OBJDUMP"; then
  4305. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4306. else
  4307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4308. for as_dir in $PATH
  4309. do
  4310. IFS=$as_save_IFS
  4311. test -z "$as_dir" && as_dir=.
  4312. for ac_exec_ext in '' $ac_executable_extensions; do
  4313. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4314. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4316. break 2
  4317. fi
  4318. done
  4319. done
  4320. IFS=$as_save_IFS
  4321. fi
  4322. fi
  4323. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4324. if test -n "$ac_ct_OBJDUMP"; then
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4326. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4327. else
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4329. $as_echo "no" >&6; }
  4330. fi
  4331. if test "x$ac_ct_OBJDUMP" = x; then
  4332. OBJDUMP="false"
  4333. else
  4334. case $cross_compiling:$ac_tool_warned in
  4335. yes:)
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4337. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4338. ac_tool_warned=yes ;;
  4339. esac
  4340. OBJDUMP=$ac_ct_OBJDUMP
  4341. fi
  4342. else
  4343. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4344. fi
  4345. test -z "$OBJDUMP" && OBJDUMP=objdump
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4347. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4348. if ${lt_cv_deplibs_check_method+:} false; then :
  4349. $as_echo_n "(cached) " >&6
  4350. else
  4351. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4352. lt_cv_file_magic_test_file=
  4353. lt_cv_deplibs_check_method='unknown'
  4354. # Need to set the preceding variable on all platforms that support
  4355. # interlibrary dependencies.
  4356. # 'none' -- dependencies not supported.
  4357. # `unknown' -- same as none, but documents that we really don't know.
  4358. # 'pass_all' -- all dependencies passed with no checks.
  4359. # 'test_compile' -- check by making test program.
  4360. # 'file_magic [[regex]]' -- check by looking for files in library path
  4361. # which responds to the $file_magic_cmd with a given extended regex.
  4362. # If you have `file' or equivalent on your system and you're not sure
  4363. # whether `pass_all' will *always* work, you probably want this one.
  4364. case $host_os in
  4365. aix[4-9]*)
  4366. lt_cv_deplibs_check_method=pass_all
  4367. ;;
  4368. beos*)
  4369. lt_cv_deplibs_check_method=pass_all
  4370. ;;
  4371. bsdi[45]*)
  4372. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4373. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4374. lt_cv_file_magic_test_file=/shlib/libc.so
  4375. ;;
  4376. cygwin*)
  4377. # func_win32_libid is a shell function defined in ltmain.sh
  4378. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4379. lt_cv_file_magic_cmd='func_win32_libid'
  4380. lt_cv_deplibs_check_method=pass_all
  4381. ;;
  4382. mingw* | pw32*)
  4383. # Base MSYS/MinGW do not provide the 'file' command needed by
  4384. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4385. # unless we find 'file', for example because we are cross-compiling.
  4386. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4387. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4388. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4389. lt_cv_file_magic_cmd='func_win32_libid'
  4390. else
  4391. # Keep this pattern in sync with the one in func_win32_libid.
  4392. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4393. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4394. fi
  4395. lt_cv_deplibs_check_method=pass_all
  4396. ;;
  4397. cegcc*)
  4398. # use the weaker test based on 'objdump'. See mingw*.
  4399. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4400. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4401. ;;
  4402. darwin* | rhapsody*)
  4403. lt_cv_deplibs_check_method=pass_all
  4404. ;;
  4405. freebsd* | dragonfly*)
  4406. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4407. case $host_cpu in
  4408. i*86 )
  4409. # Not sure whether the presence of OpenBSD here was a mistake.
  4410. # Let's accept both of them until this is cleared up.
  4411. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4412. lt_cv_file_magic_cmd=/usr/bin/file
  4413. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4414. ;;
  4415. esac
  4416. else
  4417. lt_cv_deplibs_check_method=pass_all
  4418. fi
  4419. ;;
  4420. gnu*)
  4421. lt_cv_deplibs_check_method=pass_all
  4422. ;;
  4423. haiku*)
  4424. lt_cv_deplibs_check_method=pass_all
  4425. ;;
  4426. hpux10.20* | hpux11*)
  4427. lt_cv_file_magic_cmd=/usr/bin/file
  4428. case $host_cpu in
  4429. ia64*)
  4430. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4431. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4432. ;;
  4433. hppa*64*)
  4434. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4435. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4436. ;;
  4437. *)
  4438. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4439. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4440. ;;
  4441. esac
  4442. ;;
  4443. interix[3-9]*)
  4444. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4445. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4446. ;;
  4447. irix5* | irix6* | nonstopux*)
  4448. case $LD in
  4449. *-32|*"-32 ") libmagic=32-bit;;
  4450. *-n32|*"-n32 ") libmagic=N32;;
  4451. *-64|*"-64 ") libmagic=64-bit;;
  4452. *) libmagic=never-match;;
  4453. esac
  4454. lt_cv_deplibs_check_method=pass_all
  4455. ;;
  4456. # This must be glibc/ELF.
  4457. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4458. lt_cv_deplibs_check_method=pass_all
  4459. ;;
  4460. netbsd*)
  4461. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4462. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4463. else
  4464. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4465. fi
  4466. ;;
  4467. newos6*)
  4468. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4469. lt_cv_file_magic_cmd=/usr/bin/file
  4470. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4471. ;;
  4472. *nto* | *qnx*)
  4473. lt_cv_deplibs_check_method=pass_all
  4474. ;;
  4475. openbsd*)
  4476. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4477. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4478. else
  4479. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4480. fi
  4481. ;;
  4482. osf3* | osf4* | osf5*)
  4483. lt_cv_deplibs_check_method=pass_all
  4484. ;;
  4485. rdos*)
  4486. lt_cv_deplibs_check_method=pass_all
  4487. ;;
  4488. solaris*)
  4489. lt_cv_deplibs_check_method=pass_all
  4490. ;;
  4491. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4492. lt_cv_deplibs_check_method=pass_all
  4493. ;;
  4494. sysv4 | sysv4.3*)
  4495. case $host_vendor in
  4496. motorola)
  4497. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  4498. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4499. ;;
  4500. ncr)
  4501. lt_cv_deplibs_check_method=pass_all
  4502. ;;
  4503. sequent)
  4504. lt_cv_file_magic_cmd='/bin/file'
  4505. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4506. ;;
  4507. sni)
  4508. lt_cv_file_magic_cmd='/bin/file'
  4509. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4510. lt_cv_file_magic_test_file=/lib/libc.so
  4511. ;;
  4512. siemens)
  4513. lt_cv_deplibs_check_method=pass_all
  4514. ;;
  4515. pc)
  4516. lt_cv_deplibs_check_method=pass_all
  4517. ;;
  4518. esac
  4519. ;;
  4520. tpf*)
  4521. lt_cv_deplibs_check_method=pass_all
  4522. ;;
  4523. esac
  4524. fi
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4526. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4527. file_magic_glob=
  4528. want_nocaseglob=no
  4529. if test "$build" = "$host"; then
  4530. case $host_os in
  4531. mingw* | pw32*)
  4532. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4533. want_nocaseglob=yes
  4534. else
  4535. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4536. fi
  4537. ;;
  4538. esac
  4539. fi
  4540. file_magic_cmd=$lt_cv_file_magic_cmd
  4541. deplibs_check_method=$lt_cv_deplibs_check_method
  4542. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4543. if test -n "$ac_tool_prefix"; then
  4544. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4545. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4547. $as_echo_n "checking for $ac_word... " >&6; }
  4548. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4549. $as_echo_n "(cached) " >&6
  4550. else
  4551. if test -n "$DLLTOOL"; then
  4552. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4553. else
  4554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4555. for as_dir in $PATH
  4556. do
  4557. IFS=$as_save_IFS
  4558. test -z "$as_dir" && as_dir=.
  4559. for ac_exec_ext in '' $ac_executable_extensions; do
  4560. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4561. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4562. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4563. break 2
  4564. fi
  4565. done
  4566. done
  4567. IFS=$as_save_IFS
  4568. fi
  4569. fi
  4570. DLLTOOL=$ac_cv_prog_DLLTOOL
  4571. if test -n "$DLLTOOL"; then
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4573. $as_echo "$DLLTOOL" >&6; }
  4574. else
  4575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4576. $as_echo "no" >&6; }
  4577. fi
  4578. fi
  4579. if test -z "$ac_cv_prog_DLLTOOL"; then
  4580. ac_ct_DLLTOOL=$DLLTOOL
  4581. # Extract the first word of "dlltool", so it can be a program name with args.
  4582. set dummy dlltool; ac_word=$2
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4584. $as_echo_n "checking for $ac_word... " >&6; }
  4585. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4586. $as_echo_n "(cached) " >&6
  4587. else
  4588. if test -n "$ac_ct_DLLTOOL"; then
  4589. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4590. else
  4591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4592. for as_dir in $PATH
  4593. do
  4594. IFS=$as_save_IFS
  4595. test -z "$as_dir" && as_dir=.
  4596. for ac_exec_ext in '' $ac_executable_extensions; do
  4597. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4598. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4600. break 2
  4601. fi
  4602. done
  4603. done
  4604. IFS=$as_save_IFS
  4605. fi
  4606. fi
  4607. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4608. if test -n "$ac_ct_DLLTOOL"; then
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4610. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4611. else
  4612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4613. $as_echo "no" >&6; }
  4614. fi
  4615. if test "x$ac_ct_DLLTOOL" = x; then
  4616. DLLTOOL="false"
  4617. else
  4618. case $cross_compiling:$ac_tool_warned in
  4619. yes:)
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4621. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4622. ac_tool_warned=yes ;;
  4623. esac
  4624. DLLTOOL=$ac_ct_DLLTOOL
  4625. fi
  4626. else
  4627. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4628. fi
  4629. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4631. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4632. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4633. $as_echo_n "(cached) " >&6
  4634. else
  4635. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4636. case $host_os in
  4637. cygwin* | mingw* | pw32* | cegcc*)
  4638. # two different shell functions defined in ltmain.sh
  4639. # decide which to use based on capabilities of $DLLTOOL
  4640. case `$DLLTOOL --help 2>&1` in
  4641. *--identify-strict*)
  4642. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4643. ;;
  4644. *)
  4645. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4646. ;;
  4647. esac
  4648. ;;
  4649. *)
  4650. # fallback: assume linklib IS sharedlib
  4651. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4652. ;;
  4653. esac
  4654. fi
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4656. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4657. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4658. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4659. if test -n "$ac_tool_prefix"; then
  4660. for ac_prog in ar
  4661. do
  4662. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4663. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4665. $as_echo_n "checking for $ac_word... " >&6; }
  4666. if ${ac_cv_prog_AR+:} false; then :
  4667. $as_echo_n "(cached) " >&6
  4668. else
  4669. if test -n "$AR"; then
  4670. ac_cv_prog_AR="$AR" # Let the user override the test.
  4671. else
  4672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4673. for as_dir in $PATH
  4674. do
  4675. IFS=$as_save_IFS
  4676. test -z "$as_dir" && as_dir=.
  4677. for ac_exec_ext in '' $ac_executable_extensions; do
  4678. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4679. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4681. break 2
  4682. fi
  4683. done
  4684. done
  4685. IFS=$as_save_IFS
  4686. fi
  4687. fi
  4688. AR=$ac_cv_prog_AR
  4689. if test -n "$AR"; then
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4691. $as_echo "$AR" >&6; }
  4692. else
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4694. $as_echo "no" >&6; }
  4695. fi
  4696. test -n "$AR" && break
  4697. done
  4698. fi
  4699. if test -z "$AR"; then
  4700. ac_ct_AR=$AR
  4701. for ac_prog in ar
  4702. do
  4703. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4704. set dummy $ac_prog; ac_word=$2
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4706. $as_echo_n "checking for $ac_word... " >&6; }
  4707. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4708. $as_echo_n "(cached) " >&6
  4709. else
  4710. if test -n "$ac_ct_AR"; then
  4711. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4712. else
  4713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4714. for as_dir in $PATH
  4715. do
  4716. IFS=$as_save_IFS
  4717. test -z "$as_dir" && as_dir=.
  4718. for ac_exec_ext in '' $ac_executable_extensions; do
  4719. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4720. ac_cv_prog_ac_ct_AR="$ac_prog"
  4721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4722. break 2
  4723. fi
  4724. done
  4725. done
  4726. IFS=$as_save_IFS
  4727. fi
  4728. fi
  4729. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4730. if test -n "$ac_ct_AR"; then
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4732. $as_echo "$ac_ct_AR" >&6; }
  4733. else
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4735. $as_echo "no" >&6; }
  4736. fi
  4737. test -n "$ac_ct_AR" && break
  4738. done
  4739. if test "x$ac_ct_AR" = x; then
  4740. AR="false"
  4741. else
  4742. case $cross_compiling:$ac_tool_warned in
  4743. yes:)
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4745. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4746. ac_tool_warned=yes ;;
  4747. esac
  4748. AR=$ac_ct_AR
  4749. fi
  4750. fi
  4751. : ${AR=ar}
  4752. : ${AR_FLAGS=cru}
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4754. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4755. if ${lt_cv_ar_at_file+:} false; then :
  4756. $as_echo_n "(cached) " >&6
  4757. else
  4758. lt_cv_ar_at_file=no
  4759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4760. /* end confdefs.h. */
  4761. int
  4762. main ()
  4763. {
  4764. ;
  4765. return 0;
  4766. }
  4767. _ACEOF
  4768. if ac_fn_c_try_compile "$LINENO"; then :
  4769. echo conftest.$ac_objext > conftest.lst
  4770. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4771. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4772. (eval $lt_ar_try) 2>&5
  4773. ac_status=$?
  4774. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4775. test $ac_status = 0; }
  4776. if test "$ac_status" -eq 0; then
  4777. # Ensure the archiver fails upon bogus file names.
  4778. rm -f conftest.$ac_objext libconftest.a
  4779. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4780. (eval $lt_ar_try) 2>&5
  4781. ac_status=$?
  4782. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4783. test $ac_status = 0; }
  4784. if test "$ac_status" -ne 0; then
  4785. lt_cv_ar_at_file=@
  4786. fi
  4787. fi
  4788. rm -f conftest.* libconftest.a
  4789. fi
  4790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4791. fi
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4793. $as_echo "$lt_cv_ar_at_file" >&6; }
  4794. if test "x$lt_cv_ar_at_file" = xno; then
  4795. archiver_list_spec=
  4796. else
  4797. archiver_list_spec=$lt_cv_ar_at_file
  4798. fi
  4799. if test -n "$ac_tool_prefix"; then
  4800. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4801. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4803. $as_echo_n "checking for $ac_word... " >&6; }
  4804. if ${ac_cv_prog_STRIP+:} false; then :
  4805. $as_echo_n "(cached) " >&6
  4806. else
  4807. if test -n "$STRIP"; then
  4808. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4809. else
  4810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4811. for as_dir in $PATH
  4812. do
  4813. IFS=$as_save_IFS
  4814. test -z "$as_dir" && as_dir=.
  4815. for ac_exec_ext in '' $ac_executable_extensions; do
  4816. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4817. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4819. break 2
  4820. fi
  4821. done
  4822. done
  4823. IFS=$as_save_IFS
  4824. fi
  4825. fi
  4826. STRIP=$ac_cv_prog_STRIP
  4827. if test -n "$STRIP"; then
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4829. $as_echo "$STRIP" >&6; }
  4830. else
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4832. $as_echo "no" >&6; }
  4833. fi
  4834. fi
  4835. if test -z "$ac_cv_prog_STRIP"; then
  4836. ac_ct_STRIP=$STRIP
  4837. # Extract the first word of "strip", so it can be a program name with args.
  4838. set dummy strip; ac_word=$2
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4840. $as_echo_n "checking for $ac_word... " >&6; }
  4841. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4842. $as_echo_n "(cached) " >&6
  4843. else
  4844. if test -n "$ac_ct_STRIP"; then
  4845. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4846. else
  4847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4848. for as_dir in $PATH
  4849. do
  4850. IFS=$as_save_IFS
  4851. test -z "$as_dir" && as_dir=.
  4852. for ac_exec_ext in '' $ac_executable_extensions; do
  4853. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4854. ac_cv_prog_ac_ct_STRIP="strip"
  4855. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4856. break 2
  4857. fi
  4858. done
  4859. done
  4860. IFS=$as_save_IFS
  4861. fi
  4862. fi
  4863. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4864. if test -n "$ac_ct_STRIP"; then
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4866. $as_echo "$ac_ct_STRIP" >&6; }
  4867. else
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4869. $as_echo "no" >&6; }
  4870. fi
  4871. if test "x$ac_ct_STRIP" = x; then
  4872. STRIP=":"
  4873. else
  4874. case $cross_compiling:$ac_tool_warned in
  4875. yes:)
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4877. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4878. ac_tool_warned=yes ;;
  4879. esac
  4880. STRIP=$ac_ct_STRIP
  4881. fi
  4882. else
  4883. STRIP="$ac_cv_prog_STRIP"
  4884. fi
  4885. test -z "$STRIP" && STRIP=:
  4886. if test -n "$ac_tool_prefix"; then
  4887. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4888. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4890. $as_echo_n "checking for $ac_word... " >&6; }
  4891. if ${ac_cv_prog_RANLIB+:} false; then :
  4892. $as_echo_n "(cached) " >&6
  4893. else
  4894. if test -n "$RANLIB"; then
  4895. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4896. else
  4897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4898. for as_dir in $PATH
  4899. do
  4900. IFS=$as_save_IFS
  4901. test -z "$as_dir" && as_dir=.
  4902. for ac_exec_ext in '' $ac_executable_extensions; do
  4903. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4904. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4905. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4906. break 2
  4907. fi
  4908. done
  4909. done
  4910. IFS=$as_save_IFS
  4911. fi
  4912. fi
  4913. RANLIB=$ac_cv_prog_RANLIB
  4914. if test -n "$RANLIB"; then
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4916. $as_echo "$RANLIB" >&6; }
  4917. else
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4919. $as_echo "no" >&6; }
  4920. fi
  4921. fi
  4922. if test -z "$ac_cv_prog_RANLIB"; then
  4923. ac_ct_RANLIB=$RANLIB
  4924. # Extract the first word of "ranlib", so it can be a program name with args.
  4925. set dummy ranlib; ac_word=$2
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4927. $as_echo_n "checking for $ac_word... " >&6; }
  4928. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4929. $as_echo_n "(cached) " >&6
  4930. else
  4931. if test -n "$ac_ct_RANLIB"; then
  4932. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4933. else
  4934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4935. for as_dir in $PATH
  4936. do
  4937. IFS=$as_save_IFS
  4938. test -z "$as_dir" && as_dir=.
  4939. for ac_exec_ext in '' $ac_executable_extensions; do
  4940. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4941. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4943. break 2
  4944. fi
  4945. done
  4946. done
  4947. IFS=$as_save_IFS
  4948. fi
  4949. fi
  4950. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4951. if test -n "$ac_ct_RANLIB"; then
  4952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4953. $as_echo "$ac_ct_RANLIB" >&6; }
  4954. else
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4956. $as_echo "no" >&6; }
  4957. fi
  4958. if test "x$ac_ct_RANLIB" = x; then
  4959. RANLIB=":"
  4960. else
  4961. case $cross_compiling:$ac_tool_warned in
  4962. yes:)
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4964. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4965. ac_tool_warned=yes ;;
  4966. esac
  4967. RANLIB=$ac_ct_RANLIB
  4968. fi
  4969. else
  4970. RANLIB="$ac_cv_prog_RANLIB"
  4971. fi
  4972. test -z "$RANLIB" && RANLIB=:
  4973. # Determine commands to create old-style static archives.
  4974. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4975. old_postinstall_cmds='chmod 644 $oldlib'
  4976. old_postuninstall_cmds=
  4977. if test -n "$RANLIB"; then
  4978. case $host_os in
  4979. openbsd*)
  4980. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4981. ;;
  4982. *)
  4983. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4984. ;;
  4985. esac
  4986. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4987. fi
  4988. case $host_os in
  4989. darwin*)
  4990. lock_old_archive_extraction=yes ;;
  4991. *)
  4992. lock_old_archive_extraction=no ;;
  4993. esac
  4994. for ac_prog in gawk mawk nawk awk
  4995. do
  4996. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4997. set dummy $ac_prog; ac_word=$2
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4999. $as_echo_n "checking for $ac_word... " >&6; }
  5000. if ${ac_cv_prog_AWK+:} false; then :
  5001. $as_echo_n "(cached) " >&6
  5002. else
  5003. if test -n "$AWK"; then
  5004. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5005. else
  5006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5007. for as_dir in $PATH
  5008. do
  5009. IFS=$as_save_IFS
  5010. test -z "$as_dir" && as_dir=.
  5011. for ac_exec_ext in '' $ac_executable_extensions; do
  5012. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5013. ac_cv_prog_AWK="$ac_prog"
  5014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5015. break 2
  5016. fi
  5017. done
  5018. done
  5019. IFS=$as_save_IFS
  5020. fi
  5021. fi
  5022. AWK=$ac_cv_prog_AWK
  5023. if test -n "$AWK"; then
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5025. $as_echo "$AWK" >&6; }
  5026. else
  5027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5028. $as_echo "no" >&6; }
  5029. fi
  5030. test -n "$AWK" && break
  5031. done
  5032. # If no C compiler was specified, use CC.
  5033. LTCC=${LTCC-"$CC"}
  5034. # If no C compiler flags were specified, use CFLAGS.
  5035. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5036. # Allow CC to be a program name with arguments.
  5037. compiler=$CC
  5038. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5040. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5041. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5042. $as_echo_n "(cached) " >&6
  5043. else
  5044. # These are sane defaults that work on at least a few old systems.
  5045. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5046. # Character class describing NM global symbol codes.
  5047. symcode='[BCDEGRST]'
  5048. # Regexp to match symbols that can be accessed directly from C.
  5049. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5050. # Define system-specific variables.
  5051. case $host_os in
  5052. aix*)
  5053. symcode='[BCDT]'
  5054. ;;
  5055. cygwin* | mingw* | pw32* | cegcc*)
  5056. symcode='[ABCDGISTW]'
  5057. ;;
  5058. hpux*)
  5059. if test "$host_cpu" = ia64; then
  5060. symcode='[ABCDEGRST]'
  5061. fi
  5062. ;;
  5063. irix* | nonstopux*)
  5064. symcode='[BCDEGRST]'
  5065. ;;
  5066. osf*)
  5067. symcode='[BCDEGQRST]'
  5068. ;;
  5069. solaris*)
  5070. symcode='[BDRT]'
  5071. ;;
  5072. sco3.2v5*)
  5073. symcode='[DT]'
  5074. ;;
  5075. sysv4.2uw2*)
  5076. symcode='[DT]'
  5077. ;;
  5078. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5079. symcode='[ABDT]'
  5080. ;;
  5081. sysv4)
  5082. symcode='[DFNSTU]'
  5083. ;;
  5084. esac
  5085. # If we're using GNU nm, then use its standard symbol codes.
  5086. case `$NM -V 2>&1` in
  5087. *GNU* | *'with BFD'*)
  5088. symcode='[ABCDGIRSTW]' ;;
  5089. esac
  5090. # Transform an extracted symbol line into a proper C declaration.
  5091. # Some systems (esp. on ia64) link data and code symbols differently,
  5092. # so use this general approach.
  5093. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5094. # Transform an extracted symbol line into symbol name and symbol address
  5095. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5096. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5097. # Handle CRLF in mingw tool chain
  5098. opt_cr=
  5099. case $build_os in
  5100. mingw*)
  5101. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5102. ;;
  5103. esac
  5104. # Try without a prefix underscore, then with it.
  5105. for ac_symprfx in "" "_"; do
  5106. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5107. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5108. # Write the raw and C identifiers.
  5109. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5110. # Fake it for dumpbin and say T for any non-static function
  5111. # and D for any global variable.
  5112. # Also find C++ and __fastcall symbols from MSVC++,
  5113. # which start with @ or ?.
  5114. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5115. " {last_section=section; section=\$ 3};"\
  5116. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5117. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5118. " \$ 0!~/External *\|/{next};"\
  5119. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5120. " {if(hide[section]) next};"\
  5121. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5122. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5123. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5124. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5125. " ' prfx=^$ac_symprfx"
  5126. else
  5127. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5128. fi
  5129. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5130. # Check to see that the pipe works correctly.
  5131. pipe_works=no
  5132. rm -f conftest*
  5133. cat > conftest.$ac_ext <<_LT_EOF
  5134. #ifdef __cplusplus
  5135. extern "C" {
  5136. #endif
  5137. char nm_test_var;
  5138. void nm_test_func(void);
  5139. void nm_test_func(void){}
  5140. #ifdef __cplusplus
  5141. }
  5142. #endif
  5143. int main(){nm_test_var='a';nm_test_func();return(0);}
  5144. _LT_EOF
  5145. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5146. (eval $ac_compile) 2>&5
  5147. ac_status=$?
  5148. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5149. test $ac_status = 0; }; then
  5150. # Now try to grab the symbols.
  5151. nlist=conftest.nm
  5152. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5153. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5154. ac_status=$?
  5155. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5156. test $ac_status = 0; } && test -s "$nlist"; then
  5157. # Try sorting and uniquifying the output.
  5158. if sort "$nlist" | uniq > "$nlist"T; then
  5159. mv -f "$nlist"T "$nlist"
  5160. else
  5161. rm -f "$nlist"T
  5162. fi
  5163. # Make sure that we snagged all the symbols we need.
  5164. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5165. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5166. cat <<_LT_EOF > conftest.$ac_ext
  5167. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5168. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5169. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5170. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5171. # define LT_DLSYM_CONST
  5172. #elif defined(__osf__)
  5173. /* This system does not cope well with relocations in const data. */
  5174. # define LT_DLSYM_CONST
  5175. #else
  5176. # define LT_DLSYM_CONST const
  5177. #endif
  5178. #ifdef __cplusplus
  5179. extern "C" {
  5180. #endif
  5181. _LT_EOF
  5182. # Now generate the symbol file.
  5183. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5184. cat <<_LT_EOF >> conftest.$ac_ext
  5185. /* The mapping between symbol names and symbols. */
  5186. LT_DLSYM_CONST struct {
  5187. const char *name;
  5188. void *address;
  5189. }
  5190. lt__PROGRAM__LTX_preloaded_symbols[] =
  5191. {
  5192. { "@PROGRAM@", (void *) 0 },
  5193. _LT_EOF
  5194. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5195. cat <<\_LT_EOF >> conftest.$ac_ext
  5196. {0, (void *) 0}
  5197. };
  5198. /* This works around a problem in FreeBSD linker */
  5199. #ifdef FREEBSD_WORKAROUND
  5200. static const void *lt_preloaded_setup() {
  5201. return lt__PROGRAM__LTX_preloaded_symbols;
  5202. }
  5203. #endif
  5204. #ifdef __cplusplus
  5205. }
  5206. #endif
  5207. _LT_EOF
  5208. # Now try linking the two files.
  5209. mv conftest.$ac_objext conftstm.$ac_objext
  5210. lt_globsym_save_LIBS=$LIBS
  5211. lt_globsym_save_CFLAGS=$CFLAGS
  5212. LIBS="conftstm.$ac_objext"
  5213. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5214. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5215. (eval $ac_link) 2>&5
  5216. ac_status=$?
  5217. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5218. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5219. pipe_works=yes
  5220. fi
  5221. LIBS=$lt_globsym_save_LIBS
  5222. CFLAGS=$lt_globsym_save_CFLAGS
  5223. else
  5224. echo "cannot find nm_test_func in $nlist" >&5
  5225. fi
  5226. else
  5227. echo "cannot find nm_test_var in $nlist" >&5
  5228. fi
  5229. else
  5230. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5231. fi
  5232. else
  5233. echo "$progname: failed program was:" >&5
  5234. cat conftest.$ac_ext >&5
  5235. fi
  5236. rm -rf conftest* conftst*
  5237. # Do not use the global_symbol_pipe unless it works.
  5238. if test "$pipe_works" = yes; then
  5239. break
  5240. else
  5241. lt_cv_sys_global_symbol_pipe=
  5242. fi
  5243. done
  5244. fi
  5245. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5246. lt_cv_sys_global_symbol_to_cdecl=
  5247. fi
  5248. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5250. $as_echo "failed" >&6; }
  5251. else
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5253. $as_echo "ok" >&6; }
  5254. fi
  5255. # Response file support.
  5256. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5257. nm_file_list_spec='@'
  5258. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5259. nm_file_list_spec='@'
  5260. fi
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5262. $as_echo_n "checking for sysroot... " >&6; }
  5263. # Check whether --with-sysroot was given.
  5264. if test "${with_sysroot+set}" = set; then :
  5265. withval=$with_sysroot;
  5266. else
  5267. with_sysroot=no
  5268. fi
  5269. lt_sysroot=
  5270. case ${with_sysroot} in #(
  5271. yes)
  5272. if test "$GCC" = yes; then
  5273. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5274. fi
  5275. ;; #(
  5276. /*)
  5277. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5278. ;; #(
  5279. no|'')
  5280. ;; #(
  5281. *)
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5283. $as_echo "${with_sysroot}" >&6; }
  5284. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5285. ;;
  5286. esac
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5288. $as_echo "${lt_sysroot:-no}" >&6; }
  5289. # Check whether --enable-libtool-lock was given.
  5290. if test "${enable_libtool_lock+set}" = set; then :
  5291. enableval=$enable_libtool_lock;
  5292. fi
  5293. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5294. # Some flags need to be propagated to the compiler or linker for good
  5295. # libtool support.
  5296. case $host in
  5297. ia64-*-hpux*)
  5298. # Find out which ABI we are using.
  5299. echo 'int i;' > conftest.$ac_ext
  5300. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5301. (eval $ac_compile) 2>&5
  5302. ac_status=$?
  5303. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5304. test $ac_status = 0; }; then
  5305. case `/usr/bin/file conftest.$ac_objext` in
  5306. *ELF-32*)
  5307. HPUX_IA64_MODE="32"
  5308. ;;
  5309. *ELF-64*)
  5310. HPUX_IA64_MODE="64"
  5311. ;;
  5312. esac
  5313. fi
  5314. rm -rf conftest*
  5315. ;;
  5316. *-*-irix6*)
  5317. # Find out which ABI we are using.
  5318. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5319. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5320. (eval $ac_compile) 2>&5
  5321. ac_status=$?
  5322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5323. test $ac_status = 0; }; then
  5324. if test "$lt_cv_prog_gnu_ld" = yes; then
  5325. case `/usr/bin/file conftest.$ac_objext` in
  5326. *32-bit*)
  5327. LD="${LD-ld} -melf32bsmip"
  5328. ;;
  5329. *N32*)
  5330. LD="${LD-ld} -melf32bmipn32"
  5331. ;;
  5332. *64-bit*)
  5333. LD="${LD-ld} -melf64bmip"
  5334. ;;
  5335. esac
  5336. else
  5337. case `/usr/bin/file conftest.$ac_objext` in
  5338. *32-bit*)
  5339. LD="${LD-ld} -32"
  5340. ;;
  5341. *N32*)
  5342. LD="${LD-ld} -n32"
  5343. ;;
  5344. *64-bit*)
  5345. LD="${LD-ld} -64"
  5346. ;;
  5347. esac
  5348. fi
  5349. fi
  5350. rm -rf conftest*
  5351. ;;
  5352. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5353. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5354. # Find out which ABI we are using.
  5355. echo 'int i;' > conftest.$ac_ext
  5356. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5357. (eval $ac_compile) 2>&5
  5358. ac_status=$?
  5359. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5360. test $ac_status = 0; }; then
  5361. case `/usr/bin/file conftest.o` in
  5362. *32-bit*)
  5363. case $host in
  5364. x86_64-*kfreebsd*-gnu)
  5365. LD="${LD-ld} -m elf_i386_fbsd"
  5366. ;;
  5367. x86_64-*linux*)
  5368. LD="${LD-ld} -m elf_i386"
  5369. ;;
  5370. ppc64-*linux*|powerpc64-*linux*)
  5371. LD="${LD-ld} -m elf32ppclinux"
  5372. ;;
  5373. s390x-*linux*)
  5374. LD="${LD-ld} -m elf_s390"
  5375. ;;
  5376. sparc64-*linux*)
  5377. LD="${LD-ld} -m elf32_sparc"
  5378. ;;
  5379. esac
  5380. ;;
  5381. *64-bit*)
  5382. case $host in
  5383. x86_64-*kfreebsd*-gnu)
  5384. LD="${LD-ld} -m elf_x86_64_fbsd"
  5385. ;;
  5386. x86_64-*linux*)
  5387. LD="${LD-ld} -m elf_x86_64"
  5388. ;;
  5389. powerpc64le-*linux*)
  5390. LD="${LD-ld} -m elf64lppc"
  5391. ;;
  5392. powerpc64-*linux*)
  5393. LD="${LD-ld} -m elf64ppc"
  5394. ;;
  5395. s390*-*linux*|s390*-*tpf*)
  5396. LD="${LD-ld} -m elf64_s390"
  5397. ;;
  5398. sparc*-*linux*)
  5399. LD="${LD-ld} -m elf64_sparc"
  5400. ;;
  5401. esac
  5402. ;;
  5403. esac
  5404. fi
  5405. rm -rf conftest*
  5406. ;;
  5407. *-*-sco3.2v5*)
  5408. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5409. SAVE_CFLAGS="$CFLAGS"
  5410. CFLAGS="$CFLAGS -belf"
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5412. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5413. if ${lt_cv_cc_needs_belf+:} false; then :
  5414. $as_echo_n "(cached) " >&6
  5415. else
  5416. ac_ext=c
  5417. ac_cpp='$CPP $CPPFLAGS'
  5418. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5419. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5420. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5422. /* end confdefs.h. */
  5423. int
  5424. main ()
  5425. {
  5426. ;
  5427. return 0;
  5428. }
  5429. _ACEOF
  5430. if ac_fn_c_try_link "$LINENO"; then :
  5431. lt_cv_cc_needs_belf=yes
  5432. else
  5433. lt_cv_cc_needs_belf=no
  5434. fi
  5435. rm -f core conftest.err conftest.$ac_objext \
  5436. conftest$ac_exeext conftest.$ac_ext
  5437. ac_ext=c
  5438. ac_cpp='$CPP $CPPFLAGS'
  5439. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5440. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5441. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5442. fi
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5444. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5445. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5446. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5447. CFLAGS="$SAVE_CFLAGS"
  5448. fi
  5449. ;;
  5450. *-*solaris*)
  5451. # Find out which ABI we are using.
  5452. echo 'int i;' > conftest.$ac_ext
  5453. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5454. (eval $ac_compile) 2>&5
  5455. ac_status=$?
  5456. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5457. test $ac_status = 0; }; then
  5458. case `/usr/bin/file conftest.o` in
  5459. *64-bit*)
  5460. case $lt_cv_prog_gnu_ld in
  5461. yes*)
  5462. case $host in
  5463. i?86-*-solaris*)
  5464. LD="${LD-ld} -m elf_x86_64"
  5465. ;;
  5466. sparc*-*-solaris*)
  5467. LD="${LD-ld} -m elf64_sparc"
  5468. ;;
  5469. esac
  5470. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5471. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5472. LD="${LD-ld}_sol2"
  5473. fi
  5474. ;;
  5475. *)
  5476. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5477. LD="${LD-ld} -64"
  5478. fi
  5479. ;;
  5480. esac
  5481. ;;
  5482. esac
  5483. fi
  5484. rm -rf conftest*
  5485. ;;
  5486. esac
  5487. need_locks="$enable_libtool_lock"
  5488. if test -n "$ac_tool_prefix"; then
  5489. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5490. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5492. $as_echo_n "checking for $ac_word... " >&6; }
  5493. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5494. $as_echo_n "(cached) " >&6
  5495. else
  5496. if test -n "$MANIFEST_TOOL"; then
  5497. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5498. else
  5499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5500. for as_dir in $PATH
  5501. do
  5502. IFS=$as_save_IFS
  5503. test -z "$as_dir" && as_dir=.
  5504. for ac_exec_ext in '' $ac_executable_extensions; do
  5505. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5506. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5507. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5508. break 2
  5509. fi
  5510. done
  5511. done
  5512. IFS=$as_save_IFS
  5513. fi
  5514. fi
  5515. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5516. if test -n "$MANIFEST_TOOL"; then
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5518. $as_echo "$MANIFEST_TOOL" >&6; }
  5519. else
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5521. $as_echo "no" >&6; }
  5522. fi
  5523. fi
  5524. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5525. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5526. # Extract the first word of "mt", so it can be a program name with args.
  5527. set dummy mt; ac_word=$2
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5529. $as_echo_n "checking for $ac_word... " >&6; }
  5530. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5531. $as_echo_n "(cached) " >&6
  5532. else
  5533. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5534. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5535. else
  5536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5537. for as_dir in $PATH
  5538. do
  5539. IFS=$as_save_IFS
  5540. test -z "$as_dir" && as_dir=.
  5541. for ac_exec_ext in '' $ac_executable_extensions; do
  5542. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5543. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5544. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5545. break 2
  5546. fi
  5547. done
  5548. done
  5549. IFS=$as_save_IFS
  5550. fi
  5551. fi
  5552. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5553. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5555. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5556. else
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5558. $as_echo "no" >&6; }
  5559. fi
  5560. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5561. MANIFEST_TOOL=":"
  5562. else
  5563. case $cross_compiling:$ac_tool_warned in
  5564. yes:)
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5566. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5567. ac_tool_warned=yes ;;
  5568. esac
  5569. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5570. fi
  5571. else
  5572. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5573. fi
  5574. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5576. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5577. if ${lt_cv_path_mainfest_tool+:} false; then :
  5578. $as_echo_n "(cached) " >&6
  5579. else
  5580. lt_cv_path_mainfest_tool=no
  5581. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5582. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5583. cat conftest.err >&5
  5584. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5585. lt_cv_path_mainfest_tool=yes
  5586. fi
  5587. rm -f conftest*
  5588. fi
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5590. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5591. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5592. MANIFEST_TOOL=:
  5593. fi
  5594. case $host_os in
  5595. rhapsody* | darwin*)
  5596. if test -n "$ac_tool_prefix"; then
  5597. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5598. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5600. $as_echo_n "checking for $ac_word... " >&6; }
  5601. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5602. $as_echo_n "(cached) " >&6
  5603. else
  5604. if test -n "$DSYMUTIL"; then
  5605. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5606. else
  5607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5608. for as_dir in $PATH
  5609. do
  5610. IFS=$as_save_IFS
  5611. test -z "$as_dir" && as_dir=.
  5612. for ac_exec_ext in '' $ac_executable_extensions; do
  5613. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5614. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5616. break 2
  5617. fi
  5618. done
  5619. done
  5620. IFS=$as_save_IFS
  5621. fi
  5622. fi
  5623. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5624. if test -n "$DSYMUTIL"; then
  5625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5626. $as_echo "$DSYMUTIL" >&6; }
  5627. else
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5629. $as_echo "no" >&6; }
  5630. fi
  5631. fi
  5632. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5633. ac_ct_DSYMUTIL=$DSYMUTIL
  5634. # Extract the first word of "dsymutil", so it can be a program name with args.
  5635. set dummy dsymutil; ac_word=$2
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5637. $as_echo_n "checking for $ac_word... " >&6; }
  5638. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5639. $as_echo_n "(cached) " >&6
  5640. else
  5641. if test -n "$ac_ct_DSYMUTIL"; then
  5642. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5643. else
  5644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5645. for as_dir in $PATH
  5646. do
  5647. IFS=$as_save_IFS
  5648. test -z "$as_dir" && as_dir=.
  5649. for ac_exec_ext in '' $ac_executable_extensions; do
  5650. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5651. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5653. break 2
  5654. fi
  5655. done
  5656. done
  5657. IFS=$as_save_IFS
  5658. fi
  5659. fi
  5660. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5661. if test -n "$ac_ct_DSYMUTIL"; then
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5663. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5664. else
  5665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5666. $as_echo "no" >&6; }
  5667. fi
  5668. if test "x$ac_ct_DSYMUTIL" = x; then
  5669. DSYMUTIL=":"
  5670. else
  5671. case $cross_compiling:$ac_tool_warned in
  5672. yes:)
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5674. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5675. ac_tool_warned=yes ;;
  5676. esac
  5677. DSYMUTIL=$ac_ct_DSYMUTIL
  5678. fi
  5679. else
  5680. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5681. fi
  5682. if test -n "$ac_tool_prefix"; then
  5683. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5684. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5686. $as_echo_n "checking for $ac_word... " >&6; }
  5687. if ${ac_cv_prog_NMEDIT+:} false; then :
  5688. $as_echo_n "(cached) " >&6
  5689. else
  5690. if test -n "$NMEDIT"; then
  5691. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5692. else
  5693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5694. for as_dir in $PATH
  5695. do
  5696. IFS=$as_save_IFS
  5697. test -z "$as_dir" && as_dir=.
  5698. for ac_exec_ext in '' $ac_executable_extensions; do
  5699. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5700. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5702. break 2
  5703. fi
  5704. done
  5705. done
  5706. IFS=$as_save_IFS
  5707. fi
  5708. fi
  5709. NMEDIT=$ac_cv_prog_NMEDIT
  5710. if test -n "$NMEDIT"; then
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5712. $as_echo "$NMEDIT" >&6; }
  5713. else
  5714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5715. $as_echo "no" >&6; }
  5716. fi
  5717. fi
  5718. if test -z "$ac_cv_prog_NMEDIT"; then
  5719. ac_ct_NMEDIT=$NMEDIT
  5720. # Extract the first word of "nmedit", so it can be a program name with args.
  5721. set dummy nmedit; ac_word=$2
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5723. $as_echo_n "checking for $ac_word... " >&6; }
  5724. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5725. $as_echo_n "(cached) " >&6
  5726. else
  5727. if test -n "$ac_ct_NMEDIT"; then
  5728. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5729. else
  5730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5731. for as_dir in $PATH
  5732. do
  5733. IFS=$as_save_IFS
  5734. test -z "$as_dir" && as_dir=.
  5735. for ac_exec_ext in '' $ac_executable_extensions; do
  5736. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5737. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5739. break 2
  5740. fi
  5741. done
  5742. done
  5743. IFS=$as_save_IFS
  5744. fi
  5745. fi
  5746. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5747. if test -n "$ac_ct_NMEDIT"; then
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5749. $as_echo "$ac_ct_NMEDIT" >&6; }
  5750. else
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5752. $as_echo "no" >&6; }
  5753. fi
  5754. if test "x$ac_ct_NMEDIT" = x; then
  5755. NMEDIT=":"
  5756. else
  5757. case $cross_compiling:$ac_tool_warned in
  5758. yes:)
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5760. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5761. ac_tool_warned=yes ;;
  5762. esac
  5763. NMEDIT=$ac_ct_NMEDIT
  5764. fi
  5765. else
  5766. NMEDIT="$ac_cv_prog_NMEDIT"
  5767. fi
  5768. if test -n "$ac_tool_prefix"; then
  5769. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5770. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5772. $as_echo_n "checking for $ac_word... " >&6; }
  5773. if ${ac_cv_prog_LIPO+:} false; then :
  5774. $as_echo_n "(cached) " >&6
  5775. else
  5776. if test -n "$LIPO"; then
  5777. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5778. else
  5779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5780. for as_dir in $PATH
  5781. do
  5782. IFS=$as_save_IFS
  5783. test -z "$as_dir" && as_dir=.
  5784. for ac_exec_ext in '' $ac_executable_extensions; do
  5785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5786. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5788. break 2
  5789. fi
  5790. done
  5791. done
  5792. IFS=$as_save_IFS
  5793. fi
  5794. fi
  5795. LIPO=$ac_cv_prog_LIPO
  5796. if test -n "$LIPO"; then
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5798. $as_echo "$LIPO" >&6; }
  5799. else
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5801. $as_echo "no" >&6; }
  5802. fi
  5803. fi
  5804. if test -z "$ac_cv_prog_LIPO"; then
  5805. ac_ct_LIPO=$LIPO
  5806. # Extract the first word of "lipo", so it can be a program name with args.
  5807. set dummy lipo; ac_word=$2
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5809. $as_echo_n "checking for $ac_word... " >&6; }
  5810. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5811. $as_echo_n "(cached) " >&6
  5812. else
  5813. if test -n "$ac_ct_LIPO"; then
  5814. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5815. else
  5816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5817. for as_dir in $PATH
  5818. do
  5819. IFS=$as_save_IFS
  5820. test -z "$as_dir" && as_dir=.
  5821. for ac_exec_ext in '' $ac_executable_extensions; do
  5822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5823. ac_cv_prog_ac_ct_LIPO="lipo"
  5824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5825. break 2
  5826. fi
  5827. done
  5828. done
  5829. IFS=$as_save_IFS
  5830. fi
  5831. fi
  5832. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5833. if test -n "$ac_ct_LIPO"; then
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5835. $as_echo "$ac_ct_LIPO" >&6; }
  5836. else
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5838. $as_echo "no" >&6; }
  5839. fi
  5840. if test "x$ac_ct_LIPO" = x; then
  5841. LIPO=":"
  5842. else
  5843. case $cross_compiling:$ac_tool_warned in
  5844. yes:)
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5846. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5847. ac_tool_warned=yes ;;
  5848. esac
  5849. LIPO=$ac_ct_LIPO
  5850. fi
  5851. else
  5852. LIPO="$ac_cv_prog_LIPO"
  5853. fi
  5854. if test -n "$ac_tool_prefix"; then
  5855. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5856. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5858. $as_echo_n "checking for $ac_word... " >&6; }
  5859. if ${ac_cv_prog_OTOOL+:} false; then :
  5860. $as_echo_n "(cached) " >&6
  5861. else
  5862. if test -n "$OTOOL"; then
  5863. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5864. else
  5865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5866. for as_dir in $PATH
  5867. do
  5868. IFS=$as_save_IFS
  5869. test -z "$as_dir" && as_dir=.
  5870. for ac_exec_ext in '' $ac_executable_extensions; do
  5871. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5872. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5874. break 2
  5875. fi
  5876. done
  5877. done
  5878. IFS=$as_save_IFS
  5879. fi
  5880. fi
  5881. OTOOL=$ac_cv_prog_OTOOL
  5882. if test -n "$OTOOL"; then
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5884. $as_echo "$OTOOL" >&6; }
  5885. else
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5887. $as_echo "no" >&6; }
  5888. fi
  5889. fi
  5890. if test -z "$ac_cv_prog_OTOOL"; then
  5891. ac_ct_OTOOL=$OTOOL
  5892. # Extract the first word of "otool", so it can be a program name with args.
  5893. set dummy otool; ac_word=$2
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5895. $as_echo_n "checking for $ac_word... " >&6; }
  5896. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5897. $as_echo_n "(cached) " >&6
  5898. else
  5899. if test -n "$ac_ct_OTOOL"; then
  5900. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5901. else
  5902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5903. for as_dir in $PATH
  5904. do
  5905. IFS=$as_save_IFS
  5906. test -z "$as_dir" && as_dir=.
  5907. for ac_exec_ext in '' $ac_executable_extensions; do
  5908. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5909. ac_cv_prog_ac_ct_OTOOL="otool"
  5910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5911. break 2
  5912. fi
  5913. done
  5914. done
  5915. IFS=$as_save_IFS
  5916. fi
  5917. fi
  5918. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5919. if test -n "$ac_ct_OTOOL"; then
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5921. $as_echo "$ac_ct_OTOOL" >&6; }
  5922. else
  5923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5924. $as_echo "no" >&6; }
  5925. fi
  5926. if test "x$ac_ct_OTOOL" = x; then
  5927. OTOOL=":"
  5928. else
  5929. case $cross_compiling:$ac_tool_warned in
  5930. yes:)
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5932. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5933. ac_tool_warned=yes ;;
  5934. esac
  5935. OTOOL=$ac_ct_OTOOL
  5936. fi
  5937. else
  5938. OTOOL="$ac_cv_prog_OTOOL"
  5939. fi
  5940. if test -n "$ac_tool_prefix"; then
  5941. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5942. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5944. $as_echo_n "checking for $ac_word... " >&6; }
  5945. if ${ac_cv_prog_OTOOL64+:} false; then :
  5946. $as_echo_n "(cached) " >&6
  5947. else
  5948. if test -n "$OTOOL64"; then
  5949. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5950. else
  5951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5952. for as_dir in $PATH
  5953. do
  5954. IFS=$as_save_IFS
  5955. test -z "$as_dir" && as_dir=.
  5956. for ac_exec_ext in '' $ac_executable_extensions; do
  5957. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5958. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5959. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5960. break 2
  5961. fi
  5962. done
  5963. done
  5964. IFS=$as_save_IFS
  5965. fi
  5966. fi
  5967. OTOOL64=$ac_cv_prog_OTOOL64
  5968. if test -n "$OTOOL64"; then
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5970. $as_echo "$OTOOL64" >&6; }
  5971. else
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5973. $as_echo "no" >&6; }
  5974. fi
  5975. fi
  5976. if test -z "$ac_cv_prog_OTOOL64"; then
  5977. ac_ct_OTOOL64=$OTOOL64
  5978. # Extract the first word of "otool64", so it can be a program name with args.
  5979. set dummy otool64; ac_word=$2
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5981. $as_echo_n "checking for $ac_word... " >&6; }
  5982. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5983. $as_echo_n "(cached) " >&6
  5984. else
  5985. if test -n "$ac_ct_OTOOL64"; then
  5986. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5987. else
  5988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5989. for as_dir in $PATH
  5990. do
  5991. IFS=$as_save_IFS
  5992. test -z "$as_dir" && as_dir=.
  5993. for ac_exec_ext in '' $ac_executable_extensions; do
  5994. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5995. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5996. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5997. break 2
  5998. fi
  5999. done
  6000. done
  6001. IFS=$as_save_IFS
  6002. fi
  6003. fi
  6004. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6005. if test -n "$ac_ct_OTOOL64"; then
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6007. $as_echo "$ac_ct_OTOOL64" >&6; }
  6008. else
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6010. $as_echo "no" >&6; }
  6011. fi
  6012. if test "x$ac_ct_OTOOL64" = x; then
  6013. OTOOL64=":"
  6014. else
  6015. case $cross_compiling:$ac_tool_warned in
  6016. yes:)
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6018. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6019. ac_tool_warned=yes ;;
  6020. esac
  6021. OTOOL64=$ac_ct_OTOOL64
  6022. fi
  6023. else
  6024. OTOOL64="$ac_cv_prog_OTOOL64"
  6025. fi
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6027. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6028. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6029. $as_echo_n "(cached) " >&6
  6030. else
  6031. lt_cv_apple_cc_single_mod=no
  6032. if test -z "${LT_MULTI_MODULE}"; then
  6033. # By default we will add the -single_module flag. You can override
  6034. # by either setting the environment variable LT_MULTI_MODULE
  6035. # non-empty at configure time, or by adding -multi_module to the
  6036. # link flags.
  6037. rm -rf libconftest.dylib*
  6038. echo "int foo(void){return 1;}" > conftest.c
  6039. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6040. -dynamiclib -Wl,-single_module conftest.c" >&5
  6041. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6042. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6043. _lt_result=$?
  6044. # If there is a non-empty error log, and "single_module"
  6045. # appears in it, assume the flag caused a linker warning
  6046. if test -s conftest.err && $GREP single_module conftest.err; then
  6047. cat conftest.err >&5
  6048. # Otherwise, if the output was created with a 0 exit code from
  6049. # the compiler, it worked.
  6050. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6051. lt_cv_apple_cc_single_mod=yes
  6052. else
  6053. cat conftest.err >&5
  6054. fi
  6055. rm -rf libconftest.dylib*
  6056. rm -f conftest.*
  6057. fi
  6058. fi
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6060. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6062. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6063. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6064. $as_echo_n "(cached) " >&6
  6065. else
  6066. lt_cv_ld_exported_symbols_list=no
  6067. save_LDFLAGS=$LDFLAGS
  6068. echo "_main" > conftest.sym
  6069. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6071. /* end confdefs.h. */
  6072. int
  6073. main ()
  6074. {
  6075. ;
  6076. return 0;
  6077. }
  6078. _ACEOF
  6079. if ac_fn_c_try_link "$LINENO"; then :
  6080. lt_cv_ld_exported_symbols_list=yes
  6081. else
  6082. lt_cv_ld_exported_symbols_list=no
  6083. fi
  6084. rm -f core conftest.err conftest.$ac_objext \
  6085. conftest$ac_exeext conftest.$ac_ext
  6086. LDFLAGS="$save_LDFLAGS"
  6087. fi
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6089. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6091. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6092. if ${lt_cv_ld_force_load+:} false; then :
  6093. $as_echo_n "(cached) " >&6
  6094. else
  6095. lt_cv_ld_force_load=no
  6096. cat > conftest.c << _LT_EOF
  6097. int forced_loaded() { return 2;}
  6098. _LT_EOF
  6099. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6100. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6101. echo "$AR cru libconftest.a conftest.o" >&5
  6102. $AR cru libconftest.a conftest.o 2>&5
  6103. echo "$RANLIB libconftest.a" >&5
  6104. $RANLIB libconftest.a 2>&5
  6105. cat > conftest.c << _LT_EOF
  6106. int main() { return 0;}
  6107. _LT_EOF
  6108. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6109. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6110. _lt_result=$?
  6111. if test -s conftest.err && $GREP force_load conftest.err; then
  6112. cat conftest.err >&5
  6113. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6114. lt_cv_ld_force_load=yes
  6115. else
  6116. cat conftest.err >&5
  6117. fi
  6118. rm -f conftest.err libconftest.a conftest conftest.c
  6119. rm -rf conftest.dSYM
  6120. fi
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6122. $as_echo "$lt_cv_ld_force_load" >&6; }
  6123. case $host_os in
  6124. rhapsody* | darwin1.[012])
  6125. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6126. darwin1.*)
  6127. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6128. darwin*) # darwin 5.x on
  6129. # if running on 10.5 or later, the deployment target defaults
  6130. # to the OS version, if on x86, and 10.4, the deployment
  6131. # target defaults to 10.4. Don't you love it?
  6132. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6133. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6134. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6135. 10.[012]*)
  6136. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6137. 10.*)
  6138. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6139. esac
  6140. ;;
  6141. esac
  6142. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6143. _lt_dar_single_mod='$single_module'
  6144. fi
  6145. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6146. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6147. else
  6148. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6149. fi
  6150. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6151. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6152. else
  6153. _lt_dsymutil=
  6154. fi
  6155. ;;
  6156. esac
  6157. ac_ext=c
  6158. ac_cpp='$CPP $CPPFLAGS'
  6159. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6160. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6161. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6163. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6164. # On Suns, sometimes $CPP names a directory.
  6165. if test -n "$CPP" && test -d "$CPP"; then
  6166. CPP=
  6167. fi
  6168. if test -z "$CPP"; then
  6169. if ${ac_cv_prog_CPP+:} false; then :
  6170. $as_echo_n "(cached) " >&6
  6171. else
  6172. # Double quotes because CPP needs to be expanded
  6173. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6174. do
  6175. ac_preproc_ok=false
  6176. for ac_c_preproc_warn_flag in '' yes
  6177. do
  6178. # Use a header file that comes with gcc, so configuring glibc
  6179. # with a fresh cross-compiler works.
  6180. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6181. # <limits.h> exists even on freestanding compilers.
  6182. # On the NeXT, cc -E runs the code through the compiler's parser,
  6183. # not just through cpp. "Syntax error" is here to catch this case.
  6184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6185. /* end confdefs.h. */
  6186. #ifdef __STDC__
  6187. # include <limits.h>
  6188. #else
  6189. # include <assert.h>
  6190. #endif
  6191. Syntax error
  6192. _ACEOF
  6193. if ac_fn_c_try_cpp "$LINENO"; then :
  6194. else
  6195. # Broken: fails on valid input.
  6196. continue
  6197. fi
  6198. rm -f conftest.err conftest.i conftest.$ac_ext
  6199. # OK, works on sane cases. Now check whether nonexistent headers
  6200. # can be detected and how.
  6201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6202. /* end confdefs.h. */
  6203. #include <ac_nonexistent.h>
  6204. _ACEOF
  6205. if ac_fn_c_try_cpp "$LINENO"; then :
  6206. # Broken: success on invalid input.
  6207. continue
  6208. else
  6209. # Passes both tests.
  6210. ac_preproc_ok=:
  6211. break
  6212. fi
  6213. rm -f conftest.err conftest.i conftest.$ac_ext
  6214. done
  6215. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6216. rm -f conftest.i conftest.err conftest.$ac_ext
  6217. if $ac_preproc_ok; then :
  6218. break
  6219. fi
  6220. done
  6221. ac_cv_prog_CPP=$CPP
  6222. fi
  6223. CPP=$ac_cv_prog_CPP
  6224. else
  6225. ac_cv_prog_CPP=$CPP
  6226. fi
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6228. $as_echo "$CPP" >&6; }
  6229. ac_preproc_ok=false
  6230. for ac_c_preproc_warn_flag in '' yes
  6231. do
  6232. # Use a header file that comes with gcc, so configuring glibc
  6233. # with a fresh cross-compiler works.
  6234. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6235. # <limits.h> exists even on freestanding compilers.
  6236. # On the NeXT, cc -E runs the code through the compiler's parser,
  6237. # not just through cpp. "Syntax error" is here to catch this case.
  6238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6239. /* end confdefs.h. */
  6240. #ifdef __STDC__
  6241. # include <limits.h>
  6242. #else
  6243. # include <assert.h>
  6244. #endif
  6245. Syntax error
  6246. _ACEOF
  6247. if ac_fn_c_try_cpp "$LINENO"; then :
  6248. else
  6249. # Broken: fails on valid input.
  6250. continue
  6251. fi
  6252. rm -f conftest.err conftest.i conftest.$ac_ext
  6253. # OK, works on sane cases. Now check whether nonexistent headers
  6254. # can be detected and how.
  6255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6256. /* end confdefs.h. */
  6257. #include <ac_nonexistent.h>
  6258. _ACEOF
  6259. if ac_fn_c_try_cpp "$LINENO"; then :
  6260. # Broken: success on invalid input.
  6261. continue
  6262. else
  6263. # Passes both tests.
  6264. ac_preproc_ok=:
  6265. break
  6266. fi
  6267. rm -f conftest.err conftest.i conftest.$ac_ext
  6268. done
  6269. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6270. rm -f conftest.i conftest.err conftest.$ac_ext
  6271. if $ac_preproc_ok; then :
  6272. else
  6273. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6274. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6275. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6276. See \`config.log' for more details" "$LINENO" 5; }
  6277. fi
  6278. ac_ext=c
  6279. ac_cpp='$CPP $CPPFLAGS'
  6280. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6281. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6282. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6284. $as_echo_n "checking for ANSI C header files... " >&6; }
  6285. if ${ac_cv_header_stdc+:} false; then :
  6286. $as_echo_n "(cached) " >&6
  6287. else
  6288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6289. /* end confdefs.h. */
  6290. #include <stdlib.h>
  6291. #include <stdarg.h>
  6292. #include <string.h>
  6293. #include <float.h>
  6294. int
  6295. main ()
  6296. {
  6297. ;
  6298. return 0;
  6299. }
  6300. _ACEOF
  6301. if ac_fn_c_try_compile "$LINENO"; then :
  6302. ac_cv_header_stdc=yes
  6303. else
  6304. ac_cv_header_stdc=no
  6305. fi
  6306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6307. if test $ac_cv_header_stdc = yes; then
  6308. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6310. /* end confdefs.h. */
  6311. #include <string.h>
  6312. _ACEOF
  6313. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6314. $EGREP "memchr" >/dev/null 2>&1; then :
  6315. else
  6316. ac_cv_header_stdc=no
  6317. fi
  6318. rm -f conftest*
  6319. fi
  6320. if test $ac_cv_header_stdc = yes; then
  6321. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6323. /* end confdefs.h. */
  6324. #include <stdlib.h>
  6325. _ACEOF
  6326. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6327. $EGREP "free" >/dev/null 2>&1; then :
  6328. else
  6329. ac_cv_header_stdc=no
  6330. fi
  6331. rm -f conftest*
  6332. fi
  6333. if test $ac_cv_header_stdc = yes; then
  6334. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6335. if test "$cross_compiling" = yes; then :
  6336. :
  6337. else
  6338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6339. /* end confdefs.h. */
  6340. #include <ctype.h>
  6341. #include <stdlib.h>
  6342. #if ((' ' & 0x0FF) == 0x020)
  6343. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6344. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6345. #else
  6346. # define ISLOWER(c) \
  6347. (('a' <= (c) && (c) <= 'i') \
  6348. || ('j' <= (c) && (c) <= 'r') \
  6349. || ('s' <= (c) && (c) <= 'z'))
  6350. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6351. #endif
  6352. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6353. int
  6354. main ()
  6355. {
  6356. int i;
  6357. for (i = 0; i < 256; i++)
  6358. if (XOR (islower (i), ISLOWER (i))
  6359. || toupper (i) != TOUPPER (i))
  6360. return 2;
  6361. return 0;
  6362. }
  6363. _ACEOF
  6364. if ac_fn_c_try_run "$LINENO"; then :
  6365. else
  6366. ac_cv_header_stdc=no
  6367. fi
  6368. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6369. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6370. fi
  6371. fi
  6372. fi
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6374. $as_echo "$ac_cv_header_stdc" >&6; }
  6375. if test $ac_cv_header_stdc = yes; then
  6376. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6377. fi
  6378. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6379. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6380. inttypes.h stdint.h unistd.h
  6381. do :
  6382. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6383. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6384. "
  6385. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6386. cat >>confdefs.h <<_ACEOF
  6387. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6388. _ACEOF
  6389. fi
  6390. done
  6391. for ac_header in dlfcn.h
  6392. do :
  6393. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6394. "
  6395. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6396. cat >>confdefs.h <<_ACEOF
  6397. #define HAVE_DLFCN_H 1
  6398. _ACEOF
  6399. fi
  6400. done
  6401. # Set options
  6402. enable_win32_dll=yes
  6403. case $host in
  6404. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6405. if test -n "$ac_tool_prefix"; then
  6406. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6407. set dummy ${ac_tool_prefix}as; ac_word=$2
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6409. $as_echo_n "checking for $ac_word... " >&6; }
  6410. if ${ac_cv_prog_AS+:} false; then :
  6411. $as_echo_n "(cached) " >&6
  6412. else
  6413. if test -n "$AS"; then
  6414. ac_cv_prog_AS="$AS" # Let the user override the test.
  6415. else
  6416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6417. for as_dir in $PATH
  6418. do
  6419. IFS=$as_save_IFS
  6420. test -z "$as_dir" && as_dir=.
  6421. for ac_exec_ext in '' $ac_executable_extensions; do
  6422. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6423. ac_cv_prog_AS="${ac_tool_prefix}as"
  6424. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6425. break 2
  6426. fi
  6427. done
  6428. done
  6429. IFS=$as_save_IFS
  6430. fi
  6431. fi
  6432. AS=$ac_cv_prog_AS
  6433. if test -n "$AS"; then
  6434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6435. $as_echo "$AS" >&6; }
  6436. else
  6437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6438. $as_echo "no" >&6; }
  6439. fi
  6440. fi
  6441. if test -z "$ac_cv_prog_AS"; then
  6442. ac_ct_AS=$AS
  6443. # Extract the first word of "as", so it can be a program name with args.
  6444. set dummy as; ac_word=$2
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6446. $as_echo_n "checking for $ac_word... " >&6; }
  6447. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6448. $as_echo_n "(cached) " >&6
  6449. else
  6450. if test -n "$ac_ct_AS"; then
  6451. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6452. else
  6453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6454. for as_dir in $PATH
  6455. do
  6456. IFS=$as_save_IFS
  6457. test -z "$as_dir" && as_dir=.
  6458. for ac_exec_ext in '' $ac_executable_extensions; do
  6459. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6460. ac_cv_prog_ac_ct_AS="as"
  6461. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6462. break 2
  6463. fi
  6464. done
  6465. done
  6466. IFS=$as_save_IFS
  6467. fi
  6468. fi
  6469. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6470. if test -n "$ac_ct_AS"; then
  6471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6472. $as_echo "$ac_ct_AS" >&6; }
  6473. else
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6475. $as_echo "no" >&6; }
  6476. fi
  6477. if test "x$ac_ct_AS" = x; then
  6478. AS="false"
  6479. else
  6480. case $cross_compiling:$ac_tool_warned in
  6481. yes:)
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6483. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6484. ac_tool_warned=yes ;;
  6485. esac
  6486. AS=$ac_ct_AS
  6487. fi
  6488. else
  6489. AS="$ac_cv_prog_AS"
  6490. fi
  6491. if test -n "$ac_tool_prefix"; then
  6492. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6493. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6495. $as_echo_n "checking for $ac_word... " >&6; }
  6496. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6497. $as_echo_n "(cached) " >&6
  6498. else
  6499. if test -n "$DLLTOOL"; then
  6500. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6501. else
  6502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6503. for as_dir in $PATH
  6504. do
  6505. IFS=$as_save_IFS
  6506. test -z "$as_dir" && as_dir=.
  6507. for ac_exec_ext in '' $ac_executable_extensions; do
  6508. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6509. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6511. break 2
  6512. fi
  6513. done
  6514. done
  6515. IFS=$as_save_IFS
  6516. fi
  6517. fi
  6518. DLLTOOL=$ac_cv_prog_DLLTOOL
  6519. if test -n "$DLLTOOL"; then
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6521. $as_echo "$DLLTOOL" >&6; }
  6522. else
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6524. $as_echo "no" >&6; }
  6525. fi
  6526. fi
  6527. if test -z "$ac_cv_prog_DLLTOOL"; then
  6528. ac_ct_DLLTOOL=$DLLTOOL
  6529. # Extract the first word of "dlltool", so it can be a program name with args.
  6530. set dummy dlltool; ac_word=$2
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6532. $as_echo_n "checking for $ac_word... " >&6; }
  6533. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6534. $as_echo_n "(cached) " >&6
  6535. else
  6536. if test -n "$ac_ct_DLLTOOL"; then
  6537. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6538. else
  6539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6540. for as_dir in $PATH
  6541. do
  6542. IFS=$as_save_IFS
  6543. test -z "$as_dir" && as_dir=.
  6544. for ac_exec_ext in '' $ac_executable_extensions; do
  6545. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6546. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6548. break 2
  6549. fi
  6550. done
  6551. done
  6552. IFS=$as_save_IFS
  6553. fi
  6554. fi
  6555. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6556. if test -n "$ac_ct_DLLTOOL"; then
  6557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6558. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6559. else
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6561. $as_echo "no" >&6; }
  6562. fi
  6563. if test "x$ac_ct_DLLTOOL" = x; then
  6564. DLLTOOL="false"
  6565. else
  6566. case $cross_compiling:$ac_tool_warned in
  6567. yes:)
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6569. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6570. ac_tool_warned=yes ;;
  6571. esac
  6572. DLLTOOL=$ac_ct_DLLTOOL
  6573. fi
  6574. else
  6575. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6576. fi
  6577. if test -n "$ac_tool_prefix"; then
  6578. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6579. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6581. $as_echo_n "checking for $ac_word... " >&6; }
  6582. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6583. $as_echo_n "(cached) " >&6
  6584. else
  6585. if test -n "$OBJDUMP"; then
  6586. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6587. else
  6588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6589. for as_dir in $PATH
  6590. do
  6591. IFS=$as_save_IFS
  6592. test -z "$as_dir" && as_dir=.
  6593. for ac_exec_ext in '' $ac_executable_extensions; do
  6594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6595. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6597. break 2
  6598. fi
  6599. done
  6600. done
  6601. IFS=$as_save_IFS
  6602. fi
  6603. fi
  6604. OBJDUMP=$ac_cv_prog_OBJDUMP
  6605. if test -n "$OBJDUMP"; then
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6607. $as_echo "$OBJDUMP" >&6; }
  6608. else
  6609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6610. $as_echo "no" >&6; }
  6611. fi
  6612. fi
  6613. if test -z "$ac_cv_prog_OBJDUMP"; then
  6614. ac_ct_OBJDUMP=$OBJDUMP
  6615. # Extract the first word of "objdump", so it can be a program name with args.
  6616. set dummy objdump; ac_word=$2
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6618. $as_echo_n "checking for $ac_word... " >&6; }
  6619. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6620. $as_echo_n "(cached) " >&6
  6621. else
  6622. if test -n "$ac_ct_OBJDUMP"; then
  6623. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6624. else
  6625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6626. for as_dir in $PATH
  6627. do
  6628. IFS=$as_save_IFS
  6629. test -z "$as_dir" && as_dir=.
  6630. for ac_exec_ext in '' $ac_executable_extensions; do
  6631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6632. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6634. break 2
  6635. fi
  6636. done
  6637. done
  6638. IFS=$as_save_IFS
  6639. fi
  6640. fi
  6641. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6642. if test -n "$ac_ct_OBJDUMP"; then
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6644. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6645. else
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6647. $as_echo "no" >&6; }
  6648. fi
  6649. if test "x$ac_ct_OBJDUMP" = x; then
  6650. OBJDUMP="false"
  6651. else
  6652. case $cross_compiling:$ac_tool_warned in
  6653. yes:)
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6655. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6656. ac_tool_warned=yes ;;
  6657. esac
  6658. OBJDUMP=$ac_ct_OBJDUMP
  6659. fi
  6660. else
  6661. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6662. fi
  6663. ;;
  6664. esac
  6665. test -z "$AS" && AS=as
  6666. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6667. test -z "$OBJDUMP" && OBJDUMP=objdump
  6668. enable_dlopen=no
  6669. # Check whether --enable-shared was given.
  6670. if test "${enable_shared+set}" = set; then :
  6671. enableval=$enable_shared; p=${PACKAGE-default}
  6672. case $enableval in
  6673. yes) enable_shared=yes ;;
  6674. no) enable_shared=no ;;
  6675. *)
  6676. enable_shared=no
  6677. # Look at the argument we got. We use all the common list separators.
  6678. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6679. for pkg in $enableval; do
  6680. IFS="$lt_save_ifs"
  6681. if test "X$pkg" = "X$p"; then
  6682. enable_shared=yes
  6683. fi
  6684. done
  6685. IFS="$lt_save_ifs"
  6686. ;;
  6687. esac
  6688. else
  6689. enable_shared=yes
  6690. fi
  6691. # Check whether --enable-static was given.
  6692. if test "${enable_static+set}" = set; then :
  6693. enableval=$enable_static; p=${PACKAGE-default}
  6694. case $enableval in
  6695. yes) enable_static=yes ;;
  6696. no) enable_static=no ;;
  6697. *)
  6698. enable_static=no
  6699. # Look at the argument we got. We use all the common list separators.
  6700. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6701. for pkg in $enableval; do
  6702. IFS="$lt_save_ifs"
  6703. if test "X$pkg" = "X$p"; then
  6704. enable_static=yes
  6705. fi
  6706. done
  6707. IFS="$lt_save_ifs"
  6708. ;;
  6709. esac
  6710. else
  6711. enable_static=yes
  6712. fi
  6713. # Check whether --with-pic was given.
  6714. if test "${with_pic+set}" = set; then :
  6715. withval=$with_pic; lt_p=${PACKAGE-default}
  6716. case $withval in
  6717. yes|no) pic_mode=$withval ;;
  6718. *)
  6719. pic_mode=default
  6720. # Look at the argument we got. We use all the common list separators.
  6721. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6722. for lt_pkg in $withval; do
  6723. IFS="$lt_save_ifs"
  6724. if test "X$lt_pkg" = "X$lt_p"; then
  6725. pic_mode=yes
  6726. fi
  6727. done
  6728. IFS="$lt_save_ifs"
  6729. ;;
  6730. esac
  6731. else
  6732. pic_mode=default
  6733. fi
  6734. test -z "$pic_mode" && pic_mode=default
  6735. # Check whether --enable-fast-install was given.
  6736. if test "${enable_fast_install+set}" = set; then :
  6737. enableval=$enable_fast_install; p=${PACKAGE-default}
  6738. case $enableval in
  6739. yes) enable_fast_install=yes ;;
  6740. no) enable_fast_install=no ;;
  6741. *)
  6742. enable_fast_install=no
  6743. # Look at the argument we got. We use all the common list separators.
  6744. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6745. for pkg in $enableval; do
  6746. IFS="$lt_save_ifs"
  6747. if test "X$pkg" = "X$p"; then
  6748. enable_fast_install=yes
  6749. fi
  6750. done
  6751. IFS="$lt_save_ifs"
  6752. ;;
  6753. esac
  6754. else
  6755. enable_fast_install=yes
  6756. fi
  6757. # This can be used to rebuild libtool when needed
  6758. LIBTOOL_DEPS="$ltmain"
  6759. # Always use our own libtool.
  6760. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6761. test -z "$LN_S" && LN_S="ln -s"
  6762. if test -n "${ZSH_VERSION+set}" ; then
  6763. setopt NO_GLOB_SUBST
  6764. fi
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6766. $as_echo_n "checking for objdir... " >&6; }
  6767. if ${lt_cv_objdir+:} false; then :
  6768. $as_echo_n "(cached) " >&6
  6769. else
  6770. rm -f .libs 2>/dev/null
  6771. mkdir .libs 2>/dev/null
  6772. if test -d .libs; then
  6773. lt_cv_objdir=.libs
  6774. else
  6775. # MS-DOS does not allow filenames that begin with a dot.
  6776. lt_cv_objdir=_libs
  6777. fi
  6778. rmdir .libs 2>/dev/null
  6779. fi
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6781. $as_echo "$lt_cv_objdir" >&6; }
  6782. objdir=$lt_cv_objdir
  6783. cat >>confdefs.h <<_ACEOF
  6784. #define LT_OBJDIR "$lt_cv_objdir/"
  6785. _ACEOF
  6786. case $host_os in
  6787. aix3*)
  6788. # AIX sometimes has problems with the GCC collect2 program. For some
  6789. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6790. # vanish in a puff of smoke.
  6791. if test "X${COLLECT_NAMES+set}" != Xset; then
  6792. COLLECT_NAMES=
  6793. export COLLECT_NAMES
  6794. fi
  6795. ;;
  6796. esac
  6797. # Global variables:
  6798. ofile=libtool
  6799. can_build_shared=yes
  6800. # All known linkers require a `.a' archive for static linking (except MSVC,
  6801. # which needs '.lib').
  6802. libext=a
  6803. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6804. old_CC="$CC"
  6805. old_CFLAGS="$CFLAGS"
  6806. # Set sane defaults for various variables
  6807. test -z "$CC" && CC=cc
  6808. test -z "$LTCC" && LTCC=$CC
  6809. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6810. test -z "$LD" && LD=ld
  6811. test -z "$ac_objext" && ac_objext=o
  6812. for cc_temp in $compiler""; do
  6813. case $cc_temp in
  6814. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6815. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6816. \-*) ;;
  6817. *) break;;
  6818. esac
  6819. done
  6820. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6821. # Only perform the check for file, if the check method requires it
  6822. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6823. case $deplibs_check_method in
  6824. file_magic*)
  6825. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6827. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6828. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6829. $as_echo_n "(cached) " >&6
  6830. else
  6831. case $MAGIC_CMD in
  6832. [\\/*] | ?:[\\/]*)
  6833. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6834. ;;
  6835. *)
  6836. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6837. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6838. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6839. for ac_dir in $ac_dummy; do
  6840. IFS="$lt_save_ifs"
  6841. test -z "$ac_dir" && ac_dir=.
  6842. if test -f $ac_dir/${ac_tool_prefix}file; then
  6843. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6844. if test -n "$file_magic_test_file"; then
  6845. case $deplibs_check_method in
  6846. "file_magic "*)
  6847. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6848. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6849. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6850. $EGREP "$file_magic_regex" > /dev/null; then
  6851. :
  6852. else
  6853. cat <<_LT_EOF 1>&2
  6854. *** Warning: the command libtool uses to detect shared libraries,
  6855. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6856. *** The result is that libtool may fail to recognize shared libraries
  6857. *** as such. This will affect the creation of libtool libraries that
  6858. *** depend on shared libraries, but programs linked with such libtool
  6859. *** libraries will work regardless of this problem. Nevertheless, you
  6860. *** may want to report the problem to your system manager and/or to
  6861. *** bug-libtool@gnu.org
  6862. _LT_EOF
  6863. fi ;;
  6864. esac
  6865. fi
  6866. break
  6867. fi
  6868. done
  6869. IFS="$lt_save_ifs"
  6870. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6871. ;;
  6872. esac
  6873. fi
  6874. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6875. if test -n "$MAGIC_CMD"; then
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6877. $as_echo "$MAGIC_CMD" >&6; }
  6878. else
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6880. $as_echo "no" >&6; }
  6881. fi
  6882. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6883. if test -n "$ac_tool_prefix"; then
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6885. $as_echo_n "checking for file... " >&6; }
  6886. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6887. $as_echo_n "(cached) " >&6
  6888. else
  6889. case $MAGIC_CMD in
  6890. [\\/*] | ?:[\\/]*)
  6891. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6892. ;;
  6893. *)
  6894. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6895. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6896. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6897. for ac_dir in $ac_dummy; do
  6898. IFS="$lt_save_ifs"
  6899. test -z "$ac_dir" && ac_dir=.
  6900. if test -f $ac_dir/file; then
  6901. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6902. if test -n "$file_magic_test_file"; then
  6903. case $deplibs_check_method in
  6904. "file_magic "*)
  6905. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6906. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6907. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6908. $EGREP "$file_magic_regex" > /dev/null; then
  6909. :
  6910. else
  6911. cat <<_LT_EOF 1>&2
  6912. *** Warning: the command libtool uses to detect shared libraries,
  6913. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6914. *** The result is that libtool may fail to recognize shared libraries
  6915. *** as such. This will affect the creation of libtool libraries that
  6916. *** depend on shared libraries, but programs linked with such libtool
  6917. *** libraries will work regardless of this problem. Nevertheless, you
  6918. *** may want to report the problem to your system manager and/or to
  6919. *** bug-libtool@gnu.org
  6920. _LT_EOF
  6921. fi ;;
  6922. esac
  6923. fi
  6924. break
  6925. fi
  6926. done
  6927. IFS="$lt_save_ifs"
  6928. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6929. ;;
  6930. esac
  6931. fi
  6932. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6933. if test -n "$MAGIC_CMD"; then
  6934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6935. $as_echo "$MAGIC_CMD" >&6; }
  6936. else
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6938. $as_echo "no" >&6; }
  6939. fi
  6940. else
  6941. MAGIC_CMD=:
  6942. fi
  6943. fi
  6944. fi
  6945. ;;
  6946. esac
  6947. # Use C for the default configuration in the libtool script
  6948. lt_save_CC="$CC"
  6949. ac_ext=c
  6950. ac_cpp='$CPP $CPPFLAGS'
  6951. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6952. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6953. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6954. # Source file extension for C test sources.
  6955. ac_ext=c
  6956. # Object file extension for compiled C test sources.
  6957. objext=o
  6958. objext=$objext
  6959. # Code to be used in simple compile tests
  6960. lt_simple_compile_test_code="int some_variable = 0;"
  6961. # Code to be used in simple link tests
  6962. lt_simple_link_test_code='int main(){return(0);}'
  6963. # If no C compiler was specified, use CC.
  6964. LTCC=${LTCC-"$CC"}
  6965. # If no C compiler flags were specified, use CFLAGS.
  6966. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6967. # Allow CC to be a program name with arguments.
  6968. compiler=$CC
  6969. # Save the default compiler, since it gets overwritten when the other
  6970. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6971. compiler_DEFAULT=$CC
  6972. # save warnings/boilerplate of simple test code
  6973. ac_outfile=conftest.$ac_objext
  6974. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6975. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6976. _lt_compiler_boilerplate=`cat conftest.err`
  6977. $RM conftest*
  6978. ac_outfile=conftest.$ac_objext
  6979. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6980. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6981. _lt_linker_boilerplate=`cat conftest.err`
  6982. $RM -r conftest*
  6983. ## CAVEAT EMPTOR:
  6984. ## There is no encapsulation within the following macros, do not change
  6985. ## the running order or otherwise move them around unless you know exactly
  6986. ## what you are doing...
  6987. if test -n "$compiler"; then
  6988. lt_prog_compiler_no_builtin_flag=
  6989. if test "$GCC" = yes; then
  6990. case $cc_basename in
  6991. nvcc*)
  6992. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6993. *)
  6994. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6995. esac
  6996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6997. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6998. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6999. $as_echo_n "(cached) " >&6
  7000. else
  7001. lt_cv_prog_compiler_rtti_exceptions=no
  7002. ac_outfile=conftest.$ac_objext
  7003. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7004. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7005. # Insert the option either (1) after the last *FLAGS variable, or
  7006. # (2) before a word containing "conftest.", or (3) at the end.
  7007. # Note that $ac_compile itself does not contain backslashes and begins
  7008. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7009. # The option is referenced via a variable to avoid confusing sed.
  7010. lt_compile=`echo "$ac_compile" | $SED \
  7011. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7012. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7013. -e 's:$: $lt_compiler_flag:'`
  7014. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7015. (eval "$lt_compile" 2>conftest.err)
  7016. ac_status=$?
  7017. cat conftest.err >&5
  7018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7019. if (exit $ac_status) && test -s "$ac_outfile"; then
  7020. # The compiler can only warn and ignore the option if not recognized
  7021. # So say no if there are warnings other than the usual output.
  7022. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7023. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7024. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7025. lt_cv_prog_compiler_rtti_exceptions=yes
  7026. fi
  7027. fi
  7028. $RM conftest*
  7029. fi
  7030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7031. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7032. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7033. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7034. else
  7035. :
  7036. fi
  7037. fi
  7038. lt_prog_compiler_wl=
  7039. lt_prog_compiler_pic=
  7040. lt_prog_compiler_static=
  7041. if test "$GCC" = yes; then
  7042. lt_prog_compiler_wl='-Wl,'
  7043. lt_prog_compiler_static='-static'
  7044. case $host_os in
  7045. aix*)
  7046. # All AIX code is PIC.
  7047. if test "$host_cpu" = ia64; then
  7048. # AIX 5 now supports IA64 processor
  7049. lt_prog_compiler_static='-Bstatic'
  7050. fi
  7051. ;;
  7052. amigaos*)
  7053. case $host_cpu in
  7054. powerpc)
  7055. # see comment about AmigaOS4 .so support
  7056. lt_prog_compiler_pic='-fPIC'
  7057. ;;
  7058. m68k)
  7059. # FIXME: we need at least 68020 code to build shared libraries, but
  7060. # adding the `-m68020' flag to GCC prevents building anything better,
  7061. # like `-m68040'.
  7062. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7063. ;;
  7064. esac
  7065. ;;
  7066. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7067. # PIC is the default for these OSes.
  7068. ;;
  7069. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7070. # This hack is so that the source file can tell whether it is being
  7071. # built for inclusion in a dll (and should export symbols for example).
  7072. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7073. # (--disable-auto-import) libraries
  7074. lt_prog_compiler_pic='-DDLL_EXPORT'
  7075. ;;
  7076. darwin* | rhapsody*)
  7077. # PIC is the default on this platform
  7078. # Common symbols not allowed in MH_DYLIB files
  7079. lt_prog_compiler_pic='-fno-common'
  7080. ;;
  7081. haiku*)
  7082. # PIC is the default for Haiku.
  7083. # The "-static" flag exists, but is broken.
  7084. lt_prog_compiler_static=
  7085. ;;
  7086. hpux*)
  7087. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7088. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7089. # sets the default TLS model and affects inlining.
  7090. case $host_cpu in
  7091. hppa*64*)
  7092. # +Z the default
  7093. ;;
  7094. *)
  7095. lt_prog_compiler_pic='-fPIC'
  7096. ;;
  7097. esac
  7098. ;;
  7099. interix[3-9]*)
  7100. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7101. # Instead, we relocate shared libraries at runtime.
  7102. ;;
  7103. msdosdjgpp*)
  7104. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7105. # on systems that don't support them.
  7106. lt_prog_compiler_can_build_shared=no
  7107. enable_shared=no
  7108. ;;
  7109. *nto* | *qnx*)
  7110. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7111. # it will coredump.
  7112. lt_prog_compiler_pic='-fPIC -shared'
  7113. ;;
  7114. sysv4*MP*)
  7115. if test -d /usr/nec; then
  7116. lt_prog_compiler_pic=-Kconform_pic
  7117. fi
  7118. ;;
  7119. *)
  7120. lt_prog_compiler_pic='-fPIC'
  7121. ;;
  7122. esac
  7123. case $cc_basename in
  7124. nvcc*) # Cuda Compiler Driver 2.2
  7125. lt_prog_compiler_wl='-Xlinker '
  7126. if test -n "$lt_prog_compiler_pic"; then
  7127. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7128. fi
  7129. ;;
  7130. esac
  7131. else
  7132. # PORTME Check for flag to pass linker flags through the system compiler.
  7133. case $host_os in
  7134. aix*)
  7135. lt_prog_compiler_wl='-Wl,'
  7136. if test "$host_cpu" = ia64; then
  7137. # AIX 5 now supports IA64 processor
  7138. lt_prog_compiler_static='-Bstatic'
  7139. else
  7140. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7141. fi
  7142. ;;
  7143. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7144. # This hack is so that the source file can tell whether it is being
  7145. # built for inclusion in a dll (and should export symbols for example).
  7146. lt_prog_compiler_pic='-DDLL_EXPORT'
  7147. ;;
  7148. hpux9* | hpux10* | hpux11*)
  7149. lt_prog_compiler_wl='-Wl,'
  7150. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7151. # not for PA HP-UX.
  7152. case $host_cpu in
  7153. hppa*64*|ia64*)
  7154. # +Z the default
  7155. ;;
  7156. *)
  7157. lt_prog_compiler_pic='+Z'
  7158. ;;
  7159. esac
  7160. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7161. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7162. ;;
  7163. irix5* | irix6* | nonstopux*)
  7164. lt_prog_compiler_wl='-Wl,'
  7165. # PIC (with -KPIC) is the default.
  7166. lt_prog_compiler_static='-non_shared'
  7167. ;;
  7168. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7169. case $cc_basename in
  7170. # old Intel for x86_64 which still supported -KPIC.
  7171. ecc*)
  7172. lt_prog_compiler_wl='-Wl,'
  7173. lt_prog_compiler_pic='-KPIC'
  7174. lt_prog_compiler_static='-static'
  7175. ;;
  7176. # icc used to be incompatible with GCC.
  7177. # ICC 10 doesn't accept -KPIC any more.
  7178. icc* | ifort*)
  7179. lt_prog_compiler_wl='-Wl,'
  7180. lt_prog_compiler_pic='-fPIC'
  7181. lt_prog_compiler_static='-static'
  7182. ;;
  7183. # Lahey Fortran 8.1.
  7184. lf95*)
  7185. lt_prog_compiler_wl='-Wl,'
  7186. lt_prog_compiler_pic='--shared'
  7187. lt_prog_compiler_static='--static'
  7188. ;;
  7189. nagfor*)
  7190. # NAG Fortran compiler
  7191. lt_prog_compiler_wl='-Wl,-Wl,,'
  7192. lt_prog_compiler_pic='-PIC'
  7193. lt_prog_compiler_static='-Bstatic'
  7194. ;;
  7195. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7196. # Portland Group compilers (*not* the Pentium gcc compiler,
  7197. # which looks to be a dead project)
  7198. lt_prog_compiler_wl='-Wl,'
  7199. lt_prog_compiler_pic='-fpic'
  7200. lt_prog_compiler_static='-Bstatic'
  7201. ;;
  7202. ccc*)
  7203. lt_prog_compiler_wl='-Wl,'
  7204. # All Alpha code is PIC.
  7205. lt_prog_compiler_static='-non_shared'
  7206. ;;
  7207. xl* | bgxl* | bgf* | mpixl*)
  7208. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7209. lt_prog_compiler_wl='-Wl,'
  7210. lt_prog_compiler_pic='-qpic'
  7211. lt_prog_compiler_static='-qstaticlink'
  7212. ;;
  7213. *)
  7214. case `$CC -V 2>&1 | sed 5q` in
  7215. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7216. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7217. lt_prog_compiler_pic='-KPIC'
  7218. lt_prog_compiler_static='-Bstatic'
  7219. lt_prog_compiler_wl=''
  7220. ;;
  7221. *Sun\ F* | *Sun*Fortran*)
  7222. lt_prog_compiler_pic='-KPIC'
  7223. lt_prog_compiler_static='-Bstatic'
  7224. lt_prog_compiler_wl='-Qoption ld '
  7225. ;;
  7226. *Sun\ C*)
  7227. # Sun C 5.9
  7228. lt_prog_compiler_pic='-KPIC'
  7229. lt_prog_compiler_static='-Bstatic'
  7230. lt_prog_compiler_wl='-Wl,'
  7231. ;;
  7232. *Intel*\ [CF]*Compiler*)
  7233. lt_prog_compiler_wl='-Wl,'
  7234. lt_prog_compiler_pic='-fPIC'
  7235. lt_prog_compiler_static='-static'
  7236. ;;
  7237. *Portland\ Group*)
  7238. lt_prog_compiler_wl='-Wl,'
  7239. lt_prog_compiler_pic='-fpic'
  7240. lt_prog_compiler_static='-Bstatic'
  7241. ;;
  7242. esac
  7243. ;;
  7244. esac
  7245. ;;
  7246. newsos6)
  7247. lt_prog_compiler_pic='-KPIC'
  7248. lt_prog_compiler_static='-Bstatic'
  7249. ;;
  7250. *nto* | *qnx*)
  7251. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7252. # it will coredump.
  7253. lt_prog_compiler_pic='-fPIC -shared'
  7254. ;;
  7255. osf3* | osf4* | osf5*)
  7256. lt_prog_compiler_wl='-Wl,'
  7257. # All OSF/1 code is PIC.
  7258. lt_prog_compiler_static='-non_shared'
  7259. ;;
  7260. rdos*)
  7261. lt_prog_compiler_static='-non_shared'
  7262. ;;
  7263. solaris*)
  7264. lt_prog_compiler_pic='-KPIC'
  7265. lt_prog_compiler_static='-Bstatic'
  7266. case $cc_basename in
  7267. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7268. lt_prog_compiler_wl='-Qoption ld ';;
  7269. *)
  7270. lt_prog_compiler_wl='-Wl,';;
  7271. esac
  7272. ;;
  7273. sunos4*)
  7274. lt_prog_compiler_wl='-Qoption ld '
  7275. lt_prog_compiler_pic='-PIC'
  7276. lt_prog_compiler_static='-Bstatic'
  7277. ;;
  7278. sysv4 | sysv4.2uw2* | sysv4.3*)
  7279. lt_prog_compiler_wl='-Wl,'
  7280. lt_prog_compiler_pic='-KPIC'
  7281. lt_prog_compiler_static='-Bstatic'
  7282. ;;
  7283. sysv4*MP*)
  7284. if test -d /usr/nec ;then
  7285. lt_prog_compiler_pic='-Kconform_pic'
  7286. lt_prog_compiler_static='-Bstatic'
  7287. fi
  7288. ;;
  7289. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7290. lt_prog_compiler_wl='-Wl,'
  7291. lt_prog_compiler_pic='-KPIC'
  7292. lt_prog_compiler_static='-Bstatic'
  7293. ;;
  7294. unicos*)
  7295. lt_prog_compiler_wl='-Wl,'
  7296. lt_prog_compiler_can_build_shared=no
  7297. ;;
  7298. uts4*)
  7299. lt_prog_compiler_pic='-pic'
  7300. lt_prog_compiler_static='-Bstatic'
  7301. ;;
  7302. *)
  7303. lt_prog_compiler_can_build_shared=no
  7304. ;;
  7305. esac
  7306. fi
  7307. case $host_os in
  7308. # For platforms which do not support PIC, -DPIC is meaningless:
  7309. *djgpp*)
  7310. lt_prog_compiler_pic=
  7311. ;;
  7312. *)
  7313. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7314. ;;
  7315. esac
  7316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7317. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7318. if ${lt_cv_prog_compiler_pic+:} false; then :
  7319. $as_echo_n "(cached) " >&6
  7320. else
  7321. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7322. fi
  7323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7324. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7325. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7326. #
  7327. # Check to make sure the PIC flag actually works.
  7328. #
  7329. if test -n "$lt_prog_compiler_pic"; then
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7331. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7332. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7333. $as_echo_n "(cached) " >&6
  7334. else
  7335. lt_cv_prog_compiler_pic_works=no
  7336. ac_outfile=conftest.$ac_objext
  7337. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7338. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7339. # Insert the option either (1) after the last *FLAGS variable, or
  7340. # (2) before a word containing "conftest.", or (3) at the end.
  7341. # Note that $ac_compile itself does not contain backslashes and begins
  7342. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7343. # The option is referenced via a variable to avoid confusing sed.
  7344. lt_compile=`echo "$ac_compile" | $SED \
  7345. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7346. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7347. -e 's:$: $lt_compiler_flag:'`
  7348. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7349. (eval "$lt_compile" 2>conftest.err)
  7350. ac_status=$?
  7351. cat conftest.err >&5
  7352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7353. if (exit $ac_status) && test -s "$ac_outfile"; then
  7354. # The compiler can only warn and ignore the option if not recognized
  7355. # So say no if there are warnings other than the usual output.
  7356. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7357. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7358. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7359. lt_cv_prog_compiler_pic_works=yes
  7360. fi
  7361. fi
  7362. $RM conftest*
  7363. fi
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7365. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7366. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7367. case $lt_prog_compiler_pic in
  7368. "" | " "*) ;;
  7369. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7370. esac
  7371. else
  7372. lt_prog_compiler_pic=
  7373. lt_prog_compiler_can_build_shared=no
  7374. fi
  7375. fi
  7376. #
  7377. # Check to make sure the static flag actually works.
  7378. #
  7379. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7381. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7382. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7383. $as_echo_n "(cached) " >&6
  7384. else
  7385. lt_cv_prog_compiler_static_works=no
  7386. save_LDFLAGS="$LDFLAGS"
  7387. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7388. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7389. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7390. # The linker can only warn and ignore the option if not recognized
  7391. # So say no if there are warnings
  7392. if test -s conftest.err; then
  7393. # Append any errors to the config.log.
  7394. cat conftest.err 1>&5
  7395. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7396. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7397. if diff conftest.exp conftest.er2 >/dev/null; then
  7398. lt_cv_prog_compiler_static_works=yes
  7399. fi
  7400. else
  7401. lt_cv_prog_compiler_static_works=yes
  7402. fi
  7403. fi
  7404. $RM -r conftest*
  7405. LDFLAGS="$save_LDFLAGS"
  7406. fi
  7407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7408. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7409. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7410. :
  7411. else
  7412. lt_prog_compiler_static=
  7413. fi
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7415. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7416. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7417. $as_echo_n "(cached) " >&6
  7418. else
  7419. lt_cv_prog_compiler_c_o=no
  7420. $RM -r conftest 2>/dev/null
  7421. mkdir conftest
  7422. cd conftest
  7423. mkdir out
  7424. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7425. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7426. # Insert the option either (1) after the last *FLAGS variable, or
  7427. # (2) before a word containing "conftest.", or (3) at the end.
  7428. # Note that $ac_compile itself does not contain backslashes and begins
  7429. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7430. lt_compile=`echo "$ac_compile" | $SED \
  7431. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7432. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7433. -e 's:$: $lt_compiler_flag:'`
  7434. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7435. (eval "$lt_compile" 2>out/conftest.err)
  7436. ac_status=$?
  7437. cat out/conftest.err >&5
  7438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7439. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7440. then
  7441. # The compiler can only warn and ignore the option if not recognized
  7442. # So say no if there are warnings
  7443. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7444. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7445. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7446. lt_cv_prog_compiler_c_o=yes
  7447. fi
  7448. fi
  7449. chmod u+w . 2>&5
  7450. $RM conftest*
  7451. # SGI C++ compiler will create directory out/ii_files/ for
  7452. # template instantiation
  7453. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7454. $RM out/* && rmdir out
  7455. cd ..
  7456. $RM -r conftest
  7457. $RM conftest*
  7458. fi
  7459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7460. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7462. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7463. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7464. $as_echo_n "(cached) " >&6
  7465. else
  7466. lt_cv_prog_compiler_c_o=no
  7467. $RM -r conftest 2>/dev/null
  7468. mkdir conftest
  7469. cd conftest
  7470. mkdir out
  7471. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7472. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7473. # Insert the option either (1) after the last *FLAGS variable, or
  7474. # (2) before a word containing "conftest.", or (3) at the end.
  7475. # Note that $ac_compile itself does not contain backslashes and begins
  7476. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7477. lt_compile=`echo "$ac_compile" | $SED \
  7478. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7479. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7480. -e 's:$: $lt_compiler_flag:'`
  7481. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7482. (eval "$lt_compile" 2>out/conftest.err)
  7483. ac_status=$?
  7484. cat out/conftest.err >&5
  7485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7486. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7487. then
  7488. # The compiler can only warn and ignore the option if not recognized
  7489. # So say no if there are warnings
  7490. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7491. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7492. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7493. lt_cv_prog_compiler_c_o=yes
  7494. fi
  7495. fi
  7496. chmod u+w . 2>&5
  7497. $RM conftest*
  7498. # SGI C++ compiler will create directory out/ii_files/ for
  7499. # template instantiation
  7500. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7501. $RM out/* && rmdir out
  7502. cd ..
  7503. $RM -r conftest
  7504. $RM conftest*
  7505. fi
  7506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7507. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7508. hard_links="nottested"
  7509. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7510. # do not overwrite the value of need_locks provided by the user
  7511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7512. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7513. hard_links=yes
  7514. $RM conftest*
  7515. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7516. touch conftest.a
  7517. ln conftest.a conftest.b 2>&5 || hard_links=no
  7518. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7520. $as_echo "$hard_links" >&6; }
  7521. if test "$hard_links" = no; then
  7522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7523. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7524. need_locks=warn
  7525. fi
  7526. else
  7527. need_locks=no
  7528. fi
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7530. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7531. runpath_var=
  7532. allow_undefined_flag=
  7533. always_export_symbols=no
  7534. archive_cmds=
  7535. archive_expsym_cmds=
  7536. compiler_needs_object=no
  7537. enable_shared_with_static_runtimes=no
  7538. export_dynamic_flag_spec=
  7539. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7540. hardcode_automatic=no
  7541. hardcode_direct=no
  7542. hardcode_direct_absolute=no
  7543. hardcode_libdir_flag_spec=
  7544. hardcode_libdir_separator=
  7545. hardcode_minus_L=no
  7546. hardcode_shlibpath_var=unsupported
  7547. inherit_rpath=no
  7548. link_all_deplibs=unknown
  7549. module_cmds=
  7550. module_expsym_cmds=
  7551. old_archive_from_new_cmds=
  7552. old_archive_from_expsyms_cmds=
  7553. thread_safe_flag_spec=
  7554. whole_archive_flag_spec=
  7555. # include_expsyms should be a list of space-separated symbols to be *always*
  7556. # included in the symbol list
  7557. include_expsyms=
  7558. # exclude_expsyms can be an extended regexp of symbols to exclude
  7559. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7560. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7561. # as well as any symbol that contains `d'.
  7562. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7563. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7564. # platforms (ab)use it in PIC code, but their linkers get confused if
  7565. # the symbol is explicitly referenced. Since portable code cannot
  7566. # rely on this symbol name, it's probably fine to never include it in
  7567. # preloaded symbol tables.
  7568. # Exclude shared library initialization/finalization symbols.
  7569. extract_expsyms_cmds=
  7570. case $host_os in
  7571. cygwin* | mingw* | pw32* | cegcc*)
  7572. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7573. # When not using gcc, we currently assume that we are using
  7574. # Microsoft Visual C++.
  7575. if test "$GCC" != yes; then
  7576. with_gnu_ld=no
  7577. fi
  7578. ;;
  7579. interix*)
  7580. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7581. with_gnu_ld=yes
  7582. ;;
  7583. openbsd*)
  7584. with_gnu_ld=no
  7585. ;;
  7586. esac
  7587. ld_shlibs=yes
  7588. # On some targets, GNU ld is compatible enough with the native linker
  7589. # that we're better off using the native interface for both.
  7590. lt_use_gnu_ld_interface=no
  7591. if test "$with_gnu_ld" = yes; then
  7592. case $host_os in
  7593. aix*)
  7594. # The AIX port of GNU ld has always aspired to compatibility
  7595. # with the native linker. However, as the warning in the GNU ld
  7596. # block says, versions before 2.19.5* couldn't really create working
  7597. # shared libraries, regardless of the interface used.
  7598. case `$LD -v 2>&1` in
  7599. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7600. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7601. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7602. *)
  7603. lt_use_gnu_ld_interface=yes
  7604. ;;
  7605. esac
  7606. ;;
  7607. *)
  7608. lt_use_gnu_ld_interface=yes
  7609. ;;
  7610. esac
  7611. fi
  7612. if test "$lt_use_gnu_ld_interface" = yes; then
  7613. # If archive_cmds runs LD, not CC, wlarc should be empty
  7614. wlarc='${wl}'
  7615. # Set some defaults for GNU ld with shared library support. These
  7616. # are reset later if shared libraries are not supported. Putting them
  7617. # here allows them to be overridden if necessary.
  7618. runpath_var=LD_RUN_PATH
  7619. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7620. export_dynamic_flag_spec='${wl}--export-dynamic'
  7621. # ancient GNU ld didn't support --whole-archive et. al.
  7622. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7623. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7624. else
  7625. whole_archive_flag_spec=
  7626. fi
  7627. supports_anon_versioning=no
  7628. case `$LD -v 2>&1` in
  7629. *GNU\ gold*) supports_anon_versioning=yes ;;
  7630. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7631. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7632. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7633. *\ 2.11.*) ;; # other 2.11 versions
  7634. *) supports_anon_versioning=yes ;;
  7635. esac
  7636. # See if GNU ld supports shared libraries.
  7637. case $host_os in
  7638. aix[3-9]*)
  7639. # On AIX/PPC, the GNU linker is very broken
  7640. if test "$host_cpu" != ia64; then
  7641. ld_shlibs=no
  7642. cat <<_LT_EOF 1>&2
  7643. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7644. *** to be unable to reliably create shared libraries on AIX.
  7645. *** Therefore, libtool is disabling shared libraries support. If you
  7646. *** really care for shared libraries, you may want to install binutils
  7647. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7648. *** You will then need to restart the configuration process.
  7649. _LT_EOF
  7650. fi
  7651. ;;
  7652. amigaos*)
  7653. case $host_cpu in
  7654. powerpc)
  7655. # see comment about AmigaOS4 .so support
  7656. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7657. archive_expsym_cmds=''
  7658. ;;
  7659. m68k)
  7660. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7661. hardcode_libdir_flag_spec='-L$libdir'
  7662. hardcode_minus_L=yes
  7663. ;;
  7664. esac
  7665. ;;
  7666. beos*)
  7667. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7668. allow_undefined_flag=unsupported
  7669. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7670. # support --undefined. This deserves some investigation. FIXME
  7671. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7672. else
  7673. ld_shlibs=no
  7674. fi
  7675. ;;
  7676. cygwin* | mingw* | pw32* | cegcc*)
  7677. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7678. # as there is no search path for DLLs.
  7679. hardcode_libdir_flag_spec='-L$libdir'
  7680. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7681. allow_undefined_flag=unsupported
  7682. always_export_symbols=no
  7683. enable_shared_with_static_runtimes=yes
  7684. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7685. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7686. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7687. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7688. # If the export-symbols file already is a .def file (1st line
  7689. # is EXPORTS), use it as is; otherwise, prepend...
  7690. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7691. cp $export_symbols $output_objdir/$soname.def;
  7692. else
  7693. echo EXPORTS > $output_objdir/$soname.def;
  7694. cat $export_symbols >> $output_objdir/$soname.def;
  7695. fi~
  7696. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7697. else
  7698. ld_shlibs=no
  7699. fi
  7700. ;;
  7701. haiku*)
  7702. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7703. link_all_deplibs=yes
  7704. ;;
  7705. interix[3-9]*)
  7706. hardcode_direct=no
  7707. hardcode_shlibpath_var=no
  7708. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7709. export_dynamic_flag_spec='${wl}-E'
  7710. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7711. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7712. # default) and relocated if they conflict, which is a slow very memory
  7713. # consuming and fragmenting process. To avoid this, we pick a random,
  7714. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7715. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7716. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7717. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7718. ;;
  7719. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7720. tmp_diet=no
  7721. if test "$host_os" = linux-dietlibc; then
  7722. case $cc_basename in
  7723. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7724. esac
  7725. fi
  7726. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7727. && test "$tmp_diet" = no
  7728. then
  7729. tmp_addflag=' $pic_flag'
  7730. tmp_sharedflag='-shared'
  7731. case $cc_basename,$host_cpu in
  7732. pgcc*) # Portland Group C compiler
  7733. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7734. tmp_addflag=' $pic_flag'
  7735. ;;
  7736. pgf77* | pgf90* | pgf95* | pgfortran*)
  7737. # Portland Group f77 and f90 compilers
  7738. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7739. tmp_addflag=' $pic_flag -Mnomain' ;;
  7740. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7741. tmp_addflag=' -i_dynamic' ;;
  7742. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7743. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7744. ifc* | ifort*) # Intel Fortran compiler
  7745. tmp_addflag=' -nofor_main' ;;
  7746. lf95*) # Lahey Fortran 8.1
  7747. whole_archive_flag_spec=
  7748. tmp_sharedflag='--shared' ;;
  7749. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7750. tmp_sharedflag='-qmkshrobj'
  7751. tmp_addflag= ;;
  7752. nvcc*) # Cuda Compiler Driver 2.2
  7753. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7754. compiler_needs_object=yes
  7755. ;;
  7756. esac
  7757. case `$CC -V 2>&1 | sed 5q` in
  7758. *Sun\ C*) # Sun C 5.9
  7759. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7760. compiler_needs_object=yes
  7761. tmp_sharedflag='-G' ;;
  7762. *Sun\ F*) # Sun Fortran 8.3
  7763. tmp_sharedflag='-G' ;;
  7764. esac
  7765. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7766. if test "x$supports_anon_versioning" = xyes; then
  7767. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7768. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7769. echo "local: *; };" >> $output_objdir/$libname.ver~
  7770. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7771. fi
  7772. case $cc_basename in
  7773. xlf* | bgf* | bgxlf* | mpixlf*)
  7774. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7775. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7776. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7777. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7778. if test "x$supports_anon_versioning" = xyes; then
  7779. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7780. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7781. echo "local: *; };" >> $output_objdir/$libname.ver~
  7782. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7783. fi
  7784. ;;
  7785. esac
  7786. else
  7787. ld_shlibs=no
  7788. fi
  7789. ;;
  7790. netbsd*)
  7791. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7792. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7793. wlarc=
  7794. else
  7795. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7796. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7797. fi
  7798. ;;
  7799. solaris*)
  7800. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7801. ld_shlibs=no
  7802. cat <<_LT_EOF 1>&2
  7803. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7804. *** create shared libraries on Solaris systems. Therefore, libtool
  7805. *** is disabling shared libraries support. We urge you to upgrade GNU
  7806. *** binutils to release 2.9.1 or newer. Another option is to modify
  7807. *** your PATH or compiler configuration so that the native linker is
  7808. *** used, and then restart.
  7809. _LT_EOF
  7810. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7811. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7812. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7813. else
  7814. ld_shlibs=no
  7815. fi
  7816. ;;
  7817. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7818. case `$LD -v 2>&1` in
  7819. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7820. ld_shlibs=no
  7821. cat <<_LT_EOF 1>&2
  7822. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7823. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7824. *** is disabling shared libraries support. We urge you to upgrade GNU
  7825. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7826. *** your PATH or compiler configuration so that the native linker is
  7827. *** used, and then restart.
  7828. _LT_EOF
  7829. ;;
  7830. *)
  7831. # For security reasons, it is highly recommended that you always
  7832. # use absolute paths for naming shared libraries, and exclude the
  7833. # DT_RUNPATH tag from executables and libraries. But doing so
  7834. # requires that you compile everything twice, which is a pain.
  7835. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7836. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7837. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7838. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7839. else
  7840. ld_shlibs=no
  7841. fi
  7842. ;;
  7843. esac
  7844. ;;
  7845. sunos4*)
  7846. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7847. wlarc=
  7848. hardcode_direct=yes
  7849. hardcode_shlibpath_var=no
  7850. ;;
  7851. *)
  7852. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7853. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7854. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7855. else
  7856. ld_shlibs=no
  7857. fi
  7858. ;;
  7859. esac
  7860. if test "$ld_shlibs" = no; then
  7861. runpath_var=
  7862. hardcode_libdir_flag_spec=
  7863. export_dynamic_flag_spec=
  7864. whole_archive_flag_spec=
  7865. fi
  7866. else
  7867. # PORTME fill in a description of your system's linker (not GNU ld)
  7868. case $host_os in
  7869. aix3*)
  7870. allow_undefined_flag=unsupported
  7871. always_export_symbols=yes
  7872. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  7873. # Note: this linker hardcodes the directories in LIBPATH if there
  7874. # are no directories specified by -L.
  7875. hardcode_minus_L=yes
  7876. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7877. # Neither direct hardcoding nor static linking is supported with a
  7878. # broken collect2.
  7879. hardcode_direct=unsupported
  7880. fi
  7881. ;;
  7882. aix[4-9]*)
  7883. if test "$host_cpu" = ia64; then
  7884. # On IA64, the linker does run time linking by default, so we don't
  7885. # have to do anything special.
  7886. aix_use_runtimelinking=no
  7887. exp_sym_flag='-Bexport'
  7888. no_entry_flag=""
  7889. else
  7890. # If we're using GNU nm, then we don't want the "-C" option.
  7891. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7892. # Also, AIX nm treats weak defined symbols like other global
  7893. # defined symbols, whereas GNU nm marks them as "W".
  7894. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7895. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7896. else
  7897. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7898. fi
  7899. aix_use_runtimelinking=no
  7900. # Test if we are trying to use run time linking or normal
  7901. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7902. # need to do runtime linking.
  7903. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7904. for ld_flag in $LDFLAGS; do
  7905. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7906. aix_use_runtimelinking=yes
  7907. break
  7908. fi
  7909. done
  7910. ;;
  7911. esac
  7912. exp_sym_flag='-bexport'
  7913. no_entry_flag='-bnoentry'
  7914. fi
  7915. # When large executables or shared objects are built, AIX ld can
  7916. # have problems creating the table of contents. If linking a library
  7917. # or program results in "error TOC overflow" add -mminimal-toc to
  7918. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7919. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7920. archive_cmds=''
  7921. hardcode_direct=yes
  7922. hardcode_direct_absolute=yes
  7923. hardcode_libdir_separator=':'
  7924. link_all_deplibs=yes
  7925. file_list_spec='${wl}-f,'
  7926. if test "$GCC" = yes; then
  7927. case $host_os in aix4.[012]|aix4.[012].*)
  7928. # We only want to do this on AIX 4.2 and lower, the check
  7929. # below for broken collect2 doesn't work under 4.3+
  7930. collect2name=`${CC} -print-prog-name=collect2`
  7931. if test -f "$collect2name" &&
  7932. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7933. then
  7934. # We have reworked collect2
  7935. :
  7936. else
  7937. # We have old collect2
  7938. hardcode_direct=unsupported
  7939. # It fails to find uninstalled libraries when the uninstalled
  7940. # path is not listed in the libpath. Setting hardcode_minus_L
  7941. # to unsupported forces relinking
  7942. hardcode_minus_L=yes
  7943. hardcode_libdir_flag_spec='-L$libdir'
  7944. hardcode_libdir_separator=
  7945. fi
  7946. ;;
  7947. esac
  7948. shared_flag='-shared'
  7949. if test "$aix_use_runtimelinking" = yes; then
  7950. shared_flag="$shared_flag "'${wl}-G'
  7951. fi
  7952. else
  7953. # not using gcc
  7954. if test "$host_cpu" = ia64; then
  7955. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7956. # chokes on -Wl,-G. The following line is correct:
  7957. shared_flag='-G'
  7958. else
  7959. if test "$aix_use_runtimelinking" = yes; then
  7960. shared_flag='${wl}-G'
  7961. else
  7962. shared_flag='${wl}-bM:SRE'
  7963. fi
  7964. fi
  7965. fi
  7966. export_dynamic_flag_spec='${wl}-bexpall'
  7967. # It seems that -bexpall does not export symbols beginning with
  7968. # underscore (_), so it is better to generate a list of symbols to export.
  7969. always_export_symbols=yes
  7970. if test "$aix_use_runtimelinking" = yes; then
  7971. # Warning - without using the other runtime loading flags (-brtl),
  7972. # -berok will link without error, but may produce a broken library.
  7973. allow_undefined_flag='-berok'
  7974. # Determine the default libpath from the value encoded in an
  7975. # empty executable.
  7976. if test "${lt_cv_aix_libpath+set}" = set; then
  7977. aix_libpath=$lt_cv_aix_libpath
  7978. else
  7979. if ${lt_cv_aix_libpath_+:} false; then :
  7980. $as_echo_n "(cached) " >&6
  7981. else
  7982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7983. /* end confdefs.h. */
  7984. int
  7985. main ()
  7986. {
  7987. ;
  7988. return 0;
  7989. }
  7990. _ACEOF
  7991. if ac_fn_c_try_link "$LINENO"; then :
  7992. lt_aix_libpath_sed='
  7993. /Import File Strings/,/^$/ {
  7994. /^0/ {
  7995. s/^0 *\([^ ]*\) *$/\1/
  7996. p
  7997. }
  7998. }'
  7999. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8000. # Check for a 64-bit object if we didn't find anything.
  8001. if test -z "$lt_cv_aix_libpath_"; then
  8002. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8003. fi
  8004. fi
  8005. rm -f core conftest.err conftest.$ac_objext \
  8006. conftest$ac_exeext conftest.$ac_ext
  8007. if test -z "$lt_cv_aix_libpath_"; then
  8008. lt_cv_aix_libpath_="/usr/lib:/lib"
  8009. fi
  8010. fi
  8011. aix_libpath=$lt_cv_aix_libpath_
  8012. fi
  8013. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8014. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8015. else
  8016. if test "$host_cpu" = ia64; then
  8017. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8018. allow_undefined_flag="-z nodefs"
  8019. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  8020. else
  8021. # Determine the default libpath from the value encoded in an
  8022. # empty executable.
  8023. if test "${lt_cv_aix_libpath+set}" = set; then
  8024. aix_libpath=$lt_cv_aix_libpath
  8025. else
  8026. if ${lt_cv_aix_libpath_+:} false; then :
  8027. $as_echo_n "(cached) " >&6
  8028. else
  8029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8030. /* end confdefs.h. */
  8031. int
  8032. main ()
  8033. {
  8034. ;
  8035. return 0;
  8036. }
  8037. _ACEOF
  8038. if ac_fn_c_try_link "$LINENO"; then :
  8039. lt_aix_libpath_sed='
  8040. /Import File Strings/,/^$/ {
  8041. /^0/ {
  8042. s/^0 *\([^ ]*\) *$/\1/
  8043. p
  8044. }
  8045. }'
  8046. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8047. # Check for a 64-bit object if we didn't find anything.
  8048. if test -z "$lt_cv_aix_libpath_"; then
  8049. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8050. fi
  8051. fi
  8052. rm -f core conftest.err conftest.$ac_objext \
  8053. conftest$ac_exeext conftest.$ac_ext
  8054. if test -z "$lt_cv_aix_libpath_"; then
  8055. lt_cv_aix_libpath_="/usr/lib:/lib"
  8056. fi
  8057. fi
  8058. aix_libpath=$lt_cv_aix_libpath_
  8059. fi
  8060. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8061. # Warning - without using the other run time loading flags,
  8062. # -berok will link without error, but may produce a broken library.
  8063. no_undefined_flag=' ${wl}-bernotok'
  8064. allow_undefined_flag=' ${wl}-berok'
  8065. if test "$with_gnu_ld" = yes; then
  8066. # We only use this code for GNU lds that support --whole-archive.
  8067. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8068. else
  8069. # Exported symbols can be pulled into shared objects from archives
  8070. whole_archive_flag_spec='$convenience'
  8071. fi
  8072. archive_cmds_need_lc=yes
  8073. # This is similar to how AIX traditionally builds its shared libraries.
  8074. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8075. fi
  8076. fi
  8077. ;;
  8078. amigaos*)
  8079. case $host_cpu in
  8080. powerpc)
  8081. # see comment about AmigaOS4 .so support
  8082. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8083. archive_expsym_cmds=''
  8084. ;;
  8085. m68k)
  8086. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8087. hardcode_libdir_flag_spec='-L$libdir'
  8088. hardcode_minus_L=yes
  8089. ;;
  8090. esac
  8091. ;;
  8092. bsdi[45]*)
  8093. export_dynamic_flag_spec=-rdynamic
  8094. ;;
  8095. cygwin* | mingw* | pw32* | cegcc*)
  8096. # When not using gcc, we currently assume that we are using
  8097. # Microsoft Visual C++.
  8098. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8099. # no search path for DLLs.
  8100. case $cc_basename in
  8101. cl*)
  8102. # Native MSVC
  8103. hardcode_libdir_flag_spec=' '
  8104. allow_undefined_flag=unsupported
  8105. always_export_symbols=yes
  8106. file_list_spec='@'
  8107. # Tell ltmain to make .lib files, not .a files.
  8108. libext=lib
  8109. # Tell ltmain to make .dll files, not .so files.
  8110. shrext_cmds=".dll"
  8111. # FIXME: Setting linknames here is a bad hack.
  8112. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8113. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8114. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8115. else
  8116. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8117. fi~
  8118. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8119. linknames='
  8120. # The linker will not automatically build a static lib if we build a DLL.
  8121. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8122. enable_shared_with_static_runtimes=yes
  8123. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8124. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8125. # Don't use ranlib
  8126. old_postinstall_cmds='chmod 644 $oldlib'
  8127. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8128. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8129. case $lt_outputfile in
  8130. *.exe|*.EXE) ;;
  8131. *)
  8132. lt_outputfile="$lt_outputfile.exe"
  8133. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8134. ;;
  8135. esac~
  8136. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8137. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8138. $RM "$lt_outputfile.manifest";
  8139. fi'
  8140. ;;
  8141. *)
  8142. # Assume MSVC wrapper
  8143. hardcode_libdir_flag_spec=' '
  8144. allow_undefined_flag=unsupported
  8145. # Tell ltmain to make .lib files, not .a files.
  8146. libext=lib
  8147. # Tell ltmain to make .dll files, not .so files.
  8148. shrext_cmds=".dll"
  8149. # FIXME: Setting linknames here is a bad hack.
  8150. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8151. # The linker will automatically build a .lib file if we build a DLL.
  8152. old_archive_from_new_cmds='true'
  8153. # FIXME: Should let the user specify the lib program.
  8154. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8155. enable_shared_with_static_runtimes=yes
  8156. ;;
  8157. esac
  8158. ;;
  8159. darwin* | rhapsody*)
  8160. archive_cmds_need_lc=no
  8161. hardcode_direct=no
  8162. hardcode_automatic=yes
  8163. hardcode_shlibpath_var=unsupported
  8164. if test "$lt_cv_ld_force_load" = "yes"; then
  8165. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8166. else
  8167. whole_archive_flag_spec=''
  8168. fi
  8169. link_all_deplibs=yes
  8170. allow_undefined_flag="$_lt_dar_allow_undefined"
  8171. case $cc_basename in
  8172. ifort*) _lt_dar_can_shared=yes ;;
  8173. *) _lt_dar_can_shared=$GCC ;;
  8174. esac
  8175. if test "$_lt_dar_can_shared" = "yes"; then
  8176. output_verbose_link_cmd=func_echo_all
  8177. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8178. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8179. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  8180. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  8181. else
  8182. ld_shlibs=no
  8183. fi
  8184. ;;
  8185. dgux*)
  8186. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8187. hardcode_libdir_flag_spec='-L$libdir'
  8188. hardcode_shlibpath_var=no
  8189. ;;
  8190. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8191. # support. Future versions do this automatically, but an explicit c++rt0.o
  8192. # does not break anything, and helps significantly (at the cost of a little
  8193. # extra space).
  8194. freebsd2.2*)
  8195. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8196. hardcode_libdir_flag_spec='-R$libdir'
  8197. hardcode_direct=yes
  8198. hardcode_shlibpath_var=no
  8199. ;;
  8200. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8201. freebsd2.*)
  8202. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8203. hardcode_direct=yes
  8204. hardcode_minus_L=yes
  8205. hardcode_shlibpath_var=no
  8206. ;;
  8207. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8208. freebsd* | dragonfly*)
  8209. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8210. hardcode_libdir_flag_spec='-R$libdir'
  8211. hardcode_direct=yes
  8212. hardcode_shlibpath_var=no
  8213. ;;
  8214. hpux9*)
  8215. if test "$GCC" = yes; then
  8216. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8217. else
  8218. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8219. fi
  8220. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8221. hardcode_libdir_separator=:
  8222. hardcode_direct=yes
  8223. # hardcode_minus_L: Not really in the search PATH,
  8224. # but as the default location of the library.
  8225. hardcode_minus_L=yes
  8226. export_dynamic_flag_spec='${wl}-E'
  8227. ;;
  8228. hpux10*)
  8229. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8230. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8231. else
  8232. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8233. fi
  8234. if test "$with_gnu_ld" = no; then
  8235. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8236. hardcode_libdir_separator=:
  8237. hardcode_direct=yes
  8238. hardcode_direct_absolute=yes
  8239. export_dynamic_flag_spec='${wl}-E'
  8240. # hardcode_minus_L: Not really in the search PATH,
  8241. # but as the default location of the library.
  8242. hardcode_minus_L=yes
  8243. fi
  8244. ;;
  8245. hpux11*)
  8246. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8247. case $host_cpu in
  8248. hppa*64*)
  8249. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8250. ;;
  8251. ia64*)
  8252. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8253. ;;
  8254. *)
  8255. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8256. ;;
  8257. esac
  8258. else
  8259. case $host_cpu in
  8260. hppa*64*)
  8261. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8262. ;;
  8263. ia64*)
  8264. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8265. ;;
  8266. *)
  8267. # Older versions of the 11.00 compiler do not understand -b yet
  8268. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8270. $as_echo_n "checking if $CC understands -b... " >&6; }
  8271. if ${lt_cv_prog_compiler__b+:} false; then :
  8272. $as_echo_n "(cached) " >&6
  8273. else
  8274. lt_cv_prog_compiler__b=no
  8275. save_LDFLAGS="$LDFLAGS"
  8276. LDFLAGS="$LDFLAGS -b"
  8277. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8278. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8279. # The linker can only warn and ignore the option if not recognized
  8280. # So say no if there are warnings
  8281. if test -s conftest.err; then
  8282. # Append any errors to the config.log.
  8283. cat conftest.err 1>&5
  8284. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8285. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8286. if diff conftest.exp conftest.er2 >/dev/null; then
  8287. lt_cv_prog_compiler__b=yes
  8288. fi
  8289. else
  8290. lt_cv_prog_compiler__b=yes
  8291. fi
  8292. fi
  8293. $RM -r conftest*
  8294. LDFLAGS="$save_LDFLAGS"
  8295. fi
  8296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8297. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8298. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8299. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8300. else
  8301. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8302. fi
  8303. ;;
  8304. esac
  8305. fi
  8306. if test "$with_gnu_ld" = no; then
  8307. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8308. hardcode_libdir_separator=:
  8309. case $host_cpu in
  8310. hppa*64*|ia64*)
  8311. hardcode_direct=no
  8312. hardcode_shlibpath_var=no
  8313. ;;
  8314. *)
  8315. hardcode_direct=yes
  8316. hardcode_direct_absolute=yes
  8317. export_dynamic_flag_spec='${wl}-E'
  8318. # hardcode_minus_L: Not really in the search PATH,
  8319. # but as the default location of the library.
  8320. hardcode_minus_L=yes
  8321. ;;
  8322. esac
  8323. fi
  8324. ;;
  8325. irix5* | irix6* | nonstopux*)
  8326. if test "$GCC" = yes; then
  8327. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8328. # Try to use the -exported_symbol ld option, if it does not
  8329. # work, assume that -exports_file does not work either and
  8330. # implicitly export all symbols.
  8331. # This should be the same for all languages, so no per-tag cache variable.
  8332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8333. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8334. if ${lt_cv_irix_exported_symbol+:} false; then :
  8335. $as_echo_n "(cached) " >&6
  8336. else
  8337. save_LDFLAGS="$LDFLAGS"
  8338. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8340. /* end confdefs.h. */
  8341. int foo (void) { return 0; }
  8342. _ACEOF
  8343. if ac_fn_c_try_link "$LINENO"; then :
  8344. lt_cv_irix_exported_symbol=yes
  8345. else
  8346. lt_cv_irix_exported_symbol=no
  8347. fi
  8348. rm -f core conftest.err conftest.$ac_objext \
  8349. conftest$ac_exeext conftest.$ac_ext
  8350. LDFLAGS="$save_LDFLAGS"
  8351. fi
  8352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8353. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8354. if test "$lt_cv_irix_exported_symbol" = yes; then
  8355. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8356. fi
  8357. else
  8358. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8359. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8360. fi
  8361. archive_cmds_need_lc='no'
  8362. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8363. hardcode_libdir_separator=:
  8364. inherit_rpath=yes
  8365. link_all_deplibs=yes
  8366. ;;
  8367. netbsd*)
  8368. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8369. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8370. else
  8371. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8372. fi
  8373. hardcode_libdir_flag_spec='-R$libdir'
  8374. hardcode_direct=yes
  8375. hardcode_shlibpath_var=no
  8376. ;;
  8377. newsos6)
  8378. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8379. hardcode_direct=yes
  8380. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8381. hardcode_libdir_separator=:
  8382. hardcode_shlibpath_var=no
  8383. ;;
  8384. *nto* | *qnx*)
  8385. ;;
  8386. openbsd*)
  8387. if test -f /usr/libexec/ld.so; then
  8388. hardcode_direct=yes
  8389. hardcode_shlibpath_var=no
  8390. hardcode_direct_absolute=yes
  8391. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8392. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8393. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8394. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8395. export_dynamic_flag_spec='${wl}-E'
  8396. else
  8397. case $host_os in
  8398. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8399. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8400. hardcode_libdir_flag_spec='-R$libdir'
  8401. ;;
  8402. *)
  8403. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8404. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8405. ;;
  8406. esac
  8407. fi
  8408. else
  8409. ld_shlibs=no
  8410. fi
  8411. ;;
  8412. os2*)
  8413. hardcode_libdir_flag_spec='-L$libdir'
  8414. hardcode_minus_L=yes
  8415. allow_undefined_flag=unsupported
  8416. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8417. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8418. ;;
  8419. osf3*)
  8420. if test "$GCC" = yes; then
  8421. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8422. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8423. else
  8424. allow_undefined_flag=' -expect_unresolved \*'
  8425. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8426. fi
  8427. archive_cmds_need_lc='no'
  8428. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8429. hardcode_libdir_separator=:
  8430. ;;
  8431. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8432. if test "$GCC" = yes; then
  8433. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8434. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8435. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8436. else
  8437. allow_undefined_flag=' -expect_unresolved \*'
  8438. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8439. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8440. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8441. # Both c and cxx compiler support -rpath directly
  8442. hardcode_libdir_flag_spec='-rpath $libdir'
  8443. fi
  8444. archive_cmds_need_lc='no'
  8445. hardcode_libdir_separator=:
  8446. ;;
  8447. solaris*)
  8448. no_undefined_flag=' -z defs'
  8449. if test "$GCC" = yes; then
  8450. wlarc='${wl}'
  8451. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8452. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8453. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8454. else
  8455. case `$CC -V 2>&1` in
  8456. *"Compilers 5.0"*)
  8457. wlarc=''
  8458. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8459. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8460. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8461. ;;
  8462. *)
  8463. wlarc='${wl}'
  8464. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8465. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8466. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8467. ;;
  8468. esac
  8469. fi
  8470. hardcode_libdir_flag_spec='-R$libdir'
  8471. hardcode_shlibpath_var=no
  8472. case $host_os in
  8473. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8474. *)
  8475. # The compiler driver will combine and reorder linker options,
  8476. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8477. # but is careful enough not to reorder.
  8478. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8479. if test "$GCC" = yes; then
  8480. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8481. else
  8482. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8483. fi
  8484. ;;
  8485. esac
  8486. link_all_deplibs=yes
  8487. ;;
  8488. sunos4*)
  8489. if test "x$host_vendor" = xsequent; then
  8490. # Use $CC to link under sequent, because it throws in some extra .o
  8491. # files that make .init and .fini sections work.
  8492. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8493. else
  8494. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8495. fi
  8496. hardcode_libdir_flag_spec='-L$libdir'
  8497. hardcode_direct=yes
  8498. hardcode_minus_L=yes
  8499. hardcode_shlibpath_var=no
  8500. ;;
  8501. sysv4)
  8502. case $host_vendor in
  8503. sni)
  8504. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8505. hardcode_direct=yes # is this really true???
  8506. ;;
  8507. siemens)
  8508. ## LD is ld it makes a PLAMLIB
  8509. ## CC just makes a GrossModule.
  8510. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8511. reload_cmds='$CC -r -o $output$reload_objs'
  8512. hardcode_direct=no
  8513. ;;
  8514. motorola)
  8515. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8516. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8517. ;;
  8518. esac
  8519. runpath_var='LD_RUN_PATH'
  8520. hardcode_shlibpath_var=no
  8521. ;;
  8522. sysv4.3*)
  8523. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8524. hardcode_shlibpath_var=no
  8525. export_dynamic_flag_spec='-Bexport'
  8526. ;;
  8527. sysv4*MP*)
  8528. if test -d /usr/nec; then
  8529. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8530. hardcode_shlibpath_var=no
  8531. runpath_var=LD_RUN_PATH
  8532. hardcode_runpath_var=yes
  8533. ld_shlibs=yes
  8534. fi
  8535. ;;
  8536. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8537. no_undefined_flag='${wl}-z,text'
  8538. archive_cmds_need_lc=no
  8539. hardcode_shlibpath_var=no
  8540. runpath_var='LD_RUN_PATH'
  8541. if test "$GCC" = yes; then
  8542. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8543. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8544. else
  8545. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8546. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8547. fi
  8548. ;;
  8549. sysv5* | sco3.2v5* | sco5v6*)
  8550. # Note: We can NOT use -z defs as we might desire, because we do not
  8551. # link with -lc, and that would cause any symbols used from libc to
  8552. # always be unresolved, which means just about no library would
  8553. # ever link correctly. If we're not using GNU ld we use -z text
  8554. # though, which does catch some bad symbols but isn't as heavy-handed
  8555. # as -z defs.
  8556. no_undefined_flag='${wl}-z,text'
  8557. allow_undefined_flag='${wl}-z,nodefs'
  8558. archive_cmds_need_lc=no
  8559. hardcode_shlibpath_var=no
  8560. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8561. hardcode_libdir_separator=':'
  8562. link_all_deplibs=yes
  8563. export_dynamic_flag_spec='${wl}-Bexport'
  8564. runpath_var='LD_RUN_PATH'
  8565. if test "$GCC" = yes; then
  8566. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8567. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8568. else
  8569. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8570. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8571. fi
  8572. ;;
  8573. uts4*)
  8574. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8575. hardcode_libdir_flag_spec='-L$libdir'
  8576. hardcode_shlibpath_var=no
  8577. ;;
  8578. *)
  8579. ld_shlibs=no
  8580. ;;
  8581. esac
  8582. if test x$host_vendor = xsni; then
  8583. case $host in
  8584. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8585. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8586. ;;
  8587. esac
  8588. fi
  8589. fi
  8590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8591. $as_echo "$ld_shlibs" >&6; }
  8592. test "$ld_shlibs" = no && can_build_shared=no
  8593. with_gnu_ld=$with_gnu_ld
  8594. #
  8595. # Do we need to explicitly link libc?
  8596. #
  8597. case "x$archive_cmds_need_lc" in
  8598. x|xyes)
  8599. # Assume -lc should be added
  8600. archive_cmds_need_lc=yes
  8601. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8602. case $archive_cmds in
  8603. *'~'*)
  8604. # FIXME: we may have to deal with multi-command sequences.
  8605. ;;
  8606. '$CC '*)
  8607. # Test whether the compiler implicitly links with -lc since on some
  8608. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8609. # to ld, don't add -lc before -lgcc.
  8610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8611. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8612. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8613. $as_echo_n "(cached) " >&6
  8614. else
  8615. $RM conftest*
  8616. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8617. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8618. (eval $ac_compile) 2>&5
  8619. ac_status=$?
  8620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8621. test $ac_status = 0; } 2>conftest.err; then
  8622. soname=conftest
  8623. lib=conftest
  8624. libobjs=conftest.$ac_objext
  8625. deplibs=
  8626. wl=$lt_prog_compiler_wl
  8627. pic_flag=$lt_prog_compiler_pic
  8628. compiler_flags=-v
  8629. linker_flags=-v
  8630. verstring=
  8631. output_objdir=.
  8632. libname=conftest
  8633. lt_save_allow_undefined_flag=$allow_undefined_flag
  8634. allow_undefined_flag=
  8635. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8636. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8637. ac_status=$?
  8638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8639. test $ac_status = 0; }
  8640. then
  8641. lt_cv_archive_cmds_need_lc=no
  8642. else
  8643. lt_cv_archive_cmds_need_lc=yes
  8644. fi
  8645. allow_undefined_flag=$lt_save_allow_undefined_flag
  8646. else
  8647. cat conftest.err 1>&5
  8648. fi
  8649. $RM conftest*
  8650. fi
  8651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8652. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8653. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8654. ;;
  8655. esac
  8656. fi
  8657. ;;
  8658. esac
  8659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8660. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8661. if test "$GCC" = yes; then
  8662. case $host_os in
  8663. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8664. *) lt_awk_arg="/^libraries:/" ;;
  8665. esac
  8666. case $host_os in
  8667. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8668. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8669. esac
  8670. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8671. case $lt_search_path_spec in
  8672. *\;*)
  8673. # if the path contains ";" then we assume it to be the separator
  8674. # otherwise default to the standard path separator (i.e. ":") - it is
  8675. # assumed that no part of a normal pathname contains ";" but that should
  8676. # okay in the real world where ";" in dirpaths is itself problematic.
  8677. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8678. ;;
  8679. *)
  8680. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8681. ;;
  8682. esac
  8683. # Ok, now we have the path, separated by spaces, we can step through it
  8684. # and add multilib dir if necessary...
  8685. lt_tmp_lt_search_path_spec=
  8686. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8687. # ...but if some path already ends with the multilib dir we assume
  8688. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8689. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8690. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8691. lt_multi_os_dir=
  8692. ;;
  8693. esac
  8694. for lt_sys_path in $lt_search_path_spec; do
  8695. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8696. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8697. elif test -n "$lt_multi_os_dir"; then
  8698. test -d "$lt_sys_path" && \
  8699. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8700. fi
  8701. done
  8702. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8703. BEGIN {RS=" "; FS="/|\n";} {
  8704. lt_foo="";
  8705. lt_count=0;
  8706. for (lt_i = NF; lt_i > 0; lt_i--) {
  8707. if ($lt_i != "" && $lt_i != ".") {
  8708. if ($lt_i == "..") {
  8709. lt_count++;
  8710. } else {
  8711. if (lt_count == 0) {
  8712. lt_foo="/" $lt_i lt_foo;
  8713. } else {
  8714. lt_count--;
  8715. }
  8716. }
  8717. }
  8718. }
  8719. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8720. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8721. }'`
  8722. # AWK program above erroneously prepends '/' to C:/dos/paths
  8723. # for these hosts.
  8724. case $host_os in
  8725. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8726. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8727. esac
  8728. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8729. else
  8730. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8731. fi
  8732. library_names_spec=
  8733. libname_spec='lib$name'
  8734. soname_spec=
  8735. shrext_cmds=".so"
  8736. postinstall_cmds=
  8737. postuninstall_cmds=
  8738. finish_cmds=
  8739. finish_eval=
  8740. shlibpath_var=
  8741. shlibpath_overrides_runpath=unknown
  8742. version_type=none
  8743. dynamic_linker="$host_os ld.so"
  8744. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8745. need_lib_prefix=unknown
  8746. hardcode_into_libs=no
  8747. # when you set need_version to no, make sure it does not cause -set_version
  8748. # flags to be left without arguments
  8749. need_version=unknown
  8750. case $host_os in
  8751. aix3*)
  8752. version_type=linux # correct to gnu/linux during the next big refactor
  8753. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8754. shlibpath_var=LIBPATH
  8755. # AIX 3 has no versioning support, so we append a major version to the name.
  8756. soname_spec='${libname}${release}${shared_ext}$major'
  8757. ;;
  8758. aix[4-9]*)
  8759. version_type=linux # correct to gnu/linux during the next big refactor
  8760. need_lib_prefix=no
  8761. need_version=no
  8762. hardcode_into_libs=yes
  8763. if test "$host_cpu" = ia64; then
  8764. # AIX 5 supports IA64
  8765. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8766. shlibpath_var=LD_LIBRARY_PATH
  8767. else
  8768. # With GCC up to 2.95.x, collect2 would create an import file
  8769. # for dependence libraries. The import file would start with
  8770. # the line `#! .'. This would cause the generated library to
  8771. # depend on `.', always an invalid library. This was fixed in
  8772. # development snapshots of GCC prior to 3.0.
  8773. case $host_os in
  8774. aix4 | aix4.[01] | aix4.[01].*)
  8775. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8776. echo ' yes '
  8777. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8778. :
  8779. else
  8780. can_build_shared=no
  8781. fi
  8782. ;;
  8783. esac
  8784. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8785. # soname into executable. Probably we can add versioning support to
  8786. # collect2, so additional links can be useful in future.
  8787. if test "$aix_use_runtimelinking" = yes; then
  8788. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8789. # instead of lib<name>.a to let people know that these are not
  8790. # typical AIX shared libraries.
  8791. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8792. else
  8793. # We preserve .a as extension for shared libraries through AIX4.2
  8794. # and later when we are not doing run time linking.
  8795. library_names_spec='${libname}${release}.a $libname.a'
  8796. soname_spec='${libname}${release}${shared_ext}$major'
  8797. fi
  8798. shlibpath_var=LIBPATH
  8799. fi
  8800. ;;
  8801. amigaos*)
  8802. case $host_cpu in
  8803. powerpc)
  8804. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8805. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8806. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8807. ;;
  8808. m68k)
  8809. library_names_spec='$libname.ixlibrary $libname.a'
  8810. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8811. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8812. ;;
  8813. esac
  8814. ;;
  8815. beos*)
  8816. library_names_spec='${libname}${shared_ext}'
  8817. dynamic_linker="$host_os ld.so"
  8818. shlibpath_var=LIBRARY_PATH
  8819. ;;
  8820. bsdi[45]*)
  8821. version_type=linux # correct to gnu/linux during the next big refactor
  8822. need_version=no
  8823. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8824. soname_spec='${libname}${release}${shared_ext}$major'
  8825. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8826. shlibpath_var=LD_LIBRARY_PATH
  8827. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8828. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8829. # the default ld.so.conf also contains /usr/contrib/lib and
  8830. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8831. # libtool to hard-code these into programs
  8832. ;;
  8833. cygwin* | mingw* | pw32* | cegcc*)
  8834. version_type=windows
  8835. shrext_cmds=".dll"
  8836. need_version=no
  8837. need_lib_prefix=no
  8838. case $GCC,$cc_basename in
  8839. yes,*)
  8840. # gcc
  8841. library_names_spec='$libname.dll.a'
  8842. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8843. postinstall_cmds='base_file=`basename \${file}`~
  8844. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8845. dldir=$destdir/`dirname \$dlpath`~
  8846. test -d \$dldir || mkdir -p \$dldir~
  8847. $install_prog $dir/$dlname \$dldir/$dlname~
  8848. chmod a+x \$dldir/$dlname~
  8849. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8850. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8851. fi'
  8852. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8853. dlpath=$dir/\$dldll~
  8854. $RM \$dlpath'
  8855. shlibpath_overrides_runpath=yes
  8856. case $host_os in
  8857. cygwin*)
  8858. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8859. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8860. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8861. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8862. ;;
  8863. mingw* | cegcc*)
  8864. # MinGW DLLs use traditional 'lib' prefix
  8865. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8866. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8867. ;;
  8868. pw32*)
  8869. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8870. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8871. ;;
  8872. esac
  8873. dynamic_linker='Win32 ld.exe'
  8874. ;;
  8875. *,cl*)
  8876. # Native MSVC
  8877. libname_spec='$name'
  8878. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8879. library_names_spec='${libname}.dll.lib'
  8880. case $build_os in
  8881. mingw*)
  8882. sys_lib_search_path_spec=
  8883. lt_save_ifs=$IFS
  8884. IFS=';'
  8885. for lt_path in $LIB
  8886. do
  8887. IFS=$lt_save_ifs
  8888. # Let DOS variable expansion print the short 8.3 style file name.
  8889. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8890. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8891. done
  8892. IFS=$lt_save_ifs
  8893. # Convert to MSYS style.
  8894. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8895. ;;
  8896. cygwin*)
  8897. # Convert to unix form, then to dos form, then back to unix form
  8898. # but this time dos style (no spaces!) so that the unix form looks
  8899. # like /cygdrive/c/PROGRA~1:/cygdr...
  8900. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8901. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8902. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8903. ;;
  8904. *)
  8905. sys_lib_search_path_spec="$LIB"
  8906. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8907. # It is most probably a Windows format PATH.
  8908. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8909. else
  8910. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8911. fi
  8912. # FIXME: find the short name or the path components, as spaces are
  8913. # common. (e.g. "Program Files" -> "PROGRA~1")
  8914. ;;
  8915. esac
  8916. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8917. postinstall_cmds='base_file=`basename \${file}`~
  8918. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8919. dldir=$destdir/`dirname \$dlpath`~
  8920. test -d \$dldir || mkdir -p \$dldir~
  8921. $install_prog $dir/$dlname \$dldir/$dlname'
  8922. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8923. dlpath=$dir/\$dldll~
  8924. $RM \$dlpath'
  8925. shlibpath_overrides_runpath=yes
  8926. dynamic_linker='Win32 link.exe'
  8927. ;;
  8928. *)
  8929. # Assume MSVC wrapper
  8930. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8931. dynamic_linker='Win32 ld.exe'
  8932. ;;
  8933. esac
  8934. # FIXME: first we should search . and the directory the executable is in
  8935. shlibpath_var=PATH
  8936. ;;
  8937. darwin* | rhapsody*)
  8938. dynamic_linker="$host_os dyld"
  8939. version_type=darwin
  8940. need_lib_prefix=no
  8941. need_version=no
  8942. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8943. soname_spec='${libname}${release}${major}$shared_ext'
  8944. shlibpath_overrides_runpath=yes
  8945. shlibpath_var=DYLD_LIBRARY_PATH
  8946. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8947. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8948. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8949. ;;
  8950. dgux*)
  8951. version_type=linux # correct to gnu/linux during the next big refactor
  8952. need_lib_prefix=no
  8953. need_version=no
  8954. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8955. soname_spec='${libname}${release}${shared_ext}$major'
  8956. shlibpath_var=LD_LIBRARY_PATH
  8957. ;;
  8958. freebsd* | dragonfly*)
  8959. # DragonFly does not have aout. When/if they implement a new
  8960. # versioning mechanism, adjust this.
  8961. if test -x /usr/bin/objformat; then
  8962. objformat=`/usr/bin/objformat`
  8963. else
  8964. case $host_os in
  8965. freebsd[23].*) objformat=aout ;;
  8966. *) objformat=elf ;;
  8967. esac
  8968. fi
  8969. version_type=freebsd-$objformat
  8970. case $version_type in
  8971. freebsd-elf*)
  8972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8973. need_version=no
  8974. need_lib_prefix=no
  8975. ;;
  8976. freebsd-*)
  8977. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8978. need_version=yes
  8979. ;;
  8980. esac
  8981. shlibpath_var=LD_LIBRARY_PATH
  8982. case $host_os in
  8983. freebsd2.*)
  8984. shlibpath_overrides_runpath=yes
  8985. ;;
  8986. freebsd3.[01]* | freebsdelf3.[01]*)
  8987. shlibpath_overrides_runpath=yes
  8988. hardcode_into_libs=yes
  8989. ;;
  8990. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8991. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8992. shlibpath_overrides_runpath=no
  8993. hardcode_into_libs=yes
  8994. ;;
  8995. *) # from 4.6 on, and DragonFly
  8996. shlibpath_overrides_runpath=yes
  8997. hardcode_into_libs=yes
  8998. ;;
  8999. esac
  9000. ;;
  9001. gnu*)
  9002. version_type=linux # correct to gnu/linux during the next big refactor
  9003. need_lib_prefix=no
  9004. need_version=no
  9005. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9006. soname_spec='${libname}${release}${shared_ext}$major'
  9007. shlibpath_var=LD_LIBRARY_PATH
  9008. shlibpath_overrides_runpath=no
  9009. hardcode_into_libs=yes
  9010. ;;
  9011. haiku*)
  9012. version_type=linux # correct to gnu/linux during the next big refactor
  9013. need_lib_prefix=no
  9014. need_version=no
  9015. dynamic_linker="$host_os runtime_loader"
  9016. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9017. soname_spec='${libname}${release}${shared_ext}$major'
  9018. shlibpath_var=LIBRARY_PATH
  9019. shlibpath_overrides_runpath=yes
  9020. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9021. hardcode_into_libs=yes
  9022. ;;
  9023. hpux9* | hpux10* | hpux11*)
  9024. # Give a soname corresponding to the major version so that dld.sl refuses to
  9025. # link against other versions.
  9026. version_type=sunos
  9027. need_lib_prefix=no
  9028. need_version=no
  9029. case $host_cpu in
  9030. ia64*)
  9031. shrext_cmds='.so'
  9032. hardcode_into_libs=yes
  9033. dynamic_linker="$host_os dld.so"
  9034. shlibpath_var=LD_LIBRARY_PATH
  9035. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9037. soname_spec='${libname}${release}${shared_ext}$major'
  9038. if test "X$HPUX_IA64_MODE" = X32; then
  9039. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9040. else
  9041. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9042. fi
  9043. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9044. ;;
  9045. hppa*64*)
  9046. shrext_cmds='.sl'
  9047. hardcode_into_libs=yes
  9048. dynamic_linker="$host_os dld.sl"
  9049. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9050. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9052. soname_spec='${libname}${release}${shared_ext}$major'
  9053. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9054. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9055. ;;
  9056. *)
  9057. shrext_cmds='.sl'
  9058. dynamic_linker="$host_os dld.sl"
  9059. shlibpath_var=SHLIB_PATH
  9060. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9062. soname_spec='${libname}${release}${shared_ext}$major'
  9063. ;;
  9064. esac
  9065. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9066. postinstall_cmds='chmod 555 $lib'
  9067. # or fails outright, so override atomically:
  9068. install_override_mode=555
  9069. ;;
  9070. interix[3-9]*)
  9071. version_type=linux # correct to gnu/linux during the next big refactor
  9072. need_lib_prefix=no
  9073. need_version=no
  9074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9075. soname_spec='${libname}${release}${shared_ext}$major'
  9076. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9077. shlibpath_var=LD_LIBRARY_PATH
  9078. shlibpath_overrides_runpath=no
  9079. hardcode_into_libs=yes
  9080. ;;
  9081. irix5* | irix6* | nonstopux*)
  9082. case $host_os in
  9083. nonstopux*) version_type=nonstopux ;;
  9084. *)
  9085. if test "$lt_cv_prog_gnu_ld" = yes; then
  9086. version_type=linux # correct to gnu/linux during the next big refactor
  9087. else
  9088. version_type=irix
  9089. fi ;;
  9090. esac
  9091. need_lib_prefix=no
  9092. need_version=no
  9093. soname_spec='${libname}${release}${shared_ext}$major'
  9094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9095. case $host_os in
  9096. irix5* | nonstopux*)
  9097. libsuff= shlibsuff=
  9098. ;;
  9099. *)
  9100. case $LD in # libtool.m4 will add one of these switches to LD
  9101. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9102. libsuff= shlibsuff= libmagic=32-bit;;
  9103. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9104. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9105. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9106. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9107. *) libsuff= shlibsuff= libmagic=never-match;;
  9108. esac
  9109. ;;
  9110. esac
  9111. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9112. shlibpath_overrides_runpath=no
  9113. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9114. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9115. hardcode_into_libs=yes
  9116. ;;
  9117. # No shared lib support for Linux oldld, aout, or coff.
  9118. linux*oldld* | linux*aout* | linux*coff*)
  9119. dynamic_linker=no
  9120. ;;
  9121. # This must be glibc/ELF.
  9122. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9123. version_type=linux # correct to gnu/linux during the next big refactor
  9124. need_lib_prefix=no
  9125. need_version=no
  9126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9127. soname_spec='${libname}${release}${shared_ext}$major'
  9128. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9129. shlibpath_var=LD_LIBRARY_PATH
  9130. shlibpath_overrides_runpath=no
  9131. # Some binutils ld are patched to set DT_RUNPATH
  9132. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9133. $as_echo_n "(cached) " >&6
  9134. else
  9135. lt_cv_shlibpath_overrides_runpath=no
  9136. save_LDFLAGS=$LDFLAGS
  9137. save_libdir=$libdir
  9138. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9139. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9141. /* end confdefs.h. */
  9142. int
  9143. main ()
  9144. {
  9145. ;
  9146. return 0;
  9147. }
  9148. _ACEOF
  9149. if ac_fn_c_try_link "$LINENO"; then :
  9150. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9151. lt_cv_shlibpath_overrides_runpath=yes
  9152. fi
  9153. fi
  9154. rm -f core conftest.err conftest.$ac_objext \
  9155. conftest$ac_exeext conftest.$ac_ext
  9156. LDFLAGS=$save_LDFLAGS
  9157. libdir=$save_libdir
  9158. fi
  9159. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9160. # This implies no fast_install, which is unacceptable.
  9161. # Some rework will be needed to allow for fast_install
  9162. # before this can be enabled.
  9163. hardcode_into_libs=yes
  9164. # Append ld.so.conf contents to the search path
  9165. if test -f /etc/ld.so.conf; then
  9166. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9167. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9168. fi
  9169. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9170. # powerpc, because MkLinux only supported shared libraries with the
  9171. # GNU dynamic linker. Since this was broken with cross compilers,
  9172. # most powerpc-linux boxes support dynamic linking these days and
  9173. # people can always --disable-shared, the test was removed, and we
  9174. # assume the GNU/Linux dynamic linker is in use.
  9175. dynamic_linker='GNU/Linux ld.so'
  9176. ;;
  9177. netbsd*)
  9178. version_type=sunos
  9179. need_lib_prefix=no
  9180. need_version=no
  9181. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9183. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9184. dynamic_linker='NetBSD (a.out) ld.so'
  9185. else
  9186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9187. soname_spec='${libname}${release}${shared_ext}$major'
  9188. dynamic_linker='NetBSD ld.elf_so'
  9189. fi
  9190. shlibpath_var=LD_LIBRARY_PATH
  9191. shlibpath_overrides_runpath=yes
  9192. hardcode_into_libs=yes
  9193. ;;
  9194. newsos6)
  9195. version_type=linux # correct to gnu/linux during the next big refactor
  9196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9197. shlibpath_var=LD_LIBRARY_PATH
  9198. shlibpath_overrides_runpath=yes
  9199. ;;
  9200. *nto* | *qnx*)
  9201. version_type=qnx
  9202. need_lib_prefix=no
  9203. need_version=no
  9204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9205. soname_spec='${libname}${release}${shared_ext}$major'
  9206. shlibpath_var=LD_LIBRARY_PATH
  9207. shlibpath_overrides_runpath=no
  9208. hardcode_into_libs=yes
  9209. dynamic_linker='ldqnx.so'
  9210. ;;
  9211. openbsd*)
  9212. version_type=sunos
  9213. sys_lib_dlsearch_path_spec="/usr/lib"
  9214. need_lib_prefix=no
  9215. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9216. case $host_os in
  9217. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9218. *) need_version=no ;;
  9219. esac
  9220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9221. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9222. shlibpath_var=LD_LIBRARY_PATH
  9223. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9224. case $host_os in
  9225. openbsd2.[89] | openbsd2.[89].*)
  9226. shlibpath_overrides_runpath=no
  9227. ;;
  9228. *)
  9229. shlibpath_overrides_runpath=yes
  9230. ;;
  9231. esac
  9232. else
  9233. shlibpath_overrides_runpath=yes
  9234. fi
  9235. ;;
  9236. os2*)
  9237. libname_spec='$name'
  9238. shrext_cmds=".dll"
  9239. need_lib_prefix=no
  9240. library_names_spec='$libname${shared_ext} $libname.a'
  9241. dynamic_linker='OS/2 ld.exe'
  9242. shlibpath_var=LIBPATH
  9243. ;;
  9244. osf3* | osf4* | osf5*)
  9245. version_type=osf
  9246. need_lib_prefix=no
  9247. need_version=no
  9248. soname_spec='${libname}${release}${shared_ext}$major'
  9249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9250. shlibpath_var=LD_LIBRARY_PATH
  9251. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9252. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9253. ;;
  9254. rdos*)
  9255. dynamic_linker=no
  9256. ;;
  9257. solaris*)
  9258. version_type=linux # correct to gnu/linux during the next big refactor
  9259. need_lib_prefix=no
  9260. need_version=no
  9261. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9262. soname_spec='${libname}${release}${shared_ext}$major'
  9263. shlibpath_var=LD_LIBRARY_PATH
  9264. shlibpath_overrides_runpath=yes
  9265. hardcode_into_libs=yes
  9266. # ldd complains unless libraries are executable
  9267. postinstall_cmds='chmod +x $lib'
  9268. ;;
  9269. sunos4*)
  9270. version_type=sunos
  9271. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9272. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9273. shlibpath_var=LD_LIBRARY_PATH
  9274. shlibpath_overrides_runpath=yes
  9275. if test "$with_gnu_ld" = yes; then
  9276. need_lib_prefix=no
  9277. fi
  9278. need_version=yes
  9279. ;;
  9280. sysv4 | sysv4.3*)
  9281. version_type=linux # correct to gnu/linux during the next big refactor
  9282. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9283. soname_spec='${libname}${release}${shared_ext}$major'
  9284. shlibpath_var=LD_LIBRARY_PATH
  9285. case $host_vendor in
  9286. sni)
  9287. shlibpath_overrides_runpath=no
  9288. need_lib_prefix=no
  9289. runpath_var=LD_RUN_PATH
  9290. ;;
  9291. siemens)
  9292. need_lib_prefix=no
  9293. ;;
  9294. motorola)
  9295. need_lib_prefix=no
  9296. need_version=no
  9297. shlibpath_overrides_runpath=no
  9298. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9299. ;;
  9300. esac
  9301. ;;
  9302. sysv4*MP*)
  9303. if test -d /usr/nec ;then
  9304. version_type=linux # correct to gnu/linux during the next big refactor
  9305. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9306. soname_spec='$libname${shared_ext}.$major'
  9307. shlibpath_var=LD_LIBRARY_PATH
  9308. fi
  9309. ;;
  9310. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9311. version_type=freebsd-elf
  9312. need_lib_prefix=no
  9313. need_version=no
  9314. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9315. soname_spec='${libname}${release}${shared_ext}$major'
  9316. shlibpath_var=LD_LIBRARY_PATH
  9317. shlibpath_overrides_runpath=yes
  9318. hardcode_into_libs=yes
  9319. if test "$with_gnu_ld" = yes; then
  9320. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9321. else
  9322. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9323. case $host_os in
  9324. sco3.2v5*)
  9325. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9326. ;;
  9327. esac
  9328. fi
  9329. sys_lib_dlsearch_path_spec='/usr/lib'
  9330. ;;
  9331. tpf*)
  9332. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9333. version_type=linux # correct to gnu/linux during the next big refactor
  9334. need_lib_prefix=no
  9335. need_version=no
  9336. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9337. shlibpath_var=LD_LIBRARY_PATH
  9338. shlibpath_overrides_runpath=no
  9339. hardcode_into_libs=yes
  9340. ;;
  9341. uts4*)
  9342. version_type=linux # correct to gnu/linux during the next big refactor
  9343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9344. soname_spec='${libname}${release}${shared_ext}$major'
  9345. shlibpath_var=LD_LIBRARY_PATH
  9346. ;;
  9347. *)
  9348. dynamic_linker=no
  9349. ;;
  9350. esac
  9351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9352. $as_echo "$dynamic_linker" >&6; }
  9353. test "$dynamic_linker" = no && can_build_shared=no
  9354. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9355. if test "$GCC" = yes; then
  9356. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9357. fi
  9358. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9359. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9360. fi
  9361. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9362. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9363. fi
  9364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9365. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9366. hardcode_action=
  9367. if test -n "$hardcode_libdir_flag_spec" ||
  9368. test -n "$runpath_var" ||
  9369. test "X$hardcode_automatic" = "Xyes" ; then
  9370. # We can hardcode non-existent directories.
  9371. if test "$hardcode_direct" != no &&
  9372. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9373. # have to relink, otherwise we might link with an installed library
  9374. # when we should be linking with a yet-to-be-installed one
  9375. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9376. test "$hardcode_minus_L" != no; then
  9377. # Linking always hardcodes the temporary library directory.
  9378. hardcode_action=relink
  9379. else
  9380. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9381. hardcode_action=immediate
  9382. fi
  9383. else
  9384. # We cannot hardcode anything, or else we can only hardcode existing
  9385. # directories.
  9386. hardcode_action=unsupported
  9387. fi
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9389. $as_echo "$hardcode_action" >&6; }
  9390. if test "$hardcode_action" = relink ||
  9391. test "$inherit_rpath" = yes; then
  9392. # Fast installation is not supported
  9393. enable_fast_install=no
  9394. elif test "$shlibpath_overrides_runpath" = yes ||
  9395. test "$enable_shared" = no; then
  9396. # Fast installation is not necessary
  9397. enable_fast_install=needless
  9398. fi
  9399. if test "x$enable_dlopen" != xyes; then
  9400. enable_dlopen=unknown
  9401. enable_dlopen_self=unknown
  9402. enable_dlopen_self_static=unknown
  9403. else
  9404. lt_cv_dlopen=no
  9405. lt_cv_dlopen_libs=
  9406. case $host_os in
  9407. beos*)
  9408. lt_cv_dlopen="load_add_on"
  9409. lt_cv_dlopen_libs=
  9410. lt_cv_dlopen_self=yes
  9411. ;;
  9412. mingw* | pw32* | cegcc*)
  9413. lt_cv_dlopen="LoadLibrary"
  9414. lt_cv_dlopen_libs=
  9415. ;;
  9416. cygwin*)
  9417. lt_cv_dlopen="dlopen"
  9418. lt_cv_dlopen_libs=
  9419. ;;
  9420. darwin*)
  9421. # if libdl is installed we need to link against it
  9422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9423. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9424. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9425. $as_echo_n "(cached) " >&6
  9426. else
  9427. ac_check_lib_save_LIBS=$LIBS
  9428. LIBS="-ldl $LIBS"
  9429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9430. /* end confdefs.h. */
  9431. /* Override any GCC internal prototype to avoid an error.
  9432. Use char because int might match the return type of a GCC
  9433. builtin and then its argument prototype would still apply. */
  9434. #ifdef __cplusplus
  9435. extern "C"
  9436. #endif
  9437. char dlopen ();
  9438. int
  9439. main ()
  9440. {
  9441. return dlopen ();
  9442. ;
  9443. return 0;
  9444. }
  9445. _ACEOF
  9446. if ac_fn_c_try_link "$LINENO"; then :
  9447. ac_cv_lib_dl_dlopen=yes
  9448. else
  9449. ac_cv_lib_dl_dlopen=no
  9450. fi
  9451. rm -f core conftest.err conftest.$ac_objext \
  9452. conftest$ac_exeext conftest.$ac_ext
  9453. LIBS=$ac_check_lib_save_LIBS
  9454. fi
  9455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9456. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9457. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9458. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9459. else
  9460. lt_cv_dlopen="dyld"
  9461. lt_cv_dlopen_libs=
  9462. lt_cv_dlopen_self=yes
  9463. fi
  9464. ;;
  9465. *)
  9466. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9467. if test "x$ac_cv_func_shl_load" = xyes; then :
  9468. lt_cv_dlopen="shl_load"
  9469. else
  9470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9471. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9472. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9473. $as_echo_n "(cached) " >&6
  9474. else
  9475. ac_check_lib_save_LIBS=$LIBS
  9476. LIBS="-ldld $LIBS"
  9477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9478. /* end confdefs.h. */
  9479. /* Override any GCC internal prototype to avoid an error.
  9480. Use char because int might match the return type of a GCC
  9481. builtin and then its argument prototype would still apply. */
  9482. #ifdef __cplusplus
  9483. extern "C"
  9484. #endif
  9485. char shl_load ();
  9486. int
  9487. main ()
  9488. {
  9489. return shl_load ();
  9490. ;
  9491. return 0;
  9492. }
  9493. _ACEOF
  9494. if ac_fn_c_try_link "$LINENO"; then :
  9495. ac_cv_lib_dld_shl_load=yes
  9496. else
  9497. ac_cv_lib_dld_shl_load=no
  9498. fi
  9499. rm -f core conftest.err conftest.$ac_objext \
  9500. conftest$ac_exeext conftest.$ac_ext
  9501. LIBS=$ac_check_lib_save_LIBS
  9502. fi
  9503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9504. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9505. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9506. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9507. else
  9508. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9509. if test "x$ac_cv_func_dlopen" = xyes; then :
  9510. lt_cv_dlopen="dlopen"
  9511. else
  9512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9513. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9514. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9515. $as_echo_n "(cached) " >&6
  9516. else
  9517. ac_check_lib_save_LIBS=$LIBS
  9518. LIBS="-ldl $LIBS"
  9519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9520. /* end confdefs.h. */
  9521. /* Override any GCC internal prototype to avoid an error.
  9522. Use char because int might match the return type of a GCC
  9523. builtin and then its argument prototype would still apply. */
  9524. #ifdef __cplusplus
  9525. extern "C"
  9526. #endif
  9527. char dlopen ();
  9528. int
  9529. main ()
  9530. {
  9531. return dlopen ();
  9532. ;
  9533. return 0;
  9534. }
  9535. _ACEOF
  9536. if ac_fn_c_try_link "$LINENO"; then :
  9537. ac_cv_lib_dl_dlopen=yes
  9538. else
  9539. ac_cv_lib_dl_dlopen=no
  9540. fi
  9541. rm -f core conftest.err conftest.$ac_objext \
  9542. conftest$ac_exeext conftest.$ac_ext
  9543. LIBS=$ac_check_lib_save_LIBS
  9544. fi
  9545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9546. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9547. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9548. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9549. else
  9550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9551. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9552. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9553. $as_echo_n "(cached) " >&6
  9554. else
  9555. ac_check_lib_save_LIBS=$LIBS
  9556. LIBS="-lsvld $LIBS"
  9557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9558. /* end confdefs.h. */
  9559. /* Override any GCC internal prototype to avoid an error.
  9560. Use char because int might match the return type of a GCC
  9561. builtin and then its argument prototype would still apply. */
  9562. #ifdef __cplusplus
  9563. extern "C"
  9564. #endif
  9565. char dlopen ();
  9566. int
  9567. main ()
  9568. {
  9569. return dlopen ();
  9570. ;
  9571. return 0;
  9572. }
  9573. _ACEOF
  9574. if ac_fn_c_try_link "$LINENO"; then :
  9575. ac_cv_lib_svld_dlopen=yes
  9576. else
  9577. ac_cv_lib_svld_dlopen=no
  9578. fi
  9579. rm -f core conftest.err conftest.$ac_objext \
  9580. conftest$ac_exeext conftest.$ac_ext
  9581. LIBS=$ac_check_lib_save_LIBS
  9582. fi
  9583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9584. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9585. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9586. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9587. else
  9588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9589. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9590. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9591. $as_echo_n "(cached) " >&6
  9592. else
  9593. ac_check_lib_save_LIBS=$LIBS
  9594. LIBS="-ldld $LIBS"
  9595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9596. /* end confdefs.h. */
  9597. /* Override any GCC internal prototype to avoid an error.
  9598. Use char because int might match the return type of a GCC
  9599. builtin and then its argument prototype would still apply. */
  9600. #ifdef __cplusplus
  9601. extern "C"
  9602. #endif
  9603. char dld_link ();
  9604. int
  9605. main ()
  9606. {
  9607. return dld_link ();
  9608. ;
  9609. return 0;
  9610. }
  9611. _ACEOF
  9612. if ac_fn_c_try_link "$LINENO"; then :
  9613. ac_cv_lib_dld_dld_link=yes
  9614. else
  9615. ac_cv_lib_dld_dld_link=no
  9616. fi
  9617. rm -f core conftest.err conftest.$ac_objext \
  9618. conftest$ac_exeext conftest.$ac_ext
  9619. LIBS=$ac_check_lib_save_LIBS
  9620. fi
  9621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9622. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9623. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9624. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9625. fi
  9626. fi
  9627. fi
  9628. fi
  9629. fi
  9630. fi
  9631. ;;
  9632. esac
  9633. if test "x$lt_cv_dlopen" != xno; then
  9634. enable_dlopen=yes
  9635. else
  9636. enable_dlopen=no
  9637. fi
  9638. case $lt_cv_dlopen in
  9639. dlopen)
  9640. save_CPPFLAGS="$CPPFLAGS"
  9641. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9642. save_LDFLAGS="$LDFLAGS"
  9643. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9644. save_LIBS="$LIBS"
  9645. LIBS="$lt_cv_dlopen_libs $LIBS"
  9646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9647. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9648. if ${lt_cv_dlopen_self+:} false; then :
  9649. $as_echo_n "(cached) " >&6
  9650. else
  9651. if test "$cross_compiling" = yes; then :
  9652. lt_cv_dlopen_self=cross
  9653. else
  9654. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9655. lt_status=$lt_dlunknown
  9656. cat > conftest.$ac_ext <<_LT_EOF
  9657. #line $LINENO "configure"
  9658. #include "confdefs.h"
  9659. #if HAVE_DLFCN_H
  9660. #include <dlfcn.h>
  9661. #endif
  9662. #include <stdio.h>
  9663. #ifdef RTLD_GLOBAL
  9664. # define LT_DLGLOBAL RTLD_GLOBAL
  9665. #else
  9666. # ifdef DL_GLOBAL
  9667. # define LT_DLGLOBAL DL_GLOBAL
  9668. # else
  9669. # define LT_DLGLOBAL 0
  9670. # endif
  9671. #endif
  9672. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9673. find out it does not work in some platform. */
  9674. #ifndef LT_DLLAZY_OR_NOW
  9675. # ifdef RTLD_LAZY
  9676. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9677. # else
  9678. # ifdef DL_LAZY
  9679. # define LT_DLLAZY_OR_NOW DL_LAZY
  9680. # else
  9681. # ifdef RTLD_NOW
  9682. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9683. # else
  9684. # ifdef DL_NOW
  9685. # define LT_DLLAZY_OR_NOW DL_NOW
  9686. # else
  9687. # define LT_DLLAZY_OR_NOW 0
  9688. # endif
  9689. # endif
  9690. # endif
  9691. # endif
  9692. #endif
  9693. /* When -fvisbility=hidden is used, assume the code has been annotated
  9694. correspondingly for the symbols needed. */
  9695. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9696. int fnord () __attribute__((visibility("default")));
  9697. #endif
  9698. int fnord () { return 42; }
  9699. int main ()
  9700. {
  9701. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9702. int status = $lt_dlunknown;
  9703. if (self)
  9704. {
  9705. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9706. else
  9707. {
  9708. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9709. else puts (dlerror ());
  9710. }
  9711. /* dlclose (self); */
  9712. }
  9713. else
  9714. puts (dlerror ());
  9715. return status;
  9716. }
  9717. _LT_EOF
  9718. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9719. (eval $ac_link) 2>&5
  9720. ac_status=$?
  9721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9722. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9723. (./conftest; exit; ) >&5 2>/dev/null
  9724. lt_status=$?
  9725. case x$lt_status in
  9726. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9727. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9728. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9729. esac
  9730. else :
  9731. # compilation failed
  9732. lt_cv_dlopen_self=no
  9733. fi
  9734. fi
  9735. rm -fr conftest*
  9736. fi
  9737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9738. $as_echo "$lt_cv_dlopen_self" >&6; }
  9739. if test "x$lt_cv_dlopen_self" = xyes; then
  9740. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9742. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9743. if ${lt_cv_dlopen_self_static+:} false; then :
  9744. $as_echo_n "(cached) " >&6
  9745. else
  9746. if test "$cross_compiling" = yes; then :
  9747. lt_cv_dlopen_self_static=cross
  9748. else
  9749. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9750. lt_status=$lt_dlunknown
  9751. cat > conftest.$ac_ext <<_LT_EOF
  9752. #line $LINENO "configure"
  9753. #include "confdefs.h"
  9754. #if HAVE_DLFCN_H
  9755. #include <dlfcn.h>
  9756. #endif
  9757. #include <stdio.h>
  9758. #ifdef RTLD_GLOBAL
  9759. # define LT_DLGLOBAL RTLD_GLOBAL
  9760. #else
  9761. # ifdef DL_GLOBAL
  9762. # define LT_DLGLOBAL DL_GLOBAL
  9763. # else
  9764. # define LT_DLGLOBAL 0
  9765. # endif
  9766. #endif
  9767. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9768. find out it does not work in some platform. */
  9769. #ifndef LT_DLLAZY_OR_NOW
  9770. # ifdef RTLD_LAZY
  9771. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9772. # else
  9773. # ifdef DL_LAZY
  9774. # define LT_DLLAZY_OR_NOW DL_LAZY
  9775. # else
  9776. # ifdef RTLD_NOW
  9777. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9778. # else
  9779. # ifdef DL_NOW
  9780. # define LT_DLLAZY_OR_NOW DL_NOW
  9781. # else
  9782. # define LT_DLLAZY_OR_NOW 0
  9783. # endif
  9784. # endif
  9785. # endif
  9786. # endif
  9787. #endif
  9788. /* When -fvisbility=hidden is used, assume the code has been annotated
  9789. correspondingly for the symbols needed. */
  9790. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9791. int fnord () __attribute__((visibility("default")));
  9792. #endif
  9793. int fnord () { return 42; }
  9794. int main ()
  9795. {
  9796. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9797. int status = $lt_dlunknown;
  9798. if (self)
  9799. {
  9800. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9801. else
  9802. {
  9803. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9804. else puts (dlerror ());
  9805. }
  9806. /* dlclose (self); */
  9807. }
  9808. else
  9809. puts (dlerror ());
  9810. return status;
  9811. }
  9812. _LT_EOF
  9813. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9814. (eval $ac_link) 2>&5
  9815. ac_status=$?
  9816. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9817. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9818. (./conftest; exit; ) >&5 2>/dev/null
  9819. lt_status=$?
  9820. case x$lt_status in
  9821. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9822. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9823. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9824. esac
  9825. else :
  9826. # compilation failed
  9827. lt_cv_dlopen_self_static=no
  9828. fi
  9829. fi
  9830. rm -fr conftest*
  9831. fi
  9832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9833. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9834. fi
  9835. CPPFLAGS="$save_CPPFLAGS"
  9836. LDFLAGS="$save_LDFLAGS"
  9837. LIBS="$save_LIBS"
  9838. ;;
  9839. esac
  9840. case $lt_cv_dlopen_self in
  9841. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9842. *) enable_dlopen_self=unknown ;;
  9843. esac
  9844. case $lt_cv_dlopen_self_static in
  9845. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9846. *) enable_dlopen_self_static=unknown ;;
  9847. esac
  9848. fi
  9849. striplib=
  9850. old_striplib=
  9851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9852. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9853. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9854. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9855. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9857. $as_echo "yes" >&6; }
  9858. else
  9859. # FIXME - insert some real tests, host_os isn't really good enough
  9860. case $host_os in
  9861. darwin*)
  9862. if test -n "$STRIP" ; then
  9863. striplib="$STRIP -x"
  9864. old_striplib="$STRIP -S"
  9865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9866. $as_echo "yes" >&6; }
  9867. else
  9868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9869. $as_echo "no" >&6; }
  9870. fi
  9871. ;;
  9872. *)
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9874. $as_echo "no" >&6; }
  9875. ;;
  9876. esac
  9877. fi
  9878. # Report which library types will actually be built
  9879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9880. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9882. $as_echo "$can_build_shared" >&6; }
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9884. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9885. test "$can_build_shared" = "no" && enable_shared=no
  9886. # On AIX, shared libraries and static libraries use the same namespace, and
  9887. # are all built from PIC.
  9888. case $host_os in
  9889. aix3*)
  9890. test "$enable_shared" = yes && enable_static=no
  9891. if test -n "$RANLIB"; then
  9892. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9893. postinstall_cmds='$RANLIB $lib'
  9894. fi
  9895. ;;
  9896. aix[4-9]*)
  9897. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9898. test "$enable_shared" = yes && enable_static=no
  9899. fi
  9900. ;;
  9901. esac
  9902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9903. $as_echo "$enable_shared" >&6; }
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9905. $as_echo_n "checking whether to build static libraries... " >&6; }
  9906. # Make sure either enable_shared or enable_static is yes.
  9907. test "$enable_shared" = yes || enable_static=yes
  9908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9909. $as_echo "$enable_static" >&6; }
  9910. fi
  9911. ac_ext=c
  9912. ac_cpp='$CPP $CPPFLAGS'
  9913. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9914. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9915. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9916. CC="$lt_save_CC"
  9917. ac_config_commands="$ac_config_commands libtool"
  9918. # Only expand once:
  9919. if test -n "$ac_tool_prefix"; then
  9920. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9921. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9923. $as_echo_n "checking for $ac_word... " >&6; }
  9924. if ${ac_cv_prog_RC+:} false; then :
  9925. $as_echo_n "(cached) " >&6
  9926. else
  9927. if test -n "$RC"; then
  9928. ac_cv_prog_RC="$RC" # Let the user override the test.
  9929. else
  9930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9931. for as_dir in $PATH
  9932. do
  9933. IFS=$as_save_IFS
  9934. test -z "$as_dir" && as_dir=.
  9935. for ac_exec_ext in '' $ac_executable_extensions; do
  9936. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9937. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9939. break 2
  9940. fi
  9941. done
  9942. done
  9943. IFS=$as_save_IFS
  9944. fi
  9945. fi
  9946. RC=$ac_cv_prog_RC
  9947. if test -n "$RC"; then
  9948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9949. $as_echo "$RC" >&6; }
  9950. else
  9951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9952. $as_echo "no" >&6; }
  9953. fi
  9954. fi
  9955. if test -z "$ac_cv_prog_RC"; then
  9956. ac_ct_RC=$RC
  9957. # Extract the first word of "windres", so it can be a program name with args.
  9958. set dummy windres; ac_word=$2
  9959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9960. $as_echo_n "checking for $ac_word... " >&6; }
  9961. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9962. $as_echo_n "(cached) " >&6
  9963. else
  9964. if test -n "$ac_ct_RC"; then
  9965. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9966. else
  9967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9968. for as_dir in $PATH
  9969. do
  9970. IFS=$as_save_IFS
  9971. test -z "$as_dir" && as_dir=.
  9972. for ac_exec_ext in '' $ac_executable_extensions; do
  9973. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9974. ac_cv_prog_ac_ct_RC="windres"
  9975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9976. break 2
  9977. fi
  9978. done
  9979. done
  9980. IFS=$as_save_IFS
  9981. fi
  9982. fi
  9983. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9984. if test -n "$ac_ct_RC"; then
  9985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  9986. $as_echo "$ac_ct_RC" >&6; }
  9987. else
  9988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9989. $as_echo "no" >&6; }
  9990. fi
  9991. if test "x$ac_ct_RC" = x; then
  9992. RC=""
  9993. else
  9994. case $cross_compiling:$ac_tool_warned in
  9995. yes:)
  9996. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9997. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9998. ac_tool_warned=yes ;;
  9999. esac
  10000. RC=$ac_ct_RC
  10001. fi
  10002. else
  10003. RC="$ac_cv_prog_RC"
  10004. fi
  10005. # Source file extension for RC test sources.
  10006. ac_ext=rc
  10007. # Object file extension for compiled RC test sources.
  10008. objext=o
  10009. objext_RC=$objext
  10010. # Code to be used in simple compile tests
  10011. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10012. # Code to be used in simple link tests
  10013. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10014. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10015. # If no C compiler was specified, use CC.
  10016. LTCC=${LTCC-"$CC"}
  10017. # If no C compiler flags were specified, use CFLAGS.
  10018. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10019. # Allow CC to be a program name with arguments.
  10020. compiler=$CC
  10021. # save warnings/boilerplate of simple test code
  10022. ac_outfile=conftest.$ac_objext
  10023. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10024. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10025. _lt_compiler_boilerplate=`cat conftest.err`
  10026. $RM conftest*
  10027. ac_outfile=conftest.$ac_objext
  10028. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10029. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10030. _lt_linker_boilerplate=`cat conftest.err`
  10031. $RM -r conftest*
  10032. # Allow CC to be a program name with arguments.
  10033. lt_save_CC="$CC"
  10034. lt_save_CFLAGS=$CFLAGS
  10035. lt_save_GCC=$GCC
  10036. GCC=
  10037. CC=${RC-"windres"}
  10038. CFLAGS=
  10039. compiler=$CC
  10040. compiler_RC=$CC
  10041. for cc_temp in $compiler""; do
  10042. case $cc_temp in
  10043. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10044. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10045. \-*) ;;
  10046. *) break;;
  10047. esac
  10048. done
  10049. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10050. lt_cv_prog_compiler_c_o_RC=yes
  10051. if test -n "$compiler"; then
  10052. :
  10053. fi
  10054. GCC=$lt_save_GCC
  10055. ac_ext=c
  10056. ac_cpp='$CPP $CPPFLAGS'
  10057. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10058. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10059. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10060. CC=$lt_save_CC
  10061. CFLAGS=$lt_save_CFLAGS
  10062. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10063. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10064. LT_REVISION=$SDL_INTERFACE_AGE
  10065. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10066. ac_ext=c
  10067. ac_cpp='$CPP $CPPFLAGS'
  10068. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10069. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10070. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10071. if test -n "$ac_tool_prefix"; then
  10072. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10073. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10075. $as_echo_n "checking for $ac_word... " >&6; }
  10076. if ${ac_cv_prog_CC+:} false; then :
  10077. $as_echo_n "(cached) " >&6
  10078. else
  10079. if test -n "$CC"; then
  10080. ac_cv_prog_CC="$CC" # Let the user override the test.
  10081. else
  10082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10083. for as_dir in $PATH
  10084. do
  10085. IFS=$as_save_IFS
  10086. test -z "$as_dir" && as_dir=.
  10087. for ac_exec_ext in '' $ac_executable_extensions; do
  10088. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10089. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10091. break 2
  10092. fi
  10093. done
  10094. done
  10095. IFS=$as_save_IFS
  10096. fi
  10097. fi
  10098. CC=$ac_cv_prog_CC
  10099. if test -n "$CC"; then
  10100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10101. $as_echo "$CC" >&6; }
  10102. else
  10103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10104. $as_echo "no" >&6; }
  10105. fi
  10106. fi
  10107. if test -z "$ac_cv_prog_CC"; then
  10108. ac_ct_CC=$CC
  10109. # Extract the first word of "gcc", so it can be a program name with args.
  10110. set dummy gcc; ac_word=$2
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10112. $as_echo_n "checking for $ac_word... " >&6; }
  10113. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10114. $as_echo_n "(cached) " >&6
  10115. else
  10116. if test -n "$ac_ct_CC"; then
  10117. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10118. else
  10119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10120. for as_dir in $PATH
  10121. do
  10122. IFS=$as_save_IFS
  10123. test -z "$as_dir" && as_dir=.
  10124. for ac_exec_ext in '' $ac_executable_extensions; do
  10125. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10126. ac_cv_prog_ac_ct_CC="gcc"
  10127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10128. break 2
  10129. fi
  10130. done
  10131. done
  10132. IFS=$as_save_IFS
  10133. fi
  10134. fi
  10135. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10136. if test -n "$ac_ct_CC"; then
  10137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10138. $as_echo "$ac_ct_CC" >&6; }
  10139. else
  10140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10141. $as_echo "no" >&6; }
  10142. fi
  10143. if test "x$ac_ct_CC" = x; then
  10144. CC=""
  10145. else
  10146. case $cross_compiling:$ac_tool_warned in
  10147. yes:)
  10148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10149. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10150. ac_tool_warned=yes ;;
  10151. esac
  10152. CC=$ac_ct_CC
  10153. fi
  10154. else
  10155. CC="$ac_cv_prog_CC"
  10156. fi
  10157. if test -z "$CC"; then
  10158. if test -n "$ac_tool_prefix"; then
  10159. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10160. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10162. $as_echo_n "checking for $ac_word... " >&6; }
  10163. if ${ac_cv_prog_CC+:} false; then :
  10164. $as_echo_n "(cached) " >&6
  10165. else
  10166. if test -n "$CC"; then
  10167. ac_cv_prog_CC="$CC" # Let the user override the test.
  10168. else
  10169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10170. for as_dir in $PATH
  10171. do
  10172. IFS=$as_save_IFS
  10173. test -z "$as_dir" && as_dir=.
  10174. for ac_exec_ext in '' $ac_executable_extensions; do
  10175. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10176. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10178. break 2
  10179. fi
  10180. done
  10181. done
  10182. IFS=$as_save_IFS
  10183. fi
  10184. fi
  10185. CC=$ac_cv_prog_CC
  10186. if test -n "$CC"; then
  10187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10188. $as_echo "$CC" >&6; }
  10189. else
  10190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10191. $as_echo "no" >&6; }
  10192. fi
  10193. fi
  10194. fi
  10195. if test -z "$CC"; then
  10196. # Extract the first word of "cc", so it can be a program name with args.
  10197. set dummy cc; ac_word=$2
  10198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10199. $as_echo_n "checking for $ac_word... " >&6; }
  10200. if ${ac_cv_prog_CC+:} false; then :
  10201. $as_echo_n "(cached) " >&6
  10202. else
  10203. if test -n "$CC"; then
  10204. ac_cv_prog_CC="$CC" # Let the user override the test.
  10205. else
  10206. ac_prog_rejected=no
  10207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10208. for as_dir in $PATH
  10209. do
  10210. IFS=$as_save_IFS
  10211. test -z "$as_dir" && as_dir=.
  10212. for ac_exec_ext in '' $ac_executable_extensions; do
  10213. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10214. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10215. ac_prog_rejected=yes
  10216. continue
  10217. fi
  10218. ac_cv_prog_CC="cc"
  10219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10220. break 2
  10221. fi
  10222. done
  10223. done
  10224. IFS=$as_save_IFS
  10225. if test $ac_prog_rejected = yes; then
  10226. # We found a bogon in the path, so make sure we never use it.
  10227. set dummy $ac_cv_prog_CC
  10228. shift
  10229. if test $# != 0; then
  10230. # We chose a different compiler from the bogus one.
  10231. # However, it has the same basename, so the bogon will be chosen
  10232. # first if we set CC to just the basename; use the full file name.
  10233. shift
  10234. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10235. fi
  10236. fi
  10237. fi
  10238. fi
  10239. CC=$ac_cv_prog_CC
  10240. if test -n "$CC"; then
  10241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10242. $as_echo "$CC" >&6; }
  10243. else
  10244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10245. $as_echo "no" >&6; }
  10246. fi
  10247. fi
  10248. if test -z "$CC"; then
  10249. if test -n "$ac_tool_prefix"; then
  10250. for ac_prog in cl.exe
  10251. do
  10252. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10253. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10255. $as_echo_n "checking for $ac_word... " >&6; }
  10256. if ${ac_cv_prog_CC+:} false; then :
  10257. $as_echo_n "(cached) " >&6
  10258. else
  10259. if test -n "$CC"; then
  10260. ac_cv_prog_CC="$CC" # Let the user override the test.
  10261. else
  10262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10263. for as_dir in $PATH
  10264. do
  10265. IFS=$as_save_IFS
  10266. test -z "$as_dir" && as_dir=.
  10267. for ac_exec_ext in '' $ac_executable_extensions; do
  10268. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10269. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10270. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10271. break 2
  10272. fi
  10273. done
  10274. done
  10275. IFS=$as_save_IFS
  10276. fi
  10277. fi
  10278. CC=$ac_cv_prog_CC
  10279. if test -n "$CC"; then
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10281. $as_echo "$CC" >&6; }
  10282. else
  10283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10284. $as_echo "no" >&6; }
  10285. fi
  10286. test -n "$CC" && break
  10287. done
  10288. fi
  10289. if test -z "$CC"; then
  10290. ac_ct_CC=$CC
  10291. for ac_prog in cl.exe
  10292. do
  10293. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10294. set dummy $ac_prog; ac_word=$2
  10295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10296. $as_echo_n "checking for $ac_word... " >&6; }
  10297. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10298. $as_echo_n "(cached) " >&6
  10299. else
  10300. if test -n "$ac_ct_CC"; then
  10301. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10302. else
  10303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10304. for as_dir in $PATH
  10305. do
  10306. IFS=$as_save_IFS
  10307. test -z "$as_dir" && as_dir=.
  10308. for ac_exec_ext in '' $ac_executable_extensions; do
  10309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10310. ac_cv_prog_ac_ct_CC="$ac_prog"
  10311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10312. break 2
  10313. fi
  10314. done
  10315. done
  10316. IFS=$as_save_IFS
  10317. fi
  10318. fi
  10319. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10320. if test -n "$ac_ct_CC"; then
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10322. $as_echo "$ac_ct_CC" >&6; }
  10323. else
  10324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10325. $as_echo "no" >&6; }
  10326. fi
  10327. test -n "$ac_ct_CC" && break
  10328. done
  10329. if test "x$ac_ct_CC" = x; then
  10330. CC=""
  10331. else
  10332. case $cross_compiling:$ac_tool_warned in
  10333. yes:)
  10334. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10335. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10336. ac_tool_warned=yes ;;
  10337. esac
  10338. CC=$ac_ct_CC
  10339. fi
  10340. fi
  10341. fi
  10342. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10343. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10344. as_fn_error $? "no acceptable C compiler found in \$PATH
  10345. See \`config.log' for more details" "$LINENO" 5; }
  10346. # Provide some information about the compiler.
  10347. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10348. set X $ac_compile
  10349. ac_compiler=$2
  10350. for ac_option in --version -v -V -qversion; do
  10351. { { ac_try="$ac_compiler $ac_option >&5"
  10352. case "(($ac_try" in
  10353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10354. *) ac_try_echo=$ac_try;;
  10355. esac
  10356. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10357. $as_echo "$ac_try_echo"; } >&5
  10358. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10359. ac_status=$?
  10360. if test -s conftest.err; then
  10361. sed '10a\
  10362. ... rest of stderr output deleted ...
  10363. 10q' conftest.err >conftest.er1
  10364. cat conftest.er1 >&5
  10365. fi
  10366. rm -f conftest.er1 conftest.err
  10367. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10368. test $ac_status = 0; }
  10369. done
  10370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10371. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10372. if ${ac_cv_c_compiler_gnu+:} false; then :
  10373. $as_echo_n "(cached) " >&6
  10374. else
  10375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10376. /* end confdefs.h. */
  10377. int
  10378. main ()
  10379. {
  10380. #ifndef __GNUC__
  10381. choke me
  10382. #endif
  10383. ;
  10384. return 0;
  10385. }
  10386. _ACEOF
  10387. if ac_fn_c_try_compile "$LINENO"; then :
  10388. ac_compiler_gnu=yes
  10389. else
  10390. ac_compiler_gnu=no
  10391. fi
  10392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10393. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10394. fi
  10395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10396. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10397. if test $ac_compiler_gnu = yes; then
  10398. GCC=yes
  10399. else
  10400. GCC=
  10401. fi
  10402. ac_test_CFLAGS=${CFLAGS+set}
  10403. ac_save_CFLAGS=$CFLAGS
  10404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10405. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10406. if ${ac_cv_prog_cc_g+:} false; then :
  10407. $as_echo_n "(cached) " >&6
  10408. else
  10409. ac_save_c_werror_flag=$ac_c_werror_flag
  10410. ac_c_werror_flag=yes
  10411. ac_cv_prog_cc_g=no
  10412. CFLAGS="-g"
  10413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10414. /* end confdefs.h. */
  10415. int
  10416. main ()
  10417. {
  10418. ;
  10419. return 0;
  10420. }
  10421. _ACEOF
  10422. if ac_fn_c_try_compile "$LINENO"; then :
  10423. ac_cv_prog_cc_g=yes
  10424. else
  10425. CFLAGS=""
  10426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10427. /* end confdefs.h. */
  10428. int
  10429. main ()
  10430. {
  10431. ;
  10432. return 0;
  10433. }
  10434. _ACEOF
  10435. if ac_fn_c_try_compile "$LINENO"; then :
  10436. else
  10437. ac_c_werror_flag=$ac_save_c_werror_flag
  10438. CFLAGS="-g"
  10439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10440. /* end confdefs.h. */
  10441. int
  10442. main ()
  10443. {
  10444. ;
  10445. return 0;
  10446. }
  10447. _ACEOF
  10448. if ac_fn_c_try_compile "$LINENO"; then :
  10449. ac_cv_prog_cc_g=yes
  10450. fi
  10451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10452. fi
  10453. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10454. fi
  10455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10456. ac_c_werror_flag=$ac_save_c_werror_flag
  10457. fi
  10458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10459. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10460. if test "$ac_test_CFLAGS" = set; then
  10461. CFLAGS=$ac_save_CFLAGS
  10462. elif test $ac_cv_prog_cc_g = yes; then
  10463. if test "$GCC" = yes; then
  10464. CFLAGS="-g -O2"
  10465. else
  10466. CFLAGS="-g"
  10467. fi
  10468. else
  10469. if test "$GCC" = yes; then
  10470. CFLAGS="-O2"
  10471. else
  10472. CFLAGS=
  10473. fi
  10474. fi
  10475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10476. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10477. if ${ac_cv_prog_cc_c89+:} false; then :
  10478. $as_echo_n "(cached) " >&6
  10479. else
  10480. ac_cv_prog_cc_c89=no
  10481. ac_save_CC=$CC
  10482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10483. /* end confdefs.h. */
  10484. #include <stdarg.h>
  10485. #include <stdio.h>
  10486. struct stat;
  10487. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10488. struct buf { int x; };
  10489. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10490. static char *e (p, i)
  10491. char **p;
  10492. int i;
  10493. {
  10494. return p[i];
  10495. }
  10496. static char *f (char * (*g) (char **, int), char **p, ...)
  10497. {
  10498. char *s;
  10499. va_list v;
  10500. va_start (v,p);
  10501. s = g (p, va_arg (v,int));
  10502. va_end (v);
  10503. return s;
  10504. }
  10505. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10506. function prototypes and stuff, but not '\xHH' hex character constants.
  10507. These don't provoke an error unfortunately, instead are silently treated
  10508. as 'x'. The following induces an error, until -std is added to get
  10509. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10510. array size at least. It's necessary to write '\x00'==0 to get something
  10511. that's true only with -std. */
  10512. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10513. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10514. inside strings and character constants. */
  10515. #define FOO(x) 'x'
  10516. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10517. int test (int i, double x);
  10518. struct s1 {int (*f) (int a);};
  10519. struct s2 {int (*f) (double a);};
  10520. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10521. int argc;
  10522. char **argv;
  10523. int
  10524. main ()
  10525. {
  10526. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10527. ;
  10528. return 0;
  10529. }
  10530. _ACEOF
  10531. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10532. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10533. do
  10534. CC="$ac_save_CC $ac_arg"
  10535. if ac_fn_c_try_compile "$LINENO"; then :
  10536. ac_cv_prog_cc_c89=$ac_arg
  10537. fi
  10538. rm -f core conftest.err conftest.$ac_objext
  10539. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10540. done
  10541. rm -f conftest.$ac_ext
  10542. CC=$ac_save_CC
  10543. fi
  10544. # AC_CACHE_VAL
  10545. case "x$ac_cv_prog_cc_c89" in
  10546. x)
  10547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10548. $as_echo "none needed" >&6; } ;;
  10549. xno)
  10550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10551. $as_echo "unsupported" >&6; } ;;
  10552. *)
  10553. CC="$CC $ac_cv_prog_cc_c89"
  10554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10555. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10556. esac
  10557. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10558. fi
  10559. ac_ext=c
  10560. ac_cpp='$CPP $CPPFLAGS'
  10561. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10562. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10563. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10564. ac_ext=cpp
  10565. ac_cpp='$CXXCPP $CPPFLAGS'
  10566. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10567. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10568. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10569. if test -z "$CXX"; then
  10570. if test -n "$CCC"; then
  10571. CXX=$CCC
  10572. else
  10573. if test -n "$ac_tool_prefix"; then
  10574. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10575. do
  10576. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10577. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10579. $as_echo_n "checking for $ac_word... " >&6; }
  10580. if ${ac_cv_prog_CXX+:} false; then :
  10581. $as_echo_n "(cached) " >&6
  10582. else
  10583. if test -n "$CXX"; then
  10584. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10585. else
  10586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10587. for as_dir in $PATH
  10588. do
  10589. IFS=$as_save_IFS
  10590. test -z "$as_dir" && as_dir=.
  10591. for ac_exec_ext in '' $ac_executable_extensions; do
  10592. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10593. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10595. break 2
  10596. fi
  10597. done
  10598. done
  10599. IFS=$as_save_IFS
  10600. fi
  10601. fi
  10602. CXX=$ac_cv_prog_CXX
  10603. if test -n "$CXX"; then
  10604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10605. $as_echo "$CXX" >&6; }
  10606. else
  10607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10608. $as_echo "no" >&6; }
  10609. fi
  10610. test -n "$CXX" && break
  10611. done
  10612. fi
  10613. if test -z "$CXX"; then
  10614. ac_ct_CXX=$CXX
  10615. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10616. do
  10617. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10618. set dummy $ac_prog; ac_word=$2
  10619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10620. $as_echo_n "checking for $ac_word... " >&6; }
  10621. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10622. $as_echo_n "(cached) " >&6
  10623. else
  10624. if test -n "$ac_ct_CXX"; then
  10625. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10626. else
  10627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10628. for as_dir in $PATH
  10629. do
  10630. IFS=$as_save_IFS
  10631. test -z "$as_dir" && as_dir=.
  10632. for ac_exec_ext in '' $ac_executable_extensions; do
  10633. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10634. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10636. break 2
  10637. fi
  10638. done
  10639. done
  10640. IFS=$as_save_IFS
  10641. fi
  10642. fi
  10643. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10644. if test -n "$ac_ct_CXX"; then
  10645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10646. $as_echo "$ac_ct_CXX" >&6; }
  10647. else
  10648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10649. $as_echo "no" >&6; }
  10650. fi
  10651. test -n "$ac_ct_CXX" && break
  10652. done
  10653. if test "x$ac_ct_CXX" = x; then
  10654. CXX="g++"
  10655. else
  10656. case $cross_compiling:$ac_tool_warned in
  10657. yes:)
  10658. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10659. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10660. ac_tool_warned=yes ;;
  10661. esac
  10662. CXX=$ac_ct_CXX
  10663. fi
  10664. fi
  10665. fi
  10666. fi
  10667. # Provide some information about the compiler.
  10668. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10669. set X $ac_compile
  10670. ac_compiler=$2
  10671. for ac_option in --version -v -V -qversion; do
  10672. { { ac_try="$ac_compiler $ac_option >&5"
  10673. case "(($ac_try" in
  10674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10675. *) ac_try_echo=$ac_try;;
  10676. esac
  10677. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10678. $as_echo "$ac_try_echo"; } >&5
  10679. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10680. ac_status=$?
  10681. if test -s conftest.err; then
  10682. sed '10a\
  10683. ... rest of stderr output deleted ...
  10684. 10q' conftest.err >conftest.er1
  10685. cat conftest.er1 >&5
  10686. fi
  10687. rm -f conftest.er1 conftest.err
  10688. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10689. test $ac_status = 0; }
  10690. done
  10691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10692. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10693. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10694. $as_echo_n "(cached) " >&6
  10695. else
  10696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10697. /* end confdefs.h. */
  10698. int
  10699. main ()
  10700. {
  10701. #ifndef __GNUC__
  10702. choke me
  10703. #endif
  10704. ;
  10705. return 0;
  10706. }
  10707. _ACEOF
  10708. if ac_fn_cxx_try_compile "$LINENO"; then :
  10709. ac_compiler_gnu=yes
  10710. else
  10711. ac_compiler_gnu=no
  10712. fi
  10713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10714. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10715. fi
  10716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10717. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10718. if test $ac_compiler_gnu = yes; then
  10719. GXX=yes
  10720. else
  10721. GXX=
  10722. fi
  10723. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10724. ac_save_CXXFLAGS=$CXXFLAGS
  10725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10726. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10727. if ${ac_cv_prog_cxx_g+:} false; then :
  10728. $as_echo_n "(cached) " >&6
  10729. else
  10730. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10731. ac_cxx_werror_flag=yes
  10732. ac_cv_prog_cxx_g=no
  10733. CXXFLAGS="-g"
  10734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10735. /* end confdefs.h. */
  10736. int
  10737. main ()
  10738. {
  10739. ;
  10740. return 0;
  10741. }
  10742. _ACEOF
  10743. if ac_fn_cxx_try_compile "$LINENO"; then :
  10744. ac_cv_prog_cxx_g=yes
  10745. else
  10746. CXXFLAGS=""
  10747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10748. /* end confdefs.h. */
  10749. int
  10750. main ()
  10751. {
  10752. ;
  10753. return 0;
  10754. }
  10755. _ACEOF
  10756. if ac_fn_cxx_try_compile "$LINENO"; then :
  10757. else
  10758. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10759. CXXFLAGS="-g"
  10760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10761. /* end confdefs.h. */
  10762. int
  10763. main ()
  10764. {
  10765. ;
  10766. return 0;
  10767. }
  10768. _ACEOF
  10769. if ac_fn_cxx_try_compile "$LINENO"; then :
  10770. ac_cv_prog_cxx_g=yes
  10771. fi
  10772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10773. fi
  10774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10775. fi
  10776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10777. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10778. fi
  10779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10780. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10781. if test "$ac_test_CXXFLAGS" = set; then
  10782. CXXFLAGS=$ac_save_CXXFLAGS
  10783. elif test $ac_cv_prog_cxx_g = yes; then
  10784. if test "$GXX" = yes; then
  10785. CXXFLAGS="-g -O2"
  10786. else
  10787. CXXFLAGS="-g"
  10788. fi
  10789. else
  10790. if test "$GXX" = yes; then
  10791. CXXFLAGS="-O2"
  10792. else
  10793. CXXFLAGS=
  10794. fi
  10795. fi
  10796. ac_ext=c
  10797. ac_cpp='$CPP $CPPFLAGS'
  10798. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10799. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10800. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10801. func_stripname_cnf ()
  10802. {
  10803. case ${2} in
  10804. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10805. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10806. esac
  10807. } # func_stripname_cnf
  10808. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10809. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10810. (test "X$CXX" != "Xg++"))) ; then
  10811. ac_ext=cpp
  10812. ac_cpp='$CXXCPP $CPPFLAGS'
  10813. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10814. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10815. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10817. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10818. if test -z "$CXXCPP"; then
  10819. if ${ac_cv_prog_CXXCPP+:} false; then :
  10820. $as_echo_n "(cached) " >&6
  10821. else
  10822. # Double quotes because CXXCPP needs to be expanded
  10823. for CXXCPP in "$CXX -E" "/lib/cpp"
  10824. do
  10825. ac_preproc_ok=false
  10826. for ac_cxx_preproc_warn_flag in '' yes
  10827. do
  10828. # Use a header file that comes with gcc, so configuring glibc
  10829. # with a fresh cross-compiler works.
  10830. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10831. # <limits.h> exists even on freestanding compilers.
  10832. # On the NeXT, cc -E runs the code through the compiler's parser,
  10833. # not just through cpp. "Syntax error" is here to catch this case.
  10834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10835. /* end confdefs.h. */
  10836. #ifdef __STDC__
  10837. # include <limits.h>
  10838. #else
  10839. # include <assert.h>
  10840. #endif
  10841. Syntax error
  10842. _ACEOF
  10843. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10844. else
  10845. # Broken: fails on valid input.
  10846. continue
  10847. fi
  10848. rm -f conftest.err conftest.i conftest.$ac_ext
  10849. # OK, works on sane cases. Now check whether nonexistent headers
  10850. # can be detected and how.
  10851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10852. /* end confdefs.h. */
  10853. #include <ac_nonexistent.h>
  10854. _ACEOF
  10855. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10856. # Broken: success on invalid input.
  10857. continue
  10858. else
  10859. # Passes both tests.
  10860. ac_preproc_ok=:
  10861. break
  10862. fi
  10863. rm -f conftest.err conftest.i conftest.$ac_ext
  10864. done
  10865. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10866. rm -f conftest.i conftest.err conftest.$ac_ext
  10867. if $ac_preproc_ok; then :
  10868. break
  10869. fi
  10870. done
  10871. ac_cv_prog_CXXCPP=$CXXCPP
  10872. fi
  10873. CXXCPP=$ac_cv_prog_CXXCPP
  10874. else
  10875. ac_cv_prog_CXXCPP=$CXXCPP
  10876. fi
  10877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10878. $as_echo "$CXXCPP" >&6; }
  10879. ac_preproc_ok=false
  10880. for ac_cxx_preproc_warn_flag in '' yes
  10881. do
  10882. # Use a header file that comes with gcc, so configuring glibc
  10883. # with a fresh cross-compiler works.
  10884. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10885. # <limits.h> exists even on freestanding compilers.
  10886. # On the NeXT, cc -E runs the code through the compiler's parser,
  10887. # not just through cpp. "Syntax error" is here to catch this case.
  10888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10889. /* end confdefs.h. */
  10890. #ifdef __STDC__
  10891. # include <limits.h>
  10892. #else
  10893. # include <assert.h>
  10894. #endif
  10895. Syntax error
  10896. _ACEOF
  10897. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10898. else
  10899. # Broken: fails on valid input.
  10900. continue
  10901. fi
  10902. rm -f conftest.err conftest.i conftest.$ac_ext
  10903. # OK, works on sane cases. Now check whether nonexistent headers
  10904. # can be detected and how.
  10905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10906. /* end confdefs.h. */
  10907. #include <ac_nonexistent.h>
  10908. _ACEOF
  10909. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10910. # Broken: success on invalid input.
  10911. continue
  10912. else
  10913. # Passes both tests.
  10914. ac_preproc_ok=:
  10915. break
  10916. fi
  10917. rm -f conftest.err conftest.i conftest.$ac_ext
  10918. done
  10919. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10920. rm -f conftest.i conftest.err conftest.$ac_ext
  10921. if $ac_preproc_ok; then :
  10922. else
  10923. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10924. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10925. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10926. See \`config.log' for more details" "$LINENO" 5; }
  10927. fi
  10928. ac_ext=c
  10929. ac_cpp='$CPP $CPPFLAGS'
  10930. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10931. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10932. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10933. else
  10934. _lt_caught_CXX_error=yes
  10935. fi
  10936. ac_ext=cpp
  10937. ac_cpp='$CXXCPP $CPPFLAGS'
  10938. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10939. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10940. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10941. archive_cmds_need_lc_CXX=no
  10942. allow_undefined_flag_CXX=
  10943. always_export_symbols_CXX=no
  10944. archive_expsym_cmds_CXX=
  10945. compiler_needs_object_CXX=no
  10946. export_dynamic_flag_spec_CXX=
  10947. hardcode_direct_CXX=no
  10948. hardcode_direct_absolute_CXX=no
  10949. hardcode_libdir_flag_spec_CXX=
  10950. hardcode_libdir_separator_CXX=
  10951. hardcode_minus_L_CXX=no
  10952. hardcode_shlibpath_var_CXX=unsupported
  10953. hardcode_automatic_CXX=no
  10954. inherit_rpath_CXX=no
  10955. module_cmds_CXX=
  10956. module_expsym_cmds_CXX=
  10957. link_all_deplibs_CXX=unknown
  10958. old_archive_cmds_CXX=$old_archive_cmds
  10959. reload_flag_CXX=$reload_flag
  10960. reload_cmds_CXX=$reload_cmds
  10961. no_undefined_flag_CXX=
  10962. whole_archive_flag_spec_CXX=
  10963. enable_shared_with_static_runtimes_CXX=no
  10964. # Source file extension for C++ test sources.
  10965. ac_ext=cpp
  10966. # Object file extension for compiled C++ test sources.
  10967. objext=o
  10968. objext_CXX=$objext
  10969. # No sense in running all these tests if we already determined that
  10970. # the CXX compiler isn't working. Some variables (like enable_shared)
  10971. # are currently assumed to apply to all compilers on this platform,
  10972. # and will be corrupted by setting them based on a non-working compiler.
  10973. if test "$_lt_caught_CXX_error" != yes; then
  10974. # Code to be used in simple compile tests
  10975. lt_simple_compile_test_code="int some_variable = 0;"
  10976. # Code to be used in simple link tests
  10977. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10978. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10979. # If no C compiler was specified, use CC.
  10980. LTCC=${LTCC-"$CC"}
  10981. # If no C compiler flags were specified, use CFLAGS.
  10982. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10983. # Allow CC to be a program name with arguments.
  10984. compiler=$CC
  10985. # save warnings/boilerplate of simple test code
  10986. ac_outfile=conftest.$ac_objext
  10987. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10988. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10989. _lt_compiler_boilerplate=`cat conftest.err`
  10990. $RM conftest*
  10991. ac_outfile=conftest.$ac_objext
  10992. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10993. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10994. _lt_linker_boilerplate=`cat conftest.err`
  10995. $RM -r conftest*
  10996. # Allow CC to be a program name with arguments.
  10997. lt_save_CC=$CC
  10998. lt_save_CFLAGS=$CFLAGS
  10999. lt_save_LD=$LD
  11000. lt_save_GCC=$GCC
  11001. GCC=$GXX
  11002. lt_save_with_gnu_ld=$with_gnu_ld
  11003. lt_save_path_LD=$lt_cv_path_LD
  11004. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11005. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11006. else
  11007. $as_unset lt_cv_prog_gnu_ld
  11008. fi
  11009. if test -n "${lt_cv_path_LDCXX+set}"; then
  11010. lt_cv_path_LD=$lt_cv_path_LDCXX
  11011. else
  11012. $as_unset lt_cv_path_LD
  11013. fi
  11014. test -z "${LDCXX+set}" || LD=$LDCXX
  11015. CC=${CXX-"c++"}
  11016. CFLAGS=$CXXFLAGS
  11017. compiler=$CC
  11018. compiler_CXX=$CC
  11019. for cc_temp in $compiler""; do
  11020. case $cc_temp in
  11021. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11022. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11023. \-*) ;;
  11024. *) break;;
  11025. esac
  11026. done
  11027. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11028. if test -n "$compiler"; then
  11029. # We don't want -fno-exception when compiling C++ code, so set the
  11030. # no_builtin_flag separately
  11031. if test "$GXX" = yes; then
  11032. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11033. else
  11034. lt_prog_compiler_no_builtin_flag_CXX=
  11035. fi
  11036. if test "$GXX" = yes; then
  11037. # Set up default GNU C++ configuration
  11038. # Check whether --with-gnu-ld was given.
  11039. if test "${with_gnu_ld+set}" = set; then :
  11040. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11041. else
  11042. with_gnu_ld=no
  11043. fi
  11044. ac_prog=ld
  11045. if test "$GCC" = yes; then
  11046. # Check if gcc -print-prog-name=ld gives a path.
  11047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11048. $as_echo_n "checking for ld used by $CC... " >&6; }
  11049. case $host in
  11050. *-*-mingw*)
  11051. # gcc leaves a trailing carriage return which upsets mingw
  11052. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11053. *)
  11054. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11055. esac
  11056. case $ac_prog in
  11057. # Accept absolute paths.
  11058. [\\/]* | ?:[\\/]*)
  11059. re_direlt='/[^/][^/]*/\.\./'
  11060. # Canonicalize the pathname of ld
  11061. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11062. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11063. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11064. done
  11065. test -z "$LD" && LD="$ac_prog"
  11066. ;;
  11067. "")
  11068. # If it fails, then pretend we aren't using GCC.
  11069. ac_prog=ld
  11070. ;;
  11071. *)
  11072. # If it is relative, then search for the first ld in PATH.
  11073. with_gnu_ld=unknown
  11074. ;;
  11075. esac
  11076. elif test "$with_gnu_ld" = yes; then
  11077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11078. $as_echo_n "checking for GNU ld... " >&6; }
  11079. else
  11080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11081. $as_echo_n "checking for non-GNU ld... " >&6; }
  11082. fi
  11083. if ${lt_cv_path_LD+:} false; then :
  11084. $as_echo_n "(cached) " >&6
  11085. else
  11086. if test -z "$LD"; then
  11087. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11088. for ac_dir in $PATH; do
  11089. IFS="$lt_save_ifs"
  11090. test -z "$ac_dir" && ac_dir=.
  11091. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11092. lt_cv_path_LD="$ac_dir/$ac_prog"
  11093. # Check to see if the program is GNU ld. I'd rather use --version,
  11094. # but apparently some variants of GNU ld only accept -v.
  11095. # Break only if it was the GNU/non-GNU ld that we prefer.
  11096. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11097. *GNU* | *'with BFD'*)
  11098. test "$with_gnu_ld" != no && break
  11099. ;;
  11100. *)
  11101. test "$with_gnu_ld" != yes && break
  11102. ;;
  11103. esac
  11104. fi
  11105. done
  11106. IFS="$lt_save_ifs"
  11107. else
  11108. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11109. fi
  11110. fi
  11111. LD="$lt_cv_path_LD"
  11112. if test -n "$LD"; then
  11113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11114. $as_echo "$LD" >&6; }
  11115. else
  11116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11117. $as_echo "no" >&6; }
  11118. fi
  11119. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11121. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11122. if ${lt_cv_prog_gnu_ld+:} false; then :
  11123. $as_echo_n "(cached) " >&6
  11124. else
  11125. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11126. case `$LD -v 2>&1 </dev/null` in
  11127. *GNU* | *'with BFD'*)
  11128. lt_cv_prog_gnu_ld=yes
  11129. ;;
  11130. *)
  11131. lt_cv_prog_gnu_ld=no
  11132. ;;
  11133. esac
  11134. fi
  11135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11136. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11137. with_gnu_ld=$lt_cv_prog_gnu_ld
  11138. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11139. # archiving commands below assume that GNU ld is being used.
  11140. if test "$with_gnu_ld" = yes; then
  11141. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11142. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11143. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11144. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11145. # If archive_cmds runs LD, not CC, wlarc should be empty
  11146. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11147. # investigate it a little bit more. (MM)
  11148. wlarc='${wl}'
  11149. # ancient GNU ld didn't support --whole-archive et. al.
  11150. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11151. $GREP 'no-whole-archive' > /dev/null; then
  11152. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11153. else
  11154. whole_archive_flag_spec_CXX=
  11155. fi
  11156. else
  11157. with_gnu_ld=no
  11158. wlarc=
  11159. # A generic and very simple default shared library creation
  11160. # command for GNU C++ for the case where it uses the native
  11161. # linker, instead of GNU ld. If possible, this setting should
  11162. # overridden to take advantage of the native linker features on
  11163. # the platform it is being used on.
  11164. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11165. fi
  11166. # Commands to make compiler produce verbose output that lists
  11167. # what "hidden" libraries, object files and flags are used when
  11168. # linking a shared library.
  11169. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11170. else
  11171. GXX=no
  11172. with_gnu_ld=no
  11173. wlarc=
  11174. fi
  11175. # PORTME: fill in a description of your system's C++ link characteristics
  11176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11177. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11178. ld_shlibs_CXX=yes
  11179. case $host_os in
  11180. aix3*)
  11181. # FIXME: insert proper C++ library support
  11182. ld_shlibs_CXX=no
  11183. ;;
  11184. aix[4-9]*)
  11185. if test "$host_cpu" = ia64; then
  11186. # On IA64, the linker does run time linking by default, so we don't
  11187. # have to do anything special.
  11188. aix_use_runtimelinking=no
  11189. exp_sym_flag='-Bexport'
  11190. no_entry_flag=""
  11191. else
  11192. aix_use_runtimelinking=no
  11193. # Test if we are trying to use run time linking or normal
  11194. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11195. # need to do runtime linking.
  11196. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11197. for ld_flag in $LDFLAGS; do
  11198. case $ld_flag in
  11199. *-brtl*)
  11200. aix_use_runtimelinking=yes
  11201. break
  11202. ;;
  11203. esac
  11204. done
  11205. ;;
  11206. esac
  11207. exp_sym_flag='-bexport'
  11208. no_entry_flag='-bnoentry'
  11209. fi
  11210. # When large executables or shared objects are built, AIX ld can
  11211. # have problems creating the table of contents. If linking a library
  11212. # or program results in "error TOC overflow" add -mminimal-toc to
  11213. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11214. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11215. archive_cmds_CXX=''
  11216. hardcode_direct_CXX=yes
  11217. hardcode_direct_absolute_CXX=yes
  11218. hardcode_libdir_separator_CXX=':'
  11219. link_all_deplibs_CXX=yes
  11220. file_list_spec_CXX='${wl}-f,'
  11221. if test "$GXX" = yes; then
  11222. case $host_os in aix4.[012]|aix4.[012].*)
  11223. # We only want to do this on AIX 4.2 and lower, the check
  11224. # below for broken collect2 doesn't work under 4.3+
  11225. collect2name=`${CC} -print-prog-name=collect2`
  11226. if test -f "$collect2name" &&
  11227. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11228. then
  11229. # We have reworked collect2
  11230. :
  11231. else
  11232. # We have old collect2
  11233. hardcode_direct_CXX=unsupported
  11234. # It fails to find uninstalled libraries when the uninstalled
  11235. # path is not listed in the libpath. Setting hardcode_minus_L
  11236. # to unsupported forces relinking
  11237. hardcode_minus_L_CXX=yes
  11238. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11239. hardcode_libdir_separator_CXX=
  11240. fi
  11241. esac
  11242. shared_flag='-shared'
  11243. if test "$aix_use_runtimelinking" = yes; then
  11244. shared_flag="$shared_flag "'${wl}-G'
  11245. fi
  11246. else
  11247. # not using gcc
  11248. if test "$host_cpu" = ia64; then
  11249. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11250. # chokes on -Wl,-G. The following line is correct:
  11251. shared_flag='-G'
  11252. else
  11253. if test "$aix_use_runtimelinking" = yes; then
  11254. shared_flag='${wl}-G'
  11255. else
  11256. shared_flag='${wl}-bM:SRE'
  11257. fi
  11258. fi
  11259. fi
  11260. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11261. # It seems that -bexpall does not export symbols beginning with
  11262. # underscore (_), so it is better to generate a list of symbols to
  11263. # export.
  11264. always_export_symbols_CXX=yes
  11265. if test "$aix_use_runtimelinking" = yes; then
  11266. # Warning - without using the other runtime loading flags (-brtl),
  11267. # -berok will link without error, but may produce a broken library.
  11268. allow_undefined_flag_CXX='-berok'
  11269. # Determine the default libpath from the value encoded in an empty
  11270. # executable.
  11271. if test "${lt_cv_aix_libpath+set}" = set; then
  11272. aix_libpath=$lt_cv_aix_libpath
  11273. else
  11274. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11275. $as_echo_n "(cached) " >&6
  11276. else
  11277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11278. /* end confdefs.h. */
  11279. int
  11280. main ()
  11281. {
  11282. ;
  11283. return 0;
  11284. }
  11285. _ACEOF
  11286. if ac_fn_cxx_try_link "$LINENO"; then :
  11287. lt_aix_libpath_sed='
  11288. /Import File Strings/,/^$/ {
  11289. /^0/ {
  11290. s/^0 *\([^ ]*\) *$/\1/
  11291. p
  11292. }
  11293. }'
  11294. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11295. # Check for a 64-bit object if we didn't find anything.
  11296. if test -z "$lt_cv_aix_libpath__CXX"; then
  11297. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11298. fi
  11299. fi
  11300. rm -f core conftest.err conftest.$ac_objext \
  11301. conftest$ac_exeext conftest.$ac_ext
  11302. if test -z "$lt_cv_aix_libpath__CXX"; then
  11303. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11304. fi
  11305. fi
  11306. aix_libpath=$lt_cv_aix_libpath__CXX
  11307. fi
  11308. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11309. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11310. else
  11311. if test "$host_cpu" = ia64; then
  11312. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11313. allow_undefined_flag_CXX="-z nodefs"
  11314. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  11315. else
  11316. # Determine the default libpath from the value encoded in an
  11317. # empty executable.
  11318. if test "${lt_cv_aix_libpath+set}" = set; then
  11319. aix_libpath=$lt_cv_aix_libpath
  11320. else
  11321. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11322. $as_echo_n "(cached) " >&6
  11323. else
  11324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11325. /* end confdefs.h. */
  11326. int
  11327. main ()
  11328. {
  11329. ;
  11330. return 0;
  11331. }
  11332. _ACEOF
  11333. if ac_fn_cxx_try_link "$LINENO"; then :
  11334. lt_aix_libpath_sed='
  11335. /Import File Strings/,/^$/ {
  11336. /^0/ {
  11337. s/^0 *\([^ ]*\) *$/\1/
  11338. p
  11339. }
  11340. }'
  11341. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11342. # Check for a 64-bit object if we didn't find anything.
  11343. if test -z "$lt_cv_aix_libpath__CXX"; then
  11344. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11345. fi
  11346. fi
  11347. rm -f core conftest.err conftest.$ac_objext \
  11348. conftest$ac_exeext conftest.$ac_ext
  11349. if test -z "$lt_cv_aix_libpath__CXX"; then
  11350. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11351. fi
  11352. fi
  11353. aix_libpath=$lt_cv_aix_libpath__CXX
  11354. fi
  11355. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11356. # Warning - without using the other run time loading flags,
  11357. # -berok will link without error, but may produce a broken library.
  11358. no_undefined_flag_CXX=' ${wl}-bernotok'
  11359. allow_undefined_flag_CXX=' ${wl}-berok'
  11360. if test "$with_gnu_ld" = yes; then
  11361. # We only use this code for GNU lds that support --whole-archive.
  11362. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11363. else
  11364. # Exported symbols can be pulled into shared objects from archives
  11365. whole_archive_flag_spec_CXX='$convenience'
  11366. fi
  11367. archive_cmds_need_lc_CXX=yes
  11368. # This is similar to how AIX traditionally builds its shared
  11369. # libraries.
  11370. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11371. fi
  11372. fi
  11373. ;;
  11374. beos*)
  11375. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11376. allow_undefined_flag_CXX=unsupported
  11377. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11378. # support --undefined. This deserves some investigation. FIXME
  11379. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11380. else
  11381. ld_shlibs_CXX=no
  11382. fi
  11383. ;;
  11384. chorus*)
  11385. case $cc_basename in
  11386. *)
  11387. # FIXME: insert proper C++ library support
  11388. ld_shlibs_CXX=no
  11389. ;;
  11390. esac
  11391. ;;
  11392. cygwin* | mingw* | pw32* | cegcc*)
  11393. case $GXX,$cc_basename in
  11394. ,cl* | no,cl*)
  11395. # Native MSVC
  11396. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11397. # no search path for DLLs.
  11398. hardcode_libdir_flag_spec_CXX=' '
  11399. allow_undefined_flag_CXX=unsupported
  11400. always_export_symbols_CXX=yes
  11401. file_list_spec_CXX='@'
  11402. # Tell ltmain to make .lib files, not .a files.
  11403. libext=lib
  11404. # Tell ltmain to make .dll files, not .so files.
  11405. shrext_cmds=".dll"
  11406. # FIXME: Setting linknames here is a bad hack.
  11407. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11408. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11409. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11410. else
  11411. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11412. fi~
  11413. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11414. linknames='
  11415. # The linker will not automatically build a static lib if we build a DLL.
  11416. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11417. enable_shared_with_static_runtimes_CXX=yes
  11418. # Don't use ranlib
  11419. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11420. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11421. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11422. case $lt_outputfile in
  11423. *.exe|*.EXE) ;;
  11424. *)
  11425. lt_outputfile="$lt_outputfile.exe"
  11426. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11427. ;;
  11428. esac~
  11429. func_to_tool_file "$lt_outputfile"~
  11430. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11431. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11432. $RM "$lt_outputfile.manifest";
  11433. fi'
  11434. ;;
  11435. *)
  11436. # g++
  11437. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11438. # as there is no search path for DLLs.
  11439. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11440. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11441. allow_undefined_flag_CXX=unsupported
  11442. always_export_symbols_CXX=no
  11443. enable_shared_with_static_runtimes_CXX=yes
  11444. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11445. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11446. # If the export-symbols file already is a .def file (1st line
  11447. # is EXPORTS), use it as is; otherwise, prepend...
  11448. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11449. cp $export_symbols $output_objdir/$soname.def;
  11450. else
  11451. echo EXPORTS > $output_objdir/$soname.def;
  11452. cat $export_symbols >> $output_objdir/$soname.def;
  11453. fi~
  11454. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11455. else
  11456. ld_shlibs_CXX=no
  11457. fi
  11458. ;;
  11459. esac
  11460. ;;
  11461. darwin* | rhapsody*)
  11462. archive_cmds_need_lc_CXX=no
  11463. hardcode_direct_CXX=no
  11464. hardcode_automatic_CXX=yes
  11465. hardcode_shlibpath_var_CXX=unsupported
  11466. if test "$lt_cv_ld_force_load" = "yes"; then
  11467. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11468. else
  11469. whole_archive_flag_spec_CXX=''
  11470. fi
  11471. link_all_deplibs_CXX=yes
  11472. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11473. case $cc_basename in
  11474. ifort*) _lt_dar_can_shared=yes ;;
  11475. *) _lt_dar_can_shared=$GCC ;;
  11476. esac
  11477. if test "$_lt_dar_can_shared" = "yes"; then
  11478. output_verbose_link_cmd=func_echo_all
  11479. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11480. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11481. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  11482. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  11483. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11484. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  11485. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  11486. fi
  11487. else
  11488. ld_shlibs_CXX=no
  11489. fi
  11490. ;;
  11491. dgux*)
  11492. case $cc_basename in
  11493. ec++*)
  11494. # FIXME: insert proper C++ library support
  11495. ld_shlibs_CXX=no
  11496. ;;
  11497. ghcx*)
  11498. # Green Hills C++ Compiler
  11499. # FIXME: insert proper C++ library support
  11500. ld_shlibs_CXX=no
  11501. ;;
  11502. *)
  11503. # FIXME: insert proper C++ library support
  11504. ld_shlibs_CXX=no
  11505. ;;
  11506. esac
  11507. ;;
  11508. freebsd2.*)
  11509. # C++ shared libraries reported to be fairly broken before
  11510. # switch to ELF
  11511. ld_shlibs_CXX=no
  11512. ;;
  11513. freebsd-elf*)
  11514. archive_cmds_need_lc_CXX=no
  11515. ;;
  11516. freebsd* | dragonfly*)
  11517. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11518. # conventions
  11519. ld_shlibs_CXX=yes
  11520. ;;
  11521. gnu*)
  11522. ;;
  11523. haiku*)
  11524. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11525. link_all_deplibs_CXX=yes
  11526. ;;
  11527. hpux9*)
  11528. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11529. hardcode_libdir_separator_CXX=:
  11530. export_dynamic_flag_spec_CXX='${wl}-E'
  11531. hardcode_direct_CXX=yes
  11532. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11533. # but as the default
  11534. # location of the library.
  11535. case $cc_basename in
  11536. CC*)
  11537. # FIXME: insert proper C++ library support
  11538. ld_shlibs_CXX=no
  11539. ;;
  11540. aCC*)
  11541. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11542. # Commands to make compiler produce verbose output that lists
  11543. # what "hidden" libraries, object files and flags are used when
  11544. # linking a shared library.
  11545. #
  11546. # There doesn't appear to be a way to prevent this compiler from
  11547. # explicitly linking system object files so we need to strip them
  11548. # from the output so that they don't get included in the library
  11549. # dependencies.
  11550. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11551. ;;
  11552. *)
  11553. if test "$GXX" = yes; then
  11554. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11555. else
  11556. # FIXME: insert proper C++ library support
  11557. ld_shlibs_CXX=no
  11558. fi
  11559. ;;
  11560. esac
  11561. ;;
  11562. hpux10*|hpux11*)
  11563. if test $with_gnu_ld = no; then
  11564. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11565. hardcode_libdir_separator_CXX=:
  11566. case $host_cpu in
  11567. hppa*64*|ia64*)
  11568. ;;
  11569. *)
  11570. export_dynamic_flag_spec_CXX='${wl}-E'
  11571. ;;
  11572. esac
  11573. fi
  11574. case $host_cpu in
  11575. hppa*64*|ia64*)
  11576. hardcode_direct_CXX=no
  11577. hardcode_shlibpath_var_CXX=no
  11578. ;;
  11579. *)
  11580. hardcode_direct_CXX=yes
  11581. hardcode_direct_absolute_CXX=yes
  11582. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11583. # but as the default
  11584. # location of the library.
  11585. ;;
  11586. esac
  11587. case $cc_basename in
  11588. CC*)
  11589. # FIXME: insert proper C++ library support
  11590. ld_shlibs_CXX=no
  11591. ;;
  11592. aCC*)
  11593. case $host_cpu in
  11594. hppa*64*)
  11595. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11596. ;;
  11597. ia64*)
  11598. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11599. ;;
  11600. *)
  11601. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11602. ;;
  11603. esac
  11604. # Commands to make compiler produce verbose output that lists
  11605. # what "hidden" libraries, object files and flags are used when
  11606. # linking a shared library.
  11607. #
  11608. # There doesn't appear to be a way to prevent this compiler from
  11609. # explicitly linking system object files so we need to strip them
  11610. # from the output so that they don't get included in the library
  11611. # dependencies.
  11612. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11613. ;;
  11614. *)
  11615. if test "$GXX" = yes; then
  11616. if test $with_gnu_ld = no; then
  11617. case $host_cpu in
  11618. hppa*64*)
  11619. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11620. ;;
  11621. ia64*)
  11622. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11623. ;;
  11624. *)
  11625. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11626. ;;
  11627. esac
  11628. fi
  11629. else
  11630. # FIXME: insert proper C++ library support
  11631. ld_shlibs_CXX=no
  11632. fi
  11633. ;;
  11634. esac
  11635. ;;
  11636. interix[3-9]*)
  11637. hardcode_direct_CXX=no
  11638. hardcode_shlibpath_var_CXX=no
  11639. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11640. export_dynamic_flag_spec_CXX='${wl}-E'
  11641. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11642. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11643. # default) and relocated if they conflict, which is a slow very memory
  11644. # consuming and fragmenting process. To avoid this, we pick a random,
  11645. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11646. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11647. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11648. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11649. ;;
  11650. irix5* | irix6*)
  11651. case $cc_basename in
  11652. CC*)
  11653. # SGI C++
  11654. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11655. # Archives containing C++ object files must be created using
  11656. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11657. # necessary to make sure instantiated templates are included
  11658. # in the archive.
  11659. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11660. ;;
  11661. *)
  11662. if test "$GXX" = yes; then
  11663. if test "$with_gnu_ld" = no; then
  11664. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11665. else
  11666. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11667. fi
  11668. fi
  11669. link_all_deplibs_CXX=yes
  11670. ;;
  11671. esac
  11672. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11673. hardcode_libdir_separator_CXX=:
  11674. inherit_rpath_CXX=yes
  11675. ;;
  11676. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11677. case $cc_basename in
  11678. KCC*)
  11679. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11680. # KCC will only create a shared library if the output file
  11681. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11682. # to its proper name (with version) after linking.
  11683. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11684. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  11685. # Commands to make compiler produce verbose output that lists
  11686. # what "hidden" libraries, object files and flags are used when
  11687. # linking a shared library.
  11688. #
  11689. # There doesn't appear to be a way to prevent this compiler from
  11690. # explicitly linking system object files so we need to strip them
  11691. # from the output so that they don't get included in the library
  11692. # dependencies.
  11693. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11694. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11695. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11696. # Archives containing C++ object files must be created using
  11697. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11698. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11699. ;;
  11700. icpc* | ecpc* )
  11701. # Intel C++
  11702. with_gnu_ld=yes
  11703. # version 8.0 and above of icpc choke on multiply defined symbols
  11704. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11705. # earlier do not add the objects themselves.
  11706. case `$CC -V 2>&1` in
  11707. *"Version 7."*)
  11708. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11709. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11710. ;;
  11711. *) # Version 8.0 or newer
  11712. tmp_idyn=
  11713. case $host_cpu in
  11714. ia64*) tmp_idyn=' -i_dynamic';;
  11715. esac
  11716. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11717. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11718. ;;
  11719. esac
  11720. archive_cmds_need_lc_CXX=no
  11721. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11722. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11723. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11724. ;;
  11725. pgCC* | pgcpp*)
  11726. # Portland Group C++ compiler
  11727. case `$CC -V` in
  11728. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11729. prelink_cmds_CXX='tpldir=Template.dir~
  11730. rm -rf $tpldir~
  11731. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11732. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11733. old_archive_cmds_CXX='tpldir=Template.dir~
  11734. rm -rf $tpldir~
  11735. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11736. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11737. $RANLIB $oldlib'
  11738. archive_cmds_CXX='tpldir=Template.dir~
  11739. rm -rf $tpldir~
  11740. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11741. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11742. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11743. rm -rf $tpldir~
  11744. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11745. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11746. ;;
  11747. *) # Version 6 and above use weak symbols
  11748. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11749. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11750. ;;
  11751. esac
  11752. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11753. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11754. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11755. ;;
  11756. cxx*)
  11757. # Compaq C++
  11758. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11759. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  11760. runpath_var=LD_RUN_PATH
  11761. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11762. hardcode_libdir_separator_CXX=:
  11763. # Commands to make compiler produce verbose output that lists
  11764. # what "hidden" libraries, object files and flags are used when
  11765. # linking a shared library.
  11766. #
  11767. # There doesn't appear to be a way to prevent this compiler from
  11768. # explicitly linking system object files so we need to strip them
  11769. # from the output so that they don't get included in the library
  11770. # dependencies.
  11771. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11772. ;;
  11773. xl* | mpixl* | bgxl*)
  11774. # IBM XL 8.0 on PPC, with GNU ld
  11775. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11776. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11777. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11778. if test "x$supports_anon_versioning" = xyes; then
  11779. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11780. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11781. echo "local: *; };" >> $output_objdir/$libname.ver~
  11782. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11783. fi
  11784. ;;
  11785. *)
  11786. case `$CC -V 2>&1 | sed 5q` in
  11787. *Sun\ C*)
  11788. # Sun C++ 5.9
  11789. no_undefined_flag_CXX=' -zdefs'
  11790. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11791. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11792. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11793. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11794. compiler_needs_object_CXX=yes
  11795. # Not sure whether something based on
  11796. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11797. # would be better.
  11798. output_verbose_link_cmd='func_echo_all'
  11799. # Archives containing C++ object files must be created using
  11800. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11801. # necessary to make sure instantiated templates are included
  11802. # in the archive.
  11803. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11804. ;;
  11805. esac
  11806. ;;
  11807. esac
  11808. ;;
  11809. lynxos*)
  11810. # FIXME: insert proper C++ library support
  11811. ld_shlibs_CXX=no
  11812. ;;
  11813. m88k*)
  11814. # FIXME: insert proper C++ library support
  11815. ld_shlibs_CXX=no
  11816. ;;
  11817. mvs*)
  11818. case $cc_basename in
  11819. cxx*)
  11820. # FIXME: insert proper C++ library support
  11821. ld_shlibs_CXX=no
  11822. ;;
  11823. *)
  11824. # FIXME: insert proper C++ library support
  11825. ld_shlibs_CXX=no
  11826. ;;
  11827. esac
  11828. ;;
  11829. netbsd*)
  11830. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11831. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11832. wlarc=
  11833. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11834. hardcode_direct_CXX=yes
  11835. hardcode_shlibpath_var_CXX=no
  11836. fi
  11837. # Workaround some broken pre-1.5 toolchains
  11838. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11839. ;;
  11840. *nto* | *qnx*)
  11841. ld_shlibs_CXX=yes
  11842. ;;
  11843. openbsd2*)
  11844. # C++ shared libraries are fairly broken
  11845. ld_shlibs_CXX=no
  11846. ;;
  11847. openbsd*)
  11848. if test -f /usr/libexec/ld.so; then
  11849. hardcode_direct_CXX=yes
  11850. hardcode_shlibpath_var_CXX=no
  11851. hardcode_direct_absolute_CXX=yes
  11852. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11853. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11854. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11855. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11856. export_dynamic_flag_spec_CXX='${wl}-E'
  11857. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11858. fi
  11859. output_verbose_link_cmd=func_echo_all
  11860. else
  11861. ld_shlibs_CXX=no
  11862. fi
  11863. ;;
  11864. osf3* | osf4* | osf5*)
  11865. case $cc_basename in
  11866. KCC*)
  11867. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11868. # KCC will only create a shared library if the output file
  11869. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11870. # to its proper name (with version) after linking.
  11871. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11872. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11873. hardcode_libdir_separator_CXX=:
  11874. # Archives containing C++ object files must be created using
  11875. # the KAI C++ compiler.
  11876. case $host in
  11877. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11878. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11879. esac
  11880. ;;
  11881. RCC*)
  11882. # Rational C++ 2.4.1
  11883. # FIXME: insert proper C++ library support
  11884. ld_shlibs_CXX=no
  11885. ;;
  11886. cxx*)
  11887. case $host in
  11888. osf3*)
  11889. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11890. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11891. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11892. ;;
  11893. *)
  11894. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11895. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11896. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11897. echo "-hidden">> $lib.exp~
  11898. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11899. $RM $lib.exp'
  11900. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11901. ;;
  11902. esac
  11903. hardcode_libdir_separator_CXX=:
  11904. # Commands to make compiler produce verbose output that lists
  11905. # what "hidden" libraries, object files and flags are used when
  11906. # linking a shared library.
  11907. #
  11908. # There doesn't appear to be a way to prevent this compiler from
  11909. # explicitly linking system object files so we need to strip them
  11910. # from the output so that they don't get included in the library
  11911. # dependencies.
  11912. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11913. ;;
  11914. *)
  11915. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11916. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11917. case $host in
  11918. osf3*)
  11919. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11920. ;;
  11921. *)
  11922. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11923. ;;
  11924. esac
  11925. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11926. hardcode_libdir_separator_CXX=:
  11927. # Commands to make compiler produce verbose output that lists
  11928. # what "hidden" libraries, object files and flags are used when
  11929. # linking a shared library.
  11930. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11931. else
  11932. # FIXME: insert proper C++ library support
  11933. ld_shlibs_CXX=no
  11934. fi
  11935. ;;
  11936. esac
  11937. ;;
  11938. psos*)
  11939. # FIXME: insert proper C++ library support
  11940. ld_shlibs_CXX=no
  11941. ;;
  11942. sunos4*)
  11943. case $cc_basename in
  11944. CC*)
  11945. # Sun C++ 4.x
  11946. # FIXME: insert proper C++ library support
  11947. ld_shlibs_CXX=no
  11948. ;;
  11949. lcc*)
  11950. # Lucid
  11951. # FIXME: insert proper C++ library support
  11952. ld_shlibs_CXX=no
  11953. ;;
  11954. *)
  11955. # FIXME: insert proper C++ library support
  11956. ld_shlibs_CXX=no
  11957. ;;
  11958. esac
  11959. ;;
  11960. solaris*)
  11961. case $cc_basename in
  11962. CC* | sunCC*)
  11963. # Sun C++ 4.2, 5.x and Centerline C++
  11964. archive_cmds_need_lc_CXX=yes
  11965. no_undefined_flag_CXX=' -zdefs'
  11966. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11967. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11968. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11969. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11970. hardcode_shlibpath_var_CXX=no
  11971. case $host_os in
  11972. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11973. *)
  11974. # The compiler driver will combine and reorder linker options,
  11975. # but understands `-z linker_flag'.
  11976. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11977. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11978. ;;
  11979. esac
  11980. link_all_deplibs_CXX=yes
  11981. output_verbose_link_cmd='func_echo_all'
  11982. # Archives containing C++ object files must be created using
  11983. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11984. # necessary to make sure instantiated templates are included
  11985. # in the archive.
  11986. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11987. ;;
  11988. gcx*)
  11989. # Green Hills C++ Compiler
  11990. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11991. # The C++ compiler must be used to create the archive.
  11992. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11993. ;;
  11994. *)
  11995. # GNU C++ compiler with Solaris linker
  11996. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11997. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11998. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11999. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12000. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12001. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12002. # Commands to make compiler produce verbose output that lists
  12003. # what "hidden" libraries, object files and flags are used when
  12004. # linking a shared library.
  12005. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12006. else
  12007. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12008. # platform.
  12009. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12010. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12011. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12012. # Commands to make compiler produce verbose output that lists
  12013. # what "hidden" libraries, object files and flags are used when
  12014. # linking a shared library.
  12015. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12016. fi
  12017. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12018. case $host_os in
  12019. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12020. *)
  12021. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12022. ;;
  12023. esac
  12024. fi
  12025. ;;
  12026. esac
  12027. ;;
  12028. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12029. no_undefined_flag_CXX='${wl}-z,text'
  12030. archive_cmds_need_lc_CXX=no
  12031. hardcode_shlibpath_var_CXX=no
  12032. runpath_var='LD_RUN_PATH'
  12033. case $cc_basename in
  12034. CC*)
  12035. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12036. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12037. ;;
  12038. *)
  12039. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12040. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12041. ;;
  12042. esac
  12043. ;;
  12044. sysv5* | sco3.2v5* | sco5v6*)
  12045. # Note: We can NOT use -z defs as we might desire, because we do not
  12046. # link with -lc, and that would cause any symbols used from libc to
  12047. # always be unresolved, which means just about no library would
  12048. # ever link correctly. If we're not using GNU ld we use -z text
  12049. # though, which does catch some bad symbols but isn't as heavy-handed
  12050. # as -z defs.
  12051. no_undefined_flag_CXX='${wl}-z,text'
  12052. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12053. archive_cmds_need_lc_CXX=no
  12054. hardcode_shlibpath_var_CXX=no
  12055. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12056. hardcode_libdir_separator_CXX=':'
  12057. link_all_deplibs_CXX=yes
  12058. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12059. runpath_var='LD_RUN_PATH'
  12060. case $cc_basename in
  12061. CC*)
  12062. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12063. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12064. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12065. '"$old_archive_cmds_CXX"
  12066. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12067. '"$reload_cmds_CXX"
  12068. ;;
  12069. *)
  12070. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12071. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12072. ;;
  12073. esac
  12074. ;;
  12075. tandem*)
  12076. case $cc_basename in
  12077. NCC*)
  12078. # NonStop-UX NCC 3.20
  12079. # FIXME: insert proper C++ library support
  12080. ld_shlibs_CXX=no
  12081. ;;
  12082. *)
  12083. # FIXME: insert proper C++ library support
  12084. ld_shlibs_CXX=no
  12085. ;;
  12086. esac
  12087. ;;
  12088. vxworks*)
  12089. # FIXME: insert proper C++ library support
  12090. ld_shlibs_CXX=no
  12091. ;;
  12092. *)
  12093. # FIXME: insert proper C++ library support
  12094. ld_shlibs_CXX=no
  12095. ;;
  12096. esac
  12097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12098. $as_echo "$ld_shlibs_CXX" >&6; }
  12099. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12100. GCC_CXX="$GXX"
  12101. LD_CXX="$LD"
  12102. ## CAVEAT EMPTOR:
  12103. ## There is no encapsulation within the following macros, do not change
  12104. ## the running order or otherwise move them around unless you know exactly
  12105. ## what you are doing...
  12106. # Dependencies to place before and after the object being linked:
  12107. predep_objects_CXX=
  12108. postdep_objects_CXX=
  12109. predeps_CXX=
  12110. postdeps_CXX=
  12111. compiler_lib_search_path_CXX=
  12112. cat > conftest.$ac_ext <<_LT_EOF
  12113. class Foo
  12114. {
  12115. public:
  12116. Foo (void) { a = 0; }
  12117. private:
  12118. int a;
  12119. };
  12120. _LT_EOF
  12121. _lt_libdeps_save_CFLAGS=$CFLAGS
  12122. case "$CC $CFLAGS " in #(
  12123. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12124. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12125. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12126. esac
  12127. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12128. (eval $ac_compile) 2>&5
  12129. ac_status=$?
  12130. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12131. test $ac_status = 0; }; then
  12132. # Parse the compiler output and extract the necessary
  12133. # objects, libraries and library flags.
  12134. # Sentinel used to keep track of whether or not we are before
  12135. # the conftest object file.
  12136. pre_test_object_deps_done=no
  12137. for p in `eval "$output_verbose_link_cmd"`; do
  12138. case ${prev}${p} in
  12139. -L* | -R* | -l*)
  12140. # Some compilers place space between "-{L,R}" and the path.
  12141. # Remove the space.
  12142. if test $p = "-L" ||
  12143. test $p = "-R"; then
  12144. prev=$p
  12145. continue
  12146. fi
  12147. # Expand the sysroot to ease extracting the directories later.
  12148. if test -z "$prev"; then
  12149. case $p in
  12150. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12151. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12152. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12153. esac
  12154. fi
  12155. case $p in
  12156. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12157. esac
  12158. if test "$pre_test_object_deps_done" = no; then
  12159. case ${prev} in
  12160. -L | -R)
  12161. # Internal compiler library paths should come after those
  12162. # provided the user. The postdeps already come after the
  12163. # user supplied libs so there is no need to process them.
  12164. if test -z "$compiler_lib_search_path_CXX"; then
  12165. compiler_lib_search_path_CXX="${prev}${p}"
  12166. else
  12167. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12168. fi
  12169. ;;
  12170. # The "-l" case would never come before the object being
  12171. # linked, so don't bother handling this case.
  12172. esac
  12173. else
  12174. if test -z "$postdeps_CXX"; then
  12175. postdeps_CXX="${prev}${p}"
  12176. else
  12177. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12178. fi
  12179. fi
  12180. prev=
  12181. ;;
  12182. *.lto.$objext) ;; # Ignore GCC LTO objects
  12183. *.$objext)
  12184. # This assumes that the test object file only shows up
  12185. # once in the compiler output.
  12186. if test "$p" = "conftest.$objext"; then
  12187. pre_test_object_deps_done=yes
  12188. continue
  12189. fi
  12190. if test "$pre_test_object_deps_done" = no; then
  12191. if test -z "$predep_objects_CXX"; then
  12192. predep_objects_CXX="$p"
  12193. else
  12194. predep_objects_CXX="$predep_objects_CXX $p"
  12195. fi
  12196. else
  12197. if test -z "$postdep_objects_CXX"; then
  12198. postdep_objects_CXX="$p"
  12199. else
  12200. postdep_objects_CXX="$postdep_objects_CXX $p"
  12201. fi
  12202. fi
  12203. ;;
  12204. *) ;; # Ignore the rest.
  12205. esac
  12206. done
  12207. # Clean up.
  12208. rm -f a.out a.exe
  12209. else
  12210. echo "libtool.m4: error: problem compiling CXX test program"
  12211. fi
  12212. $RM -f confest.$objext
  12213. CFLAGS=$_lt_libdeps_save_CFLAGS
  12214. # PORTME: override above test on systems where it is broken
  12215. case $host_os in
  12216. interix[3-9]*)
  12217. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12218. # hack all around it, let's just trust "g++" to DTRT.
  12219. predep_objects_CXX=
  12220. postdep_objects_CXX=
  12221. postdeps_CXX=
  12222. ;;
  12223. linux*)
  12224. case `$CC -V 2>&1 | sed 5q` in
  12225. *Sun\ C*)
  12226. # Sun C++ 5.9
  12227. # The more standards-conforming stlport4 library is
  12228. # incompatible with the Cstd library. Avoid specifying
  12229. # it if it's in CXXFLAGS. Ignore libCrun as
  12230. # -library=stlport4 depends on it.
  12231. case " $CXX $CXXFLAGS " in
  12232. *" -library=stlport4 "*)
  12233. solaris_use_stlport4=yes
  12234. ;;
  12235. esac
  12236. if test "$solaris_use_stlport4" != yes; then
  12237. postdeps_CXX='-library=Cstd -library=Crun'
  12238. fi
  12239. ;;
  12240. esac
  12241. ;;
  12242. solaris*)
  12243. case $cc_basename in
  12244. CC* | sunCC*)
  12245. # The more standards-conforming stlport4 library is
  12246. # incompatible with the Cstd library. Avoid specifying
  12247. # it if it's in CXXFLAGS. Ignore libCrun as
  12248. # -library=stlport4 depends on it.
  12249. case " $CXX $CXXFLAGS " in
  12250. *" -library=stlport4 "*)
  12251. solaris_use_stlport4=yes
  12252. ;;
  12253. esac
  12254. # Adding this requires a known-good setup of shared libraries for
  12255. # Sun compiler versions before 5.6, else PIC objects from an old
  12256. # archive will be linked into the output, leading to subtle bugs.
  12257. if test "$solaris_use_stlport4" != yes; then
  12258. postdeps_CXX='-library=Cstd -library=Crun'
  12259. fi
  12260. ;;
  12261. esac
  12262. ;;
  12263. esac
  12264. case " $postdeps_CXX " in
  12265. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12266. esac
  12267. compiler_lib_search_dirs_CXX=
  12268. if test -n "${compiler_lib_search_path_CXX}"; then
  12269. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12270. fi
  12271. lt_prog_compiler_wl_CXX=
  12272. lt_prog_compiler_pic_CXX=
  12273. lt_prog_compiler_static_CXX=
  12274. # C++ specific cases for pic, static, wl, etc.
  12275. if test "$GXX" = yes; then
  12276. lt_prog_compiler_wl_CXX='-Wl,'
  12277. lt_prog_compiler_static_CXX='-static'
  12278. case $host_os in
  12279. aix*)
  12280. # All AIX code is PIC.
  12281. if test "$host_cpu" = ia64; then
  12282. # AIX 5 now supports IA64 processor
  12283. lt_prog_compiler_static_CXX='-Bstatic'
  12284. fi
  12285. ;;
  12286. amigaos*)
  12287. case $host_cpu in
  12288. powerpc)
  12289. # see comment about AmigaOS4 .so support
  12290. lt_prog_compiler_pic_CXX='-fPIC'
  12291. ;;
  12292. m68k)
  12293. # FIXME: we need at least 68020 code to build shared libraries, but
  12294. # adding the `-m68020' flag to GCC prevents building anything better,
  12295. # like `-m68040'.
  12296. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12297. ;;
  12298. esac
  12299. ;;
  12300. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12301. # PIC is the default for these OSes.
  12302. ;;
  12303. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12304. # This hack is so that the source file can tell whether it is being
  12305. # built for inclusion in a dll (and should export symbols for example).
  12306. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12307. # (--disable-auto-import) libraries
  12308. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12309. ;;
  12310. darwin* | rhapsody*)
  12311. # PIC is the default on this platform
  12312. # Common symbols not allowed in MH_DYLIB files
  12313. lt_prog_compiler_pic_CXX='-fno-common'
  12314. ;;
  12315. *djgpp*)
  12316. # DJGPP does not support shared libraries at all
  12317. lt_prog_compiler_pic_CXX=
  12318. ;;
  12319. haiku*)
  12320. # PIC is the default for Haiku.
  12321. # The "-static" flag exists, but is broken.
  12322. lt_prog_compiler_static_CXX=
  12323. ;;
  12324. interix[3-9]*)
  12325. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12326. # Instead, we relocate shared libraries at runtime.
  12327. ;;
  12328. sysv4*MP*)
  12329. if test -d /usr/nec; then
  12330. lt_prog_compiler_pic_CXX=-Kconform_pic
  12331. fi
  12332. ;;
  12333. hpux*)
  12334. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12335. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12336. # sets the default TLS model and affects inlining.
  12337. case $host_cpu in
  12338. hppa*64*)
  12339. ;;
  12340. *)
  12341. lt_prog_compiler_pic_CXX='-fPIC'
  12342. ;;
  12343. esac
  12344. ;;
  12345. *qnx* | *nto*)
  12346. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12347. # it will coredump.
  12348. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12349. ;;
  12350. *)
  12351. lt_prog_compiler_pic_CXX='-fPIC'
  12352. ;;
  12353. esac
  12354. else
  12355. case $host_os in
  12356. aix[4-9]*)
  12357. # All AIX code is PIC.
  12358. if test "$host_cpu" = ia64; then
  12359. # AIX 5 now supports IA64 processor
  12360. lt_prog_compiler_static_CXX='-Bstatic'
  12361. else
  12362. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12363. fi
  12364. ;;
  12365. chorus*)
  12366. case $cc_basename in
  12367. cxch68*)
  12368. # Green Hills C++ Compiler
  12369. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  12370. ;;
  12371. esac
  12372. ;;
  12373. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12374. # This hack is so that the source file can tell whether it is being
  12375. # built for inclusion in a dll (and should export symbols for example).
  12376. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12377. ;;
  12378. dgux*)
  12379. case $cc_basename in
  12380. ec++*)
  12381. lt_prog_compiler_pic_CXX='-KPIC'
  12382. ;;
  12383. ghcx*)
  12384. # Green Hills C++ Compiler
  12385. lt_prog_compiler_pic_CXX='-pic'
  12386. ;;
  12387. *)
  12388. ;;
  12389. esac
  12390. ;;
  12391. freebsd* | dragonfly*)
  12392. # FreeBSD uses GNU C++
  12393. ;;
  12394. hpux9* | hpux10* | hpux11*)
  12395. case $cc_basename in
  12396. CC*)
  12397. lt_prog_compiler_wl_CXX='-Wl,'
  12398. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12399. if test "$host_cpu" != ia64; then
  12400. lt_prog_compiler_pic_CXX='+Z'
  12401. fi
  12402. ;;
  12403. aCC*)
  12404. lt_prog_compiler_wl_CXX='-Wl,'
  12405. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12406. case $host_cpu in
  12407. hppa*64*|ia64*)
  12408. # +Z the default
  12409. ;;
  12410. *)
  12411. lt_prog_compiler_pic_CXX='+Z'
  12412. ;;
  12413. esac
  12414. ;;
  12415. *)
  12416. ;;
  12417. esac
  12418. ;;
  12419. interix*)
  12420. # This is c89, which is MS Visual C++ (no shared libs)
  12421. # Anyone wants to do a port?
  12422. ;;
  12423. irix5* | irix6* | nonstopux*)
  12424. case $cc_basename in
  12425. CC*)
  12426. lt_prog_compiler_wl_CXX='-Wl,'
  12427. lt_prog_compiler_static_CXX='-non_shared'
  12428. # CC pic flag -KPIC is the default.
  12429. ;;
  12430. *)
  12431. ;;
  12432. esac
  12433. ;;
  12434. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12435. case $cc_basename in
  12436. KCC*)
  12437. # KAI C++ Compiler
  12438. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12439. lt_prog_compiler_pic_CXX='-fPIC'
  12440. ;;
  12441. ecpc* )
  12442. # old Intel C++ for x86_64 which still supported -KPIC.
  12443. lt_prog_compiler_wl_CXX='-Wl,'
  12444. lt_prog_compiler_pic_CXX='-KPIC'
  12445. lt_prog_compiler_static_CXX='-static'
  12446. ;;
  12447. icpc* )
  12448. # Intel C++, used to be incompatible with GCC.
  12449. # ICC 10 doesn't accept -KPIC any more.
  12450. lt_prog_compiler_wl_CXX='-Wl,'
  12451. lt_prog_compiler_pic_CXX='-fPIC'
  12452. lt_prog_compiler_static_CXX='-static'
  12453. ;;
  12454. pgCC* | pgcpp*)
  12455. # Portland Group C++ compiler
  12456. lt_prog_compiler_wl_CXX='-Wl,'
  12457. lt_prog_compiler_pic_CXX='-fpic'
  12458. lt_prog_compiler_static_CXX='-Bstatic'
  12459. ;;
  12460. cxx*)
  12461. # Compaq C++
  12462. # Make sure the PIC flag is empty. It appears that all Alpha
  12463. # Linux and Compaq Tru64 Unix objects are PIC.
  12464. lt_prog_compiler_pic_CXX=
  12465. lt_prog_compiler_static_CXX='-non_shared'
  12466. ;;
  12467. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12468. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12469. lt_prog_compiler_wl_CXX='-Wl,'
  12470. lt_prog_compiler_pic_CXX='-qpic'
  12471. lt_prog_compiler_static_CXX='-qstaticlink'
  12472. ;;
  12473. *)
  12474. case `$CC -V 2>&1 | sed 5q` in
  12475. *Sun\ C*)
  12476. # Sun C++ 5.9
  12477. lt_prog_compiler_pic_CXX='-KPIC'
  12478. lt_prog_compiler_static_CXX='-Bstatic'
  12479. lt_prog_compiler_wl_CXX='-Qoption ld '
  12480. ;;
  12481. esac
  12482. ;;
  12483. esac
  12484. ;;
  12485. lynxos*)
  12486. ;;
  12487. m88k*)
  12488. ;;
  12489. mvs*)
  12490. case $cc_basename in
  12491. cxx*)
  12492. lt_prog_compiler_pic_CXX='-W c,exportall'
  12493. ;;
  12494. *)
  12495. ;;
  12496. esac
  12497. ;;
  12498. netbsd*)
  12499. ;;
  12500. *qnx* | *nto*)
  12501. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12502. # it will coredump.
  12503. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12504. ;;
  12505. osf3* | osf4* | osf5*)
  12506. case $cc_basename in
  12507. KCC*)
  12508. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12509. ;;
  12510. RCC*)
  12511. # Rational C++ 2.4.1
  12512. lt_prog_compiler_pic_CXX='-pic'
  12513. ;;
  12514. cxx*)
  12515. # Digital/Compaq C++
  12516. lt_prog_compiler_wl_CXX='-Wl,'
  12517. # Make sure the PIC flag is empty. It appears that all Alpha
  12518. # Linux and Compaq Tru64 Unix objects are PIC.
  12519. lt_prog_compiler_pic_CXX=
  12520. lt_prog_compiler_static_CXX='-non_shared'
  12521. ;;
  12522. *)
  12523. ;;
  12524. esac
  12525. ;;
  12526. psos*)
  12527. ;;
  12528. solaris*)
  12529. case $cc_basename in
  12530. CC* | sunCC*)
  12531. # Sun C++ 4.2, 5.x and Centerline C++
  12532. lt_prog_compiler_pic_CXX='-KPIC'
  12533. lt_prog_compiler_static_CXX='-Bstatic'
  12534. lt_prog_compiler_wl_CXX='-Qoption ld '
  12535. ;;
  12536. gcx*)
  12537. # Green Hills C++ Compiler
  12538. lt_prog_compiler_pic_CXX='-PIC'
  12539. ;;
  12540. *)
  12541. ;;
  12542. esac
  12543. ;;
  12544. sunos4*)
  12545. case $cc_basename in
  12546. CC*)
  12547. # Sun C++ 4.x
  12548. lt_prog_compiler_pic_CXX='-pic'
  12549. lt_prog_compiler_static_CXX='-Bstatic'
  12550. ;;
  12551. lcc*)
  12552. # Lucid
  12553. lt_prog_compiler_pic_CXX='-pic'
  12554. ;;
  12555. *)
  12556. ;;
  12557. esac
  12558. ;;
  12559. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12560. case $cc_basename in
  12561. CC*)
  12562. lt_prog_compiler_wl_CXX='-Wl,'
  12563. lt_prog_compiler_pic_CXX='-KPIC'
  12564. lt_prog_compiler_static_CXX='-Bstatic'
  12565. ;;
  12566. esac
  12567. ;;
  12568. tandem*)
  12569. case $cc_basename in
  12570. NCC*)
  12571. # NonStop-UX NCC 3.20
  12572. lt_prog_compiler_pic_CXX='-KPIC'
  12573. ;;
  12574. *)
  12575. ;;
  12576. esac
  12577. ;;
  12578. vxworks*)
  12579. ;;
  12580. *)
  12581. lt_prog_compiler_can_build_shared_CXX=no
  12582. ;;
  12583. esac
  12584. fi
  12585. case $host_os in
  12586. # For platforms which do not support PIC, -DPIC is meaningless:
  12587. *djgpp*)
  12588. lt_prog_compiler_pic_CXX=
  12589. ;;
  12590. *)
  12591. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12592. ;;
  12593. esac
  12594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12595. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12596. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12597. $as_echo_n "(cached) " >&6
  12598. else
  12599. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12600. fi
  12601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12602. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12603. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12604. #
  12605. # Check to make sure the PIC flag actually works.
  12606. #
  12607. if test -n "$lt_prog_compiler_pic_CXX"; then
  12608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12609. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12610. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12611. $as_echo_n "(cached) " >&6
  12612. else
  12613. lt_cv_prog_compiler_pic_works_CXX=no
  12614. ac_outfile=conftest.$ac_objext
  12615. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12616. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12617. # Insert the option either (1) after the last *FLAGS variable, or
  12618. # (2) before a word containing "conftest.", or (3) at the end.
  12619. # Note that $ac_compile itself does not contain backslashes and begins
  12620. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12621. # The option is referenced via a variable to avoid confusing sed.
  12622. lt_compile=`echo "$ac_compile" | $SED \
  12623. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12624. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12625. -e 's:$: $lt_compiler_flag:'`
  12626. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12627. (eval "$lt_compile" 2>conftest.err)
  12628. ac_status=$?
  12629. cat conftest.err >&5
  12630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12631. if (exit $ac_status) && test -s "$ac_outfile"; then
  12632. # The compiler can only warn and ignore the option if not recognized
  12633. # So say no if there are warnings other than the usual output.
  12634. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12635. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12636. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12637. lt_cv_prog_compiler_pic_works_CXX=yes
  12638. fi
  12639. fi
  12640. $RM conftest*
  12641. fi
  12642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12643. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12644. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12645. case $lt_prog_compiler_pic_CXX in
  12646. "" | " "*) ;;
  12647. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12648. esac
  12649. else
  12650. lt_prog_compiler_pic_CXX=
  12651. lt_prog_compiler_can_build_shared_CXX=no
  12652. fi
  12653. fi
  12654. #
  12655. # Check to make sure the static flag actually works.
  12656. #
  12657. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12659. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12660. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12661. $as_echo_n "(cached) " >&6
  12662. else
  12663. lt_cv_prog_compiler_static_works_CXX=no
  12664. save_LDFLAGS="$LDFLAGS"
  12665. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12666. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12667. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12668. # The linker can only warn and ignore the option if not recognized
  12669. # So say no if there are warnings
  12670. if test -s conftest.err; then
  12671. # Append any errors to the config.log.
  12672. cat conftest.err 1>&5
  12673. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12674. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12675. if diff conftest.exp conftest.er2 >/dev/null; then
  12676. lt_cv_prog_compiler_static_works_CXX=yes
  12677. fi
  12678. else
  12679. lt_cv_prog_compiler_static_works_CXX=yes
  12680. fi
  12681. fi
  12682. $RM -r conftest*
  12683. LDFLAGS="$save_LDFLAGS"
  12684. fi
  12685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12686. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12687. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12688. :
  12689. else
  12690. lt_prog_compiler_static_CXX=
  12691. fi
  12692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12693. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12694. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12695. $as_echo_n "(cached) " >&6
  12696. else
  12697. lt_cv_prog_compiler_c_o_CXX=no
  12698. $RM -r conftest 2>/dev/null
  12699. mkdir conftest
  12700. cd conftest
  12701. mkdir out
  12702. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12703. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12704. # Insert the option either (1) after the last *FLAGS variable, or
  12705. # (2) before a word containing "conftest.", or (3) at the end.
  12706. # Note that $ac_compile itself does not contain backslashes and begins
  12707. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12708. lt_compile=`echo "$ac_compile" | $SED \
  12709. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12710. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12711. -e 's:$: $lt_compiler_flag:'`
  12712. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12713. (eval "$lt_compile" 2>out/conftest.err)
  12714. ac_status=$?
  12715. cat out/conftest.err >&5
  12716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12717. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12718. then
  12719. # The compiler can only warn and ignore the option if not recognized
  12720. # So say no if there are warnings
  12721. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12722. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12723. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12724. lt_cv_prog_compiler_c_o_CXX=yes
  12725. fi
  12726. fi
  12727. chmod u+w . 2>&5
  12728. $RM conftest*
  12729. # SGI C++ compiler will create directory out/ii_files/ for
  12730. # template instantiation
  12731. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12732. $RM out/* && rmdir out
  12733. cd ..
  12734. $RM -r conftest
  12735. $RM conftest*
  12736. fi
  12737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12738. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12740. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12741. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12742. $as_echo_n "(cached) " >&6
  12743. else
  12744. lt_cv_prog_compiler_c_o_CXX=no
  12745. $RM -r conftest 2>/dev/null
  12746. mkdir conftest
  12747. cd conftest
  12748. mkdir out
  12749. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12750. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12751. # Insert the option either (1) after the last *FLAGS variable, or
  12752. # (2) before a word containing "conftest.", or (3) at the end.
  12753. # Note that $ac_compile itself does not contain backslashes and begins
  12754. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12755. lt_compile=`echo "$ac_compile" | $SED \
  12756. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12757. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12758. -e 's:$: $lt_compiler_flag:'`
  12759. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12760. (eval "$lt_compile" 2>out/conftest.err)
  12761. ac_status=$?
  12762. cat out/conftest.err >&5
  12763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12764. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12765. then
  12766. # The compiler can only warn and ignore the option if not recognized
  12767. # So say no if there are warnings
  12768. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12769. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12770. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12771. lt_cv_prog_compiler_c_o_CXX=yes
  12772. fi
  12773. fi
  12774. chmod u+w . 2>&5
  12775. $RM conftest*
  12776. # SGI C++ compiler will create directory out/ii_files/ for
  12777. # template instantiation
  12778. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12779. $RM out/* && rmdir out
  12780. cd ..
  12781. $RM -r conftest
  12782. $RM conftest*
  12783. fi
  12784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12785. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12786. hard_links="nottested"
  12787. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12788. # do not overwrite the value of need_locks provided by the user
  12789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12790. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12791. hard_links=yes
  12792. $RM conftest*
  12793. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12794. touch conftest.a
  12795. ln conftest.a conftest.b 2>&5 || hard_links=no
  12796. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12798. $as_echo "$hard_links" >&6; }
  12799. if test "$hard_links" = no; then
  12800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12801. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12802. need_locks=warn
  12803. fi
  12804. else
  12805. need_locks=no
  12806. fi
  12807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12808. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12809. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12810. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12811. case $host_os in
  12812. aix[4-9]*)
  12813. # If we're using GNU nm, then we don't want the "-C" option.
  12814. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12815. # Also, AIX nm treats weak defined symbols like other global defined
  12816. # symbols, whereas GNU nm marks them as "W".
  12817. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12818. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12819. else
  12820. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12821. fi
  12822. ;;
  12823. pw32*)
  12824. export_symbols_cmds_CXX="$ltdll_cmds"
  12825. ;;
  12826. cygwin* | mingw* | cegcc*)
  12827. case $cc_basename in
  12828. cl*)
  12829. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12830. ;;
  12831. *)
  12832. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12833. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12834. ;;
  12835. esac
  12836. ;;
  12837. *)
  12838. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12839. ;;
  12840. esac
  12841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12842. $as_echo "$ld_shlibs_CXX" >&6; }
  12843. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12844. with_gnu_ld_CXX=$with_gnu_ld
  12845. #
  12846. # Do we need to explicitly link libc?
  12847. #
  12848. case "x$archive_cmds_need_lc_CXX" in
  12849. x|xyes)
  12850. # Assume -lc should be added
  12851. archive_cmds_need_lc_CXX=yes
  12852. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12853. case $archive_cmds_CXX in
  12854. *'~'*)
  12855. # FIXME: we may have to deal with multi-command sequences.
  12856. ;;
  12857. '$CC '*)
  12858. # Test whether the compiler implicitly links with -lc since on some
  12859. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12860. # to ld, don't add -lc before -lgcc.
  12861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12862. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12863. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12864. $as_echo_n "(cached) " >&6
  12865. else
  12866. $RM conftest*
  12867. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12868. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12869. (eval $ac_compile) 2>&5
  12870. ac_status=$?
  12871. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12872. test $ac_status = 0; } 2>conftest.err; then
  12873. soname=conftest
  12874. lib=conftest
  12875. libobjs=conftest.$ac_objext
  12876. deplibs=
  12877. wl=$lt_prog_compiler_wl_CXX
  12878. pic_flag=$lt_prog_compiler_pic_CXX
  12879. compiler_flags=-v
  12880. linker_flags=-v
  12881. verstring=
  12882. output_objdir=.
  12883. libname=conftest
  12884. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12885. allow_undefined_flag_CXX=
  12886. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12887. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12888. ac_status=$?
  12889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12890. test $ac_status = 0; }
  12891. then
  12892. lt_cv_archive_cmds_need_lc_CXX=no
  12893. else
  12894. lt_cv_archive_cmds_need_lc_CXX=yes
  12895. fi
  12896. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12897. else
  12898. cat conftest.err 1>&5
  12899. fi
  12900. $RM conftest*
  12901. fi
  12902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12903. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12904. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12905. ;;
  12906. esac
  12907. fi
  12908. ;;
  12909. esac
  12910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12911. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12912. library_names_spec=
  12913. libname_spec='lib$name'
  12914. soname_spec=
  12915. shrext_cmds=".so"
  12916. postinstall_cmds=
  12917. postuninstall_cmds=
  12918. finish_cmds=
  12919. finish_eval=
  12920. shlibpath_var=
  12921. shlibpath_overrides_runpath=unknown
  12922. version_type=none
  12923. dynamic_linker="$host_os ld.so"
  12924. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12925. need_lib_prefix=unknown
  12926. hardcode_into_libs=no
  12927. # when you set need_version to no, make sure it does not cause -set_version
  12928. # flags to be left without arguments
  12929. need_version=unknown
  12930. case $host_os in
  12931. aix3*)
  12932. version_type=linux # correct to gnu/linux during the next big refactor
  12933. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12934. shlibpath_var=LIBPATH
  12935. # AIX 3 has no versioning support, so we append a major version to the name.
  12936. soname_spec='${libname}${release}${shared_ext}$major'
  12937. ;;
  12938. aix[4-9]*)
  12939. version_type=linux # correct to gnu/linux during the next big refactor
  12940. need_lib_prefix=no
  12941. need_version=no
  12942. hardcode_into_libs=yes
  12943. if test "$host_cpu" = ia64; then
  12944. # AIX 5 supports IA64
  12945. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12946. shlibpath_var=LD_LIBRARY_PATH
  12947. else
  12948. # With GCC up to 2.95.x, collect2 would create an import file
  12949. # for dependence libraries. The import file would start with
  12950. # the line `#! .'. This would cause the generated library to
  12951. # depend on `.', always an invalid library. This was fixed in
  12952. # development snapshots of GCC prior to 3.0.
  12953. case $host_os in
  12954. aix4 | aix4.[01] | aix4.[01].*)
  12955. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12956. echo ' yes '
  12957. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12958. :
  12959. else
  12960. can_build_shared=no
  12961. fi
  12962. ;;
  12963. esac
  12964. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12965. # soname into executable. Probably we can add versioning support to
  12966. # collect2, so additional links can be useful in future.
  12967. if test "$aix_use_runtimelinking" = yes; then
  12968. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12969. # instead of lib<name>.a to let people know that these are not
  12970. # typical AIX shared libraries.
  12971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12972. else
  12973. # We preserve .a as extension for shared libraries through AIX4.2
  12974. # and later when we are not doing run time linking.
  12975. library_names_spec='${libname}${release}.a $libname.a'
  12976. soname_spec='${libname}${release}${shared_ext}$major'
  12977. fi
  12978. shlibpath_var=LIBPATH
  12979. fi
  12980. ;;
  12981. amigaos*)
  12982. case $host_cpu in
  12983. powerpc)
  12984. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12985. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12987. ;;
  12988. m68k)
  12989. library_names_spec='$libname.ixlibrary $libname.a'
  12990. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12991. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12992. ;;
  12993. esac
  12994. ;;
  12995. beos*)
  12996. library_names_spec='${libname}${shared_ext}'
  12997. dynamic_linker="$host_os ld.so"
  12998. shlibpath_var=LIBRARY_PATH
  12999. ;;
  13000. bsdi[45]*)
  13001. version_type=linux # correct to gnu/linux during the next big refactor
  13002. need_version=no
  13003. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13004. soname_spec='${libname}${release}${shared_ext}$major'
  13005. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13006. shlibpath_var=LD_LIBRARY_PATH
  13007. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13008. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13009. # the default ld.so.conf also contains /usr/contrib/lib and
  13010. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13011. # libtool to hard-code these into programs
  13012. ;;
  13013. cygwin* | mingw* | pw32* | cegcc*)
  13014. version_type=windows
  13015. shrext_cmds=".dll"
  13016. need_version=no
  13017. need_lib_prefix=no
  13018. case $GCC,$cc_basename in
  13019. yes,*)
  13020. # gcc
  13021. library_names_spec='$libname.dll.a'
  13022. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13023. postinstall_cmds='base_file=`basename \${file}`~
  13024. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13025. dldir=$destdir/`dirname \$dlpath`~
  13026. test -d \$dldir || mkdir -p \$dldir~
  13027. $install_prog $dir/$dlname \$dldir/$dlname~
  13028. chmod a+x \$dldir/$dlname~
  13029. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13030. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13031. fi'
  13032. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13033. dlpath=$dir/\$dldll~
  13034. $RM \$dlpath'
  13035. shlibpath_overrides_runpath=yes
  13036. case $host_os in
  13037. cygwin*)
  13038. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13039. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13040. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13041. ;;
  13042. mingw* | cegcc*)
  13043. # MinGW DLLs use traditional 'lib' prefix
  13044. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13045. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13046. ;;
  13047. pw32*)
  13048. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13049. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13050. ;;
  13051. esac
  13052. dynamic_linker='Win32 ld.exe'
  13053. ;;
  13054. *,cl*)
  13055. # Native MSVC
  13056. libname_spec='$name'
  13057. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13058. library_names_spec='${libname}.dll.lib'
  13059. case $build_os in
  13060. mingw*)
  13061. sys_lib_search_path_spec=
  13062. lt_save_ifs=$IFS
  13063. IFS=';'
  13064. for lt_path in $LIB
  13065. do
  13066. IFS=$lt_save_ifs
  13067. # Let DOS variable expansion print the short 8.3 style file name.
  13068. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13069. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13070. done
  13071. IFS=$lt_save_ifs
  13072. # Convert to MSYS style.
  13073. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13074. ;;
  13075. cygwin*)
  13076. # Convert to unix form, then to dos form, then back to unix form
  13077. # but this time dos style (no spaces!) so that the unix form looks
  13078. # like /cygdrive/c/PROGRA~1:/cygdr...
  13079. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13080. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13081. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13082. ;;
  13083. *)
  13084. sys_lib_search_path_spec="$LIB"
  13085. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13086. # It is most probably a Windows format PATH.
  13087. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13088. else
  13089. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13090. fi
  13091. # FIXME: find the short name or the path components, as spaces are
  13092. # common. (e.g. "Program Files" -> "PROGRA~1")
  13093. ;;
  13094. esac
  13095. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13096. postinstall_cmds='base_file=`basename \${file}`~
  13097. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13098. dldir=$destdir/`dirname \$dlpath`~
  13099. test -d \$dldir || mkdir -p \$dldir~
  13100. $install_prog $dir/$dlname \$dldir/$dlname'
  13101. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13102. dlpath=$dir/\$dldll~
  13103. $RM \$dlpath'
  13104. shlibpath_overrides_runpath=yes
  13105. dynamic_linker='Win32 link.exe'
  13106. ;;
  13107. *)
  13108. # Assume MSVC wrapper
  13109. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13110. dynamic_linker='Win32 ld.exe'
  13111. ;;
  13112. esac
  13113. # FIXME: first we should search . and the directory the executable is in
  13114. shlibpath_var=PATH
  13115. ;;
  13116. darwin* | rhapsody*)
  13117. dynamic_linker="$host_os dyld"
  13118. version_type=darwin
  13119. need_lib_prefix=no
  13120. need_version=no
  13121. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13122. soname_spec='${libname}${release}${major}$shared_ext'
  13123. shlibpath_overrides_runpath=yes
  13124. shlibpath_var=DYLD_LIBRARY_PATH
  13125. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13126. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13127. ;;
  13128. dgux*)
  13129. version_type=linux # correct to gnu/linux during the next big refactor
  13130. need_lib_prefix=no
  13131. need_version=no
  13132. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13133. soname_spec='${libname}${release}${shared_ext}$major'
  13134. shlibpath_var=LD_LIBRARY_PATH
  13135. ;;
  13136. freebsd* | dragonfly*)
  13137. # DragonFly does not have aout. When/if they implement a new
  13138. # versioning mechanism, adjust this.
  13139. if test -x /usr/bin/objformat; then
  13140. objformat=`/usr/bin/objformat`
  13141. else
  13142. case $host_os in
  13143. freebsd[23].*) objformat=aout ;;
  13144. *) objformat=elf ;;
  13145. esac
  13146. fi
  13147. version_type=freebsd-$objformat
  13148. case $version_type in
  13149. freebsd-elf*)
  13150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13151. need_version=no
  13152. need_lib_prefix=no
  13153. ;;
  13154. freebsd-*)
  13155. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13156. need_version=yes
  13157. ;;
  13158. esac
  13159. shlibpath_var=LD_LIBRARY_PATH
  13160. case $host_os in
  13161. freebsd2.*)
  13162. shlibpath_overrides_runpath=yes
  13163. ;;
  13164. freebsd3.[01]* | freebsdelf3.[01]*)
  13165. shlibpath_overrides_runpath=yes
  13166. hardcode_into_libs=yes
  13167. ;;
  13168. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13169. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13170. shlibpath_overrides_runpath=no
  13171. hardcode_into_libs=yes
  13172. ;;
  13173. *) # from 4.6 on, and DragonFly
  13174. shlibpath_overrides_runpath=yes
  13175. hardcode_into_libs=yes
  13176. ;;
  13177. esac
  13178. ;;
  13179. gnu*)
  13180. version_type=linux # correct to gnu/linux during the next big refactor
  13181. need_lib_prefix=no
  13182. need_version=no
  13183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13184. soname_spec='${libname}${release}${shared_ext}$major'
  13185. shlibpath_var=LD_LIBRARY_PATH
  13186. shlibpath_overrides_runpath=no
  13187. hardcode_into_libs=yes
  13188. ;;
  13189. haiku*)
  13190. version_type=linux # correct to gnu/linux during the next big refactor
  13191. need_lib_prefix=no
  13192. need_version=no
  13193. dynamic_linker="$host_os runtime_loader"
  13194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13195. soname_spec='${libname}${release}${shared_ext}$major'
  13196. shlibpath_var=LIBRARY_PATH
  13197. shlibpath_overrides_runpath=yes
  13198. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13199. hardcode_into_libs=yes
  13200. ;;
  13201. hpux9* | hpux10* | hpux11*)
  13202. # Give a soname corresponding to the major version so that dld.sl refuses to
  13203. # link against other versions.
  13204. version_type=sunos
  13205. need_lib_prefix=no
  13206. need_version=no
  13207. case $host_cpu in
  13208. ia64*)
  13209. shrext_cmds='.so'
  13210. hardcode_into_libs=yes
  13211. dynamic_linker="$host_os dld.so"
  13212. shlibpath_var=LD_LIBRARY_PATH
  13213. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13215. soname_spec='${libname}${release}${shared_ext}$major'
  13216. if test "X$HPUX_IA64_MODE" = X32; then
  13217. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13218. else
  13219. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13220. fi
  13221. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13222. ;;
  13223. hppa*64*)
  13224. shrext_cmds='.sl'
  13225. hardcode_into_libs=yes
  13226. dynamic_linker="$host_os dld.sl"
  13227. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13228. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13230. soname_spec='${libname}${release}${shared_ext}$major'
  13231. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13232. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13233. ;;
  13234. *)
  13235. shrext_cmds='.sl'
  13236. dynamic_linker="$host_os dld.sl"
  13237. shlibpath_var=SHLIB_PATH
  13238. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13240. soname_spec='${libname}${release}${shared_ext}$major'
  13241. ;;
  13242. esac
  13243. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13244. postinstall_cmds='chmod 555 $lib'
  13245. # or fails outright, so override atomically:
  13246. install_override_mode=555
  13247. ;;
  13248. interix[3-9]*)
  13249. version_type=linux # correct to gnu/linux during the next big refactor
  13250. need_lib_prefix=no
  13251. need_version=no
  13252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13253. soname_spec='${libname}${release}${shared_ext}$major'
  13254. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13255. shlibpath_var=LD_LIBRARY_PATH
  13256. shlibpath_overrides_runpath=no
  13257. hardcode_into_libs=yes
  13258. ;;
  13259. irix5* | irix6* | nonstopux*)
  13260. case $host_os in
  13261. nonstopux*) version_type=nonstopux ;;
  13262. *)
  13263. if test "$lt_cv_prog_gnu_ld" = yes; then
  13264. version_type=linux # correct to gnu/linux during the next big refactor
  13265. else
  13266. version_type=irix
  13267. fi ;;
  13268. esac
  13269. need_lib_prefix=no
  13270. need_version=no
  13271. soname_spec='${libname}${release}${shared_ext}$major'
  13272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13273. case $host_os in
  13274. irix5* | nonstopux*)
  13275. libsuff= shlibsuff=
  13276. ;;
  13277. *)
  13278. case $LD in # libtool.m4 will add one of these switches to LD
  13279. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13280. libsuff= shlibsuff= libmagic=32-bit;;
  13281. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13282. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13283. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13284. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13285. *) libsuff= shlibsuff= libmagic=never-match;;
  13286. esac
  13287. ;;
  13288. esac
  13289. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13290. shlibpath_overrides_runpath=no
  13291. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13292. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13293. hardcode_into_libs=yes
  13294. ;;
  13295. # No shared lib support for Linux oldld, aout, or coff.
  13296. linux*oldld* | linux*aout* | linux*coff*)
  13297. dynamic_linker=no
  13298. ;;
  13299. # This must be glibc/ELF.
  13300. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13301. version_type=linux # correct to gnu/linux during the next big refactor
  13302. need_lib_prefix=no
  13303. need_version=no
  13304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13305. soname_spec='${libname}${release}${shared_ext}$major'
  13306. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13307. shlibpath_var=LD_LIBRARY_PATH
  13308. shlibpath_overrides_runpath=no
  13309. # Some binutils ld are patched to set DT_RUNPATH
  13310. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13311. $as_echo_n "(cached) " >&6
  13312. else
  13313. lt_cv_shlibpath_overrides_runpath=no
  13314. save_LDFLAGS=$LDFLAGS
  13315. save_libdir=$libdir
  13316. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13317. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13319. /* end confdefs.h. */
  13320. int
  13321. main ()
  13322. {
  13323. ;
  13324. return 0;
  13325. }
  13326. _ACEOF
  13327. if ac_fn_cxx_try_link "$LINENO"; then :
  13328. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13329. lt_cv_shlibpath_overrides_runpath=yes
  13330. fi
  13331. fi
  13332. rm -f core conftest.err conftest.$ac_objext \
  13333. conftest$ac_exeext conftest.$ac_ext
  13334. LDFLAGS=$save_LDFLAGS
  13335. libdir=$save_libdir
  13336. fi
  13337. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13338. # This implies no fast_install, which is unacceptable.
  13339. # Some rework will be needed to allow for fast_install
  13340. # before this can be enabled.
  13341. hardcode_into_libs=yes
  13342. # Append ld.so.conf contents to the search path
  13343. if test -f /etc/ld.so.conf; then
  13344. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  13345. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13346. fi
  13347. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13348. # powerpc, because MkLinux only supported shared libraries with the
  13349. # GNU dynamic linker. Since this was broken with cross compilers,
  13350. # most powerpc-linux boxes support dynamic linking these days and
  13351. # people can always --disable-shared, the test was removed, and we
  13352. # assume the GNU/Linux dynamic linker is in use.
  13353. dynamic_linker='GNU/Linux ld.so'
  13354. ;;
  13355. netbsd*)
  13356. version_type=sunos
  13357. need_lib_prefix=no
  13358. need_version=no
  13359. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13360. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13361. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13362. dynamic_linker='NetBSD (a.out) ld.so'
  13363. else
  13364. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13365. soname_spec='${libname}${release}${shared_ext}$major'
  13366. dynamic_linker='NetBSD ld.elf_so'
  13367. fi
  13368. shlibpath_var=LD_LIBRARY_PATH
  13369. shlibpath_overrides_runpath=yes
  13370. hardcode_into_libs=yes
  13371. ;;
  13372. newsos6)
  13373. version_type=linux # correct to gnu/linux during the next big refactor
  13374. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13375. shlibpath_var=LD_LIBRARY_PATH
  13376. shlibpath_overrides_runpath=yes
  13377. ;;
  13378. *nto* | *qnx*)
  13379. version_type=qnx
  13380. need_lib_prefix=no
  13381. need_version=no
  13382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13383. soname_spec='${libname}${release}${shared_ext}$major'
  13384. shlibpath_var=LD_LIBRARY_PATH
  13385. shlibpath_overrides_runpath=no
  13386. hardcode_into_libs=yes
  13387. dynamic_linker='ldqnx.so'
  13388. ;;
  13389. openbsd*)
  13390. version_type=sunos
  13391. sys_lib_dlsearch_path_spec="/usr/lib"
  13392. need_lib_prefix=no
  13393. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13394. case $host_os in
  13395. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13396. *) need_version=no ;;
  13397. esac
  13398. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13399. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13400. shlibpath_var=LD_LIBRARY_PATH
  13401. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13402. case $host_os in
  13403. openbsd2.[89] | openbsd2.[89].*)
  13404. shlibpath_overrides_runpath=no
  13405. ;;
  13406. *)
  13407. shlibpath_overrides_runpath=yes
  13408. ;;
  13409. esac
  13410. else
  13411. shlibpath_overrides_runpath=yes
  13412. fi
  13413. ;;
  13414. os2*)
  13415. libname_spec='$name'
  13416. shrext_cmds=".dll"
  13417. need_lib_prefix=no
  13418. library_names_spec='$libname${shared_ext} $libname.a'
  13419. dynamic_linker='OS/2 ld.exe'
  13420. shlibpath_var=LIBPATH
  13421. ;;
  13422. osf3* | osf4* | osf5*)
  13423. version_type=osf
  13424. need_lib_prefix=no
  13425. need_version=no
  13426. soname_spec='${libname}${release}${shared_ext}$major'
  13427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13428. shlibpath_var=LD_LIBRARY_PATH
  13429. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13430. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13431. ;;
  13432. rdos*)
  13433. dynamic_linker=no
  13434. ;;
  13435. solaris*)
  13436. version_type=linux # correct to gnu/linux during the next big refactor
  13437. need_lib_prefix=no
  13438. need_version=no
  13439. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13440. soname_spec='${libname}${release}${shared_ext}$major'
  13441. shlibpath_var=LD_LIBRARY_PATH
  13442. shlibpath_overrides_runpath=yes
  13443. hardcode_into_libs=yes
  13444. # ldd complains unless libraries are executable
  13445. postinstall_cmds='chmod +x $lib'
  13446. ;;
  13447. sunos4*)
  13448. version_type=sunos
  13449. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13450. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13451. shlibpath_var=LD_LIBRARY_PATH
  13452. shlibpath_overrides_runpath=yes
  13453. if test "$with_gnu_ld" = yes; then
  13454. need_lib_prefix=no
  13455. fi
  13456. need_version=yes
  13457. ;;
  13458. sysv4 | sysv4.3*)
  13459. version_type=linux # correct to gnu/linux during the next big refactor
  13460. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13461. soname_spec='${libname}${release}${shared_ext}$major'
  13462. shlibpath_var=LD_LIBRARY_PATH
  13463. case $host_vendor in
  13464. sni)
  13465. shlibpath_overrides_runpath=no
  13466. need_lib_prefix=no
  13467. runpath_var=LD_RUN_PATH
  13468. ;;
  13469. siemens)
  13470. need_lib_prefix=no
  13471. ;;
  13472. motorola)
  13473. need_lib_prefix=no
  13474. need_version=no
  13475. shlibpath_overrides_runpath=no
  13476. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13477. ;;
  13478. esac
  13479. ;;
  13480. sysv4*MP*)
  13481. if test -d /usr/nec ;then
  13482. version_type=linux # correct to gnu/linux during the next big refactor
  13483. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13484. soname_spec='$libname${shared_ext}.$major'
  13485. shlibpath_var=LD_LIBRARY_PATH
  13486. fi
  13487. ;;
  13488. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13489. version_type=freebsd-elf
  13490. need_lib_prefix=no
  13491. need_version=no
  13492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13493. soname_spec='${libname}${release}${shared_ext}$major'
  13494. shlibpath_var=LD_LIBRARY_PATH
  13495. shlibpath_overrides_runpath=yes
  13496. hardcode_into_libs=yes
  13497. if test "$with_gnu_ld" = yes; then
  13498. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13499. else
  13500. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13501. case $host_os in
  13502. sco3.2v5*)
  13503. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13504. ;;
  13505. esac
  13506. fi
  13507. sys_lib_dlsearch_path_spec='/usr/lib'
  13508. ;;
  13509. tpf*)
  13510. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13511. version_type=linux # correct to gnu/linux during the next big refactor
  13512. need_lib_prefix=no
  13513. need_version=no
  13514. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13515. shlibpath_var=LD_LIBRARY_PATH
  13516. shlibpath_overrides_runpath=no
  13517. hardcode_into_libs=yes
  13518. ;;
  13519. uts4*)
  13520. version_type=linux # correct to gnu/linux during the next big refactor
  13521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13522. soname_spec='${libname}${release}${shared_ext}$major'
  13523. shlibpath_var=LD_LIBRARY_PATH
  13524. ;;
  13525. *)
  13526. dynamic_linker=no
  13527. ;;
  13528. esac
  13529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13530. $as_echo "$dynamic_linker" >&6; }
  13531. test "$dynamic_linker" = no && can_build_shared=no
  13532. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13533. if test "$GCC" = yes; then
  13534. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13535. fi
  13536. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13537. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13538. fi
  13539. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13540. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13541. fi
  13542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13543. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13544. hardcode_action_CXX=
  13545. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13546. test -n "$runpath_var_CXX" ||
  13547. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13548. # We can hardcode non-existent directories.
  13549. if test "$hardcode_direct_CXX" != no &&
  13550. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13551. # have to relink, otherwise we might link with an installed library
  13552. # when we should be linking with a yet-to-be-installed one
  13553. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13554. test "$hardcode_minus_L_CXX" != no; then
  13555. # Linking always hardcodes the temporary library directory.
  13556. hardcode_action_CXX=relink
  13557. else
  13558. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13559. hardcode_action_CXX=immediate
  13560. fi
  13561. else
  13562. # We cannot hardcode anything, or else we can only hardcode existing
  13563. # directories.
  13564. hardcode_action_CXX=unsupported
  13565. fi
  13566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13567. $as_echo "$hardcode_action_CXX" >&6; }
  13568. if test "$hardcode_action_CXX" = relink ||
  13569. test "$inherit_rpath_CXX" = yes; then
  13570. # Fast installation is not supported
  13571. enable_fast_install=no
  13572. elif test "$shlibpath_overrides_runpath" = yes ||
  13573. test "$enable_shared" = no; then
  13574. # Fast installation is not necessary
  13575. enable_fast_install=needless
  13576. fi
  13577. fi # test -n "$compiler"
  13578. CC=$lt_save_CC
  13579. CFLAGS=$lt_save_CFLAGS
  13580. LDCXX=$LD
  13581. LD=$lt_save_LD
  13582. GCC=$lt_save_GCC
  13583. with_gnu_ld=$lt_save_with_gnu_ld
  13584. lt_cv_path_LDCXX=$lt_cv_path_LD
  13585. lt_cv_path_LD=$lt_save_path_LD
  13586. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13587. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13588. fi # test "$_lt_caught_CXX_error" != yes
  13589. ac_ext=c
  13590. ac_cpp='$CPP $CPPFLAGS'
  13591. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13592. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13593. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13594. # Find a good install program. We prefer a C program (faster),
  13595. # so one script is as good as another. But avoid the broken or
  13596. # incompatible versions:
  13597. # SysV /etc/install, /usr/sbin/install
  13598. # SunOS /usr/etc/install
  13599. # IRIX /sbin/install
  13600. # AIX /bin/install
  13601. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13602. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13603. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13604. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13605. # OS/2's system install, which has a completely different semantic
  13606. # ./install, which can be erroneously created by make from ./install.sh.
  13607. # Reject install programs that cannot install multiple files.
  13608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13609. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13610. if test -z "$INSTALL"; then
  13611. if ${ac_cv_path_install+:} false; then :
  13612. $as_echo_n "(cached) " >&6
  13613. else
  13614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13615. for as_dir in $PATH
  13616. do
  13617. IFS=$as_save_IFS
  13618. test -z "$as_dir" && as_dir=.
  13619. # Account for people who put trailing slashes in PATH elements.
  13620. case $as_dir/ in #((
  13621. ./ | .// | /[cC]/* | \
  13622. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13623. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13624. /usr/ucb/* ) ;;
  13625. *)
  13626. # OSF1 and SCO ODT 3.0 have their own names for install.
  13627. # Don't use installbsd from OSF since it installs stuff as root
  13628. # by default.
  13629. for ac_prog in ginstall scoinst install; do
  13630. for ac_exec_ext in '' $ac_executable_extensions; do
  13631. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13632. if test $ac_prog = install &&
  13633. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13634. # AIX install. It has an incompatible calling convention.
  13635. :
  13636. elif test $ac_prog = install &&
  13637. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13638. # program-specific install script used by HP pwplus--don't use.
  13639. :
  13640. else
  13641. rm -rf conftest.one conftest.two conftest.dir
  13642. echo one > conftest.one
  13643. echo two > conftest.two
  13644. mkdir conftest.dir
  13645. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13646. test -s conftest.one && test -s conftest.two &&
  13647. test -s conftest.dir/conftest.one &&
  13648. test -s conftest.dir/conftest.two
  13649. then
  13650. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13651. break 3
  13652. fi
  13653. fi
  13654. fi
  13655. done
  13656. done
  13657. ;;
  13658. esac
  13659. done
  13660. IFS=$as_save_IFS
  13661. rm -rf conftest.one conftest.two conftest.dir
  13662. fi
  13663. if test "${ac_cv_path_install+set}" = set; then
  13664. INSTALL=$ac_cv_path_install
  13665. else
  13666. # As a last resort, use the slow shell script. Don't cache a
  13667. # value for INSTALL within a source directory, because that will
  13668. # break other packages using the cache if that directory is
  13669. # removed, or if the value is a relative name.
  13670. INSTALL=$ac_install_sh
  13671. fi
  13672. fi
  13673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13674. $as_echo "$INSTALL" >&6; }
  13675. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13676. # It thinks the first close brace ends the variable substitution.
  13677. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13678. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13679. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13681. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13682. set x ${MAKE-make}
  13683. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13684. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13685. $as_echo_n "(cached) " >&6
  13686. else
  13687. cat >conftest.make <<\_ACEOF
  13688. SHELL = /bin/sh
  13689. all:
  13690. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13691. _ACEOF
  13692. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13693. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13694. *@@@%%%=?*=@@@%%%*)
  13695. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13696. *)
  13697. eval ac_cv_prog_make_${ac_make}_set=no;;
  13698. esac
  13699. rm -f conftest.make
  13700. fi
  13701. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13703. $as_echo "yes" >&6; }
  13704. SET_MAKE=
  13705. else
  13706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13707. $as_echo "no" >&6; }
  13708. SET_MAKE="MAKE=${MAKE-make}"
  13709. fi
  13710. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13711. if test -n "$ac_tool_prefix"; then
  13712. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13713. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13715. $as_echo_n "checking for $ac_word... " >&6; }
  13716. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13717. $as_echo_n "(cached) " >&6
  13718. else
  13719. case $PKG_CONFIG in
  13720. [\\/]* | ?:[\\/]*)
  13721. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13722. ;;
  13723. *)
  13724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13725. for as_dir in $PATH
  13726. do
  13727. IFS=$as_save_IFS
  13728. test -z "$as_dir" && as_dir=.
  13729. for ac_exec_ext in '' $ac_executable_extensions; do
  13730. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13731. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13732. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13733. break 2
  13734. fi
  13735. done
  13736. done
  13737. IFS=$as_save_IFS
  13738. ;;
  13739. esac
  13740. fi
  13741. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13742. if test -n "$PKG_CONFIG"; then
  13743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13744. $as_echo "$PKG_CONFIG" >&6; }
  13745. else
  13746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13747. $as_echo "no" >&6; }
  13748. fi
  13749. fi
  13750. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13751. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13752. # Extract the first word of "pkg-config", so it can be a program name with args.
  13753. set dummy pkg-config; ac_word=$2
  13754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13755. $as_echo_n "checking for $ac_word... " >&6; }
  13756. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13757. $as_echo_n "(cached) " >&6
  13758. else
  13759. case $ac_pt_PKG_CONFIG in
  13760. [\\/]* | ?:[\\/]*)
  13761. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13762. ;;
  13763. *)
  13764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13765. for as_dir in $PATH
  13766. do
  13767. IFS=$as_save_IFS
  13768. test -z "$as_dir" && as_dir=.
  13769. for ac_exec_ext in '' $ac_executable_extensions; do
  13770. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13771. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13772. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13773. break 2
  13774. fi
  13775. done
  13776. done
  13777. IFS=$as_save_IFS
  13778. ;;
  13779. esac
  13780. fi
  13781. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13782. if test -n "$ac_pt_PKG_CONFIG"; then
  13783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13784. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13785. else
  13786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13787. $as_echo "no" >&6; }
  13788. fi
  13789. if test "x$ac_pt_PKG_CONFIG" = x; then
  13790. PKG_CONFIG=""
  13791. else
  13792. case $cross_compiling:$ac_tool_warned in
  13793. yes:)
  13794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13795. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13796. ac_tool_warned=yes ;;
  13797. esac
  13798. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13799. fi
  13800. else
  13801. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13802. fi
  13803. fi
  13804. if test -n "$PKG_CONFIG"; then
  13805. _pkg_min_version=0.9.0
  13806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13807. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13808. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13810. $as_echo "yes" >&6; }
  13811. else
  13812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13813. $as_echo "no" >&6; }
  13814. PKG_CONFIG=""
  13815. fi
  13816. fi
  13817. case "$host" in
  13818. *-*-mingw32*)
  13819. # Except on msys, where make can't handle full pathnames (bug 1972)
  13820. ;;
  13821. *)
  13822. srcdir=`cd $srcdir && pwd`
  13823. ;;
  13824. esac
  13825. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13826. if test x$srcdir != x.; then
  13827. INCLUDE="-Iinclude $INCLUDE"
  13828. elif test -d .hg; then
  13829. as_fn_error $? "
  13830. *** When building from Mercurial you should configure and build in a
  13831. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13832. " "$LINENO" 5
  13833. fi
  13834. BASE_CFLAGS=""
  13835. BASE_LDFLAGS=""
  13836. case "$host" in
  13837. *-*-cygwin*)
  13838. # We build SDL on cygwin without the UNIX emulation layer
  13839. save_CFLAGS="$CFLAGS"
  13840. have_no_cygwin=no
  13841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13842. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13843. CFLAGS="$save_CFLAGS -mno-cygwin"
  13844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13845. /* end confdefs.h. */
  13846. int
  13847. main ()
  13848. {
  13849. ;
  13850. return 0;
  13851. }
  13852. _ACEOF
  13853. if ac_fn_c_try_compile "$LINENO"; then :
  13854. have_no_cygwin=yes
  13855. fi
  13856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13858. $as_echo "$have_no_cygwin" >&6; }
  13859. CFLAGS="$save_CFLAGS"
  13860. if test x$have_no_cygwin = xyes; then
  13861. BASE_CFLAGS="-mno-cygwin"
  13862. BASE_LDFLAGS="-mno-cygwin"
  13863. fi
  13864. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13865. ;;
  13866. esac
  13867. # Uncomment the following line if you want to force SDL and applications
  13868. # built with it to be compiled for a particular architecture.
  13869. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13870. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13871. # The default optimization for SDL is -O3 (Bug #31)
  13872. if test "x$orig_CFLAGS" = x; then
  13873. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13874. fi
  13875. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13876. BUILD_LDFLAGS="$LDFLAGS"
  13877. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13878. ## These are common directories to find software packages
  13879. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13880. # if test -d $path/include; then
  13881. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13882. # fi
  13883. # if test -d $path/lib; then
  13884. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13885. # fi
  13886. #done
  13887. SDL_CFLAGS="$BASE_CFLAGS"
  13888. SDL_LIBS="-lSDL2"
  13889. if test "x$BASE_LDFLAGS" != x; then
  13890. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13891. fi
  13892. if test "x$EXTRA_CFLAGS" != x; then
  13893. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13894. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13895. fi
  13896. if test "x$EXTRA_LDFLAGS" != x; then
  13897. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13898. fi
  13899. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13900. find_lib()
  13901. {
  13902. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13903. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13904. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13905. if test "$cross_compiling" = yes; then
  13906. host_lib_path=""
  13907. else
  13908. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13909. fi
  13910. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13911. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13912. if test x$lib != x; then
  13913. echo $lib
  13914. return
  13915. fi
  13916. done
  13917. # Try again, this time allowing more than one version digit after the .so
  13918. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13919. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13920. if test x$lib != x; then
  13921. echo $lib
  13922. return
  13923. fi
  13924. done
  13925. }
  13926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13927. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13928. if ${ac_cv_c_const+:} false; then :
  13929. $as_echo_n "(cached) " >&6
  13930. else
  13931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13932. /* end confdefs.h. */
  13933. int
  13934. main ()
  13935. {
  13936. #ifndef __cplusplus
  13937. /* Ultrix mips cc rejects this sort of thing. */
  13938. typedef int charset[2];
  13939. const charset cs = { 0, 0 };
  13940. /* SunOS 4.1.1 cc rejects this. */
  13941. char const *const *pcpcc;
  13942. char **ppc;
  13943. /* NEC SVR4.0.2 mips cc rejects this. */
  13944. struct point {int x, y;};
  13945. static struct point const zero = {0,0};
  13946. /* AIX XL C 1.02.0.0 rejects this.
  13947. It does not let you subtract one const X* pointer from another in
  13948. an arm of an if-expression whose if-part is not a constant
  13949. expression */
  13950. const char *g = "string";
  13951. pcpcc = &g + (g ? g-g : 0);
  13952. /* HPUX 7.0 cc rejects these. */
  13953. ++pcpcc;
  13954. ppc = (char**) pcpcc;
  13955. pcpcc = (char const *const *) ppc;
  13956. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13957. char tx;
  13958. char *t = &tx;
  13959. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13960. *t++ = 0;
  13961. if (s) return 0;
  13962. }
  13963. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13964. int x[] = {25, 17};
  13965. const int *foo = &x[0];
  13966. ++foo;
  13967. }
  13968. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13969. typedef const int *iptr;
  13970. iptr p = 0;
  13971. ++p;
  13972. }
  13973. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13974. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13975. struct s { int j; const int *ap[3]; } bx;
  13976. struct s *b = &bx; b->j = 5;
  13977. }
  13978. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13979. const int foo = 10;
  13980. if (!foo) return 0;
  13981. }
  13982. return !cs[0] && !zero.x;
  13983. #endif
  13984. ;
  13985. return 0;
  13986. }
  13987. _ACEOF
  13988. if ac_fn_c_try_compile "$LINENO"; then :
  13989. ac_cv_c_const=yes
  13990. else
  13991. ac_cv_c_const=no
  13992. fi
  13993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13994. fi
  13995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13996. $as_echo "$ac_cv_c_const" >&6; }
  13997. if test $ac_cv_c_const = no; then
  13998. $as_echo "#define const /**/" >>confdefs.h
  13999. fi
  14000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14001. $as_echo_n "checking for inline... " >&6; }
  14002. if ${ac_cv_c_inline+:} false; then :
  14003. $as_echo_n "(cached) " >&6
  14004. else
  14005. ac_cv_c_inline=no
  14006. for ac_kw in inline __inline__ __inline; do
  14007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14008. /* end confdefs.h. */
  14009. #ifndef __cplusplus
  14010. typedef int foo_t;
  14011. static $ac_kw foo_t static_foo () {return 0; }
  14012. $ac_kw foo_t foo () {return 0; }
  14013. #endif
  14014. _ACEOF
  14015. if ac_fn_c_try_compile "$LINENO"; then :
  14016. ac_cv_c_inline=$ac_kw
  14017. fi
  14018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14019. test "$ac_cv_c_inline" != no && break
  14020. done
  14021. fi
  14022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14023. $as_echo "$ac_cv_c_inline" >&6; }
  14024. case $ac_cv_c_inline in
  14025. inline | yes) ;;
  14026. *)
  14027. case $ac_cv_c_inline in
  14028. no) ac_val=;;
  14029. *) ac_val=$ac_cv_c_inline;;
  14030. esac
  14031. cat >>confdefs.h <<_ACEOF
  14032. #ifndef __cplusplus
  14033. #define inline $ac_val
  14034. #endif
  14035. _ACEOF
  14036. ;;
  14037. esac
  14038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14039. $as_echo_n "checking for working volatile... " >&6; }
  14040. if ${ac_cv_c_volatile+:} false; then :
  14041. $as_echo_n "(cached) " >&6
  14042. else
  14043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14044. /* end confdefs.h. */
  14045. int
  14046. main ()
  14047. {
  14048. volatile int x;
  14049. int * volatile y = (int *) 0;
  14050. return !x && !y;
  14051. ;
  14052. return 0;
  14053. }
  14054. _ACEOF
  14055. if ac_fn_c_try_compile "$LINENO"; then :
  14056. ac_cv_c_volatile=yes
  14057. else
  14058. ac_cv_c_volatile=no
  14059. fi
  14060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14061. fi
  14062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14063. $as_echo "$ac_cv_c_volatile" >&6; }
  14064. if test $ac_cv_c_volatile = no; then
  14065. $as_echo "#define volatile /**/" >>confdefs.h
  14066. fi
  14067. # Check whether --enable-assertions was given.
  14068. if test "${enable_assertions+set}" = set; then :
  14069. enableval=$enable_assertions;
  14070. else
  14071. enable_assertions=auto
  14072. fi
  14073. case "$enable_assertions" in
  14074. auto) # Use optimization settings to determine assertion level
  14075. ;;
  14076. disabled)
  14077. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14078. ;;
  14079. release)
  14080. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14081. ;;
  14082. enabled)
  14083. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14084. ;;
  14085. paranoid)
  14086. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14087. ;;
  14088. *)
  14089. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14090. ;;
  14091. esac
  14092. # Check whether --enable-dependency-tracking was given.
  14093. if test "${enable_dependency_tracking+set}" = set; then :
  14094. enableval=$enable_dependency_tracking;
  14095. else
  14096. enable_dependency_tracking=yes
  14097. fi
  14098. if test x$enable_dependency_tracking = xyes; then
  14099. have_gcc_mmd_mt=no
  14100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14101. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14103. /* end confdefs.h. */
  14104. #if !defined(__GNUC__) || __GNUC__ < 3
  14105. #error Dependency tracking requires GCC 3.0 or newer
  14106. #endif
  14107. int
  14108. main ()
  14109. {
  14110. ;
  14111. return 0;
  14112. }
  14113. _ACEOF
  14114. if ac_fn_c_try_compile "$LINENO"; then :
  14115. have_gcc_mmd_mt=yes
  14116. fi
  14117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14119. $as_echo "$have_gcc_mmd_mt" >&6; }
  14120. if test x$have_gcc_mmd_mt = xyes; then
  14121. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14122. fi
  14123. fi
  14124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14125. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14126. have_no_undefined=no
  14127. case "$host" in
  14128. *-*-openbsd*)
  14129. ;;
  14130. *)
  14131. save_LDFLAGS="$LDFLAGS"
  14132. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14134. /* end confdefs.h. */
  14135. int
  14136. main ()
  14137. {
  14138. ;
  14139. return 0;
  14140. }
  14141. _ACEOF
  14142. if ac_fn_c_try_link "$LINENO"; then :
  14143. have_no_undefined=yes
  14144. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14145. fi
  14146. rm -f core conftest.err conftest.$ac_objext \
  14147. conftest$ac_exeext conftest.$ac_ext
  14148. LDFLAGS="$save_LDFLAGS"
  14149. ;;
  14150. esac
  14151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14152. $as_echo "$have_no_undefined" >&6; }
  14153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14154. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14155. have_dynamicbase=no
  14156. case "$host" in
  14157. *)
  14158. save_LDFLAGS="$LDFLAGS"
  14159. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14161. /* end confdefs.h. */
  14162. int
  14163. main ()
  14164. {
  14165. ;
  14166. return 0;
  14167. }
  14168. _ACEOF
  14169. if ac_fn_c_try_link "$LINENO"; then :
  14170. have_dynamicbase=yes
  14171. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14172. fi
  14173. rm -f core conftest.err conftest.$ac_objext \
  14174. conftest$ac_exeext conftest.$ac_ext
  14175. LDFLAGS="$save_LDFLAGS"
  14176. ;;
  14177. esac
  14178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14179. $as_echo "$have_dynamicbase" >&6; }
  14180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14181. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14182. have_nxcompat=no
  14183. case "$host" in
  14184. *)
  14185. save_LDFLAGS="$LDFLAGS"
  14186. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14188. /* end confdefs.h. */
  14189. int
  14190. main ()
  14191. {
  14192. ;
  14193. return 0;
  14194. }
  14195. _ACEOF
  14196. if ac_fn_c_try_link "$LINENO"; then :
  14197. have_nxcompat=yes
  14198. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14199. fi
  14200. rm -f core conftest.err conftest.$ac_objext \
  14201. conftest$ac_exeext conftest.$ac_ext
  14202. LDFLAGS="$save_LDFLAGS"
  14203. ;;
  14204. esac
  14205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14206. $as_echo "$have_nxcompat" >&6; }
  14207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14208. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14209. have_high_entropy_va=no
  14210. case "$host" in
  14211. *)
  14212. save_LDFLAGS="$LDFLAGS"
  14213. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14215. /* end confdefs.h. */
  14216. int
  14217. main ()
  14218. {
  14219. ;
  14220. return 0;
  14221. }
  14222. _ACEOF
  14223. if ac_fn_c_try_link "$LINENO"; then :
  14224. have_high_entropy_va=yes
  14225. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14226. fi
  14227. rm -f core conftest.err conftest.$ac_objext \
  14228. conftest$ac_exeext conftest.$ac_ext
  14229. LDFLAGS="$save_LDFLAGS"
  14230. ;;
  14231. esac
  14232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14233. $as_echo "$have_high_entropy_va" >&6; }
  14234. # Check whether --enable-libc was given.
  14235. if test "${enable_libc+set}" = set; then :
  14236. enableval=$enable_libc;
  14237. else
  14238. enable_libc=yes
  14239. fi
  14240. if test x$enable_libc = xyes; then
  14241. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14243. $as_echo_n "checking for ANSI C header files... " >&6; }
  14244. if ${ac_cv_header_stdc+:} false; then :
  14245. $as_echo_n "(cached) " >&6
  14246. else
  14247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14248. /* end confdefs.h. */
  14249. #include <stdlib.h>
  14250. #include <stdarg.h>
  14251. #include <string.h>
  14252. #include <float.h>
  14253. int
  14254. main ()
  14255. {
  14256. ;
  14257. return 0;
  14258. }
  14259. _ACEOF
  14260. if ac_fn_c_try_compile "$LINENO"; then :
  14261. ac_cv_header_stdc=yes
  14262. else
  14263. ac_cv_header_stdc=no
  14264. fi
  14265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14266. if test $ac_cv_header_stdc = yes; then
  14267. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14269. /* end confdefs.h. */
  14270. #include <string.h>
  14271. _ACEOF
  14272. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14273. $EGREP "memchr" >/dev/null 2>&1; then :
  14274. else
  14275. ac_cv_header_stdc=no
  14276. fi
  14277. rm -f conftest*
  14278. fi
  14279. if test $ac_cv_header_stdc = yes; then
  14280. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14282. /* end confdefs.h. */
  14283. #include <stdlib.h>
  14284. _ACEOF
  14285. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14286. $EGREP "free" >/dev/null 2>&1; then :
  14287. else
  14288. ac_cv_header_stdc=no
  14289. fi
  14290. rm -f conftest*
  14291. fi
  14292. if test $ac_cv_header_stdc = yes; then
  14293. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14294. if test "$cross_compiling" = yes; then :
  14295. :
  14296. else
  14297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14298. /* end confdefs.h. */
  14299. #include <ctype.h>
  14300. #include <stdlib.h>
  14301. #if ((' ' & 0x0FF) == 0x020)
  14302. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14303. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14304. #else
  14305. # define ISLOWER(c) \
  14306. (('a' <= (c) && (c) <= 'i') \
  14307. || ('j' <= (c) && (c) <= 'r') \
  14308. || ('s' <= (c) && (c) <= 'z'))
  14309. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14310. #endif
  14311. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14312. int
  14313. main ()
  14314. {
  14315. int i;
  14316. for (i = 0; i < 256; i++)
  14317. if (XOR (islower (i), ISLOWER (i))
  14318. || toupper (i) != TOUPPER (i))
  14319. return 2;
  14320. return 0;
  14321. }
  14322. _ACEOF
  14323. if ac_fn_c_try_run "$LINENO"; then :
  14324. else
  14325. ac_cv_header_stdc=no
  14326. fi
  14327. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14328. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14329. fi
  14330. fi
  14331. fi
  14332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14333. $as_echo "$ac_cv_header_stdc" >&6; }
  14334. if test $ac_cv_header_stdc = yes; then
  14335. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14336. fi
  14337. for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h
  14338. do :
  14339. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14340. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14341. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14342. cat >>confdefs.h <<_ACEOF
  14343. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14344. _ACEOF
  14345. fi
  14346. done
  14347. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14348. if test "x$ac_cv_type_size_t" = xyes; then :
  14349. else
  14350. cat >>confdefs.h <<_ACEOF
  14351. #define size_t unsigned int
  14352. _ACEOF
  14353. fi
  14354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14355. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14356. if ${ac_cv_define_M_PI+:} false; then :
  14357. $as_echo_n "(cached) " >&6
  14358. else
  14359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14360. /* end confdefs.h. */
  14361. #include <math.h>
  14362. #ifdef M_PI
  14363. YES_IS_DEFINED
  14364. #endif
  14365. _ACEOF
  14366. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14367. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14368. ac_cv_define_M_PI=yes
  14369. else
  14370. ac_cv_define_M_PI=no
  14371. fi
  14372. rm -f conftest*
  14373. fi
  14374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14375. $as_echo "$ac_cv_define_M_PI" >&6; }
  14376. if test "$ac_cv_define_M_PI" = "yes" ; then
  14377. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14378. fi
  14379. case "$host" in
  14380. *-*-cygwin* | *-*-mingw32*)
  14381. ;;
  14382. *)
  14383. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14384. # for constant arguments. Useless!
  14385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14386. $as_echo_n "checking for working alloca.h... " >&6; }
  14387. if ${ac_cv_working_alloca_h+:} false; then :
  14388. $as_echo_n "(cached) " >&6
  14389. else
  14390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14391. /* end confdefs.h. */
  14392. #include <alloca.h>
  14393. int
  14394. main ()
  14395. {
  14396. char *p = (char *) alloca (2 * sizeof (int));
  14397. if (p) return 0;
  14398. ;
  14399. return 0;
  14400. }
  14401. _ACEOF
  14402. if ac_fn_c_try_link "$LINENO"; then :
  14403. ac_cv_working_alloca_h=yes
  14404. else
  14405. ac_cv_working_alloca_h=no
  14406. fi
  14407. rm -f core conftest.err conftest.$ac_objext \
  14408. conftest$ac_exeext conftest.$ac_ext
  14409. fi
  14410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14411. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14412. if test $ac_cv_working_alloca_h = yes; then
  14413. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14414. fi
  14415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14416. $as_echo_n "checking for alloca... " >&6; }
  14417. if ${ac_cv_func_alloca_works+:} false; then :
  14418. $as_echo_n "(cached) " >&6
  14419. else
  14420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14421. /* end confdefs.h. */
  14422. #ifdef __GNUC__
  14423. # define alloca __builtin_alloca
  14424. #else
  14425. # ifdef _MSC_VER
  14426. # include <malloc.h>
  14427. # define alloca _alloca
  14428. # else
  14429. # ifdef HAVE_ALLOCA_H
  14430. # include <alloca.h>
  14431. # else
  14432. # ifdef _AIX
  14433. #pragma alloca
  14434. # else
  14435. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14436. void *alloca (size_t);
  14437. # endif
  14438. # endif
  14439. # endif
  14440. # endif
  14441. #endif
  14442. int
  14443. main ()
  14444. {
  14445. char *p = (char *) alloca (1);
  14446. if (p) return 0;
  14447. ;
  14448. return 0;
  14449. }
  14450. _ACEOF
  14451. if ac_fn_c_try_link "$LINENO"; then :
  14452. ac_cv_func_alloca_works=yes
  14453. else
  14454. ac_cv_func_alloca_works=no
  14455. fi
  14456. rm -f core conftest.err conftest.$ac_objext \
  14457. conftest$ac_exeext conftest.$ac_ext
  14458. fi
  14459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14460. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14461. if test $ac_cv_func_alloca_works = yes; then
  14462. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14463. else
  14464. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14465. # that cause trouble. Some versions do not even contain alloca or
  14466. # contain a buggy version. If you still want to use their alloca,
  14467. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14468. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14469. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14471. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14472. if ${ac_cv_os_cray+:} false; then :
  14473. $as_echo_n "(cached) " >&6
  14474. else
  14475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14476. /* end confdefs.h. */
  14477. #if defined CRAY && ! defined CRAY2
  14478. webecray
  14479. #else
  14480. wenotbecray
  14481. #endif
  14482. _ACEOF
  14483. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14484. $EGREP "webecray" >/dev/null 2>&1; then :
  14485. ac_cv_os_cray=yes
  14486. else
  14487. ac_cv_os_cray=no
  14488. fi
  14489. rm -f conftest*
  14490. fi
  14491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14492. $as_echo "$ac_cv_os_cray" >&6; }
  14493. if test $ac_cv_os_cray = yes; then
  14494. for ac_func in _getb67 GETB67 getb67; do
  14495. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14496. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14497. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14498. cat >>confdefs.h <<_ACEOF
  14499. #define CRAY_STACKSEG_END $ac_func
  14500. _ACEOF
  14501. break
  14502. fi
  14503. done
  14504. fi
  14505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14506. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14507. if ${ac_cv_c_stack_direction+:} false; then :
  14508. $as_echo_n "(cached) " >&6
  14509. else
  14510. if test "$cross_compiling" = yes; then :
  14511. ac_cv_c_stack_direction=0
  14512. else
  14513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14514. /* end confdefs.h. */
  14515. $ac_includes_default
  14516. int
  14517. find_stack_direction (int *addr, int depth)
  14518. {
  14519. int dir, dummy = 0;
  14520. if (! addr)
  14521. addr = &dummy;
  14522. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14523. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14524. return dir + dummy;
  14525. }
  14526. int
  14527. main (int argc, char **argv)
  14528. {
  14529. return find_stack_direction (0, argc + !argv + 20) < 0;
  14530. }
  14531. _ACEOF
  14532. if ac_fn_c_try_run "$LINENO"; then :
  14533. ac_cv_c_stack_direction=1
  14534. else
  14535. ac_cv_c_stack_direction=-1
  14536. fi
  14537. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14538. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14539. fi
  14540. fi
  14541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14542. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14543. cat >>confdefs.h <<_ACEOF
  14544. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14545. _ACEOF
  14546. fi
  14547. ;;
  14548. esac
  14549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14550. $as_echo_n "checking for working memcmp... " >&6; }
  14551. if ${ac_cv_func_memcmp_working+:} false; then :
  14552. $as_echo_n "(cached) " >&6
  14553. else
  14554. if test "$cross_compiling" = yes; then :
  14555. ac_cv_func_memcmp_working=no
  14556. else
  14557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14558. /* end confdefs.h. */
  14559. $ac_includes_default
  14560. int
  14561. main ()
  14562. {
  14563. /* Some versions of memcmp are not 8-bit clean. */
  14564. char c0 = '\100', c1 = '\200', c2 = '\201';
  14565. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14566. return 1;
  14567. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14568. or more and with at least one buffer not starting on a 4-byte boundary.
  14569. William Lewis provided this test program. */
  14570. {
  14571. char foo[21];
  14572. char bar[21];
  14573. int i;
  14574. for (i = 0; i < 4; i++)
  14575. {
  14576. char *a = foo + i;
  14577. char *b = bar + i;
  14578. strcpy (a, "--------01111111");
  14579. strcpy (b, "--------10000000");
  14580. if (memcmp (a, b, 16) >= 0)
  14581. return 1;
  14582. }
  14583. return 0;
  14584. }
  14585. ;
  14586. return 0;
  14587. }
  14588. _ACEOF
  14589. if ac_fn_c_try_run "$LINENO"; then :
  14590. ac_cv_func_memcmp_working=yes
  14591. else
  14592. ac_cv_func_memcmp_working=no
  14593. fi
  14594. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14595. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14596. fi
  14597. fi
  14598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14599. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14600. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14601. *" memcmp.$ac_objext "* ) ;;
  14602. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14603. ;;
  14604. esac
  14605. if test x$ac_cv_func_memcmp_working = xyes; then
  14606. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14607. fi
  14608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14609. $as_echo_n "checking for working strtod... " >&6; }
  14610. if ${ac_cv_func_strtod+:} false; then :
  14611. $as_echo_n "(cached) " >&6
  14612. else
  14613. if test "$cross_compiling" = yes; then :
  14614. ac_cv_func_strtod=no
  14615. else
  14616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14617. /* end confdefs.h. */
  14618. $ac_includes_default
  14619. #ifndef strtod
  14620. double strtod ();
  14621. #endif
  14622. int
  14623. main()
  14624. {
  14625. {
  14626. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14627. char *string = " +69";
  14628. char *term;
  14629. double value;
  14630. value = strtod (string, &term);
  14631. if (value != 69 || term != (string + 4))
  14632. return 1;
  14633. }
  14634. {
  14635. /* Under Solaris 2.4, strtod returns the wrong value for the
  14636. terminating character under some conditions. */
  14637. char *string = "NaN";
  14638. char *term;
  14639. strtod (string, &term);
  14640. if (term != string && *(term - 1) == 0)
  14641. return 1;
  14642. }
  14643. return 0;
  14644. }
  14645. _ACEOF
  14646. if ac_fn_c_try_run "$LINENO"; then :
  14647. ac_cv_func_strtod=yes
  14648. else
  14649. ac_cv_func_strtod=no
  14650. fi
  14651. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14652. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14653. fi
  14654. fi
  14655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14656. $as_echo "$ac_cv_func_strtod" >&6; }
  14657. if test $ac_cv_func_strtod = no; then
  14658. case " $LIBOBJS " in
  14659. *" strtod.$ac_objext "* ) ;;
  14660. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14661. ;;
  14662. esac
  14663. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14664. if test "x$ac_cv_func_pow" = xyes; then :
  14665. fi
  14666. if test $ac_cv_func_pow = no; then
  14667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14668. $as_echo_n "checking for pow in -lm... " >&6; }
  14669. if ${ac_cv_lib_m_pow+:} false; then :
  14670. $as_echo_n "(cached) " >&6
  14671. else
  14672. ac_check_lib_save_LIBS=$LIBS
  14673. LIBS="-lm $LIBS"
  14674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14675. /* end confdefs.h. */
  14676. /* Override any GCC internal prototype to avoid an error.
  14677. Use char because int might match the return type of a GCC
  14678. builtin and then its argument prototype would still apply. */
  14679. #ifdef __cplusplus
  14680. extern "C"
  14681. #endif
  14682. char pow ();
  14683. int
  14684. main ()
  14685. {
  14686. return pow ();
  14687. ;
  14688. return 0;
  14689. }
  14690. _ACEOF
  14691. if ac_fn_c_try_link "$LINENO"; then :
  14692. ac_cv_lib_m_pow=yes
  14693. else
  14694. ac_cv_lib_m_pow=no
  14695. fi
  14696. rm -f core conftest.err conftest.$ac_objext \
  14697. conftest$ac_exeext conftest.$ac_ext
  14698. LIBS=$ac_check_lib_save_LIBS
  14699. fi
  14700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14701. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14702. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14703. POW_LIB=-lm
  14704. else
  14705. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14706. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14707. fi
  14708. fi
  14709. fi
  14710. if test x$ac_cv_func_strtod = xyes; then
  14711. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14712. fi
  14713. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14714. if test "x$ac_cv_func_mprotect" = xyes; then :
  14715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14716. /* end confdefs.h. */
  14717. #include <sys/types.h>
  14718. #include <sys/mman.h>
  14719. int
  14720. main ()
  14721. {
  14722. ;
  14723. return 0;
  14724. }
  14725. _ACEOF
  14726. if ac_fn_c_try_compile "$LINENO"; then :
  14727. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14728. fi
  14729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14730. fi
  14731. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat wcsdup wcsstr wcscmp wcsncmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll _Exit
  14732. do :
  14733. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14734. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14735. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14736. cat >>confdefs.h <<_ACEOF
  14737. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14738. _ACEOF
  14739. fi
  14740. done
  14741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14742. $as_echo_n "checking for pow in -lm... " >&6; }
  14743. if ${ac_cv_lib_m_pow+:} false; then :
  14744. $as_echo_n "(cached) " >&6
  14745. else
  14746. ac_check_lib_save_LIBS=$LIBS
  14747. LIBS="-lm $LIBS"
  14748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14749. /* end confdefs.h. */
  14750. /* Override any GCC internal prototype to avoid an error.
  14751. Use char because int might match the return type of a GCC
  14752. builtin and then its argument prototype would still apply. */
  14753. #ifdef __cplusplus
  14754. extern "C"
  14755. #endif
  14756. char pow ();
  14757. int
  14758. main ()
  14759. {
  14760. return pow ();
  14761. ;
  14762. return 0;
  14763. }
  14764. _ACEOF
  14765. if ac_fn_c_try_link "$LINENO"; then :
  14766. ac_cv_lib_m_pow=yes
  14767. else
  14768. ac_cv_lib_m_pow=no
  14769. fi
  14770. rm -f core conftest.err conftest.$ac_objext \
  14771. conftest$ac_exeext conftest.$ac_ext
  14772. LIBS=$ac_check_lib_save_LIBS
  14773. fi
  14774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14775. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14776. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14777. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14778. fi
  14779. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14780. do :
  14781. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14782. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14783. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14784. cat >>confdefs.h <<_ACEOF
  14785. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14786. _ACEOF
  14787. fi
  14788. done
  14789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14790. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14791. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14792. $as_echo_n "(cached) " >&6
  14793. else
  14794. ac_check_lib_save_LIBS=$LIBS
  14795. LIBS="-liconv $LIBS"
  14796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14797. /* end confdefs.h. */
  14798. /* Override any GCC internal prototype to avoid an error.
  14799. Use char because int might match the return type of a GCC
  14800. builtin and then its argument prototype would still apply. */
  14801. #ifdef __cplusplus
  14802. extern "C"
  14803. #endif
  14804. char iconv_open ();
  14805. int
  14806. main ()
  14807. {
  14808. return iconv_open ();
  14809. ;
  14810. return 0;
  14811. }
  14812. _ACEOF
  14813. if ac_fn_c_try_link "$LINENO"; then :
  14814. ac_cv_lib_iconv_iconv_open=yes
  14815. else
  14816. ac_cv_lib_iconv_iconv_open=no
  14817. fi
  14818. rm -f core conftest.err conftest.$ac_objext \
  14819. conftest$ac_exeext conftest.$ac_ext
  14820. LIBS=$ac_check_lib_save_LIBS
  14821. fi
  14822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14823. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14824. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14825. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14826. fi
  14827. for ac_func in iconv
  14828. do :
  14829. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14830. if test "x$ac_cv_func_iconv" = xyes; then :
  14831. cat >>confdefs.h <<_ACEOF
  14832. #define HAVE_ICONV 1
  14833. _ACEOF
  14834. fi
  14835. done
  14836. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14837. "
  14838. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14839. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14840. fi
  14841. for ac_header in libunwind.h
  14842. do :
  14843. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14844. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14845. cat >>confdefs.h <<_ACEOF
  14846. #define HAVE_LIBUNWIND_H 1
  14847. _ACEOF
  14848. fi
  14849. done
  14850. fi
  14851. # Check whether --enable-gcc-atomics was given.
  14852. if test "${enable_gcc_atomics+set}" = set; then :
  14853. enableval=$enable_gcc_atomics;
  14854. else
  14855. enable_gcc_atomics=yes
  14856. fi
  14857. if test x$enable_gcc_atomics = xyes; then
  14858. have_gcc_atomics=no
  14859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14860. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14862. /* end confdefs.h. */
  14863. int
  14864. main ()
  14865. {
  14866. int a;
  14867. void *x, *y, *z;
  14868. __sync_lock_test_and_set(&a, 4);
  14869. __sync_lock_test_and_set(&x, y);
  14870. __sync_fetch_and_add(&a, 1);
  14871. __sync_bool_compare_and_swap(&a, 5, 10);
  14872. __sync_bool_compare_and_swap(&x, y, z);
  14873. ;
  14874. return 0;
  14875. }
  14876. _ACEOF
  14877. if ac_fn_c_try_link "$LINENO"; then :
  14878. have_gcc_atomics=yes
  14879. fi
  14880. rm -f core conftest.err conftest.$ac_objext \
  14881. conftest$ac_exeext conftest.$ac_ext
  14882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14883. $as_echo "$have_gcc_atomics" >&6; }
  14884. if test x$have_gcc_atomics = xyes; then
  14885. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14886. else
  14887. # See if we have the minimum operation needed for GCC atomics
  14888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14889. /* end confdefs.h. */
  14890. int
  14891. main ()
  14892. {
  14893. int a;
  14894. __sync_lock_test_and_set(&a, 1);
  14895. __sync_lock_release(&a);
  14896. ;
  14897. return 0;
  14898. }
  14899. _ACEOF
  14900. if ac_fn_c_try_link "$LINENO"; then :
  14901. have_gcc_sync_lock_test_and_set=yes
  14902. fi
  14903. rm -f core conftest.err conftest.$ac_objext \
  14904. conftest$ac_exeext conftest.$ac_ext
  14905. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14906. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14907. fi
  14908. fi
  14909. fi
  14910. # Standard C sources
  14911. SOURCES="$SOURCES $srcdir/src/*.c"
  14912. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14913. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14914. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14915. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14916. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14917. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14918. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14919. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14920. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14921. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14922. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14923. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14924. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14925. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14926. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14927. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14928. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14929. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14930. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14931. # Check whether --enable-atomic was given.
  14932. if test "${enable_atomic+set}" = set; then :
  14933. enableval=$enable_atomic;
  14934. else
  14935. enable_atomic=yes
  14936. fi
  14937. if test x$enable_atomic != xyes; then
  14938. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14939. else
  14940. SUMMARY_modules="${SUMMARY_modules} atomic"
  14941. fi
  14942. # Check whether --enable-audio was given.
  14943. if test "${enable_audio+set}" = set; then :
  14944. enableval=$enable_audio;
  14945. else
  14946. enable_audio=yes
  14947. fi
  14948. if test x$enable_audio != xyes; then
  14949. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14950. else
  14951. SUMMARY_modules="${SUMMARY_modules} audio"
  14952. fi
  14953. # Check whether --enable-video was given.
  14954. if test "${enable_video+set}" = set; then :
  14955. enableval=$enable_video;
  14956. else
  14957. enable_video=yes
  14958. fi
  14959. if test x$enable_video != xyes; then
  14960. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14961. else
  14962. SUMMARY_modules="${SUMMARY_modules} video"
  14963. fi
  14964. # Check whether --enable-render was given.
  14965. if test "${enable_render+set}" = set; then :
  14966. enableval=$enable_render;
  14967. else
  14968. enable_render=yes
  14969. fi
  14970. if test x$enable_render != xyes; then
  14971. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14972. else
  14973. SUMMARY_modules="${SUMMARY_modules} render"
  14974. fi
  14975. # Check whether --enable-events was given.
  14976. if test "${enable_events+set}" = set; then :
  14977. enableval=$enable_events;
  14978. else
  14979. enable_events=yes
  14980. fi
  14981. if test x$enable_events != xyes; then
  14982. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14983. else
  14984. SUMMARY_modules="${SUMMARY_modules} events"
  14985. fi
  14986. # Check whether --enable-joystick was given.
  14987. if test "${enable_joystick+set}" = set; then :
  14988. enableval=$enable_joystick;
  14989. else
  14990. enable_joystick=yes
  14991. fi
  14992. if test x$enable_joystick != xyes; then
  14993. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14994. else
  14995. SUMMARY_modules="${SUMMARY_modules} joystick"
  14996. fi
  14997. # Check whether --enable-haptic was given.
  14998. if test "${enable_haptic+set}" = set; then :
  14999. enableval=$enable_haptic;
  15000. else
  15001. enable_haptic=yes
  15002. fi
  15003. if test x$enable_haptic != xyes; then
  15004. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15005. else
  15006. SUMMARY_modules="${SUMMARY_modules} haptic"
  15007. fi
  15008. # Check whether --enable-sensor was given.
  15009. if test "${enable_sensor+set}" = set; then :
  15010. enableval=$enable_sensor;
  15011. else
  15012. enable_sensor=yes
  15013. fi
  15014. if test x$enable_sensor != xyes; then
  15015. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15016. else
  15017. SUMMARY_modules="${SUMMARY_modules} sensor"
  15018. fi
  15019. # Check whether --enable-power was given.
  15020. if test "${enable_power+set}" = set; then :
  15021. enableval=$enable_power;
  15022. else
  15023. enable_power=yes
  15024. fi
  15025. if test x$enable_power != xyes; then
  15026. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15027. else
  15028. SUMMARY_modules="${SUMMARY_modules} power"
  15029. fi
  15030. # Check whether --enable-filesystem was given.
  15031. if test "${enable_filesystem+set}" = set; then :
  15032. enableval=$enable_filesystem;
  15033. else
  15034. enable_filesystem=yes
  15035. fi
  15036. if test x$enable_filesystem != xyes; then
  15037. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15038. else
  15039. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15040. fi
  15041. # Check whether --enable-threads was given.
  15042. if test "${enable_threads+set}" = set; then :
  15043. enableval=$enable_threads;
  15044. else
  15045. enable_threads=yes
  15046. fi
  15047. if test x$enable_threads != xyes; then
  15048. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15049. else
  15050. SUMMARY_modules="${SUMMARY_modules} threads"
  15051. fi
  15052. # Check whether --enable-timers was given.
  15053. if test "${enable_timers+set}" = set; then :
  15054. enableval=$enable_timers;
  15055. else
  15056. enable_timers=yes
  15057. fi
  15058. if test x$enable_timers != xyes; then
  15059. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15060. else
  15061. SUMMARY_modules="${SUMMARY_modules} timers"
  15062. fi
  15063. # Check whether --enable-file was given.
  15064. if test "${enable_file+set}" = set; then :
  15065. enableval=$enable_file;
  15066. else
  15067. enable_file=yes
  15068. fi
  15069. if test x$enable_file != xyes; then
  15070. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15071. else
  15072. SUMMARY_modules="${SUMMARY_modules} file"
  15073. fi
  15074. # Check whether --enable-loadso was given.
  15075. if test "${enable_loadso+set}" = set; then :
  15076. enableval=$enable_loadso;
  15077. else
  15078. enable_loadso=yes
  15079. fi
  15080. if test x$enable_loadso != xyes; then
  15081. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15082. else
  15083. SUMMARY_modules="${SUMMARY_modules} loadso"
  15084. fi
  15085. # Check whether --enable-cpuinfo was given.
  15086. if test "${enable_cpuinfo+set}" = set; then :
  15087. enableval=$enable_cpuinfo;
  15088. else
  15089. enable_cpuinfo=yes
  15090. fi
  15091. if test x$enable_cpuinfo != xyes; then
  15092. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15093. else
  15094. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15095. fi
  15096. # Check whether --enable-assembly was given.
  15097. if test "${enable_assembly+set}" = set; then :
  15098. enableval=$enable_assembly;
  15099. else
  15100. enable_assembly=yes
  15101. fi
  15102. if test x$enable_assembly = xyes; then
  15103. SUMMARY_modules="${SUMMARY_modules} assembly"
  15104. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15105. # Make sure that we don't generate floating point code that would
  15106. # cause illegal instruction exceptions on older processors
  15107. case "$host" in
  15108. *-*-darwin*)
  15109. # Don't need to worry about Apple hardware, it's all SSE capable
  15110. default_ssemath=yes
  15111. ;;
  15112. *64-*-*)
  15113. # x86 64-bit architectures all have SSE instructions
  15114. default_ssemath=yes
  15115. ;;
  15116. *)
  15117. default_ssemath=no
  15118. ;;
  15119. esac
  15120. # Check whether --enable-ssemath was given.
  15121. if test "${enable_ssemath+set}" = set; then :
  15122. enableval=$enable_ssemath;
  15123. else
  15124. enable_ssemath=$default_ssemath
  15125. fi
  15126. if test x$enable_ssemath = xno; then
  15127. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15128. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15129. fi
  15130. fi
  15131. # Check whether --enable-mmx was given.
  15132. if test "${enable_mmx+set}" = set; then :
  15133. enableval=$enable_mmx;
  15134. else
  15135. enable_mmx=yes
  15136. fi
  15137. if test x$enable_mmx = xyes; then
  15138. save_CFLAGS="$CFLAGS"
  15139. have_gcc_mmx=no
  15140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15141. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15142. mmx_CFLAGS="-mmmx"
  15143. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15145. /* end confdefs.h. */
  15146. #ifdef __MINGW32__
  15147. #include <_mingw.h>
  15148. #ifdef __MINGW64_VERSION_MAJOR
  15149. #include <intrin.h>
  15150. #else
  15151. #include <mmintrin.h>
  15152. #endif
  15153. #else
  15154. #include <mmintrin.h>
  15155. #endif
  15156. #ifndef __MMX__
  15157. #error Assembler CPP flag not enabled
  15158. #endif
  15159. int
  15160. main ()
  15161. {
  15162. ;
  15163. return 0;
  15164. }
  15165. _ACEOF
  15166. if ac_fn_c_try_compile "$LINENO"; then :
  15167. have_gcc_mmx=yes
  15168. fi
  15169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15171. $as_echo "$have_gcc_mmx" >&6; }
  15172. CFLAGS="$save_CFLAGS"
  15173. if test x$have_gcc_mmx = xyes; then
  15174. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15175. SUMMARY_math="${SUMMARY_math} mmx"
  15176. fi
  15177. fi
  15178. # Check whether --enable-3dnow was given.
  15179. if test "${enable_3dnow+set}" = set; then :
  15180. enableval=$enable_3dnow;
  15181. else
  15182. enable_3dnow=yes
  15183. fi
  15184. if test x$enable_3dnow = xyes; then
  15185. save_CFLAGS="$CFLAGS"
  15186. have_gcc_3dnow=no
  15187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15188. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15189. amd3dnow_CFLAGS="-m3dnow"
  15190. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15192. /* end confdefs.h. */
  15193. #include <mm3dnow.h>
  15194. #ifndef __3dNOW__
  15195. #error Assembler CPP flag not enabled
  15196. #endif
  15197. int
  15198. main ()
  15199. {
  15200. void *p = 0;
  15201. _m_prefetch(p);
  15202. ;
  15203. return 0;
  15204. }
  15205. _ACEOF
  15206. if ac_fn_c_try_link "$LINENO"; then :
  15207. have_gcc_3dnow=yes
  15208. fi
  15209. rm -f core conftest.err conftest.$ac_objext \
  15210. conftest$ac_exeext conftest.$ac_ext
  15211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15212. $as_echo "$have_gcc_3dnow" >&6; }
  15213. CFLAGS="$save_CFLAGS"
  15214. if test x$have_gcc_3dnow = xyes; then
  15215. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15216. SUMMARY_math="${SUMMARY_math} 3dnow"
  15217. fi
  15218. fi
  15219. # Check whether --enable-sse was given.
  15220. if test "${enable_sse+set}" = set; then :
  15221. enableval=$enable_sse;
  15222. else
  15223. enable_sse=yes
  15224. fi
  15225. if test x$enable_sse = xyes; then
  15226. save_CFLAGS="$CFLAGS"
  15227. have_gcc_sse=no
  15228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15229. $as_echo_n "checking for GCC -msse option... " >&6; }
  15230. sse_CFLAGS="-msse"
  15231. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15233. /* end confdefs.h. */
  15234. #ifdef __MINGW32__
  15235. #include <_mingw.h>
  15236. #ifdef __MINGW64_VERSION_MAJOR
  15237. #include <intrin.h>
  15238. #else
  15239. #include <xmmintrin.h>
  15240. #endif
  15241. #else
  15242. #include <xmmintrin.h>
  15243. #endif
  15244. #ifndef __SSE__
  15245. #error Assembler CPP flag not enabled
  15246. #endif
  15247. int
  15248. main ()
  15249. {
  15250. ;
  15251. return 0;
  15252. }
  15253. _ACEOF
  15254. if ac_fn_c_try_compile "$LINENO"; then :
  15255. have_gcc_sse=yes
  15256. fi
  15257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15259. $as_echo "$have_gcc_sse" >&6; }
  15260. CFLAGS="$save_CFLAGS"
  15261. if test x$have_gcc_sse = xyes; then
  15262. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15263. SUMMARY_math="${SUMMARY_math} sse"
  15264. fi
  15265. fi
  15266. # Check whether --enable-sse2 was given.
  15267. if test "${enable_sse2+set}" = set; then :
  15268. enableval=$enable_sse2;
  15269. else
  15270. enable_sse2=$default_ssemath
  15271. fi
  15272. if test x$enable_sse2 = xyes; then
  15273. save_CFLAGS="$CFLAGS"
  15274. have_gcc_sse2=no
  15275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15276. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15277. sse2_CFLAGS="-msse2"
  15278. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15280. /* end confdefs.h. */
  15281. #ifdef __MINGW32__
  15282. #include <_mingw.h>
  15283. #ifdef __MINGW64_VERSION_MAJOR
  15284. #include <intrin.h>
  15285. #else
  15286. #include <emmintrin.h>
  15287. #endif
  15288. #else
  15289. #include <emmintrin.h>
  15290. #endif
  15291. #ifndef __SSE2__
  15292. #error Assembler CPP flag not enabled
  15293. #endif
  15294. int
  15295. main ()
  15296. {
  15297. ;
  15298. return 0;
  15299. }
  15300. _ACEOF
  15301. if ac_fn_c_try_compile "$LINENO"; then :
  15302. have_gcc_sse2=yes
  15303. fi
  15304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15306. $as_echo "$have_gcc_sse2" >&6; }
  15307. CFLAGS="$save_CFLAGS"
  15308. if test x$have_gcc_sse2 = xyes; then
  15309. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15310. SUMMARY_math="${SUMMARY_math} sse2"
  15311. fi
  15312. fi
  15313. # Check whether --enable-sse3 was given.
  15314. if test "${enable_sse3+set}" = set; then :
  15315. enableval=$enable_sse3;
  15316. else
  15317. enable_sse3=$default_ssemath
  15318. fi
  15319. if test x$enable_sse3 = xyes; then
  15320. save_CFLAGS="$CFLAGS"
  15321. have_gcc_sse3=no
  15322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15323. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15324. sse3_CFLAGS="-msse3"
  15325. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15327. /* end confdefs.h. */
  15328. #ifdef __MINGW32__
  15329. #include <_mingw.h>
  15330. #ifdef __MINGW64_VERSION_MAJOR
  15331. #include <intrin.h>
  15332. #else
  15333. #include <pmmintrin.h>
  15334. #endif
  15335. #else
  15336. #include <pmmintrin.h>
  15337. #endif
  15338. #ifndef __SSE2__
  15339. #error Assembler CPP flag not enabled
  15340. #endif
  15341. int
  15342. main ()
  15343. {
  15344. ;
  15345. return 0;
  15346. }
  15347. _ACEOF
  15348. if ac_fn_c_try_compile "$LINENO"; then :
  15349. have_gcc_sse3=yes
  15350. fi
  15351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15353. $as_echo "$have_gcc_sse3" >&6; }
  15354. CFLAGS="$save_CFLAGS"
  15355. if test x$have_gcc_sse3 = xyes; then
  15356. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15357. SUMMARY_math="${SUMMARY_math} sse3"
  15358. fi
  15359. fi
  15360. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15361. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15362. have_immintrin_h_hdr=yes
  15363. else
  15364. have_immintrin_h_hdr=no
  15365. fi
  15366. if test x$have_immintrin_h_hdr = xyes; then
  15367. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15368. fi
  15369. # Check whether --enable-altivec was given.
  15370. if test "${enable_altivec+set}" = set; then :
  15371. enableval=$enable_altivec;
  15372. else
  15373. enable_altivec=yes
  15374. fi
  15375. if test x$enable_altivec = xyes; then
  15376. save_CFLAGS="$CFLAGS"
  15377. have_gcc_altivec=no
  15378. have_altivec_h_hdr=no
  15379. altivec_CFLAGS="-maltivec"
  15380. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15382. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15384. /* end confdefs.h. */
  15385. #include <altivec.h>
  15386. vector unsigned int vzero() {
  15387. return vec_splat_u32(0);
  15388. }
  15389. int
  15390. main ()
  15391. {
  15392. ;
  15393. return 0;
  15394. }
  15395. _ACEOF
  15396. if ac_fn_c_try_compile "$LINENO"; then :
  15397. have_gcc_altivec=yes
  15398. have_altivec_h_hdr=yes
  15399. fi
  15400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15402. $as_echo "$have_gcc_altivec" >&6; }
  15403. if test x$have_gcc_altivec = xno; then
  15404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15405. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15407. /* end confdefs.h. */
  15408. vector unsigned int vzero() {
  15409. return vec_splat_u32(0);
  15410. }
  15411. int
  15412. main ()
  15413. {
  15414. ;
  15415. return 0;
  15416. }
  15417. _ACEOF
  15418. if ac_fn_c_try_compile "$LINENO"; then :
  15419. have_gcc_altivec=yes
  15420. fi
  15421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15423. $as_echo "$have_gcc_altivec" >&6; }
  15424. fi
  15425. if test x$have_gcc_altivec = xno; then
  15426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15427. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15428. altivec_CFLAGS="-faltivec"
  15429. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15431. /* end confdefs.h. */
  15432. #include <altivec.h>
  15433. vector unsigned int vzero() {
  15434. return vec_splat_u32(0);
  15435. }
  15436. int
  15437. main ()
  15438. {
  15439. ;
  15440. return 0;
  15441. }
  15442. _ACEOF
  15443. if ac_fn_c_try_compile "$LINENO"; then :
  15444. have_gcc_altivec=yes
  15445. have_altivec_h_hdr=yes
  15446. fi
  15447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15449. $as_echo "$have_gcc_altivec" >&6; }
  15450. fi
  15451. if test x$have_gcc_altivec = xno; then
  15452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15453. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15455. /* end confdefs.h. */
  15456. vector unsigned int vzero() {
  15457. return vec_splat_u32(0);
  15458. }
  15459. int
  15460. main ()
  15461. {
  15462. ;
  15463. return 0;
  15464. }
  15465. _ACEOF
  15466. if ac_fn_c_try_compile "$LINENO"; then :
  15467. have_gcc_altivec=yes
  15468. fi
  15469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15471. $as_echo "$have_gcc_altivec" >&6; }
  15472. fi
  15473. CFLAGS="$save_CFLAGS"
  15474. if test x$have_gcc_altivec = xyes; then
  15475. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15476. if test x$have_altivec_h_hdr = xyes; then
  15477. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15478. fi
  15479. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15480. SUMMARY_math="${SUMMARY_math} altivec"
  15481. fi
  15482. fi
  15483. fi
  15484. CheckOSS()
  15485. {
  15486. # Check whether --enable-oss was given.
  15487. if test "${enable_oss+set}" = set; then :
  15488. enableval=$enable_oss;
  15489. else
  15490. enable_oss=maybe
  15491. fi
  15492. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15493. # use sndio instead. So on there, we default to disabled. You can force
  15494. # it on if you really want, though.
  15495. if test x$enable_oss = xmaybe; then
  15496. enable_oss=yes
  15497. case "$host" in
  15498. *-*-openbsd*)
  15499. enable_oss=no;;
  15500. esac
  15501. fi
  15502. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15504. $as_echo_n "checking for OSS audio support... " >&6; }
  15505. have_oss=no
  15506. if test x$have_oss != xyes; then
  15507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15508. /* end confdefs.h. */
  15509. #include <sys/soundcard.h>
  15510. int
  15511. main ()
  15512. {
  15513. int arg = SNDCTL_DSP_SETFRAGMENT;
  15514. ;
  15515. return 0;
  15516. }
  15517. _ACEOF
  15518. if ac_fn_c_try_compile "$LINENO"; then :
  15519. have_oss=yes
  15520. fi
  15521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15522. fi
  15523. if test x$have_oss != xyes; then
  15524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15525. /* end confdefs.h. */
  15526. #include <soundcard.h>
  15527. int
  15528. main ()
  15529. {
  15530. int arg = SNDCTL_DSP_SETFRAGMENT;
  15531. ;
  15532. return 0;
  15533. }
  15534. _ACEOF
  15535. if ac_fn_c_try_compile "$LINENO"; then :
  15536. have_oss=yes
  15537. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15538. fi
  15539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15540. fi
  15541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15542. $as_echo "$have_oss" >&6; }
  15543. if test x$have_oss = xyes; then
  15544. SUMMARY_audio="${SUMMARY_audio} oss"
  15545. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15546. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15547. have_audio=yes
  15548. # We may need to link with ossaudio emulation library
  15549. case "$host" in
  15550. *-*-openbsd*|*-*-netbsd*)
  15551. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15552. esac
  15553. fi
  15554. fi
  15555. }
  15556. CheckALSA()
  15557. {
  15558. # Check whether --enable-alsa was given.
  15559. if test "${enable_alsa+set}" = set; then :
  15560. enableval=$enable_alsa;
  15561. else
  15562. enable_alsa=yes
  15563. fi
  15564. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15565. alsa_save_CFLAGS="$CFLAGS"
  15566. alsa_save_LDFLAGS="$LDFLAGS"
  15567. alsa_save_LIBS="$LIBS"
  15568. alsa_found=yes
  15569. # Check whether --with-alsa-prefix was given.
  15570. if test "${with_alsa_prefix+set}" = set; then :
  15571. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15572. else
  15573. alsa_prefix=""
  15574. fi
  15575. # Check whether --with-alsa-inc-prefix was given.
  15576. if test "${with_alsa_inc_prefix+set}" = set; then :
  15577. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15578. else
  15579. alsa_inc_prefix=""
  15580. fi
  15581. # Check whether --enable-alsatest was given.
  15582. if test "${enable_alsatest+set}" = set; then :
  15583. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15584. else
  15585. enable_alsatest=yes
  15586. fi
  15587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15588. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15589. if test "$alsa_inc_prefix" != "" ; then
  15590. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15591. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15592. fi
  15593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15594. $as_echo "$ALSA_CFLAGS" >&6; }
  15595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15596. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15597. if test "$alsa_prefix" != "" ; then
  15598. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15599. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15600. fi
  15601. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15602. LIBS=`echo $LIBS | sed 's/-lm//'`
  15603. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15604. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15605. LIBS=`echo $LIBS | sed 's/ //'`
  15606. LIBS="$ALSA_LIBS $LIBS"
  15607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15608. $as_echo "$ALSA_LIBS" >&6; }
  15609. min_alsa_version=1.0.11
  15610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15611. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15612. no_alsa=""
  15613. alsa_min_major_version=`echo $min_alsa_version | \
  15614. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15615. alsa_min_minor_version=`echo $min_alsa_version | \
  15616. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15617. alsa_min_micro_version=`echo $min_alsa_version | \
  15618. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15619. ac_ext=c
  15620. ac_cpp='$CPP $CPPFLAGS'
  15621. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15622. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15623. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15625. /* end confdefs.h. */
  15626. #include <alsa/asoundlib.h>
  15627. int
  15628. main ()
  15629. {
  15630. /* ensure backward compatibility */
  15631. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15632. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15633. #endif
  15634. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15635. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15636. #endif
  15637. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15638. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15639. #endif
  15640. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15641. exit(0);
  15642. # else
  15643. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15644. # error not present
  15645. # endif
  15646. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15647. exit(0);
  15648. # else
  15649. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15650. # error not present
  15651. # endif
  15652. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15653. # error not present
  15654. # endif
  15655. # endif
  15656. # endif
  15657. exit(0);
  15658. ;
  15659. return 0;
  15660. }
  15661. _ACEOF
  15662. if ac_fn_c_try_compile "$LINENO"; then :
  15663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15664. $as_echo "found." >&6; }
  15665. else
  15666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15667. $as_echo "not present." >&6; }
  15668. alsa_found=no
  15669. fi
  15670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15671. ac_ext=c
  15672. ac_cpp='$CPP $CPPFLAGS'
  15673. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15674. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15675. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15676. if test "x$enable_alsatest" = "xyes"; then
  15677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15678. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15679. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15680. $as_echo_n "(cached) " >&6
  15681. else
  15682. ac_check_lib_save_LIBS=$LIBS
  15683. LIBS="-lasound $LIBS"
  15684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15685. /* end confdefs.h. */
  15686. /* Override any GCC internal prototype to avoid an error.
  15687. Use char because int might match the return type of a GCC
  15688. builtin and then its argument prototype would still apply. */
  15689. #ifdef __cplusplus
  15690. extern "C"
  15691. #endif
  15692. char snd_ctl_open ();
  15693. int
  15694. main ()
  15695. {
  15696. return snd_ctl_open ();
  15697. ;
  15698. return 0;
  15699. }
  15700. _ACEOF
  15701. if ac_fn_c_try_link "$LINENO"; then :
  15702. ac_cv_lib_asound_snd_ctl_open=yes
  15703. else
  15704. ac_cv_lib_asound_snd_ctl_open=no
  15705. fi
  15706. rm -f core conftest.err conftest.$ac_objext \
  15707. conftest$ac_exeext conftest.$ac_ext
  15708. LIBS=$ac_check_lib_save_LIBS
  15709. fi
  15710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15711. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15712. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15713. cat >>confdefs.h <<_ACEOF
  15714. #define HAVE_LIBASOUND 1
  15715. _ACEOF
  15716. LIBS="-lasound $LIBS"
  15717. else
  15718. alsa_found=no
  15719. fi
  15720. fi
  15721. if test "x$alsa_found" = "xyes" ; then
  15722. have_alsa=yes
  15723. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15724. LIBS=`echo $LIBS | sed 's/ //'`
  15725. LIBS="-lasound $LIBS"
  15726. fi
  15727. if test "x$alsa_found" = "xno" ; then
  15728. have_alsa=no
  15729. CFLAGS="$alsa_save_CFLAGS"
  15730. LDFLAGS="$alsa_save_LDFLAGS"
  15731. LIBS="$alsa_save_LIBS"
  15732. ALSA_CFLAGS=""
  15733. ALSA_LIBS=""
  15734. fi
  15735. # Restore all flags from before the ALSA detection runs
  15736. CFLAGS="$alsa_save_CFLAGS"
  15737. LDFLAGS="$alsa_save_LDFLAGS"
  15738. LIBS="$alsa_save_LIBS"
  15739. if test x$have_alsa = xyes; then
  15740. # Check whether --enable-alsa-shared was given.
  15741. if test "${enable_alsa_shared+set}" = set; then :
  15742. enableval=$enable_alsa_shared;
  15743. else
  15744. enable_alsa_shared=yes
  15745. fi
  15746. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15747. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15748. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15749. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15750. if test x$have_loadso != xyes && \
  15751. test x$enable_alsa_shared = xyes; then
  15752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15753. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15754. fi
  15755. if test x$have_loadso = xyes && \
  15756. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15757. echo "-- dynamic libasound -> $alsa_lib"
  15758. cat >>confdefs.h <<_ACEOF
  15759. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15760. _ACEOF
  15761. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15762. else
  15763. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15764. SUMMARY_audio="${SUMMARY_audio} alsa"
  15765. fi
  15766. have_audio=yes
  15767. fi
  15768. fi
  15769. }
  15770. CheckJACK()
  15771. {
  15772. # Check whether --enable-jack was given.
  15773. if test "${enable_jack+set}" = set; then :
  15774. enableval=$enable_jack;
  15775. else
  15776. enable_jack=yes
  15777. fi
  15778. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15779. pkg_failed=no
  15780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
  15781. $as_echo_n "checking for JACK... " >&6; }
  15782. if test -n "$JACK_CFLAGS"; then
  15783. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15784. elif test -n "$PKG_CONFIG"; then
  15785. if test -n "$PKG_CONFIG" && \
  15786. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15787. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15788. ac_status=$?
  15789. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15790. test $ac_status = 0; }; then
  15791. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15792. else
  15793. pkg_failed=yes
  15794. fi
  15795. else
  15796. pkg_failed=untried
  15797. fi
  15798. if test -n "$JACK_LIBS"; then
  15799. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15800. elif test -n "$PKG_CONFIG"; then
  15801. if test -n "$PKG_CONFIG" && \
  15802. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15803. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15804. ac_status=$?
  15805. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15806. test $ac_status = 0; }; then
  15807. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15808. else
  15809. pkg_failed=yes
  15810. fi
  15811. else
  15812. pkg_failed=untried
  15813. fi
  15814. if test $pkg_failed = yes; then
  15815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15816. $as_echo "no" >&6; }
  15817. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15818. _pkg_short_errors_supported=yes
  15819. else
  15820. _pkg_short_errors_supported=no
  15821. fi
  15822. if test $_pkg_short_errors_supported = yes; then
  15823. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1`
  15824. else
  15825. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1`
  15826. fi
  15827. # Put the nasty error message in config.log where it belongs
  15828. echo "$JACK_PKG_ERRORS" >&5
  15829. audio_jack=no
  15830. elif test $pkg_failed = untried; then
  15831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15832. $as_echo "no" >&6; }
  15833. audio_jack=no
  15834. else
  15835. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15836. JACK_LIBS=$pkg_cv_JACK_LIBS
  15837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15838. $as_echo "yes" >&6; }
  15839. audio_jack=yes
  15840. fi
  15841. if test x$audio_jack = xyes; then
  15842. # Check whether --enable-jack-shared was given.
  15843. if test "${enable_jack_shared+set}" = set; then :
  15844. enableval=$enable_jack_shared;
  15845. else
  15846. enable_jack_shared=yes
  15847. fi
  15848. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15849. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15850. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15851. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15852. if test x$have_loadso != xyes && \
  15853. test x$enable_jack_shared = xyes; then
  15854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15855. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15856. fi
  15857. if test x$have_loadso = xyes && \
  15858. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15859. echo "-- dynamic libjack -> $jack_lib"
  15860. cat >>confdefs.h <<_ACEOF
  15861. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15862. _ACEOF
  15863. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15864. case "$host" in
  15865. # On Solaris, jack must be linked deferred explicitly
  15866. # to prevent undefined symbol failures.
  15867. *-*-solaris*)
  15868. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15869. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15870. esac
  15871. else
  15872. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15873. SUMMARY_audio="${SUMMARY_audio} jack"
  15874. fi
  15875. have_audio=yes
  15876. fi
  15877. fi
  15878. }
  15879. CheckESD()
  15880. {
  15881. # Check whether --enable-esd was given.
  15882. if test "${enable_esd+set}" = set; then :
  15883. enableval=$enable_esd;
  15884. else
  15885. enable_esd=yes
  15886. fi
  15887. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15888. # Check whether --with-esd-prefix was given.
  15889. if test "${with_esd_prefix+set}" = set; then :
  15890. withval=$with_esd_prefix; esd_prefix="$withval"
  15891. else
  15892. esd_prefix=""
  15893. fi
  15894. # Check whether --with-esd-exec-prefix was given.
  15895. if test "${with_esd_exec_prefix+set}" = set; then :
  15896. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15897. else
  15898. esd_exec_prefix=""
  15899. fi
  15900. # Check whether --enable-esdtest was given.
  15901. if test "${enable_esdtest+set}" = set; then :
  15902. enableval=$enable_esdtest;
  15903. else
  15904. enable_esdtest=yes
  15905. fi
  15906. if test x$esd_exec_prefix != x ; then
  15907. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15908. if test x${ESD_CONFIG+set} != xset ; then
  15909. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15910. fi
  15911. fi
  15912. if test x$esd_prefix != x ; then
  15913. esd_args="$esd_args --prefix=$esd_prefix"
  15914. if test x${ESD_CONFIG+set} != xset ; then
  15915. ESD_CONFIG=$esd_prefix/bin/esd-config
  15916. fi
  15917. fi
  15918. # Extract the first word of "esd-config", so it can be a program name with args.
  15919. set dummy esd-config; ac_word=$2
  15920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15921. $as_echo_n "checking for $ac_word... " >&6; }
  15922. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15923. $as_echo_n "(cached) " >&6
  15924. else
  15925. case $ESD_CONFIG in
  15926. [\\/]* | ?:[\\/]*)
  15927. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15928. ;;
  15929. *)
  15930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15931. for as_dir in $PATH
  15932. do
  15933. IFS=$as_save_IFS
  15934. test -z "$as_dir" && as_dir=.
  15935. for ac_exec_ext in '' $ac_executable_extensions; do
  15936. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15937. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15939. break 2
  15940. fi
  15941. done
  15942. done
  15943. IFS=$as_save_IFS
  15944. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15945. ;;
  15946. esac
  15947. fi
  15948. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15949. if test -n "$ESD_CONFIG"; then
  15950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15951. $as_echo "$ESD_CONFIG" >&6; }
  15952. else
  15953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15954. $as_echo "no" >&6; }
  15955. fi
  15956. min_esd_version=0.2.8
  15957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15958. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15959. no_esd=""
  15960. if test "$ESD_CONFIG" = "no" ; then
  15961. no_esd=yes
  15962. else
  15963. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15964. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15965. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15966. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15967. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15968. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15969. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15970. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15971. if test "x$enable_esdtest" = "xyes" ; then
  15972. ac_save_CFLAGS="$CFLAGS"
  15973. ac_save_LIBS="$LIBS"
  15974. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15975. LIBS="$LIBS $ESD_LIBS"
  15976. rm -f conf.esdtest
  15977. if test "$cross_compiling" = yes; then :
  15978. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15979. else
  15980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15981. /* end confdefs.h. */
  15982. #include <stdio.h>
  15983. #include <stdlib.h>
  15984. #include <string.h>
  15985. #include <esd.h>
  15986. char*
  15987. my_strdup (char *str)
  15988. {
  15989. char *new_str;
  15990. if (str)
  15991. {
  15992. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15993. strcpy (new_str, str);
  15994. }
  15995. else
  15996. new_str = NULL;
  15997. return new_str;
  15998. }
  15999. int main ()
  16000. {
  16001. int major, minor, micro;
  16002. char *tmp_version;
  16003. system ("touch conf.esdtest");
  16004. /* HP/UX 9 (%@#!) writes to sscanf strings */
  16005. tmp_version = my_strdup("$min_esd_version");
  16006. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  16007. printf("%s, bad version string\n", "$min_esd_version");
  16008. exit(1);
  16009. }
  16010. if (($esd_major_version > major) ||
  16011. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16012. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16013. {
  16014. return 0;
  16015. }
  16016. else
  16017. {
  16018. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16019. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16020. printf("*** best to upgrade to the required version.\n");
  16021. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16022. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16023. printf("*** config.cache before re-running configure\n");
  16024. return 1;
  16025. }
  16026. }
  16027. _ACEOF
  16028. if ac_fn_c_try_run "$LINENO"; then :
  16029. else
  16030. no_esd=yes
  16031. fi
  16032. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16033. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16034. fi
  16035. CFLAGS="$ac_save_CFLAGS"
  16036. LIBS="$ac_save_LIBS"
  16037. fi
  16038. fi
  16039. if test "x$no_esd" = x ; then
  16040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16041. $as_echo "yes" >&6; }
  16042. have_esd=yes
  16043. else
  16044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16045. $as_echo "no" >&6; }
  16046. if test "$ESD_CONFIG" = "no" ; then
  16047. echo "*** The esd-config script installed by ESD could not be found"
  16048. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16049. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16050. echo "*** full path to esd-config."
  16051. else
  16052. if test -f conf.esdtest ; then
  16053. :
  16054. else
  16055. echo "*** Could not run ESD test program, checking why..."
  16056. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16057. LIBS="$LIBS $ESD_LIBS"
  16058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16059. /* end confdefs.h. */
  16060. #include <stdio.h>
  16061. #include <esd.h>
  16062. int
  16063. main ()
  16064. {
  16065. return 0;
  16066. ;
  16067. return 0;
  16068. }
  16069. _ACEOF
  16070. if ac_fn_c_try_link "$LINENO"; then :
  16071. echo "*** The test program compiled, but did not run. This usually means"
  16072. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16073. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16074. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16075. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16076. echo "*** is required on your system"
  16077. echo "***"
  16078. echo "*** If you have an old version installed, it is best to remove it, although"
  16079. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16080. else
  16081. echo "*** The test program failed to compile or link. See the file config.log for the"
  16082. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16083. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16084. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16085. fi
  16086. rm -f core conftest.err conftest.$ac_objext \
  16087. conftest$ac_exeext conftest.$ac_ext
  16088. CFLAGS="$ac_save_CFLAGS"
  16089. LIBS="$ac_save_LIBS"
  16090. fi
  16091. fi
  16092. ESD_CFLAGS=""
  16093. ESD_LIBS=""
  16094. have_esd=no
  16095. fi
  16096. rm -f conf.esdtest
  16097. if test x$have_esd = xyes; then
  16098. # Check whether --enable-esd-shared was given.
  16099. if test "${enable_esd_shared+set}" = set; then :
  16100. enableval=$enable_esd_shared;
  16101. else
  16102. enable_esd_shared=yes
  16103. fi
  16104. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16105. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16106. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16107. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16108. if test x$have_loadso != xyes && \
  16109. test x$enable_esd_shared = xyes; then
  16110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16111. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16112. fi
  16113. if test x$have_loadso = xyes && \
  16114. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16115. echo "-- dynamic libesd -> $esd_lib"
  16116. cat >>confdefs.h <<_ACEOF
  16117. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16118. _ACEOF
  16119. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16120. else
  16121. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16122. SUMMARY_audio="${SUMMARY_audio} esd"
  16123. fi
  16124. have_audio=yes
  16125. fi
  16126. fi
  16127. }
  16128. CheckPulseAudio()
  16129. {
  16130. # Check whether --enable-pulseaudio was given.
  16131. if test "${enable_pulseaudio+set}" = set; then :
  16132. enableval=$enable_pulseaudio;
  16133. else
  16134. enable_pulseaudio=yes
  16135. fi
  16136. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16137. pkg_failed=no
  16138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
  16139. $as_echo_n "checking for PULSEAUDIO... " >&6; }
  16140. if test -n "$PULSEAUDIO_CFLAGS"; then
  16141. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16142. elif test -n "$PKG_CONFIG"; then
  16143. if test -n "$PKG_CONFIG" && \
  16144. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16145. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16146. ac_status=$?
  16147. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16148. test $ac_status = 0; }; then
  16149. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16150. else
  16151. pkg_failed=yes
  16152. fi
  16153. else
  16154. pkg_failed=untried
  16155. fi
  16156. if test -n "$PULSEAUDIO_LIBS"; then
  16157. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16158. elif test -n "$PKG_CONFIG"; then
  16159. if test -n "$PKG_CONFIG" && \
  16160. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16161. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16162. ac_status=$?
  16163. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16164. test $ac_status = 0; }; then
  16165. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16166. else
  16167. pkg_failed=yes
  16168. fi
  16169. else
  16170. pkg_failed=untried
  16171. fi
  16172. if test $pkg_failed = yes; then
  16173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16174. $as_echo "no" >&6; }
  16175. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16176. _pkg_short_errors_supported=yes
  16177. else
  16178. _pkg_short_errors_supported=no
  16179. fi
  16180. if test $_pkg_short_errors_supported = yes; then
  16181. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1`
  16182. else
  16183. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1`
  16184. fi
  16185. # Put the nasty error message in config.log where it belongs
  16186. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16187. audio_pulseaudio=no
  16188. elif test $pkg_failed = untried; then
  16189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16190. $as_echo "no" >&6; }
  16191. audio_pulseaudio=no
  16192. else
  16193. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16194. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16196. $as_echo "yes" >&6; }
  16197. audio_pulseaudio=yes
  16198. fi
  16199. if test x$audio_pulseaudio = xyes; then
  16200. # Check whether --enable-pulseaudio-shared was given.
  16201. if test "${enable_pulseaudio_shared+set}" = set; then :
  16202. enableval=$enable_pulseaudio_shared;
  16203. else
  16204. enable_pulseaudio_shared=yes
  16205. fi
  16206. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16207. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16208. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16209. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16210. if test x$have_loadso != xyes && \
  16211. test x$enable_pulseaudio_shared = xyes; then
  16212. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16213. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16214. fi
  16215. if test x$have_loadso = xyes && \
  16216. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16217. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16218. cat >>confdefs.h <<_ACEOF
  16219. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16220. _ACEOF
  16221. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16222. case "$host" in
  16223. # On Solaris, pulseaudio must be linked deferred explicitly
  16224. # to prevent undefined symbol failures.
  16225. *-*-solaris*)
  16226. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16227. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16228. esac
  16229. else
  16230. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16231. SUMMARY_audio="${SUMMARY_audio} pulse"
  16232. fi
  16233. have_audio=yes
  16234. fi
  16235. fi
  16236. }
  16237. CheckARTSC()
  16238. {
  16239. # Check whether --enable-arts was given.
  16240. if test "${enable_arts+set}" = set; then :
  16241. enableval=$enable_arts;
  16242. else
  16243. enable_arts=yes
  16244. fi
  16245. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16246. # Extract the first word of "artsc-config", so it can be a program name with args.
  16247. set dummy artsc-config; ac_word=$2
  16248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16249. $as_echo_n "checking for $ac_word... " >&6; }
  16250. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16251. $as_echo_n "(cached) " >&6
  16252. else
  16253. case $ARTSCONFIG in
  16254. [\\/]* | ?:[\\/]*)
  16255. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16256. ;;
  16257. *)
  16258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16259. for as_dir in $PATH
  16260. do
  16261. IFS=$as_save_IFS
  16262. test -z "$as_dir" && as_dir=.
  16263. for ac_exec_ext in '' $ac_executable_extensions; do
  16264. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16265. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16267. break 2
  16268. fi
  16269. done
  16270. done
  16271. IFS=$as_save_IFS
  16272. ;;
  16273. esac
  16274. fi
  16275. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16276. if test -n "$ARTSCONFIG"; then
  16277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16278. $as_echo "$ARTSCONFIG" >&6; }
  16279. else
  16280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16281. $as_echo "no" >&6; }
  16282. fi
  16283. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16284. : # arts isn't installed
  16285. else
  16286. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16287. ARTS_LIBS=`$ARTSCONFIG --libs`
  16288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16289. $as_echo_n "checking for aRts development environment... " >&6; }
  16290. audio_arts=no
  16291. save_CFLAGS="$CFLAGS"
  16292. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16294. /* end confdefs.h. */
  16295. #include <artsc.h>
  16296. int
  16297. main ()
  16298. {
  16299. arts_stream_t stream;
  16300. ;
  16301. return 0;
  16302. }
  16303. _ACEOF
  16304. if ac_fn_c_try_compile "$LINENO"; then :
  16305. audio_arts=yes
  16306. fi
  16307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16308. CFLAGS="$save_CFLAGS"
  16309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16310. $as_echo "$audio_arts" >&6; }
  16311. if test x$audio_arts = xyes; then
  16312. # Check whether --enable-arts-shared was given.
  16313. if test "${enable_arts_shared+set}" = set; then :
  16314. enableval=$enable_arts_shared;
  16315. else
  16316. enable_arts_shared=yes
  16317. fi
  16318. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16319. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16320. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16321. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16322. if test x$have_loadso != xyes && \
  16323. test x$enable_arts_shared = xyes; then
  16324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16325. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16326. fi
  16327. if test x$have_loadso = xyes && \
  16328. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16329. echo "-- dynamic libartsc -> $arts_lib"
  16330. cat >>confdefs.h <<_ACEOF
  16331. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16332. _ACEOF
  16333. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16334. else
  16335. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16336. SUMMARY_audio="${SUMMARY_audio} arts"
  16337. fi
  16338. have_audio=yes
  16339. fi
  16340. fi
  16341. fi
  16342. }
  16343. CheckNAS()
  16344. {
  16345. # Check whether --enable-nas was given.
  16346. if test "${enable_nas+set}" = set; then :
  16347. enableval=$enable_nas;
  16348. else
  16349. enable_nas=yes
  16350. fi
  16351. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16352. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16353. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16354. have_nas_hdr=yes
  16355. fi
  16356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16357. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16358. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16359. $as_echo_n "(cached) " >&6
  16360. else
  16361. ac_check_lib_save_LIBS=$LIBS
  16362. LIBS="-laudio $LIBS"
  16363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16364. /* end confdefs.h. */
  16365. /* Override any GCC internal prototype to avoid an error.
  16366. Use char because int might match the return type of a GCC
  16367. builtin and then its argument prototype would still apply. */
  16368. #ifdef __cplusplus
  16369. extern "C"
  16370. #endif
  16371. char AuOpenServer ();
  16372. int
  16373. main ()
  16374. {
  16375. return AuOpenServer ();
  16376. ;
  16377. return 0;
  16378. }
  16379. _ACEOF
  16380. if ac_fn_c_try_link "$LINENO"; then :
  16381. ac_cv_lib_audio_AuOpenServer=yes
  16382. else
  16383. ac_cv_lib_audio_AuOpenServer=no
  16384. fi
  16385. rm -f core conftest.err conftest.$ac_objext \
  16386. conftest$ac_exeext conftest.$ac_ext
  16387. LIBS=$ac_check_lib_save_LIBS
  16388. fi
  16389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16390. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16391. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16392. have_nas_lib=yes
  16393. fi
  16394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16395. $as_echo_n "checking for NAS audio support... " >&6; }
  16396. have_nas=no
  16397. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16398. have_nas=yes
  16399. NAS_LIBS="-laudio"
  16400. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16401. have_nas=yes
  16402. NAS_CFLAGS="-I/usr/X11R6/include/"
  16403. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16404. fi
  16405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16406. $as_echo "$have_nas" >&6; }
  16407. if test x$have_nas = xyes; then
  16408. # Check whether --enable-nas-shared was given.
  16409. if test "${enable_nas_shared+set}" = set; then :
  16410. enableval=$enable_nas_shared;
  16411. else
  16412. enable_nas_shared=yes
  16413. fi
  16414. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16415. if test x$have_loadso != xyes && \
  16416. test x$enable_nas_shared = xyes; then
  16417. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16418. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16419. fi
  16420. if test x$have_loadso = xyes && \
  16421. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16422. echo "-- dynamic libaudio -> $nas_lib"
  16423. cat >>confdefs.h <<_ACEOF
  16424. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16425. _ACEOF
  16426. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16427. else
  16428. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16429. SUMMARY_audio="${SUMMARY_audio} nas"
  16430. fi
  16431. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16432. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16433. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16434. have_audio=yes
  16435. fi
  16436. fi
  16437. }
  16438. CheckSNDIO()
  16439. {
  16440. # Check whether --enable-sndio was given.
  16441. if test "${enable_sndio+set}" = set; then :
  16442. enableval=$enable_sndio;
  16443. else
  16444. enable_sndio=yes
  16445. fi
  16446. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16447. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16448. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16449. have_sndio_hdr=yes
  16450. fi
  16451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16452. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16453. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16454. $as_echo_n "(cached) " >&6
  16455. else
  16456. ac_check_lib_save_LIBS=$LIBS
  16457. LIBS="-lsndio $LIBS"
  16458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16459. /* end confdefs.h. */
  16460. /* Override any GCC internal prototype to avoid an error.
  16461. Use char because int might match the return type of a GCC
  16462. builtin and then its argument prototype would still apply. */
  16463. #ifdef __cplusplus
  16464. extern "C"
  16465. #endif
  16466. char sio_open ();
  16467. int
  16468. main ()
  16469. {
  16470. return sio_open ();
  16471. ;
  16472. return 0;
  16473. }
  16474. _ACEOF
  16475. if ac_fn_c_try_link "$LINENO"; then :
  16476. ac_cv_lib_sndio_sio_open=yes
  16477. else
  16478. ac_cv_lib_sndio_sio_open=no
  16479. fi
  16480. rm -f core conftest.err conftest.$ac_objext \
  16481. conftest$ac_exeext conftest.$ac_ext
  16482. LIBS=$ac_check_lib_save_LIBS
  16483. fi
  16484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16485. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16486. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16487. have_sndio_lib=yes
  16488. fi
  16489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16490. $as_echo_n "checking for sndio audio support... " >&6; }
  16491. have_sndio=no
  16492. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16493. have_sndio=yes
  16494. SNDIO_LIBS="-lsndio"
  16495. fi
  16496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16497. $as_echo "$have_sndio" >&6; }
  16498. if test x$have_sndio = xyes; then
  16499. # Check whether --enable-sndio-shared was given.
  16500. if test "${enable_sndio_shared+set}" = set; then :
  16501. enableval=$enable_sndio_shared;
  16502. else
  16503. enable_sndio_shared=yes
  16504. fi
  16505. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16506. if test x$have_loadso != xyes && \
  16507. test x$enable_sndio_shared = xyes; then
  16508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16509. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16510. fi
  16511. if test x$have_loadso = xyes && \
  16512. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16513. echo "-- dynamic libsndio -> $sndio_lib"
  16514. cat >>confdefs.h <<_ACEOF
  16515. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16516. _ACEOF
  16517. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16518. else
  16519. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16520. SUMMARY_audio="${SUMMARY_audio} sndio"
  16521. fi
  16522. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16523. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16524. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16525. have_audio=yes
  16526. fi
  16527. fi
  16528. }
  16529. CheckFusionSound()
  16530. {
  16531. # Check whether --enable-fusionsound was given.
  16532. if test "${enable_fusionsound+set}" = set; then :
  16533. enableval=$enable_fusionsound;
  16534. else
  16535. enable_fusionsound=no
  16536. fi
  16537. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16538. pkg_failed=no
  16539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5
  16540. $as_echo_n "checking for FUSIONSOUND... " >&6; }
  16541. if test -n "$FUSIONSOUND_CFLAGS"; then
  16542. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16543. elif test -n "$PKG_CONFIG"; then
  16544. if test -n "$PKG_CONFIG" && \
  16545. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16546. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16547. ac_status=$?
  16548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16549. test $ac_status = 0; }; then
  16550. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16551. else
  16552. pkg_failed=yes
  16553. fi
  16554. else
  16555. pkg_failed=untried
  16556. fi
  16557. if test -n "$FUSIONSOUND_LIBS"; then
  16558. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16559. elif test -n "$PKG_CONFIG"; then
  16560. if test -n "$PKG_CONFIG" && \
  16561. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16562. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16563. ac_status=$?
  16564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16565. test $ac_status = 0; }; then
  16566. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16567. else
  16568. pkg_failed=yes
  16569. fi
  16570. else
  16571. pkg_failed=untried
  16572. fi
  16573. if test $pkg_failed = yes; then
  16574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16575. $as_echo "no" >&6; }
  16576. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16577. _pkg_short_errors_supported=yes
  16578. else
  16579. _pkg_short_errors_supported=no
  16580. fi
  16581. if test $_pkg_short_errors_supported = yes; then
  16582. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1`
  16583. else
  16584. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1`
  16585. fi
  16586. # Put the nasty error message in config.log where it belongs
  16587. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16588. fusionsound=no
  16589. elif test $pkg_failed = untried; then
  16590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16591. $as_echo "no" >&6; }
  16592. fusionsound=no
  16593. else
  16594. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16595. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16597. $as_echo "yes" >&6; }
  16598. fusionsound=yes
  16599. fi
  16600. if test x$fusionsound = xyes; then
  16601. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16602. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16603. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16604. # Check whether --enable-fusionsound-shared was given.
  16605. if test "${enable_fusionsound_shared+set}" = set; then :
  16606. enableval=$enable_fusionsound_shared;
  16607. else
  16608. enable_fusionsound_shared=yes
  16609. fi
  16610. fusionsound_shared=no
  16611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16612. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16613. if test x$have_loadso != xyes && \
  16614. test x$enable_fusionsound_shared = xyes; then
  16615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16616. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16617. fi
  16618. if test x$have_loadso = xyes && \
  16619. test x$enable_fusionsound_shared = xyes; then
  16620. cat >>confdefs.h <<_ACEOF
  16621. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16622. _ACEOF
  16623. fusionsound_shared=yes
  16624. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16625. else
  16626. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16627. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16628. fi
  16629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16630. $as_echo "$fusionsound_shared" >&6; }
  16631. have_audio=yes
  16632. fi
  16633. fi
  16634. }
  16635. CheckDiskAudio()
  16636. {
  16637. # Check whether --enable-diskaudio was given.
  16638. if test "${enable_diskaudio+set}" = set; then :
  16639. enableval=$enable_diskaudio;
  16640. else
  16641. enable_diskaudio=yes
  16642. fi
  16643. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16644. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16645. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16646. SUMMARY_audio="${SUMMARY_audio} disk"
  16647. fi
  16648. }
  16649. CheckDummyAudio()
  16650. {
  16651. # Check whether --enable-dummyaudio was given.
  16652. if test "${enable_dummyaudio+set}" = set; then :
  16653. enableval=$enable_dummyaudio;
  16654. else
  16655. enable_dummyaudio=yes
  16656. fi
  16657. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16658. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16659. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16660. SUMMARY_audio="${SUMMARY_audio} dummy"
  16661. fi
  16662. }
  16663. CheckLibSampleRate()
  16664. {
  16665. # Check whether --enable-libsamplerate was given.
  16666. if test "${enable_libsamplerate+set}" = set; then :
  16667. enableval=$enable_libsamplerate;
  16668. else
  16669. enable_libsamplerate=yes
  16670. fi
  16671. if test x$enable_libsamplerate = xyes; then
  16672. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16673. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16674. have_samplerate_h_hdr=yes
  16675. else
  16676. have_samplerate_h_hdr=no
  16677. fi
  16678. if test x$have_samplerate_h_hdr = xyes; then
  16679. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16680. # Check whether --enable-libsamplerate-shared was given.
  16681. if test "${enable_libsamplerate_shared+set}" = set; then :
  16682. enableval=$enable_libsamplerate_shared;
  16683. else
  16684. enable_libsamplerate_shared=yes
  16685. fi
  16686. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16687. if test x$have_loadso != xyes && \
  16688. test x$enable_libsamplerate_shared = xyes; then
  16689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16690. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16691. fi
  16692. if test x$have_loadso = xyes && \
  16693. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16694. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16695. cat >>confdefs.h <<_ACEOF
  16696. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16697. _ACEOF
  16698. else
  16699. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16700. fi
  16701. fi
  16702. fi
  16703. }
  16704. CheckARM()
  16705. {
  16706. # Check whether --enable-arm-simd was given.
  16707. if test "${enable_arm_simd+set}" = set; then :
  16708. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16709. else
  16710. enable_arm_simd=yes
  16711. fi
  16712. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16713. save_CFLAGS="$CFLAGS"
  16714. have_arm_simd=no
  16715. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16717. $as_echo_n "checking for ARM SIMD... " >&6; }
  16718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16719. /* end confdefs.h. */
  16720. .text
  16721. .arch armv6
  16722. .object_arch armv4
  16723. .arm
  16724. .altmacro
  16725. #ifndef __ARM_EABI__
  16726. #error EABI is required (to be sure that calling conventions are compatible)
  16727. #endif
  16728. pld [r0]
  16729. uqadd8 r0, r0, r0
  16730. _ACEOF
  16731. if ac_fn_c_try_compile "$LINENO"; then :
  16732. have_arm_simd=yes
  16733. fi
  16734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16736. $as_echo "$have_arm_simd" >&6; }
  16737. CFLAGS="$save_CFLAGS"
  16738. if test x$have_arm_simd = xyes; then
  16739. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16740. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16741. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16742. fi
  16743. fi
  16744. }
  16745. CheckNEON()
  16746. {
  16747. # Check whether --enable-arm-neon was given.
  16748. if test "${enable_arm_neon+set}" = set; then :
  16749. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16750. else
  16751. enable_arm_neon=no
  16752. fi
  16753. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16754. save_CFLAGS="$CFLAGS"
  16755. have_arm_neon=no
  16756. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16758. $as_echo_n "checking for ARM NEON... " >&6; }
  16759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16760. /* end confdefs.h. */
  16761. .text
  16762. .fpu neon
  16763. .arch armv7a
  16764. .object_arch armv4
  16765. .eabi_attribute 10, 0
  16766. .arm
  16767. .altmacro
  16768. #ifndef __ARM_EABI__
  16769. #error EABI is required (to be sure that calling conventions are compatible)
  16770. #endif
  16771. pld [r0]
  16772. vmovn.u16 d0, q0
  16773. _ACEOF
  16774. if ac_fn_c_try_compile "$LINENO"; then :
  16775. have_arm_neon=yes
  16776. fi
  16777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16779. $as_echo "$have_arm_neon" >&6; }
  16780. CFLAGS="$save_CFLAGS"
  16781. if test x$have_arm_neon = xyes; then
  16782. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16783. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16784. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16785. fi
  16786. fi
  16787. }
  16788. CheckVisibilityHidden()
  16789. {
  16790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16791. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16792. have_gcc_fvisibility=no
  16793. visibility_CFLAGS="-fvisibility=hidden"
  16794. save_CFLAGS="$CFLAGS"
  16795. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16797. /* end confdefs.h. */
  16798. #if !defined(__GNUC__) || __GNUC__ < 4
  16799. #error SDL only uses visibility attributes in GCC 4 or newer
  16800. #endif
  16801. int
  16802. main ()
  16803. {
  16804. ;
  16805. return 0;
  16806. }
  16807. _ACEOF
  16808. if ac_fn_c_try_compile "$LINENO"; then :
  16809. have_gcc_fvisibility=yes
  16810. fi
  16811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16813. $as_echo "$have_gcc_fvisibility" >&6; }
  16814. CFLAGS="$save_CFLAGS"
  16815. if test x$have_gcc_fvisibility = xyes; then
  16816. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16817. fi
  16818. }
  16819. CheckNoStrictAliasing()
  16820. {
  16821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16822. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16823. have_gcc_no_strict_aliasing=no
  16824. save_CFLAGS="$CFLAGS"
  16825. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16827. /* end confdefs.h. */
  16828. int x = 0;
  16829. int
  16830. main ()
  16831. {
  16832. ;
  16833. return 0;
  16834. }
  16835. _ACEOF
  16836. if ac_fn_c_try_compile "$LINENO"; then :
  16837. have_gcc_no_strict_aliasing=yes
  16838. fi
  16839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16841. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16842. CFLAGS="$save_CFLAGS"
  16843. if test x$have_gcc_no_strict_aliasing = xyes; then
  16844. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16845. fi
  16846. }
  16847. CheckStackBoundary()
  16848. {
  16849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16850. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16851. have_gcc_preferred_stack_boundary=no
  16852. save_CFLAGS="$CFLAGS"
  16853. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16855. /* end confdefs.h. */
  16856. int x = 0;
  16857. int
  16858. main ()
  16859. {
  16860. ;
  16861. return 0;
  16862. }
  16863. _ACEOF
  16864. if ac_fn_c_try_compile "$LINENO"; then :
  16865. have_gcc_preferred_stack_boundary=yes
  16866. fi
  16867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16869. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16870. CFLAGS="$save_CFLAGS"
  16871. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16872. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16873. fi
  16874. }
  16875. CheckDeclarationAfterStatement()
  16876. {
  16877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16878. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16879. have_gcc_declaration_after_statement=no
  16880. save_CFLAGS="$CFLAGS"
  16881. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16883. /* end confdefs.h. */
  16884. int x = 0;
  16885. int
  16886. main ()
  16887. {
  16888. ;
  16889. return 0;
  16890. }
  16891. _ACEOF
  16892. if ac_fn_c_try_compile "$LINENO"; then :
  16893. have_gcc_declaration_after_statement=yes
  16894. fi
  16895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16897. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16898. CFLAGS="$save_CFLAGS"
  16899. if test x$have_gcc_declaration_after_statement = xyes; then
  16900. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16901. fi
  16902. }
  16903. CheckWarnAll()
  16904. {
  16905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16906. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16907. have_gcc_Wall=no
  16908. save_CFLAGS="$CFLAGS"
  16909. CFLAGS="$save_CFLAGS -Wall"
  16910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16911. /* end confdefs.h. */
  16912. int x = 0;
  16913. int
  16914. main ()
  16915. {
  16916. ;
  16917. return 0;
  16918. }
  16919. _ACEOF
  16920. if ac_fn_c_try_compile "$LINENO"; then :
  16921. have_gcc_Wall=yes
  16922. fi
  16923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16925. $as_echo "$have_gcc_Wall" >&6; }
  16926. CFLAGS="$save_CFLAGS"
  16927. if test x$have_gcc_Wall = xyes; then
  16928. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16930. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16931. need_gcc_Wno_multichar=no
  16932. case "$host" in
  16933. *-*-haiku*)
  16934. need_gcc_Wno_multichar=yes
  16935. ;;
  16936. esac
  16937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16938. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16939. if test x$need_gcc_Wno_multichar = xyes; then
  16940. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16941. fi
  16942. fi
  16943. }
  16944. CheckWayland()
  16945. {
  16946. # Check whether --enable-video-wayland was given.
  16947. if test "${enable_video_wayland+set}" = set; then :
  16948. enableval=$enable_video_wayland;
  16949. else
  16950. enable_video_wayland=yes
  16951. fi
  16952. # Check whether --enable-video-wayland-qt-touch was given.
  16953. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16954. enableval=$enable_video_wayland_qt_touch;
  16955. else
  16956. enable_video_wayland_qt_touch=yes
  16957. fi
  16958. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16960. $as_echo_n "checking for Wayland support... " >&6; }
  16961. video_wayland=no
  16962. if test x$video_opengl_egl = xyes && \
  16963. test x$video_opengles_v2 = xyes; then
  16964. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16965. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16966. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16967. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16968. video_wayland=yes
  16969. fi
  16970. fi
  16971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16972. $as_echo "$video_wayland" >&6; }
  16973. if test x$video_wayland = xyes; then
  16974. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16975. if test x$enable_video_wayland_qt_touch = xyes; then
  16976. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16977. fi
  16978. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16979. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16980. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16981. # Check whether --enable-wayland-shared was given.
  16982. if test "${enable_wayland_shared+set}" = set; then :
  16983. enableval=$enable_wayland_shared;
  16984. else
  16985. enable_wayland_shared=maybe
  16986. fi
  16987. case "$host" in
  16988. *)
  16989. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16990. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16991. if test x$wayland_egl_lib = x; then
  16992. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16993. fi
  16994. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16995. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16996. ;;
  16997. esac
  16998. if test x$enable_wayland_shared = xmaybe; then
  16999. enable_wayland_shared=yes
  17000. fi
  17001. if test x$have_loadso != xyes && \
  17002. test x$enable_wayland_shared = xyes; then
  17003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17004. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17005. enable_wayland_shared=no
  17006. fi
  17007. if test x$have_loadso = xyes && \
  17008. test x$enable_wayland_shared = xyes && \
  17009. test x$wayland_client_lib != x && \
  17010. test x$wayland_egl_lib != x && \
  17011. test x$wayland_cursor_lib != x && \
  17012. test x$xkbcommon_lib != x; then
  17013. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17014. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17015. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17016. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17017. cat >>confdefs.h <<_ACEOF
  17018. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17019. _ACEOF
  17020. cat >>confdefs.h <<_ACEOF
  17021. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17022. _ACEOF
  17023. cat >>confdefs.h <<_ACEOF
  17024. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17025. _ACEOF
  17026. cat >>confdefs.h <<_ACEOF
  17027. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17028. _ACEOF
  17029. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17030. else
  17031. enable_wayland_shared=no
  17032. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17033. SUMMARY_video="${SUMMARY_video} wayland"
  17034. fi
  17035. have_video=yes
  17036. fi
  17037. fi
  17038. }
  17039. CheckNativeClient()
  17040. {
  17041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17042. /* end confdefs.h. */
  17043. #if !defined(__native_client__)
  17044. #error "NO NACL"
  17045. #endif
  17046. int
  17047. main ()
  17048. {
  17049. ;
  17050. return 0;
  17051. }
  17052. _ACEOF
  17053. if ac_fn_c_try_compile "$LINENO"; then :
  17054. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17055. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17056. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17057. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17058. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17059. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17060. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17061. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17062. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17063. SUMMARY_audio="${SUMMARY_audio} nacl"
  17064. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17065. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17066. fi
  17067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17068. }
  17069. CheckRPI()
  17070. {
  17071. # Check whether --enable-video-rpi was given.
  17072. if test "${enable_video_rpi+set}" = set; then :
  17073. enableval=$enable_video_rpi;
  17074. else
  17075. enable_video_rpi=yes
  17076. fi
  17077. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17078. pkg_failed=no
  17079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5
  17080. $as_echo_n "checking for RPI... " >&6; }
  17081. if test -n "$RPI_CFLAGS"; then
  17082. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17083. elif test -n "$PKG_CONFIG"; then
  17084. if test -n "$PKG_CONFIG" && \
  17085. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17086. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17087. ac_status=$?
  17088. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17089. test $ac_status = 0; }; then
  17090. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17091. else
  17092. pkg_failed=yes
  17093. fi
  17094. else
  17095. pkg_failed=untried
  17096. fi
  17097. if test -n "$RPI_LIBS"; then
  17098. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17099. elif test -n "$PKG_CONFIG"; then
  17100. if test -n "$PKG_CONFIG" && \
  17101. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17102. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17103. ac_status=$?
  17104. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17105. test $ac_status = 0; }; then
  17106. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17107. else
  17108. pkg_failed=yes
  17109. fi
  17110. else
  17111. pkg_failed=untried
  17112. fi
  17113. if test $pkg_failed = yes; then
  17114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17115. $as_echo "no" >&6; }
  17116. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17117. _pkg_short_errors_supported=yes
  17118. else
  17119. _pkg_short_errors_supported=no
  17120. fi
  17121. if test $_pkg_short_errors_supported = yes; then
  17122. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1`
  17123. else
  17124. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1`
  17125. fi
  17126. # Put the nasty error message in config.log where it belongs
  17127. echo "$RPI_PKG_ERRORS" >&5
  17128. video_rpi=no
  17129. elif test $pkg_failed = untried; then
  17130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17131. $as_echo "no" >&6; }
  17132. video_rpi=no
  17133. else
  17134. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17135. RPI_LIBS=$pkg_cv_RPI_LIBS
  17136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17137. $as_echo "yes" >&6; }
  17138. video_rpi=yes
  17139. fi
  17140. if test x$video_rpi = xno; then
  17141. if test x$ARCH = xnetbsd; then
  17142. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17143. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17144. else
  17145. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17146. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17147. fi
  17148. fi
  17149. # Save the original compiler flags and libraries
  17150. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17151. # Add the Raspberry Pi compiler flags and libraries
  17152. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17154. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17155. have_video_rpi=no
  17156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17157. /* end confdefs.h. */
  17158. #include <bcm_host.h>
  17159. int
  17160. main ()
  17161. {
  17162. bcm_host_init();
  17163. ;
  17164. return 0;
  17165. }
  17166. _ACEOF
  17167. if ac_fn_c_try_link "$LINENO"; then :
  17168. have_video_rpi=yes
  17169. fi
  17170. rm -f core conftest.err conftest.$ac_objext \
  17171. conftest$ac_exeext conftest.$ac_ext
  17172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17173. $as_echo "$have_video_rpi" >&6; }
  17174. # Restore the compiler flags and libraries
  17175. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17176. if test x$have_video_rpi = xyes; then
  17177. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17178. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17179. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17180. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17181. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17182. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17183. SUMMARY_video="${SUMMARY_video} rpi"
  17184. fi
  17185. fi
  17186. }
  17187. CheckX11()
  17188. {
  17189. # Check whether --enable-video-x11 was given.
  17190. if test "${enable_video_x11+set}" = set; then :
  17191. enableval=$enable_video_x11;
  17192. else
  17193. enable_video_x11=yes
  17194. fi
  17195. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17196. case "$host" in
  17197. *-*-darwin*)
  17198. # This isn't necessary for X11, but fixes GLX detection
  17199. if test "x$x_includes" = xNONE && \
  17200. test "x$x_libraries" = xNONE && \
  17201. test -d /opt/X11/include && \
  17202. test -d /opt/X11/lib; then
  17203. x_includes="/opt/X11/include"
  17204. x_libraries="/opt/X11/lib"
  17205. fi
  17206. ;;
  17207. esac
  17208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17209. $as_echo_n "checking for X... " >&6; }
  17210. # Check whether --with-x was given.
  17211. if test "${with_x+set}" = set; then :
  17212. withval=$with_x;
  17213. fi
  17214. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17215. if test "x$with_x" = xno; then
  17216. # The user explicitly disabled X.
  17217. have_x=disabled
  17218. else
  17219. case $x_includes,$x_libraries in #(
  17220. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17221. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17222. $as_echo_n "(cached) " >&6
  17223. else
  17224. # One or both of the vars are not set, and there is no cached value.
  17225. ac_x_includes=no ac_x_libraries=no
  17226. rm -f -r conftest.dir
  17227. if mkdir conftest.dir; then
  17228. cd conftest.dir
  17229. cat >Imakefile <<'_ACEOF'
  17230. incroot:
  17231. @echo incroot='${INCROOT}'
  17232. usrlibdir:
  17233. @echo usrlibdir='${USRLIBDIR}'
  17234. libdir:
  17235. @echo libdir='${LIBDIR}'
  17236. _ACEOF
  17237. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17238. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17239. for ac_var in incroot usrlibdir libdir; do
  17240. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17241. done
  17242. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17243. for ac_extension in a so sl dylib la dll; do
  17244. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17245. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17246. ac_im_usrlibdir=$ac_im_libdir; break
  17247. fi
  17248. done
  17249. # Screen out bogus values from the imake configuration. They are
  17250. # bogus both because they are the default anyway, and because
  17251. # using them would break gcc on systems where it needs fixed includes.
  17252. case $ac_im_incroot in
  17253. /usr/include) ac_x_includes= ;;
  17254. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17255. esac
  17256. case $ac_im_usrlibdir in
  17257. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17258. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17259. esac
  17260. fi
  17261. cd ..
  17262. rm -f -r conftest.dir
  17263. fi
  17264. # Standard set of common directories for X headers.
  17265. # Check X11 before X11Rn because it is often a symlink to the current release.
  17266. ac_x_header_dirs='
  17267. /usr/X11/include
  17268. /usr/X11R7/include
  17269. /usr/X11R6/include
  17270. /usr/X11R5/include
  17271. /usr/X11R4/include
  17272. /usr/include/X11
  17273. /usr/include/X11R7
  17274. /usr/include/X11R6
  17275. /usr/include/X11R5
  17276. /usr/include/X11R4
  17277. /usr/local/X11/include
  17278. /usr/local/X11R7/include
  17279. /usr/local/X11R6/include
  17280. /usr/local/X11R5/include
  17281. /usr/local/X11R4/include
  17282. /usr/local/include/X11
  17283. /usr/local/include/X11R7
  17284. /usr/local/include/X11R6
  17285. /usr/local/include/X11R5
  17286. /usr/local/include/X11R4
  17287. /usr/X386/include
  17288. /usr/x386/include
  17289. /usr/XFree86/include/X11
  17290. /usr/include
  17291. /usr/local/include
  17292. /usr/unsupported/include
  17293. /usr/athena/include
  17294. /usr/local/x11r5/include
  17295. /usr/lpp/Xamples/include
  17296. /usr/openwin/include
  17297. /usr/openwin/share/include'
  17298. if test "$ac_x_includes" = no; then
  17299. # Guess where to find include files, by looking for Xlib.h.
  17300. # First, try using that file with no special directory specified.
  17301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17302. /* end confdefs.h. */
  17303. #include <X11/Xlib.h>
  17304. _ACEOF
  17305. if ac_fn_c_try_cpp "$LINENO"; then :
  17306. # We can compile using X headers with no special include directory.
  17307. ac_x_includes=
  17308. else
  17309. for ac_dir in $ac_x_header_dirs; do
  17310. if test -r "$ac_dir/X11/Xlib.h"; then
  17311. ac_x_includes=$ac_dir
  17312. break
  17313. fi
  17314. done
  17315. fi
  17316. rm -f conftest.err conftest.i conftest.$ac_ext
  17317. fi # $ac_x_includes = no
  17318. if test "$ac_x_libraries" = no; then
  17319. # Check for the libraries.
  17320. # See if we find them without any special options.
  17321. # Don't add to $LIBS permanently.
  17322. ac_save_LIBS=$LIBS
  17323. LIBS="-lX11 $LIBS"
  17324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17325. /* end confdefs.h. */
  17326. #include <X11/Xlib.h>
  17327. int
  17328. main ()
  17329. {
  17330. XrmInitialize ()
  17331. ;
  17332. return 0;
  17333. }
  17334. _ACEOF
  17335. if ac_fn_c_try_link "$LINENO"; then :
  17336. LIBS=$ac_save_LIBS
  17337. # We can link X programs with no special library path.
  17338. ac_x_libraries=
  17339. else
  17340. LIBS=$ac_save_LIBS
  17341. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17342. do
  17343. # Don't even attempt the hair of trying to link an X program!
  17344. for ac_extension in a so sl dylib la dll; do
  17345. if test -r "$ac_dir/libX11.$ac_extension"; then
  17346. ac_x_libraries=$ac_dir
  17347. break 2
  17348. fi
  17349. done
  17350. done
  17351. fi
  17352. rm -f core conftest.err conftest.$ac_objext \
  17353. conftest$ac_exeext conftest.$ac_ext
  17354. fi # $ac_x_libraries = no
  17355. case $ac_x_includes,$ac_x_libraries in #(
  17356. no,* | *,no | *\'*)
  17357. # Didn't find X, or a directory has "'" in its name.
  17358. ac_cv_have_x="have_x=no";; #(
  17359. *)
  17360. # Record where we found X for the cache.
  17361. ac_cv_have_x="have_x=yes\
  17362. ac_x_includes='$ac_x_includes'\
  17363. ac_x_libraries='$ac_x_libraries'"
  17364. esac
  17365. fi
  17366. ;; #(
  17367. *) have_x=yes;;
  17368. esac
  17369. eval "$ac_cv_have_x"
  17370. fi # $with_x != no
  17371. if test "$have_x" != yes; then
  17372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17373. $as_echo "$have_x" >&6; }
  17374. no_x=yes
  17375. else
  17376. # If each of the values was on the command line, it overrides each guess.
  17377. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17378. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17379. # Update the cache value to reflect the command line values.
  17380. ac_cv_have_x="have_x=yes\
  17381. ac_x_includes='$x_includes'\
  17382. ac_x_libraries='$x_libraries'"
  17383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17384. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17385. fi
  17386. if test "$no_x" = yes; then
  17387. # Not all programs may use this symbol, but it does not hurt to define it.
  17388. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17389. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17390. else
  17391. if test -n "$x_includes"; then
  17392. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17393. fi
  17394. # It would also be nice to do this for all -L options, not just this one.
  17395. if test -n "$x_libraries"; then
  17396. X_LIBS="$X_LIBS -L$x_libraries"
  17397. # For Solaris; some versions of Sun CC require a space after -R and
  17398. # others require no space. Words are not sufficient . . . .
  17399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17400. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17401. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17402. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17403. ac_c_werror_flag=yes
  17404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17405. /* end confdefs.h. */
  17406. int
  17407. main ()
  17408. {
  17409. ;
  17410. return 0;
  17411. }
  17412. _ACEOF
  17413. if ac_fn_c_try_link "$LINENO"; then :
  17414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17415. $as_echo "no" >&6; }
  17416. X_LIBS="$X_LIBS -R$x_libraries"
  17417. else
  17418. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17420. /* end confdefs.h. */
  17421. int
  17422. main ()
  17423. {
  17424. ;
  17425. return 0;
  17426. }
  17427. _ACEOF
  17428. if ac_fn_c_try_link "$LINENO"; then :
  17429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17430. $as_echo "yes" >&6; }
  17431. X_LIBS="$X_LIBS -R $x_libraries"
  17432. else
  17433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17434. $as_echo "neither works" >&6; }
  17435. fi
  17436. rm -f core conftest.err conftest.$ac_objext \
  17437. conftest$ac_exeext conftest.$ac_ext
  17438. fi
  17439. rm -f core conftest.err conftest.$ac_objext \
  17440. conftest$ac_exeext conftest.$ac_ext
  17441. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17442. LIBS=$ac_xsave_LIBS
  17443. fi
  17444. # Check for system-dependent libraries X programs must link with.
  17445. # Do this before checking for the system-independent R6 libraries
  17446. # (-lICE), since we may need -lsocket or whatever for X linking.
  17447. if test "$ISC" = yes; then
  17448. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17449. else
  17450. # Martyn Johnson says this is needed for Ultrix, if the X
  17451. # libraries were built with DECnet support. And Karl Berry says
  17452. # the Alpha needs dnet_stub (dnet does not exist).
  17453. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17455. /* end confdefs.h. */
  17456. /* Override any GCC internal prototype to avoid an error.
  17457. Use char because int might match the return type of a GCC
  17458. builtin and then its argument prototype would still apply. */
  17459. #ifdef __cplusplus
  17460. extern "C"
  17461. #endif
  17462. char XOpenDisplay ();
  17463. int
  17464. main ()
  17465. {
  17466. return XOpenDisplay ();
  17467. ;
  17468. return 0;
  17469. }
  17470. _ACEOF
  17471. if ac_fn_c_try_link "$LINENO"; then :
  17472. else
  17473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17474. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17475. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17476. $as_echo_n "(cached) " >&6
  17477. else
  17478. ac_check_lib_save_LIBS=$LIBS
  17479. LIBS="-ldnet $LIBS"
  17480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17481. /* end confdefs.h. */
  17482. /* Override any GCC internal prototype to avoid an error.
  17483. Use char because int might match the return type of a GCC
  17484. builtin and then its argument prototype would still apply. */
  17485. #ifdef __cplusplus
  17486. extern "C"
  17487. #endif
  17488. char dnet_ntoa ();
  17489. int
  17490. main ()
  17491. {
  17492. return dnet_ntoa ();
  17493. ;
  17494. return 0;
  17495. }
  17496. _ACEOF
  17497. if ac_fn_c_try_link "$LINENO"; then :
  17498. ac_cv_lib_dnet_dnet_ntoa=yes
  17499. else
  17500. ac_cv_lib_dnet_dnet_ntoa=no
  17501. fi
  17502. rm -f core conftest.err conftest.$ac_objext \
  17503. conftest$ac_exeext conftest.$ac_ext
  17504. LIBS=$ac_check_lib_save_LIBS
  17505. fi
  17506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17507. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17508. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17509. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17510. fi
  17511. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17513. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17514. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17515. $as_echo_n "(cached) " >&6
  17516. else
  17517. ac_check_lib_save_LIBS=$LIBS
  17518. LIBS="-ldnet_stub $LIBS"
  17519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17520. /* end confdefs.h. */
  17521. /* Override any GCC internal prototype to avoid an error.
  17522. Use char because int might match the return type of a GCC
  17523. builtin and then its argument prototype would still apply. */
  17524. #ifdef __cplusplus
  17525. extern "C"
  17526. #endif
  17527. char dnet_ntoa ();
  17528. int
  17529. main ()
  17530. {
  17531. return dnet_ntoa ();
  17532. ;
  17533. return 0;
  17534. }
  17535. _ACEOF
  17536. if ac_fn_c_try_link "$LINENO"; then :
  17537. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17538. else
  17539. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17540. fi
  17541. rm -f core conftest.err conftest.$ac_objext \
  17542. conftest$ac_exeext conftest.$ac_ext
  17543. LIBS=$ac_check_lib_save_LIBS
  17544. fi
  17545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17546. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17547. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17548. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17549. fi
  17550. fi
  17551. fi
  17552. rm -f core conftest.err conftest.$ac_objext \
  17553. conftest$ac_exeext conftest.$ac_ext
  17554. LIBS="$ac_xsave_LIBS"
  17555. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17556. # to get the SysV transport functions.
  17557. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17558. # needs -lnsl.
  17559. # The nsl library prevents programs from opening the X display
  17560. # on Irix 5.2, according to T.E. Dickey.
  17561. # The functions gethostbyname, getservbyname, and inet_addr are
  17562. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17563. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17564. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17565. fi
  17566. if test $ac_cv_func_gethostbyname = no; then
  17567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17568. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17569. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17570. $as_echo_n "(cached) " >&6
  17571. else
  17572. ac_check_lib_save_LIBS=$LIBS
  17573. LIBS="-lnsl $LIBS"
  17574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17575. /* end confdefs.h. */
  17576. /* Override any GCC internal prototype to avoid an error.
  17577. Use char because int might match the return type of a GCC
  17578. builtin and then its argument prototype would still apply. */
  17579. #ifdef __cplusplus
  17580. extern "C"
  17581. #endif
  17582. char gethostbyname ();
  17583. int
  17584. main ()
  17585. {
  17586. return gethostbyname ();
  17587. ;
  17588. return 0;
  17589. }
  17590. _ACEOF
  17591. if ac_fn_c_try_link "$LINENO"; then :
  17592. ac_cv_lib_nsl_gethostbyname=yes
  17593. else
  17594. ac_cv_lib_nsl_gethostbyname=no
  17595. fi
  17596. rm -f core conftest.err conftest.$ac_objext \
  17597. conftest$ac_exeext conftest.$ac_ext
  17598. LIBS=$ac_check_lib_save_LIBS
  17599. fi
  17600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17601. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17602. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17603. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17604. fi
  17605. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17607. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17608. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17609. $as_echo_n "(cached) " >&6
  17610. else
  17611. ac_check_lib_save_LIBS=$LIBS
  17612. LIBS="-lbsd $LIBS"
  17613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17614. /* end confdefs.h. */
  17615. /* Override any GCC internal prototype to avoid an error.
  17616. Use char because int might match the return type of a GCC
  17617. builtin and then its argument prototype would still apply. */
  17618. #ifdef __cplusplus
  17619. extern "C"
  17620. #endif
  17621. char gethostbyname ();
  17622. int
  17623. main ()
  17624. {
  17625. return gethostbyname ();
  17626. ;
  17627. return 0;
  17628. }
  17629. _ACEOF
  17630. if ac_fn_c_try_link "$LINENO"; then :
  17631. ac_cv_lib_bsd_gethostbyname=yes
  17632. else
  17633. ac_cv_lib_bsd_gethostbyname=no
  17634. fi
  17635. rm -f core conftest.err conftest.$ac_objext \
  17636. conftest$ac_exeext conftest.$ac_ext
  17637. LIBS=$ac_check_lib_save_LIBS
  17638. fi
  17639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17640. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17641. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17642. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17643. fi
  17644. fi
  17645. fi
  17646. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17647. # socket/setsockopt and other routines are undefined under SCO ODT
  17648. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17649. # on later versions), says Simon Leinen: it contains gethostby*
  17650. # variants that don't use the name server (or something). -lsocket
  17651. # must be given before -lnsl if both are needed. We assume that
  17652. # if connect needs -lnsl, so does gethostbyname.
  17653. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17654. if test "x$ac_cv_func_connect" = xyes; then :
  17655. fi
  17656. if test $ac_cv_func_connect = no; then
  17657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17658. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17659. if ${ac_cv_lib_socket_connect+:} false; then :
  17660. $as_echo_n "(cached) " >&6
  17661. else
  17662. ac_check_lib_save_LIBS=$LIBS
  17663. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17665. /* end confdefs.h. */
  17666. /* Override any GCC internal prototype to avoid an error.
  17667. Use char because int might match the return type of a GCC
  17668. builtin and then its argument prototype would still apply. */
  17669. #ifdef __cplusplus
  17670. extern "C"
  17671. #endif
  17672. char connect ();
  17673. int
  17674. main ()
  17675. {
  17676. return connect ();
  17677. ;
  17678. return 0;
  17679. }
  17680. _ACEOF
  17681. if ac_fn_c_try_link "$LINENO"; then :
  17682. ac_cv_lib_socket_connect=yes
  17683. else
  17684. ac_cv_lib_socket_connect=no
  17685. fi
  17686. rm -f core conftest.err conftest.$ac_objext \
  17687. conftest$ac_exeext conftest.$ac_ext
  17688. LIBS=$ac_check_lib_save_LIBS
  17689. fi
  17690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17691. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17692. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17693. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17694. fi
  17695. fi
  17696. # Guillermo Gomez says -lposix is necessary on A/UX.
  17697. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17698. if test "x$ac_cv_func_remove" = xyes; then :
  17699. fi
  17700. if test $ac_cv_func_remove = no; then
  17701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17702. $as_echo_n "checking for remove in -lposix... " >&6; }
  17703. if ${ac_cv_lib_posix_remove+:} false; then :
  17704. $as_echo_n "(cached) " >&6
  17705. else
  17706. ac_check_lib_save_LIBS=$LIBS
  17707. LIBS="-lposix $LIBS"
  17708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17709. /* end confdefs.h. */
  17710. /* Override any GCC internal prototype to avoid an error.
  17711. Use char because int might match the return type of a GCC
  17712. builtin and then its argument prototype would still apply. */
  17713. #ifdef __cplusplus
  17714. extern "C"
  17715. #endif
  17716. char remove ();
  17717. int
  17718. main ()
  17719. {
  17720. return remove ();
  17721. ;
  17722. return 0;
  17723. }
  17724. _ACEOF
  17725. if ac_fn_c_try_link "$LINENO"; then :
  17726. ac_cv_lib_posix_remove=yes
  17727. else
  17728. ac_cv_lib_posix_remove=no
  17729. fi
  17730. rm -f core conftest.err conftest.$ac_objext \
  17731. conftest$ac_exeext conftest.$ac_ext
  17732. LIBS=$ac_check_lib_save_LIBS
  17733. fi
  17734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17735. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17736. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17737. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17738. fi
  17739. fi
  17740. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17741. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17742. if test "x$ac_cv_func_shmat" = xyes; then :
  17743. fi
  17744. if test $ac_cv_func_shmat = no; then
  17745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17746. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17747. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17748. $as_echo_n "(cached) " >&6
  17749. else
  17750. ac_check_lib_save_LIBS=$LIBS
  17751. LIBS="-lipc $LIBS"
  17752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17753. /* end confdefs.h. */
  17754. /* Override any GCC internal prototype to avoid an error.
  17755. Use char because int might match the return type of a GCC
  17756. builtin and then its argument prototype would still apply. */
  17757. #ifdef __cplusplus
  17758. extern "C"
  17759. #endif
  17760. char shmat ();
  17761. int
  17762. main ()
  17763. {
  17764. return shmat ();
  17765. ;
  17766. return 0;
  17767. }
  17768. _ACEOF
  17769. if ac_fn_c_try_link "$LINENO"; then :
  17770. ac_cv_lib_ipc_shmat=yes
  17771. else
  17772. ac_cv_lib_ipc_shmat=no
  17773. fi
  17774. rm -f core conftest.err conftest.$ac_objext \
  17775. conftest$ac_exeext conftest.$ac_ext
  17776. LIBS=$ac_check_lib_save_LIBS
  17777. fi
  17778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17779. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17780. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17781. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17782. fi
  17783. fi
  17784. fi
  17785. # Check for libraries that X11R6 Xt/Xaw programs need.
  17786. ac_save_LDFLAGS=$LDFLAGS
  17787. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17788. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17789. # check for ICE first), but we must link in the order -lSM -lICE or
  17790. # we get undefined symbols. So assume we have SM if we have ICE.
  17791. # These have to be linked with before -lX11, unlike the other
  17792. # libraries we check for below, so use a different variable.
  17793. # John Interrante, Karl Berry
  17794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17795. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17796. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17797. $as_echo_n "(cached) " >&6
  17798. else
  17799. ac_check_lib_save_LIBS=$LIBS
  17800. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17802. /* end confdefs.h. */
  17803. /* Override any GCC internal prototype to avoid an error.
  17804. Use char because int might match the return type of a GCC
  17805. builtin and then its argument prototype would still apply. */
  17806. #ifdef __cplusplus
  17807. extern "C"
  17808. #endif
  17809. char IceConnectionNumber ();
  17810. int
  17811. main ()
  17812. {
  17813. return IceConnectionNumber ();
  17814. ;
  17815. return 0;
  17816. }
  17817. _ACEOF
  17818. if ac_fn_c_try_link "$LINENO"; then :
  17819. ac_cv_lib_ICE_IceConnectionNumber=yes
  17820. else
  17821. ac_cv_lib_ICE_IceConnectionNumber=no
  17822. fi
  17823. rm -f core conftest.err conftest.$ac_objext \
  17824. conftest$ac_exeext conftest.$ac_ext
  17825. LIBS=$ac_check_lib_save_LIBS
  17826. fi
  17827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17828. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17829. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17830. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17831. fi
  17832. LDFLAGS=$ac_save_LDFLAGS
  17833. fi
  17834. if test x$have_x = xyes; then
  17835. # Check whether --enable-x11-shared was given.
  17836. if test "${enable_x11_shared+set}" = set; then :
  17837. enableval=$enable_x11_shared;
  17838. else
  17839. enable_x11_shared=maybe
  17840. fi
  17841. case "$host" in
  17842. *-*-darwin*)
  17843. # Apple now puts this in /opt/X11
  17844. x11_lib='/opt/X11/lib/libX11.6.dylib'
  17845. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  17846. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  17847. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  17848. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  17849. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  17850. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  17851. xss_lib='/opt/X11/lib/libXss.1.dylib'
  17852. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  17853. ;;
  17854. *-*-openbsd*)
  17855. x11_lib='libX11.so'
  17856. x11ext_lib='libXext.so'
  17857. xcursor_lib='libXcursor.so'
  17858. xinerama_lib='libXinerama.so'
  17859. xinput_lib='libXi.so'
  17860. xrandr_lib='libXrandr.so'
  17861. xrender_lib='libXrender.so'
  17862. xss_lib='libXss.so'
  17863. xvidmode_lib='libXxf86vm.so'
  17864. ;;
  17865. *)
  17866. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17867. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17868. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17869. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17870. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17871. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17872. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17873. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17874. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17875. ;;
  17876. esac
  17877. if test x$ac_cv_func_shmat != xyes; then
  17878. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17879. fi
  17880. CFLAGS="$CFLAGS $X_CFLAGS"
  17881. LDFLAGS="$LDFLAGS $X_LIBS"
  17882. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17883. #include <X11/Xproto.h>
  17884. "
  17885. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17886. have_xext_h_hdr=yes
  17887. else
  17888. have_xext_h_hdr=no
  17889. fi
  17890. if test x$have_xext_h_hdr != xyes; then
  17891. as_fn_error $? "
  17892. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17893. " "$LINENO" 5
  17894. fi
  17895. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17896. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17897. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17898. # Needed so SDL applications can include SDL_syswm.h
  17899. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17900. if test x$enable_x11_shared = xmaybe; then
  17901. enable_x11_shared=yes
  17902. fi
  17903. if test x$have_loadso != xyes && \
  17904. test x$enable_x11_shared = xyes; then
  17905. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17906. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17907. enable_x11_shared=no
  17908. fi
  17909. if test x$have_loadso = xyes && \
  17910. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17911. echo "-- dynamic libX11 -> $x11_lib"
  17912. echo "-- dynamic libX11ext -> $x11ext_lib"
  17913. cat >>confdefs.h <<_ACEOF
  17914. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17915. _ACEOF
  17916. cat >>confdefs.h <<_ACEOF
  17917. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17918. _ACEOF
  17919. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17920. else
  17921. enable_x11_shared=no
  17922. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17923. SUMMARY_video="${SUMMARY_video} x11"
  17924. fi
  17925. have_video=yes
  17926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17927. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17928. have_const_param_XextAddDisplay=no
  17929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17930. /* end confdefs.h. */
  17931. #include <X11/Xlib.h>
  17932. #include <X11/Xproto.h>
  17933. #include <X11/extensions/Xext.h>
  17934. #include <X11/extensions/extutil.h>
  17935. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17936. int
  17937. main ()
  17938. {
  17939. ;
  17940. return 0;
  17941. }
  17942. _ACEOF
  17943. if ac_fn_c_try_compile "$LINENO"; then :
  17944. have_const_param_XextAddDisplay=yes
  17945. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17946. fi
  17947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17949. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17951. $as_echo_n "checking for XGenericEvent... " >&6; }
  17952. have_XGenericEvent=no
  17953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17954. /* end confdefs.h. */
  17955. #include <X11/Xlib.h>
  17956. int
  17957. main ()
  17958. {
  17959. Display *display;
  17960. XEvent event;
  17961. XGenericEventCookie *cookie = &event.xcookie;
  17962. XNextEvent(display, &event);
  17963. XGetEventData(display, cookie);
  17964. XFreeEventData(display, cookie);
  17965. ;
  17966. return 0;
  17967. }
  17968. _ACEOF
  17969. if ac_fn_c_try_compile "$LINENO"; then :
  17970. have_XGenericEvent=yes
  17971. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17972. fi
  17973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17975. $as_echo "$have_XGenericEvent" >&6; }
  17976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17977. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17978. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17979. $as_echo_n "(cached) " >&6
  17980. else
  17981. ac_check_lib_save_LIBS=$LIBS
  17982. LIBS="-lX11 $LIBS"
  17983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17984. /* end confdefs.h. */
  17985. /* Override any GCC internal prototype to avoid an error.
  17986. Use char because int might match the return type of a GCC
  17987. builtin and then its argument prototype would still apply. */
  17988. #ifdef __cplusplus
  17989. extern "C"
  17990. #endif
  17991. char XkbKeycodeToKeysym ();
  17992. int
  17993. main ()
  17994. {
  17995. return XkbKeycodeToKeysym ();
  17996. ;
  17997. return 0;
  17998. }
  17999. _ACEOF
  18000. if ac_fn_c_try_link "$LINENO"; then :
  18001. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18002. else
  18003. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18004. fi
  18005. rm -f core conftest.err conftest.$ac_objext \
  18006. conftest$ac_exeext conftest.$ac_ext
  18007. LIBS=$ac_check_lib_save_LIBS
  18008. fi
  18009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18010. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18011. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18012. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18013. fi
  18014. # Check whether --enable-video-x11-xcursor was given.
  18015. if test "${enable_video_x11_xcursor+set}" = set; then :
  18016. enableval=$enable_video_x11_xcursor;
  18017. else
  18018. enable_video_x11_xcursor=yes
  18019. fi
  18020. if test x$enable_video_x11_xcursor = xyes; then
  18021. definitely_enable_video_x11_xcursor=no
  18022. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18023. "
  18024. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18025. have_xcursor_h_hdr=yes
  18026. else
  18027. have_xcursor_h_hdr=no
  18028. fi
  18029. if test x$have_xcursor_h_hdr = xyes; then
  18030. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18031. echo "-- dynamic libXcursor -> $xcursor_lib"
  18032. cat >>confdefs.h <<_ACEOF
  18033. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18034. _ACEOF
  18035. definitely_enable_video_x11_xcursor=yes
  18036. else
  18037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18038. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18039. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18040. $as_echo_n "(cached) " >&6
  18041. else
  18042. ac_check_lib_save_LIBS=$LIBS
  18043. LIBS="-lXcursor $LIBS"
  18044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18045. /* end confdefs.h. */
  18046. /* Override any GCC internal prototype to avoid an error.
  18047. Use char because int might match the return type of a GCC
  18048. builtin and then its argument prototype would still apply. */
  18049. #ifdef __cplusplus
  18050. extern "C"
  18051. #endif
  18052. char XcursorImageCreate ();
  18053. int
  18054. main ()
  18055. {
  18056. return XcursorImageCreate ();
  18057. ;
  18058. return 0;
  18059. }
  18060. _ACEOF
  18061. if ac_fn_c_try_link "$LINENO"; then :
  18062. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18063. else
  18064. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18065. fi
  18066. rm -f core conftest.err conftest.$ac_objext \
  18067. conftest$ac_exeext conftest.$ac_ext
  18068. LIBS=$ac_check_lib_save_LIBS
  18069. fi
  18070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18071. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18072. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18073. have_xcursor_lib=yes
  18074. fi
  18075. if test x$have_xcursor_lib = xyes ; then
  18076. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18077. definitely_enable_video_x11_xcursor=yes
  18078. fi
  18079. fi
  18080. fi
  18081. fi
  18082. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18083. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18084. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18085. fi
  18086. # Check whether --enable-video-x11-xdbe was given.
  18087. if test "${enable_video_x11_xdbe+set}" = set; then :
  18088. enableval=$enable_video_x11_xdbe;
  18089. else
  18090. enable_video_x11_xdbe=yes
  18091. fi
  18092. if test x$enable_video_x11_xdbe = xyes; then
  18093. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18094. "
  18095. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18096. have_dbe_h_hdr=yes
  18097. else
  18098. have_dbe_h_hdr=no
  18099. fi
  18100. if test x$have_dbe_h_hdr = xyes; then
  18101. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18102. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18103. fi
  18104. fi
  18105. # Check whether --enable-video-x11-xinerama was given.
  18106. if test "${enable_video_x11_xinerama+set}" = set; then :
  18107. enableval=$enable_video_x11_xinerama;
  18108. else
  18109. enable_video_x11_xinerama=yes
  18110. fi
  18111. if test x$enable_video_x11_xinerama = xyes; then
  18112. definitely_enable_video_x11_xinerama=no
  18113. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18114. "
  18115. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18116. have_xinerama_h_hdr=yes
  18117. else
  18118. have_xinerama_h_hdr=no
  18119. fi
  18120. if test x$have_xinerama_h_hdr = xyes; then
  18121. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18122. echo "-- dynamic libXinerama -> $xinerama_lib"
  18123. cat >>confdefs.h <<_ACEOF
  18124. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18125. _ACEOF
  18126. definitely_enable_video_x11_xinerama=yes
  18127. else
  18128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18129. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18130. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18131. $as_echo_n "(cached) " >&6
  18132. else
  18133. ac_check_lib_save_LIBS=$LIBS
  18134. LIBS="-lXinerama $LIBS"
  18135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18136. /* end confdefs.h. */
  18137. /* Override any GCC internal prototype to avoid an error.
  18138. Use char because int might match the return type of a GCC
  18139. builtin and then its argument prototype would still apply. */
  18140. #ifdef __cplusplus
  18141. extern "C"
  18142. #endif
  18143. char XineramaQueryExtension ();
  18144. int
  18145. main ()
  18146. {
  18147. return XineramaQueryExtension ();
  18148. ;
  18149. return 0;
  18150. }
  18151. _ACEOF
  18152. if ac_fn_c_try_link "$LINENO"; then :
  18153. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18154. else
  18155. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18156. fi
  18157. rm -f core conftest.err conftest.$ac_objext \
  18158. conftest$ac_exeext conftest.$ac_ext
  18159. LIBS=$ac_check_lib_save_LIBS
  18160. fi
  18161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18162. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18163. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18164. have_xinerama_lib=yes
  18165. fi
  18166. if test x$have_xinerama_lib = xyes ; then
  18167. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18168. definitely_enable_video_x11_xinerama=yes
  18169. fi
  18170. fi
  18171. fi
  18172. fi
  18173. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18174. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18175. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18176. fi
  18177. # Check whether --enable-video-x11-xinput was given.
  18178. if test "${enable_video_x11_xinput+set}" = set; then :
  18179. enableval=$enable_video_x11_xinput;
  18180. else
  18181. enable_video_x11_xinput=yes
  18182. fi
  18183. if test x$enable_video_x11_xinput = xyes; then
  18184. definitely_enable_video_x11_xinput=no
  18185. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18186. "
  18187. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18188. have_xinput_h_hdr=yes
  18189. else
  18190. have_xinput_h_hdr=no
  18191. fi
  18192. if test x$have_xinput_h_hdr = xyes; then
  18193. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18194. echo "-- dynamic libXi -> $xinput_lib"
  18195. cat >>confdefs.h <<_ACEOF
  18196. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18197. _ACEOF
  18198. definitely_enable_video_x11_xinput=yes
  18199. else
  18200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18201. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18202. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18203. $as_echo_n "(cached) " >&6
  18204. else
  18205. ac_check_lib_save_LIBS=$LIBS
  18206. LIBS="-lXi $LIBS"
  18207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18208. /* end confdefs.h. */
  18209. /* Override any GCC internal prototype to avoid an error.
  18210. Use char because int might match the return type of a GCC
  18211. builtin and then its argument prototype would still apply. */
  18212. #ifdef __cplusplus
  18213. extern "C"
  18214. #endif
  18215. char XOpenDevice ();
  18216. int
  18217. main ()
  18218. {
  18219. return XOpenDevice ();
  18220. ;
  18221. return 0;
  18222. }
  18223. _ACEOF
  18224. if ac_fn_c_try_link "$LINENO"; then :
  18225. ac_cv_lib_Xi_XOpenDevice=yes
  18226. else
  18227. ac_cv_lib_Xi_XOpenDevice=no
  18228. fi
  18229. rm -f core conftest.err conftest.$ac_objext \
  18230. conftest$ac_exeext conftest.$ac_ext
  18231. LIBS=$ac_check_lib_save_LIBS
  18232. fi
  18233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18234. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18235. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18236. have_xinput_lib=yes
  18237. fi
  18238. if test x$have_xinput_lib = xyes ; then
  18239. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18240. definitely_enable_video_x11_xinput=yes
  18241. fi
  18242. fi
  18243. fi
  18244. fi
  18245. if test x$definitely_enable_video_x11_xinput = xyes; then
  18246. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18247. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18249. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18250. have_xinput2_multitouch=no
  18251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18252. /* end confdefs.h. */
  18253. #include <X11/Xlib.h>
  18254. #include <X11/Xproto.h>
  18255. #include <X11/extensions/XInput2.h>
  18256. int
  18257. main ()
  18258. {
  18259. int event_type = XI_TouchBegin;
  18260. XITouchClassInfo *t;
  18261. ;
  18262. return 0;
  18263. }
  18264. _ACEOF
  18265. if ac_fn_c_try_compile "$LINENO"; then :
  18266. have_xinput2_multitouch=yes
  18267. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18268. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18269. fi
  18270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18272. $as_echo "$have_xinput2_multitouch" >&6; }
  18273. fi
  18274. # Check whether --enable-video-x11-xrandr was given.
  18275. if test "${enable_video_x11_xrandr+set}" = set; then :
  18276. enableval=$enable_video_x11_xrandr;
  18277. else
  18278. enable_video_x11_xrandr=yes
  18279. fi
  18280. if test x$enable_video_x11_xrandr = xyes; then
  18281. definitely_enable_video_x11_xrandr=no
  18282. have_xrandr_h_hdr=no
  18283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18284. /* end confdefs.h. */
  18285. #include <X11/Xlib.h>
  18286. #include <X11/extensions/Xrandr.h>
  18287. int
  18288. main ()
  18289. {
  18290. XRRScreenResources *res = NULL;
  18291. ;
  18292. return 0;
  18293. }
  18294. _ACEOF
  18295. if ac_fn_c_try_compile "$LINENO"; then :
  18296. have_xrandr_h_hdr=yes
  18297. fi
  18298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18299. if test x$have_xrandr_h_hdr = xyes; then
  18300. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18301. echo "-- dynamic libXrandr -> $xrandr_lib"
  18302. cat >>confdefs.h <<_ACEOF
  18303. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18304. _ACEOF
  18305. definitely_enable_video_x11_xrandr=yes
  18306. else
  18307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18308. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18309. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18310. $as_echo_n "(cached) " >&6
  18311. else
  18312. ac_check_lib_save_LIBS=$LIBS
  18313. LIBS="-lXrandr $LIBS"
  18314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18315. /* end confdefs.h. */
  18316. /* Override any GCC internal prototype to avoid an error.
  18317. Use char because int might match the return type of a GCC
  18318. builtin and then its argument prototype would still apply. */
  18319. #ifdef __cplusplus
  18320. extern "C"
  18321. #endif
  18322. char XRRQueryExtension ();
  18323. int
  18324. main ()
  18325. {
  18326. return XRRQueryExtension ();
  18327. ;
  18328. return 0;
  18329. }
  18330. _ACEOF
  18331. if ac_fn_c_try_link "$LINENO"; then :
  18332. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18333. else
  18334. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18335. fi
  18336. rm -f core conftest.err conftest.$ac_objext \
  18337. conftest$ac_exeext conftest.$ac_ext
  18338. LIBS=$ac_check_lib_save_LIBS
  18339. fi
  18340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18341. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18342. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18343. have_xrandr_lib=yes
  18344. fi
  18345. if test x$have_xrandr_lib = xyes ; then
  18346. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18347. definitely_enable_video_x11_xrandr=yes
  18348. fi
  18349. fi
  18350. fi
  18351. fi
  18352. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18353. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18354. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18355. fi
  18356. # Check whether --enable-video-x11-scrnsaver was given.
  18357. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18358. enableval=$enable_video_x11_scrnsaver;
  18359. else
  18360. enable_video_x11_scrnsaver=yes
  18361. fi
  18362. if test x$enable_video_x11_scrnsaver = xyes; then
  18363. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18364. "
  18365. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18366. have_scrnsaver_h_hdr=yes
  18367. else
  18368. have_scrnsaver_h_hdr=no
  18369. fi
  18370. if test x$have_scrnsaver_h_hdr = xyes; then
  18371. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18372. echo "-- dynamic libXss -> $xss_lib"
  18373. cat >>confdefs.h <<_ACEOF
  18374. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18375. _ACEOF
  18376. definitely_enable_video_x11_scrnsaver=yes
  18377. else
  18378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18379. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18380. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18381. $as_echo_n "(cached) " >&6
  18382. else
  18383. ac_check_lib_save_LIBS=$LIBS
  18384. LIBS="-lXss $LIBS"
  18385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18386. /* end confdefs.h. */
  18387. /* Override any GCC internal prototype to avoid an error.
  18388. Use char because int might match the return type of a GCC
  18389. builtin and then its argument prototype would still apply. */
  18390. #ifdef __cplusplus
  18391. extern "C"
  18392. #endif
  18393. char XScreenSaverSuspend ();
  18394. int
  18395. main ()
  18396. {
  18397. return XScreenSaverSuspend ();
  18398. ;
  18399. return 0;
  18400. }
  18401. _ACEOF
  18402. if ac_fn_c_try_link "$LINENO"; then :
  18403. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18404. else
  18405. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18406. fi
  18407. rm -f core conftest.err conftest.$ac_objext \
  18408. conftest$ac_exeext conftest.$ac_ext
  18409. LIBS=$ac_check_lib_save_LIBS
  18410. fi
  18411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18412. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18413. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18414. have_xss_lib=yes
  18415. fi
  18416. if test x$have_xss_lib = xyes ; then
  18417. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18418. definitely_enable_video_x11_scrnsaver=yes
  18419. fi
  18420. fi
  18421. fi
  18422. fi
  18423. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18424. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18425. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18426. fi
  18427. # Check whether --enable-video-x11-xshape was given.
  18428. if test "${enable_video_x11_xshape+set}" = set; then :
  18429. enableval=$enable_video_x11_xshape;
  18430. else
  18431. enable_video_x11_xshape=yes
  18432. fi
  18433. if test x$enable_video_x11_xshape = xyes; then
  18434. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18435. "
  18436. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18437. have_shape_h_hdr=yes
  18438. else
  18439. have_shape_h_hdr=no
  18440. fi
  18441. if test x$have_shape_h_hdr = xyes; then
  18442. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18443. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18444. fi
  18445. fi
  18446. # Check whether --enable-video-x11-vm was given.
  18447. if test "${enable_video_x11_vm+set}" = set; then :
  18448. enableval=$enable_video_x11_vm;
  18449. else
  18450. enable_video_x11_vm=yes
  18451. fi
  18452. if test x$enable_video_x11_vm = xyes; then
  18453. definitely_enable_video_x11_vm=no
  18454. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18455. "
  18456. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18457. have_vm_h_hdr=yes
  18458. else
  18459. have_vm_h_hdr=no
  18460. fi
  18461. if test x$have_vm_h_hdr = xyes; then
  18462. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18463. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18464. cat >>confdefs.h <<_ACEOF
  18465. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18466. _ACEOF
  18467. definitely_enable_video_x11_vm=yes
  18468. else
  18469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18470. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18471. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18472. $as_echo_n "(cached) " >&6
  18473. else
  18474. ac_check_lib_save_LIBS=$LIBS
  18475. LIBS="-lXxf86vm $LIBS"
  18476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18477. /* end confdefs.h. */
  18478. /* Override any GCC internal prototype to avoid an error.
  18479. Use char because int might match the return type of a GCC
  18480. builtin and then its argument prototype would still apply. */
  18481. #ifdef __cplusplus
  18482. extern "C"
  18483. #endif
  18484. char XF86VidModeQueryVersion ();
  18485. int
  18486. main ()
  18487. {
  18488. return XF86VidModeQueryVersion ();
  18489. ;
  18490. return 0;
  18491. }
  18492. _ACEOF
  18493. if ac_fn_c_try_link "$LINENO"; then :
  18494. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18495. else
  18496. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18497. fi
  18498. rm -f core conftest.err conftest.$ac_objext \
  18499. conftest$ac_exeext conftest.$ac_ext
  18500. LIBS=$ac_check_lib_save_LIBS
  18501. fi
  18502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18503. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18504. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18505. have_vm_lib=yes
  18506. fi
  18507. if test x$have_vm_lib = xyes ; then
  18508. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18509. definitely_enable_video_x11_vm=yes
  18510. fi
  18511. fi
  18512. fi
  18513. fi
  18514. if test x$definitely_enable_video_x11_vm = xyes; then
  18515. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18516. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18517. fi
  18518. fi
  18519. else
  18520. # Prevent Mesa from including X11 headers
  18521. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18522. fi
  18523. }
  18524. CheckVivanteVideo()
  18525. {
  18526. # Check whether --enable-video-vivante was given.
  18527. if test "${enable_video_vivante+set}" = set; then :
  18528. enableval=$enable_video_vivante;
  18529. else
  18530. enable_video_vivante=yes
  18531. fi
  18532. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18534. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18535. have_vivante_vdk=no
  18536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18537. /* end confdefs.h. */
  18538. #define LINUX
  18539. #define EGL_API_FB
  18540. #include <gc_vdk.h>
  18541. int
  18542. main ()
  18543. {
  18544. ;
  18545. return 0;
  18546. }
  18547. _ACEOF
  18548. if ac_fn_c_try_compile "$LINENO"; then :
  18549. have_vivante_vdk=yes
  18550. fi
  18551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18553. $as_echo "$have_vivante_vdk" >&6; }
  18554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18555. $as_echo_n "checking for Vivante FB API... " >&6; }
  18556. have_vivante_egl=no
  18557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18558. /* end confdefs.h. */
  18559. #define LINUX
  18560. #define EGL_API_FB
  18561. #include <EGL/eglvivante.h>
  18562. int
  18563. main ()
  18564. {
  18565. ;
  18566. return 0;
  18567. }
  18568. _ACEOF
  18569. if ac_fn_c_try_compile "$LINENO"; then :
  18570. have_vivante_egl=yes
  18571. fi
  18572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18574. $as_echo "$have_vivante_egl" >&6; }
  18575. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18576. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18577. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18578. if test x$have_vivante_vdk = xyes; then
  18579. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18580. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18581. fi
  18582. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18583. SUMMARY_video="${SUMMARY_video} vivante"
  18584. have_video=yes
  18585. fi
  18586. fi
  18587. }
  18588. CheckHaikuVideo()
  18589. {
  18590. if test x$enable_video = xyes; then
  18591. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18592. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18593. have_video=yes
  18594. SUMMARY_video="${SUMMARY_video} haiku"
  18595. fi
  18596. }
  18597. CheckCOCOA()
  18598. {
  18599. # Check whether --enable-video-cocoa was given.
  18600. if test "${enable_video_cocoa+set}" = set; then :
  18601. enableval=$enable_video_cocoa;
  18602. else
  18603. enable_video_cocoa=yes
  18604. fi
  18605. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18606. save_CFLAGS="$CFLAGS"
  18607. CFLAGS="$CFLAGS -x objective-c"
  18608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18609. $as_echo_n "checking for Cocoa framework... " >&6; }
  18610. have_cocoa=no
  18611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18612. /* end confdefs.h. */
  18613. #import <Cocoa/Cocoa.h>
  18614. int
  18615. main ()
  18616. {
  18617. ;
  18618. return 0;
  18619. }
  18620. _ACEOF
  18621. if ac_fn_c_try_compile "$LINENO"; then :
  18622. have_cocoa=yes
  18623. fi
  18624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18626. $as_echo "$have_cocoa" >&6; }
  18627. CFLAGS="$save_CFLAGS"
  18628. if test x$have_cocoa = xyes; then
  18629. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18630. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18631. SUMMARY_video="${SUMMARY_video} cocoa"
  18632. have_video=yes
  18633. fi
  18634. fi
  18635. }
  18636. CheckMETAL()
  18637. {
  18638. # Check whether --enable-video-metal was given.
  18639. if test "${enable_video_metal+set}" = set; then :
  18640. enableval=$enable_video_metal;
  18641. else
  18642. enable_video_metal=yes
  18643. fi
  18644. # Check whether --enable-render-metal was given.
  18645. if test "${enable_render_metal+set}" = set; then :
  18646. enableval=$enable_render_metal;
  18647. else
  18648. enable_render_metal=yes
  18649. fi
  18650. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18651. save_CFLAGS="$CFLAGS"
  18652. CFLAGS="$CFLAGS -x objective-c"
  18653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18654. $as_echo_n "checking for Metal framework... " >&6; }
  18655. have_metal=no
  18656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18657. /* end confdefs.h. */
  18658. #import <Cocoa/Cocoa.h>
  18659. #import <Metal/Metal.h>
  18660. #import <QuartzCore/CAMetalLayer.h>
  18661. #if !TARGET_CPU_X86_64
  18662. #error Metal doesn't work on this configuration
  18663. #endif
  18664. int
  18665. main ()
  18666. {
  18667. ;
  18668. return 0;
  18669. }
  18670. _ACEOF
  18671. if ac_fn_c_try_compile "$LINENO"; then :
  18672. have_metal=yes
  18673. fi
  18674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18675. CFLAGS="$save_CFLAGS"
  18676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18677. $as_echo "$have_metal" >&6; }
  18678. if test x$have_metal = xyes; then
  18679. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18680. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18681. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18682. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18683. fi
  18684. SUMMARY_video="${SUMMARY_video} metal"
  18685. else
  18686. enable_video_metal=no
  18687. enable_render_metal=no
  18688. fi
  18689. fi
  18690. }
  18691. CheckDirectFB()
  18692. {
  18693. # Check whether --enable-video-directfb was given.
  18694. if test "${enable_video_directfb+set}" = set; then :
  18695. enableval=$enable_video_directfb;
  18696. else
  18697. enable_video_directfb=no
  18698. fi
  18699. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18700. pkg_failed=no
  18701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
  18702. $as_echo_n "checking for DIRECTFB... " >&6; }
  18703. if test -n "$DIRECTFB_CFLAGS"; then
  18704. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18705. elif test -n "$PKG_CONFIG"; then
  18706. if test -n "$PKG_CONFIG" && \
  18707. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18708. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18709. ac_status=$?
  18710. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18711. test $ac_status = 0; }; then
  18712. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18713. else
  18714. pkg_failed=yes
  18715. fi
  18716. else
  18717. pkg_failed=untried
  18718. fi
  18719. if test -n "$DIRECTFB_LIBS"; then
  18720. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18721. elif test -n "$PKG_CONFIG"; then
  18722. if test -n "$PKG_CONFIG" && \
  18723. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18724. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18725. ac_status=$?
  18726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18727. test $ac_status = 0; }; then
  18728. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18729. else
  18730. pkg_failed=yes
  18731. fi
  18732. else
  18733. pkg_failed=untried
  18734. fi
  18735. if test $pkg_failed = yes; then
  18736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18737. $as_echo "no" >&6; }
  18738. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18739. _pkg_short_errors_supported=yes
  18740. else
  18741. _pkg_short_errors_supported=no
  18742. fi
  18743. if test $_pkg_short_errors_supported = yes; then
  18744. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1`
  18745. else
  18746. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1`
  18747. fi
  18748. # Put the nasty error message in config.log where it belongs
  18749. echo "$DIRECTFB_PKG_ERRORS" >&5
  18750. video_directfb=no
  18751. elif test $pkg_failed = untried; then
  18752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18753. $as_echo "no" >&6; }
  18754. video_directfb=no
  18755. else
  18756. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18757. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18759. $as_echo "yes" >&6; }
  18760. video_directfb=yes
  18761. fi
  18762. if test x$video_directfb = xyes; then
  18763. # SuSE 11.1 installs directfb-config without directfb-devel
  18764. save_CPPFLAGS="$CPPFLAGS"
  18765. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18766. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18767. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18768. have_directfb_hdr=yes
  18769. else
  18770. have_directfb_hdr=no
  18771. fi
  18772. CPPFLAGS="$save_CPPFLAGS"
  18773. video_directfb=$have_directfb_hdr
  18774. fi
  18775. if test x$video_directfb = xyes; then
  18776. # Check whether --enable-directfb-shared was given.
  18777. if test "${enable_directfb_shared+set}" = set; then :
  18778. enableval=$enable_directfb_shared;
  18779. else
  18780. enable_directfb_shared=yes
  18781. fi
  18782. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18783. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18784. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18785. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18787. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18788. directfb_shared=no
  18789. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18790. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18792. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18793. if test x$have_loadso != xyes && \
  18794. test x$enable_directfb_shared = xyes; then
  18795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18796. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18797. fi
  18798. if test x$have_loadso = xyes && \
  18799. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18800. directfb_shared=yes
  18801. echo "-- $directfb_lib_spec -> $directfb_lib"
  18802. cat >>confdefs.h <<_ACEOF
  18803. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18804. _ACEOF
  18805. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18806. else
  18807. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18808. SUMMARY_video="${SUMMARY_video} directfb"
  18809. fi
  18810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18811. $as_echo "$directfb_shared" >&6; }
  18812. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18813. have_video=yes
  18814. fi
  18815. fi
  18816. }
  18817. CheckKMSDRM()
  18818. {
  18819. # Check whether --enable-video-kmsdrm was given.
  18820. if test "${enable_video_kmsdrm+set}" = set; then :
  18821. enableval=$enable_video_kmsdrm;
  18822. else
  18823. enable_video_kmsdrm=no
  18824. fi
  18825. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18826. video_kmsdrm=no
  18827. pkg_failed=no
  18828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
  18829. $as_echo_n "checking for LIBDRM... " >&6; }
  18830. if test -n "$LIBDRM_CFLAGS"; then
  18831. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18832. elif test -n "$PKG_CONFIG"; then
  18833. if test -n "$PKG_CONFIG" && \
  18834. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18835. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18836. ac_status=$?
  18837. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18838. test $ac_status = 0; }; then
  18839. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.46" 2>/dev/null`
  18840. else
  18841. pkg_failed=yes
  18842. fi
  18843. else
  18844. pkg_failed=untried
  18845. fi
  18846. if test -n "$LIBDRM_LIBS"; then
  18847. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  18848. elif test -n "$PKG_CONFIG"; then
  18849. if test -n "$PKG_CONFIG" && \
  18850. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18851. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18852. ac_status=$?
  18853. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18854. test $ac_status = 0; }; then
  18855. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.46" 2>/dev/null`
  18856. else
  18857. pkg_failed=yes
  18858. fi
  18859. else
  18860. pkg_failed=untried
  18861. fi
  18862. if test $pkg_failed = yes; then
  18863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18864. $as_echo "no" >&6; }
  18865. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18866. _pkg_short_errors_supported=yes
  18867. else
  18868. _pkg_short_errors_supported=no
  18869. fi
  18870. if test $_pkg_short_errors_supported = yes; then
  18871. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.4.46" 2>&1`
  18872. else
  18873. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.4.46" 2>&1`
  18874. fi
  18875. # Put the nasty error message in config.log where it belongs
  18876. echo "$LIBDRM_PKG_ERRORS" >&5
  18877. libdrm_avail=no
  18878. elif test $pkg_failed = untried; then
  18879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18880. $as_echo "no" >&6; }
  18881. libdrm_avail=no
  18882. else
  18883. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  18884. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  18885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18886. $as_echo "yes" >&6; }
  18887. libdrm_avail=yes
  18888. fi
  18889. pkg_failed=no
  18890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5
  18891. $as_echo_n "checking for LIBGBM... " >&6; }
  18892. if test -n "$LIBGBM_CFLAGS"; then
  18893. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  18894. elif test -n "$PKG_CONFIG"; then
  18895. if test -n "$PKG_CONFIG" && \
  18896. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18897. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18898. ac_status=$?
  18899. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18900. test $ac_status = 0; }; then
  18901. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 9.0.0" 2>/dev/null`
  18902. else
  18903. pkg_failed=yes
  18904. fi
  18905. else
  18906. pkg_failed=untried
  18907. fi
  18908. if test -n "$LIBGBM_LIBS"; then
  18909. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  18910. elif test -n "$PKG_CONFIG"; then
  18911. if test -n "$PKG_CONFIG" && \
  18912. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18913. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18914. ac_status=$?
  18915. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18916. test $ac_status = 0; }; then
  18917. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 9.0.0" 2>/dev/null`
  18918. else
  18919. pkg_failed=yes
  18920. fi
  18921. else
  18922. pkg_failed=untried
  18923. fi
  18924. if test $pkg_failed = yes; then
  18925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18926. $as_echo "no" >&6; }
  18927. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18928. _pkg_short_errors_supported=yes
  18929. else
  18930. _pkg_short_errors_supported=no
  18931. fi
  18932. if test $_pkg_short_errors_supported = yes; then
  18933. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 9.0.0" 2>&1`
  18934. else
  18935. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 9.0.0" 2>&1`
  18936. fi
  18937. # Put the nasty error message in config.log where it belongs
  18938. echo "$LIBGBM_PKG_ERRORS" >&5
  18939. libgbm_avail=no
  18940. elif test $pkg_failed = untried; then
  18941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18942. $as_echo "no" >&6; }
  18943. libgbm_avail=no
  18944. else
  18945. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  18946. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  18947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18948. $as_echo "yes" >&6; }
  18949. libgbm_avail=yes
  18950. fi
  18951. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18952. video_kmsdrm=yes
  18953. fi
  18954. if test x$video_kmsdrm = xyes; then
  18955. # Check whether --enable-kmsdrm-shared was given.
  18956. if test "${enable_kmsdrm_shared+set}" = set; then :
  18957. enableval=$enable_kmsdrm_shared;
  18958. else
  18959. enable_kmsdrm_shared=yes
  18960. fi
  18961. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18962. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18963. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18965. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18966. kmsdrm_shared=no
  18967. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18968. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18969. if test x$have_loadso != xyes && \
  18970. test x$enable_kmsdrm_shared = xyes; then
  18971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18972. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18973. fi
  18974. if test x$have_loadso = xyes && \
  18975. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18976. kmsdrm_shared=yes
  18977. cat >>confdefs.h <<_ACEOF
  18978. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18979. _ACEOF
  18980. cat >>confdefs.h <<_ACEOF
  18981. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18982. _ACEOF
  18983. cat >>confdefs.h <<_ACEOF
  18984. #define HAVE_KMSDRM_SHARED "TRUE"
  18985. _ACEOF
  18986. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18987. else
  18988. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18989. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18990. fi
  18991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18992. $as_echo "$kmsdrm_shared" >&6; }
  18993. have_video=yes
  18994. fi
  18995. fi
  18996. }
  18997. CheckDummyVideo()
  18998. {
  18999. # Check whether --enable-video-dummy was given.
  19000. if test "${enable_video_dummy+set}" = set; then :
  19001. enableval=$enable_video_dummy;
  19002. else
  19003. enable_video_dummy=yes
  19004. fi
  19005. if test x$enable_video_dummy = xyes; then
  19006. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19007. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19008. have_video=yes
  19009. SUMMARY_video="${SUMMARY_video} dummy"
  19010. fi
  19011. }
  19012. CheckQNXVideo()
  19013. {
  19014. if test x$enable_video = xyes; then
  19015. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19016. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19017. have_video=yes
  19018. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19019. SUMMARY_video="${SUMMARY_video} qnx"
  19020. fi
  19021. }
  19022. CheckQNXAudio()
  19023. {
  19024. if test x$enable_audio = xyes; then
  19025. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19026. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19027. have_audio=yes
  19028. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19029. SUMMARY_audio="${SUMMARY_audio} qsa"
  19030. fi
  19031. }
  19032. # Check whether --enable-video-opengl was given.
  19033. if test "${enable_video_opengl+set}" = set; then :
  19034. enableval=$enable_video_opengl;
  19035. else
  19036. enable_video_opengl=yes
  19037. fi
  19038. CheckOpenGLX11()
  19039. {
  19040. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  19042. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  19043. video_opengl=no
  19044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19045. /* end confdefs.h. */
  19046. #include <GL/gl.h>
  19047. #include <GL/glx.h>
  19048. int
  19049. main ()
  19050. {
  19051. ;
  19052. return 0;
  19053. }
  19054. _ACEOF
  19055. if ac_fn_c_try_compile "$LINENO"; then :
  19056. video_opengl=yes
  19057. fi
  19058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19060. $as_echo "$video_opengl" >&6; }
  19061. if test x$video_opengl = xyes; then
  19062. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19063. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19064. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19065. SUMMARY_video="${SUMMARY_video} opengl"
  19066. fi
  19067. fi
  19068. }
  19069. # Check whether --enable-video-opengles was given.
  19070. if test "${enable_video_opengles+set}" = set; then :
  19071. enableval=$enable_video_opengles;
  19072. else
  19073. enable_video_opengles=yes
  19074. fi
  19075. # Check whether --enable-video-opengles1 was given.
  19076. if test "${enable_video_opengles1+set}" = set; then :
  19077. enableval=$enable_video_opengles1;
  19078. else
  19079. enable_video_opengles1=yes
  19080. fi
  19081. # Check whether --enable-video-opengles2 was given.
  19082. if test "${enable_video_opengles2+set}" = set; then :
  19083. enableval=$enable_video_opengles2;
  19084. else
  19085. enable_video_opengles2=yes
  19086. fi
  19087. CheckOpenGLESX11()
  19088. {
  19089. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19091. $as_echo_n "checking for EGL support... " >&6; }
  19092. video_opengl_egl=no
  19093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19094. /* end confdefs.h. */
  19095. #define LINUX
  19096. #define EGL_API_FB
  19097. #define MESA_EGL_NO_X11_HEADERS
  19098. #include <EGL/egl.h>
  19099. #include <EGL/eglext.h>
  19100. int
  19101. main ()
  19102. {
  19103. ;
  19104. return 0;
  19105. }
  19106. _ACEOF
  19107. if ac_fn_c_try_compile "$LINENO"; then :
  19108. video_opengl_egl=yes
  19109. fi
  19110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19112. $as_echo "$video_opengl_egl" >&6; }
  19113. if test x$video_opengl_egl = xyes; then
  19114. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19115. fi
  19116. if test x$enable_video_opengles1 = xyes; then
  19117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19118. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19119. video_opengles_v1=no
  19120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19121. /* end confdefs.h. */
  19122. #include <GLES/gl.h>
  19123. #include <GLES/glext.h>
  19124. int
  19125. main ()
  19126. {
  19127. ;
  19128. return 0;
  19129. }
  19130. _ACEOF
  19131. if ac_fn_c_try_compile "$LINENO"; then :
  19132. video_opengles_v1=yes
  19133. fi
  19134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19136. $as_echo "$video_opengles_v1" >&6; }
  19137. if test x$video_opengles_v1 = xyes; then
  19138. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19139. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19140. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19141. fi
  19142. fi
  19143. if test x$enable_video_opengles2 = xyes; then
  19144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19145. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19146. video_opengles_v2=no
  19147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19148. /* end confdefs.h. */
  19149. #include <GLES2/gl2.h>
  19150. #include <GLES2/gl2ext.h>
  19151. int
  19152. main ()
  19153. {
  19154. ;
  19155. return 0;
  19156. }
  19157. _ACEOF
  19158. if ac_fn_c_try_compile "$LINENO"; then :
  19159. video_opengles_v2=yes
  19160. fi
  19161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19163. $as_echo "$video_opengles_v2" >&6; }
  19164. if test x$video_opengles_v2 = xyes; then
  19165. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19166. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19167. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19168. fi
  19169. fi
  19170. fi
  19171. }
  19172. CheckWINDOWSGL()
  19173. {
  19174. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19175. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19176. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19177. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19178. SUMMARY_video="${SUMMARY_video} opengl"
  19179. fi
  19180. }
  19181. CheckWINDOWSGLES()
  19182. {
  19183. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19185. $as_echo_n "checking for EGL support... " >&6; }
  19186. video_opengl_egl=no
  19187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19188. /* end confdefs.h. */
  19189. #include <EGL/egl.h>
  19190. int
  19191. main ()
  19192. {
  19193. ;
  19194. return 0;
  19195. }
  19196. _ACEOF
  19197. if ac_fn_c_try_compile "$LINENO"; then :
  19198. video_opengl_egl=yes
  19199. fi
  19200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19202. $as_echo "$video_opengl_egl" >&6; }
  19203. if test x$video_opengl_egl = xyes; then
  19204. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19205. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19206. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19207. fi
  19208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19209. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19210. video_opengles_v2=no
  19211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19212. /* end confdefs.h. */
  19213. #include <GLES2/gl2.h>
  19214. #include <GLES2/gl2ext.h>
  19215. int
  19216. main ()
  19217. {
  19218. ;
  19219. return 0;
  19220. }
  19221. _ACEOF
  19222. if ac_fn_c_try_compile "$LINENO"; then :
  19223. video_opengles_v2=yes
  19224. fi
  19225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19227. $as_echo "$video_opengles_v2" >&6; }
  19228. if test x$video_opengles_v2 = xyes; then
  19229. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19230. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19231. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19232. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19233. fi
  19234. fi
  19235. }
  19236. CheckHaikuGL()
  19237. {
  19238. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19239. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19240. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19241. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19242. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19243. SUMMARY_video="${SUMMARY_video} opengl"
  19244. fi
  19245. }
  19246. CheckMacGL()
  19247. {
  19248. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19249. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19250. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19251. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19252. SUMMARY_video="${SUMMARY_video} opengl"
  19253. fi
  19254. }
  19255. CheckMacGLES()
  19256. {
  19257. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19258. video_opengl_egl=yes
  19259. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19260. video_opengles_v2=yes
  19261. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19262. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19263. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19264. fi
  19265. }
  19266. CheckEmscriptenGLES()
  19267. {
  19268. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19270. $as_echo_n "checking for EGL support... " >&6; }
  19271. video_opengl_egl=no
  19272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19273. /* end confdefs.h. */
  19274. #include <EGL/egl.h>
  19275. int
  19276. main ()
  19277. {
  19278. ;
  19279. return 0;
  19280. }
  19281. _ACEOF
  19282. if ac_fn_c_try_compile "$LINENO"; then :
  19283. video_opengl_egl=yes
  19284. fi
  19285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19287. $as_echo "$video_opengl_egl" >&6; }
  19288. if test x$video_opengl_egl = xyes; then
  19289. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19290. fi
  19291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19292. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19293. video_opengles_v2=no
  19294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19295. /* end confdefs.h. */
  19296. #include <GLES2/gl2.h>
  19297. #include <GLES2/gl2ext.h>
  19298. int
  19299. main ()
  19300. {
  19301. ;
  19302. return 0;
  19303. }
  19304. _ACEOF
  19305. if ac_fn_c_try_compile "$LINENO"; then :
  19306. video_opengles_v2=yes
  19307. fi
  19308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19310. $as_echo "$video_opengles_v2" >&6; }
  19311. if test x$video_opengles_v2 = xyes; then
  19312. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19313. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19314. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19315. fi
  19316. fi
  19317. }
  19318. # Check whether --enable-video-vulkan was given.
  19319. if test "${enable_video_vulkan+set}" = set; then :
  19320. enableval=$enable_video_vulkan;
  19321. else
  19322. enable_video_vulkan=yes
  19323. fi
  19324. CheckVulkan()
  19325. {
  19326. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19327. case "$host" in
  19328. *-*-android*)
  19329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19330. /* end confdefs.h. */
  19331. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19332. #error Vulkan doesn't work on this configuration
  19333. #endif
  19334. int
  19335. main ()
  19336. {
  19337. ;
  19338. return 0;
  19339. }
  19340. _ACEOF
  19341. if ac_fn_c_try_compile "$LINENO"; then :
  19342. else
  19343. enable_video_vulkan=no
  19344. fi
  19345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19346. ;;
  19347. *-*-darwin*)
  19348. save_CFLAGS="$CFLAGS"
  19349. CFLAGS="$CFLAGS -x objective-c"
  19350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19351. /* end confdefs.h. */
  19352. #include <Cocoa/Cocoa.h>
  19353. #include <Metal/Metal.h>
  19354. #include <QuartzCore/CAMetalLayer.h>
  19355. #if !TARGET_CPU_X86_64
  19356. #error Vulkan doesn't work on this configuration
  19357. #endif
  19358. int
  19359. main ()
  19360. {
  19361. ;
  19362. return 0;
  19363. }
  19364. _ACEOF
  19365. if ac_fn_c_try_compile "$LINENO"; then :
  19366. else
  19367. enable_video_vulkan=no
  19368. fi
  19369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19370. CFLAGS="$save_CFLAGS"
  19371. ;;
  19372. *)
  19373. ;;
  19374. esac
  19375. if test x$enable_video_vulkan = xno; then
  19376. # For reasons I am totally unable to see, I get an undefined macro error if
  19377. # I put this in the AC_TRY_COMPILE.
  19378. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19379. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19380. fi
  19381. fi
  19382. if test x$enable_video_vulkan = xyes; then
  19383. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19384. SUMMARY_video="${SUMMARY_video} vulkan"
  19385. fi
  19386. }
  19387. CheckInputEvents()
  19388. {
  19389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19390. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19391. use_input_events=no
  19392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19393. /* end confdefs.h. */
  19394. #include <linux/input.h>
  19395. int
  19396. main ()
  19397. {
  19398. #ifndef EVIOCGNAME
  19399. #error EVIOCGNAME() ioctl not available
  19400. #endif
  19401. ;
  19402. return 0;
  19403. }
  19404. _ACEOF
  19405. if ac_fn_c_try_compile "$LINENO"; then :
  19406. use_input_events=yes
  19407. fi
  19408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19410. $as_echo "$use_input_events" >&6; }
  19411. if test x$use_input_events = xyes; then
  19412. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19413. SUMMARY_input="${SUMMARY_input} linuxev"
  19414. fi
  19415. }
  19416. CheckInputKD()
  19417. {
  19418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19419. $as_echo_n "checking for Linux kd.h... " >&6; }
  19420. use_input_kd=no
  19421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19422. /* end confdefs.h. */
  19423. #include <linux/kd.h>
  19424. #include <linux/keyboard.h>
  19425. int
  19426. main ()
  19427. {
  19428. struct kbentry kbe;
  19429. kbe.kb_table = KG_CTRL;
  19430. ioctl(0, KDGKBENT, &kbe);
  19431. ;
  19432. return 0;
  19433. }
  19434. _ACEOF
  19435. if ac_fn_c_try_compile "$LINENO"; then :
  19436. use_input_kd=yes
  19437. fi
  19438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19440. $as_echo "$use_input_kd" >&6; }
  19441. if test x$use_input_kd = xyes; then
  19442. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19443. SUMMARY_input="${SUMMARY_input} linuxkd"
  19444. fi
  19445. }
  19446. CheckLibUDev()
  19447. {
  19448. # Check whether --enable-libudev was given.
  19449. if test "${enable_libudev+set}" = set; then :
  19450. enableval=$enable_libudev;
  19451. else
  19452. enable_libudev=yes
  19453. fi
  19454. if test x$enable_libudev = xyes; then
  19455. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19456. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19457. have_libudev_h_hdr=yes
  19458. else
  19459. have_libudev_h_hdr=no
  19460. fi
  19461. if test x$have_libudev_h_hdr = xyes; then
  19462. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19463. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19464. if test x$udev_lib != x; then
  19465. echo "-- dynamic udev -> $udev_lib"
  19466. cat >>confdefs.h <<_ACEOF
  19467. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19468. _ACEOF
  19469. fi
  19470. fi
  19471. fi
  19472. }
  19473. CheckDBus()
  19474. {
  19475. # Check whether --enable-dbus was given.
  19476. if test "${enable_dbus+set}" = set; then :
  19477. enableval=$enable_dbus;
  19478. else
  19479. enable_dbus=yes
  19480. fi
  19481. if test x$enable_dbus = xyes; then
  19482. pkg_failed=no
  19483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
  19484. $as_echo_n "checking for DBUS... " >&6; }
  19485. if test -n "$DBUS_CFLAGS"; then
  19486. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19487. elif test -n "$PKG_CONFIG"; then
  19488. if test -n "$PKG_CONFIG" && \
  19489. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19490. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19491. ac_status=$?
  19492. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19493. test $ac_status = 0; }; then
  19494. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19495. else
  19496. pkg_failed=yes
  19497. fi
  19498. else
  19499. pkg_failed=untried
  19500. fi
  19501. if test -n "$DBUS_LIBS"; then
  19502. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19503. elif test -n "$PKG_CONFIG"; then
  19504. if test -n "$PKG_CONFIG" && \
  19505. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19506. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19507. ac_status=$?
  19508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19509. test $ac_status = 0; }; then
  19510. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19511. else
  19512. pkg_failed=yes
  19513. fi
  19514. else
  19515. pkg_failed=untried
  19516. fi
  19517. if test $pkg_failed = yes; then
  19518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19519. $as_echo "no" >&6; }
  19520. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19521. _pkg_short_errors_supported=yes
  19522. else
  19523. _pkg_short_errors_supported=no
  19524. fi
  19525. if test $_pkg_short_errors_supported = yes; then
  19526. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
  19527. else
  19528. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
  19529. fi
  19530. # Put the nasty error message in config.log where it belongs
  19531. echo "$DBUS_PKG_ERRORS" >&5
  19532. have_dbus=no
  19533. elif test $pkg_failed = untried; then
  19534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19535. $as_echo "no" >&6; }
  19536. have_dbus=no
  19537. else
  19538. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19539. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19541. $as_echo "yes" >&6; }
  19542. have_dbus=yes
  19543. fi
  19544. save_CFLAGS="$CFLAGS"
  19545. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19546. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19547. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19548. have_dbus_dbus_h_hdr=yes
  19549. else
  19550. have_dbus_dbus_h_hdr=no
  19551. fi
  19552. CFLAGS="$save_CFLAGS"
  19553. if test x$have_dbus_dbus_h_hdr = xyes; then
  19554. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19555. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19556. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19557. fi
  19558. fi
  19559. }
  19560. CheckIME()
  19561. {
  19562. # Check whether --enable-ime was given.
  19563. if test "${enable_ime+set}" = set; then :
  19564. enableval=$enable_ime;
  19565. else
  19566. enable_ime=yes
  19567. fi
  19568. if test x$enable_ime = xyes; then
  19569. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19570. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19571. fi
  19572. }
  19573. CheckIBus()
  19574. {
  19575. # Check whether --enable-ibus was given.
  19576. if test "${enable_ibus+set}" = set; then :
  19577. enableval=$enable_ibus;
  19578. else
  19579. enable_ibus=yes
  19580. fi
  19581. if test x$enable_ibus = xyes; then
  19582. pkg_failed=no
  19583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
  19584. $as_echo_n "checking for IBUS... " >&6; }
  19585. if test -n "$IBUS_CFLAGS"; then
  19586. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19587. elif test -n "$PKG_CONFIG"; then
  19588. if test -n "$PKG_CONFIG" && \
  19589. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19590. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19591. ac_status=$?
  19592. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19593. test $ac_status = 0; }; then
  19594. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19595. else
  19596. pkg_failed=yes
  19597. fi
  19598. else
  19599. pkg_failed=untried
  19600. fi
  19601. if test -n "$IBUS_LIBS"; then
  19602. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19603. elif test -n "$PKG_CONFIG"; then
  19604. if test -n "$PKG_CONFIG" && \
  19605. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19606. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19607. ac_status=$?
  19608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19609. test $ac_status = 0; }; then
  19610. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19611. else
  19612. pkg_failed=yes
  19613. fi
  19614. else
  19615. pkg_failed=untried
  19616. fi
  19617. if test $pkg_failed = yes; then
  19618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19619. $as_echo "no" >&6; }
  19620. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19621. _pkg_short_errors_supported=yes
  19622. else
  19623. _pkg_short_errors_supported=no
  19624. fi
  19625. if test $_pkg_short_errors_supported = yes; then
  19626. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
  19627. else
  19628. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
  19629. fi
  19630. # Put the nasty error message in config.log where it belongs
  19631. echo "$IBUS_PKG_ERRORS" >&5
  19632. have_ibus=no
  19633. elif test $pkg_failed = untried; then
  19634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19635. $as_echo "no" >&6; }
  19636. have_ibus=no
  19637. else
  19638. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19639. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19641. $as_echo "yes" >&6; }
  19642. have_ibus=yes
  19643. fi
  19644. save_CFLAGS="$CFLAGS"
  19645. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19646. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19647. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19648. have_ibus_ibus_h_hdr=yes
  19649. else
  19650. have_ibus_ibus_h_hdr=no
  19651. fi
  19652. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19653. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19654. have_inotify_inotify_h_hdr=yes
  19655. else
  19656. have_inotify_inotify_h_hdr=no
  19657. fi
  19658. CFLAGS="$save_CFLAGS"
  19659. if test x$have_ibus_ibus_h_hdr = xyes; then
  19660. if test x$enable_ime != xyes; then
  19661. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19662. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19663. have_ibus_ibus_h_hdr=no
  19664. elif test x$enable_dbus != xyes; then
  19665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19666. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19667. have_ibus_ibus_h_hdr=no
  19668. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19670. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19671. have_ibus_ibus_h_hdr=no
  19672. else
  19673. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19674. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19675. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19676. fi
  19677. fi
  19678. fi
  19679. }
  19680. CheckFcitx()
  19681. {
  19682. # Check whether --enable-fcitx was given.
  19683. if test "${enable_fcitx+set}" = set; then :
  19684. enableval=$enable_fcitx;
  19685. else
  19686. enable_fcitx=yes
  19687. fi
  19688. if test x$enable_fcitx = xyes; then
  19689. pkg_failed=no
  19690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCITX" >&5
  19691. $as_echo_n "checking for FCITX... " >&6; }
  19692. if test -n "$FCITX_CFLAGS"; then
  19693. pkg_cv_FCITX_CFLAGS="$FCITX_CFLAGS"
  19694. elif test -n "$PKG_CONFIG"; then
  19695. if test -n "$PKG_CONFIG" && \
  19696. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19697. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19698. ac_status=$?
  19699. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19700. test $ac_status = 0; }; then
  19701. pkg_cv_FCITX_CFLAGS=`$PKG_CONFIG --cflags "fcitx" 2>/dev/null`
  19702. else
  19703. pkg_failed=yes
  19704. fi
  19705. else
  19706. pkg_failed=untried
  19707. fi
  19708. if test -n "$FCITX_LIBS"; then
  19709. pkg_cv_FCITX_LIBS="$FCITX_LIBS"
  19710. elif test -n "$PKG_CONFIG"; then
  19711. if test -n "$PKG_CONFIG" && \
  19712. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19713. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19714. ac_status=$?
  19715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19716. test $ac_status = 0; }; then
  19717. pkg_cv_FCITX_LIBS=`$PKG_CONFIG --libs "fcitx" 2>/dev/null`
  19718. else
  19719. pkg_failed=yes
  19720. fi
  19721. else
  19722. pkg_failed=untried
  19723. fi
  19724. if test $pkg_failed = yes; then
  19725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19726. $as_echo "no" >&6; }
  19727. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19728. _pkg_short_errors_supported=yes
  19729. else
  19730. _pkg_short_errors_supported=no
  19731. fi
  19732. if test $_pkg_short_errors_supported = yes; then
  19733. FCITX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fcitx" 2>&1`
  19734. else
  19735. FCITX_PKG_ERRORS=`$PKG_CONFIG --print-errors "fcitx" 2>&1`
  19736. fi
  19737. # Put the nasty error message in config.log where it belongs
  19738. echo "$FCITX_PKG_ERRORS" >&5
  19739. have_fcitx=no
  19740. elif test $pkg_failed = untried; then
  19741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19742. $as_echo "no" >&6; }
  19743. have_fcitx=no
  19744. else
  19745. FCITX_CFLAGS=$pkg_cv_FCITX_CFLAGS
  19746. FCITX_LIBS=$pkg_cv_FCITX_LIBS
  19747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19748. $as_echo "yes" >&6; }
  19749. have_fcitx=yes
  19750. fi
  19751. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19752. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19753. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19754. have_fcitx_frontend_h_hdr=yes
  19755. else
  19756. have_fcitx_frontend_h_hdr=no
  19757. fi
  19758. CFLAGS="$save_CFLAGS"
  19759. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19760. if test x$enable_ime != xyes; then
  19761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19762. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19763. have_fcitx_frontend_h_hdr=no
  19764. elif test x$enable_dbus != xyes; then
  19765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19766. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19767. have_fcitx_frontend_h_hdr=no
  19768. else
  19769. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19770. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19771. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19772. fi
  19773. fi
  19774. fi
  19775. }
  19776. CheckTslib()
  19777. {
  19778. # Check whether --enable-input-tslib was given.
  19779. if test "${enable_input_tslib+set}" = set; then :
  19780. enableval=$enable_input_tslib;
  19781. else
  19782. enable_input_tslib=yes
  19783. fi
  19784. if test x$enable_input_tslib = xyes; then
  19785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19786. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19787. enable_input_tslib=no
  19788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19789. /* end confdefs.h. */
  19790. #include "tslib.h"
  19791. int
  19792. main ()
  19793. {
  19794. ;
  19795. return 0;
  19796. }
  19797. _ACEOF
  19798. if ac_fn_c_try_compile "$LINENO"; then :
  19799. enable_input_tslib=yes
  19800. fi
  19801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19803. $as_echo "$enable_input_tslib" >&6; }
  19804. if test x$enable_input_tslib = xyes; then
  19805. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19806. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19807. SUMMARY_input="${SUMMARY_input} ts"
  19808. fi
  19809. fi
  19810. }
  19811. CheckPTHREAD()
  19812. {
  19813. # Check whether --enable-pthreads was given.
  19814. if test "${enable_pthreads+set}" = set; then :
  19815. enableval=$enable_pthreads;
  19816. else
  19817. enable_pthreads=yes
  19818. fi
  19819. # Check whether --enable-pthread-sem was given.
  19820. if test "${enable_pthread_sem+set}" = set; then :
  19821. enableval=$enable_pthread_sem;
  19822. else
  19823. enable_pthread_sem=yes
  19824. fi
  19825. case "$host" in
  19826. *-*-android*)
  19827. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19828. pthread_lib=""
  19829. ;;
  19830. *-*-linux*|*-*-uclinux*)
  19831. pthread_cflags="-D_REENTRANT"
  19832. pthread_lib="-lpthread"
  19833. ;;
  19834. *-*-bsdi*)
  19835. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19836. pthread_lib=""
  19837. ;;
  19838. *-*-darwin*)
  19839. pthread_cflags="-D_THREAD_SAFE"
  19840. # causes Carbon.p complaints?
  19841. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19842. ;;
  19843. *-*-freebsd*|*-*-dragonfly*)
  19844. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19845. pthread_lib="-pthread"
  19846. ;;
  19847. *-*-netbsd*)
  19848. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19849. pthread_lib="-lpthread"
  19850. ;;
  19851. *-*-openbsd*)
  19852. pthread_cflags="-D_REENTRANT"
  19853. pthread_lib="-pthread"
  19854. ;;
  19855. *-*-solaris2.9)
  19856. # From Solaris 9+, posix4's preferred name is rt.
  19857. pthread_cflags="-D_REENTRANT"
  19858. pthread_lib="-lpthread -lrt"
  19859. ;;
  19860. *-*-solaris2.10)
  19861. # Solaris 10+ merged pthread into libc.
  19862. pthread_cflags="-D_REENTRANT"
  19863. pthread_lib="-lrt"
  19864. ;;
  19865. *-*-solaris*)
  19866. # Solaris 11+ merged rt into libc.
  19867. pthread_cflags="-D_REENTRANT"
  19868. pthread_lib=""
  19869. ;;
  19870. *-*-sysv5*)
  19871. pthread_cflags="-D_REENTRANT -Kthread"
  19872. pthread_lib=""
  19873. ;;
  19874. *-*-aix*)
  19875. pthread_cflags="-D_REENTRANT -mthreads"
  19876. pthread_lib="-lpthread"
  19877. ;;
  19878. *-*-hpux11*)
  19879. pthread_cflags="-D_REENTRANT"
  19880. pthread_lib="-L/usr/lib -lpthread"
  19881. ;;
  19882. *-*-haiku*)
  19883. pthread_cflags="-D_REENTRANT"
  19884. pthread_lib=""
  19885. ;;
  19886. *-*-nto*)
  19887. pthread_cflags="-D_REENTRANT"
  19888. pthread_lib=""
  19889. ;;
  19890. *)
  19891. pthread_cflags="-D_REENTRANT"
  19892. pthread_lib="-lpthread"
  19893. ;;
  19894. esac
  19895. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19896. # Save the original compiler flags and libraries
  19897. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19898. # Add the pthread compiler flags and libraries
  19899. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19900. # Check to see if we have pthread support on this system
  19901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19902. $as_echo_n "checking for pthreads... " >&6; }
  19903. use_pthreads=no
  19904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19905. /* end confdefs.h. */
  19906. #include <pthread.h>
  19907. int
  19908. main ()
  19909. {
  19910. pthread_attr_t type;
  19911. pthread_attr_init(&type);
  19912. ;
  19913. return 0;
  19914. }
  19915. _ACEOF
  19916. if ac_fn_c_try_link "$LINENO"; then :
  19917. use_pthreads=yes
  19918. fi
  19919. rm -f core conftest.err conftest.$ac_objext \
  19920. conftest$ac_exeext conftest.$ac_ext
  19921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19922. $as_echo "$use_pthreads" >&6; }
  19923. # Restore the compiler flags and libraries
  19924. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19925. # Do futher testing if we have pthread support...
  19926. if test x$use_pthreads = xyes; then
  19927. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19928. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19929. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19930. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19931. # Save the original compiler flags and libraries
  19932. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19933. # Add the pthread compiler flags and libraries
  19934. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19935. # Check to see if recursive mutexes are available
  19936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19937. $as_echo_n "checking for recursive mutexes... " >&6; }
  19938. has_recursive_mutexes=no
  19939. if test x$has_recursive_mutexes = xno; then
  19940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19941. /* end confdefs.h. */
  19942. #define _GNU_SOURCE 1
  19943. #include <pthread.h>
  19944. int
  19945. main ()
  19946. {
  19947. pthread_mutexattr_t attr;
  19948. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19949. ;
  19950. return 0;
  19951. }
  19952. _ACEOF
  19953. if ac_fn_c_try_link "$LINENO"; then :
  19954. has_recursive_mutexes=yes
  19955. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19956. fi
  19957. rm -f core conftest.err conftest.$ac_objext \
  19958. conftest$ac_exeext conftest.$ac_ext
  19959. fi
  19960. if test x$has_recursive_mutexes = xno; then
  19961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19962. /* end confdefs.h. */
  19963. #define _GNU_SOURCE 1
  19964. #include <pthread.h>
  19965. int
  19966. main ()
  19967. {
  19968. pthread_mutexattr_t attr;
  19969. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19970. ;
  19971. return 0;
  19972. }
  19973. _ACEOF
  19974. if ac_fn_c_try_link "$LINENO"; then :
  19975. has_recursive_mutexes=yes
  19976. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19977. fi
  19978. rm -f core conftest.err conftest.$ac_objext \
  19979. conftest$ac_exeext conftest.$ac_ext
  19980. fi
  19981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19982. $as_echo "$has_recursive_mutexes" >&6; }
  19983. # Check to see if pthread semaphore support is missing
  19984. if test x$enable_pthread_sem = xyes; then
  19985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19986. $as_echo_n "checking for pthread semaphores... " >&6; }
  19987. have_pthread_sem=no
  19988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19989. /* end confdefs.h. */
  19990. #include <pthread.h>
  19991. #include <semaphore.h>
  19992. int
  19993. main ()
  19994. {
  19995. ;
  19996. return 0;
  19997. }
  19998. _ACEOF
  19999. if ac_fn_c_try_compile "$LINENO"; then :
  20000. have_pthread_sem=yes
  20001. fi
  20002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20004. $as_echo "$have_pthread_sem" >&6; }
  20005. fi
  20006. if test x$have_pthread_sem = xyes; then
  20007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20008. $as_echo_n "checking for sem_timedwait... " >&6; }
  20009. have_sem_timedwait=no
  20010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20011. /* end confdefs.h. */
  20012. #include <pthread.h>
  20013. #include <semaphore.h>
  20014. int
  20015. main ()
  20016. {
  20017. sem_timedwait(NULL, NULL);
  20018. ;
  20019. return 0;
  20020. }
  20021. _ACEOF
  20022. if ac_fn_c_try_link "$LINENO"; then :
  20023. have_sem_timedwait=yes
  20024. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20025. fi
  20026. rm -f core conftest.err conftest.$ac_objext \
  20027. conftest$ac_exeext conftest.$ac_ext
  20028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20029. $as_echo "$have_sem_timedwait" >&6; }
  20030. fi
  20031. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20032. "
  20033. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  20034. have_pthread_np_h=yes
  20035. else
  20036. have_pthread_np_h=no
  20037. fi
  20038. if test x$have_pthread_np_h = xyes; then
  20039. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  20040. fi
  20041. # Check to see if pthread naming is available
  20042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  20043. $as_echo_n "checking for pthread_setname_np... " >&6; }
  20044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20045. /* end confdefs.h. */
  20046. /* Override any GCC internal prototype to avoid an error.
  20047. Use char because int might match the return type of a GCC
  20048. builtin and then its argument prototype would still apply. */
  20049. #ifdef __cplusplus
  20050. extern "C"
  20051. #endif
  20052. char pthread_setname_np ();
  20053. int
  20054. main ()
  20055. {
  20056. return pthread_setname_np ();
  20057. ;
  20058. return 0;
  20059. }
  20060. _ACEOF
  20061. if ac_fn_c_try_link "$LINENO"; then :
  20062. has_pthread_setname_np=yes
  20063. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20064. else
  20065. has_pthread_setname_np=no
  20066. fi
  20067. rm -f core conftest.err conftest.$ac_objext \
  20068. conftest$ac_exeext conftest.$ac_ext
  20069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20070. $as_echo "$has_pthread_setname_np" >&6; }
  20071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20072. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20074. /* end confdefs.h. */
  20075. /* Override any GCC internal prototype to avoid an error.
  20076. Use char because int might match the return type of a GCC
  20077. builtin and then its argument prototype would still apply. */
  20078. #ifdef __cplusplus
  20079. extern "C"
  20080. #endif
  20081. char pthread_set_name_np ();
  20082. int
  20083. main ()
  20084. {
  20085. return pthread_set_name_np ();
  20086. ;
  20087. return 0;
  20088. }
  20089. _ACEOF
  20090. if ac_fn_c_try_link "$LINENO"; then :
  20091. has_pthread_set_name_np=yes
  20092. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20093. else
  20094. has_pthread_set_name_np=no
  20095. fi
  20096. rm -f core conftest.err conftest.$ac_objext \
  20097. conftest$ac_exeext conftest.$ac_ext
  20098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20099. $as_echo "$has_pthread_set_name_np" >&6; }
  20100. # Restore the compiler flags and libraries
  20101. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20102. # Basic thread creation functions
  20103. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20104. # Semaphores
  20105. # We can fake these with mutexes and condition variables if necessary
  20106. if test x$have_pthread_sem = xyes; then
  20107. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20108. else
  20109. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20110. fi
  20111. # Mutexes
  20112. # We can fake these with semaphores if necessary
  20113. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20114. # Condition variables
  20115. # We can fake these with semaphores and mutexes if necessary
  20116. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20117. # Thread local storage
  20118. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20119. have_threads=yes
  20120. fi
  20121. fi
  20122. }
  20123. CheckWINDOWS()
  20124. {
  20125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20126. $as_echo_n "checking Windows compiler... " >&6; }
  20127. have_win32_gcc=no
  20128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20129. /* end confdefs.h. */
  20130. #include <windows.h>
  20131. int
  20132. main ()
  20133. {
  20134. ;
  20135. return 0;
  20136. }
  20137. _ACEOF
  20138. if ac_fn_c_try_compile "$LINENO"; then :
  20139. have_win32_gcc=yes
  20140. fi
  20141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20143. $as_echo "$have_win32_gcc" >&6; }
  20144. if test x$have_win32_gcc != xyes; then
  20145. as_fn_error $? "
  20146. *** Your compiler ($CC) does not produce Windows executables!
  20147. " "$LINENO" 5
  20148. fi
  20149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20150. $as_echo_n "checking Windows CE... " >&6; }
  20151. have_wince=no
  20152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20153. /* end confdefs.h. */
  20154. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20155. #error This is not Windows CE
  20156. #endif
  20157. int
  20158. main ()
  20159. {
  20160. ;
  20161. return 0;
  20162. }
  20163. _ACEOF
  20164. if ac_fn_c_try_compile "$LINENO"; then :
  20165. have_wince=yes
  20166. as_fn_error $? "
  20167. *** Sorry, Windows CE is no longer supported.
  20168. " "$LINENO" 5
  20169. fi
  20170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20172. $as_echo "$have_wince" >&6; }
  20173. # This fixes Windows stack alignment with newer GCC
  20174. CheckStackBoundary
  20175. }
  20176. CheckDIRECTX()
  20177. {
  20178. # Check whether --enable-directx was given.
  20179. if test "${enable_directx+set}" = set; then :
  20180. enableval=$enable_directx;
  20181. else
  20182. enable_directx=yes
  20183. fi
  20184. if test x$enable_directx = xyes; then
  20185. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20186. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20187. have_d3d=yes
  20188. fi
  20189. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20190. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20191. have_d3d11=yes
  20192. fi
  20193. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20194. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20195. have_ddraw=yes
  20196. fi
  20197. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20198. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20199. have_dsound=yes
  20200. fi
  20201. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20202. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20203. have_dinput=yes
  20204. fi
  20205. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20206. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20207. have_dxgi=yes
  20208. fi
  20209. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20210. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20211. have_xinput=yes
  20212. fi
  20213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20214. /* end confdefs.h. */
  20215. #include <windows.h>
  20216. #include <xinput.h>
  20217. XINPUT_GAMEPAD_EX x1;
  20218. int
  20219. main ()
  20220. {
  20221. ;
  20222. return 0;
  20223. }
  20224. _ACEOF
  20225. if ac_fn_c_try_compile "$LINENO"; then :
  20226. have_xinput_gamepadex=yes
  20227. fi
  20228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20230. /* end confdefs.h. */
  20231. #include <windows.h>
  20232. #include <xinput.h>
  20233. XINPUT_STATE_EX s1;
  20234. int
  20235. main ()
  20236. {
  20237. ;
  20238. return 0;
  20239. }
  20240. _ACEOF
  20241. if ac_fn_c_try_compile "$LINENO"; then :
  20242. have_xinput_stateex=yes
  20243. fi
  20244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20245. if test x$have_ddraw = xyes; then
  20246. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20247. fi
  20248. if test x$have_dinput = xyes; then
  20249. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20250. fi
  20251. if test x$have_dsound = xyes; then
  20252. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20253. fi
  20254. if test x$have_dxgi = xyes; then
  20255. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20256. fi
  20257. if test x$have_xinput = xyes; then
  20258. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20259. fi
  20260. if test x$have_xinput_gamepadex = xyes; then
  20261. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20262. fi
  20263. if test x$have_xinput_stateex = xyes; then
  20264. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20265. fi
  20266. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20267. # FIXME: ...so force it off for now.
  20268. case "$host" in
  20269. *-*-cygwin*)
  20270. have_dinput=false
  20271. ;;
  20272. esac
  20273. fi
  20274. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20275. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20276. have_wasapi=yes
  20277. fi
  20278. if test x$have_wasapi = xyes; then
  20279. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20280. fi
  20281. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20282. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20283. else
  20284. have_wasapi=no
  20285. fi
  20286. if test x$have_wasapi = xyes; then
  20287. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20288. fi
  20289. # Check whether --enable-wasapi was given.
  20290. if test "${enable_wasapi+set}" = set; then :
  20291. enableval=$enable_wasapi;
  20292. else
  20293. enable_wasapi=yes
  20294. fi
  20295. }
  20296. CheckDLOPEN()
  20297. {
  20298. # Check whether --enable-sdl-dlopen was given.
  20299. if test "${enable_sdl_dlopen+set}" = set; then :
  20300. enableval=$enable_sdl_dlopen;
  20301. else
  20302. enable_sdl_dlopen=yes
  20303. fi
  20304. if test x$enable_sdl_dlopen = xyes; then
  20305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20306. $as_echo_n "checking for dlopen... " >&6; }
  20307. have_dlopen=no
  20308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20309. /* end confdefs.h. */
  20310. #include <dlfcn.h>
  20311. int
  20312. main ()
  20313. {
  20314. void *handle = dlopen("", RTLD_NOW);
  20315. const char *loaderror = (char *) dlerror();
  20316. ;
  20317. return 0;
  20318. }
  20319. _ACEOF
  20320. if ac_fn_c_try_compile "$LINENO"; then :
  20321. have_dlopen=yes
  20322. fi
  20323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20325. $as_echo "$have_dlopen" >&6; }
  20326. if test x$have_dlopen = xyes; then
  20327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20328. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20329. if ${ac_cv_lib_c_dlopen+:} false; then :
  20330. $as_echo_n "(cached) " >&6
  20331. else
  20332. ac_check_lib_save_LIBS=$LIBS
  20333. LIBS="-lc $LIBS"
  20334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20335. /* end confdefs.h. */
  20336. /* Override any GCC internal prototype to avoid an error.
  20337. Use char because int might match the return type of a GCC
  20338. builtin and then its argument prototype would still apply. */
  20339. #ifdef __cplusplus
  20340. extern "C"
  20341. #endif
  20342. char dlopen ();
  20343. int
  20344. main ()
  20345. {
  20346. return dlopen ();
  20347. ;
  20348. return 0;
  20349. }
  20350. _ACEOF
  20351. if ac_fn_c_try_link "$LINENO"; then :
  20352. ac_cv_lib_c_dlopen=yes
  20353. else
  20354. ac_cv_lib_c_dlopen=no
  20355. fi
  20356. rm -f core conftest.err conftest.$ac_objext \
  20357. conftest$ac_exeext conftest.$ac_ext
  20358. LIBS=$ac_check_lib_save_LIBS
  20359. fi
  20360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20361. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20362. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20363. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20364. else
  20365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20366. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20367. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20368. $as_echo_n "(cached) " >&6
  20369. else
  20370. ac_check_lib_save_LIBS=$LIBS
  20371. LIBS="-ldl $LIBS"
  20372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20373. /* end confdefs.h. */
  20374. /* Override any GCC internal prototype to avoid an error.
  20375. Use char because int might match the return type of a GCC
  20376. builtin and then its argument prototype would still apply. */
  20377. #ifdef __cplusplus
  20378. extern "C"
  20379. #endif
  20380. char dlopen ();
  20381. int
  20382. main ()
  20383. {
  20384. return dlopen ();
  20385. ;
  20386. return 0;
  20387. }
  20388. _ACEOF
  20389. if ac_fn_c_try_link "$LINENO"; then :
  20390. ac_cv_lib_dl_dlopen=yes
  20391. else
  20392. ac_cv_lib_dl_dlopen=no
  20393. fi
  20394. rm -f core conftest.err conftest.$ac_objext \
  20395. conftest$ac_exeext conftest.$ac_ext
  20396. LIBS=$ac_check_lib_save_LIBS
  20397. fi
  20398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20399. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20400. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20401. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20402. else
  20403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20404. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20405. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20406. $as_echo_n "(cached) " >&6
  20407. else
  20408. ac_check_lib_save_LIBS=$LIBS
  20409. LIBS="-lltdl $LIBS"
  20410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20411. /* end confdefs.h. */
  20412. /* Override any GCC internal prototype to avoid an error.
  20413. Use char because int might match the return type of a GCC
  20414. builtin and then its argument prototype would still apply. */
  20415. #ifdef __cplusplus
  20416. extern "C"
  20417. #endif
  20418. char dlopen ();
  20419. int
  20420. main ()
  20421. {
  20422. return dlopen ();
  20423. ;
  20424. return 0;
  20425. }
  20426. _ACEOF
  20427. if ac_fn_c_try_link "$LINENO"; then :
  20428. ac_cv_lib_ltdl_dlopen=yes
  20429. else
  20430. ac_cv_lib_ltdl_dlopen=no
  20431. fi
  20432. rm -f core conftest.err conftest.$ac_objext \
  20433. conftest$ac_exeext conftest.$ac_ext
  20434. LIBS=$ac_check_lib_save_LIBS
  20435. fi
  20436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20437. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20438. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20439. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20440. fi
  20441. fi
  20442. fi
  20443. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20444. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20445. have_loadso=yes
  20446. fi
  20447. fi
  20448. }
  20449. CheckUSBHID()
  20450. {
  20451. case "$host" in
  20452. *-*-*bsd*)
  20453. if test x$enable_joystick = xyes; then
  20454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20455. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20456. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20457. $as_echo_n "(cached) " >&6
  20458. else
  20459. ac_check_lib_save_LIBS=$LIBS
  20460. LIBS="-lusbhid $LIBS"
  20461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20462. /* end confdefs.h. */
  20463. /* Override any GCC internal prototype to avoid an error.
  20464. Use char because int might match the return type of a GCC
  20465. builtin and then its argument prototype would still apply. */
  20466. #ifdef __cplusplus
  20467. extern "C"
  20468. #endif
  20469. char hid_init ();
  20470. int
  20471. main ()
  20472. {
  20473. return hid_init ();
  20474. ;
  20475. return 0;
  20476. }
  20477. _ACEOF
  20478. if ac_fn_c_try_link "$LINENO"; then :
  20479. ac_cv_lib_usbhid_hid_init=yes
  20480. else
  20481. ac_cv_lib_usbhid_hid_init=no
  20482. fi
  20483. rm -f core conftest.err conftest.$ac_objext \
  20484. conftest$ac_exeext conftest.$ac_ext
  20485. LIBS=$ac_check_lib_save_LIBS
  20486. fi
  20487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20488. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20489. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20490. have_libusbhid=yes
  20491. fi
  20492. if test x$have_libusbhid = xyes; then
  20493. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20494. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20495. USB_CFLAGS="-DHAVE_USBHID_H"
  20496. fi
  20497. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20498. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20499. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20500. fi
  20501. USB_LIBS="$USB_LIBS -lusbhid"
  20502. else
  20503. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20504. if test "x$ac_cv_header_usb_h" = xyes; then :
  20505. USB_CFLAGS="-DHAVE_USB_H"
  20506. fi
  20507. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20508. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20509. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20510. fi
  20511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20512. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20513. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20514. $as_echo_n "(cached) " >&6
  20515. else
  20516. ac_check_lib_save_LIBS=$LIBS
  20517. LIBS="-lusb $LIBS"
  20518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20519. /* end confdefs.h. */
  20520. /* Override any GCC internal prototype to avoid an error.
  20521. Use char because int might match the return type of a GCC
  20522. builtin and then its argument prototype would still apply. */
  20523. #ifdef __cplusplus
  20524. extern "C"
  20525. #endif
  20526. char hid_init ();
  20527. int
  20528. main ()
  20529. {
  20530. return hid_init ();
  20531. ;
  20532. return 0;
  20533. }
  20534. _ACEOF
  20535. if ac_fn_c_try_link "$LINENO"; then :
  20536. ac_cv_lib_usb_hid_init=yes
  20537. else
  20538. ac_cv_lib_usb_hid_init=no
  20539. fi
  20540. rm -f core conftest.err conftest.$ac_objext \
  20541. conftest$ac_exeext conftest.$ac_ext
  20542. LIBS=$ac_check_lib_save_LIBS
  20543. fi
  20544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20545. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20546. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20547. USB_LIBS="$USB_LIBS -lusb"
  20548. fi
  20549. fi
  20550. save_CFLAGS="$CFLAGS"
  20551. CFLAGS="$CFLAGS $USB_CFLAGS"
  20552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20553. $as_echo_n "checking for usbhid... " >&6; }
  20554. have_usbhid=no
  20555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20556. /* end confdefs.h. */
  20557. #include <sys/types.h>
  20558. #if defined(HAVE_USB_H)
  20559. #include <usb.h>
  20560. #endif
  20561. #ifdef __DragonFly__
  20562. # include <bus/usb/usb.h>
  20563. # include <bus/usb/usbhid.h>
  20564. #else
  20565. # include <dev/usb/usb.h>
  20566. # include <dev/usb/usbhid.h>
  20567. #endif
  20568. #if defined(HAVE_USBHID_H)
  20569. #include <usbhid.h>
  20570. #elif defined(HAVE_LIBUSB_H)
  20571. #include <libusb.h>
  20572. #elif defined(HAVE_LIBUSBHID_H)
  20573. #include <libusbhid.h>
  20574. #endif
  20575. int
  20576. main ()
  20577. {
  20578. struct report_desc *repdesc;
  20579. struct usb_ctl_report *repbuf;
  20580. hid_kind_t hidkind;
  20581. ;
  20582. return 0;
  20583. }
  20584. _ACEOF
  20585. if ac_fn_c_try_compile "$LINENO"; then :
  20586. have_usbhid=yes
  20587. fi
  20588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20590. $as_echo "$have_usbhid" >&6; }
  20591. if test x$have_usbhid = xyes; then
  20592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20593. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20594. have_usbhid_ucr_data=no
  20595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20596. /* end confdefs.h. */
  20597. #include <sys/types.h>
  20598. #if defined(HAVE_USB_H)
  20599. #include <usb.h>
  20600. #endif
  20601. #ifdef __DragonFly__
  20602. # include <bus/usb/usb.h>
  20603. # include <bus/usb/usbhid.h>
  20604. #else
  20605. # include <dev/usb/usb.h>
  20606. # include <dev/usb/usbhid.h>
  20607. #endif
  20608. #if defined(HAVE_USBHID_H)
  20609. #include <usbhid.h>
  20610. #elif defined(HAVE_LIBUSB_H)
  20611. #include <libusb.h>
  20612. #elif defined(HAVE_LIBUSBHID_H)
  20613. #include <libusbhid.h>
  20614. #endif
  20615. int
  20616. main ()
  20617. {
  20618. struct usb_ctl_report buf;
  20619. if (buf.ucr_data) { }
  20620. ;
  20621. return 0;
  20622. }
  20623. _ACEOF
  20624. if ac_fn_c_try_compile "$LINENO"; then :
  20625. have_usbhid_ucr_data=yes
  20626. fi
  20627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20628. if test x$have_usbhid_ucr_data = xyes; then
  20629. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20630. fi
  20631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20632. $as_echo "$have_usbhid_ucr_data" >&6; }
  20633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20634. $as_echo_n "checking for new usbhid API... " >&6; }
  20635. have_usbhid_new=no
  20636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20637. /* end confdefs.h. */
  20638. #include <sys/types.h>
  20639. #if defined(HAVE_USB_H)
  20640. #include <usb.h>
  20641. #endif
  20642. #ifdef __DragonFly__
  20643. #include <bus/usb/usb.h>
  20644. #include <bus/usb/usbhid.h>
  20645. #else
  20646. #include <dev/usb/usb.h>
  20647. #include <dev/usb/usbhid.h>
  20648. #endif
  20649. #if defined(HAVE_USBHID_H)
  20650. #include <usbhid.h>
  20651. #elif defined(HAVE_LIBUSB_H)
  20652. #include <libusb.h>
  20653. #elif defined(HAVE_LIBUSBHID_H)
  20654. #include <libusbhid.h>
  20655. #endif
  20656. int
  20657. main ()
  20658. {
  20659. report_desc_t d;
  20660. hid_start_parse(d, 1, 1);
  20661. ;
  20662. return 0;
  20663. }
  20664. _ACEOF
  20665. if ac_fn_c_try_compile "$LINENO"; then :
  20666. have_usbhid_new=yes
  20667. fi
  20668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20669. if test x$have_usbhid_new = xyes; then
  20670. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20671. fi
  20672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20673. $as_echo "$have_usbhid_new" >&6; }
  20674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20675. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20676. have_machine_joystick=no
  20677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20678. /* end confdefs.h. */
  20679. #include <machine/joystick.h>
  20680. int
  20681. main ()
  20682. {
  20683. struct joystick t;
  20684. ;
  20685. return 0;
  20686. }
  20687. _ACEOF
  20688. if ac_fn_c_try_compile "$LINENO"; then :
  20689. have_machine_joystick=yes
  20690. fi
  20691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20692. if test x$have_machine_joystick = xyes; then
  20693. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20694. fi
  20695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20696. $as_echo "$have_machine_joystick" >&6; }
  20697. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20698. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20699. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20700. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20701. have_joystick=yes
  20702. fi
  20703. CFLAGS="$save_CFLAGS"
  20704. fi
  20705. ;;
  20706. esac
  20707. }
  20708. CheckHIDAPI()
  20709. {
  20710. # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
  20711. # so we'll just use libusb when it's available.
  20712. case "$host" in
  20713. # libusb does not support iOS
  20714. arm*-apple-darwin* | *-ios-* )
  20715. skiplibusb=yes
  20716. ;;
  20717. # On the other hand, *BSD specifically uses libusb only
  20718. *-*-*bsd* )
  20719. onlylibusb=yes
  20720. ;;
  20721. # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is
  20722. *-*-cygwin* | *-*-mingw32*)
  20723. userawinput=yes
  20724. ;;
  20725. esac
  20726. # Check whether --enable-hidapi was given.
  20727. if test "${enable_hidapi+set}" = set; then :
  20728. enableval=$enable_hidapi;
  20729. else
  20730. enable_hidapi=no
  20731. fi
  20732. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20733. if test x$skiplibusb = xyes; then
  20734. hidapi_support=yes
  20735. else
  20736. pkg_failed=no
  20737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
  20738. $as_echo_n "checking for LIBUSB... " >&6; }
  20739. if test -n "$LIBUSB_CFLAGS"; then
  20740. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  20741. elif test -n "$PKG_CONFIG"; then
  20742. if test -n "$PKG_CONFIG" && \
  20743. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20744. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20745. ac_status=$?
  20746. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20747. test $ac_status = 0; }; then
  20748. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  20749. else
  20750. pkg_failed=yes
  20751. fi
  20752. else
  20753. pkg_failed=untried
  20754. fi
  20755. if test -n "$LIBUSB_LIBS"; then
  20756. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  20757. elif test -n "$PKG_CONFIG"; then
  20758. if test -n "$PKG_CONFIG" && \
  20759. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20760. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20761. ac_status=$?
  20762. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20763. test $ac_status = 0; }; then
  20764. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  20765. else
  20766. pkg_failed=yes
  20767. fi
  20768. else
  20769. pkg_failed=untried
  20770. fi
  20771. if test $pkg_failed = yes; then
  20772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20773. $as_echo "no" >&6; }
  20774. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20775. _pkg_short_errors_supported=yes
  20776. else
  20777. _pkg_short_errors_supported=no
  20778. fi
  20779. if test $_pkg_short_errors_supported = yes; then
  20780. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
  20781. else
  20782. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
  20783. fi
  20784. # Put the nasty error message in config.log where it belongs
  20785. echo "$LIBUSB_PKG_ERRORS" >&5
  20786. have_libusb=no
  20787. elif test $pkg_failed = untried; then
  20788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20789. $as_echo "no" >&6; }
  20790. have_libusb=no
  20791. else
  20792. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  20793. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  20794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20795. $as_echo "yes" >&6; }
  20796. have_libusb=yes
  20797. fi
  20798. save_CFLAGS="$CFLAGS"
  20799. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20800. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20801. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20802. have_libusb_h=yes
  20803. fi
  20804. CFLAGS="$save_CFLAGS"
  20805. if test x$have_libusb_h = xyes; then
  20806. hidapi_support=yes
  20807. elif test x$onlylibusb = xyes; then
  20808. hidapi_support=no
  20809. else
  20810. hidapi_support=yes
  20811. fi
  20812. fi
  20813. if test x$hidapi_support = xyes; then
  20814. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20815. if test x$userawinput = xyes; then
  20816. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  20817. fi
  20818. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20819. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20820. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  20821. if test x$have_libusb_h = xyes; then
  20822. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20823. if test x$onlylibusb = xyes; then
  20824. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20825. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  20826. else
  20827. if test x$have_loadso != xyes; then
  20828. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  20829. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  20830. fi
  20831. # libusb is loaded dynamically, so don't add it to LDFLAGS
  20832. libusb_lib=""
  20833. case "$host" in
  20834. *-*-darwin* )
  20835. libusb_lib="libusb-1.0.0.dylib"
  20836. ;;
  20837. *-*-cygwin* | *-*-mingw32* )
  20838. libusb_lib="libusb-1.0.dll"
  20839. ;;
  20840. esac
  20841. if test x$libusb_lib = x; then
  20842. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20843. fi
  20844. cat >>confdefs.h <<_ACEOF
  20845. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  20846. _ACEOF
  20847. fi
  20848. fi
  20849. fi
  20850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20851. $as_echo_n "checking for hidapi support... " >&6; }
  20852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20853. $as_echo "$hidapi_support" >&6; }
  20854. fi
  20855. }
  20856. CheckClockGettime()
  20857. {
  20858. # Check whether --enable-clock_gettime was given.
  20859. if test "${enable_clock_gettime+set}" = set; then :
  20860. enableval=$enable_clock_gettime;
  20861. else
  20862. enable_clock_gettime=yes
  20863. fi
  20864. if test x$enable_clock_gettime = xyes; then
  20865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20866. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20867. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20868. $as_echo_n "(cached) " >&6
  20869. else
  20870. ac_check_lib_save_LIBS=$LIBS
  20871. LIBS="-lrt $LIBS"
  20872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20873. /* end confdefs.h. */
  20874. /* Override any GCC internal prototype to avoid an error.
  20875. Use char because int might match the return type of a GCC
  20876. builtin and then its argument prototype would still apply. */
  20877. #ifdef __cplusplus
  20878. extern "C"
  20879. #endif
  20880. char clock_gettime ();
  20881. int
  20882. main ()
  20883. {
  20884. return clock_gettime ();
  20885. ;
  20886. return 0;
  20887. }
  20888. _ACEOF
  20889. if ac_fn_c_try_link "$LINENO"; then :
  20890. ac_cv_lib_rt_clock_gettime=yes
  20891. else
  20892. ac_cv_lib_rt_clock_gettime=no
  20893. fi
  20894. rm -f core conftest.err conftest.$ac_objext \
  20895. conftest$ac_exeext conftest.$ac_ext
  20896. LIBS=$ac_check_lib_save_LIBS
  20897. fi
  20898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20899. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20900. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20901. have_clock_gettime=yes
  20902. fi
  20903. if test x$have_clock_gettime = xyes; then
  20904. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20905. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20906. else
  20907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20908. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20909. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20910. $as_echo_n "(cached) " >&6
  20911. else
  20912. ac_check_lib_save_LIBS=$LIBS
  20913. LIBS="-lc $LIBS"
  20914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20915. /* end confdefs.h. */
  20916. /* Override any GCC internal prototype to avoid an error.
  20917. Use char because int might match the return type of a GCC
  20918. builtin and then its argument prototype would still apply. */
  20919. #ifdef __cplusplus
  20920. extern "C"
  20921. #endif
  20922. char clock_gettime ();
  20923. int
  20924. main ()
  20925. {
  20926. return clock_gettime ();
  20927. ;
  20928. return 0;
  20929. }
  20930. _ACEOF
  20931. if ac_fn_c_try_link "$LINENO"; then :
  20932. ac_cv_lib_c_clock_gettime=yes
  20933. else
  20934. ac_cv_lib_c_clock_gettime=no
  20935. fi
  20936. rm -f core conftest.err conftest.$ac_objext \
  20937. conftest$ac_exeext conftest.$ac_ext
  20938. LIBS=$ac_check_lib_save_LIBS
  20939. fi
  20940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20941. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20942. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20943. have_clock_gettime=yes
  20944. fi
  20945. if test x$have_clock_gettime = xyes; then
  20946. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20947. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20948. fi
  20949. fi
  20950. fi
  20951. }
  20952. CheckLinuxVersion()
  20953. {
  20954. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20955. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20956. have_linux_version_h=yes
  20957. fi
  20958. if test x$have_linux_version_h = xyes; then
  20959. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20960. fi
  20961. }
  20962. CheckRPATH()
  20963. {
  20964. # Check whether --enable-rpath was given.
  20965. if test "${enable_rpath+set}" = set; then :
  20966. enableval=$enable_rpath;
  20967. else
  20968. enable_rpath=yes
  20969. fi
  20970. }
  20971. CheckEventSignals()
  20972. {
  20973. # Check whether --enable-backgrounding-signal was given.
  20974. if test "${enable_backgrounding_signal+set}" = set; then :
  20975. enableval=$enable_backgrounding_signal;
  20976. else
  20977. enable_backgrounding_signal=no
  20978. fi
  20979. if test x$enable_backgrounding_signal != xno; then
  20980. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  20981. fi
  20982. # Check whether --enable-foregrounding-signal was given.
  20983. if test "${enable_foregrounding_signal+set}" = set; then :
  20984. enableval=$enable_foregrounding_signal;
  20985. else
  20986. enable_foregrounding_signal=no
  20987. fi
  20988. if test x$enable_foregrounding_signal != xno; then
  20989. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  20990. fi
  20991. }
  20992. CheckVirtualJoystick()
  20993. {
  20994. # Check whether --enable-joystick-virtual was given.
  20995. if test "${enable_joystick_virtual+set}" = set; then :
  20996. enableval=$enable_joystick_virtual;
  20997. else
  20998. enable_joystick_virtual=no
  20999. fi
  21000. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  21001. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  21002. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  21003. have_joystick_virtual=yes
  21004. fi
  21005. }
  21006. CheckWarnAll
  21007. CheckNoStrictAliasing
  21008. CheckEventSignals
  21009. case "$host" in
  21010. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  21011. case "$host" in
  21012. *-*-android*)
  21013. # Android
  21014. ARCH=android
  21015. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  21016. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  21017. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  21018. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  21019. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  21020. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  21021. if test x$enable_video = xyes; then
  21022. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  21023. # FIXME: confdefs? Not AC_DEFINE?
  21024. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  21025. SUMMARY_video="${SUMMARY_video} android"
  21026. fi
  21027. ;;
  21028. *-*-linux*) ARCH=linux ;;
  21029. *-*-uclinux*) ARCH=linux ;;
  21030. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  21031. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  21032. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  21033. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  21034. *-*-bsdi*) ARCH=bsdi ;;
  21035. *-*-freebsd*) ARCH=freebsd ;;
  21036. *-*-dragonfly*) ARCH=freebsd ;;
  21037. *-*-netbsd*) ARCH=netbsd ;;
  21038. *-*-openbsd*) ARCH=openbsd ;;
  21039. *-*-sysv5*) ARCH=sysv5 ;;
  21040. *-*-solaris*) ARCH=solaris ;;
  21041. *-*-hpux*) ARCH=hpux ;;
  21042. *-*-aix*) ARCH=aix ;;
  21043. *-*-minix*) ARCH=minix ;;
  21044. *-*-nto*) ARCH=nto
  21045. CheckQNXVideo
  21046. ;;
  21047. esac
  21048. CheckVisibilityHidden
  21049. CheckDeclarationAfterStatement
  21050. CheckDummyVideo
  21051. CheckDiskAudio
  21052. CheckDummyAudio
  21053. CheckDLOPEN
  21054. CheckARM
  21055. CheckNEON
  21056. CheckOSS
  21057. CheckALSA
  21058. CheckPulseAudio
  21059. CheckJACK
  21060. CheckARTSC
  21061. CheckESD
  21062. CheckNAS
  21063. CheckSNDIO
  21064. CheckFusionSound
  21065. CheckLibSampleRate
  21066. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21067. CheckRPI
  21068. CheckX11
  21069. CheckDirectFB
  21070. CheckKMSDRM
  21071. CheckOpenGLX11
  21072. CheckOpenGLESX11
  21073. CheckVulkan
  21074. CheckWayland
  21075. CheckInputEvents
  21076. CheckLibUDev
  21077. CheckDBus
  21078. CheckIME
  21079. CheckIBus
  21080. CheckFcitx
  21081. case $ARCH in
  21082. linux)
  21083. CheckInputKD
  21084. ;;
  21085. esac
  21086. CheckTslib
  21087. CheckUSBHID
  21088. CheckHIDAPI
  21089. CheckPTHREAD
  21090. CheckClockGettime
  21091. CheckLinuxVersion
  21092. CheckRPATH
  21093. CheckVivanteVideo
  21094. # Set up files for the audio library
  21095. if test x$enable_audio = xyes; then
  21096. case $ARCH in
  21097. sysv5|solaris|hpux)
  21098. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21099. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21100. SUMMARY_audio="${SUMMARY_audio} sun"
  21101. have_audio=yes
  21102. ;;
  21103. netbsd) # Don't use this on OpenBSD, it's busted.
  21104. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21105. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21106. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21107. have_audio=yes
  21108. ;;
  21109. aix)
  21110. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21111. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21112. SUMMARY_audio="${SUMMARY_audio} paudio"
  21113. have_audio=yes
  21114. ;;
  21115. android)
  21116. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21117. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21118. SUMMARY_audio="${SUMMARY_audio} android"
  21119. have_audio=yes
  21120. ;;
  21121. nto)
  21122. CheckQNXAudio
  21123. ;;
  21124. esac
  21125. fi
  21126. # Set up files for the joystick library
  21127. if test x$enable_joystick = xyes; then
  21128. case $ARCH in
  21129. linux)
  21130. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21131. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21132. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21133. have_joystick=yes
  21134. ;;
  21135. android)
  21136. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21137. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21138. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21139. have_joystick=yes
  21140. ;;
  21141. esac
  21142. fi
  21143. # Set up files for the haptic library
  21144. if test x$enable_haptic = xyes; then
  21145. case $ARCH in
  21146. linux)
  21147. if test x$use_input_events = xyes; then
  21148. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21149. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21150. have_haptic=yes
  21151. fi
  21152. ;;
  21153. android)
  21154. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21155. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21156. have_haptic=yes
  21157. ;;
  21158. esac
  21159. fi
  21160. # Set up files for the sensor library
  21161. if test x$enable_sensor = xyes; then
  21162. case $ARCH in
  21163. android)
  21164. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21165. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21166. have_sensor=yes
  21167. ;;
  21168. esac
  21169. fi
  21170. # Set up files for the power library
  21171. if test x$enable_power = xyes; then
  21172. case $ARCH in
  21173. linux)
  21174. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21175. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21176. have_power=yes
  21177. ;;
  21178. android)
  21179. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21180. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21181. have_power=yes
  21182. ;;
  21183. esac
  21184. fi
  21185. # Set up files for the filesystem library
  21186. if test x$enable_filesystem = xyes; then
  21187. case $ARCH in
  21188. android)
  21189. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21190. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21191. have_filesystem=yes
  21192. ;;
  21193. *)
  21194. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21195. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21196. have_filesystem=yes
  21197. ;;
  21198. esac
  21199. fi
  21200. # Set up files for the timer library
  21201. if test x$enable_timers = xyes; then
  21202. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21203. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21204. have_timers=yes
  21205. fi
  21206. # Set up files for udev hotplugging support
  21207. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21208. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21209. fi
  21210. # Set up files for evdev input
  21211. if test x$use_input_events = xyes; then
  21212. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  21213. fi
  21214. # Set up other core UNIX files
  21215. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21216. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21217. ;;
  21218. *-*-cygwin* | *-*-mingw32*)
  21219. ARCH=win32
  21220. if test "$build" != "$host"; then # cross-compiling
  21221. # Default cross-compile location
  21222. ac_default_prefix=/usr/local/cross-tools/$host
  21223. else
  21224. # Look for the location of the tools and install there
  21225. if test "$BUILD_PREFIX" != ""; then
  21226. ac_default_prefix=$BUILD_PREFIX
  21227. fi
  21228. fi
  21229. CheckDeclarationAfterStatement
  21230. CheckDummyVideo
  21231. CheckDiskAudio
  21232. CheckDummyAudio
  21233. CheckWINDOWS
  21234. CheckWINDOWSGL
  21235. CheckWINDOWSGLES
  21236. CheckVulkan
  21237. CheckDIRECTX
  21238. CheckHIDAPI
  21239. # Set up the core platform files
  21240. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21241. # Set up files for the video library
  21242. if test x$enable_video = xyes; then
  21243. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21244. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21245. have_video=yes
  21246. # Check whether --enable-render-d3d was given.
  21247. if test "${enable_render_d3d+set}" = set; then :
  21248. enableval=$enable_render_d3d;
  21249. else
  21250. enable_render_d3d=yes
  21251. fi
  21252. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21253. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21254. SUMMARY_video="${SUMMARY_video} d3d9"
  21255. fi
  21256. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21257. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21258. SUMMARY_video="${SUMMARY_video} d3d11"
  21259. fi
  21260. fi
  21261. # Set up files for the audio library
  21262. if test x$enable_audio = xyes; then
  21263. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21264. SUMMARY_audio="${SUMMARY_audio} winmm"
  21265. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21266. if test x$have_dsound = xyes; then
  21267. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21268. SUMMARY_audio="${SUMMARY_audio} directsound"
  21269. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21270. fi
  21271. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21272. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21273. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21274. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21275. fi
  21276. have_audio=yes
  21277. fi
  21278. # Set up files for the joystick library
  21279. if test x$enable_joystick = xyes; then
  21280. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21281. if test x$have_xinput = xyes; then
  21282. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21283. fi
  21284. if test x$have_dinput = xyes; then
  21285. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21286. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21287. fi
  21288. else
  21289. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21290. fi
  21291. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21292. have_joystick=yes
  21293. fi
  21294. if test x$enable_haptic = xyes; then
  21295. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21296. if test x$have_xinput = xyes; then
  21297. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21298. fi
  21299. if test x$have_dinput = xyes; then
  21300. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21301. fi
  21302. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21303. have_haptic=yes
  21304. fi
  21305. fi
  21306. if test x$enable_power = xyes; then
  21307. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21308. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21309. have_power=yes
  21310. fi
  21311. if test x$enable_filesystem = xyes; then
  21312. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21313. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21314. have_filesystem=yes
  21315. fi
  21316. # Set up files for the thread library
  21317. if test x$enable_threads = xyes; then
  21318. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21319. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21320. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21321. have_threads=yes
  21322. fi
  21323. # Set up files for the timer library
  21324. if test x$enable_timers = xyes; then
  21325. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21326. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21327. have_timers=yes
  21328. fi
  21329. # Set up files for the shared object loading library
  21330. if test x$enable_loadso = xyes; then
  21331. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21332. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21333. have_loadso=yes
  21334. fi
  21335. # Set up the system libraries we need
  21336. if test -f /lib/w32api/libuuid.a; then
  21337. LIBUUID=/lib/w32api/libuuid.a
  21338. else
  21339. LIBUUID=-luuid
  21340. fi
  21341. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21342. # The Windows platform requires special setup
  21343. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21344. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21345. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21346. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21347. # Check to see if this is a mingw or cygwin build
  21348. have_mingw32=
  21349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21350. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21351. if ${ac_cv_lib_mingw32_main+:} false; then :
  21352. $as_echo_n "(cached) " >&6
  21353. else
  21354. ac_check_lib_save_LIBS=$LIBS
  21355. LIBS="-lmingw32 $LIBS"
  21356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21357. /* end confdefs.h. */
  21358. int
  21359. main ()
  21360. {
  21361. return main ();
  21362. ;
  21363. return 0;
  21364. }
  21365. _ACEOF
  21366. if ac_fn_c_try_link "$LINENO"; then :
  21367. ac_cv_lib_mingw32_main=yes
  21368. else
  21369. ac_cv_lib_mingw32_main=no
  21370. fi
  21371. rm -f core conftest.err conftest.$ac_objext \
  21372. conftest$ac_exeext conftest.$ac_ext
  21373. LIBS=$ac_check_lib_save_LIBS
  21374. fi
  21375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21376. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21377. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21378. have_mingw32=yes
  21379. fi
  21380. if test x$have_mingw32 = xyes; then
  21381. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21382. else
  21383. SDL_LIBS="-lcygwin $SDL_LIBS"
  21384. fi
  21385. ;;
  21386. *-*-beos*)
  21387. as_fn_error $? "
  21388. *** BeOS support has been removed as of SDL 2.0.2.
  21389. " "$LINENO" 5
  21390. ;;
  21391. *-*-haiku*)
  21392. ARCH=haiku
  21393. ac_default_prefix=/boot/system
  21394. CheckDummyVideo
  21395. CheckDiskAudio
  21396. CheckDummyAudio
  21397. CheckDLOPEN
  21398. CheckHaikuVideo
  21399. CheckHaikuGL
  21400. CheckPTHREAD
  21401. # Set up files for the audio library
  21402. if test x$enable_audio = xyes; then
  21403. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21404. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21405. SUMMARY_audio="${SUMMARY_audio} haiku"
  21406. have_audio=yes
  21407. fi
  21408. # Set up files for the joystick library
  21409. if test x$enable_joystick = xyes; then
  21410. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21411. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21412. have_joystick=yes
  21413. fi
  21414. # Set up files for the timer library
  21415. if test x$enable_timers = xyes; then
  21416. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21417. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21418. have_timers=yes
  21419. fi
  21420. # Set up files for the system power library
  21421. if test x$enable_power = xyes; then
  21422. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21423. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21424. have_power=yes
  21425. fi
  21426. # Set up files for the system filesystem library
  21427. if test x$enable_filesystem = xyes; then
  21428. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21429. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21430. have_filesystem=yes
  21431. fi
  21432. # The Haiku platform requires special setup.
  21433. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21434. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21435. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21436. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21437. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21439. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21440. if eval \${$as_ac_File+:} false; then :
  21441. $as_echo_n "(cached) " >&6
  21442. else
  21443. test "$cross_compiling" = yes &&
  21444. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21445. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21446. eval "$as_ac_File=yes"
  21447. else
  21448. eval "$as_ac_File=no"
  21449. fi
  21450. fi
  21451. eval ac_res=\$$as_ac_File
  21452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21453. $as_echo "$ac_res" >&6; }
  21454. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21455. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21456. else
  21457. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21458. fi
  21459. ;;
  21460. arm*-apple-darwin*|*-ios-*)
  21461. ARCH=ios
  21462. CheckVisibilityHidden
  21463. CheckDeclarationAfterStatement
  21464. CheckDummyVideo
  21465. CheckDiskAudio
  21466. CheckDummyAudio
  21467. CheckDLOPEN
  21468. CheckMETAL
  21469. CheckVulkan
  21470. CheckPTHREAD
  21471. # Set up files for the audio library
  21472. if test x$enable_audio = xyes; then
  21473. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21474. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21475. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21476. have_audio=yes
  21477. fi
  21478. # Set up files for the joystick library
  21479. if test x$enable_joystick = xyes; then
  21480. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21481. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21482. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21483. have_joystick=yes
  21484. fi
  21485. # Set up files for the haptic library
  21486. #if test x$enable_haptic = xyes; then
  21487. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21488. # have_haptic=yes
  21489. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21490. #fi
  21491. # Set up files for the sensor library
  21492. if test x$enable_sensor = xyes; then
  21493. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21494. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21495. have_sensor=yes
  21496. fi
  21497. # Set up files for the power library
  21498. if test x$enable_power = xyes; then
  21499. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21500. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21501. have_power=yes
  21502. fi
  21503. # Set up files for the filesystem library
  21504. if test x$enable_filesystem = xyes; then
  21505. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21506. have_filesystem=yes
  21507. fi
  21508. # Set up additional files for the file library
  21509. if test x$enable_file = xyes; then
  21510. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21511. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21512. fi
  21513. # Set up files for the timer library
  21514. if test x$enable_timers = xyes; then
  21515. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21516. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21517. have_timers=yes
  21518. fi
  21519. # Set up other core UNIX files
  21520. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21521. # The iOS platform requires special setup.
  21522. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21523. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21524. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21525. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21526. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21527. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21528. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21529. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21530. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21531. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21532. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21533. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21534. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21535. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21536. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21537. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21538. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21539. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21540. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21541. fi
  21542. ;;
  21543. *-*-darwin* )
  21544. # This could be either full "Mac OS X", or plain "Darwin" which is
  21545. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21546. # Next line is broken, and a few files below require Mac OS X (full)
  21547. ARCH=macosx
  21548. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21549. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21550. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21551. CheckVisibilityHidden
  21552. CheckDeclarationAfterStatement
  21553. CheckDummyVideo
  21554. CheckDiskAudio
  21555. CheckDummyAudio
  21556. CheckDLOPEN
  21557. CheckCOCOA
  21558. CheckMETAL
  21559. CheckX11
  21560. CheckMacGL
  21561. CheckMacGLES
  21562. CheckOpenGLX11
  21563. CheckVulkan
  21564. CheckPTHREAD
  21565. CheckHIDAPI
  21566. # Set up files for the audio library
  21567. if test x$enable_audio = xyes; then
  21568. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21569. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21570. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21571. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21572. have_audio=yes
  21573. fi
  21574. # Set up files for the joystick library
  21575. if test x$enable_joystick = xyes; then
  21576. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21577. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21578. have_joystick=yes
  21579. fi
  21580. # Set up files for the haptic library
  21581. if test x$enable_haptic = xyes; then
  21582. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21583. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21584. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21585. have_haptic=yes
  21586. fi
  21587. # Set up files for the power library
  21588. if test x$enable_power = xyes; then
  21589. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21590. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21591. have_power=yes
  21592. fi
  21593. # Set up files for the filesystem library
  21594. if test x$enable_filesystem = xyes; then
  21595. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21596. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21597. have_filesystem=yes
  21598. fi
  21599. # Set up files for the timer library
  21600. if test x$enable_timers = xyes; then
  21601. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21602. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21603. have_timers=yes
  21604. fi
  21605. # Set up additional files for the file library
  21606. if test x$enable_file = xyes; then
  21607. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21608. fi
  21609. # Set up other core UNIX files
  21610. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21611. # The Mac OS X platform requires special setup.
  21612. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21613. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21614. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21615. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21616. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21617. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21618. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21619. fi
  21620. ;;
  21621. *-nacl|*-pnacl)
  21622. ARCH=nacl
  21623. CheckNativeClient
  21624. CheckDummyAudio
  21625. CheckDummyVideo
  21626. CheckInputEvents
  21627. CheckPTHREAD
  21628. # Set up files for the timer library
  21629. if test x$enable_timers = xyes; then
  21630. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21631. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21632. have_timers=yes
  21633. fi
  21634. if test x$enable_filesystem = xyes; then
  21635. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21636. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21637. have_filesystem=yes
  21638. fi
  21639. ;;
  21640. *-*-emscripten* )
  21641. if test x$enable_video = xyes; then
  21642. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21643. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21644. have_video=yes
  21645. SUMMARY_video="${SUMMARY_video} emscripten"
  21646. fi
  21647. if test x$enable_audio = xyes; then
  21648. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21649. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21650. have_audio=yes
  21651. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21652. fi
  21653. CheckVisibilityHidden
  21654. CheckDeclarationAfterStatement
  21655. CheckDummyVideo
  21656. CheckDiskAudio
  21657. CheckDummyAudio
  21658. CheckDLOPEN
  21659. CheckClockGettime
  21660. CheckEmscriptenGLES
  21661. # Set up files for the power library
  21662. if test x$enable_power = xyes; then
  21663. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21664. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21665. have_power=yes
  21666. fi
  21667. # Set up files for the power library
  21668. if test x$enable_joystick = xyes; then
  21669. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21670. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21671. have_joystick=yes
  21672. fi
  21673. # Set up files for the filesystem library
  21674. if test x$enable_filesystem = xyes; then
  21675. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21676. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21677. have_filesystem=yes
  21678. fi
  21679. # Set up files for the timer library
  21680. if test x$enable_timers = xyes; then
  21681. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21682. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21683. have_timers=yes
  21684. fi
  21685. ;;
  21686. *-*-riscos*)
  21687. ARCH=riscos
  21688. CheckVisibilityHidden
  21689. CheckDeclarationAfterStatement
  21690. CheckDummyVideo
  21691. CheckDiskAudio
  21692. CheckDummyAudio
  21693. CheckDLOPEN
  21694. CheckOSS
  21695. CheckPTHREAD
  21696. CheckClockGettime
  21697. # Set up files for the timer library
  21698. if test x$enable_timers = xyes; then
  21699. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21700. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21701. have_timers=yes
  21702. fi
  21703. ;;
  21704. *)
  21705. as_fn_error $? "
  21706. *** Unsupported host: Please add to configure.ac
  21707. " "$LINENO" 5
  21708. ;;
  21709. esac
  21710. CheckVirtualJoystick
  21711. # Check whether to install sdl2-config
  21712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  21713. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  21714. # Check whether --enable-sdl2-config was given.
  21715. if test "${enable_sdl2_config+set}" = set; then :
  21716. enableval=$enable_sdl2_config; case "${enableval}" in
  21717. yes) enable_sdl2_config="TRUE" ;;
  21718. no) enable_sdl2_config="FALSE" ;;
  21719. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  21720. esac
  21721. else
  21722. enable_sdl2_config="TRUE"
  21723. fi
  21724. if test "$enable_sdl2_config" = "TRUE"; then
  21725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21726. $as_echo "yes" >&6; }
  21727. else
  21728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21729. $as_echo "no" >&6; }
  21730. fi
  21731. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  21732. # Verify that we have all the platform specific files we need
  21733. if test x$have_joystick != xyes; then
  21734. if test x$enable_joystick = xyes; then
  21735. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21736. fi
  21737. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21738. fi
  21739. if test x$have_haptic != xyes; then
  21740. if test x$enable_haptic = xyes; then
  21741. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21742. fi
  21743. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21744. fi
  21745. if test x$have_sensor != xyes; then
  21746. if test x$enable_sensor = xyes; then
  21747. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21748. fi
  21749. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21750. fi
  21751. if test x$have_threads != xyes; then
  21752. if test x$enable_threads = xyes; then
  21753. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21754. fi
  21755. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21756. fi
  21757. if test x$have_timers != xyes; then
  21758. if test x$enable_timers = xyes; then
  21759. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21760. fi
  21761. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21762. fi
  21763. if test x$have_filesystem != xyes; then
  21764. if test x$enable_filesystem = xyes; then
  21765. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21766. fi
  21767. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21768. fi
  21769. if test x$have_loadso != xyes; then
  21770. if test x$enable_loadso = xyes; then
  21771. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21772. fi
  21773. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21774. fi
  21775. if test x$SDLMAIN_SOURCES = x; then
  21776. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21777. fi
  21778. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21779. if test x$video_wayland = xyes; then
  21780. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21781. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21782. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21783. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21784. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21785. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21786. echo ;\
  21787. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21788. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21789. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21790. echo ;\
  21791. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21792. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21793. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21794. echo ;\
  21795. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21796. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21797. done ;\
  21798. echo ;\
  21799. for s in $WAYLAND_SOURCES ; do echo -n "\$s:" ; for p in $WAYLAND_PROTOCOLS ; do echo -n " \\$(gen)/\$p-client-protocol.h" ; done ; echo ; done ; echo`
  21800. fi
  21801. OBJECTS=`echo $SOURCES`
  21802. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21803. for EXT in asm cc m c S; do
  21804. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21805. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21806. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  21807. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21808. done
  21809. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21810. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21811. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21812. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  21813. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21814. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  21815. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  21816. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21817. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21818. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21819. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21820. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21821. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21822. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21823. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21824. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21825. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21826. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21827. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21828. # Set runtime shared library paths as needed
  21829. if test "x$enable_rpath" = "xyes"; then
  21830. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21831. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21833. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21834. have_enable_new_dtags=no
  21835. save_LDFLAGS="$LDFLAGS"
  21836. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21838. /* end confdefs.h. */
  21839. int
  21840. main ()
  21841. {
  21842. ;
  21843. return 0;
  21844. }
  21845. _ACEOF
  21846. if ac_fn_c_try_link "$LINENO"; then :
  21847. have_enable_new_dtags=yes
  21848. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21849. fi
  21850. rm -f core conftest.err conftest.$ac_objext \
  21851. conftest$ac_exeext conftest.$ac_ext
  21852. LDFLAGS="$save_LDFLAGS"
  21853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21854. $as_echo "$have_enable_new_dtags" >&6; }
  21855. fi
  21856. if test $ARCH = solaris; then
  21857. SDL_RLD_FLAGS="-R\${libdir}"
  21858. fi
  21859. else
  21860. SDL_RLD_FLAGS=""
  21861. fi
  21862. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21863. if test x$enable_shared = xyes; then
  21864. ENABLE_SHARED_TRUE=
  21865. ENABLE_SHARED_FALSE="#"
  21866. else
  21867. ENABLE_SHARED_TRUE="#"
  21868. ENABLE_SHARED_FALSE=
  21869. fi
  21870. if test x$enable_static = xyes; then
  21871. ENABLE_STATIC_TRUE=
  21872. ENABLE_STATIC_FALSE="#"
  21873. else
  21874. ENABLE_STATIC_TRUE="#"
  21875. ENABLE_STATIC_FALSE=
  21876. fi
  21877. cat >Makefile.rules <<__EOF__
  21878. # Build rules for objects
  21879. -include \$(OBJECTS:.lo=.d)
  21880. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21881. $srcdir/src/SDL.c: update-revision
  21882. $DEPENDS
  21883. $VERSION_DEPENDS
  21884. $SDLMAIN_DEPENDS
  21885. $SDLTEST_DEPENDS
  21886. $WAYLAND_PROTOCOLS_DEPENDS
  21887. __EOF__
  21888. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  21889. ac_config_commands="$ac_config_commands sdl2_config"
  21890. SUMMARY="SDL2 Configure Summary:\n"
  21891. if test x$enable_shared = xyes; then
  21892. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21893. fi
  21894. if test x$enable_static = xyes; then
  21895. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21896. fi
  21897. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21898. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21899. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21900. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21901. if test x$have_x = xyes; then
  21902. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21903. fi
  21904. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21905. if test x$have_joystick_virtual = xyes; then
  21906. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  21907. else
  21908. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  21909. fi
  21910. if test x$have_samplerate_h_hdr = xyes; then
  21911. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21912. else
  21913. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21914. fi
  21915. if test x$have_libudev_h_hdr = xyes; then
  21916. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21917. else
  21918. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21919. fi
  21920. if test x$have_dbus_dbus_h_hdr = xyes; then
  21921. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21922. else
  21923. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21924. fi
  21925. if test x$enable_ime = xyes; then
  21926. SUMMARY="${SUMMARY}Using ime : YES\n"
  21927. else
  21928. SUMMARY="${SUMMARY}Using ime : NO\n"
  21929. fi
  21930. if test x$have_ibus_ibus_h_hdr = xyes; then
  21931. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21932. else
  21933. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21934. fi
  21935. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21936. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21937. else
  21938. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21939. fi
  21940. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  21941. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  21942. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21943. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21944. SUMMARY="${SUMMARY}configure script with:\n"
  21945. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  21946. fi
  21947. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  21948. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  21949. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21950. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21951. SUMMARY="${SUMMARY}configure script with:\n"
  21952. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  21953. fi
  21954. ac_config_commands="$ac_config_commands summary"
  21955. cat >confcache <<\_ACEOF
  21956. # This file is a shell script that caches the results of configure
  21957. # tests run on this system so they can be shared between configure
  21958. # scripts and configure runs, see configure's option --config-cache.
  21959. # It is not useful on other systems. If it contains results you don't
  21960. # want to keep, you may remove or edit it.
  21961. #
  21962. # config.status only pays attention to the cache file if you give it
  21963. # the --recheck option to rerun configure.
  21964. #
  21965. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21966. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21967. # following values.
  21968. _ACEOF
  21969. # The following way of writing the cache mishandles newlines in values,
  21970. # but we know of no workaround that is simple, portable, and efficient.
  21971. # So, we kill variables containing newlines.
  21972. # Ultrix sh set writes to stderr and can't be redirected directly,
  21973. # and sets the high bit in the cache file unless we assign to the vars.
  21974. (
  21975. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21976. eval ac_val=\$$ac_var
  21977. case $ac_val in #(
  21978. *${as_nl}*)
  21979. case $ac_var in #(
  21980. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21981. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21982. esac
  21983. case $ac_var in #(
  21984. _ | IFS | as_nl) ;; #(
  21985. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21986. *) { eval $ac_var=; unset $ac_var;} ;;
  21987. esac ;;
  21988. esac
  21989. done
  21990. (set) 2>&1 |
  21991. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21992. *${as_nl}ac_space=\ *)
  21993. # `set' does not quote correctly, so add quotes: double-quote
  21994. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21995. sed -n \
  21996. "s/'/'\\\\''/g;
  21997. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21998. ;; #(
  21999. *)
  22000. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22001. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22002. ;;
  22003. esac |
  22004. sort
  22005. ) |
  22006. sed '
  22007. /^ac_cv_env_/b end
  22008. t clear
  22009. :clear
  22010. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22011. t end
  22012. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22013. :end' >>confcache
  22014. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22015. if test -w "$cache_file"; then
  22016. if test "x$cache_file" != "x/dev/null"; then
  22017. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22018. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22019. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22020. cat confcache >"$cache_file"
  22021. else
  22022. case $cache_file in #(
  22023. */* | ?:*)
  22024. mv -f confcache "$cache_file"$$ &&
  22025. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22026. *)
  22027. mv -f confcache "$cache_file" ;;
  22028. esac
  22029. fi
  22030. fi
  22031. else
  22032. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22033. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22034. fi
  22035. fi
  22036. rm -f confcache
  22037. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22038. # Let make expand exec_prefix.
  22039. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22040. DEFS=-DHAVE_CONFIG_H
  22041. ac_libobjs=
  22042. ac_ltlibobjs=
  22043. U=
  22044. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22045. # 1. Remove the extension, and $U if already installed.
  22046. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22047. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22048. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22049. # will be set to the directory where LIBOBJS objects are built.
  22050. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22051. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22052. done
  22053. LIBOBJS=$ac_libobjs
  22054. LTLIBOBJS=$ac_ltlibobjs
  22055. : "${CONFIG_STATUS=./config.status}"
  22056. ac_write_fail=0
  22057. ac_clean_files_save=$ac_clean_files
  22058. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22059. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22060. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22061. as_write_fail=0
  22062. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22063. #! $SHELL
  22064. # Generated by $as_me.
  22065. # Run this file to recreate the current configuration.
  22066. # Compiler output produced by configure, useful for debugging
  22067. # configure, is in config.log if it exists.
  22068. debug=false
  22069. ac_cs_recheck=false
  22070. ac_cs_silent=false
  22071. SHELL=\${CONFIG_SHELL-$SHELL}
  22072. export SHELL
  22073. _ASEOF
  22074. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22075. ## -------------------- ##
  22076. ## M4sh Initialization. ##
  22077. ## -------------------- ##
  22078. # Be more Bourne compatible
  22079. DUALCASE=1; export DUALCASE # for MKS sh
  22080. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22081. emulate sh
  22082. NULLCMD=:
  22083. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22084. # is contrary to our usage. Disable this feature.
  22085. alias -g '${1+"$@"}'='"$@"'
  22086. setopt NO_GLOB_SUBST
  22087. else
  22088. case `(set -o) 2>/dev/null` in #(
  22089. *posix*) :
  22090. set -o posix ;; #(
  22091. *) :
  22092. ;;
  22093. esac
  22094. fi
  22095. as_nl='
  22096. '
  22097. export as_nl
  22098. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22099. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22100. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22101. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22102. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22103. # but without wasting forks for bash or zsh.
  22104. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22105. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22106. as_echo='print -r --'
  22107. as_echo_n='print -rn --'
  22108. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22109. as_echo='printf %s\n'
  22110. as_echo_n='printf %s'
  22111. else
  22112. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22113. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22114. as_echo_n='/usr/ucb/echo -n'
  22115. else
  22116. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22117. as_echo_n_body='eval
  22118. arg=$1;
  22119. case $arg in #(
  22120. *"$as_nl"*)
  22121. expr "X$arg" : "X\\(.*\\)$as_nl";
  22122. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22123. esac;
  22124. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22125. '
  22126. export as_echo_n_body
  22127. as_echo_n='sh -c $as_echo_n_body as_echo'
  22128. fi
  22129. export as_echo_body
  22130. as_echo='sh -c $as_echo_body as_echo'
  22131. fi
  22132. # The user is always right.
  22133. if test "${PATH_SEPARATOR+set}" != set; then
  22134. PATH_SEPARATOR=:
  22135. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22136. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22137. PATH_SEPARATOR=';'
  22138. }
  22139. fi
  22140. # IFS
  22141. # We need space, tab and new line, in precisely that order. Quoting is
  22142. # there to prevent editors from complaining about space-tab.
  22143. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22144. # splitting by setting IFS to empty value.)
  22145. IFS=" "" $as_nl"
  22146. # Find who we are. Look in the path if we contain no directory separator.
  22147. as_myself=
  22148. case $0 in #((
  22149. *[\\/]* ) as_myself=$0 ;;
  22150. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22151. for as_dir in $PATH
  22152. do
  22153. IFS=$as_save_IFS
  22154. test -z "$as_dir" && as_dir=.
  22155. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22156. done
  22157. IFS=$as_save_IFS
  22158. ;;
  22159. esac
  22160. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22161. # in which case we are not to be found in the path.
  22162. if test "x$as_myself" = x; then
  22163. as_myself=$0
  22164. fi
  22165. if test ! -f "$as_myself"; then
  22166. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22167. exit 1
  22168. fi
  22169. # Unset variables that we do not need and which cause bugs (e.g. in
  22170. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22171. # suppresses any "Segmentation fault" message there. '((' could
  22172. # trigger a bug in pdksh 5.2.14.
  22173. for as_var in BASH_ENV ENV MAIL MAILPATH
  22174. do eval test x\${$as_var+set} = xset \
  22175. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22176. done
  22177. PS1='$ '
  22178. PS2='> '
  22179. PS4='+ '
  22180. # NLS nuisances.
  22181. LC_ALL=C
  22182. export LC_ALL
  22183. LANGUAGE=C
  22184. export LANGUAGE
  22185. # CDPATH.
  22186. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22187. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22188. # ----------------------------------------
  22189. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22190. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22191. # script with STATUS, using 1 if that was 0.
  22192. as_fn_error ()
  22193. {
  22194. as_status=$1; test $as_status -eq 0 && as_status=1
  22195. if test "$4"; then
  22196. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22197. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22198. fi
  22199. $as_echo "$as_me: error: $2" >&2
  22200. as_fn_exit $as_status
  22201. } # as_fn_error
  22202. # as_fn_set_status STATUS
  22203. # -----------------------
  22204. # Set $? to STATUS, without forking.
  22205. as_fn_set_status ()
  22206. {
  22207. return $1
  22208. } # as_fn_set_status
  22209. # as_fn_exit STATUS
  22210. # -----------------
  22211. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22212. as_fn_exit ()
  22213. {
  22214. set +e
  22215. as_fn_set_status $1
  22216. exit $1
  22217. } # as_fn_exit
  22218. # as_fn_unset VAR
  22219. # ---------------
  22220. # Portably unset VAR.
  22221. as_fn_unset ()
  22222. {
  22223. { eval $1=; unset $1;}
  22224. }
  22225. as_unset=as_fn_unset
  22226. # as_fn_append VAR VALUE
  22227. # ----------------------
  22228. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22229. # advantage of any shell optimizations that allow amortized linear growth over
  22230. # repeated appends, instead of the typical quadratic growth present in naive
  22231. # implementations.
  22232. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22233. eval 'as_fn_append ()
  22234. {
  22235. eval $1+=\$2
  22236. }'
  22237. else
  22238. as_fn_append ()
  22239. {
  22240. eval $1=\$$1\$2
  22241. }
  22242. fi # as_fn_append
  22243. # as_fn_arith ARG...
  22244. # ------------------
  22245. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22246. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22247. # must be portable across $(()) and expr.
  22248. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22249. eval 'as_fn_arith ()
  22250. {
  22251. as_val=$(( $* ))
  22252. }'
  22253. else
  22254. as_fn_arith ()
  22255. {
  22256. as_val=`expr "$@" || test $? -eq 1`
  22257. }
  22258. fi # as_fn_arith
  22259. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22260. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22261. as_expr=expr
  22262. else
  22263. as_expr=false
  22264. fi
  22265. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22266. as_basename=basename
  22267. else
  22268. as_basename=false
  22269. fi
  22270. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22271. as_dirname=dirname
  22272. else
  22273. as_dirname=false
  22274. fi
  22275. as_me=`$as_basename -- "$0" ||
  22276. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22277. X"$0" : 'X\(//\)$' \| \
  22278. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22279. $as_echo X/"$0" |
  22280. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22281. s//\1/
  22282. q
  22283. }
  22284. /^X\/\(\/\/\)$/{
  22285. s//\1/
  22286. q
  22287. }
  22288. /^X\/\(\/\).*/{
  22289. s//\1/
  22290. q
  22291. }
  22292. s/.*/./; q'`
  22293. # Avoid depending upon Character Ranges.
  22294. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22295. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22296. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22297. as_cr_digits='0123456789'
  22298. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22299. ECHO_C= ECHO_N= ECHO_T=
  22300. case `echo -n x` in #(((((
  22301. -n*)
  22302. case `echo 'xy\c'` in
  22303. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22304. xy) ECHO_C='\c';;
  22305. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22306. ECHO_T=' ';;
  22307. esac;;
  22308. *)
  22309. ECHO_N='-n';;
  22310. esac
  22311. rm -f conf$$ conf$$.exe conf$$.file
  22312. if test -d conf$$.dir; then
  22313. rm -f conf$$.dir/conf$$.file
  22314. else
  22315. rm -f conf$$.dir
  22316. mkdir conf$$.dir 2>/dev/null
  22317. fi
  22318. if (echo >conf$$.file) 2>/dev/null; then
  22319. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22320. as_ln_s='ln -s'
  22321. # ... but there are two gotchas:
  22322. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22323. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22324. # In both cases, we have to default to `cp -pR'.
  22325. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22326. as_ln_s='cp -pR'
  22327. elif ln conf$$.file conf$$ 2>/dev/null; then
  22328. as_ln_s=ln
  22329. else
  22330. as_ln_s='cp -pR'
  22331. fi
  22332. else
  22333. as_ln_s='cp -pR'
  22334. fi
  22335. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22336. rmdir conf$$.dir 2>/dev/null
  22337. # as_fn_mkdir_p
  22338. # -------------
  22339. # Create "$as_dir" as a directory, including parents if necessary.
  22340. as_fn_mkdir_p ()
  22341. {
  22342. case $as_dir in #(
  22343. -*) as_dir=./$as_dir;;
  22344. esac
  22345. test -d "$as_dir" || eval $as_mkdir_p || {
  22346. as_dirs=
  22347. while :; do
  22348. case $as_dir in #(
  22349. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22350. *) as_qdir=$as_dir;;
  22351. esac
  22352. as_dirs="'$as_qdir' $as_dirs"
  22353. as_dir=`$as_dirname -- "$as_dir" ||
  22354. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22355. X"$as_dir" : 'X\(//\)[^/]' \| \
  22356. X"$as_dir" : 'X\(//\)$' \| \
  22357. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22358. $as_echo X"$as_dir" |
  22359. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22360. s//\1/
  22361. q
  22362. }
  22363. /^X\(\/\/\)[^/].*/{
  22364. s//\1/
  22365. q
  22366. }
  22367. /^X\(\/\/\)$/{
  22368. s//\1/
  22369. q
  22370. }
  22371. /^X\(\/\).*/{
  22372. s//\1/
  22373. q
  22374. }
  22375. s/.*/./; q'`
  22376. test -d "$as_dir" && break
  22377. done
  22378. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22379. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22380. } # as_fn_mkdir_p
  22381. if mkdir -p . 2>/dev/null; then
  22382. as_mkdir_p='mkdir -p "$as_dir"'
  22383. else
  22384. test -d ./-p && rmdir ./-p
  22385. as_mkdir_p=false
  22386. fi
  22387. # as_fn_executable_p FILE
  22388. # -----------------------
  22389. # Test if FILE is an executable regular file.
  22390. as_fn_executable_p ()
  22391. {
  22392. test -f "$1" && test -x "$1"
  22393. } # as_fn_executable_p
  22394. as_test_x='test -x'
  22395. as_executable_p=as_fn_executable_p
  22396. # Sed expression to map a string onto a valid CPP name.
  22397. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22398. # Sed expression to map a string onto a valid variable name.
  22399. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22400. exec 6>&1
  22401. ## ----------------------------------- ##
  22402. ## Main body of $CONFIG_STATUS script. ##
  22403. ## ----------------------------------- ##
  22404. _ASEOF
  22405. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22406. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22407. # Save the log message, to keep $0 and so on meaningful, and to
  22408. # report actual input values of CONFIG_FILES etc. instead of their
  22409. # values after options handling.
  22410. ac_log="
  22411. This file was extended by $as_me, which was
  22412. generated by GNU Autoconf 2.69. Invocation command line was
  22413. CONFIG_FILES = $CONFIG_FILES
  22414. CONFIG_HEADERS = $CONFIG_HEADERS
  22415. CONFIG_LINKS = $CONFIG_LINKS
  22416. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22417. $ $0 $@
  22418. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22419. "
  22420. _ACEOF
  22421. case $ac_config_files in *"
  22422. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22423. esac
  22424. case $ac_config_headers in *"
  22425. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22426. esac
  22427. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22428. # Files that config.status was made for.
  22429. config_files="$ac_config_files"
  22430. config_headers="$ac_config_headers"
  22431. config_commands="$ac_config_commands"
  22432. _ACEOF
  22433. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22434. ac_cs_usage="\
  22435. \`$as_me' instantiates files and other configuration actions
  22436. from templates according to the current configuration. Unless the files
  22437. and actions are specified as TAGs, all are instantiated by default.
  22438. Usage: $0 [OPTION]... [TAG]...
  22439. -h, --help print this help, then exit
  22440. -V, --version print version number and configuration settings, then exit
  22441. --config print configuration, then exit
  22442. -q, --quiet, --silent
  22443. do not print progress messages
  22444. -d, --debug don't remove temporary files
  22445. --recheck update $as_me by reconfiguring in the same conditions
  22446. --file=FILE[:TEMPLATE]
  22447. instantiate the configuration file FILE
  22448. --header=FILE[:TEMPLATE]
  22449. instantiate the configuration header FILE
  22450. Configuration files:
  22451. $config_files
  22452. Configuration headers:
  22453. $config_headers
  22454. Configuration commands:
  22455. $config_commands
  22456. Report bugs to the package provider."
  22457. _ACEOF
  22458. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22459. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22460. ac_cs_version="\\
  22461. config.status
  22462. configured by $0, generated by GNU Autoconf 2.69,
  22463. with options \\"\$ac_cs_config\\"
  22464. Copyright (C) 2012 Free Software Foundation, Inc.
  22465. This config.status script is free software; the Free Software Foundation
  22466. gives unlimited permission to copy, distribute and modify it."
  22467. ac_pwd='$ac_pwd'
  22468. srcdir='$srcdir'
  22469. INSTALL='$INSTALL'
  22470. AWK='$AWK'
  22471. test -n "\$AWK" || AWK=awk
  22472. _ACEOF
  22473. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22474. # The default lists apply if the user does not specify any file.
  22475. ac_need_defaults=:
  22476. while test $# != 0
  22477. do
  22478. case $1 in
  22479. --*=?*)
  22480. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22481. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22482. ac_shift=:
  22483. ;;
  22484. --*=)
  22485. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22486. ac_optarg=
  22487. ac_shift=:
  22488. ;;
  22489. *)
  22490. ac_option=$1
  22491. ac_optarg=$2
  22492. ac_shift=shift
  22493. ;;
  22494. esac
  22495. case $ac_option in
  22496. # Handling of the options.
  22497. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22498. ac_cs_recheck=: ;;
  22499. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22500. $as_echo "$ac_cs_version"; exit ;;
  22501. --config | --confi | --conf | --con | --co | --c )
  22502. $as_echo "$ac_cs_config"; exit ;;
  22503. --debug | --debu | --deb | --de | --d | -d )
  22504. debug=: ;;
  22505. --file | --fil | --fi | --f )
  22506. $ac_shift
  22507. case $ac_optarg in
  22508. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22509. '') as_fn_error $? "missing file argument" ;;
  22510. esac
  22511. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22512. ac_need_defaults=false;;
  22513. --header | --heade | --head | --hea )
  22514. $ac_shift
  22515. case $ac_optarg in
  22516. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22517. esac
  22518. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22519. ac_need_defaults=false;;
  22520. --he | --h)
  22521. # Conflict between --help and --header
  22522. as_fn_error $? "ambiguous option: \`$1'
  22523. Try \`$0 --help' for more information.";;
  22524. --help | --hel | -h )
  22525. $as_echo "$ac_cs_usage"; exit ;;
  22526. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22527. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22528. ac_cs_silent=: ;;
  22529. # This is an error.
  22530. -*) as_fn_error $? "unrecognized option: \`$1'
  22531. Try \`$0 --help' for more information." ;;
  22532. *) as_fn_append ac_config_targets " $1"
  22533. ac_need_defaults=false ;;
  22534. esac
  22535. shift
  22536. done
  22537. ac_configure_extra_args=
  22538. if $ac_cs_silent; then
  22539. exec 6>/dev/null
  22540. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22541. fi
  22542. _ACEOF
  22543. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22544. if \$ac_cs_recheck; then
  22545. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22546. shift
  22547. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22548. CONFIG_SHELL='$SHELL'
  22549. export CONFIG_SHELL
  22550. exec "\$@"
  22551. fi
  22552. _ACEOF
  22553. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22554. exec 5>>config.log
  22555. {
  22556. echo
  22557. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22558. ## Running $as_me. ##
  22559. _ASBOX
  22560. $as_echo "$ac_log"
  22561. } >&5
  22562. _ACEOF
  22563. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22564. #
  22565. # INIT-COMMANDS
  22566. #
  22567. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22568. # if CDPATH is set.
  22569. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22570. sed_quote_subst='$sed_quote_subst'
  22571. double_quote_subst='$double_quote_subst'
  22572. delay_variable_subst='$delay_variable_subst'
  22573. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22574. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22575. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22576. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22577. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22578. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22579. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22580. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22581. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22582. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22583. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22584. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22585. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22586. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22587. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22588. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22589. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22590. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22591. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22592. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22593. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22594. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22595. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22596. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22597. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22598. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22599. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22600. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22601. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22602. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22603. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22604. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22605. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22606. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22607. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22608. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22609. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22610. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22611. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22612. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22613. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22614. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22615. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22616. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22617. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22618. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22619. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22620. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22621. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22622. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22623. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22624. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22625. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22626. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22627. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22628. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22629. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22630. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22631. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22632. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22633. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22634. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22635. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22636. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22637. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22638. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22639. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22640. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22641. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22642. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22643. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22644. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22645. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22646. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22647. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22648. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22649. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22650. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22651. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22652. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22653. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22654. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22655. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22656. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22657. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22658. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22659. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22660. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22661. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22662. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22663. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22664. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22665. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22666. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22667. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22668. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22669. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22670. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22671. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22672. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22673. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22674. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22675. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22676. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22677. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22678. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22679. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22680. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22681. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22682. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22683. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22684. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22685. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22686. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22687. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22688. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22689. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22690. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22691. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22692. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22693. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22694. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22695. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22696. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22697. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22698. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22699. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22700. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22701. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22702. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22703. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22704. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22705. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22706. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22707. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22708. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22709. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22710. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  22711. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22712. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  22713. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22714. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22715. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22716. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22717. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22718. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  22719. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22720. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  22721. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22722. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  22723. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22724. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  22725. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22726. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  22727. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22728. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  22729. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22730. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  22731. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22732. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  22733. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22734. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  22735. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22736. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22737. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22738. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22739. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22740. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  22741. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22742. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22743. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22744. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22745. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22746. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22747. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22748. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22749. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22750. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22751. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22752. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22753. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22754. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  22755. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22756. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22757. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22758. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22759. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22760. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22761. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22762. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  22763. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22764. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  22765. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22766. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  22767. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22768. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  22769. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22770. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  22771. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22772. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  22773. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22774. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  22775. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22776. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  22777. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22778. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  22779. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22780. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22781. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22782. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22783. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22784. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22785. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22786. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22787. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22788. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22789. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22790. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  22791. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22792. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  22793. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22794. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  22795. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22796. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22797. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22798. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22799. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22800. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  22801. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22802. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  22803. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22804. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  22805. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22806. LTCC='$LTCC'
  22807. LTCFLAGS='$LTCFLAGS'
  22808. compiler='$compiler_DEFAULT'
  22809. # A function that is used when there is no print builtin or printf.
  22810. func_fallback_echo ()
  22811. {
  22812. eval 'cat <<_LTECHO_EOF
  22813. \$1
  22814. _LTECHO_EOF'
  22815. }
  22816. # Quote evaled strings.
  22817. for var in AS \
  22818. DLLTOOL \
  22819. OBJDUMP \
  22820. SHELL \
  22821. ECHO \
  22822. PATH_SEPARATOR \
  22823. SED \
  22824. GREP \
  22825. EGREP \
  22826. FGREP \
  22827. LD \
  22828. NM \
  22829. LN_S \
  22830. lt_SP2NL \
  22831. lt_NL2SP \
  22832. reload_flag \
  22833. deplibs_check_method \
  22834. file_magic_cmd \
  22835. file_magic_glob \
  22836. want_nocaseglob \
  22837. sharedlib_from_linklib_cmd \
  22838. AR \
  22839. AR_FLAGS \
  22840. archiver_list_spec \
  22841. STRIP \
  22842. RANLIB \
  22843. CC \
  22844. CFLAGS \
  22845. compiler \
  22846. lt_cv_sys_global_symbol_pipe \
  22847. lt_cv_sys_global_symbol_to_cdecl \
  22848. lt_cv_sys_global_symbol_to_c_name_address \
  22849. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22850. nm_file_list_spec \
  22851. lt_prog_compiler_no_builtin_flag \
  22852. lt_prog_compiler_pic \
  22853. lt_prog_compiler_wl \
  22854. lt_prog_compiler_static \
  22855. lt_cv_prog_compiler_c_o \
  22856. need_locks \
  22857. MANIFEST_TOOL \
  22858. DSYMUTIL \
  22859. NMEDIT \
  22860. LIPO \
  22861. OTOOL \
  22862. OTOOL64 \
  22863. shrext_cmds \
  22864. export_dynamic_flag_spec \
  22865. whole_archive_flag_spec \
  22866. compiler_needs_object \
  22867. with_gnu_ld \
  22868. allow_undefined_flag \
  22869. no_undefined_flag \
  22870. hardcode_libdir_flag_spec \
  22871. hardcode_libdir_separator \
  22872. exclude_expsyms \
  22873. include_expsyms \
  22874. file_list_spec \
  22875. variables_saved_for_relink \
  22876. libname_spec \
  22877. library_names_spec \
  22878. soname_spec \
  22879. install_override_mode \
  22880. finish_eval \
  22881. old_striplib \
  22882. striplib \
  22883. compiler_lib_search_dirs \
  22884. predep_objects \
  22885. postdep_objects \
  22886. predeps \
  22887. postdeps \
  22888. compiler_lib_search_path \
  22889. LD_RC \
  22890. LD_CXX \
  22891. reload_flag_RC \
  22892. reload_flag_CXX \
  22893. compiler_RC \
  22894. compiler_CXX \
  22895. lt_prog_compiler_no_builtin_flag_RC \
  22896. lt_prog_compiler_no_builtin_flag_CXX \
  22897. lt_prog_compiler_pic_RC \
  22898. lt_prog_compiler_pic_CXX \
  22899. lt_prog_compiler_wl_RC \
  22900. lt_prog_compiler_wl_CXX \
  22901. lt_prog_compiler_static_RC \
  22902. lt_prog_compiler_static_CXX \
  22903. lt_cv_prog_compiler_c_o_RC \
  22904. lt_cv_prog_compiler_c_o_CXX \
  22905. export_dynamic_flag_spec_RC \
  22906. export_dynamic_flag_spec_CXX \
  22907. whole_archive_flag_spec_RC \
  22908. whole_archive_flag_spec_CXX \
  22909. compiler_needs_object_RC \
  22910. compiler_needs_object_CXX \
  22911. with_gnu_ld_RC \
  22912. with_gnu_ld_CXX \
  22913. allow_undefined_flag_RC \
  22914. allow_undefined_flag_CXX \
  22915. no_undefined_flag_RC \
  22916. no_undefined_flag_CXX \
  22917. hardcode_libdir_flag_spec_RC \
  22918. hardcode_libdir_flag_spec_CXX \
  22919. hardcode_libdir_separator_RC \
  22920. hardcode_libdir_separator_CXX \
  22921. exclude_expsyms_RC \
  22922. exclude_expsyms_CXX \
  22923. include_expsyms_RC \
  22924. include_expsyms_CXX \
  22925. file_list_spec_RC \
  22926. file_list_spec_CXX \
  22927. compiler_lib_search_dirs_RC \
  22928. compiler_lib_search_dirs_CXX \
  22929. predep_objects_RC \
  22930. predep_objects_CXX \
  22931. postdep_objects_RC \
  22932. postdep_objects_CXX \
  22933. predeps_RC \
  22934. predeps_CXX \
  22935. postdeps_RC \
  22936. postdeps_CXX \
  22937. compiler_lib_search_path_RC \
  22938. compiler_lib_search_path_CXX; do
  22939. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22940. *[\\\\\\\`\\"\\\$]*)
  22941. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22942. ;;
  22943. *)
  22944. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22945. ;;
  22946. esac
  22947. done
  22948. # Double-quote double-evaled strings.
  22949. for var in reload_cmds \
  22950. old_postinstall_cmds \
  22951. old_postuninstall_cmds \
  22952. old_archive_cmds \
  22953. extract_expsyms_cmds \
  22954. old_archive_from_new_cmds \
  22955. old_archive_from_expsyms_cmds \
  22956. archive_cmds \
  22957. archive_expsym_cmds \
  22958. module_cmds \
  22959. module_expsym_cmds \
  22960. export_symbols_cmds \
  22961. prelink_cmds \
  22962. postlink_cmds \
  22963. postinstall_cmds \
  22964. postuninstall_cmds \
  22965. finish_cmds \
  22966. sys_lib_search_path_spec \
  22967. sys_lib_dlsearch_path_spec \
  22968. reload_cmds_RC \
  22969. reload_cmds_CXX \
  22970. old_archive_cmds_RC \
  22971. old_archive_cmds_CXX \
  22972. old_archive_from_new_cmds_RC \
  22973. old_archive_from_new_cmds_CXX \
  22974. old_archive_from_expsyms_cmds_RC \
  22975. old_archive_from_expsyms_cmds_CXX \
  22976. archive_cmds_RC \
  22977. archive_cmds_CXX \
  22978. archive_expsym_cmds_RC \
  22979. archive_expsym_cmds_CXX \
  22980. module_cmds_RC \
  22981. module_cmds_CXX \
  22982. module_expsym_cmds_RC \
  22983. module_expsym_cmds_CXX \
  22984. export_symbols_cmds_RC \
  22985. export_symbols_cmds_CXX \
  22986. prelink_cmds_RC \
  22987. prelink_cmds_CXX \
  22988. postlink_cmds_RC \
  22989. postlink_cmds_CXX; do
  22990. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22991. *[\\\\\\\`\\"\\\$]*)
  22992. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22993. ;;
  22994. *)
  22995. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22996. ;;
  22997. esac
  22998. done
  22999. ac_aux_dir='$ac_aux_dir'
  23000. xsi_shell='$xsi_shell'
  23001. lt_shell_append='$lt_shell_append'
  23002. # See if we are running on zsh, and set the options which allow our
  23003. # commands through without removal of \ escapes INIT.
  23004. if test -n "\${ZSH_VERSION+set}" ; then
  23005. setopt NO_GLOB_SUBST
  23006. fi
  23007. PACKAGE='$PACKAGE'
  23008. VERSION='$VERSION'
  23009. TIMESTAMP='$TIMESTAMP'
  23010. RM='$RM'
  23011. ofile='$ofile'
  23012. SUMMARY="$SUMMARY"
  23013. _ACEOF
  23014. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23015. # Handling of arguments.
  23016. for ac_config_target in $ac_config_targets
  23017. do
  23018. case $ac_config_target in
  23019. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23020. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23021. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23022. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23023. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23024. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23025. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23026. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23027. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23028. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23029. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23030. esac
  23031. done
  23032. # If the user did not use the arguments to specify the items to instantiate,
  23033. # then the envvar interface is used. Set only those that are not.
  23034. # We use the long form for the default assignment because of an extremely
  23035. # bizarre bug on SunOS 4.1.3.
  23036. if $ac_need_defaults; then
  23037. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23038. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23039. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23040. fi
  23041. # Have a temporary directory for convenience. Make it in the build tree
  23042. # simply because there is no reason against having it here, and in addition,
  23043. # creating and moving files from /tmp can sometimes cause problems.
  23044. # Hook for its removal unless debugging.
  23045. # Note that there is a small window in which the directory will not be cleaned:
  23046. # after its creation but before its name has been assigned to `$tmp'.
  23047. $debug ||
  23048. {
  23049. tmp= ac_tmp=
  23050. trap 'exit_status=$?
  23051. : "${ac_tmp:=$tmp}"
  23052. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23053. ' 0
  23054. trap 'as_fn_exit 1' 1 2 13 15
  23055. }
  23056. # Create a (secure) tmp directory for tmp files.
  23057. {
  23058. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23059. test -d "$tmp"
  23060. } ||
  23061. {
  23062. tmp=./conf$$-$RANDOM
  23063. (umask 077 && mkdir "$tmp")
  23064. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23065. ac_tmp=$tmp
  23066. # Set up the scripts for CONFIG_FILES section.
  23067. # No need to generate them if there are no CONFIG_FILES.
  23068. # This happens for instance with `./config.status config.h'.
  23069. if test -n "$CONFIG_FILES"; then
  23070. ac_cr=`echo X | tr X '\015'`
  23071. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23072. # But we know of no other shell where ac_cr would be empty at this
  23073. # point, so we can use a bashism as a fallback.
  23074. if test "x$ac_cr" = x; then
  23075. eval ac_cr=\$\'\\r\'
  23076. fi
  23077. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23078. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23079. ac_cs_awk_cr='\\r'
  23080. else
  23081. ac_cs_awk_cr=$ac_cr
  23082. fi
  23083. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23084. _ACEOF
  23085. {
  23086. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23087. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23088. echo "_ACEOF"
  23089. } >conf$$subs.sh ||
  23090. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23091. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23092. ac_delim='%!_!# '
  23093. for ac_last_try in false false false false false :; do
  23094. . ./conf$$subs.sh ||
  23095. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23096. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23097. if test $ac_delim_n = $ac_delim_num; then
  23098. break
  23099. elif $ac_last_try; then
  23100. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23101. else
  23102. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23103. fi
  23104. done
  23105. rm -f conf$$subs.sh
  23106. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23107. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23108. _ACEOF
  23109. sed -n '
  23110. h
  23111. s/^/S["/; s/!.*/"]=/
  23112. p
  23113. g
  23114. s/^[^!]*!//
  23115. :repl
  23116. t repl
  23117. s/'"$ac_delim"'$//
  23118. t delim
  23119. :nl
  23120. h
  23121. s/\(.\{148\}\)..*/\1/
  23122. t more1
  23123. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23124. p
  23125. n
  23126. b repl
  23127. :more1
  23128. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23129. p
  23130. g
  23131. s/.\{148\}//
  23132. t nl
  23133. :delim
  23134. h
  23135. s/\(.\{148\}\)..*/\1/
  23136. t more2
  23137. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23138. p
  23139. b
  23140. :more2
  23141. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23142. p
  23143. g
  23144. s/.\{148\}//
  23145. t delim
  23146. ' <conf$$subs.awk | sed '
  23147. /^[^""]/{
  23148. N
  23149. s/\n//
  23150. }
  23151. ' >>$CONFIG_STATUS || ac_write_fail=1
  23152. rm -f conf$$subs.awk
  23153. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23154. _ACAWK
  23155. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23156. for (key in S) S_is_set[key] = 1
  23157. FS = ""
  23158. }
  23159. {
  23160. line = $ 0
  23161. nfields = split(line, field, "@")
  23162. substed = 0
  23163. len = length(field[1])
  23164. for (i = 2; i < nfields; i++) {
  23165. key = field[i]
  23166. keylen = length(key)
  23167. if (S_is_set[key]) {
  23168. value = S[key]
  23169. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23170. len += length(value) + length(field[++i])
  23171. substed = 1
  23172. } else
  23173. len += 1 + keylen
  23174. }
  23175. print line
  23176. }
  23177. _ACAWK
  23178. _ACEOF
  23179. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23180. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23181. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23182. else
  23183. cat
  23184. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23185. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23186. _ACEOF
  23187. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23188. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23189. # trailing colons and then remove the whole line if VPATH becomes empty
  23190. # (actually we leave an empty line to preserve line numbers).
  23191. if test "x$srcdir" = x.; then
  23192. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23193. h
  23194. s///
  23195. s/^/:/
  23196. s/[ ]*$/:/
  23197. s/:\$(srcdir):/:/g
  23198. s/:\${srcdir}:/:/g
  23199. s/:@srcdir@:/:/g
  23200. s/^:*//
  23201. s/:*$//
  23202. x
  23203. s/\(=[ ]*\).*/\1/
  23204. G
  23205. s/\n//
  23206. s/^[^=]*=[ ]*$//
  23207. }'
  23208. fi
  23209. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23210. fi # test -n "$CONFIG_FILES"
  23211. # Set up the scripts for CONFIG_HEADERS section.
  23212. # No need to generate them if there are no CONFIG_HEADERS.
  23213. # This happens for instance with `./config.status Makefile'.
  23214. if test -n "$CONFIG_HEADERS"; then
  23215. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23216. BEGIN {
  23217. _ACEOF
  23218. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23219. # here-document in config.status, that substitutes the proper values into
  23220. # config.h.in to produce config.h.
  23221. # Create a delimiter string that does not exist in confdefs.h, to ease
  23222. # handling of long lines.
  23223. ac_delim='%!_!# '
  23224. for ac_last_try in false false :; do
  23225. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23226. if test -z "$ac_tt"; then
  23227. break
  23228. elif $ac_last_try; then
  23229. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23230. else
  23231. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23232. fi
  23233. done
  23234. # For the awk script, D is an array of macro values keyed by name,
  23235. # likewise P contains macro parameters if any. Preserve backslash
  23236. # newline sequences.
  23237. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23238. sed -n '
  23239. s/.\{148\}/&'"$ac_delim"'/g
  23240. t rset
  23241. :rset
  23242. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23243. t def
  23244. d
  23245. :def
  23246. s/\\$//
  23247. t bsnl
  23248. s/["\\]/\\&/g
  23249. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23250. D["\1"]=" \3"/p
  23251. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23252. d
  23253. :bsnl
  23254. s/["\\]/\\&/g
  23255. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23256. D["\1"]=" \3\\\\\\n"\\/p
  23257. t cont
  23258. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23259. t cont
  23260. d
  23261. :cont
  23262. n
  23263. s/.\{148\}/&'"$ac_delim"'/g
  23264. t clear
  23265. :clear
  23266. s/\\$//
  23267. t bsnlc
  23268. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23269. d
  23270. :bsnlc
  23271. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23272. b cont
  23273. ' <confdefs.h | sed '
  23274. s/'"$ac_delim"'/"\\\
  23275. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23276. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23277. for (key in D) D_is_set[key] = 1
  23278. FS = ""
  23279. }
  23280. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23281. line = \$ 0
  23282. split(line, arg, " ")
  23283. if (arg[1] == "#") {
  23284. defundef = arg[2]
  23285. mac1 = arg[3]
  23286. } else {
  23287. defundef = substr(arg[1], 2)
  23288. mac1 = arg[2]
  23289. }
  23290. split(mac1, mac2, "(") #)
  23291. macro = mac2[1]
  23292. prefix = substr(line, 1, index(line, defundef) - 1)
  23293. if (D_is_set[macro]) {
  23294. # Preserve the white space surrounding the "#".
  23295. print prefix "define", macro P[macro] D[macro]
  23296. next
  23297. } else {
  23298. # Replace #undef with comments. This is necessary, for example,
  23299. # in the case of _POSIX_SOURCE, which is predefined and required
  23300. # on some systems where configure will not decide to define it.
  23301. if (defundef == "undef") {
  23302. print "/*", prefix defundef, macro, "*/"
  23303. next
  23304. }
  23305. }
  23306. }
  23307. { print }
  23308. _ACAWK
  23309. _ACEOF
  23310. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23311. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23312. fi # test -n "$CONFIG_HEADERS"
  23313. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23314. shift
  23315. for ac_tag
  23316. do
  23317. case $ac_tag in
  23318. :[FHLC]) ac_mode=$ac_tag; continue;;
  23319. esac
  23320. case $ac_mode$ac_tag in
  23321. :[FHL]*:*);;
  23322. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23323. :[FH]-) ac_tag=-:-;;
  23324. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23325. esac
  23326. ac_save_IFS=$IFS
  23327. IFS=:
  23328. set x $ac_tag
  23329. IFS=$ac_save_IFS
  23330. shift
  23331. ac_file=$1
  23332. shift
  23333. case $ac_mode in
  23334. :L) ac_source=$1;;
  23335. :[FH])
  23336. ac_file_inputs=
  23337. for ac_f
  23338. do
  23339. case $ac_f in
  23340. -) ac_f="$ac_tmp/stdin";;
  23341. *) # Look for the file first in the build tree, then in the source tree
  23342. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23343. # because $ac_f cannot contain `:'.
  23344. test -f "$ac_f" ||
  23345. case $ac_f in
  23346. [\\/$]*) false;;
  23347. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23348. esac ||
  23349. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23350. esac
  23351. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23352. as_fn_append ac_file_inputs " '$ac_f'"
  23353. done
  23354. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23355. # use $as_me), people would be surprised to read:
  23356. # /* config.h. Generated by config.status. */
  23357. configure_input='Generated from '`
  23358. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23359. `' by configure.'
  23360. if test x"$ac_file" != x-; then
  23361. configure_input="$ac_file. $configure_input"
  23362. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23363. $as_echo "$as_me: creating $ac_file" >&6;}
  23364. fi
  23365. # Neutralize special characters interpreted by sed in replacement strings.
  23366. case $configure_input in #(
  23367. *\&* | *\|* | *\\* )
  23368. ac_sed_conf_input=`$as_echo "$configure_input" |
  23369. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23370. *) ac_sed_conf_input=$configure_input;;
  23371. esac
  23372. case $ac_tag in
  23373. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23374. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23375. esac
  23376. ;;
  23377. esac
  23378. ac_dir=`$as_dirname -- "$ac_file" ||
  23379. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23380. X"$ac_file" : 'X\(//\)[^/]' \| \
  23381. X"$ac_file" : 'X\(//\)$' \| \
  23382. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23383. $as_echo X"$ac_file" |
  23384. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23385. s//\1/
  23386. q
  23387. }
  23388. /^X\(\/\/\)[^/].*/{
  23389. s//\1/
  23390. q
  23391. }
  23392. /^X\(\/\/\)$/{
  23393. s//\1/
  23394. q
  23395. }
  23396. /^X\(\/\).*/{
  23397. s//\1/
  23398. q
  23399. }
  23400. s/.*/./; q'`
  23401. as_dir="$ac_dir"; as_fn_mkdir_p
  23402. ac_builddir=.
  23403. case "$ac_dir" in
  23404. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23405. *)
  23406. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23407. # A ".." for each directory in $ac_dir_suffix.
  23408. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23409. case $ac_top_builddir_sub in
  23410. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23411. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23412. esac ;;
  23413. esac
  23414. ac_abs_top_builddir=$ac_pwd
  23415. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23416. # for backward compatibility:
  23417. ac_top_builddir=$ac_top_build_prefix
  23418. case $srcdir in
  23419. .) # We are building in place.
  23420. ac_srcdir=.
  23421. ac_top_srcdir=$ac_top_builddir_sub
  23422. ac_abs_top_srcdir=$ac_pwd ;;
  23423. [\\/]* | ?:[\\/]* ) # Absolute name.
  23424. ac_srcdir=$srcdir$ac_dir_suffix;
  23425. ac_top_srcdir=$srcdir
  23426. ac_abs_top_srcdir=$srcdir ;;
  23427. *) # Relative name.
  23428. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23429. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23430. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23431. esac
  23432. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23433. case $ac_mode in
  23434. :F)
  23435. #
  23436. # CONFIG_FILE
  23437. #
  23438. case $INSTALL in
  23439. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23440. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23441. esac
  23442. _ACEOF
  23443. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23444. # If the template does not know about datarootdir, expand it.
  23445. # FIXME: This hack should be removed a few years after 2.60.
  23446. ac_datarootdir_hack=; ac_datarootdir_seen=
  23447. ac_sed_dataroot='
  23448. /datarootdir/ {
  23449. p
  23450. q
  23451. }
  23452. /@datadir@/p
  23453. /@docdir@/p
  23454. /@infodir@/p
  23455. /@localedir@/p
  23456. /@mandir@/p'
  23457. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23458. *datarootdir*) ac_datarootdir_seen=yes;;
  23459. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23461. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23462. _ACEOF
  23463. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23464. ac_datarootdir_hack='
  23465. s&@datadir@&$datadir&g
  23466. s&@docdir@&$docdir&g
  23467. s&@infodir@&$infodir&g
  23468. s&@localedir@&$localedir&g
  23469. s&@mandir@&$mandir&g
  23470. s&\\\${datarootdir}&$datarootdir&g' ;;
  23471. esac
  23472. _ACEOF
  23473. # Neutralize VPATH when `$srcdir' = `.'.
  23474. # Shell code in configure.ac might set extrasub.
  23475. # FIXME: do we really want to maintain this feature?
  23476. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23477. ac_sed_extra="$ac_vpsub
  23478. $extrasub
  23479. _ACEOF
  23480. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23481. :t
  23482. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23483. s|@configure_input@|$ac_sed_conf_input|;t t
  23484. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23485. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23486. s&@srcdir@&$ac_srcdir&;t t
  23487. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23488. s&@top_srcdir@&$ac_top_srcdir&;t t
  23489. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23490. s&@builddir@&$ac_builddir&;t t
  23491. s&@abs_builddir@&$ac_abs_builddir&;t t
  23492. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23493. s&@INSTALL@&$ac_INSTALL&;t t
  23494. $ac_datarootdir_hack
  23495. "
  23496. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23497. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23498. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23499. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23500. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23501. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23503. which seems to be undefined. Please make sure it is defined" >&5
  23504. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23505. which seems to be undefined. Please make sure it is defined" >&2;}
  23506. rm -f "$ac_tmp/stdin"
  23507. case $ac_file in
  23508. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23509. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23510. esac \
  23511. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23512. ;;
  23513. :H)
  23514. #
  23515. # CONFIG_HEADER
  23516. #
  23517. if test x"$ac_file" != x-; then
  23518. {
  23519. $as_echo "/* $configure_input */" \
  23520. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23521. } >"$ac_tmp/config.h" \
  23522. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23523. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23524. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23525. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23526. else
  23527. rm -f "$ac_file"
  23528. mv "$ac_tmp/config.h" "$ac_file" \
  23529. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23530. fi
  23531. else
  23532. $as_echo "/* $configure_input */" \
  23533. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23534. || as_fn_error $? "could not create -" "$LINENO" 5
  23535. fi
  23536. ;;
  23537. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23538. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23539. ;;
  23540. esac
  23541. case $ac_file$ac_mode in
  23542. "libtool":C)
  23543. # See if we are running on zsh, and set the options which allow our
  23544. # commands through without removal of \ escapes.
  23545. if test -n "${ZSH_VERSION+set}" ; then
  23546. setopt NO_GLOB_SUBST
  23547. fi
  23548. cfgfile="${ofile}T"
  23549. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23550. $RM "$cfgfile"
  23551. cat <<_LT_EOF >> "$cfgfile"
  23552. #! $SHELL
  23553. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23554. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23555. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23556. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23557. #
  23558. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23559. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23560. # Foundation, Inc.
  23561. # Written by Gordon Matzigkeit, 1996
  23562. #
  23563. # This file is part of GNU Libtool.
  23564. #
  23565. # GNU Libtool is free software; you can redistribute it and/or
  23566. # modify it under the terms of the GNU General Public License as
  23567. # published by the Free Software Foundation; either version 2 of
  23568. # the License, or (at your option) any later version.
  23569. #
  23570. # As a special exception to the GNU General Public License,
  23571. # if you distribute this file as part of a program or library that
  23572. # is built using GNU Libtool, you may include this file under the
  23573. # same distribution terms that you use for the rest of that program.
  23574. #
  23575. # GNU Libtool is distributed in the hope that it will be useful,
  23576. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23577. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23578. # GNU General Public License for more details.
  23579. #
  23580. # You should have received a copy of the GNU General Public License
  23581. # along with GNU Libtool; see the file COPYING. If not, a copy
  23582. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23583. # obtained by writing to the Free Software Foundation, Inc.,
  23584. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23585. # The names of the tagged configurations supported by this script.
  23586. available_tags="RC CXX "
  23587. # ### BEGIN LIBTOOL CONFIG
  23588. # Which release of libtool.m4 was used?
  23589. macro_version=$macro_version
  23590. macro_revision=$macro_revision
  23591. # Assembler program.
  23592. AS=$lt_AS
  23593. # DLL creation program.
  23594. DLLTOOL=$lt_DLLTOOL
  23595. # Object dumper program.
  23596. OBJDUMP=$lt_OBJDUMP
  23597. # Whether or not to build shared libraries.
  23598. build_libtool_libs=$enable_shared
  23599. # Whether or not to build static libraries.
  23600. build_old_libs=$enable_static
  23601. # What type of objects to build.
  23602. pic_mode=$pic_mode
  23603. # Whether or not to optimize for fast installation.
  23604. fast_install=$enable_fast_install
  23605. # Shell to use when invoking shell scripts.
  23606. SHELL=$lt_SHELL
  23607. # An echo program that protects backslashes.
  23608. ECHO=$lt_ECHO
  23609. # The PATH separator for the build system.
  23610. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23611. # The host system.
  23612. host_alias=$host_alias
  23613. host=$host
  23614. host_os=$host_os
  23615. # The build system.
  23616. build_alias=$build_alias
  23617. build=$build
  23618. build_os=$build_os
  23619. # A sed program that does not truncate output.
  23620. SED=$lt_SED
  23621. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23622. Xsed="\$SED -e 1s/^X//"
  23623. # A grep program that handles long lines.
  23624. GREP=$lt_GREP
  23625. # An ERE matcher.
  23626. EGREP=$lt_EGREP
  23627. # A literal string matcher.
  23628. FGREP=$lt_FGREP
  23629. # A BSD- or MS-compatible name lister.
  23630. NM=$lt_NM
  23631. # Whether we need soft or hard links.
  23632. LN_S=$lt_LN_S
  23633. # What is the maximum length of a command?
  23634. max_cmd_len=$max_cmd_len
  23635. # Object file suffix (normally "o").
  23636. objext=$ac_objext
  23637. # Executable file suffix (normally "").
  23638. exeext=$exeext
  23639. # whether the shell understands "unset".
  23640. lt_unset=$lt_unset
  23641. # turn spaces into newlines.
  23642. SP2NL=$lt_lt_SP2NL
  23643. # turn newlines into spaces.
  23644. NL2SP=$lt_lt_NL2SP
  23645. # convert \$build file names to \$host format.
  23646. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23647. # convert \$build files to toolchain format.
  23648. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23649. # Method to check whether dependent libraries are shared objects.
  23650. deplibs_check_method=$lt_deplibs_check_method
  23651. # Command to use when deplibs_check_method = "file_magic".
  23652. file_magic_cmd=$lt_file_magic_cmd
  23653. # How to find potential files when deplibs_check_method = "file_magic".
  23654. file_magic_glob=$lt_file_magic_glob
  23655. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23656. want_nocaseglob=$lt_want_nocaseglob
  23657. # Command to associate shared and link libraries.
  23658. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23659. # The archiver.
  23660. AR=$lt_AR
  23661. # Flags to create an archive.
  23662. AR_FLAGS=$lt_AR_FLAGS
  23663. # How to feed a file listing to the archiver.
  23664. archiver_list_spec=$lt_archiver_list_spec
  23665. # A symbol stripping program.
  23666. STRIP=$lt_STRIP
  23667. # Commands used to install an old-style archive.
  23668. RANLIB=$lt_RANLIB
  23669. old_postinstall_cmds=$lt_old_postinstall_cmds
  23670. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23671. # Whether to use a lock for old archive extraction.
  23672. lock_old_archive_extraction=$lock_old_archive_extraction
  23673. # A C compiler.
  23674. LTCC=$lt_CC
  23675. # LTCC compiler flags.
  23676. LTCFLAGS=$lt_CFLAGS
  23677. # Take the output of nm and produce a listing of raw symbols and C names.
  23678. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23679. # Transform the output of nm in a proper C declaration.
  23680. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23681. # Transform the output of nm in a C name address pair.
  23682. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23683. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23684. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23685. # Specify filename containing input files for \$NM.
  23686. nm_file_list_spec=$lt_nm_file_list_spec
  23687. # The root where to search for dependent libraries,and in which our libraries should be installed.
  23688. lt_sysroot=$lt_sysroot
  23689. # The name of the directory that contains temporary libtool files.
  23690. objdir=$objdir
  23691. # Used to examine libraries when file_magic_cmd begins with "file".
  23692. MAGIC_CMD=$MAGIC_CMD
  23693. # Must we lock files when doing compilation?
  23694. need_locks=$lt_need_locks
  23695. # Manifest tool.
  23696. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23697. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23698. DSYMUTIL=$lt_DSYMUTIL
  23699. # Tool to change global to local symbols on Mac OS X.
  23700. NMEDIT=$lt_NMEDIT
  23701. # Tool to manipulate fat objects and archives on Mac OS X.
  23702. LIPO=$lt_LIPO
  23703. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23704. OTOOL=$lt_OTOOL
  23705. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23706. OTOOL64=$lt_OTOOL64
  23707. # Old archive suffix (normally "a").
  23708. libext=$libext
  23709. # Shared library suffix (normally ".so").
  23710. shrext_cmds=$lt_shrext_cmds
  23711. # The commands to extract the exported symbol list from a shared archive.
  23712. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23713. # Variables whose values should be saved in libtool wrapper scripts and
  23714. # restored at link time.
  23715. variables_saved_for_relink=$lt_variables_saved_for_relink
  23716. # Do we need the "lib" prefix for modules?
  23717. need_lib_prefix=$need_lib_prefix
  23718. # Do we need a version for libraries?
  23719. need_version=$need_version
  23720. # Library versioning type.
  23721. version_type=$version_type
  23722. # Shared library runtime path variable.
  23723. runpath_var=$runpath_var
  23724. # Shared library path variable.
  23725. shlibpath_var=$shlibpath_var
  23726. # Is shlibpath searched before the hard-coded library search path?
  23727. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23728. # Format of library name prefix.
  23729. libname_spec=$lt_libname_spec
  23730. # List of archive names. First name is the real one, the rest are links.
  23731. # The last name is the one that the linker finds with -lNAME
  23732. library_names_spec=$lt_library_names_spec
  23733. # The coded name of the library, if different from the real name.
  23734. soname_spec=$lt_soname_spec
  23735. # Permission mode override for installation of shared libraries.
  23736. install_override_mode=$lt_install_override_mode
  23737. # Command to use after installation of a shared archive.
  23738. postinstall_cmds=$lt_postinstall_cmds
  23739. # Command to use after uninstallation of a shared archive.
  23740. postuninstall_cmds=$lt_postuninstall_cmds
  23741. # Commands used to finish a libtool library installation in a directory.
  23742. finish_cmds=$lt_finish_cmds
  23743. # As "finish_cmds", except a single script fragment to be evaled but
  23744. # not shown.
  23745. finish_eval=$lt_finish_eval
  23746. # Whether we should hardcode library paths into libraries.
  23747. hardcode_into_libs=$hardcode_into_libs
  23748. # Compile-time system search path for libraries.
  23749. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23750. # Run-time system search path for libraries.
  23751. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23752. # Whether dlopen is supported.
  23753. dlopen_support=$enable_dlopen
  23754. # Whether dlopen of programs is supported.
  23755. dlopen_self=$enable_dlopen_self
  23756. # Whether dlopen of statically linked programs is supported.
  23757. dlopen_self_static=$enable_dlopen_self_static
  23758. # Commands to strip libraries.
  23759. old_striplib=$lt_old_striplib
  23760. striplib=$lt_striplib
  23761. # The linker used to build libraries.
  23762. LD=$lt_LD
  23763. # How to create reloadable object files.
  23764. reload_flag=$lt_reload_flag
  23765. reload_cmds=$lt_reload_cmds
  23766. # Commands used to build an old-style archive.
  23767. old_archive_cmds=$lt_old_archive_cmds
  23768. # A language specific compiler.
  23769. CC=$lt_compiler
  23770. # Is the compiler the GNU compiler?
  23771. with_gcc=$GCC
  23772. # Compiler flag to turn off builtin functions.
  23773. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23774. # Additional compiler flags for building library objects.
  23775. pic_flag=$lt_lt_prog_compiler_pic
  23776. # How to pass a linker flag through the compiler.
  23777. wl=$lt_lt_prog_compiler_wl
  23778. # Compiler flag to prevent dynamic linking.
  23779. link_static_flag=$lt_lt_prog_compiler_static
  23780. # Does compiler simultaneously support -c and -o options?
  23781. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23782. # Whether or not to add -lc for building shared libraries.
  23783. build_libtool_need_lc=$archive_cmds_need_lc
  23784. # Whether or not to disallow shared libs when runtime libs are static.
  23785. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23786. # Compiler flag to allow reflexive dlopens.
  23787. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23788. # Compiler flag to generate shared objects directly from archives.
  23789. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23790. # Whether the compiler copes with passing no objects directly.
  23791. compiler_needs_object=$lt_compiler_needs_object
  23792. # Create an old-style archive from a shared archive.
  23793. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23794. # Create a temporary old-style archive to link instead of a shared archive.
  23795. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23796. # Commands used to build a shared archive.
  23797. archive_cmds=$lt_archive_cmds
  23798. archive_expsym_cmds=$lt_archive_expsym_cmds
  23799. # Commands used to build a loadable module if different from building
  23800. # a shared archive.
  23801. module_cmds=$lt_module_cmds
  23802. module_expsym_cmds=$lt_module_expsym_cmds
  23803. # Whether we are building with GNU ld or not.
  23804. with_gnu_ld=$lt_with_gnu_ld
  23805. # Flag that allows shared libraries with undefined symbols to be built.
  23806. allow_undefined_flag=$lt_allow_undefined_flag
  23807. # Flag that enforces no undefined symbols.
  23808. no_undefined_flag=$lt_no_undefined_flag
  23809. # Flag to hardcode \$libdir into a binary during linking.
  23810. # This must work even if \$libdir does not exist
  23811. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23812. # Whether we need a single "-rpath" flag with a separated argument.
  23813. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23814. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23815. # DIR into the resulting binary.
  23816. hardcode_direct=$hardcode_direct
  23817. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23818. # DIR into the resulting binary and the resulting library dependency is
  23819. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23820. # library is relocated.
  23821. hardcode_direct_absolute=$hardcode_direct_absolute
  23822. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23823. # into the resulting binary.
  23824. hardcode_minus_L=$hardcode_minus_L
  23825. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23826. # into the resulting binary.
  23827. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23828. # Set to "yes" if building a shared library automatically hardcodes DIR
  23829. # into the library and all subsequent libraries and executables linked
  23830. # against it.
  23831. hardcode_automatic=$hardcode_automatic
  23832. # Set to yes if linker adds runtime paths of dependent libraries
  23833. # to runtime path list.
  23834. inherit_rpath=$inherit_rpath
  23835. # Whether libtool must link a program against all its dependency libraries.
  23836. link_all_deplibs=$link_all_deplibs
  23837. # Set to "yes" if exported symbols are required.
  23838. always_export_symbols=$always_export_symbols
  23839. # The commands to list exported symbols.
  23840. export_symbols_cmds=$lt_export_symbols_cmds
  23841. # Symbols that should not be listed in the preloaded symbols.
  23842. exclude_expsyms=$lt_exclude_expsyms
  23843. # Symbols that must always be exported.
  23844. include_expsyms=$lt_include_expsyms
  23845. # Commands necessary for linking programs (against libraries) with templates.
  23846. prelink_cmds=$lt_prelink_cmds
  23847. # Commands necessary for finishing linking programs.
  23848. postlink_cmds=$lt_postlink_cmds
  23849. # Specify filename containing input files.
  23850. file_list_spec=$lt_file_list_spec
  23851. # How to hardcode a shared library path into an executable.
  23852. hardcode_action=$hardcode_action
  23853. # The directories searched by this compiler when creating a shared library.
  23854. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23855. # Dependencies to place before and after the objects being linked to
  23856. # create a shared library.
  23857. predep_objects=$lt_predep_objects
  23858. postdep_objects=$lt_postdep_objects
  23859. predeps=$lt_predeps
  23860. postdeps=$lt_postdeps
  23861. # The library search path used internally by the compiler when linking
  23862. # a shared library.
  23863. compiler_lib_search_path=$lt_compiler_lib_search_path
  23864. # ### END LIBTOOL CONFIG
  23865. _LT_EOF
  23866. case $host_os in
  23867. aix3*)
  23868. cat <<\_LT_EOF >> "$cfgfile"
  23869. # AIX sometimes has problems with the GCC collect2 program. For some
  23870. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23871. # vanish in a puff of smoke.
  23872. if test "X${COLLECT_NAMES+set}" != Xset; then
  23873. COLLECT_NAMES=
  23874. export COLLECT_NAMES
  23875. fi
  23876. _LT_EOF
  23877. ;;
  23878. esac
  23879. ltmain="$ac_aux_dir/ltmain.sh"
  23880. # We use sed instead of cat because bash on DJGPP gets confused if
  23881. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23882. # text mode, it properly converts lines to CR/LF. This bash problem
  23883. # is reportedly fixed, but why not run on old versions too?
  23884. sed '$q' "$ltmain" >> "$cfgfile" \
  23885. || (rm -f "$cfgfile"; exit 1)
  23886. if test x"$xsi_shell" = xyes; then
  23887. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23888. func_dirname ()\
  23889. {\
  23890. \ case ${1} in\
  23891. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23892. \ * ) func_dirname_result="${3}" ;;\
  23893. \ esac\
  23894. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23895. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23896. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23897. test 0 -eq $? || _lt_function_replace_fail=:
  23898. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23899. func_basename ()\
  23900. {\
  23901. \ func_basename_result="${1##*/}"\
  23902. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23903. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23904. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23905. test 0 -eq $? || _lt_function_replace_fail=:
  23906. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23907. func_dirname_and_basename ()\
  23908. {\
  23909. \ case ${1} in\
  23910. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23911. \ * ) func_dirname_result="${3}" ;;\
  23912. \ esac\
  23913. \ func_basename_result="${1##*/}"\
  23914. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23915. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23916. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23917. test 0 -eq $? || _lt_function_replace_fail=:
  23918. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23919. func_stripname ()\
  23920. {\
  23921. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23922. \ # positional parameters, so assign one to ordinary parameter first.\
  23923. \ func_stripname_result=${3}\
  23924. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23925. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23926. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23927. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23928. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23929. test 0 -eq $? || _lt_function_replace_fail=:
  23930. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23931. func_split_long_opt ()\
  23932. {\
  23933. \ func_split_long_opt_name=${1%%=*}\
  23934. \ func_split_long_opt_arg=${1#*=}\
  23935. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23936. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23937. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23938. test 0 -eq $? || _lt_function_replace_fail=:
  23939. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23940. func_split_short_opt ()\
  23941. {\
  23942. \ func_split_short_opt_arg=${1#??}\
  23943. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23944. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23945. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23946. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23947. test 0 -eq $? || _lt_function_replace_fail=:
  23948. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23949. func_lo2o ()\
  23950. {\
  23951. \ case ${1} in\
  23952. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23953. \ *) func_lo2o_result=${1} ;;\
  23954. \ esac\
  23955. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23956. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23957. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23958. test 0 -eq $? || _lt_function_replace_fail=:
  23959. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23960. func_xform ()\
  23961. {\
  23962. func_xform_result=${1%.*}.lo\
  23963. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23964. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23965. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23966. test 0 -eq $? || _lt_function_replace_fail=:
  23967. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23968. func_arith ()\
  23969. {\
  23970. func_arith_result=$(( $* ))\
  23971. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23972. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23973. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23974. test 0 -eq $? || _lt_function_replace_fail=:
  23975. sed -e '/^func_len ()$/,/^} # func_len /c\
  23976. func_len ()\
  23977. {\
  23978. func_len_result=${#1}\
  23979. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23980. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23981. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23982. test 0 -eq $? || _lt_function_replace_fail=:
  23983. fi
  23984. if test x"$lt_shell_append" = xyes; then
  23985. sed -e '/^func_append ()$/,/^} # func_append /c\
  23986. func_append ()\
  23987. {\
  23988. eval "${1}+=\\${2}"\
  23989. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23990. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23991. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23992. test 0 -eq $? || _lt_function_replace_fail=:
  23993. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23994. func_append_quoted ()\
  23995. {\
  23996. \ func_quote_for_eval "${2}"\
  23997. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23998. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23999. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24000. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24001. test 0 -eq $? || _lt_function_replace_fail=:
  24002. # Save a `func_append' function call where possible by direct use of '+='
  24003. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24004. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24005. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24006. test 0 -eq $? || _lt_function_replace_fail=:
  24007. else
  24008. # Save a `func_append' function call even when '+=' is not available
  24009. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24010. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24011. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24012. test 0 -eq $? || _lt_function_replace_fail=:
  24013. fi
  24014. if test x"$_lt_function_replace_fail" = x":"; then
  24015. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24016. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24017. fi
  24018. mv -f "$cfgfile" "$ofile" ||
  24019. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24020. chmod +x "$ofile"
  24021. cat <<_LT_EOF >> "$ofile"
  24022. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24023. # The linker used to build libraries.
  24024. LD=$lt_LD_RC
  24025. # How to create reloadable object files.
  24026. reload_flag=$lt_reload_flag_RC
  24027. reload_cmds=$lt_reload_cmds_RC
  24028. # Commands used to build an old-style archive.
  24029. old_archive_cmds=$lt_old_archive_cmds_RC
  24030. # A language specific compiler.
  24031. CC=$lt_compiler_RC
  24032. # Is the compiler the GNU compiler?
  24033. with_gcc=$GCC_RC
  24034. # Compiler flag to turn off builtin functions.
  24035. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24036. # Additional compiler flags for building library objects.
  24037. pic_flag=$lt_lt_prog_compiler_pic_RC
  24038. # How to pass a linker flag through the compiler.
  24039. wl=$lt_lt_prog_compiler_wl_RC
  24040. # Compiler flag to prevent dynamic linking.
  24041. link_static_flag=$lt_lt_prog_compiler_static_RC
  24042. # Does compiler simultaneously support -c and -o options?
  24043. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24044. # Whether or not to add -lc for building shared libraries.
  24045. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24046. # Whether or not to disallow shared libs when runtime libs are static.
  24047. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24048. # Compiler flag to allow reflexive dlopens.
  24049. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24050. # Compiler flag to generate shared objects directly from archives.
  24051. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24052. # Whether the compiler copes with passing no objects directly.
  24053. compiler_needs_object=$lt_compiler_needs_object_RC
  24054. # Create an old-style archive from a shared archive.
  24055. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24056. # Create a temporary old-style archive to link instead of a shared archive.
  24057. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24058. # Commands used to build a shared archive.
  24059. archive_cmds=$lt_archive_cmds_RC
  24060. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24061. # Commands used to build a loadable module if different from building
  24062. # a shared archive.
  24063. module_cmds=$lt_module_cmds_RC
  24064. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24065. # Whether we are building with GNU ld or not.
  24066. with_gnu_ld=$lt_with_gnu_ld_RC
  24067. # Flag that allows shared libraries with undefined symbols to be built.
  24068. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24069. # Flag that enforces no undefined symbols.
  24070. no_undefined_flag=$lt_no_undefined_flag_RC
  24071. # Flag to hardcode \$libdir into a binary during linking.
  24072. # This must work even if \$libdir does not exist
  24073. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24074. # Whether we need a single "-rpath" flag with a separated argument.
  24075. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24076. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24077. # DIR into the resulting binary.
  24078. hardcode_direct=$hardcode_direct_RC
  24079. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24080. # DIR into the resulting binary and the resulting library dependency is
  24081. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24082. # library is relocated.
  24083. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24084. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24085. # into the resulting binary.
  24086. hardcode_minus_L=$hardcode_minus_L_RC
  24087. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24088. # into the resulting binary.
  24089. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24090. # Set to "yes" if building a shared library automatically hardcodes DIR
  24091. # into the library and all subsequent libraries and executables linked
  24092. # against it.
  24093. hardcode_automatic=$hardcode_automatic_RC
  24094. # Set to yes if linker adds runtime paths of dependent libraries
  24095. # to runtime path list.
  24096. inherit_rpath=$inherit_rpath_RC
  24097. # Whether libtool must link a program against all its dependency libraries.
  24098. link_all_deplibs=$link_all_deplibs_RC
  24099. # Set to "yes" if exported symbols are required.
  24100. always_export_symbols=$always_export_symbols_RC
  24101. # The commands to list exported symbols.
  24102. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24103. # Symbols that should not be listed in the preloaded symbols.
  24104. exclude_expsyms=$lt_exclude_expsyms_RC
  24105. # Symbols that must always be exported.
  24106. include_expsyms=$lt_include_expsyms_RC
  24107. # Commands necessary for linking programs (against libraries) with templates.
  24108. prelink_cmds=$lt_prelink_cmds_RC
  24109. # Commands necessary for finishing linking programs.
  24110. postlink_cmds=$lt_postlink_cmds_RC
  24111. # Specify filename containing input files.
  24112. file_list_spec=$lt_file_list_spec_RC
  24113. # How to hardcode a shared library path into an executable.
  24114. hardcode_action=$hardcode_action_RC
  24115. # The directories searched by this compiler when creating a shared library.
  24116. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24117. # Dependencies to place before and after the objects being linked to
  24118. # create a shared library.
  24119. predep_objects=$lt_predep_objects_RC
  24120. postdep_objects=$lt_postdep_objects_RC
  24121. predeps=$lt_predeps_RC
  24122. postdeps=$lt_postdeps_RC
  24123. # The library search path used internally by the compiler when linking
  24124. # a shared library.
  24125. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24126. # ### END LIBTOOL TAG CONFIG: RC
  24127. _LT_EOF
  24128. cat <<_LT_EOF >> "$ofile"
  24129. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24130. # The linker used to build libraries.
  24131. LD=$lt_LD_CXX
  24132. # How to create reloadable object files.
  24133. reload_flag=$lt_reload_flag_CXX
  24134. reload_cmds=$lt_reload_cmds_CXX
  24135. # Commands used to build an old-style archive.
  24136. old_archive_cmds=$lt_old_archive_cmds_CXX
  24137. # A language specific compiler.
  24138. CC=$lt_compiler_CXX
  24139. # Is the compiler the GNU compiler?
  24140. with_gcc=$GCC_CXX
  24141. # Compiler flag to turn off builtin functions.
  24142. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24143. # Additional compiler flags for building library objects.
  24144. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24145. # How to pass a linker flag through the compiler.
  24146. wl=$lt_lt_prog_compiler_wl_CXX
  24147. # Compiler flag to prevent dynamic linking.
  24148. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24149. # Does compiler simultaneously support -c and -o options?
  24150. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24151. # Whether or not to add -lc for building shared libraries.
  24152. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24153. # Whether or not to disallow shared libs when runtime libs are static.
  24154. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24155. # Compiler flag to allow reflexive dlopens.
  24156. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24157. # Compiler flag to generate shared objects directly from archives.
  24158. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24159. # Whether the compiler copes with passing no objects directly.
  24160. compiler_needs_object=$lt_compiler_needs_object_CXX
  24161. # Create an old-style archive from a shared archive.
  24162. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24163. # Create a temporary old-style archive to link instead of a shared archive.
  24164. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24165. # Commands used to build a shared archive.
  24166. archive_cmds=$lt_archive_cmds_CXX
  24167. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24168. # Commands used to build a loadable module if different from building
  24169. # a shared archive.
  24170. module_cmds=$lt_module_cmds_CXX
  24171. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24172. # Whether we are building with GNU ld or not.
  24173. with_gnu_ld=$lt_with_gnu_ld_CXX
  24174. # Flag that allows shared libraries with undefined symbols to be built.
  24175. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24176. # Flag that enforces no undefined symbols.
  24177. no_undefined_flag=$lt_no_undefined_flag_CXX
  24178. # Flag to hardcode \$libdir into a binary during linking.
  24179. # This must work even if \$libdir does not exist
  24180. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24181. # Whether we need a single "-rpath" flag with a separated argument.
  24182. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24183. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24184. # DIR into the resulting binary.
  24185. hardcode_direct=$hardcode_direct_CXX
  24186. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24187. # DIR into the resulting binary and the resulting library dependency is
  24188. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24189. # library is relocated.
  24190. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24191. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24192. # into the resulting binary.
  24193. hardcode_minus_L=$hardcode_minus_L_CXX
  24194. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24195. # into the resulting binary.
  24196. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24197. # Set to "yes" if building a shared library automatically hardcodes DIR
  24198. # into the library and all subsequent libraries and executables linked
  24199. # against it.
  24200. hardcode_automatic=$hardcode_automatic_CXX
  24201. # Set to yes if linker adds runtime paths of dependent libraries
  24202. # to runtime path list.
  24203. inherit_rpath=$inherit_rpath_CXX
  24204. # Whether libtool must link a program against all its dependency libraries.
  24205. link_all_deplibs=$link_all_deplibs_CXX
  24206. # Set to "yes" if exported symbols are required.
  24207. always_export_symbols=$always_export_symbols_CXX
  24208. # The commands to list exported symbols.
  24209. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24210. # Symbols that should not be listed in the preloaded symbols.
  24211. exclude_expsyms=$lt_exclude_expsyms_CXX
  24212. # Symbols that must always be exported.
  24213. include_expsyms=$lt_include_expsyms_CXX
  24214. # Commands necessary for linking programs (against libraries) with templates.
  24215. prelink_cmds=$lt_prelink_cmds_CXX
  24216. # Commands necessary for finishing linking programs.
  24217. postlink_cmds=$lt_postlink_cmds_CXX
  24218. # Specify filename containing input files.
  24219. file_list_spec=$lt_file_list_spec_CXX
  24220. # How to hardcode a shared library path into an executable.
  24221. hardcode_action=$hardcode_action_CXX
  24222. # The directories searched by this compiler when creating a shared library.
  24223. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24224. # Dependencies to place before and after the objects being linked to
  24225. # create a shared library.
  24226. predep_objects=$lt_predep_objects_CXX
  24227. postdep_objects=$lt_postdep_objects_CXX
  24228. predeps=$lt_predeps_CXX
  24229. postdeps=$lt_postdeps_CXX
  24230. # The library search path used internally by the compiler when linking
  24231. # a shared library.
  24232. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24233. # ### END LIBTOOL TAG CONFIG: CXX
  24234. _LT_EOF
  24235. ;;
  24236. "sdl2_config":C) chmod a+x sdl2-config ;;
  24237. "summary":C) echo -en "$SUMMARY" ;;
  24238. esac
  24239. done # for ac_tag
  24240. as_fn_exit 0
  24241. _ACEOF
  24242. ac_clean_files=$ac_clean_files_save
  24243. test $ac_write_fail = 0 ||
  24244. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24245. # configure is writing to config.log, and then calls config.status.
  24246. # config.status does its own redirection, appending to config.log.
  24247. # Unfortunately, on DOS this fails, as config.log is still kept open
  24248. # by configure, so config.status won't be able to write to it; its
  24249. # output is simply discarded. So we exec the FD to /dev/null,
  24250. # effectively closing config.log, so it can be properly (re)opened and
  24251. # appended to by config.status. When coming back to configure, we
  24252. # need to make the FD available again.
  24253. if test "$no_create" != yes; then
  24254. ac_cs_success=:
  24255. ac_config_status_args=
  24256. test "$silent" = yes &&
  24257. ac_config_status_args="$ac_config_status_args --quiet"
  24258. exec 5>/dev/null
  24259. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24260. exec 5>>config.log
  24261. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24262. # would make configure fail if this is the last instruction.
  24263. $ac_cs_success || as_fn_exit 1
  24264. fi
  24265. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24266. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24267. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24268. fi