configure 955 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  167. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  168. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  169. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  170. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  171. PATH=/empty FPATH=/empty; export PATH FPATH
  172. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  173. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175. if (eval "$as_required") 2>/dev/null
  176. then :
  177. as_have_required=yes
  178. else $as_nop
  179. as_have_required=no
  180. fi
  181. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  182. then :
  183. else $as_nop
  184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  185. as_found=false
  186. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  187. do
  188. IFS=$as_save_IFS
  189. case $as_dir in #(((
  190. '') as_dir=./ ;;
  191. */) ;;
  192. *) as_dir=$as_dir/ ;;
  193. esac
  194. as_found=:
  195. case $as_dir in #(
  196. /*)
  197. for as_base in sh bash ksh sh5; do
  198. # Try only shells that exist, to save several forks.
  199. as_shell=$as_dir$as_base
  200. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  201. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  202. then :
  203. CONFIG_SHELL=$as_shell as_have_required=yes
  204. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  205. then :
  206. break 2
  207. fi
  208. fi
  209. done;;
  210. esac
  211. as_found=false
  212. done
  213. IFS=$as_save_IFS
  214. if $as_found
  215. then :
  216. else $as_nop
  217. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  219. then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi
  222. fi
  223. if test "x$CONFIG_SHELL" != x
  224. then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno
  246. then :
  247. printf "%s\n" "$0: This script requires a shell more modern than all"
  248. printf "%s\n" "$0: the shells that I found on your system."
  249. if test ${ZSH_VERSION+y} ; then
  250. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  251. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  252. else
  253. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  254. $0: including any error possibly output before this
  255. $0: message. Then install a modern shell, or manually run
  256. $0: the script under such a shell if you do have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_nop
  295. # ---------
  296. # Do nothing but, unlike ":", preserve the value of $?.
  297. as_fn_nop ()
  298. {
  299. return $?
  300. }
  301. as_nop=as_fn_nop
  302. # as_fn_mkdir_p
  303. # -------------
  304. # Create "$as_dir" as a directory, including parents if necessary.
  305. as_fn_mkdir_p ()
  306. {
  307. case $as_dir in #(
  308. -*) as_dir=./$as_dir;;
  309. esac
  310. test -d "$as_dir" || eval $as_mkdir_p || {
  311. as_dirs=
  312. while :; do
  313. case $as_dir in #(
  314. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  315. *) as_qdir=$as_dir;;
  316. esac
  317. as_dirs="'$as_qdir' $as_dirs"
  318. as_dir=`$as_dirname -- "$as_dir" ||
  319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  320. X"$as_dir" : 'X\(//\)[^/]' \| \
  321. X"$as_dir" : 'X\(//\)$' \| \
  322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  323. printf "%s\n" X"$as_dir" |
  324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)[^/].*/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\/\)$/{
  333. s//\1/
  334. q
  335. }
  336. /^X\(\/\).*/{
  337. s//\1/
  338. q
  339. }
  340. s/.*/./; q'`
  341. test -d "$as_dir" && break
  342. done
  343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  344. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  345. } # as_fn_mkdir_p
  346. # as_fn_executable_p FILE
  347. # -----------------------
  348. # Test if FILE is an executable regular file.
  349. as_fn_executable_p ()
  350. {
  351. test -f "$1" && test -x "$1"
  352. } # as_fn_executable_p
  353. # as_fn_append VAR VALUE
  354. # ----------------------
  355. # Append the text in VALUE to the end of the definition contained in VAR. Take
  356. # advantage of any shell optimizations that allow amortized linear growth over
  357. # repeated appends, instead of the typical quadratic growth present in naive
  358. # implementations.
  359. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  360. then :
  361. eval 'as_fn_append ()
  362. {
  363. eval $1+=\$2
  364. }'
  365. else $as_nop
  366. as_fn_append ()
  367. {
  368. eval $1=\$$1\$2
  369. }
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else $as_nop
  383. as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. }
  387. fi # as_fn_arith
  388. # as_fn_nop
  389. # ---------
  390. # Do nothing but, unlike ":", preserve the value of $?.
  391. as_fn_nop ()
  392. {
  393. return $?
  394. }
  395. as_nop=as_fn_nop
  396. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  397. # ----------------------------------------
  398. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  399. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  400. # script with STATUS, using 1 if that was 0.
  401. as_fn_error ()
  402. {
  403. as_status=$1; test $as_status -eq 0 && as_status=1
  404. if test "$4"; then
  405. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  407. fi
  408. printf "%s\n" "$as_me: error: $2" >&2
  409. as_fn_exit $as_status
  410. } # as_fn_error
  411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  413. as_expr=expr
  414. else
  415. as_expr=false
  416. fi
  417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  418. as_basename=basename
  419. else
  420. as_basename=false
  421. fi
  422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  423. as_dirname=dirname
  424. else
  425. as_dirname=false
  426. fi
  427. as_me=`$as_basename -- "$0" ||
  428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  429. X"$0" : 'X\(//\)$' \| \
  430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  431. printf "%s\n" X/"$0" |
  432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\/\)$/{
  437. s//\1/
  438. q
  439. }
  440. /^X\/\(\/\).*/{
  441. s//\1/
  442. q
  443. }
  444. s/.*/./; q'`
  445. # Avoid depending upon Character Ranges.
  446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  449. as_cr_digits='0123456789'
  450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  451. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  452. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  453. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  454. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  455. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  456. sed -n '
  457. p
  458. /[$]LINENO/=
  459. ' <$as_myself |
  460. sed '
  461. s/[$]LINENO.*/&-/
  462. t lineno
  463. b
  464. :lineno
  465. N
  466. :loop
  467. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  468. t loop
  469. s/-\n.*//
  470. ' >$as_me.lineno &&
  471. chmod +x "$as_me.lineno" ||
  472. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  473. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  474. # already done that, so ensure we don't try to do so again and fall
  475. # in an infinite loop. This has already happened in practice.
  476. _as_can_reexec=no; export _as_can_reexec
  477. # Don't try to exec as it changes $[0], causing all sort of problems
  478. # (the dirname of $[0] is not the place where we might find the
  479. # original and so on. Autoconf is especially sensitive to this).
  480. . "./$as_me.lineno"
  481. # Exit status is that of the last command.
  482. exit
  483. }
  484. # Determine whether it's possible to make 'echo' print without a newline.
  485. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  486. # for compatibility with existing Makefiles.
  487. ECHO_C= ECHO_N= ECHO_T=
  488. case `echo -n x` in #(((((
  489. -n*)
  490. case `echo 'xy\c'` in
  491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  492. xy) ECHO_C='\c';;
  493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  494. ECHO_T=' ';;
  495. esac;;
  496. *)
  497. ECHO_N='-n';;
  498. esac
  499. # For backward compatibility with old third-party macros, we provide
  500. # the shell variables $as_echo and $as_echo_n. New code should use
  501. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  502. as_echo='printf %s\n'
  503. as_echo_n='printf %s'
  504. rm -f conf$$ conf$$.exe conf$$.file
  505. if test -d conf$$.dir; then
  506. rm -f conf$$.dir/conf$$.file
  507. else
  508. rm -f conf$$.dir
  509. mkdir conf$$.dir 2>/dev/null
  510. fi
  511. if (echo >conf$$.file) 2>/dev/null; then
  512. if ln -s conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s='ln -s'
  514. # ... but there are two gotchas:
  515. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  516. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  517. # In both cases, we have to default to `cp -pR'.
  518. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  519. as_ln_s='cp -pR'
  520. elif ln conf$$.file conf$$ 2>/dev/null; then
  521. as_ln_s=ln
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  529. rmdir conf$$.dir 2>/dev/null
  530. if mkdir -p . 2>/dev/null; then
  531. as_mkdir_p='mkdir -p "$as_dir"'
  532. else
  533. test -d ./-p && rmdir ./-p
  534. as_mkdir_p=false
  535. fi
  536. as_test_x='test -x'
  537. as_executable_p=as_fn_executable_p
  538. # Sed expression to map a string onto a valid CPP name.
  539. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  540. # Sed expression to map a string onto a valid variable name.
  541. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  542. SHELL=${CONFIG_SHELL-/bin/sh}
  543. test -n "$DJDIR" || exec 7<&0 </dev/null
  544. exec 6>&1
  545. # Name of the host.
  546. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  547. # so uname gets run too.
  548. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  549. #
  550. # Initializations.
  551. #
  552. ac_default_prefix=/usr/local
  553. ac_clean_files=
  554. ac_config_libobj_dir=.
  555. LIBOBJS=
  556. cross_compiling=no
  557. subdirs=
  558. MFLAGS=
  559. MAKEFLAGS=
  560. # Identity of this package.
  561. PACKAGE_NAME=''
  562. PACKAGE_TARNAME=''
  563. PACKAGE_VERSION=''
  564. PACKAGE_STRING=''
  565. PACKAGE_BUGREPORT=''
  566. PACKAGE_URL=''
  567. ac_unique_file="src/SDL.c"
  568. # Factoring default headers for most tests.
  569. ac_includes_default="\
  570. #include <stddef.h>
  571. #ifdef HAVE_STDIO_H
  572. # include <stdio.h>
  573. #endif
  574. #ifdef HAVE_STDLIB_H
  575. # include <stdlib.h>
  576. #endif
  577. #ifdef HAVE_STRING_H
  578. # include <string.h>
  579. #endif
  580. #ifdef HAVE_INTTYPES_H
  581. # include <inttypes.h>
  582. #endif
  583. #ifdef HAVE_STDINT_H
  584. # include <stdint.h>
  585. #endif
  586. #ifdef HAVE_STRINGS_H
  587. # include <strings.h>
  588. #endif
  589. #ifdef HAVE_SYS_TYPES_H
  590. # include <sys/types.h>
  591. #endif
  592. #ifdef HAVE_SYS_STAT_H
  593. # include <sys/stat.h>
  594. #endif
  595. #ifdef HAVE_UNISTD_H
  596. # include <unistd.h>
  597. #endif"
  598. ac_header_c_list=
  599. ac_subst_vars='LTLIBOBJS
  600. LIBOBJS
  601. WAYLAND_SCANNER_CODE_MODE
  602. WAYLAND_SCANNER
  603. EXTRA_LDFLAGS
  604. BUILD_LDFLAGS
  605. EXTRA_CFLAGS
  606. BUILD_CFLAGS
  607. SDLTEST_OBJECTS
  608. SDLMAIN_OBJECTS
  609. VERSION_OBJECTS
  610. GEN_OBJECTS
  611. GEN_HEADERS
  612. OBJECTS
  613. INCLUDE
  614. ac_aux_dir
  615. ENABLE_STATIC_FALSE
  616. ENABLE_STATIC_TRUE
  617. ENABLE_SHARED_FALSE
  618. ENABLE_SHARED_TRUE
  619. PKGCONFIG_LIBS_PRIV
  620. SDL_RLD_FLAGS
  621. SDL_STATIC_LIBS
  622. SDL_LIBS
  623. SDL_CFLAGS
  624. bin_prefix_relpath
  625. cmake_prefix_relpath
  626. INSTALL_SDL2_CONFIG
  627. LIBUSB_LIBS
  628. LIBUSB_CFLAGS
  629. IBUS_LIBS
  630. IBUS_CFLAGS
  631. DBUS_LIBS
  632. DBUS_CFLAGS
  633. LIBGBM_LIBS
  634. LIBGBM_CFLAGS
  635. LIBDRM_LIBS
  636. LIBDRM_CFLAGS
  637. DIRECTFB_LIBS
  638. DIRECTFB_CFLAGS
  639. X_EXTRA_LIBS
  640. X_LIBS
  641. X_PRE_LIBS
  642. X_CFLAGS
  643. XMKMF
  644. RPI_LIBS
  645. RPI_CFLAGS
  646. DECOR_LIBS
  647. DECOR_CFLAGS
  648. FUSIONSOUND_LIBS
  649. FUSIONSOUND_CFLAGS
  650. SNDIO_LIBS
  651. SNDIO_CFLAGS
  652. ARTSCONFIG
  653. PULSEAUDIO_LIBS
  654. PULSEAUDIO_CFLAGS
  655. PIPEWIRE_LIBS
  656. PIPEWIRE_CFLAGS
  657. ESD_CONFIG
  658. ESD_LIBS
  659. ESD_CFLAGS
  660. JACK_LIBS
  661. JACK_CFLAGS
  662. ALSA_LIBS
  663. ALSA_CFLAGS
  664. ALLOCA
  665. CPP
  666. LIBTOOLLINKERTAG
  667. LINKER
  668. SORT
  669. PKG_CONFIG_LIBDIR
  670. PKG_CONFIG_PATH
  671. PKG_CONFIG
  672. SET_MAKE
  673. INSTALL_DATA
  674. INSTALL_SCRIPT
  675. INSTALL_PROGRAM
  676. CXXCPP
  677. ac_ct_CXX
  678. CXXFLAGS
  679. CXX
  680. LT_AGE
  681. LT_REVISION
  682. LT_CURRENT
  683. LT_RELEASE
  684. RC
  685. LT_SYS_LIBRARY_PATH
  686. OTOOL64
  687. OTOOL
  688. LIPO
  689. NMEDIT
  690. DSYMUTIL
  691. MANIFEST_TOOL
  692. AWK
  693. RANLIB
  694. STRIP
  695. ac_ct_AR
  696. AR
  697. LN_S
  698. NM
  699. ac_ct_DUMPBIN
  700. DUMPBIN
  701. LD
  702. FGREP
  703. EGREP
  704. GREP
  705. SED
  706. OBJEXT
  707. EXEEXT
  708. ac_ct_CC
  709. CPPFLAGS
  710. LDFLAGS
  711. CFLAGS
  712. CC
  713. host_os
  714. host_vendor
  715. host_cpu
  716. host
  717. build_os
  718. build_vendor
  719. build_cpu
  720. build
  721. LIBTOOL
  722. OBJDUMP
  723. DLLTOOL
  724. AS
  725. SDL_VERSION
  726. SDL_BINARY_AGE
  727. SDL_INTERFACE_AGE
  728. SDL_MICRO_VERSION
  729. SDL_MINOR_VERSION
  730. SDL_MAJOR_VERSION
  731. target_alias
  732. host_alias
  733. build_alias
  734. LIBS
  735. ECHO_T
  736. ECHO_N
  737. ECHO_C
  738. DEFS
  739. mandir
  740. localedir
  741. libdir
  742. psdir
  743. pdfdir
  744. dvidir
  745. htmldir
  746. infodir
  747. docdir
  748. oldincludedir
  749. includedir
  750. runstatedir
  751. localstatedir
  752. sharedstatedir
  753. sysconfdir
  754. datadir
  755. datarootdir
  756. libexecdir
  757. sbindir
  758. bindir
  759. program_transform_name
  760. prefix
  761. exec_prefix
  762. PACKAGE_URL
  763. PACKAGE_BUGREPORT
  764. PACKAGE_STRING
  765. PACKAGE_VERSION
  766. PACKAGE_TARNAME
  767. PACKAGE_NAME
  768. PATH_SEPARATOR
  769. SHELL'
  770. ac_subst_files=''
  771. ac_user_opts='
  772. enable_option_checking
  773. enable_shared
  774. enable_static
  775. with_pic
  776. enable_fast_install
  777. with_aix_soname
  778. with_gnu_ld
  779. with_sysroot
  780. enable_libtool_lock
  781. enable_largefile
  782. enable_assertions
  783. enable_dependency_tracking
  784. enable_libc
  785. enable_system_iconv
  786. enable_gcc_atomics
  787. enable_atomic
  788. enable_audio
  789. enable_video
  790. enable_render
  791. enable_events
  792. enable_joystick
  793. enable_haptic
  794. enable_hidapi
  795. enable_sensor
  796. enable_power
  797. enable_filesystem
  798. enable_timers
  799. enable_file
  800. enable_misc
  801. enable_locale
  802. enable_loadso
  803. enable_cpuinfo
  804. enable_assembly
  805. enable_ssemath
  806. enable_mmx
  807. enable_3dnow
  808. enable_sse
  809. enable_sse2
  810. enable_sse3
  811. enable_altivec
  812. enable_lsx
  813. enable_lasx
  814. enable_oss
  815. enable_alsa
  816. with_alsa_prefix
  817. with_alsa_inc_prefix
  818. enable_alsatest
  819. enable_alsa_shared
  820. enable_jack
  821. enable_jack_shared
  822. enable_esd
  823. with_esd_prefix
  824. with_esd_exec_prefix
  825. enable_esdtest
  826. enable_esd_shared
  827. enable_pipewire
  828. enable_pipewire_shared
  829. enable_pulseaudio
  830. enable_pulseaudio_shared
  831. enable_arts
  832. enable_arts_shared
  833. enable_nas
  834. enable_nas_shared
  835. enable_sndio
  836. enable_sndio_shared
  837. enable_fusionsound
  838. enable_fusionsound_shared
  839. enable_diskaudio
  840. enable_dummyaudio
  841. enable_libsamplerate
  842. enable_libsamplerate_shared
  843. enable_arm_simd
  844. enable_arm_neon
  845. enable_werror
  846. enable_video_wayland
  847. enable_video_wayland_qt_touch
  848. enable_wayland_shared
  849. enable_libdecor
  850. enable_libdecor_shared
  851. enable_video_rpi
  852. enable_video_x11
  853. with_x
  854. enable_x11_shared
  855. enable_video_x11_xcursor
  856. enable_video_x11_xdbe
  857. enable_video_x11_xinput
  858. enable_video_x11_xfixes
  859. enable_video_x11_xrandr
  860. enable_video_x11_scrnsaver
  861. enable_video_x11_xshape
  862. enable_video_vivante
  863. enable_video_cocoa
  864. enable_video_metal
  865. enable_render_metal
  866. enable_video_directfb
  867. enable_directfb_shared
  868. enable_video_kmsdrm
  869. enable_kmsdrm_shared
  870. enable_video_dummy
  871. enable_video_offscreen
  872. enable_video_opengl
  873. enable_video_opengles
  874. enable_video_opengles1
  875. enable_video_opengles2
  876. enable_video_vulkan
  877. enable_libudev
  878. enable_dbus
  879. enable_ime
  880. enable_ibus
  881. enable_fcitx
  882. enable_joystick_mfi
  883. enable_pthreads
  884. enable_pthread_sem
  885. enable_directx
  886. enable_xinput
  887. enable_wasapi
  888. enable_hidapi_joystick
  889. enable_hidapi_libusb
  890. enable_clock_gettime
  891. enable_rpath
  892. enable_backgrounding_signal
  893. enable_foregrounding_signal
  894. enable_joystick_virtual
  895. enable_render_d3d
  896. enable_sdl2_config
  897. '
  898. ac_precious_vars='build_alias
  899. host_alias
  900. target_alias
  901. CC
  902. CFLAGS
  903. LDFLAGS
  904. LIBS
  905. CPPFLAGS
  906. LT_SYS_LIBRARY_PATH
  907. CXX
  908. CXXFLAGS
  909. CCC
  910. CXXCPP
  911. PKG_CONFIG
  912. PKG_CONFIG_PATH
  913. PKG_CONFIG_LIBDIR
  914. CPP
  915. JACK_CFLAGS
  916. JACK_LIBS
  917. ESD_CFLAGS
  918. ESD_LIBS
  919. PIPEWIRE_CFLAGS
  920. PIPEWIRE_LIBS
  921. PULSEAUDIO_CFLAGS
  922. PULSEAUDIO_LIBS
  923. SNDIO_CFLAGS
  924. SNDIO_LIBS
  925. FUSIONSOUND_CFLAGS
  926. FUSIONSOUND_LIBS
  927. DECOR_CFLAGS
  928. DECOR_LIBS
  929. RPI_CFLAGS
  930. RPI_LIBS
  931. XMKMF
  932. DIRECTFB_CFLAGS
  933. DIRECTFB_LIBS
  934. LIBDRM_CFLAGS
  935. LIBDRM_LIBS
  936. LIBGBM_CFLAGS
  937. LIBGBM_LIBS
  938. DBUS_CFLAGS
  939. DBUS_LIBS
  940. IBUS_CFLAGS
  941. IBUS_LIBS
  942. LIBUSB_CFLAGS
  943. LIBUSB_LIBS'
  944. # Initialize some variables set by options.
  945. ac_init_help=
  946. ac_init_version=false
  947. ac_unrecognized_opts=
  948. ac_unrecognized_sep=
  949. # The variables have the same names as the options, with
  950. # dashes changed to underlines.
  951. cache_file=/dev/null
  952. exec_prefix=NONE
  953. no_create=
  954. no_recursion=
  955. prefix=NONE
  956. program_prefix=NONE
  957. program_suffix=NONE
  958. program_transform_name=s,x,x,
  959. silent=
  960. site=
  961. srcdir=
  962. verbose=
  963. x_includes=NONE
  964. x_libraries=NONE
  965. # Installation directory options.
  966. # These are left unexpanded so users can "make install exec_prefix=/foo"
  967. # and all the variables that are supposed to be based on exec_prefix
  968. # by default will actually change.
  969. # Use braces instead of parens because sh, perl, etc. also accept them.
  970. # (The list follows the same order as the GNU Coding Standards.)
  971. bindir='${exec_prefix}/bin'
  972. sbindir='${exec_prefix}/sbin'
  973. libexecdir='${exec_prefix}/libexec'
  974. datarootdir='${prefix}/share'
  975. datadir='${datarootdir}'
  976. sysconfdir='${prefix}/etc'
  977. sharedstatedir='${prefix}/com'
  978. localstatedir='${prefix}/var'
  979. runstatedir='${localstatedir}/run'
  980. includedir='${prefix}/include'
  981. oldincludedir='/usr/include'
  982. docdir='${datarootdir}/doc/${PACKAGE}'
  983. infodir='${datarootdir}/info'
  984. htmldir='${docdir}'
  985. dvidir='${docdir}'
  986. pdfdir='${docdir}'
  987. psdir='${docdir}'
  988. libdir='${exec_prefix}/lib'
  989. localedir='${datarootdir}/locale'
  990. mandir='${datarootdir}/man'
  991. ac_prev=
  992. ac_dashdash=
  993. for ac_option
  994. do
  995. # If the previous option needs an argument, assign it.
  996. if test -n "$ac_prev"; then
  997. eval $ac_prev=\$ac_option
  998. ac_prev=
  999. continue
  1000. fi
  1001. case $ac_option in
  1002. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1003. *=) ac_optarg= ;;
  1004. *) ac_optarg=yes ;;
  1005. esac
  1006. case $ac_dashdash$ac_option in
  1007. --)
  1008. ac_dashdash=yes ;;
  1009. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1010. ac_prev=bindir ;;
  1011. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1012. bindir=$ac_optarg ;;
  1013. -build | --build | --buil | --bui | --bu)
  1014. ac_prev=build_alias ;;
  1015. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1016. build_alias=$ac_optarg ;;
  1017. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1018. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1019. ac_prev=cache_file ;;
  1020. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1021. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1022. cache_file=$ac_optarg ;;
  1023. --config-cache | -C)
  1024. cache_file=config.cache ;;
  1025. -datadir | --datadir | --datadi | --datad)
  1026. ac_prev=datadir ;;
  1027. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1028. datadir=$ac_optarg ;;
  1029. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1030. | --dataroo | --dataro | --datar)
  1031. ac_prev=datarootdir ;;
  1032. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1033. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1034. datarootdir=$ac_optarg ;;
  1035. -disable-* | --disable-*)
  1036. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1037. # Reject names that are not valid shell variable names.
  1038. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1039. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1040. ac_useropt_orig=$ac_useropt
  1041. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1042. case $ac_user_opts in
  1043. *"
  1044. "enable_$ac_useropt"
  1045. "*) ;;
  1046. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1047. ac_unrecognized_sep=', ';;
  1048. esac
  1049. eval enable_$ac_useropt=no ;;
  1050. -docdir | --docdir | --docdi | --doc | --do)
  1051. ac_prev=docdir ;;
  1052. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1053. docdir=$ac_optarg ;;
  1054. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1055. ac_prev=dvidir ;;
  1056. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1057. dvidir=$ac_optarg ;;
  1058. -enable-* | --enable-*)
  1059. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1060. # Reject names that are not valid shell variable names.
  1061. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1062. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1063. ac_useropt_orig=$ac_useropt
  1064. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1065. case $ac_user_opts in
  1066. *"
  1067. "enable_$ac_useropt"
  1068. "*) ;;
  1069. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1070. ac_unrecognized_sep=', ';;
  1071. esac
  1072. eval enable_$ac_useropt=\$ac_optarg ;;
  1073. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1074. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1075. | --exec | --exe | --ex)
  1076. ac_prev=exec_prefix ;;
  1077. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1078. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1079. | --exec=* | --exe=* | --ex=*)
  1080. exec_prefix=$ac_optarg ;;
  1081. -gas | --gas | --ga | --g)
  1082. # Obsolete; use --with-gas.
  1083. with_gas=yes ;;
  1084. -help | --help | --hel | --he | -h)
  1085. ac_init_help=long ;;
  1086. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1087. ac_init_help=recursive ;;
  1088. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1089. ac_init_help=short ;;
  1090. -host | --host | --hos | --ho)
  1091. ac_prev=host_alias ;;
  1092. -host=* | --host=* | --hos=* | --ho=*)
  1093. host_alias=$ac_optarg ;;
  1094. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1095. ac_prev=htmldir ;;
  1096. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1097. | --ht=*)
  1098. htmldir=$ac_optarg ;;
  1099. -includedir | --includedir | --includedi | --included | --include \
  1100. | --includ | --inclu | --incl | --inc)
  1101. ac_prev=includedir ;;
  1102. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1103. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1104. includedir=$ac_optarg ;;
  1105. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1106. ac_prev=infodir ;;
  1107. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1108. infodir=$ac_optarg ;;
  1109. -libdir | --libdir | --libdi | --libd)
  1110. ac_prev=libdir ;;
  1111. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1112. libdir=$ac_optarg ;;
  1113. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1114. | --libexe | --libex | --libe)
  1115. ac_prev=libexecdir ;;
  1116. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1117. | --libexe=* | --libex=* | --libe=*)
  1118. libexecdir=$ac_optarg ;;
  1119. -localedir | --localedir | --localedi | --localed | --locale)
  1120. ac_prev=localedir ;;
  1121. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1122. localedir=$ac_optarg ;;
  1123. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1124. | --localstate | --localstat | --localsta | --localst | --locals)
  1125. ac_prev=localstatedir ;;
  1126. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1127. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1128. localstatedir=$ac_optarg ;;
  1129. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1130. ac_prev=mandir ;;
  1131. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1132. mandir=$ac_optarg ;;
  1133. -nfp | --nfp | --nf)
  1134. # Obsolete; use --without-fp.
  1135. with_fp=no ;;
  1136. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1137. | --no-cr | --no-c | -n)
  1138. no_create=yes ;;
  1139. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1140. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1141. no_recursion=yes ;;
  1142. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1143. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1144. | --oldin | --oldi | --old | --ol | --o)
  1145. ac_prev=oldincludedir ;;
  1146. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1147. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1148. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1149. oldincludedir=$ac_optarg ;;
  1150. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1151. ac_prev=prefix ;;
  1152. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1153. prefix=$ac_optarg ;;
  1154. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1155. | --program-pre | --program-pr | --program-p)
  1156. ac_prev=program_prefix ;;
  1157. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1158. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1159. program_prefix=$ac_optarg ;;
  1160. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1161. | --program-suf | --program-su | --program-s)
  1162. ac_prev=program_suffix ;;
  1163. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1164. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1165. program_suffix=$ac_optarg ;;
  1166. -program-transform-name | --program-transform-name \
  1167. | --program-transform-nam | --program-transform-na \
  1168. | --program-transform-n | --program-transform- \
  1169. | --program-transform | --program-transfor \
  1170. | --program-transfo | --program-transf \
  1171. | --program-trans | --program-tran \
  1172. | --progr-tra | --program-tr | --program-t)
  1173. ac_prev=program_transform_name ;;
  1174. -program-transform-name=* | --program-transform-name=* \
  1175. | --program-transform-nam=* | --program-transform-na=* \
  1176. | --program-transform-n=* | --program-transform-=* \
  1177. | --program-transform=* | --program-transfor=* \
  1178. | --program-transfo=* | --program-transf=* \
  1179. | --program-trans=* | --program-tran=* \
  1180. | --progr-tra=* | --program-tr=* | --program-t=*)
  1181. program_transform_name=$ac_optarg ;;
  1182. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1183. ac_prev=pdfdir ;;
  1184. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1185. pdfdir=$ac_optarg ;;
  1186. -psdir | --psdir | --psdi | --psd | --ps)
  1187. ac_prev=psdir ;;
  1188. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1189. psdir=$ac_optarg ;;
  1190. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1191. | -silent | --silent | --silen | --sile | --sil)
  1192. silent=yes ;;
  1193. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1194. | --runstate | --runstat | --runsta | --runst | --runs \
  1195. | --run | --ru | --r)
  1196. ac_prev=runstatedir ;;
  1197. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1198. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1199. | --run=* | --ru=* | --r=*)
  1200. runstatedir=$ac_optarg ;;
  1201. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1202. ac_prev=sbindir ;;
  1203. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1204. | --sbi=* | --sb=*)
  1205. sbindir=$ac_optarg ;;
  1206. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1207. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1208. | --sharedst | --shareds | --shared | --share | --shar \
  1209. | --sha | --sh)
  1210. ac_prev=sharedstatedir ;;
  1211. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1212. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1213. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1214. | --sha=* | --sh=*)
  1215. sharedstatedir=$ac_optarg ;;
  1216. -site | --site | --sit)
  1217. ac_prev=site ;;
  1218. -site=* | --site=* | --sit=*)
  1219. site=$ac_optarg ;;
  1220. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1221. ac_prev=srcdir ;;
  1222. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1223. srcdir=$ac_optarg ;;
  1224. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1225. | --syscon | --sysco | --sysc | --sys | --sy)
  1226. ac_prev=sysconfdir ;;
  1227. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1228. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1229. sysconfdir=$ac_optarg ;;
  1230. -target | --target | --targe | --targ | --tar | --ta | --t)
  1231. ac_prev=target_alias ;;
  1232. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1233. target_alias=$ac_optarg ;;
  1234. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1235. verbose=yes ;;
  1236. -version | --version | --versio | --versi | --vers | -V)
  1237. ac_init_version=: ;;
  1238. -with-* | --with-*)
  1239. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1240. # Reject names that are not valid shell variable names.
  1241. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1242. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1243. ac_useropt_orig=$ac_useropt
  1244. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1245. case $ac_user_opts in
  1246. *"
  1247. "with_$ac_useropt"
  1248. "*) ;;
  1249. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1250. ac_unrecognized_sep=', ';;
  1251. esac
  1252. eval with_$ac_useropt=\$ac_optarg ;;
  1253. -without-* | --without-*)
  1254. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1255. # Reject names that are not valid shell variable names.
  1256. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1257. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1258. ac_useropt_orig=$ac_useropt
  1259. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1260. case $ac_user_opts in
  1261. *"
  1262. "with_$ac_useropt"
  1263. "*) ;;
  1264. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1265. ac_unrecognized_sep=', ';;
  1266. esac
  1267. eval with_$ac_useropt=no ;;
  1268. --x)
  1269. # Obsolete; use --with-x.
  1270. with_x=yes ;;
  1271. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1272. | --x-incl | --x-inc | --x-in | --x-i)
  1273. ac_prev=x_includes ;;
  1274. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1275. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1276. x_includes=$ac_optarg ;;
  1277. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1278. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1279. ac_prev=x_libraries ;;
  1280. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1281. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1282. x_libraries=$ac_optarg ;;
  1283. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1284. Try \`$0 --help' for more information"
  1285. ;;
  1286. *=*)
  1287. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1288. # Reject names that are not valid shell variable names.
  1289. case $ac_envvar in #(
  1290. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1291. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1292. esac
  1293. eval $ac_envvar=\$ac_optarg
  1294. export $ac_envvar ;;
  1295. *)
  1296. # FIXME: should be removed in autoconf 3.0.
  1297. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1298. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1299. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1300. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1301. ;;
  1302. esac
  1303. done
  1304. if test -n "$ac_prev"; then
  1305. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1306. as_fn_error $? "missing argument to $ac_option"
  1307. fi
  1308. if test -n "$ac_unrecognized_opts"; then
  1309. case $enable_option_checking in
  1310. no) ;;
  1311. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1312. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1313. esac
  1314. fi
  1315. # Check all directory arguments for consistency.
  1316. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1317. datadir sysconfdir sharedstatedir localstatedir includedir \
  1318. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1319. libdir localedir mandir runstatedir
  1320. do
  1321. eval ac_val=\$$ac_var
  1322. # Remove trailing slashes.
  1323. case $ac_val in
  1324. */ )
  1325. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1326. eval $ac_var=\$ac_val;;
  1327. esac
  1328. # Be sure to have absolute directory names.
  1329. case $ac_val in
  1330. [\\/$]* | ?:[\\/]* ) continue;;
  1331. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1332. esac
  1333. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1334. done
  1335. # There might be people who depend on the old broken behavior: `$host'
  1336. # used to hold the argument of --host etc.
  1337. # FIXME: To remove some day.
  1338. build=$build_alias
  1339. host=$host_alias
  1340. target=$target_alias
  1341. # FIXME: To remove some day.
  1342. if test "x$host_alias" != x; then
  1343. if test "x$build_alias" = x; then
  1344. cross_compiling=maybe
  1345. elif test "x$build_alias" != "x$host_alias"; then
  1346. cross_compiling=yes
  1347. fi
  1348. fi
  1349. ac_tool_prefix=
  1350. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1351. test "$silent" = yes && exec 6>/dev/null
  1352. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1353. ac_ls_di=`ls -di .` &&
  1354. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1355. as_fn_error $? "working directory cannot be determined"
  1356. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1357. as_fn_error $? "pwd does not report name of working directory"
  1358. # Find the source files, if location was not specified.
  1359. if test -z "$srcdir"; then
  1360. ac_srcdir_defaulted=yes
  1361. # Try the directory containing this script, then the parent directory.
  1362. ac_confdir=`$as_dirname -- "$as_myself" ||
  1363. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1364. X"$as_myself" : 'X\(//\)[^/]' \| \
  1365. X"$as_myself" : 'X\(//\)$' \| \
  1366. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1367. printf "%s\n" X"$as_myself" |
  1368. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1369. s//\1/
  1370. q
  1371. }
  1372. /^X\(\/\/\)[^/].*/{
  1373. s//\1/
  1374. q
  1375. }
  1376. /^X\(\/\/\)$/{
  1377. s//\1/
  1378. q
  1379. }
  1380. /^X\(\/\).*/{
  1381. s//\1/
  1382. q
  1383. }
  1384. s/.*/./; q'`
  1385. srcdir=$ac_confdir
  1386. if test ! -r "$srcdir/$ac_unique_file"; then
  1387. srcdir=..
  1388. fi
  1389. else
  1390. ac_srcdir_defaulted=no
  1391. fi
  1392. if test ! -r "$srcdir/$ac_unique_file"; then
  1393. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1394. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1395. fi
  1396. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1397. ac_abs_confdir=`(
  1398. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1399. pwd)`
  1400. # When building in place, set srcdir=.
  1401. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1402. srcdir=.
  1403. fi
  1404. # Remove unnecessary trailing slashes from srcdir.
  1405. # Double slashes in file names in object file debugging info
  1406. # mess up M-x gdb in Emacs.
  1407. case $srcdir in
  1408. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1409. esac
  1410. for ac_var in $ac_precious_vars; do
  1411. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1412. eval ac_env_${ac_var}_value=\$${ac_var}
  1413. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1414. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1415. done
  1416. #
  1417. # Report the --help message.
  1418. #
  1419. if test "$ac_init_help" = "long"; then
  1420. # Omit some internal or obsolete options to make the list less imposing.
  1421. # This message is too long to be a string in the A/UX 3.1 sh.
  1422. cat <<_ACEOF
  1423. \`configure' configures this package to adapt to many kinds of systems.
  1424. Usage: $0 [OPTION]... [VAR=VALUE]...
  1425. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1426. VAR=VALUE. See below for descriptions of some of the useful variables.
  1427. Defaults for the options are specified in brackets.
  1428. Configuration:
  1429. -h, --help display this help and exit
  1430. --help=short display options specific to this package
  1431. --help=recursive display the short help of all the included packages
  1432. -V, --version display version information and exit
  1433. -q, --quiet, --silent do not print \`checking ...' messages
  1434. --cache-file=FILE cache test results in FILE [disabled]
  1435. -C, --config-cache alias for \`--cache-file=config.cache'
  1436. -n, --no-create do not create output files
  1437. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1438. Installation directories:
  1439. --prefix=PREFIX install architecture-independent files in PREFIX
  1440. [$ac_default_prefix]
  1441. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1442. [PREFIX]
  1443. By default, \`make install' will install all the files in
  1444. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1445. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1446. for instance \`--prefix=\$HOME'.
  1447. For better control, use the options below.
  1448. Fine tuning of the installation directories:
  1449. --bindir=DIR user executables [EPREFIX/bin]
  1450. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1451. --libexecdir=DIR program executables [EPREFIX/libexec]
  1452. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1453. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1454. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1455. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1456. --libdir=DIR object code libraries [EPREFIX/lib]
  1457. --includedir=DIR C header files [PREFIX/include]
  1458. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1459. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1460. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1461. --infodir=DIR info documentation [DATAROOTDIR/info]
  1462. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1463. --mandir=DIR man documentation [DATAROOTDIR/man]
  1464. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1465. --htmldir=DIR html documentation [DOCDIR]
  1466. --dvidir=DIR dvi documentation [DOCDIR]
  1467. --pdfdir=DIR pdf documentation [DOCDIR]
  1468. --psdir=DIR ps documentation [DOCDIR]
  1469. _ACEOF
  1470. cat <<\_ACEOF
  1471. X features:
  1472. --x-includes=DIR X include files are in DIR
  1473. --x-libraries=DIR X library files are in DIR
  1474. System types:
  1475. --build=BUILD configure for building on BUILD [guessed]
  1476. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1477. _ACEOF
  1478. fi
  1479. if test -n "$ac_init_help"; then
  1480. cat <<\_ACEOF
  1481. Optional Features:
  1482. --disable-option-checking ignore unrecognized --enable/--with options
  1483. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1484. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1485. --enable-shared[=PKGS] build shared libraries [default=yes]
  1486. --enable-static[=PKGS] build static libraries [default=yes]
  1487. --enable-fast-install[=PKGS]
  1488. optimize for fast installation [default=yes]
  1489. --disable-libtool-lock avoid locking (might break parallel builds)
  1490. --disable-largefile omit support for large files
  1491. --enable-assertions Enable internal sanity checks
  1492. (auto/disabled/release/enabled/paranoid)
  1493. [default=auto]
  1494. --enable-dependency-tracking
  1495. Use gcc -MMD -MT dependency tracking [default=yes]
  1496. --enable-libc Use the system C library [default=yes]
  1497. --enable-system-iconv Use iconv() from system-installed libraries
  1498. [default=yes]
  1499. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1500. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1501. --enable-audio Enable the audio subsystem [default=yes]
  1502. --enable-video Enable the video subsystem [default=yes]
  1503. --enable-render Enable the render subsystem [default=yes]
  1504. --enable-events Enable the events subsystem [default=yes]
  1505. --enable-joystick Enable the joystick subsystem [default=yes]
  1506. --enable-haptic Enable the haptic (force feedback) subsystem
  1507. [default=yes]
  1508. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1509. --enable-sensor Enable the sensor subsystem [default=yes]
  1510. --enable-power Enable the power subsystem [default=yes]
  1511. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1512. --enable-timers Enable the timer subsystem [default=yes]
  1513. --enable-file Enable the file subsystem [default=yes]
  1514. --enable-misc Enable the misc subsystem [default=yes]
  1515. --enable-locale Enable the locale subsystem [default=yes]
  1516. --enable-loadso Enable the shared object loading subsystem
  1517. [default=yes]
  1518. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1519. --enable-assembly Enable assembly routines [default=yes]
  1520. --enable-ssemath Allow GCC to use SSE floating point math
  1521. [default=maybe]
  1522. --enable-mmx use MMX assembly routines [default=yes]
  1523. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1524. --enable-sse use SSE assembly routines [default=yes]
  1525. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1526. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1527. --enable-altivec use Altivec assembly routines [default=yes]
  1528. --enable-lsx use LSX assembly routines [default=yes]
  1529. --enable-lasx use LASX assembly routines [default=yes]
  1530. --enable-oss support the OSS audio API [default=maybe]
  1531. --enable-alsa support the ALSA audio API [default=yes]
  1532. --disable-alsatest Do not try to compile and run a test Alsa program
  1533. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1534. --enable-jack use JACK audio [default=yes]
  1535. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1536. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1537. --disable-esdtest Do not try to compile and run a test ESD program
  1538. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1539. --enable-pipewire use Pipewire audio [default=yes]
  1540. --enable-pipewire-shared
  1541. dynamically load Pipewire support [default=yes]
  1542. --enable-pulseaudio use PulseAudio [default=yes]
  1543. --enable-pulseaudio-shared
  1544. dynamically load PulseAudio support [default=yes]
  1545. --enable-arts support the Analog Real Time Synthesizer
  1546. [default=yes]
  1547. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1548. --enable-nas support the NAS audio API [default=yes]
  1549. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1550. --enable-sndio support the sndio audio API [default=yes]
  1551. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1552. --enable-fusionsound use FusionSound audio driver [default=no]
  1553. --enable-fusionsound-shared
  1554. dynamically load fusionsound audio support
  1555. [default=yes]
  1556. --enable-diskaudio support the disk writer audio driver [default=yes]
  1557. --enable-dummyaudio support the dummy audio driver [default=yes]
  1558. --enable-libsamplerate use libsamplerate for audio rate conversion
  1559. [default=yes]
  1560. --enable-libsamplerate-shared
  1561. dynamically load libsamplerate [default=yes]
  1562. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1563. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1564. --enable-werror treat warnings as errors [default=no]
  1565. --enable-video-wayland use Wayland video driver [default=yes]
  1566. --enable-video-wayland-qt-touch
  1567. QtWayland server support for Wayland video driver
  1568. [default=yes]
  1569. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1570. --enable-libdecor use libdecor for Wayland client-side decorations
  1571. [default=yes]
  1572. --enable-libdecor-shared
  1573. dynamically load libdecor [default=yes]
  1574. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1575. --enable-video-x11 use X11 video driver [default=maybe]
  1576. --enable-x11-shared dynamically load X11 support [default=maybe]
  1577. --enable-video-x11-xcursor
  1578. enable X11 Xcursor support [default=yes]
  1579. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1580. --enable-video-x11-xinput
  1581. enable X11 XInput extension for manymouse, tablets,
  1582. etc [default=yes]
  1583. --enable-video-x11-xfixes
  1584. enable X11 Xfixes support [default=yes]
  1585. --enable-video-x11-xrandr
  1586. enable X11 Xrandr extension for fullscreen
  1587. [default=yes]
  1588. --enable-video-x11-scrnsaver
  1589. enable X11 screensaver extension [default=yes]
  1590. --enable-video-x11-xshape
  1591. enable X11 XShape support [default=yes]
  1592. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1593. --enable-video-cocoa use Cocoa video driver [default=yes]
  1594. --enable-video-metal include Metal support [default=yes]
  1595. --enable-render-metal enable the Metal render driver [default=yes]
  1596. --enable-video-directfb use DirectFB video driver [default=no]
  1597. --enable-directfb-shared
  1598. dynamically load directfb support [default=yes]
  1599. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1600. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1601. --enable-video-dummy use dummy video driver [default=yes]
  1602. --enable-video-offscreen
  1603. use offscreen video driver [default=yes]
  1604. --enable-video-opengl include OpenGL support [default=yes]
  1605. --enable-video-opengles include OpenGL ES support [default=yes]
  1606. --enable-video-opengles1
  1607. include OpenGL ES 1.1 support [default=yes]
  1608. --enable-video-opengles2
  1609. include OpenGL ES 2.0 support [default=yes]
  1610. --enable-video-vulkan include Vulkan support [default=yes]
  1611. --enable-libudev enable libudev support [default=yes]
  1612. --enable-dbus enable D-Bus support [default=yes]
  1613. --enable-ime enable IME support [default=yes]
  1614. --enable-ibus enable IBus support [default=yes]
  1615. --enable-fcitx enable fcitx support [default=yes]
  1616. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1617. --enable-pthreads use POSIX threads for multi-threading
  1618. [default=maybe]
  1619. --enable-pthread-sem use pthread semaphores [default=maybe]
  1620. --enable-directx use DirectX for Windows audio/video [default=yes]
  1621. --enable-xinput use Xinput for Windows [default=yes]
  1622. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1623. --enable-hidapi-joystick
  1624. use HIDAPI for low level joystick drivers
  1625. [default=yes]
  1626. --enable-hidapi-libusb use libusb for low level joystick drivers
  1627. [default=maybe]
  1628. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1629. UNIX [default=yes]
  1630. --enable-rpath use an rpath when linking SDL [default=yes]
  1631. --enable-backgrounding-signal
  1632. number to use for magic backgrounding signal or 'no'
  1633. [default=no]
  1634. --enable-foregrounding-signal
  1635. number to use for magic foregrounding signal or 'no'
  1636. [default=no]
  1637. --enable-joystick-virtual
  1638. enable virtual joystick APIs [default=yes]
  1639. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1640. --enable-sdl2-config Install sdl2-config [default=yes]
  1641. Optional Packages:
  1642. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1643. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1644. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1645. both]
  1646. --with-aix-soname=aix|svr4|both
  1647. shared library versioning (aka "SONAME") variant to
  1648. provide on AIX, [default=aix].
  1649. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1650. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1651. compiler's sysroot if not specified).
  1652. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1653. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1654. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1655. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1656. --with-x use the X Window System
  1657. Some influential environment variables:
  1658. CC C compiler command
  1659. CFLAGS C compiler flags
  1660. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1661. nonstandard directory <lib dir>
  1662. LIBS libraries to pass to the linker, e.g. -l<library>
  1663. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1664. you have headers in a nonstandard directory <include dir>
  1665. LT_SYS_LIBRARY_PATH
  1666. User-defined run-time library search path.
  1667. CXX C++ compiler command
  1668. CXXFLAGS C++ compiler flags
  1669. CXXCPP C++ preprocessor
  1670. PKG_CONFIG path to pkg-config utility
  1671. PKG_CONFIG_PATH
  1672. directories to add to pkg-config's search path
  1673. PKG_CONFIG_LIBDIR
  1674. path overriding pkg-config's built-in search path
  1675. CPP C preprocessor
  1676. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1677. JACK_LIBS linker flags for JACK, overriding pkg-config
  1678. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1679. ESD_LIBS linker flags for ESD, overriding pkg-config
  1680. PIPEWIRE_CFLAGS
  1681. C compiler flags for PIPEWIRE, overriding pkg-config
  1682. PIPEWIRE_LIBS
  1683. linker flags for PIPEWIRE, overriding pkg-config
  1684. PULSEAUDIO_CFLAGS
  1685. C compiler flags for PULSEAUDIO, overriding pkg-config
  1686. PULSEAUDIO_LIBS
  1687. linker flags for PULSEAUDIO, overriding pkg-config
  1688. SNDIO_CFLAGS
  1689. C compiler flags for SNDIO, overriding pkg-config
  1690. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1691. FUSIONSOUND_CFLAGS
  1692. C compiler flags for FUSIONSOUND, overriding pkg-config
  1693. FUSIONSOUND_LIBS
  1694. linker flags for FUSIONSOUND, overriding pkg-config
  1695. DECOR_CFLAGS
  1696. C compiler flags for DECOR, overriding pkg-config
  1697. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1698. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1699. RPI_LIBS linker flags for RPI, overriding pkg-config
  1700. XMKMF Path to xmkmf, Makefile generator for X Window System
  1701. DIRECTFB_CFLAGS
  1702. C compiler flags for DIRECTFB, overriding pkg-config
  1703. DIRECTFB_LIBS
  1704. linker flags for DIRECTFB, overriding pkg-config
  1705. LIBDRM_CFLAGS
  1706. C compiler flags for LIBDRM, overriding pkg-config
  1707. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1708. LIBGBM_CFLAGS
  1709. C compiler flags for LIBGBM, overriding pkg-config
  1710. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1711. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1712. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1713. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1714. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1715. LIBUSB_CFLAGS
  1716. C compiler flags for LIBUSB, overriding pkg-config
  1717. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1718. Use these variables to override the choices made by `configure' or to help
  1719. it to find libraries and programs with nonstandard names/locations.
  1720. Report bugs to the package provider.
  1721. _ACEOF
  1722. ac_status=$?
  1723. fi
  1724. if test "$ac_init_help" = "recursive"; then
  1725. # If there are subdirs, report their specific --help.
  1726. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1727. test -d "$ac_dir" ||
  1728. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1729. continue
  1730. ac_builddir=.
  1731. case "$ac_dir" in
  1732. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1733. *)
  1734. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1735. # A ".." for each directory in $ac_dir_suffix.
  1736. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1737. case $ac_top_builddir_sub in
  1738. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1739. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1740. esac ;;
  1741. esac
  1742. ac_abs_top_builddir=$ac_pwd
  1743. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1744. # for backward compatibility:
  1745. ac_top_builddir=$ac_top_build_prefix
  1746. case $srcdir in
  1747. .) # We are building in place.
  1748. ac_srcdir=.
  1749. ac_top_srcdir=$ac_top_builddir_sub
  1750. ac_abs_top_srcdir=$ac_pwd ;;
  1751. [\\/]* | ?:[\\/]* ) # Absolute name.
  1752. ac_srcdir=$srcdir$ac_dir_suffix;
  1753. ac_top_srcdir=$srcdir
  1754. ac_abs_top_srcdir=$srcdir ;;
  1755. *) # Relative name.
  1756. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1757. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1758. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1759. esac
  1760. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1761. cd "$ac_dir" || { ac_status=$?; continue; }
  1762. # Check for configure.gnu first; this name is used for a wrapper for
  1763. # Metaconfig's "Configure" on case-insensitive file systems.
  1764. if test -f "$ac_srcdir/configure.gnu"; then
  1765. echo &&
  1766. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1767. elif test -f "$ac_srcdir/configure"; then
  1768. echo &&
  1769. $SHELL "$ac_srcdir/configure" --help=recursive
  1770. else
  1771. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1772. fi || ac_status=$?
  1773. cd "$ac_pwd" || { ac_status=$?; break; }
  1774. done
  1775. fi
  1776. test -n "$ac_init_help" && exit $ac_status
  1777. if $ac_init_version; then
  1778. cat <<\_ACEOF
  1779. configure
  1780. generated by GNU Autoconf 2.71
  1781. Copyright (C) 2021 Free Software Foundation, Inc.
  1782. This configure script is free software; the Free Software Foundation
  1783. gives unlimited permission to copy, distribute and modify it.
  1784. _ACEOF
  1785. exit
  1786. fi
  1787. ## ------------------------ ##
  1788. ## Autoconf initialization. ##
  1789. ## ------------------------ ##
  1790. # ac_fn_c_try_compile LINENO
  1791. # --------------------------
  1792. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1793. ac_fn_c_try_compile ()
  1794. {
  1795. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1796. rm -f conftest.$ac_objext conftest.beam
  1797. if { { ac_try="$ac_compile"
  1798. case "(($ac_try" in
  1799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1800. *) ac_try_echo=$ac_try;;
  1801. esac
  1802. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1803. printf "%s\n" "$ac_try_echo"; } >&5
  1804. (eval "$ac_compile") 2>conftest.err
  1805. ac_status=$?
  1806. if test -s conftest.err; then
  1807. grep -v '^ *+' conftest.err >conftest.er1
  1808. cat conftest.er1 >&5
  1809. mv -f conftest.er1 conftest.err
  1810. fi
  1811. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1812. test $ac_status = 0; } && {
  1813. test -z "$ac_c_werror_flag" ||
  1814. test ! -s conftest.err
  1815. } && test -s conftest.$ac_objext
  1816. then :
  1817. ac_retval=0
  1818. else $as_nop
  1819. printf "%s\n" "$as_me: failed program was:" >&5
  1820. sed 's/^/| /' conftest.$ac_ext >&5
  1821. ac_retval=1
  1822. fi
  1823. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1824. as_fn_set_status $ac_retval
  1825. } # ac_fn_c_try_compile
  1826. # ac_fn_c_try_link LINENO
  1827. # -----------------------
  1828. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1829. ac_fn_c_try_link ()
  1830. {
  1831. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1832. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1833. if { { ac_try="$ac_link"
  1834. case "(($ac_try" in
  1835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1836. *) ac_try_echo=$ac_try;;
  1837. esac
  1838. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1839. printf "%s\n" "$ac_try_echo"; } >&5
  1840. (eval "$ac_link") 2>conftest.err
  1841. ac_status=$?
  1842. if test -s conftest.err; then
  1843. grep -v '^ *+' conftest.err >conftest.er1
  1844. cat conftest.er1 >&5
  1845. mv -f conftest.er1 conftest.err
  1846. fi
  1847. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1848. test $ac_status = 0; } && {
  1849. test -z "$ac_c_werror_flag" ||
  1850. test ! -s conftest.err
  1851. } && test -s conftest$ac_exeext && {
  1852. test "$cross_compiling" = yes ||
  1853. test -x conftest$ac_exeext
  1854. }
  1855. then :
  1856. ac_retval=0
  1857. else $as_nop
  1858. printf "%s\n" "$as_me: failed program was:" >&5
  1859. sed 's/^/| /' conftest.$ac_ext >&5
  1860. ac_retval=1
  1861. fi
  1862. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1863. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1864. # interfere with the next link command; also delete a directory that is
  1865. # left behind by Apple's compiler. We do this before executing the actions.
  1866. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1867. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1868. as_fn_set_status $ac_retval
  1869. } # ac_fn_c_try_link
  1870. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1871. # -------------------------------------------------------
  1872. # Tests whether HEADER exists and can be compiled using the include files in
  1873. # INCLUDES, setting the cache variable VAR accordingly.
  1874. ac_fn_c_check_header_compile ()
  1875. {
  1876. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1878. printf %s "checking for $2... " >&6; }
  1879. if eval test \${$3+y}
  1880. then :
  1881. printf %s "(cached) " >&6
  1882. else $as_nop
  1883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1884. /* end confdefs.h. */
  1885. $4
  1886. #include <$2>
  1887. _ACEOF
  1888. if ac_fn_c_try_compile "$LINENO"
  1889. then :
  1890. eval "$3=yes"
  1891. else $as_nop
  1892. eval "$3=no"
  1893. fi
  1894. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1895. fi
  1896. eval ac_res=\$$3
  1897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1898. printf "%s\n" "$ac_res" >&6; }
  1899. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1900. } # ac_fn_c_check_header_compile
  1901. # ac_fn_c_check_func LINENO FUNC VAR
  1902. # ----------------------------------
  1903. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1904. ac_fn_c_check_func ()
  1905. {
  1906. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1908. printf %s "checking for $2... " >&6; }
  1909. if eval test \${$3+y}
  1910. then :
  1911. printf %s "(cached) " >&6
  1912. else $as_nop
  1913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1914. /* end confdefs.h. */
  1915. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1916. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1917. #define $2 innocuous_$2
  1918. /* System header to define __stub macros and hopefully few prototypes,
  1919. which can conflict with char $2 (); below. */
  1920. #include <limits.h>
  1921. #undef $2
  1922. /* Override any GCC internal prototype to avoid an error.
  1923. Use char because int might match the return type of a GCC
  1924. builtin and then its argument prototype would still apply. */
  1925. #ifdef __cplusplus
  1926. extern "C"
  1927. #endif
  1928. char $2 ();
  1929. /* The GNU C library defines this for functions which it implements
  1930. to always fail with ENOSYS. Some functions are actually named
  1931. something starting with __ and the normal name is an alias. */
  1932. #if defined __stub_$2 || defined __stub___$2
  1933. choke me
  1934. #endif
  1935. int
  1936. main (void)
  1937. {
  1938. return $2 ();
  1939. ;
  1940. return 0;
  1941. }
  1942. _ACEOF
  1943. if ac_fn_c_try_link "$LINENO"
  1944. then :
  1945. eval "$3=yes"
  1946. else $as_nop
  1947. eval "$3=no"
  1948. fi
  1949. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1950. conftest$ac_exeext conftest.$ac_ext
  1951. fi
  1952. eval ac_res=\$$3
  1953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1954. printf "%s\n" "$ac_res" >&6; }
  1955. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1956. } # ac_fn_c_check_func
  1957. # ac_fn_cxx_try_compile LINENO
  1958. # ----------------------------
  1959. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1960. ac_fn_cxx_try_compile ()
  1961. {
  1962. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1963. rm -f conftest.$ac_objext conftest.beam
  1964. if { { ac_try="$ac_compile"
  1965. case "(($ac_try" in
  1966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1967. *) ac_try_echo=$ac_try;;
  1968. esac
  1969. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1970. printf "%s\n" "$ac_try_echo"; } >&5
  1971. (eval "$ac_compile") 2>conftest.err
  1972. ac_status=$?
  1973. if test -s conftest.err; then
  1974. grep -v '^ *+' conftest.err >conftest.er1
  1975. cat conftest.er1 >&5
  1976. mv -f conftest.er1 conftest.err
  1977. fi
  1978. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1979. test $ac_status = 0; } && {
  1980. test -z "$ac_cxx_werror_flag" ||
  1981. test ! -s conftest.err
  1982. } && test -s conftest.$ac_objext
  1983. then :
  1984. ac_retval=0
  1985. else $as_nop
  1986. printf "%s\n" "$as_me: failed program was:" >&5
  1987. sed 's/^/| /' conftest.$ac_ext >&5
  1988. ac_retval=1
  1989. fi
  1990. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1991. as_fn_set_status $ac_retval
  1992. } # ac_fn_cxx_try_compile
  1993. # ac_fn_cxx_try_cpp LINENO
  1994. # ------------------------
  1995. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1996. ac_fn_cxx_try_cpp ()
  1997. {
  1998. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1999. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2000. case "(($ac_try" in
  2001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2002. *) ac_try_echo=$ac_try;;
  2003. esac
  2004. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2005. printf "%s\n" "$ac_try_echo"; } >&5
  2006. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2007. ac_status=$?
  2008. if test -s conftest.err; then
  2009. grep -v '^ *+' conftest.err >conftest.er1
  2010. cat conftest.er1 >&5
  2011. mv -f conftest.er1 conftest.err
  2012. fi
  2013. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2014. test $ac_status = 0; } > conftest.i && {
  2015. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2016. test ! -s conftest.err
  2017. }
  2018. then :
  2019. ac_retval=0
  2020. else $as_nop
  2021. printf "%s\n" "$as_me: failed program was:" >&5
  2022. sed 's/^/| /' conftest.$ac_ext >&5
  2023. ac_retval=1
  2024. fi
  2025. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2026. as_fn_set_status $ac_retval
  2027. } # ac_fn_cxx_try_cpp
  2028. # ac_fn_cxx_try_link LINENO
  2029. # -------------------------
  2030. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2031. ac_fn_cxx_try_link ()
  2032. {
  2033. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2034. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2035. if { { ac_try="$ac_link"
  2036. case "(($ac_try" in
  2037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2038. *) ac_try_echo=$ac_try;;
  2039. esac
  2040. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2041. printf "%s\n" "$ac_try_echo"; } >&5
  2042. (eval "$ac_link") 2>conftest.err
  2043. ac_status=$?
  2044. if test -s conftest.err; then
  2045. grep -v '^ *+' conftest.err >conftest.er1
  2046. cat conftest.er1 >&5
  2047. mv -f conftest.er1 conftest.err
  2048. fi
  2049. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2050. test $ac_status = 0; } && {
  2051. test -z "$ac_cxx_werror_flag" ||
  2052. test ! -s conftest.err
  2053. } && test -s conftest$ac_exeext && {
  2054. test "$cross_compiling" = yes ||
  2055. test -x conftest$ac_exeext
  2056. }
  2057. then :
  2058. ac_retval=0
  2059. else $as_nop
  2060. printf "%s\n" "$as_me: failed program was:" >&5
  2061. sed 's/^/| /' conftest.$ac_ext >&5
  2062. ac_retval=1
  2063. fi
  2064. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2065. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2066. # interfere with the next link command; also delete a directory that is
  2067. # left behind by Apple's compiler. We do this before executing the actions.
  2068. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2069. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2070. as_fn_set_status $ac_retval
  2071. } # ac_fn_cxx_try_link
  2072. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2073. # -------------------------------------------
  2074. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2075. # variable VAR accordingly.
  2076. ac_fn_c_check_type ()
  2077. {
  2078. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2080. printf %s "checking for $2... " >&6; }
  2081. if eval test \${$3+y}
  2082. then :
  2083. printf %s "(cached) " >&6
  2084. else $as_nop
  2085. eval "$3=no"
  2086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2087. /* end confdefs.h. */
  2088. $4
  2089. int
  2090. main (void)
  2091. {
  2092. if (sizeof ($2))
  2093. return 0;
  2094. ;
  2095. return 0;
  2096. }
  2097. _ACEOF
  2098. if ac_fn_c_try_compile "$LINENO"
  2099. then :
  2100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2101. /* end confdefs.h. */
  2102. $4
  2103. int
  2104. main (void)
  2105. {
  2106. if (sizeof (($2)))
  2107. return 0;
  2108. ;
  2109. return 0;
  2110. }
  2111. _ACEOF
  2112. if ac_fn_c_try_compile "$LINENO"
  2113. then :
  2114. else $as_nop
  2115. eval "$3=yes"
  2116. fi
  2117. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2118. fi
  2119. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2120. fi
  2121. eval ac_res=\$$3
  2122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2123. printf "%s\n" "$ac_res" >&6; }
  2124. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2125. } # ac_fn_c_check_type
  2126. # ac_fn_c_try_cpp LINENO
  2127. # ----------------------
  2128. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2129. ac_fn_c_try_cpp ()
  2130. {
  2131. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2132. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2133. case "(($ac_try" in
  2134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2135. *) ac_try_echo=$ac_try;;
  2136. esac
  2137. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2138. printf "%s\n" "$ac_try_echo"; } >&5
  2139. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2140. ac_status=$?
  2141. if test -s conftest.err; then
  2142. grep -v '^ *+' conftest.err >conftest.er1
  2143. cat conftest.er1 >&5
  2144. mv -f conftest.er1 conftest.err
  2145. fi
  2146. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2147. test $ac_status = 0; } > conftest.i && {
  2148. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2149. test ! -s conftest.err
  2150. }
  2151. then :
  2152. ac_retval=0
  2153. else $as_nop
  2154. printf "%s\n" "$as_me: failed program was:" >&5
  2155. sed 's/^/| /' conftest.$ac_ext >&5
  2156. ac_retval=1
  2157. fi
  2158. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2159. as_fn_set_status $ac_retval
  2160. } # ac_fn_c_try_cpp
  2161. # ac_fn_c_try_run LINENO
  2162. # ----------------------
  2163. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2164. # executables *can* be run.
  2165. ac_fn_c_try_run ()
  2166. {
  2167. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2168. if { { ac_try="$ac_link"
  2169. case "(($ac_try" in
  2170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2171. *) ac_try_echo=$ac_try;;
  2172. esac
  2173. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2174. printf "%s\n" "$ac_try_echo"; } >&5
  2175. (eval "$ac_link") 2>&5
  2176. ac_status=$?
  2177. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2178. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2179. { { case "(($ac_try" in
  2180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2181. *) ac_try_echo=$ac_try;;
  2182. esac
  2183. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2184. printf "%s\n" "$ac_try_echo"; } >&5
  2185. (eval "$ac_try") 2>&5
  2186. ac_status=$?
  2187. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2188. test $ac_status = 0; }; }
  2189. then :
  2190. ac_retval=0
  2191. else $as_nop
  2192. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2193. printf "%s\n" "$as_me: failed program was:" >&5
  2194. sed 's/^/| /' conftest.$ac_ext >&5
  2195. ac_retval=$ac_status
  2196. fi
  2197. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2198. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2199. as_fn_set_status $ac_retval
  2200. } # ac_fn_c_try_run
  2201. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2202. # ----------------------------------------------------
  2203. # Tries to find if the field MEMBER exists in type AGGR, after including
  2204. # INCLUDES, setting cache variable VAR accordingly.
  2205. ac_fn_c_check_member ()
  2206. {
  2207. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2209. printf %s "checking for $2.$3... " >&6; }
  2210. if eval test \${$4+y}
  2211. then :
  2212. printf %s "(cached) " >&6
  2213. else $as_nop
  2214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2215. /* end confdefs.h. */
  2216. $5
  2217. int
  2218. main (void)
  2219. {
  2220. static $2 ac_aggr;
  2221. if (ac_aggr.$3)
  2222. return 0;
  2223. ;
  2224. return 0;
  2225. }
  2226. _ACEOF
  2227. if ac_fn_c_try_compile "$LINENO"
  2228. then :
  2229. eval "$4=yes"
  2230. else $as_nop
  2231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2232. /* end confdefs.h. */
  2233. $5
  2234. int
  2235. main (void)
  2236. {
  2237. static $2 ac_aggr;
  2238. if (sizeof ac_aggr.$3)
  2239. return 0;
  2240. ;
  2241. return 0;
  2242. }
  2243. _ACEOF
  2244. if ac_fn_c_try_compile "$LINENO"
  2245. then :
  2246. eval "$4=yes"
  2247. else $as_nop
  2248. eval "$4=no"
  2249. fi
  2250. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2251. fi
  2252. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2253. fi
  2254. eval ac_res=\$$4
  2255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2256. printf "%s\n" "$ac_res" >&6; }
  2257. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2258. } # ac_fn_c_check_member
  2259. ac_configure_args_raw=
  2260. for ac_arg
  2261. do
  2262. case $ac_arg in
  2263. *\'*)
  2264. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2265. esac
  2266. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2267. done
  2268. case $ac_configure_args_raw in
  2269. *$as_nl*)
  2270. ac_safe_unquote= ;;
  2271. *)
  2272. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2273. ac_unsafe_a="$ac_unsafe_z#~"
  2274. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2275. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2276. esac
  2277. cat >config.log <<_ACEOF
  2278. This file contains any messages produced by compilers while
  2279. running configure, to aid debugging if configure makes a mistake.
  2280. It was created by $as_me, which was
  2281. generated by GNU Autoconf 2.71. Invocation command line was
  2282. $ $0$ac_configure_args_raw
  2283. _ACEOF
  2284. exec 5>>config.log
  2285. {
  2286. cat <<_ASUNAME
  2287. ## --------- ##
  2288. ## Platform. ##
  2289. ## --------- ##
  2290. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2291. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2292. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2293. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2294. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2295. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2296. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2297. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2298. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2299. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2300. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2301. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2302. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2303. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2304. _ASUNAME
  2305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2306. for as_dir in $PATH
  2307. do
  2308. IFS=$as_save_IFS
  2309. case $as_dir in #(((
  2310. '') as_dir=./ ;;
  2311. */) ;;
  2312. *) as_dir=$as_dir/ ;;
  2313. esac
  2314. printf "%s\n" "PATH: $as_dir"
  2315. done
  2316. IFS=$as_save_IFS
  2317. } >&5
  2318. cat >&5 <<_ACEOF
  2319. ## ----------- ##
  2320. ## Core tests. ##
  2321. ## ----------- ##
  2322. _ACEOF
  2323. # Keep a trace of the command line.
  2324. # Strip out --no-create and --no-recursion so they do not pile up.
  2325. # Strip out --silent because we don't want to record it for future runs.
  2326. # Also quote any args containing shell meta-characters.
  2327. # Make two passes to allow for proper duplicate-argument suppression.
  2328. ac_configure_args=
  2329. ac_configure_args0=
  2330. ac_configure_args1=
  2331. ac_must_keep_next=false
  2332. for ac_pass in 1 2
  2333. do
  2334. for ac_arg
  2335. do
  2336. case $ac_arg in
  2337. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2338. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2339. | -silent | --silent | --silen | --sile | --sil)
  2340. continue ;;
  2341. *\'*)
  2342. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2343. esac
  2344. case $ac_pass in
  2345. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2346. 2)
  2347. as_fn_append ac_configure_args1 " '$ac_arg'"
  2348. if test $ac_must_keep_next = true; then
  2349. ac_must_keep_next=false # Got value, back to normal.
  2350. else
  2351. case $ac_arg in
  2352. *=* | --config-cache | -C | -disable-* | --disable-* \
  2353. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2354. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2355. | -with-* | --with-* | -without-* | --without-* | --x)
  2356. case "$ac_configure_args0 " in
  2357. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2358. esac
  2359. ;;
  2360. -* ) ac_must_keep_next=true ;;
  2361. esac
  2362. fi
  2363. as_fn_append ac_configure_args " '$ac_arg'"
  2364. ;;
  2365. esac
  2366. done
  2367. done
  2368. { ac_configure_args0=; unset ac_configure_args0;}
  2369. { ac_configure_args1=; unset ac_configure_args1;}
  2370. # When interrupted or exit'd, cleanup temporary files, and complete
  2371. # config.log. We remove comments because anyway the quotes in there
  2372. # would cause problems or look ugly.
  2373. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2374. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2375. trap 'exit_status=$?
  2376. # Sanitize IFS.
  2377. IFS=" "" $as_nl"
  2378. # Save into config.log some information that might help in debugging.
  2379. {
  2380. echo
  2381. printf "%s\n" "## ---------------- ##
  2382. ## Cache variables. ##
  2383. ## ---------------- ##"
  2384. echo
  2385. # The following way of writing the cache mishandles newlines in values,
  2386. (
  2387. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2388. eval ac_val=\$$ac_var
  2389. case $ac_val in #(
  2390. *${as_nl}*)
  2391. case $ac_var in #(
  2392. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2393. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2394. esac
  2395. case $ac_var in #(
  2396. _ | IFS | as_nl) ;; #(
  2397. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2398. *) { eval $ac_var=; unset $ac_var;} ;;
  2399. esac ;;
  2400. esac
  2401. done
  2402. (set) 2>&1 |
  2403. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2404. *${as_nl}ac_space=\ *)
  2405. sed -n \
  2406. "s/'\''/'\''\\\\'\'''\''/g;
  2407. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2408. ;; #(
  2409. *)
  2410. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2411. ;;
  2412. esac |
  2413. sort
  2414. )
  2415. echo
  2416. printf "%s\n" "## ----------------- ##
  2417. ## Output variables. ##
  2418. ## ----------------- ##"
  2419. echo
  2420. for ac_var in $ac_subst_vars
  2421. do
  2422. eval ac_val=\$$ac_var
  2423. case $ac_val in
  2424. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2425. esac
  2426. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2427. done | sort
  2428. echo
  2429. if test -n "$ac_subst_files"; then
  2430. printf "%s\n" "## ------------------- ##
  2431. ## File substitutions. ##
  2432. ## ------------------- ##"
  2433. echo
  2434. for ac_var in $ac_subst_files
  2435. do
  2436. eval ac_val=\$$ac_var
  2437. case $ac_val in
  2438. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2439. esac
  2440. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2441. done | sort
  2442. echo
  2443. fi
  2444. if test -s confdefs.h; then
  2445. printf "%s\n" "## ----------- ##
  2446. ## confdefs.h. ##
  2447. ## ----------- ##"
  2448. echo
  2449. cat confdefs.h
  2450. echo
  2451. fi
  2452. test "$ac_signal" != 0 &&
  2453. printf "%s\n" "$as_me: caught signal $ac_signal"
  2454. printf "%s\n" "$as_me: exit $exit_status"
  2455. } >&5
  2456. rm -f core *.core core.conftest.* &&
  2457. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2458. exit $exit_status
  2459. ' 0
  2460. for ac_signal in 1 2 13 15; do
  2461. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2462. done
  2463. ac_signal=0
  2464. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2465. rm -f -r conftest* confdefs.h
  2466. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2467. # Predefined preprocessor variables.
  2468. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2469. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2470. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2471. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2472. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2473. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2474. # Let the site file select an alternate cache file if it wants to.
  2475. # Prefer an explicitly selected file to automatically selected ones.
  2476. if test -n "$CONFIG_SITE"; then
  2477. ac_site_files="$CONFIG_SITE"
  2478. elif test "x$prefix" != xNONE; then
  2479. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2480. else
  2481. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2482. fi
  2483. for ac_site_file in $ac_site_files
  2484. do
  2485. case $ac_site_file in #(
  2486. */*) :
  2487. ;; #(
  2488. *) :
  2489. ac_site_file=./$ac_site_file ;;
  2490. esac
  2491. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2493. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2494. sed 's/^/| /' "$ac_site_file" >&5
  2495. . "$ac_site_file" \
  2496. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2497. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2498. as_fn_error $? "failed to load site script $ac_site_file
  2499. See \`config.log' for more details" "$LINENO" 5; }
  2500. fi
  2501. done
  2502. if test -r "$cache_file"; then
  2503. # Some versions of bash will fail to source /dev/null (special files
  2504. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2505. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2507. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2508. case $cache_file in
  2509. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2510. *) . "./$cache_file";;
  2511. esac
  2512. fi
  2513. else
  2514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2515. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2516. >$cache_file
  2517. fi
  2518. # Test code for whether the C compiler supports C89 (global declarations)
  2519. ac_c_conftest_c89_globals='
  2520. /* Does the compiler advertise C89 conformance?
  2521. Do not test the value of __STDC__, because some compilers set it to 0
  2522. while being otherwise adequately conformant. */
  2523. #if !defined __STDC__
  2524. # error "Compiler does not advertise C89 conformance"
  2525. #endif
  2526. #include <stddef.h>
  2527. #include <stdarg.h>
  2528. struct stat;
  2529. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2530. struct buf { int x; };
  2531. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2532. static char *e (p, i)
  2533. char **p;
  2534. int i;
  2535. {
  2536. return p[i];
  2537. }
  2538. static char *f (char * (*g) (char **, int), char **p, ...)
  2539. {
  2540. char *s;
  2541. va_list v;
  2542. va_start (v,p);
  2543. s = g (p, va_arg (v,int));
  2544. va_end (v);
  2545. return s;
  2546. }
  2547. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2548. function prototypes and stuff, but not \xHH hex character constants.
  2549. These do not provoke an error unfortunately, instead are silently treated
  2550. as an "x". The following induces an error, until -std is added to get
  2551. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2552. array size at least. It is necessary to write \x00 == 0 to get something
  2553. that is true only with -std. */
  2554. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2555. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2556. inside strings and character constants. */
  2557. #define FOO(x) '\''x'\''
  2558. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2559. int test (int i, double x);
  2560. struct s1 {int (*f) (int a);};
  2561. struct s2 {int (*f) (double a);};
  2562. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2563. int, int);'
  2564. # Test code for whether the C compiler supports C89 (body of main).
  2565. ac_c_conftest_c89_main='
  2566. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2567. '
  2568. # Test code for whether the C compiler supports C99 (global declarations)
  2569. ac_c_conftest_c99_globals='
  2570. // Does the compiler advertise C99 conformance?
  2571. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2572. # error "Compiler does not advertise C99 conformance"
  2573. #endif
  2574. #include <stdbool.h>
  2575. extern int puts (const char *);
  2576. extern int printf (const char *, ...);
  2577. extern int dprintf (int, const char *, ...);
  2578. extern void *malloc (size_t);
  2579. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2580. // dprintf is used instead of fprintf to avoid needing to declare
  2581. // FILE and stderr.
  2582. #define debug(...) dprintf (2, __VA_ARGS__)
  2583. #define showlist(...) puts (#__VA_ARGS__)
  2584. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2585. static void
  2586. test_varargs_macros (void)
  2587. {
  2588. int x = 1234;
  2589. int y = 5678;
  2590. debug ("Flag");
  2591. debug ("X = %d\n", x);
  2592. showlist (The first, second, and third items.);
  2593. report (x>y, "x is %d but y is %d", x, y);
  2594. }
  2595. // Check long long types.
  2596. #define BIG64 18446744073709551615ull
  2597. #define BIG32 4294967295ul
  2598. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2599. #if !BIG_OK
  2600. #error "your preprocessor is broken"
  2601. #endif
  2602. #if BIG_OK
  2603. #else
  2604. #error "your preprocessor is broken"
  2605. #endif
  2606. static long long int bignum = -9223372036854775807LL;
  2607. static unsigned long long int ubignum = BIG64;
  2608. struct incomplete_array
  2609. {
  2610. int datasize;
  2611. double data[];
  2612. };
  2613. struct named_init {
  2614. int number;
  2615. const wchar_t *name;
  2616. double average;
  2617. };
  2618. typedef const char *ccp;
  2619. static inline int
  2620. test_restrict (ccp restrict text)
  2621. {
  2622. // See if C++-style comments work.
  2623. // Iterate through items via the restricted pointer.
  2624. // Also check for declarations in for loops.
  2625. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2626. continue;
  2627. return 0;
  2628. }
  2629. // Check varargs and va_copy.
  2630. static bool
  2631. test_varargs (const char *format, ...)
  2632. {
  2633. va_list args;
  2634. va_start (args, format);
  2635. va_list args_copy;
  2636. va_copy (args_copy, args);
  2637. const char *str = "";
  2638. int number = 0;
  2639. float fnumber = 0;
  2640. while (*format)
  2641. {
  2642. switch (*format++)
  2643. {
  2644. case '\''s'\'': // string
  2645. str = va_arg (args_copy, const char *);
  2646. break;
  2647. case '\''d'\'': // int
  2648. number = va_arg (args_copy, int);
  2649. break;
  2650. case '\''f'\'': // float
  2651. fnumber = va_arg (args_copy, double);
  2652. break;
  2653. default:
  2654. break;
  2655. }
  2656. }
  2657. va_end (args_copy);
  2658. va_end (args);
  2659. return *str && number && fnumber;
  2660. }
  2661. '
  2662. # Test code for whether the C compiler supports C99 (body of main).
  2663. ac_c_conftest_c99_main='
  2664. // Check bool.
  2665. _Bool success = false;
  2666. success |= (argc != 0);
  2667. // Check restrict.
  2668. if (test_restrict ("String literal") == 0)
  2669. success = true;
  2670. char *restrict newvar = "Another string";
  2671. // Check varargs.
  2672. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2673. test_varargs_macros ();
  2674. // Check flexible array members.
  2675. struct incomplete_array *ia =
  2676. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2677. ia->datasize = 10;
  2678. for (int i = 0; i < ia->datasize; ++i)
  2679. ia->data[i] = i * 1.234;
  2680. // Check named initializers.
  2681. struct named_init ni = {
  2682. .number = 34,
  2683. .name = L"Test wide string",
  2684. .average = 543.34343,
  2685. };
  2686. ni.number = 58;
  2687. int dynamic_array[ni.number];
  2688. dynamic_array[0] = argv[0][0];
  2689. dynamic_array[ni.number - 1] = 543;
  2690. // work around unused variable warnings
  2691. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2692. || dynamic_array[ni.number - 1] != 543);
  2693. '
  2694. # Test code for whether the C compiler supports C11 (global declarations)
  2695. ac_c_conftest_c11_globals='
  2696. // Does the compiler advertise C11 conformance?
  2697. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2698. # error "Compiler does not advertise C11 conformance"
  2699. #endif
  2700. // Check _Alignas.
  2701. char _Alignas (double) aligned_as_double;
  2702. char _Alignas (0) no_special_alignment;
  2703. extern char aligned_as_int;
  2704. char _Alignas (0) _Alignas (int) aligned_as_int;
  2705. // Check _Alignof.
  2706. enum
  2707. {
  2708. int_alignment = _Alignof (int),
  2709. int_array_alignment = _Alignof (int[100]),
  2710. char_alignment = _Alignof (char)
  2711. };
  2712. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2713. // Check _Noreturn.
  2714. int _Noreturn does_not_return (void) { for (;;) continue; }
  2715. // Check _Static_assert.
  2716. struct test_static_assert
  2717. {
  2718. int x;
  2719. _Static_assert (sizeof (int) <= sizeof (long int),
  2720. "_Static_assert does not work in struct");
  2721. long int y;
  2722. };
  2723. // Check UTF-8 literals.
  2724. #define u8 syntax error!
  2725. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2726. // Check duplicate typedefs.
  2727. typedef long *long_ptr;
  2728. typedef long int *long_ptr;
  2729. typedef long_ptr long_ptr;
  2730. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2731. struct anonymous
  2732. {
  2733. union {
  2734. struct { int i; int j; };
  2735. struct { int k; long int l; } w;
  2736. };
  2737. int m;
  2738. } v1;
  2739. '
  2740. # Test code for whether the C compiler supports C11 (body of main).
  2741. ac_c_conftest_c11_main='
  2742. _Static_assert ((offsetof (struct anonymous, i)
  2743. == offsetof (struct anonymous, w.k)),
  2744. "Anonymous union alignment botch");
  2745. v1.i = 2;
  2746. v1.w.k = 5;
  2747. ok |= v1.i != 5;
  2748. '
  2749. # Test code for whether the C compiler supports C11 (complete).
  2750. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2751. ${ac_c_conftest_c99_globals}
  2752. ${ac_c_conftest_c11_globals}
  2753. int
  2754. main (int argc, char **argv)
  2755. {
  2756. int ok = 0;
  2757. ${ac_c_conftest_c89_main}
  2758. ${ac_c_conftest_c99_main}
  2759. ${ac_c_conftest_c11_main}
  2760. return ok;
  2761. }
  2762. "
  2763. # Test code for whether the C compiler supports C99 (complete).
  2764. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2765. ${ac_c_conftest_c99_globals}
  2766. int
  2767. main (int argc, char **argv)
  2768. {
  2769. int ok = 0;
  2770. ${ac_c_conftest_c89_main}
  2771. ${ac_c_conftest_c99_main}
  2772. return ok;
  2773. }
  2774. "
  2775. # Test code for whether the C compiler supports C89 (complete).
  2776. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2777. int
  2778. main (int argc, char **argv)
  2779. {
  2780. int ok = 0;
  2781. ${ac_c_conftest_c89_main}
  2782. return ok;
  2783. }
  2784. "
  2785. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2786. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2787. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2788. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2789. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2790. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2791. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2792. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2793. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2794. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2795. ac_cxx_conftest_cxx98_globals='
  2796. // Does the compiler advertise C++98 conformance?
  2797. #if !defined __cplusplus || __cplusplus < 199711L
  2798. # error "Compiler does not advertise C++98 conformance"
  2799. #endif
  2800. // These inclusions are to reject old compilers that
  2801. // lack the unsuffixed header files.
  2802. #include <cstdlib>
  2803. #include <exception>
  2804. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2805. extern void assert (int);
  2806. namespace std {
  2807. extern int strcmp (const char *, const char *);
  2808. }
  2809. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2810. using std::exception;
  2811. using std::strcmp;
  2812. namespace {
  2813. void test_exception_syntax()
  2814. {
  2815. try {
  2816. throw "test";
  2817. } catch (const char *s) {
  2818. // Extra parentheses suppress a warning when building autoconf itself,
  2819. // due to lint rules shared with more typical C programs.
  2820. assert (!(strcmp) (s, "test"));
  2821. }
  2822. }
  2823. template <typename T> struct test_template
  2824. {
  2825. T const val;
  2826. explicit test_template(T t) : val(t) {}
  2827. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2828. };
  2829. } // anonymous namespace
  2830. '
  2831. # Test code for whether the C++ compiler supports C++98 (body of main)
  2832. ac_cxx_conftest_cxx98_main='
  2833. assert (argc);
  2834. assert (! argv[0]);
  2835. {
  2836. test_exception_syntax ();
  2837. test_template<double> tt (2.0);
  2838. assert (tt.add (4) == 6.0);
  2839. assert (true && !false);
  2840. }
  2841. '
  2842. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2843. ac_cxx_conftest_cxx11_globals='
  2844. // Does the compiler advertise C++ 2011 conformance?
  2845. #if !defined __cplusplus || __cplusplus < 201103L
  2846. # error "Compiler does not advertise C++11 conformance"
  2847. #endif
  2848. namespace cxx11test
  2849. {
  2850. constexpr int get_val() { return 20; }
  2851. struct testinit
  2852. {
  2853. int i;
  2854. double d;
  2855. };
  2856. class delegate
  2857. {
  2858. public:
  2859. delegate(int n) : n(n) {}
  2860. delegate(): delegate(2354) {}
  2861. virtual int getval() { return this->n; };
  2862. protected:
  2863. int n;
  2864. };
  2865. class overridden : public delegate
  2866. {
  2867. public:
  2868. overridden(int n): delegate(n) {}
  2869. virtual int getval() override final { return this->n * 2; }
  2870. };
  2871. class nocopy
  2872. {
  2873. public:
  2874. nocopy(int i): i(i) {}
  2875. nocopy() = default;
  2876. nocopy(const nocopy&) = delete;
  2877. nocopy & operator=(const nocopy&) = delete;
  2878. private:
  2879. int i;
  2880. };
  2881. // for testing lambda expressions
  2882. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2883. {
  2884. return f(v);
  2885. }
  2886. // for testing variadic templates and trailing return types
  2887. template <typename V> auto sum(V first) -> V
  2888. {
  2889. return first;
  2890. }
  2891. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2892. {
  2893. return first + sum(rest...);
  2894. }
  2895. }
  2896. '
  2897. # Test code for whether the C++ compiler supports C++11 (body of main)
  2898. ac_cxx_conftest_cxx11_main='
  2899. {
  2900. // Test auto and decltype
  2901. auto a1 = 6538;
  2902. auto a2 = 48573953.4;
  2903. auto a3 = "String literal";
  2904. int total = 0;
  2905. for (auto i = a3; *i; ++i) { total += *i; }
  2906. decltype(a2) a4 = 34895.034;
  2907. }
  2908. {
  2909. // Test constexpr
  2910. short sa[cxx11test::get_val()] = { 0 };
  2911. }
  2912. {
  2913. // Test initializer lists
  2914. cxx11test::testinit il = { 4323, 435234.23544 };
  2915. }
  2916. {
  2917. // Test range-based for
  2918. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2919. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2920. for (auto &x : array) { x += 23; }
  2921. }
  2922. {
  2923. // Test lambda expressions
  2924. using cxx11test::eval;
  2925. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2926. double d = 2.0;
  2927. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2928. assert (d == 5.0);
  2929. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2930. assert (d == 5.0);
  2931. }
  2932. {
  2933. // Test use of variadic templates
  2934. using cxx11test::sum;
  2935. auto a = sum(1);
  2936. auto b = sum(1, 2);
  2937. auto c = sum(1.0, 2.0, 3.0);
  2938. }
  2939. {
  2940. // Test constructor delegation
  2941. cxx11test::delegate d1;
  2942. cxx11test::delegate d2();
  2943. cxx11test::delegate d3(45);
  2944. }
  2945. {
  2946. // Test override and final
  2947. cxx11test::overridden o1(55464);
  2948. }
  2949. {
  2950. // Test nullptr
  2951. char *c = nullptr;
  2952. }
  2953. {
  2954. // Test template brackets
  2955. test_template<::test_template<int>> v(test_template<int>(12));
  2956. }
  2957. {
  2958. // Unicode literals
  2959. char const *utf8 = u8"UTF-8 string \u2500";
  2960. char16_t const *utf16 = u"UTF-8 string \u2500";
  2961. char32_t const *utf32 = U"UTF-32 string \u2500";
  2962. }
  2963. '
  2964. # Test code for whether the C compiler supports C++11 (complete).
  2965. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2966. ${ac_cxx_conftest_cxx11_globals}
  2967. int
  2968. main (int argc, char **argv)
  2969. {
  2970. int ok = 0;
  2971. ${ac_cxx_conftest_cxx98_main}
  2972. ${ac_cxx_conftest_cxx11_main}
  2973. return ok;
  2974. }
  2975. "
  2976. # Test code for whether the C compiler supports C++98 (complete).
  2977. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2978. int
  2979. main (int argc, char **argv)
  2980. {
  2981. int ok = 0;
  2982. ${ac_cxx_conftest_cxx98_main}
  2983. return ok;
  2984. }
  2985. "
  2986. # Auxiliary files required by this configure script.
  2987. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2988. # Locations in which to look for auxiliary files.
  2989. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2990. # Search for a directory containing all of the required auxiliary files,
  2991. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2992. # If we don't find one directory that contains all the files we need,
  2993. # we report the set of missing files from the *first* directory in
  2994. # $ac_aux_dir_candidates and give up.
  2995. ac_missing_aux_files=""
  2996. ac_first_candidate=:
  2997. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2999. as_found=false
  3000. for as_dir in $ac_aux_dir_candidates
  3001. do
  3002. IFS=$as_save_IFS
  3003. case $as_dir in #(((
  3004. '') as_dir=./ ;;
  3005. */) ;;
  3006. *) as_dir=$as_dir/ ;;
  3007. esac
  3008. as_found=:
  3009. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3010. ac_aux_dir_found=yes
  3011. ac_install_sh=
  3012. for ac_aux in $ac_aux_files
  3013. do
  3014. # As a special case, if "install-sh" is required, that requirement
  3015. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3016. # and $ac_install_sh is set appropriately for whichever one is found.
  3017. if test x"$ac_aux" = x"install-sh"
  3018. then
  3019. if test -f "${as_dir}install-sh"; then
  3020. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3021. ac_install_sh="${as_dir}install-sh -c"
  3022. elif test -f "${as_dir}install.sh"; then
  3023. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3024. ac_install_sh="${as_dir}install.sh -c"
  3025. elif test -f "${as_dir}shtool"; then
  3026. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3027. ac_install_sh="${as_dir}shtool install -c"
  3028. else
  3029. ac_aux_dir_found=no
  3030. if $ac_first_candidate; then
  3031. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3032. else
  3033. break
  3034. fi
  3035. fi
  3036. else
  3037. if test -f "${as_dir}${ac_aux}"; then
  3038. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3039. else
  3040. ac_aux_dir_found=no
  3041. if $ac_first_candidate; then
  3042. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3043. else
  3044. break
  3045. fi
  3046. fi
  3047. fi
  3048. done
  3049. if test "$ac_aux_dir_found" = yes; then
  3050. ac_aux_dir="$as_dir"
  3051. break
  3052. fi
  3053. ac_first_candidate=false
  3054. as_found=false
  3055. done
  3056. IFS=$as_save_IFS
  3057. if $as_found
  3058. then :
  3059. else $as_nop
  3060. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3061. fi
  3062. # These three variables are undocumented and unsupported,
  3063. # and are intended to be withdrawn in a future Autoconf release.
  3064. # They can cause serious problems if a builder's source tree is in a directory
  3065. # whose full name contains unusual characters.
  3066. if test -f "${ac_aux_dir}config.guess"; then
  3067. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3068. fi
  3069. if test -f "${ac_aux_dir}config.sub"; then
  3070. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3071. fi
  3072. if test -f "$ac_aux_dir/configure"; then
  3073. ac_configure="$SHELL ${ac_aux_dir}configure"
  3074. fi
  3075. # Check that the precious variables saved in the cache have kept the same
  3076. # value.
  3077. ac_cache_corrupted=false
  3078. for ac_var in $ac_precious_vars; do
  3079. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3080. eval ac_new_set=\$ac_env_${ac_var}_set
  3081. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3082. eval ac_new_val=\$ac_env_${ac_var}_value
  3083. case $ac_old_set,$ac_new_set in
  3084. set,)
  3085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3086. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3087. ac_cache_corrupted=: ;;
  3088. ,set)
  3089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3090. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3091. ac_cache_corrupted=: ;;
  3092. ,);;
  3093. *)
  3094. if test "x$ac_old_val" != "x$ac_new_val"; then
  3095. # differences in whitespace do not lead to failure.
  3096. ac_old_val_w=`echo x $ac_old_val`
  3097. ac_new_val_w=`echo x $ac_new_val`
  3098. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3100. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3101. ac_cache_corrupted=:
  3102. else
  3103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3104. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3105. eval $ac_var=\$ac_old_val
  3106. fi
  3107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3108. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3110. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3111. fi;;
  3112. esac
  3113. # Pass precious variables to config.status.
  3114. if test "$ac_new_set" = set; then
  3115. case $ac_new_val in
  3116. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3117. *) ac_arg=$ac_var=$ac_new_val ;;
  3118. esac
  3119. case " $ac_configure_args " in
  3120. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3121. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3122. esac
  3123. fi
  3124. done
  3125. if $ac_cache_corrupted; then
  3126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3127. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3129. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3130. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3131. and start over" "$LINENO" 5
  3132. fi
  3133. ## -------------------- ##
  3134. ## Main body of script. ##
  3135. ## -------------------- ##
  3136. ac_ext=c
  3137. ac_cpp='$CPP $CPPFLAGS'
  3138. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3139. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3140. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3141. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3142. orig_CFLAGS="$CFLAGS"
  3143. # See docs/release_checklist.md
  3144. SDL_MAJOR_VERSION=2
  3145. SDL_MINOR_VERSION=25
  3146. SDL_MICRO_VERSION=0
  3147. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3148. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3149. case "$SDL_MINOR_VERSION" in #(
  3150. *[02468]) :
  3151. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3152. *) :
  3153. SDL_INTERFACE_AGE=0 ;; #(
  3154. *) :
  3155. ;;
  3156. esac
  3157. # libtool versioning
  3158. case `pwd` in
  3159. *\ * | *\ *)
  3160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3161. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3162. esac
  3163. macro_version='2.4.6'
  3164. macro_revision='2.4.6'
  3165. ltmain=$ac_aux_dir/ltmain.sh
  3166. # Make sure we can run config.sub.
  3167. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3168. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3170. printf %s "checking build system type... " >&6; }
  3171. if test ${ac_cv_build+y}
  3172. then :
  3173. printf %s "(cached) " >&6
  3174. else $as_nop
  3175. ac_build_alias=$build_alias
  3176. test "x$ac_build_alias" = x &&
  3177. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3178. test "x$ac_build_alias" = x &&
  3179. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3180. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3181. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3182. fi
  3183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3184. printf "%s\n" "$ac_cv_build" >&6; }
  3185. case $ac_cv_build in
  3186. *-*-*) ;;
  3187. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3188. esac
  3189. build=$ac_cv_build
  3190. ac_save_IFS=$IFS; IFS='-'
  3191. set x $ac_cv_build
  3192. shift
  3193. build_cpu=$1
  3194. build_vendor=$2
  3195. shift; shift
  3196. # Remember, the first character of IFS is used to create $*,
  3197. # except with old shells:
  3198. build_os=$*
  3199. IFS=$ac_save_IFS
  3200. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3202. printf %s "checking host system type... " >&6; }
  3203. if test ${ac_cv_host+y}
  3204. then :
  3205. printf %s "(cached) " >&6
  3206. else $as_nop
  3207. if test "x$host_alias" = x; then
  3208. ac_cv_host=$ac_cv_build
  3209. else
  3210. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3211. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3212. fi
  3213. fi
  3214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3215. printf "%s\n" "$ac_cv_host" >&6; }
  3216. case $ac_cv_host in
  3217. *-*-*) ;;
  3218. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3219. esac
  3220. host=$ac_cv_host
  3221. ac_save_IFS=$IFS; IFS='-'
  3222. set x $ac_cv_host
  3223. shift
  3224. host_cpu=$1
  3225. host_vendor=$2
  3226. shift; shift
  3227. # Remember, the first character of IFS is used to create $*,
  3228. # except with old shells:
  3229. host_os=$*
  3230. IFS=$ac_save_IFS
  3231. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3232. # Backslashify metacharacters that are still active within
  3233. # double-quoted strings.
  3234. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3235. # Same as above, but do not quote variable references.
  3236. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3237. # Sed substitution to delay expansion of an escaped shell variable in a
  3238. # double_quote_subst'ed string.
  3239. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3240. # Sed substitution to delay expansion of an escaped single quote.
  3241. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3242. # Sed substitution to avoid accidental globbing in evaled expressions
  3243. no_glob_subst='s/\*/\\\*/g'
  3244. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3245. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3246. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3248. printf %s "checking how to print strings... " >&6; }
  3249. # Test print first, because it will be a builtin if present.
  3250. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3251. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3252. ECHO='print -r --'
  3253. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3254. ECHO='printf %s\n'
  3255. else
  3256. # Use this function as a fallback that always works.
  3257. func_fallback_echo ()
  3258. {
  3259. eval 'cat <<_LTECHO_EOF
  3260. $1
  3261. _LTECHO_EOF'
  3262. }
  3263. ECHO='func_fallback_echo'
  3264. fi
  3265. # func_echo_all arg...
  3266. # Invoke $ECHO with all args, space-separated.
  3267. func_echo_all ()
  3268. {
  3269. $ECHO ""
  3270. }
  3271. case $ECHO in
  3272. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3273. printf "%s\n" "printf" >&6; } ;;
  3274. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3275. printf "%s\n" "print -r" >&6; } ;;
  3276. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3277. printf "%s\n" "cat" >&6; } ;;
  3278. esac
  3279. ac_ext=c
  3280. ac_cpp='$CPP $CPPFLAGS'
  3281. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3282. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3283. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3284. if test -n "$ac_tool_prefix"; then
  3285. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3286. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3288. printf %s "checking for $ac_word... " >&6; }
  3289. if test ${ac_cv_prog_CC+y}
  3290. then :
  3291. printf %s "(cached) " >&6
  3292. else $as_nop
  3293. if test -n "$CC"; then
  3294. ac_cv_prog_CC="$CC" # Let the user override the test.
  3295. else
  3296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3297. for as_dir in $PATH
  3298. do
  3299. IFS=$as_save_IFS
  3300. case $as_dir in #(((
  3301. '') as_dir=./ ;;
  3302. */) ;;
  3303. *) as_dir=$as_dir/ ;;
  3304. esac
  3305. for ac_exec_ext in '' $ac_executable_extensions; do
  3306. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3307. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3308. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3309. break 2
  3310. fi
  3311. done
  3312. done
  3313. IFS=$as_save_IFS
  3314. fi
  3315. fi
  3316. CC=$ac_cv_prog_CC
  3317. if test -n "$CC"; then
  3318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3319. printf "%s\n" "$CC" >&6; }
  3320. else
  3321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3322. printf "%s\n" "no" >&6; }
  3323. fi
  3324. fi
  3325. if test -z "$ac_cv_prog_CC"; then
  3326. ac_ct_CC=$CC
  3327. # Extract the first word of "gcc", so it can be a program name with args.
  3328. set dummy gcc; ac_word=$2
  3329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3330. printf %s "checking for $ac_word... " >&6; }
  3331. if test ${ac_cv_prog_ac_ct_CC+y}
  3332. then :
  3333. printf %s "(cached) " >&6
  3334. else $as_nop
  3335. if test -n "$ac_ct_CC"; then
  3336. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3337. else
  3338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3339. for as_dir in $PATH
  3340. do
  3341. IFS=$as_save_IFS
  3342. case $as_dir in #(((
  3343. '') as_dir=./ ;;
  3344. */) ;;
  3345. *) as_dir=$as_dir/ ;;
  3346. esac
  3347. for ac_exec_ext in '' $ac_executable_extensions; do
  3348. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3349. ac_cv_prog_ac_ct_CC="gcc"
  3350. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3351. break 2
  3352. fi
  3353. done
  3354. done
  3355. IFS=$as_save_IFS
  3356. fi
  3357. fi
  3358. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3359. if test -n "$ac_ct_CC"; then
  3360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3361. printf "%s\n" "$ac_ct_CC" >&6; }
  3362. else
  3363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3364. printf "%s\n" "no" >&6; }
  3365. fi
  3366. if test "x$ac_ct_CC" = x; then
  3367. CC=""
  3368. else
  3369. case $cross_compiling:$ac_tool_warned in
  3370. yes:)
  3371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3372. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3373. ac_tool_warned=yes ;;
  3374. esac
  3375. CC=$ac_ct_CC
  3376. fi
  3377. else
  3378. CC="$ac_cv_prog_CC"
  3379. fi
  3380. if test -z "$CC"; then
  3381. if test -n "$ac_tool_prefix"; then
  3382. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3383. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3385. printf %s "checking for $ac_word... " >&6; }
  3386. if test ${ac_cv_prog_CC+y}
  3387. then :
  3388. printf %s "(cached) " >&6
  3389. else $as_nop
  3390. if test -n "$CC"; then
  3391. ac_cv_prog_CC="$CC" # Let the user override the test.
  3392. else
  3393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3394. for as_dir in $PATH
  3395. do
  3396. IFS=$as_save_IFS
  3397. case $as_dir in #(((
  3398. '') as_dir=./ ;;
  3399. */) ;;
  3400. *) as_dir=$as_dir/ ;;
  3401. esac
  3402. for ac_exec_ext in '' $ac_executable_extensions; do
  3403. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3404. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3405. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3406. break 2
  3407. fi
  3408. done
  3409. done
  3410. IFS=$as_save_IFS
  3411. fi
  3412. fi
  3413. CC=$ac_cv_prog_CC
  3414. if test -n "$CC"; then
  3415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3416. printf "%s\n" "$CC" >&6; }
  3417. else
  3418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3419. printf "%s\n" "no" >&6; }
  3420. fi
  3421. fi
  3422. fi
  3423. if test -z "$CC"; then
  3424. # Extract the first word of "cc", so it can be a program name with args.
  3425. set dummy cc; ac_word=$2
  3426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3427. printf %s "checking for $ac_word... " >&6; }
  3428. if test ${ac_cv_prog_CC+y}
  3429. then :
  3430. printf %s "(cached) " >&6
  3431. else $as_nop
  3432. if test -n "$CC"; then
  3433. ac_cv_prog_CC="$CC" # Let the user override the test.
  3434. else
  3435. ac_prog_rejected=no
  3436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3437. for as_dir in $PATH
  3438. do
  3439. IFS=$as_save_IFS
  3440. case $as_dir in #(((
  3441. '') as_dir=./ ;;
  3442. */) ;;
  3443. *) as_dir=$as_dir/ ;;
  3444. esac
  3445. for ac_exec_ext in '' $ac_executable_extensions; do
  3446. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3447. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3448. ac_prog_rejected=yes
  3449. continue
  3450. fi
  3451. ac_cv_prog_CC="cc"
  3452. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3453. break 2
  3454. fi
  3455. done
  3456. done
  3457. IFS=$as_save_IFS
  3458. if test $ac_prog_rejected = yes; then
  3459. # We found a bogon in the path, so make sure we never use it.
  3460. set dummy $ac_cv_prog_CC
  3461. shift
  3462. if test $# != 0; then
  3463. # We chose a different compiler from the bogus one.
  3464. # However, it has the same basename, so the bogon will be chosen
  3465. # first if we set CC to just the basename; use the full file name.
  3466. shift
  3467. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3468. fi
  3469. fi
  3470. fi
  3471. fi
  3472. CC=$ac_cv_prog_CC
  3473. if test -n "$CC"; then
  3474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3475. printf "%s\n" "$CC" >&6; }
  3476. else
  3477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3478. printf "%s\n" "no" >&6; }
  3479. fi
  3480. fi
  3481. if test -z "$CC"; then
  3482. if test -n "$ac_tool_prefix"; then
  3483. for ac_prog in cl.exe
  3484. do
  3485. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3486. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3488. printf %s "checking for $ac_word... " >&6; }
  3489. if test ${ac_cv_prog_CC+y}
  3490. then :
  3491. printf %s "(cached) " >&6
  3492. else $as_nop
  3493. if test -n "$CC"; then
  3494. ac_cv_prog_CC="$CC" # Let the user override the test.
  3495. else
  3496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3497. for as_dir in $PATH
  3498. do
  3499. IFS=$as_save_IFS
  3500. case $as_dir in #(((
  3501. '') as_dir=./ ;;
  3502. */) ;;
  3503. *) as_dir=$as_dir/ ;;
  3504. esac
  3505. for ac_exec_ext in '' $ac_executable_extensions; do
  3506. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3507. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3508. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3509. break 2
  3510. fi
  3511. done
  3512. done
  3513. IFS=$as_save_IFS
  3514. fi
  3515. fi
  3516. CC=$ac_cv_prog_CC
  3517. if test -n "$CC"; then
  3518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3519. printf "%s\n" "$CC" >&6; }
  3520. else
  3521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3522. printf "%s\n" "no" >&6; }
  3523. fi
  3524. test -n "$CC" && break
  3525. done
  3526. fi
  3527. if test -z "$CC"; then
  3528. ac_ct_CC=$CC
  3529. for ac_prog in cl.exe
  3530. do
  3531. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3532. set dummy $ac_prog; ac_word=$2
  3533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3534. printf %s "checking for $ac_word... " >&6; }
  3535. if test ${ac_cv_prog_ac_ct_CC+y}
  3536. then :
  3537. printf %s "(cached) " >&6
  3538. else $as_nop
  3539. if test -n "$ac_ct_CC"; then
  3540. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3541. else
  3542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3543. for as_dir in $PATH
  3544. do
  3545. IFS=$as_save_IFS
  3546. case $as_dir in #(((
  3547. '') as_dir=./ ;;
  3548. */) ;;
  3549. *) as_dir=$as_dir/ ;;
  3550. esac
  3551. for ac_exec_ext in '' $ac_executable_extensions; do
  3552. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3553. ac_cv_prog_ac_ct_CC="$ac_prog"
  3554. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3555. break 2
  3556. fi
  3557. done
  3558. done
  3559. IFS=$as_save_IFS
  3560. fi
  3561. fi
  3562. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3563. if test -n "$ac_ct_CC"; then
  3564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3565. printf "%s\n" "$ac_ct_CC" >&6; }
  3566. else
  3567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3568. printf "%s\n" "no" >&6; }
  3569. fi
  3570. test -n "$ac_ct_CC" && break
  3571. done
  3572. if test "x$ac_ct_CC" = x; then
  3573. CC=""
  3574. else
  3575. case $cross_compiling:$ac_tool_warned in
  3576. yes:)
  3577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3578. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3579. ac_tool_warned=yes ;;
  3580. esac
  3581. CC=$ac_ct_CC
  3582. fi
  3583. fi
  3584. fi
  3585. if test -z "$CC"; then
  3586. if test -n "$ac_tool_prefix"; then
  3587. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3588. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3590. printf %s "checking for $ac_word... " >&6; }
  3591. if test ${ac_cv_prog_CC+y}
  3592. then :
  3593. printf %s "(cached) " >&6
  3594. else $as_nop
  3595. if test -n "$CC"; then
  3596. ac_cv_prog_CC="$CC" # Let the user override the test.
  3597. else
  3598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3599. for as_dir in $PATH
  3600. do
  3601. IFS=$as_save_IFS
  3602. case $as_dir in #(((
  3603. '') as_dir=./ ;;
  3604. */) ;;
  3605. *) as_dir=$as_dir/ ;;
  3606. esac
  3607. for ac_exec_ext in '' $ac_executable_extensions; do
  3608. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3609. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3610. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3611. break 2
  3612. fi
  3613. done
  3614. done
  3615. IFS=$as_save_IFS
  3616. fi
  3617. fi
  3618. CC=$ac_cv_prog_CC
  3619. if test -n "$CC"; then
  3620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3621. printf "%s\n" "$CC" >&6; }
  3622. else
  3623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3624. printf "%s\n" "no" >&6; }
  3625. fi
  3626. fi
  3627. if test -z "$ac_cv_prog_CC"; then
  3628. ac_ct_CC=$CC
  3629. # Extract the first word of "clang", so it can be a program name with args.
  3630. set dummy clang; ac_word=$2
  3631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3632. printf %s "checking for $ac_word... " >&6; }
  3633. if test ${ac_cv_prog_ac_ct_CC+y}
  3634. then :
  3635. printf %s "(cached) " >&6
  3636. else $as_nop
  3637. if test -n "$ac_ct_CC"; then
  3638. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3639. else
  3640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3641. for as_dir in $PATH
  3642. do
  3643. IFS=$as_save_IFS
  3644. case $as_dir in #(((
  3645. '') as_dir=./ ;;
  3646. */) ;;
  3647. *) as_dir=$as_dir/ ;;
  3648. esac
  3649. for ac_exec_ext in '' $ac_executable_extensions; do
  3650. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3651. ac_cv_prog_ac_ct_CC="clang"
  3652. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3653. break 2
  3654. fi
  3655. done
  3656. done
  3657. IFS=$as_save_IFS
  3658. fi
  3659. fi
  3660. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3661. if test -n "$ac_ct_CC"; then
  3662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3663. printf "%s\n" "$ac_ct_CC" >&6; }
  3664. else
  3665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3666. printf "%s\n" "no" >&6; }
  3667. fi
  3668. if test "x$ac_ct_CC" = x; then
  3669. CC=""
  3670. else
  3671. case $cross_compiling:$ac_tool_warned in
  3672. yes:)
  3673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3674. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3675. ac_tool_warned=yes ;;
  3676. esac
  3677. CC=$ac_ct_CC
  3678. fi
  3679. else
  3680. CC="$ac_cv_prog_CC"
  3681. fi
  3682. fi
  3683. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3684. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3685. as_fn_error $? "no acceptable C compiler found in \$PATH
  3686. See \`config.log' for more details" "$LINENO" 5; }
  3687. # Provide some information about the compiler.
  3688. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3689. set X $ac_compile
  3690. ac_compiler=$2
  3691. for ac_option in --version -v -V -qversion -version; do
  3692. { { ac_try="$ac_compiler $ac_option >&5"
  3693. case "(($ac_try" in
  3694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3695. *) ac_try_echo=$ac_try;;
  3696. esac
  3697. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3698. printf "%s\n" "$ac_try_echo"; } >&5
  3699. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3700. ac_status=$?
  3701. if test -s conftest.err; then
  3702. sed '10a\
  3703. ... rest of stderr output deleted ...
  3704. 10q' conftest.err >conftest.er1
  3705. cat conftest.er1 >&5
  3706. fi
  3707. rm -f conftest.er1 conftest.err
  3708. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3709. test $ac_status = 0; }
  3710. done
  3711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3712. /* end confdefs.h. */
  3713. int
  3714. main (void)
  3715. {
  3716. ;
  3717. return 0;
  3718. }
  3719. _ACEOF
  3720. ac_clean_files_save=$ac_clean_files
  3721. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3722. # Try to create an executable without -o first, disregard a.out.
  3723. # It will help us diagnose broken compilers, and finding out an intuition
  3724. # of exeext.
  3725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3726. printf %s "checking whether the C compiler works... " >&6; }
  3727. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3728. # The possible output files:
  3729. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3730. ac_rmfiles=
  3731. for ac_file in $ac_files
  3732. do
  3733. case $ac_file in
  3734. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3735. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3736. esac
  3737. done
  3738. rm -f $ac_rmfiles
  3739. if { { ac_try="$ac_link_default"
  3740. case "(($ac_try" in
  3741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3742. *) ac_try_echo=$ac_try;;
  3743. esac
  3744. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3745. printf "%s\n" "$ac_try_echo"; } >&5
  3746. (eval "$ac_link_default") 2>&5
  3747. ac_status=$?
  3748. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3749. test $ac_status = 0; }
  3750. then :
  3751. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3752. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3753. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3754. # so that the user can short-circuit this test for compilers unknown to
  3755. # Autoconf.
  3756. for ac_file in $ac_files ''
  3757. do
  3758. test -f "$ac_file" || continue
  3759. case $ac_file in
  3760. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3761. ;;
  3762. [ab].out )
  3763. # We found the default executable, but exeext='' is most
  3764. # certainly right.
  3765. break;;
  3766. *.* )
  3767. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3768. then :; else
  3769. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3770. fi
  3771. # We set ac_cv_exeext here because the later test for it is not
  3772. # safe: cross compilers may not add the suffix if given an `-o'
  3773. # argument, so we may need to know it at that point already.
  3774. # Even if this section looks crufty: it has the advantage of
  3775. # actually working.
  3776. break;;
  3777. * )
  3778. break;;
  3779. esac
  3780. done
  3781. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3782. else $as_nop
  3783. ac_file=''
  3784. fi
  3785. if test -z "$ac_file"
  3786. then :
  3787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3788. printf "%s\n" "no" >&6; }
  3789. printf "%s\n" "$as_me: failed program was:" >&5
  3790. sed 's/^/| /' conftest.$ac_ext >&5
  3791. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3792. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3793. as_fn_error 77 "C compiler cannot create executables
  3794. See \`config.log' for more details" "$LINENO" 5; }
  3795. else $as_nop
  3796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3797. printf "%s\n" "yes" >&6; }
  3798. fi
  3799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3800. printf %s "checking for C compiler default output file name... " >&6; }
  3801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3802. printf "%s\n" "$ac_file" >&6; }
  3803. ac_exeext=$ac_cv_exeext
  3804. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3805. ac_clean_files=$ac_clean_files_save
  3806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3807. printf %s "checking for suffix of executables... " >&6; }
  3808. if { { ac_try="$ac_link"
  3809. case "(($ac_try" in
  3810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3811. *) ac_try_echo=$ac_try;;
  3812. esac
  3813. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3814. printf "%s\n" "$ac_try_echo"; } >&5
  3815. (eval "$ac_link") 2>&5
  3816. ac_status=$?
  3817. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3818. test $ac_status = 0; }
  3819. then :
  3820. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3821. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3822. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3823. # `rm'.
  3824. for ac_file in conftest.exe conftest conftest.*; do
  3825. test -f "$ac_file" || continue
  3826. case $ac_file in
  3827. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3828. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3829. break;;
  3830. * ) break;;
  3831. esac
  3832. done
  3833. else $as_nop
  3834. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3835. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3836. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3837. See \`config.log' for more details" "$LINENO" 5; }
  3838. fi
  3839. rm -f conftest conftest$ac_cv_exeext
  3840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3841. printf "%s\n" "$ac_cv_exeext" >&6; }
  3842. rm -f conftest.$ac_ext
  3843. EXEEXT=$ac_cv_exeext
  3844. ac_exeext=$EXEEXT
  3845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3846. /* end confdefs.h. */
  3847. #include <stdio.h>
  3848. int
  3849. main (void)
  3850. {
  3851. FILE *f = fopen ("conftest.out", "w");
  3852. return ferror (f) || fclose (f) != 0;
  3853. ;
  3854. return 0;
  3855. }
  3856. _ACEOF
  3857. ac_clean_files="$ac_clean_files conftest.out"
  3858. # Check that the compiler produces executables we can run. If not, either
  3859. # the compiler is broken, or we cross compile.
  3860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3861. printf %s "checking whether we are cross compiling... " >&6; }
  3862. if test "$cross_compiling" != yes; then
  3863. { { ac_try="$ac_link"
  3864. case "(($ac_try" in
  3865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3866. *) ac_try_echo=$ac_try;;
  3867. esac
  3868. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3869. printf "%s\n" "$ac_try_echo"; } >&5
  3870. (eval "$ac_link") 2>&5
  3871. ac_status=$?
  3872. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3873. test $ac_status = 0; }
  3874. if { ac_try='./conftest$ac_cv_exeext'
  3875. { { case "(($ac_try" in
  3876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3877. *) ac_try_echo=$ac_try;;
  3878. esac
  3879. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3880. printf "%s\n" "$ac_try_echo"; } >&5
  3881. (eval "$ac_try") 2>&5
  3882. ac_status=$?
  3883. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3884. test $ac_status = 0; }; }; then
  3885. cross_compiling=no
  3886. else
  3887. if test "$cross_compiling" = maybe; then
  3888. cross_compiling=yes
  3889. else
  3890. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3891. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3892. as_fn_error 77 "cannot run C compiled programs.
  3893. If you meant to cross compile, use \`--host'.
  3894. See \`config.log' for more details" "$LINENO" 5; }
  3895. fi
  3896. fi
  3897. fi
  3898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3899. printf "%s\n" "$cross_compiling" >&6; }
  3900. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3901. ac_clean_files=$ac_clean_files_save
  3902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3903. printf %s "checking for suffix of object files... " >&6; }
  3904. if test ${ac_cv_objext+y}
  3905. then :
  3906. printf %s "(cached) " >&6
  3907. else $as_nop
  3908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3909. /* end confdefs.h. */
  3910. int
  3911. main (void)
  3912. {
  3913. ;
  3914. return 0;
  3915. }
  3916. _ACEOF
  3917. rm -f conftest.o conftest.obj
  3918. if { { ac_try="$ac_compile"
  3919. case "(($ac_try" in
  3920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3921. *) ac_try_echo=$ac_try;;
  3922. esac
  3923. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3924. printf "%s\n" "$ac_try_echo"; } >&5
  3925. (eval "$ac_compile") 2>&5
  3926. ac_status=$?
  3927. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3928. test $ac_status = 0; }
  3929. then :
  3930. for ac_file in conftest.o conftest.obj conftest.*; do
  3931. test -f "$ac_file" || continue;
  3932. case $ac_file in
  3933. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3934. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3935. break;;
  3936. esac
  3937. done
  3938. else $as_nop
  3939. printf "%s\n" "$as_me: failed program was:" >&5
  3940. sed 's/^/| /' conftest.$ac_ext >&5
  3941. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3942. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3943. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3944. See \`config.log' for more details" "$LINENO" 5; }
  3945. fi
  3946. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3947. fi
  3948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3949. printf "%s\n" "$ac_cv_objext" >&6; }
  3950. OBJEXT=$ac_cv_objext
  3951. ac_objext=$OBJEXT
  3952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3953. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3954. if test ${ac_cv_c_compiler_gnu+y}
  3955. then :
  3956. printf %s "(cached) " >&6
  3957. else $as_nop
  3958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3959. /* end confdefs.h. */
  3960. int
  3961. main (void)
  3962. {
  3963. #ifndef __GNUC__
  3964. choke me
  3965. #endif
  3966. ;
  3967. return 0;
  3968. }
  3969. _ACEOF
  3970. if ac_fn_c_try_compile "$LINENO"
  3971. then :
  3972. ac_compiler_gnu=yes
  3973. else $as_nop
  3974. ac_compiler_gnu=no
  3975. fi
  3976. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3977. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3978. fi
  3979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3980. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3981. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3982. if test $ac_compiler_gnu = yes; then
  3983. GCC=yes
  3984. else
  3985. GCC=
  3986. fi
  3987. ac_test_CFLAGS=${CFLAGS+y}
  3988. ac_save_CFLAGS=$CFLAGS
  3989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3990. printf %s "checking whether $CC accepts -g... " >&6; }
  3991. if test ${ac_cv_prog_cc_g+y}
  3992. then :
  3993. printf %s "(cached) " >&6
  3994. else $as_nop
  3995. ac_save_c_werror_flag=$ac_c_werror_flag
  3996. ac_c_werror_flag=yes
  3997. ac_cv_prog_cc_g=no
  3998. CFLAGS="-g"
  3999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4000. /* end confdefs.h. */
  4001. int
  4002. main (void)
  4003. {
  4004. ;
  4005. return 0;
  4006. }
  4007. _ACEOF
  4008. if ac_fn_c_try_compile "$LINENO"
  4009. then :
  4010. ac_cv_prog_cc_g=yes
  4011. else $as_nop
  4012. CFLAGS=""
  4013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4014. /* end confdefs.h. */
  4015. int
  4016. main (void)
  4017. {
  4018. ;
  4019. return 0;
  4020. }
  4021. _ACEOF
  4022. if ac_fn_c_try_compile "$LINENO"
  4023. then :
  4024. else $as_nop
  4025. ac_c_werror_flag=$ac_save_c_werror_flag
  4026. CFLAGS="-g"
  4027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4028. /* end confdefs.h. */
  4029. int
  4030. main (void)
  4031. {
  4032. ;
  4033. return 0;
  4034. }
  4035. _ACEOF
  4036. if ac_fn_c_try_compile "$LINENO"
  4037. then :
  4038. ac_cv_prog_cc_g=yes
  4039. fi
  4040. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4041. fi
  4042. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4043. fi
  4044. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4045. ac_c_werror_flag=$ac_save_c_werror_flag
  4046. fi
  4047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4048. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4049. if test $ac_test_CFLAGS; then
  4050. CFLAGS=$ac_save_CFLAGS
  4051. elif test $ac_cv_prog_cc_g = yes; then
  4052. if test "$GCC" = yes; then
  4053. CFLAGS="-g -O2"
  4054. else
  4055. CFLAGS="-g"
  4056. fi
  4057. else
  4058. if test "$GCC" = yes; then
  4059. CFLAGS="-O2"
  4060. else
  4061. CFLAGS=
  4062. fi
  4063. fi
  4064. ac_prog_cc_stdc=no
  4065. if test x$ac_prog_cc_stdc = xno
  4066. then :
  4067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4068. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4069. if test ${ac_cv_prog_cc_c11+y}
  4070. then :
  4071. printf %s "(cached) " >&6
  4072. else $as_nop
  4073. ac_cv_prog_cc_c11=no
  4074. ac_save_CC=$CC
  4075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4076. /* end confdefs.h. */
  4077. $ac_c_conftest_c11_program
  4078. _ACEOF
  4079. for ac_arg in '' -std=gnu11
  4080. do
  4081. CC="$ac_save_CC $ac_arg"
  4082. if ac_fn_c_try_compile "$LINENO"
  4083. then :
  4084. ac_cv_prog_cc_c11=$ac_arg
  4085. fi
  4086. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4087. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4088. done
  4089. rm -f conftest.$ac_ext
  4090. CC=$ac_save_CC
  4091. fi
  4092. if test "x$ac_cv_prog_cc_c11" = xno
  4093. then :
  4094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4095. printf "%s\n" "unsupported" >&6; }
  4096. else $as_nop
  4097. if test "x$ac_cv_prog_cc_c11" = x
  4098. then :
  4099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4100. printf "%s\n" "none needed" >&6; }
  4101. else $as_nop
  4102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4103. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4104. CC="$CC $ac_cv_prog_cc_c11"
  4105. fi
  4106. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4107. ac_prog_cc_stdc=c11
  4108. fi
  4109. fi
  4110. if test x$ac_prog_cc_stdc = xno
  4111. then :
  4112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4113. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4114. if test ${ac_cv_prog_cc_c99+y}
  4115. then :
  4116. printf %s "(cached) " >&6
  4117. else $as_nop
  4118. ac_cv_prog_cc_c99=no
  4119. ac_save_CC=$CC
  4120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4121. /* end confdefs.h. */
  4122. $ac_c_conftest_c99_program
  4123. _ACEOF
  4124. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4125. do
  4126. CC="$ac_save_CC $ac_arg"
  4127. if ac_fn_c_try_compile "$LINENO"
  4128. then :
  4129. ac_cv_prog_cc_c99=$ac_arg
  4130. fi
  4131. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4132. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4133. done
  4134. rm -f conftest.$ac_ext
  4135. CC=$ac_save_CC
  4136. fi
  4137. if test "x$ac_cv_prog_cc_c99" = xno
  4138. then :
  4139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4140. printf "%s\n" "unsupported" >&6; }
  4141. else $as_nop
  4142. if test "x$ac_cv_prog_cc_c99" = x
  4143. then :
  4144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4145. printf "%s\n" "none needed" >&6; }
  4146. else $as_nop
  4147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4148. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4149. CC="$CC $ac_cv_prog_cc_c99"
  4150. fi
  4151. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4152. ac_prog_cc_stdc=c99
  4153. fi
  4154. fi
  4155. if test x$ac_prog_cc_stdc = xno
  4156. then :
  4157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4158. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4159. if test ${ac_cv_prog_cc_c89+y}
  4160. then :
  4161. printf %s "(cached) " >&6
  4162. else $as_nop
  4163. ac_cv_prog_cc_c89=no
  4164. ac_save_CC=$CC
  4165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4166. /* end confdefs.h. */
  4167. $ac_c_conftest_c89_program
  4168. _ACEOF
  4169. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4170. do
  4171. CC="$ac_save_CC $ac_arg"
  4172. if ac_fn_c_try_compile "$LINENO"
  4173. then :
  4174. ac_cv_prog_cc_c89=$ac_arg
  4175. fi
  4176. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4177. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4178. done
  4179. rm -f conftest.$ac_ext
  4180. CC=$ac_save_CC
  4181. fi
  4182. if test "x$ac_cv_prog_cc_c89" = xno
  4183. then :
  4184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4185. printf "%s\n" "unsupported" >&6; }
  4186. else $as_nop
  4187. if test "x$ac_cv_prog_cc_c89" = x
  4188. then :
  4189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4190. printf "%s\n" "none needed" >&6; }
  4191. else $as_nop
  4192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4193. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4194. CC="$CC $ac_cv_prog_cc_c89"
  4195. fi
  4196. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4197. ac_prog_cc_stdc=c89
  4198. fi
  4199. fi
  4200. ac_ext=c
  4201. ac_cpp='$CPP $CPPFLAGS'
  4202. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4203. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4204. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4206. printf %s "checking for a sed that does not truncate output... " >&6; }
  4207. if test ${ac_cv_path_SED+y}
  4208. then :
  4209. printf %s "(cached) " >&6
  4210. else $as_nop
  4211. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4212. for ac_i in 1 2 3 4 5 6 7; do
  4213. ac_script="$ac_script$as_nl$ac_script"
  4214. done
  4215. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4216. { ac_script=; unset ac_script;}
  4217. if test -z "$SED"; then
  4218. ac_path_SED_found=false
  4219. # Loop through the user's path and test for each of PROGNAME-LIST
  4220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4221. for as_dir in $PATH
  4222. do
  4223. IFS=$as_save_IFS
  4224. case $as_dir in #(((
  4225. '') as_dir=./ ;;
  4226. */) ;;
  4227. *) as_dir=$as_dir/ ;;
  4228. esac
  4229. for ac_prog in sed gsed
  4230. do
  4231. for ac_exec_ext in '' $ac_executable_extensions; do
  4232. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4233. as_fn_executable_p "$ac_path_SED" || continue
  4234. # Check for GNU ac_path_SED and select it if it is found.
  4235. # Check for GNU $ac_path_SED
  4236. case `"$ac_path_SED" --version 2>&1` in
  4237. *GNU*)
  4238. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4239. *)
  4240. ac_count=0
  4241. printf %s 0123456789 >"conftest.in"
  4242. while :
  4243. do
  4244. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4245. mv "conftest.tmp" "conftest.in"
  4246. cp "conftest.in" "conftest.nl"
  4247. printf "%s\n" '' >> "conftest.nl"
  4248. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4249. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4250. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4251. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4252. # Best one so far, save it but keep looking for a better one
  4253. ac_cv_path_SED="$ac_path_SED"
  4254. ac_path_SED_max=$ac_count
  4255. fi
  4256. # 10*(2^10) chars as input seems more than enough
  4257. test $ac_count -gt 10 && break
  4258. done
  4259. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4260. esac
  4261. $ac_path_SED_found && break 3
  4262. done
  4263. done
  4264. done
  4265. IFS=$as_save_IFS
  4266. if test -z "$ac_cv_path_SED"; then
  4267. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4268. fi
  4269. else
  4270. ac_cv_path_SED=$SED
  4271. fi
  4272. fi
  4273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4274. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4275. SED="$ac_cv_path_SED"
  4276. rm -f conftest.sed
  4277. test -z "$SED" && SED=sed
  4278. Xsed="$SED -e 1s/^X//"
  4279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4280. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4281. if test ${ac_cv_path_GREP+y}
  4282. then :
  4283. printf %s "(cached) " >&6
  4284. else $as_nop
  4285. if test -z "$GREP"; then
  4286. ac_path_GREP_found=false
  4287. # Loop through the user's path and test for each of PROGNAME-LIST
  4288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4289. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4290. do
  4291. IFS=$as_save_IFS
  4292. case $as_dir in #(((
  4293. '') as_dir=./ ;;
  4294. */) ;;
  4295. *) as_dir=$as_dir/ ;;
  4296. esac
  4297. for ac_prog in grep ggrep
  4298. do
  4299. for ac_exec_ext in '' $ac_executable_extensions; do
  4300. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4301. as_fn_executable_p "$ac_path_GREP" || continue
  4302. # Check for GNU ac_path_GREP and select it if it is found.
  4303. # Check for GNU $ac_path_GREP
  4304. case `"$ac_path_GREP" --version 2>&1` in
  4305. *GNU*)
  4306. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4307. *)
  4308. ac_count=0
  4309. printf %s 0123456789 >"conftest.in"
  4310. while :
  4311. do
  4312. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4313. mv "conftest.tmp" "conftest.in"
  4314. cp "conftest.in" "conftest.nl"
  4315. printf "%s\n" 'GREP' >> "conftest.nl"
  4316. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4317. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4318. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4319. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4320. # Best one so far, save it but keep looking for a better one
  4321. ac_cv_path_GREP="$ac_path_GREP"
  4322. ac_path_GREP_max=$ac_count
  4323. fi
  4324. # 10*(2^10) chars as input seems more than enough
  4325. test $ac_count -gt 10 && break
  4326. done
  4327. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4328. esac
  4329. $ac_path_GREP_found && break 3
  4330. done
  4331. done
  4332. done
  4333. IFS=$as_save_IFS
  4334. if test -z "$ac_cv_path_GREP"; then
  4335. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4336. fi
  4337. else
  4338. ac_cv_path_GREP=$GREP
  4339. fi
  4340. fi
  4341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4342. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4343. GREP="$ac_cv_path_GREP"
  4344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4345. printf %s "checking for egrep... " >&6; }
  4346. if test ${ac_cv_path_EGREP+y}
  4347. then :
  4348. printf %s "(cached) " >&6
  4349. else $as_nop
  4350. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4351. then ac_cv_path_EGREP="$GREP -E"
  4352. else
  4353. if test -z "$EGREP"; then
  4354. ac_path_EGREP_found=false
  4355. # Loop through the user's path and test for each of PROGNAME-LIST
  4356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4357. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4358. do
  4359. IFS=$as_save_IFS
  4360. case $as_dir in #(((
  4361. '') as_dir=./ ;;
  4362. */) ;;
  4363. *) as_dir=$as_dir/ ;;
  4364. esac
  4365. for ac_prog in egrep
  4366. do
  4367. for ac_exec_ext in '' $ac_executable_extensions; do
  4368. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4369. as_fn_executable_p "$ac_path_EGREP" || continue
  4370. # Check for GNU ac_path_EGREP and select it if it is found.
  4371. # Check for GNU $ac_path_EGREP
  4372. case `"$ac_path_EGREP" --version 2>&1` in
  4373. *GNU*)
  4374. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4375. *)
  4376. ac_count=0
  4377. printf %s 0123456789 >"conftest.in"
  4378. while :
  4379. do
  4380. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4381. mv "conftest.tmp" "conftest.in"
  4382. cp "conftest.in" "conftest.nl"
  4383. printf "%s\n" 'EGREP' >> "conftest.nl"
  4384. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4385. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4386. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4387. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4388. # Best one so far, save it but keep looking for a better one
  4389. ac_cv_path_EGREP="$ac_path_EGREP"
  4390. ac_path_EGREP_max=$ac_count
  4391. fi
  4392. # 10*(2^10) chars as input seems more than enough
  4393. test $ac_count -gt 10 && break
  4394. done
  4395. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4396. esac
  4397. $ac_path_EGREP_found && break 3
  4398. done
  4399. done
  4400. done
  4401. IFS=$as_save_IFS
  4402. if test -z "$ac_cv_path_EGREP"; then
  4403. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4404. fi
  4405. else
  4406. ac_cv_path_EGREP=$EGREP
  4407. fi
  4408. fi
  4409. fi
  4410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4411. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4412. EGREP="$ac_cv_path_EGREP"
  4413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4414. printf %s "checking for fgrep... " >&6; }
  4415. if test ${ac_cv_path_FGREP+y}
  4416. then :
  4417. printf %s "(cached) " >&6
  4418. else $as_nop
  4419. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4420. then ac_cv_path_FGREP="$GREP -F"
  4421. else
  4422. if test -z "$FGREP"; then
  4423. ac_path_FGREP_found=false
  4424. # Loop through the user's path and test for each of PROGNAME-LIST
  4425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4426. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4427. do
  4428. IFS=$as_save_IFS
  4429. case $as_dir in #(((
  4430. '') as_dir=./ ;;
  4431. */) ;;
  4432. *) as_dir=$as_dir/ ;;
  4433. esac
  4434. for ac_prog in fgrep
  4435. do
  4436. for ac_exec_ext in '' $ac_executable_extensions; do
  4437. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4438. as_fn_executable_p "$ac_path_FGREP" || continue
  4439. # Check for GNU ac_path_FGREP and select it if it is found.
  4440. # Check for GNU $ac_path_FGREP
  4441. case `"$ac_path_FGREP" --version 2>&1` in
  4442. *GNU*)
  4443. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4444. *)
  4445. ac_count=0
  4446. printf %s 0123456789 >"conftest.in"
  4447. while :
  4448. do
  4449. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4450. mv "conftest.tmp" "conftest.in"
  4451. cp "conftest.in" "conftest.nl"
  4452. printf "%s\n" 'FGREP' >> "conftest.nl"
  4453. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4454. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4455. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4456. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4457. # Best one so far, save it but keep looking for a better one
  4458. ac_cv_path_FGREP="$ac_path_FGREP"
  4459. ac_path_FGREP_max=$ac_count
  4460. fi
  4461. # 10*(2^10) chars as input seems more than enough
  4462. test $ac_count -gt 10 && break
  4463. done
  4464. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4465. esac
  4466. $ac_path_FGREP_found && break 3
  4467. done
  4468. done
  4469. done
  4470. IFS=$as_save_IFS
  4471. if test -z "$ac_cv_path_FGREP"; then
  4472. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4473. fi
  4474. else
  4475. ac_cv_path_FGREP=$FGREP
  4476. fi
  4477. fi
  4478. fi
  4479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4480. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4481. FGREP="$ac_cv_path_FGREP"
  4482. test -z "$GREP" && GREP=grep
  4483. # Check whether --with-gnu-ld was given.
  4484. if test ${with_gnu_ld+y}
  4485. then :
  4486. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4487. else $as_nop
  4488. with_gnu_ld=no
  4489. fi
  4490. ac_prog=ld
  4491. if test yes = "$GCC"; then
  4492. # Check if gcc -print-prog-name=ld gives a path.
  4493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4494. printf %s "checking for ld used by $CC... " >&6; }
  4495. case $host in
  4496. *-*-mingw*)
  4497. # gcc leaves a trailing carriage return, which upsets mingw
  4498. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4499. *)
  4500. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4501. esac
  4502. case $ac_prog in
  4503. # Accept absolute paths.
  4504. [\\/]* | ?:[\\/]*)
  4505. re_direlt='/[^/][^/]*/\.\./'
  4506. # Canonicalize the pathname of ld
  4507. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4508. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4509. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4510. done
  4511. test -z "$LD" && LD=$ac_prog
  4512. ;;
  4513. "")
  4514. # If it fails, then pretend we aren't using GCC.
  4515. ac_prog=ld
  4516. ;;
  4517. *)
  4518. # If it is relative, then search for the first ld in PATH.
  4519. with_gnu_ld=unknown
  4520. ;;
  4521. esac
  4522. elif test yes = "$with_gnu_ld"; then
  4523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4524. printf %s "checking for GNU ld... " >&6; }
  4525. else
  4526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4527. printf %s "checking for non-GNU ld... " >&6; }
  4528. fi
  4529. if test ${lt_cv_path_LD+y}
  4530. then :
  4531. printf %s "(cached) " >&6
  4532. else $as_nop
  4533. if test -z "$LD"; then
  4534. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4535. for ac_dir in $PATH; do
  4536. IFS=$lt_save_ifs
  4537. test -z "$ac_dir" && ac_dir=.
  4538. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4539. lt_cv_path_LD=$ac_dir/$ac_prog
  4540. # Check to see if the program is GNU ld. I'd rather use --version,
  4541. # but apparently some variants of GNU ld only accept -v.
  4542. # Break only if it was the GNU/non-GNU ld that we prefer.
  4543. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4544. *GNU* | *'with BFD'*)
  4545. test no != "$with_gnu_ld" && break
  4546. ;;
  4547. *)
  4548. test yes != "$with_gnu_ld" && break
  4549. ;;
  4550. esac
  4551. fi
  4552. done
  4553. IFS=$lt_save_ifs
  4554. else
  4555. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4556. fi
  4557. fi
  4558. LD=$lt_cv_path_LD
  4559. if test -n "$LD"; then
  4560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4561. printf "%s\n" "$LD" >&6; }
  4562. else
  4563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4564. printf "%s\n" "no" >&6; }
  4565. fi
  4566. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4568. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4569. if test ${lt_cv_prog_gnu_ld+y}
  4570. then :
  4571. printf %s "(cached) " >&6
  4572. else $as_nop
  4573. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4574. case `$LD -v 2>&1 </dev/null` in
  4575. *GNU* | *'with BFD'*)
  4576. lt_cv_prog_gnu_ld=yes
  4577. ;;
  4578. *)
  4579. lt_cv_prog_gnu_ld=no
  4580. ;;
  4581. esac
  4582. fi
  4583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4584. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4585. with_gnu_ld=$lt_cv_prog_gnu_ld
  4586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4587. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4588. if test ${lt_cv_path_NM+y}
  4589. then :
  4590. printf %s "(cached) " >&6
  4591. else $as_nop
  4592. if test -n "$NM"; then
  4593. # Let the user override the test.
  4594. lt_cv_path_NM=$NM
  4595. else
  4596. lt_nm_to_check=${ac_tool_prefix}nm
  4597. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4598. lt_nm_to_check="$lt_nm_to_check nm"
  4599. fi
  4600. for lt_tmp_nm in $lt_nm_to_check; do
  4601. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4602. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4603. IFS=$lt_save_ifs
  4604. test -z "$ac_dir" && ac_dir=.
  4605. tmp_nm=$ac_dir/$lt_tmp_nm
  4606. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4607. # Check to see if the nm accepts a BSD-compat flag.
  4608. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4609. # nm: unknown option "B" ignored
  4610. # Tru64's nm complains that /dev/null is an invalid object file
  4611. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4612. case $build_os in
  4613. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4614. *) lt_bad_file=/dev/null ;;
  4615. esac
  4616. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4617. *$lt_bad_file* | *'Invalid file or object type'*)
  4618. lt_cv_path_NM="$tmp_nm -B"
  4619. break 2
  4620. ;;
  4621. *)
  4622. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4623. */dev/null*)
  4624. lt_cv_path_NM="$tmp_nm -p"
  4625. break 2
  4626. ;;
  4627. *)
  4628. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4629. continue # so that we can try to find one that supports BSD flags
  4630. ;;
  4631. esac
  4632. ;;
  4633. esac
  4634. fi
  4635. done
  4636. IFS=$lt_save_ifs
  4637. done
  4638. : ${lt_cv_path_NM=no}
  4639. fi
  4640. fi
  4641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4642. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4643. if test no != "$lt_cv_path_NM"; then
  4644. NM=$lt_cv_path_NM
  4645. else
  4646. # Didn't find any BSD compatible name lister, look for dumpbin.
  4647. if test -n "$DUMPBIN"; then :
  4648. # Let the user override the test.
  4649. else
  4650. if test -n "$ac_tool_prefix"; then
  4651. for ac_prog in dumpbin "link -dump"
  4652. do
  4653. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4654. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4656. printf %s "checking for $ac_word... " >&6; }
  4657. if test ${ac_cv_prog_DUMPBIN+y}
  4658. then :
  4659. printf %s "(cached) " >&6
  4660. else $as_nop
  4661. if test -n "$DUMPBIN"; then
  4662. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4663. else
  4664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4665. for as_dir in $PATH
  4666. do
  4667. IFS=$as_save_IFS
  4668. case $as_dir in #(((
  4669. '') as_dir=./ ;;
  4670. */) ;;
  4671. *) as_dir=$as_dir/ ;;
  4672. esac
  4673. for ac_exec_ext in '' $ac_executable_extensions; do
  4674. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4675. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4676. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4677. break 2
  4678. fi
  4679. done
  4680. done
  4681. IFS=$as_save_IFS
  4682. fi
  4683. fi
  4684. DUMPBIN=$ac_cv_prog_DUMPBIN
  4685. if test -n "$DUMPBIN"; then
  4686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4687. printf "%s\n" "$DUMPBIN" >&6; }
  4688. else
  4689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4690. printf "%s\n" "no" >&6; }
  4691. fi
  4692. test -n "$DUMPBIN" && break
  4693. done
  4694. fi
  4695. if test -z "$DUMPBIN"; then
  4696. ac_ct_DUMPBIN=$DUMPBIN
  4697. for ac_prog in dumpbin "link -dump"
  4698. do
  4699. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4700. set dummy $ac_prog; ac_word=$2
  4701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4702. printf %s "checking for $ac_word... " >&6; }
  4703. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4704. then :
  4705. printf %s "(cached) " >&6
  4706. else $as_nop
  4707. if test -n "$ac_ct_DUMPBIN"; then
  4708. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4709. else
  4710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4711. for as_dir in $PATH
  4712. do
  4713. IFS=$as_save_IFS
  4714. case $as_dir in #(((
  4715. '') as_dir=./ ;;
  4716. */) ;;
  4717. *) as_dir=$as_dir/ ;;
  4718. esac
  4719. for ac_exec_ext in '' $ac_executable_extensions; do
  4720. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4721. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4722. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4723. break 2
  4724. fi
  4725. done
  4726. done
  4727. IFS=$as_save_IFS
  4728. fi
  4729. fi
  4730. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4731. if test -n "$ac_ct_DUMPBIN"; then
  4732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4733. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4734. else
  4735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4736. printf "%s\n" "no" >&6; }
  4737. fi
  4738. test -n "$ac_ct_DUMPBIN" && break
  4739. done
  4740. if test "x$ac_ct_DUMPBIN" = x; then
  4741. DUMPBIN=":"
  4742. else
  4743. case $cross_compiling:$ac_tool_warned in
  4744. yes:)
  4745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4746. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4747. ac_tool_warned=yes ;;
  4748. esac
  4749. DUMPBIN=$ac_ct_DUMPBIN
  4750. fi
  4751. fi
  4752. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4753. *COFF*)
  4754. DUMPBIN="$DUMPBIN -symbols -headers"
  4755. ;;
  4756. *)
  4757. DUMPBIN=:
  4758. ;;
  4759. esac
  4760. fi
  4761. if test : != "$DUMPBIN"; then
  4762. NM=$DUMPBIN
  4763. fi
  4764. fi
  4765. test -z "$NM" && NM=nm
  4766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4767. printf %s "checking the name lister ($NM) interface... " >&6; }
  4768. if test ${lt_cv_nm_interface+y}
  4769. then :
  4770. printf %s "(cached) " >&6
  4771. else $as_nop
  4772. lt_cv_nm_interface="BSD nm"
  4773. echo "int some_variable = 0;" > conftest.$ac_ext
  4774. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4775. (eval "$ac_compile" 2>conftest.err)
  4776. cat conftest.err >&5
  4777. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4778. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4779. cat conftest.err >&5
  4780. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4781. cat conftest.out >&5
  4782. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4783. lt_cv_nm_interface="MS dumpbin"
  4784. fi
  4785. rm -f conftest*
  4786. fi
  4787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4788. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4790. printf %s "checking whether ln -s works... " >&6; }
  4791. LN_S=$as_ln_s
  4792. if test "$LN_S" = "ln -s"; then
  4793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4794. printf "%s\n" "yes" >&6; }
  4795. else
  4796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4797. printf "%s\n" "no, using $LN_S" >&6; }
  4798. fi
  4799. # find the maximum length of command line arguments
  4800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4801. printf %s "checking the maximum length of command line arguments... " >&6; }
  4802. if test ${lt_cv_sys_max_cmd_len+y}
  4803. then :
  4804. printf %s "(cached) " >&6
  4805. else $as_nop
  4806. i=0
  4807. teststring=ABCD
  4808. case $build_os in
  4809. msdosdjgpp*)
  4810. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4811. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4812. # during glob expansion). Even if it were fixed, the result of this
  4813. # check would be larger than it should be.
  4814. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4815. ;;
  4816. gnu*)
  4817. # Under GNU Hurd, this test is not required because there is
  4818. # no limit to the length of command line arguments.
  4819. # Libtool will interpret -1 as no limit whatsoever
  4820. lt_cv_sys_max_cmd_len=-1;
  4821. ;;
  4822. cygwin* | mingw* | cegcc*)
  4823. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4824. # about 5 minutes as the teststring grows exponentially.
  4825. # Worse, since 9x/ME are not pre-emptively multitasking,
  4826. # you end up with a "frozen" computer, even though with patience
  4827. # the test eventually succeeds (with a max line length of 256k).
  4828. # Instead, let's just punt: use the minimum linelength reported by
  4829. # all of the supported platforms: 8192 (on NT/2K/XP).
  4830. lt_cv_sys_max_cmd_len=8192;
  4831. ;;
  4832. mint*)
  4833. # On MiNT this can take a long time and run out of memory.
  4834. lt_cv_sys_max_cmd_len=8192;
  4835. ;;
  4836. amigaos*)
  4837. # On AmigaOS with pdksh, this test takes hours, literally.
  4838. # So we just punt and use a minimum line length of 8192.
  4839. lt_cv_sys_max_cmd_len=8192;
  4840. ;;
  4841. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4842. # This has been around since 386BSD, at least. Likely further.
  4843. if test -x /sbin/sysctl; then
  4844. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4845. elif test -x /usr/sbin/sysctl; then
  4846. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4847. else
  4848. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4849. fi
  4850. # And add a safety zone
  4851. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4852. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4853. ;;
  4854. interix*)
  4855. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4856. lt_cv_sys_max_cmd_len=196608
  4857. ;;
  4858. os2*)
  4859. # The test takes a long time on OS/2.
  4860. lt_cv_sys_max_cmd_len=8192
  4861. ;;
  4862. osf*)
  4863. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4864. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4865. # nice to cause kernel panics so lets avoid the loop below.
  4866. # First set a reasonable default.
  4867. lt_cv_sys_max_cmd_len=16384
  4868. #
  4869. if test -x /sbin/sysconfig; then
  4870. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4871. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4872. esac
  4873. fi
  4874. ;;
  4875. sco3.2v5*)
  4876. lt_cv_sys_max_cmd_len=102400
  4877. ;;
  4878. sysv5* | sco5v6* | sysv4.2uw2*)
  4879. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4880. if test -n "$kargmax"; then
  4881. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4882. else
  4883. lt_cv_sys_max_cmd_len=32768
  4884. fi
  4885. ;;
  4886. *)
  4887. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4888. if test -n "$lt_cv_sys_max_cmd_len" && \
  4889. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4890. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4891. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4892. else
  4893. # Make teststring a little bigger before we do anything with it.
  4894. # a 1K string should be a reasonable start.
  4895. for i in 1 2 3 4 5 6 7 8; do
  4896. teststring=$teststring$teststring
  4897. done
  4898. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4899. # If test is not a shell built-in, we'll probably end up computing a
  4900. # maximum length that is only half of the actual maximum length, but
  4901. # we can't tell.
  4902. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4903. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4904. test 17 != "$i" # 1/2 MB should be enough
  4905. do
  4906. i=`expr $i + 1`
  4907. teststring=$teststring$teststring
  4908. done
  4909. # Only check the string length outside the loop.
  4910. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4911. teststring=
  4912. # Add a significant safety factor because C++ compilers can tack on
  4913. # massive amounts of additional arguments before passing them to the
  4914. # linker. It appears as though 1/2 is a usable value.
  4915. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4916. fi
  4917. ;;
  4918. esac
  4919. fi
  4920. if test -n "$lt_cv_sys_max_cmd_len"; then
  4921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4922. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4923. else
  4924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4925. printf "%s\n" "none" >&6; }
  4926. fi
  4927. max_cmd_len=$lt_cv_sys_max_cmd_len
  4928. : ${CP="cp -f"}
  4929. : ${MV="mv -f"}
  4930. : ${RM="rm -f"}
  4931. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4932. lt_unset=unset
  4933. else
  4934. lt_unset=false
  4935. fi
  4936. # test EBCDIC or ASCII
  4937. case `echo X|tr X '\101'` in
  4938. A) # ASCII based system
  4939. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4940. lt_SP2NL='tr \040 \012'
  4941. lt_NL2SP='tr \015\012 \040\040'
  4942. ;;
  4943. *) # EBCDIC based system
  4944. lt_SP2NL='tr \100 \n'
  4945. lt_NL2SP='tr \r\n \100\100'
  4946. ;;
  4947. esac
  4948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4949. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4950. if test ${lt_cv_to_host_file_cmd+y}
  4951. then :
  4952. printf %s "(cached) " >&6
  4953. else $as_nop
  4954. case $host in
  4955. *-*-mingw* )
  4956. case $build in
  4957. *-*-mingw* ) # actually msys
  4958. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4959. ;;
  4960. *-*-cygwin* )
  4961. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4962. ;;
  4963. * ) # otherwise, assume *nix
  4964. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4965. ;;
  4966. esac
  4967. ;;
  4968. *-*-cygwin* )
  4969. case $build in
  4970. *-*-mingw* ) # actually msys
  4971. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4972. ;;
  4973. *-*-cygwin* )
  4974. lt_cv_to_host_file_cmd=func_convert_file_noop
  4975. ;;
  4976. * ) # otherwise, assume *nix
  4977. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4978. ;;
  4979. esac
  4980. ;;
  4981. * ) # unhandled hosts (and "normal" native builds)
  4982. lt_cv_to_host_file_cmd=func_convert_file_noop
  4983. ;;
  4984. esac
  4985. fi
  4986. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4988. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4990. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4991. if test ${lt_cv_to_tool_file_cmd+y}
  4992. then :
  4993. printf %s "(cached) " >&6
  4994. else $as_nop
  4995. #assume ordinary cross tools, or native build.
  4996. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4997. case $host in
  4998. *-*-mingw* )
  4999. case $build in
  5000. *-*-mingw* ) # actually msys
  5001. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5002. ;;
  5003. esac
  5004. ;;
  5005. esac
  5006. fi
  5007. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5009. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5011. printf %s "checking for $LD option to reload object files... " >&6; }
  5012. if test ${lt_cv_ld_reload_flag+y}
  5013. then :
  5014. printf %s "(cached) " >&6
  5015. else $as_nop
  5016. lt_cv_ld_reload_flag='-r'
  5017. fi
  5018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5019. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5020. reload_flag=$lt_cv_ld_reload_flag
  5021. case $reload_flag in
  5022. "" | " "*) ;;
  5023. *) reload_flag=" $reload_flag" ;;
  5024. esac
  5025. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5026. case $host_os in
  5027. cygwin* | mingw* | pw32* | cegcc*)
  5028. if test yes != "$GCC"; then
  5029. reload_cmds=false
  5030. fi
  5031. ;;
  5032. darwin*)
  5033. if test yes = "$GCC"; then
  5034. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5035. else
  5036. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5037. fi
  5038. ;;
  5039. esac
  5040. if test -n "$ac_tool_prefix"; then
  5041. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5042. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5044. printf %s "checking for $ac_word... " >&6; }
  5045. if test ${ac_cv_prog_OBJDUMP+y}
  5046. then :
  5047. printf %s "(cached) " >&6
  5048. else $as_nop
  5049. if test -n "$OBJDUMP"; then
  5050. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5051. else
  5052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5053. for as_dir in $PATH
  5054. do
  5055. IFS=$as_save_IFS
  5056. case $as_dir in #(((
  5057. '') as_dir=./ ;;
  5058. */) ;;
  5059. *) as_dir=$as_dir/ ;;
  5060. esac
  5061. for ac_exec_ext in '' $ac_executable_extensions; do
  5062. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5063. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5064. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5065. break 2
  5066. fi
  5067. done
  5068. done
  5069. IFS=$as_save_IFS
  5070. fi
  5071. fi
  5072. OBJDUMP=$ac_cv_prog_OBJDUMP
  5073. if test -n "$OBJDUMP"; then
  5074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5075. printf "%s\n" "$OBJDUMP" >&6; }
  5076. else
  5077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5078. printf "%s\n" "no" >&6; }
  5079. fi
  5080. fi
  5081. if test -z "$ac_cv_prog_OBJDUMP"; then
  5082. ac_ct_OBJDUMP=$OBJDUMP
  5083. # Extract the first word of "objdump", so it can be a program name with args.
  5084. set dummy objdump; ac_word=$2
  5085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5086. printf %s "checking for $ac_word... " >&6; }
  5087. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5088. then :
  5089. printf %s "(cached) " >&6
  5090. else $as_nop
  5091. if test -n "$ac_ct_OBJDUMP"; then
  5092. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5093. else
  5094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5095. for as_dir in $PATH
  5096. do
  5097. IFS=$as_save_IFS
  5098. case $as_dir in #(((
  5099. '') as_dir=./ ;;
  5100. */) ;;
  5101. *) as_dir=$as_dir/ ;;
  5102. esac
  5103. for ac_exec_ext in '' $ac_executable_extensions; do
  5104. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5105. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5106. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5107. break 2
  5108. fi
  5109. done
  5110. done
  5111. IFS=$as_save_IFS
  5112. fi
  5113. fi
  5114. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5115. if test -n "$ac_ct_OBJDUMP"; then
  5116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5117. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5118. else
  5119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5120. printf "%s\n" "no" >&6; }
  5121. fi
  5122. if test "x$ac_ct_OBJDUMP" = x; then
  5123. OBJDUMP="false"
  5124. else
  5125. case $cross_compiling:$ac_tool_warned in
  5126. yes:)
  5127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5128. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5129. ac_tool_warned=yes ;;
  5130. esac
  5131. OBJDUMP=$ac_ct_OBJDUMP
  5132. fi
  5133. else
  5134. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5135. fi
  5136. test -z "$OBJDUMP" && OBJDUMP=objdump
  5137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5138. printf %s "checking how to recognize dependent libraries... " >&6; }
  5139. if test ${lt_cv_deplibs_check_method+y}
  5140. then :
  5141. printf %s "(cached) " >&6
  5142. else $as_nop
  5143. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5144. lt_cv_file_magic_test_file=
  5145. lt_cv_deplibs_check_method='unknown'
  5146. # Need to set the preceding variable on all platforms that support
  5147. # interlibrary dependencies.
  5148. # 'none' -- dependencies not supported.
  5149. # 'unknown' -- same as none, but documents that we really don't know.
  5150. # 'pass_all' -- all dependencies passed with no checks.
  5151. # 'test_compile' -- check by making test program.
  5152. # 'file_magic [[regex]]' -- check by looking for files in library path
  5153. # that responds to the $file_magic_cmd with a given extended regex.
  5154. # If you have 'file' or equivalent on your system and you're not sure
  5155. # whether 'pass_all' will *always* work, you probably want this one.
  5156. case $host_os in
  5157. aix[4-9]*)
  5158. lt_cv_deplibs_check_method=pass_all
  5159. ;;
  5160. beos*)
  5161. lt_cv_deplibs_check_method=pass_all
  5162. ;;
  5163. bsdi[45]*)
  5164. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5165. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5166. lt_cv_file_magic_test_file=/shlib/libc.so
  5167. ;;
  5168. cygwin*)
  5169. # func_win32_libid is a shell function defined in ltmain.sh
  5170. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5171. lt_cv_file_magic_cmd='func_win32_libid'
  5172. lt_cv_deplibs_check_method=pass_all # SDL customization
  5173. ;;
  5174. mingw* | pw32*)
  5175. # Base MSYS/MinGW do not provide the 'file' command needed by
  5176. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5177. # unless we find 'file', for example because we are cross-compiling.
  5178. if ( file / ) >/dev/null 2>&1; then
  5179. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5180. lt_cv_file_magic_cmd='func_win32_libid'
  5181. else
  5182. # Keep this pattern in sync with the one in func_win32_libid.
  5183. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5184. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5185. fi
  5186. lt_cv_deplibs_check_method=pass_all # SDL customization
  5187. ;;
  5188. cegcc*)
  5189. # use the weaker test based on 'objdump'. See mingw*.
  5190. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5191. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5192. ;;
  5193. darwin* | rhapsody*)
  5194. lt_cv_deplibs_check_method=pass_all
  5195. ;;
  5196. freebsd* | dragonfly* | midnightbsd*)
  5197. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5198. case $host_cpu in
  5199. i*86 )
  5200. # Not sure whether the presence of OpenBSD here was a mistake.
  5201. # Let's accept both of them until this is cleared up.
  5202. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5203. lt_cv_file_magic_cmd=/usr/bin/file
  5204. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5205. ;;
  5206. esac
  5207. else
  5208. lt_cv_deplibs_check_method=pass_all
  5209. fi
  5210. ;;
  5211. haiku*)
  5212. lt_cv_deplibs_check_method=pass_all
  5213. ;;
  5214. hpux10.20* | hpux11*)
  5215. lt_cv_file_magic_cmd=/usr/bin/file
  5216. case $host_cpu in
  5217. ia64*)
  5218. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5219. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5220. ;;
  5221. hppa*64*)
  5222. 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]'
  5223. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5224. ;;
  5225. *)
  5226. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5227. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5228. ;;
  5229. esac
  5230. ;;
  5231. interix[3-9]*)
  5232. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5233. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5234. ;;
  5235. irix5* | irix6* | nonstopux*)
  5236. case $LD in
  5237. *-32|*"-32 ") libmagic=32-bit;;
  5238. *-n32|*"-n32 ") libmagic=N32;;
  5239. *-64|*"-64 ") libmagic=64-bit;;
  5240. *) libmagic=never-match;;
  5241. esac
  5242. lt_cv_deplibs_check_method=pass_all
  5243. ;;
  5244. # This must be glibc/ELF.
  5245. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5246. lt_cv_deplibs_check_method=pass_all
  5247. ;;
  5248. netbsd*)
  5249. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5250. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5251. else
  5252. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5253. fi
  5254. ;;
  5255. newos6*)
  5256. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5257. lt_cv_file_magic_cmd=/usr/bin/file
  5258. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5259. ;;
  5260. *nto* | *qnx*)
  5261. lt_cv_deplibs_check_method=pass_all
  5262. ;;
  5263. openbsd* | bitrig*)
  5264. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5265. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5266. else
  5267. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5268. fi
  5269. ;;
  5270. osf3* | osf4* | osf5*)
  5271. lt_cv_deplibs_check_method=pass_all
  5272. ;;
  5273. rdos*)
  5274. lt_cv_deplibs_check_method=pass_all
  5275. ;;
  5276. solaris*)
  5277. lt_cv_deplibs_check_method=pass_all
  5278. ;;
  5279. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5280. lt_cv_deplibs_check_method=pass_all
  5281. ;;
  5282. sysv4 | sysv4.3*)
  5283. case $host_vendor in
  5284. motorola)
  5285. 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]'
  5286. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5287. ;;
  5288. ncr)
  5289. lt_cv_deplibs_check_method=pass_all
  5290. ;;
  5291. sequent)
  5292. lt_cv_file_magic_cmd='/bin/file'
  5293. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5294. ;;
  5295. sni)
  5296. lt_cv_file_magic_cmd='/bin/file'
  5297. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5298. lt_cv_file_magic_test_file=/lib/libc.so
  5299. ;;
  5300. siemens)
  5301. lt_cv_deplibs_check_method=pass_all
  5302. ;;
  5303. pc)
  5304. lt_cv_deplibs_check_method=pass_all
  5305. ;;
  5306. esac
  5307. ;;
  5308. tpf*)
  5309. lt_cv_deplibs_check_method=pass_all
  5310. ;;
  5311. os2*)
  5312. lt_cv_deplibs_check_method=pass_all
  5313. ;;
  5314. esac
  5315. fi
  5316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5317. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5318. file_magic_glob=
  5319. want_nocaseglob=no
  5320. if test "$build" = "$host"; then
  5321. case $host_os in
  5322. mingw* | pw32*)
  5323. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5324. want_nocaseglob=yes
  5325. else
  5326. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5327. fi
  5328. ;;
  5329. esac
  5330. fi
  5331. file_magic_cmd=$lt_cv_file_magic_cmd
  5332. deplibs_check_method=$lt_cv_deplibs_check_method
  5333. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5334. if test -n "$ac_tool_prefix"; then
  5335. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5336. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5338. printf %s "checking for $ac_word... " >&6; }
  5339. if test ${ac_cv_prog_DLLTOOL+y}
  5340. then :
  5341. printf %s "(cached) " >&6
  5342. else $as_nop
  5343. if test -n "$DLLTOOL"; then
  5344. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5345. else
  5346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5347. for as_dir in $PATH
  5348. do
  5349. IFS=$as_save_IFS
  5350. case $as_dir in #(((
  5351. '') as_dir=./ ;;
  5352. */) ;;
  5353. *) as_dir=$as_dir/ ;;
  5354. esac
  5355. for ac_exec_ext in '' $ac_executable_extensions; do
  5356. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5357. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5358. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5359. break 2
  5360. fi
  5361. done
  5362. done
  5363. IFS=$as_save_IFS
  5364. fi
  5365. fi
  5366. DLLTOOL=$ac_cv_prog_DLLTOOL
  5367. if test -n "$DLLTOOL"; then
  5368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5369. printf "%s\n" "$DLLTOOL" >&6; }
  5370. else
  5371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5372. printf "%s\n" "no" >&6; }
  5373. fi
  5374. fi
  5375. if test -z "$ac_cv_prog_DLLTOOL"; then
  5376. ac_ct_DLLTOOL=$DLLTOOL
  5377. # Extract the first word of "dlltool", so it can be a program name with args.
  5378. set dummy dlltool; ac_word=$2
  5379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5380. printf %s "checking for $ac_word... " >&6; }
  5381. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5382. then :
  5383. printf %s "(cached) " >&6
  5384. else $as_nop
  5385. if test -n "$ac_ct_DLLTOOL"; then
  5386. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5387. else
  5388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5389. for as_dir in $PATH
  5390. do
  5391. IFS=$as_save_IFS
  5392. case $as_dir in #(((
  5393. '') as_dir=./ ;;
  5394. */) ;;
  5395. *) as_dir=$as_dir/ ;;
  5396. esac
  5397. for ac_exec_ext in '' $ac_executable_extensions; do
  5398. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5399. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5400. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5401. break 2
  5402. fi
  5403. done
  5404. done
  5405. IFS=$as_save_IFS
  5406. fi
  5407. fi
  5408. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5409. if test -n "$ac_ct_DLLTOOL"; then
  5410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5411. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5412. else
  5413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5414. printf "%s\n" "no" >&6; }
  5415. fi
  5416. if test "x$ac_ct_DLLTOOL" = x; then
  5417. DLLTOOL="false"
  5418. else
  5419. case $cross_compiling:$ac_tool_warned in
  5420. yes:)
  5421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5422. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5423. ac_tool_warned=yes ;;
  5424. esac
  5425. DLLTOOL=$ac_ct_DLLTOOL
  5426. fi
  5427. else
  5428. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5429. fi
  5430. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5432. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5433. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5434. then :
  5435. printf %s "(cached) " >&6
  5436. else $as_nop
  5437. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5438. case $host_os in
  5439. cygwin* | mingw* | pw32* | cegcc*)
  5440. # two different shell functions defined in ltmain.sh;
  5441. # decide which one to use based on capabilities of $DLLTOOL
  5442. case `$DLLTOOL --help 2>&1` in
  5443. *--identify-strict*)
  5444. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5445. ;;
  5446. *)
  5447. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5448. ;;
  5449. esac
  5450. ;;
  5451. *)
  5452. # fallback: assume linklib IS sharedlib
  5453. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5454. ;;
  5455. esac
  5456. fi
  5457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5458. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5459. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5460. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5461. if test -n "$ac_tool_prefix"; then
  5462. for ac_prog in ar
  5463. do
  5464. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5465. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5467. printf %s "checking for $ac_word... " >&6; }
  5468. if test ${ac_cv_prog_AR+y}
  5469. then :
  5470. printf %s "(cached) " >&6
  5471. else $as_nop
  5472. if test -n "$AR"; then
  5473. ac_cv_prog_AR="$AR" # Let the user override the test.
  5474. else
  5475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5476. for as_dir in $PATH
  5477. do
  5478. IFS=$as_save_IFS
  5479. case $as_dir in #(((
  5480. '') as_dir=./ ;;
  5481. */) ;;
  5482. *) as_dir=$as_dir/ ;;
  5483. esac
  5484. for ac_exec_ext in '' $ac_executable_extensions; do
  5485. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5486. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5487. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5488. break 2
  5489. fi
  5490. done
  5491. done
  5492. IFS=$as_save_IFS
  5493. fi
  5494. fi
  5495. AR=$ac_cv_prog_AR
  5496. if test -n "$AR"; then
  5497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5498. printf "%s\n" "$AR" >&6; }
  5499. else
  5500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5501. printf "%s\n" "no" >&6; }
  5502. fi
  5503. test -n "$AR" && break
  5504. done
  5505. fi
  5506. if test -z "$AR"; then
  5507. ac_ct_AR=$AR
  5508. for ac_prog in ar
  5509. do
  5510. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5511. set dummy $ac_prog; ac_word=$2
  5512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5513. printf %s "checking for $ac_word... " >&6; }
  5514. if test ${ac_cv_prog_ac_ct_AR+y}
  5515. then :
  5516. printf %s "(cached) " >&6
  5517. else $as_nop
  5518. if test -n "$ac_ct_AR"; then
  5519. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5520. else
  5521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5522. for as_dir in $PATH
  5523. do
  5524. IFS=$as_save_IFS
  5525. case $as_dir in #(((
  5526. '') as_dir=./ ;;
  5527. */) ;;
  5528. *) as_dir=$as_dir/ ;;
  5529. esac
  5530. for ac_exec_ext in '' $ac_executable_extensions; do
  5531. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5532. ac_cv_prog_ac_ct_AR="$ac_prog"
  5533. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5534. break 2
  5535. fi
  5536. done
  5537. done
  5538. IFS=$as_save_IFS
  5539. fi
  5540. fi
  5541. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5542. if test -n "$ac_ct_AR"; then
  5543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5544. printf "%s\n" "$ac_ct_AR" >&6; }
  5545. else
  5546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5547. printf "%s\n" "no" >&6; }
  5548. fi
  5549. test -n "$ac_ct_AR" && break
  5550. done
  5551. if test "x$ac_ct_AR" = x; then
  5552. AR="false"
  5553. else
  5554. case $cross_compiling:$ac_tool_warned in
  5555. yes:)
  5556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5557. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5558. ac_tool_warned=yes ;;
  5559. esac
  5560. AR=$ac_ct_AR
  5561. fi
  5562. fi
  5563. : ${AR=ar}
  5564. : ${AR_FLAGS=cru}
  5565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5566. printf %s "checking for archiver @FILE support... " >&6; }
  5567. if test ${lt_cv_ar_at_file+y}
  5568. then :
  5569. printf %s "(cached) " >&6
  5570. else $as_nop
  5571. lt_cv_ar_at_file=no
  5572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5573. /* end confdefs.h. */
  5574. int
  5575. main (void)
  5576. {
  5577. ;
  5578. return 0;
  5579. }
  5580. _ACEOF
  5581. if ac_fn_c_try_compile "$LINENO"
  5582. then :
  5583. echo conftest.$ac_objext > conftest.lst
  5584. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5585. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5586. (eval $lt_ar_try) 2>&5
  5587. ac_status=$?
  5588. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5589. test $ac_status = 0; }
  5590. if test 0 -eq "$ac_status"; then
  5591. # Ensure the archiver fails upon bogus file names.
  5592. rm -f conftest.$ac_objext libconftest.a
  5593. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5594. (eval $lt_ar_try) 2>&5
  5595. ac_status=$?
  5596. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5597. test $ac_status = 0; }
  5598. if test 0 -ne "$ac_status"; then
  5599. lt_cv_ar_at_file=@
  5600. fi
  5601. fi
  5602. rm -f conftest.* libconftest.a
  5603. fi
  5604. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5605. fi
  5606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5607. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5608. if test no = "$lt_cv_ar_at_file"; then
  5609. archiver_list_spec=
  5610. else
  5611. archiver_list_spec=$lt_cv_ar_at_file
  5612. fi
  5613. if test -n "$ac_tool_prefix"; then
  5614. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5615. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5617. printf %s "checking for $ac_word... " >&6; }
  5618. if test ${ac_cv_prog_STRIP+y}
  5619. then :
  5620. printf %s "(cached) " >&6
  5621. else $as_nop
  5622. if test -n "$STRIP"; then
  5623. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5624. else
  5625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5626. for as_dir in $PATH
  5627. do
  5628. IFS=$as_save_IFS
  5629. case $as_dir in #(((
  5630. '') as_dir=./ ;;
  5631. */) ;;
  5632. *) as_dir=$as_dir/ ;;
  5633. esac
  5634. for ac_exec_ext in '' $ac_executable_extensions; do
  5635. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5636. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5637. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5638. break 2
  5639. fi
  5640. done
  5641. done
  5642. IFS=$as_save_IFS
  5643. fi
  5644. fi
  5645. STRIP=$ac_cv_prog_STRIP
  5646. if test -n "$STRIP"; then
  5647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5648. printf "%s\n" "$STRIP" >&6; }
  5649. else
  5650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5651. printf "%s\n" "no" >&6; }
  5652. fi
  5653. fi
  5654. if test -z "$ac_cv_prog_STRIP"; then
  5655. ac_ct_STRIP=$STRIP
  5656. # Extract the first word of "strip", so it can be a program name with args.
  5657. set dummy strip; ac_word=$2
  5658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5659. printf %s "checking for $ac_word... " >&6; }
  5660. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5661. then :
  5662. printf %s "(cached) " >&6
  5663. else $as_nop
  5664. if test -n "$ac_ct_STRIP"; then
  5665. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5666. else
  5667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5668. for as_dir in $PATH
  5669. do
  5670. IFS=$as_save_IFS
  5671. case $as_dir in #(((
  5672. '') as_dir=./ ;;
  5673. */) ;;
  5674. *) as_dir=$as_dir/ ;;
  5675. esac
  5676. for ac_exec_ext in '' $ac_executable_extensions; do
  5677. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5678. ac_cv_prog_ac_ct_STRIP="strip"
  5679. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5680. break 2
  5681. fi
  5682. done
  5683. done
  5684. IFS=$as_save_IFS
  5685. fi
  5686. fi
  5687. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5688. if test -n "$ac_ct_STRIP"; then
  5689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5690. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5691. else
  5692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5693. printf "%s\n" "no" >&6; }
  5694. fi
  5695. if test "x$ac_ct_STRIP" = x; then
  5696. STRIP=":"
  5697. else
  5698. case $cross_compiling:$ac_tool_warned in
  5699. yes:)
  5700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5701. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5702. ac_tool_warned=yes ;;
  5703. esac
  5704. STRIP=$ac_ct_STRIP
  5705. fi
  5706. else
  5707. STRIP="$ac_cv_prog_STRIP"
  5708. fi
  5709. test -z "$STRIP" && STRIP=:
  5710. if test -n "$ac_tool_prefix"; then
  5711. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5712. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5714. printf %s "checking for $ac_word... " >&6; }
  5715. if test ${ac_cv_prog_RANLIB+y}
  5716. then :
  5717. printf %s "(cached) " >&6
  5718. else $as_nop
  5719. if test -n "$RANLIB"; then
  5720. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5721. else
  5722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5723. for as_dir in $PATH
  5724. do
  5725. IFS=$as_save_IFS
  5726. case $as_dir in #(((
  5727. '') as_dir=./ ;;
  5728. */) ;;
  5729. *) as_dir=$as_dir/ ;;
  5730. esac
  5731. for ac_exec_ext in '' $ac_executable_extensions; do
  5732. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5733. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5734. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5735. break 2
  5736. fi
  5737. done
  5738. done
  5739. IFS=$as_save_IFS
  5740. fi
  5741. fi
  5742. RANLIB=$ac_cv_prog_RANLIB
  5743. if test -n "$RANLIB"; then
  5744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5745. printf "%s\n" "$RANLIB" >&6; }
  5746. else
  5747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5748. printf "%s\n" "no" >&6; }
  5749. fi
  5750. fi
  5751. if test -z "$ac_cv_prog_RANLIB"; then
  5752. ac_ct_RANLIB=$RANLIB
  5753. # Extract the first word of "ranlib", so it can be a program name with args.
  5754. set dummy ranlib; ac_word=$2
  5755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5756. printf %s "checking for $ac_word... " >&6; }
  5757. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5758. then :
  5759. printf %s "(cached) " >&6
  5760. else $as_nop
  5761. if test -n "$ac_ct_RANLIB"; then
  5762. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5763. else
  5764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5765. for as_dir in $PATH
  5766. do
  5767. IFS=$as_save_IFS
  5768. case $as_dir in #(((
  5769. '') as_dir=./ ;;
  5770. */) ;;
  5771. *) as_dir=$as_dir/ ;;
  5772. esac
  5773. for ac_exec_ext in '' $ac_executable_extensions; do
  5774. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5775. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5776. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5777. break 2
  5778. fi
  5779. done
  5780. done
  5781. IFS=$as_save_IFS
  5782. fi
  5783. fi
  5784. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5785. if test -n "$ac_ct_RANLIB"; then
  5786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5787. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5788. else
  5789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5790. printf "%s\n" "no" >&6; }
  5791. fi
  5792. if test "x$ac_ct_RANLIB" = x; then
  5793. RANLIB=":"
  5794. else
  5795. case $cross_compiling:$ac_tool_warned in
  5796. yes:)
  5797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5798. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5799. ac_tool_warned=yes ;;
  5800. esac
  5801. RANLIB=$ac_ct_RANLIB
  5802. fi
  5803. else
  5804. RANLIB="$ac_cv_prog_RANLIB"
  5805. fi
  5806. test -z "$RANLIB" && RANLIB=:
  5807. # Determine commands to create old-style static archives.
  5808. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5809. old_postinstall_cmds='chmod 644 $oldlib'
  5810. old_postuninstall_cmds=
  5811. if test -n "$RANLIB"; then
  5812. case $host_os in
  5813. bitrig* | openbsd*)
  5814. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5815. ;;
  5816. *)
  5817. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5818. ;;
  5819. esac
  5820. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5821. fi
  5822. case $host_os in
  5823. darwin*)
  5824. lock_old_archive_extraction=yes ;;
  5825. *)
  5826. lock_old_archive_extraction=no ;;
  5827. esac
  5828. for ac_prog in gawk mawk nawk awk
  5829. do
  5830. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5831. set dummy $ac_prog; ac_word=$2
  5832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5833. printf %s "checking for $ac_word... " >&6; }
  5834. if test ${ac_cv_prog_AWK+y}
  5835. then :
  5836. printf %s "(cached) " >&6
  5837. else $as_nop
  5838. if test -n "$AWK"; then
  5839. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5840. else
  5841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5842. for as_dir in $PATH
  5843. do
  5844. IFS=$as_save_IFS
  5845. case $as_dir in #(((
  5846. '') as_dir=./ ;;
  5847. */) ;;
  5848. *) as_dir=$as_dir/ ;;
  5849. esac
  5850. for ac_exec_ext in '' $ac_executable_extensions; do
  5851. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5852. ac_cv_prog_AWK="$ac_prog"
  5853. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5854. break 2
  5855. fi
  5856. done
  5857. done
  5858. IFS=$as_save_IFS
  5859. fi
  5860. fi
  5861. AWK=$ac_cv_prog_AWK
  5862. if test -n "$AWK"; then
  5863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5864. printf "%s\n" "$AWK" >&6; }
  5865. else
  5866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5867. printf "%s\n" "no" >&6; }
  5868. fi
  5869. test -n "$AWK" && break
  5870. done
  5871. # If no C compiler was specified, use CC.
  5872. LTCC=${LTCC-"$CC"}
  5873. # If no C compiler flags were specified, use CFLAGS.
  5874. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5875. # Allow CC to be a program name with arguments.
  5876. compiler=$CC
  5877. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5879. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5880. if test ${lt_cv_sys_global_symbol_pipe+y}
  5881. then :
  5882. printf %s "(cached) " >&6
  5883. else $as_nop
  5884. # These are sane defaults that work on at least a few old systems.
  5885. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5886. # Character class describing NM global symbol codes.
  5887. symcode='[BCDEGRST]'
  5888. # Regexp to match symbols that can be accessed directly from C.
  5889. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5890. # Define system-specific variables.
  5891. case $host_os in
  5892. aix*)
  5893. symcode='[BCDT]'
  5894. ;;
  5895. cygwin* | mingw* | pw32* | cegcc*)
  5896. symcode='[ABCDGISTW]'
  5897. ;;
  5898. hpux*)
  5899. if test ia64 = "$host_cpu"; then
  5900. symcode='[ABCDEGRST]'
  5901. fi
  5902. ;;
  5903. irix* | nonstopux*)
  5904. symcode='[BCDEGRST]'
  5905. ;;
  5906. osf*)
  5907. symcode='[BCDEGQRST]'
  5908. ;;
  5909. solaris*)
  5910. symcode='[BCDRT]'
  5911. ;;
  5912. sco3.2v5*)
  5913. symcode='[DT]'
  5914. ;;
  5915. sysv4.2uw2*)
  5916. symcode='[DT]'
  5917. ;;
  5918. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5919. symcode='[ABDT]'
  5920. ;;
  5921. sysv4)
  5922. symcode='[DFNSTU]'
  5923. ;;
  5924. esac
  5925. # If we're using GNU nm, then use its standard symbol codes.
  5926. case `$NM -V 2>&1` in
  5927. *GNU* | *'with BFD'*)
  5928. symcode='[ABCDGIRSTW]' ;;
  5929. esac
  5930. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5931. # Gets list of data symbols to import.
  5932. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5933. # Adjust the below global symbol transforms to fixup imported variables.
  5934. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5935. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5936. lt_c_name_lib_hook="\
  5937. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5938. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5939. else
  5940. # Disable hooks by default.
  5941. lt_cv_sys_global_symbol_to_import=
  5942. lt_cdecl_hook=
  5943. lt_c_name_hook=
  5944. lt_c_name_lib_hook=
  5945. fi
  5946. # Transform an extracted symbol line into a proper C declaration.
  5947. # Some systems (esp. on ia64) link data and code symbols differently,
  5948. # so use this general approach.
  5949. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5950. $lt_cdecl_hook\
  5951. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5952. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5953. # Transform an extracted symbol line into symbol name and symbol address
  5954. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5955. $lt_c_name_hook\
  5956. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5957. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5958. # Transform an extracted symbol line into symbol name with lib prefix and
  5959. # symbol address.
  5960. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5961. $lt_c_name_lib_hook\
  5962. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5963. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5964. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5965. # Handle CRLF in mingw tool chain
  5966. opt_cr=
  5967. case $build_os in
  5968. mingw*)
  5969. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5970. ;;
  5971. esac
  5972. # Try without a prefix underscore, then with it.
  5973. for ac_symprfx in "" "_"; do
  5974. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5975. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5976. # Write the raw and C identifiers.
  5977. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5978. # Fake it for dumpbin and say T for any non-static function,
  5979. # D for any global variable and I for any imported variable.
  5980. # Also find C++ and __fastcall symbols from MSVC++,
  5981. # which start with @ or ?.
  5982. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5983. " {last_section=section; section=\$ 3};"\
  5984. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5985. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5986. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5987. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5988. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5989. " \$ 0!~/External *\|/{next};"\
  5990. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5991. " {if(hide[section]) next};"\
  5992. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5993. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5994. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5995. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5996. " ' prfx=^$ac_symprfx"
  5997. else
  5998. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5999. fi
  6000. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6001. # Check to see that the pipe works correctly.
  6002. pipe_works=no
  6003. rm -f conftest*
  6004. cat > conftest.$ac_ext <<_LT_EOF
  6005. #ifdef __cplusplus
  6006. extern "C" {
  6007. #endif
  6008. char nm_test_var;
  6009. void nm_test_func(void);
  6010. void nm_test_func(void){}
  6011. #ifdef __cplusplus
  6012. }
  6013. #endif
  6014. int main(){nm_test_var='a';nm_test_func();return(0);}
  6015. _LT_EOF
  6016. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6017. (eval $ac_compile) 2>&5
  6018. ac_status=$?
  6019. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6020. test $ac_status = 0; }; then
  6021. # Now try to grab the symbols.
  6022. nlist=conftest.nm
  6023. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6024. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6025. ac_status=$?
  6026. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6027. test $ac_status = 0; } && test -s "$nlist"; then
  6028. # Try sorting and uniquifying the output.
  6029. if sort "$nlist" | uniq > "$nlist"T; then
  6030. mv -f "$nlist"T "$nlist"
  6031. else
  6032. rm -f "$nlist"T
  6033. fi
  6034. # Make sure that we snagged all the symbols we need.
  6035. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6036. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6037. cat <<_LT_EOF > conftest.$ac_ext
  6038. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6039. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6040. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6041. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6042. # define LT_DLSYM_CONST
  6043. #elif defined __osf__
  6044. /* This system does not cope well with relocations in const data. */
  6045. # define LT_DLSYM_CONST
  6046. #else
  6047. # define LT_DLSYM_CONST const
  6048. #endif
  6049. #ifdef __cplusplus
  6050. extern "C" {
  6051. #endif
  6052. _LT_EOF
  6053. # Now generate the symbol file.
  6054. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6055. cat <<_LT_EOF >> conftest.$ac_ext
  6056. /* The mapping between symbol names and symbols. */
  6057. LT_DLSYM_CONST struct {
  6058. const char *name;
  6059. void *address;
  6060. }
  6061. lt__PROGRAM__LTX_preloaded_symbols[] =
  6062. {
  6063. { "@PROGRAM@", (void *) 0 },
  6064. _LT_EOF
  6065. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6066. cat <<\_LT_EOF >> conftest.$ac_ext
  6067. {0, (void *) 0}
  6068. };
  6069. /* This works around a problem in FreeBSD linker */
  6070. #ifdef FREEBSD_WORKAROUND
  6071. static const void *lt_preloaded_setup() {
  6072. return lt__PROGRAM__LTX_preloaded_symbols;
  6073. }
  6074. #endif
  6075. #ifdef __cplusplus
  6076. }
  6077. #endif
  6078. _LT_EOF
  6079. # Now try linking the two files.
  6080. mv conftest.$ac_objext conftstm.$ac_objext
  6081. lt_globsym_save_LIBS=$LIBS
  6082. lt_globsym_save_CFLAGS=$CFLAGS
  6083. LIBS=conftstm.$ac_objext
  6084. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6085. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6086. (eval $ac_link) 2>&5
  6087. ac_status=$?
  6088. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6089. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6090. pipe_works=yes
  6091. fi
  6092. LIBS=$lt_globsym_save_LIBS
  6093. CFLAGS=$lt_globsym_save_CFLAGS
  6094. else
  6095. echo "cannot find nm_test_func in $nlist" >&5
  6096. fi
  6097. else
  6098. echo "cannot find nm_test_var in $nlist" >&5
  6099. fi
  6100. else
  6101. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6102. fi
  6103. else
  6104. echo "$progname: failed program was:" >&5
  6105. cat conftest.$ac_ext >&5
  6106. fi
  6107. rm -rf conftest* conftst*
  6108. # Do not use the global_symbol_pipe unless it works.
  6109. if test yes = "$pipe_works"; then
  6110. break
  6111. else
  6112. lt_cv_sys_global_symbol_pipe=
  6113. fi
  6114. done
  6115. fi
  6116. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6117. lt_cv_sys_global_symbol_to_cdecl=
  6118. fi
  6119. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6121. printf "%s\n" "failed" >&6; }
  6122. else
  6123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6124. printf "%s\n" "ok" >&6; }
  6125. fi
  6126. # Response file support.
  6127. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6128. nm_file_list_spec='@'
  6129. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6130. nm_file_list_spec='@'
  6131. fi
  6132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6133. printf %s "checking for sysroot... " >&6; }
  6134. # Check whether --with-sysroot was given.
  6135. if test ${with_sysroot+y}
  6136. then :
  6137. withval=$with_sysroot;
  6138. else $as_nop
  6139. with_sysroot=no
  6140. fi
  6141. lt_sysroot=
  6142. case $with_sysroot in #(
  6143. yes)
  6144. if test yes = "$GCC"; then
  6145. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6146. fi
  6147. ;; #(
  6148. /*)
  6149. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6150. ;; #(
  6151. no|'')
  6152. ;; #(
  6153. *)
  6154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6155. printf "%s\n" "$with_sysroot" >&6; }
  6156. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6157. ;;
  6158. esac
  6159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6160. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6162. printf %s "checking for a working dd... " >&6; }
  6163. if test ${ac_cv_path_lt_DD+y}
  6164. then :
  6165. printf %s "(cached) " >&6
  6166. else $as_nop
  6167. printf 0123456789abcdef0123456789abcdef >conftest.i
  6168. cat conftest.i conftest.i >conftest2.i
  6169. : ${lt_DD:=$DD}
  6170. if test -z "$lt_DD"; then
  6171. ac_path_lt_DD_found=false
  6172. # Loop through the user's path and test for each of PROGNAME-LIST
  6173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6174. for as_dir in $PATH
  6175. do
  6176. IFS=$as_save_IFS
  6177. case $as_dir in #(((
  6178. '') as_dir=./ ;;
  6179. */) ;;
  6180. *) as_dir=$as_dir/ ;;
  6181. esac
  6182. for ac_prog in dd
  6183. do
  6184. for ac_exec_ext in '' $ac_executable_extensions; do
  6185. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6186. as_fn_executable_p "$ac_path_lt_DD" || continue
  6187. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6188. cmp -s conftest.i conftest.out \
  6189. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6190. fi
  6191. $ac_path_lt_DD_found && break 3
  6192. done
  6193. done
  6194. done
  6195. IFS=$as_save_IFS
  6196. if test -z "$ac_cv_path_lt_DD"; then
  6197. :
  6198. fi
  6199. else
  6200. ac_cv_path_lt_DD=$lt_DD
  6201. fi
  6202. rm -f conftest.i conftest2.i conftest.out
  6203. fi
  6204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6205. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6207. printf %s "checking how to truncate binary pipes... " >&6; }
  6208. if test ${lt_cv_truncate_bin+y}
  6209. then :
  6210. printf %s "(cached) " >&6
  6211. else $as_nop
  6212. printf 0123456789abcdef0123456789abcdef >conftest.i
  6213. cat conftest.i conftest.i >conftest2.i
  6214. lt_cv_truncate_bin=
  6215. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6216. cmp -s conftest.i conftest.out \
  6217. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6218. fi
  6219. rm -f conftest.i conftest2.i conftest.out
  6220. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6221. fi
  6222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6223. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6224. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6225. func_cc_basename ()
  6226. {
  6227. for cc_temp in $*""; do
  6228. case $cc_temp in
  6229. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6230. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6231. \-*) ;;
  6232. *) break;;
  6233. esac
  6234. done
  6235. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6236. }
  6237. # Check whether --enable-libtool-lock was given.
  6238. if test ${enable_libtool_lock+y}
  6239. then :
  6240. enableval=$enable_libtool_lock;
  6241. fi
  6242. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6243. # Some flags need to be propagated to the compiler or linker for good
  6244. # libtool support.
  6245. case $host in
  6246. ia64-*-hpux*)
  6247. # Find out what ABI is being produced by ac_compile, and set mode
  6248. # options accordingly.
  6249. echo 'int i;' > conftest.$ac_ext
  6250. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6251. (eval $ac_compile) 2>&5
  6252. ac_status=$?
  6253. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6254. test $ac_status = 0; }; then
  6255. case `/usr/bin/file conftest.$ac_objext` in
  6256. *ELF-32*)
  6257. HPUX_IA64_MODE=32
  6258. ;;
  6259. *ELF-64*)
  6260. HPUX_IA64_MODE=64
  6261. ;;
  6262. esac
  6263. fi
  6264. rm -rf conftest*
  6265. ;;
  6266. *-*-irix6*)
  6267. # Find out what ABI is being produced by ac_compile, and set linker
  6268. # options accordingly.
  6269. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6270. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6271. (eval $ac_compile) 2>&5
  6272. ac_status=$?
  6273. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6274. test $ac_status = 0; }; then
  6275. if test yes = "$lt_cv_prog_gnu_ld"; then
  6276. case `/usr/bin/file conftest.$ac_objext` in
  6277. *32-bit*)
  6278. LD="${LD-ld} -melf32bsmip"
  6279. ;;
  6280. *N32*)
  6281. LD="${LD-ld} -melf32bmipn32"
  6282. ;;
  6283. *64-bit*)
  6284. LD="${LD-ld} -melf64bmip"
  6285. ;;
  6286. esac
  6287. else
  6288. case `/usr/bin/file conftest.$ac_objext` in
  6289. *32-bit*)
  6290. LD="${LD-ld} -32"
  6291. ;;
  6292. *N32*)
  6293. LD="${LD-ld} -n32"
  6294. ;;
  6295. *64-bit*)
  6296. LD="${LD-ld} -64"
  6297. ;;
  6298. esac
  6299. fi
  6300. fi
  6301. rm -rf conftest*
  6302. ;;
  6303. mips64*-*linux*)
  6304. # Find out what ABI is being produced by ac_compile, and set linker
  6305. # options accordingly.
  6306. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6307. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6308. (eval $ac_compile) 2>&5
  6309. ac_status=$?
  6310. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6311. test $ac_status = 0; }; then
  6312. emul=elf
  6313. case `/usr/bin/file conftest.$ac_objext` in
  6314. *32-bit*)
  6315. emul="${emul}32"
  6316. ;;
  6317. *64-bit*)
  6318. emul="${emul}64"
  6319. ;;
  6320. esac
  6321. case `/usr/bin/file conftest.$ac_objext` in
  6322. *MSB*)
  6323. emul="${emul}btsmip"
  6324. ;;
  6325. *LSB*)
  6326. emul="${emul}ltsmip"
  6327. ;;
  6328. esac
  6329. case `/usr/bin/file conftest.$ac_objext` in
  6330. *N32*)
  6331. emul="${emul}n32"
  6332. ;;
  6333. esac
  6334. LD="${LD-ld} -m $emul"
  6335. fi
  6336. rm -rf conftest*
  6337. ;;
  6338. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6339. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6340. # Find out what ABI is being produced by ac_compile, and set linker
  6341. # options accordingly. Note that the listed cases only cover the
  6342. # situations where additional linker options are needed (such as when
  6343. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6344. # vice versa); the common cases where no linker options are needed do
  6345. # not appear in the list.
  6346. echo 'int i;' > conftest.$ac_ext
  6347. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6348. (eval $ac_compile) 2>&5
  6349. ac_status=$?
  6350. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6351. test $ac_status = 0; }; then
  6352. case `/usr/bin/file conftest.o` in
  6353. *32-bit*)
  6354. case $host in
  6355. x86_64-*kfreebsd*-gnu)
  6356. LD="${LD-ld} -m elf_i386_fbsd"
  6357. ;;
  6358. x86_64-*linux*)
  6359. case `/usr/bin/file conftest.o` in
  6360. *x86-64*)
  6361. LD="${LD-ld} -m elf32_x86_64"
  6362. ;;
  6363. *)
  6364. LD="${LD-ld} -m elf_i386"
  6365. ;;
  6366. esac
  6367. ;;
  6368. powerpc64le-*linux*)
  6369. LD="${LD-ld} -m elf32lppclinux"
  6370. ;;
  6371. powerpc64-*linux*)
  6372. LD="${LD-ld} -m elf32ppclinux"
  6373. ;;
  6374. s390x-*linux*)
  6375. LD="${LD-ld} -m elf_s390"
  6376. ;;
  6377. sparc64-*linux*)
  6378. LD="${LD-ld} -m elf32_sparc"
  6379. ;;
  6380. esac
  6381. ;;
  6382. *64-bit*)
  6383. case $host in
  6384. x86_64-*kfreebsd*-gnu)
  6385. LD="${LD-ld} -m elf_x86_64_fbsd"
  6386. ;;
  6387. x86_64-*linux*)
  6388. LD="${LD-ld} -m elf_x86_64"
  6389. ;;
  6390. powerpcle-*linux*|powerpc64le-*linux*)
  6391. LD="${LD-ld} -m elf64lppc"
  6392. ;;
  6393. powerpc-*linux*|powerpc64-*linux*)
  6394. LD="${LD-ld} -m elf64ppc"
  6395. ;;
  6396. s390*-*linux*|s390*-*tpf*)
  6397. LD="${LD-ld} -m elf64_s390"
  6398. ;;
  6399. sparc*-*linux*)
  6400. LD="${LD-ld} -m elf64_sparc"
  6401. ;;
  6402. esac
  6403. ;;
  6404. esac
  6405. fi
  6406. rm -rf conftest*
  6407. ;;
  6408. *-*-sco3.2v5*)
  6409. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6410. SAVE_CFLAGS=$CFLAGS
  6411. CFLAGS="$CFLAGS -belf"
  6412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6413. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6414. if test ${lt_cv_cc_needs_belf+y}
  6415. then :
  6416. printf %s "(cached) " >&6
  6417. else $as_nop
  6418. ac_ext=c
  6419. ac_cpp='$CPP $CPPFLAGS'
  6420. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6421. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6422. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6424. /* end confdefs.h. */
  6425. int
  6426. main (void)
  6427. {
  6428. ;
  6429. return 0;
  6430. }
  6431. _ACEOF
  6432. if ac_fn_c_try_link "$LINENO"
  6433. then :
  6434. lt_cv_cc_needs_belf=yes
  6435. else $as_nop
  6436. lt_cv_cc_needs_belf=no
  6437. fi
  6438. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6439. conftest$ac_exeext conftest.$ac_ext
  6440. ac_ext=c
  6441. ac_cpp='$CPP $CPPFLAGS'
  6442. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6443. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6444. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6445. fi
  6446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6447. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6448. if test yes != "$lt_cv_cc_needs_belf"; then
  6449. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6450. CFLAGS=$SAVE_CFLAGS
  6451. fi
  6452. ;;
  6453. *-*solaris*)
  6454. # Find out what ABI is being produced by ac_compile, and set linker
  6455. # options accordingly.
  6456. echo 'int i;' > conftest.$ac_ext
  6457. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6458. (eval $ac_compile) 2>&5
  6459. ac_status=$?
  6460. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6461. test $ac_status = 0; }; then
  6462. case `/usr/bin/file conftest.o` in
  6463. *64-bit*)
  6464. case $lt_cv_prog_gnu_ld in
  6465. yes*)
  6466. case $host in
  6467. i?86-*-solaris*|x86_64-*-solaris*)
  6468. LD="${LD-ld} -m elf_x86_64"
  6469. ;;
  6470. sparc*-*-solaris*)
  6471. LD="${LD-ld} -m elf64_sparc"
  6472. ;;
  6473. esac
  6474. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6475. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6476. LD=${LD-ld}_sol2
  6477. fi
  6478. ;;
  6479. *)
  6480. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6481. LD="${LD-ld} -64"
  6482. fi
  6483. ;;
  6484. esac
  6485. ;;
  6486. esac
  6487. fi
  6488. rm -rf conftest*
  6489. ;;
  6490. esac
  6491. need_locks=$enable_libtool_lock
  6492. if test -n "$ac_tool_prefix"; then
  6493. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6494. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6496. printf %s "checking for $ac_word... " >&6; }
  6497. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6498. then :
  6499. printf %s "(cached) " >&6
  6500. else $as_nop
  6501. if test -n "$MANIFEST_TOOL"; then
  6502. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6503. else
  6504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6505. for as_dir in $PATH
  6506. do
  6507. IFS=$as_save_IFS
  6508. case $as_dir in #(((
  6509. '') as_dir=./ ;;
  6510. */) ;;
  6511. *) as_dir=$as_dir/ ;;
  6512. esac
  6513. for ac_exec_ext in '' $ac_executable_extensions; do
  6514. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6515. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6516. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6517. break 2
  6518. fi
  6519. done
  6520. done
  6521. IFS=$as_save_IFS
  6522. fi
  6523. fi
  6524. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6525. if test -n "$MANIFEST_TOOL"; then
  6526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6527. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6528. else
  6529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6530. printf "%s\n" "no" >&6; }
  6531. fi
  6532. fi
  6533. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6534. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6535. # Extract the first word of "mt", so it can be a program name with args.
  6536. set dummy mt; ac_word=$2
  6537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6538. printf %s "checking for $ac_word... " >&6; }
  6539. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6540. then :
  6541. printf %s "(cached) " >&6
  6542. else $as_nop
  6543. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6544. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6545. else
  6546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6547. for as_dir in $PATH
  6548. do
  6549. IFS=$as_save_IFS
  6550. case $as_dir in #(((
  6551. '') as_dir=./ ;;
  6552. */) ;;
  6553. *) as_dir=$as_dir/ ;;
  6554. esac
  6555. for ac_exec_ext in '' $ac_executable_extensions; do
  6556. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6557. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6558. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6559. break 2
  6560. fi
  6561. done
  6562. done
  6563. IFS=$as_save_IFS
  6564. fi
  6565. fi
  6566. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6567. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6569. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6570. else
  6571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6572. printf "%s\n" "no" >&6; }
  6573. fi
  6574. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6575. MANIFEST_TOOL=":"
  6576. else
  6577. case $cross_compiling:$ac_tool_warned in
  6578. yes:)
  6579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6580. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6581. ac_tool_warned=yes ;;
  6582. esac
  6583. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6584. fi
  6585. else
  6586. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6587. fi
  6588. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6590. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6591. if test ${lt_cv_path_mainfest_tool+y}
  6592. then :
  6593. printf %s "(cached) " >&6
  6594. else $as_nop
  6595. lt_cv_path_mainfest_tool=no
  6596. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6597. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6598. cat conftest.err >&5
  6599. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6600. lt_cv_path_mainfest_tool=yes
  6601. fi
  6602. rm -f conftest*
  6603. fi
  6604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6605. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6606. if test yes != "$lt_cv_path_mainfest_tool"; then
  6607. MANIFEST_TOOL=:
  6608. fi
  6609. case $host_os in
  6610. rhapsody* | darwin*)
  6611. if test -n "$ac_tool_prefix"; then
  6612. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6613. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6615. printf %s "checking for $ac_word... " >&6; }
  6616. if test ${ac_cv_prog_DSYMUTIL+y}
  6617. then :
  6618. printf %s "(cached) " >&6
  6619. else $as_nop
  6620. if test -n "$DSYMUTIL"; then
  6621. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6622. else
  6623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6624. for as_dir in $PATH
  6625. do
  6626. IFS=$as_save_IFS
  6627. case $as_dir in #(((
  6628. '') as_dir=./ ;;
  6629. */) ;;
  6630. *) as_dir=$as_dir/ ;;
  6631. esac
  6632. for ac_exec_ext in '' $ac_executable_extensions; do
  6633. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6634. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6635. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6636. break 2
  6637. fi
  6638. done
  6639. done
  6640. IFS=$as_save_IFS
  6641. fi
  6642. fi
  6643. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6644. if test -n "$DSYMUTIL"; then
  6645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6646. printf "%s\n" "$DSYMUTIL" >&6; }
  6647. else
  6648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6649. printf "%s\n" "no" >&6; }
  6650. fi
  6651. fi
  6652. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6653. ac_ct_DSYMUTIL=$DSYMUTIL
  6654. # Extract the first word of "dsymutil", so it can be a program name with args.
  6655. set dummy dsymutil; ac_word=$2
  6656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6657. printf %s "checking for $ac_word... " >&6; }
  6658. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6659. then :
  6660. printf %s "(cached) " >&6
  6661. else $as_nop
  6662. if test -n "$ac_ct_DSYMUTIL"; then
  6663. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6664. else
  6665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6666. for as_dir in $PATH
  6667. do
  6668. IFS=$as_save_IFS
  6669. case $as_dir in #(((
  6670. '') as_dir=./ ;;
  6671. */) ;;
  6672. *) as_dir=$as_dir/ ;;
  6673. esac
  6674. for ac_exec_ext in '' $ac_executable_extensions; do
  6675. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6676. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6677. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6678. break 2
  6679. fi
  6680. done
  6681. done
  6682. IFS=$as_save_IFS
  6683. fi
  6684. fi
  6685. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6686. if test -n "$ac_ct_DSYMUTIL"; then
  6687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6688. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6689. else
  6690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6691. printf "%s\n" "no" >&6; }
  6692. fi
  6693. if test "x$ac_ct_DSYMUTIL" = x; then
  6694. DSYMUTIL=":"
  6695. else
  6696. case $cross_compiling:$ac_tool_warned in
  6697. yes:)
  6698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6699. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6700. ac_tool_warned=yes ;;
  6701. esac
  6702. DSYMUTIL=$ac_ct_DSYMUTIL
  6703. fi
  6704. else
  6705. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6706. fi
  6707. if test -n "$ac_tool_prefix"; then
  6708. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6709. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6711. printf %s "checking for $ac_word... " >&6; }
  6712. if test ${ac_cv_prog_NMEDIT+y}
  6713. then :
  6714. printf %s "(cached) " >&6
  6715. else $as_nop
  6716. if test -n "$NMEDIT"; then
  6717. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6718. else
  6719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6720. for as_dir in $PATH
  6721. do
  6722. IFS=$as_save_IFS
  6723. case $as_dir in #(((
  6724. '') as_dir=./ ;;
  6725. */) ;;
  6726. *) as_dir=$as_dir/ ;;
  6727. esac
  6728. for ac_exec_ext in '' $ac_executable_extensions; do
  6729. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6730. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6731. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6732. break 2
  6733. fi
  6734. done
  6735. done
  6736. IFS=$as_save_IFS
  6737. fi
  6738. fi
  6739. NMEDIT=$ac_cv_prog_NMEDIT
  6740. if test -n "$NMEDIT"; then
  6741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6742. printf "%s\n" "$NMEDIT" >&6; }
  6743. else
  6744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6745. printf "%s\n" "no" >&6; }
  6746. fi
  6747. fi
  6748. if test -z "$ac_cv_prog_NMEDIT"; then
  6749. ac_ct_NMEDIT=$NMEDIT
  6750. # Extract the first word of "nmedit", so it can be a program name with args.
  6751. set dummy nmedit; ac_word=$2
  6752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6753. printf %s "checking for $ac_word... " >&6; }
  6754. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6755. then :
  6756. printf %s "(cached) " >&6
  6757. else $as_nop
  6758. if test -n "$ac_ct_NMEDIT"; then
  6759. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6760. else
  6761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6762. for as_dir in $PATH
  6763. do
  6764. IFS=$as_save_IFS
  6765. case $as_dir in #(((
  6766. '') as_dir=./ ;;
  6767. */) ;;
  6768. *) as_dir=$as_dir/ ;;
  6769. esac
  6770. for ac_exec_ext in '' $ac_executable_extensions; do
  6771. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6772. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6773. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6774. break 2
  6775. fi
  6776. done
  6777. done
  6778. IFS=$as_save_IFS
  6779. fi
  6780. fi
  6781. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6782. if test -n "$ac_ct_NMEDIT"; then
  6783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6784. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6785. else
  6786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6787. printf "%s\n" "no" >&6; }
  6788. fi
  6789. if test "x$ac_ct_NMEDIT" = x; then
  6790. NMEDIT=":"
  6791. else
  6792. case $cross_compiling:$ac_tool_warned in
  6793. yes:)
  6794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6795. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6796. ac_tool_warned=yes ;;
  6797. esac
  6798. NMEDIT=$ac_ct_NMEDIT
  6799. fi
  6800. else
  6801. NMEDIT="$ac_cv_prog_NMEDIT"
  6802. fi
  6803. if test -n "$ac_tool_prefix"; then
  6804. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6805. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6807. printf %s "checking for $ac_word... " >&6; }
  6808. if test ${ac_cv_prog_LIPO+y}
  6809. then :
  6810. printf %s "(cached) " >&6
  6811. else $as_nop
  6812. if test -n "$LIPO"; then
  6813. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6814. else
  6815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6816. for as_dir in $PATH
  6817. do
  6818. IFS=$as_save_IFS
  6819. case $as_dir in #(((
  6820. '') as_dir=./ ;;
  6821. */) ;;
  6822. *) as_dir=$as_dir/ ;;
  6823. esac
  6824. for ac_exec_ext in '' $ac_executable_extensions; do
  6825. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6826. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6827. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6828. break 2
  6829. fi
  6830. done
  6831. done
  6832. IFS=$as_save_IFS
  6833. fi
  6834. fi
  6835. LIPO=$ac_cv_prog_LIPO
  6836. if test -n "$LIPO"; then
  6837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6838. printf "%s\n" "$LIPO" >&6; }
  6839. else
  6840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6841. printf "%s\n" "no" >&6; }
  6842. fi
  6843. fi
  6844. if test -z "$ac_cv_prog_LIPO"; then
  6845. ac_ct_LIPO=$LIPO
  6846. # Extract the first word of "lipo", so it can be a program name with args.
  6847. set dummy lipo; ac_word=$2
  6848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6849. printf %s "checking for $ac_word... " >&6; }
  6850. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6851. then :
  6852. printf %s "(cached) " >&6
  6853. else $as_nop
  6854. if test -n "$ac_ct_LIPO"; then
  6855. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6856. else
  6857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6858. for as_dir in $PATH
  6859. do
  6860. IFS=$as_save_IFS
  6861. case $as_dir in #(((
  6862. '') as_dir=./ ;;
  6863. */) ;;
  6864. *) as_dir=$as_dir/ ;;
  6865. esac
  6866. for ac_exec_ext in '' $ac_executable_extensions; do
  6867. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6868. ac_cv_prog_ac_ct_LIPO="lipo"
  6869. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6870. break 2
  6871. fi
  6872. done
  6873. done
  6874. IFS=$as_save_IFS
  6875. fi
  6876. fi
  6877. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6878. if test -n "$ac_ct_LIPO"; then
  6879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6880. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6881. else
  6882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6883. printf "%s\n" "no" >&6; }
  6884. fi
  6885. if test "x$ac_ct_LIPO" = x; then
  6886. LIPO=":"
  6887. else
  6888. case $cross_compiling:$ac_tool_warned in
  6889. yes:)
  6890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6891. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6892. ac_tool_warned=yes ;;
  6893. esac
  6894. LIPO=$ac_ct_LIPO
  6895. fi
  6896. else
  6897. LIPO="$ac_cv_prog_LIPO"
  6898. fi
  6899. if test -n "$ac_tool_prefix"; then
  6900. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6901. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6903. printf %s "checking for $ac_word... " >&6; }
  6904. if test ${ac_cv_prog_OTOOL+y}
  6905. then :
  6906. printf %s "(cached) " >&6
  6907. else $as_nop
  6908. if test -n "$OTOOL"; then
  6909. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6910. else
  6911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6912. for as_dir in $PATH
  6913. do
  6914. IFS=$as_save_IFS
  6915. case $as_dir in #(((
  6916. '') as_dir=./ ;;
  6917. */) ;;
  6918. *) as_dir=$as_dir/ ;;
  6919. esac
  6920. for ac_exec_ext in '' $ac_executable_extensions; do
  6921. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6922. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6923. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6924. break 2
  6925. fi
  6926. done
  6927. done
  6928. IFS=$as_save_IFS
  6929. fi
  6930. fi
  6931. OTOOL=$ac_cv_prog_OTOOL
  6932. if test -n "$OTOOL"; then
  6933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6934. printf "%s\n" "$OTOOL" >&6; }
  6935. else
  6936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6937. printf "%s\n" "no" >&6; }
  6938. fi
  6939. fi
  6940. if test -z "$ac_cv_prog_OTOOL"; then
  6941. ac_ct_OTOOL=$OTOOL
  6942. # Extract the first word of "otool", so it can be a program name with args.
  6943. set dummy otool; ac_word=$2
  6944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6945. printf %s "checking for $ac_word... " >&6; }
  6946. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6947. then :
  6948. printf %s "(cached) " >&6
  6949. else $as_nop
  6950. if test -n "$ac_ct_OTOOL"; then
  6951. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6952. else
  6953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6954. for as_dir in $PATH
  6955. do
  6956. IFS=$as_save_IFS
  6957. case $as_dir in #(((
  6958. '') as_dir=./ ;;
  6959. */) ;;
  6960. *) as_dir=$as_dir/ ;;
  6961. esac
  6962. for ac_exec_ext in '' $ac_executable_extensions; do
  6963. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6964. ac_cv_prog_ac_ct_OTOOL="otool"
  6965. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6966. break 2
  6967. fi
  6968. done
  6969. done
  6970. IFS=$as_save_IFS
  6971. fi
  6972. fi
  6973. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6974. if test -n "$ac_ct_OTOOL"; then
  6975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6976. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6977. else
  6978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6979. printf "%s\n" "no" >&6; }
  6980. fi
  6981. if test "x$ac_ct_OTOOL" = x; then
  6982. OTOOL=":"
  6983. else
  6984. case $cross_compiling:$ac_tool_warned in
  6985. yes:)
  6986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6987. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6988. ac_tool_warned=yes ;;
  6989. esac
  6990. OTOOL=$ac_ct_OTOOL
  6991. fi
  6992. else
  6993. OTOOL="$ac_cv_prog_OTOOL"
  6994. fi
  6995. if test -n "$ac_tool_prefix"; then
  6996. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6997. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6999. printf %s "checking for $ac_word... " >&6; }
  7000. if test ${ac_cv_prog_OTOOL64+y}
  7001. then :
  7002. printf %s "(cached) " >&6
  7003. else $as_nop
  7004. if test -n "$OTOOL64"; then
  7005. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7006. else
  7007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7008. for as_dir in $PATH
  7009. do
  7010. IFS=$as_save_IFS
  7011. case $as_dir in #(((
  7012. '') as_dir=./ ;;
  7013. */) ;;
  7014. *) as_dir=$as_dir/ ;;
  7015. esac
  7016. for ac_exec_ext in '' $ac_executable_extensions; do
  7017. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7018. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7019. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7020. break 2
  7021. fi
  7022. done
  7023. done
  7024. IFS=$as_save_IFS
  7025. fi
  7026. fi
  7027. OTOOL64=$ac_cv_prog_OTOOL64
  7028. if test -n "$OTOOL64"; then
  7029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7030. printf "%s\n" "$OTOOL64" >&6; }
  7031. else
  7032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7033. printf "%s\n" "no" >&6; }
  7034. fi
  7035. fi
  7036. if test -z "$ac_cv_prog_OTOOL64"; then
  7037. ac_ct_OTOOL64=$OTOOL64
  7038. # Extract the first word of "otool64", so it can be a program name with args.
  7039. set dummy otool64; ac_word=$2
  7040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7041. printf %s "checking for $ac_word... " >&6; }
  7042. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7043. then :
  7044. printf %s "(cached) " >&6
  7045. else $as_nop
  7046. if test -n "$ac_ct_OTOOL64"; then
  7047. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7048. else
  7049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7050. for as_dir in $PATH
  7051. do
  7052. IFS=$as_save_IFS
  7053. case $as_dir in #(((
  7054. '') as_dir=./ ;;
  7055. */) ;;
  7056. *) as_dir=$as_dir/ ;;
  7057. esac
  7058. for ac_exec_ext in '' $ac_executable_extensions; do
  7059. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7060. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7061. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7062. break 2
  7063. fi
  7064. done
  7065. done
  7066. IFS=$as_save_IFS
  7067. fi
  7068. fi
  7069. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7070. if test -n "$ac_ct_OTOOL64"; then
  7071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7072. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7073. else
  7074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7075. printf "%s\n" "no" >&6; }
  7076. fi
  7077. if test "x$ac_ct_OTOOL64" = x; then
  7078. OTOOL64=":"
  7079. else
  7080. case $cross_compiling:$ac_tool_warned in
  7081. yes:)
  7082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7083. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7084. ac_tool_warned=yes ;;
  7085. esac
  7086. OTOOL64=$ac_ct_OTOOL64
  7087. fi
  7088. else
  7089. OTOOL64="$ac_cv_prog_OTOOL64"
  7090. fi
  7091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7092. printf %s "checking for -single_module linker flag... " >&6; }
  7093. if test ${lt_cv_apple_cc_single_mod+y}
  7094. then :
  7095. printf %s "(cached) " >&6
  7096. else $as_nop
  7097. lt_cv_apple_cc_single_mod=no
  7098. if test -z "$LT_MULTI_MODULE"; then
  7099. # By default we will add the -single_module flag. You can override
  7100. # by either setting the environment variable LT_MULTI_MODULE
  7101. # non-empty at configure time, or by adding -multi_module to the
  7102. # link flags.
  7103. rm -rf libconftest.dylib*
  7104. echo "int foo(void){return 1;}" > conftest.c
  7105. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7106. -dynamiclib -Wl,-single_module conftest.c" >&5
  7107. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7108. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7109. _lt_result=$?
  7110. # If there is a non-empty error log, and "single_module"
  7111. # appears in it, assume the flag caused a linker warning
  7112. if test -s conftest.err && $GREP single_module conftest.err; then
  7113. cat conftest.err >&5
  7114. # Otherwise, if the output was created with a 0 exit code from
  7115. # the compiler, it worked.
  7116. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7117. lt_cv_apple_cc_single_mod=yes
  7118. else
  7119. cat conftest.err >&5
  7120. fi
  7121. rm -rf libconftest.dylib*
  7122. rm -f conftest.*
  7123. fi
  7124. fi
  7125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7126. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7128. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7129. if test ${lt_cv_ld_exported_symbols_list+y}
  7130. then :
  7131. printf %s "(cached) " >&6
  7132. else $as_nop
  7133. lt_cv_ld_exported_symbols_list=no
  7134. save_LDFLAGS=$LDFLAGS
  7135. echo "_main" > conftest.sym
  7136. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7138. /* end confdefs.h. */
  7139. int
  7140. main (void)
  7141. {
  7142. ;
  7143. return 0;
  7144. }
  7145. _ACEOF
  7146. if ac_fn_c_try_link "$LINENO"
  7147. then :
  7148. lt_cv_ld_exported_symbols_list=yes
  7149. else $as_nop
  7150. lt_cv_ld_exported_symbols_list=no
  7151. fi
  7152. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7153. conftest$ac_exeext conftest.$ac_ext
  7154. LDFLAGS=$save_LDFLAGS
  7155. fi
  7156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7157. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7159. printf %s "checking for -force_load linker flag... " >&6; }
  7160. if test ${lt_cv_ld_force_load+y}
  7161. then :
  7162. printf %s "(cached) " >&6
  7163. else $as_nop
  7164. lt_cv_ld_force_load=no
  7165. cat > conftest.c << _LT_EOF
  7166. int forced_loaded() { return 2;}
  7167. _LT_EOF
  7168. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7169. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7170. echo "$AR cru libconftest.a conftest.o" >&5
  7171. $AR cru libconftest.a conftest.o 2>&5
  7172. echo "$RANLIB libconftest.a" >&5
  7173. $RANLIB libconftest.a 2>&5
  7174. cat > conftest.c << _LT_EOF
  7175. int main() { return 0;}
  7176. _LT_EOF
  7177. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7178. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7179. _lt_result=$?
  7180. if test -s conftest.err && $GREP force_load conftest.err; then
  7181. cat conftest.err >&5
  7182. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7183. lt_cv_ld_force_load=yes
  7184. else
  7185. cat conftest.err >&5
  7186. fi
  7187. rm -f conftest.err libconftest.a conftest conftest.c
  7188. rm -rf conftest.dSYM
  7189. fi
  7190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7191. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7192. case $host_os in
  7193. rhapsody* | darwin1.[012])
  7194. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7195. darwin1.*)
  7196. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7197. darwin*)
  7198. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7199. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7200. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7201. *)
  7202. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7203. esac
  7204. ;;
  7205. esac
  7206. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7207. _lt_dar_single_mod='$single_module'
  7208. fi
  7209. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7210. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7211. else
  7212. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7213. fi
  7214. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7215. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7216. else
  7217. _lt_dsymutil=
  7218. fi
  7219. ;;
  7220. esac
  7221. # func_munge_path_list VARIABLE PATH
  7222. # -----------------------------------
  7223. # VARIABLE is name of variable containing _space_ separated list of
  7224. # directories to be munged by the contents of PATH, which is string
  7225. # having a format:
  7226. # "DIR[:DIR]:"
  7227. # string "DIR[ DIR]" will be prepended to VARIABLE
  7228. # ":DIR[:DIR]"
  7229. # string "DIR[ DIR]" will be appended to VARIABLE
  7230. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7231. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7232. # "DIRA[ DIRA]" will be appended to VARIABLE
  7233. # "DIR[:DIR]"
  7234. # VARIABLE will be replaced by "DIR[ DIR]"
  7235. func_munge_path_list ()
  7236. {
  7237. case x$2 in
  7238. x)
  7239. ;;
  7240. *:)
  7241. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7242. ;;
  7243. x:*)
  7244. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7245. ;;
  7246. *::*)
  7247. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7248. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7249. ;;
  7250. *)
  7251. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7252. ;;
  7253. esac
  7254. }
  7255. ac_header= ac_cache=
  7256. for ac_item in $ac_header_c_list
  7257. do
  7258. if test $ac_cache; then
  7259. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7260. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7261. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7262. fi
  7263. ac_header= ac_cache=
  7264. elif test $ac_header; then
  7265. ac_cache=$ac_item
  7266. else
  7267. ac_header=$ac_item
  7268. fi
  7269. done
  7270. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7271. then :
  7272. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7273. fi
  7274. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7275. "
  7276. if test "x$ac_cv_header_dlfcn_h" = xyes
  7277. then :
  7278. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7279. fi
  7280. # Set options
  7281. enable_win32_dll=yes
  7282. case $host in
  7283. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7284. if test -n "$ac_tool_prefix"; then
  7285. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7286. set dummy ${ac_tool_prefix}as; ac_word=$2
  7287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7288. printf %s "checking for $ac_word... " >&6; }
  7289. if test ${ac_cv_prog_AS+y}
  7290. then :
  7291. printf %s "(cached) " >&6
  7292. else $as_nop
  7293. if test -n "$AS"; then
  7294. ac_cv_prog_AS="$AS" # Let the user override the test.
  7295. else
  7296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7297. for as_dir in $PATH
  7298. do
  7299. IFS=$as_save_IFS
  7300. case $as_dir in #(((
  7301. '') as_dir=./ ;;
  7302. */) ;;
  7303. *) as_dir=$as_dir/ ;;
  7304. esac
  7305. for ac_exec_ext in '' $ac_executable_extensions; do
  7306. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7307. ac_cv_prog_AS="${ac_tool_prefix}as"
  7308. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7309. break 2
  7310. fi
  7311. done
  7312. done
  7313. IFS=$as_save_IFS
  7314. fi
  7315. fi
  7316. AS=$ac_cv_prog_AS
  7317. if test -n "$AS"; then
  7318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7319. printf "%s\n" "$AS" >&6; }
  7320. else
  7321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7322. printf "%s\n" "no" >&6; }
  7323. fi
  7324. fi
  7325. if test -z "$ac_cv_prog_AS"; then
  7326. ac_ct_AS=$AS
  7327. # Extract the first word of "as", so it can be a program name with args.
  7328. set dummy as; ac_word=$2
  7329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7330. printf %s "checking for $ac_word... " >&6; }
  7331. if test ${ac_cv_prog_ac_ct_AS+y}
  7332. then :
  7333. printf %s "(cached) " >&6
  7334. else $as_nop
  7335. if test -n "$ac_ct_AS"; then
  7336. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7337. else
  7338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7339. for as_dir in $PATH
  7340. do
  7341. IFS=$as_save_IFS
  7342. case $as_dir in #(((
  7343. '') as_dir=./ ;;
  7344. */) ;;
  7345. *) as_dir=$as_dir/ ;;
  7346. esac
  7347. for ac_exec_ext in '' $ac_executable_extensions; do
  7348. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7349. ac_cv_prog_ac_ct_AS="as"
  7350. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7351. break 2
  7352. fi
  7353. done
  7354. done
  7355. IFS=$as_save_IFS
  7356. fi
  7357. fi
  7358. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7359. if test -n "$ac_ct_AS"; then
  7360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7361. printf "%s\n" "$ac_ct_AS" >&6; }
  7362. else
  7363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7364. printf "%s\n" "no" >&6; }
  7365. fi
  7366. if test "x$ac_ct_AS" = x; then
  7367. AS="false"
  7368. else
  7369. case $cross_compiling:$ac_tool_warned in
  7370. yes:)
  7371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7372. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7373. ac_tool_warned=yes ;;
  7374. esac
  7375. AS=$ac_ct_AS
  7376. fi
  7377. else
  7378. AS="$ac_cv_prog_AS"
  7379. fi
  7380. if test -n "$ac_tool_prefix"; then
  7381. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7382. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7384. printf %s "checking for $ac_word... " >&6; }
  7385. if test ${ac_cv_prog_DLLTOOL+y}
  7386. then :
  7387. printf %s "(cached) " >&6
  7388. else $as_nop
  7389. if test -n "$DLLTOOL"; then
  7390. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7391. else
  7392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7393. for as_dir in $PATH
  7394. do
  7395. IFS=$as_save_IFS
  7396. case $as_dir in #(((
  7397. '') as_dir=./ ;;
  7398. */) ;;
  7399. *) as_dir=$as_dir/ ;;
  7400. esac
  7401. for ac_exec_ext in '' $ac_executable_extensions; do
  7402. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7403. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7404. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7405. break 2
  7406. fi
  7407. done
  7408. done
  7409. IFS=$as_save_IFS
  7410. fi
  7411. fi
  7412. DLLTOOL=$ac_cv_prog_DLLTOOL
  7413. if test -n "$DLLTOOL"; then
  7414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7415. printf "%s\n" "$DLLTOOL" >&6; }
  7416. else
  7417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7418. printf "%s\n" "no" >&6; }
  7419. fi
  7420. fi
  7421. if test -z "$ac_cv_prog_DLLTOOL"; then
  7422. ac_ct_DLLTOOL=$DLLTOOL
  7423. # Extract the first word of "dlltool", so it can be a program name with args.
  7424. set dummy dlltool; ac_word=$2
  7425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7426. printf %s "checking for $ac_word... " >&6; }
  7427. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7428. then :
  7429. printf %s "(cached) " >&6
  7430. else $as_nop
  7431. if test -n "$ac_ct_DLLTOOL"; then
  7432. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7433. else
  7434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7435. for as_dir in $PATH
  7436. do
  7437. IFS=$as_save_IFS
  7438. case $as_dir in #(((
  7439. '') as_dir=./ ;;
  7440. */) ;;
  7441. *) as_dir=$as_dir/ ;;
  7442. esac
  7443. for ac_exec_ext in '' $ac_executable_extensions; do
  7444. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7445. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7446. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7447. break 2
  7448. fi
  7449. done
  7450. done
  7451. IFS=$as_save_IFS
  7452. fi
  7453. fi
  7454. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7455. if test -n "$ac_ct_DLLTOOL"; then
  7456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7457. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7458. else
  7459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7460. printf "%s\n" "no" >&6; }
  7461. fi
  7462. if test "x$ac_ct_DLLTOOL" = x; then
  7463. DLLTOOL="false"
  7464. else
  7465. case $cross_compiling:$ac_tool_warned in
  7466. yes:)
  7467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7468. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7469. ac_tool_warned=yes ;;
  7470. esac
  7471. DLLTOOL=$ac_ct_DLLTOOL
  7472. fi
  7473. else
  7474. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7475. fi
  7476. if test -n "$ac_tool_prefix"; then
  7477. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7478. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7480. printf %s "checking for $ac_word... " >&6; }
  7481. if test ${ac_cv_prog_OBJDUMP+y}
  7482. then :
  7483. printf %s "(cached) " >&6
  7484. else $as_nop
  7485. if test -n "$OBJDUMP"; then
  7486. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7487. else
  7488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7489. for as_dir in $PATH
  7490. do
  7491. IFS=$as_save_IFS
  7492. case $as_dir in #(((
  7493. '') as_dir=./ ;;
  7494. */) ;;
  7495. *) as_dir=$as_dir/ ;;
  7496. esac
  7497. for ac_exec_ext in '' $ac_executable_extensions; do
  7498. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7499. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7500. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7501. break 2
  7502. fi
  7503. done
  7504. done
  7505. IFS=$as_save_IFS
  7506. fi
  7507. fi
  7508. OBJDUMP=$ac_cv_prog_OBJDUMP
  7509. if test -n "$OBJDUMP"; then
  7510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7511. printf "%s\n" "$OBJDUMP" >&6; }
  7512. else
  7513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7514. printf "%s\n" "no" >&6; }
  7515. fi
  7516. fi
  7517. if test -z "$ac_cv_prog_OBJDUMP"; then
  7518. ac_ct_OBJDUMP=$OBJDUMP
  7519. # Extract the first word of "objdump", so it can be a program name with args.
  7520. set dummy objdump; ac_word=$2
  7521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7522. printf %s "checking for $ac_word... " >&6; }
  7523. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7524. then :
  7525. printf %s "(cached) " >&6
  7526. else $as_nop
  7527. if test -n "$ac_ct_OBJDUMP"; then
  7528. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7529. else
  7530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7531. for as_dir in $PATH
  7532. do
  7533. IFS=$as_save_IFS
  7534. case $as_dir in #(((
  7535. '') as_dir=./ ;;
  7536. */) ;;
  7537. *) as_dir=$as_dir/ ;;
  7538. esac
  7539. for ac_exec_ext in '' $ac_executable_extensions; do
  7540. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7541. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7542. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7543. break 2
  7544. fi
  7545. done
  7546. done
  7547. IFS=$as_save_IFS
  7548. fi
  7549. fi
  7550. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7551. if test -n "$ac_ct_OBJDUMP"; then
  7552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7553. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7554. else
  7555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7556. printf "%s\n" "no" >&6; }
  7557. fi
  7558. if test "x$ac_ct_OBJDUMP" = x; then
  7559. OBJDUMP="false"
  7560. else
  7561. case $cross_compiling:$ac_tool_warned in
  7562. yes:)
  7563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7564. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7565. ac_tool_warned=yes ;;
  7566. esac
  7567. OBJDUMP=$ac_ct_OBJDUMP
  7568. fi
  7569. else
  7570. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7571. fi
  7572. ;;
  7573. esac
  7574. test -z "$AS" && AS=as
  7575. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7576. test -z "$OBJDUMP" && OBJDUMP=objdump
  7577. enable_dlopen=no
  7578. # Check whether --enable-shared was given.
  7579. if test ${enable_shared+y}
  7580. then :
  7581. enableval=$enable_shared; p=${PACKAGE-default}
  7582. case $enableval in
  7583. yes) enable_shared=yes ;;
  7584. no) enable_shared=no ;;
  7585. *)
  7586. enable_shared=no
  7587. # Look at the argument we got. We use all the common list separators.
  7588. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7589. for pkg in $enableval; do
  7590. IFS=$lt_save_ifs
  7591. if test "X$pkg" = "X$p"; then
  7592. enable_shared=yes
  7593. fi
  7594. done
  7595. IFS=$lt_save_ifs
  7596. ;;
  7597. esac
  7598. else $as_nop
  7599. enable_shared=yes
  7600. fi
  7601. # Check whether --enable-static was given.
  7602. if test ${enable_static+y}
  7603. then :
  7604. enableval=$enable_static; p=${PACKAGE-default}
  7605. case $enableval in
  7606. yes) enable_static=yes ;;
  7607. no) enable_static=no ;;
  7608. *)
  7609. enable_static=no
  7610. # Look at the argument we got. We use all the common list separators.
  7611. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7612. for pkg in $enableval; do
  7613. IFS=$lt_save_ifs
  7614. if test "X$pkg" = "X$p"; then
  7615. enable_static=yes
  7616. fi
  7617. done
  7618. IFS=$lt_save_ifs
  7619. ;;
  7620. esac
  7621. else $as_nop
  7622. enable_static=yes
  7623. fi
  7624. # Check whether --with-pic was given.
  7625. if test ${with_pic+y}
  7626. then :
  7627. withval=$with_pic; lt_p=${PACKAGE-default}
  7628. case $withval in
  7629. yes|no) pic_mode=$withval ;;
  7630. *)
  7631. pic_mode=default
  7632. # Look at the argument we got. We use all the common list separators.
  7633. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7634. for lt_pkg in $withval; do
  7635. IFS=$lt_save_ifs
  7636. if test "X$lt_pkg" = "X$lt_p"; then
  7637. pic_mode=yes
  7638. fi
  7639. done
  7640. IFS=$lt_save_ifs
  7641. ;;
  7642. esac
  7643. else $as_nop
  7644. pic_mode=default
  7645. fi
  7646. # Check whether --enable-fast-install was given.
  7647. if test ${enable_fast_install+y}
  7648. then :
  7649. enableval=$enable_fast_install; p=${PACKAGE-default}
  7650. case $enableval in
  7651. yes) enable_fast_install=yes ;;
  7652. no) enable_fast_install=no ;;
  7653. *)
  7654. enable_fast_install=no
  7655. # Look at the argument we got. We use all the common list separators.
  7656. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7657. for pkg in $enableval; do
  7658. IFS=$lt_save_ifs
  7659. if test "X$pkg" = "X$p"; then
  7660. enable_fast_install=yes
  7661. fi
  7662. done
  7663. IFS=$lt_save_ifs
  7664. ;;
  7665. esac
  7666. else $as_nop
  7667. enable_fast_install=yes
  7668. fi
  7669. shared_archive_member_spec=
  7670. case $host,$enable_shared in
  7671. power*-*-aix[5-9]*,yes)
  7672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7673. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7674. # Check whether --with-aix-soname was given.
  7675. if test ${with_aix_soname+y}
  7676. then :
  7677. withval=$with_aix_soname; case $withval in
  7678. aix|svr4|both)
  7679. ;;
  7680. *)
  7681. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7682. ;;
  7683. esac
  7684. lt_cv_with_aix_soname=$with_aix_soname
  7685. else $as_nop
  7686. if test ${lt_cv_with_aix_soname+y}
  7687. then :
  7688. printf %s "(cached) " >&6
  7689. else $as_nop
  7690. lt_cv_with_aix_soname=aix
  7691. fi
  7692. with_aix_soname=$lt_cv_with_aix_soname
  7693. fi
  7694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7695. printf "%s\n" "$with_aix_soname" >&6; }
  7696. if test aix != "$with_aix_soname"; then
  7697. # For the AIX way of multilib, we name the shared archive member
  7698. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7699. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7700. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7701. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7702. if test 64 = "${OBJECT_MODE-32}"; then
  7703. shared_archive_member_spec=shr_64
  7704. else
  7705. shared_archive_member_spec=shr
  7706. fi
  7707. fi
  7708. ;;
  7709. *)
  7710. with_aix_soname=aix
  7711. ;;
  7712. esac
  7713. # This can be used to rebuild libtool when needed
  7714. LIBTOOL_DEPS=$ltmain
  7715. # Always use our own libtool.
  7716. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7717. test -z "$LN_S" && LN_S="ln -s"
  7718. if test -n "${ZSH_VERSION+set}"; then
  7719. setopt NO_GLOB_SUBST
  7720. fi
  7721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7722. printf %s "checking for objdir... " >&6; }
  7723. if test ${lt_cv_objdir+y}
  7724. then :
  7725. printf %s "(cached) " >&6
  7726. else $as_nop
  7727. rm -f .libs 2>/dev/null
  7728. mkdir .libs 2>/dev/null
  7729. if test -d .libs; then
  7730. lt_cv_objdir=.libs
  7731. else
  7732. # MS-DOS does not allow filenames that begin with a dot.
  7733. lt_cv_objdir=_libs
  7734. fi
  7735. rmdir .libs 2>/dev/null
  7736. fi
  7737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7738. printf "%s\n" "$lt_cv_objdir" >&6; }
  7739. objdir=$lt_cv_objdir
  7740. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7741. case $host_os in
  7742. aix3*)
  7743. # AIX sometimes has problems with the GCC collect2 program. For some
  7744. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7745. # vanish in a puff of smoke.
  7746. if test set != "${COLLECT_NAMES+set}"; then
  7747. COLLECT_NAMES=
  7748. export COLLECT_NAMES
  7749. fi
  7750. ;;
  7751. esac
  7752. # Global variables:
  7753. ofile=libtool
  7754. can_build_shared=yes
  7755. # All known linkers require a '.a' archive for static linking (except MSVC,
  7756. # which needs '.lib').
  7757. libext=a
  7758. with_gnu_ld=$lt_cv_prog_gnu_ld
  7759. old_CC=$CC
  7760. old_CFLAGS=$CFLAGS
  7761. # Set sane defaults for various variables
  7762. test -z "$CC" && CC=cc
  7763. test -z "$LTCC" && LTCC=$CC
  7764. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7765. test -z "$LD" && LD=ld
  7766. test -z "$ac_objext" && ac_objext=o
  7767. func_cc_basename $compiler
  7768. cc_basename=$func_cc_basename_result
  7769. # Only perform the check for file, if the check method requires it
  7770. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7771. case $deplibs_check_method in
  7772. file_magic*)
  7773. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7775. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7776. if test ${lt_cv_path_MAGIC_CMD+y}
  7777. then :
  7778. printf %s "(cached) " >&6
  7779. else $as_nop
  7780. case $MAGIC_CMD in
  7781. [\\/*] | ?:[\\/]*)
  7782. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7783. ;;
  7784. *)
  7785. lt_save_MAGIC_CMD=$MAGIC_CMD
  7786. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7787. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7788. for ac_dir in $ac_dummy; do
  7789. IFS=$lt_save_ifs
  7790. test -z "$ac_dir" && ac_dir=.
  7791. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7792. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7793. if test -n "$file_magic_test_file"; then
  7794. case $deplibs_check_method in
  7795. "file_magic "*)
  7796. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7797. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7798. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7799. $EGREP "$file_magic_regex" > /dev/null; then
  7800. :
  7801. else
  7802. cat <<_LT_EOF 1>&2
  7803. *** Warning: the command libtool uses to detect shared libraries,
  7804. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7805. *** The result is that libtool may fail to recognize shared libraries
  7806. *** as such. This will affect the creation of libtool libraries that
  7807. *** depend on shared libraries, but programs linked with such libtool
  7808. *** libraries will work regardless of this problem. Nevertheless, you
  7809. *** may want to report the problem to your system manager and/or to
  7810. *** bug-libtool@gnu.org
  7811. _LT_EOF
  7812. fi ;;
  7813. esac
  7814. fi
  7815. break
  7816. fi
  7817. done
  7818. IFS=$lt_save_ifs
  7819. MAGIC_CMD=$lt_save_MAGIC_CMD
  7820. ;;
  7821. esac
  7822. fi
  7823. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7824. if test -n "$MAGIC_CMD"; then
  7825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7826. printf "%s\n" "$MAGIC_CMD" >&6; }
  7827. else
  7828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7829. printf "%s\n" "no" >&6; }
  7830. fi
  7831. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7832. if test -n "$ac_tool_prefix"; then
  7833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7834. printf %s "checking for file... " >&6; }
  7835. if test ${lt_cv_path_MAGIC_CMD+y}
  7836. then :
  7837. printf %s "(cached) " >&6
  7838. else $as_nop
  7839. case $MAGIC_CMD in
  7840. [\\/*] | ?:[\\/]*)
  7841. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7842. ;;
  7843. *)
  7844. lt_save_MAGIC_CMD=$MAGIC_CMD
  7845. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7846. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7847. for ac_dir in $ac_dummy; do
  7848. IFS=$lt_save_ifs
  7849. test -z "$ac_dir" && ac_dir=.
  7850. if test -f "$ac_dir/file"; then
  7851. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7852. if test -n "$file_magic_test_file"; then
  7853. case $deplibs_check_method in
  7854. "file_magic "*)
  7855. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7856. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7857. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7858. $EGREP "$file_magic_regex" > /dev/null; then
  7859. :
  7860. else
  7861. cat <<_LT_EOF 1>&2
  7862. *** Warning: the command libtool uses to detect shared libraries,
  7863. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7864. *** The result is that libtool may fail to recognize shared libraries
  7865. *** as such. This will affect the creation of libtool libraries that
  7866. *** depend on shared libraries, but programs linked with such libtool
  7867. *** libraries will work regardless of this problem. Nevertheless, you
  7868. *** may want to report the problem to your system manager and/or to
  7869. *** bug-libtool@gnu.org
  7870. _LT_EOF
  7871. fi ;;
  7872. esac
  7873. fi
  7874. break
  7875. fi
  7876. done
  7877. IFS=$lt_save_ifs
  7878. MAGIC_CMD=$lt_save_MAGIC_CMD
  7879. ;;
  7880. esac
  7881. fi
  7882. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7883. if test -n "$MAGIC_CMD"; then
  7884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7885. printf "%s\n" "$MAGIC_CMD" >&6; }
  7886. else
  7887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7888. printf "%s\n" "no" >&6; }
  7889. fi
  7890. else
  7891. MAGIC_CMD=:
  7892. fi
  7893. fi
  7894. fi
  7895. ;;
  7896. esac
  7897. # Use C for the default configuration in the libtool script
  7898. lt_save_CC=$CC
  7899. ac_ext=c
  7900. ac_cpp='$CPP $CPPFLAGS'
  7901. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7902. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7903. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7904. # Source file extension for C test sources.
  7905. ac_ext=c
  7906. # Object file extension for compiled C test sources.
  7907. objext=o
  7908. objext=$objext
  7909. # Code to be used in simple compile tests
  7910. lt_simple_compile_test_code="int some_variable = 0;"
  7911. # Code to be used in simple link tests
  7912. lt_simple_link_test_code='int main(){return(0);}'
  7913. # If no C compiler was specified, use CC.
  7914. LTCC=${LTCC-"$CC"}
  7915. # If no C compiler flags were specified, use CFLAGS.
  7916. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7917. # Allow CC to be a program name with arguments.
  7918. compiler=$CC
  7919. # Save the default compiler, since it gets overwritten when the other
  7920. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7921. compiler_DEFAULT=$CC
  7922. # save warnings/boilerplate of simple test code
  7923. ac_outfile=conftest.$ac_objext
  7924. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7925. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7926. _lt_compiler_boilerplate=`cat conftest.err`
  7927. $RM conftest*
  7928. ac_outfile=conftest.$ac_objext
  7929. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7930. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7931. _lt_linker_boilerplate=`cat conftest.err`
  7932. $RM -r conftest*
  7933. ## CAVEAT EMPTOR:
  7934. ## There is no encapsulation within the following macros, do not change
  7935. ## the running order or otherwise move them around unless you know exactly
  7936. ## what you are doing...
  7937. if test -n "$compiler"; then
  7938. lt_prog_compiler_no_builtin_flag=
  7939. if test yes = "$GCC"; then
  7940. case $cc_basename in
  7941. nvcc*)
  7942. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7943. *)
  7944. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7945. esac
  7946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7947. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7948. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7949. then :
  7950. printf %s "(cached) " >&6
  7951. else $as_nop
  7952. lt_cv_prog_compiler_rtti_exceptions=no
  7953. ac_outfile=conftest.$ac_objext
  7954. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7955. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7956. # Insert the option either (1) after the last *FLAGS variable, or
  7957. # (2) before a word containing "conftest.", or (3) at the end.
  7958. # Note that $ac_compile itself does not contain backslashes and begins
  7959. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7960. # The option is referenced via a variable to avoid confusing sed.
  7961. lt_compile=`echo "$ac_compile" | $SED \
  7962. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7963. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7964. -e 's:$: $lt_compiler_flag:'`
  7965. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7966. (eval "$lt_compile" 2>conftest.err)
  7967. ac_status=$?
  7968. cat conftest.err >&5
  7969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7970. if (exit $ac_status) && test -s "$ac_outfile"; then
  7971. # The compiler can only warn and ignore the option if not recognized
  7972. # So say no if there are warnings other than the usual output.
  7973. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7974. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7975. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7976. lt_cv_prog_compiler_rtti_exceptions=yes
  7977. fi
  7978. fi
  7979. $RM conftest*
  7980. fi
  7981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7982. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7983. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7984. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7985. else
  7986. :
  7987. fi
  7988. fi
  7989. lt_prog_compiler_wl=
  7990. lt_prog_compiler_pic=
  7991. lt_prog_compiler_static=
  7992. if test yes = "$GCC"; then
  7993. lt_prog_compiler_wl='-Wl,'
  7994. lt_prog_compiler_static='-static'
  7995. case $host_os in
  7996. aix*)
  7997. # All AIX code is PIC.
  7998. if test ia64 = "$host_cpu"; then
  7999. # AIX 5 now supports IA64 processor
  8000. lt_prog_compiler_static='-Bstatic'
  8001. fi
  8002. lt_prog_compiler_pic='-fPIC'
  8003. ;;
  8004. amigaos*)
  8005. case $host_cpu in
  8006. powerpc)
  8007. # see comment about AmigaOS4 .so support
  8008. lt_prog_compiler_pic='-fPIC'
  8009. ;;
  8010. m68k)
  8011. # FIXME: we need at least 68020 code to build shared libraries, but
  8012. # adding the '-m68020' flag to GCC prevents building anything better,
  8013. # like '-m68040'.
  8014. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8015. ;;
  8016. esac
  8017. ;;
  8018. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8019. # PIC is the default for these OSes.
  8020. ;;
  8021. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8022. # This hack is so that the source file can tell whether it is being
  8023. # built for inclusion in a dll (and should export symbols for example).
  8024. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8025. # (--disable-auto-import) libraries
  8026. lt_prog_compiler_pic='-DDLL_EXPORT'
  8027. case $host_os in
  8028. os2*)
  8029. lt_prog_compiler_static='$wl-static'
  8030. ;;
  8031. esac
  8032. ;;
  8033. darwin* | rhapsody*)
  8034. # PIC is the default on this platform
  8035. # Common symbols not allowed in MH_DYLIB files
  8036. lt_prog_compiler_pic='-fno-common'
  8037. ;;
  8038. haiku*)
  8039. # PIC is the default for Haiku.
  8040. # The "-static" flag exists, but is broken.
  8041. lt_prog_compiler_static=
  8042. ;;
  8043. hpux*)
  8044. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8045. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8046. # sets the default TLS model and affects inlining.
  8047. case $host_cpu in
  8048. hppa*64*)
  8049. # +Z the default
  8050. ;;
  8051. *)
  8052. lt_prog_compiler_pic='-fPIC'
  8053. ;;
  8054. esac
  8055. ;;
  8056. interix[3-9]*)
  8057. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8058. # Instead, we relocate shared libraries at runtime.
  8059. ;;
  8060. msdosdjgpp*)
  8061. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8062. # on systems that don't support them.
  8063. lt_prog_compiler_can_build_shared=no
  8064. enable_shared=no
  8065. ;;
  8066. *nto* | *qnx*)
  8067. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8068. # it will coredump.
  8069. lt_prog_compiler_pic='-fPIC -shared'
  8070. ;;
  8071. sysv4*MP*)
  8072. if test -d /usr/nec; then
  8073. lt_prog_compiler_pic=-Kconform_pic
  8074. fi
  8075. ;;
  8076. *)
  8077. lt_prog_compiler_pic='-fPIC'
  8078. ;;
  8079. esac
  8080. case $cc_basename in
  8081. nvcc*) # Cuda Compiler Driver 2.2
  8082. lt_prog_compiler_wl='-Xlinker '
  8083. if test -n "$lt_prog_compiler_pic"; then
  8084. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8085. fi
  8086. ;;
  8087. esac
  8088. else
  8089. # PORTME Check for flag to pass linker flags through the system compiler.
  8090. case $host_os in
  8091. aix*)
  8092. lt_prog_compiler_wl='-Wl,'
  8093. if test ia64 = "$host_cpu"; then
  8094. # AIX 5 now supports IA64 processor
  8095. lt_prog_compiler_static='-Bstatic'
  8096. else
  8097. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8098. fi
  8099. ;;
  8100. darwin* | rhapsody*)
  8101. # PIC is the default on this platform
  8102. # Common symbols not allowed in MH_DYLIB files
  8103. lt_prog_compiler_pic='-fno-common'
  8104. case $cc_basename in
  8105. nagfor*)
  8106. # NAG Fortran compiler
  8107. lt_prog_compiler_wl='-Wl,-Wl,,'
  8108. lt_prog_compiler_pic='-PIC'
  8109. lt_prog_compiler_static='-Bstatic'
  8110. ;;
  8111. esac
  8112. ;;
  8113. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8114. # This hack is so that the source file can tell whether it is being
  8115. # built for inclusion in a dll (and should export symbols for example).
  8116. lt_prog_compiler_pic='-DDLL_EXPORT'
  8117. case $host_os in
  8118. os2*)
  8119. lt_prog_compiler_static='$wl-static'
  8120. ;;
  8121. esac
  8122. ;;
  8123. hpux9* | hpux10* | hpux11*)
  8124. lt_prog_compiler_wl='-Wl,'
  8125. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8126. # not for PA HP-UX.
  8127. case $host_cpu in
  8128. hppa*64*|ia64*)
  8129. # +Z the default
  8130. ;;
  8131. *)
  8132. lt_prog_compiler_pic='+Z'
  8133. ;;
  8134. esac
  8135. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8136. lt_prog_compiler_static='$wl-a ${wl}archive'
  8137. ;;
  8138. irix5* | irix6* | nonstopux*)
  8139. lt_prog_compiler_wl='-Wl,'
  8140. # PIC (with -KPIC) is the default.
  8141. lt_prog_compiler_static='-non_shared'
  8142. ;;
  8143. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8144. case $cc_basename in
  8145. # old Intel for x86_64, which still supported -KPIC.
  8146. ecc*)
  8147. lt_prog_compiler_wl='-Wl,'
  8148. lt_prog_compiler_pic='-KPIC'
  8149. lt_prog_compiler_static='-static'
  8150. ;;
  8151. # icc used to be incompatible with GCC.
  8152. # ICC 10 doesn't accept -KPIC any more.
  8153. icc* | ifort*)
  8154. lt_prog_compiler_wl='-Wl,'
  8155. lt_prog_compiler_pic='-fPIC'
  8156. lt_prog_compiler_static='-static'
  8157. ;;
  8158. # Lahey Fortran 8.1.
  8159. lf95*)
  8160. lt_prog_compiler_wl='-Wl,'
  8161. lt_prog_compiler_pic='--shared'
  8162. lt_prog_compiler_static='--static'
  8163. ;;
  8164. nagfor*)
  8165. # NAG Fortran compiler
  8166. lt_prog_compiler_wl='-Wl,-Wl,,'
  8167. lt_prog_compiler_pic='-PIC'
  8168. lt_prog_compiler_static='-Bstatic'
  8169. ;;
  8170. tcc*)
  8171. # Fabrice Bellard et al's Tiny C Compiler
  8172. lt_prog_compiler_wl='-Wl,'
  8173. lt_prog_compiler_pic='-fPIC'
  8174. lt_prog_compiler_static='-static'
  8175. ;;
  8176. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8177. # Portland Group compilers (*not* the Pentium gcc compiler,
  8178. # which looks to be a dead project)
  8179. lt_prog_compiler_wl='-Wl,'
  8180. lt_prog_compiler_pic='-fpic'
  8181. lt_prog_compiler_static='-Bstatic'
  8182. ;;
  8183. ccc*)
  8184. lt_prog_compiler_wl='-Wl,'
  8185. # All Alpha code is PIC.
  8186. lt_prog_compiler_static='-non_shared'
  8187. ;;
  8188. xl* | bgxl* | bgf* | mpixl*)
  8189. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8190. lt_prog_compiler_wl='-Wl,'
  8191. lt_prog_compiler_pic='-qpic'
  8192. lt_prog_compiler_static='-qstaticlink'
  8193. ;;
  8194. *)
  8195. case `$CC -V 2>&1 | sed 5q` in
  8196. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8197. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8198. lt_prog_compiler_pic='-KPIC'
  8199. lt_prog_compiler_static='-Bstatic'
  8200. lt_prog_compiler_wl=''
  8201. ;;
  8202. *Sun\ F* | *Sun*Fortran*)
  8203. lt_prog_compiler_pic='-KPIC'
  8204. lt_prog_compiler_static='-Bstatic'
  8205. lt_prog_compiler_wl='-Qoption ld '
  8206. ;;
  8207. *Sun\ C*)
  8208. # Sun C 5.9
  8209. lt_prog_compiler_pic='-KPIC'
  8210. lt_prog_compiler_static='-Bstatic'
  8211. lt_prog_compiler_wl='-Wl,'
  8212. ;;
  8213. *Intel*\ [CF]*Compiler*)
  8214. lt_prog_compiler_wl='-Wl,'
  8215. lt_prog_compiler_pic='-fPIC'
  8216. lt_prog_compiler_static='-static'
  8217. ;;
  8218. *Portland\ Group*)
  8219. lt_prog_compiler_wl='-Wl,'
  8220. lt_prog_compiler_pic='-fpic'
  8221. lt_prog_compiler_static='-Bstatic'
  8222. ;;
  8223. esac
  8224. ;;
  8225. esac
  8226. ;;
  8227. newsos6)
  8228. lt_prog_compiler_pic='-KPIC'
  8229. lt_prog_compiler_static='-Bstatic'
  8230. ;;
  8231. *nto* | *qnx*)
  8232. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8233. # it will coredump.
  8234. lt_prog_compiler_pic='-fPIC -shared'
  8235. ;;
  8236. osf3* | osf4* | osf5*)
  8237. lt_prog_compiler_wl='-Wl,'
  8238. # All OSF/1 code is PIC.
  8239. lt_prog_compiler_static='-non_shared'
  8240. ;;
  8241. rdos*)
  8242. lt_prog_compiler_static='-non_shared'
  8243. ;;
  8244. solaris*)
  8245. lt_prog_compiler_pic='-KPIC'
  8246. lt_prog_compiler_static='-Bstatic'
  8247. case $cc_basename in
  8248. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8249. lt_prog_compiler_wl='-Qoption ld ';;
  8250. *)
  8251. lt_prog_compiler_wl='-Wl,';;
  8252. esac
  8253. ;;
  8254. sunos4*)
  8255. lt_prog_compiler_wl='-Qoption ld '
  8256. lt_prog_compiler_pic='-PIC'
  8257. lt_prog_compiler_static='-Bstatic'
  8258. ;;
  8259. sysv4 | sysv4.2uw2* | sysv4.3*)
  8260. lt_prog_compiler_wl='-Wl,'
  8261. lt_prog_compiler_pic='-KPIC'
  8262. lt_prog_compiler_static='-Bstatic'
  8263. ;;
  8264. sysv4*MP*)
  8265. if test -d /usr/nec; then
  8266. lt_prog_compiler_pic='-Kconform_pic'
  8267. lt_prog_compiler_static='-Bstatic'
  8268. fi
  8269. ;;
  8270. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8271. lt_prog_compiler_wl='-Wl,'
  8272. lt_prog_compiler_pic='-KPIC'
  8273. lt_prog_compiler_static='-Bstatic'
  8274. ;;
  8275. unicos*)
  8276. lt_prog_compiler_wl='-Wl,'
  8277. lt_prog_compiler_can_build_shared=no
  8278. ;;
  8279. uts4*)
  8280. lt_prog_compiler_pic='-pic'
  8281. lt_prog_compiler_static='-Bstatic'
  8282. ;;
  8283. *)
  8284. lt_prog_compiler_can_build_shared=no
  8285. ;;
  8286. esac
  8287. fi
  8288. case $host_os in
  8289. # For platforms that do not support PIC, -DPIC is meaningless:
  8290. *djgpp*)
  8291. lt_prog_compiler_pic=
  8292. ;;
  8293. *)
  8294. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8295. ;;
  8296. esac
  8297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8298. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8299. if test ${lt_cv_prog_compiler_pic+y}
  8300. then :
  8301. printf %s "(cached) " >&6
  8302. else $as_nop
  8303. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8304. fi
  8305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8306. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8307. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8308. #
  8309. # Check to make sure the PIC flag actually works.
  8310. #
  8311. if test -n "$lt_prog_compiler_pic"; then
  8312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8313. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8314. if test ${lt_cv_prog_compiler_pic_works+y}
  8315. then :
  8316. printf %s "(cached) " >&6
  8317. else $as_nop
  8318. lt_cv_prog_compiler_pic_works=no
  8319. ac_outfile=conftest.$ac_objext
  8320. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8321. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8322. # Insert the option either (1) after the last *FLAGS variable, or
  8323. # (2) before a word containing "conftest.", or (3) at the end.
  8324. # Note that $ac_compile itself does not contain backslashes and begins
  8325. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8326. # The option is referenced via a variable to avoid confusing sed.
  8327. lt_compile=`echo "$ac_compile" | $SED \
  8328. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8329. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8330. -e 's:$: $lt_compiler_flag:'`
  8331. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8332. (eval "$lt_compile" 2>conftest.err)
  8333. ac_status=$?
  8334. cat conftest.err >&5
  8335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8336. if (exit $ac_status) && test -s "$ac_outfile"; then
  8337. # The compiler can only warn and ignore the option if not recognized
  8338. # So say no if there are warnings other than the usual output.
  8339. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8340. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8341. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8342. lt_cv_prog_compiler_pic_works=yes
  8343. fi
  8344. fi
  8345. $RM conftest*
  8346. fi
  8347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8348. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8349. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8350. case $lt_prog_compiler_pic in
  8351. "" | " "*) ;;
  8352. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8353. esac
  8354. else
  8355. lt_prog_compiler_pic=
  8356. lt_prog_compiler_can_build_shared=no
  8357. fi
  8358. fi
  8359. #
  8360. # Check to make sure the static flag actually works.
  8361. #
  8362. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8364. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8365. if test ${lt_cv_prog_compiler_static_works+y}
  8366. then :
  8367. printf %s "(cached) " >&6
  8368. else $as_nop
  8369. lt_cv_prog_compiler_static_works=no
  8370. save_LDFLAGS=$LDFLAGS
  8371. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8372. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8373. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8374. # The linker can only warn and ignore the option if not recognized
  8375. # So say no if there are warnings
  8376. if test -s conftest.err; then
  8377. # Append any errors to the config.log.
  8378. cat conftest.err 1>&5
  8379. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8380. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8381. if diff conftest.exp conftest.er2 >/dev/null; then
  8382. lt_cv_prog_compiler_static_works=yes
  8383. fi
  8384. else
  8385. lt_cv_prog_compiler_static_works=yes
  8386. fi
  8387. fi
  8388. $RM -r conftest*
  8389. LDFLAGS=$save_LDFLAGS
  8390. fi
  8391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8392. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8393. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8394. :
  8395. else
  8396. lt_prog_compiler_static=
  8397. fi
  8398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8399. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8400. if test ${lt_cv_prog_compiler_c_o+y}
  8401. then :
  8402. printf %s "(cached) " >&6
  8403. else $as_nop
  8404. lt_cv_prog_compiler_c_o=no
  8405. $RM -r conftest 2>/dev/null
  8406. mkdir conftest
  8407. cd conftest
  8408. mkdir out
  8409. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8410. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8411. # Insert the option either (1) after the last *FLAGS variable, or
  8412. # (2) before a word containing "conftest.", or (3) at the end.
  8413. # Note that $ac_compile itself does not contain backslashes and begins
  8414. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8415. lt_compile=`echo "$ac_compile" | $SED \
  8416. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8417. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8418. -e 's:$: $lt_compiler_flag:'`
  8419. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8420. (eval "$lt_compile" 2>out/conftest.err)
  8421. ac_status=$?
  8422. cat out/conftest.err >&5
  8423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8424. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8425. then
  8426. # The compiler can only warn and ignore the option if not recognized
  8427. # So say no if there are warnings
  8428. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8429. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8430. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8431. lt_cv_prog_compiler_c_o=yes
  8432. fi
  8433. fi
  8434. chmod u+w . 2>&5
  8435. $RM conftest*
  8436. # SGI C++ compiler will create directory out/ii_files/ for
  8437. # template instantiation
  8438. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8439. $RM out/* && rmdir out
  8440. cd ..
  8441. $RM -r conftest
  8442. $RM conftest*
  8443. fi
  8444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8445. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8447. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8448. if test ${lt_cv_prog_compiler_c_o+y}
  8449. then :
  8450. printf %s "(cached) " >&6
  8451. else $as_nop
  8452. lt_cv_prog_compiler_c_o=no
  8453. $RM -r conftest 2>/dev/null
  8454. mkdir conftest
  8455. cd conftest
  8456. mkdir out
  8457. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8458. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8459. # Insert the option either (1) after the last *FLAGS variable, or
  8460. # (2) before a word containing "conftest.", or (3) at the end.
  8461. # Note that $ac_compile itself does not contain backslashes and begins
  8462. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8463. lt_compile=`echo "$ac_compile" | $SED \
  8464. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8465. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8466. -e 's:$: $lt_compiler_flag:'`
  8467. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8468. (eval "$lt_compile" 2>out/conftest.err)
  8469. ac_status=$?
  8470. cat out/conftest.err >&5
  8471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8472. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8473. then
  8474. # The compiler can only warn and ignore the option if not recognized
  8475. # So say no if there are warnings
  8476. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8477. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8478. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8479. lt_cv_prog_compiler_c_o=yes
  8480. fi
  8481. fi
  8482. chmod u+w . 2>&5
  8483. $RM conftest*
  8484. # SGI C++ compiler will create directory out/ii_files/ for
  8485. # template instantiation
  8486. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8487. $RM out/* && rmdir out
  8488. cd ..
  8489. $RM -r conftest
  8490. $RM conftest*
  8491. fi
  8492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8493. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8494. hard_links=nottested
  8495. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8496. # do not overwrite the value of need_locks provided by the user
  8497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8498. printf %s "checking if we can lock with hard links... " >&6; }
  8499. hard_links=yes
  8500. $RM conftest*
  8501. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8502. touch conftest.a
  8503. ln conftest.a conftest.b 2>&5 || hard_links=no
  8504. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8506. printf "%s\n" "$hard_links" >&6; }
  8507. if test no = "$hard_links"; then
  8508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8509. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8510. need_locks=warn
  8511. fi
  8512. else
  8513. need_locks=no
  8514. fi
  8515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8516. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8517. runpath_var=
  8518. allow_undefined_flag=
  8519. always_export_symbols=no
  8520. archive_cmds=
  8521. archive_expsym_cmds=
  8522. compiler_needs_object=no
  8523. enable_shared_with_static_runtimes=no
  8524. export_dynamic_flag_spec=
  8525. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8526. hardcode_automatic=no
  8527. hardcode_direct=no
  8528. hardcode_direct_absolute=no
  8529. hardcode_libdir_flag_spec=
  8530. hardcode_libdir_separator=
  8531. hardcode_minus_L=no
  8532. hardcode_shlibpath_var=unsupported
  8533. inherit_rpath=no
  8534. link_all_deplibs=unknown
  8535. module_cmds=
  8536. module_expsym_cmds=
  8537. old_archive_from_new_cmds=
  8538. old_archive_from_expsyms_cmds=
  8539. thread_safe_flag_spec=
  8540. whole_archive_flag_spec=
  8541. # include_expsyms should be a list of space-separated symbols to be *always*
  8542. # included in the symbol list
  8543. include_expsyms=
  8544. # exclude_expsyms can be an extended regexp of symbols to exclude
  8545. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8546. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8547. # as well as any symbol that contains 'd'.
  8548. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8549. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8550. # platforms (ab)use it in PIC code, but their linkers get confused if
  8551. # the symbol is explicitly referenced. Since portable code cannot
  8552. # rely on this symbol name, it's probably fine to never include it in
  8553. # preloaded symbol tables.
  8554. # Exclude shared library initialization/finalization symbols.
  8555. extract_expsyms_cmds=
  8556. case $host_os in
  8557. cygwin* | mingw* | pw32* | cegcc*)
  8558. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8559. # When not using gcc, we currently assume that we are using
  8560. # Microsoft Visual C++.
  8561. if test yes != "$GCC"; then
  8562. with_gnu_ld=no
  8563. fi
  8564. ;;
  8565. interix*)
  8566. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8567. with_gnu_ld=yes
  8568. ;;
  8569. openbsd* | bitrig*)
  8570. with_gnu_ld=no
  8571. ;;
  8572. esac
  8573. ld_shlibs=yes
  8574. # On some targets, GNU ld is compatible enough with the native linker
  8575. # that we're better off using the native interface for both.
  8576. lt_use_gnu_ld_interface=no
  8577. if test yes = "$with_gnu_ld"; then
  8578. case $host_os in
  8579. aix*)
  8580. # The AIX port of GNU ld has always aspired to compatibility
  8581. # with the native linker. However, as the warning in the GNU ld
  8582. # block says, versions before 2.19.5* couldn't really create working
  8583. # shared libraries, regardless of the interface used.
  8584. case `$LD -v 2>&1` in
  8585. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8586. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8587. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8588. *)
  8589. lt_use_gnu_ld_interface=yes
  8590. ;;
  8591. esac
  8592. ;;
  8593. *)
  8594. lt_use_gnu_ld_interface=yes
  8595. ;;
  8596. esac
  8597. fi
  8598. if test yes = "$lt_use_gnu_ld_interface"; then
  8599. # If archive_cmds runs LD, not CC, wlarc should be empty
  8600. wlarc='$wl'
  8601. # Set some defaults for GNU ld with shared library support. These
  8602. # are reset later if shared libraries are not supported. Putting them
  8603. # here allows them to be overridden if necessary.
  8604. runpath_var=LD_RUN_PATH
  8605. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8606. export_dynamic_flag_spec='$wl--export-dynamic'
  8607. # ancient GNU ld didn't support --whole-archive et. al.
  8608. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8609. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8610. else
  8611. whole_archive_flag_spec=
  8612. fi
  8613. supports_anon_versioning=no
  8614. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8615. *GNU\ gold*) supports_anon_versioning=yes ;;
  8616. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8617. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8618. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8619. *\ 2.11.*) ;; # other 2.11 versions
  8620. *) supports_anon_versioning=yes ;;
  8621. esac
  8622. # See if GNU ld supports shared libraries.
  8623. case $host_os in
  8624. aix[3-9]*)
  8625. # On AIX/PPC, the GNU linker is very broken
  8626. if test ia64 != "$host_cpu"; then
  8627. ld_shlibs=no
  8628. cat <<_LT_EOF 1>&2
  8629. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8630. *** to be unable to reliably create shared libraries on AIX.
  8631. *** Therefore, libtool is disabling shared libraries support. If you
  8632. *** really care for shared libraries, you may want to install binutils
  8633. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8634. *** You will then need to restart the configuration process.
  8635. _LT_EOF
  8636. fi
  8637. ;;
  8638. amigaos*)
  8639. case $host_cpu in
  8640. powerpc)
  8641. # see comment about AmigaOS4 .so support
  8642. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8643. archive_expsym_cmds=''
  8644. ;;
  8645. m68k)
  8646. 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)'
  8647. hardcode_libdir_flag_spec='-L$libdir'
  8648. hardcode_minus_L=yes
  8649. ;;
  8650. esac
  8651. ;;
  8652. beos*)
  8653. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8654. allow_undefined_flag=unsupported
  8655. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8656. # support --undefined. This deserves some investigation. FIXME
  8657. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8658. else
  8659. ld_shlibs=no
  8660. fi
  8661. ;;
  8662. cygwin* | mingw* | pw32* | cegcc*)
  8663. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8664. # as there is no search path for DLLs.
  8665. hardcode_libdir_flag_spec='-L$libdir'
  8666. export_dynamic_flag_spec='$wl--export-all-symbols'
  8667. allow_undefined_flag=unsupported
  8668. always_export_symbols=no
  8669. enable_shared_with_static_runtimes=yes
  8670. 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'
  8671. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8672. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8673. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8674. # If the export-symbols file already is a .def file, use it as
  8675. # is; otherwise, prepend EXPORTS...
  8676. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8677. cp $export_symbols $output_objdir/$soname.def;
  8678. else
  8679. echo EXPORTS > $output_objdir/$soname.def;
  8680. cat $export_symbols >> $output_objdir/$soname.def;
  8681. fi~
  8682. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8683. else
  8684. ld_shlibs=no
  8685. fi
  8686. ;;
  8687. haiku*)
  8688. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8689. link_all_deplibs=yes
  8690. ;;
  8691. os2*)
  8692. hardcode_libdir_flag_spec='-L$libdir'
  8693. hardcode_minus_L=yes
  8694. allow_undefined_flag=unsupported
  8695. shrext_cmds=.dll
  8696. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8697. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8698. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8699. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8700. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8701. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8702. emximp -o $lib $output_objdir/$libname.def'
  8703. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8704. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8705. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8706. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8707. prefix_cmds="$SED"~
  8708. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8709. prefix_cmds="$prefix_cmds -e 1d";
  8710. fi~
  8711. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8712. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8713. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8714. emximp -o $lib $output_objdir/$libname.def'
  8715. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8716. enable_shared_with_static_runtimes=yes
  8717. file_list_spec='@'
  8718. ;;
  8719. interix[3-9]*)
  8720. hardcode_direct=no
  8721. hardcode_shlibpath_var=no
  8722. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8723. export_dynamic_flag_spec='$wl-E'
  8724. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8725. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8726. # default) and relocated if they conflict, which is a slow very memory
  8727. # consuming and fragmenting process. To avoid this, we pick a random,
  8728. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8729. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8730. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8731. 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'
  8732. ;;
  8733. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8734. tmp_diet=no
  8735. if test linux-dietlibc = "$host_os"; then
  8736. case $cc_basename in
  8737. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8738. esac
  8739. fi
  8740. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8741. && test no = "$tmp_diet"
  8742. then
  8743. tmp_addflag=' $pic_flag'
  8744. tmp_sharedflag='-shared'
  8745. case $cc_basename,$host_cpu in
  8746. pgcc*) # Portland Group C compiler
  8747. 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'
  8748. tmp_addflag=' $pic_flag'
  8749. ;;
  8750. pgf77* | pgf90* | pgf95* | pgfortran*)
  8751. # Portland Group f77 and f90 compilers
  8752. 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'
  8753. tmp_addflag=' $pic_flag -Mnomain' ;;
  8754. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8755. tmp_addflag=' -i_dynamic' ;;
  8756. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8757. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8758. ifc* | ifort*) # Intel Fortran compiler
  8759. tmp_addflag=' -nofor_main' ;;
  8760. lf95*) # Lahey Fortran 8.1
  8761. whole_archive_flag_spec=
  8762. tmp_sharedflag='--shared' ;;
  8763. nagfor*) # NAGFOR 5.3
  8764. tmp_sharedflag='-Wl,-shared' ;;
  8765. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8766. tmp_sharedflag='-qmkshrobj'
  8767. tmp_addflag= ;;
  8768. nvcc*) # Cuda Compiler Driver 2.2
  8769. 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'
  8770. compiler_needs_object=yes
  8771. ;;
  8772. esac
  8773. case `$CC -V 2>&1 | sed 5q` in
  8774. *Sun\ C*) # Sun C 5.9
  8775. 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'
  8776. compiler_needs_object=yes
  8777. tmp_sharedflag='-G' ;;
  8778. *Sun\ F*) # Sun Fortran 8.3
  8779. tmp_sharedflag='-G' ;;
  8780. esac
  8781. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8782. if test yes = "$supports_anon_versioning"; then
  8783. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8784. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8785. echo "local: *; };" >> $output_objdir/$libname.ver~
  8786. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8787. fi
  8788. case $cc_basename in
  8789. tcc*)
  8790. export_dynamic_flag_spec='-rdynamic'
  8791. ;;
  8792. xlf* | bgf* | bgxlf* | mpixlf*)
  8793. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8794. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8795. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8796. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8797. if test yes = "$supports_anon_versioning"; then
  8798. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8799. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8800. echo "local: *; };" >> $output_objdir/$libname.ver~
  8801. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8802. fi
  8803. ;;
  8804. esac
  8805. else
  8806. ld_shlibs=no
  8807. fi
  8808. ;;
  8809. netbsd*)
  8810. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8811. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8812. wlarc=
  8813. else
  8814. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8815. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8816. fi
  8817. ;;
  8818. solaris*)
  8819. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8820. ld_shlibs=no
  8821. cat <<_LT_EOF 1>&2
  8822. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8823. *** create shared libraries on Solaris systems. Therefore, libtool
  8824. *** is disabling shared libraries support. We urge you to upgrade GNU
  8825. *** binutils to release 2.9.1 or newer. Another option is to modify
  8826. *** your PATH or compiler configuration so that the native linker is
  8827. *** used, and then restart.
  8828. _LT_EOF
  8829. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8830. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8831. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8832. else
  8833. ld_shlibs=no
  8834. fi
  8835. ;;
  8836. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8837. case `$LD -v 2>&1` in
  8838. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8839. ld_shlibs=no
  8840. cat <<_LT_EOF 1>&2
  8841. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8842. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8843. *** is disabling shared libraries support. We urge you to upgrade GNU
  8844. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8845. *** your PATH or compiler configuration so that the native linker is
  8846. *** used, and then restart.
  8847. _LT_EOF
  8848. ;;
  8849. *)
  8850. # For security reasons, it is highly recommended that you always
  8851. # use absolute paths for naming shared libraries, and exclude the
  8852. # DT_RUNPATH tag from executables and libraries. But doing so
  8853. # requires that you compile everything twice, which is a pain.
  8854. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8855. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8856. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8857. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8858. else
  8859. ld_shlibs=no
  8860. fi
  8861. ;;
  8862. esac
  8863. ;;
  8864. sunos4*)
  8865. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8866. wlarc=
  8867. hardcode_direct=yes
  8868. hardcode_shlibpath_var=no
  8869. ;;
  8870. *)
  8871. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8872. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8873. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8874. else
  8875. ld_shlibs=no
  8876. fi
  8877. ;;
  8878. esac
  8879. if test no = "$ld_shlibs"; then
  8880. runpath_var=
  8881. hardcode_libdir_flag_spec=
  8882. export_dynamic_flag_spec=
  8883. whole_archive_flag_spec=
  8884. fi
  8885. else
  8886. # PORTME fill in a description of your system's linker (not GNU ld)
  8887. case $host_os in
  8888. aix3*)
  8889. allow_undefined_flag=unsupported
  8890. always_export_symbols=yes
  8891. 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'
  8892. # Note: this linker hardcodes the directories in LIBPATH if there
  8893. # are no directories specified by -L.
  8894. hardcode_minus_L=yes
  8895. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8896. # Neither direct hardcoding nor static linking is supported with a
  8897. # broken collect2.
  8898. hardcode_direct=unsupported
  8899. fi
  8900. ;;
  8901. aix[4-9]*)
  8902. if test ia64 = "$host_cpu"; then
  8903. # On IA64, the linker does run time linking by default, so we don't
  8904. # have to do anything special.
  8905. aix_use_runtimelinking=no
  8906. exp_sym_flag='-Bexport'
  8907. no_entry_flag=
  8908. else
  8909. # If we're using GNU nm, then we don't want the "-C" option.
  8910. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8911. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8912. # weak defined symbols like other global defined symbols, whereas
  8913. # GNU nm marks them as "W".
  8914. # While the 'weak' keyword is ignored in the Export File, we need
  8915. # it in the Import File for the 'aix-soname' feature, so we have
  8916. # to replace the "-B" option with "-P" for AIX nm.
  8917. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8918. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8919. else
  8920. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8921. fi
  8922. aix_use_runtimelinking=no
  8923. # Test if we are trying to use run time linking or normal
  8924. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8925. # have runtime linking enabled, and use it for executables.
  8926. # For shared libraries, we enable/disable runtime linking
  8927. # depending on the kind of the shared library created -
  8928. # when "with_aix_soname,aix_use_runtimelinking" is:
  8929. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8930. # "aix,yes" lib.so shared, rtl:yes, for executables
  8931. # lib.a static archive
  8932. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8933. # lib.a(lib.so.V) shared, rtl:no, for executables
  8934. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8935. # lib.a(lib.so.V) shared, rtl:no
  8936. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8937. # lib.a static archive
  8938. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8939. for ld_flag in $LDFLAGS; do
  8940. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8941. aix_use_runtimelinking=yes
  8942. break
  8943. fi
  8944. done
  8945. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8946. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8947. # so we don't have lib.a shared libs to link our executables.
  8948. # We have to force runtime linking in this case.
  8949. aix_use_runtimelinking=yes
  8950. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8951. fi
  8952. ;;
  8953. esac
  8954. exp_sym_flag='-bexport'
  8955. no_entry_flag='-bnoentry'
  8956. fi
  8957. # When large executables or shared objects are built, AIX ld can
  8958. # have problems creating the table of contents. If linking a library
  8959. # or program results in "error TOC overflow" add -mminimal-toc to
  8960. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8961. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8962. archive_cmds=''
  8963. hardcode_direct=yes
  8964. hardcode_direct_absolute=yes
  8965. hardcode_libdir_separator=':'
  8966. link_all_deplibs=yes
  8967. file_list_spec='$wl-f,'
  8968. case $with_aix_soname,$aix_use_runtimelinking in
  8969. aix,*) ;; # traditional, no import file
  8970. svr4,* | *,yes) # use import file
  8971. # The Import File defines what to hardcode.
  8972. hardcode_direct=no
  8973. hardcode_direct_absolute=no
  8974. ;;
  8975. esac
  8976. if test yes = "$GCC"; then
  8977. case $host_os in aix4.[012]|aix4.[012].*)
  8978. # We only want to do this on AIX 4.2 and lower, the check
  8979. # below for broken collect2 doesn't work under 4.3+
  8980. collect2name=`$CC -print-prog-name=collect2`
  8981. if test -f "$collect2name" &&
  8982. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8983. then
  8984. # We have reworked collect2
  8985. :
  8986. else
  8987. # We have old collect2
  8988. hardcode_direct=unsupported
  8989. # It fails to find uninstalled libraries when the uninstalled
  8990. # path is not listed in the libpath. Setting hardcode_minus_L
  8991. # to unsupported forces relinking
  8992. hardcode_minus_L=yes
  8993. hardcode_libdir_flag_spec='-L$libdir'
  8994. hardcode_libdir_separator=
  8995. fi
  8996. ;;
  8997. esac
  8998. shared_flag='-shared'
  8999. if test yes = "$aix_use_runtimelinking"; then
  9000. shared_flag="$shared_flag "'$wl-G'
  9001. fi
  9002. # Need to ensure runtime linking is disabled for the traditional
  9003. # shared library, or the linker may eventually find shared libraries
  9004. # /with/ Import File - we do not want to mix them.
  9005. shared_flag_aix='-shared'
  9006. shared_flag_svr4='-shared $wl-G'
  9007. else
  9008. # not using gcc
  9009. if test ia64 = "$host_cpu"; then
  9010. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9011. # chokes on -Wl,-G. The following line is correct:
  9012. shared_flag='-G'
  9013. else
  9014. if test yes = "$aix_use_runtimelinking"; then
  9015. shared_flag='$wl-G'
  9016. else
  9017. shared_flag='$wl-bM:SRE'
  9018. fi
  9019. shared_flag_aix='$wl-bM:SRE'
  9020. shared_flag_svr4='$wl-G'
  9021. fi
  9022. fi
  9023. export_dynamic_flag_spec='$wl-bexpall'
  9024. # It seems that -bexpall does not export symbols beginning with
  9025. # underscore (_), so it is better to generate a list of symbols to export.
  9026. always_export_symbols=yes
  9027. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9028. # Warning - without using the other runtime loading flags (-brtl),
  9029. # -berok will link without error, but may produce a broken library.
  9030. allow_undefined_flag='-berok'
  9031. # Determine the default libpath from the value encoded in an
  9032. # empty executable.
  9033. if test set = "${lt_cv_aix_libpath+set}"; then
  9034. aix_libpath=$lt_cv_aix_libpath
  9035. else
  9036. if test ${lt_cv_aix_libpath_+y}
  9037. then :
  9038. printf %s "(cached) " >&6
  9039. else $as_nop
  9040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9041. /* end confdefs.h. */
  9042. int
  9043. main (void)
  9044. {
  9045. ;
  9046. return 0;
  9047. }
  9048. _ACEOF
  9049. if ac_fn_c_try_link "$LINENO"
  9050. then :
  9051. lt_aix_libpath_sed='
  9052. /Import File Strings/,/^$/ {
  9053. /^0/ {
  9054. s/^0 *\([^ ]*\) *$/\1/
  9055. p
  9056. }
  9057. }'
  9058. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9059. # Check for a 64-bit object if we didn't find anything.
  9060. if test -z "$lt_cv_aix_libpath_"; then
  9061. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9062. fi
  9063. fi
  9064. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9065. conftest$ac_exeext conftest.$ac_ext
  9066. if test -z "$lt_cv_aix_libpath_"; then
  9067. lt_cv_aix_libpath_=/usr/lib:/lib
  9068. fi
  9069. fi
  9070. aix_libpath=$lt_cv_aix_libpath_
  9071. fi
  9072. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9073. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9074. else
  9075. if test ia64 = "$host_cpu"; then
  9076. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9077. allow_undefined_flag="-z nodefs"
  9078. 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"
  9079. else
  9080. # Determine the default libpath from the value encoded in an
  9081. # empty executable.
  9082. if test set = "${lt_cv_aix_libpath+set}"; then
  9083. aix_libpath=$lt_cv_aix_libpath
  9084. else
  9085. if test ${lt_cv_aix_libpath_+y}
  9086. then :
  9087. printf %s "(cached) " >&6
  9088. else $as_nop
  9089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9090. /* end confdefs.h. */
  9091. int
  9092. main (void)
  9093. {
  9094. ;
  9095. return 0;
  9096. }
  9097. _ACEOF
  9098. if ac_fn_c_try_link "$LINENO"
  9099. then :
  9100. lt_aix_libpath_sed='
  9101. /Import File Strings/,/^$/ {
  9102. /^0/ {
  9103. s/^0 *\([^ ]*\) *$/\1/
  9104. p
  9105. }
  9106. }'
  9107. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9108. # Check for a 64-bit object if we didn't find anything.
  9109. if test -z "$lt_cv_aix_libpath_"; then
  9110. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9111. fi
  9112. fi
  9113. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9114. conftest$ac_exeext conftest.$ac_ext
  9115. if test -z "$lt_cv_aix_libpath_"; then
  9116. lt_cv_aix_libpath_=/usr/lib:/lib
  9117. fi
  9118. fi
  9119. aix_libpath=$lt_cv_aix_libpath_
  9120. fi
  9121. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9122. # Warning - without using the other run time loading flags,
  9123. # -berok will link without error, but may produce a broken library.
  9124. no_undefined_flag=' $wl-bernotok'
  9125. allow_undefined_flag=' $wl-berok'
  9126. if test yes = "$with_gnu_ld"; then
  9127. # We only use this code for GNU lds that support --whole-archive.
  9128. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9129. else
  9130. # Exported symbols can be pulled into shared objects from archives
  9131. whole_archive_flag_spec='$convenience'
  9132. fi
  9133. archive_cmds_need_lc=yes
  9134. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9135. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9136. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9137. if test svr4 != "$with_aix_soname"; then
  9138. # This is similar to how AIX traditionally builds its shared libraries.
  9139. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9140. fi
  9141. if test aix != "$with_aix_soname"; then
  9142. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9143. else
  9144. # used by -dlpreopen to get the symbols
  9145. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9146. fi
  9147. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9148. fi
  9149. fi
  9150. ;;
  9151. amigaos*)
  9152. case $host_cpu in
  9153. powerpc)
  9154. # see comment about AmigaOS4 .so support
  9155. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9156. archive_expsym_cmds=''
  9157. ;;
  9158. m68k)
  9159. 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)'
  9160. hardcode_libdir_flag_spec='-L$libdir'
  9161. hardcode_minus_L=yes
  9162. ;;
  9163. esac
  9164. ;;
  9165. bsdi[45]*)
  9166. export_dynamic_flag_spec=-rdynamic
  9167. ;;
  9168. cygwin* | mingw* | pw32* | cegcc*)
  9169. # When not using gcc, we currently assume that we are using
  9170. # Microsoft Visual C++.
  9171. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9172. # no search path for DLLs.
  9173. case $cc_basename in
  9174. cl*)
  9175. # Native MSVC
  9176. hardcode_libdir_flag_spec=' '
  9177. allow_undefined_flag=unsupported
  9178. always_export_symbols=yes
  9179. file_list_spec='@'
  9180. # Tell ltmain to make .lib files, not .a files.
  9181. libext=lib
  9182. # Tell ltmain to make .dll files, not .so files.
  9183. shrext_cmds=.dll
  9184. # FIXME: Setting linknames here is a bad hack.
  9185. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9186. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9187. cp "$export_symbols" "$output_objdir/$soname.def";
  9188. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9189. else
  9190. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9191. fi~
  9192. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9193. linknames='
  9194. # The linker will not automatically build a static lib if we build a DLL.
  9195. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9196. enable_shared_with_static_runtimes=yes
  9197. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9198. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9199. # Don't use ranlib
  9200. old_postinstall_cmds='chmod 644 $oldlib'
  9201. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9202. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9203. case $lt_outputfile in
  9204. *.exe|*.EXE) ;;
  9205. *)
  9206. lt_outputfile=$lt_outputfile.exe
  9207. lt_tool_outputfile=$lt_tool_outputfile.exe
  9208. ;;
  9209. esac~
  9210. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9211. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9212. $RM "$lt_outputfile.manifest";
  9213. fi'
  9214. ;;
  9215. *)
  9216. # Assume MSVC wrapper
  9217. hardcode_libdir_flag_spec=' '
  9218. allow_undefined_flag=unsupported
  9219. # Tell ltmain to make .lib files, not .a files.
  9220. libext=lib
  9221. # Tell ltmain to make .dll files, not .so files.
  9222. shrext_cmds=.dll
  9223. # FIXME: Setting linknames here is a bad hack.
  9224. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9225. # The linker will automatically build a .lib file if we build a DLL.
  9226. old_archive_from_new_cmds='true'
  9227. # FIXME: Should let the user specify the lib program.
  9228. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9229. enable_shared_with_static_runtimes=yes
  9230. ;;
  9231. esac
  9232. ;;
  9233. darwin* | rhapsody*)
  9234. archive_cmds_need_lc=no
  9235. hardcode_direct=no
  9236. hardcode_automatic=yes
  9237. hardcode_shlibpath_var=unsupported
  9238. if test yes = "$lt_cv_ld_force_load"; then
  9239. 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\"`'
  9240. else
  9241. whole_archive_flag_spec=''
  9242. fi
  9243. link_all_deplibs=yes
  9244. allow_undefined_flag=$_lt_dar_allow_undefined
  9245. case $cc_basename in
  9246. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9247. *) _lt_dar_can_shared=$GCC ;;
  9248. esac
  9249. if test yes = "$_lt_dar_can_shared"; then
  9250. output_verbose_link_cmd=func_echo_all
  9251. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9252. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9253. 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"
  9254. 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"
  9255. else
  9256. ld_shlibs=no
  9257. fi
  9258. ;;
  9259. dgux*)
  9260. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9261. hardcode_libdir_flag_spec='-L$libdir'
  9262. hardcode_shlibpath_var=no
  9263. ;;
  9264. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9265. # support. Future versions do this automatically, but an explicit c++rt0.o
  9266. # does not break anything, and helps significantly (at the cost of a little
  9267. # extra space).
  9268. freebsd2.2*)
  9269. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9270. hardcode_libdir_flag_spec='-R$libdir'
  9271. hardcode_direct=yes
  9272. hardcode_shlibpath_var=no
  9273. ;;
  9274. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9275. freebsd2.*)
  9276. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9277. hardcode_direct=yes
  9278. hardcode_minus_L=yes
  9279. hardcode_shlibpath_var=no
  9280. ;;
  9281. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9282. freebsd* | dragonfly* | midnightbsd*)
  9283. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9284. hardcode_libdir_flag_spec='-R$libdir'
  9285. hardcode_direct=yes
  9286. hardcode_shlibpath_var=no
  9287. ;;
  9288. hpux9*)
  9289. if test yes = "$GCC"; then
  9290. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9291. else
  9292. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9293. fi
  9294. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9295. hardcode_libdir_separator=:
  9296. hardcode_direct=yes
  9297. # hardcode_minus_L: Not really in the search PATH,
  9298. # but as the default location of the library.
  9299. hardcode_minus_L=yes
  9300. export_dynamic_flag_spec='$wl-E'
  9301. ;;
  9302. hpux10*)
  9303. if test yes,no = "$GCC,$with_gnu_ld"; then
  9304. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9305. else
  9306. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9307. fi
  9308. if test no = "$with_gnu_ld"; then
  9309. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9310. hardcode_libdir_separator=:
  9311. hardcode_direct=yes
  9312. hardcode_direct_absolute=yes
  9313. export_dynamic_flag_spec='$wl-E'
  9314. # hardcode_minus_L: Not really in the search PATH,
  9315. # but as the default location of the library.
  9316. hardcode_minus_L=yes
  9317. fi
  9318. ;;
  9319. hpux11*)
  9320. if test yes,no = "$GCC,$with_gnu_ld"; then
  9321. case $host_cpu in
  9322. hppa*64*)
  9323. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9324. ;;
  9325. ia64*)
  9326. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9327. ;;
  9328. *)
  9329. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9330. ;;
  9331. esac
  9332. else
  9333. case $host_cpu in
  9334. hppa*64*)
  9335. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9336. ;;
  9337. ia64*)
  9338. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9339. ;;
  9340. *)
  9341. # Older versions of the 11.00 compiler do not understand -b yet
  9342. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9344. printf %s "checking if $CC understands -b... " >&6; }
  9345. if test ${lt_cv_prog_compiler__b+y}
  9346. then :
  9347. printf %s "(cached) " >&6
  9348. else $as_nop
  9349. lt_cv_prog_compiler__b=no
  9350. save_LDFLAGS=$LDFLAGS
  9351. LDFLAGS="$LDFLAGS -b"
  9352. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9353. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9354. # The linker can only warn and ignore the option if not recognized
  9355. # So say no if there are warnings
  9356. if test -s conftest.err; then
  9357. # Append any errors to the config.log.
  9358. cat conftest.err 1>&5
  9359. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9360. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9361. if diff conftest.exp conftest.er2 >/dev/null; then
  9362. lt_cv_prog_compiler__b=yes
  9363. fi
  9364. else
  9365. lt_cv_prog_compiler__b=yes
  9366. fi
  9367. fi
  9368. $RM -r conftest*
  9369. LDFLAGS=$save_LDFLAGS
  9370. fi
  9371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9372. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9373. if test yes = "$lt_cv_prog_compiler__b"; then
  9374. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9375. else
  9376. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9377. fi
  9378. ;;
  9379. esac
  9380. fi
  9381. if test no = "$with_gnu_ld"; then
  9382. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9383. hardcode_libdir_separator=:
  9384. case $host_cpu in
  9385. hppa*64*|ia64*)
  9386. hardcode_direct=no
  9387. hardcode_shlibpath_var=no
  9388. ;;
  9389. *)
  9390. hardcode_direct=yes
  9391. hardcode_direct_absolute=yes
  9392. export_dynamic_flag_spec='$wl-E'
  9393. # hardcode_minus_L: Not really in the search PATH,
  9394. # but as the default location of the library.
  9395. hardcode_minus_L=yes
  9396. ;;
  9397. esac
  9398. fi
  9399. ;;
  9400. irix5* | irix6* | nonstopux*)
  9401. if test yes = "$GCC"; then
  9402. 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'
  9403. # Try to use the -exported_symbol ld option, if it does not
  9404. # work, assume that -exports_file does not work either and
  9405. # implicitly export all symbols.
  9406. # This should be the same for all languages, so no per-tag cache variable.
  9407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9408. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9409. if test ${lt_cv_irix_exported_symbol+y}
  9410. then :
  9411. printf %s "(cached) " >&6
  9412. else $as_nop
  9413. save_LDFLAGS=$LDFLAGS
  9414. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9416. /* end confdefs.h. */
  9417. int foo (void) { return 0; }
  9418. _ACEOF
  9419. if ac_fn_c_try_link "$LINENO"
  9420. then :
  9421. lt_cv_irix_exported_symbol=yes
  9422. else $as_nop
  9423. lt_cv_irix_exported_symbol=no
  9424. fi
  9425. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9426. conftest$ac_exeext conftest.$ac_ext
  9427. LDFLAGS=$save_LDFLAGS
  9428. fi
  9429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9430. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9431. if test yes = "$lt_cv_irix_exported_symbol"; then
  9432. 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'
  9433. fi
  9434. else
  9435. 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'
  9436. 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'
  9437. fi
  9438. archive_cmds_need_lc='no'
  9439. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9440. hardcode_libdir_separator=:
  9441. inherit_rpath=yes
  9442. link_all_deplibs=yes
  9443. ;;
  9444. linux*)
  9445. case $cc_basename in
  9446. tcc*)
  9447. # Fabrice Bellard et al's Tiny C Compiler
  9448. ld_shlibs=yes
  9449. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9450. ;;
  9451. esac
  9452. ;;
  9453. netbsd*)
  9454. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9455. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9456. else
  9457. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9458. fi
  9459. hardcode_libdir_flag_spec='-R$libdir'
  9460. hardcode_direct=yes
  9461. hardcode_shlibpath_var=no
  9462. ;;
  9463. newsos6)
  9464. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9465. hardcode_direct=yes
  9466. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9467. hardcode_libdir_separator=:
  9468. hardcode_shlibpath_var=no
  9469. ;;
  9470. *nto* | *qnx*)
  9471. ;;
  9472. openbsd* | bitrig*)
  9473. if test -f /usr/libexec/ld.so; then
  9474. hardcode_direct=yes
  9475. hardcode_shlibpath_var=no
  9476. hardcode_direct_absolute=yes
  9477. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9478. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9479. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9480. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9481. export_dynamic_flag_spec='$wl-E'
  9482. else
  9483. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9484. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9485. fi
  9486. else
  9487. ld_shlibs=no
  9488. fi
  9489. ;;
  9490. os2*)
  9491. hardcode_libdir_flag_spec='-L$libdir'
  9492. hardcode_minus_L=yes
  9493. allow_undefined_flag=unsupported
  9494. shrext_cmds=.dll
  9495. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9496. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9497. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9498. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9499. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9500. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9501. emximp -o $lib $output_objdir/$libname.def'
  9502. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9503. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9504. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9505. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9506. prefix_cmds="$SED"~
  9507. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9508. prefix_cmds="$prefix_cmds -e 1d";
  9509. fi~
  9510. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9511. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9512. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9513. emximp -o $lib $output_objdir/$libname.def'
  9514. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9515. enable_shared_with_static_runtimes=yes
  9516. file_list_spec='@'
  9517. ;;
  9518. osf3*)
  9519. if test yes = "$GCC"; then
  9520. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9521. 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'
  9522. else
  9523. allow_undefined_flag=' -expect_unresolved \*'
  9524. 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'
  9525. fi
  9526. archive_cmds_need_lc='no'
  9527. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9528. hardcode_libdir_separator=:
  9529. ;;
  9530. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9531. if test yes = "$GCC"; then
  9532. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9533. 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'
  9534. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9535. else
  9536. allow_undefined_flag=' -expect_unresolved \*'
  9537. 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'
  9538. 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~
  9539. $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'
  9540. # Both c and cxx compiler support -rpath directly
  9541. hardcode_libdir_flag_spec='-rpath $libdir'
  9542. fi
  9543. archive_cmds_need_lc='no'
  9544. hardcode_libdir_separator=:
  9545. ;;
  9546. solaris*)
  9547. no_undefined_flag=' -z defs'
  9548. if test yes = "$GCC"; then
  9549. wlarc='$wl'
  9550. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9551. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9552. $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'
  9553. else
  9554. case `$CC -V 2>&1` in
  9555. *"Compilers 5.0"*)
  9556. wlarc=''
  9557. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9558. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9559. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9560. ;;
  9561. *)
  9562. wlarc='$wl'
  9563. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9564. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9565. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9566. ;;
  9567. esac
  9568. fi
  9569. hardcode_libdir_flag_spec='-R$libdir'
  9570. hardcode_shlibpath_var=no
  9571. case $host_os in
  9572. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9573. *)
  9574. # The compiler driver will combine and reorder linker options,
  9575. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9576. # but is careful enough not to reorder.
  9577. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9578. if test yes = "$GCC"; then
  9579. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9580. else
  9581. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9582. fi
  9583. ;;
  9584. esac
  9585. link_all_deplibs=yes
  9586. ;;
  9587. sunos4*)
  9588. if test sequent = "$host_vendor"; then
  9589. # Use $CC to link under sequent, because it throws in some extra .o
  9590. # files that make .init and .fini sections work.
  9591. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9592. else
  9593. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9594. fi
  9595. hardcode_libdir_flag_spec='-L$libdir'
  9596. hardcode_direct=yes
  9597. hardcode_minus_L=yes
  9598. hardcode_shlibpath_var=no
  9599. ;;
  9600. sysv4)
  9601. case $host_vendor in
  9602. sni)
  9603. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9604. hardcode_direct=yes # is this really true???
  9605. ;;
  9606. siemens)
  9607. ## LD is ld it makes a PLAMLIB
  9608. ## CC just makes a GrossModule.
  9609. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9610. reload_cmds='$CC -r -o $output$reload_objs'
  9611. hardcode_direct=no
  9612. ;;
  9613. motorola)
  9614. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9615. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9616. ;;
  9617. esac
  9618. runpath_var='LD_RUN_PATH'
  9619. hardcode_shlibpath_var=no
  9620. ;;
  9621. sysv4.3*)
  9622. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9623. hardcode_shlibpath_var=no
  9624. export_dynamic_flag_spec='-Bexport'
  9625. ;;
  9626. sysv4*MP*)
  9627. if test -d /usr/nec; then
  9628. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9629. hardcode_shlibpath_var=no
  9630. runpath_var=LD_RUN_PATH
  9631. hardcode_runpath_var=yes
  9632. ld_shlibs=yes
  9633. fi
  9634. ;;
  9635. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9636. no_undefined_flag='$wl-z,text'
  9637. archive_cmds_need_lc=no
  9638. hardcode_shlibpath_var=no
  9639. runpath_var='LD_RUN_PATH'
  9640. if test yes = "$GCC"; then
  9641. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9642. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9643. else
  9644. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9645. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9646. fi
  9647. ;;
  9648. sysv5* | sco3.2v5* | sco5v6*)
  9649. # Note: We CANNOT use -z defs as we might desire, because we do not
  9650. # link with -lc, and that would cause any symbols used from libc to
  9651. # always be unresolved, which means just about no library would
  9652. # ever link correctly. If we're not using GNU ld we use -z text
  9653. # though, which does catch some bad symbols but isn't as heavy-handed
  9654. # as -z defs.
  9655. no_undefined_flag='$wl-z,text'
  9656. allow_undefined_flag='$wl-z,nodefs'
  9657. archive_cmds_need_lc=no
  9658. hardcode_shlibpath_var=no
  9659. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9660. hardcode_libdir_separator=':'
  9661. link_all_deplibs=yes
  9662. export_dynamic_flag_spec='$wl-Bexport'
  9663. runpath_var='LD_RUN_PATH'
  9664. if test yes = "$GCC"; then
  9665. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9666. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9667. else
  9668. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9669. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9670. fi
  9671. ;;
  9672. uts4*)
  9673. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9674. hardcode_libdir_flag_spec='-L$libdir'
  9675. hardcode_shlibpath_var=no
  9676. ;;
  9677. *)
  9678. ld_shlibs=no
  9679. ;;
  9680. esac
  9681. if test sni = "$host_vendor"; then
  9682. case $host in
  9683. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9684. export_dynamic_flag_spec='$wl-Blargedynsym'
  9685. ;;
  9686. esac
  9687. fi
  9688. fi
  9689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9690. printf "%s\n" "$ld_shlibs" >&6; }
  9691. test no = "$ld_shlibs" && can_build_shared=no
  9692. with_gnu_ld=$with_gnu_ld
  9693. #
  9694. # Do we need to explicitly link libc?
  9695. #
  9696. case "x$archive_cmds_need_lc" in
  9697. x|xyes)
  9698. # Assume -lc should be added
  9699. archive_cmds_need_lc=yes
  9700. if test yes,yes = "$GCC,$enable_shared"; then
  9701. case $archive_cmds in
  9702. *'~'*)
  9703. # FIXME: we may have to deal with multi-command sequences.
  9704. ;;
  9705. '$CC '*)
  9706. # Test whether the compiler implicitly links with -lc since on some
  9707. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9708. # to ld, don't add -lc before -lgcc.
  9709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9710. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9711. if test ${lt_cv_archive_cmds_need_lc+y}
  9712. then :
  9713. printf %s "(cached) " >&6
  9714. else $as_nop
  9715. $RM conftest*
  9716. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9717. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9718. (eval $ac_compile) 2>&5
  9719. ac_status=$?
  9720. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9721. test $ac_status = 0; } 2>conftest.err; then
  9722. soname=conftest
  9723. lib=conftest
  9724. libobjs=conftest.$ac_objext
  9725. deplibs=
  9726. wl=$lt_prog_compiler_wl
  9727. pic_flag=$lt_prog_compiler_pic
  9728. compiler_flags=-v
  9729. linker_flags=-v
  9730. verstring=
  9731. output_objdir=.
  9732. libname=conftest
  9733. lt_save_allow_undefined_flag=$allow_undefined_flag
  9734. allow_undefined_flag=
  9735. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9736. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9737. ac_status=$?
  9738. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9739. test $ac_status = 0; }
  9740. then
  9741. lt_cv_archive_cmds_need_lc=no
  9742. else
  9743. lt_cv_archive_cmds_need_lc=yes
  9744. fi
  9745. allow_undefined_flag=$lt_save_allow_undefined_flag
  9746. else
  9747. cat conftest.err 1>&5
  9748. fi
  9749. $RM conftest*
  9750. fi
  9751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9752. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9753. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9754. ;;
  9755. esac
  9756. fi
  9757. ;;
  9758. esac
  9759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9760. printf %s "checking dynamic linker characteristics... " >&6; }
  9761. if test yes = "$GCC"; then
  9762. case $host_os in
  9763. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9764. *) lt_awk_arg='/^libraries:/' ;;
  9765. esac
  9766. case $host_os in
  9767. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9768. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9769. esac
  9770. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9771. case $lt_search_path_spec in
  9772. *\;*)
  9773. # if the path contains ";" then we assume it to be the separator
  9774. # otherwise default to the standard path separator (i.e. ":") - it is
  9775. # assumed that no part of a normal pathname contains ";" but that should
  9776. # okay in the real world where ";" in dirpaths is itself problematic.
  9777. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9778. ;;
  9779. *)
  9780. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9781. ;;
  9782. esac
  9783. # Ok, now we have the path, separated by spaces, we can step through it
  9784. # and add multilib dir if necessary...
  9785. lt_tmp_lt_search_path_spec=
  9786. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9787. # ...but if some path component already ends with the multilib dir we assume
  9788. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9789. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9790. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9791. lt_multi_os_dir=
  9792. ;;
  9793. esac
  9794. for lt_sys_path in $lt_search_path_spec; do
  9795. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9796. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9797. elif test -n "$lt_multi_os_dir"; then
  9798. test -d "$lt_sys_path" && \
  9799. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9800. fi
  9801. done
  9802. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9803. BEGIN {RS = " "; FS = "/|\n";} {
  9804. lt_foo = "";
  9805. lt_count = 0;
  9806. for (lt_i = NF; lt_i > 0; lt_i--) {
  9807. if ($lt_i != "" && $lt_i != ".") {
  9808. if ($lt_i == "..") {
  9809. lt_count++;
  9810. } else {
  9811. if (lt_count == 0) {
  9812. lt_foo = "/" $lt_i lt_foo;
  9813. } else {
  9814. lt_count--;
  9815. }
  9816. }
  9817. }
  9818. }
  9819. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9820. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9821. }'`
  9822. # AWK program above erroneously prepends '/' to C:/dos/paths
  9823. # for these hosts.
  9824. case $host_os in
  9825. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9826. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9827. esac
  9828. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9829. else
  9830. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9831. fi
  9832. library_names_spec=
  9833. libname_spec='lib$name'
  9834. soname_spec=
  9835. shrext_cmds=.so
  9836. postinstall_cmds=
  9837. postuninstall_cmds=
  9838. finish_cmds=
  9839. finish_eval=
  9840. shlibpath_var=
  9841. shlibpath_overrides_runpath=unknown
  9842. version_type=none
  9843. dynamic_linker="$host_os ld.so"
  9844. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9845. need_lib_prefix=unknown
  9846. hardcode_into_libs=no
  9847. # when you set need_version to no, make sure it does not cause -set_version
  9848. # flags to be left without arguments
  9849. need_version=unknown
  9850. case $host_os in
  9851. aix3*)
  9852. version_type=linux # correct to gnu/linux during the next big refactor
  9853. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9854. shlibpath_var=LIBPATH
  9855. # AIX 3 has no versioning support, so we append a major version to the name.
  9856. soname_spec='$libname$release$shared_ext$major'
  9857. ;;
  9858. aix[4-9]*)
  9859. version_type=linux # correct to gnu/linux during the next big refactor
  9860. need_lib_prefix=no
  9861. need_version=no
  9862. hardcode_into_libs=yes
  9863. if test ia64 = "$host_cpu"; then
  9864. # AIX 5 supports IA64
  9865. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9866. shlibpath_var=LD_LIBRARY_PATH
  9867. else
  9868. # With GCC up to 2.95.x, collect2 would create an import file
  9869. # for dependence libraries. The import file would start with
  9870. # the line '#! .'. This would cause the generated library to
  9871. # depend on '.', always an invalid library. This was fixed in
  9872. # development snapshots of GCC prior to 3.0.
  9873. case $host_os in
  9874. aix4 | aix4.[01] | aix4.[01].*)
  9875. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9876. echo ' yes '
  9877. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9878. :
  9879. else
  9880. can_build_shared=no
  9881. fi
  9882. ;;
  9883. esac
  9884. # Using Import Files as archive members, it is possible to support
  9885. # filename-based versioning of shared library archives on AIX. While
  9886. # this would work for both with and without runtime linking, it will
  9887. # prevent static linking of such archives. So we do filename-based
  9888. # shared library versioning with .so extension only, which is used
  9889. # when both runtime linking and shared linking is enabled.
  9890. # Unfortunately, runtime linking may impact performance, so we do
  9891. # not want this to be the default eventually. Also, we use the
  9892. # versioned .so libs for executables only if there is the -brtl
  9893. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9894. # To allow for filename-based versioning support, we need to create
  9895. # libNAME.so.V as an archive file, containing:
  9896. # *) an Import File, referring to the versioned filename of the
  9897. # archive as well as the shared archive member, telling the
  9898. # bitwidth (32 or 64) of that shared object, and providing the
  9899. # list of exported symbols of that shared object, eventually
  9900. # decorated with the 'weak' keyword
  9901. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9902. # it being seen by the linker.
  9903. # At run time we better use the real file rather than another symlink,
  9904. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9905. case $with_aix_soname,$aix_use_runtimelinking in
  9906. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9907. # soname into executable. Probably we can add versioning support to
  9908. # collect2, so additional links can be useful in future.
  9909. aix,yes) # traditional libtool
  9910. dynamic_linker='AIX unversionable lib.so'
  9911. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9912. # instead of lib<name>.a to let people know that these are not
  9913. # typical AIX shared libraries.
  9914. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9915. ;;
  9916. aix,no) # traditional AIX only
  9917. dynamic_linker='AIX lib.a(lib.so.V)'
  9918. # We preserve .a as extension for shared libraries through AIX4.2
  9919. # and later when we are not doing run time linking.
  9920. library_names_spec='$libname$release.a $libname.a'
  9921. soname_spec='$libname$release$shared_ext$major'
  9922. ;;
  9923. svr4,*) # full svr4 only
  9924. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9925. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9926. # We do not specify a path in Import Files, so LIBPATH fires.
  9927. shlibpath_overrides_runpath=yes
  9928. ;;
  9929. *,yes) # both, prefer svr4
  9930. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9931. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9932. # unpreferred sharedlib libNAME.a needs extra handling
  9933. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9934. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9935. # We do not specify a path in Import Files, so LIBPATH fires.
  9936. shlibpath_overrides_runpath=yes
  9937. ;;
  9938. *,no) # both, prefer aix
  9939. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9940. library_names_spec='$libname$release.a $libname.a'
  9941. soname_spec='$libname$release$shared_ext$major'
  9942. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9943. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9944. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9945. ;;
  9946. esac
  9947. shlibpath_var=LIBPATH
  9948. fi
  9949. ;;
  9950. amigaos*)
  9951. case $host_cpu in
  9952. powerpc)
  9953. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9954. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9955. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9956. ;;
  9957. m68k)
  9958. library_names_spec='$libname.ixlibrary $libname.a'
  9959. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9960. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  9961. ;;
  9962. esac
  9963. ;;
  9964. beos*)
  9965. library_names_spec='$libname$shared_ext'
  9966. dynamic_linker="$host_os ld.so"
  9967. shlibpath_var=LIBRARY_PATH
  9968. ;;
  9969. bsdi[45]*)
  9970. version_type=linux # correct to gnu/linux during the next big refactor
  9971. need_version=no
  9972. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9973. soname_spec='$libname$release$shared_ext$major'
  9974. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9975. shlibpath_var=LD_LIBRARY_PATH
  9976. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9977. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9978. # the default ld.so.conf also contains /usr/contrib/lib and
  9979. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9980. # libtool to hard-code these into programs
  9981. ;;
  9982. cygwin* | mingw* | pw32* | cegcc*)
  9983. version_type=windows
  9984. shrext_cmds=.dll
  9985. need_version=no
  9986. need_lib_prefix=no
  9987. case $GCC,$cc_basename in
  9988. yes,*)
  9989. # gcc
  9990. library_names_spec='$libname.dll.a'
  9991. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9992. postinstall_cmds='base_file=`basename \$file`~
  9993. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9994. dldir=$destdir/`dirname \$dlpath`~
  9995. test -d \$dldir || mkdir -p \$dldir~
  9996. $install_prog $dir/$dlname \$dldir/$dlname~
  9997. chmod a+x \$dldir/$dlname~
  9998. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9999. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10000. fi'
  10001. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10002. dlpath=$dir/\$dldll~
  10003. $RM \$dlpath'
  10004. shlibpath_overrides_runpath=yes
  10005. case $host_os in
  10006. cygwin*)
  10007. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10008. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10009. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  10010. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10011. ;;
  10012. mingw* | cegcc*)
  10013. # MinGW DLLs use traditional 'lib' prefix
  10014. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10015. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10016. ;;
  10017. pw32*)
  10018. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10019. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10020. ;;
  10021. esac
  10022. dynamic_linker='Win32 ld.exe'
  10023. ;;
  10024. *,cl*)
  10025. # Native MSVC
  10026. libname_spec='$name'
  10027. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10028. library_names_spec='$libname.dll.lib'
  10029. case $build_os in
  10030. mingw*)
  10031. sys_lib_search_path_spec=
  10032. lt_save_ifs=$IFS
  10033. IFS=';'
  10034. for lt_path in $LIB
  10035. do
  10036. IFS=$lt_save_ifs
  10037. # Let DOS variable expansion print the short 8.3 style file name.
  10038. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10039. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10040. done
  10041. IFS=$lt_save_ifs
  10042. # Convert to MSYS style.
  10043. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10044. ;;
  10045. cygwin*)
  10046. # Convert to unix form, then to dos form, then back to unix form
  10047. # but this time dos style (no spaces!) so that the unix form looks
  10048. # like /cygdrive/c/PROGRA~1:/cygdr...
  10049. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10050. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10051. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10052. ;;
  10053. *)
  10054. sys_lib_search_path_spec=$LIB
  10055. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10056. # It is most probably a Windows format PATH.
  10057. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10058. else
  10059. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10060. fi
  10061. # FIXME: find the short name or the path components, as spaces are
  10062. # common. (e.g. "Program Files" -> "PROGRA~1")
  10063. ;;
  10064. esac
  10065. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10066. postinstall_cmds='base_file=`basename \$file`~
  10067. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10068. dldir=$destdir/`dirname \$dlpath`~
  10069. test -d \$dldir || mkdir -p \$dldir~
  10070. $install_prog $dir/$dlname \$dldir/$dlname'
  10071. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10072. dlpath=$dir/\$dldll~
  10073. $RM \$dlpath'
  10074. shlibpath_overrides_runpath=yes
  10075. dynamic_linker='Win32 link.exe'
  10076. ;;
  10077. *)
  10078. # Assume MSVC wrapper
  10079. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10080. dynamic_linker='Win32 ld.exe'
  10081. ;;
  10082. esac
  10083. # FIXME: first we should search . and the directory the executable is in
  10084. shlibpath_var=PATH
  10085. ;;
  10086. darwin* | rhapsody*)
  10087. dynamic_linker="$host_os dyld"
  10088. version_type=darwin
  10089. need_lib_prefix=no
  10090. need_version=no
  10091. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10092. soname_spec='$libname$release$major$shared_ext'
  10093. shlibpath_overrides_runpath=yes
  10094. shlibpath_var=DYLD_LIBRARY_PATH
  10095. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10096. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10097. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10098. ;;
  10099. dgux*)
  10100. version_type=linux # correct to gnu/linux during the next big refactor
  10101. need_lib_prefix=no
  10102. need_version=no
  10103. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10104. soname_spec='$libname$release$shared_ext$major'
  10105. shlibpath_var=LD_LIBRARY_PATH
  10106. ;;
  10107. freebsd* | dragonfly* | midnightbsd*)
  10108. # DragonFly does not have aout. When/if they implement a new
  10109. # versioning mechanism, adjust this.
  10110. if test -x /usr/bin/objformat; then
  10111. objformat=`/usr/bin/objformat`
  10112. else
  10113. case $host_os in
  10114. freebsd[23].*) objformat=aout ;;
  10115. *) objformat=elf ;;
  10116. esac
  10117. fi
  10118. version_type=freebsd-$objformat
  10119. case $version_type in
  10120. freebsd-elf*)
  10121. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10122. soname_spec='$libname$release$shared_ext$major'
  10123. need_version=no
  10124. need_lib_prefix=no
  10125. ;;
  10126. freebsd-*)
  10127. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10128. need_version=yes
  10129. ;;
  10130. esac
  10131. shlibpath_var=LD_LIBRARY_PATH
  10132. case $host_os in
  10133. freebsd2.*)
  10134. shlibpath_overrides_runpath=yes
  10135. ;;
  10136. freebsd3.[01]* | freebsdelf3.[01]*)
  10137. shlibpath_overrides_runpath=yes
  10138. hardcode_into_libs=yes
  10139. ;;
  10140. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10141. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10142. shlibpath_overrides_runpath=no
  10143. hardcode_into_libs=yes
  10144. ;;
  10145. *) # from 4.6 on, and DragonFly
  10146. shlibpath_overrides_runpath=yes
  10147. hardcode_into_libs=yes
  10148. ;;
  10149. esac
  10150. ;;
  10151. haiku*)
  10152. version_type=linux # correct to gnu/linux during the next big refactor
  10153. need_lib_prefix=no
  10154. need_version=no
  10155. dynamic_linker="$host_os runtime_loader"
  10156. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10157. soname_spec='$libname$release$shared_ext$major'
  10158. shlibpath_var=LIBRARY_PATH
  10159. shlibpath_overrides_runpath=no
  10160. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10161. hardcode_into_libs=yes
  10162. ;;
  10163. hpux9* | hpux10* | hpux11*)
  10164. # Give a soname corresponding to the major version so that dld.sl refuses to
  10165. # link against other versions.
  10166. version_type=sunos
  10167. need_lib_prefix=no
  10168. need_version=no
  10169. case $host_cpu in
  10170. ia64*)
  10171. shrext_cmds='.so'
  10172. hardcode_into_libs=yes
  10173. dynamic_linker="$host_os dld.so"
  10174. shlibpath_var=LD_LIBRARY_PATH
  10175. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10176. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10177. soname_spec='$libname$release$shared_ext$major'
  10178. if test 32 = "$HPUX_IA64_MODE"; then
  10179. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10180. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10181. else
  10182. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10183. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10184. fi
  10185. ;;
  10186. hppa*64*)
  10187. shrext_cmds='.sl'
  10188. hardcode_into_libs=yes
  10189. dynamic_linker="$host_os dld.sl"
  10190. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10191. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10192. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10193. soname_spec='$libname$release$shared_ext$major'
  10194. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10195. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10196. ;;
  10197. *)
  10198. shrext_cmds='.sl'
  10199. dynamic_linker="$host_os dld.sl"
  10200. shlibpath_var=SHLIB_PATH
  10201. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10202. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10203. soname_spec='$libname$release$shared_ext$major'
  10204. ;;
  10205. esac
  10206. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10207. postinstall_cmds='chmod 555 $lib'
  10208. # or fails outright, so override atomically:
  10209. install_override_mode=555
  10210. ;;
  10211. interix[3-9]*)
  10212. version_type=linux # correct to gnu/linux during the next big refactor
  10213. need_lib_prefix=no
  10214. need_version=no
  10215. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10216. soname_spec='$libname$release$shared_ext$major'
  10217. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10218. shlibpath_var=LD_LIBRARY_PATH
  10219. shlibpath_overrides_runpath=no
  10220. hardcode_into_libs=yes
  10221. ;;
  10222. irix5* | irix6* | nonstopux*)
  10223. case $host_os in
  10224. nonstopux*) version_type=nonstopux ;;
  10225. *)
  10226. if test yes = "$lt_cv_prog_gnu_ld"; then
  10227. version_type=linux # correct to gnu/linux during the next big refactor
  10228. else
  10229. version_type=irix
  10230. fi ;;
  10231. esac
  10232. need_lib_prefix=no
  10233. need_version=no
  10234. soname_spec='$libname$release$shared_ext$major'
  10235. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10236. case $host_os in
  10237. irix5* | nonstopux*)
  10238. libsuff= shlibsuff=
  10239. ;;
  10240. *)
  10241. case $LD in # libtool.m4 will add one of these switches to LD
  10242. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10243. libsuff= shlibsuff= libmagic=32-bit;;
  10244. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10245. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10246. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10247. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10248. *) libsuff= shlibsuff= libmagic=never-match;;
  10249. esac
  10250. ;;
  10251. esac
  10252. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10253. shlibpath_overrides_runpath=no
  10254. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10255. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10256. hardcode_into_libs=yes
  10257. ;;
  10258. # No shared lib support for Linux oldld, aout, or coff.
  10259. linux*oldld* | linux*aout* | linux*coff*)
  10260. dynamic_linker=no
  10261. ;;
  10262. linux*android*)
  10263. version_type=none # Android doesn't support versioned libraries.
  10264. need_lib_prefix=no
  10265. need_version=no
  10266. library_names_spec='$libname$release$shared_ext'
  10267. soname_spec='$libname$release$shared_ext'
  10268. finish_cmds=
  10269. shlibpath_var=LD_LIBRARY_PATH
  10270. shlibpath_overrides_runpath=yes
  10271. # This implies no fast_install, which is unacceptable.
  10272. # Some rework will be needed to allow for fast_install
  10273. # before this can be enabled.
  10274. hardcode_into_libs=yes
  10275. dynamic_linker='Android linker'
  10276. # Don't embed -rpath directories since the linker doesn't support them.
  10277. hardcode_libdir_flag_spec='-L$libdir'
  10278. ;;
  10279. # This must be glibc/ELF.
  10280. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10281. version_type=linux # correct to gnu/linux during the next big refactor
  10282. need_lib_prefix=no
  10283. need_version=no
  10284. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10285. soname_spec='$libname$release$shared_ext$major'
  10286. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10287. shlibpath_var=LD_LIBRARY_PATH
  10288. shlibpath_overrides_runpath=no
  10289. # Some binutils ld are patched to set DT_RUNPATH
  10290. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10291. then :
  10292. printf %s "(cached) " >&6
  10293. else $as_nop
  10294. lt_cv_shlibpath_overrides_runpath=no
  10295. save_LDFLAGS=$LDFLAGS
  10296. save_libdir=$libdir
  10297. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10298. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10300. /* end confdefs.h. */
  10301. int
  10302. main (void)
  10303. {
  10304. ;
  10305. return 0;
  10306. }
  10307. _ACEOF
  10308. if ac_fn_c_try_link "$LINENO"
  10309. then :
  10310. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10311. then :
  10312. lt_cv_shlibpath_overrides_runpath=yes
  10313. fi
  10314. fi
  10315. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10316. conftest$ac_exeext conftest.$ac_ext
  10317. LDFLAGS=$save_LDFLAGS
  10318. libdir=$save_libdir
  10319. fi
  10320. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10321. # This implies no fast_install, which is unacceptable.
  10322. # Some rework will be needed to allow for fast_install
  10323. # before this can be enabled.
  10324. hardcode_into_libs=yes
  10325. # Add ABI-specific directories to the system library path.
  10326. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10327. # Ideally, we could use ldconfig to report *all* directores which are
  10328. # searched for libraries, however this is still not possible. Aside from not
  10329. # being certain /sbin/ldconfig is available, command
  10330. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10331. # even though it is searched at run-time. Try to do the best guess by
  10332. # appending ld.so.conf contents (and includes) to the search path.
  10333. if test -f /etc/ld.so.conf; then
  10334. 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' ' '`
  10335. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10336. fi
  10337. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10338. # powerpc, because MkLinux only supported shared libraries with the
  10339. # GNU dynamic linker. Since this was broken with cross compilers,
  10340. # most powerpc-linux boxes support dynamic linking these days and
  10341. # people can always --disable-shared, the test was removed, and we
  10342. # assume the GNU/Linux dynamic linker is in use.
  10343. dynamic_linker='GNU/Linux ld.so'
  10344. ;;
  10345. netbsd*)
  10346. version_type=sunos
  10347. need_lib_prefix=no
  10348. need_version=no
  10349. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10350. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10351. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10352. dynamic_linker='NetBSD (a.out) ld.so'
  10353. else
  10354. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10355. soname_spec='$libname$release$shared_ext$major'
  10356. dynamic_linker='NetBSD ld.elf_so'
  10357. fi
  10358. shlibpath_var=LD_LIBRARY_PATH
  10359. shlibpath_overrides_runpath=yes
  10360. hardcode_into_libs=yes
  10361. ;;
  10362. newsos6)
  10363. version_type=linux # correct to gnu/linux during the next big refactor
  10364. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10365. shlibpath_var=LD_LIBRARY_PATH
  10366. shlibpath_overrides_runpath=yes
  10367. ;;
  10368. *nto* | *qnx*)
  10369. version_type=qnx
  10370. need_lib_prefix=no
  10371. need_version=no
  10372. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10373. soname_spec='$libname$release$shared_ext$major'
  10374. shlibpath_var=LD_LIBRARY_PATH
  10375. shlibpath_overrides_runpath=no
  10376. hardcode_into_libs=yes
  10377. dynamic_linker='ldqnx.so'
  10378. ;;
  10379. openbsd* | bitrig*)
  10380. version_type=sunos
  10381. sys_lib_dlsearch_path_spec=/usr/lib
  10382. need_lib_prefix=no
  10383. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10384. need_version=no
  10385. else
  10386. need_version=yes
  10387. fi
  10388. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10389. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10390. shlibpath_var=LD_LIBRARY_PATH
  10391. shlibpath_overrides_runpath=yes
  10392. ;;
  10393. os2*)
  10394. libname_spec='$name'
  10395. shrext_cmds=.dll
  10396. need_lib_prefix=no
  10397. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10398. # SDL customization: removed versioning support.
  10399. # version_type=windows
  10400. # need_version=no
  10401. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10402. # v=$($ECHO $release$versuffix | tr -d .-);
  10403. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10404. # $ECHO $n$v`$shared_ext'
  10405. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10406. library_names_spec='${libname}_dll.$libext'
  10407. dynamic_linker='OS/2 ld.exe'
  10408. shlibpath_var=BEGINLIBPATH
  10409. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10410. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10411. postinstall_cmds='base_file=`basename \$file`~
  10412. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10413. dldir=$destdir/`dirname \$dlpath`~
  10414. test -d \$dldir || mkdir -p \$dldir~
  10415. $install_prog $dir/$dlname \$dldir/$dlname~
  10416. chmod a+x \$dldir/$dlname~
  10417. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10418. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10419. fi'
  10420. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10421. dlpath=$dir/\$dldll~
  10422. $RM \$dlpath'
  10423. ;;
  10424. osf3* | osf4* | osf5*)
  10425. version_type=osf
  10426. need_lib_prefix=no
  10427. need_version=no
  10428. soname_spec='$libname$release$shared_ext$major'
  10429. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10430. shlibpath_var=LD_LIBRARY_PATH
  10431. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10432. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10433. ;;
  10434. rdos*)
  10435. dynamic_linker=no
  10436. ;;
  10437. solaris*)
  10438. version_type=linux # correct to gnu/linux during the next big refactor
  10439. need_lib_prefix=no
  10440. need_version=no
  10441. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10442. soname_spec='$libname$release$shared_ext$major'
  10443. shlibpath_var=LD_LIBRARY_PATH
  10444. shlibpath_overrides_runpath=yes
  10445. hardcode_into_libs=yes
  10446. # ldd complains unless libraries are executable
  10447. postinstall_cmds='chmod +x $lib'
  10448. ;;
  10449. sunos4*)
  10450. version_type=sunos
  10451. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10452. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10453. shlibpath_var=LD_LIBRARY_PATH
  10454. shlibpath_overrides_runpath=yes
  10455. if test yes = "$with_gnu_ld"; then
  10456. need_lib_prefix=no
  10457. fi
  10458. need_version=yes
  10459. ;;
  10460. sysv4 | sysv4.3*)
  10461. version_type=linux # correct to gnu/linux during the next big refactor
  10462. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10463. soname_spec='$libname$release$shared_ext$major'
  10464. shlibpath_var=LD_LIBRARY_PATH
  10465. case $host_vendor in
  10466. sni)
  10467. shlibpath_overrides_runpath=no
  10468. need_lib_prefix=no
  10469. runpath_var=LD_RUN_PATH
  10470. ;;
  10471. siemens)
  10472. need_lib_prefix=no
  10473. ;;
  10474. motorola)
  10475. need_lib_prefix=no
  10476. need_version=no
  10477. shlibpath_overrides_runpath=no
  10478. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10479. ;;
  10480. esac
  10481. ;;
  10482. sysv4*MP*)
  10483. if test -d /usr/nec; then
  10484. version_type=linux # correct to gnu/linux during the next big refactor
  10485. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10486. soname_spec='$libname$shared_ext.$major'
  10487. shlibpath_var=LD_LIBRARY_PATH
  10488. fi
  10489. ;;
  10490. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10491. version_type=sco
  10492. need_lib_prefix=no
  10493. need_version=no
  10494. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10495. soname_spec='$libname$release$shared_ext$major'
  10496. shlibpath_var=LD_LIBRARY_PATH
  10497. shlibpath_overrides_runpath=yes
  10498. hardcode_into_libs=yes
  10499. if test yes = "$with_gnu_ld"; then
  10500. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10501. else
  10502. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10503. case $host_os in
  10504. sco3.2v5*)
  10505. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10506. ;;
  10507. esac
  10508. fi
  10509. sys_lib_dlsearch_path_spec='/usr/lib'
  10510. ;;
  10511. tpf*)
  10512. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10513. version_type=linux # correct to gnu/linux during the next big refactor
  10514. need_lib_prefix=no
  10515. need_version=no
  10516. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10517. shlibpath_var=LD_LIBRARY_PATH
  10518. shlibpath_overrides_runpath=no
  10519. hardcode_into_libs=yes
  10520. ;;
  10521. uts4*)
  10522. version_type=linux # correct to gnu/linux during the next big refactor
  10523. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10524. soname_spec='$libname$release$shared_ext$major'
  10525. shlibpath_var=LD_LIBRARY_PATH
  10526. ;;
  10527. *)
  10528. dynamic_linker=no
  10529. ;;
  10530. esac
  10531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10532. printf "%s\n" "$dynamic_linker" >&6; }
  10533. test no = "$dynamic_linker" && can_build_shared=no
  10534. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10535. if test yes = "$GCC"; then
  10536. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10537. fi
  10538. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10539. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10540. fi
  10541. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10542. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10543. fi
  10544. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10545. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10546. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10547. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10548. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10549. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10551. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10552. hardcode_action=
  10553. if test -n "$hardcode_libdir_flag_spec" ||
  10554. test -n "$runpath_var" ||
  10555. test yes = "$hardcode_automatic"; then
  10556. # We can hardcode non-existent directories.
  10557. if test no != "$hardcode_direct" &&
  10558. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10559. # have to relink, otherwise we might link with an installed library
  10560. # when we should be linking with a yet-to-be-installed one
  10561. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10562. test no != "$hardcode_minus_L"; then
  10563. # Linking always hardcodes the temporary library directory.
  10564. hardcode_action=relink
  10565. else
  10566. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10567. hardcode_action=immediate
  10568. fi
  10569. else
  10570. # We cannot hardcode anything, or else we can only hardcode existing
  10571. # directories.
  10572. hardcode_action=unsupported
  10573. fi
  10574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10575. printf "%s\n" "$hardcode_action" >&6; }
  10576. if test relink = "$hardcode_action" ||
  10577. test yes = "$inherit_rpath"; then
  10578. # Fast installation is not supported
  10579. enable_fast_install=no
  10580. elif test yes = "$shlibpath_overrides_runpath" ||
  10581. test no = "$enable_shared"; then
  10582. # Fast installation is not necessary
  10583. enable_fast_install=needless
  10584. fi
  10585. if test yes != "$enable_dlopen"; then
  10586. enable_dlopen=unknown
  10587. enable_dlopen_self=unknown
  10588. enable_dlopen_self_static=unknown
  10589. else
  10590. lt_cv_dlopen=no
  10591. lt_cv_dlopen_libs=
  10592. case $host_os in
  10593. beos*)
  10594. lt_cv_dlopen=load_add_on
  10595. lt_cv_dlopen_libs=
  10596. lt_cv_dlopen_self=yes
  10597. ;;
  10598. mingw* | pw32* | cegcc*)
  10599. lt_cv_dlopen=LoadLibrary
  10600. lt_cv_dlopen_libs=
  10601. ;;
  10602. cygwin*)
  10603. lt_cv_dlopen=dlopen
  10604. lt_cv_dlopen_libs=
  10605. ;;
  10606. darwin*)
  10607. # if libdl is installed we need to link against it
  10608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10609. printf %s "checking for dlopen in -ldl... " >&6; }
  10610. if test ${ac_cv_lib_dl_dlopen+y}
  10611. then :
  10612. printf %s "(cached) " >&6
  10613. else $as_nop
  10614. ac_check_lib_save_LIBS=$LIBS
  10615. LIBS="-ldl $LIBS"
  10616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10617. /* end confdefs.h. */
  10618. /* Override any GCC internal prototype to avoid an error.
  10619. Use char because int might match the return type of a GCC
  10620. builtin and then its argument prototype would still apply. */
  10621. char dlopen ();
  10622. int
  10623. main (void)
  10624. {
  10625. return dlopen ();
  10626. ;
  10627. return 0;
  10628. }
  10629. _ACEOF
  10630. if ac_fn_c_try_link "$LINENO"
  10631. then :
  10632. ac_cv_lib_dl_dlopen=yes
  10633. else $as_nop
  10634. ac_cv_lib_dl_dlopen=no
  10635. fi
  10636. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10637. conftest$ac_exeext conftest.$ac_ext
  10638. LIBS=$ac_check_lib_save_LIBS
  10639. fi
  10640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10641. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10642. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10643. then :
  10644. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10645. else $as_nop
  10646. lt_cv_dlopen=dyld
  10647. lt_cv_dlopen_libs=
  10648. lt_cv_dlopen_self=yes
  10649. fi
  10650. ;;
  10651. tpf*)
  10652. # Don't try to run any link tests for TPF. We know it's impossible
  10653. # because TPF is a cross-compiler, and we know how we open DSOs.
  10654. lt_cv_dlopen=dlopen
  10655. lt_cv_dlopen_libs=
  10656. lt_cv_dlopen_self=no
  10657. ;;
  10658. *)
  10659. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10660. if test "x$ac_cv_func_shl_load" = xyes
  10661. then :
  10662. lt_cv_dlopen=shl_load
  10663. else $as_nop
  10664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10665. printf %s "checking for shl_load in -ldld... " >&6; }
  10666. if test ${ac_cv_lib_dld_shl_load+y}
  10667. then :
  10668. printf %s "(cached) " >&6
  10669. else $as_nop
  10670. ac_check_lib_save_LIBS=$LIBS
  10671. LIBS="-ldld $LIBS"
  10672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10673. /* end confdefs.h. */
  10674. /* Override any GCC internal prototype to avoid an error.
  10675. Use char because int might match the return type of a GCC
  10676. builtin and then its argument prototype would still apply. */
  10677. char shl_load ();
  10678. int
  10679. main (void)
  10680. {
  10681. return shl_load ();
  10682. ;
  10683. return 0;
  10684. }
  10685. _ACEOF
  10686. if ac_fn_c_try_link "$LINENO"
  10687. then :
  10688. ac_cv_lib_dld_shl_load=yes
  10689. else $as_nop
  10690. ac_cv_lib_dld_shl_load=no
  10691. fi
  10692. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10693. conftest$ac_exeext conftest.$ac_ext
  10694. LIBS=$ac_check_lib_save_LIBS
  10695. fi
  10696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10697. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10698. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10699. then :
  10700. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10701. else $as_nop
  10702. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10703. if test "x$ac_cv_func_dlopen" = xyes
  10704. then :
  10705. lt_cv_dlopen=dlopen
  10706. else $as_nop
  10707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10708. printf %s "checking for dlopen in -ldl... " >&6; }
  10709. if test ${ac_cv_lib_dl_dlopen+y}
  10710. then :
  10711. printf %s "(cached) " >&6
  10712. else $as_nop
  10713. ac_check_lib_save_LIBS=$LIBS
  10714. LIBS="-ldl $LIBS"
  10715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10716. /* end confdefs.h. */
  10717. /* Override any GCC internal prototype to avoid an error.
  10718. Use char because int might match the return type of a GCC
  10719. builtin and then its argument prototype would still apply. */
  10720. char dlopen ();
  10721. int
  10722. main (void)
  10723. {
  10724. return dlopen ();
  10725. ;
  10726. return 0;
  10727. }
  10728. _ACEOF
  10729. if ac_fn_c_try_link "$LINENO"
  10730. then :
  10731. ac_cv_lib_dl_dlopen=yes
  10732. else $as_nop
  10733. ac_cv_lib_dl_dlopen=no
  10734. fi
  10735. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10736. conftest$ac_exeext conftest.$ac_ext
  10737. LIBS=$ac_check_lib_save_LIBS
  10738. fi
  10739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10740. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10741. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10742. then :
  10743. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10744. else $as_nop
  10745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10746. printf %s "checking for dlopen in -lsvld... " >&6; }
  10747. if test ${ac_cv_lib_svld_dlopen+y}
  10748. then :
  10749. printf %s "(cached) " >&6
  10750. else $as_nop
  10751. ac_check_lib_save_LIBS=$LIBS
  10752. LIBS="-lsvld $LIBS"
  10753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10754. /* end confdefs.h. */
  10755. /* Override any GCC internal prototype to avoid an error.
  10756. Use char because int might match the return type of a GCC
  10757. builtin and then its argument prototype would still apply. */
  10758. char dlopen ();
  10759. int
  10760. main (void)
  10761. {
  10762. return dlopen ();
  10763. ;
  10764. return 0;
  10765. }
  10766. _ACEOF
  10767. if ac_fn_c_try_link "$LINENO"
  10768. then :
  10769. ac_cv_lib_svld_dlopen=yes
  10770. else $as_nop
  10771. ac_cv_lib_svld_dlopen=no
  10772. fi
  10773. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10774. conftest$ac_exeext conftest.$ac_ext
  10775. LIBS=$ac_check_lib_save_LIBS
  10776. fi
  10777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10778. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10779. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10780. then :
  10781. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10782. else $as_nop
  10783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10784. printf %s "checking for dld_link in -ldld... " >&6; }
  10785. if test ${ac_cv_lib_dld_dld_link+y}
  10786. then :
  10787. printf %s "(cached) " >&6
  10788. else $as_nop
  10789. ac_check_lib_save_LIBS=$LIBS
  10790. LIBS="-ldld $LIBS"
  10791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10792. /* end confdefs.h. */
  10793. /* Override any GCC internal prototype to avoid an error.
  10794. Use char because int might match the return type of a GCC
  10795. builtin and then its argument prototype would still apply. */
  10796. char dld_link ();
  10797. int
  10798. main (void)
  10799. {
  10800. return dld_link ();
  10801. ;
  10802. return 0;
  10803. }
  10804. _ACEOF
  10805. if ac_fn_c_try_link "$LINENO"
  10806. then :
  10807. ac_cv_lib_dld_dld_link=yes
  10808. else $as_nop
  10809. ac_cv_lib_dld_dld_link=no
  10810. fi
  10811. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10812. conftest$ac_exeext conftest.$ac_ext
  10813. LIBS=$ac_check_lib_save_LIBS
  10814. fi
  10815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10816. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10817. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10818. then :
  10819. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10820. fi
  10821. fi
  10822. fi
  10823. fi
  10824. fi
  10825. fi
  10826. ;;
  10827. esac
  10828. if test no = "$lt_cv_dlopen"; then
  10829. enable_dlopen=no
  10830. else
  10831. enable_dlopen=yes
  10832. fi
  10833. case $lt_cv_dlopen in
  10834. dlopen)
  10835. save_CPPFLAGS=$CPPFLAGS
  10836. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10837. save_LDFLAGS=$LDFLAGS
  10838. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10839. save_LIBS=$LIBS
  10840. LIBS="$lt_cv_dlopen_libs $LIBS"
  10841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10842. printf %s "checking whether a program can dlopen itself... " >&6; }
  10843. if test ${lt_cv_dlopen_self+y}
  10844. then :
  10845. printf %s "(cached) " >&6
  10846. else $as_nop
  10847. if test yes = "$cross_compiling"; then :
  10848. lt_cv_dlopen_self=cross
  10849. else
  10850. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10851. lt_status=$lt_dlunknown
  10852. cat > conftest.$ac_ext <<_LT_EOF
  10853. #line $LINENO "configure"
  10854. #include "confdefs.h"
  10855. #if HAVE_DLFCN_H
  10856. #include <dlfcn.h>
  10857. #endif
  10858. #include <stdio.h>
  10859. #ifdef RTLD_GLOBAL
  10860. # define LT_DLGLOBAL RTLD_GLOBAL
  10861. #else
  10862. # ifdef DL_GLOBAL
  10863. # define LT_DLGLOBAL DL_GLOBAL
  10864. # else
  10865. # define LT_DLGLOBAL 0
  10866. # endif
  10867. #endif
  10868. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10869. find out it does not work in some platform. */
  10870. #ifndef LT_DLLAZY_OR_NOW
  10871. # ifdef RTLD_LAZY
  10872. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10873. # else
  10874. # ifdef DL_LAZY
  10875. # define LT_DLLAZY_OR_NOW DL_LAZY
  10876. # else
  10877. # ifdef RTLD_NOW
  10878. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10879. # else
  10880. # ifdef DL_NOW
  10881. # define LT_DLLAZY_OR_NOW DL_NOW
  10882. # else
  10883. # define LT_DLLAZY_OR_NOW 0
  10884. # endif
  10885. # endif
  10886. # endif
  10887. # endif
  10888. #endif
  10889. /* When -fvisibility=hidden is used, assume the code has been annotated
  10890. correspondingly for the symbols needed. */
  10891. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10892. int fnord () __attribute__((visibility("default")));
  10893. #endif
  10894. int fnord () { return 42; }
  10895. int main ()
  10896. {
  10897. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10898. int status = $lt_dlunknown;
  10899. if (self)
  10900. {
  10901. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10902. else
  10903. {
  10904. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10905. else puts (dlerror ());
  10906. }
  10907. /* dlclose (self); */
  10908. }
  10909. else
  10910. puts (dlerror ());
  10911. return status;
  10912. }
  10913. _LT_EOF
  10914. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10915. (eval $ac_link) 2>&5
  10916. ac_status=$?
  10917. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10918. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10919. (./conftest; exit; ) >&5 2>/dev/null
  10920. lt_status=$?
  10921. case x$lt_status in
  10922. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10923. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10924. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10925. esac
  10926. else :
  10927. # compilation failed
  10928. lt_cv_dlopen_self=no
  10929. fi
  10930. fi
  10931. rm -fr conftest*
  10932. fi
  10933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10934. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10935. if test yes = "$lt_cv_dlopen_self"; then
  10936. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10938. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10939. if test ${lt_cv_dlopen_self_static+y}
  10940. then :
  10941. printf %s "(cached) " >&6
  10942. else $as_nop
  10943. if test yes = "$cross_compiling"; then :
  10944. lt_cv_dlopen_self_static=cross
  10945. else
  10946. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10947. lt_status=$lt_dlunknown
  10948. cat > conftest.$ac_ext <<_LT_EOF
  10949. #line $LINENO "configure"
  10950. #include "confdefs.h"
  10951. #if HAVE_DLFCN_H
  10952. #include <dlfcn.h>
  10953. #endif
  10954. #include <stdio.h>
  10955. #ifdef RTLD_GLOBAL
  10956. # define LT_DLGLOBAL RTLD_GLOBAL
  10957. #else
  10958. # ifdef DL_GLOBAL
  10959. # define LT_DLGLOBAL DL_GLOBAL
  10960. # else
  10961. # define LT_DLGLOBAL 0
  10962. # endif
  10963. #endif
  10964. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10965. find out it does not work in some platform. */
  10966. #ifndef LT_DLLAZY_OR_NOW
  10967. # ifdef RTLD_LAZY
  10968. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10969. # else
  10970. # ifdef DL_LAZY
  10971. # define LT_DLLAZY_OR_NOW DL_LAZY
  10972. # else
  10973. # ifdef RTLD_NOW
  10974. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10975. # else
  10976. # ifdef DL_NOW
  10977. # define LT_DLLAZY_OR_NOW DL_NOW
  10978. # else
  10979. # define LT_DLLAZY_OR_NOW 0
  10980. # endif
  10981. # endif
  10982. # endif
  10983. # endif
  10984. #endif
  10985. /* When -fvisibility=hidden is used, assume the code has been annotated
  10986. correspondingly for the symbols needed. */
  10987. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10988. int fnord () __attribute__((visibility("default")));
  10989. #endif
  10990. int fnord () { return 42; }
  10991. int main ()
  10992. {
  10993. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10994. int status = $lt_dlunknown;
  10995. if (self)
  10996. {
  10997. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10998. else
  10999. {
  11000. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11001. else puts (dlerror ());
  11002. }
  11003. /* dlclose (self); */
  11004. }
  11005. else
  11006. puts (dlerror ());
  11007. return status;
  11008. }
  11009. _LT_EOF
  11010. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11011. (eval $ac_link) 2>&5
  11012. ac_status=$?
  11013. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11014. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11015. (./conftest; exit; ) >&5 2>/dev/null
  11016. lt_status=$?
  11017. case x$lt_status in
  11018. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11019. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11020. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11021. esac
  11022. else :
  11023. # compilation failed
  11024. lt_cv_dlopen_self_static=no
  11025. fi
  11026. fi
  11027. rm -fr conftest*
  11028. fi
  11029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11030. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11031. fi
  11032. CPPFLAGS=$save_CPPFLAGS
  11033. LDFLAGS=$save_LDFLAGS
  11034. LIBS=$save_LIBS
  11035. ;;
  11036. esac
  11037. case $lt_cv_dlopen_self in
  11038. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11039. *) enable_dlopen_self=unknown ;;
  11040. esac
  11041. case $lt_cv_dlopen_self_static in
  11042. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11043. *) enable_dlopen_self_static=unknown ;;
  11044. esac
  11045. fi
  11046. striplib=
  11047. old_striplib=
  11048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11049. printf %s "checking whether stripping libraries is possible... " >&6; }
  11050. if test -z "$STRIP"; then
  11051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11052. printf "%s\n" "no" >&6; }
  11053. else
  11054. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11055. old_striplib="$STRIP --strip-debug"
  11056. striplib="$STRIP --strip-unneeded"
  11057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11058. printf "%s\n" "yes" >&6; }
  11059. else
  11060. case $host_os in
  11061. darwin*)
  11062. # FIXME - insert some real tests, host_os isn't really good enough
  11063. striplib="$STRIP -x"
  11064. old_striplib="$STRIP -S"
  11065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11066. printf "%s\n" "yes" >&6; }
  11067. ;;
  11068. freebsd*)
  11069. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11070. old_striplib="$STRIP --strip-debug"
  11071. striplib="$STRIP --strip-unneeded"
  11072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11073. printf "%s\n" "yes" >&6; }
  11074. else
  11075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11076. printf "%s\n" "no" >&6; }
  11077. fi
  11078. ;;
  11079. *)
  11080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11081. printf "%s\n" "no" >&6; }
  11082. ;;
  11083. esac
  11084. fi
  11085. fi
  11086. # Report what library types will actually be built
  11087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11088. printf %s "checking if libtool supports shared libraries... " >&6; }
  11089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11090. printf "%s\n" "$can_build_shared" >&6; }
  11091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11092. printf %s "checking whether to build shared libraries... " >&6; }
  11093. test no = "$can_build_shared" && enable_shared=no
  11094. # On AIX, shared libraries and static libraries use the same namespace, and
  11095. # are all built from PIC.
  11096. case $host_os in
  11097. aix3*)
  11098. test yes = "$enable_shared" && enable_static=no
  11099. if test -n "$RANLIB"; then
  11100. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11101. postinstall_cmds='$RANLIB $lib'
  11102. fi
  11103. ;;
  11104. aix[4-9]*)
  11105. if test ia64 != "$host_cpu"; then
  11106. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11107. yes,aix,yes) ;; # shared object as lib.so file only
  11108. yes,svr4,*) ;; # shared object as lib.so archive member only
  11109. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11110. esac
  11111. fi
  11112. ;;
  11113. esac
  11114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11115. printf "%s\n" "$enable_shared" >&6; }
  11116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11117. printf %s "checking whether to build static libraries... " >&6; }
  11118. # Make sure either enable_shared or enable_static is yes.
  11119. test yes = "$enable_shared" || enable_static=yes
  11120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11121. printf "%s\n" "$enable_static" >&6; }
  11122. fi
  11123. ac_ext=c
  11124. ac_cpp='$CPP $CPPFLAGS'
  11125. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11126. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11127. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11128. CC=$lt_save_CC
  11129. ac_config_commands="$ac_config_commands libtool"
  11130. # Only expand once:
  11131. if test -n "$ac_tool_prefix"; then
  11132. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11133. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11135. printf %s "checking for $ac_word... " >&6; }
  11136. if test ${ac_cv_prog_RC+y}
  11137. then :
  11138. printf %s "(cached) " >&6
  11139. else $as_nop
  11140. if test -n "$RC"; then
  11141. ac_cv_prog_RC="$RC" # Let the user override the test.
  11142. else
  11143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11144. for as_dir in $PATH
  11145. do
  11146. IFS=$as_save_IFS
  11147. case $as_dir in #(((
  11148. '') as_dir=./ ;;
  11149. */) ;;
  11150. *) as_dir=$as_dir/ ;;
  11151. esac
  11152. for ac_exec_ext in '' $ac_executable_extensions; do
  11153. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11154. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11155. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11156. break 2
  11157. fi
  11158. done
  11159. done
  11160. IFS=$as_save_IFS
  11161. fi
  11162. fi
  11163. RC=$ac_cv_prog_RC
  11164. if test -n "$RC"; then
  11165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11166. printf "%s\n" "$RC" >&6; }
  11167. else
  11168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11169. printf "%s\n" "no" >&6; }
  11170. fi
  11171. fi
  11172. if test -z "$ac_cv_prog_RC"; then
  11173. ac_ct_RC=$RC
  11174. # Extract the first word of "windres", so it can be a program name with args.
  11175. set dummy windres; ac_word=$2
  11176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11177. printf %s "checking for $ac_word... " >&6; }
  11178. if test ${ac_cv_prog_ac_ct_RC+y}
  11179. then :
  11180. printf %s "(cached) " >&6
  11181. else $as_nop
  11182. if test -n "$ac_ct_RC"; then
  11183. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11184. else
  11185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11186. for as_dir in $PATH
  11187. do
  11188. IFS=$as_save_IFS
  11189. case $as_dir in #(((
  11190. '') as_dir=./ ;;
  11191. */) ;;
  11192. *) as_dir=$as_dir/ ;;
  11193. esac
  11194. for ac_exec_ext in '' $ac_executable_extensions; do
  11195. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11196. ac_cv_prog_ac_ct_RC="windres"
  11197. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11198. break 2
  11199. fi
  11200. done
  11201. done
  11202. IFS=$as_save_IFS
  11203. fi
  11204. fi
  11205. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11206. if test -n "$ac_ct_RC"; then
  11207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11208. printf "%s\n" "$ac_ct_RC" >&6; }
  11209. else
  11210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11211. printf "%s\n" "no" >&6; }
  11212. fi
  11213. if test "x$ac_ct_RC" = x; then
  11214. RC=""
  11215. else
  11216. case $cross_compiling:$ac_tool_warned in
  11217. yes:)
  11218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11219. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11220. ac_tool_warned=yes ;;
  11221. esac
  11222. RC=$ac_ct_RC
  11223. fi
  11224. else
  11225. RC="$ac_cv_prog_RC"
  11226. fi
  11227. # Source file extension for RC test sources.
  11228. ac_ext=rc
  11229. # Object file extension for compiled RC test sources.
  11230. objext=o
  11231. objext_RC=$objext
  11232. # Code to be used in simple compile tests
  11233. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11234. # Code to be used in simple link tests
  11235. lt_simple_link_test_code=$lt_simple_compile_test_code
  11236. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11237. # If no C compiler was specified, use CC.
  11238. LTCC=${LTCC-"$CC"}
  11239. # If no C compiler flags were specified, use CFLAGS.
  11240. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11241. # Allow CC to be a program name with arguments.
  11242. compiler=$CC
  11243. # save warnings/boilerplate of simple test code
  11244. ac_outfile=conftest.$ac_objext
  11245. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11246. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11247. _lt_compiler_boilerplate=`cat conftest.err`
  11248. $RM conftest*
  11249. ac_outfile=conftest.$ac_objext
  11250. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11251. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11252. _lt_linker_boilerplate=`cat conftest.err`
  11253. $RM -r conftest*
  11254. # Allow CC to be a program name with arguments.
  11255. lt_save_CC=$CC
  11256. lt_save_CFLAGS=$CFLAGS
  11257. lt_save_GCC=$GCC
  11258. GCC=
  11259. CC=${RC-"windres"}
  11260. CFLAGS=
  11261. compiler=$CC
  11262. compiler_RC=$CC
  11263. func_cc_basename $compiler
  11264. cc_basename=$func_cc_basename_result
  11265. lt_cv_prog_compiler_c_o_RC=yes
  11266. if test -n "$compiler"; then
  11267. :
  11268. fi
  11269. GCC=$lt_save_GCC
  11270. ac_ext=c
  11271. ac_cpp='$CPP $CPPFLAGS'
  11272. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11273. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11274. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11275. CC=$lt_save_CC
  11276. CFLAGS=$lt_save_CFLAGS
  11277. # For historical reasons, the library name redundantly includes the major
  11278. # version twice: libSDL2-2.0.so.0.
  11279. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11280. LT_RELEASE=2.0
  11281. # Increment this if there is an incompatible change - but if that happens,
  11282. # we should rename the library from SDL2 to SDL3, at which point this would
  11283. # reset to 0 anyway.
  11284. LT_MAJOR=0
  11285. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11286. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11287. LT_REVISION=$SDL_INTERFACE_AGE
  11288. for ac_prog in gawk mawk nawk awk
  11289. do
  11290. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11291. set dummy $ac_prog; ac_word=$2
  11292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11293. printf %s "checking for $ac_word... " >&6; }
  11294. if test ${ac_cv_prog_AWK+y}
  11295. then :
  11296. printf %s "(cached) " >&6
  11297. else $as_nop
  11298. if test -n "$AWK"; then
  11299. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11300. else
  11301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11302. for as_dir in $PATH
  11303. do
  11304. IFS=$as_save_IFS
  11305. case $as_dir in #(((
  11306. '') as_dir=./ ;;
  11307. */) ;;
  11308. *) as_dir=$as_dir/ ;;
  11309. esac
  11310. for ac_exec_ext in '' $ac_executable_extensions; do
  11311. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11312. ac_cv_prog_AWK="$ac_prog"
  11313. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11314. break 2
  11315. fi
  11316. done
  11317. done
  11318. IFS=$as_save_IFS
  11319. fi
  11320. fi
  11321. AWK=$ac_cv_prog_AWK
  11322. if test -n "$AWK"; then
  11323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11324. printf "%s\n" "$AWK" >&6; }
  11325. else
  11326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11327. printf "%s\n" "no" >&6; }
  11328. fi
  11329. test -n "$AWK" && break
  11330. done
  11331. ac_ext=c
  11332. ac_cpp='$CPP $CPPFLAGS'
  11333. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11334. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11335. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11336. if test -n "$ac_tool_prefix"; then
  11337. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11338. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11340. printf %s "checking for $ac_word... " >&6; }
  11341. if test ${ac_cv_prog_CC+y}
  11342. then :
  11343. printf %s "(cached) " >&6
  11344. else $as_nop
  11345. if test -n "$CC"; then
  11346. ac_cv_prog_CC="$CC" # Let the user override the test.
  11347. else
  11348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11349. for as_dir in $PATH
  11350. do
  11351. IFS=$as_save_IFS
  11352. case $as_dir in #(((
  11353. '') as_dir=./ ;;
  11354. */) ;;
  11355. *) as_dir=$as_dir/ ;;
  11356. esac
  11357. for ac_exec_ext in '' $ac_executable_extensions; do
  11358. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11359. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11360. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11361. break 2
  11362. fi
  11363. done
  11364. done
  11365. IFS=$as_save_IFS
  11366. fi
  11367. fi
  11368. CC=$ac_cv_prog_CC
  11369. if test -n "$CC"; then
  11370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11371. printf "%s\n" "$CC" >&6; }
  11372. else
  11373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11374. printf "%s\n" "no" >&6; }
  11375. fi
  11376. fi
  11377. if test -z "$ac_cv_prog_CC"; then
  11378. ac_ct_CC=$CC
  11379. # Extract the first word of "gcc", so it can be a program name with args.
  11380. set dummy gcc; ac_word=$2
  11381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11382. printf %s "checking for $ac_word... " >&6; }
  11383. if test ${ac_cv_prog_ac_ct_CC+y}
  11384. then :
  11385. printf %s "(cached) " >&6
  11386. else $as_nop
  11387. if test -n "$ac_ct_CC"; then
  11388. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11389. else
  11390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11391. for as_dir in $PATH
  11392. do
  11393. IFS=$as_save_IFS
  11394. case $as_dir in #(((
  11395. '') as_dir=./ ;;
  11396. */) ;;
  11397. *) as_dir=$as_dir/ ;;
  11398. esac
  11399. for ac_exec_ext in '' $ac_executable_extensions; do
  11400. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11401. ac_cv_prog_ac_ct_CC="gcc"
  11402. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11403. break 2
  11404. fi
  11405. done
  11406. done
  11407. IFS=$as_save_IFS
  11408. fi
  11409. fi
  11410. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11411. if test -n "$ac_ct_CC"; then
  11412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11413. printf "%s\n" "$ac_ct_CC" >&6; }
  11414. else
  11415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11416. printf "%s\n" "no" >&6; }
  11417. fi
  11418. if test "x$ac_ct_CC" = x; then
  11419. CC=""
  11420. else
  11421. case $cross_compiling:$ac_tool_warned in
  11422. yes:)
  11423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11424. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11425. ac_tool_warned=yes ;;
  11426. esac
  11427. CC=$ac_ct_CC
  11428. fi
  11429. else
  11430. CC="$ac_cv_prog_CC"
  11431. fi
  11432. if test -z "$CC"; then
  11433. if test -n "$ac_tool_prefix"; then
  11434. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11435. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11437. printf %s "checking for $ac_word... " >&6; }
  11438. if test ${ac_cv_prog_CC+y}
  11439. then :
  11440. printf %s "(cached) " >&6
  11441. else $as_nop
  11442. if test -n "$CC"; then
  11443. ac_cv_prog_CC="$CC" # Let the user override the test.
  11444. else
  11445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11446. for as_dir in $PATH
  11447. do
  11448. IFS=$as_save_IFS
  11449. case $as_dir in #(((
  11450. '') as_dir=./ ;;
  11451. */) ;;
  11452. *) as_dir=$as_dir/ ;;
  11453. esac
  11454. for ac_exec_ext in '' $ac_executable_extensions; do
  11455. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11456. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11457. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11458. break 2
  11459. fi
  11460. done
  11461. done
  11462. IFS=$as_save_IFS
  11463. fi
  11464. fi
  11465. CC=$ac_cv_prog_CC
  11466. if test -n "$CC"; then
  11467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11468. printf "%s\n" "$CC" >&6; }
  11469. else
  11470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11471. printf "%s\n" "no" >&6; }
  11472. fi
  11473. fi
  11474. fi
  11475. if test -z "$CC"; then
  11476. # Extract the first word of "cc", so it can be a program name with args.
  11477. set dummy cc; ac_word=$2
  11478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11479. printf %s "checking for $ac_word... " >&6; }
  11480. if test ${ac_cv_prog_CC+y}
  11481. then :
  11482. printf %s "(cached) " >&6
  11483. else $as_nop
  11484. if test -n "$CC"; then
  11485. ac_cv_prog_CC="$CC" # Let the user override the test.
  11486. else
  11487. ac_prog_rejected=no
  11488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11489. for as_dir in $PATH
  11490. do
  11491. IFS=$as_save_IFS
  11492. case $as_dir in #(((
  11493. '') as_dir=./ ;;
  11494. */) ;;
  11495. *) as_dir=$as_dir/ ;;
  11496. esac
  11497. for ac_exec_ext in '' $ac_executable_extensions; do
  11498. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11499. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11500. ac_prog_rejected=yes
  11501. continue
  11502. fi
  11503. ac_cv_prog_CC="cc"
  11504. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11505. break 2
  11506. fi
  11507. done
  11508. done
  11509. IFS=$as_save_IFS
  11510. if test $ac_prog_rejected = yes; then
  11511. # We found a bogon in the path, so make sure we never use it.
  11512. set dummy $ac_cv_prog_CC
  11513. shift
  11514. if test $# != 0; then
  11515. # We chose a different compiler from the bogus one.
  11516. # However, it has the same basename, so the bogon will be chosen
  11517. # first if we set CC to just the basename; use the full file name.
  11518. shift
  11519. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11520. fi
  11521. fi
  11522. fi
  11523. fi
  11524. CC=$ac_cv_prog_CC
  11525. if test -n "$CC"; then
  11526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11527. printf "%s\n" "$CC" >&6; }
  11528. else
  11529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11530. printf "%s\n" "no" >&6; }
  11531. fi
  11532. fi
  11533. if test -z "$CC"; then
  11534. if test -n "$ac_tool_prefix"; then
  11535. for ac_prog in cl.exe
  11536. do
  11537. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11538. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11540. printf %s "checking for $ac_word... " >&6; }
  11541. if test ${ac_cv_prog_CC+y}
  11542. then :
  11543. printf %s "(cached) " >&6
  11544. else $as_nop
  11545. if test -n "$CC"; then
  11546. ac_cv_prog_CC="$CC" # Let the user override the test.
  11547. else
  11548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11549. for as_dir in $PATH
  11550. do
  11551. IFS=$as_save_IFS
  11552. case $as_dir in #(((
  11553. '') as_dir=./ ;;
  11554. */) ;;
  11555. *) as_dir=$as_dir/ ;;
  11556. esac
  11557. for ac_exec_ext in '' $ac_executable_extensions; do
  11558. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11559. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11560. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11561. break 2
  11562. fi
  11563. done
  11564. done
  11565. IFS=$as_save_IFS
  11566. fi
  11567. fi
  11568. CC=$ac_cv_prog_CC
  11569. if test -n "$CC"; then
  11570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11571. printf "%s\n" "$CC" >&6; }
  11572. else
  11573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11574. printf "%s\n" "no" >&6; }
  11575. fi
  11576. test -n "$CC" && break
  11577. done
  11578. fi
  11579. if test -z "$CC"; then
  11580. ac_ct_CC=$CC
  11581. for ac_prog in cl.exe
  11582. do
  11583. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11584. set dummy $ac_prog; ac_word=$2
  11585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11586. printf %s "checking for $ac_word... " >&6; }
  11587. if test ${ac_cv_prog_ac_ct_CC+y}
  11588. then :
  11589. printf %s "(cached) " >&6
  11590. else $as_nop
  11591. if test -n "$ac_ct_CC"; then
  11592. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11593. else
  11594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11595. for as_dir in $PATH
  11596. do
  11597. IFS=$as_save_IFS
  11598. case $as_dir in #(((
  11599. '') as_dir=./ ;;
  11600. */) ;;
  11601. *) as_dir=$as_dir/ ;;
  11602. esac
  11603. for ac_exec_ext in '' $ac_executable_extensions; do
  11604. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11605. ac_cv_prog_ac_ct_CC="$ac_prog"
  11606. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11607. break 2
  11608. fi
  11609. done
  11610. done
  11611. IFS=$as_save_IFS
  11612. fi
  11613. fi
  11614. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11615. if test -n "$ac_ct_CC"; then
  11616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11617. printf "%s\n" "$ac_ct_CC" >&6; }
  11618. else
  11619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11620. printf "%s\n" "no" >&6; }
  11621. fi
  11622. test -n "$ac_ct_CC" && break
  11623. done
  11624. if test "x$ac_ct_CC" = x; then
  11625. CC=""
  11626. else
  11627. case $cross_compiling:$ac_tool_warned in
  11628. yes:)
  11629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11630. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11631. ac_tool_warned=yes ;;
  11632. esac
  11633. CC=$ac_ct_CC
  11634. fi
  11635. fi
  11636. fi
  11637. if test -z "$CC"; then
  11638. if test -n "$ac_tool_prefix"; then
  11639. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11640. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11642. printf %s "checking for $ac_word... " >&6; }
  11643. if test ${ac_cv_prog_CC+y}
  11644. then :
  11645. printf %s "(cached) " >&6
  11646. else $as_nop
  11647. if test -n "$CC"; then
  11648. ac_cv_prog_CC="$CC" # Let the user override the test.
  11649. else
  11650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11651. for as_dir in $PATH
  11652. do
  11653. IFS=$as_save_IFS
  11654. case $as_dir in #(((
  11655. '') as_dir=./ ;;
  11656. */) ;;
  11657. *) as_dir=$as_dir/ ;;
  11658. esac
  11659. for ac_exec_ext in '' $ac_executable_extensions; do
  11660. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11661. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11662. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11663. break 2
  11664. fi
  11665. done
  11666. done
  11667. IFS=$as_save_IFS
  11668. fi
  11669. fi
  11670. CC=$ac_cv_prog_CC
  11671. if test -n "$CC"; then
  11672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11673. printf "%s\n" "$CC" >&6; }
  11674. else
  11675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11676. printf "%s\n" "no" >&6; }
  11677. fi
  11678. fi
  11679. if test -z "$ac_cv_prog_CC"; then
  11680. ac_ct_CC=$CC
  11681. # Extract the first word of "clang", so it can be a program name with args.
  11682. set dummy clang; ac_word=$2
  11683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11684. printf %s "checking for $ac_word... " >&6; }
  11685. if test ${ac_cv_prog_ac_ct_CC+y}
  11686. then :
  11687. printf %s "(cached) " >&6
  11688. else $as_nop
  11689. if test -n "$ac_ct_CC"; then
  11690. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11691. else
  11692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11693. for as_dir in $PATH
  11694. do
  11695. IFS=$as_save_IFS
  11696. case $as_dir in #(((
  11697. '') as_dir=./ ;;
  11698. */) ;;
  11699. *) as_dir=$as_dir/ ;;
  11700. esac
  11701. for ac_exec_ext in '' $ac_executable_extensions; do
  11702. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11703. ac_cv_prog_ac_ct_CC="clang"
  11704. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11705. break 2
  11706. fi
  11707. done
  11708. done
  11709. IFS=$as_save_IFS
  11710. fi
  11711. fi
  11712. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11713. if test -n "$ac_ct_CC"; then
  11714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11715. printf "%s\n" "$ac_ct_CC" >&6; }
  11716. else
  11717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11718. printf "%s\n" "no" >&6; }
  11719. fi
  11720. if test "x$ac_ct_CC" = x; then
  11721. CC=""
  11722. else
  11723. case $cross_compiling:$ac_tool_warned in
  11724. yes:)
  11725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11726. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11727. ac_tool_warned=yes ;;
  11728. esac
  11729. CC=$ac_ct_CC
  11730. fi
  11731. else
  11732. CC="$ac_cv_prog_CC"
  11733. fi
  11734. fi
  11735. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11736. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11737. as_fn_error $? "no acceptable C compiler found in \$PATH
  11738. See \`config.log' for more details" "$LINENO" 5; }
  11739. # Provide some information about the compiler.
  11740. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11741. set X $ac_compile
  11742. ac_compiler=$2
  11743. for ac_option in --version -v -V -qversion -version; do
  11744. { { ac_try="$ac_compiler $ac_option >&5"
  11745. case "(($ac_try" in
  11746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11747. *) ac_try_echo=$ac_try;;
  11748. esac
  11749. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11750. printf "%s\n" "$ac_try_echo"; } >&5
  11751. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11752. ac_status=$?
  11753. if test -s conftest.err; then
  11754. sed '10a\
  11755. ... rest of stderr output deleted ...
  11756. 10q' conftest.err >conftest.er1
  11757. cat conftest.er1 >&5
  11758. fi
  11759. rm -f conftest.er1 conftest.err
  11760. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11761. test $ac_status = 0; }
  11762. done
  11763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11764. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11765. if test ${ac_cv_c_compiler_gnu+y}
  11766. then :
  11767. printf %s "(cached) " >&6
  11768. else $as_nop
  11769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11770. /* end confdefs.h. */
  11771. int
  11772. main (void)
  11773. {
  11774. #ifndef __GNUC__
  11775. choke me
  11776. #endif
  11777. ;
  11778. return 0;
  11779. }
  11780. _ACEOF
  11781. if ac_fn_c_try_compile "$LINENO"
  11782. then :
  11783. ac_compiler_gnu=yes
  11784. else $as_nop
  11785. ac_compiler_gnu=no
  11786. fi
  11787. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11788. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11789. fi
  11790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11791. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11792. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11793. if test $ac_compiler_gnu = yes; then
  11794. GCC=yes
  11795. else
  11796. GCC=
  11797. fi
  11798. ac_test_CFLAGS=${CFLAGS+y}
  11799. ac_save_CFLAGS=$CFLAGS
  11800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11801. printf %s "checking whether $CC accepts -g... " >&6; }
  11802. if test ${ac_cv_prog_cc_g+y}
  11803. then :
  11804. printf %s "(cached) " >&6
  11805. else $as_nop
  11806. ac_save_c_werror_flag=$ac_c_werror_flag
  11807. ac_c_werror_flag=yes
  11808. ac_cv_prog_cc_g=no
  11809. CFLAGS="-g"
  11810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11811. /* end confdefs.h. */
  11812. int
  11813. main (void)
  11814. {
  11815. ;
  11816. return 0;
  11817. }
  11818. _ACEOF
  11819. if ac_fn_c_try_compile "$LINENO"
  11820. then :
  11821. ac_cv_prog_cc_g=yes
  11822. else $as_nop
  11823. CFLAGS=""
  11824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11825. /* end confdefs.h. */
  11826. int
  11827. main (void)
  11828. {
  11829. ;
  11830. return 0;
  11831. }
  11832. _ACEOF
  11833. if ac_fn_c_try_compile "$LINENO"
  11834. then :
  11835. else $as_nop
  11836. ac_c_werror_flag=$ac_save_c_werror_flag
  11837. CFLAGS="-g"
  11838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11839. /* end confdefs.h. */
  11840. int
  11841. main (void)
  11842. {
  11843. ;
  11844. return 0;
  11845. }
  11846. _ACEOF
  11847. if ac_fn_c_try_compile "$LINENO"
  11848. then :
  11849. ac_cv_prog_cc_g=yes
  11850. fi
  11851. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11852. fi
  11853. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11854. fi
  11855. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11856. ac_c_werror_flag=$ac_save_c_werror_flag
  11857. fi
  11858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11859. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11860. if test $ac_test_CFLAGS; then
  11861. CFLAGS=$ac_save_CFLAGS
  11862. elif test $ac_cv_prog_cc_g = yes; then
  11863. if test "$GCC" = yes; then
  11864. CFLAGS="-g -O2"
  11865. else
  11866. CFLAGS="-g"
  11867. fi
  11868. else
  11869. if test "$GCC" = yes; then
  11870. CFLAGS="-O2"
  11871. else
  11872. CFLAGS=
  11873. fi
  11874. fi
  11875. ac_prog_cc_stdc=no
  11876. if test x$ac_prog_cc_stdc = xno
  11877. then :
  11878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11879. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11880. if test ${ac_cv_prog_cc_c11+y}
  11881. then :
  11882. printf %s "(cached) " >&6
  11883. else $as_nop
  11884. ac_cv_prog_cc_c11=no
  11885. ac_save_CC=$CC
  11886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11887. /* end confdefs.h. */
  11888. $ac_c_conftest_c11_program
  11889. _ACEOF
  11890. for ac_arg in '' -std=gnu11
  11891. do
  11892. CC="$ac_save_CC $ac_arg"
  11893. if ac_fn_c_try_compile "$LINENO"
  11894. then :
  11895. ac_cv_prog_cc_c11=$ac_arg
  11896. fi
  11897. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11898. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11899. done
  11900. rm -f conftest.$ac_ext
  11901. CC=$ac_save_CC
  11902. fi
  11903. if test "x$ac_cv_prog_cc_c11" = xno
  11904. then :
  11905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11906. printf "%s\n" "unsupported" >&6; }
  11907. else $as_nop
  11908. if test "x$ac_cv_prog_cc_c11" = x
  11909. then :
  11910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11911. printf "%s\n" "none needed" >&6; }
  11912. else $as_nop
  11913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11914. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11915. CC="$CC $ac_cv_prog_cc_c11"
  11916. fi
  11917. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11918. ac_prog_cc_stdc=c11
  11919. fi
  11920. fi
  11921. if test x$ac_prog_cc_stdc = xno
  11922. then :
  11923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11924. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11925. if test ${ac_cv_prog_cc_c99+y}
  11926. then :
  11927. printf %s "(cached) " >&6
  11928. else $as_nop
  11929. ac_cv_prog_cc_c99=no
  11930. ac_save_CC=$CC
  11931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11932. /* end confdefs.h. */
  11933. $ac_c_conftest_c99_program
  11934. _ACEOF
  11935. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11936. do
  11937. CC="$ac_save_CC $ac_arg"
  11938. if ac_fn_c_try_compile "$LINENO"
  11939. then :
  11940. ac_cv_prog_cc_c99=$ac_arg
  11941. fi
  11942. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11943. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11944. done
  11945. rm -f conftest.$ac_ext
  11946. CC=$ac_save_CC
  11947. fi
  11948. if test "x$ac_cv_prog_cc_c99" = xno
  11949. then :
  11950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11951. printf "%s\n" "unsupported" >&6; }
  11952. else $as_nop
  11953. if test "x$ac_cv_prog_cc_c99" = x
  11954. then :
  11955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11956. printf "%s\n" "none needed" >&6; }
  11957. else $as_nop
  11958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11959. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11960. CC="$CC $ac_cv_prog_cc_c99"
  11961. fi
  11962. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11963. ac_prog_cc_stdc=c99
  11964. fi
  11965. fi
  11966. if test x$ac_prog_cc_stdc = xno
  11967. then :
  11968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11969. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11970. if test ${ac_cv_prog_cc_c89+y}
  11971. then :
  11972. printf %s "(cached) " >&6
  11973. else $as_nop
  11974. ac_cv_prog_cc_c89=no
  11975. ac_save_CC=$CC
  11976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11977. /* end confdefs.h. */
  11978. $ac_c_conftest_c89_program
  11979. _ACEOF
  11980. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11981. do
  11982. CC="$ac_save_CC $ac_arg"
  11983. if ac_fn_c_try_compile "$LINENO"
  11984. then :
  11985. ac_cv_prog_cc_c89=$ac_arg
  11986. fi
  11987. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11988. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11989. done
  11990. rm -f conftest.$ac_ext
  11991. CC=$ac_save_CC
  11992. fi
  11993. if test "x$ac_cv_prog_cc_c89" = xno
  11994. then :
  11995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11996. printf "%s\n" "unsupported" >&6; }
  11997. else $as_nop
  11998. if test "x$ac_cv_prog_cc_c89" = x
  11999. then :
  12000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12001. printf "%s\n" "none needed" >&6; }
  12002. else $as_nop
  12003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12004. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  12005. CC="$CC $ac_cv_prog_cc_c89"
  12006. fi
  12007. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12008. ac_prog_cc_stdc=c89
  12009. fi
  12010. fi
  12011. ac_ext=c
  12012. ac_cpp='$CPP $CPPFLAGS'
  12013. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12014. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12015. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12016. ac_ext=cpp
  12017. ac_cpp='$CXXCPP $CPPFLAGS'
  12018. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12019. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12020. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12021. if test -z "$CXX"; then
  12022. if test -n "$CCC"; then
  12023. CXX=$CCC
  12024. else
  12025. if test -n "$ac_tool_prefix"; then
  12026. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12027. do
  12028. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12029. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12031. printf %s "checking for $ac_word... " >&6; }
  12032. if test ${ac_cv_prog_CXX+y}
  12033. then :
  12034. printf %s "(cached) " >&6
  12035. else $as_nop
  12036. if test -n "$CXX"; then
  12037. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12038. else
  12039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12040. for as_dir in $PATH
  12041. do
  12042. IFS=$as_save_IFS
  12043. case $as_dir in #(((
  12044. '') as_dir=./ ;;
  12045. */) ;;
  12046. *) as_dir=$as_dir/ ;;
  12047. esac
  12048. for ac_exec_ext in '' $ac_executable_extensions; do
  12049. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12050. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12051. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12052. break 2
  12053. fi
  12054. done
  12055. done
  12056. IFS=$as_save_IFS
  12057. fi
  12058. fi
  12059. CXX=$ac_cv_prog_CXX
  12060. if test -n "$CXX"; then
  12061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12062. printf "%s\n" "$CXX" >&6; }
  12063. else
  12064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12065. printf "%s\n" "no" >&6; }
  12066. fi
  12067. test -n "$CXX" && break
  12068. done
  12069. fi
  12070. if test -z "$CXX"; then
  12071. ac_ct_CXX=$CXX
  12072. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12073. do
  12074. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12075. set dummy $ac_prog; ac_word=$2
  12076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12077. printf %s "checking for $ac_word... " >&6; }
  12078. if test ${ac_cv_prog_ac_ct_CXX+y}
  12079. then :
  12080. printf %s "(cached) " >&6
  12081. else $as_nop
  12082. if test -n "$ac_ct_CXX"; then
  12083. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12084. else
  12085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12086. for as_dir in $PATH
  12087. do
  12088. IFS=$as_save_IFS
  12089. case $as_dir in #(((
  12090. '') as_dir=./ ;;
  12091. */) ;;
  12092. *) as_dir=$as_dir/ ;;
  12093. esac
  12094. for ac_exec_ext in '' $ac_executable_extensions; do
  12095. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12096. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12097. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12098. break 2
  12099. fi
  12100. done
  12101. done
  12102. IFS=$as_save_IFS
  12103. fi
  12104. fi
  12105. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12106. if test -n "$ac_ct_CXX"; then
  12107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12108. printf "%s\n" "$ac_ct_CXX" >&6; }
  12109. else
  12110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12111. printf "%s\n" "no" >&6; }
  12112. fi
  12113. test -n "$ac_ct_CXX" && break
  12114. done
  12115. if test "x$ac_ct_CXX" = x; then
  12116. CXX="g++"
  12117. else
  12118. case $cross_compiling:$ac_tool_warned in
  12119. yes:)
  12120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12121. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12122. ac_tool_warned=yes ;;
  12123. esac
  12124. CXX=$ac_ct_CXX
  12125. fi
  12126. fi
  12127. fi
  12128. fi
  12129. # Provide some information about the compiler.
  12130. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12131. set X $ac_compile
  12132. ac_compiler=$2
  12133. for ac_option in --version -v -V -qversion; do
  12134. { { ac_try="$ac_compiler $ac_option >&5"
  12135. case "(($ac_try" in
  12136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12137. *) ac_try_echo=$ac_try;;
  12138. esac
  12139. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12140. printf "%s\n" "$ac_try_echo"; } >&5
  12141. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12142. ac_status=$?
  12143. if test -s conftest.err; then
  12144. sed '10a\
  12145. ... rest of stderr output deleted ...
  12146. 10q' conftest.err >conftest.er1
  12147. cat conftest.er1 >&5
  12148. fi
  12149. rm -f conftest.er1 conftest.err
  12150. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12151. test $ac_status = 0; }
  12152. done
  12153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12154. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12155. if test ${ac_cv_cxx_compiler_gnu+y}
  12156. then :
  12157. printf %s "(cached) " >&6
  12158. else $as_nop
  12159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12160. /* end confdefs.h. */
  12161. int
  12162. main (void)
  12163. {
  12164. #ifndef __GNUC__
  12165. choke me
  12166. #endif
  12167. ;
  12168. return 0;
  12169. }
  12170. _ACEOF
  12171. if ac_fn_cxx_try_compile "$LINENO"
  12172. then :
  12173. ac_compiler_gnu=yes
  12174. else $as_nop
  12175. ac_compiler_gnu=no
  12176. fi
  12177. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12178. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12179. fi
  12180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12181. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12182. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12183. if test $ac_compiler_gnu = yes; then
  12184. GXX=yes
  12185. else
  12186. GXX=
  12187. fi
  12188. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12189. ac_save_CXXFLAGS=$CXXFLAGS
  12190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12191. printf %s "checking whether $CXX accepts -g... " >&6; }
  12192. if test ${ac_cv_prog_cxx_g+y}
  12193. then :
  12194. printf %s "(cached) " >&6
  12195. else $as_nop
  12196. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12197. ac_cxx_werror_flag=yes
  12198. ac_cv_prog_cxx_g=no
  12199. CXXFLAGS="-g"
  12200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12201. /* end confdefs.h. */
  12202. int
  12203. main (void)
  12204. {
  12205. ;
  12206. return 0;
  12207. }
  12208. _ACEOF
  12209. if ac_fn_cxx_try_compile "$LINENO"
  12210. then :
  12211. ac_cv_prog_cxx_g=yes
  12212. else $as_nop
  12213. CXXFLAGS=""
  12214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12215. /* end confdefs.h. */
  12216. int
  12217. main (void)
  12218. {
  12219. ;
  12220. return 0;
  12221. }
  12222. _ACEOF
  12223. if ac_fn_cxx_try_compile "$LINENO"
  12224. then :
  12225. else $as_nop
  12226. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12227. CXXFLAGS="-g"
  12228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12229. /* end confdefs.h. */
  12230. int
  12231. main (void)
  12232. {
  12233. ;
  12234. return 0;
  12235. }
  12236. _ACEOF
  12237. if ac_fn_cxx_try_compile "$LINENO"
  12238. then :
  12239. ac_cv_prog_cxx_g=yes
  12240. fi
  12241. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12242. fi
  12243. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12244. fi
  12245. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12246. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12247. fi
  12248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12249. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12250. if test $ac_test_CXXFLAGS; then
  12251. CXXFLAGS=$ac_save_CXXFLAGS
  12252. elif test $ac_cv_prog_cxx_g = yes; then
  12253. if test "$GXX" = yes; then
  12254. CXXFLAGS="-g -O2"
  12255. else
  12256. CXXFLAGS="-g"
  12257. fi
  12258. else
  12259. if test "$GXX" = yes; then
  12260. CXXFLAGS="-O2"
  12261. else
  12262. CXXFLAGS=
  12263. fi
  12264. fi
  12265. ac_prog_cxx_stdcxx=no
  12266. if test x$ac_prog_cxx_stdcxx = xno
  12267. then :
  12268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12269. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12270. if test ${ac_cv_prog_cxx_11+y}
  12271. then :
  12272. printf %s "(cached) " >&6
  12273. else $as_nop
  12274. ac_cv_prog_cxx_11=no
  12275. ac_save_CXX=$CXX
  12276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12277. /* end confdefs.h. */
  12278. $ac_cxx_conftest_cxx11_program
  12279. _ACEOF
  12280. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12281. do
  12282. CXX="$ac_save_CXX $ac_arg"
  12283. if ac_fn_cxx_try_compile "$LINENO"
  12284. then :
  12285. ac_cv_prog_cxx_cxx11=$ac_arg
  12286. fi
  12287. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12288. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12289. done
  12290. rm -f conftest.$ac_ext
  12291. CXX=$ac_save_CXX
  12292. fi
  12293. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12294. then :
  12295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12296. printf "%s\n" "unsupported" >&6; }
  12297. else $as_nop
  12298. if test "x$ac_cv_prog_cxx_cxx11" = x
  12299. then :
  12300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12301. printf "%s\n" "none needed" >&6; }
  12302. else $as_nop
  12303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12304. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12305. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12306. fi
  12307. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12308. ac_prog_cxx_stdcxx=cxx11
  12309. fi
  12310. fi
  12311. if test x$ac_prog_cxx_stdcxx = xno
  12312. then :
  12313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12314. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12315. if test ${ac_cv_prog_cxx_98+y}
  12316. then :
  12317. printf %s "(cached) " >&6
  12318. else $as_nop
  12319. ac_cv_prog_cxx_98=no
  12320. ac_save_CXX=$CXX
  12321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12322. /* end confdefs.h. */
  12323. $ac_cxx_conftest_cxx98_program
  12324. _ACEOF
  12325. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12326. do
  12327. CXX="$ac_save_CXX $ac_arg"
  12328. if ac_fn_cxx_try_compile "$LINENO"
  12329. then :
  12330. ac_cv_prog_cxx_cxx98=$ac_arg
  12331. fi
  12332. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12333. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12334. done
  12335. rm -f conftest.$ac_ext
  12336. CXX=$ac_save_CXX
  12337. fi
  12338. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12339. then :
  12340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12341. printf "%s\n" "unsupported" >&6; }
  12342. else $as_nop
  12343. if test "x$ac_cv_prog_cxx_cxx98" = x
  12344. then :
  12345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12346. printf "%s\n" "none needed" >&6; }
  12347. else $as_nop
  12348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12349. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12350. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12351. fi
  12352. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12353. ac_prog_cxx_stdcxx=cxx98
  12354. fi
  12355. fi
  12356. ac_ext=c
  12357. ac_cpp='$CPP $CPPFLAGS'
  12358. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12359. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12360. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12361. func_stripname_cnf ()
  12362. {
  12363. case $2 in
  12364. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12365. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12366. esac
  12367. } # func_stripname_cnf
  12368. if test -n "$CXX" && ( test no != "$CXX" &&
  12369. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12370. (test g++ != "$CXX"))); then
  12371. ac_ext=cpp
  12372. ac_cpp='$CXXCPP $CPPFLAGS'
  12373. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12374. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12375. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12377. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12378. if test -z "$CXXCPP"; then
  12379. if test ${ac_cv_prog_CXXCPP+y}
  12380. then :
  12381. printf %s "(cached) " >&6
  12382. else $as_nop
  12383. # Double quotes because $CXX needs to be expanded
  12384. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12385. do
  12386. ac_preproc_ok=false
  12387. for ac_cxx_preproc_warn_flag in '' yes
  12388. do
  12389. # Use a header file that comes with gcc, so configuring glibc
  12390. # with a fresh cross-compiler works.
  12391. # On the NeXT, cc -E runs the code through the compiler's parser,
  12392. # not just through cpp. "Syntax error" is here to catch this case.
  12393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12394. /* end confdefs.h. */
  12395. #include <limits.h>
  12396. Syntax error
  12397. _ACEOF
  12398. if ac_fn_cxx_try_cpp "$LINENO"
  12399. then :
  12400. else $as_nop
  12401. # Broken: fails on valid input.
  12402. continue
  12403. fi
  12404. rm -f conftest.err conftest.i conftest.$ac_ext
  12405. # OK, works on sane cases. Now check whether nonexistent headers
  12406. # can be detected and how.
  12407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12408. /* end confdefs.h. */
  12409. #include <ac_nonexistent.h>
  12410. _ACEOF
  12411. if ac_fn_cxx_try_cpp "$LINENO"
  12412. then :
  12413. # Broken: success on invalid input.
  12414. continue
  12415. else $as_nop
  12416. # Passes both tests.
  12417. ac_preproc_ok=:
  12418. break
  12419. fi
  12420. rm -f conftest.err conftest.i conftest.$ac_ext
  12421. done
  12422. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12423. rm -f conftest.i conftest.err conftest.$ac_ext
  12424. if $ac_preproc_ok
  12425. then :
  12426. break
  12427. fi
  12428. done
  12429. ac_cv_prog_CXXCPP=$CXXCPP
  12430. fi
  12431. CXXCPP=$ac_cv_prog_CXXCPP
  12432. else
  12433. ac_cv_prog_CXXCPP=$CXXCPP
  12434. fi
  12435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12436. printf "%s\n" "$CXXCPP" >&6; }
  12437. ac_preproc_ok=false
  12438. for ac_cxx_preproc_warn_flag in '' yes
  12439. do
  12440. # Use a header file that comes with gcc, so configuring glibc
  12441. # with a fresh cross-compiler works.
  12442. # On the NeXT, cc -E runs the code through the compiler's parser,
  12443. # not just through cpp. "Syntax error" is here to catch this case.
  12444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12445. /* end confdefs.h. */
  12446. #include <limits.h>
  12447. Syntax error
  12448. _ACEOF
  12449. if ac_fn_cxx_try_cpp "$LINENO"
  12450. then :
  12451. else $as_nop
  12452. # Broken: fails on valid input.
  12453. continue
  12454. fi
  12455. rm -f conftest.err conftest.i conftest.$ac_ext
  12456. # OK, works on sane cases. Now check whether nonexistent headers
  12457. # can be detected and how.
  12458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12459. /* end confdefs.h. */
  12460. #include <ac_nonexistent.h>
  12461. _ACEOF
  12462. if ac_fn_cxx_try_cpp "$LINENO"
  12463. then :
  12464. # Broken: success on invalid input.
  12465. continue
  12466. else $as_nop
  12467. # Passes both tests.
  12468. ac_preproc_ok=:
  12469. break
  12470. fi
  12471. rm -f conftest.err conftest.i conftest.$ac_ext
  12472. done
  12473. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12474. rm -f conftest.i conftest.err conftest.$ac_ext
  12475. if $ac_preproc_ok
  12476. then :
  12477. else $as_nop
  12478. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12479. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12480. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12481. See \`config.log' for more details" "$LINENO" 5; }
  12482. fi
  12483. ac_ext=c
  12484. ac_cpp='$CPP $CPPFLAGS'
  12485. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12486. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12487. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12488. else
  12489. _lt_caught_CXX_error=yes
  12490. fi
  12491. ac_ext=cpp
  12492. ac_cpp='$CXXCPP $CPPFLAGS'
  12493. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12494. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12495. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12496. archive_cmds_need_lc_CXX=no
  12497. allow_undefined_flag_CXX=
  12498. always_export_symbols_CXX=no
  12499. archive_expsym_cmds_CXX=
  12500. compiler_needs_object_CXX=no
  12501. export_dynamic_flag_spec_CXX=
  12502. hardcode_direct_CXX=no
  12503. hardcode_direct_absolute_CXX=no
  12504. hardcode_libdir_flag_spec_CXX=
  12505. hardcode_libdir_separator_CXX=
  12506. hardcode_minus_L_CXX=no
  12507. hardcode_shlibpath_var_CXX=unsupported
  12508. hardcode_automatic_CXX=no
  12509. inherit_rpath_CXX=no
  12510. module_cmds_CXX=
  12511. module_expsym_cmds_CXX=
  12512. link_all_deplibs_CXX=unknown
  12513. old_archive_cmds_CXX=$old_archive_cmds
  12514. reload_flag_CXX=$reload_flag
  12515. reload_cmds_CXX=$reload_cmds
  12516. no_undefined_flag_CXX=
  12517. whole_archive_flag_spec_CXX=
  12518. enable_shared_with_static_runtimes_CXX=no
  12519. # Source file extension for C++ test sources.
  12520. ac_ext=cpp
  12521. # Object file extension for compiled C++ test sources.
  12522. objext=o
  12523. objext_CXX=$objext
  12524. # No sense in running all these tests if we already determined that
  12525. # the CXX compiler isn't working. Some variables (like enable_shared)
  12526. # are currently assumed to apply to all compilers on this platform,
  12527. # and will be corrupted by setting them based on a non-working compiler.
  12528. if test yes != "$_lt_caught_CXX_error"; then
  12529. # Code to be used in simple compile tests
  12530. lt_simple_compile_test_code="int some_variable = 0;"
  12531. # Code to be used in simple link tests
  12532. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12533. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12534. # If no C compiler was specified, use CC.
  12535. LTCC=${LTCC-"$CC"}
  12536. # If no C compiler flags were specified, use CFLAGS.
  12537. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12538. # Allow CC to be a program name with arguments.
  12539. compiler=$CC
  12540. # save warnings/boilerplate of simple test code
  12541. ac_outfile=conftest.$ac_objext
  12542. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12543. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12544. _lt_compiler_boilerplate=`cat conftest.err`
  12545. $RM conftest*
  12546. ac_outfile=conftest.$ac_objext
  12547. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12548. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12549. _lt_linker_boilerplate=`cat conftest.err`
  12550. $RM -r conftest*
  12551. # Allow CC to be a program name with arguments.
  12552. lt_save_CC=$CC
  12553. lt_save_CFLAGS=$CFLAGS
  12554. lt_save_LD=$LD
  12555. lt_save_GCC=$GCC
  12556. GCC=$GXX
  12557. lt_save_with_gnu_ld=$with_gnu_ld
  12558. lt_save_path_LD=$lt_cv_path_LD
  12559. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12560. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12561. else
  12562. $as_unset lt_cv_prog_gnu_ld
  12563. fi
  12564. if test -n "${lt_cv_path_LDCXX+set}"; then
  12565. lt_cv_path_LD=$lt_cv_path_LDCXX
  12566. else
  12567. $as_unset lt_cv_path_LD
  12568. fi
  12569. test -z "${LDCXX+set}" || LD=$LDCXX
  12570. CC=${CXX-"c++"}
  12571. CFLAGS=$CXXFLAGS
  12572. compiler=$CC
  12573. compiler_CXX=$CC
  12574. func_cc_basename $compiler
  12575. cc_basename=$func_cc_basename_result
  12576. if test -n "$compiler"; then
  12577. # We don't want -fno-exception when compiling C++ code, so set the
  12578. # no_builtin_flag separately
  12579. if test yes = "$GXX"; then
  12580. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12581. else
  12582. lt_prog_compiler_no_builtin_flag_CXX=
  12583. fi
  12584. if test yes = "$GXX"; then
  12585. # Set up default GNU C++ configuration
  12586. # Check whether --with-gnu-ld was given.
  12587. if test ${with_gnu_ld+y}
  12588. then :
  12589. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12590. else $as_nop
  12591. with_gnu_ld=no
  12592. fi
  12593. ac_prog=ld
  12594. if test yes = "$GCC"; then
  12595. # Check if gcc -print-prog-name=ld gives a path.
  12596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12597. printf %s "checking for ld used by $CC... " >&6; }
  12598. case $host in
  12599. *-*-mingw*)
  12600. # gcc leaves a trailing carriage return, which upsets mingw
  12601. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12602. *)
  12603. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12604. esac
  12605. case $ac_prog in
  12606. # Accept absolute paths.
  12607. [\\/]* | ?:[\\/]*)
  12608. re_direlt='/[^/][^/]*/\.\./'
  12609. # Canonicalize the pathname of ld
  12610. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12611. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12612. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12613. done
  12614. test -z "$LD" && LD=$ac_prog
  12615. ;;
  12616. "")
  12617. # If it fails, then pretend we aren't using GCC.
  12618. ac_prog=ld
  12619. ;;
  12620. *)
  12621. # If it is relative, then search for the first ld in PATH.
  12622. with_gnu_ld=unknown
  12623. ;;
  12624. esac
  12625. elif test yes = "$with_gnu_ld"; then
  12626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12627. printf %s "checking for GNU ld... " >&6; }
  12628. else
  12629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12630. printf %s "checking for non-GNU ld... " >&6; }
  12631. fi
  12632. if test ${lt_cv_path_LD+y}
  12633. then :
  12634. printf %s "(cached) " >&6
  12635. else $as_nop
  12636. if test -z "$LD"; then
  12637. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12638. for ac_dir in $PATH; do
  12639. IFS=$lt_save_ifs
  12640. test -z "$ac_dir" && ac_dir=.
  12641. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12642. lt_cv_path_LD=$ac_dir/$ac_prog
  12643. # Check to see if the program is GNU ld. I'd rather use --version,
  12644. # but apparently some variants of GNU ld only accept -v.
  12645. # Break only if it was the GNU/non-GNU ld that we prefer.
  12646. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12647. *GNU* | *'with BFD'*)
  12648. test no != "$with_gnu_ld" && break
  12649. ;;
  12650. *)
  12651. test yes != "$with_gnu_ld" && break
  12652. ;;
  12653. esac
  12654. fi
  12655. done
  12656. IFS=$lt_save_ifs
  12657. else
  12658. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12659. fi
  12660. fi
  12661. LD=$lt_cv_path_LD
  12662. if test -n "$LD"; then
  12663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12664. printf "%s\n" "$LD" >&6; }
  12665. else
  12666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12667. printf "%s\n" "no" >&6; }
  12668. fi
  12669. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12671. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12672. if test ${lt_cv_prog_gnu_ld+y}
  12673. then :
  12674. printf %s "(cached) " >&6
  12675. else $as_nop
  12676. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12677. case `$LD -v 2>&1 </dev/null` in
  12678. *GNU* | *'with BFD'*)
  12679. lt_cv_prog_gnu_ld=yes
  12680. ;;
  12681. *)
  12682. lt_cv_prog_gnu_ld=no
  12683. ;;
  12684. esac
  12685. fi
  12686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12687. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12688. with_gnu_ld=$lt_cv_prog_gnu_ld
  12689. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12690. # archiving commands below assume that GNU ld is being used.
  12691. if test yes = "$with_gnu_ld"; then
  12692. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12693. 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'
  12694. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12695. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12696. # If archive_cmds runs LD, not CC, wlarc should be empty
  12697. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12698. # investigate it a little bit more. (MM)
  12699. wlarc='$wl'
  12700. # ancient GNU ld didn't support --whole-archive et. al.
  12701. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12702. $GREP 'no-whole-archive' > /dev/null; then
  12703. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12704. else
  12705. whole_archive_flag_spec_CXX=
  12706. fi
  12707. else
  12708. with_gnu_ld=no
  12709. wlarc=
  12710. # A generic and very simple default shared library creation
  12711. # command for GNU C++ for the case where it uses the native
  12712. # linker, instead of GNU ld. If possible, this setting should
  12713. # overridden to take advantage of the native linker features on
  12714. # the platform it is being used on.
  12715. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12716. fi
  12717. # Commands to make compiler produce verbose output that lists
  12718. # what "hidden" libraries, object files and flags are used when
  12719. # linking a shared library.
  12720. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12721. else
  12722. GXX=no
  12723. with_gnu_ld=no
  12724. wlarc=
  12725. fi
  12726. # PORTME: fill in a description of your system's C++ link characteristics
  12727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12728. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12729. ld_shlibs_CXX=yes
  12730. case $host_os in
  12731. aix3*)
  12732. # FIXME: insert proper C++ library support
  12733. ld_shlibs_CXX=no
  12734. ;;
  12735. aix[4-9]*)
  12736. if test ia64 = "$host_cpu"; then
  12737. # On IA64, the linker does run time linking by default, so we don't
  12738. # have to do anything special.
  12739. aix_use_runtimelinking=no
  12740. exp_sym_flag='-Bexport'
  12741. no_entry_flag=
  12742. else
  12743. aix_use_runtimelinking=no
  12744. # Test if we are trying to use run time linking or normal
  12745. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12746. # have runtime linking enabled, and use it for executables.
  12747. # For shared libraries, we enable/disable runtime linking
  12748. # depending on the kind of the shared library created -
  12749. # when "with_aix_soname,aix_use_runtimelinking" is:
  12750. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12751. # "aix,yes" lib.so shared, rtl:yes, for executables
  12752. # lib.a static archive
  12753. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12754. # lib.a(lib.so.V) shared, rtl:no, for executables
  12755. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12756. # lib.a(lib.so.V) shared, rtl:no
  12757. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12758. # lib.a static archive
  12759. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12760. for ld_flag in $LDFLAGS; do
  12761. case $ld_flag in
  12762. *-brtl*)
  12763. aix_use_runtimelinking=yes
  12764. break
  12765. ;;
  12766. esac
  12767. done
  12768. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12769. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12770. # so we don't have lib.a shared libs to link our executables.
  12771. # We have to force runtime linking in this case.
  12772. aix_use_runtimelinking=yes
  12773. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12774. fi
  12775. ;;
  12776. esac
  12777. exp_sym_flag='-bexport'
  12778. no_entry_flag='-bnoentry'
  12779. fi
  12780. # When large executables or shared objects are built, AIX ld can
  12781. # have problems creating the table of contents. If linking a library
  12782. # or program results in "error TOC overflow" add -mminimal-toc to
  12783. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12784. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12785. archive_cmds_CXX=''
  12786. hardcode_direct_CXX=yes
  12787. hardcode_direct_absolute_CXX=yes
  12788. hardcode_libdir_separator_CXX=':'
  12789. link_all_deplibs_CXX=yes
  12790. file_list_spec_CXX='$wl-f,'
  12791. case $with_aix_soname,$aix_use_runtimelinking in
  12792. aix,*) ;; # no import file
  12793. svr4,* | *,yes) # use import file
  12794. # The Import File defines what to hardcode.
  12795. hardcode_direct_CXX=no
  12796. hardcode_direct_absolute_CXX=no
  12797. ;;
  12798. esac
  12799. if test yes = "$GXX"; then
  12800. case $host_os in aix4.[012]|aix4.[012].*)
  12801. # We only want to do this on AIX 4.2 and lower, the check
  12802. # below for broken collect2 doesn't work under 4.3+
  12803. collect2name=`$CC -print-prog-name=collect2`
  12804. if test -f "$collect2name" &&
  12805. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12806. then
  12807. # We have reworked collect2
  12808. :
  12809. else
  12810. # We have old collect2
  12811. hardcode_direct_CXX=unsupported
  12812. # It fails to find uninstalled libraries when the uninstalled
  12813. # path is not listed in the libpath. Setting hardcode_minus_L
  12814. # to unsupported forces relinking
  12815. hardcode_minus_L_CXX=yes
  12816. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12817. hardcode_libdir_separator_CXX=
  12818. fi
  12819. esac
  12820. shared_flag='-shared'
  12821. if test yes = "$aix_use_runtimelinking"; then
  12822. shared_flag=$shared_flag' $wl-G'
  12823. fi
  12824. # Need to ensure runtime linking is disabled for the traditional
  12825. # shared library, or the linker may eventually find shared libraries
  12826. # /with/ Import File - we do not want to mix them.
  12827. shared_flag_aix='-shared'
  12828. shared_flag_svr4='-shared $wl-G'
  12829. else
  12830. # not using gcc
  12831. if test ia64 = "$host_cpu"; then
  12832. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12833. # chokes on -Wl,-G. The following line is correct:
  12834. shared_flag='-G'
  12835. else
  12836. if test yes = "$aix_use_runtimelinking"; then
  12837. shared_flag='$wl-G'
  12838. else
  12839. shared_flag='$wl-bM:SRE'
  12840. fi
  12841. shared_flag_aix='$wl-bM:SRE'
  12842. shared_flag_svr4='$wl-G'
  12843. fi
  12844. fi
  12845. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12846. # It seems that -bexpall does not export symbols beginning with
  12847. # underscore (_), so it is better to generate a list of symbols to
  12848. # export.
  12849. always_export_symbols_CXX=yes
  12850. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12851. # Warning - without using the other runtime loading flags (-brtl),
  12852. # -berok will link without error, but may produce a broken library.
  12853. # The "-G" linker flag allows undefined symbols.
  12854. no_undefined_flag_CXX='-bernotok'
  12855. # Determine the default libpath from the value encoded in an empty
  12856. # executable.
  12857. if test set = "${lt_cv_aix_libpath+set}"; then
  12858. aix_libpath=$lt_cv_aix_libpath
  12859. else
  12860. if test ${lt_cv_aix_libpath__CXX+y}
  12861. then :
  12862. printf %s "(cached) " >&6
  12863. else $as_nop
  12864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12865. /* end confdefs.h. */
  12866. int
  12867. main (void)
  12868. {
  12869. ;
  12870. return 0;
  12871. }
  12872. _ACEOF
  12873. if ac_fn_cxx_try_link "$LINENO"
  12874. then :
  12875. lt_aix_libpath_sed='
  12876. /Import File Strings/,/^$/ {
  12877. /^0/ {
  12878. s/^0 *\([^ ]*\) *$/\1/
  12879. p
  12880. }
  12881. }'
  12882. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12883. # Check for a 64-bit object if we didn't find anything.
  12884. if test -z "$lt_cv_aix_libpath__CXX"; then
  12885. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12886. fi
  12887. fi
  12888. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12889. conftest$ac_exeext conftest.$ac_ext
  12890. if test -z "$lt_cv_aix_libpath__CXX"; then
  12891. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12892. fi
  12893. fi
  12894. aix_libpath=$lt_cv_aix_libpath__CXX
  12895. fi
  12896. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12897. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  12898. else
  12899. if test ia64 = "$host_cpu"; then
  12900. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12901. allow_undefined_flag_CXX="-z nodefs"
  12902. 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"
  12903. else
  12904. # Determine the default libpath from the value encoded in an
  12905. # empty executable.
  12906. if test set = "${lt_cv_aix_libpath+set}"; then
  12907. aix_libpath=$lt_cv_aix_libpath
  12908. else
  12909. if test ${lt_cv_aix_libpath__CXX+y}
  12910. then :
  12911. printf %s "(cached) " >&6
  12912. else $as_nop
  12913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12914. /* end confdefs.h. */
  12915. int
  12916. main (void)
  12917. {
  12918. ;
  12919. return 0;
  12920. }
  12921. _ACEOF
  12922. if ac_fn_cxx_try_link "$LINENO"
  12923. then :
  12924. lt_aix_libpath_sed='
  12925. /Import File Strings/,/^$/ {
  12926. /^0/ {
  12927. s/^0 *\([^ ]*\) *$/\1/
  12928. p
  12929. }
  12930. }'
  12931. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12932. # Check for a 64-bit object if we didn't find anything.
  12933. if test -z "$lt_cv_aix_libpath__CXX"; then
  12934. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12935. fi
  12936. fi
  12937. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12938. conftest$ac_exeext conftest.$ac_ext
  12939. if test -z "$lt_cv_aix_libpath__CXX"; then
  12940. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12941. fi
  12942. fi
  12943. aix_libpath=$lt_cv_aix_libpath__CXX
  12944. fi
  12945. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12946. # Warning - without using the other run time loading flags,
  12947. # -berok will link without error, but may produce a broken library.
  12948. no_undefined_flag_CXX=' $wl-bernotok'
  12949. allow_undefined_flag_CXX=' $wl-berok'
  12950. if test yes = "$with_gnu_ld"; then
  12951. # We only use this code for GNU lds that support --whole-archive.
  12952. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12953. else
  12954. # Exported symbols can be pulled into shared objects from archives
  12955. whole_archive_flag_spec_CXX='$convenience'
  12956. fi
  12957. archive_cmds_need_lc_CXX=yes
  12958. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12959. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12960. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12961. if test svr4 != "$with_aix_soname"; then
  12962. # This is similar to how AIX traditionally builds its shared
  12963. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12964. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  12965. fi
  12966. if test aix != "$with_aix_soname"; then
  12967. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  12968. else
  12969. # used by -dlpreopen to get the symbols
  12970. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12971. fi
  12972. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12973. fi
  12974. fi
  12975. ;;
  12976. beos*)
  12977. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12978. allow_undefined_flag_CXX=unsupported
  12979. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12980. # support --undefined. This deserves some investigation. FIXME
  12981. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12982. else
  12983. ld_shlibs_CXX=no
  12984. fi
  12985. ;;
  12986. chorus*)
  12987. case $cc_basename in
  12988. *)
  12989. # FIXME: insert proper C++ library support
  12990. ld_shlibs_CXX=no
  12991. ;;
  12992. esac
  12993. ;;
  12994. cygwin* | mingw* | pw32* | cegcc*)
  12995. case $GXX,$cc_basename in
  12996. ,cl* | no,cl*)
  12997. # Native MSVC
  12998. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12999. # no search path for DLLs.
  13000. hardcode_libdir_flag_spec_CXX=' '
  13001. allow_undefined_flag_CXX=unsupported
  13002. always_export_symbols_CXX=yes
  13003. file_list_spec_CXX='@'
  13004. # Tell ltmain to make .lib files, not .a files.
  13005. libext=lib
  13006. # Tell ltmain to make .dll files, not .so files.
  13007. shrext_cmds=.dll
  13008. # FIXME: Setting linknames here is a bad hack.
  13009. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13010. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13011. cp "$export_symbols" "$output_objdir/$soname.def";
  13012. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13013. else
  13014. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13015. fi~
  13016. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13017. linknames='
  13018. # The linker will not automatically build a static lib if we build a DLL.
  13019. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13020. enable_shared_with_static_runtimes_CXX=yes
  13021. # Don't use ranlib
  13022. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13023. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13024. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13025. case $lt_outputfile in
  13026. *.exe|*.EXE) ;;
  13027. *)
  13028. lt_outputfile=$lt_outputfile.exe
  13029. lt_tool_outputfile=$lt_tool_outputfile.exe
  13030. ;;
  13031. esac~
  13032. func_to_tool_file "$lt_outputfile"~
  13033. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13034. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13035. $RM "$lt_outputfile.manifest";
  13036. fi'
  13037. ;;
  13038. *)
  13039. # g++
  13040. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13041. # as there is no search path for DLLs.
  13042. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13043. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13044. allow_undefined_flag_CXX=unsupported
  13045. always_export_symbols_CXX=no
  13046. enable_shared_with_static_runtimes_CXX=yes
  13047. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13048. 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'
  13049. # If the export-symbols file already is a .def file, use it as
  13050. # is; otherwise, prepend EXPORTS...
  13051. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13052. cp $export_symbols $output_objdir/$soname.def;
  13053. else
  13054. echo EXPORTS > $output_objdir/$soname.def;
  13055. cat $export_symbols >> $output_objdir/$soname.def;
  13056. fi~
  13057. $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'
  13058. else
  13059. ld_shlibs_CXX=no
  13060. fi
  13061. ;;
  13062. esac
  13063. ;;
  13064. darwin* | rhapsody*)
  13065. archive_cmds_need_lc_CXX=no
  13066. hardcode_direct_CXX=no
  13067. hardcode_automatic_CXX=yes
  13068. hardcode_shlibpath_var_CXX=unsupported
  13069. if test yes = "$lt_cv_ld_force_load"; then
  13070. 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\"`'
  13071. else
  13072. whole_archive_flag_spec_CXX=''
  13073. fi
  13074. link_all_deplibs_CXX=yes
  13075. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13076. case $cc_basename in
  13077. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13078. *) _lt_dar_can_shared=$GCC ;;
  13079. esac
  13080. if test yes = "$_lt_dar_can_shared"; then
  13081. output_verbose_link_cmd=func_echo_all
  13082. 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"
  13083. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13084. 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"
  13085. 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"
  13086. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13087. 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"
  13088. 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"
  13089. fi
  13090. else
  13091. ld_shlibs_CXX=no
  13092. fi
  13093. ;;
  13094. os2*)
  13095. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13096. hardcode_minus_L_CXX=yes
  13097. allow_undefined_flag_CXX=unsupported
  13098. shrext_cmds=.dll
  13099. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13100. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13101. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13102. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13103. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13104. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13105. emximp -o $lib $output_objdir/$libname.def'
  13106. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13107. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13108. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13109. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13110. prefix_cmds="$SED"~
  13111. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13112. prefix_cmds="$prefix_cmds -e 1d";
  13113. fi~
  13114. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13115. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13116. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13117. emximp -o $lib $output_objdir/$libname.def'
  13118. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13119. enable_shared_with_static_runtimes_CXX=yes
  13120. file_list_spec_CXX='@'
  13121. ;;
  13122. dgux*)
  13123. case $cc_basename in
  13124. ec++*)
  13125. # FIXME: insert proper C++ library support
  13126. ld_shlibs_CXX=no
  13127. ;;
  13128. ghcx*)
  13129. # Green Hills C++ Compiler
  13130. # FIXME: insert proper C++ library support
  13131. ld_shlibs_CXX=no
  13132. ;;
  13133. *)
  13134. # FIXME: insert proper C++ library support
  13135. ld_shlibs_CXX=no
  13136. ;;
  13137. esac
  13138. ;;
  13139. freebsd2.*)
  13140. # C++ shared libraries reported to be fairly broken before
  13141. # switch to ELF
  13142. ld_shlibs_CXX=no
  13143. ;;
  13144. freebsd-elf*)
  13145. archive_cmds_need_lc_CXX=no
  13146. ;;
  13147. freebsd* | dragonfly* | midnightbsd*)
  13148. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13149. # conventions
  13150. ld_shlibs_CXX=yes
  13151. ;;
  13152. haiku*)
  13153. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13154. link_all_deplibs_CXX=yes
  13155. ;;
  13156. hpux9*)
  13157. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13158. hardcode_libdir_separator_CXX=:
  13159. export_dynamic_flag_spec_CXX='$wl-E'
  13160. hardcode_direct_CXX=yes
  13161. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13162. # but as the default
  13163. # location of the library.
  13164. case $cc_basename in
  13165. CC*)
  13166. # FIXME: insert proper C++ library support
  13167. ld_shlibs_CXX=no
  13168. ;;
  13169. aCC*)
  13170. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13171. # Commands to make compiler produce verbose output that lists
  13172. # what "hidden" libraries, object files and flags are used when
  13173. # linking a shared library.
  13174. #
  13175. # There doesn't appear to be a way to prevent this compiler from
  13176. # explicitly linking system object files so we need to strip them
  13177. # from the output so that they don't get included in the library
  13178. # dependencies.
  13179. 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"'
  13180. ;;
  13181. *)
  13182. if test yes = "$GXX"; then
  13183. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13184. else
  13185. # FIXME: insert proper C++ library support
  13186. ld_shlibs_CXX=no
  13187. fi
  13188. ;;
  13189. esac
  13190. ;;
  13191. hpux10*|hpux11*)
  13192. if test no = "$with_gnu_ld"; then
  13193. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13194. hardcode_libdir_separator_CXX=:
  13195. case $host_cpu in
  13196. hppa*64*|ia64*)
  13197. ;;
  13198. *)
  13199. export_dynamic_flag_spec_CXX='$wl-E'
  13200. ;;
  13201. esac
  13202. fi
  13203. case $host_cpu in
  13204. hppa*64*|ia64*)
  13205. hardcode_direct_CXX=no
  13206. hardcode_shlibpath_var_CXX=no
  13207. ;;
  13208. *)
  13209. hardcode_direct_CXX=yes
  13210. hardcode_direct_absolute_CXX=yes
  13211. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13212. # but as the default
  13213. # location of the library.
  13214. ;;
  13215. esac
  13216. case $cc_basename in
  13217. CC*)
  13218. # FIXME: insert proper C++ library support
  13219. ld_shlibs_CXX=no
  13220. ;;
  13221. aCC*)
  13222. case $host_cpu in
  13223. hppa*64*)
  13224. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13225. ;;
  13226. ia64*)
  13227. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13228. ;;
  13229. *)
  13230. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13231. ;;
  13232. esac
  13233. # Commands to make compiler produce verbose output that lists
  13234. # what "hidden" libraries, object files and flags are used when
  13235. # linking a shared library.
  13236. #
  13237. # There doesn't appear to be a way to prevent this compiler from
  13238. # explicitly linking system object files so we need to strip them
  13239. # from the output so that they don't get included in the library
  13240. # dependencies.
  13241. 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"'
  13242. ;;
  13243. *)
  13244. if test yes = "$GXX"; then
  13245. if test no = "$with_gnu_ld"; then
  13246. case $host_cpu in
  13247. hppa*64*)
  13248. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13249. ;;
  13250. ia64*)
  13251. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13252. ;;
  13253. *)
  13254. 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'
  13255. ;;
  13256. esac
  13257. fi
  13258. else
  13259. # FIXME: insert proper C++ library support
  13260. ld_shlibs_CXX=no
  13261. fi
  13262. ;;
  13263. esac
  13264. ;;
  13265. interix[3-9]*)
  13266. hardcode_direct_CXX=no
  13267. hardcode_shlibpath_var_CXX=no
  13268. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13269. export_dynamic_flag_spec_CXX='$wl-E'
  13270. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13271. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13272. # default) and relocated if they conflict, which is a slow very memory
  13273. # consuming and fragmenting process. To avoid this, we pick a random,
  13274. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13275. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13276. 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'
  13277. 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'
  13278. ;;
  13279. irix5* | irix6*)
  13280. case $cc_basename in
  13281. CC*)
  13282. # SGI C++
  13283. 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'
  13284. # Archives containing C++ object files must be created using
  13285. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13286. # necessary to make sure instantiated templates are included
  13287. # in the archive.
  13288. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13289. ;;
  13290. *)
  13291. if test yes = "$GXX"; then
  13292. if test no = "$with_gnu_ld"; then
  13293. 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'
  13294. else
  13295. 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'
  13296. fi
  13297. fi
  13298. link_all_deplibs_CXX=yes
  13299. ;;
  13300. esac
  13301. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13302. hardcode_libdir_separator_CXX=:
  13303. inherit_rpath_CXX=yes
  13304. ;;
  13305. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13306. case $cc_basename in
  13307. KCC*)
  13308. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13309. # KCC will only create a shared library if the output file
  13310. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13311. # to its proper name (with version) after linking.
  13312. 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'
  13313. 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'
  13314. # Commands to make compiler produce verbose output that lists
  13315. # what "hidden" libraries, object files and flags are used when
  13316. # linking a shared library.
  13317. #
  13318. # There doesn't appear to be a way to prevent this compiler from
  13319. # explicitly linking system object files so we need to strip them
  13320. # from the output so that they don't get included in the library
  13321. # dependencies.
  13322. 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"'
  13323. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13324. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13325. # Archives containing C++ object files must be created using
  13326. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13327. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13328. ;;
  13329. icpc* | ecpc* )
  13330. # Intel C++
  13331. with_gnu_ld=yes
  13332. # version 8.0 and above of icpc choke on multiply defined symbols
  13333. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13334. # earlier do not add the objects themselves.
  13335. case `$CC -V 2>&1` in
  13336. *"Version 7."*)
  13337. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13338. 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'
  13339. ;;
  13340. *) # Version 8.0 or newer
  13341. tmp_idyn=
  13342. case $host_cpu in
  13343. ia64*) tmp_idyn=' -i_dynamic';;
  13344. esac
  13345. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13346. 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'
  13347. ;;
  13348. esac
  13349. archive_cmds_need_lc_CXX=no
  13350. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13351. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13352. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13353. ;;
  13354. pgCC* | pgcpp*)
  13355. # Portland Group C++ compiler
  13356. case `$CC -V` in
  13357. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13358. prelink_cmds_CXX='tpldir=Template.dir~
  13359. rm -rf $tpldir~
  13360. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13361. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13362. old_archive_cmds_CXX='tpldir=Template.dir~
  13363. rm -rf $tpldir~
  13364. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13365. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13366. $RANLIB $oldlib'
  13367. archive_cmds_CXX='tpldir=Template.dir~
  13368. rm -rf $tpldir~
  13369. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13370. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13371. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13372. rm -rf $tpldir~
  13373. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13374. $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'
  13375. ;;
  13376. *) # Version 6 and above use weak symbols
  13377. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13378. 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'
  13379. ;;
  13380. esac
  13381. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13382. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13383. 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'
  13384. ;;
  13385. cxx*)
  13386. # Compaq C++
  13387. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13388. 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'
  13389. runpath_var=LD_RUN_PATH
  13390. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13391. hardcode_libdir_separator_CXX=:
  13392. # Commands to make compiler produce verbose output that lists
  13393. # what "hidden" libraries, object files and flags are used when
  13394. # linking a shared library.
  13395. #
  13396. # There doesn't appear to be a way to prevent this compiler from
  13397. # explicitly linking system object files so we need to strip them
  13398. # from the output so that they don't get included in the library
  13399. # dependencies.
  13400. 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'
  13401. ;;
  13402. xl* | mpixl* | bgxl*)
  13403. # IBM XL 8.0 on PPC, with GNU ld
  13404. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13405. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13406. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13407. if test yes = "$supports_anon_versioning"; then
  13408. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13409. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13410. echo "local: *; };" >> $output_objdir/$libname.ver~
  13411. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13412. fi
  13413. ;;
  13414. *)
  13415. case `$CC -V 2>&1 | sed 5q` in
  13416. *Sun\ C*)
  13417. # Sun C++ 5.9
  13418. no_undefined_flag_CXX=' -zdefs'
  13419. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13420. 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'
  13421. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13422. 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'
  13423. compiler_needs_object_CXX=yes
  13424. # Not sure whether something based on
  13425. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13426. # would be better.
  13427. output_verbose_link_cmd='func_echo_all'
  13428. # Archives containing C++ object files must be created using
  13429. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13430. # necessary to make sure instantiated templates are included
  13431. # in the archive.
  13432. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13433. ;;
  13434. esac
  13435. ;;
  13436. esac
  13437. ;;
  13438. lynxos*)
  13439. # FIXME: insert proper C++ library support
  13440. ld_shlibs_CXX=no
  13441. ;;
  13442. m88k*)
  13443. # FIXME: insert proper C++ library support
  13444. ld_shlibs_CXX=no
  13445. ;;
  13446. mvs*)
  13447. case $cc_basename in
  13448. cxx*)
  13449. # FIXME: insert proper C++ library support
  13450. ld_shlibs_CXX=no
  13451. ;;
  13452. *)
  13453. # FIXME: insert proper C++ library support
  13454. ld_shlibs_CXX=no
  13455. ;;
  13456. esac
  13457. ;;
  13458. netbsd*)
  13459. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13460. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13461. wlarc=
  13462. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13463. hardcode_direct_CXX=yes
  13464. hardcode_shlibpath_var_CXX=no
  13465. fi
  13466. # Workaround some broken pre-1.5 toolchains
  13467. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13468. ;;
  13469. *nto* | *qnx*)
  13470. ld_shlibs_CXX=yes
  13471. ;;
  13472. openbsd* | bitrig*)
  13473. if test -f /usr/libexec/ld.so; then
  13474. hardcode_direct_CXX=yes
  13475. hardcode_shlibpath_var_CXX=no
  13476. hardcode_direct_absolute_CXX=yes
  13477. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13478. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13479. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13480. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13481. export_dynamic_flag_spec_CXX='$wl-E'
  13482. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13483. fi
  13484. output_verbose_link_cmd=func_echo_all
  13485. else
  13486. ld_shlibs_CXX=no
  13487. fi
  13488. ;;
  13489. osf3* | osf4* | osf5*)
  13490. case $cc_basename in
  13491. KCC*)
  13492. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13493. # KCC will only create a shared library if the output file
  13494. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13495. # to its proper name (with version) after linking.
  13496. 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'
  13497. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13498. hardcode_libdir_separator_CXX=:
  13499. # Archives containing C++ object files must be created using
  13500. # the KAI C++ compiler.
  13501. case $host in
  13502. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13503. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13504. esac
  13505. ;;
  13506. RCC*)
  13507. # Rational C++ 2.4.1
  13508. # FIXME: insert proper C++ library support
  13509. ld_shlibs_CXX=no
  13510. ;;
  13511. cxx*)
  13512. case $host in
  13513. osf3*)
  13514. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13515. 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'
  13516. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13517. ;;
  13518. *)
  13519. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13520. 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'
  13521. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13522. echo "-hidden">> $lib.exp~
  13523. $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~
  13524. $RM $lib.exp'
  13525. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13526. ;;
  13527. esac
  13528. hardcode_libdir_separator_CXX=:
  13529. # Commands to make compiler produce verbose output that lists
  13530. # what "hidden" libraries, object files and flags are used when
  13531. # linking a shared library.
  13532. #
  13533. # There doesn't appear to be a way to prevent this compiler from
  13534. # explicitly linking system object files so we need to strip them
  13535. # from the output so that they don't get included in the library
  13536. # dependencies.
  13537. 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"'
  13538. ;;
  13539. *)
  13540. if test yes,no = "$GXX,$with_gnu_ld"; then
  13541. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13542. case $host in
  13543. osf3*)
  13544. 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'
  13545. ;;
  13546. *)
  13547. 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'
  13548. ;;
  13549. esac
  13550. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13551. hardcode_libdir_separator_CXX=:
  13552. # Commands to make compiler produce verbose output that lists
  13553. # what "hidden" libraries, object files and flags are used when
  13554. # linking a shared library.
  13555. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13556. else
  13557. # FIXME: insert proper C++ library support
  13558. ld_shlibs_CXX=no
  13559. fi
  13560. ;;
  13561. esac
  13562. ;;
  13563. psos*)
  13564. # FIXME: insert proper C++ library support
  13565. ld_shlibs_CXX=no
  13566. ;;
  13567. sunos4*)
  13568. case $cc_basename in
  13569. CC*)
  13570. # Sun C++ 4.x
  13571. # FIXME: insert proper C++ library support
  13572. ld_shlibs_CXX=no
  13573. ;;
  13574. lcc*)
  13575. # Lucid
  13576. # FIXME: insert proper C++ library support
  13577. ld_shlibs_CXX=no
  13578. ;;
  13579. *)
  13580. # FIXME: insert proper C++ library support
  13581. ld_shlibs_CXX=no
  13582. ;;
  13583. esac
  13584. ;;
  13585. solaris*)
  13586. case $cc_basename in
  13587. CC* | sunCC*)
  13588. # Sun C++ 4.2, 5.x and Centerline C++
  13589. archive_cmds_need_lc_CXX=yes
  13590. no_undefined_flag_CXX=' -zdefs'
  13591. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13592. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13593. $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'
  13594. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13595. hardcode_shlibpath_var_CXX=no
  13596. case $host_os in
  13597. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13598. *)
  13599. # The compiler driver will combine and reorder linker options,
  13600. # but understands '-z linker_flag'.
  13601. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13602. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13603. ;;
  13604. esac
  13605. link_all_deplibs_CXX=yes
  13606. output_verbose_link_cmd='func_echo_all'
  13607. # Archives containing C++ object files must be created using
  13608. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13609. # necessary to make sure instantiated templates are included
  13610. # in the archive.
  13611. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13612. ;;
  13613. gcx*)
  13614. # Green Hills C++ Compiler
  13615. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13616. # The C++ compiler must be used to create the archive.
  13617. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13618. ;;
  13619. *)
  13620. # GNU C++ compiler with Solaris linker
  13621. if test yes,no = "$GXX,$with_gnu_ld"; then
  13622. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13623. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13624. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13625. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13626. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13627. # Commands to make compiler produce verbose output that lists
  13628. # what "hidden" libraries, object files and flags are used when
  13629. # linking a shared library.
  13630. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13631. else
  13632. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13633. # platform.
  13634. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13635. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13636. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13637. # Commands to make compiler produce verbose output that lists
  13638. # what "hidden" libraries, object files and flags are used when
  13639. # linking a shared library.
  13640. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13641. fi
  13642. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13643. case $host_os in
  13644. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13645. *)
  13646. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13647. ;;
  13648. esac
  13649. fi
  13650. ;;
  13651. esac
  13652. ;;
  13653. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13654. no_undefined_flag_CXX='$wl-z,text'
  13655. archive_cmds_need_lc_CXX=no
  13656. hardcode_shlibpath_var_CXX=no
  13657. runpath_var='LD_RUN_PATH'
  13658. case $cc_basename in
  13659. CC*)
  13660. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13661. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13662. ;;
  13663. *)
  13664. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13665. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13666. ;;
  13667. esac
  13668. ;;
  13669. sysv5* | sco3.2v5* | sco5v6*)
  13670. # Note: We CANNOT use -z defs as we might desire, because we do not
  13671. # link with -lc, and that would cause any symbols used from libc to
  13672. # always be unresolved, which means just about no library would
  13673. # ever link correctly. If we're not using GNU ld we use -z text
  13674. # though, which does catch some bad symbols but isn't as heavy-handed
  13675. # as -z defs.
  13676. no_undefined_flag_CXX='$wl-z,text'
  13677. allow_undefined_flag_CXX='$wl-z,nodefs'
  13678. archive_cmds_need_lc_CXX=no
  13679. hardcode_shlibpath_var_CXX=no
  13680. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13681. hardcode_libdir_separator_CXX=':'
  13682. link_all_deplibs_CXX=yes
  13683. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13684. runpath_var='LD_RUN_PATH'
  13685. case $cc_basename in
  13686. CC*)
  13687. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13688. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13689. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13690. '"$old_archive_cmds_CXX"
  13691. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13692. '"$reload_cmds_CXX"
  13693. ;;
  13694. *)
  13695. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13696. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13697. ;;
  13698. esac
  13699. ;;
  13700. tandem*)
  13701. case $cc_basename in
  13702. NCC*)
  13703. # NonStop-UX NCC 3.20
  13704. # FIXME: insert proper C++ library support
  13705. ld_shlibs_CXX=no
  13706. ;;
  13707. *)
  13708. # FIXME: insert proper C++ library support
  13709. ld_shlibs_CXX=no
  13710. ;;
  13711. esac
  13712. ;;
  13713. vxworks*)
  13714. # FIXME: insert proper C++ library support
  13715. ld_shlibs_CXX=no
  13716. ;;
  13717. *)
  13718. # FIXME: insert proper C++ library support
  13719. ld_shlibs_CXX=no
  13720. ;;
  13721. esac
  13722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13723. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13724. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13725. GCC_CXX=$GXX
  13726. LD_CXX=$LD
  13727. ## CAVEAT EMPTOR:
  13728. ## There is no encapsulation within the following macros, do not change
  13729. ## the running order or otherwise move them around unless you know exactly
  13730. ## what you are doing...
  13731. # Dependencies to place before and after the object being linked:
  13732. predep_objects_CXX=
  13733. postdep_objects_CXX=
  13734. predeps_CXX=
  13735. postdeps_CXX=
  13736. compiler_lib_search_path_CXX=
  13737. cat > conftest.$ac_ext <<_LT_EOF
  13738. class Foo
  13739. {
  13740. public:
  13741. Foo (void) { a = 0; }
  13742. private:
  13743. int a;
  13744. };
  13745. _LT_EOF
  13746. _lt_libdeps_save_CFLAGS=$CFLAGS
  13747. case "$CC $CFLAGS " in #(
  13748. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13749. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13750. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13751. esac
  13752. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13753. (eval $ac_compile) 2>&5
  13754. ac_status=$?
  13755. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13756. test $ac_status = 0; }; then
  13757. # Parse the compiler output and extract the necessary
  13758. # objects, libraries and library flags.
  13759. # Sentinel used to keep track of whether or not we are before
  13760. # the conftest object file.
  13761. pre_test_object_deps_done=no
  13762. for p in `eval "$output_verbose_link_cmd"`; do
  13763. case $prev$p in
  13764. -L* | -R* | -l*)
  13765. # Some compilers place space between "-{L,R}" and the path.
  13766. # Remove the space.
  13767. if test x-L = "x$p" ||
  13768. test x-R = "x$p" ||
  13769. test x-l = "x$p"; then
  13770. prev=$p
  13771. continue
  13772. fi
  13773. # Expand the sysroot to ease extracting the directories later.
  13774. if test -z "$prev"; then
  13775. case $p in
  13776. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13777. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13778. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13779. esac
  13780. fi
  13781. case $p in
  13782. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13783. esac
  13784. if test no = "$pre_test_object_deps_done"; then
  13785. case $prev in
  13786. -L | -R)
  13787. # Internal compiler library paths should come after those
  13788. # provided the user. The postdeps already come after the
  13789. # user supplied libs so there is no need to process them.
  13790. if test -z "$compiler_lib_search_path_CXX"; then
  13791. compiler_lib_search_path_CXX=$prev$p
  13792. else
  13793. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13794. fi
  13795. ;;
  13796. # The "-l" case would never come before the object being
  13797. # linked, so don't bother handling this case.
  13798. esac
  13799. else
  13800. if test -z "$postdeps_CXX"; then
  13801. postdeps_CXX=$prev$p
  13802. else
  13803. postdeps_CXX="${postdeps_CXX} $prev$p"
  13804. fi
  13805. fi
  13806. prev=
  13807. ;;
  13808. *.lto.$objext) ;; # Ignore GCC LTO objects
  13809. *.$objext)
  13810. # This assumes that the test object file only shows up
  13811. # once in the compiler output.
  13812. if test "$p" = "conftest.$objext"; then
  13813. pre_test_object_deps_done=yes
  13814. continue
  13815. fi
  13816. if test no = "$pre_test_object_deps_done"; then
  13817. if test -z "$predep_objects_CXX"; then
  13818. predep_objects_CXX=$p
  13819. else
  13820. predep_objects_CXX="$predep_objects_CXX $p"
  13821. fi
  13822. else
  13823. if test -z "$postdep_objects_CXX"; then
  13824. postdep_objects_CXX=$p
  13825. else
  13826. postdep_objects_CXX="$postdep_objects_CXX $p"
  13827. fi
  13828. fi
  13829. ;;
  13830. *) ;; # Ignore the rest.
  13831. esac
  13832. done
  13833. # Clean up.
  13834. rm -f a.out a.exe
  13835. else
  13836. echo "libtool.m4: error: problem compiling CXX test program"
  13837. fi
  13838. $RM -f confest.$objext
  13839. CFLAGS=$_lt_libdeps_save_CFLAGS
  13840. # PORTME: override above test on systems where it is broken
  13841. case $host_os in
  13842. interix[3-9]*)
  13843. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13844. # hack all around it, let's just trust "g++" to DTRT.
  13845. predep_objects_CXX=
  13846. postdep_objects_CXX=
  13847. postdeps_CXX=
  13848. ;;
  13849. esac
  13850. case " $postdeps_CXX " in
  13851. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13852. esac
  13853. compiler_lib_search_dirs_CXX=
  13854. if test -n "${compiler_lib_search_path_CXX}"; then
  13855. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13856. fi
  13857. lt_prog_compiler_wl_CXX=
  13858. lt_prog_compiler_pic_CXX=
  13859. lt_prog_compiler_static_CXX=
  13860. # C++ specific cases for pic, static, wl, etc.
  13861. if test yes = "$GXX"; then
  13862. lt_prog_compiler_wl_CXX='-Wl,'
  13863. lt_prog_compiler_static_CXX='-static'
  13864. case $host_os in
  13865. aix*)
  13866. # All AIX code is PIC.
  13867. if test ia64 = "$host_cpu"; then
  13868. # AIX 5 now supports IA64 processor
  13869. lt_prog_compiler_static_CXX='-Bstatic'
  13870. fi
  13871. lt_prog_compiler_pic_CXX='-fPIC'
  13872. ;;
  13873. amigaos*)
  13874. case $host_cpu in
  13875. powerpc)
  13876. # see comment about AmigaOS4 .so support
  13877. lt_prog_compiler_pic_CXX='-fPIC'
  13878. ;;
  13879. m68k)
  13880. # FIXME: we need at least 68020 code to build shared libraries, but
  13881. # adding the '-m68020' flag to GCC prevents building anything better,
  13882. # like '-m68040'.
  13883. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13884. ;;
  13885. esac
  13886. ;;
  13887. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13888. # PIC is the default for these OSes.
  13889. ;;
  13890. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13891. # This hack is so that the source file can tell whether it is being
  13892. # built for inclusion in a dll (and should export symbols for example).
  13893. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13894. # (--disable-auto-import) libraries
  13895. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13896. case $host_os in
  13897. os2*)
  13898. lt_prog_compiler_static_CXX='$wl-static'
  13899. ;;
  13900. esac
  13901. ;;
  13902. darwin* | rhapsody*)
  13903. # PIC is the default on this platform
  13904. # Common symbols not allowed in MH_DYLIB files
  13905. lt_prog_compiler_pic_CXX='-fno-common'
  13906. ;;
  13907. *djgpp*)
  13908. # DJGPP does not support shared libraries at all
  13909. lt_prog_compiler_pic_CXX=
  13910. ;;
  13911. haiku*)
  13912. # PIC is the default for Haiku.
  13913. # The "-static" flag exists, but is broken.
  13914. lt_prog_compiler_static_CXX=
  13915. ;;
  13916. interix[3-9]*)
  13917. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13918. # Instead, we relocate shared libraries at runtime.
  13919. ;;
  13920. sysv4*MP*)
  13921. if test -d /usr/nec; then
  13922. lt_prog_compiler_pic_CXX=-Kconform_pic
  13923. fi
  13924. ;;
  13925. hpux*)
  13926. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13927. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13928. # sets the default TLS model and affects inlining.
  13929. case $host_cpu in
  13930. hppa*64*)
  13931. ;;
  13932. *)
  13933. lt_prog_compiler_pic_CXX='-fPIC'
  13934. ;;
  13935. esac
  13936. ;;
  13937. *qnx* | *nto*)
  13938. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13939. # it will coredump.
  13940. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13941. ;;
  13942. *)
  13943. lt_prog_compiler_pic_CXX='-fPIC'
  13944. ;;
  13945. esac
  13946. else
  13947. case $host_os in
  13948. aix[4-9]*)
  13949. # All AIX code is PIC.
  13950. if test ia64 = "$host_cpu"; then
  13951. # AIX 5 now supports IA64 processor
  13952. lt_prog_compiler_static_CXX='-Bstatic'
  13953. else
  13954. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13955. fi
  13956. ;;
  13957. chorus*)
  13958. case $cc_basename in
  13959. cxch68*)
  13960. # Green Hills C++ Compiler
  13961. # _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"
  13962. ;;
  13963. esac
  13964. ;;
  13965. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13966. # This hack is so that the source file can tell whether it is being
  13967. # built for inclusion in a dll (and should export symbols for example).
  13968. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13969. ;;
  13970. dgux*)
  13971. case $cc_basename in
  13972. ec++*)
  13973. lt_prog_compiler_pic_CXX='-KPIC'
  13974. ;;
  13975. ghcx*)
  13976. # Green Hills C++ Compiler
  13977. lt_prog_compiler_pic_CXX='-pic'
  13978. ;;
  13979. *)
  13980. ;;
  13981. esac
  13982. ;;
  13983. freebsd* | dragonfly* | midnightbsd*)
  13984. # FreeBSD uses GNU C++
  13985. ;;
  13986. hpux9* | hpux10* | hpux11*)
  13987. case $cc_basename in
  13988. CC*)
  13989. lt_prog_compiler_wl_CXX='-Wl,'
  13990. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13991. if test ia64 != "$host_cpu"; then
  13992. lt_prog_compiler_pic_CXX='+Z'
  13993. fi
  13994. ;;
  13995. aCC*)
  13996. lt_prog_compiler_wl_CXX='-Wl,'
  13997. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13998. case $host_cpu in
  13999. hppa*64*|ia64*)
  14000. # +Z the default
  14001. ;;
  14002. *)
  14003. lt_prog_compiler_pic_CXX='+Z'
  14004. ;;
  14005. esac
  14006. ;;
  14007. *)
  14008. ;;
  14009. esac
  14010. ;;
  14011. interix*)
  14012. # This is c89, which is MS Visual C++ (no shared libs)
  14013. # Anyone wants to do a port?
  14014. ;;
  14015. irix5* | irix6* | nonstopux*)
  14016. case $cc_basename in
  14017. CC*)
  14018. lt_prog_compiler_wl_CXX='-Wl,'
  14019. lt_prog_compiler_static_CXX='-non_shared'
  14020. # CC pic flag -KPIC is the default.
  14021. ;;
  14022. *)
  14023. ;;
  14024. esac
  14025. ;;
  14026. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14027. case $cc_basename in
  14028. KCC*)
  14029. # KAI C++ Compiler
  14030. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14031. lt_prog_compiler_pic_CXX='-fPIC'
  14032. ;;
  14033. ecpc* )
  14034. # old Intel C++ for x86_64, which still supported -KPIC.
  14035. lt_prog_compiler_wl_CXX='-Wl,'
  14036. lt_prog_compiler_pic_CXX='-KPIC'
  14037. lt_prog_compiler_static_CXX='-static'
  14038. ;;
  14039. icpc* )
  14040. # Intel C++, used to be incompatible with GCC.
  14041. # ICC 10 doesn't accept -KPIC any more.
  14042. lt_prog_compiler_wl_CXX='-Wl,'
  14043. lt_prog_compiler_pic_CXX='-fPIC'
  14044. lt_prog_compiler_static_CXX='-static'
  14045. ;;
  14046. pgCC* | pgcpp*)
  14047. # Portland Group C++ compiler
  14048. lt_prog_compiler_wl_CXX='-Wl,'
  14049. lt_prog_compiler_pic_CXX='-fpic'
  14050. lt_prog_compiler_static_CXX='-Bstatic'
  14051. ;;
  14052. cxx*)
  14053. # Compaq C++
  14054. # Make sure the PIC flag is empty. It appears that all Alpha
  14055. # Linux and Compaq Tru64 Unix objects are PIC.
  14056. lt_prog_compiler_pic_CXX=
  14057. lt_prog_compiler_static_CXX='-non_shared'
  14058. ;;
  14059. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14060. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14061. lt_prog_compiler_wl_CXX='-Wl,'
  14062. lt_prog_compiler_pic_CXX='-qpic'
  14063. lt_prog_compiler_static_CXX='-qstaticlink'
  14064. ;;
  14065. *)
  14066. case `$CC -V 2>&1 | sed 5q` in
  14067. *Sun\ C*)
  14068. # Sun C++ 5.9
  14069. lt_prog_compiler_pic_CXX='-KPIC'
  14070. lt_prog_compiler_static_CXX='-Bstatic'
  14071. lt_prog_compiler_wl_CXX='-Qoption ld '
  14072. ;;
  14073. esac
  14074. ;;
  14075. esac
  14076. ;;
  14077. lynxos*)
  14078. ;;
  14079. m88k*)
  14080. ;;
  14081. mvs*)
  14082. case $cc_basename in
  14083. cxx*)
  14084. lt_prog_compiler_pic_CXX='-W c,exportall'
  14085. ;;
  14086. *)
  14087. ;;
  14088. esac
  14089. ;;
  14090. netbsd*)
  14091. ;;
  14092. *qnx* | *nto*)
  14093. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14094. # it will coredump.
  14095. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14096. ;;
  14097. osf3* | osf4* | osf5*)
  14098. case $cc_basename in
  14099. KCC*)
  14100. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14101. ;;
  14102. RCC*)
  14103. # Rational C++ 2.4.1
  14104. lt_prog_compiler_pic_CXX='-pic'
  14105. ;;
  14106. cxx*)
  14107. # Digital/Compaq C++
  14108. lt_prog_compiler_wl_CXX='-Wl,'
  14109. # Make sure the PIC flag is empty. It appears that all Alpha
  14110. # Linux and Compaq Tru64 Unix objects are PIC.
  14111. lt_prog_compiler_pic_CXX=
  14112. lt_prog_compiler_static_CXX='-non_shared'
  14113. ;;
  14114. *)
  14115. ;;
  14116. esac
  14117. ;;
  14118. psos*)
  14119. ;;
  14120. solaris*)
  14121. case $cc_basename in
  14122. CC* | sunCC*)
  14123. # Sun C++ 4.2, 5.x and Centerline C++
  14124. lt_prog_compiler_pic_CXX='-KPIC'
  14125. lt_prog_compiler_static_CXX='-Bstatic'
  14126. lt_prog_compiler_wl_CXX='-Qoption ld '
  14127. ;;
  14128. gcx*)
  14129. # Green Hills C++ Compiler
  14130. lt_prog_compiler_pic_CXX='-PIC'
  14131. ;;
  14132. *)
  14133. ;;
  14134. esac
  14135. ;;
  14136. sunos4*)
  14137. case $cc_basename in
  14138. CC*)
  14139. # Sun C++ 4.x
  14140. lt_prog_compiler_pic_CXX='-pic'
  14141. lt_prog_compiler_static_CXX='-Bstatic'
  14142. ;;
  14143. lcc*)
  14144. # Lucid
  14145. lt_prog_compiler_pic_CXX='-pic'
  14146. ;;
  14147. *)
  14148. ;;
  14149. esac
  14150. ;;
  14151. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14152. case $cc_basename in
  14153. CC*)
  14154. lt_prog_compiler_wl_CXX='-Wl,'
  14155. lt_prog_compiler_pic_CXX='-KPIC'
  14156. lt_prog_compiler_static_CXX='-Bstatic'
  14157. ;;
  14158. esac
  14159. ;;
  14160. tandem*)
  14161. case $cc_basename in
  14162. NCC*)
  14163. # NonStop-UX NCC 3.20
  14164. lt_prog_compiler_pic_CXX='-KPIC'
  14165. ;;
  14166. *)
  14167. ;;
  14168. esac
  14169. ;;
  14170. vxworks*)
  14171. ;;
  14172. *)
  14173. lt_prog_compiler_can_build_shared_CXX=no
  14174. ;;
  14175. esac
  14176. fi
  14177. case $host_os in
  14178. # For platforms that do not support PIC, -DPIC is meaningless:
  14179. *djgpp*)
  14180. lt_prog_compiler_pic_CXX=
  14181. ;;
  14182. *)
  14183. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14184. ;;
  14185. esac
  14186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14187. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14188. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14189. then :
  14190. printf %s "(cached) " >&6
  14191. else $as_nop
  14192. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14193. fi
  14194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14195. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14196. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14197. #
  14198. # Check to make sure the PIC flag actually works.
  14199. #
  14200. if test -n "$lt_prog_compiler_pic_CXX"; then
  14201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14202. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14203. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14204. then :
  14205. printf %s "(cached) " >&6
  14206. else $as_nop
  14207. lt_cv_prog_compiler_pic_works_CXX=no
  14208. ac_outfile=conftest.$ac_objext
  14209. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14210. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14211. # Insert the option either (1) after the last *FLAGS variable, or
  14212. # (2) before a word containing "conftest.", or (3) at the end.
  14213. # Note that $ac_compile itself does not contain backslashes and begins
  14214. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14215. # The option is referenced via a variable to avoid confusing sed.
  14216. lt_compile=`echo "$ac_compile" | $SED \
  14217. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14218. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14219. -e 's:$: $lt_compiler_flag:'`
  14220. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14221. (eval "$lt_compile" 2>conftest.err)
  14222. ac_status=$?
  14223. cat conftest.err >&5
  14224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14225. if (exit $ac_status) && test -s "$ac_outfile"; then
  14226. # The compiler can only warn and ignore the option if not recognized
  14227. # So say no if there are warnings other than the usual output.
  14228. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14229. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14230. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14231. lt_cv_prog_compiler_pic_works_CXX=yes
  14232. fi
  14233. fi
  14234. $RM conftest*
  14235. fi
  14236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14237. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14238. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14239. case $lt_prog_compiler_pic_CXX in
  14240. "" | " "*) ;;
  14241. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14242. esac
  14243. else
  14244. lt_prog_compiler_pic_CXX=
  14245. lt_prog_compiler_can_build_shared_CXX=no
  14246. fi
  14247. fi
  14248. #
  14249. # Check to make sure the static flag actually works.
  14250. #
  14251. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14253. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14254. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14255. then :
  14256. printf %s "(cached) " >&6
  14257. else $as_nop
  14258. lt_cv_prog_compiler_static_works_CXX=no
  14259. save_LDFLAGS=$LDFLAGS
  14260. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14261. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14262. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14263. # The linker can only warn and ignore the option if not recognized
  14264. # So say no if there are warnings
  14265. if test -s conftest.err; then
  14266. # Append any errors to the config.log.
  14267. cat conftest.err 1>&5
  14268. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14269. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14270. if diff conftest.exp conftest.er2 >/dev/null; then
  14271. lt_cv_prog_compiler_static_works_CXX=yes
  14272. fi
  14273. else
  14274. lt_cv_prog_compiler_static_works_CXX=yes
  14275. fi
  14276. fi
  14277. $RM -r conftest*
  14278. LDFLAGS=$save_LDFLAGS
  14279. fi
  14280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14281. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14282. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14283. :
  14284. else
  14285. lt_prog_compiler_static_CXX=
  14286. fi
  14287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14288. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14289. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14290. then :
  14291. printf %s "(cached) " >&6
  14292. else $as_nop
  14293. lt_cv_prog_compiler_c_o_CXX=no
  14294. $RM -r conftest 2>/dev/null
  14295. mkdir conftest
  14296. cd conftest
  14297. mkdir out
  14298. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14299. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14300. # Insert the option either (1) after the last *FLAGS variable, or
  14301. # (2) before a word containing "conftest.", or (3) at the end.
  14302. # Note that $ac_compile itself does not contain backslashes and begins
  14303. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14304. lt_compile=`echo "$ac_compile" | $SED \
  14305. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14306. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14307. -e 's:$: $lt_compiler_flag:'`
  14308. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14309. (eval "$lt_compile" 2>out/conftest.err)
  14310. ac_status=$?
  14311. cat out/conftest.err >&5
  14312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14313. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14314. then
  14315. # The compiler can only warn and ignore the option if not recognized
  14316. # So say no if there are warnings
  14317. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14318. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14319. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14320. lt_cv_prog_compiler_c_o_CXX=yes
  14321. fi
  14322. fi
  14323. chmod u+w . 2>&5
  14324. $RM conftest*
  14325. # SGI C++ compiler will create directory out/ii_files/ for
  14326. # template instantiation
  14327. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14328. $RM out/* && rmdir out
  14329. cd ..
  14330. $RM -r conftest
  14331. $RM conftest*
  14332. fi
  14333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14334. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14336. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14337. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14338. then :
  14339. printf %s "(cached) " >&6
  14340. else $as_nop
  14341. lt_cv_prog_compiler_c_o_CXX=no
  14342. $RM -r conftest 2>/dev/null
  14343. mkdir conftest
  14344. cd conftest
  14345. mkdir out
  14346. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14347. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14348. # Insert the option either (1) after the last *FLAGS variable, or
  14349. # (2) before a word containing "conftest.", or (3) at the end.
  14350. # Note that $ac_compile itself does not contain backslashes and begins
  14351. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14352. lt_compile=`echo "$ac_compile" | $SED \
  14353. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14354. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14355. -e 's:$: $lt_compiler_flag:'`
  14356. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14357. (eval "$lt_compile" 2>out/conftest.err)
  14358. ac_status=$?
  14359. cat out/conftest.err >&5
  14360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14361. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14362. then
  14363. # The compiler can only warn and ignore the option if not recognized
  14364. # So say no if there are warnings
  14365. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14366. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14367. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14368. lt_cv_prog_compiler_c_o_CXX=yes
  14369. fi
  14370. fi
  14371. chmod u+w . 2>&5
  14372. $RM conftest*
  14373. # SGI C++ compiler will create directory out/ii_files/ for
  14374. # template instantiation
  14375. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14376. $RM out/* && rmdir out
  14377. cd ..
  14378. $RM -r conftest
  14379. $RM conftest*
  14380. fi
  14381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14382. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14383. hard_links=nottested
  14384. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14385. # do not overwrite the value of need_locks provided by the user
  14386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14387. printf %s "checking if we can lock with hard links... " >&6; }
  14388. hard_links=yes
  14389. $RM conftest*
  14390. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14391. touch conftest.a
  14392. ln conftest.a conftest.b 2>&5 || hard_links=no
  14393. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14395. printf "%s\n" "$hard_links" >&6; }
  14396. if test no = "$hard_links"; then
  14397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14398. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14399. need_locks=warn
  14400. fi
  14401. else
  14402. need_locks=no
  14403. fi
  14404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14405. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14406. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14407. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14408. case $host_os in
  14409. aix[4-9]*)
  14410. # If we're using GNU nm, then we don't want the "-C" option.
  14411. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14412. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14413. # weak defined symbols like other global defined symbols, whereas
  14414. # GNU nm marks them as "W".
  14415. # While the 'weak' keyword is ignored in the Export File, we need
  14416. # it in the Import File for the 'aix-soname' feature, so we have
  14417. # to replace the "-B" option with "-P" for AIX nm.
  14418. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14419. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  14420. else
  14421. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  14422. fi
  14423. ;;
  14424. pw32*)
  14425. export_symbols_cmds_CXX=$ltdll_cmds
  14426. ;;
  14427. cygwin* | mingw* | cegcc*)
  14428. case $cc_basename in
  14429. cl*)
  14430. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14431. ;;
  14432. *)
  14433. 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'
  14434. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14435. ;;
  14436. esac
  14437. ;;
  14438. *)
  14439. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14440. ;;
  14441. esac
  14442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14443. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14444. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14445. with_gnu_ld_CXX=$with_gnu_ld
  14446. #
  14447. # Do we need to explicitly link libc?
  14448. #
  14449. case "x$archive_cmds_need_lc_CXX" in
  14450. x|xyes)
  14451. # Assume -lc should be added
  14452. archive_cmds_need_lc_CXX=yes
  14453. if test yes,yes = "$GCC,$enable_shared"; then
  14454. case $archive_cmds_CXX in
  14455. *'~'*)
  14456. # FIXME: we may have to deal with multi-command sequences.
  14457. ;;
  14458. '$CC '*)
  14459. # Test whether the compiler implicitly links with -lc since on some
  14460. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14461. # to ld, don't add -lc before -lgcc.
  14462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14463. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14464. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14465. then :
  14466. printf %s "(cached) " >&6
  14467. else $as_nop
  14468. $RM conftest*
  14469. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14470. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14471. (eval $ac_compile) 2>&5
  14472. ac_status=$?
  14473. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14474. test $ac_status = 0; } 2>conftest.err; then
  14475. soname=conftest
  14476. lib=conftest
  14477. libobjs=conftest.$ac_objext
  14478. deplibs=
  14479. wl=$lt_prog_compiler_wl_CXX
  14480. pic_flag=$lt_prog_compiler_pic_CXX
  14481. compiler_flags=-v
  14482. linker_flags=-v
  14483. verstring=
  14484. output_objdir=.
  14485. libname=conftest
  14486. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14487. allow_undefined_flag_CXX=
  14488. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14489. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14490. ac_status=$?
  14491. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14492. test $ac_status = 0; }
  14493. then
  14494. lt_cv_archive_cmds_need_lc_CXX=no
  14495. else
  14496. lt_cv_archive_cmds_need_lc_CXX=yes
  14497. fi
  14498. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14499. else
  14500. cat conftest.err 1>&5
  14501. fi
  14502. $RM conftest*
  14503. fi
  14504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14505. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14506. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14507. ;;
  14508. esac
  14509. fi
  14510. ;;
  14511. esac
  14512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14513. printf %s "checking dynamic linker characteristics... " >&6; }
  14514. library_names_spec=
  14515. libname_spec='lib$name'
  14516. soname_spec=
  14517. shrext_cmds=.so
  14518. postinstall_cmds=
  14519. postuninstall_cmds=
  14520. finish_cmds=
  14521. finish_eval=
  14522. shlibpath_var=
  14523. shlibpath_overrides_runpath=unknown
  14524. version_type=none
  14525. dynamic_linker="$host_os ld.so"
  14526. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14527. need_lib_prefix=unknown
  14528. hardcode_into_libs=no
  14529. # when you set need_version to no, make sure it does not cause -set_version
  14530. # flags to be left without arguments
  14531. need_version=unknown
  14532. case $host_os in
  14533. aix3*)
  14534. version_type=linux # correct to gnu/linux during the next big refactor
  14535. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14536. shlibpath_var=LIBPATH
  14537. # AIX 3 has no versioning support, so we append a major version to the name.
  14538. soname_spec='$libname$release$shared_ext$major'
  14539. ;;
  14540. aix[4-9]*)
  14541. version_type=linux # correct to gnu/linux during the next big refactor
  14542. need_lib_prefix=no
  14543. need_version=no
  14544. hardcode_into_libs=yes
  14545. if test ia64 = "$host_cpu"; then
  14546. # AIX 5 supports IA64
  14547. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14548. shlibpath_var=LD_LIBRARY_PATH
  14549. else
  14550. # With GCC up to 2.95.x, collect2 would create an import file
  14551. # for dependence libraries. The import file would start with
  14552. # the line '#! .'. This would cause the generated library to
  14553. # depend on '.', always an invalid library. This was fixed in
  14554. # development snapshots of GCC prior to 3.0.
  14555. case $host_os in
  14556. aix4 | aix4.[01] | aix4.[01].*)
  14557. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14558. echo ' yes '
  14559. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14560. :
  14561. else
  14562. can_build_shared=no
  14563. fi
  14564. ;;
  14565. esac
  14566. # Using Import Files as archive members, it is possible to support
  14567. # filename-based versioning of shared library archives on AIX. While
  14568. # this would work for both with and without runtime linking, it will
  14569. # prevent static linking of such archives. So we do filename-based
  14570. # shared library versioning with .so extension only, which is used
  14571. # when both runtime linking and shared linking is enabled.
  14572. # Unfortunately, runtime linking may impact performance, so we do
  14573. # not want this to be the default eventually. Also, we use the
  14574. # versioned .so libs for executables only if there is the -brtl
  14575. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14576. # To allow for filename-based versioning support, we need to create
  14577. # libNAME.so.V as an archive file, containing:
  14578. # *) an Import File, referring to the versioned filename of the
  14579. # archive as well as the shared archive member, telling the
  14580. # bitwidth (32 or 64) of that shared object, and providing the
  14581. # list of exported symbols of that shared object, eventually
  14582. # decorated with the 'weak' keyword
  14583. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14584. # it being seen by the linker.
  14585. # At run time we better use the real file rather than another symlink,
  14586. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14587. case $with_aix_soname,$aix_use_runtimelinking in
  14588. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14589. # soname into executable. Probably we can add versioning support to
  14590. # collect2, so additional links can be useful in future.
  14591. aix,yes) # traditional libtool
  14592. dynamic_linker='AIX unversionable lib.so'
  14593. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14594. # instead of lib<name>.a to let people know that these are not
  14595. # typical AIX shared libraries.
  14596. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14597. ;;
  14598. aix,no) # traditional AIX only
  14599. dynamic_linker='AIX lib.a(lib.so.V)'
  14600. # We preserve .a as extension for shared libraries through AIX4.2
  14601. # and later when we are not doing run time linking.
  14602. library_names_spec='$libname$release.a $libname.a'
  14603. soname_spec='$libname$release$shared_ext$major'
  14604. ;;
  14605. svr4,*) # full svr4 only
  14606. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14607. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14608. # We do not specify a path in Import Files, so LIBPATH fires.
  14609. shlibpath_overrides_runpath=yes
  14610. ;;
  14611. *,yes) # both, prefer svr4
  14612. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14613. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14614. # unpreferred sharedlib libNAME.a needs extra handling
  14615. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  14616. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  14617. # We do not specify a path in Import Files, so LIBPATH fires.
  14618. shlibpath_overrides_runpath=yes
  14619. ;;
  14620. *,no) # both, prefer aix
  14621. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14622. library_names_spec='$libname$release.a $libname.a'
  14623. soname_spec='$libname$release$shared_ext$major'
  14624. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14625. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  14626. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  14627. ;;
  14628. esac
  14629. shlibpath_var=LIBPATH
  14630. fi
  14631. ;;
  14632. amigaos*)
  14633. case $host_cpu in
  14634. powerpc)
  14635. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14636. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14637. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14638. ;;
  14639. m68k)
  14640. library_names_spec='$libname.ixlibrary $libname.a'
  14641. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14642. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  14643. ;;
  14644. esac
  14645. ;;
  14646. beos*)
  14647. library_names_spec='$libname$shared_ext'
  14648. dynamic_linker="$host_os ld.so"
  14649. shlibpath_var=LIBRARY_PATH
  14650. ;;
  14651. bsdi[45]*)
  14652. version_type=linux # correct to gnu/linux during the next big refactor
  14653. need_version=no
  14654. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14655. soname_spec='$libname$release$shared_ext$major'
  14656. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14657. shlibpath_var=LD_LIBRARY_PATH
  14658. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14659. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14660. # the default ld.so.conf also contains /usr/contrib/lib and
  14661. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14662. # libtool to hard-code these into programs
  14663. ;;
  14664. cygwin* | mingw* | pw32* | cegcc*)
  14665. version_type=windows
  14666. shrext_cmds=.dll
  14667. need_version=no
  14668. need_lib_prefix=no
  14669. case $GCC,$cc_basename in
  14670. yes,*)
  14671. # gcc
  14672. library_names_spec='$libname.dll.a'
  14673. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14674. postinstall_cmds='base_file=`basename \$file`~
  14675. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14676. dldir=$destdir/`dirname \$dlpath`~
  14677. test -d \$dldir || mkdir -p \$dldir~
  14678. $install_prog $dir/$dlname \$dldir/$dlname~
  14679. chmod a+x \$dldir/$dlname~
  14680. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14681. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14682. fi'
  14683. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14684. dlpath=$dir/\$dldll~
  14685. $RM \$dlpath'
  14686. shlibpath_overrides_runpath=yes
  14687. case $host_os in
  14688. cygwin*)
  14689. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14690. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14691. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14692. ;;
  14693. mingw* | cegcc*)
  14694. # MinGW DLLs use traditional 'lib' prefix
  14695. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14696. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14697. ;;
  14698. pw32*)
  14699. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14700. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14701. ;;
  14702. esac
  14703. dynamic_linker='Win32 ld.exe'
  14704. ;;
  14705. *,cl*)
  14706. # Native MSVC
  14707. libname_spec='$name'
  14708. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14709. library_names_spec='$libname.dll.lib'
  14710. case $build_os in
  14711. mingw*)
  14712. sys_lib_search_path_spec=
  14713. lt_save_ifs=$IFS
  14714. IFS=';'
  14715. for lt_path in $LIB
  14716. do
  14717. IFS=$lt_save_ifs
  14718. # Let DOS variable expansion print the short 8.3 style file name.
  14719. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14720. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14721. done
  14722. IFS=$lt_save_ifs
  14723. # Convert to MSYS style.
  14724. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14725. ;;
  14726. cygwin*)
  14727. # Convert to unix form, then to dos form, then back to unix form
  14728. # but this time dos style (no spaces!) so that the unix form looks
  14729. # like /cygdrive/c/PROGRA~1:/cygdr...
  14730. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14731. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14732. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14733. ;;
  14734. *)
  14735. sys_lib_search_path_spec=$LIB
  14736. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14737. # It is most probably a Windows format PATH.
  14738. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14739. else
  14740. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14741. fi
  14742. # FIXME: find the short name or the path components, as spaces are
  14743. # common. (e.g. "Program Files" -> "PROGRA~1")
  14744. ;;
  14745. esac
  14746. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14747. postinstall_cmds='base_file=`basename \$file`~
  14748. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14749. dldir=$destdir/`dirname \$dlpath`~
  14750. test -d \$dldir || mkdir -p \$dldir~
  14751. $install_prog $dir/$dlname \$dldir/$dlname'
  14752. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14753. dlpath=$dir/\$dldll~
  14754. $RM \$dlpath'
  14755. shlibpath_overrides_runpath=yes
  14756. dynamic_linker='Win32 link.exe'
  14757. ;;
  14758. *)
  14759. # Assume MSVC wrapper
  14760. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14761. dynamic_linker='Win32 ld.exe'
  14762. ;;
  14763. esac
  14764. # FIXME: first we should search . and the directory the executable is in
  14765. shlibpath_var=PATH
  14766. ;;
  14767. darwin* | rhapsody*)
  14768. dynamic_linker="$host_os dyld"
  14769. version_type=darwin
  14770. need_lib_prefix=no
  14771. need_version=no
  14772. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14773. soname_spec='$libname$release$major$shared_ext'
  14774. shlibpath_overrides_runpath=yes
  14775. shlibpath_var=DYLD_LIBRARY_PATH
  14776. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14777. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14778. ;;
  14779. dgux*)
  14780. version_type=linux # correct to gnu/linux during the next big refactor
  14781. need_lib_prefix=no
  14782. need_version=no
  14783. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14784. soname_spec='$libname$release$shared_ext$major'
  14785. shlibpath_var=LD_LIBRARY_PATH
  14786. ;;
  14787. freebsd* | dragonfly* | midnightbsd*)
  14788. # DragonFly does not have aout. When/if they implement a new
  14789. # versioning mechanism, adjust this.
  14790. if test -x /usr/bin/objformat; then
  14791. objformat=`/usr/bin/objformat`
  14792. else
  14793. case $host_os in
  14794. freebsd[23].*) objformat=aout ;;
  14795. *) objformat=elf ;;
  14796. esac
  14797. fi
  14798. version_type=freebsd-$objformat
  14799. case $version_type in
  14800. freebsd-elf*)
  14801. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14802. soname_spec='$libname$release$shared_ext$major'
  14803. need_version=no
  14804. need_lib_prefix=no
  14805. ;;
  14806. freebsd-*)
  14807. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14808. need_version=yes
  14809. ;;
  14810. esac
  14811. shlibpath_var=LD_LIBRARY_PATH
  14812. case $host_os in
  14813. freebsd2.*)
  14814. shlibpath_overrides_runpath=yes
  14815. ;;
  14816. freebsd3.[01]* | freebsdelf3.[01]*)
  14817. shlibpath_overrides_runpath=yes
  14818. hardcode_into_libs=yes
  14819. ;;
  14820. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14821. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14822. shlibpath_overrides_runpath=no
  14823. hardcode_into_libs=yes
  14824. ;;
  14825. *) # from 4.6 on, and DragonFly
  14826. shlibpath_overrides_runpath=yes
  14827. hardcode_into_libs=yes
  14828. ;;
  14829. esac
  14830. ;;
  14831. haiku*)
  14832. version_type=linux # correct to gnu/linux during the next big refactor
  14833. need_lib_prefix=no
  14834. need_version=no
  14835. dynamic_linker="$host_os runtime_loader"
  14836. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14837. soname_spec='$libname$release$shared_ext$major'
  14838. shlibpath_var=LIBRARY_PATH
  14839. shlibpath_overrides_runpath=no
  14840. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14841. hardcode_into_libs=yes
  14842. ;;
  14843. hpux9* | hpux10* | hpux11*)
  14844. # Give a soname corresponding to the major version so that dld.sl refuses to
  14845. # link against other versions.
  14846. version_type=sunos
  14847. need_lib_prefix=no
  14848. need_version=no
  14849. case $host_cpu in
  14850. ia64*)
  14851. shrext_cmds='.so'
  14852. hardcode_into_libs=yes
  14853. dynamic_linker="$host_os dld.so"
  14854. shlibpath_var=LD_LIBRARY_PATH
  14855. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14856. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14857. soname_spec='$libname$release$shared_ext$major'
  14858. if test 32 = "$HPUX_IA64_MODE"; then
  14859. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14860. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14861. else
  14862. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14863. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14864. fi
  14865. ;;
  14866. hppa*64*)
  14867. shrext_cmds='.sl'
  14868. hardcode_into_libs=yes
  14869. dynamic_linker="$host_os dld.sl"
  14870. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14871. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14872. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14873. soname_spec='$libname$release$shared_ext$major'
  14874. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14875. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14876. ;;
  14877. *)
  14878. shrext_cmds='.sl'
  14879. dynamic_linker="$host_os dld.sl"
  14880. shlibpath_var=SHLIB_PATH
  14881. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14882. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14883. soname_spec='$libname$release$shared_ext$major'
  14884. ;;
  14885. esac
  14886. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14887. postinstall_cmds='chmod 555 $lib'
  14888. # or fails outright, so override atomically:
  14889. install_override_mode=555
  14890. ;;
  14891. interix[3-9]*)
  14892. version_type=linux # correct to gnu/linux during the next big refactor
  14893. need_lib_prefix=no
  14894. need_version=no
  14895. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14896. soname_spec='$libname$release$shared_ext$major'
  14897. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14898. shlibpath_var=LD_LIBRARY_PATH
  14899. shlibpath_overrides_runpath=no
  14900. hardcode_into_libs=yes
  14901. ;;
  14902. irix5* | irix6* | nonstopux*)
  14903. case $host_os in
  14904. nonstopux*) version_type=nonstopux ;;
  14905. *)
  14906. if test yes = "$lt_cv_prog_gnu_ld"; then
  14907. version_type=linux # correct to gnu/linux during the next big refactor
  14908. else
  14909. version_type=irix
  14910. fi ;;
  14911. esac
  14912. need_lib_prefix=no
  14913. need_version=no
  14914. soname_spec='$libname$release$shared_ext$major'
  14915. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14916. case $host_os in
  14917. irix5* | nonstopux*)
  14918. libsuff= shlibsuff=
  14919. ;;
  14920. *)
  14921. case $LD in # libtool.m4 will add one of these switches to LD
  14922. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14923. libsuff= shlibsuff= libmagic=32-bit;;
  14924. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14925. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14926. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14927. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14928. *) libsuff= shlibsuff= libmagic=never-match;;
  14929. esac
  14930. ;;
  14931. esac
  14932. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14933. shlibpath_overrides_runpath=no
  14934. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14935. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14936. hardcode_into_libs=yes
  14937. ;;
  14938. # No shared lib support for Linux oldld, aout, or coff.
  14939. linux*oldld* | linux*aout* | linux*coff*)
  14940. dynamic_linker=no
  14941. ;;
  14942. linux*android*)
  14943. version_type=none # Android doesn't support versioned libraries.
  14944. need_lib_prefix=no
  14945. need_version=no
  14946. library_names_spec='$libname$release$shared_ext'
  14947. soname_spec='$libname$release$shared_ext'
  14948. finish_cmds=
  14949. shlibpath_var=LD_LIBRARY_PATH
  14950. shlibpath_overrides_runpath=yes
  14951. # This implies no fast_install, which is unacceptable.
  14952. # Some rework will be needed to allow for fast_install
  14953. # before this can be enabled.
  14954. hardcode_into_libs=yes
  14955. dynamic_linker='Android linker'
  14956. # Don't embed -rpath directories since the linker doesn't support them.
  14957. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14958. ;;
  14959. # This must be glibc/ELF.
  14960. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14961. version_type=linux # correct to gnu/linux during the next big refactor
  14962. need_lib_prefix=no
  14963. need_version=no
  14964. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14965. soname_spec='$libname$release$shared_ext$major'
  14966. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14967. shlibpath_var=LD_LIBRARY_PATH
  14968. shlibpath_overrides_runpath=no
  14969. # Some binutils ld are patched to set DT_RUNPATH
  14970. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14971. then :
  14972. printf %s "(cached) " >&6
  14973. else $as_nop
  14974. lt_cv_shlibpath_overrides_runpath=no
  14975. save_LDFLAGS=$LDFLAGS
  14976. save_libdir=$libdir
  14977. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14978. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14980. /* end confdefs.h. */
  14981. int
  14982. main (void)
  14983. {
  14984. ;
  14985. return 0;
  14986. }
  14987. _ACEOF
  14988. if ac_fn_cxx_try_link "$LINENO"
  14989. then :
  14990. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14991. then :
  14992. lt_cv_shlibpath_overrides_runpath=yes
  14993. fi
  14994. fi
  14995. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14996. conftest$ac_exeext conftest.$ac_ext
  14997. LDFLAGS=$save_LDFLAGS
  14998. libdir=$save_libdir
  14999. fi
  15000. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15001. # This implies no fast_install, which is unacceptable.
  15002. # Some rework will be needed to allow for fast_install
  15003. # before this can be enabled.
  15004. hardcode_into_libs=yes
  15005. # Add ABI-specific directories to the system library path.
  15006. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  15007. # Ideally, we could use ldconfig to report *all* directores which are
  15008. # searched for libraries, however this is still not possible. Aside from not
  15009. # being certain /sbin/ldconfig is available, command
  15010. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15011. # even though it is searched at run-time. Try to do the best guess by
  15012. # appending ld.so.conf contents (and includes) to the search path.
  15013. if test -f /etc/ld.so.conf; then
  15014. 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' ' '`
  15015. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15016. fi
  15017. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15018. # powerpc, because MkLinux only supported shared libraries with the
  15019. # GNU dynamic linker. Since this was broken with cross compilers,
  15020. # most powerpc-linux boxes support dynamic linking these days and
  15021. # people can always --disable-shared, the test was removed, and we
  15022. # assume the GNU/Linux dynamic linker is in use.
  15023. dynamic_linker='GNU/Linux ld.so'
  15024. ;;
  15025. netbsd*)
  15026. version_type=sunos
  15027. need_lib_prefix=no
  15028. need_version=no
  15029. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15030. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15031. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15032. dynamic_linker='NetBSD (a.out) ld.so'
  15033. else
  15034. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15035. soname_spec='$libname$release$shared_ext$major'
  15036. dynamic_linker='NetBSD ld.elf_so'
  15037. fi
  15038. shlibpath_var=LD_LIBRARY_PATH
  15039. shlibpath_overrides_runpath=yes
  15040. hardcode_into_libs=yes
  15041. ;;
  15042. newsos6)
  15043. version_type=linux # correct to gnu/linux during the next big refactor
  15044. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15045. shlibpath_var=LD_LIBRARY_PATH
  15046. shlibpath_overrides_runpath=yes
  15047. ;;
  15048. *nto* | *qnx*)
  15049. version_type=qnx
  15050. need_lib_prefix=no
  15051. need_version=no
  15052. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15053. soname_spec='$libname$release$shared_ext$major'
  15054. shlibpath_var=LD_LIBRARY_PATH
  15055. shlibpath_overrides_runpath=no
  15056. hardcode_into_libs=yes
  15057. dynamic_linker='ldqnx.so'
  15058. ;;
  15059. openbsd* | bitrig*)
  15060. version_type=sunos
  15061. sys_lib_dlsearch_path_spec=/usr/lib
  15062. need_lib_prefix=no
  15063. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15064. need_version=no
  15065. else
  15066. need_version=yes
  15067. fi
  15068. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15069. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15070. shlibpath_var=LD_LIBRARY_PATH
  15071. shlibpath_overrides_runpath=yes
  15072. ;;
  15073. os2*)
  15074. libname_spec='$name'
  15075. shrext_cmds=.dll
  15076. need_lib_prefix=no
  15077. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15078. # SDL customization: removed versioning support.
  15079. # version_type=windows
  15080. # need_version=no
  15081. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15082. # v=$($ECHO $release$versuffix | tr -d .-);
  15083. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15084. # $ECHO $n$v`$shared_ext'
  15085. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15086. library_names_spec='${libname}_dll.$libext'
  15087. dynamic_linker='OS/2 ld.exe'
  15088. shlibpath_var=BEGINLIBPATH
  15089. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15090. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15091. postinstall_cmds='base_file=`basename \$file`~
  15092. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15093. dldir=$destdir/`dirname \$dlpath`~
  15094. test -d \$dldir || mkdir -p \$dldir~
  15095. $install_prog $dir/$dlname \$dldir/$dlname~
  15096. chmod a+x \$dldir/$dlname~
  15097. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15098. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15099. fi'
  15100. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15101. dlpath=$dir/\$dldll~
  15102. $RM \$dlpath'
  15103. ;;
  15104. osf3* | osf4* | osf5*)
  15105. version_type=osf
  15106. need_lib_prefix=no
  15107. need_version=no
  15108. soname_spec='$libname$release$shared_ext$major'
  15109. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15110. shlibpath_var=LD_LIBRARY_PATH
  15111. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15112. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15113. ;;
  15114. rdos*)
  15115. dynamic_linker=no
  15116. ;;
  15117. solaris*)
  15118. version_type=linux # correct to gnu/linux during the next big refactor
  15119. need_lib_prefix=no
  15120. need_version=no
  15121. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15122. soname_spec='$libname$release$shared_ext$major'
  15123. shlibpath_var=LD_LIBRARY_PATH
  15124. shlibpath_overrides_runpath=yes
  15125. hardcode_into_libs=yes
  15126. # ldd complains unless libraries are executable
  15127. postinstall_cmds='chmod +x $lib'
  15128. ;;
  15129. sunos4*)
  15130. version_type=sunos
  15131. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15132. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15133. shlibpath_var=LD_LIBRARY_PATH
  15134. shlibpath_overrides_runpath=yes
  15135. if test yes = "$with_gnu_ld"; then
  15136. need_lib_prefix=no
  15137. fi
  15138. need_version=yes
  15139. ;;
  15140. sysv4 | sysv4.3*)
  15141. version_type=linux # correct to gnu/linux during the next big refactor
  15142. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15143. soname_spec='$libname$release$shared_ext$major'
  15144. shlibpath_var=LD_LIBRARY_PATH
  15145. case $host_vendor in
  15146. sni)
  15147. shlibpath_overrides_runpath=no
  15148. need_lib_prefix=no
  15149. runpath_var=LD_RUN_PATH
  15150. ;;
  15151. siemens)
  15152. need_lib_prefix=no
  15153. ;;
  15154. motorola)
  15155. need_lib_prefix=no
  15156. need_version=no
  15157. shlibpath_overrides_runpath=no
  15158. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15159. ;;
  15160. esac
  15161. ;;
  15162. sysv4*MP*)
  15163. if test -d /usr/nec; then
  15164. version_type=linux # correct to gnu/linux during the next big refactor
  15165. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15166. soname_spec='$libname$shared_ext.$major'
  15167. shlibpath_var=LD_LIBRARY_PATH
  15168. fi
  15169. ;;
  15170. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15171. version_type=sco
  15172. need_lib_prefix=no
  15173. need_version=no
  15174. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15175. soname_spec='$libname$release$shared_ext$major'
  15176. shlibpath_var=LD_LIBRARY_PATH
  15177. shlibpath_overrides_runpath=yes
  15178. hardcode_into_libs=yes
  15179. if test yes = "$with_gnu_ld"; then
  15180. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15181. else
  15182. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15183. case $host_os in
  15184. sco3.2v5*)
  15185. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15186. ;;
  15187. esac
  15188. fi
  15189. sys_lib_dlsearch_path_spec='/usr/lib'
  15190. ;;
  15191. tpf*)
  15192. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15193. version_type=linux # correct to gnu/linux during the next big refactor
  15194. need_lib_prefix=no
  15195. need_version=no
  15196. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15197. shlibpath_var=LD_LIBRARY_PATH
  15198. shlibpath_overrides_runpath=no
  15199. hardcode_into_libs=yes
  15200. ;;
  15201. uts4*)
  15202. version_type=linux # correct to gnu/linux during the next big refactor
  15203. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15204. soname_spec='$libname$release$shared_ext$major'
  15205. shlibpath_var=LD_LIBRARY_PATH
  15206. ;;
  15207. *)
  15208. dynamic_linker=no
  15209. ;;
  15210. esac
  15211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15212. printf "%s\n" "$dynamic_linker" >&6; }
  15213. test no = "$dynamic_linker" && can_build_shared=no
  15214. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15215. if test yes = "$GCC"; then
  15216. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15217. fi
  15218. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15219. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15220. fi
  15221. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15222. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15223. fi
  15224. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15225. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15226. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15227. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15228. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15229. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15231. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15232. hardcode_action_CXX=
  15233. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15234. test -n "$runpath_var_CXX" ||
  15235. test yes = "$hardcode_automatic_CXX"; then
  15236. # We can hardcode non-existent directories.
  15237. if test no != "$hardcode_direct_CXX" &&
  15238. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15239. # have to relink, otherwise we might link with an installed library
  15240. # when we should be linking with a yet-to-be-installed one
  15241. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15242. test no != "$hardcode_minus_L_CXX"; then
  15243. # Linking always hardcodes the temporary library directory.
  15244. hardcode_action_CXX=relink
  15245. else
  15246. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15247. hardcode_action_CXX=immediate
  15248. fi
  15249. else
  15250. # We cannot hardcode anything, or else we can only hardcode existing
  15251. # directories.
  15252. hardcode_action_CXX=unsupported
  15253. fi
  15254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15255. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15256. if test relink = "$hardcode_action_CXX" ||
  15257. test yes = "$inherit_rpath_CXX"; then
  15258. # Fast installation is not supported
  15259. enable_fast_install=no
  15260. elif test yes = "$shlibpath_overrides_runpath" ||
  15261. test no = "$enable_shared"; then
  15262. # Fast installation is not necessary
  15263. enable_fast_install=needless
  15264. fi
  15265. fi # test -n "$compiler"
  15266. CC=$lt_save_CC
  15267. CFLAGS=$lt_save_CFLAGS
  15268. LDCXX=$LD
  15269. LD=$lt_save_LD
  15270. GCC=$lt_save_GCC
  15271. with_gnu_ld=$lt_save_with_gnu_ld
  15272. lt_cv_path_LDCXX=$lt_cv_path_LD
  15273. lt_cv_path_LD=$lt_save_path_LD
  15274. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15275. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15276. fi # test yes != "$_lt_caught_CXX_error"
  15277. ac_ext=c
  15278. ac_cpp='$CPP $CPPFLAGS'
  15279. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15280. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15281. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15283. printf %s "checking for egrep... " >&6; }
  15284. if test ${ac_cv_path_EGREP+y}
  15285. then :
  15286. printf %s "(cached) " >&6
  15287. else $as_nop
  15288. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15289. then ac_cv_path_EGREP="$GREP -E"
  15290. else
  15291. if test -z "$EGREP"; then
  15292. ac_path_EGREP_found=false
  15293. # Loop through the user's path and test for each of PROGNAME-LIST
  15294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15295. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15296. do
  15297. IFS=$as_save_IFS
  15298. case $as_dir in #(((
  15299. '') as_dir=./ ;;
  15300. */) ;;
  15301. *) as_dir=$as_dir/ ;;
  15302. esac
  15303. for ac_prog in egrep
  15304. do
  15305. for ac_exec_ext in '' $ac_executable_extensions; do
  15306. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15307. as_fn_executable_p "$ac_path_EGREP" || continue
  15308. # Check for GNU ac_path_EGREP and select it if it is found.
  15309. # Check for GNU $ac_path_EGREP
  15310. case `"$ac_path_EGREP" --version 2>&1` in
  15311. *GNU*)
  15312. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15313. *)
  15314. ac_count=0
  15315. printf %s 0123456789 >"conftest.in"
  15316. while :
  15317. do
  15318. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15319. mv "conftest.tmp" "conftest.in"
  15320. cp "conftest.in" "conftest.nl"
  15321. printf "%s\n" 'EGREP' >> "conftest.nl"
  15322. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15323. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15324. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15325. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15326. # Best one so far, save it but keep looking for a better one
  15327. ac_cv_path_EGREP="$ac_path_EGREP"
  15328. ac_path_EGREP_max=$ac_count
  15329. fi
  15330. # 10*(2^10) chars as input seems more than enough
  15331. test $ac_count -gt 10 && break
  15332. done
  15333. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15334. esac
  15335. $ac_path_EGREP_found && break 3
  15336. done
  15337. done
  15338. done
  15339. IFS=$as_save_IFS
  15340. if test -z "$ac_cv_path_EGREP"; then
  15341. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15342. fi
  15343. else
  15344. ac_cv_path_EGREP=$EGREP
  15345. fi
  15346. fi
  15347. fi
  15348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15349. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15350. EGREP="$ac_cv_path_EGREP"
  15351. # Find a good install program. We prefer a C program (faster),
  15352. # so one script is as good as another. But avoid the broken or
  15353. # incompatible versions:
  15354. # SysV /etc/install, /usr/sbin/install
  15355. # SunOS /usr/etc/install
  15356. # IRIX /sbin/install
  15357. # AIX /bin/install
  15358. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15359. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15360. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15361. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15362. # OS/2's system install, which has a completely different semantic
  15363. # ./install, which can be erroneously created by make from ./install.sh.
  15364. # Reject install programs that cannot install multiple files.
  15365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15366. printf %s "checking for a BSD-compatible install... " >&6; }
  15367. if test -z "$INSTALL"; then
  15368. if test ${ac_cv_path_install+y}
  15369. then :
  15370. printf %s "(cached) " >&6
  15371. else $as_nop
  15372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15373. for as_dir in $PATH
  15374. do
  15375. IFS=$as_save_IFS
  15376. case $as_dir in #(((
  15377. '') as_dir=./ ;;
  15378. */) ;;
  15379. *) as_dir=$as_dir/ ;;
  15380. esac
  15381. # Account for fact that we put trailing slashes in our PATH walk.
  15382. case $as_dir in #((
  15383. ./ | /[cC]/* | \
  15384. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15385. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15386. /usr/ucb/* ) ;;
  15387. *)
  15388. # OSF1 and SCO ODT 3.0 have their own names for install.
  15389. # Don't use installbsd from OSF since it installs stuff as root
  15390. # by default.
  15391. for ac_prog in ginstall scoinst install; do
  15392. for ac_exec_ext in '' $ac_executable_extensions; do
  15393. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15394. if test $ac_prog = install &&
  15395. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15396. # AIX install. It has an incompatible calling convention.
  15397. :
  15398. elif test $ac_prog = install &&
  15399. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15400. # program-specific install script used by HP pwplus--don't use.
  15401. :
  15402. else
  15403. rm -rf conftest.one conftest.two conftest.dir
  15404. echo one > conftest.one
  15405. echo two > conftest.two
  15406. mkdir conftest.dir
  15407. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15408. test -s conftest.one && test -s conftest.two &&
  15409. test -s conftest.dir/conftest.one &&
  15410. test -s conftest.dir/conftest.two
  15411. then
  15412. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15413. break 3
  15414. fi
  15415. fi
  15416. fi
  15417. done
  15418. done
  15419. ;;
  15420. esac
  15421. done
  15422. IFS=$as_save_IFS
  15423. rm -rf conftest.one conftest.two conftest.dir
  15424. fi
  15425. if test ${ac_cv_path_install+y}; then
  15426. INSTALL=$ac_cv_path_install
  15427. else
  15428. # As a last resort, use the slow shell script. Don't cache a
  15429. # value for INSTALL within a source directory, because that will
  15430. # break other packages using the cache if that directory is
  15431. # removed, or if the value is a relative name.
  15432. INSTALL=$ac_install_sh
  15433. fi
  15434. fi
  15435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15436. printf "%s\n" "$INSTALL" >&6; }
  15437. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15438. # It thinks the first close brace ends the variable substitution.
  15439. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15440. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15441. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15443. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15444. set x ${MAKE-make}
  15445. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15446. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15447. then :
  15448. printf %s "(cached) " >&6
  15449. else $as_nop
  15450. cat >conftest.make <<\_ACEOF
  15451. SHELL = /bin/sh
  15452. all:
  15453. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15454. _ACEOF
  15455. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15456. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15457. *@@@%%%=?*=@@@%%%*)
  15458. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15459. *)
  15460. eval ac_cv_prog_make_${ac_make}_set=no;;
  15461. esac
  15462. rm -f conftest.make
  15463. fi
  15464. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15466. printf "%s\n" "yes" >&6; }
  15467. SET_MAKE=
  15468. else
  15469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15470. printf "%s\n" "no" >&6; }
  15471. SET_MAKE="MAKE=${MAKE-make}"
  15472. fi
  15473. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15474. if test -n "$ac_tool_prefix"; then
  15475. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15476. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15478. printf %s "checking for $ac_word... " >&6; }
  15479. if test ${ac_cv_path_PKG_CONFIG+y}
  15480. then :
  15481. printf %s "(cached) " >&6
  15482. else $as_nop
  15483. case $PKG_CONFIG in
  15484. [\\/]* | ?:[\\/]*)
  15485. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15486. ;;
  15487. *)
  15488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15489. for as_dir in $PATH
  15490. do
  15491. IFS=$as_save_IFS
  15492. case $as_dir in #(((
  15493. '') as_dir=./ ;;
  15494. */) ;;
  15495. *) as_dir=$as_dir/ ;;
  15496. esac
  15497. for ac_exec_ext in '' $ac_executable_extensions; do
  15498. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15499. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15500. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15501. break 2
  15502. fi
  15503. done
  15504. done
  15505. IFS=$as_save_IFS
  15506. ;;
  15507. esac
  15508. fi
  15509. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15510. if test -n "$PKG_CONFIG"; then
  15511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15512. printf "%s\n" "$PKG_CONFIG" >&6; }
  15513. else
  15514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15515. printf "%s\n" "no" >&6; }
  15516. fi
  15517. fi
  15518. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15519. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15520. # Extract the first word of "pkg-config", so it can be a program name with args.
  15521. set dummy pkg-config; ac_word=$2
  15522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15523. printf %s "checking for $ac_word... " >&6; }
  15524. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15525. then :
  15526. printf %s "(cached) " >&6
  15527. else $as_nop
  15528. case $ac_pt_PKG_CONFIG in
  15529. [\\/]* | ?:[\\/]*)
  15530. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15531. ;;
  15532. *)
  15533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15534. for as_dir in $PATH
  15535. do
  15536. IFS=$as_save_IFS
  15537. case $as_dir in #(((
  15538. '') as_dir=./ ;;
  15539. */) ;;
  15540. *) as_dir=$as_dir/ ;;
  15541. esac
  15542. for ac_exec_ext in '' $ac_executable_extensions; do
  15543. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15544. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15545. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15546. break 2
  15547. fi
  15548. done
  15549. done
  15550. IFS=$as_save_IFS
  15551. ;;
  15552. esac
  15553. fi
  15554. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15555. if test -n "$ac_pt_PKG_CONFIG"; then
  15556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15557. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15558. else
  15559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15560. printf "%s\n" "no" >&6; }
  15561. fi
  15562. if test "x$ac_pt_PKG_CONFIG" = x; then
  15563. PKG_CONFIG=""
  15564. else
  15565. case $cross_compiling:$ac_tool_warned in
  15566. yes:)
  15567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15568. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15569. ac_tool_warned=yes ;;
  15570. esac
  15571. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15572. fi
  15573. else
  15574. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15575. fi
  15576. fi
  15577. if test -n "$PKG_CONFIG"; then
  15578. _pkg_min_version=0.9.0
  15579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15580. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15581. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15583. printf "%s\n" "yes" >&6; }
  15584. else
  15585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15586. printf "%s\n" "no" >&6; }
  15587. PKG_CONFIG=""
  15588. fi
  15589. fi
  15590. if test -z "$AWK" ; then
  15591. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15592. fi
  15593. for ac_prog in gsort sort
  15594. do
  15595. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15596. set dummy $ac_prog; ac_word=$2
  15597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15598. printf %s "checking for $ac_word... " >&6; }
  15599. if test ${ac_cv_prog_SORT+y}
  15600. then :
  15601. printf %s "(cached) " >&6
  15602. else $as_nop
  15603. if test -n "$SORT"; then
  15604. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15605. else
  15606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15607. for as_dir in $PATH
  15608. do
  15609. IFS=$as_save_IFS
  15610. case $as_dir in #(((
  15611. '') as_dir=./ ;;
  15612. */) ;;
  15613. *) as_dir=$as_dir/ ;;
  15614. esac
  15615. for ac_exec_ext in '' $ac_executable_extensions; do
  15616. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15617. ac_cv_prog_SORT="$ac_prog"
  15618. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15619. break 2
  15620. fi
  15621. done
  15622. done
  15623. IFS=$as_save_IFS
  15624. fi
  15625. fi
  15626. SORT=$ac_cv_prog_SORT
  15627. if test -n "$SORT"; then
  15628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15629. printf "%s\n" "$SORT" >&6; }
  15630. else
  15631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15632. printf "%s\n" "no" >&6; }
  15633. fi
  15634. test -n "$SORT" && break
  15635. done
  15636. test -n "$SORT" || SORT="false"
  15637. if ! "$SORT" -V </dev/null >/dev/null
  15638. then :
  15639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15640. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15641. fi
  15642. # Check whether --enable-largefile was given.
  15643. if test ${enable_largefile+y}
  15644. then :
  15645. enableval=$enable_largefile;
  15646. fi
  15647. if test "$enable_largefile" != no; then
  15648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15649. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15650. if test ${ac_cv_sys_largefile_CC+y}
  15651. then :
  15652. printf %s "(cached) " >&6
  15653. else $as_nop
  15654. ac_cv_sys_largefile_CC=no
  15655. if test "$GCC" != yes; then
  15656. ac_save_CC=$CC
  15657. while :; do
  15658. # IRIX 6.2 and later do not support large files by default,
  15659. # so use the C compiler's -n32 option if that helps.
  15660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15661. /* end confdefs.h. */
  15662. #include <sys/types.h>
  15663. /* Check that off_t can represent 2**63 - 1 correctly.
  15664. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15665. since some C++ compilers masquerading as C compilers
  15666. incorrectly reject 9223372036854775807. */
  15667. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15668. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15669. && LARGE_OFF_T % 2147483647 == 1)
  15670. ? 1 : -1];
  15671. int
  15672. main (void)
  15673. {
  15674. ;
  15675. return 0;
  15676. }
  15677. _ACEOF
  15678. if ac_fn_c_try_compile "$LINENO"
  15679. then :
  15680. break
  15681. fi
  15682. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15683. CC="$CC -n32"
  15684. if ac_fn_c_try_compile "$LINENO"
  15685. then :
  15686. ac_cv_sys_largefile_CC=' -n32'; break
  15687. fi
  15688. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15689. break
  15690. done
  15691. CC=$ac_save_CC
  15692. rm -f conftest.$ac_ext
  15693. fi
  15694. fi
  15695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15696. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15697. if test "$ac_cv_sys_largefile_CC" != no; then
  15698. CC=$CC$ac_cv_sys_largefile_CC
  15699. fi
  15700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15701. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15702. if test ${ac_cv_sys_file_offset_bits+y}
  15703. then :
  15704. printf %s "(cached) " >&6
  15705. else $as_nop
  15706. while :; do
  15707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15708. /* end confdefs.h. */
  15709. #include <sys/types.h>
  15710. /* Check that off_t can represent 2**63 - 1 correctly.
  15711. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15712. since some C++ compilers masquerading as C compilers
  15713. incorrectly reject 9223372036854775807. */
  15714. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15715. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15716. && LARGE_OFF_T % 2147483647 == 1)
  15717. ? 1 : -1];
  15718. int
  15719. main (void)
  15720. {
  15721. ;
  15722. return 0;
  15723. }
  15724. _ACEOF
  15725. if ac_fn_c_try_compile "$LINENO"
  15726. then :
  15727. ac_cv_sys_file_offset_bits=no; break
  15728. fi
  15729. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15731. /* end confdefs.h. */
  15732. #define _FILE_OFFSET_BITS 64
  15733. #include <sys/types.h>
  15734. /* Check that off_t can represent 2**63 - 1 correctly.
  15735. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15736. since some C++ compilers masquerading as C compilers
  15737. incorrectly reject 9223372036854775807. */
  15738. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15739. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15740. && LARGE_OFF_T % 2147483647 == 1)
  15741. ? 1 : -1];
  15742. int
  15743. main (void)
  15744. {
  15745. ;
  15746. return 0;
  15747. }
  15748. _ACEOF
  15749. if ac_fn_c_try_compile "$LINENO"
  15750. then :
  15751. ac_cv_sys_file_offset_bits=64; break
  15752. fi
  15753. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15754. ac_cv_sys_file_offset_bits=unknown
  15755. break
  15756. done
  15757. fi
  15758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15759. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15760. case $ac_cv_sys_file_offset_bits in #(
  15761. no | unknown) ;;
  15762. *)
  15763. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15764. ;;
  15765. esac
  15766. rm -rf conftest*
  15767. if test $ac_cv_sys_file_offset_bits = unknown; then
  15768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15769. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15770. if test ${ac_cv_sys_large_files+y}
  15771. then :
  15772. printf %s "(cached) " >&6
  15773. else $as_nop
  15774. while :; do
  15775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15776. /* end confdefs.h. */
  15777. #include <sys/types.h>
  15778. /* Check that off_t can represent 2**63 - 1 correctly.
  15779. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15780. since some C++ compilers masquerading as C compilers
  15781. incorrectly reject 9223372036854775807. */
  15782. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15783. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15784. && LARGE_OFF_T % 2147483647 == 1)
  15785. ? 1 : -1];
  15786. int
  15787. main (void)
  15788. {
  15789. ;
  15790. return 0;
  15791. }
  15792. _ACEOF
  15793. if ac_fn_c_try_compile "$LINENO"
  15794. then :
  15795. ac_cv_sys_large_files=no; break
  15796. fi
  15797. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15799. /* end confdefs.h. */
  15800. #define _LARGE_FILES 1
  15801. #include <sys/types.h>
  15802. /* Check that off_t can represent 2**63 - 1 correctly.
  15803. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15804. since some C++ compilers masquerading as C compilers
  15805. incorrectly reject 9223372036854775807. */
  15806. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15807. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15808. && LARGE_OFF_T % 2147483647 == 1)
  15809. ? 1 : -1];
  15810. int
  15811. main (void)
  15812. {
  15813. ;
  15814. return 0;
  15815. }
  15816. _ACEOF
  15817. if ac_fn_c_try_compile "$LINENO"
  15818. then :
  15819. ac_cv_sys_large_files=1; break
  15820. fi
  15821. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15822. ac_cv_sys_large_files=unknown
  15823. break
  15824. done
  15825. fi
  15826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15827. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15828. case $ac_cv_sys_large_files in #(
  15829. no | unknown) ;;
  15830. *)
  15831. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15832. ;;
  15833. esac
  15834. rm -rf conftest*
  15835. fi
  15836. fi
  15837. case "$host" in
  15838. *-*-mingw*)
  15839. # Except on msys, where make can't handle full pathnames (bug 1972)
  15840. ;;
  15841. *)
  15842. srcdir=`cd $srcdir && pwd`
  15843. ;;
  15844. esac
  15845. INCLUDE="-I$srcdir/include"
  15846. case "$host" in
  15847. *-*-nto-qnx*)
  15848. ;;
  15849. *)
  15850. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15851. ;;
  15852. esac
  15853. case "$host" in
  15854. *-*-haiku*)
  15855. LINKER='$(CXX)'
  15856. LIBTOOLLINKERTAG='CXX'
  15857. ;;
  15858. *)
  15859. LINKER='$(CC)'
  15860. LIBTOOLLINKERTAG='CC'
  15861. ;;
  15862. esac
  15863. if test x$srcdir != x.; then
  15864. INCLUDE="-Iinclude $INCLUDE"
  15865. elif test -d .git; then
  15866. as_fn_error $? "
  15867. *** When building from a git clone you should configure and build in a
  15868. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15869. " "$LINENO" 5
  15870. fi
  15871. BASE_CFLAGS=""
  15872. BASE_LDFLAGS=""
  15873. case "$host" in
  15874. *-*-cygwin*)
  15875. # We build SDL on cygwin without the UNIX emulation layer
  15876. save_CFLAGS="$CFLAGS"
  15877. have_no_cygwin=no
  15878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15879. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15880. CFLAGS="$save_CFLAGS -mno-cygwin"
  15881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15882. /* end confdefs.h. */
  15883. int
  15884. main (void)
  15885. {
  15886. ;
  15887. return 0;
  15888. }
  15889. _ACEOF
  15890. if ac_fn_c_try_compile "$LINENO"
  15891. then :
  15892. have_no_cygwin=yes
  15893. fi
  15894. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15896. printf "%s\n" "$have_no_cygwin" >&6; }
  15897. CFLAGS="$save_CFLAGS"
  15898. if test x$have_no_cygwin = xyes; then
  15899. BASE_CFLAGS="-mno-cygwin"
  15900. BASE_LDFLAGS="-mno-cygwin"
  15901. fi
  15902. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15903. ;;
  15904. esac
  15905. # Uncomment the following line if you want to force SDL and applications
  15906. # built with it to be compiled for a particular architecture.
  15907. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15908. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15909. # The default optimization for SDL is -O3 (Bug #31)
  15910. if test "x$orig_CFLAGS" = x; then
  15911. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15912. fi
  15913. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15914. BUILD_LDFLAGS="$LDFLAGS"
  15915. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15916. ## These are common directories to find software packages
  15917. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15918. # if test -d $path/include; then
  15919. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15920. # fi
  15921. # if test -d $path/lib; then
  15922. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15923. # fi
  15924. #done
  15925. SDL_CFLAGS="$BASE_CFLAGS"
  15926. SDL_LIBS="-lSDL2"
  15927. if test "x$BASE_LDFLAGS" != x; then
  15928. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15929. fi
  15930. if test "x$EXTRA_CFLAGS" != x; then
  15931. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15932. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15933. fi
  15934. if test "x$EXTRA_LDFLAGS" != x; then
  15935. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15936. fi
  15937. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15938. find_lib()
  15939. {
  15940. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15941. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15942. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15943. if test "$cross_compiling" = yes; then
  15944. host_lib_path=""
  15945. else
  15946. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15947. fi
  15948. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15949. lib=`ls -- $path/$1 2>/dev/null | sed 's,.*/,,' | "$SORT" -V -r | $AWK 'BEGIN{FS="."}{ print NF, $0 }' | "$SORT" -n -s | sed 's,[0-9]* ,,' | head -1`
  15950. if test x$lib != x; then
  15951. echo $lib
  15952. return
  15953. fi
  15954. done
  15955. }
  15956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15957. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15958. if test ${ac_cv_c_const+y}
  15959. then :
  15960. printf %s "(cached) " >&6
  15961. else $as_nop
  15962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15963. /* end confdefs.h. */
  15964. int
  15965. main (void)
  15966. {
  15967. #ifndef __cplusplus
  15968. /* Ultrix mips cc rejects this sort of thing. */
  15969. typedef int charset[2];
  15970. const charset cs = { 0, 0 };
  15971. /* SunOS 4.1.1 cc rejects this. */
  15972. char const *const *pcpcc;
  15973. char **ppc;
  15974. /* NEC SVR4.0.2 mips cc rejects this. */
  15975. struct point {int x, y;};
  15976. static struct point const zero = {0,0};
  15977. /* IBM XL C 1.02.0.0 rejects this.
  15978. It does not let you subtract one const X* pointer from another in
  15979. an arm of an if-expression whose if-part is not a constant
  15980. expression */
  15981. const char *g = "string";
  15982. pcpcc = &g + (g ? g-g : 0);
  15983. /* HPUX 7.0 cc rejects these. */
  15984. ++pcpcc;
  15985. ppc = (char**) pcpcc;
  15986. pcpcc = (char const *const *) ppc;
  15987. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15988. char tx;
  15989. char *t = &tx;
  15990. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15991. *t++ = 0;
  15992. if (s) return 0;
  15993. }
  15994. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15995. int x[] = {25, 17};
  15996. const int *foo = &x[0];
  15997. ++foo;
  15998. }
  15999. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16000. typedef const int *iptr;
  16001. iptr p = 0;
  16002. ++p;
  16003. }
  16004. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16005. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16006. struct s { int j; const int *ap[3]; } bx;
  16007. struct s *b = &bx; b->j = 5;
  16008. }
  16009. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16010. const int foo = 10;
  16011. if (!foo) return 0;
  16012. }
  16013. return !cs[0] && !zero.x;
  16014. #endif
  16015. ;
  16016. return 0;
  16017. }
  16018. _ACEOF
  16019. if ac_fn_c_try_compile "$LINENO"
  16020. then :
  16021. ac_cv_c_const=yes
  16022. else $as_nop
  16023. ac_cv_c_const=no
  16024. fi
  16025. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16026. fi
  16027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16028. printf "%s\n" "$ac_cv_c_const" >&6; }
  16029. if test $ac_cv_c_const = no; then
  16030. printf "%s\n" "#define const /**/" >>confdefs.h
  16031. fi
  16032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16033. printf %s "checking for inline... " >&6; }
  16034. if test ${ac_cv_c_inline+y}
  16035. then :
  16036. printf %s "(cached) " >&6
  16037. else $as_nop
  16038. ac_cv_c_inline=no
  16039. for ac_kw in inline __inline__ __inline; do
  16040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16041. /* end confdefs.h. */
  16042. #ifndef __cplusplus
  16043. typedef int foo_t;
  16044. static $ac_kw foo_t static_foo (void) {return 0; }
  16045. $ac_kw foo_t foo (void) {return 0; }
  16046. #endif
  16047. _ACEOF
  16048. if ac_fn_c_try_compile "$LINENO"
  16049. then :
  16050. ac_cv_c_inline=$ac_kw
  16051. fi
  16052. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16053. test "$ac_cv_c_inline" != no && break
  16054. done
  16055. fi
  16056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16057. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16058. case $ac_cv_c_inline in
  16059. inline | yes) ;;
  16060. *)
  16061. case $ac_cv_c_inline in
  16062. no) ac_val=;;
  16063. *) ac_val=$ac_cv_c_inline;;
  16064. esac
  16065. cat >>confdefs.h <<_ACEOF
  16066. #ifndef __cplusplus
  16067. #define inline $ac_val
  16068. #endif
  16069. _ACEOF
  16070. ;;
  16071. esac
  16072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16073. printf %s "checking for working volatile... " >&6; }
  16074. if test ${ac_cv_c_volatile+y}
  16075. then :
  16076. printf %s "(cached) " >&6
  16077. else $as_nop
  16078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16079. /* end confdefs.h. */
  16080. int
  16081. main (void)
  16082. {
  16083. volatile int x;
  16084. int * volatile y = (int *) 0;
  16085. return !x && !y;
  16086. ;
  16087. return 0;
  16088. }
  16089. _ACEOF
  16090. if ac_fn_c_try_compile "$LINENO"
  16091. then :
  16092. ac_cv_c_volatile=yes
  16093. else $as_nop
  16094. ac_cv_c_volatile=no
  16095. fi
  16096. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16097. fi
  16098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16099. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16100. if test $ac_cv_c_volatile = no; then
  16101. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16102. fi
  16103. # Check whether --enable-assertions was given.
  16104. if test ${enable_assertions+y}
  16105. then :
  16106. enableval=$enable_assertions;
  16107. else $as_nop
  16108. enable_assertions=auto
  16109. fi
  16110. case "$enable_assertions" in
  16111. auto) # Use optimization settings to determine assertion level
  16112. ;;
  16113. disabled)
  16114. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16115. ;;
  16116. release)
  16117. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16118. ;;
  16119. enabled)
  16120. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16121. ;;
  16122. paranoid)
  16123. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16124. ;;
  16125. *)
  16126. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16127. ;;
  16128. esac
  16129. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BUILD_MAJOR_VERSION=$SDL_MAJOR_VERSION -DSDL_BUILD_MINOR_VERSION=$SDL_MINOR_VERSION -DSDL_BUILD_MICRO_VERSION=$SDL_MICRO_VERSION"
  16130. # Check whether --enable-dependency-tracking was given.
  16131. if test ${enable_dependency_tracking+y}
  16132. then :
  16133. enableval=$enable_dependency_tracking;
  16134. else $as_nop
  16135. enable_dependency_tracking=yes
  16136. fi
  16137. if test x$enable_dependency_tracking = xyes; then
  16138. have_gcc_mmd_mt=no
  16139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16140. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16142. /* end confdefs.h. */
  16143. #if !defined(__GNUC__) || __GNUC__ < 3
  16144. #error Dependency tracking requires GCC 3.0 or newer
  16145. #endif
  16146. int
  16147. main (void)
  16148. {
  16149. ;
  16150. return 0;
  16151. }
  16152. _ACEOF
  16153. if ac_fn_c_try_compile "$LINENO"
  16154. then :
  16155. have_gcc_mmd_mt=yes
  16156. fi
  16157. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16159. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16160. if test x$have_gcc_mmd_mt = xyes; then
  16161. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16162. fi
  16163. fi
  16164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16165. printf %s "checking for linker option --no-undefined... " >&6; }
  16166. have_no_undefined=no
  16167. case "$host" in
  16168. *-*-openbsd*)
  16169. ;;
  16170. *)
  16171. save_LDFLAGS="$LDFLAGS"
  16172. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16174. /* end confdefs.h. */
  16175. int
  16176. main (void)
  16177. {
  16178. ;
  16179. return 0;
  16180. }
  16181. _ACEOF
  16182. if ac_fn_c_try_link "$LINENO"
  16183. then :
  16184. have_no_undefined=yes
  16185. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16186. fi
  16187. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16188. conftest$ac_exeext conftest.$ac_ext
  16189. LDFLAGS="$save_LDFLAGS"
  16190. ;;
  16191. esac
  16192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16193. printf "%s\n" "$have_no_undefined" >&6; }
  16194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16195. printf %s "checking for linker option --dynamicbase... " >&6; }
  16196. have_dynamicbase=no
  16197. case "$host" in
  16198. *)
  16199. save_LDFLAGS="$LDFLAGS"
  16200. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16202. /* end confdefs.h. */
  16203. int
  16204. main (void)
  16205. {
  16206. ;
  16207. return 0;
  16208. }
  16209. _ACEOF
  16210. if ac_fn_c_try_link "$LINENO"
  16211. then :
  16212. have_dynamicbase=yes
  16213. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16214. fi
  16215. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16216. conftest$ac_exeext conftest.$ac_ext
  16217. LDFLAGS="$save_LDFLAGS"
  16218. ;;
  16219. esac
  16220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16221. printf "%s\n" "$have_dynamicbase" >&6; }
  16222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16223. printf %s "checking for linker option --nxcompat... " >&6; }
  16224. have_nxcompat=no
  16225. case "$host" in
  16226. *)
  16227. save_LDFLAGS="$LDFLAGS"
  16228. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16230. /* end confdefs.h. */
  16231. int
  16232. main (void)
  16233. {
  16234. ;
  16235. return 0;
  16236. }
  16237. _ACEOF
  16238. if ac_fn_c_try_link "$LINENO"
  16239. then :
  16240. have_nxcompat=yes
  16241. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16242. fi
  16243. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16244. conftest$ac_exeext conftest.$ac_ext
  16245. LDFLAGS="$save_LDFLAGS"
  16246. ;;
  16247. esac
  16248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16249. printf "%s\n" "$have_nxcompat" >&6; }
  16250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16251. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16252. have_high_entropy_va=no
  16253. case "$host" in
  16254. *)
  16255. save_LDFLAGS="$LDFLAGS"
  16256. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16258. /* end confdefs.h. */
  16259. int
  16260. main (void)
  16261. {
  16262. ;
  16263. return 0;
  16264. }
  16265. _ACEOF
  16266. if ac_fn_c_try_link "$LINENO"
  16267. then :
  16268. have_high_entropy_va=yes
  16269. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16270. fi
  16271. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16272. conftest$ac_exeext conftest.$ac_ext
  16273. LDFLAGS="$save_LDFLAGS"
  16274. ;;
  16275. esac
  16276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16277. printf "%s\n" "$have_high_entropy_va" >&6; }
  16278. # Check whether --enable-libc was given.
  16279. if test ${enable_libc+y}
  16280. then :
  16281. enableval=$enable_libc;
  16282. else $as_nop
  16283. enable_libc=yes
  16284. fi
  16285. # Check whether --enable-system-iconv was given.
  16286. if test ${enable_system_iconv+y}
  16287. then :
  16288. enableval=$enable_system_iconv;
  16289. else $as_nop
  16290. enable_system_iconv=yes
  16291. fi
  16292. if test x$enable_libc = xyes; then
  16293. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16294. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16295. if test "x$ac_cv_header_sys_types_h" = xyes
  16296. then :
  16297. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16298. fi
  16299. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16300. if test "x$ac_cv_header_stdio_h" = xyes
  16301. then :
  16302. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16303. fi
  16304. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16305. if test "x$ac_cv_header_stdlib_h" = xyes
  16306. then :
  16307. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16308. fi
  16309. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16310. if test "x$ac_cv_header_stddef_h" = xyes
  16311. then :
  16312. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16313. fi
  16314. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16315. if test "x$ac_cv_header_stdarg_h" = xyes
  16316. then :
  16317. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16318. fi
  16319. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16320. if test "x$ac_cv_header_malloc_h" = xyes
  16321. then :
  16322. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16323. fi
  16324. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16325. if test "x$ac_cv_header_memory_h" = xyes
  16326. then :
  16327. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16328. fi
  16329. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16330. if test "x$ac_cv_header_string_h" = xyes
  16331. then :
  16332. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16333. fi
  16334. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16335. if test "x$ac_cv_header_strings_h" = xyes
  16336. then :
  16337. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16338. fi
  16339. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16340. if test "x$ac_cv_header_wchar_h" = xyes
  16341. then :
  16342. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16343. fi
  16344. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16345. if test "x$ac_cv_header_inttypes_h" = xyes
  16346. then :
  16347. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16348. fi
  16349. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16350. if test "x$ac_cv_header_stdint_h" = xyes
  16351. then :
  16352. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16353. fi
  16354. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16355. if test "x$ac_cv_header_limits_h" = xyes
  16356. then :
  16357. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16358. fi
  16359. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16360. if test "x$ac_cv_header_ctype_h" = xyes
  16361. then :
  16362. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16363. fi
  16364. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16365. if test "x$ac_cv_header_math_h" = xyes
  16366. then :
  16367. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16368. fi
  16369. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16370. if test "x$ac_cv_header_float_h" = xyes
  16371. then :
  16372. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16373. fi
  16374. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16375. if test "x$ac_cv_header_iconv_h" = xyes
  16376. then :
  16377. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16378. fi
  16379. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16380. if test "x$ac_cv_header_signal_h" = xyes
  16381. then :
  16382. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16383. fi
  16384. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16385. if test "x$ac_cv_type_size_t" = xyes
  16386. then :
  16387. else $as_nop
  16388. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16389. fi
  16390. ac_ext=c
  16391. ac_cpp='$CPP $CPPFLAGS'
  16392. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16393. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16394. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16396. printf %s "checking how to run the C preprocessor... " >&6; }
  16397. # On Suns, sometimes $CPP names a directory.
  16398. if test -n "$CPP" && test -d "$CPP"; then
  16399. CPP=
  16400. fi
  16401. if test -z "$CPP"; then
  16402. if test ${ac_cv_prog_CPP+y}
  16403. then :
  16404. printf %s "(cached) " >&6
  16405. else $as_nop
  16406. # Double quotes because $CC needs to be expanded
  16407. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16408. do
  16409. ac_preproc_ok=false
  16410. for ac_c_preproc_warn_flag in '' yes
  16411. do
  16412. # Use a header file that comes with gcc, so configuring glibc
  16413. # with a fresh cross-compiler works.
  16414. # On the NeXT, cc -E runs the code through the compiler's parser,
  16415. # not just through cpp. "Syntax error" is here to catch this case.
  16416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16417. /* end confdefs.h. */
  16418. #include <limits.h>
  16419. Syntax error
  16420. _ACEOF
  16421. if ac_fn_c_try_cpp "$LINENO"
  16422. then :
  16423. else $as_nop
  16424. # Broken: fails on valid input.
  16425. continue
  16426. fi
  16427. rm -f conftest.err conftest.i conftest.$ac_ext
  16428. # OK, works on sane cases. Now check whether nonexistent headers
  16429. # can be detected and how.
  16430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16431. /* end confdefs.h. */
  16432. #include <ac_nonexistent.h>
  16433. _ACEOF
  16434. if ac_fn_c_try_cpp "$LINENO"
  16435. then :
  16436. # Broken: success on invalid input.
  16437. continue
  16438. else $as_nop
  16439. # Passes both tests.
  16440. ac_preproc_ok=:
  16441. break
  16442. fi
  16443. rm -f conftest.err conftest.i conftest.$ac_ext
  16444. done
  16445. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16446. rm -f conftest.i conftest.err conftest.$ac_ext
  16447. if $ac_preproc_ok
  16448. then :
  16449. break
  16450. fi
  16451. done
  16452. ac_cv_prog_CPP=$CPP
  16453. fi
  16454. CPP=$ac_cv_prog_CPP
  16455. else
  16456. ac_cv_prog_CPP=$CPP
  16457. fi
  16458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16459. printf "%s\n" "$CPP" >&6; }
  16460. ac_preproc_ok=false
  16461. for ac_c_preproc_warn_flag in '' yes
  16462. do
  16463. # Use a header file that comes with gcc, so configuring glibc
  16464. # with a fresh cross-compiler works.
  16465. # On the NeXT, cc -E runs the code through the compiler's parser,
  16466. # not just through cpp. "Syntax error" is here to catch this case.
  16467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16468. /* end confdefs.h. */
  16469. #include <limits.h>
  16470. Syntax error
  16471. _ACEOF
  16472. if ac_fn_c_try_cpp "$LINENO"
  16473. then :
  16474. else $as_nop
  16475. # Broken: fails on valid input.
  16476. continue
  16477. fi
  16478. rm -f conftest.err conftest.i conftest.$ac_ext
  16479. # OK, works on sane cases. Now check whether nonexistent headers
  16480. # can be detected and how.
  16481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16482. /* end confdefs.h. */
  16483. #include <ac_nonexistent.h>
  16484. _ACEOF
  16485. if ac_fn_c_try_cpp "$LINENO"
  16486. then :
  16487. # Broken: success on invalid input.
  16488. continue
  16489. else $as_nop
  16490. # Passes both tests.
  16491. ac_preproc_ok=:
  16492. break
  16493. fi
  16494. rm -f conftest.err conftest.i conftest.$ac_ext
  16495. done
  16496. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16497. rm -f conftest.i conftest.err conftest.$ac_ext
  16498. if $ac_preproc_ok
  16499. then :
  16500. else $as_nop
  16501. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16502. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16503. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16504. See \`config.log' for more details" "$LINENO" 5; }
  16505. fi
  16506. ac_ext=c
  16507. ac_cpp='$CPP $CPPFLAGS'
  16508. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16509. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16510. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16512. printf %s "checking for M_PI in math.h... " >&6; }
  16513. if test ${ac_cv_define_M_PI+y}
  16514. then :
  16515. printf %s "(cached) " >&6
  16516. else $as_nop
  16517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16518. /* end confdefs.h. */
  16519. #include <math.h>
  16520. #ifdef M_PI
  16521. YES_IS_DEFINED
  16522. #endif
  16523. _ACEOF
  16524. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16525. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16526. then :
  16527. ac_cv_define_M_PI=yes
  16528. else $as_nop
  16529. ac_cv_define_M_PI=no
  16530. fi
  16531. rm -rf conftest*
  16532. fi
  16533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16534. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16535. if test "$ac_cv_define_M_PI" = "yes" ; then
  16536. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16537. fi
  16538. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16539. # for constant arguments. Useless!
  16540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16541. printf %s "checking for working alloca.h... " >&6; }
  16542. if test ${ac_cv_working_alloca_h+y}
  16543. then :
  16544. printf %s "(cached) " >&6
  16545. else $as_nop
  16546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16547. /* end confdefs.h. */
  16548. #include <alloca.h>
  16549. int
  16550. main (void)
  16551. {
  16552. char *p = (char *) alloca (2 * sizeof (int));
  16553. if (p) return 0;
  16554. ;
  16555. return 0;
  16556. }
  16557. _ACEOF
  16558. if ac_fn_c_try_link "$LINENO"
  16559. then :
  16560. ac_cv_working_alloca_h=yes
  16561. else $as_nop
  16562. ac_cv_working_alloca_h=no
  16563. fi
  16564. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16565. conftest$ac_exeext conftest.$ac_ext
  16566. fi
  16567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16568. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16569. if test $ac_cv_working_alloca_h = yes; then
  16570. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16571. fi
  16572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16573. printf %s "checking for alloca... " >&6; }
  16574. if test ${ac_cv_func_alloca_works+y}
  16575. then :
  16576. printf %s "(cached) " >&6
  16577. else $as_nop
  16578. if test $ac_cv_working_alloca_h = yes; then
  16579. ac_cv_func_alloca_works=yes
  16580. else
  16581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16582. /* end confdefs.h. */
  16583. #include <stdlib.h>
  16584. #include <stddef.h>
  16585. #ifndef alloca
  16586. # ifdef __GNUC__
  16587. # define alloca __builtin_alloca
  16588. # elif defined _MSC_VER
  16589. # include <malloc.h>
  16590. # define alloca _alloca
  16591. # else
  16592. # ifdef __cplusplus
  16593. extern "C"
  16594. # endif
  16595. void *alloca (size_t);
  16596. # endif
  16597. #endif
  16598. int
  16599. main (void)
  16600. {
  16601. char *p = (char *) alloca (1);
  16602. if (p) return 0;
  16603. ;
  16604. return 0;
  16605. }
  16606. _ACEOF
  16607. if ac_fn_c_try_link "$LINENO"
  16608. then :
  16609. ac_cv_func_alloca_works=yes
  16610. else $as_nop
  16611. ac_cv_func_alloca_works=no
  16612. fi
  16613. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16614. conftest$ac_exeext conftest.$ac_ext
  16615. fi
  16616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16617. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16618. fi
  16619. if test $ac_cv_func_alloca_works = yes; then
  16620. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16621. else
  16622. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16623. # that cause trouble. Some versions do not even contain alloca or
  16624. # contain a buggy version. If you still want to use their alloca,
  16625. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16626. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16627. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16629. printf %s "checking stack direction for C alloca... " >&6; }
  16630. if test ${ac_cv_c_stack_direction+y}
  16631. then :
  16632. printf %s "(cached) " >&6
  16633. else $as_nop
  16634. if test "$cross_compiling" = yes
  16635. then :
  16636. ac_cv_c_stack_direction=0
  16637. else $as_nop
  16638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16639. /* end confdefs.h. */
  16640. $ac_includes_default
  16641. int
  16642. find_stack_direction (int *addr, int depth)
  16643. {
  16644. int dir, dummy = 0;
  16645. if (! addr)
  16646. addr = &dummy;
  16647. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16648. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16649. return dir + dummy;
  16650. }
  16651. int
  16652. main (int argc, char **argv)
  16653. {
  16654. return find_stack_direction (0, argc + !argv + 20) < 0;
  16655. }
  16656. _ACEOF
  16657. if ac_fn_c_try_run "$LINENO"
  16658. then :
  16659. ac_cv_c_stack_direction=1
  16660. else $as_nop
  16661. ac_cv_c_stack_direction=-1
  16662. fi
  16663. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16664. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16665. fi
  16666. fi
  16667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16668. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16669. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16670. fi
  16671. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16672. if test "x$ac_cv_func_mprotect" = xyes
  16673. then :
  16674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16675. /* end confdefs.h. */
  16676. #include <sys/types.h>
  16677. #include <sys/mman.h>
  16678. int
  16679. main (void)
  16680. {
  16681. ;
  16682. return 0;
  16683. }
  16684. _ACEOF
  16685. if ac_fn_c_try_compile "$LINENO"
  16686. then :
  16687. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16688. fi
  16689. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16690. fi
  16691. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16692. if test "x$ac_cv_func_malloc" = xyes
  16693. then :
  16694. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16695. fi
  16696. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16697. if test "x$ac_cv_func_calloc" = xyes
  16698. then :
  16699. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16700. fi
  16701. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16702. if test "x$ac_cv_func_realloc" = xyes
  16703. then :
  16704. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16705. fi
  16706. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16707. if test "x$ac_cv_func_free" = xyes
  16708. then :
  16709. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16710. fi
  16711. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16712. if test "x$ac_cv_func_getenv" = xyes
  16713. then :
  16714. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16715. fi
  16716. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16717. if test "x$ac_cv_func_setenv" = xyes
  16718. then :
  16719. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16720. fi
  16721. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16722. if test "x$ac_cv_func_putenv" = xyes
  16723. then :
  16724. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16725. fi
  16726. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16727. if test "x$ac_cv_func_unsetenv" = xyes
  16728. then :
  16729. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16730. fi
  16731. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16732. if test "x$ac_cv_func_bsearch" = xyes
  16733. then :
  16734. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16735. fi
  16736. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16737. if test "x$ac_cv_func_qsort" = xyes
  16738. then :
  16739. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16740. fi
  16741. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16742. if test "x$ac_cv_func_abs" = xyes
  16743. then :
  16744. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16745. fi
  16746. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16747. if test "x$ac_cv_func_bcopy" = xyes
  16748. then :
  16749. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16750. fi
  16751. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16752. if test "x$ac_cv_func_memset" = xyes
  16753. then :
  16754. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16755. fi
  16756. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16757. if test "x$ac_cv_func_memcmp" = xyes
  16758. then :
  16759. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16760. fi
  16761. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16762. if test "x$ac_cv_func_memcpy" = xyes
  16763. then :
  16764. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16765. fi
  16766. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16767. if test "x$ac_cv_func_memmove" = xyes
  16768. then :
  16769. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16770. fi
  16771. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16772. if test "x$ac_cv_func_wcslen" = xyes
  16773. then :
  16774. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16775. fi
  16776. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16777. if test "x$ac_cv_func_wcslcpy" = xyes
  16778. then :
  16779. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16780. fi
  16781. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16782. if test "x$ac_cv_func_wcslcat" = xyes
  16783. then :
  16784. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16785. fi
  16786. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16787. if test "x$ac_cv_func__wcsdup" = xyes
  16788. then :
  16789. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16790. fi
  16791. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16792. if test "x$ac_cv_func_wcsdup" = xyes
  16793. then :
  16794. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16795. fi
  16796. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16797. if test "x$ac_cv_func_wcsstr" = xyes
  16798. then :
  16799. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16800. fi
  16801. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16802. if test "x$ac_cv_func_wcscmp" = xyes
  16803. then :
  16804. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16805. fi
  16806. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16807. if test "x$ac_cv_func_wcsncmp" = xyes
  16808. then :
  16809. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16810. fi
  16811. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16812. if test "x$ac_cv_func_wcscasecmp" = xyes
  16813. then :
  16814. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16815. fi
  16816. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16817. if test "x$ac_cv_func__wcsicmp" = xyes
  16818. then :
  16819. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16820. fi
  16821. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16822. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16823. then :
  16824. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16825. fi
  16826. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16827. if test "x$ac_cv_func__wcsnicmp" = xyes
  16828. then :
  16829. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16830. fi
  16831. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16832. if test "x$ac_cv_func_strlen" = xyes
  16833. then :
  16834. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16835. fi
  16836. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16837. if test "x$ac_cv_func_strlcpy" = xyes
  16838. then :
  16839. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16840. fi
  16841. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16842. if test "x$ac_cv_func_strlcat" = xyes
  16843. then :
  16844. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16845. fi
  16846. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16847. if test "x$ac_cv_func__strrev" = xyes
  16848. then :
  16849. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16850. fi
  16851. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16852. if test "x$ac_cv_func__strupr" = xyes
  16853. then :
  16854. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16855. fi
  16856. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16857. if test "x$ac_cv_func__strlwr" = xyes
  16858. then :
  16859. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16860. fi
  16861. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16862. if test "x$ac_cv_func_index" = xyes
  16863. then :
  16864. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16865. fi
  16866. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16867. if test "x$ac_cv_func_rindex" = xyes
  16868. then :
  16869. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16870. fi
  16871. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16872. if test "x$ac_cv_func_strchr" = xyes
  16873. then :
  16874. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16875. fi
  16876. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16877. if test "x$ac_cv_func_strrchr" = xyes
  16878. then :
  16879. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16880. fi
  16881. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16882. if test "x$ac_cv_func_strstr" = xyes
  16883. then :
  16884. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16885. fi
  16886. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16887. if test "x$ac_cv_func_strtok_r" = xyes
  16888. then :
  16889. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16890. fi
  16891. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16892. if test "x$ac_cv_func_itoa" = xyes
  16893. then :
  16894. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16895. fi
  16896. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16897. if test "x$ac_cv_func__ltoa" = xyes
  16898. then :
  16899. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16900. fi
  16901. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16902. if test "x$ac_cv_func__uitoa" = xyes
  16903. then :
  16904. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16905. fi
  16906. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16907. if test "x$ac_cv_func__ultoa" = xyes
  16908. then :
  16909. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16910. fi
  16911. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16912. if test "x$ac_cv_func_strtod" = xyes
  16913. then :
  16914. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16915. fi
  16916. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16917. if test "x$ac_cv_func_strtol" = xyes
  16918. then :
  16919. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16920. fi
  16921. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16922. if test "x$ac_cv_func_strtoul" = xyes
  16923. then :
  16924. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16925. fi
  16926. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16927. if test "x$ac_cv_func__i64toa" = xyes
  16928. then :
  16929. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16930. fi
  16931. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16932. if test "x$ac_cv_func__ui64toa" = xyes
  16933. then :
  16934. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16935. fi
  16936. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16937. if test "x$ac_cv_func_strtoll" = xyes
  16938. then :
  16939. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16940. fi
  16941. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16942. if test "x$ac_cv_func_strtoull" = xyes
  16943. then :
  16944. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16945. fi
  16946. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16947. if test "x$ac_cv_func_atoi" = xyes
  16948. then :
  16949. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16950. fi
  16951. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16952. if test "x$ac_cv_func_atof" = xyes
  16953. then :
  16954. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16955. fi
  16956. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16957. if test "x$ac_cv_func_strcmp" = xyes
  16958. then :
  16959. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16960. fi
  16961. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16962. if test "x$ac_cv_func_strncmp" = xyes
  16963. then :
  16964. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16965. fi
  16966. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16967. if test "x$ac_cv_func__stricmp" = xyes
  16968. then :
  16969. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16970. fi
  16971. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16972. if test "x$ac_cv_func_strcasecmp" = xyes
  16973. then :
  16974. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16975. fi
  16976. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16977. if test "x$ac_cv_func__strnicmp" = xyes
  16978. then :
  16979. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16980. fi
  16981. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16982. if test "x$ac_cv_func_strncasecmp" = xyes
  16983. then :
  16984. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16985. fi
  16986. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  16987. if test "x$ac_cv_func_vsscanf" = xyes
  16988. then :
  16989. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  16990. fi
  16991. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  16992. if test "x$ac_cv_func_vsnprintf" = xyes
  16993. then :
  16994. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  16995. fi
  16996. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  16997. if test "x$ac_cv_func_fopen64" = xyes
  16998. then :
  16999. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17000. fi
  17001. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17002. if test "x$ac_cv_func_fseeko" = xyes
  17003. then :
  17004. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17005. fi
  17006. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17007. if test "x$ac_cv_func_fseeko64" = xyes
  17008. then :
  17009. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17010. fi
  17011. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17012. if test "x$ac_cv_func_sigaction" = xyes
  17013. then :
  17014. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17015. fi
  17016. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17017. if test "x$ac_cv_func_setjmp" = xyes
  17018. then :
  17019. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17020. fi
  17021. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17022. if test "x$ac_cv_func_nanosleep" = xyes
  17023. then :
  17024. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17025. fi
  17026. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17027. if test "x$ac_cv_func_sysconf" = xyes
  17028. then :
  17029. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17030. fi
  17031. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17032. if test "x$ac_cv_func_sysctlbyname" = xyes
  17033. then :
  17034. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17035. fi
  17036. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17037. if test "x$ac_cv_func_getauxval" = xyes
  17038. then :
  17039. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17040. fi
  17041. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17042. if test "x$ac_cv_func_elf_aux_info" = xyes
  17043. then :
  17044. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17045. fi
  17046. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17047. if test "x$ac_cv_func_poll" = xyes
  17048. then :
  17049. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17050. fi
  17051. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17052. if test "x$ac_cv_func__Exit" = xyes
  17053. then :
  17054. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17055. fi
  17056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17057. printf %s "checking for pow in -lm... " >&6; }
  17058. if test ${ac_cv_lib_m_pow+y}
  17059. then :
  17060. printf %s "(cached) " >&6
  17061. else $as_nop
  17062. ac_check_lib_save_LIBS=$LIBS
  17063. LIBS="-lm $LIBS"
  17064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17065. /* end confdefs.h. */
  17066. /* Override any GCC internal prototype to avoid an error.
  17067. Use char because int might match the return type of a GCC
  17068. builtin and then its argument prototype would still apply. */
  17069. char pow ();
  17070. int
  17071. main (void)
  17072. {
  17073. return pow ();
  17074. ;
  17075. return 0;
  17076. }
  17077. _ACEOF
  17078. if ac_fn_c_try_link "$LINENO"
  17079. then :
  17080. ac_cv_lib_m_pow=yes
  17081. else $as_nop
  17082. ac_cv_lib_m_pow=no
  17083. fi
  17084. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17085. conftest$ac_exeext conftest.$ac_ext
  17086. LIBS=$ac_check_lib_save_LIBS
  17087. fi
  17088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17089. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17090. if test "x$ac_cv_lib_m_pow" = xyes
  17091. then :
  17092. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17093. fi
  17094. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17095. if test "x$ac_cv_func_acos" = xyes
  17096. then :
  17097. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17098. fi
  17099. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17100. if test "x$ac_cv_func_acosf" = xyes
  17101. then :
  17102. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17103. fi
  17104. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17105. if test "x$ac_cv_func_asin" = xyes
  17106. then :
  17107. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17108. fi
  17109. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17110. if test "x$ac_cv_func_asinf" = xyes
  17111. then :
  17112. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17113. fi
  17114. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17115. if test "x$ac_cv_func_atan" = xyes
  17116. then :
  17117. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17118. fi
  17119. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17120. if test "x$ac_cv_func_atanf" = xyes
  17121. then :
  17122. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17123. fi
  17124. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17125. if test "x$ac_cv_func_atan2" = xyes
  17126. then :
  17127. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17128. fi
  17129. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17130. if test "x$ac_cv_func_atan2f" = xyes
  17131. then :
  17132. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17133. fi
  17134. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17135. if test "x$ac_cv_func_ceil" = xyes
  17136. then :
  17137. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17138. fi
  17139. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17140. if test "x$ac_cv_func_ceilf" = xyes
  17141. then :
  17142. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17143. fi
  17144. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17145. if test "x$ac_cv_func_copysign" = xyes
  17146. then :
  17147. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17148. fi
  17149. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17150. if test "x$ac_cv_func_copysignf" = xyes
  17151. then :
  17152. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17153. fi
  17154. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17155. if test "x$ac_cv_func_cos" = xyes
  17156. then :
  17157. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17158. fi
  17159. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17160. if test "x$ac_cv_func_cosf" = xyes
  17161. then :
  17162. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17163. fi
  17164. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17165. if test "x$ac_cv_func_exp" = xyes
  17166. then :
  17167. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17168. fi
  17169. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17170. if test "x$ac_cv_func_expf" = xyes
  17171. then :
  17172. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17173. fi
  17174. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17175. if test "x$ac_cv_func_fabs" = xyes
  17176. then :
  17177. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17178. fi
  17179. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17180. if test "x$ac_cv_func_fabsf" = xyes
  17181. then :
  17182. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17183. fi
  17184. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17185. if test "x$ac_cv_func_floor" = xyes
  17186. then :
  17187. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17188. fi
  17189. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17190. if test "x$ac_cv_func_floorf" = xyes
  17191. then :
  17192. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17193. fi
  17194. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17195. if test "x$ac_cv_func_trunc" = xyes
  17196. then :
  17197. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17198. fi
  17199. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17200. if test "x$ac_cv_func_truncf" = xyes
  17201. then :
  17202. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17203. fi
  17204. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17205. if test "x$ac_cv_func_fmod" = xyes
  17206. then :
  17207. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17208. fi
  17209. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17210. if test "x$ac_cv_func_fmodf" = xyes
  17211. then :
  17212. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17213. fi
  17214. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17215. if test "x$ac_cv_func_log" = xyes
  17216. then :
  17217. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17218. fi
  17219. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17220. if test "x$ac_cv_func_logf" = xyes
  17221. then :
  17222. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17223. fi
  17224. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17225. if test "x$ac_cv_func_log10" = xyes
  17226. then :
  17227. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17228. fi
  17229. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17230. if test "x$ac_cv_func_log10f" = xyes
  17231. then :
  17232. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17233. fi
  17234. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17235. if test "x$ac_cv_func_lround" = xyes
  17236. then :
  17237. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17238. fi
  17239. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17240. if test "x$ac_cv_func_lroundf" = xyes
  17241. then :
  17242. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17243. fi
  17244. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17245. if test "x$ac_cv_func_pow" = xyes
  17246. then :
  17247. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17248. fi
  17249. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17250. if test "x$ac_cv_func_powf" = xyes
  17251. then :
  17252. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17253. fi
  17254. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17255. if test "x$ac_cv_func_round" = xyes
  17256. then :
  17257. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17258. fi
  17259. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17260. if test "x$ac_cv_func_roundf" = xyes
  17261. then :
  17262. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17263. fi
  17264. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17265. if test "x$ac_cv_func_scalbn" = xyes
  17266. then :
  17267. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17268. fi
  17269. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17270. if test "x$ac_cv_func_scalbnf" = xyes
  17271. then :
  17272. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17273. fi
  17274. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17275. if test "x$ac_cv_func_sin" = xyes
  17276. then :
  17277. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17278. fi
  17279. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17280. if test "x$ac_cv_func_sinf" = xyes
  17281. then :
  17282. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17283. fi
  17284. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17285. if test "x$ac_cv_func_sqrt" = xyes
  17286. then :
  17287. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17288. fi
  17289. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17290. if test "x$ac_cv_func_sqrtf" = xyes
  17291. then :
  17292. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17293. fi
  17294. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17295. if test "x$ac_cv_func_tan" = xyes
  17296. then :
  17297. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17298. fi
  17299. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17300. if test "x$ac_cv_func_tanf" = xyes
  17301. then :
  17302. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17303. fi
  17304. if test x$enable_system_iconv = xyes; then
  17305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17306. printf %s "checking for iconv_open in -liconv... " >&6; }
  17307. if test ${ac_cv_lib_iconv_iconv_open+y}
  17308. then :
  17309. printf %s "(cached) " >&6
  17310. else $as_nop
  17311. ac_check_lib_save_LIBS=$LIBS
  17312. LIBS="-liconv $LIBS"
  17313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17314. /* end confdefs.h. */
  17315. /* Override any GCC internal prototype to avoid an error.
  17316. Use char because int might match the return type of a GCC
  17317. builtin and then its argument prototype would still apply. */
  17318. char iconv_open ();
  17319. int
  17320. main (void)
  17321. {
  17322. return iconv_open ();
  17323. ;
  17324. return 0;
  17325. }
  17326. _ACEOF
  17327. if ac_fn_c_try_link "$LINENO"
  17328. then :
  17329. ac_cv_lib_iconv_iconv_open=yes
  17330. else $as_nop
  17331. ac_cv_lib_iconv_iconv_open=no
  17332. fi
  17333. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17334. conftest$ac_exeext conftest.$ac_ext
  17335. LIBS=$ac_check_lib_save_LIBS
  17336. fi
  17337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17338. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17339. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17340. then :
  17341. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17342. fi
  17343. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17344. if test "x$ac_cv_func_iconv" = xyes
  17345. then :
  17346. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17347. fi
  17348. fi
  17349. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17350. "
  17351. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17352. then :
  17353. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17354. fi
  17355. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17356. if test "x$ac_cv_header_libunwind_h" = xyes
  17357. then :
  17358. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17359. fi
  17360. fi
  17361. # Check whether --enable-gcc-atomics was given.
  17362. if test ${enable_gcc_atomics+y}
  17363. then :
  17364. enableval=$enable_gcc_atomics;
  17365. else $as_nop
  17366. enable_gcc_atomics=yes
  17367. fi
  17368. if test x$enable_gcc_atomics = xyes; then
  17369. have_gcc_atomics=no
  17370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17371. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17373. /* end confdefs.h. */
  17374. int
  17375. main (void)
  17376. {
  17377. int a;
  17378. void *x, *y, *z;
  17379. __sync_lock_test_and_set(&a, 4);
  17380. __sync_lock_test_and_set(&x, y);
  17381. __sync_fetch_and_add(&a, 1);
  17382. __sync_bool_compare_and_swap(&a, 5, 10);
  17383. __sync_bool_compare_and_swap(&x, y, z);
  17384. ;
  17385. return 0;
  17386. }
  17387. _ACEOF
  17388. if ac_fn_c_try_link "$LINENO"
  17389. then :
  17390. have_gcc_atomics=yes
  17391. fi
  17392. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17393. conftest$ac_exeext conftest.$ac_ext
  17394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17395. printf "%s\n" "$have_gcc_atomics" >&6; }
  17396. if test x$have_gcc_atomics = xyes; then
  17397. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17398. else
  17399. # See if we have the minimum operation needed for GCC atomics
  17400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17401. /* end confdefs.h. */
  17402. int
  17403. main (void)
  17404. {
  17405. int a;
  17406. __sync_lock_test_and_set(&a, 1);
  17407. __sync_lock_release(&a);
  17408. ;
  17409. return 0;
  17410. }
  17411. _ACEOF
  17412. if ac_fn_c_try_link "$LINENO"
  17413. then :
  17414. have_gcc_sync_lock_test_and_set=yes
  17415. fi
  17416. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17417. conftest$ac_exeext conftest.$ac_ext
  17418. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17419. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17420. fi
  17421. fi
  17422. fi
  17423. # Standard C sources
  17424. SOURCES="$SOURCES $srcdir/src/*.c"
  17425. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17426. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17427. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17428. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17429. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17430. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17431. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17432. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17433. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17434. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17435. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17436. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17437. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17438. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17439. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17440. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17441. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17442. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17443. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17444. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17445. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17446. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17447. case "$host" in
  17448. *-*-emscripten*)
  17449. default_atomic=no
  17450. ;;
  17451. *)
  17452. default_atomic=yes
  17453. ;;
  17454. esac
  17455. # Check whether --enable-atomic was given.
  17456. if test ${enable_atomic+y}
  17457. then :
  17458. enableval=$enable_atomic;
  17459. else $as_nop
  17460. enable_atomic=$default_atomic
  17461. fi
  17462. if test x$enable_atomic != xyes; then
  17463. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17464. else
  17465. SUMMARY_modules="${SUMMARY_modules} atomic"
  17466. fi
  17467. # Check whether --enable-audio was given.
  17468. if test ${enable_audio+y}
  17469. then :
  17470. enableval=$enable_audio;
  17471. else $as_nop
  17472. enable_audio=yes
  17473. fi
  17474. if test x$enable_audio != xyes; then
  17475. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17476. else
  17477. SUMMARY_modules="${SUMMARY_modules} audio"
  17478. fi
  17479. # Check whether --enable-video was given.
  17480. if test ${enable_video+y}
  17481. then :
  17482. enableval=$enable_video;
  17483. else $as_nop
  17484. enable_video=yes
  17485. fi
  17486. if test x$enable_video != xyes; then
  17487. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17488. else
  17489. SUMMARY_modules="${SUMMARY_modules} video"
  17490. fi
  17491. # Check whether --enable-render was given.
  17492. if test ${enable_render+y}
  17493. then :
  17494. enableval=$enable_render;
  17495. else $as_nop
  17496. enable_render=yes
  17497. fi
  17498. if test x$enable_render != xyes; then
  17499. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17500. else
  17501. SUMMARY_modules="${SUMMARY_modules} render"
  17502. fi
  17503. # Check whether --enable-events was given.
  17504. if test ${enable_events+y}
  17505. then :
  17506. enableval=$enable_events;
  17507. else $as_nop
  17508. enable_events=yes
  17509. fi
  17510. if test x$enable_events != xyes; then
  17511. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17512. else
  17513. SUMMARY_modules="${SUMMARY_modules} events"
  17514. fi
  17515. # Check whether --enable-joystick was given.
  17516. if test ${enable_joystick+y}
  17517. then :
  17518. enableval=$enable_joystick;
  17519. else $as_nop
  17520. enable_joystick=yes
  17521. fi
  17522. if test x$enable_joystick != xyes; then
  17523. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17524. else
  17525. SUMMARY_modules="${SUMMARY_modules} joystick"
  17526. fi
  17527. # Check whether --enable-haptic was given.
  17528. if test ${enable_haptic+y}
  17529. then :
  17530. enableval=$enable_haptic;
  17531. else $as_nop
  17532. enable_haptic=yes
  17533. fi
  17534. if test x$enable_haptic != xyes; then
  17535. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17536. else
  17537. SUMMARY_modules="${SUMMARY_modules} haptic"
  17538. fi
  17539. # Check whether --enable-hidapi was given.
  17540. if test ${enable_hidapi+y}
  17541. then :
  17542. enableval=$enable_hidapi;
  17543. else $as_nop
  17544. enable_hidapi=yes
  17545. fi
  17546. if test x$enable_hidapi != xyes; then
  17547. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17548. else
  17549. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17550. fi
  17551. # Check whether --enable-sensor was given.
  17552. if test ${enable_sensor+y}
  17553. then :
  17554. enableval=$enable_sensor;
  17555. else $as_nop
  17556. enable_sensor=yes
  17557. fi
  17558. if test x$enable_sensor != xyes; then
  17559. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17560. else
  17561. SUMMARY_modules="${SUMMARY_modules} sensor"
  17562. fi
  17563. # Check whether --enable-power was given.
  17564. if test ${enable_power+y}
  17565. then :
  17566. enableval=$enable_power;
  17567. else $as_nop
  17568. enable_power=yes
  17569. fi
  17570. if test x$enable_power != xyes; then
  17571. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17572. else
  17573. SUMMARY_modules="${SUMMARY_modules} power"
  17574. fi
  17575. # Check whether --enable-filesystem was given.
  17576. if test ${enable_filesystem+y}
  17577. then :
  17578. enableval=$enable_filesystem;
  17579. else $as_nop
  17580. enable_filesystem=yes
  17581. fi
  17582. if test x$enable_filesystem != xyes; then
  17583. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17584. else
  17585. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17586. fi
  17587. # Many subsystems depend on threads, so leave them enabled by default
  17588. #AC_ARG_ENABLE(threads,
  17589. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17590. # , enable_threads=yes)
  17591. enable_threads=yes
  17592. if test x$enable_threads != xyes; then
  17593. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17594. else
  17595. SUMMARY_modules="${SUMMARY_modules} threads"
  17596. fi
  17597. # Check whether --enable-timers was given.
  17598. if test ${enable_timers+y}
  17599. then :
  17600. enableval=$enable_timers;
  17601. else $as_nop
  17602. enable_timers=yes
  17603. fi
  17604. if test x$enable_timers != xyes; then
  17605. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17606. else
  17607. SUMMARY_modules="${SUMMARY_modules} timers"
  17608. fi
  17609. # Check whether --enable-file was given.
  17610. if test ${enable_file+y}
  17611. then :
  17612. enableval=$enable_file;
  17613. else $as_nop
  17614. enable_file=yes
  17615. fi
  17616. if test x$enable_file != xyes; then
  17617. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17618. else
  17619. SUMMARY_modules="${SUMMARY_modules} file"
  17620. fi
  17621. # Check whether --enable-misc was given.
  17622. if test ${enable_misc+y}
  17623. then :
  17624. enableval=$enable_misc;
  17625. else $as_nop
  17626. enable_misc=yes
  17627. fi
  17628. if test x$enable_misc != xyes; then
  17629. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17630. else
  17631. SUMMARY_modules="${SUMMARY_modules} misc"
  17632. fi
  17633. # Check whether --enable-locale was given.
  17634. if test ${enable_locale+y}
  17635. then :
  17636. enableval=$enable_locale;
  17637. else $as_nop
  17638. enable_locale=yes
  17639. fi
  17640. if test x$enable_locale != xyes; then
  17641. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17642. else
  17643. SUMMARY_modules="${SUMMARY_modules} locale"
  17644. fi
  17645. # Check whether --enable-loadso was given.
  17646. if test ${enable_loadso+y}
  17647. then :
  17648. enableval=$enable_loadso;
  17649. else $as_nop
  17650. enable_loadso=yes
  17651. fi
  17652. if test x$enable_loadso != xyes; then
  17653. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17654. else
  17655. SUMMARY_modules="${SUMMARY_modules} loadso"
  17656. fi
  17657. # Check whether --enable-cpuinfo was given.
  17658. if test ${enable_cpuinfo+y}
  17659. then :
  17660. enableval=$enable_cpuinfo;
  17661. else $as_nop
  17662. enable_cpuinfo=yes
  17663. fi
  17664. if test x$enable_cpuinfo != xyes; then
  17665. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17666. else
  17667. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17668. fi
  17669. # Check whether --enable-assembly was given.
  17670. if test ${enable_assembly+y}
  17671. then :
  17672. enableval=$enable_assembly;
  17673. else $as_nop
  17674. enable_assembly=yes
  17675. fi
  17676. if test x$enable_assembly = xyes; then
  17677. SUMMARY_modules="${SUMMARY_modules} assembly"
  17678. # Make sure that we don't generate floating point code that would
  17679. # cause illegal instruction exceptions on older processors
  17680. case "$host" in
  17681. *-*-darwin*)
  17682. # Don't need to worry about Apple hardware, it's all SSE capable
  17683. default_ssemath=yes
  17684. ;;
  17685. *64-*-*)
  17686. # x86 64-bit architectures all have SSE instructions
  17687. default_ssemath=yes
  17688. ;;
  17689. *)
  17690. default_ssemath=no
  17691. ;;
  17692. esac
  17693. # Check whether --enable-ssemath was given.
  17694. if test ${enable_ssemath+y}
  17695. then :
  17696. enableval=$enable_ssemath;
  17697. else $as_nop
  17698. enable_ssemath=$default_ssemath
  17699. fi
  17700. if test x$enable_ssemath = xno; then
  17701. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17702. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17703. fi
  17704. fi
  17705. # Check whether --enable-mmx was given.
  17706. if test ${enable_mmx+y}
  17707. then :
  17708. enableval=$enable_mmx;
  17709. else $as_nop
  17710. enable_mmx=yes
  17711. fi
  17712. if test x$enable_mmx = xyes; then
  17713. save_CFLAGS="$CFLAGS"
  17714. have_gcc_mmx=no
  17715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17716. printf %s "checking for GCC -mmmx option... " >&6; }
  17717. mmx_CFLAGS="-mmmx"
  17718. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17720. /* end confdefs.h. */
  17721. #ifdef __MINGW32__
  17722. #include <_mingw.h>
  17723. #ifdef __MINGW64_VERSION_MAJOR
  17724. #include <intrin.h>
  17725. #else
  17726. #include <mmintrin.h>
  17727. #endif
  17728. #else
  17729. #include <mmintrin.h>
  17730. #endif
  17731. #ifndef __MMX__
  17732. #error Assembler CPP flag not enabled
  17733. #endif
  17734. int
  17735. main (void)
  17736. {
  17737. ;
  17738. return 0;
  17739. }
  17740. _ACEOF
  17741. if ac_fn_c_try_compile "$LINENO"
  17742. then :
  17743. have_gcc_mmx=yes
  17744. fi
  17745. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17747. printf "%s\n" "$have_gcc_mmx" >&6; }
  17748. CFLAGS="$save_CFLAGS"
  17749. if test x$have_gcc_mmx = xyes; then
  17750. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17751. SUMMARY_math="${SUMMARY_math} mmx"
  17752. fi
  17753. fi
  17754. # Check whether --enable-3dnow was given.
  17755. if test ${enable_3dnow+y}
  17756. then :
  17757. enableval=$enable_3dnow;
  17758. else $as_nop
  17759. enable_3dnow=yes
  17760. fi
  17761. if test x$enable_3dnow = xyes; then
  17762. save_CFLAGS="$CFLAGS"
  17763. have_gcc_3dnow=no
  17764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17765. printf %s "checking for GCC -m3dnow option... " >&6; }
  17766. amd3dnow_CFLAGS="-m3dnow"
  17767. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17769. /* end confdefs.h. */
  17770. #include <mm3dnow.h>
  17771. #ifndef __3dNOW__
  17772. #error Assembler CPP flag not enabled
  17773. #endif
  17774. int
  17775. main (void)
  17776. {
  17777. void *p = 0;
  17778. _m_prefetch(p);
  17779. ;
  17780. return 0;
  17781. }
  17782. _ACEOF
  17783. if ac_fn_c_try_link "$LINENO"
  17784. then :
  17785. have_gcc_3dnow=yes
  17786. fi
  17787. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17788. conftest$ac_exeext conftest.$ac_ext
  17789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17790. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17791. CFLAGS="$save_CFLAGS"
  17792. if test x$have_gcc_3dnow = xyes; then
  17793. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17794. SUMMARY_math="${SUMMARY_math} 3dnow"
  17795. fi
  17796. fi
  17797. # Check whether --enable-sse was given.
  17798. if test ${enable_sse+y}
  17799. then :
  17800. enableval=$enable_sse;
  17801. else $as_nop
  17802. enable_sse=yes
  17803. fi
  17804. if test x$enable_sse = xyes; then
  17805. save_CFLAGS="$CFLAGS"
  17806. have_gcc_sse=no
  17807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17808. printf %s "checking for GCC -msse option... " >&6; }
  17809. sse_CFLAGS="-msse"
  17810. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17812. /* end confdefs.h. */
  17813. #ifdef __MINGW32__
  17814. #include <_mingw.h>
  17815. #ifdef __MINGW64_VERSION_MAJOR
  17816. #include <intrin.h>
  17817. #else
  17818. #include <xmmintrin.h>
  17819. #endif
  17820. #else
  17821. #include <xmmintrin.h>
  17822. #endif
  17823. #ifndef __SSE__
  17824. #error Assembler CPP flag not enabled
  17825. #endif
  17826. int
  17827. main (void)
  17828. {
  17829. ;
  17830. return 0;
  17831. }
  17832. _ACEOF
  17833. if ac_fn_c_try_compile "$LINENO"
  17834. then :
  17835. have_gcc_sse=yes
  17836. fi
  17837. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17839. printf "%s\n" "$have_gcc_sse" >&6; }
  17840. CFLAGS="$save_CFLAGS"
  17841. if test x$have_gcc_sse = xyes; then
  17842. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17843. SUMMARY_math="${SUMMARY_math} sse"
  17844. fi
  17845. fi
  17846. # Check whether --enable-sse2 was given.
  17847. if test ${enable_sse2+y}
  17848. then :
  17849. enableval=$enable_sse2;
  17850. else $as_nop
  17851. enable_sse2=$default_ssemath
  17852. fi
  17853. if test x$enable_sse2 = xyes; then
  17854. save_CFLAGS="$CFLAGS"
  17855. have_gcc_sse2=no
  17856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17857. printf %s "checking for GCC -msse2 option... " >&6; }
  17858. sse2_CFLAGS="-msse2"
  17859. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17861. /* end confdefs.h. */
  17862. #ifdef __MINGW32__
  17863. #include <_mingw.h>
  17864. #ifdef __MINGW64_VERSION_MAJOR
  17865. #include <intrin.h>
  17866. #else
  17867. #include <emmintrin.h>
  17868. #endif
  17869. #else
  17870. #include <emmintrin.h>
  17871. #endif
  17872. #ifndef __SSE2__
  17873. #error Assembler CPP flag not enabled
  17874. #endif
  17875. int
  17876. main (void)
  17877. {
  17878. ;
  17879. return 0;
  17880. }
  17881. _ACEOF
  17882. if ac_fn_c_try_compile "$LINENO"
  17883. then :
  17884. have_gcc_sse2=yes
  17885. fi
  17886. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17888. printf "%s\n" "$have_gcc_sse2" >&6; }
  17889. CFLAGS="$save_CFLAGS"
  17890. if test x$have_gcc_sse2 = xyes; then
  17891. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17892. SUMMARY_math="${SUMMARY_math} sse2"
  17893. fi
  17894. fi
  17895. # Check whether --enable-sse3 was given.
  17896. if test ${enable_sse3+y}
  17897. then :
  17898. enableval=$enable_sse3;
  17899. else $as_nop
  17900. enable_sse3=$default_ssemath
  17901. fi
  17902. if test x$enable_sse3 = xyes; then
  17903. save_CFLAGS="$CFLAGS"
  17904. have_gcc_sse3=no
  17905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17906. printf %s "checking for GCC -msse3 option... " >&6; }
  17907. sse3_CFLAGS="-msse3"
  17908. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17910. /* end confdefs.h. */
  17911. #ifdef __MINGW32__
  17912. #include <_mingw.h>
  17913. #ifdef __MINGW64_VERSION_MAJOR
  17914. #include <intrin.h>
  17915. #else
  17916. #include <pmmintrin.h>
  17917. #endif
  17918. #else
  17919. #include <pmmintrin.h>
  17920. #endif
  17921. #ifndef __SSE2__
  17922. #error Assembler CPP flag not enabled
  17923. #endif
  17924. int
  17925. main (void)
  17926. {
  17927. ;
  17928. return 0;
  17929. }
  17930. _ACEOF
  17931. if ac_fn_c_try_compile "$LINENO"
  17932. then :
  17933. have_gcc_sse3=yes
  17934. fi
  17935. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17937. printf "%s\n" "$have_gcc_sse3" >&6; }
  17938. CFLAGS="$save_CFLAGS"
  17939. if test x$have_gcc_sse3 = xyes; then
  17940. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17941. SUMMARY_math="${SUMMARY_math} sse3"
  17942. fi
  17943. fi
  17944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17945. printf %s "checking for immintrin.h... " >&6; }
  17946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17947. /* end confdefs.h. */
  17948. #include <immintrin.h>
  17949. int
  17950. main (void)
  17951. {
  17952. ;
  17953. return 0;
  17954. }
  17955. _ACEOF
  17956. if ac_fn_c_try_compile "$LINENO"
  17957. then :
  17958. have_immintrin_h_hdr=yes
  17959. else $as_nop
  17960. have_immintrin_h_hdr=no
  17961. fi
  17962. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17964. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17965. if test x$have_immintrin_h_hdr = xyes; then
  17966. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17967. fi
  17968. # Check whether --enable-altivec was given.
  17969. if test ${enable_altivec+y}
  17970. then :
  17971. enableval=$enable_altivec;
  17972. else $as_nop
  17973. enable_altivec=yes
  17974. fi
  17975. if test x$enable_altivec = xyes; then
  17976. save_CFLAGS="$CFLAGS"
  17977. have_gcc_altivec=no
  17978. have_altivec_h_hdr=no
  17979. altivec_CFLAGS="-maltivec"
  17980. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17982. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17984. /* end confdefs.h. */
  17985. #include <altivec.h>
  17986. vector unsigned int vzero() {
  17987. return vec_splat_u32(0);
  17988. }
  17989. int
  17990. main (void)
  17991. {
  17992. ;
  17993. return 0;
  17994. }
  17995. _ACEOF
  17996. if ac_fn_c_try_compile "$LINENO"
  17997. then :
  17998. have_gcc_altivec=yes
  17999. have_altivec_h_hdr=yes
  18000. fi
  18001. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18003. printf "%s\n" "$have_gcc_altivec" >&6; }
  18004. if test x$have_gcc_altivec = xno; then
  18005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18006. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18008. /* end confdefs.h. */
  18009. vector unsigned int vzero() {
  18010. return vec_splat_u32(0);
  18011. }
  18012. int
  18013. main (void)
  18014. {
  18015. ;
  18016. return 0;
  18017. }
  18018. _ACEOF
  18019. if ac_fn_c_try_compile "$LINENO"
  18020. then :
  18021. have_gcc_altivec=yes
  18022. fi
  18023. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18025. printf "%s\n" "$have_gcc_altivec" >&6; }
  18026. fi
  18027. if test x$have_gcc_altivec = xno; then
  18028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18029. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18030. altivec_CFLAGS="-faltivec"
  18031. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18033. /* end confdefs.h. */
  18034. #include <altivec.h>
  18035. vector unsigned int vzero() {
  18036. return vec_splat_u32(0);
  18037. }
  18038. int
  18039. main (void)
  18040. {
  18041. ;
  18042. return 0;
  18043. }
  18044. _ACEOF
  18045. if ac_fn_c_try_compile "$LINENO"
  18046. then :
  18047. have_gcc_altivec=yes
  18048. have_altivec_h_hdr=yes
  18049. fi
  18050. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18052. printf "%s\n" "$have_gcc_altivec" >&6; }
  18053. fi
  18054. if test x$have_gcc_altivec = xno; then
  18055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18056. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18058. /* end confdefs.h. */
  18059. vector unsigned int vzero() {
  18060. return vec_splat_u32(0);
  18061. }
  18062. int
  18063. main (void)
  18064. {
  18065. ;
  18066. return 0;
  18067. }
  18068. _ACEOF
  18069. if ac_fn_c_try_compile "$LINENO"
  18070. then :
  18071. have_gcc_altivec=yes
  18072. fi
  18073. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18075. printf "%s\n" "$have_gcc_altivec" >&6; }
  18076. fi
  18077. CFLAGS="$save_CFLAGS"
  18078. if test x$have_gcc_altivec = xyes; then
  18079. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18080. if test x$have_altivec_h_hdr = xyes; then
  18081. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18082. fi
  18083. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18084. SUMMARY_math="${SUMMARY_math} altivec"
  18085. fi
  18086. fi
  18087. fi
  18088. # Check whether --enable-lsx was given.
  18089. if test ${enable_lsx+y}
  18090. then :
  18091. enableval=$enable_lsx;
  18092. else $as_nop
  18093. enable_lsx=yes
  18094. fi
  18095. if test x$enable_lsx = xyes; then
  18096. save_CFLAGS="$CFLAGS"
  18097. have_gcc_lsx=no
  18098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18099. printf %s "checking for GCC -mlsx option... " >&6; }
  18100. lsx_CFLAGS="-mlsx"
  18101. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18103. /* end confdefs.h. */
  18104. #ifndef __loongarch_sx
  18105. #error Assembler CPP flag not enabled
  18106. #endif
  18107. int
  18108. main (void)
  18109. {
  18110. ;
  18111. return 0;
  18112. }
  18113. _ACEOF
  18114. if ac_fn_c_try_compile "$LINENO"
  18115. then :
  18116. have_gcc_lsx=yes
  18117. fi
  18118. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18120. printf "%s\n" "$have_gcc_lsx" >&6; }
  18121. CFLAGS="$save_CFLAGS"
  18122. if test x$have_gcc_lsx = xyes; then
  18123. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18124. SUMMARY_math="${SUMMARY_math} lsx"
  18125. fi
  18126. fi
  18127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18128. printf %s "checking for lsxintrin.h... " >&6; }
  18129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18130. /* end confdefs.h. */
  18131. #include <lsxintrin.h>
  18132. int
  18133. main (void)
  18134. {
  18135. ;
  18136. return 0;
  18137. }
  18138. _ACEOF
  18139. if ac_fn_c_try_compile "$LINENO"
  18140. then :
  18141. have_lsxintrin_h_hdr=yes
  18142. else $as_nop
  18143. have_lsxintrin_h_hdr=no
  18144. fi
  18145. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18147. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18148. if test x$have_lsxintrin_h_hdr = xyes; then
  18149. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18150. fi
  18151. # Check whether --enable-lasx was given.
  18152. if test ${enable_lasx+y}
  18153. then :
  18154. enableval=$enable_lasx;
  18155. else $as_nop
  18156. enable_LASX=yes
  18157. fi
  18158. if test x$enable_LASX = xyes; then
  18159. save_CFLAGS="$CFLAGS"
  18160. have_gcc_lasx=no
  18161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18162. printf %s "checking for GCC -mlasx option... " >&6; }
  18163. lasx_CFLAGS="-mlasx"
  18164. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18166. /* end confdefs.h. */
  18167. #ifndef __loongarch_asx
  18168. #error Assembler CPP flag not enabled
  18169. #endif
  18170. int
  18171. main (void)
  18172. {
  18173. ;
  18174. return 0;
  18175. }
  18176. _ACEOF
  18177. if ac_fn_c_try_compile "$LINENO"
  18178. then :
  18179. have_gcc_lasx=yes
  18180. fi
  18181. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18183. printf "%s\n" "$have_gcc_lasx" >&6; }
  18184. CFLAGS="$save_CFLAGS"
  18185. if test x$have_gcc_lasx = xyes; then
  18186. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18187. SUMMARY_math="${SUMMARY_math} lasx"
  18188. fi
  18189. fi
  18190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18191. printf %s "checking for lasxintrin.h... " >&6; }
  18192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18193. /* end confdefs.h. */
  18194. #include <lasxintrin.h>
  18195. int
  18196. main (void)
  18197. {
  18198. ;
  18199. return 0;
  18200. }
  18201. _ACEOF
  18202. if ac_fn_c_try_compile "$LINENO"
  18203. then :
  18204. have_lasxintrin_h_hdr=yes
  18205. else $as_nop
  18206. have_lasxintrin_h_hdr=no
  18207. fi
  18208. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18210. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18211. if test x$have_lasxintrin_h_hdr = xyes; then
  18212. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18213. fi
  18214. CheckOSS()
  18215. {
  18216. # Check whether --enable-oss was given.
  18217. if test ${enable_oss+y}
  18218. then :
  18219. enableval=$enable_oss;
  18220. else $as_nop
  18221. enable_oss=maybe
  18222. fi
  18223. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  18224. # use sndio instead. So on there, we default to disabled. You can force
  18225. # it on if you really want, though.
  18226. if test x$enable_oss = xmaybe; then
  18227. enable_oss=yes
  18228. case "$host" in
  18229. *-*-openbsd*)
  18230. enable_oss=no;;
  18231. esac
  18232. fi
  18233. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18235. printf %s "checking for OSS audio support... " >&6; }
  18236. have_oss=no
  18237. if test x$have_oss != xyes; then
  18238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18239. /* end confdefs.h. */
  18240. #include <sys/soundcard.h>
  18241. int
  18242. main (void)
  18243. {
  18244. int arg = SNDCTL_DSP_SETFRAGMENT;
  18245. ;
  18246. return 0;
  18247. }
  18248. _ACEOF
  18249. if ac_fn_c_try_compile "$LINENO"
  18250. then :
  18251. have_oss=yes
  18252. fi
  18253. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18254. fi
  18255. if test x$have_oss != xyes; then
  18256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18257. /* end confdefs.h. */
  18258. #include <soundcard.h>
  18259. int
  18260. main (void)
  18261. {
  18262. int arg = SNDCTL_DSP_SETFRAGMENT;
  18263. ;
  18264. return 0;
  18265. }
  18266. _ACEOF
  18267. if ac_fn_c_try_compile "$LINENO"
  18268. then :
  18269. have_oss=yes
  18270. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  18271. fi
  18272. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18273. fi
  18274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18275. printf "%s\n" "$have_oss" >&6; }
  18276. if test x$have_oss = xyes; then
  18277. SUMMARY_audio="${SUMMARY_audio} oss"
  18278. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18279. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18280. have_audio=yes
  18281. # We may need to link with ossaudio emulation library
  18282. case "$host" in
  18283. *-*-openbsd*|*-*-netbsd*)
  18284. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18285. esac
  18286. fi
  18287. fi
  18288. }
  18289. CheckALSA()
  18290. {
  18291. # Check whether --enable-alsa was given.
  18292. if test ${enable_alsa+y}
  18293. then :
  18294. enableval=$enable_alsa;
  18295. else $as_nop
  18296. enable_alsa=yes
  18297. fi
  18298. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18299. alsa_save_CFLAGS="$CFLAGS"
  18300. alsa_save_LDFLAGS="$LDFLAGS"
  18301. alsa_save_LIBS="$LIBS"
  18302. alsa_found=yes
  18303. # Check whether --with-alsa-prefix was given.
  18304. if test ${with_alsa_prefix+y}
  18305. then :
  18306. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18307. else $as_nop
  18308. alsa_prefix=""
  18309. fi
  18310. # Check whether --with-alsa-inc-prefix was given.
  18311. if test ${with_alsa_inc_prefix+y}
  18312. then :
  18313. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18314. else $as_nop
  18315. alsa_inc_prefix=""
  18316. fi
  18317. # Check whether --enable-alsatest was given.
  18318. if test ${enable_alsatest+y}
  18319. then :
  18320. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18321. else $as_nop
  18322. enable_alsatest=yes
  18323. fi
  18324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18325. printf %s "checking for ALSA CFLAGS... " >&6; }
  18326. if test "$alsa_inc_prefix" != "" ; then
  18327. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18328. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18329. fi
  18330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18331. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18333. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18334. if test "$alsa_prefix" != "" ; then
  18335. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18336. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18337. fi
  18338. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18339. LIBS=`echo $LIBS | sed 's/-lm//'`
  18340. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18341. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18342. LIBS=`echo $LIBS | sed 's/ //'`
  18343. LIBS="$ALSA_LIBS $LIBS"
  18344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18345. printf "%s\n" "$ALSA_LIBS" >&6; }
  18346. min_alsa_version=1.0.11
  18347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18348. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18349. no_alsa=""
  18350. alsa_min_major_version=`echo $min_alsa_version | \
  18351. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18352. alsa_min_minor_version=`echo $min_alsa_version | \
  18353. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18354. alsa_min_micro_version=`echo $min_alsa_version | \
  18355. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18356. ac_ext=c
  18357. ac_cpp='$CPP $CPPFLAGS'
  18358. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18359. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18360. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18362. /* end confdefs.h. */
  18363. #include <alsa/asoundlib.h>
  18364. int
  18365. main (void)
  18366. {
  18367. /* ensure backward compatibility */
  18368. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18369. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18370. #endif
  18371. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18372. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18373. #endif
  18374. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18375. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18376. #endif
  18377. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18378. exit(0);
  18379. # else
  18380. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18381. # error not present
  18382. # endif
  18383. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18384. exit(0);
  18385. # else
  18386. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18387. # error not present
  18388. # endif
  18389. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18390. # error not present
  18391. # endif
  18392. # endif
  18393. # endif
  18394. exit(0);
  18395. ;
  18396. return 0;
  18397. }
  18398. _ACEOF
  18399. if ac_fn_c_try_compile "$LINENO"
  18400. then :
  18401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18402. printf "%s\n" "found." >&6; }
  18403. else $as_nop
  18404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18405. printf "%s\n" "not present." >&6; }
  18406. alsa_found=no
  18407. fi
  18408. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18409. ac_ext=c
  18410. ac_cpp='$CPP $CPPFLAGS'
  18411. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18412. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18413. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18414. if test "x$enable_alsatest" = "xyes"; then
  18415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18416. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18417. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18418. then :
  18419. printf %s "(cached) " >&6
  18420. else $as_nop
  18421. ac_check_lib_save_LIBS=$LIBS
  18422. LIBS="-lasound $LIBS"
  18423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18424. /* end confdefs.h. */
  18425. /* Override any GCC internal prototype to avoid an error.
  18426. Use char because int might match the return type of a GCC
  18427. builtin and then its argument prototype would still apply. */
  18428. char snd_ctl_open ();
  18429. int
  18430. main (void)
  18431. {
  18432. return snd_ctl_open ();
  18433. ;
  18434. return 0;
  18435. }
  18436. _ACEOF
  18437. if ac_fn_c_try_link "$LINENO"
  18438. then :
  18439. ac_cv_lib_asound_snd_ctl_open=yes
  18440. else $as_nop
  18441. ac_cv_lib_asound_snd_ctl_open=no
  18442. fi
  18443. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18444. conftest$ac_exeext conftest.$ac_ext
  18445. LIBS=$ac_check_lib_save_LIBS
  18446. fi
  18447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18448. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18449. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18450. then :
  18451. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18452. LIBS="-lasound $LIBS"
  18453. else $as_nop
  18454. alsa_found=no
  18455. fi
  18456. fi
  18457. if test "x$alsa_found" = "xyes" ; then
  18458. have_alsa=yes
  18459. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18460. LIBS=`echo $LIBS | sed 's/ //'`
  18461. LIBS="-lasound $LIBS"
  18462. fi
  18463. if test "x$alsa_found" = "xno" ; then
  18464. have_alsa=no
  18465. CFLAGS="$alsa_save_CFLAGS"
  18466. LDFLAGS="$alsa_save_LDFLAGS"
  18467. LIBS="$alsa_save_LIBS"
  18468. ALSA_CFLAGS=""
  18469. ALSA_LIBS=""
  18470. fi
  18471. # Restore all flags from before the ALSA detection runs
  18472. CFLAGS="$alsa_save_CFLAGS"
  18473. LDFLAGS="$alsa_save_LDFLAGS"
  18474. LIBS="$alsa_save_LIBS"
  18475. if test x$have_alsa = xyes; then
  18476. # Check whether --enable-alsa-shared was given.
  18477. if test ${enable_alsa_shared+y}
  18478. then :
  18479. enableval=$enable_alsa_shared;
  18480. else $as_nop
  18481. enable_alsa_shared=yes
  18482. fi
  18483. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18484. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18485. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18486. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18487. if test x$have_loadso != xyes && \
  18488. test x$enable_alsa_shared = xyes; then
  18489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18490. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18491. fi
  18492. if test x$have_loadso = xyes && \
  18493. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18494. echo "-- dynamic libasound -> $alsa_lib"
  18495. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18496. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18497. else
  18498. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18499. SUMMARY_audio="${SUMMARY_audio} alsa"
  18500. fi
  18501. have_audio=yes
  18502. fi
  18503. fi
  18504. }
  18505. CheckJACK()
  18506. {
  18507. # Check whether --enable-jack was given.
  18508. if test ${enable_jack+y}
  18509. then :
  18510. enableval=$enable_jack;
  18511. else $as_nop
  18512. enable_jack=yes
  18513. fi
  18514. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18515. pkg_failed=no
  18516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18517. printf %s "checking for jack >= 0.125... " >&6; }
  18518. if test -n "$JACK_CFLAGS"; then
  18519. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18520. elif test -n "$PKG_CONFIG"; then
  18521. if test -n "$PKG_CONFIG" && \
  18522. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18523. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18524. ac_status=$?
  18525. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18526. test $ac_status = 0; }; then
  18527. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18528. test "x$?" != "x0" && pkg_failed=yes
  18529. else
  18530. pkg_failed=yes
  18531. fi
  18532. else
  18533. pkg_failed=untried
  18534. fi
  18535. if test -n "$JACK_LIBS"; then
  18536. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18537. elif test -n "$PKG_CONFIG"; then
  18538. if test -n "$PKG_CONFIG" && \
  18539. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18540. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18541. ac_status=$?
  18542. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18543. test $ac_status = 0; }; then
  18544. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18545. test "x$?" != "x0" && pkg_failed=yes
  18546. else
  18547. pkg_failed=yes
  18548. fi
  18549. else
  18550. pkg_failed=untried
  18551. fi
  18552. if test $pkg_failed = yes; then
  18553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18554. printf "%s\n" "no" >&6; }
  18555. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18556. _pkg_short_errors_supported=yes
  18557. else
  18558. _pkg_short_errors_supported=no
  18559. fi
  18560. if test $_pkg_short_errors_supported = yes; then
  18561. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18562. else
  18563. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18564. fi
  18565. # Put the nasty error message in config.log where it belongs
  18566. echo "$JACK_PKG_ERRORS" >&5
  18567. audio_jack=no
  18568. elif test $pkg_failed = untried; then
  18569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18570. printf "%s\n" "no" >&6; }
  18571. audio_jack=no
  18572. else
  18573. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18574. JACK_LIBS=$pkg_cv_JACK_LIBS
  18575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18576. printf "%s\n" "yes" >&6; }
  18577. audio_jack=yes
  18578. fi
  18579. if test x$audio_jack = xyes; then
  18580. # Check whether --enable-jack-shared was given.
  18581. if test ${enable_jack_shared+y}
  18582. then :
  18583. enableval=$enable_jack_shared;
  18584. else $as_nop
  18585. enable_jack_shared=yes
  18586. fi
  18587. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18588. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18589. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18590. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18591. if test x$have_loadso != xyes && \
  18592. test x$enable_jack_shared = xyes; then
  18593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18594. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18595. fi
  18596. if test x$have_loadso = xyes && \
  18597. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18598. echo "-- dynamic libjack -> $jack_lib"
  18599. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18600. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18601. case "$host" in
  18602. # On Solaris, jack must be linked deferred explicitly
  18603. # to prevent undefined symbol failures.
  18604. *-*-solaris*)
  18605. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18606. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18607. esac
  18608. else
  18609. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18610. SUMMARY_audio="${SUMMARY_audio} jack"
  18611. fi
  18612. have_audio=yes
  18613. fi
  18614. fi
  18615. }
  18616. CheckESD()
  18617. {
  18618. # Check whether --enable-esd was given.
  18619. if test ${enable_esd+y}
  18620. then :
  18621. enableval=$enable_esd;
  18622. else $as_nop
  18623. enable_esd=yes
  18624. fi
  18625. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18626. pkg_failed=no
  18627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18628. printf %s "checking for esound >= 0.2.8... " >&6; }
  18629. if test -n "$ESD_CFLAGS"; then
  18630. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18631. elif test -n "$PKG_CONFIG"; then
  18632. if test -n "$PKG_CONFIG" && \
  18633. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18634. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18635. ac_status=$?
  18636. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18637. test $ac_status = 0; }; then
  18638. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18639. test "x$?" != "x0" && pkg_failed=yes
  18640. else
  18641. pkg_failed=yes
  18642. fi
  18643. else
  18644. pkg_failed=untried
  18645. fi
  18646. if test -n "$ESD_LIBS"; then
  18647. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18648. elif test -n "$PKG_CONFIG"; then
  18649. if test -n "$PKG_CONFIG" && \
  18650. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18651. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18652. ac_status=$?
  18653. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18654. test $ac_status = 0; }; then
  18655. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18656. test "x$?" != "x0" && pkg_failed=yes
  18657. else
  18658. pkg_failed=yes
  18659. fi
  18660. else
  18661. pkg_failed=untried
  18662. fi
  18663. if test $pkg_failed = yes; then
  18664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18665. printf "%s\n" "no" >&6; }
  18666. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18667. _pkg_short_errors_supported=yes
  18668. else
  18669. _pkg_short_errors_supported=no
  18670. fi
  18671. if test $_pkg_short_errors_supported = yes; then
  18672. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18673. else
  18674. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18675. fi
  18676. # Put the nasty error message in config.log where it belongs
  18677. echo "$ESD_PKG_ERRORS" >&5
  18678. have_esd=no
  18679. elif test $pkg_failed = untried; then
  18680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18681. printf "%s\n" "no" >&6; }
  18682. have_esd=no
  18683. else
  18684. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18685. ESD_LIBS=$pkg_cv_ESD_LIBS
  18686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18687. printf "%s\n" "yes" >&6; }
  18688. have_esd=yes
  18689. fi
  18690. if test x$have_esd = xno; then
  18691. # Check whether --with-esd-prefix was given.
  18692. if test ${with_esd_prefix+y}
  18693. then :
  18694. withval=$with_esd_prefix; esd_prefix="$withval"
  18695. else $as_nop
  18696. esd_prefix=""
  18697. fi
  18698. # Check whether --with-esd-exec-prefix was given.
  18699. if test ${with_esd_exec_prefix+y}
  18700. then :
  18701. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18702. else $as_nop
  18703. esd_exec_prefix=""
  18704. fi
  18705. # Check whether --enable-esdtest was given.
  18706. if test ${enable_esdtest+y}
  18707. then :
  18708. enableval=$enable_esdtest;
  18709. else $as_nop
  18710. enable_esdtest=yes
  18711. fi
  18712. if test x$esd_exec_prefix != x ; then
  18713. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18714. if test x${ESD_CONFIG+set} != xset ; then
  18715. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18716. fi
  18717. fi
  18718. if test x$esd_prefix != x ; then
  18719. esd_args="$esd_args --prefix=$esd_prefix"
  18720. if test x${ESD_CONFIG+set} != xset ; then
  18721. ESD_CONFIG=$esd_prefix/bin/esd-config
  18722. fi
  18723. fi
  18724. # Extract the first word of "esd-config", so it can be a program name with args.
  18725. set dummy esd-config; ac_word=$2
  18726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18727. printf %s "checking for $ac_word... " >&6; }
  18728. if test ${ac_cv_path_ESD_CONFIG+y}
  18729. then :
  18730. printf %s "(cached) " >&6
  18731. else $as_nop
  18732. case $ESD_CONFIG in
  18733. [\\/]* | ?:[\\/]*)
  18734. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18735. ;;
  18736. *)
  18737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18738. for as_dir in $PATH
  18739. do
  18740. IFS=$as_save_IFS
  18741. case $as_dir in #(((
  18742. '') as_dir=./ ;;
  18743. */) ;;
  18744. *) as_dir=$as_dir/ ;;
  18745. esac
  18746. for ac_exec_ext in '' $ac_executable_extensions; do
  18747. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18748. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18749. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18750. break 2
  18751. fi
  18752. done
  18753. done
  18754. IFS=$as_save_IFS
  18755. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18756. ;;
  18757. esac
  18758. fi
  18759. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18760. if test -n "$ESD_CONFIG"; then
  18761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18762. printf "%s\n" "$ESD_CONFIG" >&6; }
  18763. else
  18764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18765. printf "%s\n" "no" >&6; }
  18766. fi
  18767. min_esd_version=0.2.8
  18768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18769. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18770. no_esd=""
  18771. if test "$ESD_CONFIG" = "no" ; then
  18772. no_esd=yes
  18773. else
  18774. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18775. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18776. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18777. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18778. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18779. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18780. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18781. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18782. if test "x$enable_esdtest" = "xyes" ; then
  18783. ac_ext=c
  18784. ac_cpp='$CPP $CPPFLAGS'
  18785. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18786. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18787. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18788. ac_save_CFLAGS="$CFLAGS"
  18789. ac_save_LIBS="$LIBS"
  18790. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18791. LIBS="$LIBS $ESD_LIBS"
  18792. rm -f conf.esdtest
  18793. if test "$cross_compiling" = yes
  18794. then :
  18795. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18796. else $as_nop
  18797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18798. /* end confdefs.h. */
  18799. #include <stdio.h>
  18800. #include <stdlib.h>
  18801. #include <esd.h>
  18802. int main (void)
  18803. {
  18804. int major, minor, micro;
  18805. FILE *fp = fopen("conf.esdtest", "w");
  18806. if (fp) fclose(fp);
  18807. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18808. printf("%s, bad version string\n", "$min_esd_version");
  18809. exit(1);
  18810. }
  18811. if (($esd_major_version > major) ||
  18812. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18813. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18814. {
  18815. return 0;
  18816. }
  18817. else
  18818. {
  18819. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18820. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18821. printf("*** best to upgrade to the required version.\n");
  18822. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18823. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18824. printf("*** config.cache before re-running configure\n");
  18825. return 1;
  18826. }
  18827. }
  18828. _ACEOF
  18829. if ac_fn_c_try_run "$LINENO"
  18830. then :
  18831. else $as_nop
  18832. no_esd=yes
  18833. fi
  18834. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18835. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18836. fi
  18837. CFLAGS="$ac_save_CFLAGS"
  18838. LIBS="$ac_save_LIBS"
  18839. ac_ext=c
  18840. ac_cpp='$CPP $CPPFLAGS'
  18841. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18842. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18843. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18844. fi
  18845. fi
  18846. if test "x$no_esd" = x ; then
  18847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18848. printf "%s\n" "yes" >&6; }
  18849. have_esd=yes
  18850. else
  18851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18852. printf "%s\n" "no" >&6; }
  18853. if test "$ESD_CONFIG" = "no" ; then
  18854. :
  18855. else
  18856. if test -f conf.esdtest ; then
  18857. :
  18858. else
  18859. echo "*** Could not run ESD test program, checking why..."
  18860. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18861. LIBS="$LIBS $ESD_LIBS"
  18862. ac_ext=c
  18863. ac_cpp='$CPP $CPPFLAGS'
  18864. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18865. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18866. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18868. /* end confdefs.h. */
  18869. #include <stdio.h>
  18870. #include <esd.h>
  18871. int
  18872. main (void)
  18873. {
  18874. return 0;
  18875. ;
  18876. return 0;
  18877. }
  18878. _ACEOF
  18879. if ac_fn_c_try_link "$LINENO"
  18880. then :
  18881. echo "*** The test program compiled, but did not run. This usually means"
  18882. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18883. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18884. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18885. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18886. echo "*** is required on your system"
  18887. echo "***"
  18888. echo "*** If you have an old version installed, it is best to remove it, although"
  18889. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18890. else $as_nop
  18891. echo "*** The test program failed to compile or link. See the file config.log for the"
  18892. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18893. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18894. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18895. fi
  18896. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18897. conftest$ac_exeext conftest.$ac_ext
  18898. CFLAGS="$ac_save_CFLAGS"
  18899. LIBS="$ac_save_LIBS"
  18900. ac_ext=c
  18901. ac_cpp='$CPP $CPPFLAGS'
  18902. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18903. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18904. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18905. fi
  18906. fi
  18907. ESD_CFLAGS=""
  18908. ESD_LIBS=""
  18909. have_esd=no
  18910. fi
  18911. rm -f conf.esdtest
  18912. fi
  18913. if test x$have_esd = xyes; then
  18914. # Check whether --enable-esd-shared was given.
  18915. if test ${enable_esd_shared+y}
  18916. then :
  18917. enableval=$enable_esd_shared;
  18918. else $as_nop
  18919. enable_esd_shared=yes
  18920. fi
  18921. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18922. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18923. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18924. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18925. if test x$have_loadso != xyes && \
  18926. test x$enable_esd_shared = xyes; then
  18927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18928. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18929. fi
  18930. if test x$have_loadso = xyes && \
  18931. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18932. echo "-- dynamic libesd -> $esd_lib"
  18933. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  18934. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18935. else
  18936. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18937. SUMMARY_audio="${SUMMARY_audio} esd"
  18938. fi
  18939. have_audio=yes
  18940. fi
  18941. fi
  18942. }
  18943. CheckPipewire()
  18944. {
  18945. # Check whether --enable-pipewire was given.
  18946. if test ${enable_pipewire+y}
  18947. then :
  18948. enableval=$enable_pipewire;
  18949. else $as_nop
  18950. enable_pipewire=yes
  18951. fi
  18952. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18953. pkg_failed=no
  18954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18955. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18956. if test -n "$PIPEWIRE_CFLAGS"; then
  18957. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18958. elif test -n "$PKG_CONFIG"; then
  18959. if test -n "$PKG_CONFIG" && \
  18960. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18961. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18962. ac_status=$?
  18963. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18964. test $ac_status = 0; }; then
  18965. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18966. test "x$?" != "x0" && pkg_failed=yes
  18967. else
  18968. pkg_failed=yes
  18969. fi
  18970. else
  18971. pkg_failed=untried
  18972. fi
  18973. if test -n "$PIPEWIRE_LIBS"; then
  18974. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18975. elif test -n "$PKG_CONFIG"; then
  18976. if test -n "$PKG_CONFIG" && \
  18977. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18978. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18979. ac_status=$?
  18980. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18981. test $ac_status = 0; }; then
  18982. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18983. test "x$?" != "x0" && pkg_failed=yes
  18984. else
  18985. pkg_failed=yes
  18986. fi
  18987. else
  18988. pkg_failed=untried
  18989. fi
  18990. if test $pkg_failed = yes; then
  18991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18992. printf "%s\n" "no" >&6; }
  18993. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18994. _pkg_short_errors_supported=yes
  18995. else
  18996. _pkg_short_errors_supported=no
  18997. fi
  18998. if test $_pkg_short_errors_supported = yes; then
  18999. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19000. else
  19001. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19002. fi
  19003. # Put the nasty error message in config.log where it belongs
  19004. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19005. audio_pipewire=no
  19006. elif test $pkg_failed = untried; then
  19007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19008. printf "%s\n" "no" >&6; }
  19009. audio_pipewire=no
  19010. else
  19011. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19012. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19014. printf "%s\n" "yes" >&6; }
  19015. audio_pipewire=yes
  19016. fi
  19017. if test x$audio_pipewire = xyes; then
  19018. # Check whether --enable-pipewire-shared was given.
  19019. if test ${enable_pipewire_shared+y}
  19020. then :
  19021. enableval=$enable_pipewire_shared;
  19022. else $as_nop
  19023. enable_pipewire_shared=yes
  19024. fi
  19025. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19026. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19027. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19028. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19029. if test x$have_loadso != xyes && \
  19030. test x$enable_pipewire_shared = xyes; then
  19031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19032. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19033. fi
  19034. if test x$have_loadso = xyes && \
  19035. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19036. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19037. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19038. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19039. else
  19040. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19041. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19042. fi
  19043. have_audio=yes
  19044. fi
  19045. fi
  19046. }
  19047. CheckPulseAudio()
  19048. {
  19049. # Check whether --enable-pulseaudio was given.
  19050. if test ${enable_pulseaudio+y}
  19051. then :
  19052. enableval=$enable_pulseaudio;
  19053. else $as_nop
  19054. enable_pulseaudio=yes
  19055. fi
  19056. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19057. pkg_failed=no
  19058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  19059. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  19060. if test -n "$PULSEAUDIO_CFLAGS"; then
  19061. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19062. elif test -n "$PKG_CONFIG"; then
  19063. if test -n "$PKG_CONFIG" && \
  19064. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19065. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19066. ac_status=$?
  19067. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19068. test $ac_status = 0; }; then
  19069. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  19070. test "x$?" != "x0" && pkg_failed=yes
  19071. else
  19072. pkg_failed=yes
  19073. fi
  19074. else
  19075. pkg_failed=untried
  19076. fi
  19077. if test -n "$PULSEAUDIO_LIBS"; then
  19078. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19079. elif test -n "$PKG_CONFIG"; then
  19080. if test -n "$PKG_CONFIG" && \
  19081. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19082. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19083. ac_status=$?
  19084. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19085. test $ac_status = 0; }; then
  19086. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  19087. test "x$?" != "x0" && pkg_failed=yes
  19088. else
  19089. pkg_failed=yes
  19090. fi
  19091. else
  19092. pkg_failed=untried
  19093. fi
  19094. if test $pkg_failed = yes; then
  19095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19096. printf "%s\n" "no" >&6; }
  19097. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19098. _pkg_short_errors_supported=yes
  19099. else
  19100. _pkg_short_errors_supported=no
  19101. fi
  19102. if test $_pkg_short_errors_supported = yes; then
  19103. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19104. else
  19105. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19106. fi
  19107. # Put the nasty error message in config.log where it belongs
  19108. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19109. audio_pulseaudio=no
  19110. elif test $pkg_failed = untried; then
  19111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19112. printf "%s\n" "no" >&6; }
  19113. audio_pulseaudio=no
  19114. else
  19115. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19116. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19118. printf "%s\n" "yes" >&6; }
  19119. audio_pulseaudio=yes
  19120. fi
  19121. if test x$audio_pulseaudio = xyes; then
  19122. # Check whether --enable-pulseaudio-shared was given.
  19123. if test ${enable_pulseaudio_shared+y}
  19124. then :
  19125. enableval=$enable_pulseaudio_shared;
  19126. else $as_nop
  19127. enable_pulseaudio_shared=yes
  19128. fi
  19129. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19130. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19131. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19132. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19133. if test x$have_loadso != xyes && \
  19134. test x$enable_pulseaudio_shared = xyes; then
  19135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19136. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19137. fi
  19138. if test x$have_loadso = xyes && \
  19139. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19140. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19141. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19142. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19143. case "$host" in
  19144. # On Solaris, pulseaudio must be linked deferred explicitly
  19145. # to prevent undefined symbol failures.
  19146. *-*-solaris*)
  19147. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19148. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19149. esac
  19150. else
  19151. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19152. SUMMARY_audio="${SUMMARY_audio} pulse"
  19153. fi
  19154. have_audio=yes
  19155. fi
  19156. fi
  19157. }
  19158. CheckARTSC()
  19159. {
  19160. # Check whether --enable-arts was given.
  19161. if test ${enable_arts+y}
  19162. then :
  19163. enableval=$enable_arts;
  19164. else $as_nop
  19165. enable_arts=yes
  19166. fi
  19167. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19168. # Extract the first word of "artsc-config", so it can be a program name with args.
  19169. set dummy artsc-config; ac_word=$2
  19170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19171. printf %s "checking for $ac_word... " >&6; }
  19172. if test ${ac_cv_path_ARTSCONFIG+y}
  19173. then :
  19174. printf %s "(cached) " >&6
  19175. else $as_nop
  19176. case $ARTSCONFIG in
  19177. [\\/]* | ?:[\\/]*)
  19178. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19179. ;;
  19180. *)
  19181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19182. for as_dir in $PATH
  19183. do
  19184. IFS=$as_save_IFS
  19185. case $as_dir in #(((
  19186. '') as_dir=./ ;;
  19187. */) ;;
  19188. *) as_dir=$as_dir/ ;;
  19189. esac
  19190. for ac_exec_ext in '' $ac_executable_extensions; do
  19191. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19192. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19193. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19194. break 2
  19195. fi
  19196. done
  19197. done
  19198. IFS=$as_save_IFS
  19199. ;;
  19200. esac
  19201. fi
  19202. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19203. if test -n "$ARTSCONFIG"; then
  19204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19205. printf "%s\n" "$ARTSCONFIG" >&6; }
  19206. else
  19207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19208. printf "%s\n" "no" >&6; }
  19209. fi
  19210. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19211. : # arts isn't installed
  19212. else
  19213. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19214. ARTS_LIBS=`$ARTSCONFIG --libs`
  19215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19216. printf %s "checking for aRts development environment... " >&6; }
  19217. audio_arts=no
  19218. save_CFLAGS="$CFLAGS"
  19219. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19221. /* end confdefs.h. */
  19222. #include <artsc.h>
  19223. int
  19224. main (void)
  19225. {
  19226. arts_stream_t stream;
  19227. ;
  19228. return 0;
  19229. }
  19230. _ACEOF
  19231. if ac_fn_c_try_compile "$LINENO"
  19232. then :
  19233. audio_arts=yes
  19234. fi
  19235. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19236. CFLAGS="$save_CFLAGS"
  19237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19238. printf "%s\n" "$audio_arts" >&6; }
  19239. if test x$audio_arts = xyes; then
  19240. # Check whether --enable-arts-shared was given.
  19241. if test ${enable_arts_shared+y}
  19242. then :
  19243. enableval=$enable_arts_shared;
  19244. else $as_nop
  19245. enable_arts_shared=yes
  19246. fi
  19247. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19248. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19249. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19250. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19251. if test x$have_loadso != xyes && \
  19252. test x$enable_arts_shared = xyes; then
  19253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19254. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19255. fi
  19256. if test x$have_loadso = xyes && \
  19257. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19258. echo "-- dynamic libartsc -> $arts_lib"
  19259. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19260. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19261. else
  19262. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19263. SUMMARY_audio="${SUMMARY_audio} arts"
  19264. fi
  19265. have_audio=yes
  19266. fi
  19267. fi
  19268. fi
  19269. }
  19270. CheckNAS()
  19271. {
  19272. # Check whether --enable-nas was given.
  19273. if test ${enable_nas+y}
  19274. then :
  19275. enableval=$enable_nas;
  19276. else $as_nop
  19277. enable_nas=yes
  19278. fi
  19279. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19280. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19281. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19282. then :
  19283. have_nas_hdr=yes
  19284. fi
  19285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19286. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19287. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19288. then :
  19289. printf %s "(cached) " >&6
  19290. else $as_nop
  19291. ac_check_lib_save_LIBS=$LIBS
  19292. LIBS="-laudio $LIBS"
  19293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19294. /* end confdefs.h. */
  19295. /* Override any GCC internal prototype to avoid an error.
  19296. Use char because int might match the return type of a GCC
  19297. builtin and then its argument prototype would still apply. */
  19298. char AuOpenServer ();
  19299. int
  19300. main (void)
  19301. {
  19302. return AuOpenServer ();
  19303. ;
  19304. return 0;
  19305. }
  19306. _ACEOF
  19307. if ac_fn_c_try_link "$LINENO"
  19308. then :
  19309. ac_cv_lib_audio_AuOpenServer=yes
  19310. else $as_nop
  19311. ac_cv_lib_audio_AuOpenServer=no
  19312. fi
  19313. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19314. conftest$ac_exeext conftest.$ac_ext
  19315. LIBS=$ac_check_lib_save_LIBS
  19316. fi
  19317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19318. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19319. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19320. then :
  19321. have_nas_lib=yes
  19322. fi
  19323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19324. printf %s "checking for NAS audio support... " >&6; }
  19325. have_nas=no
  19326. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19327. have_nas=yes
  19328. NAS_LIBS="-laudio"
  19329. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19330. have_nas=yes
  19331. NAS_CFLAGS="-I/usr/X11R6/include/"
  19332. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19333. fi
  19334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19335. printf "%s\n" "$have_nas" >&6; }
  19336. if test x$have_nas = xyes; then
  19337. # Check whether --enable-nas-shared was given.
  19338. if test ${enable_nas_shared+y}
  19339. then :
  19340. enableval=$enable_nas_shared;
  19341. else $as_nop
  19342. enable_nas_shared=yes
  19343. fi
  19344. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19345. if test x$have_loadso != xyes && \
  19346. test x$enable_nas_shared = xyes; then
  19347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19348. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19349. fi
  19350. if test x$have_loadso = xyes && \
  19351. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19352. echo "-- dynamic libaudio -> $nas_lib"
  19353. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19354. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19355. else
  19356. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19357. SUMMARY_audio="${SUMMARY_audio} nas"
  19358. fi
  19359. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19360. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19361. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19362. have_audio=yes
  19363. fi
  19364. fi
  19365. }
  19366. CheckSNDIO()
  19367. {
  19368. # Check whether --enable-sndio was given.
  19369. if test ${enable_sndio+y}
  19370. then :
  19371. enableval=$enable_sndio;
  19372. else $as_nop
  19373. enable_sndio=yes
  19374. fi
  19375. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19376. pkg_failed=no
  19377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19378. printf %s "checking for sndio... " >&6; }
  19379. if test -n "$SNDIO_CFLAGS"; then
  19380. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19381. elif test -n "$PKG_CONFIG"; then
  19382. if test -n "$PKG_CONFIG" && \
  19383. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19384. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19385. ac_status=$?
  19386. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19387. test $ac_status = 0; }; then
  19388. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19389. test "x$?" != "x0" && pkg_failed=yes
  19390. else
  19391. pkg_failed=yes
  19392. fi
  19393. else
  19394. pkg_failed=untried
  19395. fi
  19396. if test -n "$SNDIO_LIBS"; then
  19397. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19398. elif test -n "$PKG_CONFIG"; then
  19399. if test -n "$PKG_CONFIG" && \
  19400. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19401. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19402. ac_status=$?
  19403. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19404. test $ac_status = 0; }; then
  19405. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19406. test "x$?" != "x0" && pkg_failed=yes
  19407. else
  19408. pkg_failed=yes
  19409. fi
  19410. else
  19411. pkg_failed=untried
  19412. fi
  19413. if test $pkg_failed = yes; then
  19414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19415. printf "%s\n" "no" >&6; }
  19416. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19417. _pkg_short_errors_supported=yes
  19418. else
  19419. _pkg_short_errors_supported=no
  19420. fi
  19421. if test $_pkg_short_errors_supported = yes; then
  19422. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19423. else
  19424. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19425. fi
  19426. # Put the nasty error message in config.log where it belongs
  19427. echo "$SNDIO_PKG_ERRORS" >&5
  19428. audio_sndio=no
  19429. elif test $pkg_failed = untried; then
  19430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19431. printf "%s\n" "no" >&6; }
  19432. audio_sndio=no
  19433. else
  19434. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19435. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19437. printf "%s\n" "yes" >&6; }
  19438. audio_sndio=yes
  19439. fi
  19440. if test x$audio_sndio = xyes; then
  19441. # Check whether --enable-sndio-shared was given.
  19442. if test ${enable_sndio_shared+y}
  19443. then :
  19444. enableval=$enable_sndio_shared;
  19445. else $as_nop
  19446. enable_sndio_shared=yes
  19447. fi
  19448. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19449. if test x$have_loadso != xyes && \
  19450. test x$enable_sndio_shared = xyes; then
  19451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19452. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19453. fi
  19454. if test x$have_loadso = xyes && \
  19455. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19456. echo "-- dynamic libsndio -> $sndio_lib"
  19457. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19458. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19459. else
  19460. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19461. SUMMARY_audio="${SUMMARY_audio} sndio"
  19462. fi
  19463. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19464. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19465. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19466. have_audio=yes
  19467. fi
  19468. fi
  19469. }
  19470. CheckFusionSound()
  19471. {
  19472. # Check whether --enable-fusionsound was given.
  19473. if test ${enable_fusionsound+y}
  19474. then :
  19475. enableval=$enable_fusionsound;
  19476. else $as_nop
  19477. enable_fusionsound=no
  19478. fi
  19479. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19480. pkg_failed=no
  19481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19482. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19483. if test -n "$FUSIONSOUND_CFLAGS"; then
  19484. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19485. elif test -n "$PKG_CONFIG"; then
  19486. if test -n "$PKG_CONFIG" && \
  19487. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19488. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19489. ac_status=$?
  19490. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19491. test $ac_status = 0; }; then
  19492. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19493. test "x$?" != "x0" && pkg_failed=yes
  19494. else
  19495. pkg_failed=yes
  19496. fi
  19497. else
  19498. pkg_failed=untried
  19499. fi
  19500. if test -n "$FUSIONSOUND_LIBS"; then
  19501. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19502. elif test -n "$PKG_CONFIG"; then
  19503. if test -n "$PKG_CONFIG" && \
  19504. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19505. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19506. ac_status=$?
  19507. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19508. test $ac_status = 0; }; then
  19509. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19510. test "x$?" != "x0" && pkg_failed=yes
  19511. else
  19512. pkg_failed=yes
  19513. fi
  19514. else
  19515. pkg_failed=untried
  19516. fi
  19517. if test $pkg_failed = yes; then
  19518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19519. printf "%s\n" "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. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19527. else
  19528. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19529. fi
  19530. # Put the nasty error message in config.log where it belongs
  19531. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19532. fusionsound=no
  19533. elif test $pkg_failed = untried; then
  19534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19535. printf "%s\n" "no" >&6; }
  19536. fusionsound=no
  19537. else
  19538. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19539. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19541. printf "%s\n" "yes" >&6; }
  19542. fusionsound=yes
  19543. fi
  19544. if test x$fusionsound = xyes; then
  19545. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19546. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19547. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19548. # Check whether --enable-fusionsound-shared was given.
  19549. if test ${enable_fusionsound_shared+y}
  19550. then :
  19551. enableval=$enable_fusionsound_shared;
  19552. else $as_nop
  19553. enable_fusionsound_shared=yes
  19554. fi
  19555. fusionsound_shared=no
  19556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19557. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19558. if test x$have_loadso != xyes && \
  19559. test x$enable_fusionsound_shared = xyes; then
  19560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19561. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19562. fi
  19563. if test x$have_loadso = xyes && \
  19564. test x$enable_fusionsound_shared = xyes; then
  19565. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19566. fusionsound_shared=yes
  19567. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19568. else
  19569. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19570. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19571. fi
  19572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19573. printf "%s\n" "$fusionsound_shared" >&6; }
  19574. have_audio=yes
  19575. fi
  19576. fi
  19577. }
  19578. CheckDiskAudio()
  19579. {
  19580. # Check whether --enable-diskaudio was given.
  19581. if test ${enable_diskaudio+y}
  19582. then :
  19583. enableval=$enable_diskaudio;
  19584. else $as_nop
  19585. enable_diskaudio=yes
  19586. fi
  19587. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19588. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19589. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19590. SUMMARY_audio="${SUMMARY_audio} disk"
  19591. have_audio=yes
  19592. fi
  19593. }
  19594. CheckDummyAudio()
  19595. {
  19596. # Check whether --enable-dummyaudio was given.
  19597. if test ${enable_dummyaudio+y}
  19598. then :
  19599. enableval=$enable_dummyaudio;
  19600. else $as_nop
  19601. enable_dummyaudio=yes
  19602. fi
  19603. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19604. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19605. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19606. SUMMARY_audio="${SUMMARY_audio} dummy"
  19607. have_audio=yes
  19608. fi
  19609. }
  19610. CheckLibSampleRate()
  19611. {
  19612. # Check whether --enable-libsamplerate was given.
  19613. if test ${enable_libsamplerate+y}
  19614. then :
  19615. enableval=$enable_libsamplerate;
  19616. else $as_nop
  19617. enable_libsamplerate=yes
  19618. fi
  19619. if test x$enable_libsamplerate = xyes; then
  19620. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19621. if test "x$ac_cv_header_samplerate_h" = xyes
  19622. then :
  19623. have_samplerate_h_hdr=yes
  19624. else $as_nop
  19625. have_samplerate_h_hdr=no
  19626. fi
  19627. if test x$have_samplerate_h_hdr = xyes; then
  19628. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19629. # Check whether --enable-libsamplerate-shared was given.
  19630. if test ${enable_libsamplerate_shared+y}
  19631. then :
  19632. enableval=$enable_libsamplerate_shared;
  19633. else $as_nop
  19634. enable_libsamplerate_shared=yes
  19635. fi
  19636. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19637. if test x$have_loadso != xyes && \
  19638. test x$enable_libsamplerate_shared = xyes; then
  19639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19640. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19641. fi
  19642. if test x$have_loadso = xyes && \
  19643. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19644. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19645. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19646. else
  19647. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19648. fi
  19649. fi
  19650. fi
  19651. }
  19652. CheckARM()
  19653. {
  19654. # Check whether --enable-arm-simd was given.
  19655. if test ${enable_arm_simd+y}
  19656. then :
  19657. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19658. else $as_nop
  19659. enable_arm_simd=no
  19660. fi
  19661. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19662. save_CFLAGS="$CFLAGS"
  19663. have_arm_simd=no
  19664. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19666. printf %s "checking for ARM SIMD... " >&6; }
  19667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19668. /* end confdefs.h. */
  19669. .text
  19670. .arch armv6
  19671. .object_arch armv4
  19672. .arm
  19673. .altmacro
  19674. #ifndef __ARM_EABI__
  19675. #error EABI is required (to be sure that calling conventions are compatible)
  19676. #endif
  19677. pld [r0]
  19678. uqadd8 r0, r0, r0
  19679. _ACEOF
  19680. if ac_fn_c_try_compile "$LINENO"
  19681. then :
  19682. have_arm_simd=yes
  19683. fi
  19684. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19686. printf "%s\n" "$have_arm_simd" >&6; }
  19687. CFLAGS="$save_CFLAGS"
  19688. if test x$have_arm_simd = xyes; then
  19689. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19690. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19691. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19692. fi
  19693. fi
  19694. }
  19695. CheckNEON()
  19696. {
  19697. # Check whether --enable-arm-neon was given.
  19698. if test ${enable_arm_neon+y}
  19699. then :
  19700. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19701. else $as_nop
  19702. enable_arm_neon=no
  19703. fi
  19704. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19705. save_CFLAGS="$CFLAGS"
  19706. have_arm_neon=no
  19707. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19709. printf %s "checking for ARM NEON... " >&6; }
  19710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19711. /* end confdefs.h. */
  19712. .text
  19713. .fpu neon
  19714. .arch armv7a
  19715. .object_arch armv4
  19716. .eabi_attribute 10, 0
  19717. .arm
  19718. .altmacro
  19719. #ifndef __ARM_EABI__
  19720. #error EABI is required (to be sure that calling conventions are compatible)
  19721. #endif
  19722. pld [r0]
  19723. vmovn.u16 d0, q0
  19724. _ACEOF
  19725. if ac_fn_c_try_compile "$LINENO"
  19726. then :
  19727. have_arm_neon=yes
  19728. fi
  19729. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19731. printf "%s\n" "$have_arm_neon" >&6; }
  19732. CFLAGS="$save_CFLAGS"
  19733. if test x$have_arm_neon = xyes; then
  19734. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19735. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19736. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19737. fi
  19738. fi
  19739. }
  19740. CheckObjectiveCARC()
  19741. {
  19742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19743. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19744. have_clang_objc_arc=no
  19745. save_CFLAGS="$CFLAGS"
  19746. CFLAGS="$save_CFLAGS -fobjc-arc"
  19747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19748. /* end confdefs.h. */
  19749. int x = 0;
  19750. int
  19751. main (void)
  19752. {
  19753. ;
  19754. return 0;
  19755. }
  19756. _ACEOF
  19757. if ac_fn_c_try_compile "$LINENO"
  19758. then :
  19759. have_clang_objc_arc=yes
  19760. fi
  19761. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19763. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19764. CFLAGS="$save_CFLAGS"
  19765. if test x$have_clang_objc_arc = xyes; then
  19766. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19767. fi
  19768. }
  19769. CheckGDwarf4()
  19770. {
  19771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19772. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19773. have_gcc_gdwarf4=no
  19774. save_CFLAGS="$CFLAGS"
  19775. CFLAGS="$save_CFLAGS -gdwarf-4"
  19776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19777. /* end confdefs.h. */
  19778. int x = 0;
  19779. int
  19780. main (void)
  19781. {
  19782. ;
  19783. return 0;
  19784. }
  19785. _ACEOF
  19786. if ac_fn_c_try_compile "$LINENO"
  19787. then :
  19788. have_gcc_gdwarf4=yes
  19789. fi
  19790. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19792. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19793. CFLAGS="$save_CFLAGS"
  19794. if test x$have_gcc_gdwarf4 = xyes; then
  19795. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19796. fi
  19797. }
  19798. CheckVisibilityHidden()
  19799. {
  19800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19801. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19802. have_gcc_fvisibility=no
  19803. visibility_CFLAGS="-fvisibility=hidden"
  19804. save_CFLAGS="$CFLAGS"
  19805. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19807. /* end confdefs.h. */
  19808. #if !defined(__GNUC__) || __GNUC__ < 4
  19809. #error SDL only uses visibility attributes in GCC 4 or newer
  19810. #endif
  19811. int
  19812. main (void)
  19813. {
  19814. ;
  19815. return 0;
  19816. }
  19817. _ACEOF
  19818. if ac_fn_c_try_compile "$LINENO"
  19819. then :
  19820. have_gcc_fvisibility=yes
  19821. fi
  19822. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19824. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19825. CFLAGS="$save_CFLAGS"
  19826. if test x$have_gcc_fvisibility = xyes; then
  19827. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19828. fi
  19829. }
  19830. CheckNoStrictAliasing()
  19831. {
  19832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19833. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19834. have_gcc_no_strict_aliasing=no
  19835. save_CFLAGS="$CFLAGS"
  19836. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19838. /* end confdefs.h. */
  19839. int x = 0;
  19840. int
  19841. main (void)
  19842. {
  19843. ;
  19844. return 0;
  19845. }
  19846. _ACEOF
  19847. if ac_fn_c_try_compile "$LINENO"
  19848. then :
  19849. have_gcc_no_strict_aliasing=yes
  19850. fi
  19851. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19853. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19854. CFLAGS="$save_CFLAGS"
  19855. if test x$have_gcc_no_strict_aliasing = xyes; then
  19856. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19857. fi
  19858. }
  19859. CheckStackBoundary()
  19860. {
  19861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19862. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19863. have_gcc_preferred_stack_boundary=no
  19864. save_CFLAGS="$CFLAGS"
  19865. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19867. /* end confdefs.h. */
  19868. int x = 0;
  19869. int
  19870. main (void)
  19871. {
  19872. ;
  19873. return 0;
  19874. }
  19875. _ACEOF
  19876. if ac_fn_c_try_compile "$LINENO"
  19877. then :
  19878. have_gcc_preferred_stack_boundary=yes
  19879. fi
  19880. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19882. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19883. CFLAGS="$save_CFLAGS"
  19884. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19885. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19886. fi
  19887. }
  19888. CheckWerror()
  19889. {
  19890. # Check whether --enable-werror was given.
  19891. if test ${enable_werror+y}
  19892. then :
  19893. enableval=$enable_werror; enable_werror=$enableval
  19894. else $as_nop
  19895. enable_werror=no
  19896. fi
  19897. if test x$enable_werror = xyes; then
  19898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19899. printf %s "checking for GCC -Werror option... " >&6; }
  19900. have_gcc_werror=no
  19901. save_CFLAGS="$CFLAGS"
  19902. CFLAGS="$save_CFLAGS -Werror"
  19903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19904. /* end confdefs.h. */
  19905. int x = 0;
  19906. int
  19907. main (void)
  19908. {
  19909. ;
  19910. return 0;
  19911. }
  19912. _ACEOF
  19913. if ac_fn_c_try_compile "$LINENO"
  19914. then :
  19915. have_gcc_werror=yes
  19916. fi
  19917. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19919. printf "%s\n" "$have_gcc_werror" >&6; }
  19920. CFLAGS="$save_CFLAGS"
  19921. if test x$have_gcc_werror = xyes; then
  19922. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  19923. fi
  19924. fi
  19925. }
  19926. CheckNoErrorDeprecatedDeclarationsWerror()
  19927. {
  19928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  19929. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  19930. have_gcc_no_werror_deprecated_declarations=no
  19931. save_CFLAGS="$CFLAGS"
  19932. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  19933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19934. /* end confdefs.h. */
  19935. int x = 0;
  19936. int
  19937. main (void)
  19938. {
  19939. ;
  19940. return 0;
  19941. }
  19942. _ACEOF
  19943. if ac_fn_c_try_compile "$LINENO"
  19944. then :
  19945. have_gcc_no_werror_deprecated_declarations=yes
  19946. fi
  19947. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19949. printf "%s\n" "$have_gcc_werror" >&6; }
  19950. CFLAGS="$save_CFLAGS"
  19951. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  19952. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  19953. fi
  19954. }
  19955. CheckDeclarationAfterStatement()
  19956. {
  19957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19958. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19959. have_gcc_declaration_after_statement=no
  19960. save_CFLAGS="$CFLAGS"
  19961. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19963. /* end confdefs.h. */
  19964. int x = 0;
  19965. int
  19966. main (void)
  19967. {
  19968. ;
  19969. return 0;
  19970. }
  19971. _ACEOF
  19972. if ac_fn_c_try_compile "$LINENO"
  19973. then :
  19974. have_gcc_declaration_after_statement=yes
  19975. fi
  19976. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19978. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19979. CFLAGS="$save_CFLAGS"
  19980. if test x$have_gcc_declaration_after_statement = xyes; then
  19981. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19982. fi
  19983. }
  19984. CheckWarnAll()
  19985. {
  19986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19987. printf %s "checking for GCC -Wall option... " >&6; }
  19988. have_gcc_Wall=no
  19989. save_CFLAGS="$CFLAGS"
  19990. CFLAGS="$save_CFLAGS -Wall"
  19991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19992. /* end confdefs.h. */
  19993. int x = 0;
  19994. int
  19995. main (void)
  19996. {
  19997. ;
  19998. return 0;
  19999. }
  20000. _ACEOF
  20001. if ac_fn_c_try_compile "$LINENO"
  20002. then :
  20003. have_gcc_Wall=yes
  20004. fi
  20005. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  20007. printf "%s\n" "$have_gcc_Wall" >&6; }
  20008. CFLAGS="$save_CFLAGS"
  20009. if test x$have_gcc_Wall = xyes; then
  20010. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  20011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  20012. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  20013. need_gcc_Wno_multichar=no
  20014. case "$host" in
  20015. *-*-haiku*)
  20016. need_gcc_Wno_multichar=yes
  20017. ;;
  20018. esac
  20019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  20020. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  20021. if test x$need_gcc_Wno_multichar = xyes; then
  20022. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20023. fi
  20024. fi
  20025. }
  20026. CheckWayland()
  20027. {
  20028. # Check whether --enable-video-wayland was given.
  20029. if test ${enable_video_wayland+y}
  20030. then :
  20031. enableval=$enable_video_wayland;
  20032. else $as_nop
  20033. enable_video_wayland=yes
  20034. fi
  20035. # Check whether --enable-video-wayland-qt-touch was given.
  20036. if test ${enable_video_wayland_qt_touch+y}
  20037. then :
  20038. enableval=$enable_video_wayland_qt_touch;
  20039. else $as_nop
  20040. enable_video_wayland_qt_touch=yes
  20041. fi
  20042. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20044. printf %s "checking for Wayland support... " >&6; }
  20045. video_wayland=no
  20046. if test x$video_opengl_egl = xyes && \
  20047. test x$video_opengles_v2 = xyes; then
  20048. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20049. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20050. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20051. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20052. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20053. then :
  20054. WAYLAND_SCANNER_CODE_MODE=private-code
  20055. else $as_nop
  20056. WAYLAND_SCANNER_CODE_MODE=code
  20057. fi
  20058. video_wayland=yes
  20059. fi
  20060. fi
  20061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20062. printf "%s\n" "$video_wayland" >&6; }
  20063. if test x$video_wayland = xyes; then
  20064. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20065. if test x$enable_video_wayland_qt_touch = xyes; then
  20066. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20067. fi
  20068. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20069. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20070. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20071. # Check whether --enable-wayland-shared was given.
  20072. if test ${enable_wayland_shared+y}
  20073. then :
  20074. enableval=$enable_wayland_shared;
  20075. else $as_nop
  20076. enable_wayland_shared=maybe
  20077. fi
  20078. case "$host" in
  20079. *)
  20080. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20081. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20082. if test x$wayland_egl_lib = x; then
  20083. # This works in Ubuntu 13.10, maybe others
  20084. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20085. fi
  20086. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20087. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20088. ;;
  20089. esac
  20090. if test x$enable_wayland_shared = xmaybe; then
  20091. enable_wayland_shared=yes
  20092. fi
  20093. if test x$have_loadso != xyes && \
  20094. test x$enable_wayland_shared = xyes; then
  20095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20096. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20097. enable_wayland_shared=no
  20098. fi
  20099. if test x$have_loadso = xyes && \
  20100. test x$enable_wayland_shared = xyes && \
  20101. test x$wayland_client_lib != x && \
  20102. test x$wayland_egl_lib != x && \
  20103. test x$wayland_cursor_lib != x && \
  20104. test x$xkbcommon_lib != x; then
  20105. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20106. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20107. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20108. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20109. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20110. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20111. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20112. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20113. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20114. else
  20115. enable_wayland_shared=no
  20116. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20117. SUMMARY_video="${SUMMARY_video} wayland"
  20118. fi
  20119. have_video=yes
  20120. # Check whether --enable-libdecor was given.
  20121. if test ${enable_libdecor+y}
  20122. then :
  20123. enableval=$enable_libdecor;
  20124. else $as_nop
  20125. enable_libdecor=yes
  20126. fi
  20127. if test x$enable_libdecor = xyes; then
  20128. pkg_failed=no
  20129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20130. printf %s "checking for libdecor-0... " >&6; }
  20131. if test -n "$DECOR_CFLAGS"; then
  20132. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20133. elif test -n "$PKG_CONFIG"; then
  20134. if test -n "$PKG_CONFIG" && \
  20135. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20136. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20137. ac_status=$?
  20138. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20139. test $ac_status = 0; }; then
  20140. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20141. test "x$?" != "x0" && pkg_failed=yes
  20142. else
  20143. pkg_failed=yes
  20144. fi
  20145. else
  20146. pkg_failed=untried
  20147. fi
  20148. if test -n "$DECOR_LIBS"; then
  20149. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20150. elif test -n "$PKG_CONFIG"; then
  20151. if test -n "$PKG_CONFIG" && \
  20152. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20153. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20154. ac_status=$?
  20155. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20156. test $ac_status = 0; }; then
  20157. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20158. test "x$?" != "x0" && pkg_failed=yes
  20159. else
  20160. pkg_failed=yes
  20161. fi
  20162. else
  20163. pkg_failed=untried
  20164. fi
  20165. if test $pkg_failed = yes; then
  20166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20167. printf "%s\n" "no" >&6; }
  20168. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20169. _pkg_short_errors_supported=yes
  20170. else
  20171. _pkg_short_errors_supported=no
  20172. fi
  20173. if test $_pkg_short_errors_supported = yes; then
  20174. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20175. else
  20176. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20177. fi
  20178. # Put the nasty error message in config.log where it belongs
  20179. echo "$DECOR_PKG_ERRORS" >&5
  20180. video_libdecor=no
  20181. elif test $pkg_failed = untried; then
  20182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20183. printf "%s\n" "no" >&6; }
  20184. video_libdecor=no
  20185. else
  20186. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20187. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20189. printf "%s\n" "yes" >&6; }
  20190. video_libdecor=yes
  20191. fi
  20192. if test x$video_libdecor = xyes; then
  20193. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20194. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20195. # Check whether --enable-libdecor-shared was given.
  20196. if test ${enable_libdecor_shared+y}
  20197. then :
  20198. enableval=$enable_libdecor_shared;
  20199. else $as_nop
  20200. enable_libdecor_shared=yes
  20201. fi
  20202. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20203. if test x$enable_wayland_shared != xyes; then
  20204. enable_libdecor_shared=no
  20205. fi
  20206. if test x$have_loadso != xyes && \
  20207. test x$enable_libdecor_shared = xyes; then
  20208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20209. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20210. fi
  20211. if test x$have_loadso = xyes && \
  20212. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20213. echo "-- dynamic libdecor -> $decor_lib"
  20214. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20215. else
  20216. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20217. fi
  20218. fi
  20219. fi
  20220. fi
  20221. fi
  20222. }
  20223. CheckNativeClient()
  20224. {
  20225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20226. /* end confdefs.h. */
  20227. #if !defined(__native_client__)
  20228. #error "NO NACL"
  20229. #endif
  20230. int
  20231. main (void)
  20232. {
  20233. ;
  20234. return 0;
  20235. }
  20236. _ACEOF
  20237. if ac_fn_c_try_compile "$LINENO"
  20238. then :
  20239. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20240. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20241. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20242. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20243. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20244. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20245. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20246. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20247. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20248. SUMMARY_audio="${SUMMARY_audio} nacl"
  20249. have_audio=yes
  20250. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20251. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20252. have_video=yes
  20253. fi
  20254. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20255. }
  20256. CheckRPI()
  20257. {
  20258. # Check whether --enable-video-rpi was given.
  20259. if test ${enable_video_rpi+y}
  20260. then :
  20261. enableval=$enable_video_rpi;
  20262. else $as_nop
  20263. enable_video_rpi=yes
  20264. fi
  20265. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20266. pkg_failed=no
  20267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20268. printf %s "checking for bcm_host brcmegl... " >&6; }
  20269. if test -n "$RPI_CFLAGS"; then
  20270. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20271. elif test -n "$PKG_CONFIG"; then
  20272. if test -n "$PKG_CONFIG" && \
  20273. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20274. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20275. ac_status=$?
  20276. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20277. test $ac_status = 0; }; then
  20278. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20279. test "x$?" != "x0" && pkg_failed=yes
  20280. else
  20281. pkg_failed=yes
  20282. fi
  20283. else
  20284. pkg_failed=untried
  20285. fi
  20286. if test -n "$RPI_LIBS"; then
  20287. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20288. elif test -n "$PKG_CONFIG"; then
  20289. if test -n "$PKG_CONFIG" && \
  20290. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20291. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20292. ac_status=$?
  20293. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20294. test $ac_status = 0; }; then
  20295. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20296. test "x$?" != "x0" && pkg_failed=yes
  20297. else
  20298. pkg_failed=yes
  20299. fi
  20300. else
  20301. pkg_failed=untried
  20302. fi
  20303. if test $pkg_failed = yes; then
  20304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20305. printf "%s\n" "no" >&6; }
  20306. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20307. _pkg_short_errors_supported=yes
  20308. else
  20309. _pkg_short_errors_supported=no
  20310. fi
  20311. if test $_pkg_short_errors_supported = yes; then
  20312. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20313. else
  20314. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20315. fi
  20316. # Put the nasty error message in config.log where it belongs
  20317. echo "$RPI_PKG_ERRORS" >&5
  20318. video_rpi=no
  20319. elif test $pkg_failed = untried; then
  20320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20321. printf "%s\n" "no" >&6; }
  20322. video_rpi=no
  20323. else
  20324. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20325. RPI_LIBS=$pkg_cv_RPI_LIBS
  20326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20327. printf "%s\n" "yes" >&6; }
  20328. video_rpi=yes
  20329. fi
  20330. if test x$video_rpi = xno; then
  20331. if test x$ARCH = xnetbsd; then
  20332. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20333. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20334. else
  20335. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20336. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20337. fi
  20338. fi
  20339. # Save the original compiler flags and libraries
  20340. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20341. # Add the Raspberry Pi compiler flags and libraries
  20342. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20344. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20345. have_video_rpi=no
  20346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20347. /* end confdefs.h. */
  20348. #include <bcm_host.h>
  20349. #include <EGL/eglplatform.h>
  20350. int
  20351. main (void)
  20352. {
  20353. EGL_DISPMANX_WINDOW_T window;
  20354. bcm_host_init();
  20355. ;
  20356. return 0;
  20357. }
  20358. _ACEOF
  20359. if ac_fn_c_try_link "$LINENO"
  20360. then :
  20361. have_video_rpi=yes
  20362. fi
  20363. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20364. conftest$ac_exeext conftest.$ac_ext
  20365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20366. printf "%s\n" "$have_video_rpi" >&6; }
  20367. # Restore the compiler flags and libraries
  20368. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20369. if test x$have_video_rpi = xyes; then
  20370. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20371. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20372. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20373. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20374. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20375. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20376. SUMMARY_video="${SUMMARY_video} rpi"
  20377. have_video=yes
  20378. fi
  20379. fi
  20380. }
  20381. CheckX11()
  20382. {
  20383. # Check whether --enable-video-x11 was given.
  20384. if test ${enable_video_x11+y}
  20385. then :
  20386. enableval=$enable_video_x11;
  20387. else $as_nop
  20388. enable_video_x11=yes
  20389. case "$host" in
  20390. *-*-darwin*|*-ios-*)
  20391. enable_video_x11=no
  20392. ;;
  20393. esac
  20394. fi
  20395. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20396. case "$host" in
  20397. *-*-darwin*)
  20398. # This isn't necessary for X11, but fixes GLX detection
  20399. if test "x$x_includes" = xNONE && \
  20400. test "x$x_libraries" = xNONE && \
  20401. test -d /opt/X11/include && \
  20402. test -d /opt/X11/lib; then
  20403. x_includes="/opt/X11/include"
  20404. x_libraries="/opt/X11/lib"
  20405. fi
  20406. ;;
  20407. esac
  20408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20409. printf %s "checking for X... " >&6; }
  20410. # Check whether --with-x was given.
  20411. if test ${with_x+y}
  20412. then :
  20413. withval=$with_x;
  20414. fi
  20415. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20416. if test "x$with_x" = xno; then
  20417. # The user explicitly disabled X.
  20418. have_x=disabled
  20419. else
  20420. case $x_includes,$x_libraries in #(
  20421. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20422. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20423. then :
  20424. printf %s "(cached) " >&6
  20425. else $as_nop
  20426. # One or both of the vars are not set, and there is no cached value.
  20427. ac_x_includes=no
  20428. ac_x_libraries=no
  20429. # Do we need to do anything special at all?
  20430. ac_save_LIBS=$LIBS
  20431. LIBS="-lX11 $LIBS"
  20432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20433. /* end confdefs.h. */
  20434. #include <X11/Xlib.h>
  20435. int
  20436. main (void)
  20437. {
  20438. XrmInitialize ()
  20439. ;
  20440. return 0;
  20441. }
  20442. _ACEOF
  20443. if ac_fn_c_try_link "$LINENO"
  20444. then :
  20445. # We can compile and link X programs with no special options.
  20446. ac_x_includes=
  20447. ac_x_libraries=
  20448. fi
  20449. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20450. conftest$ac_exeext conftest.$ac_ext
  20451. LIBS="$ac_save_LIBS"
  20452. # If that didn't work, only try xmkmf and file system searches
  20453. # for native compilation.
  20454. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20455. then :
  20456. rm -f -r conftest.dir
  20457. if mkdir conftest.dir; then
  20458. cd conftest.dir
  20459. cat >Imakefile <<'_ACEOF'
  20460. incroot:
  20461. @echo incroot='${INCROOT}'
  20462. usrlibdir:
  20463. @echo usrlibdir='${USRLIBDIR}'
  20464. libdir:
  20465. @echo libdir='${LIBDIR}'
  20466. _ACEOF
  20467. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20468. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20469. for ac_var in incroot usrlibdir libdir; do
  20470. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20471. done
  20472. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20473. for ac_extension in a so sl dylib la dll; do
  20474. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20475. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20476. ac_im_usrlibdir=$ac_im_libdir; break
  20477. fi
  20478. done
  20479. # Screen out bogus values from the imake configuration. They are
  20480. # bogus both because they are the default anyway, and because
  20481. # using them would break gcc on systems where it needs fixed includes.
  20482. case $ac_im_incroot in
  20483. /usr/include) ac_x_includes= ;;
  20484. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20485. esac
  20486. case $ac_im_usrlibdir in
  20487. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20488. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20489. esac
  20490. fi
  20491. cd ..
  20492. rm -f -r conftest.dir
  20493. fi
  20494. # Standard set of common directories for X headers.
  20495. # Check X11 before X11Rn because it is often a symlink to the current release.
  20496. ac_x_header_dirs='
  20497. /usr/X11/include
  20498. /usr/X11R7/include
  20499. /usr/X11R6/include
  20500. /usr/X11R5/include
  20501. /usr/X11R4/include
  20502. /usr/include/X11
  20503. /usr/include/X11R7
  20504. /usr/include/X11R6
  20505. /usr/include/X11R5
  20506. /usr/include/X11R4
  20507. /usr/local/X11/include
  20508. /usr/local/X11R7/include
  20509. /usr/local/X11R6/include
  20510. /usr/local/X11R5/include
  20511. /usr/local/X11R4/include
  20512. /usr/local/include/X11
  20513. /usr/local/include/X11R7
  20514. /usr/local/include/X11R6
  20515. /usr/local/include/X11R5
  20516. /usr/local/include/X11R4
  20517. /opt/X11/include
  20518. /usr/X386/include
  20519. /usr/x386/include
  20520. /usr/XFree86/include/X11
  20521. /usr/include
  20522. /usr/local/include
  20523. /usr/unsupported/include
  20524. /usr/athena/include
  20525. /usr/local/x11r5/include
  20526. /usr/lpp/Xamples/include
  20527. /usr/openwin/include
  20528. /usr/openwin/share/include'
  20529. if test "$ac_x_includes" = no; then
  20530. # Guess where to find include files, by looking for Xlib.h.
  20531. # First, try using that file with no special directory specified.
  20532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20533. /* end confdefs.h. */
  20534. #include <X11/Xlib.h>
  20535. _ACEOF
  20536. if ac_fn_c_try_cpp "$LINENO"
  20537. then :
  20538. # We can compile using X headers with no special include directory.
  20539. ac_x_includes=
  20540. else $as_nop
  20541. for ac_dir in $ac_x_header_dirs; do
  20542. if test -r "$ac_dir/X11/Xlib.h"; then
  20543. ac_x_includes=$ac_dir
  20544. break
  20545. fi
  20546. done
  20547. fi
  20548. rm -f conftest.err conftest.i conftest.$ac_ext
  20549. fi # $ac_x_includes = no
  20550. if test "$ac_x_libraries" = no; then
  20551. # Check for the libraries.
  20552. # See if we find them without any special options.
  20553. # Don't add to $LIBS permanently.
  20554. ac_save_LIBS=$LIBS
  20555. LIBS="-lX11 $LIBS"
  20556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20557. /* end confdefs.h. */
  20558. #include <X11/Xlib.h>
  20559. int
  20560. main (void)
  20561. {
  20562. XrmInitialize ()
  20563. ;
  20564. return 0;
  20565. }
  20566. _ACEOF
  20567. if ac_fn_c_try_link "$LINENO"
  20568. then :
  20569. LIBS=$ac_save_LIBS
  20570. # We can link X programs with no special library path.
  20571. ac_x_libraries=
  20572. else $as_nop
  20573. LIBS=$ac_save_LIBS
  20574. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20575. do
  20576. # Don't even attempt the hair of trying to link an X program!
  20577. for ac_extension in a so sl dylib la dll; do
  20578. if test -r "$ac_dir/libX11.$ac_extension"; then
  20579. ac_x_libraries=$ac_dir
  20580. break 2
  20581. fi
  20582. done
  20583. done
  20584. fi
  20585. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20586. conftest$ac_exeext conftest.$ac_ext
  20587. fi # $ac_x_libraries = no
  20588. fi
  20589. # Record the results.
  20590. case $ac_x_includes,$ac_x_libraries in #(
  20591. no,* | *,no | *\'*) :
  20592. # Didn't find X, or a directory has "'" in its name.
  20593. ac_cv_have_x="have_x=no" ;; #(
  20594. *) :
  20595. # Record where we found X for the cache.
  20596. ac_cv_have_x="have_x=yes\
  20597. ac_x_includes='$ac_x_includes'\
  20598. ac_x_libraries='$ac_x_libraries'" ;;
  20599. esac
  20600. fi
  20601. ;; #(
  20602. *) have_x=yes;;
  20603. esac
  20604. eval "$ac_cv_have_x"
  20605. fi # $with_x != no
  20606. if test "$have_x" != yes; then
  20607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20608. printf "%s\n" "$have_x" >&6; }
  20609. no_x=yes
  20610. else
  20611. # If each of the values was on the command line, it overrides each guess.
  20612. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20613. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20614. # Update the cache value to reflect the command line values.
  20615. ac_cv_have_x="have_x=yes\
  20616. ac_x_includes='$x_includes'\
  20617. ac_x_libraries='$x_libraries'"
  20618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20619. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20620. fi
  20621. if test "$no_x" = yes; then
  20622. # Not all programs may use this symbol, but it does not hurt to define it.
  20623. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20624. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20625. else
  20626. if test -n "$x_includes"; then
  20627. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20628. fi
  20629. # It would also be nice to do this for all -L options, not just this one.
  20630. if test -n "$x_libraries"; then
  20631. X_LIBS="$X_LIBS -L$x_libraries"
  20632. # For Solaris; some versions of Sun CC require a space after -R and
  20633. # others require no space. Words are not sufficient . . . .
  20634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20635. printf %s "checking whether -R must be followed by a space... " >&6; }
  20636. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20637. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20638. ac_c_werror_flag=yes
  20639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20640. /* end confdefs.h. */
  20641. int
  20642. main (void)
  20643. {
  20644. ;
  20645. return 0;
  20646. }
  20647. _ACEOF
  20648. if ac_fn_c_try_link "$LINENO"
  20649. then :
  20650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20651. printf "%s\n" "no" >&6; }
  20652. X_LIBS="$X_LIBS -R$x_libraries"
  20653. else $as_nop
  20654. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20656. /* end confdefs.h. */
  20657. int
  20658. main (void)
  20659. {
  20660. ;
  20661. return 0;
  20662. }
  20663. _ACEOF
  20664. if ac_fn_c_try_link "$LINENO"
  20665. then :
  20666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20667. printf "%s\n" "yes" >&6; }
  20668. X_LIBS="$X_LIBS -R $x_libraries"
  20669. else $as_nop
  20670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20671. printf "%s\n" "neither works" >&6; }
  20672. fi
  20673. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20674. conftest$ac_exeext conftest.$ac_ext
  20675. fi
  20676. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20677. conftest$ac_exeext conftest.$ac_ext
  20678. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20679. LIBS=$ac_xsave_LIBS
  20680. fi
  20681. # Check for system-dependent libraries X programs must link with.
  20682. # Do this before checking for the system-independent R6 libraries
  20683. # (-lICE), since we may need -lsocket or whatever for X linking.
  20684. if test "$ISC" = yes; then
  20685. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20686. else
  20687. # Martyn Johnson says this is needed for Ultrix, if the X
  20688. # libraries were built with DECnet support. And Karl Berry says
  20689. # the Alpha needs dnet_stub (dnet does not exist).
  20690. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20692. /* end confdefs.h. */
  20693. /* Override any GCC internal prototype to avoid an error.
  20694. Use char because int might match the return type of a GCC
  20695. builtin and then its argument prototype would still apply. */
  20696. char XOpenDisplay ();
  20697. int
  20698. main (void)
  20699. {
  20700. return XOpenDisplay ();
  20701. ;
  20702. return 0;
  20703. }
  20704. _ACEOF
  20705. if ac_fn_c_try_link "$LINENO"
  20706. then :
  20707. else $as_nop
  20708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20709. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20710. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20711. then :
  20712. printf %s "(cached) " >&6
  20713. else $as_nop
  20714. ac_check_lib_save_LIBS=$LIBS
  20715. LIBS="-ldnet $LIBS"
  20716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20717. /* end confdefs.h. */
  20718. /* Override any GCC internal prototype to avoid an error.
  20719. Use char because int might match the return type of a GCC
  20720. builtin and then its argument prototype would still apply. */
  20721. char dnet_ntoa ();
  20722. int
  20723. main (void)
  20724. {
  20725. return dnet_ntoa ();
  20726. ;
  20727. return 0;
  20728. }
  20729. _ACEOF
  20730. if ac_fn_c_try_link "$LINENO"
  20731. then :
  20732. ac_cv_lib_dnet_dnet_ntoa=yes
  20733. else $as_nop
  20734. ac_cv_lib_dnet_dnet_ntoa=no
  20735. fi
  20736. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20737. conftest$ac_exeext conftest.$ac_ext
  20738. LIBS=$ac_check_lib_save_LIBS
  20739. fi
  20740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20741. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20742. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20743. then :
  20744. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20745. fi
  20746. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20748. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20749. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20750. then :
  20751. printf %s "(cached) " >&6
  20752. else $as_nop
  20753. ac_check_lib_save_LIBS=$LIBS
  20754. LIBS="-ldnet_stub $LIBS"
  20755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20756. /* end confdefs.h. */
  20757. /* Override any GCC internal prototype to avoid an error.
  20758. Use char because int might match the return type of a GCC
  20759. builtin and then its argument prototype would still apply. */
  20760. char dnet_ntoa ();
  20761. int
  20762. main (void)
  20763. {
  20764. return dnet_ntoa ();
  20765. ;
  20766. return 0;
  20767. }
  20768. _ACEOF
  20769. if ac_fn_c_try_link "$LINENO"
  20770. then :
  20771. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20772. else $as_nop
  20773. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20774. fi
  20775. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20776. conftest$ac_exeext conftest.$ac_ext
  20777. LIBS=$ac_check_lib_save_LIBS
  20778. fi
  20779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20780. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20781. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20782. then :
  20783. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20784. fi
  20785. fi
  20786. fi
  20787. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20788. conftest$ac_exeext conftest.$ac_ext
  20789. LIBS="$ac_xsave_LIBS"
  20790. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20791. # to get the SysV transport functions.
  20792. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20793. # needs -lnsl.
  20794. # The nsl library prevents programs from opening the X display
  20795. # on Irix 5.2, according to T.E. Dickey.
  20796. # The functions gethostbyname, getservbyname, and inet_addr are
  20797. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20798. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20799. if test "x$ac_cv_func_gethostbyname" = xyes
  20800. then :
  20801. fi
  20802. if test $ac_cv_func_gethostbyname = no; then
  20803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20804. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20805. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20806. then :
  20807. printf %s "(cached) " >&6
  20808. else $as_nop
  20809. ac_check_lib_save_LIBS=$LIBS
  20810. LIBS="-lnsl $LIBS"
  20811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20812. /* end confdefs.h. */
  20813. /* Override any GCC internal prototype to avoid an error.
  20814. Use char because int might match the return type of a GCC
  20815. builtin and then its argument prototype would still apply. */
  20816. char gethostbyname ();
  20817. int
  20818. main (void)
  20819. {
  20820. return gethostbyname ();
  20821. ;
  20822. return 0;
  20823. }
  20824. _ACEOF
  20825. if ac_fn_c_try_link "$LINENO"
  20826. then :
  20827. ac_cv_lib_nsl_gethostbyname=yes
  20828. else $as_nop
  20829. ac_cv_lib_nsl_gethostbyname=no
  20830. fi
  20831. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20832. conftest$ac_exeext conftest.$ac_ext
  20833. LIBS=$ac_check_lib_save_LIBS
  20834. fi
  20835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20836. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20837. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20838. then :
  20839. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20840. fi
  20841. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20843. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20844. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20845. then :
  20846. printf %s "(cached) " >&6
  20847. else $as_nop
  20848. ac_check_lib_save_LIBS=$LIBS
  20849. LIBS="-lbsd $LIBS"
  20850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20851. /* end confdefs.h. */
  20852. /* Override any GCC internal prototype to avoid an error.
  20853. Use char because int might match the return type of a GCC
  20854. builtin and then its argument prototype would still apply. */
  20855. char gethostbyname ();
  20856. int
  20857. main (void)
  20858. {
  20859. return gethostbyname ();
  20860. ;
  20861. return 0;
  20862. }
  20863. _ACEOF
  20864. if ac_fn_c_try_link "$LINENO"
  20865. then :
  20866. ac_cv_lib_bsd_gethostbyname=yes
  20867. else $as_nop
  20868. ac_cv_lib_bsd_gethostbyname=no
  20869. fi
  20870. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20871. conftest$ac_exeext conftest.$ac_ext
  20872. LIBS=$ac_check_lib_save_LIBS
  20873. fi
  20874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20875. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20876. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20877. then :
  20878. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20879. fi
  20880. fi
  20881. fi
  20882. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20883. # socket/setsockopt and other routines are undefined under SCO ODT
  20884. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20885. # on later versions), says Simon Leinen: it contains gethostby*
  20886. # variants that don't use the name server (or something). -lsocket
  20887. # must be given before -lnsl if both are needed. We assume that
  20888. # if connect needs -lnsl, so does gethostbyname.
  20889. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20890. if test "x$ac_cv_func_connect" = xyes
  20891. then :
  20892. fi
  20893. if test $ac_cv_func_connect = no; then
  20894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20895. printf %s "checking for connect in -lsocket... " >&6; }
  20896. if test ${ac_cv_lib_socket_connect+y}
  20897. then :
  20898. printf %s "(cached) " >&6
  20899. else $as_nop
  20900. ac_check_lib_save_LIBS=$LIBS
  20901. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20903. /* end confdefs.h. */
  20904. /* Override any GCC internal prototype to avoid an error.
  20905. Use char because int might match the return type of a GCC
  20906. builtin and then its argument prototype would still apply. */
  20907. char connect ();
  20908. int
  20909. main (void)
  20910. {
  20911. return connect ();
  20912. ;
  20913. return 0;
  20914. }
  20915. _ACEOF
  20916. if ac_fn_c_try_link "$LINENO"
  20917. then :
  20918. ac_cv_lib_socket_connect=yes
  20919. else $as_nop
  20920. ac_cv_lib_socket_connect=no
  20921. fi
  20922. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20923. conftest$ac_exeext conftest.$ac_ext
  20924. LIBS=$ac_check_lib_save_LIBS
  20925. fi
  20926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20927. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20928. if test "x$ac_cv_lib_socket_connect" = xyes
  20929. then :
  20930. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20931. fi
  20932. fi
  20933. # Guillermo Gomez says -lposix is necessary on A/UX.
  20934. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20935. if test "x$ac_cv_func_remove" = xyes
  20936. then :
  20937. fi
  20938. if test $ac_cv_func_remove = no; then
  20939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20940. printf %s "checking for remove in -lposix... " >&6; }
  20941. if test ${ac_cv_lib_posix_remove+y}
  20942. then :
  20943. printf %s "(cached) " >&6
  20944. else $as_nop
  20945. ac_check_lib_save_LIBS=$LIBS
  20946. LIBS="-lposix $LIBS"
  20947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20948. /* end confdefs.h. */
  20949. /* Override any GCC internal prototype to avoid an error.
  20950. Use char because int might match the return type of a GCC
  20951. builtin and then its argument prototype would still apply. */
  20952. char remove ();
  20953. int
  20954. main (void)
  20955. {
  20956. return remove ();
  20957. ;
  20958. return 0;
  20959. }
  20960. _ACEOF
  20961. if ac_fn_c_try_link "$LINENO"
  20962. then :
  20963. ac_cv_lib_posix_remove=yes
  20964. else $as_nop
  20965. ac_cv_lib_posix_remove=no
  20966. fi
  20967. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20968. conftest$ac_exeext conftest.$ac_ext
  20969. LIBS=$ac_check_lib_save_LIBS
  20970. fi
  20971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20972. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20973. if test "x$ac_cv_lib_posix_remove" = xyes
  20974. then :
  20975. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20976. fi
  20977. fi
  20978. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20979. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20980. if test "x$ac_cv_func_shmat" = xyes
  20981. then :
  20982. fi
  20983. if test $ac_cv_func_shmat = no; then
  20984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20985. printf %s "checking for shmat in -lipc... " >&6; }
  20986. if test ${ac_cv_lib_ipc_shmat+y}
  20987. then :
  20988. printf %s "(cached) " >&6
  20989. else $as_nop
  20990. ac_check_lib_save_LIBS=$LIBS
  20991. LIBS="-lipc $LIBS"
  20992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20993. /* end confdefs.h. */
  20994. /* Override any GCC internal prototype to avoid an error.
  20995. Use char because int might match the return type of a GCC
  20996. builtin and then its argument prototype would still apply. */
  20997. char shmat ();
  20998. int
  20999. main (void)
  21000. {
  21001. return shmat ();
  21002. ;
  21003. return 0;
  21004. }
  21005. _ACEOF
  21006. if ac_fn_c_try_link "$LINENO"
  21007. then :
  21008. ac_cv_lib_ipc_shmat=yes
  21009. else $as_nop
  21010. ac_cv_lib_ipc_shmat=no
  21011. fi
  21012. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21013. conftest$ac_exeext conftest.$ac_ext
  21014. LIBS=$ac_check_lib_save_LIBS
  21015. fi
  21016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21017. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  21018. if test "x$ac_cv_lib_ipc_shmat" = xyes
  21019. then :
  21020. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21021. fi
  21022. fi
  21023. fi
  21024. # Check for libraries that X11R6 Xt/Xaw programs need.
  21025. ac_save_LDFLAGS=$LDFLAGS
  21026. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21027. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21028. # check for ICE first), but we must link in the order -lSM -lICE or
  21029. # we get undefined symbols. So assume we have SM if we have ICE.
  21030. # These have to be linked with before -lX11, unlike the other
  21031. # libraries we check for below, so use a different variable.
  21032. # John Interrante, Karl Berry
  21033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21034. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21035. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21036. then :
  21037. printf %s "(cached) " >&6
  21038. else $as_nop
  21039. ac_check_lib_save_LIBS=$LIBS
  21040. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21042. /* end confdefs.h. */
  21043. /* Override any GCC internal prototype to avoid an error.
  21044. Use char because int might match the return type of a GCC
  21045. builtin and then its argument prototype would still apply. */
  21046. char IceConnectionNumber ();
  21047. int
  21048. main (void)
  21049. {
  21050. return IceConnectionNumber ();
  21051. ;
  21052. return 0;
  21053. }
  21054. _ACEOF
  21055. if ac_fn_c_try_link "$LINENO"
  21056. then :
  21057. ac_cv_lib_ICE_IceConnectionNumber=yes
  21058. else $as_nop
  21059. ac_cv_lib_ICE_IceConnectionNumber=no
  21060. fi
  21061. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21062. conftest$ac_exeext conftest.$ac_ext
  21063. LIBS=$ac_check_lib_save_LIBS
  21064. fi
  21065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21066. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21067. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21068. then :
  21069. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21070. fi
  21071. LDFLAGS=$ac_save_LDFLAGS
  21072. fi
  21073. if test x$have_x = xyes; then
  21074. # Check whether --enable-x11-shared was given.
  21075. if test ${enable_x11_shared+y}
  21076. then :
  21077. enableval=$enable_x11_shared;
  21078. else $as_nop
  21079. enable_x11_shared=maybe
  21080. fi
  21081. case "$host" in
  21082. *-*-darwin*)
  21083. # Apple now puts this in /opt/X11
  21084. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21085. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21086. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21087. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21088. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21089. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21090. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21091. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21092. ;;
  21093. *-*-openbsd*)
  21094. x11_lib='libX11.so'
  21095. x11ext_lib='libXext.so'
  21096. xcursor_lib='libXcursor.so'
  21097. xinput_lib='libXi.so'
  21098. xfixes_lib='libXfixes.so'
  21099. xrandr_lib='libXrandr.so'
  21100. xrender_lib='libXrender.so'
  21101. xss_lib='libXss.so'
  21102. ;;
  21103. *)
  21104. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21105. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21106. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21107. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21108. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21109. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21110. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21111. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21112. ;;
  21113. esac
  21114. if test x$ac_cv_func_shmat != xyes; then
  21115. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21116. fi
  21117. CFLAGS="$CFLAGS $X_CFLAGS"
  21118. LDFLAGS="$LDFLAGS $X_LIBS"
  21119. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21120. #include <X11/Xproto.h>
  21121. "
  21122. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21123. then :
  21124. have_xext_h_hdr=yes
  21125. else $as_nop
  21126. have_xext_h_hdr=no
  21127. fi
  21128. if test x$have_xext_h_hdr != xyes; then
  21129. as_fn_error $? "
  21130. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21131. " "$LINENO" 5
  21132. fi
  21133. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21134. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21135. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21136. # Needed so SDL applications can include SDL_syswm.h
  21137. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21138. if test x$enable_x11_shared = xmaybe; then
  21139. enable_x11_shared=yes
  21140. fi
  21141. if test x$have_loadso != xyes && \
  21142. test x$enable_x11_shared = xyes; then
  21143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21144. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21145. enable_x11_shared=no
  21146. fi
  21147. if test x$have_loadso = xyes && \
  21148. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21149. echo "-- dynamic libX11 -> $x11_lib"
  21150. echo "-- dynamic libX11ext -> $x11ext_lib"
  21151. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21152. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21153. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21154. else
  21155. enable_x11_shared=no
  21156. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21157. SUMMARY_video="${SUMMARY_video} x11"
  21158. fi
  21159. have_video=yes
  21160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21161. printf %s "checking for XGenericEvent... " >&6; }
  21162. have_XGenericEvent=no
  21163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21164. /* end confdefs.h. */
  21165. #include <X11/Xlib.h>
  21166. int
  21167. main (void)
  21168. {
  21169. Display *display;
  21170. XEvent event;
  21171. XGenericEventCookie *cookie = &event.xcookie;
  21172. XNextEvent(display, &event);
  21173. XGetEventData(display, cookie);
  21174. XFreeEventData(display, cookie);
  21175. ;
  21176. return 0;
  21177. }
  21178. _ACEOF
  21179. if ac_fn_c_try_compile "$LINENO"
  21180. then :
  21181. have_XGenericEvent=yes
  21182. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21183. fi
  21184. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21186. printf "%s\n" "$have_XGenericEvent" >&6; }
  21187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21188. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21189. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21190. then :
  21191. printf %s "(cached) " >&6
  21192. else $as_nop
  21193. ac_check_lib_save_LIBS=$LIBS
  21194. LIBS="-lX11 $LIBS"
  21195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21196. /* end confdefs.h. */
  21197. /* Override any GCC internal prototype to avoid an error.
  21198. Use char because int might match the return type of a GCC
  21199. builtin and then its argument prototype would still apply. */
  21200. char XkbKeycodeToKeysym ();
  21201. int
  21202. main (void)
  21203. {
  21204. return XkbKeycodeToKeysym ();
  21205. ;
  21206. return 0;
  21207. }
  21208. _ACEOF
  21209. if ac_fn_c_try_link "$LINENO"
  21210. then :
  21211. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21212. else $as_nop
  21213. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21214. fi
  21215. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21216. conftest$ac_exeext conftest.$ac_ext
  21217. LIBS=$ac_check_lib_save_LIBS
  21218. fi
  21219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21220. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21221. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21222. then :
  21223. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21224. fi
  21225. # Check whether --enable-video-x11-xcursor was given.
  21226. if test ${enable_video_x11_xcursor+y}
  21227. then :
  21228. enableval=$enable_video_x11_xcursor;
  21229. else $as_nop
  21230. enable_video_x11_xcursor=yes
  21231. fi
  21232. if test x$enable_video_x11_xcursor = xyes; then
  21233. definitely_enable_video_x11_xcursor=no
  21234. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21235. "
  21236. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21237. then :
  21238. have_xcursor_h_hdr=yes
  21239. else $as_nop
  21240. have_xcursor_h_hdr=no
  21241. fi
  21242. if test x$have_xcursor_h_hdr = xyes; then
  21243. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21244. echo "-- dynamic libXcursor -> $xcursor_lib"
  21245. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21246. definitely_enable_video_x11_xcursor=yes
  21247. else
  21248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21249. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21250. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21251. then :
  21252. printf %s "(cached) " >&6
  21253. else $as_nop
  21254. ac_check_lib_save_LIBS=$LIBS
  21255. LIBS="-lXcursor $LIBS"
  21256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21257. /* end confdefs.h. */
  21258. /* Override any GCC internal prototype to avoid an error.
  21259. Use char because int might match the return type of a GCC
  21260. builtin and then its argument prototype would still apply. */
  21261. char XcursorImageCreate ();
  21262. int
  21263. main (void)
  21264. {
  21265. return XcursorImageCreate ();
  21266. ;
  21267. return 0;
  21268. }
  21269. _ACEOF
  21270. if ac_fn_c_try_link "$LINENO"
  21271. then :
  21272. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21273. else $as_nop
  21274. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21275. fi
  21276. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21277. conftest$ac_exeext conftest.$ac_ext
  21278. LIBS=$ac_check_lib_save_LIBS
  21279. fi
  21280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21281. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21282. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21283. then :
  21284. have_xcursor_lib=yes
  21285. fi
  21286. if test x$have_xcursor_lib = xyes ; then
  21287. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21288. definitely_enable_video_x11_xcursor=yes
  21289. fi
  21290. fi
  21291. fi
  21292. fi
  21293. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21294. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21295. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21296. fi
  21297. # Check whether --enable-video-x11-xdbe was given.
  21298. if test ${enable_video_x11_xdbe+y}
  21299. then :
  21300. enableval=$enable_video_x11_xdbe;
  21301. else $as_nop
  21302. enable_video_x11_xdbe=yes
  21303. fi
  21304. if test x$enable_video_x11_xdbe = xyes; then
  21305. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21306. "
  21307. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21308. then :
  21309. have_dbe_h_hdr=yes
  21310. else $as_nop
  21311. have_dbe_h_hdr=no
  21312. fi
  21313. if test x$have_dbe_h_hdr = xyes; then
  21314. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21315. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21316. fi
  21317. fi
  21318. # Check whether --enable-video-x11-xinput was given.
  21319. if test ${enable_video_x11_xinput+y}
  21320. then :
  21321. enableval=$enable_video_x11_xinput;
  21322. else $as_nop
  21323. enable_video_x11_xinput=yes
  21324. fi
  21325. if test x$enable_video_x11_xinput = xyes; then
  21326. definitely_enable_video_x11_xinput=no
  21327. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21328. "
  21329. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21330. then :
  21331. have_xinput_h_hdr=yes
  21332. else $as_nop
  21333. have_xinput_h_hdr=no
  21334. fi
  21335. if test x$have_xinput_h_hdr = xyes; then
  21336. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21337. echo "-- dynamic libXi -> $xinput_lib"
  21338. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21339. definitely_enable_video_x11_xinput=yes
  21340. else
  21341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21342. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21343. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21344. then :
  21345. printf %s "(cached) " >&6
  21346. else $as_nop
  21347. ac_check_lib_save_LIBS=$LIBS
  21348. LIBS="-lXi $LIBS"
  21349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21350. /* end confdefs.h. */
  21351. /* Override any GCC internal prototype to avoid an error.
  21352. Use char because int might match the return type of a GCC
  21353. builtin and then its argument prototype would still apply. */
  21354. char XOpenDevice ();
  21355. int
  21356. main (void)
  21357. {
  21358. return XOpenDevice ();
  21359. ;
  21360. return 0;
  21361. }
  21362. _ACEOF
  21363. if ac_fn_c_try_link "$LINENO"
  21364. then :
  21365. ac_cv_lib_Xi_XOpenDevice=yes
  21366. else $as_nop
  21367. ac_cv_lib_Xi_XOpenDevice=no
  21368. fi
  21369. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21370. conftest$ac_exeext conftest.$ac_ext
  21371. LIBS=$ac_check_lib_save_LIBS
  21372. fi
  21373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21374. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21375. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21376. then :
  21377. have_xinput_lib=yes
  21378. fi
  21379. if test x$have_xinput_lib = xyes ; then
  21380. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21381. definitely_enable_video_x11_xinput=yes
  21382. fi
  21383. fi
  21384. fi
  21385. fi
  21386. if test x$definitely_enable_video_x11_xinput = xyes; then
  21387. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21388. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21390. printf %s "checking for xinput2 multitouch... " >&6; }
  21391. have_xinput2_multitouch=no
  21392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21393. /* end confdefs.h. */
  21394. #include <X11/Xlib.h>
  21395. #include <X11/Xproto.h>
  21396. #include <X11/extensions/XInput2.h>
  21397. int
  21398. main (void)
  21399. {
  21400. int event_type = XI_TouchBegin;
  21401. XITouchClassInfo *t;
  21402. ;
  21403. return 0;
  21404. }
  21405. _ACEOF
  21406. if ac_fn_c_try_compile "$LINENO"
  21407. then :
  21408. have_xinput2_multitouch=yes
  21409. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21410. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21411. fi
  21412. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21414. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21415. fi
  21416. # Check whether --enable-video-x11-xfixes was given.
  21417. if test ${enable_video_x11_xfixes+y}
  21418. then :
  21419. enableval=$enable_video_x11_xfixes;
  21420. else $as_nop
  21421. enable_video_x11_xfixes=yes
  21422. fi
  21423. if test x$enable_video_x11_xfixes = xyes; then
  21424. definitely_enable_video_x11_xfixes=no
  21425. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21427. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21429. /* end confdefs.h. */
  21430. #include <X11/Xlib.h>
  21431. #include <X11/Xproto.h>
  21432. #include <X11/extensions/XInput2.h>
  21433. #include <X11/extensions/Xfixes.h>
  21434. int
  21435. main (void)
  21436. {
  21437. BarrierEventID b;
  21438. ;
  21439. return 0;
  21440. }
  21441. _ACEOF
  21442. if ac_fn_c_try_compile "$LINENO"
  21443. then :
  21444. have_xfixes_h_hdr=yes
  21445. else $as_nop
  21446. have_xfixes_h_hdr=no
  21447. fi
  21448. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21450. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21451. if test x$have_xfixes_h_hdr = xyes; then
  21452. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21453. echo "-- dynamic libXfixes -> $xfixes_lib"
  21454. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21455. definitely_enable_video_x11_xfixes=yes
  21456. else
  21457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21458. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21459. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21460. then :
  21461. printf %s "(cached) " >&6
  21462. else $as_nop
  21463. ac_check_lib_save_LIBS=$LIBS
  21464. LIBS="-lXfixes $LIBS"
  21465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21466. /* end confdefs.h. */
  21467. /* Override any GCC internal prototype to avoid an error.
  21468. Use char because int might match the return type of a GCC
  21469. builtin and then its argument prototype would still apply. */
  21470. char XFixesCreatePointerBarrier ();
  21471. int
  21472. main (void)
  21473. {
  21474. return XFixesCreatePointerBarrier ();
  21475. ;
  21476. return 0;
  21477. }
  21478. _ACEOF
  21479. if ac_fn_c_try_link "$LINENO"
  21480. then :
  21481. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21482. else $as_nop
  21483. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21484. fi
  21485. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21486. conftest$ac_exeext conftest.$ac_ext
  21487. LIBS=$ac_check_lib_save_LIBS
  21488. fi
  21489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21490. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21491. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21492. then :
  21493. have_xfixes_lib=yes
  21494. fi
  21495. if test x$have_xfixes_lib = xyes ; then
  21496. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21497. definitely_enable_video_x11_xfixes=yes
  21498. fi
  21499. fi
  21500. fi
  21501. fi
  21502. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21503. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21504. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21505. fi
  21506. # Check whether --enable-video-x11-xrandr was given.
  21507. if test ${enable_video_x11_xrandr+y}
  21508. then :
  21509. enableval=$enable_video_x11_xrandr;
  21510. else $as_nop
  21511. enable_video_x11_xrandr=yes
  21512. fi
  21513. if test x$enable_video_x11_xrandr = xyes; then
  21514. definitely_enable_video_x11_xrandr=no
  21515. have_xrandr_h_hdr=no
  21516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21517. /* end confdefs.h. */
  21518. #include <X11/Xlib.h>
  21519. #include <X11/extensions/Xrandr.h>
  21520. int
  21521. main (void)
  21522. {
  21523. XRRScreenResources *res = NULL;
  21524. ;
  21525. return 0;
  21526. }
  21527. _ACEOF
  21528. if ac_fn_c_try_compile "$LINENO"
  21529. then :
  21530. have_xrandr_h_hdr=yes
  21531. fi
  21532. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21533. if test x$have_xrandr_h_hdr = xyes; then
  21534. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21535. echo "-- dynamic libXrandr -> $xrandr_lib"
  21536. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21537. definitely_enable_video_x11_xrandr=yes
  21538. else
  21539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21540. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21541. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21542. then :
  21543. printf %s "(cached) " >&6
  21544. else $as_nop
  21545. ac_check_lib_save_LIBS=$LIBS
  21546. LIBS="-lXrandr $LIBS"
  21547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21548. /* end confdefs.h. */
  21549. /* Override any GCC internal prototype to avoid an error.
  21550. Use char because int might match the return type of a GCC
  21551. builtin and then its argument prototype would still apply. */
  21552. char XRRQueryExtension ();
  21553. int
  21554. main (void)
  21555. {
  21556. return XRRQueryExtension ();
  21557. ;
  21558. return 0;
  21559. }
  21560. _ACEOF
  21561. if ac_fn_c_try_link "$LINENO"
  21562. then :
  21563. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21564. else $as_nop
  21565. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21566. fi
  21567. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21568. conftest$ac_exeext conftest.$ac_ext
  21569. LIBS=$ac_check_lib_save_LIBS
  21570. fi
  21571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21572. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21573. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21574. then :
  21575. have_xrandr_lib=yes
  21576. fi
  21577. if test x$have_xrandr_lib = xyes ; then
  21578. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21579. definitely_enable_video_x11_xrandr=yes
  21580. fi
  21581. fi
  21582. fi
  21583. fi
  21584. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21585. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21586. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21587. fi
  21588. # Check whether --enable-video-x11-scrnsaver was given.
  21589. if test ${enable_video_x11_scrnsaver+y}
  21590. then :
  21591. enableval=$enable_video_x11_scrnsaver;
  21592. else $as_nop
  21593. enable_video_x11_scrnsaver=yes
  21594. fi
  21595. if test x$enable_video_x11_scrnsaver = xyes; then
  21596. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21597. "
  21598. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21599. then :
  21600. have_scrnsaver_h_hdr=yes
  21601. else $as_nop
  21602. have_scrnsaver_h_hdr=no
  21603. fi
  21604. if test x$have_scrnsaver_h_hdr = xyes; then
  21605. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21606. echo "-- dynamic libXss -> $xss_lib"
  21607. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21608. definitely_enable_video_x11_scrnsaver=yes
  21609. else
  21610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21611. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21612. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21613. then :
  21614. printf %s "(cached) " >&6
  21615. else $as_nop
  21616. ac_check_lib_save_LIBS=$LIBS
  21617. LIBS="-lXss $LIBS"
  21618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21619. /* end confdefs.h. */
  21620. /* Override any GCC internal prototype to avoid an error.
  21621. Use char because int might match the return type of a GCC
  21622. builtin and then its argument prototype would still apply. */
  21623. char XScreenSaverSuspend ();
  21624. int
  21625. main (void)
  21626. {
  21627. return XScreenSaverSuspend ();
  21628. ;
  21629. return 0;
  21630. }
  21631. _ACEOF
  21632. if ac_fn_c_try_link "$LINENO"
  21633. then :
  21634. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21635. else $as_nop
  21636. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21637. fi
  21638. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21639. conftest$ac_exeext conftest.$ac_ext
  21640. LIBS=$ac_check_lib_save_LIBS
  21641. fi
  21642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21643. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21644. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21645. then :
  21646. have_xss_lib=yes
  21647. fi
  21648. if test x$have_xss_lib = xyes ; then
  21649. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21650. definitely_enable_video_x11_scrnsaver=yes
  21651. fi
  21652. fi
  21653. fi
  21654. fi
  21655. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21656. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21657. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21658. fi
  21659. # Check whether --enable-video-x11-xshape was given.
  21660. if test ${enable_video_x11_xshape+y}
  21661. then :
  21662. enableval=$enable_video_x11_xshape;
  21663. else $as_nop
  21664. enable_video_x11_xshape=yes
  21665. fi
  21666. if test x$enable_video_x11_xshape = xyes; then
  21667. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21668. "
  21669. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21670. then :
  21671. have_shape_h_hdr=yes
  21672. else $as_nop
  21673. have_shape_h_hdr=no
  21674. fi
  21675. if test x$have_shape_h_hdr = xyes; then
  21676. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21677. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21678. fi
  21679. fi
  21680. fi
  21681. fi
  21682. if test x$have_x != xyes; then
  21683. # Prevent Mesa from including X11 headers
  21684. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21685. fi
  21686. }
  21687. CheckVivanteVideo()
  21688. {
  21689. # Check whether --enable-video-vivante was given.
  21690. if test ${enable_video_vivante+y}
  21691. then :
  21692. enableval=$enable_video_vivante;
  21693. else $as_nop
  21694. enable_video_vivante=yes
  21695. fi
  21696. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21698. printf %s "checking for Vivante VDK API... " >&6; }
  21699. have_vivante_vdk=no
  21700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21701. /* end confdefs.h. */
  21702. #define LINUX
  21703. #define EGL_API_FB
  21704. #include <gc_vdk.h>
  21705. int
  21706. main (void)
  21707. {
  21708. ;
  21709. return 0;
  21710. }
  21711. _ACEOF
  21712. if ac_fn_c_try_compile "$LINENO"
  21713. then :
  21714. have_vivante_vdk=yes
  21715. fi
  21716. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21718. printf "%s\n" "$have_vivante_vdk" >&6; }
  21719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21720. printf %s "checking for Vivante FB API... " >&6; }
  21721. have_vivante_egl=no
  21722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21723. /* end confdefs.h. */
  21724. #define LINUX
  21725. #define EGL_API_FB
  21726. #include <EGL/eglvivante.h>
  21727. int
  21728. main (void)
  21729. {
  21730. ;
  21731. return 0;
  21732. }
  21733. _ACEOF
  21734. if ac_fn_c_try_compile "$LINENO"
  21735. then :
  21736. have_vivante_egl=yes
  21737. fi
  21738. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21740. printf "%s\n" "$have_vivante_egl" >&6; }
  21741. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21742. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21743. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21744. if test x$have_vivante_vdk = xyes; then
  21745. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21746. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21747. fi
  21748. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21749. SUMMARY_video="${SUMMARY_video} vivante"
  21750. have_video=yes
  21751. fi
  21752. fi
  21753. }
  21754. CheckHaikuVideo()
  21755. {
  21756. if test x$enable_video = xyes; then
  21757. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21758. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21759. have_video=yes
  21760. SUMMARY_video="${SUMMARY_video} haiku"
  21761. fi
  21762. }
  21763. CheckCOCOA()
  21764. {
  21765. # Check whether --enable-video-cocoa was given.
  21766. if test ${enable_video_cocoa+y}
  21767. then :
  21768. enableval=$enable_video_cocoa;
  21769. else $as_nop
  21770. enable_video_cocoa=yes
  21771. fi
  21772. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21773. save_CFLAGS="$CFLAGS"
  21774. CFLAGS="$CFLAGS -x objective-c"
  21775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21776. printf %s "checking for Cocoa framework... " >&6; }
  21777. have_cocoa=no
  21778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21779. /* end confdefs.h. */
  21780. #import <Cocoa/Cocoa.h>
  21781. int
  21782. main (void)
  21783. {
  21784. ;
  21785. return 0;
  21786. }
  21787. _ACEOF
  21788. if ac_fn_c_try_compile "$LINENO"
  21789. then :
  21790. have_cocoa=yes
  21791. fi
  21792. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21794. printf "%s\n" "$have_cocoa" >&6; }
  21795. CFLAGS="$save_CFLAGS"
  21796. if test x$have_cocoa = xyes; then
  21797. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21798. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21799. SUMMARY_video="${SUMMARY_video} cocoa"
  21800. have_video=yes
  21801. fi
  21802. fi
  21803. }
  21804. CheckMETAL()
  21805. {
  21806. # Check whether --enable-video-metal was given.
  21807. if test ${enable_video_metal+y}
  21808. then :
  21809. enableval=$enable_video_metal;
  21810. else $as_nop
  21811. enable_video_metal=yes
  21812. fi
  21813. # Check whether --enable-render-metal was given.
  21814. if test ${enable_render_metal+y}
  21815. then :
  21816. enableval=$enable_render_metal;
  21817. else $as_nop
  21818. enable_render_metal=yes
  21819. fi
  21820. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21821. save_CFLAGS="$CFLAGS"
  21822. CFLAGS="$CFLAGS -x objective-c"
  21823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21824. printf %s "checking for Metal framework... " >&6; }
  21825. have_metal=no
  21826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21827. /* end confdefs.h. */
  21828. #import <Cocoa/Cocoa.h>
  21829. #import <Metal/Metal.h>
  21830. #import <QuartzCore/CAMetalLayer.h>
  21831. #if TARGET_CPU_X86
  21832. #error Metal doesn't work on this configuration
  21833. #endif
  21834. int
  21835. main (void)
  21836. {
  21837. ;
  21838. return 0;
  21839. }
  21840. _ACEOF
  21841. if ac_fn_c_try_compile "$LINENO"
  21842. then :
  21843. have_metal=yes
  21844. fi
  21845. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21846. CFLAGS="$save_CFLAGS"
  21847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21848. printf "%s\n" "$have_metal" >&6; }
  21849. if test x$have_metal = xyes; then
  21850. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21851. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21852. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21853. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21854. fi
  21855. SUMMARY_video="${SUMMARY_video} metal"
  21856. else
  21857. enable_video_metal=no
  21858. enable_render_metal=no
  21859. fi
  21860. fi
  21861. }
  21862. CheckDirectFB()
  21863. {
  21864. # Check whether --enable-video-directfb was given.
  21865. if test ${enable_video_directfb+y}
  21866. then :
  21867. enableval=$enable_video_directfb;
  21868. else $as_nop
  21869. enable_video_directfb=no
  21870. fi
  21871. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21872. pkg_failed=no
  21873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21874. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21875. if test -n "$DIRECTFB_CFLAGS"; then
  21876. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21877. elif test -n "$PKG_CONFIG"; then
  21878. if test -n "$PKG_CONFIG" && \
  21879. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21880. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21881. ac_status=$?
  21882. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21883. test $ac_status = 0; }; then
  21884. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21885. test "x$?" != "x0" && pkg_failed=yes
  21886. else
  21887. pkg_failed=yes
  21888. fi
  21889. else
  21890. pkg_failed=untried
  21891. fi
  21892. if test -n "$DIRECTFB_LIBS"; then
  21893. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  21894. elif test -n "$PKG_CONFIG"; then
  21895. if test -n "$PKG_CONFIG" && \
  21896. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21897. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21898. ac_status=$?
  21899. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21900. test $ac_status = 0; }; then
  21901. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  21902. test "x$?" != "x0" && pkg_failed=yes
  21903. else
  21904. pkg_failed=yes
  21905. fi
  21906. else
  21907. pkg_failed=untried
  21908. fi
  21909. if test $pkg_failed = yes; then
  21910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21911. printf "%s\n" "no" >&6; }
  21912. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21913. _pkg_short_errors_supported=yes
  21914. else
  21915. _pkg_short_errors_supported=no
  21916. fi
  21917. if test $_pkg_short_errors_supported = yes; then
  21918. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21919. else
  21920. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21921. fi
  21922. # Put the nasty error message in config.log where it belongs
  21923. echo "$DIRECTFB_PKG_ERRORS" >&5
  21924. video_directfb=no
  21925. elif test $pkg_failed = untried; then
  21926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21927. printf "%s\n" "no" >&6; }
  21928. video_directfb=no
  21929. else
  21930. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21931. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21933. printf "%s\n" "yes" >&6; }
  21934. video_directfb=yes
  21935. fi
  21936. if test x$video_directfb = xyes; then
  21937. # SuSE 11.1 installs directfb-config without directfb-devel
  21938. save_CPPFLAGS="$CPPFLAGS"
  21939. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21940. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21941. if test "x$ac_cv_header_directfb_h" = xyes
  21942. then :
  21943. have_directfb_hdr=yes
  21944. else $as_nop
  21945. have_directfb_hdr=no
  21946. fi
  21947. CPPFLAGS="$save_CPPFLAGS"
  21948. video_directfb=$have_directfb_hdr
  21949. fi
  21950. if test x$video_directfb = xyes; then
  21951. # Check whether --enable-directfb-shared was given.
  21952. if test ${enable_directfb_shared+y}
  21953. then :
  21954. enableval=$enable_directfb_shared;
  21955. else $as_nop
  21956. enable_directfb_shared=yes
  21957. fi
  21958. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  21959. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  21960. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  21961. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  21962. directfb_shared=no
  21963. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  21964. if test x$have_loadso != xyes && \
  21965. test x$enable_directfb_shared = xyes; then
  21966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  21967. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  21968. fi
  21969. if test x$have_loadso = xyes && \
  21970. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21971. directfb_shared=yes
  21972. echo "-- dynamic libdirectfb -> $directfb_lib"
  21973. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21974. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21975. else
  21976. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21977. SUMMARY_video="${SUMMARY_video} directfb"
  21978. fi
  21979. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21980. have_video=yes
  21981. fi
  21982. fi
  21983. }
  21984. CheckKMSDRM()
  21985. {
  21986. # Check whether --enable-video-kmsdrm was given.
  21987. if test ${enable_video_kmsdrm+y}
  21988. then :
  21989. enableval=$enable_video_kmsdrm;
  21990. else $as_nop
  21991. enable_video_kmsdrm=yes
  21992. fi
  21993. if test x$enable_video = xyes && \
  21994. test x$enable_video_kmsdrm = xyes && \
  21995. test x$video_opengl_egl = xyes; then
  21996. video_kmsdrm=no
  21997. pkg_failed=no
  21998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21999. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  22000. if test -n "$LIBDRM_CFLAGS"; then
  22001. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  22002. elif test -n "$PKG_CONFIG"; then
  22003. if test -n "$PKG_CONFIG" && \
  22004. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22005. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22006. ac_status=$?
  22007. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22008. test $ac_status = 0; }; then
  22009. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  22010. test "x$?" != "x0" && pkg_failed=yes
  22011. else
  22012. pkg_failed=yes
  22013. fi
  22014. else
  22015. pkg_failed=untried
  22016. fi
  22017. if test -n "$LIBDRM_LIBS"; then
  22018. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  22019. elif test -n "$PKG_CONFIG"; then
  22020. if test -n "$PKG_CONFIG" && \
  22021. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22022. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22023. ac_status=$?
  22024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22025. test $ac_status = 0; }; then
  22026. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22027. test "x$?" != "x0" && pkg_failed=yes
  22028. else
  22029. pkg_failed=yes
  22030. fi
  22031. else
  22032. pkg_failed=untried
  22033. fi
  22034. if test $pkg_failed = yes; then
  22035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22036. printf "%s\n" "no" >&6; }
  22037. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22038. _pkg_short_errors_supported=yes
  22039. else
  22040. _pkg_short_errors_supported=no
  22041. fi
  22042. if test $_pkg_short_errors_supported = yes; then
  22043. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22044. else
  22045. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22046. fi
  22047. # Put the nasty error message in config.log where it belongs
  22048. echo "$LIBDRM_PKG_ERRORS" >&5
  22049. libdrm_avail=no
  22050. elif test $pkg_failed = untried; then
  22051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22052. printf "%s\n" "no" >&6; }
  22053. libdrm_avail=no
  22054. else
  22055. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22056. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22058. printf "%s\n" "yes" >&6; }
  22059. libdrm_avail=yes
  22060. fi
  22061. pkg_failed=no
  22062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22063. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22064. if test -n "$LIBGBM_CFLAGS"; then
  22065. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22066. elif test -n "$PKG_CONFIG"; then
  22067. if test -n "$PKG_CONFIG" && \
  22068. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22069. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22070. ac_status=$?
  22071. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22072. test $ac_status = 0; }; then
  22073. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22074. test "x$?" != "x0" && pkg_failed=yes
  22075. else
  22076. pkg_failed=yes
  22077. fi
  22078. else
  22079. pkg_failed=untried
  22080. fi
  22081. if test -n "$LIBGBM_LIBS"; then
  22082. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22083. elif test -n "$PKG_CONFIG"; then
  22084. if test -n "$PKG_CONFIG" && \
  22085. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22086. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22087. ac_status=$?
  22088. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22089. test $ac_status = 0; }; then
  22090. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22091. test "x$?" != "x0" && pkg_failed=yes
  22092. else
  22093. pkg_failed=yes
  22094. fi
  22095. else
  22096. pkg_failed=untried
  22097. fi
  22098. if test $pkg_failed = yes; then
  22099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22100. printf "%s\n" "no" >&6; }
  22101. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22102. _pkg_short_errors_supported=yes
  22103. else
  22104. _pkg_short_errors_supported=no
  22105. fi
  22106. if test $_pkg_short_errors_supported = yes; then
  22107. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22108. else
  22109. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22110. fi
  22111. # Put the nasty error message in config.log where it belongs
  22112. echo "$LIBGBM_PKG_ERRORS" >&5
  22113. libgbm_avail=no
  22114. elif test $pkg_failed = untried; then
  22115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22116. printf "%s\n" "no" >&6; }
  22117. libgbm_avail=no
  22118. else
  22119. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22120. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22122. printf "%s\n" "yes" >&6; }
  22123. libgbm_avail=yes
  22124. fi
  22125. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22126. video_kmsdrm=yes
  22127. fi
  22128. if test x$video_kmsdrm = xyes; then
  22129. # Check whether --enable-kmsdrm-shared was given.
  22130. if test ${enable_kmsdrm_shared+y}
  22131. then :
  22132. enableval=$enable_kmsdrm_shared;
  22133. else $as_nop
  22134. enable_kmsdrm_shared=yes
  22135. fi
  22136. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22137. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22138. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22140. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22141. kmsdrm_shared=no
  22142. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22143. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22144. if test x$have_loadso != xyes && \
  22145. test x$enable_kmsdrm_shared = xyes; then
  22146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22147. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22148. fi
  22149. if test x$have_loadso = xyes && \
  22150. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22151. kmsdrm_shared=yes
  22152. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22153. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22154. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22155. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22156. else
  22157. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22158. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22159. fi
  22160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22161. printf "%s\n" "$kmsdrm_shared" >&6; }
  22162. if test x$kmsdrm_shared = xyes; then
  22163. echo "-- dynamic libdrm -> $drm_lib"
  22164. echo "-- dynamic libgbm -> $gbm_lib"
  22165. fi
  22166. have_video=yes
  22167. fi
  22168. fi
  22169. }
  22170. CheckDummyVideo()
  22171. {
  22172. # Check whether --enable-video-dummy was given.
  22173. if test ${enable_video_dummy+y}
  22174. then :
  22175. enableval=$enable_video_dummy;
  22176. else $as_nop
  22177. enable_video_dummy=yes
  22178. fi
  22179. if test x$enable_video_dummy = xyes; then
  22180. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22181. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22182. have_video=yes
  22183. SUMMARY_video="${SUMMARY_video} dummy"
  22184. fi
  22185. }
  22186. CheckOffscreenVideo()
  22187. {
  22188. # Check whether --enable-video-offscreen was given.
  22189. if test ${enable_video_offscreen+y}
  22190. then :
  22191. enableval=$enable_video_offscreen;
  22192. else $as_nop
  22193. enable_video_offscreen=yes
  22194. fi
  22195. if test x$enable_video_offscreen = xyes; then
  22196. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22197. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22198. have_video=yes
  22199. SUMMARY_video="${SUMMARY_video} offscreen"
  22200. fi
  22201. }
  22202. CheckQNXVideo()
  22203. {
  22204. if test x$enable_video = xyes; then
  22205. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22206. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22207. have_video=yes
  22208. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22209. SUMMARY_video="${SUMMARY_video} qnx"
  22210. fi
  22211. }
  22212. CheckQNXAudio()
  22213. {
  22214. if test x$enable_audio = xyes; then
  22215. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22216. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22217. have_audio=yes
  22218. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22219. SUMMARY_audio="${SUMMARY_audio} qsa"
  22220. fi
  22221. }
  22222. # Check whether --enable-video-opengl was given.
  22223. if test ${enable_video_opengl+y}
  22224. then :
  22225. enableval=$enable_video_opengl;
  22226. else $as_nop
  22227. enable_video_opengl=yes
  22228. fi
  22229. CheckGLX()
  22230. {
  22231. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22233. printf %s "checking for GLX support... " >&6; }
  22234. video_opengl_glx=no
  22235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22236. /* end confdefs.h. */
  22237. #include <GL/glx.h>
  22238. int
  22239. main (void)
  22240. {
  22241. ;
  22242. return 0;
  22243. }
  22244. _ACEOF
  22245. if ac_fn_c_try_compile "$LINENO"
  22246. then :
  22247. video_opengl_glx=yes
  22248. fi
  22249. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22251. printf "%s\n" "$video_opengl_glx" >&6; }
  22252. if test x$video_opengl_glx = xyes; then
  22253. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22254. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22255. fi
  22256. fi
  22257. }
  22258. # Check whether --enable-video-opengles was given.
  22259. if test ${enable_video_opengles+y}
  22260. then :
  22261. enableval=$enable_video_opengles;
  22262. else $as_nop
  22263. enable_video_opengles=yes
  22264. fi
  22265. # Check whether --enable-video-opengles1 was given.
  22266. if test ${enable_video_opengles1+y}
  22267. then :
  22268. enableval=$enable_video_opengles1;
  22269. else $as_nop
  22270. enable_video_opengles1=yes
  22271. fi
  22272. # Check whether --enable-video-opengles2 was given.
  22273. if test ${enable_video_opengles2+y}
  22274. then :
  22275. enableval=$enable_video_opengles2;
  22276. else $as_nop
  22277. enable_video_opengles2=yes
  22278. fi
  22279. CheckEGL()
  22280. {
  22281. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22283. printf %s "checking for EGL support... " >&6; }
  22284. video_opengl_egl=no
  22285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22286. /* end confdefs.h. */
  22287. #define LINUX
  22288. #define EGL_API_FB
  22289. #define MESA_EGL_NO_X11_HEADERS
  22290. #define EGL_NO_X11
  22291. #include <EGL/egl.h>
  22292. #include <EGL/eglext.h>
  22293. int
  22294. main (void)
  22295. {
  22296. ;
  22297. return 0;
  22298. }
  22299. _ACEOF
  22300. if ac_fn_c_try_compile "$LINENO"
  22301. then :
  22302. video_opengl_egl=yes
  22303. fi
  22304. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22306. printf "%s\n" "$video_opengl_egl" >&6; }
  22307. if test x$video_opengl_egl = xyes; then
  22308. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22309. fi
  22310. fi
  22311. }
  22312. CheckOpenGL()
  22313. {
  22314. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22316. printf %s "checking for OpenGL headers... " >&6; }
  22317. video_opengl=no
  22318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22319. /* end confdefs.h. */
  22320. #include <GL/gl.h>
  22321. #include <GL/glext.h>
  22322. int
  22323. main (void)
  22324. {
  22325. ;
  22326. return 0;
  22327. }
  22328. _ACEOF
  22329. if ac_fn_c_try_compile "$LINENO"
  22330. then :
  22331. video_opengl=yes
  22332. fi
  22333. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22335. printf "%s\n" "$video_opengl" >&6; }
  22336. if test x$video_opengl = xyes; then
  22337. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22338. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22339. SUMMARY_video="${SUMMARY_video} opengl"
  22340. fi
  22341. fi
  22342. }
  22343. CheckOpenGLES()
  22344. {
  22345. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22346. if test x$enable_video_opengles1 = xyes; then
  22347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22348. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22349. video_opengles_v1=no
  22350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22351. /* end confdefs.h. */
  22352. #include <GLES/gl.h>
  22353. #include <GLES/glext.h>
  22354. int
  22355. main (void)
  22356. {
  22357. ;
  22358. return 0;
  22359. }
  22360. _ACEOF
  22361. if ac_fn_c_try_compile "$LINENO"
  22362. then :
  22363. video_opengles_v1=yes
  22364. fi
  22365. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22367. printf "%s\n" "$video_opengles_v1" >&6; }
  22368. if test x$video_opengles_v1 = xyes; then
  22369. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22370. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22371. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22372. fi
  22373. fi
  22374. if test x$enable_video_opengles2 = xyes; then
  22375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22376. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22377. video_opengles_v2=no
  22378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22379. /* end confdefs.h. */
  22380. #include <GLES2/gl2.h>
  22381. #include <GLES2/gl2ext.h>
  22382. int
  22383. main (void)
  22384. {
  22385. ;
  22386. return 0;
  22387. }
  22388. _ACEOF
  22389. if ac_fn_c_try_compile "$LINENO"
  22390. then :
  22391. video_opengles_v2=yes
  22392. fi
  22393. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22395. printf "%s\n" "$video_opengles_v2" >&6; }
  22396. if test x$video_opengles_v2 = xyes; then
  22397. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22398. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22399. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22400. fi
  22401. fi
  22402. fi
  22403. }
  22404. CheckWINDOWSGL()
  22405. {
  22406. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22407. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22408. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22409. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22410. SUMMARY_video="${SUMMARY_video} opengl"
  22411. fi
  22412. }
  22413. CheckWINDOWSGLES()
  22414. {
  22415. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22417. printf %s "checking for EGL support... " >&6; }
  22418. video_opengl_egl=no
  22419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22420. /* end confdefs.h. */
  22421. #include <EGL/egl.h>
  22422. int
  22423. main (void)
  22424. {
  22425. ;
  22426. return 0;
  22427. }
  22428. _ACEOF
  22429. if ac_fn_c_try_compile "$LINENO"
  22430. then :
  22431. video_opengl_egl=yes
  22432. fi
  22433. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22435. printf "%s\n" "$video_opengl_egl" >&6; }
  22436. if test x$video_opengl_egl = xyes; then
  22437. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22438. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22439. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22440. fi
  22441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22442. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22443. video_opengles_v2=no
  22444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22445. /* end confdefs.h. */
  22446. #include <GLES2/gl2.h>
  22447. #include <GLES2/gl2ext.h>
  22448. int
  22449. main (void)
  22450. {
  22451. ;
  22452. return 0;
  22453. }
  22454. _ACEOF
  22455. if ac_fn_c_try_compile "$LINENO"
  22456. then :
  22457. video_opengles_v2=yes
  22458. fi
  22459. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22461. printf "%s\n" "$video_opengles_v2" >&6; }
  22462. if test x$video_opengles_v2 = xyes; then
  22463. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22464. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22465. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22466. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22467. fi
  22468. fi
  22469. }
  22470. CheckHaikuGL()
  22471. {
  22472. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22473. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22474. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22475. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22476. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22477. SUMMARY_video="${SUMMARY_video} opengl"
  22478. fi
  22479. }
  22480. CheckMacGL()
  22481. {
  22482. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22483. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22484. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22485. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22486. SUMMARY_video="${SUMMARY_video} opengl"
  22487. fi
  22488. }
  22489. CheckMacGLES()
  22490. {
  22491. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22492. video_opengl_egl=yes
  22493. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22494. video_opengles_v2=yes
  22495. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22496. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22497. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22498. fi
  22499. }
  22500. CheckEmscriptenGLES()
  22501. {
  22502. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22504. printf %s "checking for EGL support... " >&6; }
  22505. video_opengl_egl=no
  22506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22507. /* end confdefs.h. */
  22508. #include <EGL/egl.h>
  22509. int
  22510. main (void)
  22511. {
  22512. ;
  22513. return 0;
  22514. }
  22515. _ACEOF
  22516. if ac_fn_c_try_compile "$LINENO"
  22517. then :
  22518. video_opengl_egl=yes
  22519. fi
  22520. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22522. printf "%s\n" "$video_opengl_egl" >&6; }
  22523. if test x$video_opengl_egl = xyes; then
  22524. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22525. fi
  22526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22527. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22528. video_opengles_v2=no
  22529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22530. /* end confdefs.h. */
  22531. #include <GLES2/gl2.h>
  22532. #include <GLES2/gl2ext.h>
  22533. int
  22534. main (void)
  22535. {
  22536. ;
  22537. return 0;
  22538. }
  22539. _ACEOF
  22540. if ac_fn_c_try_compile "$LINENO"
  22541. then :
  22542. video_opengles_v2=yes
  22543. fi
  22544. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22546. printf "%s\n" "$video_opengles_v2" >&6; }
  22547. if test x$video_opengles_v2 = xyes; then
  22548. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22549. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22550. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22551. fi
  22552. fi
  22553. }
  22554. # Check whether --enable-video-vulkan was given.
  22555. if test ${enable_video_vulkan+y}
  22556. then :
  22557. enableval=$enable_video_vulkan;
  22558. else $as_nop
  22559. enable_video_vulkan=yes
  22560. fi
  22561. CheckVulkan()
  22562. {
  22563. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22564. case "$host" in
  22565. *-*-android*)
  22566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22567. /* end confdefs.h. */
  22568. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22569. #error Vulkan doesn't work on this configuration
  22570. #endif
  22571. int
  22572. main (void)
  22573. {
  22574. ;
  22575. return 0;
  22576. }
  22577. _ACEOF
  22578. if ac_fn_c_try_compile "$LINENO"
  22579. then :
  22580. else $as_nop
  22581. enable_video_vulkan=no
  22582. fi
  22583. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22584. ;;
  22585. *-*-darwin*)
  22586. save_CFLAGS="$CFLAGS"
  22587. CFLAGS="$CFLAGS -x objective-c"
  22588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22589. /* end confdefs.h. */
  22590. #include <Cocoa/Cocoa.h>
  22591. #include <Metal/Metal.h>
  22592. #include <QuartzCore/CAMetalLayer.h>
  22593. #if TARGET_CPU_X86
  22594. #error Vulkan doesn't work on this configuration
  22595. #endif
  22596. int
  22597. main (void)
  22598. {
  22599. ;
  22600. return 0;
  22601. }
  22602. _ACEOF
  22603. if ac_fn_c_try_compile "$LINENO"
  22604. then :
  22605. else $as_nop
  22606. enable_video_vulkan=no
  22607. fi
  22608. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22609. CFLAGS="$save_CFLAGS"
  22610. ;;
  22611. *)
  22612. ;;
  22613. esac
  22614. if test x$enable_video_vulkan = xno; then
  22615. # For reasons I am totally unable to see, I get an undefined macro error if
  22616. # I put this in the AC_TRY_COMPILE.
  22617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22618. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22619. fi
  22620. fi
  22621. if test x$have_loadso != xyes; then
  22622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22623. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22624. enable_video_vulkan=no
  22625. fi
  22626. if test x$enable_video_vulkan = xyes; then
  22627. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22628. SUMMARY_video="${SUMMARY_video} vulkan"
  22629. fi
  22630. }
  22631. CheckInputEvents()
  22632. {
  22633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22634. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22635. use_input_events=no
  22636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22637. /* end confdefs.h. */
  22638. #include <linux/input.h>
  22639. int
  22640. main (void)
  22641. {
  22642. #ifndef EVIOCGNAME
  22643. #error EVIOCGNAME() ioctl not available
  22644. #endif
  22645. ;
  22646. return 0;
  22647. }
  22648. _ACEOF
  22649. if ac_fn_c_try_compile "$LINENO"
  22650. then :
  22651. use_input_events=yes
  22652. fi
  22653. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22655. printf "%s\n" "$use_input_events" >&6; }
  22656. if test x$use_input_events = xyes; then
  22657. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22658. SUMMARY_input="${SUMMARY_input} linuxev"
  22659. fi
  22660. }
  22661. CheckInputKD()
  22662. {
  22663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22664. printf %s "checking for Linux kd.h... " >&6; }
  22665. use_input_kd=no
  22666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22667. /* end confdefs.h. */
  22668. #include <linux/kd.h>
  22669. #include <linux/keyboard.h>
  22670. #include <sys/ioctl.h>
  22671. int
  22672. main (void)
  22673. {
  22674. struct kbentry kbe;
  22675. kbe.kb_table = KG_CTRL;
  22676. ioctl(0, KDGKBENT, &kbe);
  22677. ;
  22678. return 0;
  22679. }
  22680. _ACEOF
  22681. if ac_fn_c_try_compile "$LINENO"
  22682. then :
  22683. use_input_kd=yes
  22684. fi
  22685. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22687. printf "%s\n" "$use_input_kd" >&6; }
  22688. if test x$use_input_kd = xyes; then
  22689. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22690. SUMMARY_input="${SUMMARY_input} linuxkd"
  22691. fi
  22692. }
  22693. CheckInputKBIO()
  22694. {
  22695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22696. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22697. use_input_kbio=no
  22698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22699. /* end confdefs.h. */
  22700. #include <sys/kbio.h>
  22701. #include <sys/ioctl.h>
  22702. int
  22703. main (void)
  22704. {
  22705. accentmap_t accTable;
  22706. ioctl(0, KDENABIO, 1);
  22707. ;
  22708. return 0;
  22709. }
  22710. _ACEOF
  22711. if ac_fn_c_try_compile "$LINENO"
  22712. then :
  22713. use_input_kbio=yes
  22714. fi
  22715. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22717. printf "%s\n" "$use_input_kbio" >&6; }
  22718. if test x$use_input_kbio = xyes; then
  22719. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22720. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22721. fi
  22722. }
  22723. CheckInputWSCONS()
  22724. {
  22725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22726. printf %s "checking for OpenBSD wscons... " >&6; }
  22727. use_input_wscons=no
  22728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22729. /* end confdefs.h. */
  22730. #include <sys/time.h>
  22731. #include <dev/wscons/wsconsio.h>
  22732. #include <dev/wscons/wsksymdef.h>
  22733. #include <dev/wscons/wsksymvar.h>
  22734. #include <sys/ioctl.h>
  22735. int
  22736. main (void)
  22737. {
  22738. struct wskbd_map_data data;
  22739. ioctl(0, WSKBDIO_GETMAP, &data);
  22740. ;
  22741. return 0;
  22742. }
  22743. _ACEOF
  22744. if ac_fn_c_try_compile "$LINENO"
  22745. then :
  22746. use_input_wscons=yes
  22747. fi
  22748. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22750. printf "%s\n" "$use_input_wscons" >&6; }
  22751. if test x$use_input_wscons = xyes; then
  22752. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22753. SUMMARY_input="${SUMMARY_input} wscons"
  22754. fi
  22755. }
  22756. CheckLibUDev()
  22757. {
  22758. # Check whether --enable-libudev was given.
  22759. if test ${enable_libudev+y}
  22760. then :
  22761. enableval=$enable_libudev;
  22762. else $as_nop
  22763. enable_libudev=yes
  22764. fi
  22765. if test x$enable_libudev = xyes; then
  22766. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22767. if test "x$ac_cv_header_libudev_h" = xyes
  22768. then :
  22769. have_libudev_h_hdr=yes
  22770. else $as_nop
  22771. have_libudev_h_hdr=no
  22772. fi
  22773. if test x$have_libudev_h_hdr = xyes; then
  22774. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22775. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22776. if test x$udev_lib != x; then
  22777. echo "-- dynamic udev -> $udev_lib"
  22778. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22779. fi
  22780. fi
  22781. fi
  22782. }
  22783. CheckDBus()
  22784. {
  22785. # Check whether --enable-dbus was given.
  22786. if test ${enable_dbus+y}
  22787. then :
  22788. enableval=$enable_dbus;
  22789. else $as_nop
  22790. enable_dbus=yes
  22791. fi
  22792. if test x$enable_dbus = xyes; then
  22793. pkg_failed=no
  22794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22795. printf %s "checking for dbus-1... " >&6; }
  22796. if test -n "$DBUS_CFLAGS"; then
  22797. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22798. elif test -n "$PKG_CONFIG"; then
  22799. if test -n "$PKG_CONFIG" && \
  22800. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22801. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22802. ac_status=$?
  22803. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22804. test $ac_status = 0; }; then
  22805. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22806. test "x$?" != "x0" && pkg_failed=yes
  22807. else
  22808. pkg_failed=yes
  22809. fi
  22810. else
  22811. pkg_failed=untried
  22812. fi
  22813. if test -n "$DBUS_LIBS"; then
  22814. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22815. elif test -n "$PKG_CONFIG"; then
  22816. if test -n "$PKG_CONFIG" && \
  22817. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22818. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22819. ac_status=$?
  22820. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22821. test $ac_status = 0; }; then
  22822. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22823. test "x$?" != "x0" && pkg_failed=yes
  22824. else
  22825. pkg_failed=yes
  22826. fi
  22827. else
  22828. pkg_failed=untried
  22829. fi
  22830. if test $pkg_failed = yes; then
  22831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22832. printf "%s\n" "no" >&6; }
  22833. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22834. _pkg_short_errors_supported=yes
  22835. else
  22836. _pkg_short_errors_supported=no
  22837. fi
  22838. if test $_pkg_short_errors_supported = yes; then
  22839. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22840. else
  22841. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22842. fi
  22843. # Put the nasty error message in config.log where it belongs
  22844. echo "$DBUS_PKG_ERRORS" >&5
  22845. have_dbus=no
  22846. elif test $pkg_failed = untried; then
  22847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22848. printf "%s\n" "no" >&6; }
  22849. have_dbus=no
  22850. else
  22851. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22852. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22854. printf "%s\n" "yes" >&6; }
  22855. have_dbus=yes
  22856. fi
  22857. save_CPPFLAGS="$CPPFLAGS"
  22858. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22859. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22860. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22861. then :
  22862. have_dbus_dbus_h_hdr=yes
  22863. else $as_nop
  22864. have_dbus_dbus_h_hdr=no
  22865. fi
  22866. CPPFLAGS="$save_CPPFLAGS"
  22867. if test x$have_dbus_dbus_h_hdr = xyes; then
  22868. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22869. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22870. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22871. fi
  22872. fi
  22873. }
  22874. CheckIME()
  22875. {
  22876. # Check whether --enable-ime was given.
  22877. if test ${enable_ime+y}
  22878. then :
  22879. enableval=$enable_ime;
  22880. else $as_nop
  22881. enable_ime=yes
  22882. fi
  22883. if test x$enable_ime = xyes; then
  22884. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22885. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22886. fi
  22887. }
  22888. CheckInotify()
  22889. {
  22890. save_LIBS="$LIBS"
  22891. case "$host" in
  22892. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22893. ;;
  22894. esac
  22895. for ac_header in sys/inotify.h
  22896. do :
  22897. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22898. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22899. then :
  22900. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22901. have_inotify_inotify_h_hdr=yes
  22902. fi
  22903. done
  22904. for ac_func in inotify_init
  22905. do :
  22906. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22907. if test "x$ac_cv_func_inotify_init" = xyes
  22908. then :
  22909. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22910. have_inotify=yes
  22911. fi
  22912. done
  22913. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22914. if test "x$ac_cv_func_inotify_init1" = xyes
  22915. then :
  22916. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22917. fi
  22918. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22919. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22920. case "$host" in
  22921. *-*-freebsd*|*-*-dragonfly*)
  22922. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22923. ;;
  22924. esac
  22925. fi
  22926. LIBS="$save_LIBS"
  22927. }
  22928. CheckIBus()
  22929. {
  22930. # Check whether --enable-ibus was given.
  22931. if test ${enable_ibus+y}
  22932. then :
  22933. enableval=$enable_ibus;
  22934. else $as_nop
  22935. enable_ibus=yes
  22936. fi
  22937. if test x$enable_ibus = xyes; then
  22938. pkg_failed=no
  22939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22940. printf %s "checking for ibus-1.0... " >&6; }
  22941. if test -n "$IBUS_CFLAGS"; then
  22942. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22943. elif test -n "$PKG_CONFIG"; then
  22944. if test -n "$PKG_CONFIG" && \
  22945. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22946. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22947. ac_status=$?
  22948. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22949. test $ac_status = 0; }; then
  22950. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22951. test "x$?" != "x0" && pkg_failed=yes
  22952. else
  22953. pkg_failed=yes
  22954. fi
  22955. else
  22956. pkg_failed=untried
  22957. fi
  22958. if test -n "$IBUS_LIBS"; then
  22959. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22960. elif test -n "$PKG_CONFIG"; then
  22961. if test -n "$PKG_CONFIG" && \
  22962. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22963. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22964. ac_status=$?
  22965. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22966. test $ac_status = 0; }; then
  22967. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22968. test "x$?" != "x0" && pkg_failed=yes
  22969. else
  22970. pkg_failed=yes
  22971. fi
  22972. else
  22973. pkg_failed=untried
  22974. fi
  22975. if test $pkg_failed = yes; then
  22976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22977. printf "%s\n" "no" >&6; }
  22978. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22979. _pkg_short_errors_supported=yes
  22980. else
  22981. _pkg_short_errors_supported=no
  22982. fi
  22983. if test $_pkg_short_errors_supported = yes; then
  22984. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22985. else
  22986. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22987. fi
  22988. # Put the nasty error message in config.log where it belongs
  22989. echo "$IBUS_PKG_ERRORS" >&5
  22990. have_ibus=no
  22991. elif test $pkg_failed = untried; then
  22992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22993. printf "%s\n" "no" >&6; }
  22994. have_ibus=no
  22995. else
  22996. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22997. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22999. printf "%s\n" "yes" >&6; }
  23000. have_ibus=yes
  23001. fi
  23002. save_CPPFLAGS="$CPPFLAGS"
  23003. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  23004. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  23005. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  23006. then :
  23007. have_ibus_ibus_h_hdr=yes
  23008. else $as_nop
  23009. have_ibus_ibus_h_hdr=no
  23010. fi
  23011. CPPFLAGS="$save_CPPFLAGS"
  23012. if test x$have_ibus_ibus_h_hdr = xyes; then
  23013. if test x$enable_ime != xyes; then
  23014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  23015. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  23016. have_ibus_ibus_h_hdr=no
  23017. elif test x$enable_dbus != xyes; then
  23018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  23019. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  23020. have_ibus_ibus_h_hdr=no
  23021. elif test x$have_inotify_inotify_h_hdr != xyes; then
  23022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23023. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23024. have_ibus_ibus_h_hdr=no
  23025. else
  23026. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23027. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23028. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23029. fi
  23030. fi
  23031. fi
  23032. }
  23033. CheckFcitx()
  23034. {
  23035. # Check whether --enable-fcitx was given.
  23036. if test ${enable_fcitx+y}
  23037. then :
  23038. enableval=$enable_fcitx;
  23039. else $as_nop
  23040. enable_fcitx=yes
  23041. fi
  23042. if test x$enable_fcitx = xyes; then
  23043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23044. printf %s "checking for fcitx support... " >&6; }
  23045. have_fcitx=no
  23046. if test x$enable_ime != xyes; then
  23047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23048. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23049. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23051. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23052. else
  23053. have_fcitx=yes
  23054. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23055. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23056. fi
  23057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23058. printf "%s\n" "$have_fcitx" >&6; }
  23059. fi
  23060. }
  23061. CheckJoystickMFI()
  23062. {
  23063. # Check whether --enable-joystick-mfi was given.
  23064. if test ${enable_joystick_mfi+y}
  23065. then :
  23066. enableval=$enable_joystick_mfi;
  23067. else $as_nop
  23068. enable_joystick_mfi=yes
  23069. fi
  23070. if test x$enable_joystick_mfi = xyes; then
  23071. save_CFLAGS="$CFLAGS"
  23072. save_LDFLAGS="$LDFLAGS"
  23073. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23074. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23076. printf %s "checking for GameController framework... " >&6; }
  23077. enable_joystick_mfi=no
  23078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23079. /* end confdefs.h. */
  23080. #include <AvailabilityMacros.h>
  23081. #include <TargetConditionals.h>
  23082. #import <GameController/GameController.h>
  23083. int
  23084. main (void)
  23085. {
  23086. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23087. #error GameController framework doesn't work on this configuration
  23088. #endif
  23089. #if TARGET_CPU_X86
  23090. #error GameController framework doesn't work on this configuration
  23091. #endif
  23092. ;
  23093. return 0;
  23094. }
  23095. _ACEOF
  23096. if ac_fn_c_try_link "$LINENO"
  23097. then :
  23098. enable_joystick_mfi=yes
  23099. fi
  23100. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23101. conftest$ac_exeext conftest.$ac_ext
  23102. CFLAGS="$save_CFLAGS"
  23103. LDFLAGS="$save_LDFLAGS"
  23104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23105. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23106. if test x$enable_joystick_mfi = xyes; then
  23107. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23108. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23109. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23110. fi
  23111. fi
  23112. }
  23113. CheckPTHREAD()
  23114. {
  23115. case "$host" in
  23116. *-*-emscripten*)
  23117. enable_pthreads_default=no
  23118. ;;
  23119. *)
  23120. enable_pthreads_default=yes
  23121. ;;
  23122. esac
  23123. # Check whether --enable-pthreads was given.
  23124. if test ${enable_pthreads+y}
  23125. then :
  23126. enableval=$enable_pthreads;
  23127. else $as_nop
  23128. enable_pthreads=maybe
  23129. fi
  23130. # Check whether --enable-pthread-sem was given.
  23131. if test ${enable_pthread_sem+y}
  23132. then :
  23133. enableval=$enable_pthread_sem;
  23134. else $as_nop
  23135. enable_pthread_sem=maybe
  23136. fi
  23137. if test x$enable_pthreads = xmaybe; then
  23138. enable_pthreads=$enable_pthreads_default
  23139. fi
  23140. if test x$enable_pthread_sem = xmaybe; then
  23141. enable_pthread_sem=$enable_pthreads
  23142. fi
  23143. case "$host" in
  23144. *-*-android*)
  23145. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23146. pthread_lib=""
  23147. ;;
  23148. *-*-linux*|*-*-uclinux*)
  23149. pthread_cflags="-D_REENTRANT"
  23150. pthread_lib="-lpthread"
  23151. ;;
  23152. *-*-bsdi*)
  23153. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23154. pthread_lib=""
  23155. ;;
  23156. *-*-darwin*)
  23157. pthread_cflags="-D_THREAD_SAFE"
  23158. # causes Carbon.p complaints?
  23159. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23160. ;;
  23161. *-*-freebsd*|*-*-dragonfly*)
  23162. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23163. pthread_lib="-pthread"
  23164. ;;
  23165. *-*-netbsd*)
  23166. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23167. pthread_lib="-lpthread"
  23168. ;;
  23169. *-*-openbsd*)
  23170. pthread_cflags="-D_REENTRANT"
  23171. pthread_lib="-pthread"
  23172. ;;
  23173. *-*-solaris2.9)
  23174. # From Solaris 9+, posix4's preferred name is rt.
  23175. pthread_cflags="-D_REENTRANT"
  23176. pthread_lib="-lpthread -lrt"
  23177. ;;
  23178. *-*-solaris2.10)
  23179. # Solaris 10+ merged pthread into libc.
  23180. pthread_cflags="-D_REENTRANT"
  23181. pthread_lib="-lrt"
  23182. ;;
  23183. *-*-solaris*)
  23184. # Solaris 11+ merged rt into libc.
  23185. pthread_cflags="-D_REENTRANT"
  23186. pthread_lib=""
  23187. ;;
  23188. *-*-sysv5*)
  23189. pthread_cflags="-D_REENTRANT -Kthread"
  23190. pthread_lib=""
  23191. ;;
  23192. *-*-aix*)
  23193. pthread_cflags="-D_REENTRANT -mthreads"
  23194. pthread_lib="-lpthread"
  23195. ;;
  23196. *-*-hpux11*)
  23197. pthread_cflags="-D_REENTRANT"
  23198. pthread_lib="-L/usr/lib -lpthread"
  23199. ;;
  23200. *-*-haiku*)
  23201. pthread_cflags="-D_REENTRANT"
  23202. pthread_lib=""
  23203. ;;
  23204. *-*-nto*)
  23205. pthread_cflags="-D_REENTRANT"
  23206. pthread_lib=""
  23207. ;;
  23208. *-*-emscripten*)
  23209. pthread_cflags="-D_REENTRANT -pthread"
  23210. pthread_lib="-pthread"
  23211. ;;
  23212. *)
  23213. pthread_cflags="-D_REENTRANT"
  23214. pthread_lib="-lpthread"
  23215. ;;
  23216. esac
  23217. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23218. # Save the original compiler flags and libraries
  23219. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23220. # Add the pthread compiler flags and libraries
  23221. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23222. # Check to see if we have pthread support on this system
  23223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23224. printf %s "checking for pthreads... " >&6; }
  23225. use_pthreads=no
  23226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23227. /* end confdefs.h. */
  23228. #include <pthread.h>
  23229. int
  23230. main (void)
  23231. {
  23232. pthread_attr_t type;
  23233. pthread_attr_init(&type);
  23234. ;
  23235. return 0;
  23236. }
  23237. _ACEOF
  23238. if ac_fn_c_try_link "$LINENO"
  23239. then :
  23240. use_pthreads=yes
  23241. fi
  23242. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23243. conftest$ac_exeext conftest.$ac_ext
  23244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23245. printf "%s\n" "$use_pthreads" >&6; }
  23246. # Restore the compiler flags and libraries
  23247. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23248. # Do futher testing if we have pthread support...
  23249. if test x$use_pthreads = xyes; then
  23250. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23251. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23252. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23253. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23254. # Save the original compiler flags and libraries
  23255. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23256. # Add the pthread compiler flags and libraries
  23257. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23258. # Check to see if recursive mutexes are available
  23259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23260. printf %s "checking for recursive mutexes... " >&6; }
  23261. has_recursive_mutexes=no
  23262. if test x$has_recursive_mutexes = xno; then
  23263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23264. /* end confdefs.h. */
  23265. #define _GNU_SOURCE 1
  23266. #include <pthread.h>
  23267. int
  23268. main (void)
  23269. {
  23270. pthread_mutexattr_t attr;
  23271. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23272. ;
  23273. return 0;
  23274. }
  23275. _ACEOF
  23276. if ac_fn_c_try_link "$LINENO"
  23277. then :
  23278. has_recursive_mutexes=yes
  23279. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23280. fi
  23281. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23282. conftest$ac_exeext conftest.$ac_ext
  23283. fi
  23284. if test x$has_recursive_mutexes = xno; then
  23285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23286. /* end confdefs.h. */
  23287. #define _GNU_SOURCE 1
  23288. #include <pthread.h>
  23289. int
  23290. main (void)
  23291. {
  23292. pthread_mutexattr_t attr;
  23293. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23294. ;
  23295. return 0;
  23296. }
  23297. _ACEOF
  23298. if ac_fn_c_try_link "$LINENO"
  23299. then :
  23300. has_recursive_mutexes=yes
  23301. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23302. fi
  23303. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23304. conftest$ac_exeext conftest.$ac_ext
  23305. fi
  23306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23307. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23308. # Check to see if pthread semaphore support is missing
  23309. if test x$enable_pthread_sem = xyes; then
  23310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23311. printf %s "checking for pthread semaphores... " >&6; }
  23312. have_pthread_sem=no
  23313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23314. /* end confdefs.h. */
  23315. #include <pthread.h>
  23316. #include <semaphore.h>
  23317. int
  23318. main (void)
  23319. {
  23320. ;
  23321. return 0;
  23322. }
  23323. _ACEOF
  23324. if ac_fn_c_try_compile "$LINENO"
  23325. then :
  23326. have_pthread_sem=yes
  23327. fi
  23328. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23330. printf "%s\n" "$have_pthread_sem" >&6; }
  23331. fi
  23332. if test x$have_pthread_sem = xyes; then
  23333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23334. printf %s "checking for sem_timedwait... " >&6; }
  23335. have_sem_timedwait=no
  23336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23337. /* end confdefs.h. */
  23338. #include <pthread.h>
  23339. #include <semaphore.h>
  23340. int
  23341. main (void)
  23342. {
  23343. sem_timedwait(NULL, NULL);
  23344. ;
  23345. return 0;
  23346. }
  23347. _ACEOF
  23348. if ac_fn_c_try_link "$LINENO"
  23349. then :
  23350. have_sem_timedwait=yes
  23351. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23352. fi
  23353. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23354. conftest$ac_exeext conftest.$ac_ext
  23355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23356. printf "%s\n" "$have_sem_timedwait" >&6; }
  23357. fi
  23358. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23359. "
  23360. if test "x$ac_cv_header_pthread_np_h" = xyes
  23361. then :
  23362. have_pthread_np_h=yes
  23363. else $as_nop
  23364. have_pthread_np_h=no
  23365. fi
  23366. if test x$have_pthread_np_h = xyes; then
  23367. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23368. fi
  23369. # Check to see if pthread naming is available
  23370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23371. printf %s "checking for pthread_setname_np... " >&6; }
  23372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23373. /* end confdefs.h. */
  23374. /* Override any GCC internal prototype to avoid an error.
  23375. Use char because int might match the return type of a GCC
  23376. builtin and then its argument prototype would still apply. */
  23377. char pthread_setname_np ();
  23378. int
  23379. main (void)
  23380. {
  23381. return pthread_setname_np ();
  23382. ;
  23383. return 0;
  23384. }
  23385. _ACEOF
  23386. if ac_fn_c_try_link "$LINENO"
  23387. then :
  23388. has_pthread_setname_np=yes
  23389. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23390. else $as_nop
  23391. has_pthread_setname_np=no
  23392. fi
  23393. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23394. conftest$ac_exeext conftest.$ac_ext
  23395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23396. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23398. printf %s "checking for pthread_set_name_np... " >&6; }
  23399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23400. /* end confdefs.h. */
  23401. /* Override any GCC internal prototype to avoid an error.
  23402. Use char because int might match the return type of a GCC
  23403. builtin and then its argument prototype would still apply. */
  23404. char pthread_set_name_np ();
  23405. int
  23406. main (void)
  23407. {
  23408. return pthread_set_name_np ();
  23409. ;
  23410. return 0;
  23411. }
  23412. _ACEOF
  23413. if ac_fn_c_try_link "$LINENO"
  23414. then :
  23415. has_pthread_set_name_np=yes
  23416. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23417. else $as_nop
  23418. has_pthread_set_name_np=no
  23419. fi
  23420. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23421. conftest$ac_exeext conftest.$ac_ext
  23422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23423. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23424. # Restore the compiler flags and libraries
  23425. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23426. # Basic thread creation functions
  23427. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23428. # Semaphores
  23429. # We can fake these with mutexes and condition variables if necessary
  23430. if test x$have_pthread_sem = xyes; then
  23431. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23432. else
  23433. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23434. fi
  23435. # Mutexes
  23436. # We can fake these with semaphores if necessary
  23437. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23438. # Condition variables
  23439. # We can fake these with semaphores and mutexes if necessary
  23440. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23441. # Thread local storage
  23442. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23443. have_threads=yes
  23444. fi
  23445. fi
  23446. }
  23447. CheckWINDOWS()
  23448. {
  23449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23450. printf %s "checking Windows compiler... " >&6; }
  23451. have_win32_gcc=no
  23452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23453. /* end confdefs.h. */
  23454. #include <windows.h>
  23455. int
  23456. main (void)
  23457. {
  23458. ;
  23459. return 0;
  23460. }
  23461. _ACEOF
  23462. if ac_fn_c_try_compile "$LINENO"
  23463. then :
  23464. have_win32_gcc=yes
  23465. fi
  23466. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23468. printf "%s\n" "$have_win32_gcc" >&6; }
  23469. if test x$have_win32_gcc != xyes; then
  23470. as_fn_error $? "
  23471. *** Your compiler ($CC) does not produce Windows executables!
  23472. " "$LINENO" 5
  23473. fi
  23474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23475. printf %s "checking Windows CE... " >&6; }
  23476. have_wince=no
  23477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23478. /* end confdefs.h. */
  23479. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23480. #error This is not Windows CE
  23481. #endif
  23482. int
  23483. main (void)
  23484. {
  23485. ;
  23486. return 0;
  23487. }
  23488. _ACEOF
  23489. if ac_fn_c_try_compile "$LINENO"
  23490. then :
  23491. have_wince=yes
  23492. as_fn_error $? "
  23493. *** Sorry, Windows CE is no longer supported.
  23494. " "$LINENO" 5
  23495. fi
  23496. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23498. printf "%s\n" "$have_wince" >&6; }
  23499. # This fixes Windows stack alignment with newer GCC
  23500. CheckStackBoundary
  23501. # headers needed elsewhere
  23502. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23503. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23504. then :
  23505. have_tpcshrd_h=yes
  23506. fi
  23507. if test x$have_tpcshrd_h = xyes; then
  23508. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23509. fi
  23510. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23511. if test "x$ac_cv_header_roapi_h" = xyes
  23512. then :
  23513. have_roapi_h=yes
  23514. fi
  23515. if test x$have_roapi_h = xyes; then
  23516. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23517. fi
  23518. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23519. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23520. then :
  23521. have_shellscalingapi_h=yes
  23522. fi
  23523. if test x$shellscalingapi_h = xyes; then
  23524. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23525. fi
  23526. }
  23527. CheckOS2()
  23528. {
  23529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23530. printf %s "checking OS/2 compiler... " >&6; }
  23531. have_os2_gcc=no
  23532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23533. /* end confdefs.h. */
  23534. #include <os2.h>
  23535. int
  23536. main (void)
  23537. {
  23538. ;
  23539. return 0;
  23540. }
  23541. _ACEOF
  23542. if ac_fn_c_try_compile "$LINENO"
  23543. then :
  23544. have_os2_gcc=yes
  23545. fi
  23546. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23548. printf "%s\n" "$have_os2_gcc" >&6; }
  23549. if test x$have_os2_gcc != xyes; then
  23550. as_fn_error $? "
  23551. *** Your compiler ($CC) does not produce OS/2 executables!
  23552. " "$LINENO" 5
  23553. fi
  23554. }
  23555. CheckDIRECTX()
  23556. {
  23557. # Check whether --enable-directx was given.
  23558. if test ${enable_directx+y}
  23559. then :
  23560. enableval=$enable_directx;
  23561. else $as_nop
  23562. enable_directx=yes
  23563. fi
  23564. if test x$enable_directx = xyes; then
  23565. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23566. if test "x$ac_cv_header_d3d9_h" = xyes
  23567. then :
  23568. have_d3d=yes
  23569. fi
  23570. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23571. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23572. then :
  23573. have_d3d11=yes
  23574. fi
  23575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23576. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23578. /* end confdefs.h. */
  23579. #include <winsdkver.h>
  23580. #include <sdkddkver.h>
  23581. #include <d3d12.h>
  23582. ID3D12Device1 *device;
  23583. #if WDK_NTDDI_VERSION <= 0x0A000008
  23584. asdf
  23585. #endif
  23586. int
  23587. main (void)
  23588. {
  23589. ;
  23590. return 0;
  23591. }
  23592. _ACEOF
  23593. if ac_fn_c_try_compile "$LINENO"
  23594. then :
  23595. have_d3d12=yes
  23596. else $as_nop
  23597. have_d3d12=no
  23598. fi
  23599. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23601. printf "%s\n" "$have_d3d12" >&6; }
  23602. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23603. if test "x$ac_cv_header_ddraw_h" = xyes
  23604. then :
  23605. have_ddraw=yes
  23606. fi
  23607. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23608. if test "x$ac_cv_header_dsound_h" = xyes
  23609. then :
  23610. have_dsound=yes
  23611. fi
  23612. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23613. if test "x$ac_cv_header_dinput_h" = xyes
  23614. then :
  23615. have_dinput=yes
  23616. fi
  23617. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23618. if test "x$ac_cv_header_dxgi_h" = xyes
  23619. then :
  23620. have_dxgi=yes
  23621. fi
  23622. if test x$have_ddraw = xyes; then
  23623. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23624. fi
  23625. if test x$have_dinput = xyes; then
  23626. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23627. fi
  23628. if test x$have_dsound = xyes; then
  23629. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23630. fi
  23631. if test x$have_dxgi = xyes; then
  23632. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23633. fi
  23634. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23635. # FIXME: ...so force it off for now.
  23636. case "$host" in
  23637. *-*-cygwin*)
  23638. have_dinput=false
  23639. ;;
  23640. esac
  23641. fi
  23642. # Check whether --enable-xinput was given.
  23643. if test ${enable_xinput+y}
  23644. then :
  23645. enableval=$enable_xinput;
  23646. else $as_nop
  23647. enable_xinput=yes
  23648. fi
  23649. if test x$enable_xinput = xyes; then
  23650. have_xinput_gamepadex=no
  23651. have_xinput_stateex=no
  23652. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23653. if test "x$ac_cv_header_xinput_h" = xyes
  23654. then :
  23655. have_xinput=yes
  23656. fi
  23657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23658. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23660. /* end confdefs.h. */
  23661. #include <windows.h>
  23662. #include <xinput.h>
  23663. XINPUT_GAMEPAD_EX x1;
  23664. int
  23665. main (void)
  23666. {
  23667. ;
  23668. return 0;
  23669. }
  23670. _ACEOF
  23671. if ac_fn_c_try_compile "$LINENO"
  23672. then :
  23673. have_xinput_gamepadex=yes
  23674. fi
  23675. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23677. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23679. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23681. /* end confdefs.h. */
  23682. #include <windows.h>
  23683. #include <xinput.h>
  23684. XINPUT_STATE_EX s1;
  23685. int
  23686. main (void)
  23687. {
  23688. ;
  23689. return 0;
  23690. }
  23691. _ACEOF
  23692. if ac_fn_c_try_compile "$LINENO"
  23693. then :
  23694. have_xinput_stateex=yes
  23695. fi
  23696. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23698. printf "%s\n" "$have_xinput_stateex" >&6; }
  23699. if test x$have_xinput = xyes; then
  23700. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23701. fi
  23702. if test x$have_xinput_gamepadex = xyes; then
  23703. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23704. fi
  23705. if test x$have_xinput_stateex = xyes; then
  23706. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23707. fi
  23708. fi
  23709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23710. printf %s "checking for windows.gaming.input.h... " >&6; }
  23711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23712. /* end confdefs.h. */
  23713. #define COBJMACROS
  23714. #include <windows.gaming.input.h>
  23715. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23716. int
  23717. main (void)
  23718. {
  23719. ;
  23720. return 0;
  23721. }
  23722. _ACEOF
  23723. if ac_fn_c_try_compile "$LINENO"
  23724. then :
  23725. have_wgi=yes
  23726. else $as_nop
  23727. have_wgi=no
  23728. fi
  23729. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23731. printf "%s\n" "$have_wgi" >&6; }
  23732. if test x$have_wgi = xyes; then
  23733. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23734. fi
  23735. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23736. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23737. then :
  23738. have_wasapi=yes
  23739. fi
  23740. if test x$have_wasapi = xyes; then
  23741. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23742. fi
  23743. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23744. if test "x$ac_cv_header_audioclient_h" = xyes
  23745. then :
  23746. else $as_nop
  23747. have_wasapi=no
  23748. fi
  23749. if test x$have_wasapi = xyes; then
  23750. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23751. fi
  23752. # Check whether --enable-wasapi was given.
  23753. if test ${enable_wasapi+y}
  23754. then :
  23755. enableval=$enable_wasapi;
  23756. else $as_nop
  23757. enable_wasapi=yes
  23758. fi
  23759. }
  23760. CheckDLOPEN()
  23761. {
  23762. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23763. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23764. if test "x$ac_cv_header_dlfcn_h" = xyes
  23765. then :
  23766. have_dlfcn_h=yes
  23767. else $as_nop
  23768. have_dlfcn_h=no
  23769. fi
  23770. have_dlopen=no
  23771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23772. printf %s "checking for dlopen in -lc... " >&6; }
  23773. if test ${ac_cv_lib_c_dlopen+y}
  23774. then :
  23775. printf %s "(cached) " >&6
  23776. else $as_nop
  23777. ac_check_lib_save_LIBS=$LIBS
  23778. LIBS="-lc $LIBS"
  23779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23780. /* end confdefs.h. */
  23781. /* Override any GCC internal prototype to avoid an error.
  23782. Use char because int might match the return type of a GCC
  23783. builtin and then its argument prototype would still apply. */
  23784. char dlopen ();
  23785. int
  23786. main (void)
  23787. {
  23788. return dlopen ();
  23789. ;
  23790. return 0;
  23791. }
  23792. _ACEOF
  23793. if ac_fn_c_try_link "$LINENO"
  23794. then :
  23795. ac_cv_lib_c_dlopen=yes
  23796. else $as_nop
  23797. ac_cv_lib_c_dlopen=no
  23798. fi
  23799. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23800. conftest$ac_exeext conftest.$ac_ext
  23801. LIBS=$ac_check_lib_save_LIBS
  23802. fi
  23803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23804. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23805. if test "x$ac_cv_lib_c_dlopen" = xyes
  23806. then :
  23807. have_dlopen=yes
  23808. else $as_nop
  23809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23810. printf %s "checking for dlopen in -ldl... " >&6; }
  23811. if test ${ac_cv_lib_dl_dlopen+y}
  23812. then :
  23813. printf %s "(cached) " >&6
  23814. else $as_nop
  23815. ac_check_lib_save_LIBS=$LIBS
  23816. LIBS="-ldl $LIBS"
  23817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23818. /* end confdefs.h. */
  23819. /* Override any GCC internal prototype to avoid an error.
  23820. Use char because int might match the return type of a GCC
  23821. builtin and then its argument prototype would still apply. */
  23822. char dlopen ();
  23823. int
  23824. main (void)
  23825. {
  23826. return dlopen ();
  23827. ;
  23828. return 0;
  23829. }
  23830. _ACEOF
  23831. if ac_fn_c_try_link "$LINENO"
  23832. then :
  23833. ac_cv_lib_dl_dlopen=yes
  23834. else $as_nop
  23835. ac_cv_lib_dl_dlopen=no
  23836. fi
  23837. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23838. conftest$ac_exeext conftest.$ac_ext
  23839. LIBS=$ac_check_lib_save_LIBS
  23840. fi
  23841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23842. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23843. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23844. then :
  23845. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23846. fi
  23847. fi
  23848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23849. printf %s "checking for dlopen... " >&6; }
  23850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23851. printf "%s\n" "$have_dlopen" >&6; }
  23852. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23853. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23854. if test x$enable_loadso = xyes; then
  23855. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23856. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23857. have_loadso=yes
  23858. fi
  23859. fi
  23860. }
  23861. CheckO_CLOEXEC()
  23862. {
  23863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23864. printf %s "checking for O_CLOEXEC... " >&6; }
  23865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23866. /* end confdefs.h. */
  23867. #include <fcntl.h>
  23868. int flag = O_CLOEXEC;
  23869. int
  23870. main (void)
  23871. {
  23872. ;
  23873. return 0;
  23874. }
  23875. _ACEOF
  23876. if ac_fn_c_try_compile "$LINENO"
  23877. then :
  23878. have_o_cloexec=yes
  23879. else $as_nop
  23880. have_o_cloexec=no
  23881. fi
  23882. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23884. printf "%s\n" "$have_o_cloexec" >&6; }
  23885. if test $have_o_cloexec = yes; then
  23886. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23887. fi
  23888. }
  23889. CheckUSBHID()
  23890. {
  23891. case "$host" in
  23892. *-*-*bsd*|*-*-dragonfly*)
  23893. if test x$enable_joystick = xyes; then
  23894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23895. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23896. if test ${ac_cv_lib_usbhid_hid_init+y}
  23897. then :
  23898. printf %s "(cached) " >&6
  23899. else $as_nop
  23900. ac_check_lib_save_LIBS=$LIBS
  23901. LIBS="-lusbhid $LIBS"
  23902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23903. /* end confdefs.h. */
  23904. /* Override any GCC internal prototype to avoid an error.
  23905. Use char because int might match the return type of a GCC
  23906. builtin and then its argument prototype would still apply. */
  23907. char hid_init ();
  23908. int
  23909. main (void)
  23910. {
  23911. return hid_init ();
  23912. ;
  23913. return 0;
  23914. }
  23915. _ACEOF
  23916. if ac_fn_c_try_link "$LINENO"
  23917. then :
  23918. ac_cv_lib_usbhid_hid_init=yes
  23919. else $as_nop
  23920. ac_cv_lib_usbhid_hid_init=no
  23921. fi
  23922. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23923. conftest$ac_exeext conftest.$ac_ext
  23924. LIBS=$ac_check_lib_save_LIBS
  23925. fi
  23926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23927. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23928. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23929. then :
  23930. have_libusbhid=yes
  23931. fi
  23932. if test x$have_libusbhid = xyes; then
  23933. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23934. if test "x$ac_cv_header_usbhid_h" = xyes
  23935. then :
  23936. USB_CFLAGS="-DHAVE_USBHID_H"
  23937. fi
  23938. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23939. if test "x$ac_cv_header_libusbhid_h" = xyes
  23940. then :
  23941. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23942. fi
  23943. USB_LIBS="$USB_LIBS -lusbhid"
  23944. else
  23945. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23946. if test "x$ac_cv_header_usb_h" = xyes
  23947. then :
  23948. USB_CFLAGS="-DHAVE_USB_H"
  23949. fi
  23950. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23951. if test "x$ac_cv_header_libusb_h" = xyes
  23952. then :
  23953. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23954. fi
  23955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23956. printf %s "checking for hid_init in -lusb... " >&6; }
  23957. if test ${ac_cv_lib_usb_hid_init+y}
  23958. then :
  23959. printf %s "(cached) " >&6
  23960. else $as_nop
  23961. ac_check_lib_save_LIBS=$LIBS
  23962. LIBS="-lusb $LIBS"
  23963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23964. /* end confdefs.h. */
  23965. /* Override any GCC internal prototype to avoid an error.
  23966. Use char because int might match the return type of a GCC
  23967. builtin and then its argument prototype would still apply. */
  23968. char hid_init ();
  23969. int
  23970. main (void)
  23971. {
  23972. return hid_init ();
  23973. ;
  23974. return 0;
  23975. }
  23976. _ACEOF
  23977. if ac_fn_c_try_link "$LINENO"
  23978. then :
  23979. ac_cv_lib_usb_hid_init=yes
  23980. else $as_nop
  23981. ac_cv_lib_usb_hid_init=no
  23982. fi
  23983. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23984. conftest$ac_exeext conftest.$ac_ext
  23985. LIBS=$ac_check_lib_save_LIBS
  23986. fi
  23987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23988. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23989. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23990. then :
  23991. USB_LIBS="$USB_LIBS -lusb"
  23992. fi
  23993. fi
  23994. save_CFLAGS="$CFLAGS"
  23995. CFLAGS="$CFLAGS $USB_CFLAGS"
  23996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23997. printf %s "checking for usbhid... " >&6; }
  23998. have_usbhid=no
  23999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24000. /* end confdefs.h. */
  24001. #include <sys/types.h>
  24002. #if defined(HAVE_USB_H)
  24003. #include <usb.h>
  24004. #endif
  24005. #ifdef __DragonFly__
  24006. # include <bus/u4b/usb.h>
  24007. # include <bus/u4b/usbhid.h>
  24008. #else
  24009. # include <dev/usb/usb.h>
  24010. # include <dev/usb/usbhid.h>
  24011. #endif
  24012. #if defined(HAVE_USBHID_H)
  24013. #include <usbhid.h>
  24014. #elif defined(HAVE_LIBUSB_H)
  24015. #include <libusb.h>
  24016. #elif defined(HAVE_LIBUSBHID_H)
  24017. #include <libusbhid.h>
  24018. #endif
  24019. int
  24020. main (void)
  24021. {
  24022. struct report_desc *repdesc;
  24023. struct usb_ctl_report *repbuf;
  24024. hid_kind_t hidkind;
  24025. ;
  24026. return 0;
  24027. }
  24028. _ACEOF
  24029. if ac_fn_c_try_compile "$LINENO"
  24030. then :
  24031. have_usbhid=yes
  24032. fi
  24033. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24035. printf "%s\n" "$have_usbhid" >&6; }
  24036. if test x$have_usbhid = xyes; then
  24037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24038. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24039. have_usbhid_ucr_data=no
  24040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24041. /* end confdefs.h. */
  24042. #include <sys/types.h>
  24043. #if defined(HAVE_USB_H)
  24044. #include <usb.h>
  24045. #endif
  24046. #ifdef __DragonFly__
  24047. # include <bus/u4b/usb.h>
  24048. # include <bus/u4b/usbhid.h>
  24049. #else
  24050. # include <dev/usb/usb.h>
  24051. # include <dev/usb/usbhid.h>
  24052. #endif
  24053. #if defined(HAVE_USBHID_H)
  24054. #include <usbhid.h>
  24055. #elif defined(HAVE_LIBUSB_H)
  24056. #include <libusb.h>
  24057. #elif defined(HAVE_LIBUSBHID_H)
  24058. #include <libusbhid.h>
  24059. #endif
  24060. int
  24061. main (void)
  24062. {
  24063. struct usb_ctl_report buf;
  24064. if (buf.ucr_data) { }
  24065. ;
  24066. return 0;
  24067. }
  24068. _ACEOF
  24069. if ac_fn_c_try_compile "$LINENO"
  24070. then :
  24071. have_usbhid_ucr_data=yes
  24072. fi
  24073. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24074. if test x$have_usbhid_ucr_data = xyes; then
  24075. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24076. fi
  24077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24078. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24080. printf %s "checking for new usbhid API... " >&6; }
  24081. have_usbhid_new=no
  24082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24083. /* end confdefs.h. */
  24084. #include <sys/types.h>
  24085. #if defined(HAVE_USB_H)
  24086. #include <usb.h>
  24087. #endif
  24088. #ifdef __DragonFly__
  24089. #include <bus/u4b/usb.h>
  24090. #include <bus/u4b/usbhid.h>
  24091. #else
  24092. #include <dev/usb/usb.h>
  24093. #include <dev/usb/usbhid.h>
  24094. #endif
  24095. #if defined(HAVE_USBHID_H)
  24096. #include <usbhid.h>
  24097. #elif defined(HAVE_LIBUSB_H)
  24098. #include <libusb.h>
  24099. #elif defined(HAVE_LIBUSBHID_H)
  24100. #include <libusbhid.h>
  24101. #endif
  24102. int
  24103. main (void)
  24104. {
  24105. report_desc_t d;
  24106. hid_start_parse(d, 1, 1);
  24107. ;
  24108. return 0;
  24109. }
  24110. _ACEOF
  24111. if ac_fn_c_try_compile "$LINENO"
  24112. then :
  24113. have_usbhid_new=yes
  24114. fi
  24115. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24116. if test x$have_usbhid_new = xyes; then
  24117. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24118. fi
  24119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24120. printf "%s\n" "$have_usbhid_new" >&6; }
  24121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24122. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24123. have_machine_joystick=no
  24124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24125. /* end confdefs.h. */
  24126. #include <machine/joystick.h>
  24127. int
  24128. main (void)
  24129. {
  24130. struct joystick t;
  24131. ;
  24132. return 0;
  24133. }
  24134. _ACEOF
  24135. if ac_fn_c_try_compile "$LINENO"
  24136. then :
  24137. have_machine_joystick=yes
  24138. fi
  24139. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24140. if test x$have_machine_joystick = xyes; then
  24141. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24142. fi
  24143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24144. printf "%s\n" "$have_machine_joystick" >&6; }
  24145. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24146. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24147. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24148. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24149. have_joystick=yes
  24150. fi
  24151. CFLAGS="$save_CFLAGS"
  24152. fi
  24153. ;;
  24154. esac
  24155. }
  24156. CheckHIDAPI()
  24157. {
  24158. # Check whether --enable-hidapi-joystick was given.
  24159. if test ${enable_hidapi_joystick+y}
  24160. then :
  24161. enableval=$enable_hidapi_joystick;
  24162. else $as_nop
  24163. enable_hidapi_joystick=yes
  24164. fi
  24165. # Check whether --enable-hidapi-libusb was given.
  24166. if test ${enable_hidapi_libusb+y}
  24167. then :
  24168. enableval=$enable_hidapi_libusb;
  24169. else $as_nop
  24170. enable_hidapi_libusb=maybe
  24171. fi
  24172. if test x$enable_hidapi = xyes; then
  24173. case "$host" in
  24174. # libusb does not support iOS
  24175. *-ios-* )
  24176. enable_hidapi_libusb=no
  24177. ;;
  24178. # On the other hand, *BSD specifically uses libusb only
  24179. *-*-*bsd* )
  24180. enable_hidapi_libusb=yes
  24181. require_hidapi_libusb=yes
  24182. ;;
  24183. *-*-os2* )
  24184. enable_hidapi_libusb=yes
  24185. ;;
  24186. esac
  24187. hidapi_support=yes
  24188. if test x$enable_hidapi_libusb = xyes; then
  24189. pkg_failed=no
  24190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24191. printf %s "checking for libusb-1.0... " >&6; }
  24192. if test -n "$LIBUSB_CFLAGS"; then
  24193. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24194. elif test -n "$PKG_CONFIG"; then
  24195. if test -n "$PKG_CONFIG" && \
  24196. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24197. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24198. ac_status=$?
  24199. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24200. test $ac_status = 0; }; then
  24201. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24202. test "x$?" != "x0" && pkg_failed=yes
  24203. else
  24204. pkg_failed=yes
  24205. fi
  24206. else
  24207. pkg_failed=untried
  24208. fi
  24209. if test -n "$LIBUSB_LIBS"; then
  24210. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24211. elif test -n "$PKG_CONFIG"; then
  24212. if test -n "$PKG_CONFIG" && \
  24213. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24214. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24215. ac_status=$?
  24216. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24217. test $ac_status = 0; }; then
  24218. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24219. test "x$?" != "x0" && pkg_failed=yes
  24220. else
  24221. pkg_failed=yes
  24222. fi
  24223. else
  24224. pkg_failed=untried
  24225. fi
  24226. if test $pkg_failed = yes; then
  24227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24228. printf "%s\n" "no" >&6; }
  24229. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24230. _pkg_short_errors_supported=yes
  24231. else
  24232. _pkg_short_errors_supported=no
  24233. fi
  24234. if test $_pkg_short_errors_supported = yes; then
  24235. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24236. else
  24237. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24238. fi
  24239. # Put the nasty error message in config.log where it belongs
  24240. echo "$LIBUSB_PKG_ERRORS" >&5
  24241. have_libusb=no
  24242. elif test $pkg_failed = untried; then
  24243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24244. printf "%s\n" "no" >&6; }
  24245. have_libusb=no
  24246. else
  24247. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24248. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24250. printf "%s\n" "yes" >&6; }
  24251. have_libusb=yes
  24252. fi
  24253. save_CPPFLAGS="$CPPFLAGS"
  24254. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24255. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24256. if test "x$ac_cv_header_libusb_h" = xyes
  24257. then :
  24258. have_libusb_h=yes
  24259. else $as_nop
  24260. have_libusb_h=no
  24261. fi
  24262. CPPFLAGS="$save_CPPFLAGS"
  24263. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24264. hidapi_support=no
  24265. fi
  24266. fi
  24267. if test x$hidapi_support = xyes; then
  24268. if test x$have_libusb_h = xyes; then
  24269. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24270. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24271. if test x$require_hidapi_libusb = xyes; then
  24272. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24273. else
  24274. if test x$have_loadso != xyes; then
  24275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24276. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24277. fi
  24278. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24279. libusb_lib=""
  24280. case "$host" in
  24281. *-*-darwin* )
  24282. libusb_lib="libusb-1.0.0.dylib"
  24283. ;;
  24284. *-*-cygwin* | *-*-mingw* )
  24285. libusb_lib="libusb-1.0.dll"
  24286. ;;
  24287. *-*-os2* )
  24288. libusb_lib="usb100.dll"
  24289. ;;
  24290. esac
  24291. if test x$libusb_lib = x; then
  24292. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24293. fi
  24294. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24295. fi
  24296. fi
  24297. fi
  24298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24299. printf %s "checking for hidapi joystick support... " >&6; }
  24300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24301. printf "%s\n" "$hidapi_support" >&6; }
  24302. fi
  24303. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24304. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24305. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24306. fi
  24307. }
  24308. CheckClockGettime()
  24309. {
  24310. # Check whether --enable-clock_gettime was given.
  24311. if test ${enable_clock_gettime+y}
  24312. then :
  24313. enableval=$enable_clock_gettime;
  24314. else $as_nop
  24315. enable_clock_gettime=yes
  24316. fi
  24317. if test x$enable_clock_gettime = xyes; then
  24318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24319. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24320. if test ${ac_cv_lib_rt_clock_gettime+y}
  24321. then :
  24322. printf %s "(cached) " >&6
  24323. else $as_nop
  24324. ac_check_lib_save_LIBS=$LIBS
  24325. LIBS="-lrt $LIBS"
  24326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24327. /* end confdefs.h. */
  24328. /* Override any GCC internal prototype to avoid an error.
  24329. Use char because int might match the return type of a GCC
  24330. builtin and then its argument prototype would still apply. */
  24331. char clock_gettime ();
  24332. int
  24333. main (void)
  24334. {
  24335. return clock_gettime ();
  24336. ;
  24337. return 0;
  24338. }
  24339. _ACEOF
  24340. if ac_fn_c_try_link "$LINENO"
  24341. then :
  24342. ac_cv_lib_rt_clock_gettime=yes
  24343. else $as_nop
  24344. ac_cv_lib_rt_clock_gettime=no
  24345. fi
  24346. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24347. conftest$ac_exeext conftest.$ac_ext
  24348. LIBS=$ac_check_lib_save_LIBS
  24349. fi
  24350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24351. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24352. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24353. then :
  24354. have_clock_gettime=yes
  24355. fi
  24356. if test x$have_clock_gettime = xyes; then
  24357. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24358. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24359. else
  24360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24361. printf %s "checking for clock_gettime in -lc... " >&6; }
  24362. if test ${ac_cv_lib_c_clock_gettime+y}
  24363. then :
  24364. printf %s "(cached) " >&6
  24365. else $as_nop
  24366. ac_check_lib_save_LIBS=$LIBS
  24367. LIBS="-lc $LIBS"
  24368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24369. /* end confdefs.h. */
  24370. /* Override any GCC internal prototype to avoid an error.
  24371. Use char because int might match the return type of a GCC
  24372. builtin and then its argument prototype would still apply. */
  24373. char clock_gettime ();
  24374. int
  24375. main (void)
  24376. {
  24377. return clock_gettime ();
  24378. ;
  24379. return 0;
  24380. }
  24381. _ACEOF
  24382. if ac_fn_c_try_link "$LINENO"
  24383. then :
  24384. ac_cv_lib_c_clock_gettime=yes
  24385. else $as_nop
  24386. ac_cv_lib_c_clock_gettime=no
  24387. fi
  24388. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24389. conftest$ac_exeext conftest.$ac_ext
  24390. LIBS=$ac_check_lib_save_LIBS
  24391. fi
  24392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24393. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24394. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24395. then :
  24396. have_clock_gettime=yes
  24397. fi
  24398. if test x$have_clock_gettime = xyes; then
  24399. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24400. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24401. fi
  24402. fi
  24403. fi
  24404. }
  24405. CheckLinuxVersion()
  24406. {
  24407. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24408. if test "x$ac_cv_header_linux_version_h" = xyes
  24409. then :
  24410. have_linux_version_h=yes
  24411. fi
  24412. if test x$have_linux_version_h = xyes; then
  24413. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24414. fi
  24415. }
  24416. CheckRPATH()
  24417. {
  24418. # Check whether --enable-rpath was given.
  24419. if test ${enable_rpath+y}
  24420. then :
  24421. enableval=$enable_rpath;
  24422. else $as_nop
  24423. enable_rpath=yes
  24424. fi
  24425. }
  24426. CheckEventSignals()
  24427. {
  24428. # Check whether --enable-backgrounding-signal was given.
  24429. if test ${enable_backgrounding_signal+y}
  24430. then :
  24431. enableval=$enable_backgrounding_signal;
  24432. else $as_nop
  24433. enable_backgrounding_signal=no
  24434. fi
  24435. if test x$enable_backgrounding_signal != xno; then
  24436. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24437. fi
  24438. # Check whether --enable-foregrounding-signal was given.
  24439. if test ${enable_foregrounding_signal+y}
  24440. then :
  24441. enableval=$enable_foregrounding_signal;
  24442. else $as_nop
  24443. enable_foregrounding_signal=no
  24444. fi
  24445. if test x$enable_foregrounding_signal != xno; then
  24446. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24447. fi
  24448. }
  24449. CheckVirtualJoystick()
  24450. {
  24451. # Check whether --enable-joystick-virtual was given.
  24452. if test ${enable_joystick_virtual+y}
  24453. then :
  24454. enableval=$enable_joystick_virtual;
  24455. else $as_nop
  24456. enable_joystick_virtual=yes
  24457. fi
  24458. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24459. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24460. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24461. have_joystick_virtual=yes
  24462. fi
  24463. }
  24464. CheckWarnAll
  24465. CheckNoStrictAliasing
  24466. CheckEventSignals
  24467. have_locale=no
  24468. case "$host" in
  24469. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24470. case "$host" in
  24471. *-*-android*)
  24472. # Android
  24473. ARCH=android
  24474. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24475. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24476. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24477. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24478. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24479. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24480. if test x$enable_video = xyes; then
  24481. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24482. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24483. SUMMARY_video="${SUMMARY_video} android"
  24484. have_video=yes
  24485. fi
  24486. ;;
  24487. *-*-linux*) ARCH=linux ;;
  24488. *-*-uclinux*) ARCH=linux ;;
  24489. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24490. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24491. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24492. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24493. *-*-bsdi*) ARCH=bsdi ;;
  24494. *-*-freebsd*) ARCH=freebsd ;;
  24495. *-*-dragonfly*) ARCH=freebsd ;;
  24496. *-*-netbsd*) ARCH=netbsd ;;
  24497. *-*-openbsd*) ARCH=openbsd ;;
  24498. *-*-sysv5*) ARCH=sysv5 ;;
  24499. *-*-solaris*) ARCH=solaris ;;
  24500. *-*-hpux*) ARCH=hpux ;;
  24501. *-*-aix*) ARCH=aix ;;
  24502. *-*-minix*) ARCH=minix ;;
  24503. *-*-nto*) ARCH=nto
  24504. CheckQNXVideo
  24505. ;;
  24506. esac
  24507. CheckVisibilityHidden
  24508. CheckWerror
  24509. CheckDeclarationAfterStatement
  24510. CheckDummyVideo
  24511. CheckOffscreenVideo
  24512. CheckDiskAudio
  24513. CheckDummyAudio
  24514. CheckDLOPEN
  24515. CheckARM
  24516. CheckNEON
  24517. CheckO_CLOEXEC
  24518. CheckOSS
  24519. CheckALSA
  24520. CheckPipewire
  24521. CheckPulseAudio
  24522. CheckJACK
  24523. CheckARTSC
  24524. CheckESD
  24525. CheckNAS
  24526. CheckSNDIO
  24527. CheckFusionSound
  24528. CheckLibSampleRate
  24529. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24530. CheckRPI
  24531. CheckX11
  24532. CheckDirectFB
  24533. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24534. CheckEGL
  24535. CheckKMSDRM
  24536. CheckGLX
  24537. CheckOpenGL
  24538. CheckOpenGLES
  24539. CheckVulkan
  24540. CheckWayland
  24541. CheckInputEvents
  24542. CheckLibUDev
  24543. CheckDBus
  24544. CheckIME
  24545. CheckInotify
  24546. CheckIBus
  24547. CheckFcitx
  24548. case $ARCH in
  24549. linux)
  24550. CheckInputKD
  24551. ;;
  24552. freebsd)
  24553. CheckInputKBIO
  24554. ;;
  24555. openbsd|netbsd)
  24556. CheckInputWSCONS
  24557. ;;
  24558. esac
  24559. CheckUSBHID
  24560. CheckHIDAPI
  24561. CheckPTHREAD
  24562. CheckClockGettime
  24563. CheckLinuxVersion
  24564. CheckRPATH
  24565. CheckVivanteVideo
  24566. # Set up files for the misc library
  24567. if test x$enable_misc = xyes; then
  24568. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24569. have_misc=yes
  24570. fi
  24571. # Set up files for the locale library
  24572. if test x$enable_locale = xyes; then
  24573. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24574. have_locale=yes
  24575. fi
  24576. # Set up files for the audio library
  24577. if test x$enable_audio = xyes; then
  24578. case $ARCH in
  24579. sysv5|solaris|hpux)
  24580. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24581. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24582. SUMMARY_audio="${SUMMARY_audio} sun"
  24583. have_audio=yes
  24584. ;;
  24585. netbsd) # Don't use this on OpenBSD, it's busted.
  24586. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24587. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24588. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24589. have_audio=yes
  24590. ;;
  24591. aix)
  24592. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24593. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24594. SUMMARY_audio="${SUMMARY_audio} paudio"
  24595. have_audio=yes
  24596. ;;
  24597. android)
  24598. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24599. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24600. SUMMARY_audio="${SUMMARY_audio} android"
  24601. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24602. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24603. SUMMARY_audio="${SUMMARY_audio} openslES"
  24604. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24605. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24606. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24607. have_audio=yes
  24608. ;;
  24609. nto)
  24610. CheckQNXAudio
  24611. ;;
  24612. esac
  24613. fi
  24614. # Set up files for the joystick library
  24615. if test x$enable_joystick = xyes; then
  24616. case $ARCH in
  24617. linux)
  24618. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24619. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24620. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24621. have_joystick=yes
  24622. ;;
  24623. freebsd)
  24624. if test x$use_input_events = xyes; then
  24625. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24626. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24627. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24628. have_joystick=yes
  24629. fi
  24630. ;;
  24631. android)
  24632. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24633. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24634. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24635. have_joystick=yes
  24636. ;;
  24637. esac
  24638. fi
  24639. # Set up files for the haptic library
  24640. if test x$enable_haptic = xyes; then
  24641. case $ARCH in
  24642. linux|freebsd)
  24643. if test x$use_input_events = xyes; then
  24644. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24645. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24646. have_haptic=yes
  24647. fi
  24648. ;;
  24649. android)
  24650. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24651. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24652. have_haptic=yes
  24653. ;;
  24654. esac
  24655. fi
  24656. # Set up files for the sensor library
  24657. if test x$enable_sensor = xyes; then
  24658. case $ARCH in
  24659. android)
  24660. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24661. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24662. have_sensor=yes
  24663. ;;
  24664. esac
  24665. fi
  24666. # Set up files for the power library
  24667. if test x$enable_power = xyes; then
  24668. case $ARCH in
  24669. linux)
  24670. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24671. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24672. have_power=yes
  24673. ;;
  24674. android)
  24675. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24676. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24677. have_power=yes
  24678. ;;
  24679. esac
  24680. fi
  24681. # Set up files for the filesystem library
  24682. if test x$enable_filesystem = xyes; then
  24683. case $ARCH in
  24684. android)
  24685. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24686. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24687. have_filesystem=yes
  24688. ;;
  24689. *)
  24690. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24691. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24692. have_filesystem=yes
  24693. ;;
  24694. esac
  24695. fi
  24696. # Set up files for the timer library
  24697. if test x$enable_timers = xyes; then
  24698. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24699. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24700. have_timers=yes
  24701. fi
  24702. # Set up files for udev hotplugging support
  24703. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24704. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24705. fi
  24706. # Set up files for evdev input
  24707. if test x$use_input_events = xyes; then
  24708. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24709. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24710. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24711. fi
  24712. # Set up files for wscons input
  24713. if test x$use_input_wscons = xyes; then
  24714. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24715. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24716. fi
  24717. # Set up other core UNIX files
  24718. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24719. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24720. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24721. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24722. ;;
  24723. *-*-cygwin* | *-*-mingw*)
  24724. ARCH=win32
  24725. if test "$build" != "$host"; then # cross-compiling
  24726. # Default cross-compile location
  24727. ac_default_prefix=/usr/local/cross-tools/$host
  24728. else
  24729. # Look for the location of the tools and install there
  24730. if test "$BUILD_PREFIX" != ""; then
  24731. ac_default_prefix=$BUILD_PREFIX
  24732. fi
  24733. fi
  24734. if test x$enable_loadso = xyes; then
  24735. have_loadso=yes
  24736. fi
  24737. CheckGDwarf4
  24738. CheckWerror
  24739. CheckDeclarationAfterStatement
  24740. CheckDummyVideo
  24741. CheckOffscreenVideo
  24742. CheckDiskAudio
  24743. CheckDummyAudio
  24744. CheckWINDOWS
  24745. CheckWINDOWSGL
  24746. CheckWINDOWSGLES
  24747. CheckVulkan
  24748. CheckDIRECTX
  24749. CheckHIDAPI
  24750. # Set up the core platform files
  24751. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24752. # Set up files for the misc library
  24753. if test x$enable_misc = xyes; then
  24754. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24755. have_misc=yes
  24756. fi
  24757. # Use the Windows locale APIs.
  24758. if test x$enable_locale = xyes; then
  24759. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24760. have_locale=yes
  24761. fi
  24762. # Set up files for the video library
  24763. if test x$enable_video = xyes; then
  24764. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24765. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24766. have_video=yes
  24767. # Check whether --enable-render-d3d was given.
  24768. if test ${enable_render_d3d+y}
  24769. then :
  24770. enableval=$enable_render_d3d;
  24771. else $as_nop
  24772. enable_render_d3d=yes
  24773. fi
  24774. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24775. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24776. SUMMARY_video="${SUMMARY_video} d3d9"
  24777. fi
  24778. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24779. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24780. SUMMARY_video="${SUMMARY_video} d3d11"
  24781. fi
  24782. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24783. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24784. SUMMARY_video="${SUMMARY_video} d3d12"
  24785. fi
  24786. fi
  24787. # Set up files for the audio library
  24788. if test x$enable_audio = xyes; then
  24789. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24790. SUMMARY_audio="${SUMMARY_audio} winmm"
  24791. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24792. if test x$have_dsound = xyes; then
  24793. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24794. SUMMARY_audio="${SUMMARY_audio} directsound"
  24795. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24796. fi
  24797. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24798. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24799. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24800. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24801. fi
  24802. have_audio=yes
  24803. fi
  24804. # Set up files for the joystick library
  24805. if test x$enable_joystick = xyes; then
  24806. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24807. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24808. if test x$have_xinput = xyes; then
  24809. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24810. fi
  24811. if test x$have_wgi = xyes; then
  24812. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24813. fi
  24814. if test x$have_dinput = xyes; then
  24815. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24816. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24817. fi
  24818. fi
  24819. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24820. have_joystick=yes
  24821. fi
  24822. if test x$enable_haptic = xyes; then
  24823. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24824. if test x$have_xinput = xyes; then
  24825. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24826. fi
  24827. if test x$have_dinput = xyes; then
  24828. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24829. fi
  24830. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24831. have_haptic=yes
  24832. fi
  24833. fi
  24834. # Set up files for the sensor library
  24835. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24836. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24837. then :
  24838. have_winsensors=yes
  24839. else $as_nop
  24840. have_winsensors=no
  24841. fi
  24842. if test x$have_winsensors = xyes; then
  24843. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24844. fi
  24845. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24846. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24847. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24848. have_sensor=yes
  24849. fi
  24850. # Set up files for the power library
  24851. if test x$enable_power = xyes; then
  24852. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24853. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24854. have_power=yes
  24855. fi
  24856. # Set up files for the filesystem library
  24857. if test x$enable_filesystem = xyes; then
  24858. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24859. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24860. have_filesystem=yes
  24861. fi
  24862. # Set up files for the thread library
  24863. if test x$enable_threads = xyes; then
  24864. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24865. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24866. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24867. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24868. have_threads=yes
  24869. fi
  24870. # Set up files for the timer library
  24871. if test x$enable_timers = xyes; then
  24872. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24873. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24874. have_timers=yes
  24875. fi
  24876. # Set up files for the shared object loading library
  24877. if test x$enable_loadso = xyes; then
  24878. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24879. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24880. fi
  24881. # Set up the system libraries we need
  24882. if test -f /lib/w32api/libuuid.a; then
  24883. LIBUUID=/lib/w32api/libuuid.a
  24884. else
  24885. LIBUUID=-luuid
  24886. fi
  24887. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24888. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24889. # The Windows platform requires special setup
  24890. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24891. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24892. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24893. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24894. # Check to see if this is a mingw or cygwin build
  24895. have_mingw32=
  24896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24897. printf %s "checking for main in -lmingw32... " >&6; }
  24898. if test ${ac_cv_lib_mingw32_main+y}
  24899. then :
  24900. printf %s "(cached) " >&6
  24901. else $as_nop
  24902. ac_check_lib_save_LIBS=$LIBS
  24903. LIBS="-lmingw32 $LIBS"
  24904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24905. /* end confdefs.h. */
  24906. int
  24907. main (void)
  24908. {
  24909. return main ();
  24910. ;
  24911. return 0;
  24912. }
  24913. _ACEOF
  24914. if ac_fn_c_try_link "$LINENO"
  24915. then :
  24916. ac_cv_lib_mingw32_main=yes
  24917. else $as_nop
  24918. ac_cv_lib_mingw32_main=no
  24919. fi
  24920. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24921. conftest$ac_exeext conftest.$ac_ext
  24922. LIBS=$ac_check_lib_save_LIBS
  24923. fi
  24924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24925. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24926. if test "x$ac_cv_lib_mingw32_main" = xyes
  24927. then :
  24928. have_mingw32=yes
  24929. fi
  24930. if test x$have_mingw32 = xyes; then
  24931. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24932. else
  24933. SDL_LIBS="-lcygwin $SDL_LIBS"
  24934. fi
  24935. ;;
  24936. *-*-beos*)
  24937. as_fn_error $? "
  24938. *** BeOS support has been removed as of SDL 2.0.2.
  24939. " "$LINENO" 5
  24940. ;;
  24941. *-*-haiku*)
  24942. ARCH=haiku
  24943. ac_default_prefix=/boot/system
  24944. CheckDummyVideo
  24945. CheckOffscreenVideo
  24946. CheckDiskAudio
  24947. CheckDummyAudio
  24948. CheckDLOPEN
  24949. CheckO_CLOEXEC
  24950. CheckHaikuVideo
  24951. CheckHaikuGL
  24952. CheckPTHREAD
  24953. # Set up files for the audio library
  24954. if test x$enable_audio = xyes; then
  24955. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24956. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24957. SUMMARY_audio="${SUMMARY_audio} haiku"
  24958. have_audio=yes
  24959. fi
  24960. # Set up files for the joystick library
  24961. if test x$enable_joystick = xyes; then
  24962. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24963. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24964. have_joystick=yes
  24965. fi
  24966. # Set up files for the timer library
  24967. if test x$enable_timers = xyes; then
  24968. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24969. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24970. have_timers=yes
  24971. fi
  24972. # Set up files for the system power library
  24973. if test x$enable_power = xyes; then
  24974. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24975. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24976. have_power=yes
  24977. fi
  24978. # Set up files for the system filesystem library
  24979. if test x$enable_filesystem = xyes; then
  24980. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24981. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24982. have_filesystem=yes
  24983. fi
  24984. # Set up files for the misc library
  24985. if test x$enable_misc = xyes; then
  24986. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24987. have_misc=yes
  24988. fi
  24989. # Set up files for the locale library
  24990. if test x$enable_locale = xyes; then
  24991. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24992. have_locale=yes
  24993. fi
  24994. # The Haiku platform requires special setup.
  24995. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24996. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24997. ;;
  24998. *-ios-*)
  24999. ARCH=ios
  25000. CheckVisibilityHidden
  25001. CheckWerror
  25002. CheckNoErrorDeprecatedDeclarationsWerror
  25003. CheckDeclarationAfterStatement
  25004. CheckDummyVideo
  25005. CheckOffscreenVideo
  25006. CheckDiskAudio
  25007. CheckDummyAudio
  25008. CheckDLOPEN
  25009. CheckO_CLOEXEC
  25010. CheckMETAL
  25011. CheckVulkan
  25012. CheckPTHREAD
  25013. # Set up files for the misc library
  25014. if test x$enable_misc = xyes; then
  25015. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  25016. have_misc=yes
  25017. fi
  25018. # Set up files for the locale library
  25019. if test x$enable_locale = xyes; then
  25020. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25021. have_locale=yes
  25022. fi
  25023. # Set up files for the audio library
  25024. if test x$enable_audio = xyes; then
  25025. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25026. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25027. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25028. have_audio=yes
  25029. fi
  25030. # Set up files for the joystick library
  25031. if test x$enable_joystick = xyes; then
  25032. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25033. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25034. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25035. have_joystick=yes
  25036. else
  25037. # Need this code for accelerometer as joystick support
  25038. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25039. fi
  25040. # Set up files for the haptic library
  25041. #if test x$enable_haptic = xyes; then
  25042. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25043. # have_haptic=yes
  25044. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25045. #fi
  25046. # Set up files for the sensor library
  25047. if test x$enable_sensor = xyes; then
  25048. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25049. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25050. have_sensor=yes
  25051. fi
  25052. # Set up files for the power library
  25053. if test x$enable_power = xyes; then
  25054. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25055. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25056. have_power=yes
  25057. fi
  25058. # Set up files for the filesystem library
  25059. if test x$enable_filesystem = xyes; then
  25060. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25061. have_filesystem=yes
  25062. fi
  25063. # Set up additional files for the file library
  25064. if test x$enable_file = xyes; then
  25065. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25066. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25067. fi
  25068. # Set up files for the timer library
  25069. if test x$enable_timers = xyes; then
  25070. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25071. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25072. have_timers=yes
  25073. fi
  25074. # Set up other core UNIX files
  25075. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25076. # The iOS platform requires special setup.
  25077. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25078. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25079. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25080. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25081. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25082. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25083. SUMMARY_video="${SUMMARY_video} uikit"
  25084. have_video=yes
  25085. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25086. if test x$enable_system_iconv = xyes; then
  25087. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25088. fi
  25089. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25090. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25091. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25092. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25093. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25094. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25095. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25096. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25097. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25098. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25099. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25100. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25101. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25102. fi
  25103. ;;
  25104. *-*-darwin* )
  25105. # This could be either full "Mac OS X", or plain "Darwin" which is
  25106. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25107. # Next line is broken, and a few files below require Mac OS X (full)
  25108. ARCH=macosx
  25109. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25110. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25111. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25112. CheckObjectiveCARC
  25113. CheckVisibilityHidden
  25114. CheckWerror
  25115. CheckNoErrorDeprecatedDeclarationsWerror
  25116. CheckDeclarationAfterStatement
  25117. CheckDummyVideo
  25118. CheckOffscreenVideo
  25119. CheckDiskAudio
  25120. CheckDummyAudio
  25121. CheckDLOPEN
  25122. CheckO_CLOEXEC
  25123. CheckCOCOA
  25124. CheckMETAL
  25125. CheckX11
  25126. CheckMacGL
  25127. CheckMacGLES
  25128. CheckGLX
  25129. CheckOpenGL
  25130. CheckVulkan
  25131. CheckPTHREAD
  25132. CheckHIDAPI
  25133. # Set up files for the misc library
  25134. if test x$enable_misc = xyes; then
  25135. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25136. have_misc=yes
  25137. fi
  25138. # Set up files for the locale library
  25139. if test x$enable_locale = xyes; then
  25140. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25141. have_locale=yes
  25142. fi
  25143. # Set up files for the audio library
  25144. if test x$enable_audio = xyes; then
  25145. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25146. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25147. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25148. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25149. have_audio=yes
  25150. fi
  25151. # Set up files for the joystick library
  25152. if test x$enable_joystick = xyes; then
  25153. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25154. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25155. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25156. CheckJoystickMFI
  25157. have_joystick=yes
  25158. fi
  25159. # Set up files for the haptic library
  25160. if test x$enable_haptic = xyes; then
  25161. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25162. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25163. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25164. have_haptic=yes
  25165. fi
  25166. # Set up files for the power library
  25167. if test x$enable_power = xyes; then
  25168. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25169. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25170. have_power=yes
  25171. fi
  25172. # Set up files for the filesystem library
  25173. if test x$enable_filesystem = xyes; then
  25174. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25175. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25176. have_filesystem=yes
  25177. fi
  25178. # Set up files for the timer library
  25179. if test x$enable_timers = xyes; then
  25180. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25181. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25182. have_timers=yes
  25183. fi
  25184. # Set up additional files for the file library
  25185. if test x$enable_file = xyes; then
  25186. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25187. fi
  25188. # Set up other core UNIX files
  25189. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25190. # The Mac OS X platform requires special setup.
  25191. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25192. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25193. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25194. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25195. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25196. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25197. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25198. fi
  25199. ;;
  25200. *-nacl|*-pnacl)
  25201. ARCH=nacl
  25202. CheckNativeClient
  25203. CheckDummyAudio
  25204. CheckDummyVideo
  25205. CheckOffscreenVideo
  25206. CheckInputEvents
  25207. CheckPTHREAD
  25208. CheckO_CLOEXEC
  25209. # Set up files for the timer library
  25210. if test x$enable_timers = xyes; then
  25211. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25212. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25213. have_timers=yes
  25214. fi
  25215. if test x$enable_filesystem = xyes; then
  25216. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25217. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25218. have_filesystem=yes
  25219. fi
  25220. ;;
  25221. *-*-emscripten* )
  25222. if test x$enable_video = xyes; then
  25223. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25224. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25225. have_video=yes
  25226. SUMMARY_video="${SUMMARY_video} emscripten"
  25227. fi
  25228. if test x$enable_audio = xyes; then
  25229. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25230. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25231. have_audio=yes
  25232. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25233. fi
  25234. CheckVisibilityHidden
  25235. CheckWerror
  25236. CheckDeclarationAfterStatement
  25237. CheckDummyVideo
  25238. CheckOffscreenVideo
  25239. CheckDiskAudio
  25240. CheckDummyAudio
  25241. CheckPTHREAD
  25242. CheckDLOPEN
  25243. CheckClockGettime
  25244. CheckEmscriptenGLES
  25245. # Set up files for the misc library
  25246. if test x$enable_misc = xyes; then
  25247. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25248. have_misc=yes
  25249. fi
  25250. # Set up files for the power library
  25251. if test x$enable_power = xyes; then
  25252. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25253. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25254. have_power=yes
  25255. fi
  25256. # Set up files for the joystick library
  25257. if test x$enable_joystick = xyes; then
  25258. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25259. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25260. have_joystick=yes
  25261. fi
  25262. # Set up files for the filesystem library
  25263. if test x$enable_filesystem = xyes; then
  25264. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25265. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25266. have_filesystem=yes
  25267. fi
  25268. # Set up files for the timer library
  25269. if test x$enable_timers = xyes; then
  25270. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25271. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25272. have_timers=yes
  25273. fi
  25274. # Set up files for the locale library
  25275. if test x$enable_locale = xyes; then
  25276. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25277. have_locale=yes
  25278. fi
  25279. ;;
  25280. *-*-riscos*)
  25281. ARCH=riscos
  25282. CheckVisibilityHidden
  25283. CheckWerror
  25284. CheckDeclarationAfterStatement
  25285. CheckDummyVideo
  25286. CheckOffscreenVideo
  25287. CheckDiskAudio
  25288. CheckDummyAudio
  25289. CheckDLOPEN
  25290. CheckO_CLOEXEC
  25291. CheckOSS
  25292. CheckPTHREAD
  25293. CheckClockGettime
  25294. # Set up files for the misc library
  25295. if test x$enable_misc = xyes; then
  25296. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25297. have_misc=yes
  25298. fi
  25299. # Set up files for the video library
  25300. if test x$enable_video = xyes; then
  25301. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25302. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25303. have_video=yes
  25304. SUMMARY_video="${SUMMARY_video} riscos"
  25305. fi
  25306. # Set up files for the filesystem library
  25307. if test x$enable_filesystem = xyes; then
  25308. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25309. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25310. have_filesystem=yes
  25311. fi
  25312. # Set up files for the timer library
  25313. if test x$enable_timers = xyes; then
  25314. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25315. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25316. have_timers=yes
  25317. fi
  25318. ;;
  25319. *-*-os2*)
  25320. ARCH=os2
  25321. if test "$build" != "$host"; then # cross-compiling
  25322. # Default cross-compile location
  25323. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25324. else
  25325. # Look for the location of the tools and install there
  25326. if test "$BUILD_PREFIX" != ""; then
  25327. ac_default_prefix=$BUILD_PREFIX
  25328. fi
  25329. fi
  25330. enable_static=no # disable static builds
  25331. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25332. CheckOS2
  25333. CheckWerror
  25334. CheckDeclarationAfterStatement
  25335. CheckDummyVideo
  25336. CheckDiskAudio
  25337. CheckDummyAudio
  25338. CheckHIDAPI
  25339. # Set up the core platform files
  25340. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25341. if test x$enable_system_iconv = xyes; then
  25342. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25343. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25344. fi
  25345. fi
  25346. # Use the Unix locale APIs.
  25347. if test x$enable_locale = xyes; then
  25348. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25349. have_locale=yes
  25350. fi
  25351. # Set up files for the video library
  25352. if test x$enable_video = xyes; then
  25353. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25354. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25355. have_video=yes
  25356. SUMMARY_video="${SUMMARY_video} os/2"
  25357. fi
  25358. # Set up files for the audio library
  25359. if test x$enable_audio = xyes; then
  25360. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25361. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25362. have_audio=yes
  25363. SUMMARY_audio="${SUMMARY_audio} os/2"
  25364. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25365. fi
  25366. # Set up files for the thread library
  25367. if test x$enable_threads = xyes; then
  25368. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25369. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25370. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25371. have_threads=yes
  25372. fi
  25373. # Set up files for the timer library
  25374. if test x$enable_timers = xyes; then
  25375. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25376. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25377. have_timers=yes
  25378. fi
  25379. # Set up files for the shared object loading library
  25380. if test x$enable_loadso = xyes; then
  25381. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25382. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25383. have_loadso=yes
  25384. fi
  25385. # Set up files for the filesystem library
  25386. if test x$enable_filesystem = xyes; then
  25387. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25388. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25389. have_filesystem=yes
  25390. fi
  25391. # Set up files for the joystick library
  25392. if test x$enable_joystick = xyes; then
  25393. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25394. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25395. have_joystick=yes
  25396. fi
  25397. ;;
  25398. *)
  25399. as_fn_error $? "
  25400. *** Unsupported host: Please add to configure.ac
  25401. " "$LINENO" 5
  25402. ;;
  25403. esac
  25404. CheckVirtualJoystick
  25405. # Check whether to install sdl2-config
  25406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25407. printf %s "checking whether to install sdl2-config... " >&6; }
  25408. # Check whether --enable-sdl2-config was given.
  25409. if test ${enable_sdl2_config+y}
  25410. then :
  25411. enableval=$enable_sdl2_config; case "${enableval}" in
  25412. yes) enable_sdl2_config="TRUE" ;;
  25413. no) enable_sdl2_config="FALSE" ;;
  25414. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25415. esac
  25416. else $as_nop
  25417. enable_sdl2_config="TRUE"
  25418. fi
  25419. if test "$enable_sdl2_config" = "TRUE"; then
  25420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25421. printf "%s\n" "yes" >&6; }
  25422. else
  25423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25424. printf "%s\n" "no" >&6; }
  25425. fi
  25426. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25427. # Verify that we have all the platform specific files we need
  25428. if test x$have_audio != xyes; then
  25429. if test x$enable_audio = xyes; then
  25430. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25431. fi
  25432. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25433. fi
  25434. if test x$have_video != xyes; then
  25435. if test x$enable_video = xyes; then
  25436. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25437. fi
  25438. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25439. fi
  25440. if test x$have_misc != xyes; then
  25441. if test x$enable_misc = xyes; then
  25442. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25443. fi
  25444. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25445. fi
  25446. if test x$have_locale != xyes; then
  25447. if test x$enable_locale = xyes; then
  25448. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25449. fi
  25450. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25451. fi
  25452. if test x$have_joystick != xyes; then
  25453. if test x$enable_joystick = xyes; then
  25454. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25455. fi
  25456. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25457. fi
  25458. if test x$have_haptic != xyes; then
  25459. if test x$enable_haptic = xyes; then
  25460. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25461. fi
  25462. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25463. fi
  25464. if test x$have_sensor != xyes; then
  25465. if test x$enable_sensor = xyes; then
  25466. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25467. fi
  25468. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25469. fi
  25470. if test x$have_threads != xyes; then
  25471. if test x$enable_threads = xyes; then
  25472. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25473. fi
  25474. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25475. fi
  25476. if test x$have_timers != xyes; then
  25477. if test x$enable_timers = xyes; then
  25478. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25479. fi
  25480. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25481. fi
  25482. if test x$have_filesystem != xyes; then
  25483. if test x$enable_filesystem = xyes; then
  25484. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25485. fi
  25486. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25487. fi
  25488. if test x$have_loadso != xyes; then
  25489. if test x$enable_loadso = xyes; then
  25490. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25491. fi
  25492. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25493. fi
  25494. if test x$SDLMAIN_SOURCES = x; then
  25495. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25496. fi
  25497. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25498. if test x$video_wayland = xyes; then
  25499. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25500. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25501. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25502. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25503. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25504. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25505. echo ;\
  25506. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25507. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25508. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25509. echo ;\
  25510. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25511. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25512. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25513. echo ;\
  25514. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25515. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25516. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25517. done ;\
  25518. echo ;\
  25519. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25520. fi
  25521. OBJECTS=`echo $SOURCES`
  25522. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25523. for EXT in asm cc m c S; do
  25524. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25525. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25526. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25527. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25528. done
  25529. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25530. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25531. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25532. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25533. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25534. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25535. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25536. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25537. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25538. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25539. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25540. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25541. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25542. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25543. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25544. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25545. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25546. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25547. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25548. # Set runtime shared library paths as needed
  25549. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25550. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25551. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25553. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25554. have_enable_new_dtags=no
  25555. save_LDFLAGS="$LDFLAGS"
  25556. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25558. /* end confdefs.h. */
  25559. int
  25560. main (void)
  25561. {
  25562. ;
  25563. return 0;
  25564. }
  25565. _ACEOF
  25566. if ac_fn_c_try_link "$LINENO"
  25567. then :
  25568. have_enable_new_dtags=yes
  25569. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25570. fi
  25571. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25572. conftest$ac_exeext conftest.$ac_ext
  25573. LDFLAGS="$save_LDFLAGS"
  25574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25575. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25576. fi
  25577. if test $ARCH = solaris; then
  25578. SDL_RLD_FLAGS="-R\${libdir}"
  25579. fi
  25580. else
  25581. SDL_RLD_FLAGS=""
  25582. fi
  25583. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25584. pkg_cmakedir='$libdir/cmake/SDL2'
  25585. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25586. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25587. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25588. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25589. _lcl_receval="$_lcl_from"
  25590. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25591. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25592. _lcl_receval_old=''
  25593. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25594. _lcl_receval_old="$_lcl_receval"
  25595. eval _lcl_receval="\"$_lcl_receval\""
  25596. done
  25597. echo "$_lcl_receval")`
  25598. _lcl_receval="$_lcl_to"
  25599. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25600. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25601. _lcl_receval_old=''
  25602. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25603. _lcl_receval_old="$_lcl_receval"
  25604. eval _lcl_receval="\"$_lcl_receval\""
  25605. done
  25606. echo "$_lcl_receval")`
  25607. _lcl_notation="$_lcl_from$_lcl_to"
  25608. case ":$_lcl_from:" in
  25609. # change empty paths to '.'
  25610. ::) _lcl_from='.' ;;
  25611. # strip trailing slashes
  25612. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25613. :*:) ;;
  25614. esac
  25615. # squeeze repeated slashes
  25616. case '/' in
  25617. # if the path contains any backslashes, turn slashes into backslashes
  25618. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25619. # if the path contains slashes, also turn backslashes into slashes
  25620. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25621. esac
  25622. case ":$_lcl_to:" in
  25623. # change empty paths to '.'
  25624. ::) _lcl_to='.' ;;
  25625. # strip trailing slashes
  25626. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25627. :*:) ;;
  25628. esac
  25629. # squeeze repeated slashes
  25630. case '/' in
  25631. # if the path contains any backslashes, turn slashes into backslashes
  25632. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25633. # if the path contains slashes, also turn backslashes into slashes
  25634. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25635. esac
  25636. _lcl_common_prefix=''
  25637. _lcl_second_prefix_match=''
  25638. while test "$_lcl_second_prefix_match" != 0; do
  25639. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25640. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25641. if test "$_lcl_second_prefix_match" != 0; then
  25642. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25643. _lcl_common_prefix="$_lcl_first_prefix"
  25644. else
  25645. _lcl_second_prefix_match=0
  25646. fi
  25647. fi
  25648. done
  25649. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25650. _lcl_first_rel=''
  25651. _lcl_tmp='xxx'
  25652. while test "$_lcl_tmp" != ''; do
  25653. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25654. if test "$_lcl_first_suffix" != ''; then
  25655. _lcl_first_suffix="$_lcl_tmp"
  25656. _lcl_first_rel="../$_lcl_first_rel"
  25657. fi
  25658. done
  25659. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25660. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25661. case ":$_lcl_result_tmp:" in
  25662. # change empty paths to '.'
  25663. ::) _lcl_result_tmp='.' ;;
  25664. # strip trailing slashes
  25665. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25666. :*:) ;;
  25667. esac
  25668. # squeeze repeated slashes
  25669. case "$_lcl_notation" in
  25670. # if the path contains any backslashes, turn slashes into backslashes
  25671. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25672. # if the path contains slashes, also turn backslashes into slashes
  25673. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25674. esac
  25675. eval $_lcl_result_var='$_lcl_result_tmp'
  25676. done
  25677. if test x$enable_shared = xyes; then
  25678. PKGCONFIG_LIBS_PRIV="
  25679. Libs.private:"
  25680. ENABLE_SHARED_TRUE=
  25681. ENABLE_SHARED_FALSE="#"
  25682. else
  25683. PKGCONFIG_LIBS_PRIV=
  25684. ENABLE_SHARED_TRUE="#"
  25685. ENABLE_SHARED_FALSE=
  25686. fi
  25687. if test x$enable_static = xyes; then
  25688. ENABLE_STATIC_TRUE=
  25689. ENABLE_STATIC_FALSE="#"
  25690. else
  25691. ENABLE_STATIC_TRUE="#"
  25692. ENABLE_STATIC_FALSE=
  25693. fi
  25694. cat >Makefile.rules <<__EOF__
  25695. # Build rules for objects
  25696. -include \$(OBJECTS:.lo=.d)
  25697. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25698. $srcdir/src/SDL.c: update-revision
  25699. $DEPENDS
  25700. $VERSION_DEPENDS
  25701. $SDLMAIN_DEPENDS
  25702. $SDLTEST_DEPENDS
  25703. $WAYLAND_PROTOCOLS_DEPENDS
  25704. __EOF__
  25705. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25706. ac_config_commands="$ac_config_commands sdl2_config"
  25707. SUMMARY="SDL2 Configure Summary:\n"
  25708. if test x$enable_shared = xyes; then
  25709. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25710. fi
  25711. if test x$enable_static = xyes; then
  25712. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25713. fi
  25714. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25715. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25716. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25717. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25718. if test x$have_x = xyes; then
  25719. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25720. fi
  25721. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25722. if test x$have_joystick_virtual = xyes; then
  25723. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25724. else
  25725. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25726. fi
  25727. if test x$have_samplerate_h_hdr = xyes; then
  25728. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25729. else
  25730. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25731. fi
  25732. if test x$have_libudev_h_hdr = xyes; then
  25733. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25734. else
  25735. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25736. fi
  25737. if test x$have_dbus_dbus_h_hdr = xyes; then
  25738. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25739. else
  25740. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25741. fi
  25742. if test x$enable_ime = xyes; then
  25743. SUMMARY="${SUMMARY}Using ime : YES\n"
  25744. else
  25745. SUMMARY="${SUMMARY}Using ime : NO\n"
  25746. fi
  25747. if test x$have_ibus_ibus_h_hdr = xyes; then
  25748. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25749. else
  25750. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25751. fi
  25752. if test x$have_fcitx = xyes; then
  25753. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25754. else
  25755. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25756. fi
  25757. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25758. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25759. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25760. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25761. SUMMARY="${SUMMARY}configure script with:\n"
  25762. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25763. fi
  25764. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25765. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25766. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25767. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25768. SUMMARY="${SUMMARY}configure script with:\n"
  25769. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25770. fi
  25771. ac_config_commands="$ac_config_commands summary"
  25772. cat >confcache <<\_ACEOF
  25773. # This file is a shell script that caches the results of configure
  25774. # tests run on this system so they can be shared between configure
  25775. # scripts and configure runs, see configure's option --config-cache.
  25776. # It is not useful on other systems. If it contains results you don't
  25777. # want to keep, you may remove or edit it.
  25778. #
  25779. # config.status only pays attention to the cache file if you give it
  25780. # the --recheck option to rerun configure.
  25781. #
  25782. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25783. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25784. # following values.
  25785. _ACEOF
  25786. # The following way of writing the cache mishandles newlines in values,
  25787. # but we know of no workaround that is simple, portable, and efficient.
  25788. # So, we kill variables containing newlines.
  25789. # Ultrix sh set writes to stderr and can't be redirected directly,
  25790. # and sets the high bit in the cache file unless we assign to the vars.
  25791. (
  25792. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25793. eval ac_val=\$$ac_var
  25794. case $ac_val in #(
  25795. *${as_nl}*)
  25796. case $ac_var in #(
  25797. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25798. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25799. esac
  25800. case $ac_var in #(
  25801. _ | IFS | as_nl) ;; #(
  25802. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25803. *) { eval $ac_var=; unset $ac_var;} ;;
  25804. esac ;;
  25805. esac
  25806. done
  25807. (set) 2>&1 |
  25808. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25809. *${as_nl}ac_space=\ *)
  25810. # `set' does not quote correctly, so add quotes: double-quote
  25811. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25812. sed -n \
  25813. "s/'/'\\\\''/g;
  25814. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25815. ;; #(
  25816. *)
  25817. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25818. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25819. ;;
  25820. esac |
  25821. sort
  25822. ) |
  25823. sed '
  25824. /^ac_cv_env_/b end
  25825. t clear
  25826. :clear
  25827. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25828. t end
  25829. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25830. :end' >>confcache
  25831. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25832. if test -w "$cache_file"; then
  25833. if test "x$cache_file" != "x/dev/null"; then
  25834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25835. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25836. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25837. cat confcache >"$cache_file"
  25838. else
  25839. case $cache_file in #(
  25840. */* | ?:*)
  25841. mv -f confcache "$cache_file"$$ &&
  25842. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25843. *)
  25844. mv -f confcache "$cache_file" ;;
  25845. esac
  25846. fi
  25847. fi
  25848. else
  25849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25850. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25851. fi
  25852. fi
  25853. rm -f confcache
  25854. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25855. # Let make expand exec_prefix.
  25856. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25857. DEFS=-DHAVE_CONFIG_H
  25858. ac_libobjs=
  25859. ac_ltlibobjs=
  25860. U=
  25861. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25862. # 1. Remove the extension, and $U if already installed.
  25863. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25864. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25865. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25866. # will be set to the directory where LIBOBJS objects are built.
  25867. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25868. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25869. done
  25870. LIBOBJS=$ac_libobjs
  25871. LTLIBOBJS=$ac_ltlibobjs
  25872. : "${CONFIG_STATUS=./config.status}"
  25873. ac_write_fail=0
  25874. ac_clean_files_save=$ac_clean_files
  25875. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25877. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25878. as_write_fail=0
  25879. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25880. #! $SHELL
  25881. # Generated by $as_me.
  25882. # Run this file to recreate the current configuration.
  25883. # Compiler output produced by configure, useful for debugging
  25884. # configure, is in config.log if it exists.
  25885. debug=false
  25886. ac_cs_recheck=false
  25887. ac_cs_silent=false
  25888. SHELL=\${CONFIG_SHELL-$SHELL}
  25889. export SHELL
  25890. _ASEOF
  25891. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25892. ## -------------------- ##
  25893. ## M4sh Initialization. ##
  25894. ## -------------------- ##
  25895. # Be more Bourne compatible
  25896. DUALCASE=1; export DUALCASE # for MKS sh
  25897. as_nop=:
  25898. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25899. then :
  25900. emulate sh
  25901. NULLCMD=:
  25902. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25903. # is contrary to our usage. Disable this feature.
  25904. alias -g '${1+"$@"}'='"$@"'
  25905. setopt NO_GLOB_SUBST
  25906. else $as_nop
  25907. case `(set -o) 2>/dev/null` in #(
  25908. *posix*) :
  25909. set -o posix ;; #(
  25910. *) :
  25911. ;;
  25912. esac
  25913. fi
  25914. # Reset variables that may have inherited troublesome values from
  25915. # the environment.
  25916. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25917. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25918. # side effect of setting IFS to empty, thus disabling word splitting.)
  25919. # Quoting is to prevent editors from complaining about space-tab.
  25920. as_nl='
  25921. '
  25922. export as_nl
  25923. IFS=" "" $as_nl"
  25924. PS1='$ '
  25925. PS2='> '
  25926. PS4='+ '
  25927. # Ensure predictable behavior from utilities with locale-dependent output.
  25928. LC_ALL=C
  25929. export LC_ALL
  25930. LANGUAGE=C
  25931. export LANGUAGE
  25932. # We cannot yet rely on "unset" to work, but we need these variables
  25933. # to be unset--not just set to an empty or harmless value--now, to
  25934. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  25935. # also avoids known problems related to "unset" and subshell syntax
  25936. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  25937. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  25938. do eval test \${$as_var+y} \
  25939. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25940. done
  25941. # Ensure that fds 0, 1, and 2 are open.
  25942. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  25943. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  25944. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  25945. # The user is always right.
  25946. if ${PATH_SEPARATOR+false} :; then
  25947. PATH_SEPARATOR=:
  25948. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25949. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25950. PATH_SEPARATOR=';'
  25951. }
  25952. fi
  25953. # Find who we are. Look in the path if we contain no directory separator.
  25954. as_myself=
  25955. case $0 in #((
  25956. *[\\/]* ) as_myself=$0 ;;
  25957. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25958. for as_dir in $PATH
  25959. do
  25960. IFS=$as_save_IFS
  25961. case $as_dir in #(((
  25962. '') as_dir=./ ;;
  25963. */) ;;
  25964. *) as_dir=$as_dir/ ;;
  25965. esac
  25966. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  25967. done
  25968. IFS=$as_save_IFS
  25969. ;;
  25970. esac
  25971. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25972. # in which case we are not to be found in the path.
  25973. if test "x$as_myself" = x; then
  25974. as_myself=$0
  25975. fi
  25976. if test ! -f "$as_myself"; then
  25977. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25978. exit 1
  25979. fi
  25980. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25981. # ----------------------------------------
  25982. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25983. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25984. # script with STATUS, using 1 if that was 0.
  25985. as_fn_error ()
  25986. {
  25987. as_status=$1; test $as_status -eq 0 && as_status=1
  25988. if test "$4"; then
  25989. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25990. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25991. fi
  25992. printf "%s\n" "$as_me: error: $2" >&2
  25993. as_fn_exit $as_status
  25994. } # as_fn_error
  25995. # as_fn_set_status STATUS
  25996. # -----------------------
  25997. # Set $? to STATUS, without forking.
  25998. as_fn_set_status ()
  25999. {
  26000. return $1
  26001. } # as_fn_set_status
  26002. # as_fn_exit STATUS
  26003. # -----------------
  26004. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26005. as_fn_exit ()
  26006. {
  26007. set +e
  26008. as_fn_set_status $1
  26009. exit $1
  26010. } # as_fn_exit
  26011. # as_fn_unset VAR
  26012. # ---------------
  26013. # Portably unset VAR.
  26014. as_fn_unset ()
  26015. {
  26016. { eval $1=; unset $1;}
  26017. }
  26018. as_unset=as_fn_unset
  26019. # as_fn_append VAR VALUE
  26020. # ----------------------
  26021. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26022. # advantage of any shell optimizations that allow amortized linear growth over
  26023. # repeated appends, instead of the typical quadratic growth present in naive
  26024. # implementations.
  26025. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26026. then :
  26027. eval 'as_fn_append ()
  26028. {
  26029. eval $1+=\$2
  26030. }'
  26031. else $as_nop
  26032. as_fn_append ()
  26033. {
  26034. eval $1=\$$1\$2
  26035. }
  26036. fi # as_fn_append
  26037. # as_fn_arith ARG...
  26038. # ------------------
  26039. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26040. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26041. # must be portable across $(()) and expr.
  26042. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26043. then :
  26044. eval 'as_fn_arith ()
  26045. {
  26046. as_val=$(( $* ))
  26047. }'
  26048. else $as_nop
  26049. as_fn_arith ()
  26050. {
  26051. as_val=`expr "$@" || test $? -eq 1`
  26052. }
  26053. fi # as_fn_arith
  26054. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26055. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26056. as_expr=expr
  26057. else
  26058. as_expr=false
  26059. fi
  26060. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26061. as_basename=basename
  26062. else
  26063. as_basename=false
  26064. fi
  26065. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26066. as_dirname=dirname
  26067. else
  26068. as_dirname=false
  26069. fi
  26070. as_me=`$as_basename -- "$0" ||
  26071. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26072. X"$0" : 'X\(//\)$' \| \
  26073. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26074. printf "%s\n" X/"$0" |
  26075. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26076. s//\1/
  26077. q
  26078. }
  26079. /^X\/\(\/\/\)$/{
  26080. s//\1/
  26081. q
  26082. }
  26083. /^X\/\(\/\).*/{
  26084. s//\1/
  26085. q
  26086. }
  26087. s/.*/./; q'`
  26088. # Avoid depending upon Character Ranges.
  26089. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26090. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26091. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26092. as_cr_digits='0123456789'
  26093. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26094. # Determine whether it's possible to make 'echo' print without a newline.
  26095. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26096. # for compatibility with existing Makefiles.
  26097. ECHO_C= ECHO_N= ECHO_T=
  26098. case `echo -n x` in #(((((
  26099. -n*)
  26100. case `echo 'xy\c'` in
  26101. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26102. xy) ECHO_C='\c';;
  26103. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26104. ECHO_T=' ';;
  26105. esac;;
  26106. *)
  26107. ECHO_N='-n';;
  26108. esac
  26109. # For backward compatibility with old third-party macros, we provide
  26110. # the shell variables $as_echo and $as_echo_n. New code should use
  26111. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26112. as_echo='printf %s\n'
  26113. as_echo_n='printf %s'
  26114. rm -f conf$$ conf$$.exe conf$$.file
  26115. if test -d conf$$.dir; then
  26116. rm -f conf$$.dir/conf$$.file
  26117. else
  26118. rm -f conf$$.dir
  26119. mkdir conf$$.dir 2>/dev/null
  26120. fi
  26121. if (echo >conf$$.file) 2>/dev/null; then
  26122. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26123. as_ln_s='ln -s'
  26124. # ... but there are two gotchas:
  26125. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26126. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26127. # In both cases, we have to default to `cp -pR'.
  26128. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26129. as_ln_s='cp -pR'
  26130. elif ln conf$$.file conf$$ 2>/dev/null; then
  26131. as_ln_s=ln
  26132. else
  26133. as_ln_s='cp -pR'
  26134. fi
  26135. else
  26136. as_ln_s='cp -pR'
  26137. fi
  26138. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26139. rmdir conf$$.dir 2>/dev/null
  26140. # as_fn_mkdir_p
  26141. # -------------
  26142. # Create "$as_dir" as a directory, including parents if necessary.
  26143. as_fn_mkdir_p ()
  26144. {
  26145. case $as_dir in #(
  26146. -*) as_dir=./$as_dir;;
  26147. esac
  26148. test -d "$as_dir" || eval $as_mkdir_p || {
  26149. as_dirs=
  26150. while :; do
  26151. case $as_dir in #(
  26152. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26153. *) as_qdir=$as_dir;;
  26154. esac
  26155. as_dirs="'$as_qdir' $as_dirs"
  26156. as_dir=`$as_dirname -- "$as_dir" ||
  26157. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26158. X"$as_dir" : 'X\(//\)[^/]' \| \
  26159. X"$as_dir" : 'X\(//\)$' \| \
  26160. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26161. printf "%s\n" X"$as_dir" |
  26162. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26163. s//\1/
  26164. q
  26165. }
  26166. /^X\(\/\/\)[^/].*/{
  26167. s//\1/
  26168. q
  26169. }
  26170. /^X\(\/\/\)$/{
  26171. s//\1/
  26172. q
  26173. }
  26174. /^X\(\/\).*/{
  26175. s//\1/
  26176. q
  26177. }
  26178. s/.*/./; q'`
  26179. test -d "$as_dir" && break
  26180. done
  26181. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26182. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26183. } # as_fn_mkdir_p
  26184. if mkdir -p . 2>/dev/null; then
  26185. as_mkdir_p='mkdir -p "$as_dir"'
  26186. else
  26187. test -d ./-p && rmdir ./-p
  26188. as_mkdir_p=false
  26189. fi
  26190. # as_fn_executable_p FILE
  26191. # -----------------------
  26192. # Test if FILE is an executable regular file.
  26193. as_fn_executable_p ()
  26194. {
  26195. test -f "$1" && test -x "$1"
  26196. } # as_fn_executable_p
  26197. as_test_x='test -x'
  26198. as_executable_p=as_fn_executable_p
  26199. # Sed expression to map a string onto a valid CPP name.
  26200. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26201. # Sed expression to map a string onto a valid variable name.
  26202. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26203. exec 6>&1
  26204. ## ----------------------------------- ##
  26205. ## Main body of $CONFIG_STATUS script. ##
  26206. ## ----------------------------------- ##
  26207. _ASEOF
  26208. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26209. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26210. # Save the log message, to keep $0 and so on meaningful, and to
  26211. # report actual input values of CONFIG_FILES etc. instead of their
  26212. # values after options handling.
  26213. ac_log="
  26214. This file was extended by $as_me, which was
  26215. generated by GNU Autoconf 2.71. Invocation command line was
  26216. CONFIG_FILES = $CONFIG_FILES
  26217. CONFIG_HEADERS = $CONFIG_HEADERS
  26218. CONFIG_LINKS = $CONFIG_LINKS
  26219. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26220. $ $0 $@
  26221. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26222. "
  26223. _ACEOF
  26224. case $ac_config_files in *"
  26225. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26226. esac
  26227. case $ac_config_headers in *"
  26228. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26229. esac
  26230. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26231. # Files that config.status was made for.
  26232. config_files="$ac_config_files"
  26233. config_headers="$ac_config_headers"
  26234. config_commands="$ac_config_commands"
  26235. _ACEOF
  26236. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26237. ac_cs_usage="\
  26238. \`$as_me' instantiates files and other configuration actions
  26239. from templates according to the current configuration. Unless the files
  26240. and actions are specified as TAGs, all are instantiated by default.
  26241. Usage: $0 [OPTION]... [TAG]...
  26242. -h, --help print this help, then exit
  26243. -V, --version print version number and configuration settings, then exit
  26244. --config print configuration, then exit
  26245. -q, --quiet, --silent
  26246. do not print progress messages
  26247. -d, --debug don't remove temporary files
  26248. --recheck update $as_me by reconfiguring in the same conditions
  26249. --file=FILE[:TEMPLATE]
  26250. instantiate the configuration file FILE
  26251. --header=FILE[:TEMPLATE]
  26252. instantiate the configuration header FILE
  26253. Configuration files:
  26254. $config_files
  26255. Configuration headers:
  26256. $config_headers
  26257. Configuration commands:
  26258. $config_commands
  26259. Report bugs to the package provider."
  26260. _ACEOF
  26261. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26262. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26263. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26264. ac_cs_config='$ac_cs_config_escaped'
  26265. ac_cs_version="\\
  26266. config.status
  26267. configured by $0, generated by GNU Autoconf 2.71,
  26268. with options \\"\$ac_cs_config\\"
  26269. Copyright (C) 2021 Free Software Foundation, Inc.
  26270. This config.status script is free software; the Free Software Foundation
  26271. gives unlimited permission to copy, distribute and modify it."
  26272. ac_pwd='$ac_pwd'
  26273. srcdir='$srcdir'
  26274. INSTALL='$INSTALL'
  26275. AWK='$AWK'
  26276. test -n "\$AWK" || AWK=awk
  26277. _ACEOF
  26278. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26279. # The default lists apply if the user does not specify any file.
  26280. ac_need_defaults=:
  26281. while test $# != 0
  26282. do
  26283. case $1 in
  26284. --*=?*)
  26285. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26286. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26287. ac_shift=:
  26288. ;;
  26289. --*=)
  26290. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26291. ac_optarg=
  26292. ac_shift=:
  26293. ;;
  26294. *)
  26295. ac_option=$1
  26296. ac_optarg=$2
  26297. ac_shift=shift
  26298. ;;
  26299. esac
  26300. case $ac_option in
  26301. # Handling of the options.
  26302. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26303. ac_cs_recheck=: ;;
  26304. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26305. printf "%s\n" "$ac_cs_version"; exit ;;
  26306. --config | --confi | --conf | --con | --co | --c )
  26307. printf "%s\n" "$ac_cs_config"; exit ;;
  26308. --debug | --debu | --deb | --de | --d | -d )
  26309. debug=: ;;
  26310. --file | --fil | --fi | --f )
  26311. $ac_shift
  26312. case $ac_optarg in
  26313. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26314. '') as_fn_error $? "missing file argument" ;;
  26315. esac
  26316. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26317. ac_need_defaults=false;;
  26318. --header | --heade | --head | --hea )
  26319. $ac_shift
  26320. case $ac_optarg in
  26321. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26322. esac
  26323. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26324. ac_need_defaults=false;;
  26325. --he | --h)
  26326. # Conflict between --help and --header
  26327. as_fn_error $? "ambiguous option: \`$1'
  26328. Try \`$0 --help' for more information.";;
  26329. --help | --hel | -h )
  26330. printf "%s\n" "$ac_cs_usage"; exit ;;
  26331. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26332. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26333. ac_cs_silent=: ;;
  26334. # This is an error.
  26335. -*) as_fn_error $? "unrecognized option: \`$1'
  26336. Try \`$0 --help' for more information." ;;
  26337. *) as_fn_append ac_config_targets " $1"
  26338. ac_need_defaults=false ;;
  26339. esac
  26340. shift
  26341. done
  26342. ac_configure_extra_args=
  26343. if $ac_cs_silent; then
  26344. exec 6>/dev/null
  26345. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26346. fi
  26347. _ACEOF
  26348. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26349. if \$ac_cs_recheck; then
  26350. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26351. shift
  26352. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26353. CONFIG_SHELL='$SHELL'
  26354. export CONFIG_SHELL
  26355. exec "\$@"
  26356. fi
  26357. _ACEOF
  26358. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26359. exec 5>>config.log
  26360. {
  26361. echo
  26362. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26363. ## Running $as_me. ##
  26364. _ASBOX
  26365. printf "%s\n" "$ac_log"
  26366. } >&5
  26367. _ACEOF
  26368. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26369. #
  26370. # INIT-COMMANDS
  26371. #
  26372. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26373. # if CDPATH is set.
  26374. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26375. sed_quote_subst='$sed_quote_subst'
  26376. double_quote_subst='$double_quote_subst'
  26377. delay_variable_subst='$delay_variable_subst'
  26378. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26379. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26380. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26381. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26382. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26383. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26384. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26385. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26386. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26387. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26388. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26389. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26390. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26391. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26392. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26393. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26394. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26395. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26396. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26397. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26398. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26399. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26400. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26401. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26402. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26403. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26404. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26405. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26406. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26407. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26408. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26409. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26410. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26411. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26412. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26413. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26414. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26415. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26416. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26417. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26418. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26419. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26420. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26421. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26422. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26423. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26424. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26425. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26426. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26427. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26428. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26429. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26430. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26431. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26432. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26433. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26434. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26435. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26436. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26437. 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"`'
  26438. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26439. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26440. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26441. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26442. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26443. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26444. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26445. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26446. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26447. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26448. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26449. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26450. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26451. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26452. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26453. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26454. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26455. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26456. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26457. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26458. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26459. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26460. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26461. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26462. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26463. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26464. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26465. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26466. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26467. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26468. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26469. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26470. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26471. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26472. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26473. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26474. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26475. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26476. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26477. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26478. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26479. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26480. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26481. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26482. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26483. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26484. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26485. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26486. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26487. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26488. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26489. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26490. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26491. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26492. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26493. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26494. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26495. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26496. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26497. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26498. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26499. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26500. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26501. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26502. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26503. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26504. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26505. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26506. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26507. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26508. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26509. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26510. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26511. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26512. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26513. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26514. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26515. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26516. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26517. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26518. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26519. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26520. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26521. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26522. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26523. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26524. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26525. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26526. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26527. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26528. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26529. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26530. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26531. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26532. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26533. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26534. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26535. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26536. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26537. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26538. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26539. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26540. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26541. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26542. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26543. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26544. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26545. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26546. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26547. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26548. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26549. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26550. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26551. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26552. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26553. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26554. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26555. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26556. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26557. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26558. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26559. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26560. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26561. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26562. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26563. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26564. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26565. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26566. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26567. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26568. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26569. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26570. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26571. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26572. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26573. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26574. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26575. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26576. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26577. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26578. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26579. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26580. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26581. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26582. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26583. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26584. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26585. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26586. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26587. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26588. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26589. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26590. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26591. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26592. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26593. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26594. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26595. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26596. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26597. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26598. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26599. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26600. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26601. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26602. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26603. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26604. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26605. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26606. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26607. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26608. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26609. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26610. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26611. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26612. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26613. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26614. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26615. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26616. LTCC='$LTCC'
  26617. LTCFLAGS='$LTCFLAGS'
  26618. compiler='$compiler_DEFAULT'
  26619. # A function that is used when there is no print builtin or printf.
  26620. func_fallback_echo ()
  26621. {
  26622. eval 'cat <<_LTECHO_EOF
  26623. \$1
  26624. _LTECHO_EOF'
  26625. }
  26626. # Quote evaled strings.
  26627. for var in AS \
  26628. DLLTOOL \
  26629. OBJDUMP \
  26630. SHELL \
  26631. ECHO \
  26632. PATH_SEPARATOR \
  26633. SED \
  26634. GREP \
  26635. EGREP \
  26636. FGREP \
  26637. LD \
  26638. NM \
  26639. LN_S \
  26640. lt_SP2NL \
  26641. lt_NL2SP \
  26642. reload_flag \
  26643. deplibs_check_method \
  26644. file_magic_cmd \
  26645. file_magic_glob \
  26646. want_nocaseglob \
  26647. sharedlib_from_linklib_cmd \
  26648. AR \
  26649. AR_FLAGS \
  26650. archiver_list_spec \
  26651. STRIP \
  26652. RANLIB \
  26653. CC \
  26654. CFLAGS \
  26655. compiler \
  26656. lt_cv_sys_global_symbol_pipe \
  26657. lt_cv_sys_global_symbol_to_cdecl \
  26658. lt_cv_sys_global_symbol_to_import \
  26659. lt_cv_sys_global_symbol_to_c_name_address \
  26660. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26661. lt_cv_nm_interface \
  26662. nm_file_list_spec \
  26663. lt_cv_truncate_bin \
  26664. lt_prog_compiler_no_builtin_flag \
  26665. lt_prog_compiler_pic \
  26666. lt_prog_compiler_wl \
  26667. lt_prog_compiler_static \
  26668. lt_cv_prog_compiler_c_o \
  26669. need_locks \
  26670. MANIFEST_TOOL \
  26671. DSYMUTIL \
  26672. NMEDIT \
  26673. LIPO \
  26674. OTOOL \
  26675. OTOOL64 \
  26676. shrext_cmds \
  26677. export_dynamic_flag_spec \
  26678. whole_archive_flag_spec \
  26679. compiler_needs_object \
  26680. with_gnu_ld \
  26681. allow_undefined_flag \
  26682. no_undefined_flag \
  26683. hardcode_libdir_flag_spec \
  26684. hardcode_libdir_separator \
  26685. exclude_expsyms \
  26686. include_expsyms \
  26687. file_list_spec \
  26688. variables_saved_for_relink \
  26689. libname_spec \
  26690. library_names_spec \
  26691. soname_spec \
  26692. install_override_mode \
  26693. finish_eval \
  26694. old_striplib \
  26695. striplib \
  26696. compiler_lib_search_dirs \
  26697. predep_objects \
  26698. postdep_objects \
  26699. predeps \
  26700. postdeps \
  26701. compiler_lib_search_path \
  26702. LD_RC \
  26703. LD_CXX \
  26704. reload_flag_RC \
  26705. reload_flag_CXX \
  26706. compiler_RC \
  26707. compiler_CXX \
  26708. lt_prog_compiler_no_builtin_flag_RC \
  26709. lt_prog_compiler_no_builtin_flag_CXX \
  26710. lt_prog_compiler_pic_RC \
  26711. lt_prog_compiler_pic_CXX \
  26712. lt_prog_compiler_wl_RC \
  26713. lt_prog_compiler_wl_CXX \
  26714. lt_prog_compiler_static_RC \
  26715. lt_prog_compiler_static_CXX \
  26716. lt_cv_prog_compiler_c_o_RC \
  26717. lt_cv_prog_compiler_c_o_CXX \
  26718. export_dynamic_flag_spec_RC \
  26719. export_dynamic_flag_spec_CXX \
  26720. whole_archive_flag_spec_RC \
  26721. whole_archive_flag_spec_CXX \
  26722. compiler_needs_object_RC \
  26723. compiler_needs_object_CXX \
  26724. with_gnu_ld_RC \
  26725. with_gnu_ld_CXX \
  26726. allow_undefined_flag_RC \
  26727. allow_undefined_flag_CXX \
  26728. no_undefined_flag_RC \
  26729. no_undefined_flag_CXX \
  26730. hardcode_libdir_flag_spec_RC \
  26731. hardcode_libdir_flag_spec_CXX \
  26732. hardcode_libdir_separator_RC \
  26733. hardcode_libdir_separator_CXX \
  26734. exclude_expsyms_RC \
  26735. exclude_expsyms_CXX \
  26736. include_expsyms_RC \
  26737. include_expsyms_CXX \
  26738. file_list_spec_RC \
  26739. file_list_spec_CXX \
  26740. compiler_lib_search_dirs_RC \
  26741. compiler_lib_search_dirs_CXX \
  26742. predep_objects_RC \
  26743. predep_objects_CXX \
  26744. postdep_objects_RC \
  26745. postdep_objects_CXX \
  26746. predeps_RC \
  26747. predeps_CXX \
  26748. postdeps_RC \
  26749. postdeps_CXX \
  26750. compiler_lib_search_path_RC \
  26751. compiler_lib_search_path_CXX; do
  26752. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26753. *[\\\\\\\`\\"\\\$]*)
  26754. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26755. ;;
  26756. *)
  26757. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26758. ;;
  26759. esac
  26760. done
  26761. # Double-quote double-evaled strings.
  26762. for var in reload_cmds \
  26763. old_postinstall_cmds \
  26764. old_postuninstall_cmds \
  26765. old_archive_cmds \
  26766. extract_expsyms_cmds \
  26767. old_archive_from_new_cmds \
  26768. old_archive_from_expsyms_cmds \
  26769. archive_cmds \
  26770. archive_expsym_cmds \
  26771. module_cmds \
  26772. module_expsym_cmds \
  26773. export_symbols_cmds \
  26774. prelink_cmds \
  26775. postlink_cmds \
  26776. postinstall_cmds \
  26777. postuninstall_cmds \
  26778. finish_cmds \
  26779. sys_lib_search_path_spec \
  26780. configure_time_dlsearch_path \
  26781. configure_time_lt_sys_library_path \
  26782. reload_cmds_RC \
  26783. reload_cmds_CXX \
  26784. old_archive_cmds_RC \
  26785. old_archive_cmds_CXX \
  26786. old_archive_from_new_cmds_RC \
  26787. old_archive_from_new_cmds_CXX \
  26788. old_archive_from_expsyms_cmds_RC \
  26789. old_archive_from_expsyms_cmds_CXX \
  26790. archive_cmds_RC \
  26791. archive_cmds_CXX \
  26792. archive_expsym_cmds_RC \
  26793. archive_expsym_cmds_CXX \
  26794. module_cmds_RC \
  26795. module_cmds_CXX \
  26796. module_expsym_cmds_RC \
  26797. module_expsym_cmds_CXX \
  26798. export_symbols_cmds_RC \
  26799. export_symbols_cmds_CXX \
  26800. prelink_cmds_RC \
  26801. prelink_cmds_CXX \
  26802. postlink_cmds_RC \
  26803. postlink_cmds_CXX; do
  26804. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26805. *[\\\\\\\`\\"\\\$]*)
  26806. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26807. ;;
  26808. *)
  26809. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26810. ;;
  26811. esac
  26812. done
  26813. ac_aux_dir='$ac_aux_dir'
  26814. # See if we are running on zsh, and set the options that allow our
  26815. # commands through without removal of \ escapes INIT.
  26816. if test -n "\${ZSH_VERSION+set}"; then
  26817. setopt NO_GLOB_SUBST
  26818. fi
  26819. PACKAGE='$PACKAGE'
  26820. VERSION='$VERSION'
  26821. RM='$RM'
  26822. ofile='$ofile'
  26823. SUMMARY="$SUMMARY"
  26824. _ACEOF
  26825. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26826. # Handling of arguments.
  26827. for ac_config_target in $ac_config_targets
  26828. do
  26829. case $ac_config_target in
  26830. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26831. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26832. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26833. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26834. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26835. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26836. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26837. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26838. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26839. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26840. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26841. esac
  26842. done
  26843. # If the user did not use the arguments to specify the items to instantiate,
  26844. # then the envvar interface is used. Set only those that are not.
  26845. # We use the long form for the default assignment because of an extremely
  26846. # bizarre bug on SunOS 4.1.3.
  26847. if $ac_need_defaults; then
  26848. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26849. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26850. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26851. fi
  26852. # Have a temporary directory for convenience. Make it in the build tree
  26853. # simply because there is no reason against having it here, and in addition,
  26854. # creating and moving files from /tmp can sometimes cause problems.
  26855. # Hook for its removal unless debugging.
  26856. # Note that there is a small window in which the directory will not be cleaned:
  26857. # after its creation but before its name has been assigned to `$tmp'.
  26858. $debug ||
  26859. {
  26860. tmp= ac_tmp=
  26861. trap 'exit_status=$?
  26862. : "${ac_tmp:=$tmp}"
  26863. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26864. ' 0
  26865. trap 'as_fn_exit 1' 1 2 13 15
  26866. }
  26867. # Create a (secure) tmp directory for tmp files.
  26868. {
  26869. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26870. test -d "$tmp"
  26871. } ||
  26872. {
  26873. tmp=./conf$$-$RANDOM
  26874. (umask 077 && mkdir "$tmp")
  26875. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26876. ac_tmp=$tmp
  26877. # Set up the scripts for CONFIG_FILES section.
  26878. # No need to generate them if there are no CONFIG_FILES.
  26879. # This happens for instance with `./config.status config.h'.
  26880. if test -n "$CONFIG_FILES"; then
  26881. ac_cr=`echo X | tr X '\015'`
  26882. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26883. # But we know of no other shell where ac_cr would be empty at this
  26884. # point, so we can use a bashism as a fallback.
  26885. if test "x$ac_cr" = x; then
  26886. eval ac_cr=\$\'\\r\'
  26887. fi
  26888. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26889. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26890. ac_cs_awk_cr='\\r'
  26891. else
  26892. ac_cs_awk_cr=$ac_cr
  26893. fi
  26894. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26895. _ACEOF
  26896. {
  26897. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26898. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26899. echo "_ACEOF"
  26900. } >conf$$subs.sh ||
  26901. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26902. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26903. ac_delim='%!_!# '
  26904. for ac_last_try in false false false false false :; do
  26905. . ./conf$$subs.sh ||
  26906. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26907. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26908. if test $ac_delim_n = $ac_delim_num; then
  26909. break
  26910. elif $ac_last_try; then
  26911. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26912. else
  26913. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26914. fi
  26915. done
  26916. rm -f conf$$subs.sh
  26917. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26918. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26919. _ACEOF
  26920. sed -n '
  26921. h
  26922. s/^/S["/; s/!.*/"]=/
  26923. p
  26924. g
  26925. s/^[^!]*!//
  26926. :repl
  26927. t repl
  26928. s/'"$ac_delim"'$//
  26929. t delim
  26930. :nl
  26931. h
  26932. s/\(.\{148\}\)..*/\1/
  26933. t more1
  26934. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26935. p
  26936. n
  26937. b repl
  26938. :more1
  26939. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26940. p
  26941. g
  26942. s/.\{148\}//
  26943. t nl
  26944. :delim
  26945. h
  26946. s/\(.\{148\}\)..*/\1/
  26947. t more2
  26948. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26949. p
  26950. b
  26951. :more2
  26952. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26953. p
  26954. g
  26955. s/.\{148\}//
  26956. t delim
  26957. ' <conf$$subs.awk | sed '
  26958. /^[^""]/{
  26959. N
  26960. s/\n//
  26961. }
  26962. ' >>$CONFIG_STATUS || ac_write_fail=1
  26963. rm -f conf$$subs.awk
  26964. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26965. _ACAWK
  26966. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26967. for (key in S) S_is_set[key] = 1
  26968. FS = ""
  26969. }
  26970. {
  26971. line = $ 0
  26972. nfields = split(line, field, "@")
  26973. substed = 0
  26974. len = length(field[1])
  26975. for (i = 2; i < nfields; i++) {
  26976. key = field[i]
  26977. keylen = length(key)
  26978. if (S_is_set[key]) {
  26979. value = S[key]
  26980. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26981. len += length(value) + length(field[++i])
  26982. substed = 1
  26983. } else
  26984. len += 1 + keylen
  26985. }
  26986. print line
  26987. }
  26988. _ACAWK
  26989. _ACEOF
  26990. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26991. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26992. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26993. else
  26994. cat
  26995. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26996. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26997. _ACEOF
  26998. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26999. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27000. # trailing colons and then remove the whole line if VPATH becomes empty
  27001. # (actually we leave an empty line to preserve line numbers).
  27002. if test "x$srcdir" = x.; then
  27003. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27004. h
  27005. s///
  27006. s/^/:/
  27007. s/[ ]*$/:/
  27008. s/:\$(srcdir):/:/g
  27009. s/:\${srcdir}:/:/g
  27010. s/:@srcdir@:/:/g
  27011. s/^:*//
  27012. s/:*$//
  27013. x
  27014. s/\(=[ ]*\).*/\1/
  27015. G
  27016. s/\n//
  27017. s/^[^=]*=[ ]*$//
  27018. }'
  27019. fi
  27020. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27021. fi # test -n "$CONFIG_FILES"
  27022. # Set up the scripts for CONFIG_HEADERS section.
  27023. # No need to generate them if there are no CONFIG_HEADERS.
  27024. # This happens for instance with `./config.status Makefile'.
  27025. if test -n "$CONFIG_HEADERS"; then
  27026. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27027. BEGIN {
  27028. _ACEOF
  27029. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27030. # here-document in config.status, that substitutes the proper values into
  27031. # config.h.in to produce config.h.
  27032. # Create a delimiter string that does not exist in confdefs.h, to ease
  27033. # handling of long lines.
  27034. ac_delim='%!_!# '
  27035. for ac_last_try in false false :; do
  27036. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27037. if test -z "$ac_tt"; then
  27038. break
  27039. elif $ac_last_try; then
  27040. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27041. else
  27042. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27043. fi
  27044. done
  27045. # For the awk script, D is an array of macro values keyed by name,
  27046. # likewise P contains macro parameters if any. Preserve backslash
  27047. # newline sequences.
  27048. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27049. sed -n '
  27050. s/.\{148\}/&'"$ac_delim"'/g
  27051. t rset
  27052. :rset
  27053. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27054. t def
  27055. d
  27056. :def
  27057. s/\\$//
  27058. t bsnl
  27059. s/["\\]/\\&/g
  27060. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27061. D["\1"]=" \3"/p
  27062. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27063. d
  27064. :bsnl
  27065. s/["\\]/\\&/g
  27066. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27067. D["\1"]=" \3\\\\\\n"\\/p
  27068. t cont
  27069. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27070. t cont
  27071. d
  27072. :cont
  27073. n
  27074. s/.\{148\}/&'"$ac_delim"'/g
  27075. t clear
  27076. :clear
  27077. s/\\$//
  27078. t bsnlc
  27079. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27080. d
  27081. :bsnlc
  27082. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27083. b cont
  27084. ' <confdefs.h | sed '
  27085. s/'"$ac_delim"'/"\\\
  27086. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27087. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27088. for (key in D) D_is_set[key] = 1
  27089. FS = ""
  27090. }
  27091. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27092. line = \$ 0
  27093. split(line, arg, " ")
  27094. if (arg[1] == "#") {
  27095. defundef = arg[2]
  27096. mac1 = arg[3]
  27097. } else {
  27098. defundef = substr(arg[1], 2)
  27099. mac1 = arg[2]
  27100. }
  27101. split(mac1, mac2, "(") #)
  27102. macro = mac2[1]
  27103. prefix = substr(line, 1, index(line, defundef) - 1)
  27104. if (D_is_set[macro]) {
  27105. # Preserve the white space surrounding the "#".
  27106. print prefix "define", macro P[macro] D[macro]
  27107. next
  27108. } else {
  27109. # Replace #undef with comments. This is necessary, for example,
  27110. # in the case of _POSIX_SOURCE, which is predefined and required
  27111. # on some systems where configure will not decide to define it.
  27112. if (defundef == "undef") {
  27113. print "/*", prefix defundef, macro, "*/"
  27114. next
  27115. }
  27116. }
  27117. }
  27118. { print }
  27119. _ACAWK
  27120. _ACEOF
  27121. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27122. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27123. fi # test -n "$CONFIG_HEADERS"
  27124. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27125. shift
  27126. for ac_tag
  27127. do
  27128. case $ac_tag in
  27129. :[FHLC]) ac_mode=$ac_tag; continue;;
  27130. esac
  27131. case $ac_mode$ac_tag in
  27132. :[FHL]*:*);;
  27133. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27134. :[FH]-) ac_tag=-:-;;
  27135. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27136. esac
  27137. ac_save_IFS=$IFS
  27138. IFS=:
  27139. set x $ac_tag
  27140. IFS=$ac_save_IFS
  27141. shift
  27142. ac_file=$1
  27143. shift
  27144. case $ac_mode in
  27145. :L) ac_source=$1;;
  27146. :[FH])
  27147. ac_file_inputs=
  27148. for ac_f
  27149. do
  27150. case $ac_f in
  27151. -) ac_f="$ac_tmp/stdin";;
  27152. *) # Look for the file first in the build tree, then in the source tree
  27153. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27154. # because $ac_f cannot contain `:'.
  27155. test -f "$ac_f" ||
  27156. case $ac_f in
  27157. [\\/$]*) false;;
  27158. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27159. esac ||
  27160. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27161. esac
  27162. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27163. as_fn_append ac_file_inputs " '$ac_f'"
  27164. done
  27165. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27166. # use $as_me), people would be surprised to read:
  27167. # /* config.h. Generated by config.status. */
  27168. configure_input='Generated from '`
  27169. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27170. `' by configure.'
  27171. if test x"$ac_file" != x-; then
  27172. configure_input="$ac_file. $configure_input"
  27173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27174. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27175. fi
  27176. # Neutralize special characters interpreted by sed in replacement strings.
  27177. case $configure_input in #(
  27178. *\&* | *\|* | *\\* )
  27179. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27180. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27181. *) ac_sed_conf_input=$configure_input;;
  27182. esac
  27183. case $ac_tag in
  27184. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27185. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27186. esac
  27187. ;;
  27188. esac
  27189. ac_dir=`$as_dirname -- "$ac_file" ||
  27190. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27191. X"$ac_file" : 'X\(//\)[^/]' \| \
  27192. X"$ac_file" : 'X\(//\)$' \| \
  27193. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27194. printf "%s\n" X"$ac_file" |
  27195. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27196. s//\1/
  27197. q
  27198. }
  27199. /^X\(\/\/\)[^/].*/{
  27200. s//\1/
  27201. q
  27202. }
  27203. /^X\(\/\/\)$/{
  27204. s//\1/
  27205. q
  27206. }
  27207. /^X\(\/\).*/{
  27208. s//\1/
  27209. q
  27210. }
  27211. s/.*/./; q'`
  27212. as_dir="$ac_dir"; as_fn_mkdir_p
  27213. ac_builddir=.
  27214. case "$ac_dir" in
  27215. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27216. *)
  27217. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27218. # A ".." for each directory in $ac_dir_suffix.
  27219. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27220. case $ac_top_builddir_sub in
  27221. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27222. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27223. esac ;;
  27224. esac
  27225. ac_abs_top_builddir=$ac_pwd
  27226. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27227. # for backward compatibility:
  27228. ac_top_builddir=$ac_top_build_prefix
  27229. case $srcdir in
  27230. .) # We are building in place.
  27231. ac_srcdir=.
  27232. ac_top_srcdir=$ac_top_builddir_sub
  27233. ac_abs_top_srcdir=$ac_pwd ;;
  27234. [\\/]* | ?:[\\/]* ) # Absolute name.
  27235. ac_srcdir=$srcdir$ac_dir_suffix;
  27236. ac_top_srcdir=$srcdir
  27237. ac_abs_top_srcdir=$srcdir ;;
  27238. *) # Relative name.
  27239. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27240. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27241. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27242. esac
  27243. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27244. case $ac_mode in
  27245. :F)
  27246. #
  27247. # CONFIG_FILE
  27248. #
  27249. case $INSTALL in
  27250. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27251. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27252. esac
  27253. _ACEOF
  27254. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27255. # If the template does not know about datarootdir, expand it.
  27256. # FIXME: This hack should be removed a few years after 2.60.
  27257. ac_datarootdir_hack=; ac_datarootdir_seen=
  27258. ac_sed_dataroot='
  27259. /datarootdir/ {
  27260. p
  27261. q
  27262. }
  27263. /@datadir@/p
  27264. /@docdir@/p
  27265. /@infodir@/p
  27266. /@localedir@/p
  27267. /@mandir@/p'
  27268. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27269. *datarootdir*) ac_datarootdir_seen=yes;;
  27270. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27272. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27273. _ACEOF
  27274. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27275. ac_datarootdir_hack='
  27276. s&@datadir@&$datadir&g
  27277. s&@docdir@&$docdir&g
  27278. s&@infodir@&$infodir&g
  27279. s&@localedir@&$localedir&g
  27280. s&@mandir@&$mandir&g
  27281. s&\\\${datarootdir}&$datarootdir&g' ;;
  27282. esac
  27283. _ACEOF
  27284. # Neutralize VPATH when `$srcdir' = `.'.
  27285. # Shell code in configure.ac might set extrasub.
  27286. # FIXME: do we really want to maintain this feature?
  27287. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27288. ac_sed_extra="$ac_vpsub
  27289. $extrasub
  27290. _ACEOF
  27291. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27292. :t
  27293. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27294. s|@configure_input@|$ac_sed_conf_input|;t t
  27295. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27296. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27297. s&@srcdir@&$ac_srcdir&;t t
  27298. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27299. s&@top_srcdir@&$ac_top_srcdir&;t t
  27300. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27301. s&@builddir@&$ac_builddir&;t t
  27302. s&@abs_builddir@&$ac_abs_builddir&;t t
  27303. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27304. s&@INSTALL@&$ac_INSTALL&;t t
  27305. $ac_datarootdir_hack
  27306. "
  27307. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27308. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27309. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27310. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27311. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27312. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27314. which seems to be undefined. Please make sure it is defined" >&5
  27315. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27316. which seems to be undefined. Please make sure it is defined" >&2;}
  27317. rm -f "$ac_tmp/stdin"
  27318. case $ac_file in
  27319. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27320. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27321. esac \
  27322. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27323. ;;
  27324. :H)
  27325. #
  27326. # CONFIG_HEADER
  27327. #
  27328. if test x"$ac_file" != x-; then
  27329. {
  27330. printf "%s\n" "/* $configure_input */" >&1 \
  27331. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27332. } >"$ac_tmp/config.h" \
  27333. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27334. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27336. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27337. else
  27338. rm -f "$ac_file"
  27339. mv "$ac_tmp/config.h" "$ac_file" \
  27340. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27341. fi
  27342. else
  27343. printf "%s\n" "/* $configure_input */" >&1 \
  27344. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27345. || as_fn_error $? "could not create -" "$LINENO" 5
  27346. fi
  27347. ;;
  27348. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27349. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27350. ;;
  27351. esac
  27352. case $ac_file$ac_mode in
  27353. "libtool":C)
  27354. # See if we are running on zsh, and set the options that allow our
  27355. # commands through without removal of \ escapes.
  27356. if test -n "${ZSH_VERSION+set}"; then
  27357. setopt NO_GLOB_SUBST
  27358. fi
  27359. cfgfile=${ofile}T
  27360. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27361. $RM "$cfgfile"
  27362. cat <<_LT_EOF >> "$cfgfile"
  27363. #! $SHELL
  27364. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27365. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27366. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27367. # Provide generalized library-building support services.
  27368. # Written by Gordon Matzigkeit, 1996
  27369. # Copyright (C) 2014 Free Software Foundation, Inc.
  27370. # This is free software; see the source for copying conditions. There is NO
  27371. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27372. # GNU Libtool is free software; you can redistribute it and/or modify
  27373. # it under the terms of the GNU General Public License as published by
  27374. # the Free Software Foundation; either version 2 of of the License, or
  27375. # (at your option) any later version.
  27376. #
  27377. # As a special exception to the GNU General Public License, if you
  27378. # distribute this file as part of a program or library that is built
  27379. # using GNU Libtool, you may include this file under the same
  27380. # distribution terms that you use for the rest of that program.
  27381. #
  27382. # GNU Libtool is distributed in the hope that it will be useful, but
  27383. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27384. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27385. # GNU General Public License for more details.
  27386. #
  27387. # You should have received a copy of the GNU General Public License
  27388. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27389. # The names of the tagged configurations supported by this script.
  27390. available_tags='RC CXX '
  27391. # Configured defaults for sys_lib_dlsearch_path munging.
  27392. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27393. # ### BEGIN LIBTOOL CONFIG
  27394. # Which release of libtool.m4 was used?
  27395. macro_version=$macro_version
  27396. macro_revision=$macro_revision
  27397. # Assembler program.
  27398. AS=$lt_AS
  27399. # DLL creation program.
  27400. DLLTOOL=$lt_DLLTOOL
  27401. # Object dumper program.
  27402. OBJDUMP=$lt_OBJDUMP
  27403. # Whether or not to build shared libraries.
  27404. build_libtool_libs=$enable_shared
  27405. # Whether or not to build static libraries.
  27406. build_old_libs=$enable_static
  27407. # What type of objects to build.
  27408. pic_mode=$pic_mode
  27409. # Whether or not to optimize for fast installation.
  27410. fast_install=$enable_fast_install
  27411. # Shared archive member basename,for filename based shared library versioning on AIX.
  27412. shared_archive_member_spec=$shared_archive_member_spec
  27413. # Shell to use when invoking shell scripts.
  27414. SHELL=$lt_SHELL
  27415. # An echo program that protects backslashes.
  27416. ECHO=$lt_ECHO
  27417. # The PATH separator for the build system.
  27418. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27419. # The host system.
  27420. host_alias=$host_alias
  27421. host=$host
  27422. host_os=$host_os
  27423. # The build system.
  27424. build_alias=$build_alias
  27425. build=$build
  27426. build_os=$build_os
  27427. # A sed program that does not truncate output.
  27428. SED=$lt_SED
  27429. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27430. Xsed="\$SED -e 1s/^X//"
  27431. # A grep program that handles long lines.
  27432. GREP=$lt_GREP
  27433. # An ERE matcher.
  27434. EGREP=$lt_EGREP
  27435. # A literal string matcher.
  27436. FGREP=$lt_FGREP
  27437. # A BSD- or MS-compatible name lister.
  27438. NM=$lt_NM
  27439. # Whether we need soft or hard links.
  27440. LN_S=$lt_LN_S
  27441. # What is the maximum length of a command?
  27442. max_cmd_len=$max_cmd_len
  27443. # Object file suffix (normally "o").
  27444. objext=$ac_objext
  27445. # Executable file suffix (normally "").
  27446. exeext=$exeext
  27447. # whether the shell understands "unset".
  27448. lt_unset=$lt_unset
  27449. # turn spaces into newlines.
  27450. SP2NL=$lt_lt_SP2NL
  27451. # turn newlines into spaces.
  27452. NL2SP=$lt_lt_NL2SP
  27453. # convert \$build file names to \$host format.
  27454. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27455. # convert \$build files to toolchain format.
  27456. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27457. # Method to check whether dependent libraries are shared objects.
  27458. deplibs_check_method=$lt_deplibs_check_method
  27459. # Command to use when deplibs_check_method = "file_magic".
  27460. file_magic_cmd=$lt_file_magic_cmd
  27461. # How to find potential files when deplibs_check_method = "file_magic".
  27462. file_magic_glob=$lt_file_magic_glob
  27463. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27464. want_nocaseglob=$lt_want_nocaseglob
  27465. # Command to associate shared and link libraries.
  27466. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27467. # The archiver.
  27468. AR=$lt_AR
  27469. # Flags to create an archive.
  27470. AR_FLAGS=$lt_AR_FLAGS
  27471. # How to feed a file listing to the archiver.
  27472. archiver_list_spec=$lt_archiver_list_spec
  27473. # A symbol stripping program.
  27474. STRIP=$lt_STRIP
  27475. # Commands used to install an old-style archive.
  27476. RANLIB=$lt_RANLIB
  27477. old_postinstall_cmds=$lt_old_postinstall_cmds
  27478. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27479. # Whether to use a lock for old archive extraction.
  27480. lock_old_archive_extraction=$lock_old_archive_extraction
  27481. # A C compiler.
  27482. LTCC=$lt_CC
  27483. # LTCC compiler flags.
  27484. LTCFLAGS=$lt_CFLAGS
  27485. # Take the output of nm and produce a listing of raw symbols and C names.
  27486. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27487. # Transform the output of nm in a proper C declaration.
  27488. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27489. # Transform the output of nm into a list of symbols to manually relocate.
  27490. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27491. # Transform the output of nm in a C name address pair.
  27492. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27493. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27494. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27495. # The name lister interface.
  27496. nm_interface=$lt_lt_cv_nm_interface
  27497. # Specify filename containing input files for \$NM.
  27498. nm_file_list_spec=$lt_nm_file_list_spec
  27499. # The root where to search for dependent libraries,and where our libraries should be installed.
  27500. lt_sysroot=$lt_sysroot
  27501. # Command to truncate a binary pipe.
  27502. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27503. # The name of the directory that contains temporary libtool files.
  27504. objdir=$objdir
  27505. # Used to examine libraries when file_magic_cmd begins with "file".
  27506. MAGIC_CMD=$MAGIC_CMD
  27507. # Must we lock files when doing compilation?
  27508. need_locks=$lt_need_locks
  27509. # Manifest tool.
  27510. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27511. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27512. DSYMUTIL=$lt_DSYMUTIL
  27513. # Tool to change global to local symbols on Mac OS X.
  27514. NMEDIT=$lt_NMEDIT
  27515. # Tool to manipulate fat objects and archives on Mac OS X.
  27516. LIPO=$lt_LIPO
  27517. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27518. OTOOL=$lt_OTOOL
  27519. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27520. OTOOL64=$lt_OTOOL64
  27521. # Old archive suffix (normally "a").
  27522. libext=$libext
  27523. # Shared library suffix (normally ".so").
  27524. shrext_cmds=$lt_shrext_cmds
  27525. # The commands to extract the exported symbol list from a shared archive.
  27526. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27527. # Variables whose values should be saved in libtool wrapper scripts and
  27528. # restored at link time.
  27529. variables_saved_for_relink=$lt_variables_saved_for_relink
  27530. # Do we need the "lib" prefix for modules?
  27531. need_lib_prefix=$need_lib_prefix
  27532. # Do we need a version for libraries?
  27533. need_version=$need_version
  27534. # Library versioning type.
  27535. version_type=$version_type
  27536. # Shared library runtime path variable.
  27537. runpath_var=$runpath_var
  27538. # Shared library path variable.
  27539. shlibpath_var=$shlibpath_var
  27540. # Is shlibpath searched before the hard-coded library search path?
  27541. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27542. # Format of library name prefix.
  27543. libname_spec=$lt_libname_spec
  27544. # List of archive names. First name is the real one, the rest are links.
  27545. # The last name is the one that the linker finds with -lNAME
  27546. library_names_spec=$lt_library_names_spec
  27547. # The coded name of the library, if different from the real name.
  27548. soname_spec=$lt_soname_spec
  27549. # Permission mode override for installation of shared libraries.
  27550. install_override_mode=$lt_install_override_mode
  27551. # Command to use after installation of a shared archive.
  27552. postinstall_cmds=$lt_postinstall_cmds
  27553. # Command to use after uninstallation of a shared archive.
  27554. postuninstall_cmds=$lt_postuninstall_cmds
  27555. # Commands used to finish a libtool library installation in a directory.
  27556. finish_cmds=$lt_finish_cmds
  27557. # As "finish_cmds", except a single script fragment to be evaled but
  27558. # not shown.
  27559. finish_eval=$lt_finish_eval
  27560. # Whether we should hardcode library paths into libraries.
  27561. hardcode_into_libs=$hardcode_into_libs
  27562. # Compile-time system search path for libraries.
  27563. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27564. # Detected run-time system search path for libraries.
  27565. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27566. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27567. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27568. # Whether dlopen is supported.
  27569. dlopen_support=$enable_dlopen
  27570. # Whether dlopen of programs is supported.
  27571. dlopen_self=$enable_dlopen_self
  27572. # Whether dlopen of statically linked programs is supported.
  27573. dlopen_self_static=$enable_dlopen_self_static
  27574. # Commands to strip libraries.
  27575. old_striplib=$lt_old_striplib
  27576. striplib=$lt_striplib
  27577. # The linker used to build libraries.
  27578. LD=$lt_LD
  27579. # How to create reloadable object files.
  27580. reload_flag=$lt_reload_flag
  27581. reload_cmds=$lt_reload_cmds
  27582. # Commands used to build an old-style archive.
  27583. old_archive_cmds=$lt_old_archive_cmds
  27584. # A language specific compiler.
  27585. CC=$lt_compiler
  27586. # Is the compiler the GNU compiler?
  27587. with_gcc=$GCC
  27588. # Compiler flag to turn off builtin functions.
  27589. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27590. # Additional compiler flags for building library objects.
  27591. pic_flag=$lt_lt_prog_compiler_pic
  27592. # How to pass a linker flag through the compiler.
  27593. wl=$lt_lt_prog_compiler_wl
  27594. # Compiler flag to prevent dynamic linking.
  27595. link_static_flag=$lt_lt_prog_compiler_static
  27596. # Does compiler simultaneously support -c and -o options?
  27597. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27598. # Whether or not to add -lc for building shared libraries.
  27599. build_libtool_need_lc=$archive_cmds_need_lc
  27600. # Whether or not to disallow shared libs when runtime libs are static.
  27601. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27602. # Compiler flag to allow reflexive dlopens.
  27603. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27604. # Compiler flag to generate shared objects directly from archives.
  27605. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27606. # Whether the compiler copes with passing no objects directly.
  27607. compiler_needs_object=$lt_compiler_needs_object
  27608. # Create an old-style archive from a shared archive.
  27609. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27610. # Create a temporary old-style archive to link instead of a shared archive.
  27611. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27612. # Commands used to build a shared archive.
  27613. archive_cmds=$lt_archive_cmds
  27614. archive_expsym_cmds=$lt_archive_expsym_cmds
  27615. # Commands used to build a loadable module if different from building
  27616. # a shared archive.
  27617. module_cmds=$lt_module_cmds
  27618. module_expsym_cmds=$lt_module_expsym_cmds
  27619. # Whether we are building with GNU ld or not.
  27620. with_gnu_ld=$lt_with_gnu_ld
  27621. # Flag that allows shared libraries with undefined symbols to be built.
  27622. allow_undefined_flag=$lt_allow_undefined_flag
  27623. # Flag that enforces no undefined symbols.
  27624. no_undefined_flag=$lt_no_undefined_flag
  27625. # Flag to hardcode \$libdir into a binary during linking.
  27626. # This must work even if \$libdir does not exist
  27627. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27628. # Whether we need a single "-rpath" flag with a separated argument.
  27629. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27630. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27631. # DIR into the resulting binary.
  27632. hardcode_direct=$hardcode_direct
  27633. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27634. # DIR into the resulting binary and the resulting library dependency is
  27635. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27636. # library is relocated.
  27637. hardcode_direct_absolute=$hardcode_direct_absolute
  27638. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27639. # into the resulting binary.
  27640. hardcode_minus_L=$hardcode_minus_L
  27641. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27642. # into the resulting binary.
  27643. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27644. # Set to "yes" if building a shared library automatically hardcodes DIR
  27645. # into the library and all subsequent libraries and executables linked
  27646. # against it.
  27647. hardcode_automatic=$hardcode_automatic
  27648. # Set to yes if linker adds runtime paths of dependent libraries
  27649. # to runtime path list.
  27650. inherit_rpath=$inherit_rpath
  27651. # Whether libtool must link a program against all its dependency libraries.
  27652. link_all_deplibs=$link_all_deplibs
  27653. # Set to "yes" if exported symbols are required.
  27654. always_export_symbols=$always_export_symbols
  27655. # The commands to list exported symbols.
  27656. export_symbols_cmds=$lt_export_symbols_cmds
  27657. # Symbols that should not be listed in the preloaded symbols.
  27658. exclude_expsyms=$lt_exclude_expsyms
  27659. # Symbols that must always be exported.
  27660. include_expsyms=$lt_include_expsyms
  27661. # Commands necessary for linking programs (against libraries) with templates.
  27662. prelink_cmds=$lt_prelink_cmds
  27663. # Commands necessary for finishing linking programs.
  27664. postlink_cmds=$lt_postlink_cmds
  27665. # Specify filename containing input files.
  27666. file_list_spec=$lt_file_list_spec
  27667. # How to hardcode a shared library path into an executable.
  27668. hardcode_action=$hardcode_action
  27669. # The directories searched by this compiler when creating a shared library.
  27670. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27671. # Dependencies to place before and after the objects being linked to
  27672. # create a shared library.
  27673. predep_objects=$lt_predep_objects
  27674. postdep_objects=$lt_postdep_objects
  27675. predeps=$lt_predeps
  27676. postdeps=$lt_postdeps
  27677. # The library search path used internally by the compiler when linking
  27678. # a shared library.
  27679. compiler_lib_search_path=$lt_compiler_lib_search_path
  27680. # ### END LIBTOOL CONFIG
  27681. _LT_EOF
  27682. cat <<'_LT_EOF' >> "$cfgfile"
  27683. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27684. # func_munge_path_list VARIABLE PATH
  27685. # -----------------------------------
  27686. # VARIABLE is name of variable containing _space_ separated list of
  27687. # directories to be munged by the contents of PATH, which is string
  27688. # having a format:
  27689. # "DIR[:DIR]:"
  27690. # string "DIR[ DIR]" will be prepended to VARIABLE
  27691. # ":DIR[:DIR]"
  27692. # string "DIR[ DIR]" will be appended to VARIABLE
  27693. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27694. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27695. # "DIRA[ DIRA]" will be appended to VARIABLE
  27696. # "DIR[:DIR]"
  27697. # VARIABLE will be replaced by "DIR[ DIR]"
  27698. func_munge_path_list ()
  27699. {
  27700. case x$2 in
  27701. x)
  27702. ;;
  27703. *:)
  27704. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27705. ;;
  27706. x:*)
  27707. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27708. ;;
  27709. *::*)
  27710. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27711. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27712. ;;
  27713. *)
  27714. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27715. ;;
  27716. esac
  27717. }
  27718. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27719. func_cc_basename ()
  27720. {
  27721. for cc_temp in $*""; do
  27722. case $cc_temp in
  27723. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27724. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27725. \-*) ;;
  27726. *) break;;
  27727. esac
  27728. done
  27729. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27730. }
  27731. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27732. _LT_EOF
  27733. case $host_os in
  27734. aix3*)
  27735. cat <<\_LT_EOF >> "$cfgfile"
  27736. # AIX sometimes has problems with the GCC collect2 program. For some
  27737. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27738. # vanish in a puff of smoke.
  27739. if test set != "${COLLECT_NAMES+set}"; then
  27740. COLLECT_NAMES=
  27741. export COLLECT_NAMES
  27742. fi
  27743. _LT_EOF
  27744. ;;
  27745. esac
  27746. ltmain=$ac_aux_dir/ltmain.sh
  27747. # We use sed instead of cat because bash on DJGPP gets confused if
  27748. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27749. # text mode, it properly converts lines to CR/LF. This bash problem
  27750. # is reportedly fixed, but why not run on old versions too?
  27751. sed '$q' "$ltmain" >> "$cfgfile" \
  27752. || (rm -f "$cfgfile"; exit 1)
  27753. mv -f "$cfgfile" "$ofile" ||
  27754. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27755. chmod +x "$ofile"
  27756. cat <<_LT_EOF >> "$ofile"
  27757. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27758. # The linker used to build libraries.
  27759. LD=$lt_LD_RC
  27760. # How to create reloadable object files.
  27761. reload_flag=$lt_reload_flag_RC
  27762. reload_cmds=$lt_reload_cmds_RC
  27763. # Commands used to build an old-style archive.
  27764. old_archive_cmds=$lt_old_archive_cmds_RC
  27765. # A language specific compiler.
  27766. CC=$lt_compiler_RC
  27767. # Is the compiler the GNU compiler?
  27768. with_gcc=$GCC_RC
  27769. # Compiler flag to turn off builtin functions.
  27770. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27771. # Additional compiler flags for building library objects.
  27772. pic_flag=$lt_lt_prog_compiler_pic_RC
  27773. # How to pass a linker flag through the compiler.
  27774. wl=$lt_lt_prog_compiler_wl_RC
  27775. # Compiler flag to prevent dynamic linking.
  27776. link_static_flag=$lt_lt_prog_compiler_static_RC
  27777. # Does compiler simultaneously support -c and -o options?
  27778. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27779. # Whether or not to add -lc for building shared libraries.
  27780. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27781. # Whether or not to disallow shared libs when runtime libs are static.
  27782. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27783. # Compiler flag to allow reflexive dlopens.
  27784. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27785. # Compiler flag to generate shared objects directly from archives.
  27786. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27787. # Whether the compiler copes with passing no objects directly.
  27788. compiler_needs_object=$lt_compiler_needs_object_RC
  27789. # Create an old-style archive from a shared archive.
  27790. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27791. # Create a temporary old-style archive to link instead of a shared archive.
  27792. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27793. # Commands used to build a shared archive.
  27794. archive_cmds=$lt_archive_cmds_RC
  27795. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27796. # Commands used to build a loadable module if different from building
  27797. # a shared archive.
  27798. module_cmds=$lt_module_cmds_RC
  27799. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27800. # Whether we are building with GNU ld or not.
  27801. with_gnu_ld=$lt_with_gnu_ld_RC
  27802. # Flag that allows shared libraries with undefined symbols to be built.
  27803. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27804. # Flag that enforces no undefined symbols.
  27805. no_undefined_flag=$lt_no_undefined_flag_RC
  27806. # Flag to hardcode \$libdir into a binary during linking.
  27807. # This must work even if \$libdir does not exist
  27808. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27809. # Whether we need a single "-rpath" flag with a separated argument.
  27810. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27811. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27812. # DIR into the resulting binary.
  27813. hardcode_direct=$hardcode_direct_RC
  27814. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27815. # DIR into the resulting binary and the resulting library dependency is
  27816. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27817. # library is relocated.
  27818. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27819. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27820. # into the resulting binary.
  27821. hardcode_minus_L=$hardcode_minus_L_RC
  27822. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27823. # into the resulting binary.
  27824. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27825. # Set to "yes" if building a shared library automatically hardcodes DIR
  27826. # into the library and all subsequent libraries and executables linked
  27827. # against it.
  27828. hardcode_automatic=$hardcode_automatic_RC
  27829. # Set to yes if linker adds runtime paths of dependent libraries
  27830. # to runtime path list.
  27831. inherit_rpath=$inherit_rpath_RC
  27832. # Whether libtool must link a program against all its dependency libraries.
  27833. link_all_deplibs=$link_all_deplibs_RC
  27834. # Set to "yes" if exported symbols are required.
  27835. always_export_symbols=$always_export_symbols_RC
  27836. # The commands to list exported symbols.
  27837. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27838. # Symbols that should not be listed in the preloaded symbols.
  27839. exclude_expsyms=$lt_exclude_expsyms_RC
  27840. # Symbols that must always be exported.
  27841. include_expsyms=$lt_include_expsyms_RC
  27842. # Commands necessary for linking programs (against libraries) with templates.
  27843. prelink_cmds=$lt_prelink_cmds_RC
  27844. # Commands necessary for finishing linking programs.
  27845. postlink_cmds=$lt_postlink_cmds_RC
  27846. # Specify filename containing input files.
  27847. file_list_spec=$lt_file_list_spec_RC
  27848. # How to hardcode a shared library path into an executable.
  27849. hardcode_action=$hardcode_action_RC
  27850. # The directories searched by this compiler when creating a shared library.
  27851. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27852. # Dependencies to place before and after the objects being linked to
  27853. # create a shared library.
  27854. predep_objects=$lt_predep_objects_RC
  27855. postdep_objects=$lt_postdep_objects_RC
  27856. predeps=$lt_predeps_RC
  27857. postdeps=$lt_postdeps_RC
  27858. # The library search path used internally by the compiler when linking
  27859. # a shared library.
  27860. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27861. # ### END LIBTOOL TAG CONFIG: RC
  27862. _LT_EOF
  27863. cat <<_LT_EOF >> "$ofile"
  27864. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27865. # The linker used to build libraries.
  27866. LD=$lt_LD_CXX
  27867. # How to create reloadable object files.
  27868. reload_flag=$lt_reload_flag_CXX
  27869. reload_cmds=$lt_reload_cmds_CXX
  27870. # Commands used to build an old-style archive.
  27871. old_archive_cmds=$lt_old_archive_cmds_CXX
  27872. # A language specific compiler.
  27873. CC=$lt_compiler_CXX
  27874. # Is the compiler the GNU compiler?
  27875. with_gcc=$GCC_CXX
  27876. # Compiler flag to turn off builtin functions.
  27877. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27878. # Additional compiler flags for building library objects.
  27879. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27880. # How to pass a linker flag through the compiler.
  27881. wl=$lt_lt_prog_compiler_wl_CXX
  27882. # Compiler flag to prevent dynamic linking.
  27883. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27884. # Does compiler simultaneously support -c and -o options?
  27885. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27886. # Whether or not to add -lc for building shared libraries.
  27887. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27888. # Whether or not to disallow shared libs when runtime libs are static.
  27889. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27890. # Compiler flag to allow reflexive dlopens.
  27891. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27892. # Compiler flag to generate shared objects directly from archives.
  27893. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27894. # Whether the compiler copes with passing no objects directly.
  27895. compiler_needs_object=$lt_compiler_needs_object_CXX
  27896. # Create an old-style archive from a shared archive.
  27897. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27898. # Create a temporary old-style archive to link instead of a shared archive.
  27899. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27900. # Commands used to build a shared archive.
  27901. archive_cmds=$lt_archive_cmds_CXX
  27902. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27903. # Commands used to build a loadable module if different from building
  27904. # a shared archive.
  27905. module_cmds=$lt_module_cmds_CXX
  27906. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27907. # Whether we are building with GNU ld or not.
  27908. with_gnu_ld=$lt_with_gnu_ld_CXX
  27909. # Flag that allows shared libraries with undefined symbols to be built.
  27910. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27911. # Flag that enforces no undefined symbols.
  27912. no_undefined_flag=$lt_no_undefined_flag_CXX
  27913. # Flag to hardcode \$libdir into a binary during linking.
  27914. # This must work even if \$libdir does not exist
  27915. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27916. # Whether we need a single "-rpath" flag with a separated argument.
  27917. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27918. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27919. # DIR into the resulting binary.
  27920. hardcode_direct=$hardcode_direct_CXX
  27921. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27922. # DIR into the resulting binary and the resulting library dependency is
  27923. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27924. # library is relocated.
  27925. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27926. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27927. # into the resulting binary.
  27928. hardcode_minus_L=$hardcode_minus_L_CXX
  27929. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27930. # into the resulting binary.
  27931. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27932. # Set to "yes" if building a shared library automatically hardcodes DIR
  27933. # into the library and all subsequent libraries and executables linked
  27934. # against it.
  27935. hardcode_automatic=$hardcode_automatic_CXX
  27936. # Set to yes if linker adds runtime paths of dependent libraries
  27937. # to runtime path list.
  27938. inherit_rpath=$inherit_rpath_CXX
  27939. # Whether libtool must link a program against all its dependency libraries.
  27940. link_all_deplibs=$link_all_deplibs_CXX
  27941. # Set to "yes" if exported symbols are required.
  27942. always_export_symbols=$always_export_symbols_CXX
  27943. # The commands to list exported symbols.
  27944. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27945. # Symbols that should not be listed in the preloaded symbols.
  27946. exclude_expsyms=$lt_exclude_expsyms_CXX
  27947. # Symbols that must always be exported.
  27948. include_expsyms=$lt_include_expsyms_CXX
  27949. # Commands necessary for linking programs (against libraries) with templates.
  27950. prelink_cmds=$lt_prelink_cmds_CXX
  27951. # Commands necessary for finishing linking programs.
  27952. postlink_cmds=$lt_postlink_cmds_CXX
  27953. # Specify filename containing input files.
  27954. file_list_spec=$lt_file_list_spec_CXX
  27955. # How to hardcode a shared library path into an executable.
  27956. hardcode_action=$hardcode_action_CXX
  27957. # The directories searched by this compiler when creating a shared library.
  27958. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27959. # Dependencies to place before and after the objects being linked to
  27960. # create a shared library.
  27961. predep_objects=$lt_predep_objects_CXX
  27962. postdep_objects=$lt_postdep_objects_CXX
  27963. predeps=$lt_predeps_CXX
  27964. postdeps=$lt_postdeps_CXX
  27965. # The library search path used internally by the compiler when linking
  27966. # a shared library.
  27967. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27968. # ### END LIBTOOL TAG CONFIG: CXX
  27969. _LT_EOF
  27970. ;;
  27971. "sdl2_config":C) chmod a+x sdl2-config ;;
  27972. "summary":C) printf "$SUMMARY" ;;
  27973. esac
  27974. done # for ac_tag
  27975. as_fn_exit 0
  27976. _ACEOF
  27977. ac_clean_files=$ac_clean_files_save
  27978. test $ac_write_fail = 0 ||
  27979. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27980. # configure is writing to config.log, and then calls config.status.
  27981. # config.status does its own redirection, appending to config.log.
  27982. # Unfortunately, on DOS this fails, as config.log is still kept open
  27983. # by configure, so config.status won't be able to write to it; its
  27984. # output is simply discarded. So we exec the FD to /dev/null,
  27985. # effectively closing config.log, so it can be properly (re)opened and
  27986. # appended to by config.status. When coming back to configure, we
  27987. # need to make the FD available again.
  27988. if test "$no_create" != yes; then
  27989. ac_cs_success=:
  27990. ac_config_status_args=
  27991. test "$silent" = yes &&
  27992. ac_config_status_args="$ac_config_status_args --quiet"
  27993. exec 5>/dev/null
  27994. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27995. exec 5>>config.log
  27996. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27997. # would make configure fail if this is the last instruction.
  27998. $ac_cs_success || as_fn_exit 1
  27999. fi
  28000. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28002. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28003. fi