configure 955 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559
  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. SDL_VENDOR_INFO
  627. INSTALL_SDL2_CONFIG
  628. LIBUSB_LIBS
  629. LIBUSB_CFLAGS
  630. IBUS_LIBS
  631. IBUS_CFLAGS
  632. DBUS_LIBS
  633. DBUS_CFLAGS
  634. LIBGBM_LIBS
  635. LIBGBM_CFLAGS
  636. LIBDRM_LIBS
  637. LIBDRM_CFLAGS
  638. DIRECTFB_LIBS
  639. DIRECTFB_CFLAGS
  640. X_EXTRA_LIBS
  641. X_LIBS
  642. X_PRE_LIBS
  643. X_CFLAGS
  644. XMKMF
  645. RPI_LIBS
  646. RPI_CFLAGS
  647. DECOR_LIBS
  648. DECOR_CFLAGS
  649. FUSIONSOUND_LIBS
  650. FUSIONSOUND_CFLAGS
  651. SNDIO_LIBS
  652. SNDIO_CFLAGS
  653. ARTSCONFIG
  654. PULSEAUDIO_LIBS
  655. PULSEAUDIO_CFLAGS
  656. PIPEWIRE_LIBS
  657. PIPEWIRE_CFLAGS
  658. ESD_CONFIG
  659. ESD_LIBS
  660. ESD_CFLAGS
  661. JACK_LIBS
  662. JACK_CFLAGS
  663. ALSA_LIBS
  664. ALSA_CFLAGS
  665. ALLOCA
  666. CPP
  667. LIBTOOLLINKERTAG
  668. LINKER
  669. SORT
  670. PKG_CONFIG_LIBDIR
  671. PKG_CONFIG_PATH
  672. PKG_CONFIG
  673. SET_MAKE
  674. INSTALL_DATA
  675. INSTALL_SCRIPT
  676. INSTALL_PROGRAM
  677. CXXCPP
  678. ac_ct_CXX
  679. CXXFLAGS
  680. CXX
  681. LT_AGE
  682. LT_REVISION
  683. LT_CURRENT
  684. LT_RELEASE
  685. RC
  686. LT_SYS_LIBRARY_PATH
  687. OTOOL64
  688. OTOOL
  689. LIPO
  690. NMEDIT
  691. DSYMUTIL
  692. MANIFEST_TOOL
  693. AWK
  694. RANLIB
  695. STRIP
  696. ac_ct_AR
  697. AR
  698. LN_S
  699. NM
  700. ac_ct_DUMPBIN
  701. DUMPBIN
  702. LD
  703. FGREP
  704. EGREP
  705. GREP
  706. SED
  707. OBJEXT
  708. EXEEXT
  709. ac_ct_CC
  710. CPPFLAGS
  711. LDFLAGS
  712. CFLAGS
  713. CC
  714. host_os
  715. host_vendor
  716. host_cpu
  717. host
  718. build_os
  719. build_vendor
  720. build_cpu
  721. build
  722. LIBTOOL
  723. OBJDUMP
  724. DLLTOOL
  725. AS
  726. SDL_VERSION
  727. SDL_BINARY_AGE
  728. SDL_INTERFACE_AGE
  729. SDL_MICRO_VERSION
  730. SDL_MINOR_VERSION
  731. SDL_MAJOR_VERSION
  732. target_alias
  733. host_alias
  734. build_alias
  735. LIBS
  736. ECHO_T
  737. ECHO_N
  738. ECHO_C
  739. DEFS
  740. mandir
  741. localedir
  742. libdir
  743. psdir
  744. pdfdir
  745. dvidir
  746. htmldir
  747. infodir
  748. docdir
  749. oldincludedir
  750. includedir
  751. runstatedir
  752. localstatedir
  753. sharedstatedir
  754. sysconfdir
  755. datadir
  756. datarootdir
  757. libexecdir
  758. sbindir
  759. bindir
  760. program_transform_name
  761. prefix
  762. exec_prefix
  763. PACKAGE_URL
  764. PACKAGE_BUGREPORT
  765. PACKAGE_STRING
  766. PACKAGE_VERSION
  767. PACKAGE_TARNAME
  768. PACKAGE_NAME
  769. PATH_SEPARATOR
  770. SHELL'
  771. ac_subst_files=''
  772. ac_user_opts='
  773. enable_option_checking
  774. enable_shared
  775. enable_static
  776. with_pic
  777. enable_fast_install
  778. with_aix_soname
  779. with_gnu_ld
  780. with_sysroot
  781. enable_libtool_lock
  782. enable_largefile
  783. enable_assertions
  784. enable_dependency_tracking
  785. enable_libc
  786. enable_system_iconv
  787. enable_gcc_atomics
  788. enable_atomic
  789. enable_audio
  790. enable_video
  791. enable_render
  792. enable_events
  793. enable_joystick
  794. enable_haptic
  795. enable_hidapi
  796. enable_sensor
  797. enable_power
  798. enable_filesystem
  799. enable_timers
  800. enable_file
  801. enable_misc
  802. enable_locale
  803. enable_loadso
  804. enable_cpuinfo
  805. enable_assembly
  806. enable_ssemath
  807. enable_mmx
  808. enable_3dnow
  809. enable_sse
  810. enable_sse2
  811. enable_sse3
  812. enable_altivec
  813. enable_lsx
  814. enable_lasx
  815. enable_oss
  816. enable_alsa
  817. with_alsa_prefix
  818. with_alsa_inc_prefix
  819. enable_alsatest
  820. enable_alsa_shared
  821. enable_jack
  822. enable_jack_shared
  823. enable_esd
  824. with_esd_prefix
  825. with_esd_exec_prefix
  826. enable_esdtest
  827. enable_esd_shared
  828. enable_pipewire
  829. enable_pipewire_shared
  830. enable_pulseaudio
  831. enable_pulseaudio_shared
  832. enable_arts
  833. enable_arts_shared
  834. enable_nas
  835. enable_nas_shared
  836. enable_sndio
  837. enable_sndio_shared
  838. enable_fusionsound
  839. enable_fusionsound_shared
  840. enable_diskaudio
  841. enable_dummyaudio
  842. enable_libsamplerate
  843. enable_libsamplerate_shared
  844. enable_arm_simd
  845. enable_arm_neon
  846. enable_werror
  847. enable_video_wayland
  848. enable_video_wayland_qt_touch
  849. enable_wayland_shared
  850. enable_libdecor
  851. enable_libdecor_shared
  852. enable_video_rpi
  853. enable_video_x11
  854. with_x
  855. enable_x11_shared
  856. enable_video_x11_xcursor
  857. enable_video_x11_xdbe
  858. enable_video_x11_xinput
  859. enable_video_x11_xfixes
  860. enable_video_x11_xrandr
  861. enable_video_x11_scrnsaver
  862. enable_video_x11_xshape
  863. enable_video_vivante
  864. enable_video_cocoa
  865. enable_video_metal
  866. enable_render_metal
  867. enable_video_directfb
  868. enable_directfb_shared
  869. enable_video_kmsdrm
  870. enable_kmsdrm_shared
  871. enable_video_dummy
  872. enable_video_offscreen
  873. enable_video_opengl
  874. enable_video_opengles
  875. enable_video_opengles1
  876. enable_video_opengles2
  877. enable_video_vulkan
  878. enable_libudev
  879. enable_dbus
  880. enable_ime
  881. enable_ibus
  882. enable_fcitx
  883. enable_joystick_mfi
  884. enable_pthreads
  885. enable_pthread_sem
  886. enable_directx
  887. enable_xinput
  888. enable_wasapi
  889. enable_hidapi_joystick
  890. enable_hidapi_libusb
  891. enable_clock_gettime
  892. enable_rpath
  893. enable_backgrounding_signal
  894. enable_foregrounding_signal
  895. enable_joystick_virtual
  896. enable_render_d3d
  897. enable_sdl2_config
  898. enable_vendor_info
  899. '
  900. ac_precious_vars='build_alias
  901. host_alias
  902. target_alias
  903. CC
  904. CFLAGS
  905. LDFLAGS
  906. LIBS
  907. CPPFLAGS
  908. LT_SYS_LIBRARY_PATH
  909. CXX
  910. CXXFLAGS
  911. CCC
  912. CXXCPP
  913. PKG_CONFIG
  914. PKG_CONFIG_PATH
  915. PKG_CONFIG_LIBDIR
  916. CPP
  917. JACK_CFLAGS
  918. JACK_LIBS
  919. ESD_CFLAGS
  920. ESD_LIBS
  921. PIPEWIRE_CFLAGS
  922. PIPEWIRE_LIBS
  923. PULSEAUDIO_CFLAGS
  924. PULSEAUDIO_LIBS
  925. SNDIO_CFLAGS
  926. SNDIO_LIBS
  927. FUSIONSOUND_CFLAGS
  928. FUSIONSOUND_LIBS
  929. DECOR_CFLAGS
  930. DECOR_LIBS
  931. RPI_CFLAGS
  932. RPI_LIBS
  933. XMKMF
  934. DIRECTFB_CFLAGS
  935. DIRECTFB_LIBS
  936. LIBDRM_CFLAGS
  937. LIBDRM_LIBS
  938. LIBGBM_CFLAGS
  939. LIBGBM_LIBS
  940. DBUS_CFLAGS
  941. DBUS_LIBS
  942. IBUS_CFLAGS
  943. IBUS_LIBS
  944. LIBUSB_CFLAGS
  945. LIBUSB_LIBS'
  946. # Initialize some variables set by options.
  947. ac_init_help=
  948. ac_init_version=false
  949. ac_unrecognized_opts=
  950. ac_unrecognized_sep=
  951. # The variables have the same names as the options, with
  952. # dashes changed to underlines.
  953. cache_file=/dev/null
  954. exec_prefix=NONE
  955. no_create=
  956. no_recursion=
  957. prefix=NONE
  958. program_prefix=NONE
  959. program_suffix=NONE
  960. program_transform_name=s,x,x,
  961. silent=
  962. site=
  963. srcdir=
  964. verbose=
  965. x_includes=NONE
  966. x_libraries=NONE
  967. # Installation directory options.
  968. # These are left unexpanded so users can "make install exec_prefix=/foo"
  969. # and all the variables that are supposed to be based on exec_prefix
  970. # by default will actually change.
  971. # Use braces instead of parens because sh, perl, etc. also accept them.
  972. # (The list follows the same order as the GNU Coding Standards.)
  973. bindir='${exec_prefix}/bin'
  974. sbindir='${exec_prefix}/sbin'
  975. libexecdir='${exec_prefix}/libexec'
  976. datarootdir='${prefix}/share'
  977. datadir='${datarootdir}'
  978. sysconfdir='${prefix}/etc'
  979. sharedstatedir='${prefix}/com'
  980. localstatedir='${prefix}/var'
  981. runstatedir='${localstatedir}/run'
  982. includedir='${prefix}/include'
  983. oldincludedir='/usr/include'
  984. docdir='${datarootdir}/doc/${PACKAGE}'
  985. infodir='${datarootdir}/info'
  986. htmldir='${docdir}'
  987. dvidir='${docdir}'
  988. pdfdir='${docdir}'
  989. psdir='${docdir}'
  990. libdir='${exec_prefix}/lib'
  991. localedir='${datarootdir}/locale'
  992. mandir='${datarootdir}/man'
  993. ac_prev=
  994. ac_dashdash=
  995. for ac_option
  996. do
  997. # If the previous option needs an argument, assign it.
  998. if test -n "$ac_prev"; then
  999. eval $ac_prev=\$ac_option
  1000. ac_prev=
  1001. continue
  1002. fi
  1003. case $ac_option in
  1004. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1005. *=) ac_optarg= ;;
  1006. *) ac_optarg=yes ;;
  1007. esac
  1008. case $ac_dashdash$ac_option in
  1009. --)
  1010. ac_dashdash=yes ;;
  1011. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1012. ac_prev=bindir ;;
  1013. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1014. bindir=$ac_optarg ;;
  1015. -build | --build | --buil | --bui | --bu)
  1016. ac_prev=build_alias ;;
  1017. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1018. build_alias=$ac_optarg ;;
  1019. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1020. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1021. ac_prev=cache_file ;;
  1022. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1023. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1024. cache_file=$ac_optarg ;;
  1025. --config-cache | -C)
  1026. cache_file=config.cache ;;
  1027. -datadir | --datadir | --datadi | --datad)
  1028. ac_prev=datadir ;;
  1029. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1030. datadir=$ac_optarg ;;
  1031. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1032. | --dataroo | --dataro | --datar)
  1033. ac_prev=datarootdir ;;
  1034. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1035. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1036. datarootdir=$ac_optarg ;;
  1037. -disable-* | --disable-*)
  1038. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1039. # Reject names that are not valid shell variable names.
  1040. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1041. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1042. ac_useropt_orig=$ac_useropt
  1043. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1044. case $ac_user_opts in
  1045. *"
  1046. "enable_$ac_useropt"
  1047. "*) ;;
  1048. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1049. ac_unrecognized_sep=', ';;
  1050. esac
  1051. eval enable_$ac_useropt=no ;;
  1052. -docdir | --docdir | --docdi | --doc | --do)
  1053. ac_prev=docdir ;;
  1054. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1055. docdir=$ac_optarg ;;
  1056. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1057. ac_prev=dvidir ;;
  1058. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1059. dvidir=$ac_optarg ;;
  1060. -enable-* | --enable-*)
  1061. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1062. # Reject names that are not valid shell variable names.
  1063. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1064. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1065. ac_useropt_orig=$ac_useropt
  1066. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1067. case $ac_user_opts in
  1068. *"
  1069. "enable_$ac_useropt"
  1070. "*) ;;
  1071. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1072. ac_unrecognized_sep=', ';;
  1073. esac
  1074. eval enable_$ac_useropt=\$ac_optarg ;;
  1075. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1076. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1077. | --exec | --exe | --ex)
  1078. ac_prev=exec_prefix ;;
  1079. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1080. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1081. | --exec=* | --exe=* | --ex=*)
  1082. exec_prefix=$ac_optarg ;;
  1083. -gas | --gas | --ga | --g)
  1084. # Obsolete; use --with-gas.
  1085. with_gas=yes ;;
  1086. -help | --help | --hel | --he | -h)
  1087. ac_init_help=long ;;
  1088. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1089. ac_init_help=recursive ;;
  1090. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1091. ac_init_help=short ;;
  1092. -host | --host | --hos | --ho)
  1093. ac_prev=host_alias ;;
  1094. -host=* | --host=* | --hos=* | --ho=*)
  1095. host_alias=$ac_optarg ;;
  1096. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1097. ac_prev=htmldir ;;
  1098. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1099. | --ht=*)
  1100. htmldir=$ac_optarg ;;
  1101. -includedir | --includedir | --includedi | --included | --include \
  1102. | --includ | --inclu | --incl | --inc)
  1103. ac_prev=includedir ;;
  1104. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1105. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1106. includedir=$ac_optarg ;;
  1107. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1108. ac_prev=infodir ;;
  1109. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1110. infodir=$ac_optarg ;;
  1111. -libdir | --libdir | --libdi | --libd)
  1112. ac_prev=libdir ;;
  1113. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1114. libdir=$ac_optarg ;;
  1115. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1116. | --libexe | --libex | --libe)
  1117. ac_prev=libexecdir ;;
  1118. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1119. | --libexe=* | --libex=* | --libe=*)
  1120. libexecdir=$ac_optarg ;;
  1121. -localedir | --localedir | --localedi | --localed | --locale)
  1122. ac_prev=localedir ;;
  1123. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1124. localedir=$ac_optarg ;;
  1125. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1126. | --localstate | --localstat | --localsta | --localst | --locals)
  1127. ac_prev=localstatedir ;;
  1128. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1129. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1130. localstatedir=$ac_optarg ;;
  1131. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1132. ac_prev=mandir ;;
  1133. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1134. mandir=$ac_optarg ;;
  1135. -nfp | --nfp | --nf)
  1136. # Obsolete; use --without-fp.
  1137. with_fp=no ;;
  1138. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1139. | --no-cr | --no-c | -n)
  1140. no_create=yes ;;
  1141. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1142. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1143. no_recursion=yes ;;
  1144. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1145. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1146. | --oldin | --oldi | --old | --ol | --o)
  1147. ac_prev=oldincludedir ;;
  1148. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1149. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1150. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1151. oldincludedir=$ac_optarg ;;
  1152. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1153. ac_prev=prefix ;;
  1154. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1155. prefix=$ac_optarg ;;
  1156. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1157. | --program-pre | --program-pr | --program-p)
  1158. ac_prev=program_prefix ;;
  1159. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1160. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1161. program_prefix=$ac_optarg ;;
  1162. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1163. | --program-suf | --program-su | --program-s)
  1164. ac_prev=program_suffix ;;
  1165. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1166. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1167. program_suffix=$ac_optarg ;;
  1168. -program-transform-name | --program-transform-name \
  1169. | --program-transform-nam | --program-transform-na \
  1170. | --program-transform-n | --program-transform- \
  1171. | --program-transform | --program-transfor \
  1172. | --program-transfo | --program-transf \
  1173. | --program-trans | --program-tran \
  1174. | --progr-tra | --program-tr | --program-t)
  1175. ac_prev=program_transform_name ;;
  1176. -program-transform-name=* | --program-transform-name=* \
  1177. | --program-transform-nam=* | --program-transform-na=* \
  1178. | --program-transform-n=* | --program-transform-=* \
  1179. | --program-transform=* | --program-transfor=* \
  1180. | --program-transfo=* | --program-transf=* \
  1181. | --program-trans=* | --program-tran=* \
  1182. | --progr-tra=* | --program-tr=* | --program-t=*)
  1183. program_transform_name=$ac_optarg ;;
  1184. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1185. ac_prev=pdfdir ;;
  1186. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1187. pdfdir=$ac_optarg ;;
  1188. -psdir | --psdir | --psdi | --psd | --ps)
  1189. ac_prev=psdir ;;
  1190. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1191. psdir=$ac_optarg ;;
  1192. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1193. | -silent | --silent | --silen | --sile | --sil)
  1194. silent=yes ;;
  1195. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1196. | --runstate | --runstat | --runsta | --runst | --runs \
  1197. | --run | --ru | --r)
  1198. ac_prev=runstatedir ;;
  1199. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1200. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1201. | --run=* | --ru=* | --r=*)
  1202. runstatedir=$ac_optarg ;;
  1203. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1204. ac_prev=sbindir ;;
  1205. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1206. | --sbi=* | --sb=*)
  1207. sbindir=$ac_optarg ;;
  1208. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1209. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1210. | --sharedst | --shareds | --shared | --share | --shar \
  1211. | --sha | --sh)
  1212. ac_prev=sharedstatedir ;;
  1213. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1214. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1215. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1216. | --sha=* | --sh=*)
  1217. sharedstatedir=$ac_optarg ;;
  1218. -site | --site | --sit)
  1219. ac_prev=site ;;
  1220. -site=* | --site=* | --sit=*)
  1221. site=$ac_optarg ;;
  1222. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1223. ac_prev=srcdir ;;
  1224. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1225. srcdir=$ac_optarg ;;
  1226. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1227. | --syscon | --sysco | --sysc | --sys | --sy)
  1228. ac_prev=sysconfdir ;;
  1229. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1230. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1231. sysconfdir=$ac_optarg ;;
  1232. -target | --target | --targe | --targ | --tar | --ta | --t)
  1233. ac_prev=target_alias ;;
  1234. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1235. target_alias=$ac_optarg ;;
  1236. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1237. verbose=yes ;;
  1238. -version | --version | --versio | --versi | --vers | -V)
  1239. ac_init_version=: ;;
  1240. -with-* | --with-*)
  1241. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1242. # Reject names that are not valid shell variable names.
  1243. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1244. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1245. ac_useropt_orig=$ac_useropt
  1246. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1247. case $ac_user_opts in
  1248. *"
  1249. "with_$ac_useropt"
  1250. "*) ;;
  1251. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1252. ac_unrecognized_sep=', ';;
  1253. esac
  1254. eval with_$ac_useropt=\$ac_optarg ;;
  1255. -without-* | --without-*)
  1256. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1257. # Reject names that are not valid shell variable names.
  1258. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1259. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1260. ac_useropt_orig=$ac_useropt
  1261. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1262. case $ac_user_opts in
  1263. *"
  1264. "with_$ac_useropt"
  1265. "*) ;;
  1266. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1267. ac_unrecognized_sep=', ';;
  1268. esac
  1269. eval with_$ac_useropt=no ;;
  1270. --x)
  1271. # Obsolete; use --with-x.
  1272. with_x=yes ;;
  1273. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1274. | --x-incl | --x-inc | --x-in | --x-i)
  1275. ac_prev=x_includes ;;
  1276. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1277. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1278. x_includes=$ac_optarg ;;
  1279. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1280. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1281. ac_prev=x_libraries ;;
  1282. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1283. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1284. x_libraries=$ac_optarg ;;
  1285. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1286. Try \`$0 --help' for more information"
  1287. ;;
  1288. *=*)
  1289. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1290. # Reject names that are not valid shell variable names.
  1291. case $ac_envvar in #(
  1292. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1293. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1294. esac
  1295. eval $ac_envvar=\$ac_optarg
  1296. export $ac_envvar ;;
  1297. *)
  1298. # FIXME: should be removed in autoconf 3.0.
  1299. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1300. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1301. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1302. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1303. ;;
  1304. esac
  1305. done
  1306. if test -n "$ac_prev"; then
  1307. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1308. as_fn_error $? "missing argument to $ac_option"
  1309. fi
  1310. if test -n "$ac_unrecognized_opts"; then
  1311. case $enable_option_checking in
  1312. no) ;;
  1313. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1314. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1315. esac
  1316. fi
  1317. # Check all directory arguments for consistency.
  1318. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1319. datadir sysconfdir sharedstatedir localstatedir includedir \
  1320. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1321. libdir localedir mandir runstatedir
  1322. do
  1323. eval ac_val=\$$ac_var
  1324. # Remove trailing slashes.
  1325. case $ac_val in
  1326. */ )
  1327. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1328. eval $ac_var=\$ac_val;;
  1329. esac
  1330. # Be sure to have absolute directory names.
  1331. case $ac_val in
  1332. [\\/$]* | ?:[\\/]* ) continue;;
  1333. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1334. esac
  1335. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1336. done
  1337. # There might be people who depend on the old broken behavior: `$host'
  1338. # used to hold the argument of --host etc.
  1339. # FIXME: To remove some day.
  1340. build=$build_alias
  1341. host=$host_alias
  1342. target=$target_alias
  1343. # FIXME: To remove some day.
  1344. if test "x$host_alias" != x; then
  1345. if test "x$build_alias" = x; then
  1346. cross_compiling=maybe
  1347. elif test "x$build_alias" != "x$host_alias"; then
  1348. cross_compiling=yes
  1349. fi
  1350. fi
  1351. ac_tool_prefix=
  1352. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1353. test "$silent" = yes && exec 6>/dev/null
  1354. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1355. ac_ls_di=`ls -di .` &&
  1356. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1357. as_fn_error $? "working directory cannot be determined"
  1358. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1359. as_fn_error $? "pwd does not report name of working directory"
  1360. # Find the source files, if location was not specified.
  1361. if test -z "$srcdir"; then
  1362. ac_srcdir_defaulted=yes
  1363. # Try the directory containing this script, then the parent directory.
  1364. ac_confdir=`$as_dirname -- "$as_myself" ||
  1365. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1366. X"$as_myself" : 'X\(//\)[^/]' \| \
  1367. X"$as_myself" : 'X\(//\)$' \| \
  1368. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1369. printf "%s\n" X"$as_myself" |
  1370. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1371. s//\1/
  1372. q
  1373. }
  1374. /^X\(\/\/\)[^/].*/{
  1375. s//\1/
  1376. q
  1377. }
  1378. /^X\(\/\/\)$/{
  1379. s//\1/
  1380. q
  1381. }
  1382. /^X\(\/\).*/{
  1383. s//\1/
  1384. q
  1385. }
  1386. s/.*/./; q'`
  1387. srcdir=$ac_confdir
  1388. if test ! -r "$srcdir/$ac_unique_file"; then
  1389. srcdir=..
  1390. fi
  1391. else
  1392. ac_srcdir_defaulted=no
  1393. fi
  1394. if test ! -r "$srcdir/$ac_unique_file"; then
  1395. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1396. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1397. fi
  1398. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1399. ac_abs_confdir=`(
  1400. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1401. pwd)`
  1402. # When building in place, set srcdir=.
  1403. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1404. srcdir=.
  1405. fi
  1406. # Remove unnecessary trailing slashes from srcdir.
  1407. # Double slashes in file names in object file debugging info
  1408. # mess up M-x gdb in Emacs.
  1409. case $srcdir in
  1410. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1411. esac
  1412. for ac_var in $ac_precious_vars; do
  1413. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1414. eval ac_env_${ac_var}_value=\$${ac_var}
  1415. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1416. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1417. done
  1418. #
  1419. # Report the --help message.
  1420. #
  1421. if test "$ac_init_help" = "long"; then
  1422. # Omit some internal or obsolete options to make the list less imposing.
  1423. # This message is too long to be a string in the A/UX 3.1 sh.
  1424. cat <<_ACEOF
  1425. \`configure' configures this package to adapt to many kinds of systems.
  1426. Usage: $0 [OPTION]... [VAR=VALUE]...
  1427. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1428. VAR=VALUE. See below for descriptions of some of the useful variables.
  1429. Defaults for the options are specified in brackets.
  1430. Configuration:
  1431. -h, --help display this help and exit
  1432. --help=short display options specific to this package
  1433. --help=recursive display the short help of all the included packages
  1434. -V, --version display version information and exit
  1435. -q, --quiet, --silent do not print \`checking ...' messages
  1436. --cache-file=FILE cache test results in FILE [disabled]
  1437. -C, --config-cache alias for \`--cache-file=config.cache'
  1438. -n, --no-create do not create output files
  1439. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1440. Installation directories:
  1441. --prefix=PREFIX install architecture-independent files in PREFIX
  1442. [$ac_default_prefix]
  1443. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1444. [PREFIX]
  1445. By default, \`make install' will install all the files in
  1446. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1447. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1448. for instance \`--prefix=\$HOME'.
  1449. For better control, use the options below.
  1450. Fine tuning of the installation directories:
  1451. --bindir=DIR user executables [EPREFIX/bin]
  1452. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1453. --libexecdir=DIR program executables [EPREFIX/libexec]
  1454. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1455. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1456. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1457. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1458. --libdir=DIR object code libraries [EPREFIX/lib]
  1459. --includedir=DIR C header files [PREFIX/include]
  1460. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1461. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1462. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1463. --infodir=DIR info documentation [DATAROOTDIR/info]
  1464. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1465. --mandir=DIR man documentation [DATAROOTDIR/man]
  1466. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1467. --htmldir=DIR html documentation [DOCDIR]
  1468. --dvidir=DIR dvi documentation [DOCDIR]
  1469. --pdfdir=DIR pdf documentation [DOCDIR]
  1470. --psdir=DIR ps documentation [DOCDIR]
  1471. _ACEOF
  1472. cat <<\_ACEOF
  1473. X features:
  1474. --x-includes=DIR X include files are in DIR
  1475. --x-libraries=DIR X library files are in DIR
  1476. System types:
  1477. --build=BUILD configure for building on BUILD [guessed]
  1478. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1479. _ACEOF
  1480. fi
  1481. if test -n "$ac_init_help"; then
  1482. cat <<\_ACEOF
  1483. Optional Features:
  1484. --disable-option-checking ignore unrecognized --enable/--with options
  1485. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1486. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1487. --enable-shared[=PKGS] build shared libraries [default=yes]
  1488. --enable-static[=PKGS] build static libraries [default=yes]
  1489. --enable-fast-install[=PKGS]
  1490. optimize for fast installation [default=yes]
  1491. --disable-libtool-lock avoid locking (might break parallel builds)
  1492. --disable-largefile omit support for large files
  1493. --enable-assertions Enable internal sanity checks
  1494. (auto/disabled/release/enabled/paranoid)
  1495. [default=auto]
  1496. --enable-dependency-tracking
  1497. Use gcc -MMD -MT dependency tracking [default=yes]
  1498. --enable-libc Use the system C library [default=yes]
  1499. --enable-system-iconv Use iconv() from system-installed libraries
  1500. [default=yes]
  1501. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1502. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1503. --enable-audio Enable the audio subsystem [default=yes]
  1504. --enable-video Enable the video subsystem [default=yes]
  1505. --enable-render Enable the render subsystem [default=yes]
  1506. --enable-events Enable the events subsystem [default=yes]
  1507. --enable-joystick Enable the joystick subsystem [default=yes]
  1508. --enable-haptic Enable the haptic (force feedback) subsystem
  1509. [default=yes]
  1510. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1511. --enable-sensor Enable the sensor subsystem [default=yes]
  1512. --enable-power Enable the power subsystem [default=yes]
  1513. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1514. --enable-timers Enable the timer subsystem [default=yes]
  1515. --enable-file Enable the file subsystem [default=yes]
  1516. --enable-misc Enable the misc subsystem [default=yes]
  1517. --enable-locale Enable the locale subsystem [default=yes]
  1518. --enable-loadso Enable the shared object loading subsystem
  1519. [default=yes]
  1520. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1521. --enable-assembly Enable assembly routines [default=yes]
  1522. --enable-ssemath Allow GCC to use SSE floating point math
  1523. [default=maybe]
  1524. --enable-mmx use MMX assembly routines [default=yes]
  1525. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1526. --enable-sse use SSE assembly routines [default=yes]
  1527. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1528. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1529. --enable-altivec use Altivec assembly routines [default=yes]
  1530. --enable-lsx use LSX assembly routines [default=yes]
  1531. --enable-lasx use LASX assembly routines [default=yes]
  1532. --enable-oss support the OSS audio API [default=maybe]
  1533. --enable-alsa support the ALSA audio API [default=yes]
  1534. --disable-alsatest Do not try to compile and run a test Alsa program
  1535. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1536. --enable-jack use JACK audio [default=yes]
  1537. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1538. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1539. --disable-esdtest Do not try to compile and run a test ESD program
  1540. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1541. --enable-pipewire use Pipewire audio [default=yes]
  1542. --enable-pipewire-shared
  1543. dynamically load Pipewire support [default=yes]
  1544. --enable-pulseaudio use PulseAudio [default=yes]
  1545. --enable-pulseaudio-shared
  1546. dynamically load PulseAudio support [default=yes]
  1547. --enable-arts support the Analog Real Time Synthesizer
  1548. [default=yes]
  1549. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1550. --enable-nas support the NAS audio API [default=yes]
  1551. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1552. --enable-sndio support the sndio audio API [default=yes]
  1553. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1554. --enable-fusionsound use FusionSound audio driver [default=no]
  1555. --enable-fusionsound-shared
  1556. dynamically load fusionsound audio support
  1557. [default=yes]
  1558. --enable-diskaudio support the disk writer audio driver [default=yes]
  1559. --enable-dummyaudio support the dummy audio driver [default=yes]
  1560. --enable-libsamplerate use libsamplerate for audio rate conversion
  1561. [default=yes]
  1562. --enable-libsamplerate-shared
  1563. dynamically load libsamplerate [default=yes]
  1564. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1565. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1566. --enable-werror treat warnings as errors [default=no]
  1567. --enable-video-wayland use Wayland video driver [default=yes]
  1568. --enable-video-wayland-qt-touch
  1569. QtWayland server support for Wayland video driver
  1570. [default=yes]
  1571. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1572. --enable-libdecor use libdecor for Wayland client-side decorations
  1573. [default=yes]
  1574. --enable-libdecor-shared
  1575. dynamically load libdecor [default=yes]
  1576. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1577. --enable-video-x11 use X11 video driver [default=maybe]
  1578. --enable-x11-shared dynamically load X11 support [default=maybe]
  1579. --enable-video-x11-xcursor
  1580. enable X11 Xcursor support [default=yes]
  1581. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1582. --enable-video-x11-xinput
  1583. enable X11 XInput extension for manymouse, tablets,
  1584. etc [default=yes]
  1585. --enable-video-x11-xfixes
  1586. enable X11 Xfixes support [default=yes]
  1587. --enable-video-x11-xrandr
  1588. enable X11 Xrandr extension for fullscreen
  1589. [default=yes]
  1590. --enable-video-x11-scrnsaver
  1591. enable X11 screensaver extension [default=yes]
  1592. --enable-video-x11-xshape
  1593. enable X11 XShape support [default=yes]
  1594. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1595. --enable-video-cocoa use Cocoa video driver [default=yes]
  1596. --enable-video-metal include Metal support [default=yes]
  1597. --enable-render-metal enable the Metal render driver [default=yes]
  1598. --enable-video-directfb use DirectFB video driver [default=no]
  1599. --enable-directfb-shared
  1600. dynamically load directfb support [default=yes]
  1601. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1602. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1603. --enable-video-dummy use dummy video driver [default=yes]
  1604. --enable-video-offscreen
  1605. use offscreen video driver [default=yes]
  1606. --enable-video-opengl include OpenGL support [default=yes]
  1607. --enable-video-opengles include OpenGL ES support [default=yes]
  1608. --enable-video-opengles1
  1609. include OpenGL ES 1.1 support [default=yes]
  1610. --enable-video-opengles2
  1611. include OpenGL ES 2.0 support [default=yes]
  1612. --enable-video-vulkan include Vulkan support [default=yes]
  1613. --enable-libudev enable libudev support [default=yes]
  1614. --enable-dbus enable D-Bus support [default=yes]
  1615. --enable-ime enable IME support [default=yes]
  1616. --enable-ibus enable IBus support [default=yes]
  1617. --enable-fcitx enable fcitx support [default=yes]
  1618. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1619. --enable-pthreads use POSIX threads for multi-threading
  1620. [default=maybe]
  1621. --enable-pthread-sem use pthread semaphores [default=maybe]
  1622. --enable-directx use DirectX for Windows audio/video [default=yes]
  1623. --enable-xinput use Xinput for Windows [default=yes]
  1624. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1625. --enable-hidapi-joystick
  1626. use HIDAPI for low level joystick drivers
  1627. [default=yes]
  1628. --enable-hidapi-libusb use libusb for low level joystick drivers
  1629. [default=maybe]
  1630. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1631. UNIX [default=yes]
  1632. --enable-rpath use an rpath when linking SDL [default=yes]
  1633. --enable-backgrounding-signal
  1634. number to use for magic backgrounding signal or 'no'
  1635. [default=no]
  1636. --enable-foregrounding-signal
  1637. number to use for magic foregrounding signal or 'no'
  1638. [default=no]
  1639. --enable-joystick-virtual
  1640. enable virtual joystick APIs [default=yes]
  1641. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1642. --enable-sdl2-config Install sdl2-config [default=yes]
  1643. --enable-vendor-info=STRING
  1644. Add vendor info to SDL_REVISION
  1645. Optional Packages:
  1646. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1647. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1648. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1649. both]
  1650. --with-aix-soname=aix|svr4|both
  1651. shared library versioning (aka "SONAME") variant to
  1652. provide on AIX, [default=aix].
  1653. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1654. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1655. compiler's sysroot if not specified).
  1656. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1657. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1658. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1659. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1660. --with-x use the X Window System
  1661. Some influential environment variables:
  1662. CC C compiler command
  1663. CFLAGS C compiler flags
  1664. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1665. nonstandard directory <lib dir>
  1666. LIBS libraries to pass to the linker, e.g. -l<library>
  1667. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1668. you have headers in a nonstandard directory <include dir>
  1669. LT_SYS_LIBRARY_PATH
  1670. User-defined run-time library search path.
  1671. CXX C++ compiler command
  1672. CXXFLAGS C++ compiler flags
  1673. CXXCPP C++ preprocessor
  1674. PKG_CONFIG path to pkg-config utility
  1675. PKG_CONFIG_PATH
  1676. directories to add to pkg-config's search path
  1677. PKG_CONFIG_LIBDIR
  1678. path overriding pkg-config's built-in search path
  1679. CPP C preprocessor
  1680. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1681. JACK_LIBS linker flags for JACK, overriding pkg-config
  1682. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1683. ESD_LIBS linker flags for ESD, overriding pkg-config
  1684. PIPEWIRE_CFLAGS
  1685. C compiler flags for PIPEWIRE, overriding pkg-config
  1686. PIPEWIRE_LIBS
  1687. linker flags for PIPEWIRE, overriding pkg-config
  1688. PULSEAUDIO_CFLAGS
  1689. C compiler flags for PULSEAUDIO, overriding pkg-config
  1690. PULSEAUDIO_LIBS
  1691. linker flags for PULSEAUDIO, overriding pkg-config
  1692. SNDIO_CFLAGS
  1693. C compiler flags for SNDIO, overriding pkg-config
  1694. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1695. FUSIONSOUND_CFLAGS
  1696. C compiler flags for FUSIONSOUND, overriding pkg-config
  1697. FUSIONSOUND_LIBS
  1698. linker flags for FUSIONSOUND, overriding pkg-config
  1699. DECOR_CFLAGS
  1700. C compiler flags for DECOR, overriding pkg-config
  1701. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1702. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1703. RPI_LIBS linker flags for RPI, overriding pkg-config
  1704. XMKMF Path to xmkmf, Makefile generator for X Window System
  1705. DIRECTFB_CFLAGS
  1706. C compiler flags for DIRECTFB, overriding pkg-config
  1707. DIRECTFB_LIBS
  1708. linker flags for DIRECTFB, overriding pkg-config
  1709. LIBDRM_CFLAGS
  1710. C compiler flags for LIBDRM, overriding pkg-config
  1711. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1712. LIBGBM_CFLAGS
  1713. C compiler flags for LIBGBM, overriding pkg-config
  1714. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1715. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1716. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1717. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1718. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1719. LIBUSB_CFLAGS
  1720. C compiler flags for LIBUSB, overriding pkg-config
  1721. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1722. Use these variables to override the choices made by `configure' or to help
  1723. it to find libraries and programs with nonstandard names/locations.
  1724. Report bugs to the package provider.
  1725. _ACEOF
  1726. ac_status=$?
  1727. fi
  1728. if test "$ac_init_help" = "recursive"; then
  1729. # If there are subdirs, report their specific --help.
  1730. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1731. test -d "$ac_dir" ||
  1732. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1733. continue
  1734. ac_builddir=.
  1735. case "$ac_dir" in
  1736. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1737. *)
  1738. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1739. # A ".." for each directory in $ac_dir_suffix.
  1740. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1741. case $ac_top_builddir_sub in
  1742. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1743. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1744. esac ;;
  1745. esac
  1746. ac_abs_top_builddir=$ac_pwd
  1747. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1748. # for backward compatibility:
  1749. ac_top_builddir=$ac_top_build_prefix
  1750. case $srcdir in
  1751. .) # We are building in place.
  1752. ac_srcdir=.
  1753. ac_top_srcdir=$ac_top_builddir_sub
  1754. ac_abs_top_srcdir=$ac_pwd ;;
  1755. [\\/]* | ?:[\\/]* ) # Absolute name.
  1756. ac_srcdir=$srcdir$ac_dir_suffix;
  1757. ac_top_srcdir=$srcdir
  1758. ac_abs_top_srcdir=$srcdir ;;
  1759. *) # Relative name.
  1760. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1761. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1762. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1763. esac
  1764. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1765. cd "$ac_dir" || { ac_status=$?; continue; }
  1766. # Check for configure.gnu first; this name is used for a wrapper for
  1767. # Metaconfig's "Configure" on case-insensitive file systems.
  1768. if test -f "$ac_srcdir/configure.gnu"; then
  1769. echo &&
  1770. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1771. elif test -f "$ac_srcdir/configure"; then
  1772. echo &&
  1773. $SHELL "$ac_srcdir/configure" --help=recursive
  1774. else
  1775. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1776. fi || ac_status=$?
  1777. cd "$ac_pwd" || { ac_status=$?; break; }
  1778. done
  1779. fi
  1780. test -n "$ac_init_help" && exit $ac_status
  1781. if $ac_init_version; then
  1782. cat <<\_ACEOF
  1783. configure
  1784. generated by GNU Autoconf 2.71
  1785. Copyright (C) 2021 Free Software Foundation, Inc.
  1786. This configure script is free software; the Free Software Foundation
  1787. gives unlimited permission to copy, distribute and modify it.
  1788. _ACEOF
  1789. exit
  1790. fi
  1791. ## ------------------------ ##
  1792. ## Autoconf initialization. ##
  1793. ## ------------------------ ##
  1794. # ac_fn_c_try_compile LINENO
  1795. # --------------------------
  1796. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1797. ac_fn_c_try_compile ()
  1798. {
  1799. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1800. rm -f conftest.$ac_objext conftest.beam
  1801. if { { ac_try="$ac_compile"
  1802. case "(($ac_try" in
  1803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1804. *) ac_try_echo=$ac_try;;
  1805. esac
  1806. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1807. printf "%s\n" "$ac_try_echo"; } >&5
  1808. (eval "$ac_compile") 2>conftest.err
  1809. ac_status=$?
  1810. if test -s conftest.err; then
  1811. grep -v '^ *+' conftest.err >conftest.er1
  1812. cat conftest.er1 >&5
  1813. mv -f conftest.er1 conftest.err
  1814. fi
  1815. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1816. test $ac_status = 0; } && {
  1817. test -z "$ac_c_werror_flag" ||
  1818. test ! -s conftest.err
  1819. } && test -s conftest.$ac_objext
  1820. then :
  1821. ac_retval=0
  1822. else $as_nop
  1823. printf "%s\n" "$as_me: failed program was:" >&5
  1824. sed 's/^/| /' conftest.$ac_ext >&5
  1825. ac_retval=1
  1826. fi
  1827. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1828. as_fn_set_status $ac_retval
  1829. } # ac_fn_c_try_compile
  1830. # ac_fn_c_try_link LINENO
  1831. # -----------------------
  1832. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1833. ac_fn_c_try_link ()
  1834. {
  1835. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1836. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1837. if { { ac_try="$ac_link"
  1838. case "(($ac_try" in
  1839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1840. *) ac_try_echo=$ac_try;;
  1841. esac
  1842. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1843. printf "%s\n" "$ac_try_echo"; } >&5
  1844. (eval "$ac_link") 2>conftest.err
  1845. ac_status=$?
  1846. if test -s conftest.err; then
  1847. grep -v '^ *+' conftest.err >conftest.er1
  1848. cat conftest.er1 >&5
  1849. mv -f conftest.er1 conftest.err
  1850. fi
  1851. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1852. test $ac_status = 0; } && {
  1853. test -z "$ac_c_werror_flag" ||
  1854. test ! -s conftest.err
  1855. } && test -s conftest$ac_exeext && {
  1856. test "$cross_compiling" = yes ||
  1857. test -x conftest$ac_exeext
  1858. }
  1859. then :
  1860. ac_retval=0
  1861. else $as_nop
  1862. printf "%s\n" "$as_me: failed program was:" >&5
  1863. sed 's/^/| /' conftest.$ac_ext >&5
  1864. ac_retval=1
  1865. fi
  1866. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1867. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1868. # interfere with the next link command; also delete a directory that is
  1869. # left behind by Apple's compiler. We do this before executing the actions.
  1870. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1871. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1872. as_fn_set_status $ac_retval
  1873. } # ac_fn_c_try_link
  1874. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1875. # -------------------------------------------------------
  1876. # Tests whether HEADER exists and can be compiled using the include files in
  1877. # INCLUDES, setting the cache variable VAR accordingly.
  1878. ac_fn_c_check_header_compile ()
  1879. {
  1880. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1882. printf %s "checking for $2... " >&6; }
  1883. if eval test \${$3+y}
  1884. then :
  1885. printf %s "(cached) " >&6
  1886. else $as_nop
  1887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1888. /* end confdefs.h. */
  1889. $4
  1890. #include <$2>
  1891. _ACEOF
  1892. if ac_fn_c_try_compile "$LINENO"
  1893. then :
  1894. eval "$3=yes"
  1895. else $as_nop
  1896. eval "$3=no"
  1897. fi
  1898. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1899. fi
  1900. eval ac_res=\$$3
  1901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1902. printf "%s\n" "$ac_res" >&6; }
  1903. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1904. } # ac_fn_c_check_header_compile
  1905. # ac_fn_c_check_func LINENO FUNC VAR
  1906. # ----------------------------------
  1907. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1908. ac_fn_c_check_func ()
  1909. {
  1910. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1912. printf %s "checking for $2... " >&6; }
  1913. if eval test \${$3+y}
  1914. then :
  1915. printf %s "(cached) " >&6
  1916. else $as_nop
  1917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1918. /* end confdefs.h. */
  1919. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1920. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1921. #define $2 innocuous_$2
  1922. /* System header to define __stub macros and hopefully few prototypes,
  1923. which can conflict with char $2 (); below. */
  1924. #include <limits.h>
  1925. #undef $2
  1926. /* Override any GCC internal prototype to avoid an error.
  1927. Use char because int might match the return type of a GCC
  1928. builtin and then its argument prototype would still apply. */
  1929. #ifdef __cplusplus
  1930. extern "C"
  1931. #endif
  1932. char $2 ();
  1933. /* The GNU C library defines this for functions which it implements
  1934. to always fail with ENOSYS. Some functions are actually named
  1935. something starting with __ and the normal name is an alias. */
  1936. #if defined __stub_$2 || defined __stub___$2
  1937. choke me
  1938. #endif
  1939. int
  1940. main (void)
  1941. {
  1942. return $2 ();
  1943. ;
  1944. return 0;
  1945. }
  1946. _ACEOF
  1947. if ac_fn_c_try_link "$LINENO"
  1948. then :
  1949. eval "$3=yes"
  1950. else $as_nop
  1951. eval "$3=no"
  1952. fi
  1953. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1954. conftest$ac_exeext conftest.$ac_ext
  1955. fi
  1956. eval ac_res=\$$3
  1957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1958. printf "%s\n" "$ac_res" >&6; }
  1959. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1960. } # ac_fn_c_check_func
  1961. # ac_fn_cxx_try_compile LINENO
  1962. # ----------------------------
  1963. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1964. ac_fn_cxx_try_compile ()
  1965. {
  1966. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1967. rm -f conftest.$ac_objext conftest.beam
  1968. if { { ac_try="$ac_compile"
  1969. case "(($ac_try" in
  1970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1971. *) ac_try_echo=$ac_try;;
  1972. esac
  1973. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1974. printf "%s\n" "$ac_try_echo"; } >&5
  1975. (eval "$ac_compile") 2>conftest.err
  1976. ac_status=$?
  1977. if test -s conftest.err; then
  1978. grep -v '^ *+' conftest.err >conftest.er1
  1979. cat conftest.er1 >&5
  1980. mv -f conftest.er1 conftest.err
  1981. fi
  1982. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1983. test $ac_status = 0; } && {
  1984. test -z "$ac_cxx_werror_flag" ||
  1985. test ! -s conftest.err
  1986. } && test -s conftest.$ac_objext
  1987. then :
  1988. ac_retval=0
  1989. else $as_nop
  1990. printf "%s\n" "$as_me: failed program was:" >&5
  1991. sed 's/^/| /' conftest.$ac_ext >&5
  1992. ac_retval=1
  1993. fi
  1994. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1995. as_fn_set_status $ac_retval
  1996. } # ac_fn_cxx_try_compile
  1997. # ac_fn_cxx_try_cpp LINENO
  1998. # ------------------------
  1999. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2000. ac_fn_cxx_try_cpp ()
  2001. {
  2002. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2003. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2004. case "(($ac_try" in
  2005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2006. *) ac_try_echo=$ac_try;;
  2007. esac
  2008. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2009. printf "%s\n" "$ac_try_echo"; } >&5
  2010. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2011. ac_status=$?
  2012. if test -s conftest.err; then
  2013. grep -v '^ *+' conftest.err >conftest.er1
  2014. cat conftest.er1 >&5
  2015. mv -f conftest.er1 conftest.err
  2016. fi
  2017. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2018. test $ac_status = 0; } > conftest.i && {
  2019. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2020. test ! -s conftest.err
  2021. }
  2022. then :
  2023. ac_retval=0
  2024. else $as_nop
  2025. printf "%s\n" "$as_me: failed program was:" >&5
  2026. sed 's/^/| /' conftest.$ac_ext >&5
  2027. ac_retval=1
  2028. fi
  2029. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2030. as_fn_set_status $ac_retval
  2031. } # ac_fn_cxx_try_cpp
  2032. # ac_fn_cxx_try_link LINENO
  2033. # -------------------------
  2034. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2035. ac_fn_cxx_try_link ()
  2036. {
  2037. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2038. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2039. if { { ac_try="$ac_link"
  2040. case "(($ac_try" in
  2041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2042. *) ac_try_echo=$ac_try;;
  2043. esac
  2044. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2045. printf "%s\n" "$ac_try_echo"; } >&5
  2046. (eval "$ac_link") 2>conftest.err
  2047. ac_status=$?
  2048. if test -s conftest.err; then
  2049. grep -v '^ *+' conftest.err >conftest.er1
  2050. cat conftest.er1 >&5
  2051. mv -f conftest.er1 conftest.err
  2052. fi
  2053. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2054. test $ac_status = 0; } && {
  2055. test -z "$ac_cxx_werror_flag" ||
  2056. test ! -s conftest.err
  2057. } && test -s conftest$ac_exeext && {
  2058. test "$cross_compiling" = yes ||
  2059. test -x conftest$ac_exeext
  2060. }
  2061. then :
  2062. ac_retval=0
  2063. else $as_nop
  2064. printf "%s\n" "$as_me: failed program was:" >&5
  2065. sed 's/^/| /' conftest.$ac_ext >&5
  2066. ac_retval=1
  2067. fi
  2068. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2069. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2070. # interfere with the next link command; also delete a directory that is
  2071. # left behind by Apple's compiler. We do this before executing the actions.
  2072. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2073. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2074. as_fn_set_status $ac_retval
  2075. } # ac_fn_cxx_try_link
  2076. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2077. # -------------------------------------------
  2078. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2079. # variable VAR accordingly.
  2080. ac_fn_c_check_type ()
  2081. {
  2082. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2084. printf %s "checking for $2... " >&6; }
  2085. if eval test \${$3+y}
  2086. then :
  2087. printf %s "(cached) " >&6
  2088. else $as_nop
  2089. eval "$3=no"
  2090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2091. /* end confdefs.h. */
  2092. $4
  2093. int
  2094. main (void)
  2095. {
  2096. if (sizeof ($2))
  2097. return 0;
  2098. ;
  2099. return 0;
  2100. }
  2101. _ACEOF
  2102. if ac_fn_c_try_compile "$LINENO"
  2103. then :
  2104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2105. /* end confdefs.h. */
  2106. $4
  2107. int
  2108. main (void)
  2109. {
  2110. if (sizeof (($2)))
  2111. return 0;
  2112. ;
  2113. return 0;
  2114. }
  2115. _ACEOF
  2116. if ac_fn_c_try_compile "$LINENO"
  2117. then :
  2118. else $as_nop
  2119. eval "$3=yes"
  2120. fi
  2121. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2122. fi
  2123. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2124. fi
  2125. eval ac_res=\$$3
  2126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2127. printf "%s\n" "$ac_res" >&6; }
  2128. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2129. } # ac_fn_c_check_type
  2130. # ac_fn_c_try_cpp LINENO
  2131. # ----------------------
  2132. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2133. ac_fn_c_try_cpp ()
  2134. {
  2135. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2136. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2137. case "(($ac_try" in
  2138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2139. *) ac_try_echo=$ac_try;;
  2140. esac
  2141. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2142. printf "%s\n" "$ac_try_echo"; } >&5
  2143. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2144. ac_status=$?
  2145. if test -s conftest.err; then
  2146. grep -v '^ *+' conftest.err >conftest.er1
  2147. cat conftest.er1 >&5
  2148. mv -f conftest.er1 conftest.err
  2149. fi
  2150. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2151. test $ac_status = 0; } > conftest.i && {
  2152. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2153. test ! -s conftest.err
  2154. }
  2155. then :
  2156. ac_retval=0
  2157. else $as_nop
  2158. printf "%s\n" "$as_me: failed program was:" >&5
  2159. sed 's/^/| /' conftest.$ac_ext >&5
  2160. ac_retval=1
  2161. fi
  2162. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2163. as_fn_set_status $ac_retval
  2164. } # ac_fn_c_try_cpp
  2165. # ac_fn_c_try_run LINENO
  2166. # ----------------------
  2167. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2168. # executables *can* be run.
  2169. ac_fn_c_try_run ()
  2170. {
  2171. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2172. if { { ac_try="$ac_link"
  2173. case "(($ac_try" in
  2174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2175. *) ac_try_echo=$ac_try;;
  2176. esac
  2177. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2178. printf "%s\n" "$ac_try_echo"; } >&5
  2179. (eval "$ac_link") 2>&5
  2180. ac_status=$?
  2181. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2182. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2183. { { case "(($ac_try" in
  2184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2185. *) ac_try_echo=$ac_try;;
  2186. esac
  2187. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2188. printf "%s\n" "$ac_try_echo"; } >&5
  2189. (eval "$ac_try") 2>&5
  2190. ac_status=$?
  2191. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2192. test $ac_status = 0; }; }
  2193. then :
  2194. ac_retval=0
  2195. else $as_nop
  2196. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2197. printf "%s\n" "$as_me: failed program was:" >&5
  2198. sed 's/^/| /' conftest.$ac_ext >&5
  2199. ac_retval=$ac_status
  2200. fi
  2201. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2202. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2203. as_fn_set_status $ac_retval
  2204. } # ac_fn_c_try_run
  2205. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2206. # ----------------------------------------------------
  2207. # Tries to find if the field MEMBER exists in type AGGR, after including
  2208. # INCLUDES, setting cache variable VAR accordingly.
  2209. ac_fn_c_check_member ()
  2210. {
  2211. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2213. printf %s "checking for $2.$3... " >&6; }
  2214. if eval test \${$4+y}
  2215. then :
  2216. printf %s "(cached) " >&6
  2217. else $as_nop
  2218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2219. /* end confdefs.h. */
  2220. $5
  2221. int
  2222. main (void)
  2223. {
  2224. static $2 ac_aggr;
  2225. if (ac_aggr.$3)
  2226. return 0;
  2227. ;
  2228. return 0;
  2229. }
  2230. _ACEOF
  2231. if ac_fn_c_try_compile "$LINENO"
  2232. then :
  2233. eval "$4=yes"
  2234. else $as_nop
  2235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2236. /* end confdefs.h. */
  2237. $5
  2238. int
  2239. main (void)
  2240. {
  2241. static $2 ac_aggr;
  2242. if (sizeof ac_aggr.$3)
  2243. return 0;
  2244. ;
  2245. return 0;
  2246. }
  2247. _ACEOF
  2248. if ac_fn_c_try_compile "$LINENO"
  2249. then :
  2250. eval "$4=yes"
  2251. else $as_nop
  2252. eval "$4=no"
  2253. fi
  2254. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2255. fi
  2256. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2257. fi
  2258. eval ac_res=\$$4
  2259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2260. printf "%s\n" "$ac_res" >&6; }
  2261. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2262. } # ac_fn_c_check_member
  2263. ac_configure_args_raw=
  2264. for ac_arg
  2265. do
  2266. case $ac_arg in
  2267. *\'*)
  2268. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2269. esac
  2270. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2271. done
  2272. case $ac_configure_args_raw in
  2273. *$as_nl*)
  2274. ac_safe_unquote= ;;
  2275. *)
  2276. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2277. ac_unsafe_a="$ac_unsafe_z#~"
  2278. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2279. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2280. esac
  2281. cat >config.log <<_ACEOF
  2282. This file contains any messages produced by compilers while
  2283. running configure, to aid debugging if configure makes a mistake.
  2284. It was created by $as_me, which was
  2285. generated by GNU Autoconf 2.71. Invocation command line was
  2286. $ $0$ac_configure_args_raw
  2287. _ACEOF
  2288. exec 5>>config.log
  2289. {
  2290. cat <<_ASUNAME
  2291. ## --------- ##
  2292. ## Platform. ##
  2293. ## --------- ##
  2294. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2295. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2296. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2297. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2298. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2299. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2300. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2301. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2302. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2303. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2304. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2305. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2306. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2307. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2308. _ASUNAME
  2309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2310. for as_dir in $PATH
  2311. do
  2312. IFS=$as_save_IFS
  2313. case $as_dir in #(((
  2314. '') as_dir=./ ;;
  2315. */) ;;
  2316. *) as_dir=$as_dir/ ;;
  2317. esac
  2318. printf "%s\n" "PATH: $as_dir"
  2319. done
  2320. IFS=$as_save_IFS
  2321. } >&5
  2322. cat >&5 <<_ACEOF
  2323. ## ----------- ##
  2324. ## Core tests. ##
  2325. ## ----------- ##
  2326. _ACEOF
  2327. # Keep a trace of the command line.
  2328. # Strip out --no-create and --no-recursion so they do not pile up.
  2329. # Strip out --silent because we don't want to record it for future runs.
  2330. # Also quote any args containing shell meta-characters.
  2331. # Make two passes to allow for proper duplicate-argument suppression.
  2332. ac_configure_args=
  2333. ac_configure_args0=
  2334. ac_configure_args1=
  2335. ac_must_keep_next=false
  2336. for ac_pass in 1 2
  2337. do
  2338. for ac_arg
  2339. do
  2340. case $ac_arg in
  2341. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2342. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2343. | -silent | --silent | --silen | --sile | --sil)
  2344. continue ;;
  2345. *\'*)
  2346. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2347. esac
  2348. case $ac_pass in
  2349. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2350. 2)
  2351. as_fn_append ac_configure_args1 " '$ac_arg'"
  2352. if test $ac_must_keep_next = true; then
  2353. ac_must_keep_next=false # Got value, back to normal.
  2354. else
  2355. case $ac_arg in
  2356. *=* | --config-cache | -C | -disable-* | --disable-* \
  2357. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2358. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2359. | -with-* | --with-* | -without-* | --without-* | --x)
  2360. case "$ac_configure_args0 " in
  2361. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2362. esac
  2363. ;;
  2364. -* ) ac_must_keep_next=true ;;
  2365. esac
  2366. fi
  2367. as_fn_append ac_configure_args " '$ac_arg'"
  2368. ;;
  2369. esac
  2370. done
  2371. done
  2372. { ac_configure_args0=; unset ac_configure_args0;}
  2373. { ac_configure_args1=; unset ac_configure_args1;}
  2374. # When interrupted or exit'd, cleanup temporary files, and complete
  2375. # config.log. We remove comments because anyway the quotes in there
  2376. # would cause problems or look ugly.
  2377. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2378. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2379. trap 'exit_status=$?
  2380. # Sanitize IFS.
  2381. IFS=" "" $as_nl"
  2382. # Save into config.log some information that might help in debugging.
  2383. {
  2384. echo
  2385. printf "%s\n" "## ---------------- ##
  2386. ## Cache variables. ##
  2387. ## ---------------- ##"
  2388. echo
  2389. # The following way of writing the cache mishandles newlines in values,
  2390. (
  2391. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2392. eval ac_val=\$$ac_var
  2393. case $ac_val in #(
  2394. *${as_nl}*)
  2395. case $ac_var in #(
  2396. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2397. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2398. esac
  2399. case $ac_var in #(
  2400. _ | IFS | as_nl) ;; #(
  2401. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2402. *) { eval $ac_var=; unset $ac_var;} ;;
  2403. esac ;;
  2404. esac
  2405. done
  2406. (set) 2>&1 |
  2407. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2408. *${as_nl}ac_space=\ *)
  2409. sed -n \
  2410. "s/'\''/'\''\\\\'\'''\''/g;
  2411. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2412. ;; #(
  2413. *)
  2414. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2415. ;;
  2416. esac |
  2417. sort
  2418. )
  2419. echo
  2420. printf "%s\n" "## ----------------- ##
  2421. ## Output variables. ##
  2422. ## ----------------- ##"
  2423. echo
  2424. for ac_var in $ac_subst_vars
  2425. do
  2426. eval ac_val=\$$ac_var
  2427. case $ac_val in
  2428. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2429. esac
  2430. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2431. done | sort
  2432. echo
  2433. if test -n "$ac_subst_files"; then
  2434. printf "%s\n" "## ------------------- ##
  2435. ## File substitutions. ##
  2436. ## ------------------- ##"
  2437. echo
  2438. for ac_var in $ac_subst_files
  2439. do
  2440. eval ac_val=\$$ac_var
  2441. case $ac_val in
  2442. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2443. esac
  2444. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2445. done | sort
  2446. echo
  2447. fi
  2448. if test -s confdefs.h; then
  2449. printf "%s\n" "## ----------- ##
  2450. ## confdefs.h. ##
  2451. ## ----------- ##"
  2452. echo
  2453. cat confdefs.h
  2454. echo
  2455. fi
  2456. test "$ac_signal" != 0 &&
  2457. printf "%s\n" "$as_me: caught signal $ac_signal"
  2458. printf "%s\n" "$as_me: exit $exit_status"
  2459. } >&5
  2460. rm -f core *.core core.conftest.* &&
  2461. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2462. exit $exit_status
  2463. ' 0
  2464. for ac_signal in 1 2 13 15; do
  2465. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2466. done
  2467. ac_signal=0
  2468. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2469. rm -f -r conftest* confdefs.h
  2470. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2471. # Predefined preprocessor variables.
  2472. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2473. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2474. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2475. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2476. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2477. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2478. # Let the site file select an alternate cache file if it wants to.
  2479. # Prefer an explicitly selected file to automatically selected ones.
  2480. if test -n "$CONFIG_SITE"; then
  2481. ac_site_files="$CONFIG_SITE"
  2482. elif test "x$prefix" != xNONE; then
  2483. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2484. else
  2485. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2486. fi
  2487. for ac_site_file in $ac_site_files
  2488. do
  2489. case $ac_site_file in #(
  2490. */*) :
  2491. ;; #(
  2492. *) :
  2493. ac_site_file=./$ac_site_file ;;
  2494. esac
  2495. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2497. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2498. sed 's/^/| /' "$ac_site_file" >&5
  2499. . "$ac_site_file" \
  2500. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2501. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2502. as_fn_error $? "failed to load site script $ac_site_file
  2503. See \`config.log' for more details" "$LINENO" 5; }
  2504. fi
  2505. done
  2506. if test -r "$cache_file"; then
  2507. # Some versions of bash will fail to source /dev/null (special files
  2508. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2509. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2511. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2512. case $cache_file in
  2513. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2514. *) . "./$cache_file";;
  2515. esac
  2516. fi
  2517. else
  2518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2519. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2520. >$cache_file
  2521. fi
  2522. # Test code for whether the C compiler supports C89 (global declarations)
  2523. ac_c_conftest_c89_globals='
  2524. /* Does the compiler advertise C89 conformance?
  2525. Do not test the value of __STDC__, because some compilers set it to 0
  2526. while being otherwise adequately conformant. */
  2527. #if !defined __STDC__
  2528. # error "Compiler does not advertise C89 conformance"
  2529. #endif
  2530. #include <stddef.h>
  2531. #include <stdarg.h>
  2532. struct stat;
  2533. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2534. struct buf { int x; };
  2535. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2536. static char *e (p, i)
  2537. char **p;
  2538. int i;
  2539. {
  2540. return p[i];
  2541. }
  2542. static char *f (char * (*g) (char **, int), char **p, ...)
  2543. {
  2544. char *s;
  2545. va_list v;
  2546. va_start (v,p);
  2547. s = g (p, va_arg (v,int));
  2548. va_end (v);
  2549. return s;
  2550. }
  2551. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2552. function prototypes and stuff, but not \xHH hex character constants.
  2553. These do not provoke an error unfortunately, instead are silently treated
  2554. as an "x". The following induces an error, until -std is added to get
  2555. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2556. array size at least. It is necessary to write \x00 == 0 to get something
  2557. that is true only with -std. */
  2558. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2559. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2560. inside strings and character constants. */
  2561. #define FOO(x) '\''x'\''
  2562. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2563. int test (int i, double x);
  2564. struct s1 {int (*f) (int a);};
  2565. struct s2 {int (*f) (double a);};
  2566. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2567. int, int);'
  2568. # Test code for whether the C compiler supports C89 (body of main).
  2569. ac_c_conftest_c89_main='
  2570. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2571. '
  2572. # Test code for whether the C compiler supports C99 (global declarations)
  2573. ac_c_conftest_c99_globals='
  2574. // Does the compiler advertise C99 conformance?
  2575. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2576. # error "Compiler does not advertise C99 conformance"
  2577. #endif
  2578. #include <stdbool.h>
  2579. extern int puts (const char *);
  2580. extern int printf (const char *, ...);
  2581. extern int dprintf (int, const char *, ...);
  2582. extern void *malloc (size_t);
  2583. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2584. // dprintf is used instead of fprintf to avoid needing to declare
  2585. // FILE and stderr.
  2586. #define debug(...) dprintf (2, __VA_ARGS__)
  2587. #define showlist(...) puts (#__VA_ARGS__)
  2588. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2589. static void
  2590. test_varargs_macros (void)
  2591. {
  2592. int x = 1234;
  2593. int y = 5678;
  2594. debug ("Flag");
  2595. debug ("X = %d\n", x);
  2596. showlist (The first, second, and third items.);
  2597. report (x>y, "x is %d but y is %d", x, y);
  2598. }
  2599. // Check long long types.
  2600. #define BIG64 18446744073709551615ull
  2601. #define BIG32 4294967295ul
  2602. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2603. #if !BIG_OK
  2604. #error "your preprocessor is broken"
  2605. #endif
  2606. #if BIG_OK
  2607. #else
  2608. #error "your preprocessor is broken"
  2609. #endif
  2610. static long long int bignum = -9223372036854775807LL;
  2611. static unsigned long long int ubignum = BIG64;
  2612. struct incomplete_array
  2613. {
  2614. int datasize;
  2615. double data[];
  2616. };
  2617. struct named_init {
  2618. int number;
  2619. const wchar_t *name;
  2620. double average;
  2621. };
  2622. typedef const char *ccp;
  2623. static inline int
  2624. test_restrict (ccp restrict text)
  2625. {
  2626. // See if C++-style comments work.
  2627. // Iterate through items via the restricted pointer.
  2628. // Also check for declarations in for loops.
  2629. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2630. continue;
  2631. return 0;
  2632. }
  2633. // Check varargs and va_copy.
  2634. static bool
  2635. test_varargs (const char *format, ...)
  2636. {
  2637. va_list args;
  2638. va_start (args, format);
  2639. va_list args_copy;
  2640. va_copy (args_copy, args);
  2641. const char *str = "";
  2642. int number = 0;
  2643. float fnumber = 0;
  2644. while (*format)
  2645. {
  2646. switch (*format++)
  2647. {
  2648. case '\''s'\'': // string
  2649. str = va_arg (args_copy, const char *);
  2650. break;
  2651. case '\''d'\'': // int
  2652. number = va_arg (args_copy, int);
  2653. break;
  2654. case '\''f'\'': // float
  2655. fnumber = va_arg (args_copy, double);
  2656. break;
  2657. default:
  2658. break;
  2659. }
  2660. }
  2661. va_end (args_copy);
  2662. va_end (args);
  2663. return *str && number && fnumber;
  2664. }
  2665. '
  2666. # Test code for whether the C compiler supports C99 (body of main).
  2667. ac_c_conftest_c99_main='
  2668. // Check bool.
  2669. _Bool success = false;
  2670. success |= (argc != 0);
  2671. // Check restrict.
  2672. if (test_restrict ("String literal") == 0)
  2673. success = true;
  2674. char *restrict newvar = "Another string";
  2675. // Check varargs.
  2676. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2677. test_varargs_macros ();
  2678. // Check flexible array members.
  2679. struct incomplete_array *ia =
  2680. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2681. ia->datasize = 10;
  2682. for (int i = 0; i < ia->datasize; ++i)
  2683. ia->data[i] = i * 1.234;
  2684. // Check named initializers.
  2685. struct named_init ni = {
  2686. .number = 34,
  2687. .name = L"Test wide string",
  2688. .average = 543.34343,
  2689. };
  2690. ni.number = 58;
  2691. int dynamic_array[ni.number];
  2692. dynamic_array[0] = argv[0][0];
  2693. dynamic_array[ni.number - 1] = 543;
  2694. // work around unused variable warnings
  2695. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2696. || dynamic_array[ni.number - 1] != 543);
  2697. '
  2698. # Test code for whether the C compiler supports C11 (global declarations)
  2699. ac_c_conftest_c11_globals='
  2700. // Does the compiler advertise C11 conformance?
  2701. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2702. # error "Compiler does not advertise C11 conformance"
  2703. #endif
  2704. // Check _Alignas.
  2705. char _Alignas (double) aligned_as_double;
  2706. char _Alignas (0) no_special_alignment;
  2707. extern char aligned_as_int;
  2708. char _Alignas (0) _Alignas (int) aligned_as_int;
  2709. // Check _Alignof.
  2710. enum
  2711. {
  2712. int_alignment = _Alignof (int),
  2713. int_array_alignment = _Alignof (int[100]),
  2714. char_alignment = _Alignof (char)
  2715. };
  2716. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2717. // Check _Noreturn.
  2718. int _Noreturn does_not_return (void) { for (;;) continue; }
  2719. // Check _Static_assert.
  2720. struct test_static_assert
  2721. {
  2722. int x;
  2723. _Static_assert (sizeof (int) <= sizeof (long int),
  2724. "_Static_assert does not work in struct");
  2725. long int y;
  2726. };
  2727. // Check UTF-8 literals.
  2728. #define u8 syntax error!
  2729. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2730. // Check duplicate typedefs.
  2731. typedef long *long_ptr;
  2732. typedef long int *long_ptr;
  2733. typedef long_ptr long_ptr;
  2734. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2735. struct anonymous
  2736. {
  2737. union {
  2738. struct { int i; int j; };
  2739. struct { int k; long int l; } w;
  2740. };
  2741. int m;
  2742. } v1;
  2743. '
  2744. # Test code for whether the C compiler supports C11 (body of main).
  2745. ac_c_conftest_c11_main='
  2746. _Static_assert ((offsetof (struct anonymous, i)
  2747. == offsetof (struct anonymous, w.k)),
  2748. "Anonymous union alignment botch");
  2749. v1.i = 2;
  2750. v1.w.k = 5;
  2751. ok |= v1.i != 5;
  2752. '
  2753. # Test code for whether the C compiler supports C11 (complete).
  2754. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2755. ${ac_c_conftest_c99_globals}
  2756. ${ac_c_conftest_c11_globals}
  2757. int
  2758. main (int argc, char **argv)
  2759. {
  2760. int ok = 0;
  2761. ${ac_c_conftest_c89_main}
  2762. ${ac_c_conftest_c99_main}
  2763. ${ac_c_conftest_c11_main}
  2764. return ok;
  2765. }
  2766. "
  2767. # Test code for whether the C compiler supports C99 (complete).
  2768. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2769. ${ac_c_conftest_c99_globals}
  2770. int
  2771. main (int argc, char **argv)
  2772. {
  2773. int ok = 0;
  2774. ${ac_c_conftest_c89_main}
  2775. ${ac_c_conftest_c99_main}
  2776. return ok;
  2777. }
  2778. "
  2779. # Test code for whether the C compiler supports C89 (complete).
  2780. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2781. int
  2782. main (int argc, char **argv)
  2783. {
  2784. int ok = 0;
  2785. ${ac_c_conftest_c89_main}
  2786. return ok;
  2787. }
  2788. "
  2789. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2790. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2791. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2792. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2793. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2794. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2795. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2796. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2797. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2798. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2799. ac_cxx_conftest_cxx98_globals='
  2800. // Does the compiler advertise C++98 conformance?
  2801. #if !defined __cplusplus || __cplusplus < 199711L
  2802. # error "Compiler does not advertise C++98 conformance"
  2803. #endif
  2804. // These inclusions are to reject old compilers that
  2805. // lack the unsuffixed header files.
  2806. #include <cstdlib>
  2807. #include <exception>
  2808. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2809. extern void assert (int);
  2810. namespace std {
  2811. extern int strcmp (const char *, const char *);
  2812. }
  2813. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2814. using std::exception;
  2815. using std::strcmp;
  2816. namespace {
  2817. void test_exception_syntax()
  2818. {
  2819. try {
  2820. throw "test";
  2821. } catch (const char *s) {
  2822. // Extra parentheses suppress a warning when building autoconf itself,
  2823. // due to lint rules shared with more typical C programs.
  2824. assert (!(strcmp) (s, "test"));
  2825. }
  2826. }
  2827. template <typename T> struct test_template
  2828. {
  2829. T const val;
  2830. explicit test_template(T t) : val(t) {}
  2831. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2832. };
  2833. } // anonymous namespace
  2834. '
  2835. # Test code for whether the C++ compiler supports C++98 (body of main)
  2836. ac_cxx_conftest_cxx98_main='
  2837. assert (argc);
  2838. assert (! argv[0]);
  2839. {
  2840. test_exception_syntax ();
  2841. test_template<double> tt (2.0);
  2842. assert (tt.add (4) == 6.0);
  2843. assert (true && !false);
  2844. }
  2845. '
  2846. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2847. ac_cxx_conftest_cxx11_globals='
  2848. // Does the compiler advertise C++ 2011 conformance?
  2849. #if !defined __cplusplus || __cplusplus < 201103L
  2850. # error "Compiler does not advertise C++11 conformance"
  2851. #endif
  2852. namespace cxx11test
  2853. {
  2854. constexpr int get_val() { return 20; }
  2855. struct testinit
  2856. {
  2857. int i;
  2858. double d;
  2859. };
  2860. class delegate
  2861. {
  2862. public:
  2863. delegate(int n) : n(n) {}
  2864. delegate(): delegate(2354) {}
  2865. virtual int getval() { return this->n; };
  2866. protected:
  2867. int n;
  2868. };
  2869. class overridden : public delegate
  2870. {
  2871. public:
  2872. overridden(int n): delegate(n) {}
  2873. virtual int getval() override final { return this->n * 2; }
  2874. };
  2875. class nocopy
  2876. {
  2877. public:
  2878. nocopy(int i): i(i) {}
  2879. nocopy() = default;
  2880. nocopy(const nocopy&) = delete;
  2881. nocopy & operator=(const nocopy&) = delete;
  2882. private:
  2883. int i;
  2884. };
  2885. // for testing lambda expressions
  2886. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2887. {
  2888. return f(v);
  2889. }
  2890. // for testing variadic templates and trailing return types
  2891. template <typename V> auto sum(V first) -> V
  2892. {
  2893. return first;
  2894. }
  2895. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2896. {
  2897. return first + sum(rest...);
  2898. }
  2899. }
  2900. '
  2901. # Test code for whether the C++ compiler supports C++11 (body of main)
  2902. ac_cxx_conftest_cxx11_main='
  2903. {
  2904. // Test auto and decltype
  2905. auto a1 = 6538;
  2906. auto a2 = 48573953.4;
  2907. auto a3 = "String literal";
  2908. int total = 0;
  2909. for (auto i = a3; *i; ++i) { total += *i; }
  2910. decltype(a2) a4 = 34895.034;
  2911. }
  2912. {
  2913. // Test constexpr
  2914. short sa[cxx11test::get_val()] = { 0 };
  2915. }
  2916. {
  2917. // Test initializer lists
  2918. cxx11test::testinit il = { 4323, 435234.23544 };
  2919. }
  2920. {
  2921. // Test range-based for
  2922. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2923. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2924. for (auto &x : array) { x += 23; }
  2925. }
  2926. {
  2927. // Test lambda expressions
  2928. using cxx11test::eval;
  2929. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2930. double d = 2.0;
  2931. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2932. assert (d == 5.0);
  2933. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2934. assert (d == 5.0);
  2935. }
  2936. {
  2937. // Test use of variadic templates
  2938. using cxx11test::sum;
  2939. auto a = sum(1);
  2940. auto b = sum(1, 2);
  2941. auto c = sum(1.0, 2.0, 3.0);
  2942. }
  2943. {
  2944. // Test constructor delegation
  2945. cxx11test::delegate d1;
  2946. cxx11test::delegate d2();
  2947. cxx11test::delegate d3(45);
  2948. }
  2949. {
  2950. // Test override and final
  2951. cxx11test::overridden o1(55464);
  2952. }
  2953. {
  2954. // Test nullptr
  2955. char *c = nullptr;
  2956. }
  2957. {
  2958. // Test template brackets
  2959. test_template<::test_template<int>> v(test_template<int>(12));
  2960. }
  2961. {
  2962. // Unicode literals
  2963. char const *utf8 = u8"UTF-8 string \u2500";
  2964. char16_t const *utf16 = u"UTF-8 string \u2500";
  2965. char32_t const *utf32 = U"UTF-32 string \u2500";
  2966. }
  2967. '
  2968. # Test code for whether the C compiler supports C++11 (complete).
  2969. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2970. ${ac_cxx_conftest_cxx11_globals}
  2971. int
  2972. main (int argc, char **argv)
  2973. {
  2974. int ok = 0;
  2975. ${ac_cxx_conftest_cxx98_main}
  2976. ${ac_cxx_conftest_cxx11_main}
  2977. return ok;
  2978. }
  2979. "
  2980. # Test code for whether the C compiler supports C++98 (complete).
  2981. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2982. int
  2983. main (int argc, char **argv)
  2984. {
  2985. int ok = 0;
  2986. ${ac_cxx_conftest_cxx98_main}
  2987. return ok;
  2988. }
  2989. "
  2990. # Auxiliary files required by this configure script.
  2991. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2992. # Locations in which to look for auxiliary files.
  2993. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2994. # Search for a directory containing all of the required auxiliary files,
  2995. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2996. # If we don't find one directory that contains all the files we need,
  2997. # we report the set of missing files from the *first* directory in
  2998. # $ac_aux_dir_candidates and give up.
  2999. ac_missing_aux_files=""
  3000. ac_first_candidate=:
  3001. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  3002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3003. as_found=false
  3004. for as_dir in $ac_aux_dir_candidates
  3005. do
  3006. IFS=$as_save_IFS
  3007. case $as_dir in #(((
  3008. '') as_dir=./ ;;
  3009. */) ;;
  3010. *) as_dir=$as_dir/ ;;
  3011. esac
  3012. as_found=:
  3013. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3014. ac_aux_dir_found=yes
  3015. ac_install_sh=
  3016. for ac_aux in $ac_aux_files
  3017. do
  3018. # As a special case, if "install-sh" is required, that requirement
  3019. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3020. # and $ac_install_sh is set appropriately for whichever one is found.
  3021. if test x"$ac_aux" = x"install-sh"
  3022. then
  3023. if test -f "${as_dir}install-sh"; then
  3024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3025. ac_install_sh="${as_dir}install-sh -c"
  3026. elif test -f "${as_dir}install.sh"; then
  3027. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3028. ac_install_sh="${as_dir}install.sh -c"
  3029. elif test -f "${as_dir}shtool"; then
  3030. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3031. ac_install_sh="${as_dir}shtool install -c"
  3032. else
  3033. ac_aux_dir_found=no
  3034. if $ac_first_candidate; then
  3035. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3036. else
  3037. break
  3038. fi
  3039. fi
  3040. else
  3041. if test -f "${as_dir}${ac_aux}"; then
  3042. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3043. else
  3044. ac_aux_dir_found=no
  3045. if $ac_first_candidate; then
  3046. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3047. else
  3048. break
  3049. fi
  3050. fi
  3051. fi
  3052. done
  3053. if test "$ac_aux_dir_found" = yes; then
  3054. ac_aux_dir="$as_dir"
  3055. break
  3056. fi
  3057. ac_first_candidate=false
  3058. as_found=false
  3059. done
  3060. IFS=$as_save_IFS
  3061. if $as_found
  3062. then :
  3063. else $as_nop
  3064. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3065. fi
  3066. # These three variables are undocumented and unsupported,
  3067. # and are intended to be withdrawn in a future Autoconf release.
  3068. # They can cause serious problems if a builder's source tree is in a directory
  3069. # whose full name contains unusual characters.
  3070. if test -f "${ac_aux_dir}config.guess"; then
  3071. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3072. fi
  3073. if test -f "${ac_aux_dir}config.sub"; then
  3074. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3075. fi
  3076. if test -f "$ac_aux_dir/configure"; then
  3077. ac_configure="$SHELL ${ac_aux_dir}configure"
  3078. fi
  3079. # Check that the precious variables saved in the cache have kept the same
  3080. # value.
  3081. ac_cache_corrupted=false
  3082. for ac_var in $ac_precious_vars; do
  3083. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3084. eval ac_new_set=\$ac_env_${ac_var}_set
  3085. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3086. eval ac_new_val=\$ac_env_${ac_var}_value
  3087. case $ac_old_set,$ac_new_set in
  3088. set,)
  3089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3090. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3091. ac_cache_corrupted=: ;;
  3092. ,set)
  3093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3094. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3095. ac_cache_corrupted=: ;;
  3096. ,);;
  3097. *)
  3098. if test "x$ac_old_val" != "x$ac_new_val"; then
  3099. # differences in whitespace do not lead to failure.
  3100. ac_old_val_w=`echo x $ac_old_val`
  3101. ac_new_val_w=`echo x $ac_new_val`
  3102. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3104. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3105. ac_cache_corrupted=:
  3106. else
  3107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3108. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3109. eval $ac_var=\$ac_old_val
  3110. fi
  3111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3112. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3114. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3115. fi;;
  3116. esac
  3117. # Pass precious variables to config.status.
  3118. if test "$ac_new_set" = set; then
  3119. case $ac_new_val in
  3120. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3121. *) ac_arg=$ac_var=$ac_new_val ;;
  3122. esac
  3123. case " $ac_configure_args " in
  3124. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3125. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3126. esac
  3127. fi
  3128. done
  3129. if $ac_cache_corrupted; then
  3130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3131. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3133. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3134. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3135. and start over" "$LINENO" 5
  3136. fi
  3137. ## -------------------- ##
  3138. ## Main body of script. ##
  3139. ## -------------------- ##
  3140. ac_ext=c
  3141. ac_cpp='$CPP $CPPFLAGS'
  3142. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3143. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3144. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3145. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3146. orig_CFLAGS="$CFLAGS"
  3147. # See docs/release_checklist.md
  3148. SDL_MAJOR_VERSION=2
  3149. SDL_MINOR_VERSION=25
  3150. SDL_MICRO_VERSION=1
  3151. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3152. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3153. case "$SDL_MINOR_VERSION" in #(
  3154. *[02468]) :
  3155. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3156. *) :
  3157. SDL_INTERFACE_AGE=0 ;; #(
  3158. *) :
  3159. ;;
  3160. esac
  3161. # libtool versioning
  3162. case `pwd` in
  3163. *\ * | *\ *)
  3164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3165. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3166. esac
  3167. macro_version='2.4.6'
  3168. macro_revision='2.4.6'
  3169. ltmain=$ac_aux_dir/ltmain.sh
  3170. # Make sure we can run config.sub.
  3171. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3172. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3174. printf %s "checking build system type... " >&6; }
  3175. if test ${ac_cv_build+y}
  3176. then :
  3177. printf %s "(cached) " >&6
  3178. else $as_nop
  3179. ac_build_alias=$build_alias
  3180. test "x$ac_build_alias" = x &&
  3181. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3182. test "x$ac_build_alias" = x &&
  3183. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3184. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3185. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3186. fi
  3187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3188. printf "%s\n" "$ac_cv_build" >&6; }
  3189. case $ac_cv_build in
  3190. *-*-*) ;;
  3191. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3192. esac
  3193. build=$ac_cv_build
  3194. ac_save_IFS=$IFS; IFS='-'
  3195. set x $ac_cv_build
  3196. shift
  3197. build_cpu=$1
  3198. build_vendor=$2
  3199. shift; shift
  3200. # Remember, the first character of IFS is used to create $*,
  3201. # except with old shells:
  3202. build_os=$*
  3203. IFS=$ac_save_IFS
  3204. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3206. printf %s "checking host system type... " >&6; }
  3207. if test ${ac_cv_host+y}
  3208. then :
  3209. printf %s "(cached) " >&6
  3210. else $as_nop
  3211. if test "x$host_alias" = x; then
  3212. ac_cv_host=$ac_cv_build
  3213. else
  3214. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3215. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3216. fi
  3217. fi
  3218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3219. printf "%s\n" "$ac_cv_host" >&6; }
  3220. case $ac_cv_host in
  3221. *-*-*) ;;
  3222. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3223. esac
  3224. host=$ac_cv_host
  3225. ac_save_IFS=$IFS; IFS='-'
  3226. set x $ac_cv_host
  3227. shift
  3228. host_cpu=$1
  3229. host_vendor=$2
  3230. shift; shift
  3231. # Remember, the first character of IFS is used to create $*,
  3232. # except with old shells:
  3233. host_os=$*
  3234. IFS=$ac_save_IFS
  3235. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3236. # Backslashify metacharacters that are still active within
  3237. # double-quoted strings.
  3238. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3239. # Same as above, but do not quote variable references.
  3240. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3241. # Sed substitution to delay expansion of an escaped shell variable in a
  3242. # double_quote_subst'ed string.
  3243. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3244. # Sed substitution to delay expansion of an escaped single quote.
  3245. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3246. # Sed substitution to avoid accidental globbing in evaled expressions
  3247. no_glob_subst='s/\*/\\\*/g'
  3248. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3249. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3250. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3252. printf %s "checking how to print strings... " >&6; }
  3253. # Test print first, because it will be a builtin if present.
  3254. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3255. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3256. ECHO='print -r --'
  3257. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3258. ECHO='printf %s\n'
  3259. else
  3260. # Use this function as a fallback that always works.
  3261. func_fallback_echo ()
  3262. {
  3263. eval 'cat <<_LTECHO_EOF
  3264. $1
  3265. _LTECHO_EOF'
  3266. }
  3267. ECHO='func_fallback_echo'
  3268. fi
  3269. # func_echo_all arg...
  3270. # Invoke $ECHO with all args, space-separated.
  3271. func_echo_all ()
  3272. {
  3273. $ECHO ""
  3274. }
  3275. case $ECHO in
  3276. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3277. printf "%s\n" "printf" >&6; } ;;
  3278. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3279. printf "%s\n" "print -r" >&6; } ;;
  3280. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3281. printf "%s\n" "cat" >&6; } ;;
  3282. esac
  3283. ac_ext=c
  3284. ac_cpp='$CPP $CPPFLAGS'
  3285. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3286. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3287. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3288. if test -n "$ac_tool_prefix"; then
  3289. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3290. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3292. printf %s "checking for $ac_word... " >&6; }
  3293. if test ${ac_cv_prog_CC+y}
  3294. then :
  3295. printf %s "(cached) " >&6
  3296. else $as_nop
  3297. if test -n "$CC"; then
  3298. ac_cv_prog_CC="$CC" # Let the user override the test.
  3299. else
  3300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3301. for as_dir in $PATH
  3302. do
  3303. IFS=$as_save_IFS
  3304. case $as_dir in #(((
  3305. '') as_dir=./ ;;
  3306. */) ;;
  3307. *) as_dir=$as_dir/ ;;
  3308. esac
  3309. for ac_exec_ext in '' $ac_executable_extensions; do
  3310. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3311. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3312. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3313. break 2
  3314. fi
  3315. done
  3316. done
  3317. IFS=$as_save_IFS
  3318. fi
  3319. fi
  3320. CC=$ac_cv_prog_CC
  3321. if test -n "$CC"; then
  3322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3323. printf "%s\n" "$CC" >&6; }
  3324. else
  3325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3326. printf "%s\n" "no" >&6; }
  3327. fi
  3328. fi
  3329. if test -z "$ac_cv_prog_CC"; then
  3330. ac_ct_CC=$CC
  3331. # Extract the first word of "gcc", so it can be a program name with args.
  3332. set dummy gcc; ac_word=$2
  3333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3334. printf %s "checking for $ac_word... " >&6; }
  3335. if test ${ac_cv_prog_ac_ct_CC+y}
  3336. then :
  3337. printf %s "(cached) " >&6
  3338. else $as_nop
  3339. if test -n "$ac_ct_CC"; then
  3340. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3341. else
  3342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3343. for as_dir in $PATH
  3344. do
  3345. IFS=$as_save_IFS
  3346. case $as_dir in #(((
  3347. '') as_dir=./ ;;
  3348. */) ;;
  3349. *) as_dir=$as_dir/ ;;
  3350. esac
  3351. for ac_exec_ext in '' $ac_executable_extensions; do
  3352. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3353. ac_cv_prog_ac_ct_CC="gcc"
  3354. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3355. break 2
  3356. fi
  3357. done
  3358. done
  3359. IFS=$as_save_IFS
  3360. fi
  3361. fi
  3362. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3363. if test -n "$ac_ct_CC"; then
  3364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3365. printf "%s\n" "$ac_ct_CC" >&6; }
  3366. else
  3367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3368. printf "%s\n" "no" >&6; }
  3369. fi
  3370. if test "x$ac_ct_CC" = x; then
  3371. CC=""
  3372. else
  3373. case $cross_compiling:$ac_tool_warned in
  3374. yes:)
  3375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3376. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3377. ac_tool_warned=yes ;;
  3378. esac
  3379. CC=$ac_ct_CC
  3380. fi
  3381. else
  3382. CC="$ac_cv_prog_CC"
  3383. fi
  3384. if test -z "$CC"; then
  3385. if test -n "$ac_tool_prefix"; then
  3386. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3387. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3389. printf %s "checking for $ac_word... " >&6; }
  3390. if test ${ac_cv_prog_CC+y}
  3391. then :
  3392. printf %s "(cached) " >&6
  3393. else $as_nop
  3394. if test -n "$CC"; then
  3395. ac_cv_prog_CC="$CC" # Let the user override the test.
  3396. else
  3397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3398. for as_dir in $PATH
  3399. do
  3400. IFS=$as_save_IFS
  3401. case $as_dir in #(((
  3402. '') as_dir=./ ;;
  3403. */) ;;
  3404. *) as_dir=$as_dir/ ;;
  3405. esac
  3406. for ac_exec_ext in '' $ac_executable_extensions; do
  3407. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3408. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3409. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3410. break 2
  3411. fi
  3412. done
  3413. done
  3414. IFS=$as_save_IFS
  3415. fi
  3416. fi
  3417. CC=$ac_cv_prog_CC
  3418. if test -n "$CC"; then
  3419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3420. printf "%s\n" "$CC" >&6; }
  3421. else
  3422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3423. printf "%s\n" "no" >&6; }
  3424. fi
  3425. fi
  3426. fi
  3427. if test -z "$CC"; then
  3428. # Extract the first word of "cc", so it can be a program name with args.
  3429. set dummy cc; ac_word=$2
  3430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3431. printf %s "checking for $ac_word... " >&6; }
  3432. if test ${ac_cv_prog_CC+y}
  3433. then :
  3434. printf %s "(cached) " >&6
  3435. else $as_nop
  3436. if test -n "$CC"; then
  3437. ac_cv_prog_CC="$CC" # Let the user override the test.
  3438. else
  3439. ac_prog_rejected=no
  3440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3441. for as_dir in $PATH
  3442. do
  3443. IFS=$as_save_IFS
  3444. case $as_dir in #(((
  3445. '') as_dir=./ ;;
  3446. */) ;;
  3447. *) as_dir=$as_dir/ ;;
  3448. esac
  3449. for ac_exec_ext in '' $ac_executable_extensions; do
  3450. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3451. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3452. ac_prog_rejected=yes
  3453. continue
  3454. fi
  3455. ac_cv_prog_CC="cc"
  3456. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3457. break 2
  3458. fi
  3459. done
  3460. done
  3461. IFS=$as_save_IFS
  3462. if test $ac_prog_rejected = yes; then
  3463. # We found a bogon in the path, so make sure we never use it.
  3464. set dummy $ac_cv_prog_CC
  3465. shift
  3466. if test $# != 0; then
  3467. # We chose a different compiler from the bogus one.
  3468. # However, it has the same basename, so the bogon will be chosen
  3469. # first if we set CC to just the basename; use the full file name.
  3470. shift
  3471. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3472. fi
  3473. fi
  3474. fi
  3475. fi
  3476. CC=$ac_cv_prog_CC
  3477. if test -n "$CC"; then
  3478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3479. printf "%s\n" "$CC" >&6; }
  3480. else
  3481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3482. printf "%s\n" "no" >&6; }
  3483. fi
  3484. fi
  3485. if test -z "$CC"; then
  3486. if test -n "$ac_tool_prefix"; then
  3487. for ac_prog in cl.exe
  3488. do
  3489. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3490. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3492. printf %s "checking for $ac_word... " >&6; }
  3493. if test ${ac_cv_prog_CC+y}
  3494. then :
  3495. printf %s "(cached) " >&6
  3496. else $as_nop
  3497. if test -n "$CC"; then
  3498. ac_cv_prog_CC="$CC" # Let the user override the test.
  3499. else
  3500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3501. for as_dir in $PATH
  3502. do
  3503. IFS=$as_save_IFS
  3504. case $as_dir in #(((
  3505. '') as_dir=./ ;;
  3506. */) ;;
  3507. *) as_dir=$as_dir/ ;;
  3508. esac
  3509. for ac_exec_ext in '' $ac_executable_extensions; do
  3510. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3511. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3512. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3513. break 2
  3514. fi
  3515. done
  3516. done
  3517. IFS=$as_save_IFS
  3518. fi
  3519. fi
  3520. CC=$ac_cv_prog_CC
  3521. if test -n "$CC"; then
  3522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3523. printf "%s\n" "$CC" >&6; }
  3524. else
  3525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3526. printf "%s\n" "no" >&6; }
  3527. fi
  3528. test -n "$CC" && break
  3529. done
  3530. fi
  3531. if test -z "$CC"; then
  3532. ac_ct_CC=$CC
  3533. for ac_prog in cl.exe
  3534. do
  3535. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3536. set dummy $ac_prog; ac_word=$2
  3537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3538. printf %s "checking for $ac_word... " >&6; }
  3539. if test ${ac_cv_prog_ac_ct_CC+y}
  3540. then :
  3541. printf %s "(cached) " >&6
  3542. else $as_nop
  3543. if test -n "$ac_ct_CC"; then
  3544. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3545. else
  3546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3547. for as_dir in $PATH
  3548. do
  3549. IFS=$as_save_IFS
  3550. case $as_dir in #(((
  3551. '') as_dir=./ ;;
  3552. */) ;;
  3553. *) as_dir=$as_dir/ ;;
  3554. esac
  3555. for ac_exec_ext in '' $ac_executable_extensions; do
  3556. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3557. ac_cv_prog_ac_ct_CC="$ac_prog"
  3558. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3559. break 2
  3560. fi
  3561. done
  3562. done
  3563. IFS=$as_save_IFS
  3564. fi
  3565. fi
  3566. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3567. if test -n "$ac_ct_CC"; then
  3568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3569. printf "%s\n" "$ac_ct_CC" >&6; }
  3570. else
  3571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3572. printf "%s\n" "no" >&6; }
  3573. fi
  3574. test -n "$ac_ct_CC" && break
  3575. done
  3576. if test "x$ac_ct_CC" = x; then
  3577. CC=""
  3578. else
  3579. case $cross_compiling:$ac_tool_warned in
  3580. yes:)
  3581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3582. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3583. ac_tool_warned=yes ;;
  3584. esac
  3585. CC=$ac_ct_CC
  3586. fi
  3587. fi
  3588. fi
  3589. if test -z "$CC"; then
  3590. if test -n "$ac_tool_prefix"; then
  3591. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3592. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3594. printf %s "checking for $ac_word... " >&6; }
  3595. if test ${ac_cv_prog_CC+y}
  3596. then :
  3597. printf %s "(cached) " >&6
  3598. else $as_nop
  3599. if test -n "$CC"; then
  3600. ac_cv_prog_CC="$CC" # Let the user override the test.
  3601. else
  3602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3603. for as_dir in $PATH
  3604. do
  3605. IFS=$as_save_IFS
  3606. case $as_dir in #(((
  3607. '') as_dir=./ ;;
  3608. */) ;;
  3609. *) as_dir=$as_dir/ ;;
  3610. esac
  3611. for ac_exec_ext in '' $ac_executable_extensions; do
  3612. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3613. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3614. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3615. break 2
  3616. fi
  3617. done
  3618. done
  3619. IFS=$as_save_IFS
  3620. fi
  3621. fi
  3622. CC=$ac_cv_prog_CC
  3623. if test -n "$CC"; then
  3624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3625. printf "%s\n" "$CC" >&6; }
  3626. else
  3627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3628. printf "%s\n" "no" >&6; }
  3629. fi
  3630. fi
  3631. if test -z "$ac_cv_prog_CC"; then
  3632. ac_ct_CC=$CC
  3633. # Extract the first word of "clang", so it can be a program name with args.
  3634. set dummy clang; ac_word=$2
  3635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3636. printf %s "checking for $ac_word... " >&6; }
  3637. if test ${ac_cv_prog_ac_ct_CC+y}
  3638. then :
  3639. printf %s "(cached) " >&6
  3640. else $as_nop
  3641. if test -n "$ac_ct_CC"; then
  3642. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3643. else
  3644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3645. for as_dir in $PATH
  3646. do
  3647. IFS=$as_save_IFS
  3648. case $as_dir in #(((
  3649. '') as_dir=./ ;;
  3650. */) ;;
  3651. *) as_dir=$as_dir/ ;;
  3652. esac
  3653. for ac_exec_ext in '' $ac_executable_extensions; do
  3654. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3655. ac_cv_prog_ac_ct_CC="clang"
  3656. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3657. break 2
  3658. fi
  3659. done
  3660. done
  3661. IFS=$as_save_IFS
  3662. fi
  3663. fi
  3664. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3665. if test -n "$ac_ct_CC"; then
  3666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3667. printf "%s\n" "$ac_ct_CC" >&6; }
  3668. else
  3669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3670. printf "%s\n" "no" >&6; }
  3671. fi
  3672. if test "x$ac_ct_CC" = x; then
  3673. CC=""
  3674. else
  3675. case $cross_compiling:$ac_tool_warned in
  3676. yes:)
  3677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3678. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3679. ac_tool_warned=yes ;;
  3680. esac
  3681. CC=$ac_ct_CC
  3682. fi
  3683. else
  3684. CC="$ac_cv_prog_CC"
  3685. fi
  3686. fi
  3687. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3688. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3689. as_fn_error $? "no acceptable C compiler found in \$PATH
  3690. See \`config.log' for more details" "$LINENO" 5; }
  3691. # Provide some information about the compiler.
  3692. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3693. set X $ac_compile
  3694. ac_compiler=$2
  3695. for ac_option in --version -v -V -qversion -version; do
  3696. { { ac_try="$ac_compiler $ac_option >&5"
  3697. case "(($ac_try" in
  3698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3699. *) ac_try_echo=$ac_try;;
  3700. esac
  3701. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3702. printf "%s\n" "$ac_try_echo"; } >&5
  3703. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3704. ac_status=$?
  3705. if test -s conftest.err; then
  3706. sed '10a\
  3707. ... rest of stderr output deleted ...
  3708. 10q' conftest.err >conftest.er1
  3709. cat conftest.er1 >&5
  3710. fi
  3711. rm -f conftest.er1 conftest.err
  3712. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3713. test $ac_status = 0; }
  3714. done
  3715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3716. /* end confdefs.h. */
  3717. int
  3718. main (void)
  3719. {
  3720. ;
  3721. return 0;
  3722. }
  3723. _ACEOF
  3724. ac_clean_files_save=$ac_clean_files
  3725. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3726. # Try to create an executable without -o first, disregard a.out.
  3727. # It will help us diagnose broken compilers, and finding out an intuition
  3728. # of exeext.
  3729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3730. printf %s "checking whether the C compiler works... " >&6; }
  3731. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3732. # The possible output files:
  3733. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3734. ac_rmfiles=
  3735. for ac_file in $ac_files
  3736. do
  3737. case $ac_file in
  3738. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3739. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3740. esac
  3741. done
  3742. rm -f $ac_rmfiles
  3743. if { { ac_try="$ac_link_default"
  3744. case "(($ac_try" in
  3745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3746. *) ac_try_echo=$ac_try;;
  3747. esac
  3748. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3749. printf "%s\n" "$ac_try_echo"; } >&5
  3750. (eval "$ac_link_default") 2>&5
  3751. ac_status=$?
  3752. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3753. test $ac_status = 0; }
  3754. then :
  3755. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3756. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3757. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3758. # so that the user can short-circuit this test for compilers unknown to
  3759. # Autoconf.
  3760. for ac_file in $ac_files ''
  3761. do
  3762. test -f "$ac_file" || continue
  3763. case $ac_file in
  3764. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3765. ;;
  3766. [ab].out )
  3767. # We found the default executable, but exeext='' is most
  3768. # certainly right.
  3769. break;;
  3770. *.* )
  3771. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3772. then :; else
  3773. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3774. fi
  3775. # We set ac_cv_exeext here because the later test for it is not
  3776. # safe: cross compilers may not add the suffix if given an `-o'
  3777. # argument, so we may need to know it at that point already.
  3778. # Even if this section looks crufty: it has the advantage of
  3779. # actually working.
  3780. break;;
  3781. * )
  3782. break;;
  3783. esac
  3784. done
  3785. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3786. else $as_nop
  3787. ac_file=''
  3788. fi
  3789. if test -z "$ac_file"
  3790. then :
  3791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3792. printf "%s\n" "no" >&6; }
  3793. printf "%s\n" "$as_me: failed program was:" >&5
  3794. sed 's/^/| /' conftest.$ac_ext >&5
  3795. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3796. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3797. as_fn_error 77 "C compiler cannot create executables
  3798. See \`config.log' for more details" "$LINENO" 5; }
  3799. else $as_nop
  3800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3801. printf "%s\n" "yes" >&6; }
  3802. fi
  3803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3804. printf %s "checking for C compiler default output file name... " >&6; }
  3805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3806. printf "%s\n" "$ac_file" >&6; }
  3807. ac_exeext=$ac_cv_exeext
  3808. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3809. ac_clean_files=$ac_clean_files_save
  3810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3811. printf %s "checking for suffix of executables... " >&6; }
  3812. if { { ac_try="$ac_link"
  3813. case "(($ac_try" in
  3814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3815. *) ac_try_echo=$ac_try;;
  3816. esac
  3817. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3818. printf "%s\n" "$ac_try_echo"; } >&5
  3819. (eval "$ac_link") 2>&5
  3820. ac_status=$?
  3821. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3822. test $ac_status = 0; }
  3823. then :
  3824. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3825. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3826. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3827. # `rm'.
  3828. for ac_file in conftest.exe conftest conftest.*; do
  3829. test -f "$ac_file" || continue
  3830. case $ac_file in
  3831. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3832. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3833. break;;
  3834. * ) break;;
  3835. esac
  3836. done
  3837. else $as_nop
  3838. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3839. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3840. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3841. See \`config.log' for more details" "$LINENO" 5; }
  3842. fi
  3843. rm -f conftest conftest$ac_cv_exeext
  3844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3845. printf "%s\n" "$ac_cv_exeext" >&6; }
  3846. rm -f conftest.$ac_ext
  3847. EXEEXT=$ac_cv_exeext
  3848. ac_exeext=$EXEEXT
  3849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3850. /* end confdefs.h. */
  3851. #include <stdio.h>
  3852. int
  3853. main (void)
  3854. {
  3855. FILE *f = fopen ("conftest.out", "w");
  3856. return ferror (f) || fclose (f) != 0;
  3857. ;
  3858. return 0;
  3859. }
  3860. _ACEOF
  3861. ac_clean_files="$ac_clean_files conftest.out"
  3862. # Check that the compiler produces executables we can run. If not, either
  3863. # the compiler is broken, or we cross compile.
  3864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3865. printf %s "checking whether we are cross compiling... " >&6; }
  3866. if test "$cross_compiling" != yes; then
  3867. { { ac_try="$ac_link"
  3868. case "(($ac_try" in
  3869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3870. *) ac_try_echo=$ac_try;;
  3871. esac
  3872. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3873. printf "%s\n" "$ac_try_echo"; } >&5
  3874. (eval "$ac_link") 2>&5
  3875. ac_status=$?
  3876. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3877. test $ac_status = 0; }
  3878. if { ac_try='./conftest$ac_cv_exeext'
  3879. { { case "(($ac_try" in
  3880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3881. *) ac_try_echo=$ac_try;;
  3882. esac
  3883. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3884. printf "%s\n" "$ac_try_echo"; } >&5
  3885. (eval "$ac_try") 2>&5
  3886. ac_status=$?
  3887. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3888. test $ac_status = 0; }; }; then
  3889. cross_compiling=no
  3890. else
  3891. if test "$cross_compiling" = maybe; then
  3892. cross_compiling=yes
  3893. else
  3894. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3895. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3896. as_fn_error 77 "cannot run C compiled programs.
  3897. If you meant to cross compile, use \`--host'.
  3898. See \`config.log' for more details" "$LINENO" 5; }
  3899. fi
  3900. fi
  3901. fi
  3902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3903. printf "%s\n" "$cross_compiling" >&6; }
  3904. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3905. ac_clean_files=$ac_clean_files_save
  3906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3907. printf %s "checking for suffix of object files... " >&6; }
  3908. if test ${ac_cv_objext+y}
  3909. then :
  3910. printf %s "(cached) " >&6
  3911. else $as_nop
  3912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3913. /* end confdefs.h. */
  3914. int
  3915. main (void)
  3916. {
  3917. ;
  3918. return 0;
  3919. }
  3920. _ACEOF
  3921. rm -f conftest.o conftest.obj
  3922. if { { ac_try="$ac_compile"
  3923. case "(($ac_try" in
  3924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3925. *) ac_try_echo=$ac_try;;
  3926. esac
  3927. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3928. printf "%s\n" "$ac_try_echo"; } >&5
  3929. (eval "$ac_compile") 2>&5
  3930. ac_status=$?
  3931. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3932. test $ac_status = 0; }
  3933. then :
  3934. for ac_file in conftest.o conftest.obj conftest.*; do
  3935. test -f "$ac_file" || continue;
  3936. case $ac_file in
  3937. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3938. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3939. break;;
  3940. esac
  3941. done
  3942. else $as_nop
  3943. printf "%s\n" "$as_me: failed program was:" >&5
  3944. sed 's/^/| /' conftest.$ac_ext >&5
  3945. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3946. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3947. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3948. See \`config.log' for more details" "$LINENO" 5; }
  3949. fi
  3950. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3951. fi
  3952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3953. printf "%s\n" "$ac_cv_objext" >&6; }
  3954. OBJEXT=$ac_cv_objext
  3955. ac_objext=$OBJEXT
  3956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3957. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3958. if test ${ac_cv_c_compiler_gnu+y}
  3959. then :
  3960. printf %s "(cached) " >&6
  3961. else $as_nop
  3962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3963. /* end confdefs.h. */
  3964. int
  3965. main (void)
  3966. {
  3967. #ifndef __GNUC__
  3968. choke me
  3969. #endif
  3970. ;
  3971. return 0;
  3972. }
  3973. _ACEOF
  3974. if ac_fn_c_try_compile "$LINENO"
  3975. then :
  3976. ac_compiler_gnu=yes
  3977. else $as_nop
  3978. ac_compiler_gnu=no
  3979. fi
  3980. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3981. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3982. fi
  3983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3984. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3985. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3986. if test $ac_compiler_gnu = yes; then
  3987. GCC=yes
  3988. else
  3989. GCC=
  3990. fi
  3991. ac_test_CFLAGS=${CFLAGS+y}
  3992. ac_save_CFLAGS=$CFLAGS
  3993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3994. printf %s "checking whether $CC accepts -g... " >&6; }
  3995. if test ${ac_cv_prog_cc_g+y}
  3996. then :
  3997. printf %s "(cached) " >&6
  3998. else $as_nop
  3999. ac_save_c_werror_flag=$ac_c_werror_flag
  4000. ac_c_werror_flag=yes
  4001. ac_cv_prog_cc_g=no
  4002. CFLAGS="-g"
  4003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4004. /* end confdefs.h. */
  4005. int
  4006. main (void)
  4007. {
  4008. ;
  4009. return 0;
  4010. }
  4011. _ACEOF
  4012. if ac_fn_c_try_compile "$LINENO"
  4013. then :
  4014. ac_cv_prog_cc_g=yes
  4015. else $as_nop
  4016. CFLAGS=""
  4017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4018. /* end confdefs.h. */
  4019. int
  4020. main (void)
  4021. {
  4022. ;
  4023. return 0;
  4024. }
  4025. _ACEOF
  4026. if ac_fn_c_try_compile "$LINENO"
  4027. then :
  4028. else $as_nop
  4029. ac_c_werror_flag=$ac_save_c_werror_flag
  4030. CFLAGS="-g"
  4031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4032. /* end confdefs.h. */
  4033. int
  4034. main (void)
  4035. {
  4036. ;
  4037. return 0;
  4038. }
  4039. _ACEOF
  4040. if ac_fn_c_try_compile "$LINENO"
  4041. then :
  4042. ac_cv_prog_cc_g=yes
  4043. fi
  4044. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4045. fi
  4046. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4047. fi
  4048. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4049. ac_c_werror_flag=$ac_save_c_werror_flag
  4050. fi
  4051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4052. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4053. if test $ac_test_CFLAGS; then
  4054. CFLAGS=$ac_save_CFLAGS
  4055. elif test $ac_cv_prog_cc_g = yes; then
  4056. if test "$GCC" = yes; then
  4057. CFLAGS="-g -O2"
  4058. else
  4059. CFLAGS="-g"
  4060. fi
  4061. else
  4062. if test "$GCC" = yes; then
  4063. CFLAGS="-O2"
  4064. else
  4065. CFLAGS=
  4066. fi
  4067. fi
  4068. ac_prog_cc_stdc=no
  4069. if test x$ac_prog_cc_stdc = xno
  4070. then :
  4071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4072. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4073. if test ${ac_cv_prog_cc_c11+y}
  4074. then :
  4075. printf %s "(cached) " >&6
  4076. else $as_nop
  4077. ac_cv_prog_cc_c11=no
  4078. ac_save_CC=$CC
  4079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4080. /* end confdefs.h. */
  4081. $ac_c_conftest_c11_program
  4082. _ACEOF
  4083. for ac_arg in '' -std=gnu11
  4084. do
  4085. CC="$ac_save_CC $ac_arg"
  4086. if ac_fn_c_try_compile "$LINENO"
  4087. then :
  4088. ac_cv_prog_cc_c11=$ac_arg
  4089. fi
  4090. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4091. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4092. done
  4093. rm -f conftest.$ac_ext
  4094. CC=$ac_save_CC
  4095. fi
  4096. if test "x$ac_cv_prog_cc_c11" = xno
  4097. then :
  4098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4099. printf "%s\n" "unsupported" >&6; }
  4100. else $as_nop
  4101. if test "x$ac_cv_prog_cc_c11" = x
  4102. then :
  4103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4104. printf "%s\n" "none needed" >&6; }
  4105. else $as_nop
  4106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4107. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4108. CC="$CC $ac_cv_prog_cc_c11"
  4109. fi
  4110. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4111. ac_prog_cc_stdc=c11
  4112. fi
  4113. fi
  4114. if test x$ac_prog_cc_stdc = xno
  4115. then :
  4116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4117. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4118. if test ${ac_cv_prog_cc_c99+y}
  4119. then :
  4120. printf %s "(cached) " >&6
  4121. else $as_nop
  4122. ac_cv_prog_cc_c99=no
  4123. ac_save_CC=$CC
  4124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4125. /* end confdefs.h. */
  4126. $ac_c_conftest_c99_program
  4127. _ACEOF
  4128. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4129. do
  4130. CC="$ac_save_CC $ac_arg"
  4131. if ac_fn_c_try_compile "$LINENO"
  4132. then :
  4133. ac_cv_prog_cc_c99=$ac_arg
  4134. fi
  4135. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4136. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4137. done
  4138. rm -f conftest.$ac_ext
  4139. CC=$ac_save_CC
  4140. fi
  4141. if test "x$ac_cv_prog_cc_c99" = xno
  4142. then :
  4143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4144. printf "%s\n" "unsupported" >&6; }
  4145. else $as_nop
  4146. if test "x$ac_cv_prog_cc_c99" = x
  4147. then :
  4148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4149. printf "%s\n" "none needed" >&6; }
  4150. else $as_nop
  4151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4152. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4153. CC="$CC $ac_cv_prog_cc_c99"
  4154. fi
  4155. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4156. ac_prog_cc_stdc=c99
  4157. fi
  4158. fi
  4159. if test x$ac_prog_cc_stdc = xno
  4160. then :
  4161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4162. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4163. if test ${ac_cv_prog_cc_c89+y}
  4164. then :
  4165. printf %s "(cached) " >&6
  4166. else $as_nop
  4167. ac_cv_prog_cc_c89=no
  4168. ac_save_CC=$CC
  4169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4170. /* end confdefs.h. */
  4171. $ac_c_conftest_c89_program
  4172. _ACEOF
  4173. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4174. do
  4175. CC="$ac_save_CC $ac_arg"
  4176. if ac_fn_c_try_compile "$LINENO"
  4177. then :
  4178. ac_cv_prog_cc_c89=$ac_arg
  4179. fi
  4180. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4181. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4182. done
  4183. rm -f conftest.$ac_ext
  4184. CC=$ac_save_CC
  4185. fi
  4186. if test "x$ac_cv_prog_cc_c89" = xno
  4187. then :
  4188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4189. printf "%s\n" "unsupported" >&6; }
  4190. else $as_nop
  4191. if test "x$ac_cv_prog_cc_c89" = x
  4192. then :
  4193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4194. printf "%s\n" "none needed" >&6; }
  4195. else $as_nop
  4196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4197. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4198. CC="$CC $ac_cv_prog_cc_c89"
  4199. fi
  4200. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4201. ac_prog_cc_stdc=c89
  4202. fi
  4203. fi
  4204. ac_ext=c
  4205. ac_cpp='$CPP $CPPFLAGS'
  4206. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4207. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4208. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4210. printf %s "checking for a sed that does not truncate output... " >&6; }
  4211. if test ${ac_cv_path_SED+y}
  4212. then :
  4213. printf %s "(cached) " >&6
  4214. else $as_nop
  4215. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4216. for ac_i in 1 2 3 4 5 6 7; do
  4217. ac_script="$ac_script$as_nl$ac_script"
  4218. done
  4219. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4220. { ac_script=; unset ac_script;}
  4221. if test -z "$SED"; then
  4222. ac_path_SED_found=false
  4223. # Loop through the user's path and test for each of PROGNAME-LIST
  4224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4225. for as_dir in $PATH
  4226. do
  4227. IFS=$as_save_IFS
  4228. case $as_dir in #(((
  4229. '') as_dir=./ ;;
  4230. */) ;;
  4231. *) as_dir=$as_dir/ ;;
  4232. esac
  4233. for ac_prog in sed gsed
  4234. do
  4235. for ac_exec_ext in '' $ac_executable_extensions; do
  4236. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4237. as_fn_executable_p "$ac_path_SED" || continue
  4238. # Check for GNU ac_path_SED and select it if it is found.
  4239. # Check for GNU $ac_path_SED
  4240. case `"$ac_path_SED" --version 2>&1` in
  4241. *GNU*)
  4242. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4243. *)
  4244. ac_count=0
  4245. printf %s 0123456789 >"conftest.in"
  4246. while :
  4247. do
  4248. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4249. mv "conftest.tmp" "conftest.in"
  4250. cp "conftest.in" "conftest.nl"
  4251. printf "%s\n" '' >> "conftest.nl"
  4252. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4253. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4254. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4255. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4256. # Best one so far, save it but keep looking for a better one
  4257. ac_cv_path_SED="$ac_path_SED"
  4258. ac_path_SED_max=$ac_count
  4259. fi
  4260. # 10*(2^10) chars as input seems more than enough
  4261. test $ac_count -gt 10 && break
  4262. done
  4263. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4264. esac
  4265. $ac_path_SED_found && break 3
  4266. done
  4267. done
  4268. done
  4269. IFS=$as_save_IFS
  4270. if test -z "$ac_cv_path_SED"; then
  4271. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4272. fi
  4273. else
  4274. ac_cv_path_SED=$SED
  4275. fi
  4276. fi
  4277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4278. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4279. SED="$ac_cv_path_SED"
  4280. rm -f conftest.sed
  4281. test -z "$SED" && SED=sed
  4282. Xsed="$SED -e 1s/^X//"
  4283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4284. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4285. if test ${ac_cv_path_GREP+y}
  4286. then :
  4287. printf %s "(cached) " >&6
  4288. else $as_nop
  4289. if test -z "$GREP"; then
  4290. ac_path_GREP_found=false
  4291. # Loop through the user's path and test for each of PROGNAME-LIST
  4292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4293. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4294. do
  4295. IFS=$as_save_IFS
  4296. case $as_dir in #(((
  4297. '') as_dir=./ ;;
  4298. */) ;;
  4299. *) as_dir=$as_dir/ ;;
  4300. esac
  4301. for ac_prog in grep ggrep
  4302. do
  4303. for ac_exec_ext in '' $ac_executable_extensions; do
  4304. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4305. as_fn_executable_p "$ac_path_GREP" || continue
  4306. # Check for GNU ac_path_GREP and select it if it is found.
  4307. # Check for GNU $ac_path_GREP
  4308. case `"$ac_path_GREP" --version 2>&1` in
  4309. *GNU*)
  4310. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4311. *)
  4312. ac_count=0
  4313. printf %s 0123456789 >"conftest.in"
  4314. while :
  4315. do
  4316. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4317. mv "conftest.tmp" "conftest.in"
  4318. cp "conftest.in" "conftest.nl"
  4319. printf "%s\n" 'GREP' >> "conftest.nl"
  4320. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4321. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4322. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4323. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4324. # Best one so far, save it but keep looking for a better one
  4325. ac_cv_path_GREP="$ac_path_GREP"
  4326. ac_path_GREP_max=$ac_count
  4327. fi
  4328. # 10*(2^10) chars as input seems more than enough
  4329. test $ac_count -gt 10 && break
  4330. done
  4331. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4332. esac
  4333. $ac_path_GREP_found && break 3
  4334. done
  4335. done
  4336. done
  4337. IFS=$as_save_IFS
  4338. if test -z "$ac_cv_path_GREP"; then
  4339. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4340. fi
  4341. else
  4342. ac_cv_path_GREP=$GREP
  4343. fi
  4344. fi
  4345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4346. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4347. GREP="$ac_cv_path_GREP"
  4348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4349. printf %s "checking for egrep... " >&6; }
  4350. if test ${ac_cv_path_EGREP+y}
  4351. then :
  4352. printf %s "(cached) " >&6
  4353. else $as_nop
  4354. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4355. then ac_cv_path_EGREP="$GREP -E"
  4356. else
  4357. if test -z "$EGREP"; then
  4358. ac_path_EGREP_found=false
  4359. # Loop through the user's path and test for each of PROGNAME-LIST
  4360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4361. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4362. do
  4363. IFS=$as_save_IFS
  4364. case $as_dir in #(((
  4365. '') as_dir=./ ;;
  4366. */) ;;
  4367. *) as_dir=$as_dir/ ;;
  4368. esac
  4369. for ac_prog in egrep
  4370. do
  4371. for ac_exec_ext in '' $ac_executable_extensions; do
  4372. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4373. as_fn_executable_p "$ac_path_EGREP" || continue
  4374. # Check for GNU ac_path_EGREP and select it if it is found.
  4375. # Check for GNU $ac_path_EGREP
  4376. case `"$ac_path_EGREP" --version 2>&1` in
  4377. *GNU*)
  4378. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4379. *)
  4380. ac_count=0
  4381. printf %s 0123456789 >"conftest.in"
  4382. while :
  4383. do
  4384. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4385. mv "conftest.tmp" "conftest.in"
  4386. cp "conftest.in" "conftest.nl"
  4387. printf "%s\n" 'EGREP' >> "conftest.nl"
  4388. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4389. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4390. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4391. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4392. # Best one so far, save it but keep looking for a better one
  4393. ac_cv_path_EGREP="$ac_path_EGREP"
  4394. ac_path_EGREP_max=$ac_count
  4395. fi
  4396. # 10*(2^10) chars as input seems more than enough
  4397. test $ac_count -gt 10 && break
  4398. done
  4399. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4400. esac
  4401. $ac_path_EGREP_found && break 3
  4402. done
  4403. done
  4404. done
  4405. IFS=$as_save_IFS
  4406. if test -z "$ac_cv_path_EGREP"; then
  4407. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4408. fi
  4409. else
  4410. ac_cv_path_EGREP=$EGREP
  4411. fi
  4412. fi
  4413. fi
  4414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4415. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4416. EGREP="$ac_cv_path_EGREP"
  4417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4418. printf %s "checking for fgrep... " >&6; }
  4419. if test ${ac_cv_path_FGREP+y}
  4420. then :
  4421. printf %s "(cached) " >&6
  4422. else $as_nop
  4423. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4424. then ac_cv_path_FGREP="$GREP -F"
  4425. else
  4426. if test -z "$FGREP"; then
  4427. ac_path_FGREP_found=false
  4428. # Loop through the user's path and test for each of PROGNAME-LIST
  4429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4430. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4431. do
  4432. IFS=$as_save_IFS
  4433. case $as_dir in #(((
  4434. '') as_dir=./ ;;
  4435. */) ;;
  4436. *) as_dir=$as_dir/ ;;
  4437. esac
  4438. for ac_prog in fgrep
  4439. do
  4440. for ac_exec_ext in '' $ac_executable_extensions; do
  4441. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4442. as_fn_executable_p "$ac_path_FGREP" || continue
  4443. # Check for GNU ac_path_FGREP and select it if it is found.
  4444. # Check for GNU $ac_path_FGREP
  4445. case `"$ac_path_FGREP" --version 2>&1` in
  4446. *GNU*)
  4447. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4448. *)
  4449. ac_count=0
  4450. printf %s 0123456789 >"conftest.in"
  4451. while :
  4452. do
  4453. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4454. mv "conftest.tmp" "conftest.in"
  4455. cp "conftest.in" "conftest.nl"
  4456. printf "%s\n" 'FGREP' >> "conftest.nl"
  4457. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4458. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4459. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4460. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4461. # Best one so far, save it but keep looking for a better one
  4462. ac_cv_path_FGREP="$ac_path_FGREP"
  4463. ac_path_FGREP_max=$ac_count
  4464. fi
  4465. # 10*(2^10) chars as input seems more than enough
  4466. test $ac_count -gt 10 && break
  4467. done
  4468. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4469. esac
  4470. $ac_path_FGREP_found && break 3
  4471. done
  4472. done
  4473. done
  4474. IFS=$as_save_IFS
  4475. if test -z "$ac_cv_path_FGREP"; then
  4476. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4477. fi
  4478. else
  4479. ac_cv_path_FGREP=$FGREP
  4480. fi
  4481. fi
  4482. fi
  4483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4484. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4485. FGREP="$ac_cv_path_FGREP"
  4486. test -z "$GREP" && GREP=grep
  4487. # Check whether --with-gnu-ld was given.
  4488. if test ${with_gnu_ld+y}
  4489. then :
  4490. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4491. else $as_nop
  4492. with_gnu_ld=no
  4493. fi
  4494. ac_prog=ld
  4495. if test yes = "$GCC"; then
  4496. # Check if gcc -print-prog-name=ld gives a path.
  4497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4498. printf %s "checking for ld used by $CC... " >&6; }
  4499. case $host in
  4500. *-*-mingw*)
  4501. # gcc leaves a trailing carriage return, which upsets mingw
  4502. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4503. *)
  4504. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4505. esac
  4506. case $ac_prog in
  4507. # Accept absolute paths.
  4508. [\\/]* | ?:[\\/]*)
  4509. re_direlt='/[^/][^/]*/\.\./'
  4510. # Canonicalize the pathname of ld
  4511. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4512. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4513. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4514. done
  4515. test -z "$LD" && LD=$ac_prog
  4516. ;;
  4517. "")
  4518. # If it fails, then pretend we aren't using GCC.
  4519. ac_prog=ld
  4520. ;;
  4521. *)
  4522. # If it is relative, then search for the first ld in PATH.
  4523. with_gnu_ld=unknown
  4524. ;;
  4525. esac
  4526. elif test yes = "$with_gnu_ld"; then
  4527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4528. printf %s "checking for GNU ld... " >&6; }
  4529. else
  4530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4531. printf %s "checking for non-GNU ld... " >&6; }
  4532. fi
  4533. if test ${lt_cv_path_LD+y}
  4534. then :
  4535. printf %s "(cached) " >&6
  4536. else $as_nop
  4537. if test -z "$LD"; then
  4538. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4539. for ac_dir in $PATH; do
  4540. IFS=$lt_save_ifs
  4541. test -z "$ac_dir" && ac_dir=.
  4542. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4543. lt_cv_path_LD=$ac_dir/$ac_prog
  4544. # Check to see if the program is GNU ld. I'd rather use --version,
  4545. # but apparently some variants of GNU ld only accept -v.
  4546. # Break only if it was the GNU/non-GNU ld that we prefer.
  4547. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4548. *GNU* | *'with BFD'*)
  4549. test no != "$with_gnu_ld" && break
  4550. ;;
  4551. *)
  4552. test yes != "$with_gnu_ld" && break
  4553. ;;
  4554. esac
  4555. fi
  4556. done
  4557. IFS=$lt_save_ifs
  4558. else
  4559. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4560. fi
  4561. fi
  4562. LD=$lt_cv_path_LD
  4563. if test -n "$LD"; then
  4564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4565. printf "%s\n" "$LD" >&6; }
  4566. else
  4567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4568. printf "%s\n" "no" >&6; }
  4569. fi
  4570. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4572. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4573. if test ${lt_cv_prog_gnu_ld+y}
  4574. then :
  4575. printf %s "(cached) " >&6
  4576. else $as_nop
  4577. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4578. case `$LD -v 2>&1 </dev/null` in
  4579. *GNU* | *'with BFD'*)
  4580. lt_cv_prog_gnu_ld=yes
  4581. ;;
  4582. *)
  4583. lt_cv_prog_gnu_ld=no
  4584. ;;
  4585. esac
  4586. fi
  4587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4588. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4589. with_gnu_ld=$lt_cv_prog_gnu_ld
  4590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4591. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4592. if test ${lt_cv_path_NM+y}
  4593. then :
  4594. printf %s "(cached) " >&6
  4595. else $as_nop
  4596. if test -n "$NM"; then
  4597. # Let the user override the test.
  4598. lt_cv_path_NM=$NM
  4599. else
  4600. lt_nm_to_check=${ac_tool_prefix}nm
  4601. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4602. lt_nm_to_check="$lt_nm_to_check nm"
  4603. fi
  4604. for lt_tmp_nm in $lt_nm_to_check; do
  4605. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4606. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4607. IFS=$lt_save_ifs
  4608. test -z "$ac_dir" && ac_dir=.
  4609. tmp_nm=$ac_dir/$lt_tmp_nm
  4610. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4611. # Check to see if the nm accepts a BSD-compat flag.
  4612. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4613. # nm: unknown option "B" ignored
  4614. # Tru64's nm complains that /dev/null is an invalid object file
  4615. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4616. case $build_os in
  4617. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4618. *) lt_bad_file=/dev/null ;;
  4619. esac
  4620. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4621. *$lt_bad_file* | *'Invalid file or object type'*)
  4622. lt_cv_path_NM="$tmp_nm -B"
  4623. break 2
  4624. ;;
  4625. *)
  4626. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4627. */dev/null*)
  4628. lt_cv_path_NM="$tmp_nm -p"
  4629. break 2
  4630. ;;
  4631. *)
  4632. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4633. continue # so that we can try to find one that supports BSD flags
  4634. ;;
  4635. esac
  4636. ;;
  4637. esac
  4638. fi
  4639. done
  4640. IFS=$lt_save_ifs
  4641. done
  4642. : ${lt_cv_path_NM=no}
  4643. fi
  4644. fi
  4645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4646. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4647. if test no != "$lt_cv_path_NM"; then
  4648. NM=$lt_cv_path_NM
  4649. else
  4650. # Didn't find any BSD compatible name lister, look for dumpbin.
  4651. if test -n "$DUMPBIN"; then :
  4652. # Let the user override the test.
  4653. else
  4654. if test -n "$ac_tool_prefix"; then
  4655. for ac_prog in dumpbin "link -dump"
  4656. do
  4657. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4658. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4660. printf %s "checking for $ac_word... " >&6; }
  4661. if test ${ac_cv_prog_DUMPBIN+y}
  4662. then :
  4663. printf %s "(cached) " >&6
  4664. else $as_nop
  4665. if test -n "$DUMPBIN"; then
  4666. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4667. else
  4668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4669. for as_dir in $PATH
  4670. do
  4671. IFS=$as_save_IFS
  4672. case $as_dir in #(((
  4673. '') as_dir=./ ;;
  4674. */) ;;
  4675. *) as_dir=$as_dir/ ;;
  4676. esac
  4677. for ac_exec_ext in '' $ac_executable_extensions; do
  4678. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4679. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4680. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4681. break 2
  4682. fi
  4683. done
  4684. done
  4685. IFS=$as_save_IFS
  4686. fi
  4687. fi
  4688. DUMPBIN=$ac_cv_prog_DUMPBIN
  4689. if test -n "$DUMPBIN"; then
  4690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4691. printf "%s\n" "$DUMPBIN" >&6; }
  4692. else
  4693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4694. printf "%s\n" "no" >&6; }
  4695. fi
  4696. test -n "$DUMPBIN" && break
  4697. done
  4698. fi
  4699. if test -z "$DUMPBIN"; then
  4700. ac_ct_DUMPBIN=$DUMPBIN
  4701. for ac_prog in dumpbin "link -dump"
  4702. do
  4703. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4704. set dummy $ac_prog; ac_word=$2
  4705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4706. printf %s "checking for $ac_word... " >&6; }
  4707. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4708. then :
  4709. printf %s "(cached) " >&6
  4710. else $as_nop
  4711. if test -n "$ac_ct_DUMPBIN"; then
  4712. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4713. else
  4714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4715. for as_dir in $PATH
  4716. do
  4717. IFS=$as_save_IFS
  4718. case $as_dir in #(((
  4719. '') as_dir=./ ;;
  4720. */) ;;
  4721. *) as_dir=$as_dir/ ;;
  4722. esac
  4723. for ac_exec_ext in '' $ac_executable_extensions; do
  4724. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4725. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4726. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4727. break 2
  4728. fi
  4729. done
  4730. done
  4731. IFS=$as_save_IFS
  4732. fi
  4733. fi
  4734. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4735. if test -n "$ac_ct_DUMPBIN"; then
  4736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4737. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4738. else
  4739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4740. printf "%s\n" "no" >&6; }
  4741. fi
  4742. test -n "$ac_ct_DUMPBIN" && break
  4743. done
  4744. if test "x$ac_ct_DUMPBIN" = x; then
  4745. DUMPBIN=":"
  4746. else
  4747. case $cross_compiling:$ac_tool_warned in
  4748. yes:)
  4749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4750. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4751. ac_tool_warned=yes ;;
  4752. esac
  4753. DUMPBIN=$ac_ct_DUMPBIN
  4754. fi
  4755. fi
  4756. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4757. *COFF*)
  4758. DUMPBIN="$DUMPBIN -symbols -headers"
  4759. ;;
  4760. *)
  4761. DUMPBIN=:
  4762. ;;
  4763. esac
  4764. fi
  4765. if test : != "$DUMPBIN"; then
  4766. NM=$DUMPBIN
  4767. fi
  4768. fi
  4769. test -z "$NM" && NM=nm
  4770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4771. printf %s "checking the name lister ($NM) interface... " >&6; }
  4772. if test ${lt_cv_nm_interface+y}
  4773. then :
  4774. printf %s "(cached) " >&6
  4775. else $as_nop
  4776. lt_cv_nm_interface="BSD nm"
  4777. echo "int some_variable = 0;" > conftest.$ac_ext
  4778. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4779. (eval "$ac_compile" 2>conftest.err)
  4780. cat conftest.err >&5
  4781. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4782. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4783. cat conftest.err >&5
  4784. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4785. cat conftest.out >&5
  4786. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4787. lt_cv_nm_interface="MS dumpbin"
  4788. fi
  4789. rm -f conftest*
  4790. fi
  4791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4792. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4794. printf %s "checking whether ln -s works... " >&6; }
  4795. LN_S=$as_ln_s
  4796. if test "$LN_S" = "ln -s"; then
  4797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4798. printf "%s\n" "yes" >&6; }
  4799. else
  4800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4801. printf "%s\n" "no, using $LN_S" >&6; }
  4802. fi
  4803. # find the maximum length of command line arguments
  4804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4805. printf %s "checking the maximum length of command line arguments... " >&6; }
  4806. if test ${lt_cv_sys_max_cmd_len+y}
  4807. then :
  4808. printf %s "(cached) " >&6
  4809. else $as_nop
  4810. i=0
  4811. teststring=ABCD
  4812. case $build_os in
  4813. msdosdjgpp*)
  4814. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4815. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4816. # during glob expansion). Even if it were fixed, the result of this
  4817. # check would be larger than it should be.
  4818. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4819. ;;
  4820. gnu*)
  4821. # Under GNU Hurd, this test is not required because there is
  4822. # no limit to the length of command line arguments.
  4823. # Libtool will interpret -1 as no limit whatsoever
  4824. lt_cv_sys_max_cmd_len=-1;
  4825. ;;
  4826. cygwin* | mingw* | cegcc*)
  4827. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4828. # about 5 minutes as the teststring grows exponentially.
  4829. # Worse, since 9x/ME are not pre-emptively multitasking,
  4830. # you end up with a "frozen" computer, even though with patience
  4831. # the test eventually succeeds (with a max line length of 256k).
  4832. # Instead, let's just punt: use the minimum linelength reported by
  4833. # all of the supported platforms: 8192 (on NT/2K/XP).
  4834. lt_cv_sys_max_cmd_len=8192;
  4835. ;;
  4836. mint*)
  4837. # On MiNT this can take a long time and run out of memory.
  4838. lt_cv_sys_max_cmd_len=8192;
  4839. ;;
  4840. amigaos*)
  4841. # On AmigaOS with pdksh, this test takes hours, literally.
  4842. # So we just punt and use a minimum line length of 8192.
  4843. lt_cv_sys_max_cmd_len=8192;
  4844. ;;
  4845. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4846. # This has been around since 386BSD, at least. Likely further.
  4847. if test -x /sbin/sysctl; then
  4848. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4849. elif test -x /usr/sbin/sysctl; then
  4850. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4851. else
  4852. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4853. fi
  4854. # And add a safety zone
  4855. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4856. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4857. ;;
  4858. interix*)
  4859. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4860. lt_cv_sys_max_cmd_len=196608
  4861. ;;
  4862. os2*)
  4863. # The test takes a long time on OS/2.
  4864. lt_cv_sys_max_cmd_len=8192
  4865. ;;
  4866. osf*)
  4867. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4868. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4869. # nice to cause kernel panics so lets avoid the loop below.
  4870. # First set a reasonable default.
  4871. lt_cv_sys_max_cmd_len=16384
  4872. #
  4873. if test -x /sbin/sysconfig; then
  4874. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4875. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4876. esac
  4877. fi
  4878. ;;
  4879. sco3.2v5*)
  4880. lt_cv_sys_max_cmd_len=102400
  4881. ;;
  4882. sysv5* | sco5v6* | sysv4.2uw2*)
  4883. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4884. if test -n "$kargmax"; then
  4885. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4886. else
  4887. lt_cv_sys_max_cmd_len=32768
  4888. fi
  4889. ;;
  4890. *)
  4891. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4892. if test -n "$lt_cv_sys_max_cmd_len" && \
  4893. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4894. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4895. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4896. else
  4897. # Make teststring a little bigger before we do anything with it.
  4898. # a 1K string should be a reasonable start.
  4899. for i in 1 2 3 4 5 6 7 8; do
  4900. teststring=$teststring$teststring
  4901. done
  4902. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4903. # If test is not a shell built-in, we'll probably end up computing a
  4904. # maximum length that is only half of the actual maximum length, but
  4905. # we can't tell.
  4906. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4907. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4908. test 17 != "$i" # 1/2 MB should be enough
  4909. do
  4910. i=`expr $i + 1`
  4911. teststring=$teststring$teststring
  4912. done
  4913. # Only check the string length outside the loop.
  4914. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4915. teststring=
  4916. # Add a significant safety factor because C++ compilers can tack on
  4917. # massive amounts of additional arguments before passing them to the
  4918. # linker. It appears as though 1/2 is a usable value.
  4919. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4920. fi
  4921. ;;
  4922. esac
  4923. fi
  4924. if test -n "$lt_cv_sys_max_cmd_len"; then
  4925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4926. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4927. else
  4928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4929. printf "%s\n" "none" >&6; }
  4930. fi
  4931. max_cmd_len=$lt_cv_sys_max_cmd_len
  4932. : ${CP="cp -f"}
  4933. : ${MV="mv -f"}
  4934. : ${RM="rm -f"}
  4935. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4936. lt_unset=unset
  4937. else
  4938. lt_unset=false
  4939. fi
  4940. # test EBCDIC or ASCII
  4941. case `echo X|tr X '\101'` in
  4942. A) # ASCII based system
  4943. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4944. lt_SP2NL='tr \040 \012'
  4945. lt_NL2SP='tr \015\012 \040\040'
  4946. ;;
  4947. *) # EBCDIC based system
  4948. lt_SP2NL='tr \100 \n'
  4949. lt_NL2SP='tr \r\n \100\100'
  4950. ;;
  4951. esac
  4952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4953. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4954. if test ${lt_cv_to_host_file_cmd+y}
  4955. then :
  4956. printf %s "(cached) " >&6
  4957. else $as_nop
  4958. case $host in
  4959. *-*-mingw* )
  4960. case $build in
  4961. *-*-mingw* ) # actually msys
  4962. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4963. ;;
  4964. *-*-cygwin* )
  4965. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4966. ;;
  4967. * ) # otherwise, assume *nix
  4968. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4969. ;;
  4970. esac
  4971. ;;
  4972. *-*-cygwin* )
  4973. case $build in
  4974. *-*-mingw* ) # actually msys
  4975. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4976. ;;
  4977. *-*-cygwin* )
  4978. lt_cv_to_host_file_cmd=func_convert_file_noop
  4979. ;;
  4980. * ) # otherwise, assume *nix
  4981. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4982. ;;
  4983. esac
  4984. ;;
  4985. * ) # unhandled hosts (and "normal" native builds)
  4986. lt_cv_to_host_file_cmd=func_convert_file_noop
  4987. ;;
  4988. esac
  4989. fi
  4990. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4992. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4994. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4995. if test ${lt_cv_to_tool_file_cmd+y}
  4996. then :
  4997. printf %s "(cached) " >&6
  4998. else $as_nop
  4999. #assume ordinary cross tools, or native build.
  5000. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5001. case $host in
  5002. *-*-mingw* )
  5003. case $build in
  5004. *-*-mingw* ) # actually msys
  5005. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5006. ;;
  5007. esac
  5008. ;;
  5009. esac
  5010. fi
  5011. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5013. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5015. printf %s "checking for $LD option to reload object files... " >&6; }
  5016. if test ${lt_cv_ld_reload_flag+y}
  5017. then :
  5018. printf %s "(cached) " >&6
  5019. else $as_nop
  5020. lt_cv_ld_reload_flag='-r'
  5021. fi
  5022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5023. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5024. reload_flag=$lt_cv_ld_reload_flag
  5025. case $reload_flag in
  5026. "" | " "*) ;;
  5027. *) reload_flag=" $reload_flag" ;;
  5028. esac
  5029. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5030. case $host_os in
  5031. cygwin* | mingw* | pw32* | cegcc*)
  5032. if test yes != "$GCC"; then
  5033. reload_cmds=false
  5034. fi
  5035. ;;
  5036. darwin*)
  5037. if test yes = "$GCC"; then
  5038. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5039. else
  5040. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5041. fi
  5042. ;;
  5043. esac
  5044. if test -n "$ac_tool_prefix"; then
  5045. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5046. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5048. printf %s "checking for $ac_word... " >&6; }
  5049. if test ${ac_cv_prog_OBJDUMP+y}
  5050. then :
  5051. printf %s "(cached) " >&6
  5052. else $as_nop
  5053. if test -n "$OBJDUMP"; then
  5054. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5055. else
  5056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5057. for as_dir in $PATH
  5058. do
  5059. IFS=$as_save_IFS
  5060. case $as_dir in #(((
  5061. '') as_dir=./ ;;
  5062. */) ;;
  5063. *) as_dir=$as_dir/ ;;
  5064. esac
  5065. for ac_exec_ext in '' $ac_executable_extensions; do
  5066. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5067. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5068. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5069. break 2
  5070. fi
  5071. done
  5072. done
  5073. IFS=$as_save_IFS
  5074. fi
  5075. fi
  5076. OBJDUMP=$ac_cv_prog_OBJDUMP
  5077. if test -n "$OBJDUMP"; then
  5078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5079. printf "%s\n" "$OBJDUMP" >&6; }
  5080. else
  5081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5082. printf "%s\n" "no" >&6; }
  5083. fi
  5084. fi
  5085. if test -z "$ac_cv_prog_OBJDUMP"; then
  5086. ac_ct_OBJDUMP=$OBJDUMP
  5087. # Extract the first word of "objdump", so it can be a program name with args.
  5088. set dummy objdump; ac_word=$2
  5089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5090. printf %s "checking for $ac_word... " >&6; }
  5091. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5092. then :
  5093. printf %s "(cached) " >&6
  5094. else $as_nop
  5095. if test -n "$ac_ct_OBJDUMP"; then
  5096. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5097. else
  5098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5099. for as_dir in $PATH
  5100. do
  5101. IFS=$as_save_IFS
  5102. case $as_dir in #(((
  5103. '') as_dir=./ ;;
  5104. */) ;;
  5105. *) as_dir=$as_dir/ ;;
  5106. esac
  5107. for ac_exec_ext in '' $ac_executable_extensions; do
  5108. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5109. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5110. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5111. break 2
  5112. fi
  5113. done
  5114. done
  5115. IFS=$as_save_IFS
  5116. fi
  5117. fi
  5118. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5119. if test -n "$ac_ct_OBJDUMP"; then
  5120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5121. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5122. else
  5123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5124. printf "%s\n" "no" >&6; }
  5125. fi
  5126. if test "x$ac_ct_OBJDUMP" = x; then
  5127. OBJDUMP="false"
  5128. else
  5129. case $cross_compiling:$ac_tool_warned in
  5130. yes:)
  5131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5132. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5133. ac_tool_warned=yes ;;
  5134. esac
  5135. OBJDUMP=$ac_ct_OBJDUMP
  5136. fi
  5137. else
  5138. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5139. fi
  5140. test -z "$OBJDUMP" && OBJDUMP=objdump
  5141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5142. printf %s "checking how to recognize dependent libraries... " >&6; }
  5143. if test ${lt_cv_deplibs_check_method+y}
  5144. then :
  5145. printf %s "(cached) " >&6
  5146. else $as_nop
  5147. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5148. lt_cv_file_magic_test_file=
  5149. lt_cv_deplibs_check_method='unknown'
  5150. # Need to set the preceding variable on all platforms that support
  5151. # interlibrary dependencies.
  5152. # 'none' -- dependencies not supported.
  5153. # 'unknown' -- same as none, but documents that we really don't know.
  5154. # 'pass_all' -- all dependencies passed with no checks.
  5155. # 'test_compile' -- check by making test program.
  5156. # 'file_magic [[regex]]' -- check by looking for files in library path
  5157. # that responds to the $file_magic_cmd with a given extended regex.
  5158. # If you have 'file' or equivalent on your system and you're not sure
  5159. # whether 'pass_all' will *always* work, you probably want this one.
  5160. case $host_os in
  5161. aix[4-9]*)
  5162. lt_cv_deplibs_check_method=pass_all
  5163. ;;
  5164. beos*)
  5165. lt_cv_deplibs_check_method=pass_all
  5166. ;;
  5167. bsdi[45]*)
  5168. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5169. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5170. lt_cv_file_magic_test_file=/shlib/libc.so
  5171. ;;
  5172. cygwin*)
  5173. # func_win32_libid is a shell function defined in ltmain.sh
  5174. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5175. lt_cv_file_magic_cmd='func_win32_libid'
  5176. lt_cv_deplibs_check_method=pass_all # SDL customization
  5177. ;;
  5178. mingw* | pw32*)
  5179. # Base MSYS/MinGW do not provide the 'file' command needed by
  5180. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5181. # unless we find 'file', for example because we are cross-compiling.
  5182. if ( file / ) >/dev/null 2>&1; then
  5183. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5184. lt_cv_file_magic_cmd='func_win32_libid'
  5185. else
  5186. # Keep this pattern in sync with the one in func_win32_libid.
  5187. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5188. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5189. fi
  5190. lt_cv_deplibs_check_method=pass_all # SDL customization
  5191. ;;
  5192. cegcc*)
  5193. # use the weaker test based on 'objdump'. See mingw*.
  5194. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5195. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5196. ;;
  5197. darwin* | rhapsody*)
  5198. lt_cv_deplibs_check_method=pass_all
  5199. ;;
  5200. freebsd* | dragonfly* | midnightbsd*)
  5201. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5202. case $host_cpu in
  5203. i*86 )
  5204. # Not sure whether the presence of OpenBSD here was a mistake.
  5205. # Let's accept both of them until this is cleared up.
  5206. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5207. lt_cv_file_magic_cmd=/usr/bin/file
  5208. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5209. ;;
  5210. esac
  5211. else
  5212. lt_cv_deplibs_check_method=pass_all
  5213. fi
  5214. ;;
  5215. haiku*)
  5216. lt_cv_deplibs_check_method=pass_all
  5217. ;;
  5218. hpux10.20* | hpux11*)
  5219. lt_cv_file_magic_cmd=/usr/bin/file
  5220. case $host_cpu in
  5221. ia64*)
  5222. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5223. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5224. ;;
  5225. hppa*64*)
  5226. 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]'
  5227. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5228. ;;
  5229. *)
  5230. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5231. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5232. ;;
  5233. esac
  5234. ;;
  5235. interix[3-9]*)
  5236. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5237. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5238. ;;
  5239. irix5* | irix6* | nonstopux*)
  5240. case $LD in
  5241. *-32|*"-32 ") libmagic=32-bit;;
  5242. *-n32|*"-n32 ") libmagic=N32;;
  5243. *-64|*"-64 ") libmagic=64-bit;;
  5244. *) libmagic=never-match;;
  5245. esac
  5246. lt_cv_deplibs_check_method=pass_all
  5247. ;;
  5248. # This must be glibc/ELF.
  5249. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5250. lt_cv_deplibs_check_method=pass_all
  5251. ;;
  5252. netbsd*)
  5253. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5254. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5255. else
  5256. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5257. fi
  5258. ;;
  5259. newos6*)
  5260. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5261. lt_cv_file_magic_cmd=/usr/bin/file
  5262. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5263. ;;
  5264. *nto* | *qnx*)
  5265. lt_cv_deplibs_check_method=pass_all
  5266. ;;
  5267. openbsd* | bitrig*)
  5268. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5269. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5270. else
  5271. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5272. fi
  5273. ;;
  5274. osf3* | osf4* | osf5*)
  5275. lt_cv_deplibs_check_method=pass_all
  5276. ;;
  5277. rdos*)
  5278. lt_cv_deplibs_check_method=pass_all
  5279. ;;
  5280. solaris*)
  5281. lt_cv_deplibs_check_method=pass_all
  5282. ;;
  5283. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5284. lt_cv_deplibs_check_method=pass_all
  5285. ;;
  5286. sysv4 | sysv4.3*)
  5287. case $host_vendor in
  5288. motorola)
  5289. 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]'
  5290. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5291. ;;
  5292. ncr)
  5293. lt_cv_deplibs_check_method=pass_all
  5294. ;;
  5295. sequent)
  5296. lt_cv_file_magic_cmd='/bin/file'
  5297. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5298. ;;
  5299. sni)
  5300. lt_cv_file_magic_cmd='/bin/file'
  5301. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5302. lt_cv_file_magic_test_file=/lib/libc.so
  5303. ;;
  5304. siemens)
  5305. lt_cv_deplibs_check_method=pass_all
  5306. ;;
  5307. pc)
  5308. lt_cv_deplibs_check_method=pass_all
  5309. ;;
  5310. esac
  5311. ;;
  5312. tpf*)
  5313. lt_cv_deplibs_check_method=pass_all
  5314. ;;
  5315. os2*)
  5316. lt_cv_deplibs_check_method=pass_all
  5317. ;;
  5318. esac
  5319. fi
  5320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5321. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5322. file_magic_glob=
  5323. want_nocaseglob=no
  5324. if test "$build" = "$host"; then
  5325. case $host_os in
  5326. mingw* | pw32*)
  5327. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5328. want_nocaseglob=yes
  5329. else
  5330. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5331. fi
  5332. ;;
  5333. esac
  5334. fi
  5335. file_magic_cmd=$lt_cv_file_magic_cmd
  5336. deplibs_check_method=$lt_cv_deplibs_check_method
  5337. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5338. if test -n "$ac_tool_prefix"; then
  5339. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5340. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5342. printf %s "checking for $ac_word... " >&6; }
  5343. if test ${ac_cv_prog_DLLTOOL+y}
  5344. then :
  5345. printf %s "(cached) " >&6
  5346. else $as_nop
  5347. if test -n "$DLLTOOL"; then
  5348. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5349. else
  5350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5351. for as_dir in $PATH
  5352. do
  5353. IFS=$as_save_IFS
  5354. case $as_dir in #(((
  5355. '') as_dir=./ ;;
  5356. */) ;;
  5357. *) as_dir=$as_dir/ ;;
  5358. esac
  5359. for ac_exec_ext in '' $ac_executable_extensions; do
  5360. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5361. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5362. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5363. break 2
  5364. fi
  5365. done
  5366. done
  5367. IFS=$as_save_IFS
  5368. fi
  5369. fi
  5370. DLLTOOL=$ac_cv_prog_DLLTOOL
  5371. if test -n "$DLLTOOL"; then
  5372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5373. printf "%s\n" "$DLLTOOL" >&6; }
  5374. else
  5375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5376. printf "%s\n" "no" >&6; }
  5377. fi
  5378. fi
  5379. if test -z "$ac_cv_prog_DLLTOOL"; then
  5380. ac_ct_DLLTOOL=$DLLTOOL
  5381. # Extract the first word of "dlltool", so it can be a program name with args.
  5382. set dummy dlltool; ac_word=$2
  5383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5384. printf %s "checking for $ac_word... " >&6; }
  5385. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5386. then :
  5387. printf %s "(cached) " >&6
  5388. else $as_nop
  5389. if test -n "$ac_ct_DLLTOOL"; then
  5390. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5391. else
  5392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5393. for as_dir in $PATH
  5394. do
  5395. IFS=$as_save_IFS
  5396. case $as_dir in #(((
  5397. '') as_dir=./ ;;
  5398. */) ;;
  5399. *) as_dir=$as_dir/ ;;
  5400. esac
  5401. for ac_exec_ext in '' $ac_executable_extensions; do
  5402. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5403. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5404. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5405. break 2
  5406. fi
  5407. done
  5408. done
  5409. IFS=$as_save_IFS
  5410. fi
  5411. fi
  5412. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5413. if test -n "$ac_ct_DLLTOOL"; then
  5414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5415. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5416. else
  5417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5418. printf "%s\n" "no" >&6; }
  5419. fi
  5420. if test "x$ac_ct_DLLTOOL" = x; then
  5421. DLLTOOL="false"
  5422. else
  5423. case $cross_compiling:$ac_tool_warned in
  5424. yes:)
  5425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5426. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5427. ac_tool_warned=yes ;;
  5428. esac
  5429. DLLTOOL=$ac_ct_DLLTOOL
  5430. fi
  5431. else
  5432. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5433. fi
  5434. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5436. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5437. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5438. then :
  5439. printf %s "(cached) " >&6
  5440. else $as_nop
  5441. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5442. case $host_os in
  5443. cygwin* | mingw* | pw32* | cegcc*)
  5444. # two different shell functions defined in ltmain.sh;
  5445. # decide which one to use based on capabilities of $DLLTOOL
  5446. case `$DLLTOOL --help 2>&1` in
  5447. *--identify-strict*)
  5448. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5449. ;;
  5450. *)
  5451. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5452. ;;
  5453. esac
  5454. ;;
  5455. *)
  5456. # fallback: assume linklib IS sharedlib
  5457. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5458. ;;
  5459. esac
  5460. fi
  5461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5462. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5463. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5464. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5465. if test -n "$ac_tool_prefix"; then
  5466. for ac_prog in ar
  5467. do
  5468. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5469. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5471. printf %s "checking for $ac_word... " >&6; }
  5472. if test ${ac_cv_prog_AR+y}
  5473. then :
  5474. printf %s "(cached) " >&6
  5475. else $as_nop
  5476. if test -n "$AR"; then
  5477. ac_cv_prog_AR="$AR" # Let the user override the test.
  5478. else
  5479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5480. for as_dir in $PATH
  5481. do
  5482. IFS=$as_save_IFS
  5483. case $as_dir in #(((
  5484. '') as_dir=./ ;;
  5485. */) ;;
  5486. *) as_dir=$as_dir/ ;;
  5487. esac
  5488. for ac_exec_ext in '' $ac_executable_extensions; do
  5489. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5490. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5491. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5492. break 2
  5493. fi
  5494. done
  5495. done
  5496. IFS=$as_save_IFS
  5497. fi
  5498. fi
  5499. AR=$ac_cv_prog_AR
  5500. if test -n "$AR"; then
  5501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5502. printf "%s\n" "$AR" >&6; }
  5503. else
  5504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5505. printf "%s\n" "no" >&6; }
  5506. fi
  5507. test -n "$AR" && break
  5508. done
  5509. fi
  5510. if test -z "$AR"; then
  5511. ac_ct_AR=$AR
  5512. for ac_prog in ar
  5513. do
  5514. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5515. set dummy $ac_prog; ac_word=$2
  5516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5517. printf %s "checking for $ac_word... " >&6; }
  5518. if test ${ac_cv_prog_ac_ct_AR+y}
  5519. then :
  5520. printf %s "(cached) " >&6
  5521. else $as_nop
  5522. if test -n "$ac_ct_AR"; then
  5523. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5524. else
  5525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5526. for as_dir in $PATH
  5527. do
  5528. IFS=$as_save_IFS
  5529. case $as_dir in #(((
  5530. '') as_dir=./ ;;
  5531. */) ;;
  5532. *) as_dir=$as_dir/ ;;
  5533. esac
  5534. for ac_exec_ext in '' $ac_executable_extensions; do
  5535. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5536. ac_cv_prog_ac_ct_AR="$ac_prog"
  5537. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5538. break 2
  5539. fi
  5540. done
  5541. done
  5542. IFS=$as_save_IFS
  5543. fi
  5544. fi
  5545. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5546. if test -n "$ac_ct_AR"; then
  5547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5548. printf "%s\n" "$ac_ct_AR" >&6; }
  5549. else
  5550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5551. printf "%s\n" "no" >&6; }
  5552. fi
  5553. test -n "$ac_ct_AR" && break
  5554. done
  5555. if test "x$ac_ct_AR" = x; then
  5556. AR="false"
  5557. else
  5558. case $cross_compiling:$ac_tool_warned in
  5559. yes:)
  5560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5561. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5562. ac_tool_warned=yes ;;
  5563. esac
  5564. AR=$ac_ct_AR
  5565. fi
  5566. fi
  5567. : ${AR=ar}
  5568. : ${AR_FLAGS=cru}
  5569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5570. printf %s "checking for archiver @FILE support... " >&6; }
  5571. if test ${lt_cv_ar_at_file+y}
  5572. then :
  5573. printf %s "(cached) " >&6
  5574. else $as_nop
  5575. lt_cv_ar_at_file=no
  5576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5577. /* end confdefs.h. */
  5578. int
  5579. main (void)
  5580. {
  5581. ;
  5582. return 0;
  5583. }
  5584. _ACEOF
  5585. if ac_fn_c_try_compile "$LINENO"
  5586. then :
  5587. echo conftest.$ac_objext > conftest.lst
  5588. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5589. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5590. (eval $lt_ar_try) 2>&5
  5591. ac_status=$?
  5592. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5593. test $ac_status = 0; }
  5594. if test 0 -eq "$ac_status"; then
  5595. # Ensure the archiver fails upon bogus file names.
  5596. rm -f conftest.$ac_objext libconftest.a
  5597. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5598. (eval $lt_ar_try) 2>&5
  5599. ac_status=$?
  5600. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5601. test $ac_status = 0; }
  5602. if test 0 -ne "$ac_status"; then
  5603. lt_cv_ar_at_file=@
  5604. fi
  5605. fi
  5606. rm -f conftest.* libconftest.a
  5607. fi
  5608. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5609. fi
  5610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5611. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5612. if test no = "$lt_cv_ar_at_file"; then
  5613. archiver_list_spec=
  5614. else
  5615. archiver_list_spec=$lt_cv_ar_at_file
  5616. fi
  5617. if test -n "$ac_tool_prefix"; then
  5618. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5619. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5621. printf %s "checking for $ac_word... " >&6; }
  5622. if test ${ac_cv_prog_STRIP+y}
  5623. then :
  5624. printf %s "(cached) " >&6
  5625. else $as_nop
  5626. if test -n "$STRIP"; then
  5627. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5628. else
  5629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5630. for as_dir in $PATH
  5631. do
  5632. IFS=$as_save_IFS
  5633. case $as_dir in #(((
  5634. '') as_dir=./ ;;
  5635. */) ;;
  5636. *) as_dir=$as_dir/ ;;
  5637. esac
  5638. for ac_exec_ext in '' $ac_executable_extensions; do
  5639. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5640. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5641. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5642. break 2
  5643. fi
  5644. done
  5645. done
  5646. IFS=$as_save_IFS
  5647. fi
  5648. fi
  5649. STRIP=$ac_cv_prog_STRIP
  5650. if test -n "$STRIP"; then
  5651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5652. printf "%s\n" "$STRIP" >&6; }
  5653. else
  5654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5655. printf "%s\n" "no" >&6; }
  5656. fi
  5657. fi
  5658. if test -z "$ac_cv_prog_STRIP"; then
  5659. ac_ct_STRIP=$STRIP
  5660. # Extract the first word of "strip", so it can be a program name with args.
  5661. set dummy strip; ac_word=$2
  5662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5663. printf %s "checking for $ac_word... " >&6; }
  5664. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5665. then :
  5666. printf %s "(cached) " >&6
  5667. else $as_nop
  5668. if test -n "$ac_ct_STRIP"; then
  5669. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5670. else
  5671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5672. for as_dir in $PATH
  5673. do
  5674. IFS=$as_save_IFS
  5675. case $as_dir in #(((
  5676. '') as_dir=./ ;;
  5677. */) ;;
  5678. *) as_dir=$as_dir/ ;;
  5679. esac
  5680. for ac_exec_ext in '' $ac_executable_extensions; do
  5681. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5682. ac_cv_prog_ac_ct_STRIP="strip"
  5683. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5684. break 2
  5685. fi
  5686. done
  5687. done
  5688. IFS=$as_save_IFS
  5689. fi
  5690. fi
  5691. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5692. if test -n "$ac_ct_STRIP"; then
  5693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5694. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5695. else
  5696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5697. printf "%s\n" "no" >&6; }
  5698. fi
  5699. if test "x$ac_ct_STRIP" = x; then
  5700. STRIP=":"
  5701. else
  5702. case $cross_compiling:$ac_tool_warned in
  5703. yes:)
  5704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5705. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5706. ac_tool_warned=yes ;;
  5707. esac
  5708. STRIP=$ac_ct_STRIP
  5709. fi
  5710. else
  5711. STRIP="$ac_cv_prog_STRIP"
  5712. fi
  5713. test -z "$STRIP" && STRIP=:
  5714. if test -n "$ac_tool_prefix"; then
  5715. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5716. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5718. printf %s "checking for $ac_word... " >&6; }
  5719. if test ${ac_cv_prog_RANLIB+y}
  5720. then :
  5721. printf %s "(cached) " >&6
  5722. else $as_nop
  5723. if test -n "$RANLIB"; then
  5724. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5725. else
  5726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5727. for as_dir in $PATH
  5728. do
  5729. IFS=$as_save_IFS
  5730. case $as_dir in #(((
  5731. '') as_dir=./ ;;
  5732. */) ;;
  5733. *) as_dir=$as_dir/ ;;
  5734. esac
  5735. for ac_exec_ext in '' $ac_executable_extensions; do
  5736. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5737. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5738. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5739. break 2
  5740. fi
  5741. done
  5742. done
  5743. IFS=$as_save_IFS
  5744. fi
  5745. fi
  5746. RANLIB=$ac_cv_prog_RANLIB
  5747. if test -n "$RANLIB"; then
  5748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5749. printf "%s\n" "$RANLIB" >&6; }
  5750. else
  5751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5752. printf "%s\n" "no" >&6; }
  5753. fi
  5754. fi
  5755. if test -z "$ac_cv_prog_RANLIB"; then
  5756. ac_ct_RANLIB=$RANLIB
  5757. # Extract the first word of "ranlib", so it can be a program name with args.
  5758. set dummy ranlib; ac_word=$2
  5759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5760. printf %s "checking for $ac_word... " >&6; }
  5761. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5762. then :
  5763. printf %s "(cached) " >&6
  5764. else $as_nop
  5765. if test -n "$ac_ct_RANLIB"; then
  5766. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5767. else
  5768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5769. for as_dir in $PATH
  5770. do
  5771. IFS=$as_save_IFS
  5772. case $as_dir in #(((
  5773. '') as_dir=./ ;;
  5774. */) ;;
  5775. *) as_dir=$as_dir/ ;;
  5776. esac
  5777. for ac_exec_ext in '' $ac_executable_extensions; do
  5778. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5779. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5780. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5781. break 2
  5782. fi
  5783. done
  5784. done
  5785. IFS=$as_save_IFS
  5786. fi
  5787. fi
  5788. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5789. if test -n "$ac_ct_RANLIB"; then
  5790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5791. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5792. else
  5793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5794. printf "%s\n" "no" >&6; }
  5795. fi
  5796. if test "x$ac_ct_RANLIB" = x; then
  5797. RANLIB=":"
  5798. else
  5799. case $cross_compiling:$ac_tool_warned in
  5800. yes:)
  5801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5802. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5803. ac_tool_warned=yes ;;
  5804. esac
  5805. RANLIB=$ac_ct_RANLIB
  5806. fi
  5807. else
  5808. RANLIB="$ac_cv_prog_RANLIB"
  5809. fi
  5810. test -z "$RANLIB" && RANLIB=:
  5811. # Determine commands to create old-style static archives.
  5812. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5813. old_postinstall_cmds='chmod 644 $oldlib'
  5814. old_postuninstall_cmds=
  5815. if test -n "$RANLIB"; then
  5816. case $host_os in
  5817. bitrig* | openbsd*)
  5818. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5819. ;;
  5820. *)
  5821. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5822. ;;
  5823. esac
  5824. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5825. fi
  5826. case $host_os in
  5827. darwin*)
  5828. lock_old_archive_extraction=yes ;;
  5829. *)
  5830. lock_old_archive_extraction=no ;;
  5831. esac
  5832. for ac_prog in gawk mawk nawk awk
  5833. do
  5834. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5835. set dummy $ac_prog; ac_word=$2
  5836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5837. printf %s "checking for $ac_word... " >&6; }
  5838. if test ${ac_cv_prog_AWK+y}
  5839. then :
  5840. printf %s "(cached) " >&6
  5841. else $as_nop
  5842. if test -n "$AWK"; then
  5843. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5844. else
  5845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5846. for as_dir in $PATH
  5847. do
  5848. IFS=$as_save_IFS
  5849. case $as_dir in #(((
  5850. '') as_dir=./ ;;
  5851. */) ;;
  5852. *) as_dir=$as_dir/ ;;
  5853. esac
  5854. for ac_exec_ext in '' $ac_executable_extensions; do
  5855. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5856. ac_cv_prog_AWK="$ac_prog"
  5857. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5858. break 2
  5859. fi
  5860. done
  5861. done
  5862. IFS=$as_save_IFS
  5863. fi
  5864. fi
  5865. AWK=$ac_cv_prog_AWK
  5866. if test -n "$AWK"; then
  5867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5868. printf "%s\n" "$AWK" >&6; }
  5869. else
  5870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5871. printf "%s\n" "no" >&6; }
  5872. fi
  5873. test -n "$AWK" && break
  5874. done
  5875. # If no C compiler was specified, use CC.
  5876. LTCC=${LTCC-"$CC"}
  5877. # If no C compiler flags were specified, use CFLAGS.
  5878. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5879. # Allow CC to be a program name with arguments.
  5880. compiler=$CC
  5881. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5883. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5884. if test ${lt_cv_sys_global_symbol_pipe+y}
  5885. then :
  5886. printf %s "(cached) " >&6
  5887. else $as_nop
  5888. # These are sane defaults that work on at least a few old systems.
  5889. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5890. # Character class describing NM global symbol codes.
  5891. symcode='[BCDEGRST]'
  5892. # Regexp to match symbols that can be accessed directly from C.
  5893. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5894. # Define system-specific variables.
  5895. case $host_os in
  5896. aix*)
  5897. symcode='[BCDT]'
  5898. ;;
  5899. cygwin* | mingw* | pw32* | cegcc*)
  5900. symcode='[ABCDGISTW]'
  5901. ;;
  5902. hpux*)
  5903. if test ia64 = "$host_cpu"; then
  5904. symcode='[ABCDEGRST]'
  5905. fi
  5906. ;;
  5907. irix* | nonstopux*)
  5908. symcode='[BCDEGRST]'
  5909. ;;
  5910. osf*)
  5911. symcode='[BCDEGQRST]'
  5912. ;;
  5913. solaris*)
  5914. symcode='[BCDRT]'
  5915. ;;
  5916. sco3.2v5*)
  5917. symcode='[DT]'
  5918. ;;
  5919. sysv4.2uw2*)
  5920. symcode='[DT]'
  5921. ;;
  5922. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5923. symcode='[ABDT]'
  5924. ;;
  5925. sysv4)
  5926. symcode='[DFNSTU]'
  5927. ;;
  5928. esac
  5929. # If we're using GNU nm, then use its standard symbol codes.
  5930. case `$NM -V 2>&1` in
  5931. *GNU* | *'with BFD'*)
  5932. symcode='[ABCDGIRSTW]' ;;
  5933. esac
  5934. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5935. # Gets list of data symbols to import.
  5936. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5937. # Adjust the below global symbol transforms to fixup imported variables.
  5938. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5939. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5940. lt_c_name_lib_hook="\
  5941. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5942. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5943. else
  5944. # Disable hooks by default.
  5945. lt_cv_sys_global_symbol_to_import=
  5946. lt_cdecl_hook=
  5947. lt_c_name_hook=
  5948. lt_c_name_lib_hook=
  5949. fi
  5950. # Transform an extracted symbol line into a proper C declaration.
  5951. # Some systems (esp. on ia64) link data and code symbols differently,
  5952. # so use this general approach.
  5953. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5954. $lt_cdecl_hook\
  5955. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5956. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5957. # Transform an extracted symbol line into symbol name and symbol address
  5958. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5959. $lt_c_name_hook\
  5960. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5961. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5962. # Transform an extracted symbol line into symbol name with lib prefix and
  5963. # symbol address.
  5964. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5965. $lt_c_name_lib_hook\
  5966. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5967. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5968. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5969. # Handle CRLF in mingw tool chain
  5970. opt_cr=
  5971. case $build_os in
  5972. mingw*)
  5973. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5974. ;;
  5975. esac
  5976. # Try without a prefix underscore, then with it.
  5977. for ac_symprfx in "" "_"; do
  5978. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5979. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5980. # Write the raw and C identifiers.
  5981. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5982. # Fake it for dumpbin and say T for any non-static function,
  5983. # D for any global variable and I for any imported variable.
  5984. # Also find C++ and __fastcall symbols from MSVC++,
  5985. # which start with @ or ?.
  5986. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5987. " {last_section=section; section=\$ 3};"\
  5988. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5989. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5990. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5991. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5992. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5993. " \$ 0!~/External *\|/{next};"\
  5994. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5995. " {if(hide[section]) next};"\
  5996. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5997. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5998. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5999. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6000. " ' prfx=^$ac_symprfx"
  6001. else
  6002. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6003. fi
  6004. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6005. # Check to see that the pipe works correctly.
  6006. pipe_works=no
  6007. rm -f conftest*
  6008. cat > conftest.$ac_ext <<_LT_EOF
  6009. #ifdef __cplusplus
  6010. extern "C" {
  6011. #endif
  6012. char nm_test_var;
  6013. void nm_test_func(void);
  6014. void nm_test_func(void){}
  6015. #ifdef __cplusplus
  6016. }
  6017. #endif
  6018. int main(){nm_test_var='a';nm_test_func();return(0);}
  6019. _LT_EOF
  6020. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6021. (eval $ac_compile) 2>&5
  6022. ac_status=$?
  6023. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6024. test $ac_status = 0; }; then
  6025. # Now try to grab the symbols.
  6026. nlist=conftest.nm
  6027. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6028. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6029. ac_status=$?
  6030. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6031. test $ac_status = 0; } && test -s "$nlist"; then
  6032. # Try sorting and uniquifying the output.
  6033. if sort "$nlist" | uniq > "$nlist"T; then
  6034. mv -f "$nlist"T "$nlist"
  6035. else
  6036. rm -f "$nlist"T
  6037. fi
  6038. # Make sure that we snagged all the symbols we need.
  6039. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6040. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6041. cat <<_LT_EOF > conftest.$ac_ext
  6042. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6043. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6044. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6045. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6046. # define LT_DLSYM_CONST
  6047. #elif defined __osf__
  6048. /* This system does not cope well with relocations in const data. */
  6049. # define LT_DLSYM_CONST
  6050. #else
  6051. # define LT_DLSYM_CONST const
  6052. #endif
  6053. #ifdef __cplusplus
  6054. extern "C" {
  6055. #endif
  6056. _LT_EOF
  6057. # Now generate the symbol file.
  6058. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6059. cat <<_LT_EOF >> conftest.$ac_ext
  6060. /* The mapping between symbol names and symbols. */
  6061. LT_DLSYM_CONST struct {
  6062. const char *name;
  6063. void *address;
  6064. }
  6065. lt__PROGRAM__LTX_preloaded_symbols[] =
  6066. {
  6067. { "@PROGRAM@", (void *) 0 },
  6068. _LT_EOF
  6069. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6070. cat <<\_LT_EOF >> conftest.$ac_ext
  6071. {0, (void *) 0}
  6072. };
  6073. /* This works around a problem in FreeBSD linker */
  6074. #ifdef FREEBSD_WORKAROUND
  6075. static const void *lt_preloaded_setup() {
  6076. return lt__PROGRAM__LTX_preloaded_symbols;
  6077. }
  6078. #endif
  6079. #ifdef __cplusplus
  6080. }
  6081. #endif
  6082. _LT_EOF
  6083. # Now try linking the two files.
  6084. mv conftest.$ac_objext conftstm.$ac_objext
  6085. lt_globsym_save_LIBS=$LIBS
  6086. lt_globsym_save_CFLAGS=$CFLAGS
  6087. LIBS=conftstm.$ac_objext
  6088. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6089. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6090. (eval $ac_link) 2>&5
  6091. ac_status=$?
  6092. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6093. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6094. pipe_works=yes
  6095. fi
  6096. LIBS=$lt_globsym_save_LIBS
  6097. CFLAGS=$lt_globsym_save_CFLAGS
  6098. else
  6099. echo "cannot find nm_test_func in $nlist" >&5
  6100. fi
  6101. else
  6102. echo "cannot find nm_test_var in $nlist" >&5
  6103. fi
  6104. else
  6105. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6106. fi
  6107. else
  6108. echo "$progname: failed program was:" >&5
  6109. cat conftest.$ac_ext >&5
  6110. fi
  6111. rm -rf conftest* conftst*
  6112. # Do not use the global_symbol_pipe unless it works.
  6113. if test yes = "$pipe_works"; then
  6114. break
  6115. else
  6116. lt_cv_sys_global_symbol_pipe=
  6117. fi
  6118. done
  6119. fi
  6120. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6121. lt_cv_sys_global_symbol_to_cdecl=
  6122. fi
  6123. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6125. printf "%s\n" "failed" >&6; }
  6126. else
  6127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6128. printf "%s\n" "ok" >&6; }
  6129. fi
  6130. # Response file support.
  6131. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6132. nm_file_list_spec='@'
  6133. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6134. nm_file_list_spec='@'
  6135. fi
  6136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6137. printf %s "checking for sysroot... " >&6; }
  6138. # Check whether --with-sysroot was given.
  6139. if test ${with_sysroot+y}
  6140. then :
  6141. withval=$with_sysroot;
  6142. else $as_nop
  6143. with_sysroot=no
  6144. fi
  6145. lt_sysroot=
  6146. case $with_sysroot in #(
  6147. yes)
  6148. if test yes = "$GCC"; then
  6149. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6150. fi
  6151. ;; #(
  6152. /*)
  6153. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6154. ;; #(
  6155. no|'')
  6156. ;; #(
  6157. *)
  6158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6159. printf "%s\n" "$with_sysroot" >&6; }
  6160. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6161. ;;
  6162. esac
  6163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6164. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6166. printf %s "checking for a working dd... " >&6; }
  6167. if test ${ac_cv_path_lt_DD+y}
  6168. then :
  6169. printf %s "(cached) " >&6
  6170. else $as_nop
  6171. printf 0123456789abcdef0123456789abcdef >conftest.i
  6172. cat conftest.i conftest.i >conftest2.i
  6173. : ${lt_DD:=$DD}
  6174. if test -z "$lt_DD"; then
  6175. ac_path_lt_DD_found=false
  6176. # Loop through the user's path and test for each of PROGNAME-LIST
  6177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6178. for as_dir in $PATH
  6179. do
  6180. IFS=$as_save_IFS
  6181. case $as_dir in #(((
  6182. '') as_dir=./ ;;
  6183. */) ;;
  6184. *) as_dir=$as_dir/ ;;
  6185. esac
  6186. for ac_prog in dd
  6187. do
  6188. for ac_exec_ext in '' $ac_executable_extensions; do
  6189. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6190. as_fn_executable_p "$ac_path_lt_DD" || continue
  6191. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6192. cmp -s conftest.i conftest.out \
  6193. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6194. fi
  6195. $ac_path_lt_DD_found && break 3
  6196. done
  6197. done
  6198. done
  6199. IFS=$as_save_IFS
  6200. if test -z "$ac_cv_path_lt_DD"; then
  6201. :
  6202. fi
  6203. else
  6204. ac_cv_path_lt_DD=$lt_DD
  6205. fi
  6206. rm -f conftest.i conftest2.i conftest.out
  6207. fi
  6208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6209. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6211. printf %s "checking how to truncate binary pipes... " >&6; }
  6212. if test ${lt_cv_truncate_bin+y}
  6213. then :
  6214. printf %s "(cached) " >&6
  6215. else $as_nop
  6216. printf 0123456789abcdef0123456789abcdef >conftest.i
  6217. cat conftest.i conftest.i >conftest2.i
  6218. lt_cv_truncate_bin=
  6219. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6220. cmp -s conftest.i conftest.out \
  6221. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6222. fi
  6223. rm -f conftest.i conftest2.i conftest.out
  6224. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6225. fi
  6226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6227. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6228. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6229. func_cc_basename ()
  6230. {
  6231. for cc_temp in $*""; do
  6232. case $cc_temp in
  6233. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6234. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6235. \-*) ;;
  6236. *) break;;
  6237. esac
  6238. done
  6239. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6240. }
  6241. # Check whether --enable-libtool-lock was given.
  6242. if test ${enable_libtool_lock+y}
  6243. then :
  6244. enableval=$enable_libtool_lock;
  6245. fi
  6246. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6247. # Some flags need to be propagated to the compiler or linker for good
  6248. # libtool support.
  6249. case $host in
  6250. ia64-*-hpux*)
  6251. # Find out what ABI is being produced by ac_compile, and set mode
  6252. # options accordingly.
  6253. echo 'int i;' > conftest.$ac_ext
  6254. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6255. (eval $ac_compile) 2>&5
  6256. ac_status=$?
  6257. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6258. test $ac_status = 0; }; then
  6259. case `/usr/bin/file conftest.$ac_objext` in
  6260. *ELF-32*)
  6261. HPUX_IA64_MODE=32
  6262. ;;
  6263. *ELF-64*)
  6264. HPUX_IA64_MODE=64
  6265. ;;
  6266. esac
  6267. fi
  6268. rm -rf conftest*
  6269. ;;
  6270. *-*-irix6*)
  6271. # Find out what ABI is being produced by ac_compile, and set linker
  6272. # options accordingly.
  6273. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6274. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6275. (eval $ac_compile) 2>&5
  6276. ac_status=$?
  6277. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6278. test $ac_status = 0; }; then
  6279. if test yes = "$lt_cv_prog_gnu_ld"; then
  6280. case `/usr/bin/file conftest.$ac_objext` in
  6281. *32-bit*)
  6282. LD="${LD-ld} -melf32bsmip"
  6283. ;;
  6284. *N32*)
  6285. LD="${LD-ld} -melf32bmipn32"
  6286. ;;
  6287. *64-bit*)
  6288. LD="${LD-ld} -melf64bmip"
  6289. ;;
  6290. esac
  6291. else
  6292. case `/usr/bin/file conftest.$ac_objext` in
  6293. *32-bit*)
  6294. LD="${LD-ld} -32"
  6295. ;;
  6296. *N32*)
  6297. LD="${LD-ld} -n32"
  6298. ;;
  6299. *64-bit*)
  6300. LD="${LD-ld} -64"
  6301. ;;
  6302. esac
  6303. fi
  6304. fi
  6305. rm -rf conftest*
  6306. ;;
  6307. mips64*-*linux*)
  6308. # Find out what ABI is being produced by ac_compile, and set linker
  6309. # options accordingly.
  6310. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6311. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6312. (eval $ac_compile) 2>&5
  6313. ac_status=$?
  6314. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6315. test $ac_status = 0; }; then
  6316. emul=elf
  6317. case `/usr/bin/file conftest.$ac_objext` in
  6318. *32-bit*)
  6319. emul="${emul}32"
  6320. ;;
  6321. *64-bit*)
  6322. emul="${emul}64"
  6323. ;;
  6324. esac
  6325. case `/usr/bin/file conftest.$ac_objext` in
  6326. *MSB*)
  6327. emul="${emul}btsmip"
  6328. ;;
  6329. *LSB*)
  6330. emul="${emul}ltsmip"
  6331. ;;
  6332. esac
  6333. case `/usr/bin/file conftest.$ac_objext` in
  6334. *N32*)
  6335. emul="${emul}n32"
  6336. ;;
  6337. esac
  6338. LD="${LD-ld} -m $emul"
  6339. fi
  6340. rm -rf conftest*
  6341. ;;
  6342. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6343. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6344. # Find out what ABI is being produced by ac_compile, and set linker
  6345. # options accordingly. Note that the listed cases only cover the
  6346. # situations where additional linker options are needed (such as when
  6347. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6348. # vice versa); the common cases where no linker options are needed do
  6349. # not appear in the list.
  6350. echo 'int i;' > conftest.$ac_ext
  6351. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6352. (eval $ac_compile) 2>&5
  6353. ac_status=$?
  6354. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6355. test $ac_status = 0; }; then
  6356. case `/usr/bin/file conftest.o` in
  6357. *32-bit*)
  6358. case $host in
  6359. x86_64-*kfreebsd*-gnu)
  6360. LD="${LD-ld} -m elf_i386_fbsd"
  6361. ;;
  6362. x86_64-*linux*)
  6363. case `/usr/bin/file conftest.o` in
  6364. *x86-64*)
  6365. LD="${LD-ld} -m elf32_x86_64"
  6366. ;;
  6367. *)
  6368. LD="${LD-ld} -m elf_i386"
  6369. ;;
  6370. esac
  6371. ;;
  6372. powerpc64le-*linux*)
  6373. LD="${LD-ld} -m elf32lppclinux"
  6374. ;;
  6375. powerpc64-*linux*)
  6376. LD="${LD-ld} -m elf32ppclinux"
  6377. ;;
  6378. s390x-*linux*)
  6379. LD="${LD-ld} -m elf_s390"
  6380. ;;
  6381. sparc64-*linux*)
  6382. LD="${LD-ld} -m elf32_sparc"
  6383. ;;
  6384. esac
  6385. ;;
  6386. *64-bit*)
  6387. case $host in
  6388. x86_64-*kfreebsd*-gnu)
  6389. LD="${LD-ld} -m elf_x86_64_fbsd"
  6390. ;;
  6391. x86_64-*linux*)
  6392. LD="${LD-ld} -m elf_x86_64"
  6393. ;;
  6394. powerpcle-*linux*|powerpc64le-*linux*)
  6395. LD="${LD-ld} -m elf64lppc"
  6396. ;;
  6397. powerpc-*linux*|powerpc64-*linux*)
  6398. LD="${LD-ld} -m elf64ppc"
  6399. ;;
  6400. s390*-*linux*|s390*-*tpf*)
  6401. LD="${LD-ld} -m elf64_s390"
  6402. ;;
  6403. sparc*-*linux*)
  6404. LD="${LD-ld} -m elf64_sparc"
  6405. ;;
  6406. esac
  6407. ;;
  6408. esac
  6409. fi
  6410. rm -rf conftest*
  6411. ;;
  6412. *-*-sco3.2v5*)
  6413. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6414. SAVE_CFLAGS=$CFLAGS
  6415. CFLAGS="$CFLAGS -belf"
  6416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6417. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6418. if test ${lt_cv_cc_needs_belf+y}
  6419. then :
  6420. printf %s "(cached) " >&6
  6421. else $as_nop
  6422. ac_ext=c
  6423. ac_cpp='$CPP $CPPFLAGS'
  6424. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6425. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6426. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6428. /* end confdefs.h. */
  6429. int
  6430. main (void)
  6431. {
  6432. ;
  6433. return 0;
  6434. }
  6435. _ACEOF
  6436. if ac_fn_c_try_link "$LINENO"
  6437. then :
  6438. lt_cv_cc_needs_belf=yes
  6439. else $as_nop
  6440. lt_cv_cc_needs_belf=no
  6441. fi
  6442. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6443. conftest$ac_exeext conftest.$ac_ext
  6444. ac_ext=c
  6445. ac_cpp='$CPP $CPPFLAGS'
  6446. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6447. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6448. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6449. fi
  6450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6451. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6452. if test yes != "$lt_cv_cc_needs_belf"; then
  6453. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6454. CFLAGS=$SAVE_CFLAGS
  6455. fi
  6456. ;;
  6457. *-*solaris*)
  6458. # Find out what ABI is being produced by ac_compile, and set linker
  6459. # options accordingly.
  6460. echo 'int i;' > conftest.$ac_ext
  6461. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6462. (eval $ac_compile) 2>&5
  6463. ac_status=$?
  6464. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6465. test $ac_status = 0; }; then
  6466. case `/usr/bin/file conftest.o` in
  6467. *64-bit*)
  6468. case $lt_cv_prog_gnu_ld in
  6469. yes*)
  6470. case $host in
  6471. i?86-*-solaris*|x86_64-*-solaris*)
  6472. LD="${LD-ld} -m elf_x86_64"
  6473. ;;
  6474. sparc*-*-solaris*)
  6475. LD="${LD-ld} -m elf64_sparc"
  6476. ;;
  6477. esac
  6478. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6479. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6480. LD=${LD-ld}_sol2
  6481. fi
  6482. ;;
  6483. *)
  6484. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6485. LD="${LD-ld} -64"
  6486. fi
  6487. ;;
  6488. esac
  6489. ;;
  6490. esac
  6491. fi
  6492. rm -rf conftest*
  6493. ;;
  6494. esac
  6495. need_locks=$enable_libtool_lock
  6496. if test -n "$ac_tool_prefix"; then
  6497. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6498. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6500. printf %s "checking for $ac_word... " >&6; }
  6501. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6502. then :
  6503. printf %s "(cached) " >&6
  6504. else $as_nop
  6505. if test -n "$MANIFEST_TOOL"; then
  6506. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6507. else
  6508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6509. for as_dir in $PATH
  6510. do
  6511. IFS=$as_save_IFS
  6512. case $as_dir in #(((
  6513. '') as_dir=./ ;;
  6514. */) ;;
  6515. *) as_dir=$as_dir/ ;;
  6516. esac
  6517. for ac_exec_ext in '' $ac_executable_extensions; do
  6518. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6519. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6520. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6521. break 2
  6522. fi
  6523. done
  6524. done
  6525. IFS=$as_save_IFS
  6526. fi
  6527. fi
  6528. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6529. if test -n "$MANIFEST_TOOL"; then
  6530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6531. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6532. else
  6533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6534. printf "%s\n" "no" >&6; }
  6535. fi
  6536. fi
  6537. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6538. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6539. # Extract the first word of "mt", so it can be a program name with args.
  6540. set dummy mt; ac_word=$2
  6541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6542. printf %s "checking for $ac_word... " >&6; }
  6543. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6544. then :
  6545. printf %s "(cached) " >&6
  6546. else $as_nop
  6547. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6548. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6549. else
  6550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6551. for as_dir in $PATH
  6552. do
  6553. IFS=$as_save_IFS
  6554. case $as_dir in #(((
  6555. '') as_dir=./ ;;
  6556. */) ;;
  6557. *) as_dir=$as_dir/ ;;
  6558. esac
  6559. for ac_exec_ext in '' $ac_executable_extensions; do
  6560. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6561. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6562. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6563. break 2
  6564. fi
  6565. done
  6566. done
  6567. IFS=$as_save_IFS
  6568. fi
  6569. fi
  6570. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6571. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6573. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6574. else
  6575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6576. printf "%s\n" "no" >&6; }
  6577. fi
  6578. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6579. MANIFEST_TOOL=":"
  6580. else
  6581. case $cross_compiling:$ac_tool_warned in
  6582. yes:)
  6583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6584. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6585. ac_tool_warned=yes ;;
  6586. esac
  6587. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6588. fi
  6589. else
  6590. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6591. fi
  6592. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6594. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6595. if test ${lt_cv_path_mainfest_tool+y}
  6596. then :
  6597. printf %s "(cached) " >&6
  6598. else $as_nop
  6599. lt_cv_path_mainfest_tool=no
  6600. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6601. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6602. cat conftest.err >&5
  6603. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6604. lt_cv_path_mainfest_tool=yes
  6605. fi
  6606. rm -f conftest*
  6607. fi
  6608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6609. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6610. if test yes != "$lt_cv_path_mainfest_tool"; then
  6611. MANIFEST_TOOL=:
  6612. fi
  6613. case $host_os in
  6614. rhapsody* | darwin*)
  6615. if test -n "$ac_tool_prefix"; then
  6616. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6617. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6619. printf %s "checking for $ac_word... " >&6; }
  6620. if test ${ac_cv_prog_DSYMUTIL+y}
  6621. then :
  6622. printf %s "(cached) " >&6
  6623. else $as_nop
  6624. if test -n "$DSYMUTIL"; then
  6625. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6626. else
  6627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6628. for as_dir in $PATH
  6629. do
  6630. IFS=$as_save_IFS
  6631. case $as_dir in #(((
  6632. '') as_dir=./ ;;
  6633. */) ;;
  6634. *) as_dir=$as_dir/ ;;
  6635. esac
  6636. for ac_exec_ext in '' $ac_executable_extensions; do
  6637. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6638. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6639. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6640. break 2
  6641. fi
  6642. done
  6643. done
  6644. IFS=$as_save_IFS
  6645. fi
  6646. fi
  6647. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6648. if test -n "$DSYMUTIL"; then
  6649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6650. printf "%s\n" "$DSYMUTIL" >&6; }
  6651. else
  6652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6653. printf "%s\n" "no" >&6; }
  6654. fi
  6655. fi
  6656. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6657. ac_ct_DSYMUTIL=$DSYMUTIL
  6658. # Extract the first word of "dsymutil", so it can be a program name with args.
  6659. set dummy dsymutil; ac_word=$2
  6660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6661. printf %s "checking for $ac_word... " >&6; }
  6662. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6663. then :
  6664. printf %s "(cached) " >&6
  6665. else $as_nop
  6666. if test -n "$ac_ct_DSYMUTIL"; then
  6667. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6668. else
  6669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6670. for as_dir in $PATH
  6671. do
  6672. IFS=$as_save_IFS
  6673. case $as_dir in #(((
  6674. '') as_dir=./ ;;
  6675. */) ;;
  6676. *) as_dir=$as_dir/ ;;
  6677. esac
  6678. for ac_exec_ext in '' $ac_executable_extensions; do
  6679. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6680. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6681. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6682. break 2
  6683. fi
  6684. done
  6685. done
  6686. IFS=$as_save_IFS
  6687. fi
  6688. fi
  6689. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6690. if test -n "$ac_ct_DSYMUTIL"; then
  6691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6692. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6693. else
  6694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6695. printf "%s\n" "no" >&6; }
  6696. fi
  6697. if test "x$ac_ct_DSYMUTIL" = x; then
  6698. DSYMUTIL=":"
  6699. else
  6700. case $cross_compiling:$ac_tool_warned in
  6701. yes:)
  6702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6703. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6704. ac_tool_warned=yes ;;
  6705. esac
  6706. DSYMUTIL=$ac_ct_DSYMUTIL
  6707. fi
  6708. else
  6709. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6710. fi
  6711. if test -n "$ac_tool_prefix"; then
  6712. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6713. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6715. printf %s "checking for $ac_word... " >&6; }
  6716. if test ${ac_cv_prog_NMEDIT+y}
  6717. then :
  6718. printf %s "(cached) " >&6
  6719. else $as_nop
  6720. if test -n "$NMEDIT"; then
  6721. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6722. else
  6723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6724. for as_dir in $PATH
  6725. do
  6726. IFS=$as_save_IFS
  6727. case $as_dir in #(((
  6728. '') as_dir=./ ;;
  6729. */) ;;
  6730. *) as_dir=$as_dir/ ;;
  6731. esac
  6732. for ac_exec_ext in '' $ac_executable_extensions; do
  6733. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6734. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6735. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6736. break 2
  6737. fi
  6738. done
  6739. done
  6740. IFS=$as_save_IFS
  6741. fi
  6742. fi
  6743. NMEDIT=$ac_cv_prog_NMEDIT
  6744. if test -n "$NMEDIT"; then
  6745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6746. printf "%s\n" "$NMEDIT" >&6; }
  6747. else
  6748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6749. printf "%s\n" "no" >&6; }
  6750. fi
  6751. fi
  6752. if test -z "$ac_cv_prog_NMEDIT"; then
  6753. ac_ct_NMEDIT=$NMEDIT
  6754. # Extract the first word of "nmedit", so it can be a program name with args.
  6755. set dummy nmedit; ac_word=$2
  6756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6757. printf %s "checking for $ac_word... " >&6; }
  6758. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6759. then :
  6760. printf %s "(cached) " >&6
  6761. else $as_nop
  6762. if test -n "$ac_ct_NMEDIT"; then
  6763. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6764. else
  6765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6766. for as_dir in $PATH
  6767. do
  6768. IFS=$as_save_IFS
  6769. case $as_dir in #(((
  6770. '') as_dir=./ ;;
  6771. */) ;;
  6772. *) as_dir=$as_dir/ ;;
  6773. esac
  6774. for ac_exec_ext in '' $ac_executable_extensions; do
  6775. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6776. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6777. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6778. break 2
  6779. fi
  6780. done
  6781. done
  6782. IFS=$as_save_IFS
  6783. fi
  6784. fi
  6785. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6786. if test -n "$ac_ct_NMEDIT"; then
  6787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6788. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6789. else
  6790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6791. printf "%s\n" "no" >&6; }
  6792. fi
  6793. if test "x$ac_ct_NMEDIT" = x; then
  6794. NMEDIT=":"
  6795. else
  6796. case $cross_compiling:$ac_tool_warned in
  6797. yes:)
  6798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6799. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6800. ac_tool_warned=yes ;;
  6801. esac
  6802. NMEDIT=$ac_ct_NMEDIT
  6803. fi
  6804. else
  6805. NMEDIT="$ac_cv_prog_NMEDIT"
  6806. fi
  6807. if test -n "$ac_tool_prefix"; then
  6808. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6809. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6811. printf %s "checking for $ac_word... " >&6; }
  6812. if test ${ac_cv_prog_LIPO+y}
  6813. then :
  6814. printf %s "(cached) " >&6
  6815. else $as_nop
  6816. if test -n "$LIPO"; then
  6817. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6818. else
  6819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6820. for as_dir in $PATH
  6821. do
  6822. IFS=$as_save_IFS
  6823. case $as_dir in #(((
  6824. '') as_dir=./ ;;
  6825. */) ;;
  6826. *) as_dir=$as_dir/ ;;
  6827. esac
  6828. for ac_exec_ext in '' $ac_executable_extensions; do
  6829. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6830. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6831. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6832. break 2
  6833. fi
  6834. done
  6835. done
  6836. IFS=$as_save_IFS
  6837. fi
  6838. fi
  6839. LIPO=$ac_cv_prog_LIPO
  6840. if test -n "$LIPO"; then
  6841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6842. printf "%s\n" "$LIPO" >&6; }
  6843. else
  6844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6845. printf "%s\n" "no" >&6; }
  6846. fi
  6847. fi
  6848. if test -z "$ac_cv_prog_LIPO"; then
  6849. ac_ct_LIPO=$LIPO
  6850. # Extract the first word of "lipo", so it can be a program name with args.
  6851. set dummy lipo; ac_word=$2
  6852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6853. printf %s "checking for $ac_word... " >&6; }
  6854. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6855. then :
  6856. printf %s "(cached) " >&6
  6857. else $as_nop
  6858. if test -n "$ac_ct_LIPO"; then
  6859. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6860. else
  6861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6862. for as_dir in $PATH
  6863. do
  6864. IFS=$as_save_IFS
  6865. case $as_dir in #(((
  6866. '') as_dir=./ ;;
  6867. */) ;;
  6868. *) as_dir=$as_dir/ ;;
  6869. esac
  6870. for ac_exec_ext in '' $ac_executable_extensions; do
  6871. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6872. ac_cv_prog_ac_ct_LIPO="lipo"
  6873. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6874. break 2
  6875. fi
  6876. done
  6877. done
  6878. IFS=$as_save_IFS
  6879. fi
  6880. fi
  6881. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6882. if test -n "$ac_ct_LIPO"; then
  6883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6884. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6885. else
  6886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6887. printf "%s\n" "no" >&6; }
  6888. fi
  6889. if test "x$ac_ct_LIPO" = x; then
  6890. LIPO=":"
  6891. else
  6892. case $cross_compiling:$ac_tool_warned in
  6893. yes:)
  6894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6895. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6896. ac_tool_warned=yes ;;
  6897. esac
  6898. LIPO=$ac_ct_LIPO
  6899. fi
  6900. else
  6901. LIPO="$ac_cv_prog_LIPO"
  6902. fi
  6903. if test -n "$ac_tool_prefix"; then
  6904. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6905. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6907. printf %s "checking for $ac_word... " >&6; }
  6908. if test ${ac_cv_prog_OTOOL+y}
  6909. then :
  6910. printf %s "(cached) " >&6
  6911. else $as_nop
  6912. if test -n "$OTOOL"; then
  6913. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6914. else
  6915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6916. for as_dir in $PATH
  6917. do
  6918. IFS=$as_save_IFS
  6919. case $as_dir in #(((
  6920. '') as_dir=./ ;;
  6921. */) ;;
  6922. *) as_dir=$as_dir/ ;;
  6923. esac
  6924. for ac_exec_ext in '' $ac_executable_extensions; do
  6925. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6926. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6927. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6928. break 2
  6929. fi
  6930. done
  6931. done
  6932. IFS=$as_save_IFS
  6933. fi
  6934. fi
  6935. OTOOL=$ac_cv_prog_OTOOL
  6936. if test -n "$OTOOL"; then
  6937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6938. printf "%s\n" "$OTOOL" >&6; }
  6939. else
  6940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6941. printf "%s\n" "no" >&6; }
  6942. fi
  6943. fi
  6944. if test -z "$ac_cv_prog_OTOOL"; then
  6945. ac_ct_OTOOL=$OTOOL
  6946. # Extract the first word of "otool", so it can be a program name with args.
  6947. set dummy otool; ac_word=$2
  6948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6949. printf %s "checking for $ac_word... " >&6; }
  6950. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6951. then :
  6952. printf %s "(cached) " >&6
  6953. else $as_nop
  6954. if test -n "$ac_ct_OTOOL"; then
  6955. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6956. else
  6957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6958. for as_dir in $PATH
  6959. do
  6960. IFS=$as_save_IFS
  6961. case $as_dir in #(((
  6962. '') as_dir=./ ;;
  6963. */) ;;
  6964. *) as_dir=$as_dir/ ;;
  6965. esac
  6966. for ac_exec_ext in '' $ac_executable_extensions; do
  6967. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6968. ac_cv_prog_ac_ct_OTOOL="otool"
  6969. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6970. break 2
  6971. fi
  6972. done
  6973. done
  6974. IFS=$as_save_IFS
  6975. fi
  6976. fi
  6977. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6978. if test -n "$ac_ct_OTOOL"; then
  6979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6980. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6981. else
  6982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6983. printf "%s\n" "no" >&6; }
  6984. fi
  6985. if test "x$ac_ct_OTOOL" = x; then
  6986. OTOOL=":"
  6987. else
  6988. case $cross_compiling:$ac_tool_warned in
  6989. yes:)
  6990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6991. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6992. ac_tool_warned=yes ;;
  6993. esac
  6994. OTOOL=$ac_ct_OTOOL
  6995. fi
  6996. else
  6997. OTOOL="$ac_cv_prog_OTOOL"
  6998. fi
  6999. if test -n "$ac_tool_prefix"; then
  7000. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7001. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7003. printf %s "checking for $ac_word... " >&6; }
  7004. if test ${ac_cv_prog_OTOOL64+y}
  7005. then :
  7006. printf %s "(cached) " >&6
  7007. else $as_nop
  7008. if test -n "$OTOOL64"; then
  7009. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7010. else
  7011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7012. for as_dir in $PATH
  7013. do
  7014. IFS=$as_save_IFS
  7015. case $as_dir in #(((
  7016. '') as_dir=./ ;;
  7017. */) ;;
  7018. *) as_dir=$as_dir/ ;;
  7019. esac
  7020. for ac_exec_ext in '' $ac_executable_extensions; do
  7021. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7022. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7023. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7024. break 2
  7025. fi
  7026. done
  7027. done
  7028. IFS=$as_save_IFS
  7029. fi
  7030. fi
  7031. OTOOL64=$ac_cv_prog_OTOOL64
  7032. if test -n "$OTOOL64"; then
  7033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7034. printf "%s\n" "$OTOOL64" >&6; }
  7035. else
  7036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7037. printf "%s\n" "no" >&6; }
  7038. fi
  7039. fi
  7040. if test -z "$ac_cv_prog_OTOOL64"; then
  7041. ac_ct_OTOOL64=$OTOOL64
  7042. # Extract the first word of "otool64", so it can be a program name with args.
  7043. set dummy otool64; ac_word=$2
  7044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7045. printf %s "checking for $ac_word... " >&6; }
  7046. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7047. then :
  7048. printf %s "(cached) " >&6
  7049. else $as_nop
  7050. if test -n "$ac_ct_OTOOL64"; then
  7051. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7052. else
  7053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7054. for as_dir in $PATH
  7055. do
  7056. IFS=$as_save_IFS
  7057. case $as_dir in #(((
  7058. '') as_dir=./ ;;
  7059. */) ;;
  7060. *) as_dir=$as_dir/ ;;
  7061. esac
  7062. for ac_exec_ext in '' $ac_executable_extensions; do
  7063. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7064. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7065. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7066. break 2
  7067. fi
  7068. done
  7069. done
  7070. IFS=$as_save_IFS
  7071. fi
  7072. fi
  7073. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7074. if test -n "$ac_ct_OTOOL64"; then
  7075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7076. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7077. else
  7078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7079. printf "%s\n" "no" >&6; }
  7080. fi
  7081. if test "x$ac_ct_OTOOL64" = x; then
  7082. OTOOL64=":"
  7083. else
  7084. case $cross_compiling:$ac_tool_warned in
  7085. yes:)
  7086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7087. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7088. ac_tool_warned=yes ;;
  7089. esac
  7090. OTOOL64=$ac_ct_OTOOL64
  7091. fi
  7092. else
  7093. OTOOL64="$ac_cv_prog_OTOOL64"
  7094. fi
  7095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7096. printf %s "checking for -single_module linker flag... " >&6; }
  7097. if test ${lt_cv_apple_cc_single_mod+y}
  7098. then :
  7099. printf %s "(cached) " >&6
  7100. else $as_nop
  7101. lt_cv_apple_cc_single_mod=no
  7102. if test -z "$LT_MULTI_MODULE"; then
  7103. # By default we will add the -single_module flag. You can override
  7104. # by either setting the environment variable LT_MULTI_MODULE
  7105. # non-empty at configure time, or by adding -multi_module to the
  7106. # link flags.
  7107. rm -rf libconftest.dylib*
  7108. echo "int foo(void){return 1;}" > conftest.c
  7109. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7110. -dynamiclib -Wl,-single_module conftest.c" >&5
  7111. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7112. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7113. _lt_result=$?
  7114. # If there is a non-empty error log, and "single_module"
  7115. # appears in it, assume the flag caused a linker warning
  7116. if test -s conftest.err && $GREP single_module conftest.err; then
  7117. cat conftest.err >&5
  7118. # Otherwise, if the output was created with a 0 exit code from
  7119. # the compiler, it worked.
  7120. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7121. lt_cv_apple_cc_single_mod=yes
  7122. else
  7123. cat conftest.err >&5
  7124. fi
  7125. rm -rf libconftest.dylib*
  7126. rm -f conftest.*
  7127. fi
  7128. fi
  7129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7130. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7132. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7133. if test ${lt_cv_ld_exported_symbols_list+y}
  7134. then :
  7135. printf %s "(cached) " >&6
  7136. else $as_nop
  7137. lt_cv_ld_exported_symbols_list=no
  7138. save_LDFLAGS=$LDFLAGS
  7139. echo "_main" > conftest.sym
  7140. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7142. /* end confdefs.h. */
  7143. int
  7144. main (void)
  7145. {
  7146. ;
  7147. return 0;
  7148. }
  7149. _ACEOF
  7150. if ac_fn_c_try_link "$LINENO"
  7151. then :
  7152. lt_cv_ld_exported_symbols_list=yes
  7153. else $as_nop
  7154. lt_cv_ld_exported_symbols_list=no
  7155. fi
  7156. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7157. conftest$ac_exeext conftest.$ac_ext
  7158. LDFLAGS=$save_LDFLAGS
  7159. fi
  7160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7161. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7163. printf %s "checking for -force_load linker flag... " >&6; }
  7164. if test ${lt_cv_ld_force_load+y}
  7165. then :
  7166. printf %s "(cached) " >&6
  7167. else $as_nop
  7168. lt_cv_ld_force_load=no
  7169. cat > conftest.c << _LT_EOF
  7170. int forced_loaded() { return 2;}
  7171. _LT_EOF
  7172. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7173. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7174. echo "$AR cru libconftest.a conftest.o" >&5
  7175. $AR cru libconftest.a conftest.o 2>&5
  7176. echo "$RANLIB libconftest.a" >&5
  7177. $RANLIB libconftest.a 2>&5
  7178. cat > conftest.c << _LT_EOF
  7179. int main() { return 0;}
  7180. _LT_EOF
  7181. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7182. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7183. _lt_result=$?
  7184. if test -s conftest.err && $GREP force_load conftest.err; then
  7185. cat conftest.err >&5
  7186. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7187. lt_cv_ld_force_load=yes
  7188. else
  7189. cat conftest.err >&5
  7190. fi
  7191. rm -f conftest.err libconftest.a conftest conftest.c
  7192. rm -rf conftest.dSYM
  7193. fi
  7194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7195. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7196. case $host_os in
  7197. rhapsody* | darwin1.[012])
  7198. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7199. darwin1.*)
  7200. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7201. darwin*)
  7202. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7203. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7204. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7205. *)
  7206. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7207. esac
  7208. ;;
  7209. esac
  7210. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7211. _lt_dar_single_mod='$single_module'
  7212. fi
  7213. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7214. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7215. else
  7216. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7217. fi
  7218. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7219. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7220. else
  7221. _lt_dsymutil=
  7222. fi
  7223. ;;
  7224. esac
  7225. # func_munge_path_list VARIABLE PATH
  7226. # -----------------------------------
  7227. # VARIABLE is name of variable containing _space_ separated list of
  7228. # directories to be munged by the contents of PATH, which is string
  7229. # having a format:
  7230. # "DIR[:DIR]:"
  7231. # string "DIR[ DIR]" will be prepended to VARIABLE
  7232. # ":DIR[:DIR]"
  7233. # string "DIR[ DIR]" will be appended to VARIABLE
  7234. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7235. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7236. # "DIRA[ DIRA]" will be appended to VARIABLE
  7237. # "DIR[:DIR]"
  7238. # VARIABLE will be replaced by "DIR[ DIR]"
  7239. func_munge_path_list ()
  7240. {
  7241. case x$2 in
  7242. x)
  7243. ;;
  7244. *:)
  7245. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7246. ;;
  7247. x:*)
  7248. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7249. ;;
  7250. *::*)
  7251. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7252. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7253. ;;
  7254. *)
  7255. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7256. ;;
  7257. esac
  7258. }
  7259. ac_header= ac_cache=
  7260. for ac_item in $ac_header_c_list
  7261. do
  7262. if test $ac_cache; then
  7263. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7264. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7265. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7266. fi
  7267. ac_header= ac_cache=
  7268. elif test $ac_header; then
  7269. ac_cache=$ac_item
  7270. else
  7271. ac_header=$ac_item
  7272. fi
  7273. done
  7274. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7275. then :
  7276. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7277. fi
  7278. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7279. "
  7280. if test "x$ac_cv_header_dlfcn_h" = xyes
  7281. then :
  7282. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7283. fi
  7284. # Set options
  7285. enable_win32_dll=yes
  7286. case $host in
  7287. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7288. if test -n "$ac_tool_prefix"; then
  7289. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7290. set dummy ${ac_tool_prefix}as; ac_word=$2
  7291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7292. printf %s "checking for $ac_word... " >&6; }
  7293. if test ${ac_cv_prog_AS+y}
  7294. then :
  7295. printf %s "(cached) " >&6
  7296. else $as_nop
  7297. if test -n "$AS"; then
  7298. ac_cv_prog_AS="$AS" # Let the user override the test.
  7299. else
  7300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7301. for as_dir in $PATH
  7302. do
  7303. IFS=$as_save_IFS
  7304. case $as_dir in #(((
  7305. '') as_dir=./ ;;
  7306. */) ;;
  7307. *) as_dir=$as_dir/ ;;
  7308. esac
  7309. for ac_exec_ext in '' $ac_executable_extensions; do
  7310. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7311. ac_cv_prog_AS="${ac_tool_prefix}as"
  7312. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7313. break 2
  7314. fi
  7315. done
  7316. done
  7317. IFS=$as_save_IFS
  7318. fi
  7319. fi
  7320. AS=$ac_cv_prog_AS
  7321. if test -n "$AS"; then
  7322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7323. printf "%s\n" "$AS" >&6; }
  7324. else
  7325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7326. printf "%s\n" "no" >&6; }
  7327. fi
  7328. fi
  7329. if test -z "$ac_cv_prog_AS"; then
  7330. ac_ct_AS=$AS
  7331. # Extract the first word of "as", so it can be a program name with args.
  7332. set dummy as; ac_word=$2
  7333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7334. printf %s "checking for $ac_word... " >&6; }
  7335. if test ${ac_cv_prog_ac_ct_AS+y}
  7336. then :
  7337. printf %s "(cached) " >&6
  7338. else $as_nop
  7339. if test -n "$ac_ct_AS"; then
  7340. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7341. else
  7342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7343. for as_dir in $PATH
  7344. do
  7345. IFS=$as_save_IFS
  7346. case $as_dir in #(((
  7347. '') as_dir=./ ;;
  7348. */) ;;
  7349. *) as_dir=$as_dir/ ;;
  7350. esac
  7351. for ac_exec_ext in '' $ac_executable_extensions; do
  7352. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7353. ac_cv_prog_ac_ct_AS="as"
  7354. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7355. break 2
  7356. fi
  7357. done
  7358. done
  7359. IFS=$as_save_IFS
  7360. fi
  7361. fi
  7362. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7363. if test -n "$ac_ct_AS"; then
  7364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7365. printf "%s\n" "$ac_ct_AS" >&6; }
  7366. else
  7367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7368. printf "%s\n" "no" >&6; }
  7369. fi
  7370. if test "x$ac_ct_AS" = x; then
  7371. AS="false"
  7372. else
  7373. case $cross_compiling:$ac_tool_warned in
  7374. yes:)
  7375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7376. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7377. ac_tool_warned=yes ;;
  7378. esac
  7379. AS=$ac_ct_AS
  7380. fi
  7381. else
  7382. AS="$ac_cv_prog_AS"
  7383. fi
  7384. if test -n "$ac_tool_prefix"; then
  7385. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7386. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7388. printf %s "checking for $ac_word... " >&6; }
  7389. if test ${ac_cv_prog_DLLTOOL+y}
  7390. then :
  7391. printf %s "(cached) " >&6
  7392. else $as_nop
  7393. if test -n "$DLLTOOL"; then
  7394. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7395. else
  7396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7397. for as_dir in $PATH
  7398. do
  7399. IFS=$as_save_IFS
  7400. case $as_dir in #(((
  7401. '') as_dir=./ ;;
  7402. */) ;;
  7403. *) as_dir=$as_dir/ ;;
  7404. esac
  7405. for ac_exec_ext in '' $ac_executable_extensions; do
  7406. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7407. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7408. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7409. break 2
  7410. fi
  7411. done
  7412. done
  7413. IFS=$as_save_IFS
  7414. fi
  7415. fi
  7416. DLLTOOL=$ac_cv_prog_DLLTOOL
  7417. if test -n "$DLLTOOL"; then
  7418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7419. printf "%s\n" "$DLLTOOL" >&6; }
  7420. else
  7421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7422. printf "%s\n" "no" >&6; }
  7423. fi
  7424. fi
  7425. if test -z "$ac_cv_prog_DLLTOOL"; then
  7426. ac_ct_DLLTOOL=$DLLTOOL
  7427. # Extract the first word of "dlltool", so it can be a program name with args.
  7428. set dummy dlltool; ac_word=$2
  7429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7430. printf %s "checking for $ac_word... " >&6; }
  7431. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7432. then :
  7433. printf %s "(cached) " >&6
  7434. else $as_nop
  7435. if test -n "$ac_ct_DLLTOOL"; then
  7436. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7437. else
  7438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7439. for as_dir in $PATH
  7440. do
  7441. IFS=$as_save_IFS
  7442. case $as_dir in #(((
  7443. '') as_dir=./ ;;
  7444. */) ;;
  7445. *) as_dir=$as_dir/ ;;
  7446. esac
  7447. for ac_exec_ext in '' $ac_executable_extensions; do
  7448. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7449. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7450. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7451. break 2
  7452. fi
  7453. done
  7454. done
  7455. IFS=$as_save_IFS
  7456. fi
  7457. fi
  7458. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7459. if test -n "$ac_ct_DLLTOOL"; then
  7460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7461. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7462. else
  7463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7464. printf "%s\n" "no" >&6; }
  7465. fi
  7466. if test "x$ac_ct_DLLTOOL" = x; then
  7467. DLLTOOL="false"
  7468. else
  7469. case $cross_compiling:$ac_tool_warned in
  7470. yes:)
  7471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7472. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7473. ac_tool_warned=yes ;;
  7474. esac
  7475. DLLTOOL=$ac_ct_DLLTOOL
  7476. fi
  7477. else
  7478. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7479. fi
  7480. if test -n "$ac_tool_prefix"; then
  7481. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7482. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7484. printf %s "checking for $ac_word... " >&6; }
  7485. if test ${ac_cv_prog_OBJDUMP+y}
  7486. then :
  7487. printf %s "(cached) " >&6
  7488. else $as_nop
  7489. if test -n "$OBJDUMP"; then
  7490. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7491. else
  7492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7493. for as_dir in $PATH
  7494. do
  7495. IFS=$as_save_IFS
  7496. case $as_dir in #(((
  7497. '') as_dir=./ ;;
  7498. */) ;;
  7499. *) as_dir=$as_dir/ ;;
  7500. esac
  7501. for ac_exec_ext in '' $ac_executable_extensions; do
  7502. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7503. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7504. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7505. break 2
  7506. fi
  7507. done
  7508. done
  7509. IFS=$as_save_IFS
  7510. fi
  7511. fi
  7512. OBJDUMP=$ac_cv_prog_OBJDUMP
  7513. if test -n "$OBJDUMP"; then
  7514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7515. printf "%s\n" "$OBJDUMP" >&6; }
  7516. else
  7517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7518. printf "%s\n" "no" >&6; }
  7519. fi
  7520. fi
  7521. if test -z "$ac_cv_prog_OBJDUMP"; then
  7522. ac_ct_OBJDUMP=$OBJDUMP
  7523. # Extract the first word of "objdump", so it can be a program name with args.
  7524. set dummy objdump; ac_word=$2
  7525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7526. printf %s "checking for $ac_word... " >&6; }
  7527. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7528. then :
  7529. printf %s "(cached) " >&6
  7530. else $as_nop
  7531. if test -n "$ac_ct_OBJDUMP"; then
  7532. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7533. else
  7534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7535. for as_dir in $PATH
  7536. do
  7537. IFS=$as_save_IFS
  7538. case $as_dir in #(((
  7539. '') as_dir=./ ;;
  7540. */) ;;
  7541. *) as_dir=$as_dir/ ;;
  7542. esac
  7543. for ac_exec_ext in '' $ac_executable_extensions; do
  7544. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7545. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7546. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7547. break 2
  7548. fi
  7549. done
  7550. done
  7551. IFS=$as_save_IFS
  7552. fi
  7553. fi
  7554. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7555. if test -n "$ac_ct_OBJDUMP"; then
  7556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7557. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7558. else
  7559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7560. printf "%s\n" "no" >&6; }
  7561. fi
  7562. if test "x$ac_ct_OBJDUMP" = x; then
  7563. OBJDUMP="false"
  7564. else
  7565. case $cross_compiling:$ac_tool_warned in
  7566. yes:)
  7567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7568. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7569. ac_tool_warned=yes ;;
  7570. esac
  7571. OBJDUMP=$ac_ct_OBJDUMP
  7572. fi
  7573. else
  7574. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7575. fi
  7576. ;;
  7577. esac
  7578. test -z "$AS" && AS=as
  7579. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7580. test -z "$OBJDUMP" && OBJDUMP=objdump
  7581. enable_dlopen=no
  7582. # Check whether --enable-shared was given.
  7583. if test ${enable_shared+y}
  7584. then :
  7585. enableval=$enable_shared; p=${PACKAGE-default}
  7586. case $enableval in
  7587. yes) enable_shared=yes ;;
  7588. no) enable_shared=no ;;
  7589. *)
  7590. enable_shared=no
  7591. # Look at the argument we got. We use all the common list separators.
  7592. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7593. for pkg in $enableval; do
  7594. IFS=$lt_save_ifs
  7595. if test "X$pkg" = "X$p"; then
  7596. enable_shared=yes
  7597. fi
  7598. done
  7599. IFS=$lt_save_ifs
  7600. ;;
  7601. esac
  7602. else $as_nop
  7603. enable_shared=yes
  7604. fi
  7605. # Check whether --enable-static was given.
  7606. if test ${enable_static+y}
  7607. then :
  7608. enableval=$enable_static; p=${PACKAGE-default}
  7609. case $enableval in
  7610. yes) enable_static=yes ;;
  7611. no) enable_static=no ;;
  7612. *)
  7613. enable_static=no
  7614. # Look at the argument we got. We use all the common list separators.
  7615. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7616. for pkg in $enableval; do
  7617. IFS=$lt_save_ifs
  7618. if test "X$pkg" = "X$p"; then
  7619. enable_static=yes
  7620. fi
  7621. done
  7622. IFS=$lt_save_ifs
  7623. ;;
  7624. esac
  7625. else $as_nop
  7626. enable_static=yes
  7627. fi
  7628. # Check whether --with-pic was given.
  7629. if test ${with_pic+y}
  7630. then :
  7631. withval=$with_pic; lt_p=${PACKAGE-default}
  7632. case $withval in
  7633. yes|no) pic_mode=$withval ;;
  7634. *)
  7635. pic_mode=default
  7636. # Look at the argument we got. We use all the common list separators.
  7637. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7638. for lt_pkg in $withval; do
  7639. IFS=$lt_save_ifs
  7640. if test "X$lt_pkg" = "X$lt_p"; then
  7641. pic_mode=yes
  7642. fi
  7643. done
  7644. IFS=$lt_save_ifs
  7645. ;;
  7646. esac
  7647. else $as_nop
  7648. pic_mode=default
  7649. fi
  7650. # Check whether --enable-fast-install was given.
  7651. if test ${enable_fast_install+y}
  7652. then :
  7653. enableval=$enable_fast_install; p=${PACKAGE-default}
  7654. case $enableval in
  7655. yes) enable_fast_install=yes ;;
  7656. no) enable_fast_install=no ;;
  7657. *)
  7658. enable_fast_install=no
  7659. # Look at the argument we got. We use all the common list separators.
  7660. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7661. for pkg in $enableval; do
  7662. IFS=$lt_save_ifs
  7663. if test "X$pkg" = "X$p"; then
  7664. enable_fast_install=yes
  7665. fi
  7666. done
  7667. IFS=$lt_save_ifs
  7668. ;;
  7669. esac
  7670. else $as_nop
  7671. enable_fast_install=yes
  7672. fi
  7673. shared_archive_member_spec=
  7674. case $host,$enable_shared in
  7675. power*-*-aix[5-9]*,yes)
  7676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7677. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7678. # Check whether --with-aix-soname was given.
  7679. if test ${with_aix_soname+y}
  7680. then :
  7681. withval=$with_aix_soname; case $withval in
  7682. aix|svr4|both)
  7683. ;;
  7684. *)
  7685. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7686. ;;
  7687. esac
  7688. lt_cv_with_aix_soname=$with_aix_soname
  7689. else $as_nop
  7690. if test ${lt_cv_with_aix_soname+y}
  7691. then :
  7692. printf %s "(cached) " >&6
  7693. else $as_nop
  7694. lt_cv_with_aix_soname=aix
  7695. fi
  7696. with_aix_soname=$lt_cv_with_aix_soname
  7697. fi
  7698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7699. printf "%s\n" "$with_aix_soname" >&6; }
  7700. if test aix != "$with_aix_soname"; then
  7701. # For the AIX way of multilib, we name the shared archive member
  7702. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7703. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7704. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7705. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7706. if test 64 = "${OBJECT_MODE-32}"; then
  7707. shared_archive_member_spec=shr_64
  7708. else
  7709. shared_archive_member_spec=shr
  7710. fi
  7711. fi
  7712. ;;
  7713. *)
  7714. with_aix_soname=aix
  7715. ;;
  7716. esac
  7717. # This can be used to rebuild libtool when needed
  7718. LIBTOOL_DEPS=$ltmain
  7719. # Always use our own libtool.
  7720. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7721. test -z "$LN_S" && LN_S="ln -s"
  7722. if test -n "${ZSH_VERSION+set}"; then
  7723. setopt NO_GLOB_SUBST
  7724. fi
  7725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7726. printf %s "checking for objdir... " >&6; }
  7727. if test ${lt_cv_objdir+y}
  7728. then :
  7729. printf %s "(cached) " >&6
  7730. else $as_nop
  7731. rm -f .libs 2>/dev/null
  7732. mkdir .libs 2>/dev/null
  7733. if test -d .libs; then
  7734. lt_cv_objdir=.libs
  7735. else
  7736. # MS-DOS does not allow filenames that begin with a dot.
  7737. lt_cv_objdir=_libs
  7738. fi
  7739. rmdir .libs 2>/dev/null
  7740. fi
  7741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7742. printf "%s\n" "$lt_cv_objdir" >&6; }
  7743. objdir=$lt_cv_objdir
  7744. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7745. case $host_os in
  7746. aix3*)
  7747. # AIX sometimes has problems with the GCC collect2 program. For some
  7748. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7749. # vanish in a puff of smoke.
  7750. if test set != "${COLLECT_NAMES+set}"; then
  7751. COLLECT_NAMES=
  7752. export COLLECT_NAMES
  7753. fi
  7754. ;;
  7755. esac
  7756. # Global variables:
  7757. ofile=libtool
  7758. can_build_shared=yes
  7759. # All known linkers require a '.a' archive for static linking (except MSVC,
  7760. # which needs '.lib').
  7761. libext=a
  7762. with_gnu_ld=$lt_cv_prog_gnu_ld
  7763. old_CC=$CC
  7764. old_CFLAGS=$CFLAGS
  7765. # Set sane defaults for various variables
  7766. test -z "$CC" && CC=cc
  7767. test -z "$LTCC" && LTCC=$CC
  7768. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7769. test -z "$LD" && LD=ld
  7770. test -z "$ac_objext" && ac_objext=o
  7771. func_cc_basename $compiler
  7772. cc_basename=$func_cc_basename_result
  7773. # Only perform the check for file, if the check method requires it
  7774. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7775. case $deplibs_check_method in
  7776. file_magic*)
  7777. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7779. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7780. if test ${lt_cv_path_MAGIC_CMD+y}
  7781. then :
  7782. printf %s "(cached) " >&6
  7783. else $as_nop
  7784. case $MAGIC_CMD in
  7785. [\\/*] | ?:[\\/]*)
  7786. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7787. ;;
  7788. *)
  7789. lt_save_MAGIC_CMD=$MAGIC_CMD
  7790. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7791. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7792. for ac_dir in $ac_dummy; do
  7793. IFS=$lt_save_ifs
  7794. test -z "$ac_dir" && ac_dir=.
  7795. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7796. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7797. if test -n "$file_magic_test_file"; then
  7798. case $deplibs_check_method in
  7799. "file_magic "*)
  7800. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7801. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7802. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7803. $EGREP "$file_magic_regex" > /dev/null; then
  7804. :
  7805. else
  7806. cat <<_LT_EOF 1>&2
  7807. *** Warning: the command libtool uses to detect shared libraries,
  7808. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7809. *** The result is that libtool may fail to recognize shared libraries
  7810. *** as such. This will affect the creation of libtool libraries that
  7811. *** depend on shared libraries, but programs linked with such libtool
  7812. *** libraries will work regardless of this problem. Nevertheless, you
  7813. *** may want to report the problem to your system manager and/or to
  7814. *** bug-libtool@gnu.org
  7815. _LT_EOF
  7816. fi ;;
  7817. esac
  7818. fi
  7819. break
  7820. fi
  7821. done
  7822. IFS=$lt_save_ifs
  7823. MAGIC_CMD=$lt_save_MAGIC_CMD
  7824. ;;
  7825. esac
  7826. fi
  7827. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7828. if test -n "$MAGIC_CMD"; then
  7829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7830. printf "%s\n" "$MAGIC_CMD" >&6; }
  7831. else
  7832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7833. printf "%s\n" "no" >&6; }
  7834. fi
  7835. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7836. if test -n "$ac_tool_prefix"; then
  7837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7838. printf %s "checking for file... " >&6; }
  7839. if test ${lt_cv_path_MAGIC_CMD+y}
  7840. then :
  7841. printf %s "(cached) " >&6
  7842. else $as_nop
  7843. case $MAGIC_CMD in
  7844. [\\/*] | ?:[\\/]*)
  7845. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7846. ;;
  7847. *)
  7848. lt_save_MAGIC_CMD=$MAGIC_CMD
  7849. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7850. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7851. for ac_dir in $ac_dummy; do
  7852. IFS=$lt_save_ifs
  7853. test -z "$ac_dir" && ac_dir=.
  7854. if test -f "$ac_dir/file"; then
  7855. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7856. if test -n "$file_magic_test_file"; then
  7857. case $deplibs_check_method in
  7858. "file_magic "*)
  7859. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7860. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7861. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7862. $EGREP "$file_magic_regex" > /dev/null; then
  7863. :
  7864. else
  7865. cat <<_LT_EOF 1>&2
  7866. *** Warning: the command libtool uses to detect shared libraries,
  7867. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7868. *** The result is that libtool may fail to recognize shared libraries
  7869. *** as such. This will affect the creation of libtool libraries that
  7870. *** depend on shared libraries, but programs linked with such libtool
  7871. *** libraries will work regardless of this problem. Nevertheless, you
  7872. *** may want to report the problem to your system manager and/or to
  7873. *** bug-libtool@gnu.org
  7874. _LT_EOF
  7875. fi ;;
  7876. esac
  7877. fi
  7878. break
  7879. fi
  7880. done
  7881. IFS=$lt_save_ifs
  7882. MAGIC_CMD=$lt_save_MAGIC_CMD
  7883. ;;
  7884. esac
  7885. fi
  7886. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7887. if test -n "$MAGIC_CMD"; then
  7888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7889. printf "%s\n" "$MAGIC_CMD" >&6; }
  7890. else
  7891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7892. printf "%s\n" "no" >&6; }
  7893. fi
  7894. else
  7895. MAGIC_CMD=:
  7896. fi
  7897. fi
  7898. fi
  7899. ;;
  7900. esac
  7901. # Use C for the default configuration in the libtool script
  7902. lt_save_CC=$CC
  7903. ac_ext=c
  7904. ac_cpp='$CPP $CPPFLAGS'
  7905. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7906. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7907. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7908. # Source file extension for C test sources.
  7909. ac_ext=c
  7910. # Object file extension for compiled C test sources.
  7911. objext=o
  7912. objext=$objext
  7913. # Code to be used in simple compile tests
  7914. lt_simple_compile_test_code="int some_variable = 0;"
  7915. # Code to be used in simple link tests
  7916. lt_simple_link_test_code='int main(){return(0);}'
  7917. # If no C compiler was specified, use CC.
  7918. LTCC=${LTCC-"$CC"}
  7919. # If no C compiler flags were specified, use CFLAGS.
  7920. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7921. # Allow CC to be a program name with arguments.
  7922. compiler=$CC
  7923. # Save the default compiler, since it gets overwritten when the other
  7924. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7925. compiler_DEFAULT=$CC
  7926. # save warnings/boilerplate of simple test code
  7927. ac_outfile=conftest.$ac_objext
  7928. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7929. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7930. _lt_compiler_boilerplate=`cat conftest.err`
  7931. $RM conftest*
  7932. ac_outfile=conftest.$ac_objext
  7933. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7934. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7935. _lt_linker_boilerplate=`cat conftest.err`
  7936. $RM -r conftest*
  7937. ## CAVEAT EMPTOR:
  7938. ## There is no encapsulation within the following macros, do not change
  7939. ## the running order or otherwise move them around unless you know exactly
  7940. ## what you are doing...
  7941. if test -n "$compiler"; then
  7942. lt_prog_compiler_no_builtin_flag=
  7943. if test yes = "$GCC"; then
  7944. case $cc_basename in
  7945. nvcc*)
  7946. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7947. *)
  7948. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7949. esac
  7950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7951. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7952. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7953. then :
  7954. printf %s "(cached) " >&6
  7955. else $as_nop
  7956. lt_cv_prog_compiler_rtti_exceptions=no
  7957. ac_outfile=conftest.$ac_objext
  7958. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7959. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7960. # Insert the option either (1) after the last *FLAGS variable, or
  7961. # (2) before a word containing "conftest.", or (3) at the end.
  7962. # Note that $ac_compile itself does not contain backslashes and begins
  7963. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7964. # The option is referenced via a variable to avoid confusing sed.
  7965. lt_compile=`echo "$ac_compile" | $SED \
  7966. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7967. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7968. -e 's:$: $lt_compiler_flag:'`
  7969. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7970. (eval "$lt_compile" 2>conftest.err)
  7971. ac_status=$?
  7972. cat conftest.err >&5
  7973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7974. if (exit $ac_status) && test -s "$ac_outfile"; then
  7975. # The compiler can only warn and ignore the option if not recognized
  7976. # So say no if there are warnings other than the usual output.
  7977. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7978. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7979. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7980. lt_cv_prog_compiler_rtti_exceptions=yes
  7981. fi
  7982. fi
  7983. $RM conftest*
  7984. fi
  7985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7986. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7987. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7988. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7989. else
  7990. :
  7991. fi
  7992. fi
  7993. lt_prog_compiler_wl=
  7994. lt_prog_compiler_pic=
  7995. lt_prog_compiler_static=
  7996. if test yes = "$GCC"; then
  7997. lt_prog_compiler_wl='-Wl,'
  7998. lt_prog_compiler_static='-static'
  7999. case $host_os in
  8000. aix*)
  8001. # All AIX code is PIC.
  8002. if test ia64 = "$host_cpu"; then
  8003. # AIX 5 now supports IA64 processor
  8004. lt_prog_compiler_static='-Bstatic'
  8005. fi
  8006. lt_prog_compiler_pic='-fPIC'
  8007. ;;
  8008. amigaos*)
  8009. case $host_cpu in
  8010. powerpc)
  8011. # see comment about AmigaOS4 .so support
  8012. lt_prog_compiler_pic='-fPIC'
  8013. ;;
  8014. m68k)
  8015. # FIXME: we need at least 68020 code to build shared libraries, but
  8016. # adding the '-m68020' flag to GCC prevents building anything better,
  8017. # like '-m68040'.
  8018. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8019. ;;
  8020. esac
  8021. ;;
  8022. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8023. # PIC is the default for these OSes.
  8024. ;;
  8025. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8026. # This hack is so that the source file can tell whether it is being
  8027. # built for inclusion in a dll (and should export symbols for example).
  8028. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8029. # (--disable-auto-import) libraries
  8030. lt_prog_compiler_pic='-DDLL_EXPORT'
  8031. case $host_os in
  8032. os2*)
  8033. lt_prog_compiler_static='$wl-static'
  8034. ;;
  8035. esac
  8036. ;;
  8037. darwin* | rhapsody*)
  8038. # PIC is the default on this platform
  8039. # Common symbols not allowed in MH_DYLIB files
  8040. lt_prog_compiler_pic='-fno-common'
  8041. ;;
  8042. haiku*)
  8043. # PIC is the default for Haiku.
  8044. # The "-static" flag exists, but is broken.
  8045. lt_prog_compiler_static=
  8046. ;;
  8047. hpux*)
  8048. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8049. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8050. # sets the default TLS model and affects inlining.
  8051. case $host_cpu in
  8052. hppa*64*)
  8053. # +Z the default
  8054. ;;
  8055. *)
  8056. lt_prog_compiler_pic='-fPIC'
  8057. ;;
  8058. esac
  8059. ;;
  8060. interix[3-9]*)
  8061. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8062. # Instead, we relocate shared libraries at runtime.
  8063. ;;
  8064. msdosdjgpp*)
  8065. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8066. # on systems that don't support them.
  8067. lt_prog_compiler_can_build_shared=no
  8068. enable_shared=no
  8069. ;;
  8070. *nto* | *qnx*)
  8071. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8072. # it will coredump.
  8073. lt_prog_compiler_pic='-fPIC -shared'
  8074. ;;
  8075. sysv4*MP*)
  8076. if test -d /usr/nec; then
  8077. lt_prog_compiler_pic=-Kconform_pic
  8078. fi
  8079. ;;
  8080. *)
  8081. lt_prog_compiler_pic='-fPIC'
  8082. ;;
  8083. esac
  8084. case $cc_basename in
  8085. nvcc*) # Cuda Compiler Driver 2.2
  8086. lt_prog_compiler_wl='-Xlinker '
  8087. if test -n "$lt_prog_compiler_pic"; then
  8088. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8089. fi
  8090. ;;
  8091. esac
  8092. else
  8093. # PORTME Check for flag to pass linker flags through the system compiler.
  8094. case $host_os in
  8095. aix*)
  8096. lt_prog_compiler_wl='-Wl,'
  8097. if test ia64 = "$host_cpu"; then
  8098. # AIX 5 now supports IA64 processor
  8099. lt_prog_compiler_static='-Bstatic'
  8100. else
  8101. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8102. fi
  8103. ;;
  8104. darwin* | rhapsody*)
  8105. # PIC is the default on this platform
  8106. # Common symbols not allowed in MH_DYLIB files
  8107. lt_prog_compiler_pic='-fno-common'
  8108. case $cc_basename in
  8109. nagfor*)
  8110. # NAG Fortran compiler
  8111. lt_prog_compiler_wl='-Wl,-Wl,,'
  8112. lt_prog_compiler_pic='-PIC'
  8113. lt_prog_compiler_static='-Bstatic'
  8114. ;;
  8115. esac
  8116. ;;
  8117. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8118. # This hack is so that the source file can tell whether it is being
  8119. # built for inclusion in a dll (and should export symbols for example).
  8120. lt_prog_compiler_pic='-DDLL_EXPORT'
  8121. case $host_os in
  8122. os2*)
  8123. lt_prog_compiler_static='$wl-static'
  8124. ;;
  8125. esac
  8126. ;;
  8127. hpux9* | hpux10* | hpux11*)
  8128. lt_prog_compiler_wl='-Wl,'
  8129. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8130. # not for PA HP-UX.
  8131. case $host_cpu in
  8132. hppa*64*|ia64*)
  8133. # +Z the default
  8134. ;;
  8135. *)
  8136. lt_prog_compiler_pic='+Z'
  8137. ;;
  8138. esac
  8139. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8140. lt_prog_compiler_static='$wl-a ${wl}archive'
  8141. ;;
  8142. irix5* | irix6* | nonstopux*)
  8143. lt_prog_compiler_wl='-Wl,'
  8144. # PIC (with -KPIC) is the default.
  8145. lt_prog_compiler_static='-non_shared'
  8146. ;;
  8147. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8148. case $cc_basename in
  8149. # old Intel for x86_64, which still supported -KPIC.
  8150. ecc*)
  8151. lt_prog_compiler_wl='-Wl,'
  8152. lt_prog_compiler_pic='-KPIC'
  8153. lt_prog_compiler_static='-static'
  8154. ;;
  8155. # icc used to be incompatible with GCC.
  8156. # ICC 10 doesn't accept -KPIC any more.
  8157. icc* | ifort*)
  8158. lt_prog_compiler_wl='-Wl,'
  8159. lt_prog_compiler_pic='-fPIC'
  8160. lt_prog_compiler_static='-static'
  8161. ;;
  8162. # Lahey Fortran 8.1.
  8163. lf95*)
  8164. lt_prog_compiler_wl='-Wl,'
  8165. lt_prog_compiler_pic='--shared'
  8166. lt_prog_compiler_static='--static'
  8167. ;;
  8168. nagfor*)
  8169. # NAG Fortran compiler
  8170. lt_prog_compiler_wl='-Wl,-Wl,,'
  8171. lt_prog_compiler_pic='-PIC'
  8172. lt_prog_compiler_static='-Bstatic'
  8173. ;;
  8174. tcc*)
  8175. # Fabrice Bellard et al's Tiny C Compiler
  8176. lt_prog_compiler_wl='-Wl,'
  8177. lt_prog_compiler_pic='-fPIC'
  8178. lt_prog_compiler_static='-static'
  8179. ;;
  8180. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8181. # Portland Group compilers (*not* the Pentium gcc compiler,
  8182. # which looks to be a dead project)
  8183. lt_prog_compiler_wl='-Wl,'
  8184. lt_prog_compiler_pic='-fpic'
  8185. lt_prog_compiler_static='-Bstatic'
  8186. ;;
  8187. ccc*)
  8188. lt_prog_compiler_wl='-Wl,'
  8189. # All Alpha code is PIC.
  8190. lt_prog_compiler_static='-non_shared'
  8191. ;;
  8192. xl* | bgxl* | bgf* | mpixl*)
  8193. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8194. lt_prog_compiler_wl='-Wl,'
  8195. lt_prog_compiler_pic='-qpic'
  8196. lt_prog_compiler_static='-qstaticlink'
  8197. ;;
  8198. *)
  8199. case `$CC -V 2>&1 | sed 5q` in
  8200. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8201. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8202. lt_prog_compiler_pic='-KPIC'
  8203. lt_prog_compiler_static='-Bstatic'
  8204. lt_prog_compiler_wl=''
  8205. ;;
  8206. *Sun\ F* | *Sun*Fortran*)
  8207. lt_prog_compiler_pic='-KPIC'
  8208. lt_prog_compiler_static='-Bstatic'
  8209. lt_prog_compiler_wl='-Qoption ld '
  8210. ;;
  8211. *Sun\ C*)
  8212. # Sun C 5.9
  8213. lt_prog_compiler_pic='-KPIC'
  8214. lt_prog_compiler_static='-Bstatic'
  8215. lt_prog_compiler_wl='-Wl,'
  8216. ;;
  8217. *Intel*\ [CF]*Compiler*)
  8218. lt_prog_compiler_wl='-Wl,'
  8219. lt_prog_compiler_pic='-fPIC'
  8220. lt_prog_compiler_static='-static'
  8221. ;;
  8222. *Portland\ Group*)
  8223. lt_prog_compiler_wl='-Wl,'
  8224. lt_prog_compiler_pic='-fpic'
  8225. lt_prog_compiler_static='-Bstatic'
  8226. ;;
  8227. esac
  8228. ;;
  8229. esac
  8230. ;;
  8231. newsos6)
  8232. lt_prog_compiler_pic='-KPIC'
  8233. lt_prog_compiler_static='-Bstatic'
  8234. ;;
  8235. *nto* | *qnx*)
  8236. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8237. # it will coredump.
  8238. lt_prog_compiler_pic='-fPIC -shared'
  8239. ;;
  8240. osf3* | osf4* | osf5*)
  8241. lt_prog_compiler_wl='-Wl,'
  8242. # All OSF/1 code is PIC.
  8243. lt_prog_compiler_static='-non_shared'
  8244. ;;
  8245. rdos*)
  8246. lt_prog_compiler_static='-non_shared'
  8247. ;;
  8248. solaris*)
  8249. lt_prog_compiler_pic='-KPIC'
  8250. lt_prog_compiler_static='-Bstatic'
  8251. case $cc_basename in
  8252. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8253. lt_prog_compiler_wl='-Qoption ld ';;
  8254. *)
  8255. lt_prog_compiler_wl='-Wl,';;
  8256. esac
  8257. ;;
  8258. sunos4*)
  8259. lt_prog_compiler_wl='-Qoption ld '
  8260. lt_prog_compiler_pic='-PIC'
  8261. lt_prog_compiler_static='-Bstatic'
  8262. ;;
  8263. sysv4 | sysv4.2uw2* | sysv4.3*)
  8264. lt_prog_compiler_wl='-Wl,'
  8265. lt_prog_compiler_pic='-KPIC'
  8266. lt_prog_compiler_static='-Bstatic'
  8267. ;;
  8268. sysv4*MP*)
  8269. if test -d /usr/nec; then
  8270. lt_prog_compiler_pic='-Kconform_pic'
  8271. lt_prog_compiler_static='-Bstatic'
  8272. fi
  8273. ;;
  8274. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8275. lt_prog_compiler_wl='-Wl,'
  8276. lt_prog_compiler_pic='-KPIC'
  8277. lt_prog_compiler_static='-Bstatic'
  8278. ;;
  8279. unicos*)
  8280. lt_prog_compiler_wl='-Wl,'
  8281. lt_prog_compiler_can_build_shared=no
  8282. ;;
  8283. uts4*)
  8284. lt_prog_compiler_pic='-pic'
  8285. lt_prog_compiler_static='-Bstatic'
  8286. ;;
  8287. *)
  8288. lt_prog_compiler_can_build_shared=no
  8289. ;;
  8290. esac
  8291. fi
  8292. case $host_os in
  8293. # For platforms that do not support PIC, -DPIC is meaningless:
  8294. *djgpp*)
  8295. lt_prog_compiler_pic=
  8296. ;;
  8297. *)
  8298. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8299. ;;
  8300. esac
  8301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8302. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8303. if test ${lt_cv_prog_compiler_pic+y}
  8304. then :
  8305. printf %s "(cached) " >&6
  8306. else $as_nop
  8307. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8308. fi
  8309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8310. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8311. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8312. #
  8313. # Check to make sure the PIC flag actually works.
  8314. #
  8315. if test -n "$lt_prog_compiler_pic"; then
  8316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8317. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8318. if test ${lt_cv_prog_compiler_pic_works+y}
  8319. then :
  8320. printf %s "(cached) " >&6
  8321. else $as_nop
  8322. lt_cv_prog_compiler_pic_works=no
  8323. ac_outfile=conftest.$ac_objext
  8324. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8325. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8326. # Insert the option either (1) after the last *FLAGS variable, or
  8327. # (2) before a word containing "conftest.", or (3) at the end.
  8328. # Note that $ac_compile itself does not contain backslashes and begins
  8329. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8330. # The option is referenced via a variable to avoid confusing sed.
  8331. lt_compile=`echo "$ac_compile" | $SED \
  8332. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8333. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8334. -e 's:$: $lt_compiler_flag:'`
  8335. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8336. (eval "$lt_compile" 2>conftest.err)
  8337. ac_status=$?
  8338. cat conftest.err >&5
  8339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8340. if (exit $ac_status) && test -s "$ac_outfile"; then
  8341. # The compiler can only warn and ignore the option if not recognized
  8342. # So say no if there are warnings other than the usual output.
  8343. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8344. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8345. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8346. lt_cv_prog_compiler_pic_works=yes
  8347. fi
  8348. fi
  8349. $RM conftest*
  8350. fi
  8351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8352. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8353. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8354. case $lt_prog_compiler_pic in
  8355. "" | " "*) ;;
  8356. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8357. esac
  8358. else
  8359. lt_prog_compiler_pic=
  8360. lt_prog_compiler_can_build_shared=no
  8361. fi
  8362. fi
  8363. #
  8364. # Check to make sure the static flag actually works.
  8365. #
  8366. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8368. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8369. if test ${lt_cv_prog_compiler_static_works+y}
  8370. then :
  8371. printf %s "(cached) " >&6
  8372. else $as_nop
  8373. lt_cv_prog_compiler_static_works=no
  8374. save_LDFLAGS=$LDFLAGS
  8375. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8376. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8377. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8378. # The linker can only warn and ignore the option if not recognized
  8379. # So say no if there are warnings
  8380. if test -s conftest.err; then
  8381. # Append any errors to the config.log.
  8382. cat conftest.err 1>&5
  8383. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8384. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8385. if diff conftest.exp conftest.er2 >/dev/null; then
  8386. lt_cv_prog_compiler_static_works=yes
  8387. fi
  8388. else
  8389. lt_cv_prog_compiler_static_works=yes
  8390. fi
  8391. fi
  8392. $RM -r conftest*
  8393. LDFLAGS=$save_LDFLAGS
  8394. fi
  8395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8396. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8397. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8398. :
  8399. else
  8400. lt_prog_compiler_static=
  8401. fi
  8402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8403. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8404. if test ${lt_cv_prog_compiler_c_o+y}
  8405. then :
  8406. printf %s "(cached) " >&6
  8407. else $as_nop
  8408. lt_cv_prog_compiler_c_o=no
  8409. $RM -r conftest 2>/dev/null
  8410. mkdir conftest
  8411. cd conftest
  8412. mkdir out
  8413. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8414. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8415. # Insert the option either (1) after the last *FLAGS variable, or
  8416. # (2) before a word containing "conftest.", or (3) at the end.
  8417. # Note that $ac_compile itself does not contain backslashes and begins
  8418. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8419. lt_compile=`echo "$ac_compile" | $SED \
  8420. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8421. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8422. -e 's:$: $lt_compiler_flag:'`
  8423. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8424. (eval "$lt_compile" 2>out/conftest.err)
  8425. ac_status=$?
  8426. cat out/conftest.err >&5
  8427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8428. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8429. then
  8430. # The compiler can only warn and ignore the option if not recognized
  8431. # So say no if there are warnings
  8432. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8433. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8434. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8435. lt_cv_prog_compiler_c_o=yes
  8436. fi
  8437. fi
  8438. chmod u+w . 2>&5
  8439. $RM conftest*
  8440. # SGI C++ compiler will create directory out/ii_files/ for
  8441. # template instantiation
  8442. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8443. $RM out/* && rmdir out
  8444. cd ..
  8445. $RM -r conftest
  8446. $RM conftest*
  8447. fi
  8448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8449. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8451. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8452. if test ${lt_cv_prog_compiler_c_o+y}
  8453. then :
  8454. printf %s "(cached) " >&6
  8455. else $as_nop
  8456. lt_cv_prog_compiler_c_o=no
  8457. $RM -r conftest 2>/dev/null
  8458. mkdir conftest
  8459. cd conftest
  8460. mkdir out
  8461. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8462. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8463. # Insert the option either (1) after the last *FLAGS variable, or
  8464. # (2) before a word containing "conftest.", or (3) at the end.
  8465. # Note that $ac_compile itself does not contain backslashes and begins
  8466. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8467. lt_compile=`echo "$ac_compile" | $SED \
  8468. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8469. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8470. -e 's:$: $lt_compiler_flag:'`
  8471. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8472. (eval "$lt_compile" 2>out/conftest.err)
  8473. ac_status=$?
  8474. cat out/conftest.err >&5
  8475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8476. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8477. then
  8478. # The compiler can only warn and ignore the option if not recognized
  8479. # So say no if there are warnings
  8480. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8481. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8482. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8483. lt_cv_prog_compiler_c_o=yes
  8484. fi
  8485. fi
  8486. chmod u+w . 2>&5
  8487. $RM conftest*
  8488. # SGI C++ compiler will create directory out/ii_files/ for
  8489. # template instantiation
  8490. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8491. $RM out/* && rmdir out
  8492. cd ..
  8493. $RM -r conftest
  8494. $RM conftest*
  8495. fi
  8496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8497. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8498. hard_links=nottested
  8499. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8500. # do not overwrite the value of need_locks provided by the user
  8501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8502. printf %s "checking if we can lock with hard links... " >&6; }
  8503. hard_links=yes
  8504. $RM conftest*
  8505. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8506. touch conftest.a
  8507. ln conftest.a conftest.b 2>&5 || hard_links=no
  8508. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8510. printf "%s\n" "$hard_links" >&6; }
  8511. if test no = "$hard_links"; then
  8512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8513. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8514. need_locks=warn
  8515. fi
  8516. else
  8517. need_locks=no
  8518. fi
  8519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8520. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8521. runpath_var=
  8522. allow_undefined_flag=
  8523. always_export_symbols=no
  8524. archive_cmds=
  8525. archive_expsym_cmds=
  8526. compiler_needs_object=no
  8527. enable_shared_with_static_runtimes=no
  8528. export_dynamic_flag_spec=
  8529. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8530. hardcode_automatic=no
  8531. hardcode_direct=no
  8532. hardcode_direct_absolute=no
  8533. hardcode_libdir_flag_spec=
  8534. hardcode_libdir_separator=
  8535. hardcode_minus_L=no
  8536. hardcode_shlibpath_var=unsupported
  8537. inherit_rpath=no
  8538. link_all_deplibs=unknown
  8539. module_cmds=
  8540. module_expsym_cmds=
  8541. old_archive_from_new_cmds=
  8542. old_archive_from_expsyms_cmds=
  8543. thread_safe_flag_spec=
  8544. whole_archive_flag_spec=
  8545. # include_expsyms should be a list of space-separated symbols to be *always*
  8546. # included in the symbol list
  8547. include_expsyms=
  8548. # exclude_expsyms can be an extended regexp of symbols to exclude
  8549. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8550. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8551. # as well as any symbol that contains 'd'.
  8552. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8553. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8554. # platforms (ab)use it in PIC code, but their linkers get confused if
  8555. # the symbol is explicitly referenced. Since portable code cannot
  8556. # rely on this symbol name, it's probably fine to never include it in
  8557. # preloaded symbol tables.
  8558. # Exclude shared library initialization/finalization symbols.
  8559. extract_expsyms_cmds=
  8560. case $host_os in
  8561. cygwin* | mingw* | pw32* | cegcc*)
  8562. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8563. # When not using gcc, we currently assume that we are using
  8564. # Microsoft Visual C++.
  8565. if test yes != "$GCC"; then
  8566. with_gnu_ld=no
  8567. fi
  8568. ;;
  8569. interix*)
  8570. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8571. with_gnu_ld=yes
  8572. ;;
  8573. openbsd* | bitrig*)
  8574. with_gnu_ld=no
  8575. ;;
  8576. esac
  8577. ld_shlibs=yes
  8578. # On some targets, GNU ld is compatible enough with the native linker
  8579. # that we're better off using the native interface for both.
  8580. lt_use_gnu_ld_interface=no
  8581. if test yes = "$with_gnu_ld"; then
  8582. case $host_os in
  8583. aix*)
  8584. # The AIX port of GNU ld has always aspired to compatibility
  8585. # with the native linker. However, as the warning in the GNU ld
  8586. # block says, versions before 2.19.5* couldn't really create working
  8587. # shared libraries, regardless of the interface used.
  8588. case `$LD -v 2>&1` in
  8589. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8590. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8591. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8592. *)
  8593. lt_use_gnu_ld_interface=yes
  8594. ;;
  8595. esac
  8596. ;;
  8597. *)
  8598. lt_use_gnu_ld_interface=yes
  8599. ;;
  8600. esac
  8601. fi
  8602. if test yes = "$lt_use_gnu_ld_interface"; then
  8603. # If archive_cmds runs LD, not CC, wlarc should be empty
  8604. wlarc='$wl'
  8605. # Set some defaults for GNU ld with shared library support. These
  8606. # are reset later if shared libraries are not supported. Putting them
  8607. # here allows them to be overridden if necessary.
  8608. runpath_var=LD_RUN_PATH
  8609. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8610. export_dynamic_flag_spec='$wl--export-dynamic'
  8611. # ancient GNU ld didn't support --whole-archive et. al.
  8612. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8613. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8614. else
  8615. whole_archive_flag_spec=
  8616. fi
  8617. supports_anon_versioning=no
  8618. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8619. *GNU\ gold*) supports_anon_versioning=yes ;;
  8620. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8621. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8622. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8623. *\ 2.11.*) ;; # other 2.11 versions
  8624. *) supports_anon_versioning=yes ;;
  8625. esac
  8626. # See if GNU ld supports shared libraries.
  8627. case $host_os in
  8628. aix[3-9]*)
  8629. # On AIX/PPC, the GNU linker is very broken
  8630. if test ia64 != "$host_cpu"; then
  8631. ld_shlibs=no
  8632. cat <<_LT_EOF 1>&2
  8633. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8634. *** to be unable to reliably create shared libraries on AIX.
  8635. *** Therefore, libtool is disabling shared libraries support. If you
  8636. *** really care for shared libraries, you may want to install binutils
  8637. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8638. *** You will then need to restart the configuration process.
  8639. _LT_EOF
  8640. fi
  8641. ;;
  8642. amigaos*)
  8643. case $host_cpu in
  8644. powerpc)
  8645. # see comment about AmigaOS4 .so support
  8646. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8647. archive_expsym_cmds=''
  8648. ;;
  8649. m68k)
  8650. 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)'
  8651. hardcode_libdir_flag_spec='-L$libdir'
  8652. hardcode_minus_L=yes
  8653. ;;
  8654. esac
  8655. ;;
  8656. beos*)
  8657. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8658. allow_undefined_flag=unsupported
  8659. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8660. # support --undefined. This deserves some investigation. FIXME
  8661. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8662. else
  8663. ld_shlibs=no
  8664. fi
  8665. ;;
  8666. cygwin* | mingw* | pw32* | cegcc*)
  8667. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8668. # as there is no search path for DLLs.
  8669. hardcode_libdir_flag_spec='-L$libdir'
  8670. export_dynamic_flag_spec='$wl--export-all-symbols'
  8671. allow_undefined_flag=unsupported
  8672. always_export_symbols=no
  8673. enable_shared_with_static_runtimes=yes
  8674. 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'
  8675. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8676. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8677. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8678. # If the export-symbols file already is a .def file, use it as
  8679. # is; otherwise, prepend EXPORTS...
  8680. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8681. cp $export_symbols $output_objdir/$soname.def;
  8682. else
  8683. echo EXPORTS > $output_objdir/$soname.def;
  8684. cat $export_symbols >> $output_objdir/$soname.def;
  8685. fi~
  8686. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8687. else
  8688. ld_shlibs=no
  8689. fi
  8690. ;;
  8691. haiku*)
  8692. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8693. link_all_deplibs=yes
  8694. ;;
  8695. os2*)
  8696. hardcode_libdir_flag_spec='-L$libdir'
  8697. hardcode_minus_L=yes
  8698. allow_undefined_flag=unsupported
  8699. shrext_cmds=.dll
  8700. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8701. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8702. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8703. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8704. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8705. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8706. emximp -o $lib $output_objdir/$libname.def'
  8707. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8708. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8709. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8710. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8711. prefix_cmds="$SED"~
  8712. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8713. prefix_cmds="$prefix_cmds -e 1d";
  8714. fi~
  8715. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8716. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8717. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8718. emximp -o $lib $output_objdir/$libname.def'
  8719. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8720. enable_shared_with_static_runtimes=yes
  8721. file_list_spec='@'
  8722. ;;
  8723. interix[3-9]*)
  8724. hardcode_direct=no
  8725. hardcode_shlibpath_var=no
  8726. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8727. export_dynamic_flag_spec='$wl-E'
  8728. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8729. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8730. # default) and relocated if they conflict, which is a slow very memory
  8731. # consuming and fragmenting process. To avoid this, we pick a random,
  8732. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8733. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8734. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8735. 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'
  8736. ;;
  8737. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8738. tmp_diet=no
  8739. if test linux-dietlibc = "$host_os"; then
  8740. case $cc_basename in
  8741. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8742. esac
  8743. fi
  8744. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8745. && test no = "$tmp_diet"
  8746. then
  8747. tmp_addflag=' $pic_flag'
  8748. tmp_sharedflag='-shared'
  8749. case $cc_basename,$host_cpu in
  8750. pgcc*) # Portland Group C compiler
  8751. 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'
  8752. tmp_addflag=' $pic_flag'
  8753. ;;
  8754. pgf77* | pgf90* | pgf95* | pgfortran*)
  8755. # Portland Group f77 and f90 compilers
  8756. 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'
  8757. tmp_addflag=' $pic_flag -Mnomain' ;;
  8758. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8759. tmp_addflag=' -i_dynamic' ;;
  8760. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8761. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8762. ifc* | ifort*) # Intel Fortran compiler
  8763. tmp_addflag=' -nofor_main' ;;
  8764. lf95*) # Lahey Fortran 8.1
  8765. whole_archive_flag_spec=
  8766. tmp_sharedflag='--shared' ;;
  8767. nagfor*) # NAGFOR 5.3
  8768. tmp_sharedflag='-Wl,-shared' ;;
  8769. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8770. tmp_sharedflag='-qmkshrobj'
  8771. tmp_addflag= ;;
  8772. nvcc*) # Cuda Compiler Driver 2.2
  8773. 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'
  8774. compiler_needs_object=yes
  8775. ;;
  8776. esac
  8777. case `$CC -V 2>&1 | sed 5q` in
  8778. *Sun\ C*) # Sun C 5.9
  8779. 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'
  8780. compiler_needs_object=yes
  8781. tmp_sharedflag='-G' ;;
  8782. *Sun\ F*) # Sun Fortran 8.3
  8783. tmp_sharedflag='-G' ;;
  8784. esac
  8785. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8786. if test yes = "$supports_anon_versioning"; then
  8787. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8788. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8789. echo "local: *; };" >> $output_objdir/$libname.ver~
  8790. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8791. fi
  8792. case $cc_basename in
  8793. tcc*)
  8794. export_dynamic_flag_spec='-rdynamic'
  8795. ;;
  8796. xlf* | bgf* | bgxlf* | mpixlf*)
  8797. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8798. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8799. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8800. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8801. if test yes = "$supports_anon_versioning"; then
  8802. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8803. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8804. echo "local: *; };" >> $output_objdir/$libname.ver~
  8805. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8806. fi
  8807. ;;
  8808. esac
  8809. else
  8810. ld_shlibs=no
  8811. fi
  8812. ;;
  8813. netbsd*)
  8814. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8815. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8816. wlarc=
  8817. else
  8818. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8819. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8820. fi
  8821. ;;
  8822. solaris*)
  8823. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8824. ld_shlibs=no
  8825. cat <<_LT_EOF 1>&2
  8826. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8827. *** create shared libraries on Solaris systems. Therefore, libtool
  8828. *** is disabling shared libraries support. We urge you to upgrade GNU
  8829. *** binutils to release 2.9.1 or newer. Another option is to modify
  8830. *** your PATH or compiler configuration so that the native linker is
  8831. *** used, and then restart.
  8832. _LT_EOF
  8833. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8834. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8835. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8836. else
  8837. ld_shlibs=no
  8838. fi
  8839. ;;
  8840. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8841. case `$LD -v 2>&1` in
  8842. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8843. ld_shlibs=no
  8844. cat <<_LT_EOF 1>&2
  8845. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8846. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8847. *** is disabling shared libraries support. We urge you to upgrade GNU
  8848. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8849. *** your PATH or compiler configuration so that the native linker is
  8850. *** used, and then restart.
  8851. _LT_EOF
  8852. ;;
  8853. *)
  8854. # For security reasons, it is highly recommended that you always
  8855. # use absolute paths for naming shared libraries, and exclude the
  8856. # DT_RUNPATH tag from executables and libraries. But doing so
  8857. # requires that you compile everything twice, which is a pain.
  8858. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8859. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8860. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8861. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8862. else
  8863. ld_shlibs=no
  8864. fi
  8865. ;;
  8866. esac
  8867. ;;
  8868. sunos4*)
  8869. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8870. wlarc=
  8871. hardcode_direct=yes
  8872. hardcode_shlibpath_var=no
  8873. ;;
  8874. *)
  8875. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8876. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8877. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8878. else
  8879. ld_shlibs=no
  8880. fi
  8881. ;;
  8882. esac
  8883. if test no = "$ld_shlibs"; then
  8884. runpath_var=
  8885. hardcode_libdir_flag_spec=
  8886. export_dynamic_flag_spec=
  8887. whole_archive_flag_spec=
  8888. fi
  8889. else
  8890. # PORTME fill in a description of your system's linker (not GNU ld)
  8891. case $host_os in
  8892. aix3*)
  8893. allow_undefined_flag=unsupported
  8894. always_export_symbols=yes
  8895. 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'
  8896. # Note: this linker hardcodes the directories in LIBPATH if there
  8897. # are no directories specified by -L.
  8898. hardcode_minus_L=yes
  8899. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8900. # Neither direct hardcoding nor static linking is supported with a
  8901. # broken collect2.
  8902. hardcode_direct=unsupported
  8903. fi
  8904. ;;
  8905. aix[4-9]*)
  8906. if test ia64 = "$host_cpu"; then
  8907. # On IA64, the linker does run time linking by default, so we don't
  8908. # have to do anything special.
  8909. aix_use_runtimelinking=no
  8910. exp_sym_flag='-Bexport'
  8911. no_entry_flag=
  8912. else
  8913. # If we're using GNU nm, then we don't want the "-C" option.
  8914. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8915. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8916. # weak defined symbols like other global defined symbols, whereas
  8917. # GNU nm marks them as "W".
  8918. # While the 'weak' keyword is ignored in the Export File, we need
  8919. # it in the Import File for the 'aix-soname' feature, so we have
  8920. # to replace the "-B" option with "-P" for AIX nm.
  8921. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8922. 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'
  8923. else
  8924. 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'
  8925. fi
  8926. aix_use_runtimelinking=no
  8927. # Test if we are trying to use run time linking or normal
  8928. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8929. # have runtime linking enabled, and use it for executables.
  8930. # For shared libraries, we enable/disable runtime linking
  8931. # depending on the kind of the shared library created -
  8932. # when "with_aix_soname,aix_use_runtimelinking" is:
  8933. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8934. # "aix,yes" lib.so shared, rtl:yes, for executables
  8935. # lib.a static archive
  8936. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8937. # lib.a(lib.so.V) shared, rtl:no, for executables
  8938. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8939. # lib.a(lib.so.V) shared, rtl:no
  8940. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8941. # lib.a static archive
  8942. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8943. for ld_flag in $LDFLAGS; do
  8944. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8945. aix_use_runtimelinking=yes
  8946. break
  8947. fi
  8948. done
  8949. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8950. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8951. # so we don't have lib.a shared libs to link our executables.
  8952. # We have to force runtime linking in this case.
  8953. aix_use_runtimelinking=yes
  8954. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8955. fi
  8956. ;;
  8957. esac
  8958. exp_sym_flag='-bexport'
  8959. no_entry_flag='-bnoentry'
  8960. fi
  8961. # When large executables or shared objects are built, AIX ld can
  8962. # have problems creating the table of contents. If linking a library
  8963. # or program results in "error TOC overflow" add -mminimal-toc to
  8964. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8965. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8966. archive_cmds=''
  8967. hardcode_direct=yes
  8968. hardcode_direct_absolute=yes
  8969. hardcode_libdir_separator=':'
  8970. link_all_deplibs=yes
  8971. file_list_spec='$wl-f,'
  8972. case $with_aix_soname,$aix_use_runtimelinking in
  8973. aix,*) ;; # traditional, no import file
  8974. svr4,* | *,yes) # use import file
  8975. # The Import File defines what to hardcode.
  8976. hardcode_direct=no
  8977. hardcode_direct_absolute=no
  8978. ;;
  8979. esac
  8980. if test yes = "$GCC"; then
  8981. case $host_os in aix4.[012]|aix4.[012].*)
  8982. # We only want to do this on AIX 4.2 and lower, the check
  8983. # below for broken collect2 doesn't work under 4.3+
  8984. collect2name=`$CC -print-prog-name=collect2`
  8985. if test -f "$collect2name" &&
  8986. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8987. then
  8988. # We have reworked collect2
  8989. :
  8990. else
  8991. # We have old collect2
  8992. hardcode_direct=unsupported
  8993. # It fails to find uninstalled libraries when the uninstalled
  8994. # path is not listed in the libpath. Setting hardcode_minus_L
  8995. # to unsupported forces relinking
  8996. hardcode_minus_L=yes
  8997. hardcode_libdir_flag_spec='-L$libdir'
  8998. hardcode_libdir_separator=
  8999. fi
  9000. ;;
  9001. esac
  9002. shared_flag='-shared'
  9003. if test yes = "$aix_use_runtimelinking"; then
  9004. shared_flag="$shared_flag "'$wl-G'
  9005. fi
  9006. # Need to ensure runtime linking is disabled for the traditional
  9007. # shared library, or the linker may eventually find shared libraries
  9008. # /with/ Import File - we do not want to mix them.
  9009. shared_flag_aix='-shared'
  9010. shared_flag_svr4='-shared $wl-G'
  9011. else
  9012. # not using gcc
  9013. if test ia64 = "$host_cpu"; then
  9014. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9015. # chokes on -Wl,-G. The following line is correct:
  9016. shared_flag='-G'
  9017. else
  9018. if test yes = "$aix_use_runtimelinking"; then
  9019. shared_flag='$wl-G'
  9020. else
  9021. shared_flag='$wl-bM:SRE'
  9022. fi
  9023. shared_flag_aix='$wl-bM:SRE'
  9024. shared_flag_svr4='$wl-G'
  9025. fi
  9026. fi
  9027. export_dynamic_flag_spec='$wl-bexpall'
  9028. # It seems that -bexpall does not export symbols beginning with
  9029. # underscore (_), so it is better to generate a list of symbols to export.
  9030. always_export_symbols=yes
  9031. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9032. # Warning - without using the other runtime loading flags (-brtl),
  9033. # -berok will link without error, but may produce a broken library.
  9034. allow_undefined_flag='-berok'
  9035. # Determine the default libpath from the value encoded in an
  9036. # empty executable.
  9037. if test set = "${lt_cv_aix_libpath+set}"; then
  9038. aix_libpath=$lt_cv_aix_libpath
  9039. else
  9040. if test ${lt_cv_aix_libpath_+y}
  9041. then :
  9042. printf %s "(cached) " >&6
  9043. else $as_nop
  9044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9045. /* end confdefs.h. */
  9046. int
  9047. main (void)
  9048. {
  9049. ;
  9050. return 0;
  9051. }
  9052. _ACEOF
  9053. if ac_fn_c_try_link "$LINENO"
  9054. then :
  9055. lt_aix_libpath_sed='
  9056. /Import File Strings/,/^$/ {
  9057. /^0/ {
  9058. s/^0 *\([^ ]*\) *$/\1/
  9059. p
  9060. }
  9061. }'
  9062. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9063. # Check for a 64-bit object if we didn't find anything.
  9064. if test -z "$lt_cv_aix_libpath_"; then
  9065. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9066. fi
  9067. fi
  9068. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9069. conftest$ac_exeext conftest.$ac_ext
  9070. if test -z "$lt_cv_aix_libpath_"; then
  9071. lt_cv_aix_libpath_=/usr/lib:/lib
  9072. fi
  9073. fi
  9074. aix_libpath=$lt_cv_aix_libpath_
  9075. fi
  9076. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9077. 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
  9078. else
  9079. if test ia64 = "$host_cpu"; then
  9080. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9081. allow_undefined_flag="-z nodefs"
  9082. 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"
  9083. else
  9084. # Determine the default libpath from the value encoded in an
  9085. # empty executable.
  9086. if test set = "${lt_cv_aix_libpath+set}"; then
  9087. aix_libpath=$lt_cv_aix_libpath
  9088. else
  9089. if test ${lt_cv_aix_libpath_+y}
  9090. then :
  9091. printf %s "(cached) " >&6
  9092. else $as_nop
  9093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9094. /* end confdefs.h. */
  9095. int
  9096. main (void)
  9097. {
  9098. ;
  9099. return 0;
  9100. }
  9101. _ACEOF
  9102. if ac_fn_c_try_link "$LINENO"
  9103. then :
  9104. lt_aix_libpath_sed='
  9105. /Import File Strings/,/^$/ {
  9106. /^0/ {
  9107. s/^0 *\([^ ]*\) *$/\1/
  9108. p
  9109. }
  9110. }'
  9111. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9112. # Check for a 64-bit object if we didn't find anything.
  9113. if test -z "$lt_cv_aix_libpath_"; then
  9114. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9115. fi
  9116. fi
  9117. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9118. conftest$ac_exeext conftest.$ac_ext
  9119. if test -z "$lt_cv_aix_libpath_"; then
  9120. lt_cv_aix_libpath_=/usr/lib:/lib
  9121. fi
  9122. fi
  9123. aix_libpath=$lt_cv_aix_libpath_
  9124. fi
  9125. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9126. # Warning - without using the other run time loading flags,
  9127. # -berok will link without error, but may produce a broken library.
  9128. no_undefined_flag=' $wl-bernotok'
  9129. allow_undefined_flag=' $wl-berok'
  9130. if test yes = "$with_gnu_ld"; then
  9131. # We only use this code for GNU lds that support --whole-archive.
  9132. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9133. else
  9134. # Exported symbols can be pulled into shared objects from archives
  9135. whole_archive_flag_spec='$convenience'
  9136. fi
  9137. archive_cmds_need_lc=yes
  9138. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9139. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9140. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9141. if test svr4 != "$with_aix_soname"; then
  9142. # This is similar to how AIX traditionally builds its shared libraries.
  9143. 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'
  9144. fi
  9145. if test aix != "$with_aix_soname"; then
  9146. 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'
  9147. else
  9148. # used by -dlpreopen to get the symbols
  9149. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9150. fi
  9151. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9152. fi
  9153. fi
  9154. ;;
  9155. amigaos*)
  9156. case $host_cpu in
  9157. powerpc)
  9158. # see comment about AmigaOS4 .so support
  9159. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9160. archive_expsym_cmds=''
  9161. ;;
  9162. m68k)
  9163. 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)'
  9164. hardcode_libdir_flag_spec='-L$libdir'
  9165. hardcode_minus_L=yes
  9166. ;;
  9167. esac
  9168. ;;
  9169. bsdi[45]*)
  9170. export_dynamic_flag_spec=-rdynamic
  9171. ;;
  9172. cygwin* | mingw* | pw32* | cegcc*)
  9173. # When not using gcc, we currently assume that we are using
  9174. # Microsoft Visual C++.
  9175. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9176. # no search path for DLLs.
  9177. case $cc_basename in
  9178. cl*)
  9179. # Native MSVC
  9180. hardcode_libdir_flag_spec=' '
  9181. allow_undefined_flag=unsupported
  9182. always_export_symbols=yes
  9183. file_list_spec='@'
  9184. # Tell ltmain to make .lib files, not .a files.
  9185. libext=lib
  9186. # Tell ltmain to make .dll files, not .so files.
  9187. shrext_cmds=.dll
  9188. # FIXME: Setting linknames here is a bad hack.
  9189. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9190. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9191. cp "$export_symbols" "$output_objdir/$soname.def";
  9192. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9193. else
  9194. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9195. fi~
  9196. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9197. linknames='
  9198. # The linker will not automatically build a static lib if we build a DLL.
  9199. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9200. enable_shared_with_static_runtimes=yes
  9201. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9202. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9203. # Don't use ranlib
  9204. old_postinstall_cmds='chmod 644 $oldlib'
  9205. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9206. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9207. case $lt_outputfile in
  9208. *.exe|*.EXE) ;;
  9209. *)
  9210. lt_outputfile=$lt_outputfile.exe
  9211. lt_tool_outputfile=$lt_tool_outputfile.exe
  9212. ;;
  9213. esac~
  9214. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9215. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9216. $RM "$lt_outputfile.manifest";
  9217. fi'
  9218. ;;
  9219. *)
  9220. # Assume MSVC wrapper
  9221. hardcode_libdir_flag_spec=' '
  9222. allow_undefined_flag=unsupported
  9223. # Tell ltmain to make .lib files, not .a files.
  9224. libext=lib
  9225. # Tell ltmain to make .dll files, not .so files.
  9226. shrext_cmds=.dll
  9227. # FIXME: Setting linknames here is a bad hack.
  9228. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9229. # The linker will automatically build a .lib file if we build a DLL.
  9230. old_archive_from_new_cmds='true'
  9231. # FIXME: Should let the user specify the lib program.
  9232. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9233. enable_shared_with_static_runtimes=yes
  9234. ;;
  9235. esac
  9236. ;;
  9237. darwin* | rhapsody*)
  9238. archive_cmds_need_lc=no
  9239. hardcode_direct=no
  9240. hardcode_automatic=yes
  9241. hardcode_shlibpath_var=unsupported
  9242. if test yes = "$lt_cv_ld_force_load"; then
  9243. 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\"`'
  9244. else
  9245. whole_archive_flag_spec=''
  9246. fi
  9247. link_all_deplibs=yes
  9248. allow_undefined_flag=$_lt_dar_allow_undefined
  9249. case $cc_basename in
  9250. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9251. *) _lt_dar_can_shared=$GCC ;;
  9252. esac
  9253. if test yes = "$_lt_dar_can_shared"; then
  9254. output_verbose_link_cmd=func_echo_all
  9255. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9256. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9257. 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"
  9258. 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"
  9259. else
  9260. ld_shlibs=no
  9261. fi
  9262. ;;
  9263. dgux*)
  9264. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9265. hardcode_libdir_flag_spec='-L$libdir'
  9266. hardcode_shlibpath_var=no
  9267. ;;
  9268. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9269. # support. Future versions do this automatically, but an explicit c++rt0.o
  9270. # does not break anything, and helps significantly (at the cost of a little
  9271. # extra space).
  9272. freebsd2.2*)
  9273. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9274. hardcode_libdir_flag_spec='-R$libdir'
  9275. hardcode_direct=yes
  9276. hardcode_shlibpath_var=no
  9277. ;;
  9278. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9279. freebsd2.*)
  9280. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9281. hardcode_direct=yes
  9282. hardcode_minus_L=yes
  9283. hardcode_shlibpath_var=no
  9284. ;;
  9285. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9286. freebsd* | dragonfly* | midnightbsd*)
  9287. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9288. hardcode_libdir_flag_spec='-R$libdir'
  9289. hardcode_direct=yes
  9290. hardcode_shlibpath_var=no
  9291. ;;
  9292. hpux9*)
  9293. if test yes = "$GCC"; then
  9294. 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'
  9295. else
  9296. 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'
  9297. fi
  9298. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9299. hardcode_libdir_separator=:
  9300. hardcode_direct=yes
  9301. # hardcode_minus_L: Not really in the search PATH,
  9302. # but as the default location of the library.
  9303. hardcode_minus_L=yes
  9304. export_dynamic_flag_spec='$wl-E'
  9305. ;;
  9306. hpux10*)
  9307. if test yes,no = "$GCC,$with_gnu_ld"; then
  9308. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9309. else
  9310. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9311. fi
  9312. if test no = "$with_gnu_ld"; then
  9313. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9314. hardcode_libdir_separator=:
  9315. hardcode_direct=yes
  9316. hardcode_direct_absolute=yes
  9317. export_dynamic_flag_spec='$wl-E'
  9318. # hardcode_minus_L: Not really in the search PATH,
  9319. # but as the default location of the library.
  9320. hardcode_minus_L=yes
  9321. fi
  9322. ;;
  9323. hpux11*)
  9324. if test yes,no = "$GCC,$with_gnu_ld"; then
  9325. case $host_cpu in
  9326. hppa*64*)
  9327. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9328. ;;
  9329. ia64*)
  9330. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9331. ;;
  9332. *)
  9333. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9334. ;;
  9335. esac
  9336. else
  9337. case $host_cpu in
  9338. hppa*64*)
  9339. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9340. ;;
  9341. ia64*)
  9342. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9343. ;;
  9344. *)
  9345. # Older versions of the 11.00 compiler do not understand -b yet
  9346. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9348. printf %s "checking if $CC understands -b... " >&6; }
  9349. if test ${lt_cv_prog_compiler__b+y}
  9350. then :
  9351. printf %s "(cached) " >&6
  9352. else $as_nop
  9353. lt_cv_prog_compiler__b=no
  9354. save_LDFLAGS=$LDFLAGS
  9355. LDFLAGS="$LDFLAGS -b"
  9356. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9357. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9358. # The linker can only warn and ignore the option if not recognized
  9359. # So say no if there are warnings
  9360. if test -s conftest.err; then
  9361. # Append any errors to the config.log.
  9362. cat conftest.err 1>&5
  9363. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9364. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9365. if diff conftest.exp conftest.er2 >/dev/null; then
  9366. lt_cv_prog_compiler__b=yes
  9367. fi
  9368. else
  9369. lt_cv_prog_compiler__b=yes
  9370. fi
  9371. fi
  9372. $RM -r conftest*
  9373. LDFLAGS=$save_LDFLAGS
  9374. fi
  9375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9376. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9377. if test yes = "$lt_cv_prog_compiler__b"; then
  9378. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9379. else
  9380. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9381. fi
  9382. ;;
  9383. esac
  9384. fi
  9385. if test no = "$with_gnu_ld"; then
  9386. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9387. hardcode_libdir_separator=:
  9388. case $host_cpu in
  9389. hppa*64*|ia64*)
  9390. hardcode_direct=no
  9391. hardcode_shlibpath_var=no
  9392. ;;
  9393. *)
  9394. hardcode_direct=yes
  9395. hardcode_direct_absolute=yes
  9396. export_dynamic_flag_spec='$wl-E'
  9397. # hardcode_minus_L: Not really in the search PATH,
  9398. # but as the default location of the library.
  9399. hardcode_minus_L=yes
  9400. ;;
  9401. esac
  9402. fi
  9403. ;;
  9404. irix5* | irix6* | nonstopux*)
  9405. if test yes = "$GCC"; then
  9406. 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'
  9407. # Try to use the -exported_symbol ld option, if it does not
  9408. # work, assume that -exports_file does not work either and
  9409. # implicitly export all symbols.
  9410. # This should be the same for all languages, so no per-tag cache variable.
  9411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9412. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9413. if test ${lt_cv_irix_exported_symbol+y}
  9414. then :
  9415. printf %s "(cached) " >&6
  9416. else $as_nop
  9417. save_LDFLAGS=$LDFLAGS
  9418. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9420. /* end confdefs.h. */
  9421. int foo (void) { return 0; }
  9422. _ACEOF
  9423. if ac_fn_c_try_link "$LINENO"
  9424. then :
  9425. lt_cv_irix_exported_symbol=yes
  9426. else $as_nop
  9427. lt_cv_irix_exported_symbol=no
  9428. fi
  9429. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9430. conftest$ac_exeext conftest.$ac_ext
  9431. LDFLAGS=$save_LDFLAGS
  9432. fi
  9433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9434. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9435. if test yes = "$lt_cv_irix_exported_symbol"; then
  9436. 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'
  9437. fi
  9438. else
  9439. 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'
  9440. 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'
  9441. fi
  9442. archive_cmds_need_lc='no'
  9443. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9444. hardcode_libdir_separator=:
  9445. inherit_rpath=yes
  9446. link_all_deplibs=yes
  9447. ;;
  9448. linux*)
  9449. case $cc_basename in
  9450. tcc*)
  9451. # Fabrice Bellard et al's Tiny C Compiler
  9452. ld_shlibs=yes
  9453. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9454. ;;
  9455. esac
  9456. ;;
  9457. netbsd*)
  9458. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9459. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9460. else
  9461. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9462. fi
  9463. hardcode_libdir_flag_spec='-R$libdir'
  9464. hardcode_direct=yes
  9465. hardcode_shlibpath_var=no
  9466. ;;
  9467. newsos6)
  9468. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9469. hardcode_direct=yes
  9470. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9471. hardcode_libdir_separator=:
  9472. hardcode_shlibpath_var=no
  9473. ;;
  9474. *nto* | *qnx*)
  9475. ;;
  9476. openbsd* | bitrig*)
  9477. if test -f /usr/libexec/ld.so; then
  9478. hardcode_direct=yes
  9479. hardcode_shlibpath_var=no
  9480. hardcode_direct_absolute=yes
  9481. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9482. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9483. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9484. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9485. export_dynamic_flag_spec='$wl-E'
  9486. else
  9487. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9488. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9489. fi
  9490. else
  9491. ld_shlibs=no
  9492. fi
  9493. ;;
  9494. os2*)
  9495. hardcode_libdir_flag_spec='-L$libdir'
  9496. hardcode_minus_L=yes
  9497. allow_undefined_flag=unsupported
  9498. shrext_cmds=.dll
  9499. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9500. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9501. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9502. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9503. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9504. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9505. emximp -o $lib $output_objdir/$libname.def'
  9506. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9507. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9508. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9509. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9510. prefix_cmds="$SED"~
  9511. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9512. prefix_cmds="$prefix_cmds -e 1d";
  9513. fi~
  9514. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9515. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9516. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9517. emximp -o $lib $output_objdir/$libname.def'
  9518. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9519. enable_shared_with_static_runtimes=yes
  9520. file_list_spec='@'
  9521. ;;
  9522. osf3*)
  9523. if test yes = "$GCC"; then
  9524. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9525. 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'
  9526. else
  9527. allow_undefined_flag=' -expect_unresolved \*'
  9528. 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'
  9529. fi
  9530. archive_cmds_need_lc='no'
  9531. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9532. hardcode_libdir_separator=:
  9533. ;;
  9534. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9535. if test yes = "$GCC"; then
  9536. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9537. 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'
  9538. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9539. else
  9540. allow_undefined_flag=' -expect_unresolved \*'
  9541. 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'
  9542. 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~
  9543. $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'
  9544. # Both c and cxx compiler support -rpath directly
  9545. hardcode_libdir_flag_spec='-rpath $libdir'
  9546. fi
  9547. archive_cmds_need_lc='no'
  9548. hardcode_libdir_separator=:
  9549. ;;
  9550. solaris*)
  9551. no_undefined_flag=' -z defs'
  9552. if test yes = "$GCC"; then
  9553. wlarc='$wl'
  9554. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9555. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9556. $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'
  9557. else
  9558. case `$CC -V 2>&1` in
  9559. *"Compilers 5.0"*)
  9560. wlarc=''
  9561. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9562. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9563. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9564. ;;
  9565. *)
  9566. wlarc='$wl'
  9567. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9568. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9569. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9570. ;;
  9571. esac
  9572. fi
  9573. hardcode_libdir_flag_spec='-R$libdir'
  9574. hardcode_shlibpath_var=no
  9575. case $host_os in
  9576. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9577. *)
  9578. # The compiler driver will combine and reorder linker options,
  9579. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9580. # but is careful enough not to reorder.
  9581. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9582. if test yes = "$GCC"; then
  9583. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9584. else
  9585. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9586. fi
  9587. ;;
  9588. esac
  9589. link_all_deplibs=yes
  9590. ;;
  9591. sunos4*)
  9592. if test sequent = "$host_vendor"; then
  9593. # Use $CC to link under sequent, because it throws in some extra .o
  9594. # files that make .init and .fini sections work.
  9595. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9596. else
  9597. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9598. fi
  9599. hardcode_libdir_flag_spec='-L$libdir'
  9600. hardcode_direct=yes
  9601. hardcode_minus_L=yes
  9602. hardcode_shlibpath_var=no
  9603. ;;
  9604. sysv4)
  9605. case $host_vendor in
  9606. sni)
  9607. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9608. hardcode_direct=yes # is this really true???
  9609. ;;
  9610. siemens)
  9611. ## LD is ld it makes a PLAMLIB
  9612. ## CC just makes a GrossModule.
  9613. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9614. reload_cmds='$CC -r -o $output$reload_objs'
  9615. hardcode_direct=no
  9616. ;;
  9617. motorola)
  9618. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9619. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9620. ;;
  9621. esac
  9622. runpath_var='LD_RUN_PATH'
  9623. hardcode_shlibpath_var=no
  9624. ;;
  9625. sysv4.3*)
  9626. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9627. hardcode_shlibpath_var=no
  9628. export_dynamic_flag_spec='-Bexport'
  9629. ;;
  9630. sysv4*MP*)
  9631. if test -d /usr/nec; then
  9632. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9633. hardcode_shlibpath_var=no
  9634. runpath_var=LD_RUN_PATH
  9635. hardcode_runpath_var=yes
  9636. ld_shlibs=yes
  9637. fi
  9638. ;;
  9639. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9640. no_undefined_flag='$wl-z,text'
  9641. archive_cmds_need_lc=no
  9642. hardcode_shlibpath_var=no
  9643. runpath_var='LD_RUN_PATH'
  9644. if test yes = "$GCC"; then
  9645. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9646. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9647. else
  9648. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9649. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9650. fi
  9651. ;;
  9652. sysv5* | sco3.2v5* | sco5v6*)
  9653. # Note: We CANNOT use -z defs as we might desire, because we do not
  9654. # link with -lc, and that would cause any symbols used from libc to
  9655. # always be unresolved, which means just about no library would
  9656. # ever link correctly. If we're not using GNU ld we use -z text
  9657. # though, which does catch some bad symbols but isn't as heavy-handed
  9658. # as -z defs.
  9659. no_undefined_flag='$wl-z,text'
  9660. allow_undefined_flag='$wl-z,nodefs'
  9661. archive_cmds_need_lc=no
  9662. hardcode_shlibpath_var=no
  9663. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9664. hardcode_libdir_separator=':'
  9665. link_all_deplibs=yes
  9666. export_dynamic_flag_spec='$wl-Bexport'
  9667. runpath_var='LD_RUN_PATH'
  9668. if test yes = "$GCC"; then
  9669. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9670. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9671. else
  9672. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9673. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9674. fi
  9675. ;;
  9676. uts4*)
  9677. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9678. hardcode_libdir_flag_spec='-L$libdir'
  9679. hardcode_shlibpath_var=no
  9680. ;;
  9681. *)
  9682. ld_shlibs=no
  9683. ;;
  9684. esac
  9685. if test sni = "$host_vendor"; then
  9686. case $host in
  9687. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9688. export_dynamic_flag_spec='$wl-Blargedynsym'
  9689. ;;
  9690. esac
  9691. fi
  9692. fi
  9693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9694. printf "%s\n" "$ld_shlibs" >&6; }
  9695. test no = "$ld_shlibs" && can_build_shared=no
  9696. with_gnu_ld=$with_gnu_ld
  9697. #
  9698. # Do we need to explicitly link libc?
  9699. #
  9700. case "x$archive_cmds_need_lc" in
  9701. x|xyes)
  9702. # Assume -lc should be added
  9703. archive_cmds_need_lc=yes
  9704. if test yes,yes = "$GCC,$enable_shared"; then
  9705. case $archive_cmds in
  9706. *'~'*)
  9707. # FIXME: we may have to deal with multi-command sequences.
  9708. ;;
  9709. '$CC '*)
  9710. # Test whether the compiler implicitly links with -lc since on some
  9711. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9712. # to ld, don't add -lc before -lgcc.
  9713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9714. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9715. if test ${lt_cv_archive_cmds_need_lc+y}
  9716. then :
  9717. printf %s "(cached) " >&6
  9718. else $as_nop
  9719. $RM conftest*
  9720. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9721. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9722. (eval $ac_compile) 2>&5
  9723. ac_status=$?
  9724. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9725. test $ac_status = 0; } 2>conftest.err; then
  9726. soname=conftest
  9727. lib=conftest
  9728. libobjs=conftest.$ac_objext
  9729. deplibs=
  9730. wl=$lt_prog_compiler_wl
  9731. pic_flag=$lt_prog_compiler_pic
  9732. compiler_flags=-v
  9733. linker_flags=-v
  9734. verstring=
  9735. output_objdir=.
  9736. libname=conftest
  9737. lt_save_allow_undefined_flag=$allow_undefined_flag
  9738. allow_undefined_flag=
  9739. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9740. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9741. ac_status=$?
  9742. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9743. test $ac_status = 0; }
  9744. then
  9745. lt_cv_archive_cmds_need_lc=no
  9746. else
  9747. lt_cv_archive_cmds_need_lc=yes
  9748. fi
  9749. allow_undefined_flag=$lt_save_allow_undefined_flag
  9750. else
  9751. cat conftest.err 1>&5
  9752. fi
  9753. $RM conftest*
  9754. fi
  9755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9756. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9757. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9758. ;;
  9759. esac
  9760. fi
  9761. ;;
  9762. esac
  9763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9764. printf %s "checking dynamic linker characteristics... " >&6; }
  9765. if test yes = "$GCC"; then
  9766. case $host_os in
  9767. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9768. *) lt_awk_arg='/^libraries:/' ;;
  9769. esac
  9770. case $host_os in
  9771. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9772. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9773. esac
  9774. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9775. case $lt_search_path_spec in
  9776. *\;*)
  9777. # if the path contains ";" then we assume it to be the separator
  9778. # otherwise default to the standard path separator (i.e. ":") - it is
  9779. # assumed that no part of a normal pathname contains ";" but that should
  9780. # okay in the real world where ";" in dirpaths is itself problematic.
  9781. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9782. ;;
  9783. *)
  9784. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9785. ;;
  9786. esac
  9787. # Ok, now we have the path, separated by spaces, we can step through it
  9788. # and add multilib dir if necessary...
  9789. lt_tmp_lt_search_path_spec=
  9790. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9791. # ...but if some path component already ends with the multilib dir we assume
  9792. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9793. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9794. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9795. lt_multi_os_dir=
  9796. ;;
  9797. esac
  9798. for lt_sys_path in $lt_search_path_spec; do
  9799. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9800. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9801. elif test -n "$lt_multi_os_dir"; then
  9802. test -d "$lt_sys_path" && \
  9803. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9804. fi
  9805. done
  9806. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9807. BEGIN {RS = " "; FS = "/|\n";} {
  9808. lt_foo = "";
  9809. lt_count = 0;
  9810. for (lt_i = NF; lt_i > 0; lt_i--) {
  9811. if ($lt_i != "" && $lt_i != ".") {
  9812. if ($lt_i == "..") {
  9813. lt_count++;
  9814. } else {
  9815. if (lt_count == 0) {
  9816. lt_foo = "/" $lt_i lt_foo;
  9817. } else {
  9818. lt_count--;
  9819. }
  9820. }
  9821. }
  9822. }
  9823. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9824. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9825. }'`
  9826. # AWK program above erroneously prepends '/' to C:/dos/paths
  9827. # for these hosts.
  9828. case $host_os in
  9829. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9830. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9831. esac
  9832. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9833. else
  9834. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9835. fi
  9836. library_names_spec=
  9837. libname_spec='lib$name'
  9838. soname_spec=
  9839. shrext_cmds=.so
  9840. postinstall_cmds=
  9841. postuninstall_cmds=
  9842. finish_cmds=
  9843. finish_eval=
  9844. shlibpath_var=
  9845. shlibpath_overrides_runpath=unknown
  9846. version_type=none
  9847. dynamic_linker="$host_os ld.so"
  9848. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9849. need_lib_prefix=unknown
  9850. hardcode_into_libs=no
  9851. # when you set need_version to no, make sure it does not cause -set_version
  9852. # flags to be left without arguments
  9853. need_version=unknown
  9854. case $host_os in
  9855. aix3*)
  9856. version_type=linux # correct to gnu/linux during the next big refactor
  9857. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9858. shlibpath_var=LIBPATH
  9859. # AIX 3 has no versioning support, so we append a major version to the name.
  9860. soname_spec='$libname$release$shared_ext$major'
  9861. ;;
  9862. aix[4-9]*)
  9863. version_type=linux # correct to gnu/linux during the next big refactor
  9864. need_lib_prefix=no
  9865. need_version=no
  9866. hardcode_into_libs=yes
  9867. if test ia64 = "$host_cpu"; then
  9868. # AIX 5 supports IA64
  9869. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9870. shlibpath_var=LD_LIBRARY_PATH
  9871. else
  9872. # With GCC up to 2.95.x, collect2 would create an import file
  9873. # for dependence libraries. The import file would start with
  9874. # the line '#! .'. This would cause the generated library to
  9875. # depend on '.', always an invalid library. This was fixed in
  9876. # development snapshots of GCC prior to 3.0.
  9877. case $host_os in
  9878. aix4 | aix4.[01] | aix4.[01].*)
  9879. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9880. echo ' yes '
  9881. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9882. :
  9883. else
  9884. can_build_shared=no
  9885. fi
  9886. ;;
  9887. esac
  9888. # Using Import Files as archive members, it is possible to support
  9889. # filename-based versioning of shared library archives on AIX. While
  9890. # this would work for both with and without runtime linking, it will
  9891. # prevent static linking of such archives. So we do filename-based
  9892. # shared library versioning with .so extension only, which is used
  9893. # when both runtime linking and shared linking is enabled.
  9894. # Unfortunately, runtime linking may impact performance, so we do
  9895. # not want this to be the default eventually. Also, we use the
  9896. # versioned .so libs for executables only if there is the -brtl
  9897. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9898. # To allow for filename-based versioning support, we need to create
  9899. # libNAME.so.V as an archive file, containing:
  9900. # *) an Import File, referring to the versioned filename of the
  9901. # archive as well as the shared archive member, telling the
  9902. # bitwidth (32 or 64) of that shared object, and providing the
  9903. # list of exported symbols of that shared object, eventually
  9904. # decorated with the 'weak' keyword
  9905. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9906. # it being seen by the linker.
  9907. # At run time we better use the real file rather than another symlink,
  9908. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9909. case $with_aix_soname,$aix_use_runtimelinking in
  9910. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9911. # soname into executable. Probably we can add versioning support to
  9912. # collect2, so additional links can be useful in future.
  9913. aix,yes) # traditional libtool
  9914. dynamic_linker='AIX unversionable lib.so'
  9915. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9916. # instead of lib<name>.a to let people know that these are not
  9917. # typical AIX shared libraries.
  9918. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9919. ;;
  9920. aix,no) # traditional AIX only
  9921. dynamic_linker='AIX lib.a(lib.so.V)'
  9922. # We preserve .a as extension for shared libraries through AIX4.2
  9923. # and later when we are not doing run time linking.
  9924. library_names_spec='$libname$release.a $libname.a'
  9925. soname_spec='$libname$release$shared_ext$major'
  9926. ;;
  9927. svr4,*) # full svr4 only
  9928. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9929. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9930. # We do not specify a path in Import Files, so LIBPATH fires.
  9931. shlibpath_overrides_runpath=yes
  9932. ;;
  9933. *,yes) # both, prefer svr4
  9934. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9935. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9936. # unpreferred sharedlib libNAME.a needs extra handling
  9937. 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"'
  9938. 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"'
  9939. # We do not specify a path in Import Files, so LIBPATH fires.
  9940. shlibpath_overrides_runpath=yes
  9941. ;;
  9942. *,no) # both, prefer aix
  9943. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9944. library_names_spec='$libname$release.a $libname.a'
  9945. soname_spec='$libname$release$shared_ext$major'
  9946. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9947. 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)'
  9948. 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"'
  9949. ;;
  9950. esac
  9951. shlibpath_var=LIBPATH
  9952. fi
  9953. ;;
  9954. amigaos*)
  9955. case $host_cpu in
  9956. powerpc)
  9957. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9958. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9959. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9960. ;;
  9961. m68k)
  9962. library_names_spec='$libname.ixlibrary $libname.a'
  9963. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9964. 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'
  9965. ;;
  9966. esac
  9967. ;;
  9968. beos*)
  9969. library_names_spec='$libname$shared_ext'
  9970. dynamic_linker="$host_os ld.so"
  9971. shlibpath_var=LIBRARY_PATH
  9972. ;;
  9973. bsdi[45]*)
  9974. version_type=linux # correct to gnu/linux during the next big refactor
  9975. need_version=no
  9976. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9977. soname_spec='$libname$release$shared_ext$major'
  9978. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9979. shlibpath_var=LD_LIBRARY_PATH
  9980. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9981. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9982. # the default ld.so.conf also contains /usr/contrib/lib and
  9983. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9984. # libtool to hard-code these into programs
  9985. ;;
  9986. cygwin* | mingw* | pw32* | cegcc*)
  9987. version_type=windows
  9988. shrext_cmds=.dll
  9989. need_version=no
  9990. need_lib_prefix=no
  9991. case $GCC,$cc_basename in
  9992. yes,*)
  9993. # gcc
  9994. library_names_spec='$libname.dll.a'
  9995. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9996. postinstall_cmds='base_file=`basename \$file`~
  9997. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9998. dldir=$destdir/`dirname \$dlpath`~
  9999. test -d \$dldir || mkdir -p \$dldir~
  10000. $install_prog $dir/$dlname \$dldir/$dlname~
  10001. chmod a+x \$dldir/$dlname~
  10002. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10003. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10004. fi'
  10005. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10006. dlpath=$dir/\$dldll~
  10007. $RM \$dlpath'
  10008. shlibpath_overrides_runpath=yes
  10009. case $host_os in
  10010. cygwin*)
  10011. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10012. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10013. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  10014. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10015. ;;
  10016. mingw* | cegcc*)
  10017. # MinGW DLLs use traditional 'lib' prefix
  10018. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10019. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10020. ;;
  10021. pw32*)
  10022. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10023. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10024. ;;
  10025. esac
  10026. dynamic_linker='Win32 ld.exe'
  10027. ;;
  10028. *,cl*)
  10029. # Native MSVC
  10030. libname_spec='$name'
  10031. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10032. library_names_spec='$libname.dll.lib'
  10033. case $build_os in
  10034. mingw*)
  10035. sys_lib_search_path_spec=
  10036. lt_save_ifs=$IFS
  10037. IFS=';'
  10038. for lt_path in $LIB
  10039. do
  10040. IFS=$lt_save_ifs
  10041. # Let DOS variable expansion print the short 8.3 style file name.
  10042. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10043. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10044. done
  10045. IFS=$lt_save_ifs
  10046. # Convert to MSYS style.
  10047. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10048. ;;
  10049. cygwin*)
  10050. # Convert to unix form, then to dos form, then back to unix form
  10051. # but this time dos style (no spaces!) so that the unix form looks
  10052. # like /cygdrive/c/PROGRA~1:/cygdr...
  10053. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10054. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10055. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10056. ;;
  10057. *)
  10058. sys_lib_search_path_spec=$LIB
  10059. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10060. # It is most probably a Windows format PATH.
  10061. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10062. else
  10063. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10064. fi
  10065. # FIXME: find the short name or the path components, as spaces are
  10066. # common. (e.g. "Program Files" -> "PROGRA~1")
  10067. ;;
  10068. esac
  10069. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10070. postinstall_cmds='base_file=`basename \$file`~
  10071. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10072. dldir=$destdir/`dirname \$dlpath`~
  10073. test -d \$dldir || mkdir -p \$dldir~
  10074. $install_prog $dir/$dlname \$dldir/$dlname'
  10075. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10076. dlpath=$dir/\$dldll~
  10077. $RM \$dlpath'
  10078. shlibpath_overrides_runpath=yes
  10079. dynamic_linker='Win32 link.exe'
  10080. ;;
  10081. *)
  10082. # Assume MSVC wrapper
  10083. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10084. dynamic_linker='Win32 ld.exe'
  10085. ;;
  10086. esac
  10087. # FIXME: first we should search . and the directory the executable is in
  10088. shlibpath_var=PATH
  10089. ;;
  10090. darwin* | rhapsody*)
  10091. dynamic_linker="$host_os dyld"
  10092. version_type=darwin
  10093. need_lib_prefix=no
  10094. need_version=no
  10095. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10096. soname_spec='$libname$release$major$shared_ext'
  10097. shlibpath_overrides_runpath=yes
  10098. shlibpath_var=DYLD_LIBRARY_PATH
  10099. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10100. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10101. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10102. ;;
  10103. dgux*)
  10104. version_type=linux # correct to gnu/linux during the next big refactor
  10105. need_lib_prefix=no
  10106. need_version=no
  10107. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10108. soname_spec='$libname$release$shared_ext$major'
  10109. shlibpath_var=LD_LIBRARY_PATH
  10110. ;;
  10111. freebsd* | dragonfly* | midnightbsd*)
  10112. # DragonFly does not have aout. When/if they implement a new
  10113. # versioning mechanism, adjust this.
  10114. if test -x /usr/bin/objformat; then
  10115. objformat=`/usr/bin/objformat`
  10116. else
  10117. case $host_os in
  10118. freebsd[23].*) objformat=aout ;;
  10119. *) objformat=elf ;;
  10120. esac
  10121. fi
  10122. version_type=freebsd-$objformat
  10123. case $version_type in
  10124. freebsd-elf*)
  10125. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10126. soname_spec='$libname$release$shared_ext$major'
  10127. need_version=no
  10128. need_lib_prefix=no
  10129. ;;
  10130. freebsd-*)
  10131. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10132. need_version=yes
  10133. ;;
  10134. esac
  10135. shlibpath_var=LD_LIBRARY_PATH
  10136. case $host_os in
  10137. freebsd2.*)
  10138. shlibpath_overrides_runpath=yes
  10139. ;;
  10140. freebsd3.[01]* | freebsdelf3.[01]*)
  10141. shlibpath_overrides_runpath=yes
  10142. hardcode_into_libs=yes
  10143. ;;
  10144. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10145. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10146. shlibpath_overrides_runpath=no
  10147. hardcode_into_libs=yes
  10148. ;;
  10149. *) # from 4.6 on, and DragonFly
  10150. shlibpath_overrides_runpath=yes
  10151. hardcode_into_libs=yes
  10152. ;;
  10153. esac
  10154. ;;
  10155. haiku*)
  10156. version_type=linux # correct to gnu/linux during the next big refactor
  10157. need_lib_prefix=no
  10158. need_version=no
  10159. dynamic_linker="$host_os runtime_loader"
  10160. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10161. soname_spec='$libname$release$shared_ext$major'
  10162. shlibpath_var=LIBRARY_PATH
  10163. shlibpath_overrides_runpath=no
  10164. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10165. hardcode_into_libs=yes
  10166. ;;
  10167. hpux9* | hpux10* | hpux11*)
  10168. # Give a soname corresponding to the major version so that dld.sl refuses to
  10169. # link against other versions.
  10170. version_type=sunos
  10171. need_lib_prefix=no
  10172. need_version=no
  10173. case $host_cpu in
  10174. ia64*)
  10175. shrext_cmds='.so'
  10176. hardcode_into_libs=yes
  10177. dynamic_linker="$host_os dld.so"
  10178. shlibpath_var=LD_LIBRARY_PATH
  10179. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10180. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10181. soname_spec='$libname$release$shared_ext$major'
  10182. if test 32 = "$HPUX_IA64_MODE"; then
  10183. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10184. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10185. else
  10186. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10187. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10188. fi
  10189. ;;
  10190. hppa*64*)
  10191. shrext_cmds='.sl'
  10192. hardcode_into_libs=yes
  10193. dynamic_linker="$host_os dld.sl"
  10194. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10195. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10196. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10197. soname_spec='$libname$release$shared_ext$major'
  10198. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10199. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10200. ;;
  10201. *)
  10202. shrext_cmds='.sl'
  10203. dynamic_linker="$host_os dld.sl"
  10204. shlibpath_var=SHLIB_PATH
  10205. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10206. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10207. soname_spec='$libname$release$shared_ext$major'
  10208. ;;
  10209. esac
  10210. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10211. postinstall_cmds='chmod 555 $lib'
  10212. # or fails outright, so override atomically:
  10213. install_override_mode=555
  10214. ;;
  10215. interix[3-9]*)
  10216. version_type=linux # correct to gnu/linux during the next big refactor
  10217. need_lib_prefix=no
  10218. need_version=no
  10219. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10220. soname_spec='$libname$release$shared_ext$major'
  10221. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10222. shlibpath_var=LD_LIBRARY_PATH
  10223. shlibpath_overrides_runpath=no
  10224. hardcode_into_libs=yes
  10225. ;;
  10226. irix5* | irix6* | nonstopux*)
  10227. case $host_os in
  10228. nonstopux*) version_type=nonstopux ;;
  10229. *)
  10230. if test yes = "$lt_cv_prog_gnu_ld"; then
  10231. version_type=linux # correct to gnu/linux during the next big refactor
  10232. else
  10233. version_type=irix
  10234. fi ;;
  10235. esac
  10236. need_lib_prefix=no
  10237. need_version=no
  10238. soname_spec='$libname$release$shared_ext$major'
  10239. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10240. case $host_os in
  10241. irix5* | nonstopux*)
  10242. libsuff= shlibsuff=
  10243. ;;
  10244. *)
  10245. case $LD in # libtool.m4 will add one of these switches to LD
  10246. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10247. libsuff= shlibsuff= libmagic=32-bit;;
  10248. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10249. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10250. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10251. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10252. *) libsuff= shlibsuff= libmagic=never-match;;
  10253. esac
  10254. ;;
  10255. esac
  10256. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10257. shlibpath_overrides_runpath=no
  10258. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10259. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10260. hardcode_into_libs=yes
  10261. ;;
  10262. # No shared lib support for Linux oldld, aout, or coff.
  10263. linux*oldld* | linux*aout* | linux*coff*)
  10264. dynamic_linker=no
  10265. ;;
  10266. linux*android*)
  10267. version_type=none # Android doesn't support versioned libraries.
  10268. need_lib_prefix=no
  10269. need_version=no
  10270. library_names_spec='$libname$release$shared_ext'
  10271. soname_spec='$libname$release$shared_ext'
  10272. finish_cmds=
  10273. shlibpath_var=LD_LIBRARY_PATH
  10274. shlibpath_overrides_runpath=yes
  10275. # This implies no fast_install, which is unacceptable.
  10276. # Some rework will be needed to allow for fast_install
  10277. # before this can be enabled.
  10278. hardcode_into_libs=yes
  10279. dynamic_linker='Android linker'
  10280. # Don't embed -rpath directories since the linker doesn't support them.
  10281. hardcode_libdir_flag_spec='-L$libdir'
  10282. ;;
  10283. # This must be glibc/ELF.
  10284. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10285. version_type=linux # correct to gnu/linux during the next big refactor
  10286. need_lib_prefix=no
  10287. need_version=no
  10288. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10289. soname_spec='$libname$release$shared_ext$major'
  10290. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10291. shlibpath_var=LD_LIBRARY_PATH
  10292. shlibpath_overrides_runpath=no
  10293. # Some binutils ld are patched to set DT_RUNPATH
  10294. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10295. then :
  10296. printf %s "(cached) " >&6
  10297. else $as_nop
  10298. lt_cv_shlibpath_overrides_runpath=no
  10299. save_LDFLAGS=$LDFLAGS
  10300. save_libdir=$libdir
  10301. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10302. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10304. /* end confdefs.h. */
  10305. int
  10306. main (void)
  10307. {
  10308. ;
  10309. return 0;
  10310. }
  10311. _ACEOF
  10312. if ac_fn_c_try_link "$LINENO"
  10313. then :
  10314. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10315. then :
  10316. lt_cv_shlibpath_overrides_runpath=yes
  10317. fi
  10318. fi
  10319. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10320. conftest$ac_exeext conftest.$ac_ext
  10321. LDFLAGS=$save_LDFLAGS
  10322. libdir=$save_libdir
  10323. fi
  10324. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10325. # This implies no fast_install, which is unacceptable.
  10326. # Some rework will be needed to allow for fast_install
  10327. # before this can be enabled.
  10328. hardcode_into_libs=yes
  10329. # Add ABI-specific directories to the system library path.
  10330. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10331. # Ideally, we could use ldconfig to report *all* directores which are
  10332. # searched for libraries, however this is still not possible. Aside from not
  10333. # being certain /sbin/ldconfig is available, command
  10334. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10335. # even though it is searched at run-time. Try to do the best guess by
  10336. # appending ld.so.conf contents (and includes) to the search path.
  10337. if test -f /etc/ld.so.conf; then
  10338. 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' ' '`
  10339. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10340. fi
  10341. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10342. # powerpc, because MkLinux only supported shared libraries with the
  10343. # GNU dynamic linker. Since this was broken with cross compilers,
  10344. # most powerpc-linux boxes support dynamic linking these days and
  10345. # people can always --disable-shared, the test was removed, and we
  10346. # assume the GNU/Linux dynamic linker is in use.
  10347. dynamic_linker='GNU/Linux ld.so'
  10348. ;;
  10349. netbsd*)
  10350. version_type=sunos
  10351. need_lib_prefix=no
  10352. need_version=no
  10353. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10354. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10355. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10356. dynamic_linker='NetBSD (a.out) ld.so'
  10357. else
  10358. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10359. soname_spec='$libname$release$shared_ext$major'
  10360. dynamic_linker='NetBSD ld.elf_so'
  10361. fi
  10362. shlibpath_var=LD_LIBRARY_PATH
  10363. shlibpath_overrides_runpath=yes
  10364. hardcode_into_libs=yes
  10365. ;;
  10366. newsos6)
  10367. version_type=linux # correct to gnu/linux during the next big refactor
  10368. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10369. shlibpath_var=LD_LIBRARY_PATH
  10370. shlibpath_overrides_runpath=yes
  10371. ;;
  10372. *nto* | *qnx*)
  10373. version_type=qnx
  10374. need_lib_prefix=no
  10375. need_version=no
  10376. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10377. soname_spec='$libname$release$shared_ext$major'
  10378. shlibpath_var=LD_LIBRARY_PATH
  10379. shlibpath_overrides_runpath=no
  10380. hardcode_into_libs=yes
  10381. dynamic_linker='ldqnx.so'
  10382. ;;
  10383. openbsd* | bitrig*)
  10384. version_type=sunos
  10385. sys_lib_dlsearch_path_spec=/usr/lib
  10386. need_lib_prefix=no
  10387. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10388. need_version=no
  10389. else
  10390. need_version=yes
  10391. fi
  10392. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10393. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10394. shlibpath_var=LD_LIBRARY_PATH
  10395. shlibpath_overrides_runpath=yes
  10396. ;;
  10397. os2*)
  10398. libname_spec='$name'
  10399. shrext_cmds=.dll
  10400. need_lib_prefix=no
  10401. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10402. # SDL customization: removed versioning support.
  10403. # version_type=windows
  10404. # need_version=no
  10405. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10406. # v=$($ECHO $release$versuffix | tr -d .-);
  10407. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10408. # $ECHO $n$v`$shared_ext'
  10409. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10410. library_names_spec='${libname}_dll.$libext'
  10411. dynamic_linker='OS/2 ld.exe'
  10412. shlibpath_var=BEGINLIBPATH
  10413. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10414. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10415. postinstall_cmds='base_file=`basename \$file`~
  10416. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10417. dldir=$destdir/`dirname \$dlpath`~
  10418. test -d \$dldir || mkdir -p \$dldir~
  10419. $install_prog $dir/$dlname \$dldir/$dlname~
  10420. chmod a+x \$dldir/$dlname~
  10421. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10422. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10423. fi'
  10424. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10425. dlpath=$dir/\$dldll~
  10426. $RM \$dlpath'
  10427. ;;
  10428. osf3* | osf4* | osf5*)
  10429. version_type=osf
  10430. need_lib_prefix=no
  10431. need_version=no
  10432. soname_spec='$libname$release$shared_ext$major'
  10433. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10434. shlibpath_var=LD_LIBRARY_PATH
  10435. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10436. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10437. ;;
  10438. rdos*)
  10439. dynamic_linker=no
  10440. ;;
  10441. solaris*)
  10442. version_type=linux # correct to gnu/linux during the next big refactor
  10443. need_lib_prefix=no
  10444. need_version=no
  10445. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10446. soname_spec='$libname$release$shared_ext$major'
  10447. shlibpath_var=LD_LIBRARY_PATH
  10448. shlibpath_overrides_runpath=yes
  10449. hardcode_into_libs=yes
  10450. # ldd complains unless libraries are executable
  10451. postinstall_cmds='chmod +x $lib'
  10452. ;;
  10453. sunos4*)
  10454. version_type=sunos
  10455. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10456. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10457. shlibpath_var=LD_LIBRARY_PATH
  10458. shlibpath_overrides_runpath=yes
  10459. if test yes = "$with_gnu_ld"; then
  10460. need_lib_prefix=no
  10461. fi
  10462. need_version=yes
  10463. ;;
  10464. sysv4 | sysv4.3*)
  10465. version_type=linux # correct to gnu/linux during the next big refactor
  10466. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10467. soname_spec='$libname$release$shared_ext$major'
  10468. shlibpath_var=LD_LIBRARY_PATH
  10469. case $host_vendor in
  10470. sni)
  10471. shlibpath_overrides_runpath=no
  10472. need_lib_prefix=no
  10473. runpath_var=LD_RUN_PATH
  10474. ;;
  10475. siemens)
  10476. need_lib_prefix=no
  10477. ;;
  10478. motorola)
  10479. need_lib_prefix=no
  10480. need_version=no
  10481. shlibpath_overrides_runpath=no
  10482. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10483. ;;
  10484. esac
  10485. ;;
  10486. sysv4*MP*)
  10487. if test -d /usr/nec; then
  10488. version_type=linux # correct to gnu/linux during the next big refactor
  10489. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10490. soname_spec='$libname$shared_ext.$major'
  10491. shlibpath_var=LD_LIBRARY_PATH
  10492. fi
  10493. ;;
  10494. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10495. version_type=sco
  10496. need_lib_prefix=no
  10497. need_version=no
  10498. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10499. soname_spec='$libname$release$shared_ext$major'
  10500. shlibpath_var=LD_LIBRARY_PATH
  10501. shlibpath_overrides_runpath=yes
  10502. hardcode_into_libs=yes
  10503. if test yes = "$with_gnu_ld"; then
  10504. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10505. else
  10506. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10507. case $host_os in
  10508. sco3.2v5*)
  10509. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10510. ;;
  10511. esac
  10512. fi
  10513. sys_lib_dlsearch_path_spec='/usr/lib'
  10514. ;;
  10515. tpf*)
  10516. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10517. version_type=linux # correct to gnu/linux during the next big refactor
  10518. need_lib_prefix=no
  10519. need_version=no
  10520. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10521. shlibpath_var=LD_LIBRARY_PATH
  10522. shlibpath_overrides_runpath=no
  10523. hardcode_into_libs=yes
  10524. ;;
  10525. uts4*)
  10526. version_type=linux # correct to gnu/linux during the next big refactor
  10527. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10528. soname_spec='$libname$release$shared_ext$major'
  10529. shlibpath_var=LD_LIBRARY_PATH
  10530. ;;
  10531. *)
  10532. dynamic_linker=no
  10533. ;;
  10534. esac
  10535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10536. printf "%s\n" "$dynamic_linker" >&6; }
  10537. test no = "$dynamic_linker" && can_build_shared=no
  10538. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10539. if test yes = "$GCC"; then
  10540. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10541. fi
  10542. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10543. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10544. fi
  10545. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10546. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10547. fi
  10548. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10549. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10550. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10551. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10552. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10553. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10555. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10556. hardcode_action=
  10557. if test -n "$hardcode_libdir_flag_spec" ||
  10558. test -n "$runpath_var" ||
  10559. test yes = "$hardcode_automatic"; then
  10560. # We can hardcode non-existent directories.
  10561. if test no != "$hardcode_direct" &&
  10562. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10563. # have to relink, otherwise we might link with an installed library
  10564. # when we should be linking with a yet-to-be-installed one
  10565. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10566. test no != "$hardcode_minus_L"; then
  10567. # Linking always hardcodes the temporary library directory.
  10568. hardcode_action=relink
  10569. else
  10570. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10571. hardcode_action=immediate
  10572. fi
  10573. else
  10574. # We cannot hardcode anything, or else we can only hardcode existing
  10575. # directories.
  10576. hardcode_action=unsupported
  10577. fi
  10578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10579. printf "%s\n" "$hardcode_action" >&6; }
  10580. if test relink = "$hardcode_action" ||
  10581. test yes = "$inherit_rpath"; then
  10582. # Fast installation is not supported
  10583. enable_fast_install=no
  10584. elif test yes = "$shlibpath_overrides_runpath" ||
  10585. test no = "$enable_shared"; then
  10586. # Fast installation is not necessary
  10587. enable_fast_install=needless
  10588. fi
  10589. if test yes != "$enable_dlopen"; then
  10590. enable_dlopen=unknown
  10591. enable_dlopen_self=unknown
  10592. enable_dlopen_self_static=unknown
  10593. else
  10594. lt_cv_dlopen=no
  10595. lt_cv_dlopen_libs=
  10596. case $host_os in
  10597. beos*)
  10598. lt_cv_dlopen=load_add_on
  10599. lt_cv_dlopen_libs=
  10600. lt_cv_dlopen_self=yes
  10601. ;;
  10602. mingw* | pw32* | cegcc*)
  10603. lt_cv_dlopen=LoadLibrary
  10604. lt_cv_dlopen_libs=
  10605. ;;
  10606. cygwin*)
  10607. lt_cv_dlopen=dlopen
  10608. lt_cv_dlopen_libs=
  10609. ;;
  10610. darwin*)
  10611. # if libdl is installed we need to link against it
  10612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10613. printf %s "checking for dlopen in -ldl... " >&6; }
  10614. if test ${ac_cv_lib_dl_dlopen+y}
  10615. then :
  10616. printf %s "(cached) " >&6
  10617. else $as_nop
  10618. ac_check_lib_save_LIBS=$LIBS
  10619. LIBS="-ldl $LIBS"
  10620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10621. /* end confdefs.h. */
  10622. /* Override any GCC internal prototype to avoid an error.
  10623. Use char because int might match the return type of a GCC
  10624. builtin and then its argument prototype would still apply. */
  10625. char dlopen ();
  10626. int
  10627. main (void)
  10628. {
  10629. return dlopen ();
  10630. ;
  10631. return 0;
  10632. }
  10633. _ACEOF
  10634. if ac_fn_c_try_link "$LINENO"
  10635. then :
  10636. ac_cv_lib_dl_dlopen=yes
  10637. else $as_nop
  10638. ac_cv_lib_dl_dlopen=no
  10639. fi
  10640. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10641. conftest$ac_exeext conftest.$ac_ext
  10642. LIBS=$ac_check_lib_save_LIBS
  10643. fi
  10644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10645. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10646. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10647. then :
  10648. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10649. else $as_nop
  10650. lt_cv_dlopen=dyld
  10651. lt_cv_dlopen_libs=
  10652. lt_cv_dlopen_self=yes
  10653. fi
  10654. ;;
  10655. tpf*)
  10656. # Don't try to run any link tests for TPF. We know it's impossible
  10657. # because TPF is a cross-compiler, and we know how we open DSOs.
  10658. lt_cv_dlopen=dlopen
  10659. lt_cv_dlopen_libs=
  10660. lt_cv_dlopen_self=no
  10661. ;;
  10662. *)
  10663. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10664. if test "x$ac_cv_func_shl_load" = xyes
  10665. then :
  10666. lt_cv_dlopen=shl_load
  10667. else $as_nop
  10668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10669. printf %s "checking for shl_load in -ldld... " >&6; }
  10670. if test ${ac_cv_lib_dld_shl_load+y}
  10671. then :
  10672. printf %s "(cached) " >&6
  10673. else $as_nop
  10674. ac_check_lib_save_LIBS=$LIBS
  10675. LIBS="-ldld $LIBS"
  10676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10677. /* end confdefs.h. */
  10678. /* Override any GCC internal prototype to avoid an error.
  10679. Use char because int might match the return type of a GCC
  10680. builtin and then its argument prototype would still apply. */
  10681. char shl_load ();
  10682. int
  10683. main (void)
  10684. {
  10685. return shl_load ();
  10686. ;
  10687. return 0;
  10688. }
  10689. _ACEOF
  10690. if ac_fn_c_try_link "$LINENO"
  10691. then :
  10692. ac_cv_lib_dld_shl_load=yes
  10693. else $as_nop
  10694. ac_cv_lib_dld_shl_load=no
  10695. fi
  10696. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10697. conftest$ac_exeext conftest.$ac_ext
  10698. LIBS=$ac_check_lib_save_LIBS
  10699. fi
  10700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10701. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10702. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10703. then :
  10704. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10705. else $as_nop
  10706. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10707. if test "x$ac_cv_func_dlopen" = xyes
  10708. then :
  10709. lt_cv_dlopen=dlopen
  10710. else $as_nop
  10711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10712. printf %s "checking for dlopen in -ldl... " >&6; }
  10713. if test ${ac_cv_lib_dl_dlopen+y}
  10714. then :
  10715. printf %s "(cached) " >&6
  10716. else $as_nop
  10717. ac_check_lib_save_LIBS=$LIBS
  10718. LIBS="-ldl $LIBS"
  10719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10720. /* end confdefs.h. */
  10721. /* Override any GCC internal prototype to avoid an error.
  10722. Use char because int might match the return type of a GCC
  10723. builtin and then its argument prototype would still apply. */
  10724. char dlopen ();
  10725. int
  10726. main (void)
  10727. {
  10728. return dlopen ();
  10729. ;
  10730. return 0;
  10731. }
  10732. _ACEOF
  10733. if ac_fn_c_try_link "$LINENO"
  10734. then :
  10735. ac_cv_lib_dl_dlopen=yes
  10736. else $as_nop
  10737. ac_cv_lib_dl_dlopen=no
  10738. fi
  10739. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10740. conftest$ac_exeext conftest.$ac_ext
  10741. LIBS=$ac_check_lib_save_LIBS
  10742. fi
  10743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10744. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10745. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10746. then :
  10747. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10748. else $as_nop
  10749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10750. printf %s "checking for dlopen in -lsvld... " >&6; }
  10751. if test ${ac_cv_lib_svld_dlopen+y}
  10752. then :
  10753. printf %s "(cached) " >&6
  10754. else $as_nop
  10755. ac_check_lib_save_LIBS=$LIBS
  10756. LIBS="-lsvld $LIBS"
  10757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10758. /* end confdefs.h. */
  10759. /* Override any GCC internal prototype to avoid an error.
  10760. Use char because int might match the return type of a GCC
  10761. builtin and then its argument prototype would still apply. */
  10762. char dlopen ();
  10763. int
  10764. main (void)
  10765. {
  10766. return dlopen ();
  10767. ;
  10768. return 0;
  10769. }
  10770. _ACEOF
  10771. if ac_fn_c_try_link "$LINENO"
  10772. then :
  10773. ac_cv_lib_svld_dlopen=yes
  10774. else $as_nop
  10775. ac_cv_lib_svld_dlopen=no
  10776. fi
  10777. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10778. conftest$ac_exeext conftest.$ac_ext
  10779. LIBS=$ac_check_lib_save_LIBS
  10780. fi
  10781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10782. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10783. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10784. then :
  10785. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10786. else $as_nop
  10787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10788. printf %s "checking for dld_link in -ldld... " >&6; }
  10789. if test ${ac_cv_lib_dld_dld_link+y}
  10790. then :
  10791. printf %s "(cached) " >&6
  10792. else $as_nop
  10793. ac_check_lib_save_LIBS=$LIBS
  10794. LIBS="-ldld $LIBS"
  10795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10796. /* end confdefs.h. */
  10797. /* Override any GCC internal prototype to avoid an error.
  10798. Use char because int might match the return type of a GCC
  10799. builtin and then its argument prototype would still apply. */
  10800. char dld_link ();
  10801. int
  10802. main (void)
  10803. {
  10804. return dld_link ();
  10805. ;
  10806. return 0;
  10807. }
  10808. _ACEOF
  10809. if ac_fn_c_try_link "$LINENO"
  10810. then :
  10811. ac_cv_lib_dld_dld_link=yes
  10812. else $as_nop
  10813. ac_cv_lib_dld_dld_link=no
  10814. fi
  10815. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10816. conftest$ac_exeext conftest.$ac_ext
  10817. LIBS=$ac_check_lib_save_LIBS
  10818. fi
  10819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10820. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10821. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10822. then :
  10823. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10824. fi
  10825. fi
  10826. fi
  10827. fi
  10828. fi
  10829. fi
  10830. ;;
  10831. esac
  10832. if test no = "$lt_cv_dlopen"; then
  10833. enable_dlopen=no
  10834. else
  10835. enable_dlopen=yes
  10836. fi
  10837. case $lt_cv_dlopen in
  10838. dlopen)
  10839. save_CPPFLAGS=$CPPFLAGS
  10840. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10841. save_LDFLAGS=$LDFLAGS
  10842. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10843. save_LIBS=$LIBS
  10844. LIBS="$lt_cv_dlopen_libs $LIBS"
  10845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10846. printf %s "checking whether a program can dlopen itself... " >&6; }
  10847. if test ${lt_cv_dlopen_self+y}
  10848. then :
  10849. printf %s "(cached) " >&6
  10850. else $as_nop
  10851. if test yes = "$cross_compiling"; then :
  10852. lt_cv_dlopen_self=cross
  10853. else
  10854. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10855. lt_status=$lt_dlunknown
  10856. cat > conftest.$ac_ext <<_LT_EOF
  10857. #line $LINENO "configure"
  10858. #include "confdefs.h"
  10859. #if HAVE_DLFCN_H
  10860. #include <dlfcn.h>
  10861. #endif
  10862. #include <stdio.h>
  10863. #ifdef RTLD_GLOBAL
  10864. # define LT_DLGLOBAL RTLD_GLOBAL
  10865. #else
  10866. # ifdef DL_GLOBAL
  10867. # define LT_DLGLOBAL DL_GLOBAL
  10868. # else
  10869. # define LT_DLGLOBAL 0
  10870. # endif
  10871. #endif
  10872. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10873. find out it does not work in some platform. */
  10874. #ifndef LT_DLLAZY_OR_NOW
  10875. # ifdef RTLD_LAZY
  10876. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10877. # else
  10878. # ifdef DL_LAZY
  10879. # define LT_DLLAZY_OR_NOW DL_LAZY
  10880. # else
  10881. # ifdef RTLD_NOW
  10882. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10883. # else
  10884. # ifdef DL_NOW
  10885. # define LT_DLLAZY_OR_NOW DL_NOW
  10886. # else
  10887. # define LT_DLLAZY_OR_NOW 0
  10888. # endif
  10889. # endif
  10890. # endif
  10891. # endif
  10892. #endif
  10893. /* When -fvisibility=hidden is used, assume the code has been annotated
  10894. correspondingly for the symbols needed. */
  10895. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10896. int fnord () __attribute__((visibility("default")));
  10897. #endif
  10898. int fnord () { return 42; }
  10899. int main ()
  10900. {
  10901. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10902. int status = $lt_dlunknown;
  10903. if (self)
  10904. {
  10905. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10906. else
  10907. {
  10908. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10909. else puts (dlerror ());
  10910. }
  10911. /* dlclose (self); */
  10912. }
  10913. else
  10914. puts (dlerror ());
  10915. return status;
  10916. }
  10917. _LT_EOF
  10918. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10919. (eval $ac_link) 2>&5
  10920. ac_status=$?
  10921. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10922. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10923. (./conftest; exit; ) >&5 2>/dev/null
  10924. lt_status=$?
  10925. case x$lt_status in
  10926. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10927. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10928. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10929. esac
  10930. else :
  10931. # compilation failed
  10932. lt_cv_dlopen_self=no
  10933. fi
  10934. fi
  10935. rm -fr conftest*
  10936. fi
  10937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10938. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10939. if test yes = "$lt_cv_dlopen_self"; then
  10940. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10942. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10943. if test ${lt_cv_dlopen_self_static+y}
  10944. then :
  10945. printf %s "(cached) " >&6
  10946. else $as_nop
  10947. if test yes = "$cross_compiling"; then :
  10948. lt_cv_dlopen_self_static=cross
  10949. else
  10950. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10951. lt_status=$lt_dlunknown
  10952. cat > conftest.$ac_ext <<_LT_EOF
  10953. #line $LINENO "configure"
  10954. #include "confdefs.h"
  10955. #if HAVE_DLFCN_H
  10956. #include <dlfcn.h>
  10957. #endif
  10958. #include <stdio.h>
  10959. #ifdef RTLD_GLOBAL
  10960. # define LT_DLGLOBAL RTLD_GLOBAL
  10961. #else
  10962. # ifdef DL_GLOBAL
  10963. # define LT_DLGLOBAL DL_GLOBAL
  10964. # else
  10965. # define LT_DLGLOBAL 0
  10966. # endif
  10967. #endif
  10968. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10969. find out it does not work in some platform. */
  10970. #ifndef LT_DLLAZY_OR_NOW
  10971. # ifdef RTLD_LAZY
  10972. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10973. # else
  10974. # ifdef DL_LAZY
  10975. # define LT_DLLAZY_OR_NOW DL_LAZY
  10976. # else
  10977. # ifdef RTLD_NOW
  10978. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10979. # else
  10980. # ifdef DL_NOW
  10981. # define LT_DLLAZY_OR_NOW DL_NOW
  10982. # else
  10983. # define LT_DLLAZY_OR_NOW 0
  10984. # endif
  10985. # endif
  10986. # endif
  10987. # endif
  10988. #endif
  10989. /* When -fvisibility=hidden is used, assume the code has been annotated
  10990. correspondingly for the symbols needed. */
  10991. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10992. int fnord () __attribute__((visibility("default")));
  10993. #endif
  10994. int fnord () { return 42; }
  10995. int main ()
  10996. {
  10997. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10998. int status = $lt_dlunknown;
  10999. if (self)
  11000. {
  11001. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11002. else
  11003. {
  11004. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11005. else puts (dlerror ());
  11006. }
  11007. /* dlclose (self); */
  11008. }
  11009. else
  11010. puts (dlerror ());
  11011. return status;
  11012. }
  11013. _LT_EOF
  11014. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11015. (eval $ac_link) 2>&5
  11016. ac_status=$?
  11017. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11018. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11019. (./conftest; exit; ) >&5 2>/dev/null
  11020. lt_status=$?
  11021. case x$lt_status in
  11022. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11023. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11024. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11025. esac
  11026. else :
  11027. # compilation failed
  11028. lt_cv_dlopen_self_static=no
  11029. fi
  11030. fi
  11031. rm -fr conftest*
  11032. fi
  11033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11034. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11035. fi
  11036. CPPFLAGS=$save_CPPFLAGS
  11037. LDFLAGS=$save_LDFLAGS
  11038. LIBS=$save_LIBS
  11039. ;;
  11040. esac
  11041. case $lt_cv_dlopen_self in
  11042. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11043. *) enable_dlopen_self=unknown ;;
  11044. esac
  11045. case $lt_cv_dlopen_self_static in
  11046. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11047. *) enable_dlopen_self_static=unknown ;;
  11048. esac
  11049. fi
  11050. striplib=
  11051. old_striplib=
  11052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11053. printf %s "checking whether stripping libraries is possible... " >&6; }
  11054. if test -z "$STRIP"; then
  11055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11056. printf "%s\n" "no" >&6; }
  11057. else
  11058. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11059. old_striplib="$STRIP --strip-debug"
  11060. striplib="$STRIP --strip-unneeded"
  11061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11062. printf "%s\n" "yes" >&6; }
  11063. else
  11064. case $host_os in
  11065. darwin*)
  11066. # FIXME - insert some real tests, host_os isn't really good enough
  11067. striplib="$STRIP -x"
  11068. old_striplib="$STRIP -S"
  11069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11070. printf "%s\n" "yes" >&6; }
  11071. ;;
  11072. freebsd*)
  11073. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11074. old_striplib="$STRIP --strip-debug"
  11075. striplib="$STRIP --strip-unneeded"
  11076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11077. printf "%s\n" "yes" >&6; }
  11078. else
  11079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11080. printf "%s\n" "no" >&6; }
  11081. fi
  11082. ;;
  11083. *)
  11084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11085. printf "%s\n" "no" >&6; }
  11086. ;;
  11087. esac
  11088. fi
  11089. fi
  11090. # Report what library types will actually be built
  11091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11092. printf %s "checking if libtool supports shared libraries... " >&6; }
  11093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11094. printf "%s\n" "$can_build_shared" >&6; }
  11095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11096. printf %s "checking whether to build shared libraries... " >&6; }
  11097. test no = "$can_build_shared" && enable_shared=no
  11098. # On AIX, shared libraries and static libraries use the same namespace, and
  11099. # are all built from PIC.
  11100. case $host_os in
  11101. aix3*)
  11102. test yes = "$enable_shared" && enable_static=no
  11103. if test -n "$RANLIB"; then
  11104. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11105. postinstall_cmds='$RANLIB $lib'
  11106. fi
  11107. ;;
  11108. aix[4-9]*)
  11109. if test ia64 != "$host_cpu"; then
  11110. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11111. yes,aix,yes) ;; # shared object as lib.so file only
  11112. yes,svr4,*) ;; # shared object as lib.so archive member only
  11113. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11114. esac
  11115. fi
  11116. ;;
  11117. esac
  11118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11119. printf "%s\n" "$enable_shared" >&6; }
  11120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11121. printf %s "checking whether to build static libraries... " >&6; }
  11122. # Make sure either enable_shared or enable_static is yes.
  11123. test yes = "$enable_shared" || enable_static=yes
  11124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11125. printf "%s\n" "$enable_static" >&6; }
  11126. fi
  11127. ac_ext=c
  11128. ac_cpp='$CPP $CPPFLAGS'
  11129. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11130. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11131. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11132. CC=$lt_save_CC
  11133. ac_config_commands="$ac_config_commands libtool"
  11134. # Only expand once:
  11135. if test -n "$ac_tool_prefix"; then
  11136. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11137. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11139. printf %s "checking for $ac_word... " >&6; }
  11140. if test ${ac_cv_prog_RC+y}
  11141. then :
  11142. printf %s "(cached) " >&6
  11143. else $as_nop
  11144. if test -n "$RC"; then
  11145. ac_cv_prog_RC="$RC" # Let the user override the test.
  11146. else
  11147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11148. for as_dir in $PATH
  11149. do
  11150. IFS=$as_save_IFS
  11151. case $as_dir in #(((
  11152. '') as_dir=./ ;;
  11153. */) ;;
  11154. *) as_dir=$as_dir/ ;;
  11155. esac
  11156. for ac_exec_ext in '' $ac_executable_extensions; do
  11157. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11158. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11159. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11160. break 2
  11161. fi
  11162. done
  11163. done
  11164. IFS=$as_save_IFS
  11165. fi
  11166. fi
  11167. RC=$ac_cv_prog_RC
  11168. if test -n "$RC"; then
  11169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11170. printf "%s\n" "$RC" >&6; }
  11171. else
  11172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11173. printf "%s\n" "no" >&6; }
  11174. fi
  11175. fi
  11176. if test -z "$ac_cv_prog_RC"; then
  11177. ac_ct_RC=$RC
  11178. # Extract the first word of "windres", so it can be a program name with args.
  11179. set dummy windres; ac_word=$2
  11180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11181. printf %s "checking for $ac_word... " >&6; }
  11182. if test ${ac_cv_prog_ac_ct_RC+y}
  11183. then :
  11184. printf %s "(cached) " >&6
  11185. else $as_nop
  11186. if test -n "$ac_ct_RC"; then
  11187. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11188. else
  11189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11190. for as_dir in $PATH
  11191. do
  11192. IFS=$as_save_IFS
  11193. case $as_dir in #(((
  11194. '') as_dir=./ ;;
  11195. */) ;;
  11196. *) as_dir=$as_dir/ ;;
  11197. esac
  11198. for ac_exec_ext in '' $ac_executable_extensions; do
  11199. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11200. ac_cv_prog_ac_ct_RC="windres"
  11201. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11202. break 2
  11203. fi
  11204. done
  11205. done
  11206. IFS=$as_save_IFS
  11207. fi
  11208. fi
  11209. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11210. if test -n "$ac_ct_RC"; then
  11211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11212. printf "%s\n" "$ac_ct_RC" >&6; }
  11213. else
  11214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11215. printf "%s\n" "no" >&6; }
  11216. fi
  11217. if test "x$ac_ct_RC" = x; then
  11218. RC=""
  11219. else
  11220. case $cross_compiling:$ac_tool_warned in
  11221. yes:)
  11222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11223. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11224. ac_tool_warned=yes ;;
  11225. esac
  11226. RC=$ac_ct_RC
  11227. fi
  11228. else
  11229. RC="$ac_cv_prog_RC"
  11230. fi
  11231. # Source file extension for RC test sources.
  11232. ac_ext=rc
  11233. # Object file extension for compiled RC test sources.
  11234. objext=o
  11235. objext_RC=$objext
  11236. # Code to be used in simple compile tests
  11237. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11238. # Code to be used in simple link tests
  11239. lt_simple_link_test_code=$lt_simple_compile_test_code
  11240. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11241. # If no C compiler was specified, use CC.
  11242. LTCC=${LTCC-"$CC"}
  11243. # If no C compiler flags were specified, use CFLAGS.
  11244. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11245. # Allow CC to be a program name with arguments.
  11246. compiler=$CC
  11247. # save warnings/boilerplate of simple test code
  11248. ac_outfile=conftest.$ac_objext
  11249. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11250. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11251. _lt_compiler_boilerplate=`cat conftest.err`
  11252. $RM conftest*
  11253. ac_outfile=conftest.$ac_objext
  11254. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11255. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11256. _lt_linker_boilerplate=`cat conftest.err`
  11257. $RM -r conftest*
  11258. # Allow CC to be a program name with arguments.
  11259. lt_save_CC=$CC
  11260. lt_save_CFLAGS=$CFLAGS
  11261. lt_save_GCC=$GCC
  11262. GCC=
  11263. CC=${RC-"windres"}
  11264. CFLAGS=
  11265. compiler=$CC
  11266. compiler_RC=$CC
  11267. func_cc_basename $compiler
  11268. cc_basename=$func_cc_basename_result
  11269. lt_cv_prog_compiler_c_o_RC=yes
  11270. if test -n "$compiler"; then
  11271. :
  11272. fi
  11273. GCC=$lt_save_GCC
  11274. ac_ext=c
  11275. ac_cpp='$CPP $CPPFLAGS'
  11276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11279. CC=$lt_save_CC
  11280. CFLAGS=$lt_save_CFLAGS
  11281. # For historical reasons, the library name redundantly includes the major
  11282. # version twice: libSDL2-2.0.so.0.
  11283. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11284. LT_RELEASE=2.0
  11285. # Increment this if there is an incompatible change - but if that happens,
  11286. # we should rename the library from SDL2 to SDL3, at which point this would
  11287. # reset to 0 anyway.
  11288. LT_MAJOR=0
  11289. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11290. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11291. LT_REVISION=$SDL_INTERFACE_AGE
  11292. for ac_prog in gawk mawk nawk awk
  11293. do
  11294. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11295. set dummy $ac_prog; ac_word=$2
  11296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11297. printf %s "checking for $ac_word... " >&6; }
  11298. if test ${ac_cv_prog_AWK+y}
  11299. then :
  11300. printf %s "(cached) " >&6
  11301. else $as_nop
  11302. if test -n "$AWK"; then
  11303. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11304. else
  11305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11306. for as_dir in $PATH
  11307. do
  11308. IFS=$as_save_IFS
  11309. case $as_dir in #(((
  11310. '') as_dir=./ ;;
  11311. */) ;;
  11312. *) as_dir=$as_dir/ ;;
  11313. esac
  11314. for ac_exec_ext in '' $ac_executable_extensions; do
  11315. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11316. ac_cv_prog_AWK="$ac_prog"
  11317. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11318. break 2
  11319. fi
  11320. done
  11321. done
  11322. IFS=$as_save_IFS
  11323. fi
  11324. fi
  11325. AWK=$ac_cv_prog_AWK
  11326. if test -n "$AWK"; then
  11327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11328. printf "%s\n" "$AWK" >&6; }
  11329. else
  11330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11331. printf "%s\n" "no" >&6; }
  11332. fi
  11333. test -n "$AWK" && break
  11334. done
  11335. ac_ext=c
  11336. ac_cpp='$CPP $CPPFLAGS'
  11337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11340. if test -n "$ac_tool_prefix"; then
  11341. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11342. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11344. printf %s "checking for $ac_word... " >&6; }
  11345. if test ${ac_cv_prog_CC+y}
  11346. then :
  11347. printf %s "(cached) " >&6
  11348. else $as_nop
  11349. if test -n "$CC"; then
  11350. ac_cv_prog_CC="$CC" # Let the user override the test.
  11351. else
  11352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11353. for as_dir in $PATH
  11354. do
  11355. IFS=$as_save_IFS
  11356. case $as_dir in #(((
  11357. '') as_dir=./ ;;
  11358. */) ;;
  11359. *) as_dir=$as_dir/ ;;
  11360. esac
  11361. for ac_exec_ext in '' $ac_executable_extensions; do
  11362. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11363. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11364. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11365. break 2
  11366. fi
  11367. done
  11368. done
  11369. IFS=$as_save_IFS
  11370. fi
  11371. fi
  11372. CC=$ac_cv_prog_CC
  11373. if test -n "$CC"; then
  11374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11375. printf "%s\n" "$CC" >&6; }
  11376. else
  11377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11378. printf "%s\n" "no" >&6; }
  11379. fi
  11380. fi
  11381. if test -z "$ac_cv_prog_CC"; then
  11382. ac_ct_CC=$CC
  11383. # Extract the first word of "gcc", so it can be a program name with args.
  11384. set dummy gcc; ac_word=$2
  11385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11386. printf %s "checking for $ac_word... " >&6; }
  11387. if test ${ac_cv_prog_ac_ct_CC+y}
  11388. then :
  11389. printf %s "(cached) " >&6
  11390. else $as_nop
  11391. if test -n "$ac_ct_CC"; then
  11392. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11393. else
  11394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11395. for as_dir in $PATH
  11396. do
  11397. IFS=$as_save_IFS
  11398. case $as_dir in #(((
  11399. '') as_dir=./ ;;
  11400. */) ;;
  11401. *) as_dir=$as_dir/ ;;
  11402. esac
  11403. for ac_exec_ext in '' $ac_executable_extensions; do
  11404. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11405. ac_cv_prog_ac_ct_CC="gcc"
  11406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11407. break 2
  11408. fi
  11409. done
  11410. done
  11411. IFS=$as_save_IFS
  11412. fi
  11413. fi
  11414. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11415. if test -n "$ac_ct_CC"; then
  11416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11417. printf "%s\n" "$ac_ct_CC" >&6; }
  11418. else
  11419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11420. printf "%s\n" "no" >&6; }
  11421. fi
  11422. if test "x$ac_ct_CC" = x; then
  11423. CC=""
  11424. else
  11425. case $cross_compiling:$ac_tool_warned in
  11426. yes:)
  11427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11428. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11429. ac_tool_warned=yes ;;
  11430. esac
  11431. CC=$ac_ct_CC
  11432. fi
  11433. else
  11434. CC="$ac_cv_prog_CC"
  11435. fi
  11436. if test -z "$CC"; then
  11437. if test -n "$ac_tool_prefix"; then
  11438. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11439. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11441. printf %s "checking for $ac_word... " >&6; }
  11442. if test ${ac_cv_prog_CC+y}
  11443. then :
  11444. printf %s "(cached) " >&6
  11445. else $as_nop
  11446. if test -n "$CC"; then
  11447. ac_cv_prog_CC="$CC" # Let the user override the test.
  11448. else
  11449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11450. for as_dir in $PATH
  11451. do
  11452. IFS=$as_save_IFS
  11453. case $as_dir in #(((
  11454. '') as_dir=./ ;;
  11455. */) ;;
  11456. *) as_dir=$as_dir/ ;;
  11457. esac
  11458. for ac_exec_ext in '' $ac_executable_extensions; do
  11459. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11460. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11461. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11462. break 2
  11463. fi
  11464. done
  11465. done
  11466. IFS=$as_save_IFS
  11467. fi
  11468. fi
  11469. CC=$ac_cv_prog_CC
  11470. if test -n "$CC"; then
  11471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11472. printf "%s\n" "$CC" >&6; }
  11473. else
  11474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11475. printf "%s\n" "no" >&6; }
  11476. fi
  11477. fi
  11478. fi
  11479. if test -z "$CC"; then
  11480. # Extract the first word of "cc", so it can be a program name with args.
  11481. set dummy cc; ac_word=$2
  11482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11483. printf %s "checking for $ac_word... " >&6; }
  11484. if test ${ac_cv_prog_CC+y}
  11485. then :
  11486. printf %s "(cached) " >&6
  11487. else $as_nop
  11488. if test -n "$CC"; then
  11489. ac_cv_prog_CC="$CC" # Let the user override the test.
  11490. else
  11491. ac_prog_rejected=no
  11492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11493. for as_dir in $PATH
  11494. do
  11495. IFS=$as_save_IFS
  11496. case $as_dir in #(((
  11497. '') as_dir=./ ;;
  11498. */) ;;
  11499. *) as_dir=$as_dir/ ;;
  11500. esac
  11501. for ac_exec_ext in '' $ac_executable_extensions; do
  11502. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11503. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11504. ac_prog_rejected=yes
  11505. continue
  11506. fi
  11507. ac_cv_prog_CC="cc"
  11508. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11509. break 2
  11510. fi
  11511. done
  11512. done
  11513. IFS=$as_save_IFS
  11514. if test $ac_prog_rejected = yes; then
  11515. # We found a bogon in the path, so make sure we never use it.
  11516. set dummy $ac_cv_prog_CC
  11517. shift
  11518. if test $# != 0; then
  11519. # We chose a different compiler from the bogus one.
  11520. # However, it has the same basename, so the bogon will be chosen
  11521. # first if we set CC to just the basename; use the full file name.
  11522. shift
  11523. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11524. fi
  11525. fi
  11526. fi
  11527. fi
  11528. CC=$ac_cv_prog_CC
  11529. if test -n "$CC"; then
  11530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11531. printf "%s\n" "$CC" >&6; }
  11532. else
  11533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11534. printf "%s\n" "no" >&6; }
  11535. fi
  11536. fi
  11537. if test -z "$CC"; then
  11538. if test -n "$ac_tool_prefix"; then
  11539. for ac_prog in cl.exe
  11540. do
  11541. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11542. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11544. printf %s "checking for $ac_word... " >&6; }
  11545. if test ${ac_cv_prog_CC+y}
  11546. then :
  11547. printf %s "(cached) " >&6
  11548. else $as_nop
  11549. if test -n "$CC"; then
  11550. ac_cv_prog_CC="$CC" # Let the user override the test.
  11551. else
  11552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11553. for as_dir in $PATH
  11554. do
  11555. IFS=$as_save_IFS
  11556. case $as_dir in #(((
  11557. '') as_dir=./ ;;
  11558. */) ;;
  11559. *) as_dir=$as_dir/ ;;
  11560. esac
  11561. for ac_exec_ext in '' $ac_executable_extensions; do
  11562. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11563. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11564. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11565. break 2
  11566. fi
  11567. done
  11568. done
  11569. IFS=$as_save_IFS
  11570. fi
  11571. fi
  11572. CC=$ac_cv_prog_CC
  11573. if test -n "$CC"; then
  11574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11575. printf "%s\n" "$CC" >&6; }
  11576. else
  11577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11578. printf "%s\n" "no" >&6; }
  11579. fi
  11580. test -n "$CC" && break
  11581. done
  11582. fi
  11583. if test -z "$CC"; then
  11584. ac_ct_CC=$CC
  11585. for ac_prog in cl.exe
  11586. do
  11587. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11588. set dummy $ac_prog; ac_word=$2
  11589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11590. printf %s "checking for $ac_word... " >&6; }
  11591. if test ${ac_cv_prog_ac_ct_CC+y}
  11592. then :
  11593. printf %s "(cached) " >&6
  11594. else $as_nop
  11595. if test -n "$ac_ct_CC"; then
  11596. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11597. else
  11598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11599. for as_dir in $PATH
  11600. do
  11601. IFS=$as_save_IFS
  11602. case $as_dir in #(((
  11603. '') as_dir=./ ;;
  11604. */) ;;
  11605. *) as_dir=$as_dir/ ;;
  11606. esac
  11607. for ac_exec_ext in '' $ac_executable_extensions; do
  11608. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11609. ac_cv_prog_ac_ct_CC="$ac_prog"
  11610. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11611. break 2
  11612. fi
  11613. done
  11614. done
  11615. IFS=$as_save_IFS
  11616. fi
  11617. fi
  11618. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11619. if test -n "$ac_ct_CC"; then
  11620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11621. printf "%s\n" "$ac_ct_CC" >&6; }
  11622. else
  11623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11624. printf "%s\n" "no" >&6; }
  11625. fi
  11626. test -n "$ac_ct_CC" && break
  11627. done
  11628. if test "x$ac_ct_CC" = x; then
  11629. CC=""
  11630. else
  11631. case $cross_compiling:$ac_tool_warned in
  11632. yes:)
  11633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11634. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11635. ac_tool_warned=yes ;;
  11636. esac
  11637. CC=$ac_ct_CC
  11638. fi
  11639. fi
  11640. fi
  11641. if test -z "$CC"; then
  11642. if test -n "$ac_tool_prefix"; then
  11643. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11644. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11646. printf %s "checking for $ac_word... " >&6; }
  11647. if test ${ac_cv_prog_CC+y}
  11648. then :
  11649. printf %s "(cached) " >&6
  11650. else $as_nop
  11651. if test -n "$CC"; then
  11652. ac_cv_prog_CC="$CC" # Let the user override the test.
  11653. else
  11654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11655. for as_dir in $PATH
  11656. do
  11657. IFS=$as_save_IFS
  11658. case $as_dir in #(((
  11659. '') as_dir=./ ;;
  11660. */) ;;
  11661. *) as_dir=$as_dir/ ;;
  11662. esac
  11663. for ac_exec_ext in '' $ac_executable_extensions; do
  11664. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11665. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11666. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11667. break 2
  11668. fi
  11669. done
  11670. done
  11671. IFS=$as_save_IFS
  11672. fi
  11673. fi
  11674. CC=$ac_cv_prog_CC
  11675. if test -n "$CC"; then
  11676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11677. printf "%s\n" "$CC" >&6; }
  11678. else
  11679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11680. printf "%s\n" "no" >&6; }
  11681. fi
  11682. fi
  11683. if test -z "$ac_cv_prog_CC"; then
  11684. ac_ct_CC=$CC
  11685. # Extract the first word of "clang", so it can be a program name with args.
  11686. set dummy clang; ac_word=$2
  11687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11688. printf %s "checking for $ac_word... " >&6; }
  11689. if test ${ac_cv_prog_ac_ct_CC+y}
  11690. then :
  11691. printf %s "(cached) " >&6
  11692. else $as_nop
  11693. if test -n "$ac_ct_CC"; then
  11694. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11695. else
  11696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11697. for as_dir in $PATH
  11698. do
  11699. IFS=$as_save_IFS
  11700. case $as_dir in #(((
  11701. '') as_dir=./ ;;
  11702. */) ;;
  11703. *) as_dir=$as_dir/ ;;
  11704. esac
  11705. for ac_exec_ext in '' $ac_executable_extensions; do
  11706. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11707. ac_cv_prog_ac_ct_CC="clang"
  11708. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11709. break 2
  11710. fi
  11711. done
  11712. done
  11713. IFS=$as_save_IFS
  11714. fi
  11715. fi
  11716. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11717. if test -n "$ac_ct_CC"; then
  11718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11719. printf "%s\n" "$ac_ct_CC" >&6; }
  11720. else
  11721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11722. printf "%s\n" "no" >&6; }
  11723. fi
  11724. if test "x$ac_ct_CC" = x; then
  11725. CC=""
  11726. else
  11727. case $cross_compiling:$ac_tool_warned in
  11728. yes:)
  11729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11730. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11731. ac_tool_warned=yes ;;
  11732. esac
  11733. CC=$ac_ct_CC
  11734. fi
  11735. else
  11736. CC="$ac_cv_prog_CC"
  11737. fi
  11738. fi
  11739. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11740. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11741. as_fn_error $? "no acceptable C compiler found in \$PATH
  11742. See \`config.log' for more details" "$LINENO" 5; }
  11743. # Provide some information about the compiler.
  11744. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11745. set X $ac_compile
  11746. ac_compiler=$2
  11747. for ac_option in --version -v -V -qversion -version; do
  11748. { { ac_try="$ac_compiler $ac_option >&5"
  11749. case "(($ac_try" in
  11750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11751. *) ac_try_echo=$ac_try;;
  11752. esac
  11753. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11754. printf "%s\n" "$ac_try_echo"; } >&5
  11755. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11756. ac_status=$?
  11757. if test -s conftest.err; then
  11758. sed '10a\
  11759. ... rest of stderr output deleted ...
  11760. 10q' conftest.err >conftest.er1
  11761. cat conftest.er1 >&5
  11762. fi
  11763. rm -f conftest.er1 conftest.err
  11764. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11765. test $ac_status = 0; }
  11766. done
  11767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11768. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11769. if test ${ac_cv_c_compiler_gnu+y}
  11770. then :
  11771. printf %s "(cached) " >&6
  11772. else $as_nop
  11773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11774. /* end confdefs.h. */
  11775. int
  11776. main (void)
  11777. {
  11778. #ifndef __GNUC__
  11779. choke me
  11780. #endif
  11781. ;
  11782. return 0;
  11783. }
  11784. _ACEOF
  11785. if ac_fn_c_try_compile "$LINENO"
  11786. then :
  11787. ac_compiler_gnu=yes
  11788. else $as_nop
  11789. ac_compiler_gnu=no
  11790. fi
  11791. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11792. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11793. fi
  11794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11795. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11796. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11797. if test $ac_compiler_gnu = yes; then
  11798. GCC=yes
  11799. else
  11800. GCC=
  11801. fi
  11802. ac_test_CFLAGS=${CFLAGS+y}
  11803. ac_save_CFLAGS=$CFLAGS
  11804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11805. printf %s "checking whether $CC accepts -g... " >&6; }
  11806. if test ${ac_cv_prog_cc_g+y}
  11807. then :
  11808. printf %s "(cached) " >&6
  11809. else $as_nop
  11810. ac_save_c_werror_flag=$ac_c_werror_flag
  11811. ac_c_werror_flag=yes
  11812. ac_cv_prog_cc_g=no
  11813. CFLAGS="-g"
  11814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11815. /* end confdefs.h. */
  11816. int
  11817. main (void)
  11818. {
  11819. ;
  11820. return 0;
  11821. }
  11822. _ACEOF
  11823. if ac_fn_c_try_compile "$LINENO"
  11824. then :
  11825. ac_cv_prog_cc_g=yes
  11826. else $as_nop
  11827. CFLAGS=""
  11828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11829. /* end confdefs.h. */
  11830. int
  11831. main (void)
  11832. {
  11833. ;
  11834. return 0;
  11835. }
  11836. _ACEOF
  11837. if ac_fn_c_try_compile "$LINENO"
  11838. then :
  11839. else $as_nop
  11840. ac_c_werror_flag=$ac_save_c_werror_flag
  11841. CFLAGS="-g"
  11842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11843. /* end confdefs.h. */
  11844. int
  11845. main (void)
  11846. {
  11847. ;
  11848. return 0;
  11849. }
  11850. _ACEOF
  11851. if ac_fn_c_try_compile "$LINENO"
  11852. then :
  11853. ac_cv_prog_cc_g=yes
  11854. fi
  11855. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11856. fi
  11857. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11858. fi
  11859. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11860. ac_c_werror_flag=$ac_save_c_werror_flag
  11861. fi
  11862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11863. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11864. if test $ac_test_CFLAGS; then
  11865. CFLAGS=$ac_save_CFLAGS
  11866. elif test $ac_cv_prog_cc_g = yes; then
  11867. if test "$GCC" = yes; then
  11868. CFLAGS="-g -O2"
  11869. else
  11870. CFLAGS="-g"
  11871. fi
  11872. else
  11873. if test "$GCC" = yes; then
  11874. CFLAGS="-O2"
  11875. else
  11876. CFLAGS=
  11877. fi
  11878. fi
  11879. ac_prog_cc_stdc=no
  11880. if test x$ac_prog_cc_stdc = xno
  11881. then :
  11882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11883. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11884. if test ${ac_cv_prog_cc_c11+y}
  11885. then :
  11886. printf %s "(cached) " >&6
  11887. else $as_nop
  11888. ac_cv_prog_cc_c11=no
  11889. ac_save_CC=$CC
  11890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11891. /* end confdefs.h. */
  11892. $ac_c_conftest_c11_program
  11893. _ACEOF
  11894. for ac_arg in '' -std=gnu11
  11895. do
  11896. CC="$ac_save_CC $ac_arg"
  11897. if ac_fn_c_try_compile "$LINENO"
  11898. then :
  11899. ac_cv_prog_cc_c11=$ac_arg
  11900. fi
  11901. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11902. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11903. done
  11904. rm -f conftest.$ac_ext
  11905. CC=$ac_save_CC
  11906. fi
  11907. if test "x$ac_cv_prog_cc_c11" = xno
  11908. then :
  11909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11910. printf "%s\n" "unsupported" >&6; }
  11911. else $as_nop
  11912. if test "x$ac_cv_prog_cc_c11" = x
  11913. then :
  11914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11915. printf "%s\n" "none needed" >&6; }
  11916. else $as_nop
  11917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11918. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11919. CC="$CC $ac_cv_prog_cc_c11"
  11920. fi
  11921. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11922. ac_prog_cc_stdc=c11
  11923. fi
  11924. fi
  11925. if test x$ac_prog_cc_stdc = xno
  11926. then :
  11927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11928. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11929. if test ${ac_cv_prog_cc_c99+y}
  11930. then :
  11931. printf %s "(cached) " >&6
  11932. else $as_nop
  11933. ac_cv_prog_cc_c99=no
  11934. ac_save_CC=$CC
  11935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11936. /* end confdefs.h. */
  11937. $ac_c_conftest_c99_program
  11938. _ACEOF
  11939. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11940. do
  11941. CC="$ac_save_CC $ac_arg"
  11942. if ac_fn_c_try_compile "$LINENO"
  11943. then :
  11944. ac_cv_prog_cc_c99=$ac_arg
  11945. fi
  11946. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11947. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11948. done
  11949. rm -f conftest.$ac_ext
  11950. CC=$ac_save_CC
  11951. fi
  11952. if test "x$ac_cv_prog_cc_c99" = xno
  11953. then :
  11954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11955. printf "%s\n" "unsupported" >&6; }
  11956. else $as_nop
  11957. if test "x$ac_cv_prog_cc_c99" = x
  11958. then :
  11959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11960. printf "%s\n" "none needed" >&6; }
  11961. else $as_nop
  11962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11963. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11964. CC="$CC $ac_cv_prog_cc_c99"
  11965. fi
  11966. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11967. ac_prog_cc_stdc=c99
  11968. fi
  11969. fi
  11970. if test x$ac_prog_cc_stdc = xno
  11971. then :
  11972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11973. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11974. if test ${ac_cv_prog_cc_c89+y}
  11975. then :
  11976. printf %s "(cached) " >&6
  11977. else $as_nop
  11978. ac_cv_prog_cc_c89=no
  11979. ac_save_CC=$CC
  11980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11981. /* end confdefs.h. */
  11982. $ac_c_conftest_c89_program
  11983. _ACEOF
  11984. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11985. do
  11986. CC="$ac_save_CC $ac_arg"
  11987. if ac_fn_c_try_compile "$LINENO"
  11988. then :
  11989. ac_cv_prog_cc_c89=$ac_arg
  11990. fi
  11991. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11992. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11993. done
  11994. rm -f conftest.$ac_ext
  11995. CC=$ac_save_CC
  11996. fi
  11997. if test "x$ac_cv_prog_cc_c89" = xno
  11998. then :
  11999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12000. printf "%s\n" "unsupported" >&6; }
  12001. else $as_nop
  12002. if test "x$ac_cv_prog_cc_c89" = x
  12003. then :
  12004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12005. printf "%s\n" "none needed" >&6; }
  12006. else $as_nop
  12007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12008. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  12009. CC="$CC $ac_cv_prog_cc_c89"
  12010. fi
  12011. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12012. ac_prog_cc_stdc=c89
  12013. fi
  12014. fi
  12015. ac_ext=c
  12016. ac_cpp='$CPP $CPPFLAGS'
  12017. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12018. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12019. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12020. ac_ext=cpp
  12021. ac_cpp='$CXXCPP $CPPFLAGS'
  12022. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12023. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12024. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12025. if test -z "$CXX"; then
  12026. if test -n "$CCC"; then
  12027. CXX=$CCC
  12028. else
  12029. if test -n "$ac_tool_prefix"; then
  12030. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12031. do
  12032. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12033. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12035. printf %s "checking for $ac_word... " >&6; }
  12036. if test ${ac_cv_prog_CXX+y}
  12037. then :
  12038. printf %s "(cached) " >&6
  12039. else $as_nop
  12040. if test -n "$CXX"; then
  12041. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12042. else
  12043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12044. for as_dir in $PATH
  12045. do
  12046. IFS=$as_save_IFS
  12047. case $as_dir in #(((
  12048. '') as_dir=./ ;;
  12049. */) ;;
  12050. *) as_dir=$as_dir/ ;;
  12051. esac
  12052. for ac_exec_ext in '' $ac_executable_extensions; do
  12053. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12054. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12055. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12056. break 2
  12057. fi
  12058. done
  12059. done
  12060. IFS=$as_save_IFS
  12061. fi
  12062. fi
  12063. CXX=$ac_cv_prog_CXX
  12064. if test -n "$CXX"; then
  12065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12066. printf "%s\n" "$CXX" >&6; }
  12067. else
  12068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12069. printf "%s\n" "no" >&6; }
  12070. fi
  12071. test -n "$CXX" && break
  12072. done
  12073. fi
  12074. if test -z "$CXX"; then
  12075. ac_ct_CXX=$CXX
  12076. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12077. do
  12078. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12079. set dummy $ac_prog; ac_word=$2
  12080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12081. printf %s "checking for $ac_word... " >&6; }
  12082. if test ${ac_cv_prog_ac_ct_CXX+y}
  12083. then :
  12084. printf %s "(cached) " >&6
  12085. else $as_nop
  12086. if test -n "$ac_ct_CXX"; then
  12087. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12088. else
  12089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12090. for as_dir in $PATH
  12091. do
  12092. IFS=$as_save_IFS
  12093. case $as_dir in #(((
  12094. '') as_dir=./ ;;
  12095. */) ;;
  12096. *) as_dir=$as_dir/ ;;
  12097. esac
  12098. for ac_exec_ext in '' $ac_executable_extensions; do
  12099. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12100. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12101. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12102. break 2
  12103. fi
  12104. done
  12105. done
  12106. IFS=$as_save_IFS
  12107. fi
  12108. fi
  12109. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12110. if test -n "$ac_ct_CXX"; then
  12111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12112. printf "%s\n" "$ac_ct_CXX" >&6; }
  12113. else
  12114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12115. printf "%s\n" "no" >&6; }
  12116. fi
  12117. test -n "$ac_ct_CXX" && break
  12118. done
  12119. if test "x$ac_ct_CXX" = x; then
  12120. CXX="g++"
  12121. else
  12122. case $cross_compiling:$ac_tool_warned in
  12123. yes:)
  12124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12125. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12126. ac_tool_warned=yes ;;
  12127. esac
  12128. CXX=$ac_ct_CXX
  12129. fi
  12130. fi
  12131. fi
  12132. fi
  12133. # Provide some information about the compiler.
  12134. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12135. set X $ac_compile
  12136. ac_compiler=$2
  12137. for ac_option in --version -v -V -qversion; do
  12138. { { ac_try="$ac_compiler $ac_option >&5"
  12139. case "(($ac_try" in
  12140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12141. *) ac_try_echo=$ac_try;;
  12142. esac
  12143. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12144. printf "%s\n" "$ac_try_echo"; } >&5
  12145. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12146. ac_status=$?
  12147. if test -s conftest.err; then
  12148. sed '10a\
  12149. ... rest of stderr output deleted ...
  12150. 10q' conftest.err >conftest.er1
  12151. cat conftest.er1 >&5
  12152. fi
  12153. rm -f conftest.er1 conftest.err
  12154. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12155. test $ac_status = 0; }
  12156. done
  12157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12158. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12159. if test ${ac_cv_cxx_compiler_gnu+y}
  12160. then :
  12161. printf %s "(cached) " >&6
  12162. else $as_nop
  12163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12164. /* end confdefs.h. */
  12165. int
  12166. main (void)
  12167. {
  12168. #ifndef __GNUC__
  12169. choke me
  12170. #endif
  12171. ;
  12172. return 0;
  12173. }
  12174. _ACEOF
  12175. if ac_fn_cxx_try_compile "$LINENO"
  12176. then :
  12177. ac_compiler_gnu=yes
  12178. else $as_nop
  12179. ac_compiler_gnu=no
  12180. fi
  12181. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12182. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12183. fi
  12184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12185. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12186. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12187. if test $ac_compiler_gnu = yes; then
  12188. GXX=yes
  12189. else
  12190. GXX=
  12191. fi
  12192. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12193. ac_save_CXXFLAGS=$CXXFLAGS
  12194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12195. printf %s "checking whether $CXX accepts -g... " >&6; }
  12196. if test ${ac_cv_prog_cxx_g+y}
  12197. then :
  12198. printf %s "(cached) " >&6
  12199. else $as_nop
  12200. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12201. ac_cxx_werror_flag=yes
  12202. ac_cv_prog_cxx_g=no
  12203. CXXFLAGS="-g"
  12204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12205. /* end confdefs.h. */
  12206. int
  12207. main (void)
  12208. {
  12209. ;
  12210. return 0;
  12211. }
  12212. _ACEOF
  12213. if ac_fn_cxx_try_compile "$LINENO"
  12214. then :
  12215. ac_cv_prog_cxx_g=yes
  12216. else $as_nop
  12217. CXXFLAGS=""
  12218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12219. /* end confdefs.h. */
  12220. int
  12221. main (void)
  12222. {
  12223. ;
  12224. return 0;
  12225. }
  12226. _ACEOF
  12227. if ac_fn_cxx_try_compile "$LINENO"
  12228. then :
  12229. else $as_nop
  12230. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12231. CXXFLAGS="-g"
  12232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12233. /* end confdefs.h. */
  12234. int
  12235. main (void)
  12236. {
  12237. ;
  12238. return 0;
  12239. }
  12240. _ACEOF
  12241. if ac_fn_cxx_try_compile "$LINENO"
  12242. then :
  12243. ac_cv_prog_cxx_g=yes
  12244. fi
  12245. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12246. fi
  12247. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12248. fi
  12249. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12250. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12251. fi
  12252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12253. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12254. if test $ac_test_CXXFLAGS; then
  12255. CXXFLAGS=$ac_save_CXXFLAGS
  12256. elif test $ac_cv_prog_cxx_g = yes; then
  12257. if test "$GXX" = yes; then
  12258. CXXFLAGS="-g -O2"
  12259. else
  12260. CXXFLAGS="-g"
  12261. fi
  12262. else
  12263. if test "$GXX" = yes; then
  12264. CXXFLAGS="-O2"
  12265. else
  12266. CXXFLAGS=
  12267. fi
  12268. fi
  12269. ac_prog_cxx_stdcxx=no
  12270. if test x$ac_prog_cxx_stdcxx = xno
  12271. then :
  12272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12273. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12274. if test ${ac_cv_prog_cxx_11+y}
  12275. then :
  12276. printf %s "(cached) " >&6
  12277. else $as_nop
  12278. ac_cv_prog_cxx_11=no
  12279. ac_save_CXX=$CXX
  12280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12281. /* end confdefs.h. */
  12282. $ac_cxx_conftest_cxx11_program
  12283. _ACEOF
  12284. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12285. do
  12286. CXX="$ac_save_CXX $ac_arg"
  12287. if ac_fn_cxx_try_compile "$LINENO"
  12288. then :
  12289. ac_cv_prog_cxx_cxx11=$ac_arg
  12290. fi
  12291. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12292. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12293. done
  12294. rm -f conftest.$ac_ext
  12295. CXX=$ac_save_CXX
  12296. fi
  12297. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12298. then :
  12299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12300. printf "%s\n" "unsupported" >&6; }
  12301. else $as_nop
  12302. if test "x$ac_cv_prog_cxx_cxx11" = x
  12303. then :
  12304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12305. printf "%s\n" "none needed" >&6; }
  12306. else $as_nop
  12307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12308. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12309. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12310. fi
  12311. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12312. ac_prog_cxx_stdcxx=cxx11
  12313. fi
  12314. fi
  12315. if test x$ac_prog_cxx_stdcxx = xno
  12316. then :
  12317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12318. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12319. if test ${ac_cv_prog_cxx_98+y}
  12320. then :
  12321. printf %s "(cached) " >&6
  12322. else $as_nop
  12323. ac_cv_prog_cxx_98=no
  12324. ac_save_CXX=$CXX
  12325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12326. /* end confdefs.h. */
  12327. $ac_cxx_conftest_cxx98_program
  12328. _ACEOF
  12329. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12330. do
  12331. CXX="$ac_save_CXX $ac_arg"
  12332. if ac_fn_cxx_try_compile "$LINENO"
  12333. then :
  12334. ac_cv_prog_cxx_cxx98=$ac_arg
  12335. fi
  12336. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12337. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12338. done
  12339. rm -f conftest.$ac_ext
  12340. CXX=$ac_save_CXX
  12341. fi
  12342. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12343. then :
  12344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12345. printf "%s\n" "unsupported" >&6; }
  12346. else $as_nop
  12347. if test "x$ac_cv_prog_cxx_cxx98" = x
  12348. then :
  12349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12350. printf "%s\n" "none needed" >&6; }
  12351. else $as_nop
  12352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12353. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12354. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12355. fi
  12356. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12357. ac_prog_cxx_stdcxx=cxx98
  12358. fi
  12359. fi
  12360. ac_ext=c
  12361. ac_cpp='$CPP $CPPFLAGS'
  12362. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12363. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12365. func_stripname_cnf ()
  12366. {
  12367. case $2 in
  12368. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12369. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12370. esac
  12371. } # func_stripname_cnf
  12372. if test -n "$CXX" && ( test no != "$CXX" &&
  12373. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12374. (test g++ != "$CXX"))); then
  12375. ac_ext=cpp
  12376. ac_cpp='$CXXCPP $CPPFLAGS'
  12377. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12378. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12379. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12381. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12382. if test -z "$CXXCPP"; then
  12383. if test ${ac_cv_prog_CXXCPP+y}
  12384. then :
  12385. printf %s "(cached) " >&6
  12386. else $as_nop
  12387. # Double quotes because $CXX needs to be expanded
  12388. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12389. do
  12390. ac_preproc_ok=false
  12391. for ac_cxx_preproc_warn_flag in '' yes
  12392. do
  12393. # Use a header file that comes with gcc, so configuring glibc
  12394. # with a fresh cross-compiler works.
  12395. # On the NeXT, cc -E runs the code through the compiler's parser,
  12396. # not just through cpp. "Syntax error" is here to catch this case.
  12397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12398. /* end confdefs.h. */
  12399. #include <limits.h>
  12400. Syntax error
  12401. _ACEOF
  12402. if ac_fn_cxx_try_cpp "$LINENO"
  12403. then :
  12404. else $as_nop
  12405. # Broken: fails on valid input.
  12406. continue
  12407. fi
  12408. rm -f conftest.err conftest.i conftest.$ac_ext
  12409. # OK, works on sane cases. Now check whether nonexistent headers
  12410. # can be detected and how.
  12411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12412. /* end confdefs.h. */
  12413. #include <ac_nonexistent.h>
  12414. _ACEOF
  12415. if ac_fn_cxx_try_cpp "$LINENO"
  12416. then :
  12417. # Broken: success on invalid input.
  12418. continue
  12419. else $as_nop
  12420. # Passes both tests.
  12421. ac_preproc_ok=:
  12422. break
  12423. fi
  12424. rm -f conftest.err conftest.i conftest.$ac_ext
  12425. done
  12426. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12427. rm -f conftest.i conftest.err conftest.$ac_ext
  12428. if $ac_preproc_ok
  12429. then :
  12430. break
  12431. fi
  12432. done
  12433. ac_cv_prog_CXXCPP=$CXXCPP
  12434. fi
  12435. CXXCPP=$ac_cv_prog_CXXCPP
  12436. else
  12437. ac_cv_prog_CXXCPP=$CXXCPP
  12438. fi
  12439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12440. printf "%s\n" "$CXXCPP" >&6; }
  12441. ac_preproc_ok=false
  12442. for ac_cxx_preproc_warn_flag in '' yes
  12443. do
  12444. # Use a header file that comes with gcc, so configuring glibc
  12445. # with a fresh cross-compiler works.
  12446. # On the NeXT, cc -E runs the code through the compiler's parser,
  12447. # not just through cpp. "Syntax error" is here to catch this case.
  12448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12449. /* end confdefs.h. */
  12450. #include <limits.h>
  12451. Syntax error
  12452. _ACEOF
  12453. if ac_fn_cxx_try_cpp "$LINENO"
  12454. then :
  12455. else $as_nop
  12456. # Broken: fails on valid input.
  12457. continue
  12458. fi
  12459. rm -f conftest.err conftest.i conftest.$ac_ext
  12460. # OK, works on sane cases. Now check whether nonexistent headers
  12461. # can be detected and how.
  12462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12463. /* end confdefs.h. */
  12464. #include <ac_nonexistent.h>
  12465. _ACEOF
  12466. if ac_fn_cxx_try_cpp "$LINENO"
  12467. then :
  12468. # Broken: success on invalid input.
  12469. continue
  12470. else $as_nop
  12471. # Passes both tests.
  12472. ac_preproc_ok=:
  12473. break
  12474. fi
  12475. rm -f conftest.err conftest.i conftest.$ac_ext
  12476. done
  12477. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12478. rm -f conftest.i conftest.err conftest.$ac_ext
  12479. if $ac_preproc_ok
  12480. then :
  12481. else $as_nop
  12482. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12483. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12484. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12485. See \`config.log' for more details" "$LINENO" 5; }
  12486. fi
  12487. ac_ext=c
  12488. ac_cpp='$CPP $CPPFLAGS'
  12489. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12490. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12491. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12492. else
  12493. _lt_caught_CXX_error=yes
  12494. fi
  12495. ac_ext=cpp
  12496. ac_cpp='$CXXCPP $CPPFLAGS'
  12497. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12498. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12499. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12500. archive_cmds_need_lc_CXX=no
  12501. allow_undefined_flag_CXX=
  12502. always_export_symbols_CXX=no
  12503. archive_expsym_cmds_CXX=
  12504. compiler_needs_object_CXX=no
  12505. export_dynamic_flag_spec_CXX=
  12506. hardcode_direct_CXX=no
  12507. hardcode_direct_absolute_CXX=no
  12508. hardcode_libdir_flag_spec_CXX=
  12509. hardcode_libdir_separator_CXX=
  12510. hardcode_minus_L_CXX=no
  12511. hardcode_shlibpath_var_CXX=unsupported
  12512. hardcode_automatic_CXX=no
  12513. inherit_rpath_CXX=no
  12514. module_cmds_CXX=
  12515. module_expsym_cmds_CXX=
  12516. link_all_deplibs_CXX=unknown
  12517. old_archive_cmds_CXX=$old_archive_cmds
  12518. reload_flag_CXX=$reload_flag
  12519. reload_cmds_CXX=$reload_cmds
  12520. no_undefined_flag_CXX=
  12521. whole_archive_flag_spec_CXX=
  12522. enable_shared_with_static_runtimes_CXX=no
  12523. # Source file extension for C++ test sources.
  12524. ac_ext=cpp
  12525. # Object file extension for compiled C++ test sources.
  12526. objext=o
  12527. objext_CXX=$objext
  12528. # No sense in running all these tests if we already determined that
  12529. # the CXX compiler isn't working. Some variables (like enable_shared)
  12530. # are currently assumed to apply to all compilers on this platform,
  12531. # and will be corrupted by setting them based on a non-working compiler.
  12532. if test yes != "$_lt_caught_CXX_error"; then
  12533. # Code to be used in simple compile tests
  12534. lt_simple_compile_test_code="int some_variable = 0;"
  12535. # Code to be used in simple link tests
  12536. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12537. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12538. # If no C compiler was specified, use CC.
  12539. LTCC=${LTCC-"$CC"}
  12540. # If no C compiler flags were specified, use CFLAGS.
  12541. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12542. # Allow CC to be a program name with arguments.
  12543. compiler=$CC
  12544. # save warnings/boilerplate of simple test code
  12545. ac_outfile=conftest.$ac_objext
  12546. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12547. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12548. _lt_compiler_boilerplate=`cat conftest.err`
  12549. $RM conftest*
  12550. ac_outfile=conftest.$ac_objext
  12551. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12552. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12553. _lt_linker_boilerplate=`cat conftest.err`
  12554. $RM -r conftest*
  12555. # Allow CC to be a program name with arguments.
  12556. lt_save_CC=$CC
  12557. lt_save_CFLAGS=$CFLAGS
  12558. lt_save_LD=$LD
  12559. lt_save_GCC=$GCC
  12560. GCC=$GXX
  12561. lt_save_with_gnu_ld=$with_gnu_ld
  12562. lt_save_path_LD=$lt_cv_path_LD
  12563. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12564. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12565. else
  12566. $as_unset lt_cv_prog_gnu_ld
  12567. fi
  12568. if test -n "${lt_cv_path_LDCXX+set}"; then
  12569. lt_cv_path_LD=$lt_cv_path_LDCXX
  12570. else
  12571. $as_unset lt_cv_path_LD
  12572. fi
  12573. test -z "${LDCXX+set}" || LD=$LDCXX
  12574. CC=${CXX-"c++"}
  12575. CFLAGS=$CXXFLAGS
  12576. compiler=$CC
  12577. compiler_CXX=$CC
  12578. func_cc_basename $compiler
  12579. cc_basename=$func_cc_basename_result
  12580. if test -n "$compiler"; then
  12581. # We don't want -fno-exception when compiling C++ code, so set the
  12582. # no_builtin_flag separately
  12583. if test yes = "$GXX"; then
  12584. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12585. else
  12586. lt_prog_compiler_no_builtin_flag_CXX=
  12587. fi
  12588. if test yes = "$GXX"; then
  12589. # Set up default GNU C++ configuration
  12590. # Check whether --with-gnu-ld was given.
  12591. if test ${with_gnu_ld+y}
  12592. then :
  12593. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12594. else $as_nop
  12595. with_gnu_ld=no
  12596. fi
  12597. ac_prog=ld
  12598. if test yes = "$GCC"; then
  12599. # Check if gcc -print-prog-name=ld gives a path.
  12600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12601. printf %s "checking for ld used by $CC... " >&6; }
  12602. case $host in
  12603. *-*-mingw*)
  12604. # gcc leaves a trailing carriage return, which upsets mingw
  12605. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12606. *)
  12607. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12608. esac
  12609. case $ac_prog in
  12610. # Accept absolute paths.
  12611. [\\/]* | ?:[\\/]*)
  12612. re_direlt='/[^/][^/]*/\.\./'
  12613. # Canonicalize the pathname of ld
  12614. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12615. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12616. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12617. done
  12618. test -z "$LD" && LD=$ac_prog
  12619. ;;
  12620. "")
  12621. # If it fails, then pretend we aren't using GCC.
  12622. ac_prog=ld
  12623. ;;
  12624. *)
  12625. # If it is relative, then search for the first ld in PATH.
  12626. with_gnu_ld=unknown
  12627. ;;
  12628. esac
  12629. elif test yes = "$with_gnu_ld"; then
  12630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12631. printf %s "checking for GNU ld... " >&6; }
  12632. else
  12633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12634. printf %s "checking for non-GNU ld... " >&6; }
  12635. fi
  12636. if test ${lt_cv_path_LD+y}
  12637. then :
  12638. printf %s "(cached) " >&6
  12639. else $as_nop
  12640. if test -z "$LD"; then
  12641. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12642. for ac_dir in $PATH; do
  12643. IFS=$lt_save_ifs
  12644. test -z "$ac_dir" && ac_dir=.
  12645. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12646. lt_cv_path_LD=$ac_dir/$ac_prog
  12647. # Check to see if the program is GNU ld. I'd rather use --version,
  12648. # but apparently some variants of GNU ld only accept -v.
  12649. # Break only if it was the GNU/non-GNU ld that we prefer.
  12650. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12651. *GNU* | *'with BFD'*)
  12652. test no != "$with_gnu_ld" && break
  12653. ;;
  12654. *)
  12655. test yes != "$with_gnu_ld" && break
  12656. ;;
  12657. esac
  12658. fi
  12659. done
  12660. IFS=$lt_save_ifs
  12661. else
  12662. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12663. fi
  12664. fi
  12665. LD=$lt_cv_path_LD
  12666. if test -n "$LD"; then
  12667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12668. printf "%s\n" "$LD" >&6; }
  12669. else
  12670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12671. printf "%s\n" "no" >&6; }
  12672. fi
  12673. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12675. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12676. if test ${lt_cv_prog_gnu_ld+y}
  12677. then :
  12678. printf %s "(cached) " >&6
  12679. else $as_nop
  12680. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12681. case `$LD -v 2>&1 </dev/null` in
  12682. *GNU* | *'with BFD'*)
  12683. lt_cv_prog_gnu_ld=yes
  12684. ;;
  12685. *)
  12686. lt_cv_prog_gnu_ld=no
  12687. ;;
  12688. esac
  12689. fi
  12690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12691. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12692. with_gnu_ld=$lt_cv_prog_gnu_ld
  12693. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12694. # archiving commands below assume that GNU ld is being used.
  12695. if test yes = "$with_gnu_ld"; then
  12696. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12697. 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'
  12698. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12699. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12700. # If archive_cmds runs LD, not CC, wlarc should be empty
  12701. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12702. # investigate it a little bit more. (MM)
  12703. wlarc='$wl'
  12704. # ancient GNU ld didn't support --whole-archive et. al.
  12705. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12706. $GREP 'no-whole-archive' > /dev/null; then
  12707. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12708. else
  12709. whole_archive_flag_spec_CXX=
  12710. fi
  12711. else
  12712. with_gnu_ld=no
  12713. wlarc=
  12714. # A generic and very simple default shared library creation
  12715. # command for GNU C++ for the case where it uses the native
  12716. # linker, instead of GNU ld. If possible, this setting should
  12717. # overridden to take advantage of the native linker features on
  12718. # the platform it is being used on.
  12719. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12720. fi
  12721. # Commands to make compiler produce verbose output that lists
  12722. # what "hidden" libraries, object files and flags are used when
  12723. # linking a shared library.
  12724. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12725. else
  12726. GXX=no
  12727. with_gnu_ld=no
  12728. wlarc=
  12729. fi
  12730. # PORTME: fill in a description of your system's C++ link characteristics
  12731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12732. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12733. ld_shlibs_CXX=yes
  12734. case $host_os in
  12735. aix3*)
  12736. # FIXME: insert proper C++ library support
  12737. ld_shlibs_CXX=no
  12738. ;;
  12739. aix[4-9]*)
  12740. if test ia64 = "$host_cpu"; then
  12741. # On IA64, the linker does run time linking by default, so we don't
  12742. # have to do anything special.
  12743. aix_use_runtimelinking=no
  12744. exp_sym_flag='-Bexport'
  12745. no_entry_flag=
  12746. else
  12747. aix_use_runtimelinking=no
  12748. # Test if we are trying to use run time linking or normal
  12749. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12750. # have runtime linking enabled, and use it for executables.
  12751. # For shared libraries, we enable/disable runtime linking
  12752. # depending on the kind of the shared library created -
  12753. # when "with_aix_soname,aix_use_runtimelinking" is:
  12754. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12755. # "aix,yes" lib.so shared, rtl:yes, for executables
  12756. # lib.a static archive
  12757. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12758. # lib.a(lib.so.V) shared, rtl:no, for executables
  12759. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12760. # lib.a(lib.so.V) shared, rtl:no
  12761. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12762. # lib.a static archive
  12763. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12764. for ld_flag in $LDFLAGS; do
  12765. case $ld_flag in
  12766. *-brtl*)
  12767. aix_use_runtimelinking=yes
  12768. break
  12769. ;;
  12770. esac
  12771. done
  12772. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12773. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12774. # so we don't have lib.a shared libs to link our executables.
  12775. # We have to force runtime linking in this case.
  12776. aix_use_runtimelinking=yes
  12777. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12778. fi
  12779. ;;
  12780. esac
  12781. exp_sym_flag='-bexport'
  12782. no_entry_flag='-bnoentry'
  12783. fi
  12784. # When large executables or shared objects are built, AIX ld can
  12785. # have problems creating the table of contents. If linking a library
  12786. # or program results in "error TOC overflow" add -mminimal-toc to
  12787. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12788. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12789. archive_cmds_CXX=''
  12790. hardcode_direct_CXX=yes
  12791. hardcode_direct_absolute_CXX=yes
  12792. hardcode_libdir_separator_CXX=':'
  12793. link_all_deplibs_CXX=yes
  12794. file_list_spec_CXX='$wl-f,'
  12795. case $with_aix_soname,$aix_use_runtimelinking in
  12796. aix,*) ;; # no import file
  12797. svr4,* | *,yes) # use import file
  12798. # The Import File defines what to hardcode.
  12799. hardcode_direct_CXX=no
  12800. hardcode_direct_absolute_CXX=no
  12801. ;;
  12802. esac
  12803. if test yes = "$GXX"; then
  12804. case $host_os in aix4.[012]|aix4.[012].*)
  12805. # We only want to do this on AIX 4.2 and lower, the check
  12806. # below for broken collect2 doesn't work under 4.3+
  12807. collect2name=`$CC -print-prog-name=collect2`
  12808. if test -f "$collect2name" &&
  12809. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12810. then
  12811. # We have reworked collect2
  12812. :
  12813. else
  12814. # We have old collect2
  12815. hardcode_direct_CXX=unsupported
  12816. # It fails to find uninstalled libraries when the uninstalled
  12817. # path is not listed in the libpath. Setting hardcode_minus_L
  12818. # to unsupported forces relinking
  12819. hardcode_minus_L_CXX=yes
  12820. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12821. hardcode_libdir_separator_CXX=
  12822. fi
  12823. esac
  12824. shared_flag='-shared'
  12825. if test yes = "$aix_use_runtimelinking"; then
  12826. shared_flag=$shared_flag' $wl-G'
  12827. fi
  12828. # Need to ensure runtime linking is disabled for the traditional
  12829. # shared library, or the linker may eventually find shared libraries
  12830. # /with/ Import File - we do not want to mix them.
  12831. shared_flag_aix='-shared'
  12832. shared_flag_svr4='-shared $wl-G'
  12833. else
  12834. # not using gcc
  12835. if test ia64 = "$host_cpu"; then
  12836. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12837. # chokes on -Wl,-G. The following line is correct:
  12838. shared_flag='-G'
  12839. else
  12840. if test yes = "$aix_use_runtimelinking"; then
  12841. shared_flag='$wl-G'
  12842. else
  12843. shared_flag='$wl-bM:SRE'
  12844. fi
  12845. shared_flag_aix='$wl-bM:SRE'
  12846. shared_flag_svr4='$wl-G'
  12847. fi
  12848. fi
  12849. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12850. # It seems that -bexpall does not export symbols beginning with
  12851. # underscore (_), so it is better to generate a list of symbols to
  12852. # export.
  12853. always_export_symbols_CXX=yes
  12854. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12855. # Warning - without using the other runtime loading flags (-brtl),
  12856. # -berok will link without error, but may produce a broken library.
  12857. # The "-G" linker flag allows undefined symbols.
  12858. no_undefined_flag_CXX='-bernotok'
  12859. # Determine the default libpath from the value encoded in an empty
  12860. # executable.
  12861. if test set = "${lt_cv_aix_libpath+set}"; then
  12862. aix_libpath=$lt_cv_aix_libpath
  12863. else
  12864. if test ${lt_cv_aix_libpath__CXX+y}
  12865. then :
  12866. printf %s "(cached) " >&6
  12867. else $as_nop
  12868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12869. /* end confdefs.h. */
  12870. int
  12871. main (void)
  12872. {
  12873. ;
  12874. return 0;
  12875. }
  12876. _ACEOF
  12877. if ac_fn_cxx_try_link "$LINENO"
  12878. then :
  12879. lt_aix_libpath_sed='
  12880. /Import File Strings/,/^$/ {
  12881. /^0/ {
  12882. s/^0 *\([^ ]*\) *$/\1/
  12883. p
  12884. }
  12885. }'
  12886. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12887. # Check for a 64-bit object if we didn't find anything.
  12888. if test -z "$lt_cv_aix_libpath__CXX"; then
  12889. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12890. fi
  12891. fi
  12892. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12893. conftest$ac_exeext conftest.$ac_ext
  12894. if test -z "$lt_cv_aix_libpath__CXX"; then
  12895. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12896. fi
  12897. fi
  12898. aix_libpath=$lt_cv_aix_libpath__CXX
  12899. fi
  12900. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12901. 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
  12902. else
  12903. if test ia64 = "$host_cpu"; then
  12904. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12905. allow_undefined_flag_CXX="-z nodefs"
  12906. 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"
  12907. else
  12908. # Determine the default libpath from the value encoded in an
  12909. # empty executable.
  12910. if test set = "${lt_cv_aix_libpath+set}"; then
  12911. aix_libpath=$lt_cv_aix_libpath
  12912. else
  12913. if test ${lt_cv_aix_libpath__CXX+y}
  12914. then :
  12915. printf %s "(cached) " >&6
  12916. else $as_nop
  12917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12918. /* end confdefs.h. */
  12919. int
  12920. main (void)
  12921. {
  12922. ;
  12923. return 0;
  12924. }
  12925. _ACEOF
  12926. if ac_fn_cxx_try_link "$LINENO"
  12927. then :
  12928. lt_aix_libpath_sed='
  12929. /Import File Strings/,/^$/ {
  12930. /^0/ {
  12931. s/^0 *\([^ ]*\) *$/\1/
  12932. p
  12933. }
  12934. }'
  12935. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12936. # Check for a 64-bit object if we didn't find anything.
  12937. if test -z "$lt_cv_aix_libpath__CXX"; then
  12938. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12939. fi
  12940. fi
  12941. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12942. conftest$ac_exeext conftest.$ac_ext
  12943. if test -z "$lt_cv_aix_libpath__CXX"; then
  12944. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12945. fi
  12946. fi
  12947. aix_libpath=$lt_cv_aix_libpath__CXX
  12948. fi
  12949. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12950. # Warning - without using the other run time loading flags,
  12951. # -berok will link without error, but may produce a broken library.
  12952. no_undefined_flag_CXX=' $wl-bernotok'
  12953. allow_undefined_flag_CXX=' $wl-berok'
  12954. if test yes = "$with_gnu_ld"; then
  12955. # We only use this code for GNU lds that support --whole-archive.
  12956. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12957. else
  12958. # Exported symbols can be pulled into shared objects from archives
  12959. whole_archive_flag_spec_CXX='$convenience'
  12960. fi
  12961. archive_cmds_need_lc_CXX=yes
  12962. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12963. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12964. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12965. if test svr4 != "$with_aix_soname"; then
  12966. # This is similar to how AIX traditionally builds its shared
  12967. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12968. 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'
  12969. fi
  12970. if test aix != "$with_aix_soname"; then
  12971. 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'
  12972. else
  12973. # used by -dlpreopen to get the symbols
  12974. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12975. fi
  12976. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12977. fi
  12978. fi
  12979. ;;
  12980. beos*)
  12981. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12982. allow_undefined_flag_CXX=unsupported
  12983. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12984. # support --undefined. This deserves some investigation. FIXME
  12985. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12986. else
  12987. ld_shlibs_CXX=no
  12988. fi
  12989. ;;
  12990. chorus*)
  12991. case $cc_basename in
  12992. *)
  12993. # FIXME: insert proper C++ library support
  12994. ld_shlibs_CXX=no
  12995. ;;
  12996. esac
  12997. ;;
  12998. cygwin* | mingw* | pw32* | cegcc*)
  12999. case $GXX,$cc_basename in
  13000. ,cl* | no,cl*)
  13001. # Native MSVC
  13002. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13003. # no search path for DLLs.
  13004. hardcode_libdir_flag_spec_CXX=' '
  13005. allow_undefined_flag_CXX=unsupported
  13006. always_export_symbols_CXX=yes
  13007. file_list_spec_CXX='@'
  13008. # Tell ltmain to make .lib files, not .a files.
  13009. libext=lib
  13010. # Tell ltmain to make .dll files, not .so files.
  13011. shrext_cmds=.dll
  13012. # FIXME: Setting linknames here is a bad hack.
  13013. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13014. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13015. cp "$export_symbols" "$output_objdir/$soname.def";
  13016. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13017. else
  13018. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13019. fi~
  13020. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13021. linknames='
  13022. # The linker will not automatically build a static lib if we build a DLL.
  13023. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13024. enable_shared_with_static_runtimes_CXX=yes
  13025. # Don't use ranlib
  13026. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13027. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13028. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13029. case $lt_outputfile in
  13030. *.exe|*.EXE) ;;
  13031. *)
  13032. lt_outputfile=$lt_outputfile.exe
  13033. lt_tool_outputfile=$lt_tool_outputfile.exe
  13034. ;;
  13035. esac~
  13036. func_to_tool_file "$lt_outputfile"~
  13037. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13038. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13039. $RM "$lt_outputfile.manifest";
  13040. fi'
  13041. ;;
  13042. *)
  13043. # g++
  13044. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13045. # as there is no search path for DLLs.
  13046. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13047. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13048. allow_undefined_flag_CXX=unsupported
  13049. always_export_symbols_CXX=no
  13050. enable_shared_with_static_runtimes_CXX=yes
  13051. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13052. 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'
  13053. # If the export-symbols file already is a .def file, use it as
  13054. # is; otherwise, prepend EXPORTS...
  13055. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13056. cp $export_symbols $output_objdir/$soname.def;
  13057. else
  13058. echo EXPORTS > $output_objdir/$soname.def;
  13059. cat $export_symbols >> $output_objdir/$soname.def;
  13060. fi~
  13061. $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'
  13062. else
  13063. ld_shlibs_CXX=no
  13064. fi
  13065. ;;
  13066. esac
  13067. ;;
  13068. darwin* | rhapsody*)
  13069. archive_cmds_need_lc_CXX=no
  13070. hardcode_direct_CXX=no
  13071. hardcode_automatic_CXX=yes
  13072. hardcode_shlibpath_var_CXX=unsupported
  13073. if test yes = "$lt_cv_ld_force_load"; then
  13074. 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\"`'
  13075. else
  13076. whole_archive_flag_spec_CXX=''
  13077. fi
  13078. link_all_deplibs_CXX=yes
  13079. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13080. case $cc_basename in
  13081. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13082. *) _lt_dar_can_shared=$GCC ;;
  13083. esac
  13084. if test yes = "$_lt_dar_can_shared"; then
  13085. output_verbose_link_cmd=func_echo_all
  13086. 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"
  13087. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13088. 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"
  13089. 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"
  13090. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13091. 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"
  13092. 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"
  13093. fi
  13094. else
  13095. ld_shlibs_CXX=no
  13096. fi
  13097. ;;
  13098. os2*)
  13099. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13100. hardcode_minus_L_CXX=yes
  13101. allow_undefined_flag_CXX=unsupported
  13102. shrext_cmds=.dll
  13103. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13104. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13105. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13106. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13107. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13108. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13109. emximp -o $lib $output_objdir/$libname.def'
  13110. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13111. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13112. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13113. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13114. prefix_cmds="$SED"~
  13115. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13116. prefix_cmds="$prefix_cmds -e 1d";
  13117. fi~
  13118. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13119. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13120. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13121. emximp -o $lib $output_objdir/$libname.def'
  13122. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13123. enable_shared_with_static_runtimes_CXX=yes
  13124. file_list_spec_CXX='@'
  13125. ;;
  13126. dgux*)
  13127. case $cc_basename in
  13128. ec++*)
  13129. # FIXME: insert proper C++ library support
  13130. ld_shlibs_CXX=no
  13131. ;;
  13132. ghcx*)
  13133. # Green Hills C++ Compiler
  13134. # FIXME: insert proper C++ library support
  13135. ld_shlibs_CXX=no
  13136. ;;
  13137. *)
  13138. # FIXME: insert proper C++ library support
  13139. ld_shlibs_CXX=no
  13140. ;;
  13141. esac
  13142. ;;
  13143. freebsd2.*)
  13144. # C++ shared libraries reported to be fairly broken before
  13145. # switch to ELF
  13146. ld_shlibs_CXX=no
  13147. ;;
  13148. freebsd-elf*)
  13149. archive_cmds_need_lc_CXX=no
  13150. ;;
  13151. freebsd* | dragonfly* | midnightbsd*)
  13152. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13153. # conventions
  13154. ld_shlibs_CXX=yes
  13155. ;;
  13156. haiku*)
  13157. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13158. link_all_deplibs_CXX=yes
  13159. ;;
  13160. hpux9*)
  13161. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13162. hardcode_libdir_separator_CXX=:
  13163. export_dynamic_flag_spec_CXX='$wl-E'
  13164. hardcode_direct_CXX=yes
  13165. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13166. # but as the default
  13167. # location of the library.
  13168. case $cc_basename in
  13169. CC*)
  13170. # FIXME: insert proper C++ library support
  13171. ld_shlibs_CXX=no
  13172. ;;
  13173. aCC*)
  13174. 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'
  13175. # Commands to make compiler produce verbose output that lists
  13176. # what "hidden" libraries, object files and flags are used when
  13177. # linking a shared library.
  13178. #
  13179. # There doesn't appear to be a way to prevent this compiler from
  13180. # explicitly linking system object files so we need to strip them
  13181. # from the output so that they don't get included in the library
  13182. # dependencies.
  13183. 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"'
  13184. ;;
  13185. *)
  13186. if test yes = "$GXX"; then
  13187. 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'
  13188. else
  13189. # FIXME: insert proper C++ library support
  13190. ld_shlibs_CXX=no
  13191. fi
  13192. ;;
  13193. esac
  13194. ;;
  13195. hpux10*|hpux11*)
  13196. if test no = "$with_gnu_ld"; then
  13197. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13198. hardcode_libdir_separator_CXX=:
  13199. case $host_cpu in
  13200. hppa*64*|ia64*)
  13201. ;;
  13202. *)
  13203. export_dynamic_flag_spec_CXX='$wl-E'
  13204. ;;
  13205. esac
  13206. fi
  13207. case $host_cpu in
  13208. hppa*64*|ia64*)
  13209. hardcode_direct_CXX=no
  13210. hardcode_shlibpath_var_CXX=no
  13211. ;;
  13212. *)
  13213. hardcode_direct_CXX=yes
  13214. hardcode_direct_absolute_CXX=yes
  13215. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13216. # but as the default
  13217. # location of the library.
  13218. ;;
  13219. esac
  13220. case $cc_basename in
  13221. CC*)
  13222. # FIXME: insert proper C++ library support
  13223. ld_shlibs_CXX=no
  13224. ;;
  13225. aCC*)
  13226. case $host_cpu in
  13227. hppa*64*)
  13228. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13229. ;;
  13230. ia64*)
  13231. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13232. ;;
  13233. *)
  13234. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13235. ;;
  13236. esac
  13237. # Commands to make compiler produce verbose output that lists
  13238. # what "hidden" libraries, object files and flags are used when
  13239. # linking a shared library.
  13240. #
  13241. # There doesn't appear to be a way to prevent this compiler from
  13242. # explicitly linking system object files so we need to strip them
  13243. # from the output so that they don't get included in the library
  13244. # dependencies.
  13245. 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"'
  13246. ;;
  13247. *)
  13248. if test yes = "$GXX"; then
  13249. if test no = "$with_gnu_ld"; then
  13250. case $host_cpu in
  13251. hppa*64*)
  13252. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13253. ;;
  13254. ia64*)
  13255. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13256. ;;
  13257. *)
  13258. 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'
  13259. ;;
  13260. esac
  13261. fi
  13262. else
  13263. # FIXME: insert proper C++ library support
  13264. ld_shlibs_CXX=no
  13265. fi
  13266. ;;
  13267. esac
  13268. ;;
  13269. interix[3-9]*)
  13270. hardcode_direct_CXX=no
  13271. hardcode_shlibpath_var_CXX=no
  13272. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13273. export_dynamic_flag_spec_CXX='$wl-E'
  13274. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13275. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13276. # default) and relocated if they conflict, which is a slow very memory
  13277. # consuming and fragmenting process. To avoid this, we pick a random,
  13278. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13279. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13280. 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'
  13281. 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'
  13282. ;;
  13283. irix5* | irix6*)
  13284. case $cc_basename in
  13285. CC*)
  13286. # SGI C++
  13287. 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'
  13288. # Archives containing C++ object files must be created using
  13289. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13290. # necessary to make sure instantiated templates are included
  13291. # in the archive.
  13292. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13293. ;;
  13294. *)
  13295. if test yes = "$GXX"; then
  13296. if test no = "$with_gnu_ld"; then
  13297. 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'
  13298. else
  13299. 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'
  13300. fi
  13301. fi
  13302. link_all_deplibs_CXX=yes
  13303. ;;
  13304. esac
  13305. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13306. hardcode_libdir_separator_CXX=:
  13307. inherit_rpath_CXX=yes
  13308. ;;
  13309. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13310. case $cc_basename in
  13311. KCC*)
  13312. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13313. # KCC will only create a shared library if the output file
  13314. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13315. # to its proper name (with version) after linking.
  13316. 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'
  13317. 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'
  13318. # Commands to make compiler produce verbose output that lists
  13319. # what "hidden" libraries, object files and flags are used when
  13320. # linking a shared library.
  13321. #
  13322. # There doesn't appear to be a way to prevent this compiler from
  13323. # explicitly linking system object files so we need to strip them
  13324. # from the output so that they don't get included in the library
  13325. # dependencies.
  13326. 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"'
  13327. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13328. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13329. # Archives containing C++ object files must be created using
  13330. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13331. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13332. ;;
  13333. icpc* | ecpc* )
  13334. # Intel C++
  13335. with_gnu_ld=yes
  13336. # version 8.0 and above of icpc choke on multiply defined symbols
  13337. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13338. # earlier do not add the objects themselves.
  13339. case `$CC -V 2>&1` in
  13340. *"Version 7."*)
  13341. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13342. 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'
  13343. ;;
  13344. *) # Version 8.0 or newer
  13345. tmp_idyn=
  13346. case $host_cpu in
  13347. ia64*) tmp_idyn=' -i_dynamic';;
  13348. esac
  13349. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13350. 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'
  13351. ;;
  13352. esac
  13353. archive_cmds_need_lc_CXX=no
  13354. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13355. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13356. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13357. ;;
  13358. pgCC* | pgcpp*)
  13359. # Portland Group C++ compiler
  13360. case `$CC -V` in
  13361. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13362. prelink_cmds_CXX='tpldir=Template.dir~
  13363. rm -rf $tpldir~
  13364. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13365. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13366. old_archive_cmds_CXX='tpldir=Template.dir~
  13367. rm -rf $tpldir~
  13368. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13369. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13370. $RANLIB $oldlib'
  13371. archive_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 -o $lib'
  13375. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13376. rm -rf $tpldir~
  13377. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13378. $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'
  13379. ;;
  13380. *) # Version 6 and above use weak symbols
  13381. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13382. 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'
  13383. ;;
  13384. esac
  13385. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13386. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13387. 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'
  13388. ;;
  13389. cxx*)
  13390. # Compaq C++
  13391. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13392. 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'
  13393. runpath_var=LD_RUN_PATH
  13394. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13395. hardcode_libdir_separator_CXX=:
  13396. # Commands to make compiler produce verbose output that lists
  13397. # what "hidden" libraries, object files and flags are used when
  13398. # linking a shared library.
  13399. #
  13400. # There doesn't appear to be a way to prevent this compiler from
  13401. # explicitly linking system object files so we need to strip them
  13402. # from the output so that they don't get included in the library
  13403. # dependencies.
  13404. 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'
  13405. ;;
  13406. xl* | mpixl* | bgxl*)
  13407. # IBM XL 8.0 on PPC, with GNU ld
  13408. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13409. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13410. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13411. if test yes = "$supports_anon_versioning"; then
  13412. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13413. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13414. echo "local: *; };" >> $output_objdir/$libname.ver~
  13415. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13416. fi
  13417. ;;
  13418. *)
  13419. case `$CC -V 2>&1 | sed 5q` in
  13420. *Sun\ C*)
  13421. # Sun C++ 5.9
  13422. no_undefined_flag_CXX=' -zdefs'
  13423. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13424. 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'
  13425. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13426. 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'
  13427. compiler_needs_object_CXX=yes
  13428. # Not sure whether something based on
  13429. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13430. # would be better.
  13431. output_verbose_link_cmd='func_echo_all'
  13432. # Archives containing C++ object files must be created using
  13433. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13434. # necessary to make sure instantiated templates are included
  13435. # in the archive.
  13436. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13437. ;;
  13438. esac
  13439. ;;
  13440. esac
  13441. ;;
  13442. lynxos*)
  13443. # FIXME: insert proper C++ library support
  13444. ld_shlibs_CXX=no
  13445. ;;
  13446. m88k*)
  13447. # FIXME: insert proper C++ library support
  13448. ld_shlibs_CXX=no
  13449. ;;
  13450. mvs*)
  13451. case $cc_basename in
  13452. cxx*)
  13453. # FIXME: insert proper C++ library support
  13454. ld_shlibs_CXX=no
  13455. ;;
  13456. *)
  13457. # FIXME: insert proper C++ library support
  13458. ld_shlibs_CXX=no
  13459. ;;
  13460. esac
  13461. ;;
  13462. netbsd*)
  13463. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13464. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13465. wlarc=
  13466. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13467. hardcode_direct_CXX=yes
  13468. hardcode_shlibpath_var_CXX=no
  13469. fi
  13470. # Workaround some broken pre-1.5 toolchains
  13471. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13472. ;;
  13473. *nto* | *qnx*)
  13474. ld_shlibs_CXX=yes
  13475. ;;
  13476. openbsd* | bitrig*)
  13477. if test -f /usr/libexec/ld.so; then
  13478. hardcode_direct_CXX=yes
  13479. hardcode_shlibpath_var_CXX=no
  13480. hardcode_direct_absolute_CXX=yes
  13481. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13482. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13483. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13484. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13485. export_dynamic_flag_spec_CXX='$wl-E'
  13486. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13487. fi
  13488. output_verbose_link_cmd=func_echo_all
  13489. else
  13490. ld_shlibs_CXX=no
  13491. fi
  13492. ;;
  13493. osf3* | osf4* | osf5*)
  13494. case $cc_basename in
  13495. KCC*)
  13496. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13497. # KCC will only create a shared library if the output file
  13498. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13499. # to its proper name (with version) after linking.
  13500. 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'
  13501. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13502. hardcode_libdir_separator_CXX=:
  13503. # Archives containing C++ object files must be created using
  13504. # the KAI C++ compiler.
  13505. case $host in
  13506. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13507. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13508. esac
  13509. ;;
  13510. RCC*)
  13511. # Rational C++ 2.4.1
  13512. # FIXME: insert proper C++ library support
  13513. ld_shlibs_CXX=no
  13514. ;;
  13515. cxx*)
  13516. case $host in
  13517. osf3*)
  13518. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13519. 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'
  13520. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13521. ;;
  13522. *)
  13523. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13524. 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'
  13525. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13526. echo "-hidden">> $lib.exp~
  13527. $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~
  13528. $RM $lib.exp'
  13529. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13530. ;;
  13531. esac
  13532. hardcode_libdir_separator_CXX=:
  13533. # Commands to make compiler produce verbose output that lists
  13534. # what "hidden" libraries, object files and flags are used when
  13535. # linking a shared library.
  13536. #
  13537. # There doesn't appear to be a way to prevent this compiler from
  13538. # explicitly linking system object files so we need to strip them
  13539. # from the output so that they don't get included in the library
  13540. # dependencies.
  13541. 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"'
  13542. ;;
  13543. *)
  13544. if test yes,no = "$GXX,$with_gnu_ld"; then
  13545. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13546. case $host in
  13547. osf3*)
  13548. 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'
  13549. ;;
  13550. *)
  13551. 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'
  13552. ;;
  13553. esac
  13554. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13555. hardcode_libdir_separator_CXX=:
  13556. # Commands to make compiler produce verbose output that lists
  13557. # what "hidden" libraries, object files and flags are used when
  13558. # linking a shared library.
  13559. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13560. else
  13561. # FIXME: insert proper C++ library support
  13562. ld_shlibs_CXX=no
  13563. fi
  13564. ;;
  13565. esac
  13566. ;;
  13567. psos*)
  13568. # FIXME: insert proper C++ library support
  13569. ld_shlibs_CXX=no
  13570. ;;
  13571. sunos4*)
  13572. case $cc_basename in
  13573. CC*)
  13574. # Sun C++ 4.x
  13575. # FIXME: insert proper C++ library support
  13576. ld_shlibs_CXX=no
  13577. ;;
  13578. lcc*)
  13579. # Lucid
  13580. # FIXME: insert proper C++ library support
  13581. ld_shlibs_CXX=no
  13582. ;;
  13583. *)
  13584. # FIXME: insert proper C++ library support
  13585. ld_shlibs_CXX=no
  13586. ;;
  13587. esac
  13588. ;;
  13589. solaris*)
  13590. case $cc_basename in
  13591. CC* | sunCC*)
  13592. # Sun C++ 4.2, 5.x and Centerline C++
  13593. archive_cmds_need_lc_CXX=yes
  13594. no_undefined_flag_CXX=' -zdefs'
  13595. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13596. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13597. $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'
  13598. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13599. hardcode_shlibpath_var_CXX=no
  13600. case $host_os in
  13601. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13602. *)
  13603. # The compiler driver will combine and reorder linker options,
  13604. # but understands '-z linker_flag'.
  13605. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13606. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13607. ;;
  13608. esac
  13609. link_all_deplibs_CXX=yes
  13610. output_verbose_link_cmd='func_echo_all'
  13611. # Archives containing C++ object files must be created using
  13612. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13613. # necessary to make sure instantiated templates are included
  13614. # in the archive.
  13615. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13616. ;;
  13617. gcx*)
  13618. # Green Hills C++ Compiler
  13619. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13620. # The C++ compiler must be used to create the archive.
  13621. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13622. ;;
  13623. *)
  13624. # GNU C++ compiler with Solaris linker
  13625. if test yes,no = "$GXX,$with_gnu_ld"; then
  13626. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13627. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13628. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13629. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13630. $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'
  13631. # Commands to make compiler produce verbose output that lists
  13632. # what "hidden" libraries, object files and flags are used when
  13633. # linking a shared library.
  13634. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13635. else
  13636. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13637. # platform.
  13638. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13639. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13640. $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'
  13641. # Commands to make compiler produce verbose output that lists
  13642. # what "hidden" libraries, object files and flags are used when
  13643. # linking a shared library.
  13644. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13645. fi
  13646. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13647. case $host_os in
  13648. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13649. *)
  13650. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13651. ;;
  13652. esac
  13653. fi
  13654. ;;
  13655. esac
  13656. ;;
  13657. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13658. no_undefined_flag_CXX='$wl-z,text'
  13659. archive_cmds_need_lc_CXX=no
  13660. hardcode_shlibpath_var_CXX=no
  13661. runpath_var='LD_RUN_PATH'
  13662. case $cc_basename in
  13663. CC*)
  13664. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13665. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13666. ;;
  13667. *)
  13668. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13669. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13670. ;;
  13671. esac
  13672. ;;
  13673. sysv5* | sco3.2v5* | sco5v6*)
  13674. # Note: We CANNOT use -z defs as we might desire, because we do not
  13675. # link with -lc, and that would cause any symbols used from libc to
  13676. # always be unresolved, which means just about no library would
  13677. # ever link correctly. If we're not using GNU ld we use -z text
  13678. # though, which does catch some bad symbols but isn't as heavy-handed
  13679. # as -z defs.
  13680. no_undefined_flag_CXX='$wl-z,text'
  13681. allow_undefined_flag_CXX='$wl-z,nodefs'
  13682. archive_cmds_need_lc_CXX=no
  13683. hardcode_shlibpath_var_CXX=no
  13684. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13685. hardcode_libdir_separator_CXX=':'
  13686. link_all_deplibs_CXX=yes
  13687. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13688. runpath_var='LD_RUN_PATH'
  13689. case $cc_basename in
  13690. CC*)
  13691. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13692. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13693. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13694. '"$old_archive_cmds_CXX"
  13695. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13696. '"$reload_cmds_CXX"
  13697. ;;
  13698. *)
  13699. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13700. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13701. ;;
  13702. esac
  13703. ;;
  13704. tandem*)
  13705. case $cc_basename in
  13706. NCC*)
  13707. # NonStop-UX NCC 3.20
  13708. # FIXME: insert proper C++ library support
  13709. ld_shlibs_CXX=no
  13710. ;;
  13711. *)
  13712. # FIXME: insert proper C++ library support
  13713. ld_shlibs_CXX=no
  13714. ;;
  13715. esac
  13716. ;;
  13717. vxworks*)
  13718. # FIXME: insert proper C++ library support
  13719. ld_shlibs_CXX=no
  13720. ;;
  13721. *)
  13722. # FIXME: insert proper C++ library support
  13723. ld_shlibs_CXX=no
  13724. ;;
  13725. esac
  13726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13727. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13728. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13729. GCC_CXX=$GXX
  13730. LD_CXX=$LD
  13731. ## CAVEAT EMPTOR:
  13732. ## There is no encapsulation within the following macros, do not change
  13733. ## the running order or otherwise move them around unless you know exactly
  13734. ## what you are doing...
  13735. # Dependencies to place before and after the object being linked:
  13736. predep_objects_CXX=
  13737. postdep_objects_CXX=
  13738. predeps_CXX=
  13739. postdeps_CXX=
  13740. compiler_lib_search_path_CXX=
  13741. cat > conftest.$ac_ext <<_LT_EOF
  13742. class Foo
  13743. {
  13744. public:
  13745. Foo (void) { a = 0; }
  13746. private:
  13747. int a;
  13748. };
  13749. _LT_EOF
  13750. _lt_libdeps_save_CFLAGS=$CFLAGS
  13751. case "$CC $CFLAGS " in #(
  13752. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13753. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13754. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13755. esac
  13756. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13757. (eval $ac_compile) 2>&5
  13758. ac_status=$?
  13759. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13760. test $ac_status = 0; }; then
  13761. # Parse the compiler output and extract the necessary
  13762. # objects, libraries and library flags.
  13763. # Sentinel used to keep track of whether or not we are before
  13764. # the conftest object file.
  13765. pre_test_object_deps_done=no
  13766. for p in `eval "$output_verbose_link_cmd"`; do
  13767. case $prev$p in
  13768. -L* | -R* | -l*)
  13769. # Some compilers place space between "-{L,R}" and the path.
  13770. # Remove the space.
  13771. if test x-L = "x$p" ||
  13772. test x-R = "x$p" ||
  13773. test x-l = "x$p"; then
  13774. prev=$p
  13775. continue
  13776. fi
  13777. # Expand the sysroot to ease extracting the directories later.
  13778. if test -z "$prev"; then
  13779. case $p in
  13780. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13781. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13782. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13783. esac
  13784. fi
  13785. case $p in
  13786. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13787. esac
  13788. if test no = "$pre_test_object_deps_done"; then
  13789. case $prev in
  13790. -L | -R)
  13791. # Internal compiler library paths should come after those
  13792. # provided the user. The postdeps already come after the
  13793. # user supplied libs so there is no need to process them.
  13794. if test -z "$compiler_lib_search_path_CXX"; then
  13795. compiler_lib_search_path_CXX=$prev$p
  13796. else
  13797. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13798. fi
  13799. ;;
  13800. # The "-l" case would never come before the object being
  13801. # linked, so don't bother handling this case.
  13802. esac
  13803. else
  13804. if test -z "$postdeps_CXX"; then
  13805. postdeps_CXX=$prev$p
  13806. else
  13807. postdeps_CXX="${postdeps_CXX} $prev$p"
  13808. fi
  13809. fi
  13810. prev=
  13811. ;;
  13812. *.lto.$objext) ;; # Ignore GCC LTO objects
  13813. *.$objext)
  13814. # This assumes that the test object file only shows up
  13815. # once in the compiler output.
  13816. if test "$p" = "conftest.$objext"; then
  13817. pre_test_object_deps_done=yes
  13818. continue
  13819. fi
  13820. if test no = "$pre_test_object_deps_done"; then
  13821. if test -z "$predep_objects_CXX"; then
  13822. predep_objects_CXX=$p
  13823. else
  13824. predep_objects_CXX="$predep_objects_CXX $p"
  13825. fi
  13826. else
  13827. if test -z "$postdep_objects_CXX"; then
  13828. postdep_objects_CXX=$p
  13829. else
  13830. postdep_objects_CXX="$postdep_objects_CXX $p"
  13831. fi
  13832. fi
  13833. ;;
  13834. *) ;; # Ignore the rest.
  13835. esac
  13836. done
  13837. # Clean up.
  13838. rm -f a.out a.exe
  13839. else
  13840. echo "libtool.m4: error: problem compiling CXX test program"
  13841. fi
  13842. $RM -f confest.$objext
  13843. CFLAGS=$_lt_libdeps_save_CFLAGS
  13844. # PORTME: override above test on systems where it is broken
  13845. case $host_os in
  13846. interix[3-9]*)
  13847. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13848. # hack all around it, let's just trust "g++" to DTRT.
  13849. predep_objects_CXX=
  13850. postdep_objects_CXX=
  13851. postdeps_CXX=
  13852. ;;
  13853. esac
  13854. case " $postdeps_CXX " in
  13855. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13856. esac
  13857. compiler_lib_search_dirs_CXX=
  13858. if test -n "${compiler_lib_search_path_CXX}"; then
  13859. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13860. fi
  13861. lt_prog_compiler_wl_CXX=
  13862. lt_prog_compiler_pic_CXX=
  13863. lt_prog_compiler_static_CXX=
  13864. # C++ specific cases for pic, static, wl, etc.
  13865. if test yes = "$GXX"; then
  13866. lt_prog_compiler_wl_CXX='-Wl,'
  13867. lt_prog_compiler_static_CXX='-static'
  13868. case $host_os in
  13869. aix*)
  13870. # All AIX code is PIC.
  13871. if test ia64 = "$host_cpu"; then
  13872. # AIX 5 now supports IA64 processor
  13873. lt_prog_compiler_static_CXX='-Bstatic'
  13874. fi
  13875. lt_prog_compiler_pic_CXX='-fPIC'
  13876. ;;
  13877. amigaos*)
  13878. case $host_cpu in
  13879. powerpc)
  13880. # see comment about AmigaOS4 .so support
  13881. lt_prog_compiler_pic_CXX='-fPIC'
  13882. ;;
  13883. m68k)
  13884. # FIXME: we need at least 68020 code to build shared libraries, but
  13885. # adding the '-m68020' flag to GCC prevents building anything better,
  13886. # like '-m68040'.
  13887. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13888. ;;
  13889. esac
  13890. ;;
  13891. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13892. # PIC is the default for these OSes.
  13893. ;;
  13894. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13895. # This hack is so that the source file can tell whether it is being
  13896. # built for inclusion in a dll (and should export symbols for example).
  13897. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13898. # (--disable-auto-import) libraries
  13899. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13900. case $host_os in
  13901. os2*)
  13902. lt_prog_compiler_static_CXX='$wl-static'
  13903. ;;
  13904. esac
  13905. ;;
  13906. darwin* | rhapsody*)
  13907. # PIC is the default on this platform
  13908. # Common symbols not allowed in MH_DYLIB files
  13909. lt_prog_compiler_pic_CXX='-fno-common'
  13910. ;;
  13911. *djgpp*)
  13912. # DJGPP does not support shared libraries at all
  13913. lt_prog_compiler_pic_CXX=
  13914. ;;
  13915. haiku*)
  13916. # PIC is the default for Haiku.
  13917. # The "-static" flag exists, but is broken.
  13918. lt_prog_compiler_static_CXX=
  13919. ;;
  13920. interix[3-9]*)
  13921. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13922. # Instead, we relocate shared libraries at runtime.
  13923. ;;
  13924. sysv4*MP*)
  13925. if test -d /usr/nec; then
  13926. lt_prog_compiler_pic_CXX=-Kconform_pic
  13927. fi
  13928. ;;
  13929. hpux*)
  13930. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13931. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13932. # sets the default TLS model and affects inlining.
  13933. case $host_cpu in
  13934. hppa*64*)
  13935. ;;
  13936. *)
  13937. lt_prog_compiler_pic_CXX='-fPIC'
  13938. ;;
  13939. esac
  13940. ;;
  13941. *qnx* | *nto*)
  13942. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13943. # it will coredump.
  13944. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13945. ;;
  13946. *)
  13947. lt_prog_compiler_pic_CXX='-fPIC'
  13948. ;;
  13949. esac
  13950. else
  13951. case $host_os in
  13952. aix[4-9]*)
  13953. # All AIX code is PIC.
  13954. if test ia64 = "$host_cpu"; then
  13955. # AIX 5 now supports IA64 processor
  13956. lt_prog_compiler_static_CXX='-Bstatic'
  13957. else
  13958. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13959. fi
  13960. ;;
  13961. chorus*)
  13962. case $cc_basename in
  13963. cxch68*)
  13964. # Green Hills C++ Compiler
  13965. # _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"
  13966. ;;
  13967. esac
  13968. ;;
  13969. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13970. # This hack is so that the source file can tell whether it is being
  13971. # built for inclusion in a dll (and should export symbols for example).
  13972. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13973. ;;
  13974. dgux*)
  13975. case $cc_basename in
  13976. ec++*)
  13977. lt_prog_compiler_pic_CXX='-KPIC'
  13978. ;;
  13979. ghcx*)
  13980. # Green Hills C++ Compiler
  13981. lt_prog_compiler_pic_CXX='-pic'
  13982. ;;
  13983. *)
  13984. ;;
  13985. esac
  13986. ;;
  13987. freebsd* | dragonfly* | midnightbsd*)
  13988. # FreeBSD uses GNU C++
  13989. ;;
  13990. hpux9* | hpux10* | hpux11*)
  13991. case $cc_basename in
  13992. CC*)
  13993. lt_prog_compiler_wl_CXX='-Wl,'
  13994. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13995. if test ia64 != "$host_cpu"; then
  13996. lt_prog_compiler_pic_CXX='+Z'
  13997. fi
  13998. ;;
  13999. aCC*)
  14000. lt_prog_compiler_wl_CXX='-Wl,'
  14001. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14002. case $host_cpu in
  14003. hppa*64*|ia64*)
  14004. # +Z the default
  14005. ;;
  14006. *)
  14007. lt_prog_compiler_pic_CXX='+Z'
  14008. ;;
  14009. esac
  14010. ;;
  14011. *)
  14012. ;;
  14013. esac
  14014. ;;
  14015. interix*)
  14016. # This is c89, which is MS Visual C++ (no shared libs)
  14017. # Anyone wants to do a port?
  14018. ;;
  14019. irix5* | irix6* | nonstopux*)
  14020. case $cc_basename in
  14021. CC*)
  14022. lt_prog_compiler_wl_CXX='-Wl,'
  14023. lt_prog_compiler_static_CXX='-non_shared'
  14024. # CC pic flag -KPIC is the default.
  14025. ;;
  14026. *)
  14027. ;;
  14028. esac
  14029. ;;
  14030. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14031. case $cc_basename in
  14032. KCC*)
  14033. # KAI C++ Compiler
  14034. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14035. lt_prog_compiler_pic_CXX='-fPIC'
  14036. ;;
  14037. ecpc* )
  14038. # old Intel C++ for x86_64, which still supported -KPIC.
  14039. lt_prog_compiler_wl_CXX='-Wl,'
  14040. lt_prog_compiler_pic_CXX='-KPIC'
  14041. lt_prog_compiler_static_CXX='-static'
  14042. ;;
  14043. icpc* )
  14044. # Intel C++, used to be incompatible with GCC.
  14045. # ICC 10 doesn't accept -KPIC any more.
  14046. lt_prog_compiler_wl_CXX='-Wl,'
  14047. lt_prog_compiler_pic_CXX='-fPIC'
  14048. lt_prog_compiler_static_CXX='-static'
  14049. ;;
  14050. pgCC* | pgcpp*)
  14051. # Portland Group C++ compiler
  14052. lt_prog_compiler_wl_CXX='-Wl,'
  14053. lt_prog_compiler_pic_CXX='-fpic'
  14054. lt_prog_compiler_static_CXX='-Bstatic'
  14055. ;;
  14056. cxx*)
  14057. # Compaq C++
  14058. # Make sure the PIC flag is empty. It appears that all Alpha
  14059. # Linux and Compaq Tru64 Unix objects are PIC.
  14060. lt_prog_compiler_pic_CXX=
  14061. lt_prog_compiler_static_CXX='-non_shared'
  14062. ;;
  14063. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14064. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14065. lt_prog_compiler_wl_CXX='-Wl,'
  14066. lt_prog_compiler_pic_CXX='-qpic'
  14067. lt_prog_compiler_static_CXX='-qstaticlink'
  14068. ;;
  14069. *)
  14070. case `$CC -V 2>&1 | sed 5q` in
  14071. *Sun\ C*)
  14072. # Sun C++ 5.9
  14073. lt_prog_compiler_pic_CXX='-KPIC'
  14074. lt_prog_compiler_static_CXX='-Bstatic'
  14075. lt_prog_compiler_wl_CXX='-Qoption ld '
  14076. ;;
  14077. esac
  14078. ;;
  14079. esac
  14080. ;;
  14081. lynxos*)
  14082. ;;
  14083. m88k*)
  14084. ;;
  14085. mvs*)
  14086. case $cc_basename in
  14087. cxx*)
  14088. lt_prog_compiler_pic_CXX='-W c,exportall'
  14089. ;;
  14090. *)
  14091. ;;
  14092. esac
  14093. ;;
  14094. netbsd*)
  14095. ;;
  14096. *qnx* | *nto*)
  14097. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14098. # it will coredump.
  14099. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14100. ;;
  14101. osf3* | osf4* | osf5*)
  14102. case $cc_basename in
  14103. KCC*)
  14104. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14105. ;;
  14106. RCC*)
  14107. # Rational C++ 2.4.1
  14108. lt_prog_compiler_pic_CXX='-pic'
  14109. ;;
  14110. cxx*)
  14111. # Digital/Compaq C++
  14112. lt_prog_compiler_wl_CXX='-Wl,'
  14113. # Make sure the PIC flag is empty. It appears that all Alpha
  14114. # Linux and Compaq Tru64 Unix objects are PIC.
  14115. lt_prog_compiler_pic_CXX=
  14116. lt_prog_compiler_static_CXX='-non_shared'
  14117. ;;
  14118. *)
  14119. ;;
  14120. esac
  14121. ;;
  14122. psos*)
  14123. ;;
  14124. solaris*)
  14125. case $cc_basename in
  14126. CC* | sunCC*)
  14127. # Sun C++ 4.2, 5.x and Centerline C++
  14128. lt_prog_compiler_pic_CXX='-KPIC'
  14129. lt_prog_compiler_static_CXX='-Bstatic'
  14130. lt_prog_compiler_wl_CXX='-Qoption ld '
  14131. ;;
  14132. gcx*)
  14133. # Green Hills C++ Compiler
  14134. lt_prog_compiler_pic_CXX='-PIC'
  14135. ;;
  14136. *)
  14137. ;;
  14138. esac
  14139. ;;
  14140. sunos4*)
  14141. case $cc_basename in
  14142. CC*)
  14143. # Sun C++ 4.x
  14144. lt_prog_compiler_pic_CXX='-pic'
  14145. lt_prog_compiler_static_CXX='-Bstatic'
  14146. ;;
  14147. lcc*)
  14148. # Lucid
  14149. lt_prog_compiler_pic_CXX='-pic'
  14150. ;;
  14151. *)
  14152. ;;
  14153. esac
  14154. ;;
  14155. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14156. case $cc_basename in
  14157. CC*)
  14158. lt_prog_compiler_wl_CXX='-Wl,'
  14159. lt_prog_compiler_pic_CXX='-KPIC'
  14160. lt_prog_compiler_static_CXX='-Bstatic'
  14161. ;;
  14162. esac
  14163. ;;
  14164. tandem*)
  14165. case $cc_basename in
  14166. NCC*)
  14167. # NonStop-UX NCC 3.20
  14168. lt_prog_compiler_pic_CXX='-KPIC'
  14169. ;;
  14170. *)
  14171. ;;
  14172. esac
  14173. ;;
  14174. vxworks*)
  14175. ;;
  14176. *)
  14177. lt_prog_compiler_can_build_shared_CXX=no
  14178. ;;
  14179. esac
  14180. fi
  14181. case $host_os in
  14182. # For platforms that do not support PIC, -DPIC is meaningless:
  14183. *djgpp*)
  14184. lt_prog_compiler_pic_CXX=
  14185. ;;
  14186. *)
  14187. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14188. ;;
  14189. esac
  14190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14191. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14192. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14193. then :
  14194. printf %s "(cached) " >&6
  14195. else $as_nop
  14196. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14197. fi
  14198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14199. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14200. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14201. #
  14202. # Check to make sure the PIC flag actually works.
  14203. #
  14204. if test -n "$lt_prog_compiler_pic_CXX"; then
  14205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14206. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14207. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14208. then :
  14209. printf %s "(cached) " >&6
  14210. else $as_nop
  14211. lt_cv_prog_compiler_pic_works_CXX=no
  14212. ac_outfile=conftest.$ac_objext
  14213. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14214. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14215. # Insert the option either (1) after the last *FLAGS variable, or
  14216. # (2) before a word containing "conftest.", or (3) at the end.
  14217. # Note that $ac_compile itself does not contain backslashes and begins
  14218. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14219. # The option is referenced via a variable to avoid confusing sed.
  14220. lt_compile=`echo "$ac_compile" | $SED \
  14221. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14222. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14223. -e 's:$: $lt_compiler_flag:'`
  14224. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14225. (eval "$lt_compile" 2>conftest.err)
  14226. ac_status=$?
  14227. cat conftest.err >&5
  14228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14229. if (exit $ac_status) && test -s "$ac_outfile"; then
  14230. # The compiler can only warn and ignore the option if not recognized
  14231. # So say no if there are warnings other than the usual output.
  14232. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14233. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14234. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14235. lt_cv_prog_compiler_pic_works_CXX=yes
  14236. fi
  14237. fi
  14238. $RM conftest*
  14239. fi
  14240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14241. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14242. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14243. case $lt_prog_compiler_pic_CXX in
  14244. "" | " "*) ;;
  14245. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14246. esac
  14247. else
  14248. lt_prog_compiler_pic_CXX=
  14249. lt_prog_compiler_can_build_shared_CXX=no
  14250. fi
  14251. fi
  14252. #
  14253. # Check to make sure the static flag actually works.
  14254. #
  14255. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14257. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14258. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14259. then :
  14260. printf %s "(cached) " >&6
  14261. else $as_nop
  14262. lt_cv_prog_compiler_static_works_CXX=no
  14263. save_LDFLAGS=$LDFLAGS
  14264. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14265. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14266. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14267. # The linker can only warn and ignore the option if not recognized
  14268. # So say no if there are warnings
  14269. if test -s conftest.err; then
  14270. # Append any errors to the config.log.
  14271. cat conftest.err 1>&5
  14272. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14273. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14274. if diff conftest.exp conftest.er2 >/dev/null; then
  14275. lt_cv_prog_compiler_static_works_CXX=yes
  14276. fi
  14277. else
  14278. lt_cv_prog_compiler_static_works_CXX=yes
  14279. fi
  14280. fi
  14281. $RM -r conftest*
  14282. LDFLAGS=$save_LDFLAGS
  14283. fi
  14284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14285. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14286. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14287. :
  14288. else
  14289. lt_prog_compiler_static_CXX=
  14290. fi
  14291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14292. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14293. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14294. then :
  14295. printf %s "(cached) " >&6
  14296. else $as_nop
  14297. lt_cv_prog_compiler_c_o_CXX=no
  14298. $RM -r conftest 2>/dev/null
  14299. mkdir conftest
  14300. cd conftest
  14301. mkdir out
  14302. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14303. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14304. # Insert the option either (1) after the last *FLAGS variable, or
  14305. # (2) before a word containing "conftest.", or (3) at the end.
  14306. # Note that $ac_compile itself does not contain backslashes and begins
  14307. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14308. lt_compile=`echo "$ac_compile" | $SED \
  14309. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14310. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14311. -e 's:$: $lt_compiler_flag:'`
  14312. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14313. (eval "$lt_compile" 2>out/conftest.err)
  14314. ac_status=$?
  14315. cat out/conftest.err >&5
  14316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14317. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14318. then
  14319. # The compiler can only warn and ignore the option if not recognized
  14320. # So say no if there are warnings
  14321. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14322. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14323. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14324. lt_cv_prog_compiler_c_o_CXX=yes
  14325. fi
  14326. fi
  14327. chmod u+w . 2>&5
  14328. $RM conftest*
  14329. # SGI C++ compiler will create directory out/ii_files/ for
  14330. # template instantiation
  14331. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14332. $RM out/* && rmdir out
  14333. cd ..
  14334. $RM -r conftest
  14335. $RM conftest*
  14336. fi
  14337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14338. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14340. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14341. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14342. then :
  14343. printf %s "(cached) " >&6
  14344. else $as_nop
  14345. lt_cv_prog_compiler_c_o_CXX=no
  14346. $RM -r conftest 2>/dev/null
  14347. mkdir conftest
  14348. cd conftest
  14349. mkdir out
  14350. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14351. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14352. # Insert the option either (1) after the last *FLAGS variable, or
  14353. # (2) before a word containing "conftest.", or (3) at the end.
  14354. # Note that $ac_compile itself does not contain backslashes and begins
  14355. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14356. lt_compile=`echo "$ac_compile" | $SED \
  14357. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14358. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14359. -e 's:$: $lt_compiler_flag:'`
  14360. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14361. (eval "$lt_compile" 2>out/conftest.err)
  14362. ac_status=$?
  14363. cat out/conftest.err >&5
  14364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14365. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14366. then
  14367. # The compiler can only warn and ignore the option if not recognized
  14368. # So say no if there are warnings
  14369. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14370. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14371. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14372. lt_cv_prog_compiler_c_o_CXX=yes
  14373. fi
  14374. fi
  14375. chmod u+w . 2>&5
  14376. $RM conftest*
  14377. # SGI C++ compiler will create directory out/ii_files/ for
  14378. # template instantiation
  14379. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14380. $RM out/* && rmdir out
  14381. cd ..
  14382. $RM -r conftest
  14383. $RM conftest*
  14384. fi
  14385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14386. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14387. hard_links=nottested
  14388. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14389. # do not overwrite the value of need_locks provided by the user
  14390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14391. printf %s "checking if we can lock with hard links... " >&6; }
  14392. hard_links=yes
  14393. $RM conftest*
  14394. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14395. touch conftest.a
  14396. ln conftest.a conftest.b 2>&5 || hard_links=no
  14397. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14399. printf "%s\n" "$hard_links" >&6; }
  14400. if test no = "$hard_links"; then
  14401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14402. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14403. need_locks=warn
  14404. fi
  14405. else
  14406. need_locks=no
  14407. fi
  14408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14409. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14410. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14411. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14412. case $host_os in
  14413. aix[4-9]*)
  14414. # If we're using GNU nm, then we don't want the "-C" option.
  14415. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14416. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14417. # weak defined symbols like other global defined symbols, whereas
  14418. # GNU nm marks them as "W".
  14419. # While the 'weak' keyword is ignored in the Export File, we need
  14420. # it in the Import File for the 'aix-soname' feature, so we have
  14421. # to replace the "-B" option with "-P" for AIX nm.
  14422. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14423. 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'
  14424. else
  14425. 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'
  14426. fi
  14427. ;;
  14428. pw32*)
  14429. export_symbols_cmds_CXX=$ltdll_cmds
  14430. ;;
  14431. cygwin* | mingw* | cegcc*)
  14432. case $cc_basename in
  14433. cl*)
  14434. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14435. ;;
  14436. *)
  14437. 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'
  14438. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14439. ;;
  14440. esac
  14441. ;;
  14442. *)
  14443. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14444. ;;
  14445. esac
  14446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14447. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14448. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14449. with_gnu_ld_CXX=$with_gnu_ld
  14450. #
  14451. # Do we need to explicitly link libc?
  14452. #
  14453. case "x$archive_cmds_need_lc_CXX" in
  14454. x|xyes)
  14455. # Assume -lc should be added
  14456. archive_cmds_need_lc_CXX=yes
  14457. if test yes,yes = "$GCC,$enable_shared"; then
  14458. case $archive_cmds_CXX in
  14459. *'~'*)
  14460. # FIXME: we may have to deal with multi-command sequences.
  14461. ;;
  14462. '$CC '*)
  14463. # Test whether the compiler implicitly links with -lc since on some
  14464. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14465. # to ld, don't add -lc before -lgcc.
  14466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14467. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14468. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14469. then :
  14470. printf %s "(cached) " >&6
  14471. else $as_nop
  14472. $RM conftest*
  14473. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14474. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14475. (eval $ac_compile) 2>&5
  14476. ac_status=$?
  14477. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14478. test $ac_status = 0; } 2>conftest.err; then
  14479. soname=conftest
  14480. lib=conftest
  14481. libobjs=conftest.$ac_objext
  14482. deplibs=
  14483. wl=$lt_prog_compiler_wl_CXX
  14484. pic_flag=$lt_prog_compiler_pic_CXX
  14485. compiler_flags=-v
  14486. linker_flags=-v
  14487. verstring=
  14488. output_objdir=.
  14489. libname=conftest
  14490. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14491. allow_undefined_flag_CXX=
  14492. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14493. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14494. ac_status=$?
  14495. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14496. test $ac_status = 0; }
  14497. then
  14498. lt_cv_archive_cmds_need_lc_CXX=no
  14499. else
  14500. lt_cv_archive_cmds_need_lc_CXX=yes
  14501. fi
  14502. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14503. else
  14504. cat conftest.err 1>&5
  14505. fi
  14506. $RM conftest*
  14507. fi
  14508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14509. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14510. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14511. ;;
  14512. esac
  14513. fi
  14514. ;;
  14515. esac
  14516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14517. printf %s "checking dynamic linker characteristics... " >&6; }
  14518. library_names_spec=
  14519. libname_spec='lib$name'
  14520. soname_spec=
  14521. shrext_cmds=.so
  14522. postinstall_cmds=
  14523. postuninstall_cmds=
  14524. finish_cmds=
  14525. finish_eval=
  14526. shlibpath_var=
  14527. shlibpath_overrides_runpath=unknown
  14528. version_type=none
  14529. dynamic_linker="$host_os ld.so"
  14530. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14531. need_lib_prefix=unknown
  14532. hardcode_into_libs=no
  14533. # when you set need_version to no, make sure it does not cause -set_version
  14534. # flags to be left without arguments
  14535. need_version=unknown
  14536. case $host_os in
  14537. aix3*)
  14538. version_type=linux # correct to gnu/linux during the next big refactor
  14539. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14540. shlibpath_var=LIBPATH
  14541. # AIX 3 has no versioning support, so we append a major version to the name.
  14542. soname_spec='$libname$release$shared_ext$major'
  14543. ;;
  14544. aix[4-9]*)
  14545. version_type=linux # correct to gnu/linux during the next big refactor
  14546. need_lib_prefix=no
  14547. need_version=no
  14548. hardcode_into_libs=yes
  14549. if test ia64 = "$host_cpu"; then
  14550. # AIX 5 supports IA64
  14551. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14552. shlibpath_var=LD_LIBRARY_PATH
  14553. else
  14554. # With GCC up to 2.95.x, collect2 would create an import file
  14555. # for dependence libraries. The import file would start with
  14556. # the line '#! .'. This would cause the generated library to
  14557. # depend on '.', always an invalid library. This was fixed in
  14558. # development snapshots of GCC prior to 3.0.
  14559. case $host_os in
  14560. aix4 | aix4.[01] | aix4.[01].*)
  14561. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14562. echo ' yes '
  14563. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14564. :
  14565. else
  14566. can_build_shared=no
  14567. fi
  14568. ;;
  14569. esac
  14570. # Using Import Files as archive members, it is possible to support
  14571. # filename-based versioning of shared library archives on AIX. While
  14572. # this would work for both with and without runtime linking, it will
  14573. # prevent static linking of such archives. So we do filename-based
  14574. # shared library versioning with .so extension only, which is used
  14575. # when both runtime linking and shared linking is enabled.
  14576. # Unfortunately, runtime linking may impact performance, so we do
  14577. # not want this to be the default eventually. Also, we use the
  14578. # versioned .so libs for executables only if there is the -brtl
  14579. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14580. # To allow for filename-based versioning support, we need to create
  14581. # libNAME.so.V as an archive file, containing:
  14582. # *) an Import File, referring to the versioned filename of the
  14583. # archive as well as the shared archive member, telling the
  14584. # bitwidth (32 or 64) of that shared object, and providing the
  14585. # list of exported symbols of that shared object, eventually
  14586. # decorated with the 'weak' keyword
  14587. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14588. # it being seen by the linker.
  14589. # At run time we better use the real file rather than another symlink,
  14590. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14591. case $with_aix_soname,$aix_use_runtimelinking in
  14592. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14593. # soname into executable. Probably we can add versioning support to
  14594. # collect2, so additional links can be useful in future.
  14595. aix,yes) # traditional libtool
  14596. dynamic_linker='AIX unversionable lib.so'
  14597. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14598. # instead of lib<name>.a to let people know that these are not
  14599. # typical AIX shared libraries.
  14600. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14601. ;;
  14602. aix,no) # traditional AIX only
  14603. dynamic_linker='AIX lib.a(lib.so.V)'
  14604. # We preserve .a as extension for shared libraries through AIX4.2
  14605. # and later when we are not doing run time linking.
  14606. library_names_spec='$libname$release.a $libname.a'
  14607. soname_spec='$libname$release$shared_ext$major'
  14608. ;;
  14609. svr4,*) # full svr4 only
  14610. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14611. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14612. # We do not specify a path in Import Files, so LIBPATH fires.
  14613. shlibpath_overrides_runpath=yes
  14614. ;;
  14615. *,yes) # both, prefer svr4
  14616. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14617. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14618. # unpreferred sharedlib libNAME.a needs extra handling
  14619. 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"'
  14620. 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"'
  14621. # We do not specify a path in Import Files, so LIBPATH fires.
  14622. shlibpath_overrides_runpath=yes
  14623. ;;
  14624. *,no) # both, prefer aix
  14625. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14626. library_names_spec='$libname$release.a $libname.a'
  14627. soname_spec='$libname$release$shared_ext$major'
  14628. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14629. 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)'
  14630. 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"'
  14631. ;;
  14632. esac
  14633. shlibpath_var=LIBPATH
  14634. fi
  14635. ;;
  14636. amigaos*)
  14637. case $host_cpu in
  14638. powerpc)
  14639. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14640. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14641. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14642. ;;
  14643. m68k)
  14644. library_names_spec='$libname.ixlibrary $libname.a'
  14645. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14646. 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'
  14647. ;;
  14648. esac
  14649. ;;
  14650. beos*)
  14651. library_names_spec='$libname$shared_ext'
  14652. dynamic_linker="$host_os ld.so"
  14653. shlibpath_var=LIBRARY_PATH
  14654. ;;
  14655. bsdi[45]*)
  14656. version_type=linux # correct to gnu/linux during the next big refactor
  14657. need_version=no
  14658. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14659. soname_spec='$libname$release$shared_ext$major'
  14660. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14661. shlibpath_var=LD_LIBRARY_PATH
  14662. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14663. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14664. # the default ld.so.conf also contains /usr/contrib/lib and
  14665. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14666. # libtool to hard-code these into programs
  14667. ;;
  14668. cygwin* | mingw* | pw32* | cegcc*)
  14669. version_type=windows
  14670. shrext_cmds=.dll
  14671. need_version=no
  14672. need_lib_prefix=no
  14673. case $GCC,$cc_basename in
  14674. yes,*)
  14675. # gcc
  14676. library_names_spec='$libname.dll.a'
  14677. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14678. postinstall_cmds='base_file=`basename \$file`~
  14679. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14680. dldir=$destdir/`dirname \$dlpath`~
  14681. test -d \$dldir || mkdir -p \$dldir~
  14682. $install_prog $dir/$dlname \$dldir/$dlname~
  14683. chmod a+x \$dldir/$dlname~
  14684. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14685. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14686. fi'
  14687. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14688. dlpath=$dir/\$dldll~
  14689. $RM \$dlpath'
  14690. shlibpath_overrides_runpath=yes
  14691. case $host_os in
  14692. cygwin*)
  14693. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14694. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14695. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14696. ;;
  14697. mingw* | cegcc*)
  14698. # MinGW DLLs use traditional 'lib' prefix
  14699. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14700. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14701. ;;
  14702. pw32*)
  14703. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14704. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14705. ;;
  14706. esac
  14707. dynamic_linker='Win32 ld.exe'
  14708. ;;
  14709. *,cl*)
  14710. # Native MSVC
  14711. libname_spec='$name'
  14712. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14713. library_names_spec='$libname.dll.lib'
  14714. case $build_os in
  14715. mingw*)
  14716. sys_lib_search_path_spec=
  14717. lt_save_ifs=$IFS
  14718. IFS=';'
  14719. for lt_path in $LIB
  14720. do
  14721. IFS=$lt_save_ifs
  14722. # Let DOS variable expansion print the short 8.3 style file name.
  14723. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14724. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14725. done
  14726. IFS=$lt_save_ifs
  14727. # Convert to MSYS style.
  14728. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14729. ;;
  14730. cygwin*)
  14731. # Convert to unix form, then to dos form, then back to unix form
  14732. # but this time dos style (no spaces!) so that the unix form looks
  14733. # like /cygdrive/c/PROGRA~1:/cygdr...
  14734. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14735. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14736. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14737. ;;
  14738. *)
  14739. sys_lib_search_path_spec=$LIB
  14740. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14741. # It is most probably a Windows format PATH.
  14742. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14743. else
  14744. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14745. fi
  14746. # FIXME: find the short name or the path components, as spaces are
  14747. # common. (e.g. "Program Files" -> "PROGRA~1")
  14748. ;;
  14749. esac
  14750. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14751. postinstall_cmds='base_file=`basename \$file`~
  14752. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14753. dldir=$destdir/`dirname \$dlpath`~
  14754. test -d \$dldir || mkdir -p \$dldir~
  14755. $install_prog $dir/$dlname \$dldir/$dlname'
  14756. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14757. dlpath=$dir/\$dldll~
  14758. $RM \$dlpath'
  14759. shlibpath_overrides_runpath=yes
  14760. dynamic_linker='Win32 link.exe'
  14761. ;;
  14762. *)
  14763. # Assume MSVC wrapper
  14764. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14765. dynamic_linker='Win32 ld.exe'
  14766. ;;
  14767. esac
  14768. # FIXME: first we should search . and the directory the executable is in
  14769. shlibpath_var=PATH
  14770. ;;
  14771. darwin* | rhapsody*)
  14772. dynamic_linker="$host_os dyld"
  14773. version_type=darwin
  14774. need_lib_prefix=no
  14775. need_version=no
  14776. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14777. soname_spec='$libname$release$major$shared_ext'
  14778. shlibpath_overrides_runpath=yes
  14779. shlibpath_var=DYLD_LIBRARY_PATH
  14780. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14781. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14782. ;;
  14783. dgux*)
  14784. version_type=linux # correct to gnu/linux during the next big refactor
  14785. need_lib_prefix=no
  14786. need_version=no
  14787. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14788. soname_spec='$libname$release$shared_ext$major'
  14789. shlibpath_var=LD_LIBRARY_PATH
  14790. ;;
  14791. freebsd* | dragonfly* | midnightbsd*)
  14792. # DragonFly does not have aout. When/if they implement a new
  14793. # versioning mechanism, adjust this.
  14794. if test -x /usr/bin/objformat; then
  14795. objformat=`/usr/bin/objformat`
  14796. else
  14797. case $host_os in
  14798. freebsd[23].*) objformat=aout ;;
  14799. *) objformat=elf ;;
  14800. esac
  14801. fi
  14802. version_type=freebsd-$objformat
  14803. case $version_type in
  14804. freebsd-elf*)
  14805. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14806. soname_spec='$libname$release$shared_ext$major'
  14807. need_version=no
  14808. need_lib_prefix=no
  14809. ;;
  14810. freebsd-*)
  14811. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14812. need_version=yes
  14813. ;;
  14814. esac
  14815. shlibpath_var=LD_LIBRARY_PATH
  14816. case $host_os in
  14817. freebsd2.*)
  14818. shlibpath_overrides_runpath=yes
  14819. ;;
  14820. freebsd3.[01]* | freebsdelf3.[01]*)
  14821. shlibpath_overrides_runpath=yes
  14822. hardcode_into_libs=yes
  14823. ;;
  14824. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14825. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14826. shlibpath_overrides_runpath=no
  14827. hardcode_into_libs=yes
  14828. ;;
  14829. *) # from 4.6 on, and DragonFly
  14830. shlibpath_overrides_runpath=yes
  14831. hardcode_into_libs=yes
  14832. ;;
  14833. esac
  14834. ;;
  14835. haiku*)
  14836. version_type=linux # correct to gnu/linux during the next big refactor
  14837. need_lib_prefix=no
  14838. need_version=no
  14839. dynamic_linker="$host_os runtime_loader"
  14840. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14841. soname_spec='$libname$release$shared_ext$major'
  14842. shlibpath_var=LIBRARY_PATH
  14843. shlibpath_overrides_runpath=no
  14844. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14845. hardcode_into_libs=yes
  14846. ;;
  14847. hpux9* | hpux10* | hpux11*)
  14848. # Give a soname corresponding to the major version so that dld.sl refuses to
  14849. # link against other versions.
  14850. version_type=sunos
  14851. need_lib_prefix=no
  14852. need_version=no
  14853. case $host_cpu in
  14854. ia64*)
  14855. shrext_cmds='.so'
  14856. hardcode_into_libs=yes
  14857. dynamic_linker="$host_os dld.so"
  14858. shlibpath_var=LD_LIBRARY_PATH
  14859. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14860. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14861. soname_spec='$libname$release$shared_ext$major'
  14862. if test 32 = "$HPUX_IA64_MODE"; then
  14863. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14864. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14865. else
  14866. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14867. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14868. fi
  14869. ;;
  14870. hppa*64*)
  14871. shrext_cmds='.sl'
  14872. hardcode_into_libs=yes
  14873. dynamic_linker="$host_os dld.sl"
  14874. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14875. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14876. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14877. soname_spec='$libname$release$shared_ext$major'
  14878. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14879. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14880. ;;
  14881. *)
  14882. shrext_cmds='.sl'
  14883. dynamic_linker="$host_os dld.sl"
  14884. shlibpath_var=SHLIB_PATH
  14885. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14886. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14887. soname_spec='$libname$release$shared_ext$major'
  14888. ;;
  14889. esac
  14890. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14891. postinstall_cmds='chmod 555 $lib'
  14892. # or fails outright, so override atomically:
  14893. install_override_mode=555
  14894. ;;
  14895. interix[3-9]*)
  14896. version_type=linux # correct to gnu/linux during the next big refactor
  14897. need_lib_prefix=no
  14898. need_version=no
  14899. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14900. soname_spec='$libname$release$shared_ext$major'
  14901. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14902. shlibpath_var=LD_LIBRARY_PATH
  14903. shlibpath_overrides_runpath=no
  14904. hardcode_into_libs=yes
  14905. ;;
  14906. irix5* | irix6* | nonstopux*)
  14907. case $host_os in
  14908. nonstopux*) version_type=nonstopux ;;
  14909. *)
  14910. if test yes = "$lt_cv_prog_gnu_ld"; then
  14911. version_type=linux # correct to gnu/linux during the next big refactor
  14912. else
  14913. version_type=irix
  14914. fi ;;
  14915. esac
  14916. need_lib_prefix=no
  14917. need_version=no
  14918. soname_spec='$libname$release$shared_ext$major'
  14919. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14920. case $host_os in
  14921. irix5* | nonstopux*)
  14922. libsuff= shlibsuff=
  14923. ;;
  14924. *)
  14925. case $LD in # libtool.m4 will add one of these switches to LD
  14926. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14927. libsuff= shlibsuff= libmagic=32-bit;;
  14928. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14929. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14930. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14931. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14932. *) libsuff= shlibsuff= libmagic=never-match;;
  14933. esac
  14934. ;;
  14935. esac
  14936. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14937. shlibpath_overrides_runpath=no
  14938. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14939. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14940. hardcode_into_libs=yes
  14941. ;;
  14942. # No shared lib support for Linux oldld, aout, or coff.
  14943. linux*oldld* | linux*aout* | linux*coff*)
  14944. dynamic_linker=no
  14945. ;;
  14946. linux*android*)
  14947. version_type=none # Android doesn't support versioned libraries.
  14948. need_lib_prefix=no
  14949. need_version=no
  14950. library_names_spec='$libname$release$shared_ext'
  14951. soname_spec='$libname$release$shared_ext'
  14952. finish_cmds=
  14953. shlibpath_var=LD_LIBRARY_PATH
  14954. shlibpath_overrides_runpath=yes
  14955. # This implies no fast_install, which is unacceptable.
  14956. # Some rework will be needed to allow for fast_install
  14957. # before this can be enabled.
  14958. hardcode_into_libs=yes
  14959. dynamic_linker='Android linker'
  14960. # Don't embed -rpath directories since the linker doesn't support them.
  14961. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14962. ;;
  14963. # This must be glibc/ELF.
  14964. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14965. version_type=linux # correct to gnu/linux during the next big refactor
  14966. need_lib_prefix=no
  14967. need_version=no
  14968. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14969. soname_spec='$libname$release$shared_ext$major'
  14970. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14971. shlibpath_var=LD_LIBRARY_PATH
  14972. shlibpath_overrides_runpath=no
  14973. # Some binutils ld are patched to set DT_RUNPATH
  14974. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14975. then :
  14976. printf %s "(cached) " >&6
  14977. else $as_nop
  14978. lt_cv_shlibpath_overrides_runpath=no
  14979. save_LDFLAGS=$LDFLAGS
  14980. save_libdir=$libdir
  14981. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14982. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14984. /* end confdefs.h. */
  14985. int
  14986. main (void)
  14987. {
  14988. ;
  14989. return 0;
  14990. }
  14991. _ACEOF
  14992. if ac_fn_cxx_try_link "$LINENO"
  14993. then :
  14994. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14995. then :
  14996. lt_cv_shlibpath_overrides_runpath=yes
  14997. fi
  14998. fi
  14999. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15000. conftest$ac_exeext conftest.$ac_ext
  15001. LDFLAGS=$save_LDFLAGS
  15002. libdir=$save_libdir
  15003. fi
  15004. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15005. # This implies no fast_install, which is unacceptable.
  15006. # Some rework will be needed to allow for fast_install
  15007. # before this can be enabled.
  15008. hardcode_into_libs=yes
  15009. # Add ABI-specific directories to the system library path.
  15010. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  15011. # Ideally, we could use ldconfig to report *all* directores which are
  15012. # searched for libraries, however this is still not possible. Aside from not
  15013. # being certain /sbin/ldconfig is available, command
  15014. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15015. # even though it is searched at run-time. Try to do the best guess by
  15016. # appending ld.so.conf contents (and includes) to the search path.
  15017. if test -f /etc/ld.so.conf; then
  15018. 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' ' '`
  15019. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15020. fi
  15021. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15022. # powerpc, because MkLinux only supported shared libraries with the
  15023. # GNU dynamic linker. Since this was broken with cross compilers,
  15024. # most powerpc-linux boxes support dynamic linking these days and
  15025. # people can always --disable-shared, the test was removed, and we
  15026. # assume the GNU/Linux dynamic linker is in use.
  15027. dynamic_linker='GNU/Linux ld.so'
  15028. ;;
  15029. netbsd*)
  15030. version_type=sunos
  15031. need_lib_prefix=no
  15032. need_version=no
  15033. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15034. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15035. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15036. dynamic_linker='NetBSD (a.out) ld.so'
  15037. else
  15038. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15039. soname_spec='$libname$release$shared_ext$major'
  15040. dynamic_linker='NetBSD ld.elf_so'
  15041. fi
  15042. shlibpath_var=LD_LIBRARY_PATH
  15043. shlibpath_overrides_runpath=yes
  15044. hardcode_into_libs=yes
  15045. ;;
  15046. newsos6)
  15047. version_type=linux # correct to gnu/linux during the next big refactor
  15048. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15049. shlibpath_var=LD_LIBRARY_PATH
  15050. shlibpath_overrides_runpath=yes
  15051. ;;
  15052. *nto* | *qnx*)
  15053. version_type=qnx
  15054. need_lib_prefix=no
  15055. need_version=no
  15056. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15057. soname_spec='$libname$release$shared_ext$major'
  15058. shlibpath_var=LD_LIBRARY_PATH
  15059. shlibpath_overrides_runpath=no
  15060. hardcode_into_libs=yes
  15061. dynamic_linker='ldqnx.so'
  15062. ;;
  15063. openbsd* | bitrig*)
  15064. version_type=sunos
  15065. sys_lib_dlsearch_path_spec=/usr/lib
  15066. need_lib_prefix=no
  15067. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15068. need_version=no
  15069. else
  15070. need_version=yes
  15071. fi
  15072. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15073. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15074. shlibpath_var=LD_LIBRARY_PATH
  15075. shlibpath_overrides_runpath=yes
  15076. ;;
  15077. os2*)
  15078. libname_spec='$name'
  15079. shrext_cmds=.dll
  15080. need_lib_prefix=no
  15081. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15082. # SDL customization: removed versioning support.
  15083. # version_type=windows
  15084. # need_version=no
  15085. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15086. # v=$($ECHO $release$versuffix | tr -d .-);
  15087. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15088. # $ECHO $n$v`$shared_ext'
  15089. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15090. library_names_spec='${libname}_dll.$libext'
  15091. dynamic_linker='OS/2 ld.exe'
  15092. shlibpath_var=BEGINLIBPATH
  15093. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15094. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15095. postinstall_cmds='base_file=`basename \$file`~
  15096. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15097. dldir=$destdir/`dirname \$dlpath`~
  15098. test -d \$dldir || mkdir -p \$dldir~
  15099. $install_prog $dir/$dlname \$dldir/$dlname~
  15100. chmod a+x \$dldir/$dlname~
  15101. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15102. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15103. fi'
  15104. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15105. dlpath=$dir/\$dldll~
  15106. $RM \$dlpath'
  15107. ;;
  15108. osf3* | osf4* | osf5*)
  15109. version_type=osf
  15110. need_lib_prefix=no
  15111. need_version=no
  15112. soname_spec='$libname$release$shared_ext$major'
  15113. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15114. shlibpath_var=LD_LIBRARY_PATH
  15115. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15116. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15117. ;;
  15118. rdos*)
  15119. dynamic_linker=no
  15120. ;;
  15121. solaris*)
  15122. version_type=linux # correct to gnu/linux during the next big refactor
  15123. need_lib_prefix=no
  15124. need_version=no
  15125. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15126. soname_spec='$libname$release$shared_ext$major'
  15127. shlibpath_var=LD_LIBRARY_PATH
  15128. shlibpath_overrides_runpath=yes
  15129. hardcode_into_libs=yes
  15130. # ldd complains unless libraries are executable
  15131. postinstall_cmds='chmod +x $lib'
  15132. ;;
  15133. sunos4*)
  15134. version_type=sunos
  15135. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15136. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15137. shlibpath_var=LD_LIBRARY_PATH
  15138. shlibpath_overrides_runpath=yes
  15139. if test yes = "$with_gnu_ld"; then
  15140. need_lib_prefix=no
  15141. fi
  15142. need_version=yes
  15143. ;;
  15144. sysv4 | sysv4.3*)
  15145. version_type=linux # correct to gnu/linux during the next big refactor
  15146. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15147. soname_spec='$libname$release$shared_ext$major'
  15148. shlibpath_var=LD_LIBRARY_PATH
  15149. case $host_vendor in
  15150. sni)
  15151. shlibpath_overrides_runpath=no
  15152. need_lib_prefix=no
  15153. runpath_var=LD_RUN_PATH
  15154. ;;
  15155. siemens)
  15156. need_lib_prefix=no
  15157. ;;
  15158. motorola)
  15159. need_lib_prefix=no
  15160. need_version=no
  15161. shlibpath_overrides_runpath=no
  15162. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15163. ;;
  15164. esac
  15165. ;;
  15166. sysv4*MP*)
  15167. if test -d /usr/nec; then
  15168. version_type=linux # correct to gnu/linux during the next big refactor
  15169. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15170. soname_spec='$libname$shared_ext.$major'
  15171. shlibpath_var=LD_LIBRARY_PATH
  15172. fi
  15173. ;;
  15174. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15175. version_type=sco
  15176. need_lib_prefix=no
  15177. need_version=no
  15178. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15179. soname_spec='$libname$release$shared_ext$major'
  15180. shlibpath_var=LD_LIBRARY_PATH
  15181. shlibpath_overrides_runpath=yes
  15182. hardcode_into_libs=yes
  15183. if test yes = "$with_gnu_ld"; then
  15184. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15185. else
  15186. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15187. case $host_os in
  15188. sco3.2v5*)
  15189. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15190. ;;
  15191. esac
  15192. fi
  15193. sys_lib_dlsearch_path_spec='/usr/lib'
  15194. ;;
  15195. tpf*)
  15196. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15197. version_type=linux # correct to gnu/linux during the next big refactor
  15198. need_lib_prefix=no
  15199. need_version=no
  15200. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15201. shlibpath_var=LD_LIBRARY_PATH
  15202. shlibpath_overrides_runpath=no
  15203. hardcode_into_libs=yes
  15204. ;;
  15205. uts4*)
  15206. version_type=linux # correct to gnu/linux during the next big refactor
  15207. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15208. soname_spec='$libname$release$shared_ext$major'
  15209. shlibpath_var=LD_LIBRARY_PATH
  15210. ;;
  15211. *)
  15212. dynamic_linker=no
  15213. ;;
  15214. esac
  15215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15216. printf "%s\n" "$dynamic_linker" >&6; }
  15217. test no = "$dynamic_linker" && can_build_shared=no
  15218. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15219. if test yes = "$GCC"; then
  15220. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15221. fi
  15222. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15223. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15224. fi
  15225. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15226. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15227. fi
  15228. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15229. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15230. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15231. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15232. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15233. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15235. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15236. hardcode_action_CXX=
  15237. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15238. test -n "$runpath_var_CXX" ||
  15239. test yes = "$hardcode_automatic_CXX"; then
  15240. # We can hardcode non-existent directories.
  15241. if test no != "$hardcode_direct_CXX" &&
  15242. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15243. # have to relink, otherwise we might link with an installed library
  15244. # when we should be linking with a yet-to-be-installed one
  15245. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15246. test no != "$hardcode_minus_L_CXX"; then
  15247. # Linking always hardcodes the temporary library directory.
  15248. hardcode_action_CXX=relink
  15249. else
  15250. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15251. hardcode_action_CXX=immediate
  15252. fi
  15253. else
  15254. # We cannot hardcode anything, or else we can only hardcode existing
  15255. # directories.
  15256. hardcode_action_CXX=unsupported
  15257. fi
  15258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15259. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15260. if test relink = "$hardcode_action_CXX" ||
  15261. test yes = "$inherit_rpath_CXX"; then
  15262. # Fast installation is not supported
  15263. enable_fast_install=no
  15264. elif test yes = "$shlibpath_overrides_runpath" ||
  15265. test no = "$enable_shared"; then
  15266. # Fast installation is not necessary
  15267. enable_fast_install=needless
  15268. fi
  15269. fi # test -n "$compiler"
  15270. CC=$lt_save_CC
  15271. CFLAGS=$lt_save_CFLAGS
  15272. LDCXX=$LD
  15273. LD=$lt_save_LD
  15274. GCC=$lt_save_GCC
  15275. with_gnu_ld=$lt_save_with_gnu_ld
  15276. lt_cv_path_LDCXX=$lt_cv_path_LD
  15277. lt_cv_path_LD=$lt_save_path_LD
  15278. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15279. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15280. fi # test yes != "$_lt_caught_CXX_error"
  15281. ac_ext=c
  15282. ac_cpp='$CPP $CPPFLAGS'
  15283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15287. printf %s "checking for egrep... " >&6; }
  15288. if test ${ac_cv_path_EGREP+y}
  15289. then :
  15290. printf %s "(cached) " >&6
  15291. else $as_nop
  15292. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15293. then ac_cv_path_EGREP="$GREP -E"
  15294. else
  15295. if test -z "$EGREP"; then
  15296. ac_path_EGREP_found=false
  15297. # Loop through the user's path and test for each of PROGNAME-LIST
  15298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15299. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15300. do
  15301. IFS=$as_save_IFS
  15302. case $as_dir in #(((
  15303. '') as_dir=./ ;;
  15304. */) ;;
  15305. *) as_dir=$as_dir/ ;;
  15306. esac
  15307. for ac_prog in egrep
  15308. do
  15309. for ac_exec_ext in '' $ac_executable_extensions; do
  15310. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15311. as_fn_executable_p "$ac_path_EGREP" || continue
  15312. # Check for GNU ac_path_EGREP and select it if it is found.
  15313. # Check for GNU $ac_path_EGREP
  15314. case `"$ac_path_EGREP" --version 2>&1` in
  15315. *GNU*)
  15316. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15317. *)
  15318. ac_count=0
  15319. printf %s 0123456789 >"conftest.in"
  15320. while :
  15321. do
  15322. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15323. mv "conftest.tmp" "conftest.in"
  15324. cp "conftest.in" "conftest.nl"
  15325. printf "%s\n" 'EGREP' >> "conftest.nl"
  15326. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15327. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15328. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15329. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15330. # Best one so far, save it but keep looking for a better one
  15331. ac_cv_path_EGREP="$ac_path_EGREP"
  15332. ac_path_EGREP_max=$ac_count
  15333. fi
  15334. # 10*(2^10) chars as input seems more than enough
  15335. test $ac_count -gt 10 && break
  15336. done
  15337. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15338. esac
  15339. $ac_path_EGREP_found && break 3
  15340. done
  15341. done
  15342. done
  15343. IFS=$as_save_IFS
  15344. if test -z "$ac_cv_path_EGREP"; then
  15345. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15346. fi
  15347. else
  15348. ac_cv_path_EGREP=$EGREP
  15349. fi
  15350. fi
  15351. fi
  15352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15353. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15354. EGREP="$ac_cv_path_EGREP"
  15355. # Find a good install program. We prefer a C program (faster),
  15356. # so one script is as good as another. But avoid the broken or
  15357. # incompatible versions:
  15358. # SysV /etc/install, /usr/sbin/install
  15359. # SunOS /usr/etc/install
  15360. # IRIX /sbin/install
  15361. # AIX /bin/install
  15362. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15363. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15364. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15365. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15366. # OS/2's system install, which has a completely different semantic
  15367. # ./install, which can be erroneously created by make from ./install.sh.
  15368. # Reject install programs that cannot install multiple files.
  15369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15370. printf %s "checking for a BSD-compatible install... " >&6; }
  15371. if test -z "$INSTALL"; then
  15372. if test ${ac_cv_path_install+y}
  15373. then :
  15374. printf %s "(cached) " >&6
  15375. else $as_nop
  15376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15377. for as_dir in $PATH
  15378. do
  15379. IFS=$as_save_IFS
  15380. case $as_dir in #(((
  15381. '') as_dir=./ ;;
  15382. */) ;;
  15383. *) as_dir=$as_dir/ ;;
  15384. esac
  15385. # Account for fact that we put trailing slashes in our PATH walk.
  15386. case $as_dir in #((
  15387. ./ | /[cC]/* | \
  15388. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15389. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15390. /usr/ucb/* ) ;;
  15391. *)
  15392. # OSF1 and SCO ODT 3.0 have their own names for install.
  15393. # Don't use installbsd from OSF since it installs stuff as root
  15394. # by default.
  15395. for ac_prog in ginstall scoinst install; do
  15396. for ac_exec_ext in '' $ac_executable_extensions; do
  15397. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15398. if test $ac_prog = install &&
  15399. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15400. # AIX install. It has an incompatible calling convention.
  15401. :
  15402. elif test $ac_prog = install &&
  15403. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15404. # program-specific install script used by HP pwplus--don't use.
  15405. :
  15406. else
  15407. rm -rf conftest.one conftest.two conftest.dir
  15408. echo one > conftest.one
  15409. echo two > conftest.two
  15410. mkdir conftest.dir
  15411. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15412. test -s conftest.one && test -s conftest.two &&
  15413. test -s conftest.dir/conftest.one &&
  15414. test -s conftest.dir/conftest.two
  15415. then
  15416. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15417. break 3
  15418. fi
  15419. fi
  15420. fi
  15421. done
  15422. done
  15423. ;;
  15424. esac
  15425. done
  15426. IFS=$as_save_IFS
  15427. rm -rf conftest.one conftest.two conftest.dir
  15428. fi
  15429. if test ${ac_cv_path_install+y}; then
  15430. INSTALL=$ac_cv_path_install
  15431. else
  15432. # As a last resort, use the slow shell script. Don't cache a
  15433. # value for INSTALL within a source directory, because that will
  15434. # break other packages using the cache if that directory is
  15435. # removed, or if the value is a relative name.
  15436. INSTALL=$ac_install_sh
  15437. fi
  15438. fi
  15439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15440. printf "%s\n" "$INSTALL" >&6; }
  15441. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15442. # It thinks the first close brace ends the variable substitution.
  15443. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15444. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15445. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15447. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15448. set x ${MAKE-make}
  15449. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15450. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15451. then :
  15452. printf %s "(cached) " >&6
  15453. else $as_nop
  15454. cat >conftest.make <<\_ACEOF
  15455. SHELL = /bin/sh
  15456. all:
  15457. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15458. _ACEOF
  15459. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15460. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15461. *@@@%%%=?*=@@@%%%*)
  15462. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15463. *)
  15464. eval ac_cv_prog_make_${ac_make}_set=no;;
  15465. esac
  15466. rm -f conftest.make
  15467. fi
  15468. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15470. printf "%s\n" "yes" >&6; }
  15471. SET_MAKE=
  15472. else
  15473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15474. printf "%s\n" "no" >&6; }
  15475. SET_MAKE="MAKE=${MAKE-make}"
  15476. fi
  15477. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15478. if test -n "$ac_tool_prefix"; then
  15479. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15480. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15482. printf %s "checking for $ac_word... " >&6; }
  15483. if test ${ac_cv_path_PKG_CONFIG+y}
  15484. then :
  15485. printf %s "(cached) " >&6
  15486. else $as_nop
  15487. case $PKG_CONFIG in
  15488. [\\/]* | ?:[\\/]*)
  15489. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15490. ;;
  15491. *)
  15492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15493. for as_dir in $PATH
  15494. do
  15495. IFS=$as_save_IFS
  15496. case $as_dir in #(((
  15497. '') as_dir=./ ;;
  15498. */) ;;
  15499. *) as_dir=$as_dir/ ;;
  15500. esac
  15501. for ac_exec_ext in '' $ac_executable_extensions; do
  15502. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15503. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15504. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15505. break 2
  15506. fi
  15507. done
  15508. done
  15509. IFS=$as_save_IFS
  15510. ;;
  15511. esac
  15512. fi
  15513. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15514. if test -n "$PKG_CONFIG"; then
  15515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15516. printf "%s\n" "$PKG_CONFIG" >&6; }
  15517. else
  15518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15519. printf "%s\n" "no" >&6; }
  15520. fi
  15521. fi
  15522. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15523. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15524. # Extract the first word of "pkg-config", so it can be a program name with args.
  15525. set dummy pkg-config; ac_word=$2
  15526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15527. printf %s "checking for $ac_word... " >&6; }
  15528. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15529. then :
  15530. printf %s "(cached) " >&6
  15531. else $as_nop
  15532. case $ac_pt_PKG_CONFIG in
  15533. [\\/]* | ?:[\\/]*)
  15534. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15535. ;;
  15536. *)
  15537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15538. for as_dir in $PATH
  15539. do
  15540. IFS=$as_save_IFS
  15541. case $as_dir in #(((
  15542. '') as_dir=./ ;;
  15543. */) ;;
  15544. *) as_dir=$as_dir/ ;;
  15545. esac
  15546. for ac_exec_ext in '' $ac_executable_extensions; do
  15547. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15548. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15549. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15550. break 2
  15551. fi
  15552. done
  15553. done
  15554. IFS=$as_save_IFS
  15555. ;;
  15556. esac
  15557. fi
  15558. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15559. if test -n "$ac_pt_PKG_CONFIG"; then
  15560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15561. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15562. else
  15563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15564. printf "%s\n" "no" >&6; }
  15565. fi
  15566. if test "x$ac_pt_PKG_CONFIG" = x; then
  15567. PKG_CONFIG=""
  15568. else
  15569. case $cross_compiling:$ac_tool_warned in
  15570. yes:)
  15571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15572. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15573. ac_tool_warned=yes ;;
  15574. esac
  15575. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15576. fi
  15577. else
  15578. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15579. fi
  15580. fi
  15581. if test -n "$PKG_CONFIG"; then
  15582. _pkg_min_version=0.9.0
  15583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15584. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15585. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15587. printf "%s\n" "yes" >&6; }
  15588. else
  15589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15590. printf "%s\n" "no" >&6; }
  15591. PKG_CONFIG=""
  15592. fi
  15593. fi
  15594. if test -z "$AWK" ; then
  15595. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15596. fi
  15597. for ac_prog in gsort sort
  15598. do
  15599. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15600. set dummy $ac_prog; ac_word=$2
  15601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15602. printf %s "checking for $ac_word... " >&6; }
  15603. if test ${ac_cv_prog_SORT+y}
  15604. then :
  15605. printf %s "(cached) " >&6
  15606. else $as_nop
  15607. if test -n "$SORT"; then
  15608. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15609. else
  15610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15611. for as_dir in $PATH
  15612. do
  15613. IFS=$as_save_IFS
  15614. case $as_dir in #(((
  15615. '') as_dir=./ ;;
  15616. */) ;;
  15617. *) as_dir=$as_dir/ ;;
  15618. esac
  15619. for ac_exec_ext in '' $ac_executable_extensions; do
  15620. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15621. ac_cv_prog_SORT="$ac_prog"
  15622. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15623. break 2
  15624. fi
  15625. done
  15626. done
  15627. IFS=$as_save_IFS
  15628. fi
  15629. fi
  15630. SORT=$ac_cv_prog_SORT
  15631. if test -n "$SORT"; then
  15632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15633. printf "%s\n" "$SORT" >&6; }
  15634. else
  15635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15636. printf "%s\n" "no" >&6; }
  15637. fi
  15638. test -n "$SORT" && break
  15639. done
  15640. test -n "$SORT" || SORT="false"
  15641. if ! "$SORT" -V </dev/null >/dev/null
  15642. then :
  15643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15644. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15645. fi
  15646. # Check whether --enable-largefile was given.
  15647. if test ${enable_largefile+y}
  15648. then :
  15649. enableval=$enable_largefile;
  15650. fi
  15651. if test "$enable_largefile" != no; then
  15652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15653. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15654. if test ${ac_cv_sys_largefile_CC+y}
  15655. then :
  15656. printf %s "(cached) " >&6
  15657. else $as_nop
  15658. ac_cv_sys_largefile_CC=no
  15659. if test "$GCC" != yes; then
  15660. ac_save_CC=$CC
  15661. while :; do
  15662. # IRIX 6.2 and later do not support large files by default,
  15663. # so use the C compiler's -n32 option if that helps.
  15664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15665. /* end confdefs.h. */
  15666. #include <sys/types.h>
  15667. /* Check that off_t can represent 2**63 - 1 correctly.
  15668. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15669. since some C++ compilers masquerading as C compilers
  15670. incorrectly reject 9223372036854775807. */
  15671. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15672. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15673. && LARGE_OFF_T % 2147483647 == 1)
  15674. ? 1 : -1];
  15675. int
  15676. main (void)
  15677. {
  15678. ;
  15679. return 0;
  15680. }
  15681. _ACEOF
  15682. if ac_fn_c_try_compile "$LINENO"
  15683. then :
  15684. break
  15685. fi
  15686. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15687. CC="$CC -n32"
  15688. if ac_fn_c_try_compile "$LINENO"
  15689. then :
  15690. ac_cv_sys_largefile_CC=' -n32'; break
  15691. fi
  15692. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15693. break
  15694. done
  15695. CC=$ac_save_CC
  15696. rm -f conftest.$ac_ext
  15697. fi
  15698. fi
  15699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15700. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15701. if test "$ac_cv_sys_largefile_CC" != no; then
  15702. CC=$CC$ac_cv_sys_largefile_CC
  15703. fi
  15704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15705. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15706. if test ${ac_cv_sys_file_offset_bits+y}
  15707. then :
  15708. printf %s "(cached) " >&6
  15709. else $as_nop
  15710. while :; do
  15711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15712. /* end confdefs.h. */
  15713. #include <sys/types.h>
  15714. /* Check that off_t can represent 2**63 - 1 correctly.
  15715. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15716. since some C++ compilers masquerading as C compilers
  15717. incorrectly reject 9223372036854775807. */
  15718. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15719. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15720. && LARGE_OFF_T % 2147483647 == 1)
  15721. ? 1 : -1];
  15722. int
  15723. main (void)
  15724. {
  15725. ;
  15726. return 0;
  15727. }
  15728. _ACEOF
  15729. if ac_fn_c_try_compile "$LINENO"
  15730. then :
  15731. ac_cv_sys_file_offset_bits=no; break
  15732. fi
  15733. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15735. /* end confdefs.h. */
  15736. #define _FILE_OFFSET_BITS 64
  15737. #include <sys/types.h>
  15738. /* Check that off_t can represent 2**63 - 1 correctly.
  15739. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15740. since some C++ compilers masquerading as C compilers
  15741. incorrectly reject 9223372036854775807. */
  15742. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15743. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15744. && LARGE_OFF_T % 2147483647 == 1)
  15745. ? 1 : -1];
  15746. int
  15747. main (void)
  15748. {
  15749. ;
  15750. return 0;
  15751. }
  15752. _ACEOF
  15753. if ac_fn_c_try_compile "$LINENO"
  15754. then :
  15755. ac_cv_sys_file_offset_bits=64; break
  15756. fi
  15757. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15758. ac_cv_sys_file_offset_bits=unknown
  15759. break
  15760. done
  15761. fi
  15762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15763. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15764. case $ac_cv_sys_file_offset_bits in #(
  15765. no | unknown) ;;
  15766. *)
  15767. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15768. ;;
  15769. esac
  15770. rm -rf conftest*
  15771. if test $ac_cv_sys_file_offset_bits = unknown; then
  15772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15773. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15774. if test ${ac_cv_sys_large_files+y}
  15775. then :
  15776. printf %s "(cached) " >&6
  15777. else $as_nop
  15778. while :; do
  15779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15780. /* end confdefs.h. */
  15781. #include <sys/types.h>
  15782. /* Check that off_t can represent 2**63 - 1 correctly.
  15783. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15784. since some C++ compilers masquerading as C compilers
  15785. incorrectly reject 9223372036854775807. */
  15786. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15787. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15788. && LARGE_OFF_T % 2147483647 == 1)
  15789. ? 1 : -1];
  15790. int
  15791. main (void)
  15792. {
  15793. ;
  15794. return 0;
  15795. }
  15796. _ACEOF
  15797. if ac_fn_c_try_compile "$LINENO"
  15798. then :
  15799. ac_cv_sys_large_files=no; break
  15800. fi
  15801. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15803. /* end confdefs.h. */
  15804. #define _LARGE_FILES 1
  15805. #include <sys/types.h>
  15806. /* Check that off_t can represent 2**63 - 1 correctly.
  15807. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15808. since some C++ compilers masquerading as C compilers
  15809. incorrectly reject 9223372036854775807. */
  15810. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15811. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15812. && LARGE_OFF_T % 2147483647 == 1)
  15813. ? 1 : -1];
  15814. int
  15815. main (void)
  15816. {
  15817. ;
  15818. return 0;
  15819. }
  15820. _ACEOF
  15821. if ac_fn_c_try_compile "$LINENO"
  15822. then :
  15823. ac_cv_sys_large_files=1; break
  15824. fi
  15825. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15826. ac_cv_sys_large_files=unknown
  15827. break
  15828. done
  15829. fi
  15830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15831. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15832. case $ac_cv_sys_large_files in #(
  15833. no | unknown) ;;
  15834. *)
  15835. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15836. ;;
  15837. esac
  15838. rm -rf conftest*
  15839. fi
  15840. fi
  15841. case "$host" in
  15842. *-*-mingw*)
  15843. # Except on msys, where make can't handle full pathnames (bug 1972)
  15844. ;;
  15845. *)
  15846. srcdir=`cd $srcdir && pwd`
  15847. ;;
  15848. esac
  15849. INCLUDE="-I$srcdir/include"
  15850. case "$host" in
  15851. *-*-nto-qnx*)
  15852. ;;
  15853. *)
  15854. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15855. ;;
  15856. esac
  15857. case "$host" in
  15858. *-*-haiku*)
  15859. LINKER='$(CXX)'
  15860. LIBTOOLLINKERTAG='CXX'
  15861. ;;
  15862. *)
  15863. LINKER='$(CC)'
  15864. LIBTOOLLINKERTAG='CC'
  15865. ;;
  15866. esac
  15867. if test x$srcdir != x.; then
  15868. INCLUDE="-Iinclude $INCLUDE"
  15869. elif test -d .git; then
  15870. as_fn_error $? "
  15871. *** When building from a git clone you should configure and build in a
  15872. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15873. " "$LINENO" 5
  15874. fi
  15875. BASE_CFLAGS=""
  15876. BASE_LDFLAGS=""
  15877. case "$host" in
  15878. *-*-cygwin*)
  15879. # We build SDL on cygwin without the UNIX emulation layer
  15880. save_CFLAGS="$CFLAGS"
  15881. have_no_cygwin=no
  15882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15883. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15884. CFLAGS="$save_CFLAGS -mno-cygwin"
  15885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15886. /* end confdefs.h. */
  15887. int
  15888. main (void)
  15889. {
  15890. ;
  15891. return 0;
  15892. }
  15893. _ACEOF
  15894. if ac_fn_c_try_compile "$LINENO"
  15895. then :
  15896. have_no_cygwin=yes
  15897. fi
  15898. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15900. printf "%s\n" "$have_no_cygwin" >&6; }
  15901. CFLAGS="$save_CFLAGS"
  15902. if test x$have_no_cygwin = xyes; then
  15903. BASE_CFLAGS="-mno-cygwin"
  15904. BASE_LDFLAGS="-mno-cygwin"
  15905. fi
  15906. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15907. ;;
  15908. esac
  15909. # Uncomment the following line if you want to force SDL and applications
  15910. # built with it to be compiled for a particular architecture.
  15911. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15912. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15913. # The default optimization for SDL is -O3 (Bug #31)
  15914. if test "x$orig_CFLAGS" = x; then
  15915. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15916. fi
  15917. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15918. BUILD_LDFLAGS="$LDFLAGS"
  15919. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15920. ## These are common directories to find software packages
  15921. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15922. # if test -d $path/include; then
  15923. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15924. # fi
  15925. # if test -d $path/lib; then
  15926. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15927. # fi
  15928. #done
  15929. SDL_CFLAGS="$BASE_CFLAGS"
  15930. SDL_LIBS="-lSDL2"
  15931. if test "x$BASE_LDFLAGS" != x; then
  15932. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15933. fi
  15934. if test "x$EXTRA_CFLAGS" != x; then
  15935. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15936. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15937. fi
  15938. if test "x$EXTRA_LDFLAGS" != x; then
  15939. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15940. fi
  15941. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15942. find_lib()
  15943. {
  15944. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15945. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15946. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15947. if test "$cross_compiling" = yes; then
  15948. host_lib_path=""
  15949. else
  15950. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15951. fi
  15952. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15953. 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`
  15954. if test x$lib != x; then
  15955. echo $lib
  15956. return
  15957. fi
  15958. done
  15959. }
  15960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15961. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15962. if test ${ac_cv_c_const+y}
  15963. then :
  15964. printf %s "(cached) " >&6
  15965. else $as_nop
  15966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15967. /* end confdefs.h. */
  15968. int
  15969. main (void)
  15970. {
  15971. #ifndef __cplusplus
  15972. /* Ultrix mips cc rejects this sort of thing. */
  15973. typedef int charset[2];
  15974. const charset cs = { 0, 0 };
  15975. /* SunOS 4.1.1 cc rejects this. */
  15976. char const *const *pcpcc;
  15977. char **ppc;
  15978. /* NEC SVR4.0.2 mips cc rejects this. */
  15979. struct point {int x, y;};
  15980. static struct point const zero = {0,0};
  15981. /* IBM XL C 1.02.0.0 rejects this.
  15982. It does not let you subtract one const X* pointer from another in
  15983. an arm of an if-expression whose if-part is not a constant
  15984. expression */
  15985. const char *g = "string";
  15986. pcpcc = &g + (g ? g-g : 0);
  15987. /* HPUX 7.0 cc rejects these. */
  15988. ++pcpcc;
  15989. ppc = (char**) pcpcc;
  15990. pcpcc = (char const *const *) ppc;
  15991. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15992. char tx;
  15993. char *t = &tx;
  15994. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15995. *t++ = 0;
  15996. if (s) return 0;
  15997. }
  15998. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15999. int x[] = {25, 17};
  16000. const int *foo = &x[0];
  16001. ++foo;
  16002. }
  16003. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16004. typedef const int *iptr;
  16005. iptr p = 0;
  16006. ++p;
  16007. }
  16008. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16009. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16010. struct s { int j; const int *ap[3]; } bx;
  16011. struct s *b = &bx; b->j = 5;
  16012. }
  16013. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16014. const int foo = 10;
  16015. if (!foo) return 0;
  16016. }
  16017. return !cs[0] && !zero.x;
  16018. #endif
  16019. ;
  16020. return 0;
  16021. }
  16022. _ACEOF
  16023. if ac_fn_c_try_compile "$LINENO"
  16024. then :
  16025. ac_cv_c_const=yes
  16026. else $as_nop
  16027. ac_cv_c_const=no
  16028. fi
  16029. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16030. fi
  16031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16032. printf "%s\n" "$ac_cv_c_const" >&6; }
  16033. if test $ac_cv_c_const = no; then
  16034. printf "%s\n" "#define const /**/" >>confdefs.h
  16035. fi
  16036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16037. printf %s "checking for inline... " >&6; }
  16038. if test ${ac_cv_c_inline+y}
  16039. then :
  16040. printf %s "(cached) " >&6
  16041. else $as_nop
  16042. ac_cv_c_inline=no
  16043. for ac_kw in inline __inline__ __inline; do
  16044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16045. /* end confdefs.h. */
  16046. #ifndef __cplusplus
  16047. typedef int foo_t;
  16048. static $ac_kw foo_t static_foo (void) {return 0; }
  16049. $ac_kw foo_t foo (void) {return 0; }
  16050. #endif
  16051. _ACEOF
  16052. if ac_fn_c_try_compile "$LINENO"
  16053. then :
  16054. ac_cv_c_inline=$ac_kw
  16055. fi
  16056. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16057. test "$ac_cv_c_inline" != no && break
  16058. done
  16059. fi
  16060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16061. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16062. case $ac_cv_c_inline in
  16063. inline | yes) ;;
  16064. *)
  16065. case $ac_cv_c_inline in
  16066. no) ac_val=;;
  16067. *) ac_val=$ac_cv_c_inline;;
  16068. esac
  16069. cat >>confdefs.h <<_ACEOF
  16070. #ifndef __cplusplus
  16071. #define inline $ac_val
  16072. #endif
  16073. _ACEOF
  16074. ;;
  16075. esac
  16076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16077. printf %s "checking for working volatile... " >&6; }
  16078. if test ${ac_cv_c_volatile+y}
  16079. then :
  16080. printf %s "(cached) " >&6
  16081. else $as_nop
  16082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16083. /* end confdefs.h. */
  16084. int
  16085. main (void)
  16086. {
  16087. volatile int x;
  16088. int * volatile y = (int *) 0;
  16089. return !x && !y;
  16090. ;
  16091. return 0;
  16092. }
  16093. _ACEOF
  16094. if ac_fn_c_try_compile "$LINENO"
  16095. then :
  16096. ac_cv_c_volatile=yes
  16097. else $as_nop
  16098. ac_cv_c_volatile=no
  16099. fi
  16100. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16101. fi
  16102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16103. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16104. if test $ac_cv_c_volatile = no; then
  16105. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16106. fi
  16107. # Check whether --enable-assertions was given.
  16108. if test ${enable_assertions+y}
  16109. then :
  16110. enableval=$enable_assertions;
  16111. else $as_nop
  16112. enable_assertions=auto
  16113. fi
  16114. case "$enable_assertions" in
  16115. auto) # Use optimization settings to determine assertion level
  16116. ;;
  16117. disabled)
  16118. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16119. ;;
  16120. release)
  16121. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16122. ;;
  16123. enabled)
  16124. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16125. ;;
  16126. paranoid)
  16127. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16128. ;;
  16129. *)
  16130. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16131. ;;
  16132. esac
  16133. 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"
  16134. # Check whether --enable-dependency-tracking was given.
  16135. if test ${enable_dependency_tracking+y}
  16136. then :
  16137. enableval=$enable_dependency_tracking;
  16138. else $as_nop
  16139. enable_dependency_tracking=yes
  16140. fi
  16141. if test x$enable_dependency_tracking = xyes; then
  16142. have_gcc_mmd_mt=no
  16143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16144. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16146. /* end confdefs.h. */
  16147. #if !defined(__GNUC__) || __GNUC__ < 3
  16148. #error Dependency tracking requires GCC 3.0 or newer
  16149. #endif
  16150. int
  16151. main (void)
  16152. {
  16153. ;
  16154. return 0;
  16155. }
  16156. _ACEOF
  16157. if ac_fn_c_try_compile "$LINENO"
  16158. then :
  16159. have_gcc_mmd_mt=yes
  16160. fi
  16161. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16163. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16164. if test x$have_gcc_mmd_mt = xyes; then
  16165. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16166. fi
  16167. fi
  16168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16169. printf %s "checking for linker option --no-undefined... " >&6; }
  16170. have_no_undefined=no
  16171. case "$host" in
  16172. *-*-openbsd*)
  16173. ;;
  16174. *)
  16175. save_LDFLAGS="$LDFLAGS"
  16176. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16178. /* end confdefs.h. */
  16179. int
  16180. main (void)
  16181. {
  16182. ;
  16183. return 0;
  16184. }
  16185. _ACEOF
  16186. if ac_fn_c_try_link "$LINENO"
  16187. then :
  16188. have_no_undefined=yes
  16189. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16190. fi
  16191. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16192. conftest$ac_exeext conftest.$ac_ext
  16193. LDFLAGS="$save_LDFLAGS"
  16194. ;;
  16195. esac
  16196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16197. printf "%s\n" "$have_no_undefined" >&6; }
  16198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16199. printf %s "checking for linker option --dynamicbase... " >&6; }
  16200. have_dynamicbase=no
  16201. case "$host" in
  16202. *)
  16203. save_LDFLAGS="$LDFLAGS"
  16204. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16206. /* end confdefs.h. */
  16207. int
  16208. main (void)
  16209. {
  16210. ;
  16211. return 0;
  16212. }
  16213. _ACEOF
  16214. if ac_fn_c_try_link "$LINENO"
  16215. then :
  16216. have_dynamicbase=yes
  16217. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16218. fi
  16219. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16220. conftest$ac_exeext conftest.$ac_ext
  16221. LDFLAGS="$save_LDFLAGS"
  16222. ;;
  16223. esac
  16224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16225. printf "%s\n" "$have_dynamicbase" >&6; }
  16226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16227. printf %s "checking for linker option --nxcompat... " >&6; }
  16228. have_nxcompat=no
  16229. case "$host" in
  16230. *)
  16231. save_LDFLAGS="$LDFLAGS"
  16232. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16234. /* end confdefs.h. */
  16235. int
  16236. main (void)
  16237. {
  16238. ;
  16239. return 0;
  16240. }
  16241. _ACEOF
  16242. if ac_fn_c_try_link "$LINENO"
  16243. then :
  16244. have_nxcompat=yes
  16245. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16246. fi
  16247. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16248. conftest$ac_exeext conftest.$ac_ext
  16249. LDFLAGS="$save_LDFLAGS"
  16250. ;;
  16251. esac
  16252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16253. printf "%s\n" "$have_nxcompat" >&6; }
  16254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16255. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16256. have_high_entropy_va=no
  16257. case "$host" in
  16258. *)
  16259. save_LDFLAGS="$LDFLAGS"
  16260. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16262. /* end confdefs.h. */
  16263. int
  16264. main (void)
  16265. {
  16266. ;
  16267. return 0;
  16268. }
  16269. _ACEOF
  16270. if ac_fn_c_try_link "$LINENO"
  16271. then :
  16272. have_high_entropy_va=yes
  16273. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16274. fi
  16275. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16276. conftest$ac_exeext conftest.$ac_ext
  16277. LDFLAGS="$save_LDFLAGS"
  16278. ;;
  16279. esac
  16280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16281. printf "%s\n" "$have_high_entropy_va" >&6; }
  16282. # Check whether --enable-libc was given.
  16283. if test ${enable_libc+y}
  16284. then :
  16285. enableval=$enable_libc;
  16286. else $as_nop
  16287. enable_libc=yes
  16288. fi
  16289. # Check whether --enable-system-iconv was given.
  16290. if test ${enable_system_iconv+y}
  16291. then :
  16292. enableval=$enable_system_iconv;
  16293. else $as_nop
  16294. enable_system_iconv=yes
  16295. fi
  16296. if test x$enable_libc = xyes; then
  16297. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16298. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16299. if test "x$ac_cv_header_sys_types_h" = xyes
  16300. then :
  16301. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16302. fi
  16303. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16304. if test "x$ac_cv_header_stdio_h" = xyes
  16305. then :
  16306. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16307. fi
  16308. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16309. if test "x$ac_cv_header_stdlib_h" = xyes
  16310. then :
  16311. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16312. fi
  16313. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16314. if test "x$ac_cv_header_stddef_h" = xyes
  16315. then :
  16316. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16317. fi
  16318. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16319. if test "x$ac_cv_header_stdarg_h" = xyes
  16320. then :
  16321. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16322. fi
  16323. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16324. if test "x$ac_cv_header_malloc_h" = xyes
  16325. then :
  16326. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16327. fi
  16328. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16329. if test "x$ac_cv_header_memory_h" = xyes
  16330. then :
  16331. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16332. fi
  16333. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16334. if test "x$ac_cv_header_string_h" = xyes
  16335. then :
  16336. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16337. fi
  16338. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16339. if test "x$ac_cv_header_strings_h" = xyes
  16340. then :
  16341. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16342. fi
  16343. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16344. if test "x$ac_cv_header_wchar_h" = xyes
  16345. then :
  16346. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16347. fi
  16348. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16349. if test "x$ac_cv_header_inttypes_h" = xyes
  16350. then :
  16351. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16352. fi
  16353. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16354. if test "x$ac_cv_header_stdint_h" = xyes
  16355. then :
  16356. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16357. fi
  16358. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16359. if test "x$ac_cv_header_limits_h" = xyes
  16360. then :
  16361. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16362. fi
  16363. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16364. if test "x$ac_cv_header_ctype_h" = xyes
  16365. then :
  16366. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16367. fi
  16368. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16369. if test "x$ac_cv_header_math_h" = xyes
  16370. then :
  16371. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16372. fi
  16373. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16374. if test "x$ac_cv_header_float_h" = xyes
  16375. then :
  16376. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16377. fi
  16378. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16379. if test "x$ac_cv_header_iconv_h" = xyes
  16380. then :
  16381. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16382. fi
  16383. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16384. if test "x$ac_cv_header_signal_h" = xyes
  16385. then :
  16386. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16387. fi
  16388. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  16389. if test "x$ac_cv_header_linux_input_h" = xyes
  16390. then :
  16391. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  16392. fi
  16393. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16394. if test "x$ac_cv_type_size_t" = xyes
  16395. then :
  16396. else $as_nop
  16397. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16398. fi
  16399. ac_ext=c
  16400. ac_cpp='$CPP $CPPFLAGS'
  16401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16405. printf %s "checking how to run the C preprocessor... " >&6; }
  16406. # On Suns, sometimes $CPP names a directory.
  16407. if test -n "$CPP" && test -d "$CPP"; then
  16408. CPP=
  16409. fi
  16410. if test -z "$CPP"; then
  16411. if test ${ac_cv_prog_CPP+y}
  16412. then :
  16413. printf %s "(cached) " >&6
  16414. else $as_nop
  16415. # Double quotes because $CC needs to be expanded
  16416. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16417. do
  16418. ac_preproc_ok=false
  16419. for ac_c_preproc_warn_flag in '' yes
  16420. do
  16421. # Use a header file that comes with gcc, so configuring glibc
  16422. # with a fresh cross-compiler works.
  16423. # On the NeXT, cc -E runs the code through the compiler's parser,
  16424. # not just through cpp. "Syntax error" is here to catch this case.
  16425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16426. /* end confdefs.h. */
  16427. #include <limits.h>
  16428. Syntax error
  16429. _ACEOF
  16430. if ac_fn_c_try_cpp "$LINENO"
  16431. then :
  16432. else $as_nop
  16433. # Broken: fails on valid input.
  16434. continue
  16435. fi
  16436. rm -f conftest.err conftest.i conftest.$ac_ext
  16437. # OK, works on sane cases. Now check whether nonexistent headers
  16438. # can be detected and how.
  16439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16440. /* end confdefs.h. */
  16441. #include <ac_nonexistent.h>
  16442. _ACEOF
  16443. if ac_fn_c_try_cpp "$LINENO"
  16444. then :
  16445. # Broken: success on invalid input.
  16446. continue
  16447. else $as_nop
  16448. # Passes both tests.
  16449. ac_preproc_ok=:
  16450. break
  16451. fi
  16452. rm -f conftest.err conftest.i conftest.$ac_ext
  16453. done
  16454. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16455. rm -f conftest.i conftest.err conftest.$ac_ext
  16456. if $ac_preproc_ok
  16457. then :
  16458. break
  16459. fi
  16460. done
  16461. ac_cv_prog_CPP=$CPP
  16462. fi
  16463. CPP=$ac_cv_prog_CPP
  16464. else
  16465. ac_cv_prog_CPP=$CPP
  16466. fi
  16467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16468. printf "%s\n" "$CPP" >&6; }
  16469. ac_preproc_ok=false
  16470. for ac_c_preproc_warn_flag in '' yes
  16471. do
  16472. # Use a header file that comes with gcc, so configuring glibc
  16473. # with a fresh cross-compiler works.
  16474. # On the NeXT, cc -E runs the code through the compiler's parser,
  16475. # not just through cpp. "Syntax error" is here to catch this case.
  16476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16477. /* end confdefs.h. */
  16478. #include <limits.h>
  16479. Syntax error
  16480. _ACEOF
  16481. if ac_fn_c_try_cpp "$LINENO"
  16482. then :
  16483. else $as_nop
  16484. # Broken: fails on valid input.
  16485. continue
  16486. fi
  16487. rm -f conftest.err conftest.i conftest.$ac_ext
  16488. # OK, works on sane cases. Now check whether nonexistent headers
  16489. # can be detected and how.
  16490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16491. /* end confdefs.h. */
  16492. #include <ac_nonexistent.h>
  16493. _ACEOF
  16494. if ac_fn_c_try_cpp "$LINENO"
  16495. then :
  16496. # Broken: success on invalid input.
  16497. continue
  16498. else $as_nop
  16499. # Passes both tests.
  16500. ac_preproc_ok=:
  16501. break
  16502. fi
  16503. rm -f conftest.err conftest.i conftest.$ac_ext
  16504. done
  16505. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16506. rm -f conftest.i conftest.err conftest.$ac_ext
  16507. if $ac_preproc_ok
  16508. then :
  16509. else $as_nop
  16510. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16511. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16512. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16513. See \`config.log' for more details" "$LINENO" 5; }
  16514. fi
  16515. ac_ext=c
  16516. ac_cpp='$CPP $CPPFLAGS'
  16517. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16518. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16519. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16521. printf %s "checking for M_PI in math.h... " >&6; }
  16522. if test ${ac_cv_define_M_PI+y}
  16523. then :
  16524. printf %s "(cached) " >&6
  16525. else $as_nop
  16526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16527. /* end confdefs.h. */
  16528. #include <math.h>
  16529. #ifdef M_PI
  16530. YES_IS_DEFINED
  16531. #endif
  16532. _ACEOF
  16533. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16534. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16535. then :
  16536. ac_cv_define_M_PI=yes
  16537. else $as_nop
  16538. ac_cv_define_M_PI=no
  16539. fi
  16540. rm -rf conftest*
  16541. fi
  16542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16543. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16544. if test "$ac_cv_define_M_PI" = "yes" ; then
  16545. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16546. fi
  16547. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16548. # for constant arguments. Useless!
  16549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16550. printf %s "checking for working alloca.h... " >&6; }
  16551. if test ${ac_cv_working_alloca_h+y}
  16552. then :
  16553. printf %s "(cached) " >&6
  16554. else $as_nop
  16555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16556. /* end confdefs.h. */
  16557. #include <alloca.h>
  16558. int
  16559. main (void)
  16560. {
  16561. char *p = (char *) alloca (2 * sizeof (int));
  16562. if (p) return 0;
  16563. ;
  16564. return 0;
  16565. }
  16566. _ACEOF
  16567. if ac_fn_c_try_link "$LINENO"
  16568. then :
  16569. ac_cv_working_alloca_h=yes
  16570. else $as_nop
  16571. ac_cv_working_alloca_h=no
  16572. fi
  16573. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16574. conftest$ac_exeext conftest.$ac_ext
  16575. fi
  16576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16577. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16578. if test $ac_cv_working_alloca_h = yes; then
  16579. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16580. fi
  16581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16582. printf %s "checking for alloca... " >&6; }
  16583. if test ${ac_cv_func_alloca_works+y}
  16584. then :
  16585. printf %s "(cached) " >&6
  16586. else $as_nop
  16587. if test $ac_cv_working_alloca_h = yes; then
  16588. ac_cv_func_alloca_works=yes
  16589. else
  16590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16591. /* end confdefs.h. */
  16592. #include <stdlib.h>
  16593. #include <stddef.h>
  16594. #ifndef alloca
  16595. # ifdef __GNUC__
  16596. # define alloca __builtin_alloca
  16597. # elif defined _MSC_VER
  16598. # include <malloc.h>
  16599. # define alloca _alloca
  16600. # else
  16601. # ifdef __cplusplus
  16602. extern "C"
  16603. # endif
  16604. void *alloca (size_t);
  16605. # endif
  16606. #endif
  16607. int
  16608. main (void)
  16609. {
  16610. char *p = (char *) alloca (1);
  16611. if (p) return 0;
  16612. ;
  16613. return 0;
  16614. }
  16615. _ACEOF
  16616. if ac_fn_c_try_link "$LINENO"
  16617. then :
  16618. ac_cv_func_alloca_works=yes
  16619. else $as_nop
  16620. ac_cv_func_alloca_works=no
  16621. fi
  16622. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16623. conftest$ac_exeext conftest.$ac_ext
  16624. fi
  16625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16626. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16627. fi
  16628. if test $ac_cv_func_alloca_works = yes; then
  16629. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16630. else
  16631. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16632. # that cause trouble. Some versions do not even contain alloca or
  16633. # contain a buggy version. If you still want to use their alloca,
  16634. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16635. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16636. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16638. printf %s "checking stack direction for C alloca... " >&6; }
  16639. if test ${ac_cv_c_stack_direction+y}
  16640. then :
  16641. printf %s "(cached) " >&6
  16642. else $as_nop
  16643. if test "$cross_compiling" = yes
  16644. then :
  16645. ac_cv_c_stack_direction=0
  16646. else $as_nop
  16647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16648. /* end confdefs.h. */
  16649. $ac_includes_default
  16650. int
  16651. find_stack_direction (int *addr, int depth)
  16652. {
  16653. int dir, dummy = 0;
  16654. if (! addr)
  16655. addr = &dummy;
  16656. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16657. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16658. return dir + dummy;
  16659. }
  16660. int
  16661. main (int argc, char **argv)
  16662. {
  16663. return find_stack_direction (0, argc + !argv + 20) < 0;
  16664. }
  16665. _ACEOF
  16666. if ac_fn_c_try_run "$LINENO"
  16667. then :
  16668. ac_cv_c_stack_direction=1
  16669. else $as_nop
  16670. ac_cv_c_stack_direction=-1
  16671. fi
  16672. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16673. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16674. fi
  16675. fi
  16676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16677. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16678. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16679. fi
  16680. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16681. if test "x$ac_cv_func_mprotect" = xyes
  16682. then :
  16683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16684. /* end confdefs.h. */
  16685. #include <sys/types.h>
  16686. #include <sys/mman.h>
  16687. int
  16688. main (void)
  16689. {
  16690. ;
  16691. return 0;
  16692. }
  16693. _ACEOF
  16694. if ac_fn_c_try_compile "$LINENO"
  16695. then :
  16696. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16697. fi
  16698. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16699. fi
  16700. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16701. if test "x$ac_cv_func_malloc" = xyes
  16702. then :
  16703. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16704. fi
  16705. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16706. if test "x$ac_cv_func_calloc" = xyes
  16707. then :
  16708. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16709. fi
  16710. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16711. if test "x$ac_cv_func_realloc" = xyes
  16712. then :
  16713. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16714. fi
  16715. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16716. if test "x$ac_cv_func_free" = xyes
  16717. then :
  16718. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16719. fi
  16720. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16721. if test "x$ac_cv_func_getenv" = xyes
  16722. then :
  16723. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16724. fi
  16725. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16726. if test "x$ac_cv_func_setenv" = xyes
  16727. then :
  16728. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16729. fi
  16730. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16731. if test "x$ac_cv_func_putenv" = xyes
  16732. then :
  16733. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16734. fi
  16735. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16736. if test "x$ac_cv_func_unsetenv" = xyes
  16737. then :
  16738. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16739. fi
  16740. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16741. if test "x$ac_cv_func_bsearch" = xyes
  16742. then :
  16743. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16744. fi
  16745. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16746. if test "x$ac_cv_func_qsort" = xyes
  16747. then :
  16748. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16749. fi
  16750. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16751. if test "x$ac_cv_func_abs" = xyes
  16752. then :
  16753. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16754. fi
  16755. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16756. if test "x$ac_cv_func_bcopy" = xyes
  16757. then :
  16758. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16759. fi
  16760. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16761. if test "x$ac_cv_func_memset" = xyes
  16762. then :
  16763. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16764. fi
  16765. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16766. if test "x$ac_cv_func_memcmp" = xyes
  16767. then :
  16768. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16769. fi
  16770. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16771. if test "x$ac_cv_func_memcpy" = xyes
  16772. then :
  16773. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16774. fi
  16775. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16776. if test "x$ac_cv_func_memmove" = xyes
  16777. then :
  16778. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16779. fi
  16780. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16781. if test "x$ac_cv_func_wcslen" = xyes
  16782. then :
  16783. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16784. fi
  16785. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16786. if test "x$ac_cv_func_wcslcpy" = xyes
  16787. then :
  16788. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16789. fi
  16790. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16791. if test "x$ac_cv_func_wcslcat" = xyes
  16792. then :
  16793. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16794. fi
  16795. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16796. if test "x$ac_cv_func__wcsdup" = xyes
  16797. then :
  16798. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16799. fi
  16800. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16801. if test "x$ac_cv_func_wcsdup" = xyes
  16802. then :
  16803. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16804. fi
  16805. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16806. if test "x$ac_cv_func_wcsstr" = xyes
  16807. then :
  16808. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16809. fi
  16810. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16811. if test "x$ac_cv_func_wcscmp" = xyes
  16812. then :
  16813. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16814. fi
  16815. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16816. if test "x$ac_cv_func_wcsncmp" = xyes
  16817. then :
  16818. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16819. fi
  16820. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16821. if test "x$ac_cv_func_wcscasecmp" = xyes
  16822. then :
  16823. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16824. fi
  16825. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16826. if test "x$ac_cv_func__wcsicmp" = xyes
  16827. then :
  16828. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16829. fi
  16830. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16831. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16832. then :
  16833. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16834. fi
  16835. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16836. if test "x$ac_cv_func__wcsnicmp" = xyes
  16837. then :
  16838. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16839. fi
  16840. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16841. if test "x$ac_cv_func_strlen" = xyes
  16842. then :
  16843. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16844. fi
  16845. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16846. if test "x$ac_cv_func_strlcpy" = xyes
  16847. then :
  16848. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16849. fi
  16850. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16851. if test "x$ac_cv_func_strlcat" = xyes
  16852. then :
  16853. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16854. fi
  16855. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16856. if test "x$ac_cv_func__strrev" = xyes
  16857. then :
  16858. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16859. fi
  16860. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16861. if test "x$ac_cv_func__strupr" = xyes
  16862. then :
  16863. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16864. fi
  16865. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16866. if test "x$ac_cv_func__strlwr" = xyes
  16867. then :
  16868. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16869. fi
  16870. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16871. if test "x$ac_cv_func_index" = xyes
  16872. then :
  16873. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16874. fi
  16875. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16876. if test "x$ac_cv_func_rindex" = xyes
  16877. then :
  16878. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16879. fi
  16880. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16881. if test "x$ac_cv_func_strchr" = xyes
  16882. then :
  16883. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16884. fi
  16885. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16886. if test "x$ac_cv_func_strrchr" = xyes
  16887. then :
  16888. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16889. fi
  16890. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16891. if test "x$ac_cv_func_strstr" = xyes
  16892. then :
  16893. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16894. fi
  16895. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16896. if test "x$ac_cv_func_strtok_r" = xyes
  16897. then :
  16898. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16899. fi
  16900. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16901. if test "x$ac_cv_func_itoa" = xyes
  16902. then :
  16903. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16904. fi
  16905. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16906. if test "x$ac_cv_func__ltoa" = xyes
  16907. then :
  16908. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16909. fi
  16910. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16911. if test "x$ac_cv_func__uitoa" = xyes
  16912. then :
  16913. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16914. fi
  16915. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16916. if test "x$ac_cv_func__ultoa" = xyes
  16917. then :
  16918. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16919. fi
  16920. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16921. if test "x$ac_cv_func_strtod" = xyes
  16922. then :
  16923. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16924. fi
  16925. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16926. if test "x$ac_cv_func_strtol" = xyes
  16927. then :
  16928. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16929. fi
  16930. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16931. if test "x$ac_cv_func_strtoul" = xyes
  16932. then :
  16933. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16934. fi
  16935. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16936. if test "x$ac_cv_func__i64toa" = xyes
  16937. then :
  16938. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16939. fi
  16940. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16941. if test "x$ac_cv_func__ui64toa" = xyes
  16942. then :
  16943. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16944. fi
  16945. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16946. if test "x$ac_cv_func_strtoll" = xyes
  16947. then :
  16948. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16949. fi
  16950. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16951. if test "x$ac_cv_func_strtoull" = xyes
  16952. then :
  16953. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16954. fi
  16955. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16956. if test "x$ac_cv_func_atoi" = xyes
  16957. then :
  16958. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16959. fi
  16960. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16961. if test "x$ac_cv_func_atof" = xyes
  16962. then :
  16963. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16964. fi
  16965. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16966. if test "x$ac_cv_func_strcmp" = xyes
  16967. then :
  16968. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16969. fi
  16970. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16971. if test "x$ac_cv_func_strncmp" = xyes
  16972. then :
  16973. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16974. fi
  16975. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16976. if test "x$ac_cv_func__stricmp" = xyes
  16977. then :
  16978. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16979. fi
  16980. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16981. if test "x$ac_cv_func_strcasecmp" = xyes
  16982. then :
  16983. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16984. fi
  16985. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16986. if test "x$ac_cv_func__strnicmp" = xyes
  16987. then :
  16988. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16989. fi
  16990. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16991. if test "x$ac_cv_func_strncasecmp" = xyes
  16992. then :
  16993. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16994. fi
  16995. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  16996. if test "x$ac_cv_func_vsscanf" = xyes
  16997. then :
  16998. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  16999. fi
  17000. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17001. if test "x$ac_cv_func_vsnprintf" = xyes
  17002. then :
  17003. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17004. fi
  17005. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17006. if test "x$ac_cv_func_fopen64" = xyes
  17007. then :
  17008. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17009. fi
  17010. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17011. if test "x$ac_cv_func_fseeko" = xyes
  17012. then :
  17013. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17014. fi
  17015. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17016. if test "x$ac_cv_func_fseeko64" = xyes
  17017. then :
  17018. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17019. fi
  17020. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17021. if test "x$ac_cv_func_sigaction" = xyes
  17022. then :
  17023. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17024. fi
  17025. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17026. if test "x$ac_cv_func_setjmp" = xyes
  17027. then :
  17028. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17029. fi
  17030. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17031. if test "x$ac_cv_func_nanosleep" = xyes
  17032. then :
  17033. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17034. fi
  17035. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17036. if test "x$ac_cv_func_sysconf" = xyes
  17037. then :
  17038. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17039. fi
  17040. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17041. if test "x$ac_cv_func_sysctlbyname" = xyes
  17042. then :
  17043. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17044. fi
  17045. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17046. if test "x$ac_cv_func_getauxval" = xyes
  17047. then :
  17048. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17049. fi
  17050. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17051. if test "x$ac_cv_func_elf_aux_info" = xyes
  17052. then :
  17053. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17054. fi
  17055. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17056. if test "x$ac_cv_func_poll" = xyes
  17057. then :
  17058. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17059. fi
  17060. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17061. if test "x$ac_cv_func__Exit" = xyes
  17062. then :
  17063. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17064. fi
  17065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17066. printf %s "checking for pow in -lm... " >&6; }
  17067. if test ${ac_cv_lib_m_pow+y}
  17068. then :
  17069. printf %s "(cached) " >&6
  17070. else $as_nop
  17071. ac_check_lib_save_LIBS=$LIBS
  17072. LIBS="-lm $LIBS"
  17073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17074. /* end confdefs.h. */
  17075. /* Override any GCC internal prototype to avoid an error.
  17076. Use char because int might match the return type of a GCC
  17077. builtin and then its argument prototype would still apply. */
  17078. char pow ();
  17079. int
  17080. main (void)
  17081. {
  17082. return pow ();
  17083. ;
  17084. return 0;
  17085. }
  17086. _ACEOF
  17087. if ac_fn_c_try_link "$LINENO"
  17088. then :
  17089. ac_cv_lib_m_pow=yes
  17090. else $as_nop
  17091. ac_cv_lib_m_pow=no
  17092. fi
  17093. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17094. conftest$ac_exeext conftest.$ac_ext
  17095. LIBS=$ac_check_lib_save_LIBS
  17096. fi
  17097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17098. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17099. if test "x$ac_cv_lib_m_pow" = xyes
  17100. then :
  17101. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17102. fi
  17103. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17104. if test "x$ac_cv_func_acos" = xyes
  17105. then :
  17106. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17107. fi
  17108. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17109. if test "x$ac_cv_func_acosf" = xyes
  17110. then :
  17111. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17112. fi
  17113. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17114. if test "x$ac_cv_func_asin" = xyes
  17115. then :
  17116. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17117. fi
  17118. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17119. if test "x$ac_cv_func_asinf" = xyes
  17120. then :
  17121. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17122. fi
  17123. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17124. if test "x$ac_cv_func_atan" = xyes
  17125. then :
  17126. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17127. fi
  17128. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17129. if test "x$ac_cv_func_atanf" = xyes
  17130. then :
  17131. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17132. fi
  17133. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17134. if test "x$ac_cv_func_atan2" = xyes
  17135. then :
  17136. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17137. fi
  17138. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17139. if test "x$ac_cv_func_atan2f" = xyes
  17140. then :
  17141. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17142. fi
  17143. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17144. if test "x$ac_cv_func_ceil" = xyes
  17145. then :
  17146. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17147. fi
  17148. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17149. if test "x$ac_cv_func_ceilf" = xyes
  17150. then :
  17151. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17152. fi
  17153. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17154. if test "x$ac_cv_func_copysign" = xyes
  17155. then :
  17156. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17157. fi
  17158. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17159. if test "x$ac_cv_func_copysignf" = xyes
  17160. then :
  17161. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17162. fi
  17163. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17164. if test "x$ac_cv_func_cos" = xyes
  17165. then :
  17166. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17167. fi
  17168. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17169. if test "x$ac_cv_func_cosf" = xyes
  17170. then :
  17171. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17172. fi
  17173. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17174. if test "x$ac_cv_func_exp" = xyes
  17175. then :
  17176. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17177. fi
  17178. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17179. if test "x$ac_cv_func_expf" = xyes
  17180. then :
  17181. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17182. fi
  17183. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17184. if test "x$ac_cv_func_fabs" = xyes
  17185. then :
  17186. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17187. fi
  17188. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17189. if test "x$ac_cv_func_fabsf" = xyes
  17190. then :
  17191. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17192. fi
  17193. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17194. if test "x$ac_cv_func_floor" = xyes
  17195. then :
  17196. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17197. fi
  17198. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17199. if test "x$ac_cv_func_floorf" = xyes
  17200. then :
  17201. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17202. fi
  17203. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17204. if test "x$ac_cv_func_trunc" = xyes
  17205. then :
  17206. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17207. fi
  17208. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17209. if test "x$ac_cv_func_truncf" = xyes
  17210. then :
  17211. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17212. fi
  17213. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17214. if test "x$ac_cv_func_fmod" = xyes
  17215. then :
  17216. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17217. fi
  17218. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17219. if test "x$ac_cv_func_fmodf" = xyes
  17220. then :
  17221. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17222. fi
  17223. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17224. if test "x$ac_cv_func_log" = xyes
  17225. then :
  17226. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17227. fi
  17228. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17229. if test "x$ac_cv_func_logf" = xyes
  17230. then :
  17231. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17232. fi
  17233. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17234. if test "x$ac_cv_func_log10" = xyes
  17235. then :
  17236. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17237. fi
  17238. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17239. if test "x$ac_cv_func_log10f" = xyes
  17240. then :
  17241. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17242. fi
  17243. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17244. if test "x$ac_cv_func_lround" = xyes
  17245. then :
  17246. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17247. fi
  17248. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17249. if test "x$ac_cv_func_lroundf" = xyes
  17250. then :
  17251. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17252. fi
  17253. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17254. if test "x$ac_cv_func_pow" = xyes
  17255. then :
  17256. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17257. fi
  17258. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17259. if test "x$ac_cv_func_powf" = xyes
  17260. then :
  17261. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17262. fi
  17263. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17264. if test "x$ac_cv_func_round" = xyes
  17265. then :
  17266. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17267. fi
  17268. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17269. if test "x$ac_cv_func_roundf" = xyes
  17270. then :
  17271. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17272. fi
  17273. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17274. if test "x$ac_cv_func_scalbn" = xyes
  17275. then :
  17276. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17277. fi
  17278. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17279. if test "x$ac_cv_func_scalbnf" = xyes
  17280. then :
  17281. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17282. fi
  17283. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17284. if test "x$ac_cv_func_sin" = xyes
  17285. then :
  17286. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17287. fi
  17288. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17289. if test "x$ac_cv_func_sinf" = xyes
  17290. then :
  17291. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17292. fi
  17293. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17294. if test "x$ac_cv_func_sqrt" = xyes
  17295. then :
  17296. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17297. fi
  17298. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17299. if test "x$ac_cv_func_sqrtf" = xyes
  17300. then :
  17301. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17302. fi
  17303. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17304. if test "x$ac_cv_func_tan" = xyes
  17305. then :
  17306. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17307. fi
  17308. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17309. if test "x$ac_cv_func_tanf" = xyes
  17310. then :
  17311. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17312. fi
  17313. if test x$enable_system_iconv = xyes; then
  17314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17315. printf %s "checking for iconv_open in -liconv... " >&6; }
  17316. if test ${ac_cv_lib_iconv_iconv_open+y}
  17317. then :
  17318. printf %s "(cached) " >&6
  17319. else $as_nop
  17320. ac_check_lib_save_LIBS=$LIBS
  17321. LIBS="-liconv $LIBS"
  17322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17323. /* end confdefs.h. */
  17324. /* Override any GCC internal prototype to avoid an error.
  17325. Use char because int might match the return type of a GCC
  17326. builtin and then its argument prototype would still apply. */
  17327. char iconv_open ();
  17328. int
  17329. main (void)
  17330. {
  17331. return iconv_open ();
  17332. ;
  17333. return 0;
  17334. }
  17335. _ACEOF
  17336. if ac_fn_c_try_link "$LINENO"
  17337. then :
  17338. ac_cv_lib_iconv_iconv_open=yes
  17339. else $as_nop
  17340. ac_cv_lib_iconv_iconv_open=no
  17341. fi
  17342. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17343. conftest$ac_exeext conftest.$ac_ext
  17344. LIBS=$ac_check_lib_save_LIBS
  17345. fi
  17346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17347. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17348. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17349. then :
  17350. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17351. fi
  17352. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17353. if test "x$ac_cv_func_iconv" = xyes
  17354. then :
  17355. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17356. fi
  17357. fi
  17358. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17359. "
  17360. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17361. then :
  17362. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17363. fi
  17364. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17365. if test "x$ac_cv_header_libunwind_h" = xyes
  17366. then :
  17367. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17368. fi
  17369. fi
  17370. # Check whether --enable-gcc-atomics was given.
  17371. if test ${enable_gcc_atomics+y}
  17372. then :
  17373. enableval=$enable_gcc_atomics;
  17374. else $as_nop
  17375. enable_gcc_atomics=yes
  17376. fi
  17377. if test x$enable_gcc_atomics = xyes; then
  17378. have_gcc_atomics=no
  17379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17380. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17382. /* end confdefs.h. */
  17383. int
  17384. main (void)
  17385. {
  17386. int a;
  17387. void *x, *y, *z;
  17388. __sync_lock_test_and_set(&a, 4);
  17389. __sync_lock_test_and_set(&x, y);
  17390. __sync_fetch_and_add(&a, 1);
  17391. __sync_bool_compare_and_swap(&a, 5, 10);
  17392. __sync_bool_compare_and_swap(&x, y, z);
  17393. ;
  17394. return 0;
  17395. }
  17396. _ACEOF
  17397. if ac_fn_c_try_link "$LINENO"
  17398. then :
  17399. have_gcc_atomics=yes
  17400. fi
  17401. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17402. conftest$ac_exeext conftest.$ac_ext
  17403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17404. printf "%s\n" "$have_gcc_atomics" >&6; }
  17405. if test x$have_gcc_atomics = xyes; then
  17406. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17407. else
  17408. # See if we have the minimum operation needed for GCC atomics
  17409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17410. /* end confdefs.h. */
  17411. int
  17412. main (void)
  17413. {
  17414. int a;
  17415. __sync_lock_test_and_set(&a, 1);
  17416. __sync_lock_release(&a);
  17417. ;
  17418. return 0;
  17419. }
  17420. _ACEOF
  17421. if ac_fn_c_try_link "$LINENO"
  17422. then :
  17423. have_gcc_sync_lock_test_and_set=yes
  17424. fi
  17425. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17426. conftest$ac_exeext conftest.$ac_ext
  17427. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17428. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17429. fi
  17430. fi
  17431. fi
  17432. # Standard C sources
  17433. SOURCES="$SOURCES $srcdir/src/*.c"
  17434. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17435. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17436. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17437. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17438. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17439. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17440. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17441. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17442. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17443. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17444. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17445. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17446. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17447. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17448. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17449. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17450. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17451. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17452. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17453. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17454. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17455. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17456. case "$host" in
  17457. *-*-emscripten*)
  17458. default_atomic=no
  17459. ;;
  17460. *)
  17461. default_atomic=yes
  17462. ;;
  17463. esac
  17464. # Check whether --enable-atomic was given.
  17465. if test ${enable_atomic+y}
  17466. then :
  17467. enableval=$enable_atomic;
  17468. else $as_nop
  17469. enable_atomic=$default_atomic
  17470. fi
  17471. if test x$enable_atomic != xyes; then
  17472. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17473. else
  17474. SUMMARY_modules="${SUMMARY_modules} atomic"
  17475. fi
  17476. # Check whether --enable-audio was given.
  17477. if test ${enable_audio+y}
  17478. then :
  17479. enableval=$enable_audio;
  17480. else $as_nop
  17481. enable_audio=yes
  17482. fi
  17483. if test x$enable_audio != xyes; then
  17484. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17485. else
  17486. SUMMARY_modules="${SUMMARY_modules} audio"
  17487. fi
  17488. # Check whether --enable-video was given.
  17489. if test ${enable_video+y}
  17490. then :
  17491. enableval=$enable_video;
  17492. else $as_nop
  17493. enable_video=yes
  17494. fi
  17495. if test x$enable_video != xyes; then
  17496. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17497. else
  17498. SUMMARY_modules="${SUMMARY_modules} video"
  17499. fi
  17500. # Check whether --enable-render was given.
  17501. if test ${enable_render+y}
  17502. then :
  17503. enableval=$enable_render;
  17504. else $as_nop
  17505. enable_render=yes
  17506. fi
  17507. if test x$enable_render != xyes; then
  17508. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17509. else
  17510. SUMMARY_modules="${SUMMARY_modules} render"
  17511. fi
  17512. # Check whether --enable-events was given.
  17513. if test ${enable_events+y}
  17514. then :
  17515. enableval=$enable_events;
  17516. else $as_nop
  17517. enable_events=yes
  17518. fi
  17519. if test x$enable_events != xyes; then
  17520. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17521. else
  17522. SUMMARY_modules="${SUMMARY_modules} events"
  17523. fi
  17524. # Check whether --enable-joystick was given.
  17525. if test ${enable_joystick+y}
  17526. then :
  17527. enableval=$enable_joystick;
  17528. else $as_nop
  17529. enable_joystick=yes
  17530. fi
  17531. if test x$enable_joystick != xyes; then
  17532. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17533. else
  17534. SUMMARY_modules="${SUMMARY_modules} joystick"
  17535. fi
  17536. # Check whether --enable-haptic was given.
  17537. if test ${enable_haptic+y}
  17538. then :
  17539. enableval=$enable_haptic;
  17540. else $as_nop
  17541. enable_haptic=yes
  17542. fi
  17543. if test x$enable_haptic != xyes; then
  17544. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17545. else
  17546. SUMMARY_modules="${SUMMARY_modules} haptic"
  17547. fi
  17548. # Check whether --enable-hidapi was given.
  17549. if test ${enable_hidapi+y}
  17550. then :
  17551. enableval=$enable_hidapi;
  17552. else $as_nop
  17553. enable_hidapi=yes
  17554. fi
  17555. if test x$enable_hidapi != xyes; then
  17556. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17557. else
  17558. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17559. fi
  17560. # Check whether --enable-sensor was given.
  17561. if test ${enable_sensor+y}
  17562. then :
  17563. enableval=$enable_sensor;
  17564. else $as_nop
  17565. enable_sensor=yes
  17566. fi
  17567. if test x$enable_sensor != xyes; then
  17568. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17569. else
  17570. SUMMARY_modules="${SUMMARY_modules} sensor"
  17571. fi
  17572. # Check whether --enable-power was given.
  17573. if test ${enable_power+y}
  17574. then :
  17575. enableval=$enable_power;
  17576. else $as_nop
  17577. enable_power=yes
  17578. fi
  17579. if test x$enable_power != xyes; then
  17580. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17581. else
  17582. SUMMARY_modules="${SUMMARY_modules} power"
  17583. fi
  17584. # Check whether --enable-filesystem was given.
  17585. if test ${enable_filesystem+y}
  17586. then :
  17587. enableval=$enable_filesystem;
  17588. else $as_nop
  17589. enable_filesystem=yes
  17590. fi
  17591. if test x$enable_filesystem != xyes; then
  17592. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17593. else
  17594. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17595. fi
  17596. # Many subsystems depend on threads, so leave them enabled by default
  17597. #AC_ARG_ENABLE(threads,
  17598. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17599. # , enable_threads=yes)
  17600. enable_threads=yes
  17601. if test x$enable_threads != xyes; then
  17602. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17603. else
  17604. SUMMARY_modules="${SUMMARY_modules} threads"
  17605. fi
  17606. # Check whether --enable-timers was given.
  17607. if test ${enable_timers+y}
  17608. then :
  17609. enableval=$enable_timers;
  17610. else $as_nop
  17611. enable_timers=yes
  17612. fi
  17613. if test x$enable_timers != xyes; then
  17614. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17615. else
  17616. SUMMARY_modules="${SUMMARY_modules} timers"
  17617. fi
  17618. # Check whether --enable-file was given.
  17619. if test ${enable_file+y}
  17620. then :
  17621. enableval=$enable_file;
  17622. else $as_nop
  17623. enable_file=yes
  17624. fi
  17625. if test x$enable_file != xyes; then
  17626. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17627. else
  17628. SUMMARY_modules="${SUMMARY_modules} file"
  17629. fi
  17630. # Check whether --enable-misc was given.
  17631. if test ${enable_misc+y}
  17632. then :
  17633. enableval=$enable_misc;
  17634. else $as_nop
  17635. enable_misc=yes
  17636. fi
  17637. if test x$enable_misc != xyes; then
  17638. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17639. else
  17640. SUMMARY_modules="${SUMMARY_modules} misc"
  17641. fi
  17642. # Check whether --enable-locale was given.
  17643. if test ${enable_locale+y}
  17644. then :
  17645. enableval=$enable_locale;
  17646. else $as_nop
  17647. enable_locale=yes
  17648. fi
  17649. if test x$enable_locale != xyes; then
  17650. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17651. else
  17652. SUMMARY_modules="${SUMMARY_modules} locale"
  17653. fi
  17654. # Check whether --enable-loadso was given.
  17655. if test ${enable_loadso+y}
  17656. then :
  17657. enableval=$enable_loadso;
  17658. else $as_nop
  17659. enable_loadso=yes
  17660. fi
  17661. if test x$enable_loadso != xyes; then
  17662. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17663. else
  17664. SUMMARY_modules="${SUMMARY_modules} loadso"
  17665. fi
  17666. # Check whether --enable-cpuinfo was given.
  17667. if test ${enable_cpuinfo+y}
  17668. then :
  17669. enableval=$enable_cpuinfo;
  17670. else $as_nop
  17671. enable_cpuinfo=yes
  17672. fi
  17673. if test x$enable_cpuinfo != xyes; then
  17674. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17675. else
  17676. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17677. fi
  17678. # Check whether --enable-assembly was given.
  17679. if test ${enable_assembly+y}
  17680. then :
  17681. enableval=$enable_assembly;
  17682. else $as_nop
  17683. enable_assembly=yes
  17684. fi
  17685. if test x$enable_assembly = xyes; then
  17686. SUMMARY_modules="${SUMMARY_modules} assembly"
  17687. # Make sure that we don't generate floating point code that would
  17688. # cause illegal instruction exceptions on older processors
  17689. case "$host" in
  17690. *-*-darwin*)
  17691. # Don't need to worry about Apple hardware, it's all SSE capable
  17692. default_ssemath=yes
  17693. ;;
  17694. *64-*-*)
  17695. # x86 64-bit architectures all have SSE instructions
  17696. default_ssemath=yes
  17697. ;;
  17698. *)
  17699. default_ssemath=no
  17700. ;;
  17701. esac
  17702. # Check whether --enable-ssemath was given.
  17703. if test ${enable_ssemath+y}
  17704. then :
  17705. enableval=$enable_ssemath;
  17706. else $as_nop
  17707. enable_ssemath=$default_ssemath
  17708. fi
  17709. if test x$enable_ssemath = xno; then
  17710. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17711. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17712. fi
  17713. fi
  17714. # Check whether --enable-mmx was given.
  17715. if test ${enable_mmx+y}
  17716. then :
  17717. enableval=$enable_mmx;
  17718. else $as_nop
  17719. enable_mmx=yes
  17720. fi
  17721. if test x$enable_mmx = xyes; then
  17722. save_CFLAGS="$CFLAGS"
  17723. have_gcc_mmx=no
  17724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17725. printf %s "checking for GCC -mmmx option... " >&6; }
  17726. mmx_CFLAGS="-mmmx"
  17727. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17729. /* end confdefs.h. */
  17730. #ifdef __MINGW32__
  17731. #include <_mingw.h>
  17732. #ifdef __MINGW64_VERSION_MAJOR
  17733. #include <intrin.h>
  17734. #else
  17735. #include <mmintrin.h>
  17736. #endif
  17737. #else
  17738. #include <mmintrin.h>
  17739. #endif
  17740. #ifndef __MMX__
  17741. #error Assembler CPP flag not enabled
  17742. #endif
  17743. int
  17744. main (void)
  17745. {
  17746. ;
  17747. return 0;
  17748. }
  17749. _ACEOF
  17750. if ac_fn_c_try_compile "$LINENO"
  17751. then :
  17752. have_gcc_mmx=yes
  17753. fi
  17754. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17756. printf "%s\n" "$have_gcc_mmx" >&6; }
  17757. CFLAGS="$save_CFLAGS"
  17758. if test x$have_gcc_mmx = xyes; then
  17759. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17760. SUMMARY_math="${SUMMARY_math} mmx"
  17761. fi
  17762. fi
  17763. # Check whether --enable-3dnow was given.
  17764. if test ${enable_3dnow+y}
  17765. then :
  17766. enableval=$enable_3dnow;
  17767. else $as_nop
  17768. enable_3dnow=yes
  17769. fi
  17770. if test x$enable_3dnow = xyes; then
  17771. save_CFLAGS="$CFLAGS"
  17772. have_gcc_3dnow=no
  17773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17774. printf %s "checking for GCC -m3dnow option... " >&6; }
  17775. amd3dnow_CFLAGS="-m3dnow"
  17776. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17778. /* end confdefs.h. */
  17779. #include <mm3dnow.h>
  17780. #ifndef __3dNOW__
  17781. #error Assembler CPP flag not enabled
  17782. #endif
  17783. int
  17784. main (void)
  17785. {
  17786. void *p = 0;
  17787. _m_prefetch(p);
  17788. ;
  17789. return 0;
  17790. }
  17791. _ACEOF
  17792. if ac_fn_c_try_link "$LINENO"
  17793. then :
  17794. have_gcc_3dnow=yes
  17795. fi
  17796. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17797. conftest$ac_exeext conftest.$ac_ext
  17798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17799. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17800. CFLAGS="$save_CFLAGS"
  17801. if test x$have_gcc_3dnow = xyes; then
  17802. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17803. SUMMARY_math="${SUMMARY_math} 3dnow"
  17804. fi
  17805. fi
  17806. # Check whether --enable-sse was given.
  17807. if test ${enable_sse+y}
  17808. then :
  17809. enableval=$enable_sse;
  17810. else $as_nop
  17811. enable_sse=yes
  17812. fi
  17813. if test x$enable_sse = xyes; then
  17814. save_CFLAGS="$CFLAGS"
  17815. have_gcc_sse=no
  17816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17817. printf %s "checking for GCC -msse option... " >&6; }
  17818. sse_CFLAGS="-msse"
  17819. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17821. /* end confdefs.h. */
  17822. #ifdef __MINGW32__
  17823. #include <_mingw.h>
  17824. #ifdef __MINGW64_VERSION_MAJOR
  17825. #include <intrin.h>
  17826. #else
  17827. #include <xmmintrin.h>
  17828. #endif
  17829. #else
  17830. #include <xmmintrin.h>
  17831. #endif
  17832. #ifndef __SSE__
  17833. #error Assembler CPP flag not enabled
  17834. #endif
  17835. int
  17836. main (void)
  17837. {
  17838. ;
  17839. return 0;
  17840. }
  17841. _ACEOF
  17842. if ac_fn_c_try_compile "$LINENO"
  17843. then :
  17844. have_gcc_sse=yes
  17845. fi
  17846. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17848. printf "%s\n" "$have_gcc_sse" >&6; }
  17849. CFLAGS="$save_CFLAGS"
  17850. if test x$have_gcc_sse = xyes; then
  17851. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17852. SUMMARY_math="${SUMMARY_math} sse"
  17853. fi
  17854. fi
  17855. # Check whether --enable-sse2 was given.
  17856. if test ${enable_sse2+y}
  17857. then :
  17858. enableval=$enable_sse2;
  17859. else $as_nop
  17860. enable_sse2=$default_ssemath
  17861. fi
  17862. if test x$enable_sse2 = xyes; then
  17863. save_CFLAGS="$CFLAGS"
  17864. have_gcc_sse2=no
  17865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17866. printf %s "checking for GCC -msse2 option... " >&6; }
  17867. sse2_CFLAGS="-msse2"
  17868. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17870. /* end confdefs.h. */
  17871. #ifdef __MINGW32__
  17872. #include <_mingw.h>
  17873. #ifdef __MINGW64_VERSION_MAJOR
  17874. #include <intrin.h>
  17875. #else
  17876. #include <emmintrin.h>
  17877. #endif
  17878. #else
  17879. #include <emmintrin.h>
  17880. #endif
  17881. #ifndef __SSE2__
  17882. #error Assembler CPP flag not enabled
  17883. #endif
  17884. int
  17885. main (void)
  17886. {
  17887. ;
  17888. return 0;
  17889. }
  17890. _ACEOF
  17891. if ac_fn_c_try_compile "$LINENO"
  17892. then :
  17893. have_gcc_sse2=yes
  17894. fi
  17895. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17897. printf "%s\n" "$have_gcc_sse2" >&6; }
  17898. CFLAGS="$save_CFLAGS"
  17899. if test x$have_gcc_sse2 = xyes; then
  17900. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17901. SUMMARY_math="${SUMMARY_math} sse2"
  17902. fi
  17903. fi
  17904. # Check whether --enable-sse3 was given.
  17905. if test ${enable_sse3+y}
  17906. then :
  17907. enableval=$enable_sse3;
  17908. else $as_nop
  17909. enable_sse3=$default_ssemath
  17910. fi
  17911. if test x$enable_sse3 = xyes; then
  17912. save_CFLAGS="$CFLAGS"
  17913. have_gcc_sse3=no
  17914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17915. printf %s "checking for GCC -msse3 option... " >&6; }
  17916. sse3_CFLAGS="-msse3"
  17917. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17919. /* end confdefs.h. */
  17920. #ifdef __MINGW32__
  17921. #include <_mingw.h>
  17922. #ifdef __MINGW64_VERSION_MAJOR
  17923. #include <intrin.h>
  17924. #else
  17925. #include <pmmintrin.h>
  17926. #endif
  17927. #else
  17928. #include <pmmintrin.h>
  17929. #endif
  17930. #ifndef __SSE2__
  17931. #error Assembler CPP flag not enabled
  17932. #endif
  17933. int
  17934. main (void)
  17935. {
  17936. ;
  17937. return 0;
  17938. }
  17939. _ACEOF
  17940. if ac_fn_c_try_compile "$LINENO"
  17941. then :
  17942. have_gcc_sse3=yes
  17943. fi
  17944. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17946. printf "%s\n" "$have_gcc_sse3" >&6; }
  17947. CFLAGS="$save_CFLAGS"
  17948. if test x$have_gcc_sse3 = xyes; then
  17949. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17950. SUMMARY_math="${SUMMARY_math} sse3"
  17951. fi
  17952. fi
  17953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17954. printf %s "checking for immintrin.h... " >&6; }
  17955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17956. /* end confdefs.h. */
  17957. #include <immintrin.h>
  17958. int
  17959. main (void)
  17960. {
  17961. ;
  17962. return 0;
  17963. }
  17964. _ACEOF
  17965. if ac_fn_c_try_compile "$LINENO"
  17966. then :
  17967. have_immintrin_h_hdr=yes
  17968. else $as_nop
  17969. have_immintrin_h_hdr=no
  17970. fi
  17971. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17973. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17974. if test x$have_immintrin_h_hdr = xyes; then
  17975. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17976. fi
  17977. # Check whether --enable-altivec was given.
  17978. if test ${enable_altivec+y}
  17979. then :
  17980. enableval=$enable_altivec;
  17981. else $as_nop
  17982. enable_altivec=yes
  17983. fi
  17984. if test x$enable_altivec = xyes; then
  17985. save_CFLAGS="$CFLAGS"
  17986. have_gcc_altivec=no
  17987. have_altivec_h_hdr=no
  17988. altivec_CFLAGS="-maltivec"
  17989. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17991. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17993. /* end confdefs.h. */
  17994. #include <altivec.h>
  17995. vector unsigned int vzero() {
  17996. return vec_splat_u32(0);
  17997. }
  17998. int
  17999. main (void)
  18000. {
  18001. ;
  18002. return 0;
  18003. }
  18004. _ACEOF
  18005. if ac_fn_c_try_compile "$LINENO"
  18006. then :
  18007. have_gcc_altivec=yes
  18008. have_altivec_h_hdr=yes
  18009. fi
  18010. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18012. printf "%s\n" "$have_gcc_altivec" >&6; }
  18013. if test x$have_gcc_altivec = xno; then
  18014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18015. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18017. /* end confdefs.h. */
  18018. vector unsigned int vzero() {
  18019. return vec_splat_u32(0);
  18020. }
  18021. int
  18022. main (void)
  18023. {
  18024. ;
  18025. return 0;
  18026. }
  18027. _ACEOF
  18028. if ac_fn_c_try_compile "$LINENO"
  18029. then :
  18030. have_gcc_altivec=yes
  18031. fi
  18032. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18034. printf "%s\n" "$have_gcc_altivec" >&6; }
  18035. fi
  18036. if test x$have_gcc_altivec = xno; then
  18037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18038. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18039. altivec_CFLAGS="-faltivec"
  18040. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18042. /* end confdefs.h. */
  18043. #include <altivec.h>
  18044. vector unsigned int vzero() {
  18045. return vec_splat_u32(0);
  18046. }
  18047. int
  18048. main (void)
  18049. {
  18050. ;
  18051. return 0;
  18052. }
  18053. _ACEOF
  18054. if ac_fn_c_try_compile "$LINENO"
  18055. then :
  18056. have_gcc_altivec=yes
  18057. have_altivec_h_hdr=yes
  18058. fi
  18059. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18061. printf "%s\n" "$have_gcc_altivec" >&6; }
  18062. fi
  18063. if test x$have_gcc_altivec = xno; then
  18064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18065. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18067. /* end confdefs.h. */
  18068. vector unsigned int vzero() {
  18069. return vec_splat_u32(0);
  18070. }
  18071. int
  18072. main (void)
  18073. {
  18074. ;
  18075. return 0;
  18076. }
  18077. _ACEOF
  18078. if ac_fn_c_try_compile "$LINENO"
  18079. then :
  18080. have_gcc_altivec=yes
  18081. fi
  18082. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18084. printf "%s\n" "$have_gcc_altivec" >&6; }
  18085. fi
  18086. CFLAGS="$save_CFLAGS"
  18087. if test x$have_gcc_altivec = xyes; then
  18088. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18089. if test x$have_altivec_h_hdr = xyes; then
  18090. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18091. fi
  18092. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18093. SUMMARY_math="${SUMMARY_math} altivec"
  18094. fi
  18095. fi
  18096. fi
  18097. # Check whether --enable-lsx was given.
  18098. if test ${enable_lsx+y}
  18099. then :
  18100. enableval=$enable_lsx;
  18101. else $as_nop
  18102. enable_lsx=yes
  18103. fi
  18104. if test x$enable_lsx = xyes; then
  18105. save_CFLAGS="$CFLAGS"
  18106. have_gcc_lsx=no
  18107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18108. printf %s "checking for GCC -mlsx option... " >&6; }
  18109. lsx_CFLAGS="-mlsx"
  18110. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18112. /* end confdefs.h. */
  18113. #ifndef __loongarch_sx
  18114. #error Assembler CPP flag not enabled
  18115. #endif
  18116. int
  18117. main (void)
  18118. {
  18119. ;
  18120. return 0;
  18121. }
  18122. _ACEOF
  18123. if ac_fn_c_try_compile "$LINENO"
  18124. then :
  18125. have_gcc_lsx=yes
  18126. fi
  18127. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18129. printf "%s\n" "$have_gcc_lsx" >&6; }
  18130. CFLAGS="$save_CFLAGS"
  18131. if test x$have_gcc_lsx = xyes; then
  18132. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18133. SUMMARY_math="${SUMMARY_math} lsx"
  18134. fi
  18135. fi
  18136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18137. printf %s "checking for lsxintrin.h... " >&6; }
  18138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18139. /* end confdefs.h. */
  18140. #include <lsxintrin.h>
  18141. int
  18142. main (void)
  18143. {
  18144. ;
  18145. return 0;
  18146. }
  18147. _ACEOF
  18148. if ac_fn_c_try_compile "$LINENO"
  18149. then :
  18150. have_lsxintrin_h_hdr=yes
  18151. else $as_nop
  18152. have_lsxintrin_h_hdr=no
  18153. fi
  18154. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18156. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18157. if test x$have_lsxintrin_h_hdr = xyes; then
  18158. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18159. fi
  18160. # Check whether --enable-lasx was given.
  18161. if test ${enable_lasx+y}
  18162. then :
  18163. enableval=$enable_lasx;
  18164. else $as_nop
  18165. enable_LASX=yes
  18166. fi
  18167. if test x$enable_LASX = xyes; then
  18168. save_CFLAGS="$CFLAGS"
  18169. have_gcc_lasx=no
  18170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18171. printf %s "checking for GCC -mlasx option... " >&6; }
  18172. lasx_CFLAGS="-mlasx"
  18173. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18175. /* end confdefs.h. */
  18176. #ifndef __loongarch_asx
  18177. #error Assembler CPP flag not enabled
  18178. #endif
  18179. int
  18180. main (void)
  18181. {
  18182. ;
  18183. return 0;
  18184. }
  18185. _ACEOF
  18186. if ac_fn_c_try_compile "$LINENO"
  18187. then :
  18188. have_gcc_lasx=yes
  18189. fi
  18190. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18192. printf "%s\n" "$have_gcc_lasx" >&6; }
  18193. CFLAGS="$save_CFLAGS"
  18194. if test x$have_gcc_lasx = xyes; then
  18195. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18196. SUMMARY_math="${SUMMARY_math} lasx"
  18197. fi
  18198. fi
  18199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18200. printf %s "checking for lasxintrin.h... " >&6; }
  18201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18202. /* end confdefs.h. */
  18203. #include <lasxintrin.h>
  18204. int
  18205. main (void)
  18206. {
  18207. ;
  18208. return 0;
  18209. }
  18210. _ACEOF
  18211. if ac_fn_c_try_compile "$LINENO"
  18212. then :
  18213. have_lasxintrin_h_hdr=yes
  18214. else $as_nop
  18215. have_lasxintrin_h_hdr=no
  18216. fi
  18217. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18219. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18220. if test x$have_lasxintrin_h_hdr = xyes; then
  18221. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18222. fi
  18223. CheckOSS()
  18224. {
  18225. # Check whether --enable-oss was given.
  18226. if test ${enable_oss+y}
  18227. then :
  18228. enableval=$enable_oss;
  18229. else $as_nop
  18230. enable_oss=maybe
  18231. fi
  18232. if test x$enable_oss = xmaybe; then
  18233. enable_oss=yes
  18234. fi
  18235. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18237. printf %s "checking for OSS audio support... " >&6; }
  18238. have_oss=no
  18239. if test x$have_oss != xyes; then
  18240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18241. /* end confdefs.h. */
  18242. #include <sys/soundcard.h>
  18243. int
  18244. main (void)
  18245. {
  18246. int arg = SNDCTL_DSP_SETFRAGMENT;
  18247. ;
  18248. return 0;
  18249. }
  18250. _ACEOF
  18251. if ac_fn_c_try_compile "$LINENO"
  18252. then :
  18253. have_oss=yes
  18254. fi
  18255. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18256. fi
  18257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18258. printf "%s\n" "$have_oss" >&6; }
  18259. if test x$have_oss = xyes; then
  18260. SUMMARY_audio="${SUMMARY_audio} oss"
  18261. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18262. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18263. have_audio=yes
  18264. # We may need to link with ossaudio emulation library
  18265. case "$host" in
  18266. *-*-netbsd*)
  18267. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18268. esac
  18269. fi
  18270. fi
  18271. }
  18272. CheckALSA()
  18273. {
  18274. # Check whether --enable-alsa was given.
  18275. if test ${enable_alsa+y}
  18276. then :
  18277. enableval=$enable_alsa;
  18278. else $as_nop
  18279. enable_alsa=yes
  18280. fi
  18281. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18282. alsa_save_CFLAGS="$CFLAGS"
  18283. alsa_save_LDFLAGS="$LDFLAGS"
  18284. alsa_save_LIBS="$LIBS"
  18285. alsa_found=yes
  18286. # Check whether --with-alsa-prefix was given.
  18287. if test ${with_alsa_prefix+y}
  18288. then :
  18289. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18290. else $as_nop
  18291. alsa_prefix=""
  18292. fi
  18293. # Check whether --with-alsa-inc-prefix was given.
  18294. if test ${with_alsa_inc_prefix+y}
  18295. then :
  18296. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18297. else $as_nop
  18298. alsa_inc_prefix=""
  18299. fi
  18300. # Check whether --enable-alsatest was given.
  18301. if test ${enable_alsatest+y}
  18302. then :
  18303. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18304. else $as_nop
  18305. enable_alsatest=yes
  18306. fi
  18307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18308. printf %s "checking for ALSA CFLAGS... " >&6; }
  18309. if test "$alsa_inc_prefix" != "" ; then
  18310. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18311. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18312. fi
  18313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18314. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18316. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18317. if test "$alsa_prefix" != "" ; then
  18318. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18319. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18320. fi
  18321. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18322. LIBS=`echo $LIBS | sed 's/-lm//'`
  18323. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18324. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18325. LIBS=`echo $LIBS | sed 's/ //'`
  18326. LIBS="$ALSA_LIBS $LIBS"
  18327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18328. printf "%s\n" "$ALSA_LIBS" >&6; }
  18329. min_alsa_version=1.0.11
  18330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18331. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18332. no_alsa=""
  18333. alsa_min_major_version=`echo $min_alsa_version | \
  18334. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18335. alsa_min_minor_version=`echo $min_alsa_version | \
  18336. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18337. alsa_min_micro_version=`echo $min_alsa_version | \
  18338. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18339. ac_ext=c
  18340. ac_cpp='$CPP $CPPFLAGS'
  18341. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18342. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18343. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18345. /* end confdefs.h. */
  18346. #include <alsa/asoundlib.h>
  18347. int
  18348. main (void)
  18349. {
  18350. /* ensure backward compatibility */
  18351. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18352. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18353. #endif
  18354. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18355. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18356. #endif
  18357. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18358. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18359. #endif
  18360. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18361. exit(0);
  18362. # else
  18363. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18364. # error not present
  18365. # endif
  18366. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18367. exit(0);
  18368. # else
  18369. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18370. # error not present
  18371. # endif
  18372. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18373. # error not present
  18374. # endif
  18375. # endif
  18376. # endif
  18377. exit(0);
  18378. ;
  18379. return 0;
  18380. }
  18381. _ACEOF
  18382. if ac_fn_c_try_compile "$LINENO"
  18383. then :
  18384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18385. printf "%s\n" "found." >&6; }
  18386. else $as_nop
  18387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18388. printf "%s\n" "not present." >&6; }
  18389. alsa_found=no
  18390. fi
  18391. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18392. ac_ext=c
  18393. ac_cpp='$CPP $CPPFLAGS'
  18394. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18395. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18396. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18397. if test "x$enable_alsatest" = "xyes"; then
  18398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18399. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18400. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18401. then :
  18402. printf %s "(cached) " >&6
  18403. else $as_nop
  18404. ac_check_lib_save_LIBS=$LIBS
  18405. LIBS="-lasound $LIBS"
  18406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18407. /* end confdefs.h. */
  18408. /* Override any GCC internal prototype to avoid an error.
  18409. Use char because int might match the return type of a GCC
  18410. builtin and then its argument prototype would still apply. */
  18411. char snd_ctl_open ();
  18412. int
  18413. main (void)
  18414. {
  18415. return snd_ctl_open ();
  18416. ;
  18417. return 0;
  18418. }
  18419. _ACEOF
  18420. if ac_fn_c_try_link "$LINENO"
  18421. then :
  18422. ac_cv_lib_asound_snd_ctl_open=yes
  18423. else $as_nop
  18424. ac_cv_lib_asound_snd_ctl_open=no
  18425. fi
  18426. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18427. conftest$ac_exeext conftest.$ac_ext
  18428. LIBS=$ac_check_lib_save_LIBS
  18429. fi
  18430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18431. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18432. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18433. then :
  18434. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18435. LIBS="-lasound $LIBS"
  18436. else $as_nop
  18437. alsa_found=no
  18438. fi
  18439. fi
  18440. if test "x$alsa_found" = "xyes" ; then
  18441. have_alsa=yes
  18442. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18443. LIBS=`echo $LIBS | sed 's/ //'`
  18444. LIBS="-lasound $LIBS"
  18445. fi
  18446. if test "x$alsa_found" = "xno" ; then
  18447. have_alsa=no
  18448. CFLAGS="$alsa_save_CFLAGS"
  18449. LDFLAGS="$alsa_save_LDFLAGS"
  18450. LIBS="$alsa_save_LIBS"
  18451. ALSA_CFLAGS=""
  18452. ALSA_LIBS=""
  18453. fi
  18454. # Restore all flags from before the ALSA detection runs
  18455. CFLAGS="$alsa_save_CFLAGS"
  18456. LDFLAGS="$alsa_save_LDFLAGS"
  18457. LIBS="$alsa_save_LIBS"
  18458. if test x$have_alsa = xyes; then
  18459. # Check whether --enable-alsa-shared was given.
  18460. if test ${enable_alsa_shared+y}
  18461. then :
  18462. enableval=$enable_alsa_shared;
  18463. else $as_nop
  18464. enable_alsa_shared=yes
  18465. fi
  18466. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18467. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18468. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18469. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18470. if test x$have_loadso != xyes && \
  18471. test x$enable_alsa_shared = xyes; then
  18472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18473. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18474. fi
  18475. if test x$have_loadso = xyes && \
  18476. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18477. echo "-- dynamic libasound -> $alsa_lib"
  18478. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18479. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18480. else
  18481. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18482. SUMMARY_audio="${SUMMARY_audio} alsa"
  18483. fi
  18484. have_audio=yes
  18485. fi
  18486. fi
  18487. }
  18488. CheckJACK()
  18489. {
  18490. # Check whether --enable-jack was given.
  18491. if test ${enable_jack+y}
  18492. then :
  18493. enableval=$enable_jack;
  18494. else $as_nop
  18495. enable_jack=yes
  18496. fi
  18497. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18498. pkg_failed=no
  18499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18500. printf %s "checking for jack >= 0.125... " >&6; }
  18501. if test -n "$JACK_CFLAGS"; then
  18502. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18503. elif test -n "$PKG_CONFIG"; then
  18504. if test -n "$PKG_CONFIG" && \
  18505. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18506. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18507. ac_status=$?
  18508. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18509. test $ac_status = 0; }; then
  18510. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18511. test "x$?" != "x0" && pkg_failed=yes
  18512. else
  18513. pkg_failed=yes
  18514. fi
  18515. else
  18516. pkg_failed=untried
  18517. fi
  18518. if test -n "$JACK_LIBS"; then
  18519. pkg_cv_JACK_LIBS="$JACK_LIBS"
  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_LIBS=`$PKG_CONFIG --libs "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 $pkg_failed = yes; then
  18536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18537. printf "%s\n" "no" >&6; }
  18538. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18539. _pkg_short_errors_supported=yes
  18540. else
  18541. _pkg_short_errors_supported=no
  18542. fi
  18543. if test $_pkg_short_errors_supported = yes; then
  18544. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18545. else
  18546. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18547. fi
  18548. # Put the nasty error message in config.log where it belongs
  18549. echo "$JACK_PKG_ERRORS" >&5
  18550. audio_jack=no
  18551. elif test $pkg_failed = untried; then
  18552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18553. printf "%s\n" "no" >&6; }
  18554. audio_jack=no
  18555. else
  18556. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18557. JACK_LIBS=$pkg_cv_JACK_LIBS
  18558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18559. printf "%s\n" "yes" >&6; }
  18560. audio_jack=yes
  18561. fi
  18562. if test x$audio_jack = xyes; then
  18563. # Check whether --enable-jack-shared was given.
  18564. if test ${enable_jack_shared+y}
  18565. then :
  18566. enableval=$enable_jack_shared;
  18567. else $as_nop
  18568. enable_jack_shared=yes
  18569. fi
  18570. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18571. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18572. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18573. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18574. if test x$have_loadso != xyes && \
  18575. test x$enable_jack_shared = xyes; then
  18576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18577. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18578. fi
  18579. if test x$have_loadso = xyes && \
  18580. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18581. echo "-- dynamic libjack -> $jack_lib"
  18582. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18583. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18584. case "$host" in
  18585. # On Solaris, jack must be linked deferred explicitly
  18586. # to prevent undefined symbol failures.
  18587. *-*-solaris*)
  18588. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18589. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18590. esac
  18591. else
  18592. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18593. SUMMARY_audio="${SUMMARY_audio} jack"
  18594. fi
  18595. have_audio=yes
  18596. fi
  18597. fi
  18598. }
  18599. CheckESD()
  18600. {
  18601. # Check whether --enable-esd was given.
  18602. if test ${enable_esd+y}
  18603. then :
  18604. enableval=$enable_esd;
  18605. else $as_nop
  18606. enable_esd=yes
  18607. fi
  18608. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18609. pkg_failed=no
  18610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18611. printf %s "checking for esound >= 0.2.8... " >&6; }
  18612. if test -n "$ESD_CFLAGS"; then
  18613. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18614. elif test -n "$PKG_CONFIG"; then
  18615. if test -n "$PKG_CONFIG" && \
  18616. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18617. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18618. ac_status=$?
  18619. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18620. test $ac_status = 0; }; then
  18621. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18622. test "x$?" != "x0" && pkg_failed=yes
  18623. else
  18624. pkg_failed=yes
  18625. fi
  18626. else
  18627. pkg_failed=untried
  18628. fi
  18629. if test -n "$ESD_LIBS"; then
  18630. pkg_cv_ESD_LIBS="$ESD_LIBS"
  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_LIBS=`$PKG_CONFIG --libs "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 $pkg_failed = yes; then
  18647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18648. printf "%s\n" "no" >&6; }
  18649. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18650. _pkg_short_errors_supported=yes
  18651. else
  18652. _pkg_short_errors_supported=no
  18653. fi
  18654. if test $_pkg_short_errors_supported = yes; then
  18655. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18656. else
  18657. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18658. fi
  18659. # Put the nasty error message in config.log where it belongs
  18660. echo "$ESD_PKG_ERRORS" >&5
  18661. have_esd=no
  18662. elif test $pkg_failed = untried; then
  18663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18664. printf "%s\n" "no" >&6; }
  18665. have_esd=no
  18666. else
  18667. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18668. ESD_LIBS=$pkg_cv_ESD_LIBS
  18669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18670. printf "%s\n" "yes" >&6; }
  18671. have_esd=yes
  18672. fi
  18673. if test x$have_esd = xno; then
  18674. # Check whether --with-esd-prefix was given.
  18675. if test ${with_esd_prefix+y}
  18676. then :
  18677. withval=$with_esd_prefix; esd_prefix="$withval"
  18678. else $as_nop
  18679. esd_prefix=""
  18680. fi
  18681. # Check whether --with-esd-exec-prefix was given.
  18682. if test ${with_esd_exec_prefix+y}
  18683. then :
  18684. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18685. else $as_nop
  18686. esd_exec_prefix=""
  18687. fi
  18688. # Check whether --enable-esdtest was given.
  18689. if test ${enable_esdtest+y}
  18690. then :
  18691. enableval=$enable_esdtest;
  18692. else $as_nop
  18693. enable_esdtest=yes
  18694. fi
  18695. if test x$esd_exec_prefix != x ; then
  18696. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18697. if test x${ESD_CONFIG+set} != xset ; then
  18698. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18699. fi
  18700. fi
  18701. if test x$esd_prefix != x ; then
  18702. esd_args="$esd_args --prefix=$esd_prefix"
  18703. if test x${ESD_CONFIG+set} != xset ; then
  18704. ESD_CONFIG=$esd_prefix/bin/esd-config
  18705. fi
  18706. fi
  18707. # Extract the first word of "esd-config", so it can be a program name with args.
  18708. set dummy esd-config; ac_word=$2
  18709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18710. printf %s "checking for $ac_word... " >&6; }
  18711. if test ${ac_cv_path_ESD_CONFIG+y}
  18712. then :
  18713. printf %s "(cached) " >&6
  18714. else $as_nop
  18715. case $ESD_CONFIG in
  18716. [\\/]* | ?:[\\/]*)
  18717. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18718. ;;
  18719. *)
  18720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18721. for as_dir in $PATH
  18722. do
  18723. IFS=$as_save_IFS
  18724. case $as_dir in #(((
  18725. '') as_dir=./ ;;
  18726. */) ;;
  18727. *) as_dir=$as_dir/ ;;
  18728. esac
  18729. for ac_exec_ext in '' $ac_executable_extensions; do
  18730. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18731. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18733. break 2
  18734. fi
  18735. done
  18736. done
  18737. IFS=$as_save_IFS
  18738. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18739. ;;
  18740. esac
  18741. fi
  18742. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18743. if test -n "$ESD_CONFIG"; then
  18744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18745. printf "%s\n" "$ESD_CONFIG" >&6; }
  18746. else
  18747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18748. printf "%s\n" "no" >&6; }
  18749. fi
  18750. min_esd_version=0.2.8
  18751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18752. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18753. no_esd=""
  18754. if test "$ESD_CONFIG" = "no" ; then
  18755. no_esd=yes
  18756. else
  18757. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18758. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18759. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18760. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18761. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18762. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18763. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18764. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18765. if test "x$enable_esdtest" = "xyes" ; then
  18766. ac_ext=c
  18767. ac_cpp='$CPP $CPPFLAGS'
  18768. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18769. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18770. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18771. ac_save_CFLAGS="$CFLAGS"
  18772. ac_save_LIBS="$LIBS"
  18773. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18774. LIBS="$LIBS $ESD_LIBS"
  18775. rm -f conf.esdtest
  18776. if test "$cross_compiling" = yes
  18777. then :
  18778. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18779. else $as_nop
  18780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18781. /* end confdefs.h. */
  18782. #include <stdio.h>
  18783. #include <stdlib.h>
  18784. #include <esd.h>
  18785. int main (void)
  18786. {
  18787. int major, minor, micro;
  18788. FILE *fp = fopen("conf.esdtest", "w");
  18789. if (fp) fclose(fp);
  18790. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18791. printf("%s, bad version string\n", "$min_esd_version");
  18792. exit(1);
  18793. }
  18794. if (($esd_major_version > major) ||
  18795. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18796. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18797. {
  18798. return 0;
  18799. }
  18800. else
  18801. {
  18802. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18803. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18804. printf("*** best to upgrade to the required version.\n");
  18805. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18806. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18807. printf("*** config.cache before re-running configure\n");
  18808. return 1;
  18809. }
  18810. }
  18811. _ACEOF
  18812. if ac_fn_c_try_run "$LINENO"
  18813. then :
  18814. else $as_nop
  18815. no_esd=yes
  18816. fi
  18817. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18818. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18819. fi
  18820. CFLAGS="$ac_save_CFLAGS"
  18821. LIBS="$ac_save_LIBS"
  18822. ac_ext=c
  18823. ac_cpp='$CPP $CPPFLAGS'
  18824. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18825. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18826. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18827. fi
  18828. fi
  18829. if test "x$no_esd" = x ; then
  18830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18831. printf "%s\n" "yes" >&6; }
  18832. have_esd=yes
  18833. else
  18834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18835. printf "%s\n" "no" >&6; }
  18836. if test "$ESD_CONFIG" = "no" ; then
  18837. :
  18838. else
  18839. if test -f conf.esdtest ; then
  18840. :
  18841. else
  18842. echo "*** Could not run ESD test program, checking why..."
  18843. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18844. LIBS="$LIBS $ESD_LIBS"
  18845. ac_ext=c
  18846. ac_cpp='$CPP $CPPFLAGS'
  18847. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18848. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18849. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18851. /* end confdefs.h. */
  18852. #include <stdio.h>
  18853. #include <esd.h>
  18854. int
  18855. main (void)
  18856. {
  18857. return 0;
  18858. ;
  18859. return 0;
  18860. }
  18861. _ACEOF
  18862. if ac_fn_c_try_link "$LINENO"
  18863. then :
  18864. echo "*** The test program compiled, but did not run. This usually means"
  18865. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18866. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18867. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18868. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18869. echo "*** is required on your system"
  18870. echo "***"
  18871. echo "*** If you have an old version installed, it is best to remove it, although"
  18872. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18873. else $as_nop
  18874. echo "*** The test program failed to compile or link. See the file config.log for the"
  18875. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18876. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18877. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18878. fi
  18879. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18880. conftest$ac_exeext conftest.$ac_ext
  18881. CFLAGS="$ac_save_CFLAGS"
  18882. LIBS="$ac_save_LIBS"
  18883. ac_ext=c
  18884. ac_cpp='$CPP $CPPFLAGS'
  18885. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18886. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18887. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18888. fi
  18889. fi
  18890. ESD_CFLAGS=""
  18891. ESD_LIBS=""
  18892. have_esd=no
  18893. fi
  18894. rm -f conf.esdtest
  18895. fi
  18896. if test x$have_esd = xyes; then
  18897. # Check whether --enable-esd-shared was given.
  18898. if test ${enable_esd_shared+y}
  18899. then :
  18900. enableval=$enable_esd_shared;
  18901. else $as_nop
  18902. enable_esd_shared=yes
  18903. fi
  18904. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18905. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18906. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18907. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18908. if test x$have_loadso != xyes && \
  18909. test x$enable_esd_shared = xyes; then
  18910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18911. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18912. fi
  18913. if test x$have_loadso = xyes && \
  18914. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18915. echo "-- dynamic libesd -> $esd_lib"
  18916. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  18917. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18918. else
  18919. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18920. SUMMARY_audio="${SUMMARY_audio} esd"
  18921. fi
  18922. have_audio=yes
  18923. fi
  18924. fi
  18925. }
  18926. CheckPipewire()
  18927. {
  18928. # Check whether --enable-pipewire was given.
  18929. if test ${enable_pipewire+y}
  18930. then :
  18931. enableval=$enable_pipewire;
  18932. else $as_nop
  18933. enable_pipewire=yes
  18934. fi
  18935. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18936. pkg_failed=no
  18937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18938. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18939. if test -n "$PIPEWIRE_CFLAGS"; then
  18940. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18941. elif test -n "$PKG_CONFIG"; then
  18942. if test -n "$PKG_CONFIG" && \
  18943. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18944. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18945. ac_status=$?
  18946. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18947. test $ac_status = 0; }; then
  18948. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18949. test "x$?" != "x0" && pkg_failed=yes
  18950. else
  18951. pkg_failed=yes
  18952. fi
  18953. else
  18954. pkg_failed=untried
  18955. fi
  18956. if test -n "$PIPEWIRE_LIBS"; then
  18957. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  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_LIBS=`$PKG_CONFIG --libs "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 $pkg_failed = yes; then
  18974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18975. printf "%s\n" "no" >&6; }
  18976. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18977. _pkg_short_errors_supported=yes
  18978. else
  18979. _pkg_short_errors_supported=no
  18980. fi
  18981. if test $_pkg_short_errors_supported = yes; then
  18982. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18983. else
  18984. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18985. fi
  18986. # Put the nasty error message in config.log where it belongs
  18987. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18988. audio_pipewire=no
  18989. elif test $pkg_failed = untried; then
  18990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18991. printf "%s\n" "no" >&6; }
  18992. audio_pipewire=no
  18993. else
  18994. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  18995. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  18996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18997. printf "%s\n" "yes" >&6; }
  18998. audio_pipewire=yes
  18999. fi
  19000. if test x$audio_pipewire = xyes; then
  19001. # Check whether --enable-pipewire-shared was given.
  19002. if test ${enable_pipewire_shared+y}
  19003. then :
  19004. enableval=$enable_pipewire_shared;
  19005. else $as_nop
  19006. enable_pipewire_shared=yes
  19007. fi
  19008. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19009. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19010. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19011. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19012. if test x$have_loadso != xyes && \
  19013. test x$enable_pipewire_shared = xyes; then
  19014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19015. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19016. fi
  19017. if test x$have_loadso = xyes && \
  19018. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19019. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19020. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19021. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19022. else
  19023. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19024. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19025. fi
  19026. have_audio=yes
  19027. fi
  19028. fi
  19029. }
  19030. CheckPulseAudio()
  19031. {
  19032. # Check whether --enable-pulseaudio was given.
  19033. if test ${enable_pulseaudio+y}
  19034. then :
  19035. enableval=$enable_pulseaudio;
  19036. else $as_nop
  19037. enable_pulseaudio=yes
  19038. fi
  19039. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19040. pkg_failed=no
  19041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  19042. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  19043. if test -n "$PULSEAUDIO_CFLAGS"; then
  19044. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19045. elif test -n "$PKG_CONFIG"; then
  19046. if test -n "$PKG_CONFIG" && \
  19047. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19048. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19049. ac_status=$?
  19050. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19051. test $ac_status = 0; }; then
  19052. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  19053. test "x$?" != "x0" && pkg_failed=yes
  19054. else
  19055. pkg_failed=yes
  19056. fi
  19057. else
  19058. pkg_failed=untried
  19059. fi
  19060. if test -n "$PULSEAUDIO_LIBS"; then
  19061. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  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_LIBS=`$PKG_CONFIG --libs "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 $pkg_failed = yes; then
  19078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19079. printf "%s\n" "no" >&6; }
  19080. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19081. _pkg_short_errors_supported=yes
  19082. else
  19083. _pkg_short_errors_supported=no
  19084. fi
  19085. if test $_pkg_short_errors_supported = yes; then
  19086. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19087. else
  19088. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19089. fi
  19090. # Put the nasty error message in config.log where it belongs
  19091. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19092. audio_pulseaudio=no
  19093. elif test $pkg_failed = untried; then
  19094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19095. printf "%s\n" "no" >&6; }
  19096. audio_pulseaudio=no
  19097. else
  19098. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19099. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19101. printf "%s\n" "yes" >&6; }
  19102. audio_pulseaudio=yes
  19103. fi
  19104. if test x$audio_pulseaudio = xyes; then
  19105. # Check whether --enable-pulseaudio-shared was given.
  19106. if test ${enable_pulseaudio_shared+y}
  19107. then :
  19108. enableval=$enable_pulseaudio_shared;
  19109. else $as_nop
  19110. enable_pulseaudio_shared=yes
  19111. fi
  19112. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19113. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19114. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19115. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19116. if test x$have_loadso != xyes && \
  19117. test x$enable_pulseaudio_shared = xyes; then
  19118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19119. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19120. fi
  19121. if test x$have_loadso = xyes && \
  19122. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19123. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19124. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19125. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19126. case "$host" in
  19127. # On Solaris, pulseaudio must be linked deferred explicitly
  19128. # to prevent undefined symbol failures.
  19129. *-*-solaris*)
  19130. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19131. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19132. esac
  19133. else
  19134. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19135. SUMMARY_audio="${SUMMARY_audio} pulse"
  19136. fi
  19137. have_audio=yes
  19138. fi
  19139. fi
  19140. }
  19141. CheckARTSC()
  19142. {
  19143. # Check whether --enable-arts was given.
  19144. if test ${enable_arts+y}
  19145. then :
  19146. enableval=$enable_arts;
  19147. else $as_nop
  19148. enable_arts=yes
  19149. fi
  19150. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19151. # Extract the first word of "artsc-config", so it can be a program name with args.
  19152. set dummy artsc-config; ac_word=$2
  19153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19154. printf %s "checking for $ac_word... " >&6; }
  19155. if test ${ac_cv_path_ARTSCONFIG+y}
  19156. then :
  19157. printf %s "(cached) " >&6
  19158. else $as_nop
  19159. case $ARTSCONFIG in
  19160. [\\/]* | ?:[\\/]*)
  19161. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19162. ;;
  19163. *)
  19164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19165. for as_dir in $PATH
  19166. do
  19167. IFS=$as_save_IFS
  19168. case $as_dir in #(((
  19169. '') as_dir=./ ;;
  19170. */) ;;
  19171. *) as_dir=$as_dir/ ;;
  19172. esac
  19173. for ac_exec_ext in '' $ac_executable_extensions; do
  19174. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19175. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19176. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19177. break 2
  19178. fi
  19179. done
  19180. done
  19181. IFS=$as_save_IFS
  19182. ;;
  19183. esac
  19184. fi
  19185. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19186. if test -n "$ARTSCONFIG"; then
  19187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19188. printf "%s\n" "$ARTSCONFIG" >&6; }
  19189. else
  19190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19191. printf "%s\n" "no" >&6; }
  19192. fi
  19193. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19194. : # arts isn't installed
  19195. else
  19196. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19197. ARTS_LIBS=`$ARTSCONFIG --libs`
  19198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19199. printf %s "checking for aRts development environment... " >&6; }
  19200. audio_arts=no
  19201. save_CFLAGS="$CFLAGS"
  19202. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19204. /* end confdefs.h. */
  19205. #include <artsc.h>
  19206. int
  19207. main (void)
  19208. {
  19209. arts_stream_t stream;
  19210. ;
  19211. return 0;
  19212. }
  19213. _ACEOF
  19214. if ac_fn_c_try_compile "$LINENO"
  19215. then :
  19216. audio_arts=yes
  19217. fi
  19218. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19219. CFLAGS="$save_CFLAGS"
  19220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19221. printf "%s\n" "$audio_arts" >&6; }
  19222. if test x$audio_arts = xyes; then
  19223. # Check whether --enable-arts-shared was given.
  19224. if test ${enable_arts_shared+y}
  19225. then :
  19226. enableval=$enable_arts_shared;
  19227. else $as_nop
  19228. enable_arts_shared=yes
  19229. fi
  19230. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19231. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19232. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19233. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19234. if test x$have_loadso != xyes && \
  19235. test x$enable_arts_shared = xyes; then
  19236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19237. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19238. fi
  19239. if test x$have_loadso = xyes && \
  19240. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19241. echo "-- dynamic libartsc -> $arts_lib"
  19242. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19243. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19244. else
  19245. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19246. SUMMARY_audio="${SUMMARY_audio} arts"
  19247. fi
  19248. have_audio=yes
  19249. fi
  19250. fi
  19251. fi
  19252. }
  19253. CheckNAS()
  19254. {
  19255. # Check whether --enable-nas was given.
  19256. if test ${enable_nas+y}
  19257. then :
  19258. enableval=$enable_nas;
  19259. else $as_nop
  19260. enable_nas=yes
  19261. fi
  19262. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19263. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19264. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19265. then :
  19266. have_nas_hdr=yes
  19267. fi
  19268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19269. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19270. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19271. then :
  19272. printf %s "(cached) " >&6
  19273. else $as_nop
  19274. ac_check_lib_save_LIBS=$LIBS
  19275. LIBS="-laudio $LIBS"
  19276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19277. /* end confdefs.h. */
  19278. /* Override any GCC internal prototype to avoid an error.
  19279. Use char because int might match the return type of a GCC
  19280. builtin and then its argument prototype would still apply. */
  19281. char AuOpenServer ();
  19282. int
  19283. main (void)
  19284. {
  19285. return AuOpenServer ();
  19286. ;
  19287. return 0;
  19288. }
  19289. _ACEOF
  19290. if ac_fn_c_try_link "$LINENO"
  19291. then :
  19292. ac_cv_lib_audio_AuOpenServer=yes
  19293. else $as_nop
  19294. ac_cv_lib_audio_AuOpenServer=no
  19295. fi
  19296. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19297. conftest$ac_exeext conftest.$ac_ext
  19298. LIBS=$ac_check_lib_save_LIBS
  19299. fi
  19300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19301. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19302. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19303. then :
  19304. have_nas_lib=yes
  19305. fi
  19306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19307. printf %s "checking for NAS audio support... " >&6; }
  19308. have_nas=no
  19309. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19310. have_nas=yes
  19311. NAS_LIBS="-laudio"
  19312. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19313. have_nas=yes
  19314. NAS_CFLAGS="-I/usr/X11R6/include/"
  19315. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19316. fi
  19317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19318. printf "%s\n" "$have_nas" >&6; }
  19319. if test x$have_nas = xyes; then
  19320. # Check whether --enable-nas-shared was given.
  19321. if test ${enable_nas_shared+y}
  19322. then :
  19323. enableval=$enable_nas_shared;
  19324. else $as_nop
  19325. enable_nas_shared=yes
  19326. fi
  19327. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19328. if test x$have_loadso != xyes && \
  19329. test x$enable_nas_shared = xyes; then
  19330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19331. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19332. fi
  19333. if test x$have_loadso = xyes && \
  19334. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19335. echo "-- dynamic libaudio -> $nas_lib"
  19336. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19337. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19338. else
  19339. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19340. SUMMARY_audio="${SUMMARY_audio} nas"
  19341. fi
  19342. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19343. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19344. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19345. have_audio=yes
  19346. fi
  19347. fi
  19348. }
  19349. CheckSNDIO()
  19350. {
  19351. # Check whether --enable-sndio was given.
  19352. if test ${enable_sndio+y}
  19353. then :
  19354. enableval=$enable_sndio;
  19355. else $as_nop
  19356. enable_sndio=yes
  19357. fi
  19358. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19359. pkg_failed=no
  19360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19361. printf %s "checking for sndio... " >&6; }
  19362. if test -n "$SNDIO_CFLAGS"; then
  19363. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19364. elif test -n "$PKG_CONFIG"; then
  19365. if test -n "$PKG_CONFIG" && \
  19366. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19367. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19368. ac_status=$?
  19369. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19370. test $ac_status = 0; }; then
  19371. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19372. test "x$?" != "x0" && pkg_failed=yes
  19373. else
  19374. pkg_failed=yes
  19375. fi
  19376. else
  19377. pkg_failed=untried
  19378. fi
  19379. if test -n "$SNDIO_LIBS"; then
  19380. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  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_LIBS=`$PKG_CONFIG --libs "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 $pkg_failed = yes; then
  19397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19398. printf "%s\n" "no" >&6; }
  19399. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19400. _pkg_short_errors_supported=yes
  19401. else
  19402. _pkg_short_errors_supported=no
  19403. fi
  19404. if test $_pkg_short_errors_supported = yes; then
  19405. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19406. else
  19407. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19408. fi
  19409. # Put the nasty error message in config.log where it belongs
  19410. echo "$SNDIO_PKG_ERRORS" >&5
  19411. audio_sndio=no
  19412. elif test $pkg_failed = untried; then
  19413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19414. printf "%s\n" "no" >&6; }
  19415. audio_sndio=no
  19416. else
  19417. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19418. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19420. printf "%s\n" "yes" >&6; }
  19421. audio_sndio=yes
  19422. fi
  19423. if test x$audio_sndio = xyes; then
  19424. # Check whether --enable-sndio-shared was given.
  19425. if test ${enable_sndio_shared+y}
  19426. then :
  19427. enableval=$enable_sndio_shared;
  19428. else $as_nop
  19429. enable_sndio_shared=yes
  19430. fi
  19431. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19432. if test x$have_loadso != xyes && \
  19433. test x$enable_sndio_shared = xyes; then
  19434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19435. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19436. fi
  19437. if test x$have_loadso = xyes && \
  19438. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19439. echo "-- dynamic libsndio -> $sndio_lib"
  19440. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19441. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19442. else
  19443. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19444. SUMMARY_audio="${SUMMARY_audio} sndio"
  19445. fi
  19446. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19447. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19448. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19449. have_audio=yes
  19450. fi
  19451. fi
  19452. }
  19453. CheckFusionSound()
  19454. {
  19455. # Check whether --enable-fusionsound was given.
  19456. if test ${enable_fusionsound+y}
  19457. then :
  19458. enableval=$enable_fusionsound;
  19459. else $as_nop
  19460. enable_fusionsound=no
  19461. fi
  19462. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19463. pkg_failed=no
  19464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19465. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19466. if test -n "$FUSIONSOUND_CFLAGS"; then
  19467. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19468. elif test -n "$PKG_CONFIG"; then
  19469. if test -n "$PKG_CONFIG" && \
  19470. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19471. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19472. ac_status=$?
  19473. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19474. test $ac_status = 0; }; then
  19475. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19476. test "x$?" != "x0" && pkg_failed=yes
  19477. else
  19478. pkg_failed=yes
  19479. fi
  19480. else
  19481. pkg_failed=untried
  19482. fi
  19483. if test -n "$FUSIONSOUND_LIBS"; then
  19484. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  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_LIBS=`$PKG_CONFIG --libs "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 $pkg_failed = yes; then
  19501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19502. printf "%s\n" "no" >&6; }
  19503. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19504. _pkg_short_errors_supported=yes
  19505. else
  19506. _pkg_short_errors_supported=no
  19507. fi
  19508. if test $_pkg_short_errors_supported = yes; then
  19509. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19510. else
  19511. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19512. fi
  19513. # Put the nasty error message in config.log where it belongs
  19514. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19515. fusionsound=no
  19516. elif test $pkg_failed = untried; then
  19517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19518. printf "%s\n" "no" >&6; }
  19519. fusionsound=no
  19520. else
  19521. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19522. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19524. printf "%s\n" "yes" >&6; }
  19525. fusionsound=yes
  19526. fi
  19527. if test x$fusionsound = xyes; then
  19528. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19529. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19530. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19531. # Check whether --enable-fusionsound-shared was given.
  19532. if test ${enable_fusionsound_shared+y}
  19533. then :
  19534. enableval=$enable_fusionsound_shared;
  19535. else $as_nop
  19536. enable_fusionsound_shared=yes
  19537. fi
  19538. fusionsound_shared=no
  19539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19540. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19541. if test x$have_loadso != xyes && \
  19542. test x$enable_fusionsound_shared = xyes; then
  19543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19544. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19545. fi
  19546. if test x$have_loadso = xyes && \
  19547. test x$enable_fusionsound_shared = xyes; then
  19548. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19549. fusionsound_shared=yes
  19550. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19551. else
  19552. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19553. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19554. fi
  19555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19556. printf "%s\n" "$fusionsound_shared" >&6; }
  19557. have_audio=yes
  19558. fi
  19559. fi
  19560. }
  19561. CheckDiskAudio()
  19562. {
  19563. # Check whether --enable-diskaudio was given.
  19564. if test ${enable_diskaudio+y}
  19565. then :
  19566. enableval=$enable_diskaudio;
  19567. else $as_nop
  19568. enable_diskaudio=yes
  19569. fi
  19570. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19571. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19572. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19573. SUMMARY_audio="${SUMMARY_audio} disk"
  19574. have_audio=yes
  19575. fi
  19576. }
  19577. CheckDummyAudio()
  19578. {
  19579. # Check whether --enable-dummyaudio was given.
  19580. if test ${enable_dummyaudio+y}
  19581. then :
  19582. enableval=$enable_dummyaudio;
  19583. else $as_nop
  19584. enable_dummyaudio=yes
  19585. fi
  19586. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19587. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19588. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19589. SUMMARY_audio="${SUMMARY_audio} dummy"
  19590. have_audio=yes
  19591. fi
  19592. }
  19593. CheckLibSampleRate()
  19594. {
  19595. # Check whether --enable-libsamplerate was given.
  19596. if test ${enable_libsamplerate+y}
  19597. then :
  19598. enableval=$enable_libsamplerate;
  19599. else $as_nop
  19600. enable_libsamplerate=yes
  19601. fi
  19602. if test x$enable_libsamplerate = xyes; then
  19603. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19604. if test "x$ac_cv_header_samplerate_h" = xyes
  19605. then :
  19606. have_samplerate_h_hdr=yes
  19607. else $as_nop
  19608. have_samplerate_h_hdr=no
  19609. fi
  19610. if test x$have_samplerate_h_hdr = xyes; then
  19611. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19612. # Check whether --enable-libsamplerate-shared was given.
  19613. if test ${enable_libsamplerate_shared+y}
  19614. then :
  19615. enableval=$enable_libsamplerate_shared;
  19616. else $as_nop
  19617. enable_libsamplerate_shared=yes
  19618. fi
  19619. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19620. if test x$have_loadso != xyes && \
  19621. test x$enable_libsamplerate_shared = xyes; then
  19622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19623. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19624. fi
  19625. if test x$have_loadso = xyes && \
  19626. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19627. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19628. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19629. else
  19630. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19631. fi
  19632. fi
  19633. fi
  19634. }
  19635. CheckARM()
  19636. {
  19637. # Check whether --enable-arm-simd was given.
  19638. if test ${enable_arm_simd+y}
  19639. then :
  19640. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19641. else $as_nop
  19642. enable_arm_simd=no
  19643. fi
  19644. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19645. save_CFLAGS="$CFLAGS"
  19646. have_arm_simd=no
  19647. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19649. printf %s "checking for ARM SIMD... " >&6; }
  19650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19651. /* end confdefs.h. */
  19652. .text
  19653. .arch armv6
  19654. .object_arch armv4
  19655. .arm
  19656. .altmacro
  19657. #ifndef __ARM_EABI__
  19658. #error EABI is required (to be sure that calling conventions are compatible)
  19659. #endif
  19660. pld [r0]
  19661. uqadd8 r0, r0, r0
  19662. _ACEOF
  19663. if ac_fn_c_try_compile "$LINENO"
  19664. then :
  19665. have_arm_simd=yes
  19666. fi
  19667. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19669. printf "%s\n" "$have_arm_simd" >&6; }
  19670. CFLAGS="$save_CFLAGS"
  19671. if test x$have_arm_simd = xyes; then
  19672. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19673. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19674. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19675. fi
  19676. fi
  19677. }
  19678. CheckNEON()
  19679. {
  19680. # Check whether --enable-arm-neon was given.
  19681. if test ${enable_arm_neon+y}
  19682. then :
  19683. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19684. else $as_nop
  19685. enable_arm_neon=no
  19686. fi
  19687. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19688. save_CFLAGS="$CFLAGS"
  19689. have_arm_neon=no
  19690. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19692. printf %s "checking for ARM NEON... " >&6; }
  19693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19694. /* end confdefs.h. */
  19695. .text
  19696. .fpu neon
  19697. .arch armv7a
  19698. .object_arch armv4
  19699. .eabi_attribute 10, 0
  19700. .arm
  19701. .altmacro
  19702. #ifndef __ARM_EABI__
  19703. #error EABI is required (to be sure that calling conventions are compatible)
  19704. #endif
  19705. pld [r0]
  19706. vmovn.u16 d0, q0
  19707. _ACEOF
  19708. if ac_fn_c_try_compile "$LINENO"
  19709. then :
  19710. have_arm_neon=yes
  19711. fi
  19712. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19714. printf "%s\n" "$have_arm_neon" >&6; }
  19715. CFLAGS="$save_CFLAGS"
  19716. if test x$have_arm_neon = xyes; then
  19717. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19718. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19719. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19720. fi
  19721. fi
  19722. }
  19723. CheckObjectiveCARC()
  19724. {
  19725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19726. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19727. have_clang_objc_arc=no
  19728. save_CFLAGS="$CFLAGS"
  19729. CFLAGS="$save_CFLAGS -fobjc-arc"
  19730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19731. /* end confdefs.h. */
  19732. int x = 0;
  19733. int
  19734. main (void)
  19735. {
  19736. ;
  19737. return 0;
  19738. }
  19739. _ACEOF
  19740. if ac_fn_c_try_compile "$LINENO"
  19741. then :
  19742. have_clang_objc_arc=yes
  19743. fi
  19744. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19746. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19747. CFLAGS="$save_CFLAGS"
  19748. if test x$have_clang_objc_arc = xyes; then
  19749. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19750. fi
  19751. }
  19752. CheckGDwarf4()
  19753. {
  19754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19755. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19756. have_gcc_gdwarf4=no
  19757. save_CFLAGS="$CFLAGS"
  19758. CFLAGS="$save_CFLAGS -gdwarf-4"
  19759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19760. /* end confdefs.h. */
  19761. int x = 0;
  19762. int
  19763. main (void)
  19764. {
  19765. ;
  19766. return 0;
  19767. }
  19768. _ACEOF
  19769. if ac_fn_c_try_compile "$LINENO"
  19770. then :
  19771. have_gcc_gdwarf4=yes
  19772. fi
  19773. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19775. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19776. CFLAGS="$save_CFLAGS"
  19777. if test x$have_gcc_gdwarf4 = xyes; then
  19778. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19779. fi
  19780. }
  19781. CheckVisibilityHidden()
  19782. {
  19783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19784. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19785. have_gcc_fvisibility=no
  19786. visibility_CFLAGS="-fvisibility=hidden"
  19787. save_CFLAGS="$CFLAGS"
  19788. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19790. /* end confdefs.h. */
  19791. #if !defined(__GNUC__) || __GNUC__ < 4
  19792. #error SDL only uses visibility attributes in GCC 4 or newer
  19793. #endif
  19794. int
  19795. main (void)
  19796. {
  19797. ;
  19798. return 0;
  19799. }
  19800. _ACEOF
  19801. if ac_fn_c_try_compile "$LINENO"
  19802. then :
  19803. have_gcc_fvisibility=yes
  19804. fi
  19805. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19807. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19808. CFLAGS="$save_CFLAGS"
  19809. if test x$have_gcc_fvisibility = xyes; then
  19810. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19811. fi
  19812. }
  19813. CheckNoStrictAliasing()
  19814. {
  19815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19816. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19817. have_gcc_no_strict_aliasing=no
  19818. save_CFLAGS="$CFLAGS"
  19819. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19821. /* end confdefs.h. */
  19822. int x = 0;
  19823. int
  19824. main (void)
  19825. {
  19826. ;
  19827. return 0;
  19828. }
  19829. _ACEOF
  19830. if ac_fn_c_try_compile "$LINENO"
  19831. then :
  19832. have_gcc_no_strict_aliasing=yes
  19833. fi
  19834. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19836. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19837. CFLAGS="$save_CFLAGS"
  19838. if test x$have_gcc_no_strict_aliasing = xyes; then
  19839. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19840. fi
  19841. }
  19842. CheckStackBoundary()
  19843. {
  19844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19845. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19846. have_gcc_preferred_stack_boundary=no
  19847. save_CFLAGS="$CFLAGS"
  19848. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19850. /* end confdefs.h. */
  19851. int x = 0;
  19852. int
  19853. main (void)
  19854. {
  19855. ;
  19856. return 0;
  19857. }
  19858. _ACEOF
  19859. if ac_fn_c_try_compile "$LINENO"
  19860. then :
  19861. have_gcc_preferred_stack_boundary=yes
  19862. fi
  19863. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19865. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19866. CFLAGS="$save_CFLAGS"
  19867. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19868. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19869. fi
  19870. }
  19871. CheckWerror()
  19872. {
  19873. # Check whether --enable-werror was given.
  19874. if test ${enable_werror+y}
  19875. then :
  19876. enableval=$enable_werror; enable_werror=$enableval
  19877. else $as_nop
  19878. enable_werror=no
  19879. fi
  19880. if test x$enable_werror = xyes; then
  19881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19882. printf %s "checking for GCC -Werror option... " >&6; }
  19883. have_gcc_werror=no
  19884. save_CFLAGS="$CFLAGS"
  19885. CFLAGS="$save_CFLAGS -Werror"
  19886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19887. /* end confdefs.h. */
  19888. int x = 0;
  19889. int
  19890. main (void)
  19891. {
  19892. ;
  19893. return 0;
  19894. }
  19895. _ACEOF
  19896. if ac_fn_c_try_compile "$LINENO"
  19897. then :
  19898. have_gcc_werror=yes
  19899. fi
  19900. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19902. printf "%s\n" "$have_gcc_werror" >&6; }
  19903. CFLAGS="$save_CFLAGS"
  19904. if test x$have_gcc_werror = xyes; then
  19905. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  19906. fi
  19907. fi
  19908. }
  19909. CheckNoErrorDeprecatedDeclarationsWerror()
  19910. {
  19911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  19912. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  19913. have_gcc_no_werror_deprecated_declarations=no
  19914. save_CFLAGS="$CFLAGS"
  19915. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  19916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19917. /* end confdefs.h. */
  19918. int x = 0;
  19919. int
  19920. main (void)
  19921. {
  19922. ;
  19923. return 0;
  19924. }
  19925. _ACEOF
  19926. if ac_fn_c_try_compile "$LINENO"
  19927. then :
  19928. have_gcc_no_werror_deprecated_declarations=yes
  19929. fi
  19930. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19932. printf "%s\n" "$have_gcc_werror" >&6; }
  19933. CFLAGS="$save_CFLAGS"
  19934. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  19935. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  19936. fi
  19937. }
  19938. CheckDeclarationAfterStatement()
  19939. {
  19940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19941. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19942. have_gcc_declaration_after_statement=no
  19943. save_CFLAGS="$CFLAGS"
  19944. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19946. /* end confdefs.h. */
  19947. int x = 0;
  19948. int
  19949. main (void)
  19950. {
  19951. ;
  19952. return 0;
  19953. }
  19954. _ACEOF
  19955. if ac_fn_c_try_compile "$LINENO"
  19956. then :
  19957. have_gcc_declaration_after_statement=yes
  19958. fi
  19959. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19961. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19962. CFLAGS="$save_CFLAGS"
  19963. if test x$have_gcc_declaration_after_statement = xyes; then
  19964. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19965. fi
  19966. }
  19967. CheckWarnAll()
  19968. {
  19969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19970. printf %s "checking for GCC -Wall option... " >&6; }
  19971. have_gcc_Wall=no
  19972. save_CFLAGS="$CFLAGS"
  19973. CFLAGS="$save_CFLAGS -Wall"
  19974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19975. /* end confdefs.h. */
  19976. int x = 0;
  19977. int
  19978. main (void)
  19979. {
  19980. ;
  19981. return 0;
  19982. }
  19983. _ACEOF
  19984. if ac_fn_c_try_compile "$LINENO"
  19985. then :
  19986. have_gcc_Wall=yes
  19987. fi
  19988. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19990. printf "%s\n" "$have_gcc_Wall" >&6; }
  19991. CFLAGS="$save_CFLAGS"
  19992. if test x$have_gcc_Wall = xyes; then
  19993. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19995. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19996. need_gcc_Wno_multichar=no
  19997. case "$host" in
  19998. *-*-haiku*)
  19999. need_gcc_Wno_multichar=yes
  20000. ;;
  20001. esac
  20002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  20003. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  20004. if test x$need_gcc_Wno_multichar = xyes; then
  20005. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20006. fi
  20007. fi
  20008. }
  20009. CheckWayland()
  20010. {
  20011. # Check whether --enable-video-wayland was given.
  20012. if test ${enable_video_wayland+y}
  20013. then :
  20014. enableval=$enable_video_wayland;
  20015. else $as_nop
  20016. enable_video_wayland=yes
  20017. fi
  20018. # Check whether --enable-video-wayland-qt-touch was given.
  20019. if test ${enable_video_wayland_qt_touch+y}
  20020. then :
  20021. enableval=$enable_video_wayland_qt_touch;
  20022. else $as_nop
  20023. enable_video_wayland_qt_touch=yes
  20024. fi
  20025. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20027. printf %s "checking for Wayland support... " >&6; }
  20028. video_wayland=no
  20029. if test x$video_opengl_egl = xyes && \
  20030. test x$video_opengles_v2 = xyes; then
  20031. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20032. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20033. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20034. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20035. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20036. then :
  20037. WAYLAND_SCANNER_CODE_MODE=private-code
  20038. else $as_nop
  20039. WAYLAND_SCANNER_CODE_MODE=code
  20040. fi
  20041. video_wayland=yes
  20042. fi
  20043. fi
  20044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20045. printf "%s\n" "$video_wayland" >&6; }
  20046. if test x$video_wayland = xyes; then
  20047. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20048. if test x$enable_video_wayland_qt_touch = xyes; then
  20049. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20050. fi
  20051. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20052. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20053. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20054. # Check whether --enable-wayland-shared was given.
  20055. if test ${enable_wayland_shared+y}
  20056. then :
  20057. enableval=$enable_wayland_shared;
  20058. else $as_nop
  20059. enable_wayland_shared=maybe
  20060. fi
  20061. case "$host" in
  20062. *)
  20063. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20064. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20065. if test x$wayland_egl_lib = x; then
  20066. # This works in Ubuntu 13.10, maybe others
  20067. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20068. fi
  20069. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20070. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20071. ;;
  20072. esac
  20073. if test x$enable_wayland_shared = xmaybe; then
  20074. enable_wayland_shared=yes
  20075. fi
  20076. if test x$have_loadso != xyes && \
  20077. test x$enable_wayland_shared = xyes; then
  20078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20079. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20080. enable_wayland_shared=no
  20081. fi
  20082. if test x$have_loadso = xyes && \
  20083. test x$enable_wayland_shared = xyes && \
  20084. test x$wayland_client_lib != x && \
  20085. test x$wayland_egl_lib != x && \
  20086. test x$wayland_cursor_lib != x && \
  20087. test x$xkbcommon_lib != x; then
  20088. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20089. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20090. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20091. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20092. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20093. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20094. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20095. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20096. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20097. else
  20098. enable_wayland_shared=no
  20099. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20100. SUMMARY_video="${SUMMARY_video} wayland"
  20101. fi
  20102. have_video=yes
  20103. # Check whether --enable-libdecor was given.
  20104. if test ${enable_libdecor+y}
  20105. then :
  20106. enableval=$enable_libdecor;
  20107. else $as_nop
  20108. enable_libdecor=yes
  20109. fi
  20110. if test x$enable_libdecor = xyes; then
  20111. pkg_failed=no
  20112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20113. printf %s "checking for libdecor-0... " >&6; }
  20114. if test -n "$DECOR_CFLAGS"; then
  20115. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20116. elif test -n "$PKG_CONFIG"; then
  20117. if test -n "$PKG_CONFIG" && \
  20118. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20119. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20120. ac_status=$?
  20121. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20122. test $ac_status = 0; }; then
  20123. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20124. test "x$?" != "x0" && pkg_failed=yes
  20125. else
  20126. pkg_failed=yes
  20127. fi
  20128. else
  20129. pkg_failed=untried
  20130. fi
  20131. if test -n "$DECOR_LIBS"; then
  20132. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  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_LIBS=`$PKG_CONFIG --libs "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 $pkg_failed = yes; then
  20149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20150. printf "%s\n" "no" >&6; }
  20151. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20152. _pkg_short_errors_supported=yes
  20153. else
  20154. _pkg_short_errors_supported=no
  20155. fi
  20156. if test $_pkg_short_errors_supported = yes; then
  20157. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20158. else
  20159. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20160. fi
  20161. # Put the nasty error message in config.log where it belongs
  20162. echo "$DECOR_PKG_ERRORS" >&5
  20163. video_libdecor=no
  20164. elif test $pkg_failed = untried; then
  20165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20166. printf "%s\n" "no" >&6; }
  20167. video_libdecor=no
  20168. else
  20169. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20170. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20172. printf "%s\n" "yes" >&6; }
  20173. video_libdecor=yes
  20174. fi
  20175. if test x$video_libdecor = xyes; then
  20176. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20177. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20178. # Check whether --enable-libdecor-shared was given.
  20179. if test ${enable_libdecor_shared+y}
  20180. then :
  20181. enableval=$enable_libdecor_shared;
  20182. else $as_nop
  20183. enable_libdecor_shared=yes
  20184. fi
  20185. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20186. if test x$enable_wayland_shared != xyes; then
  20187. enable_libdecor_shared=no
  20188. fi
  20189. if test x$have_loadso != xyes && \
  20190. test x$enable_libdecor_shared = xyes; then
  20191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20192. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20193. fi
  20194. if test x$have_loadso = xyes && \
  20195. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20196. echo "-- dynamic libdecor -> $decor_lib"
  20197. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20198. else
  20199. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20200. fi
  20201. fi
  20202. fi
  20203. fi
  20204. fi
  20205. }
  20206. CheckNativeClient()
  20207. {
  20208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20209. /* end confdefs.h. */
  20210. #if !defined(__native_client__)
  20211. #error "NO NACL"
  20212. #endif
  20213. int
  20214. main (void)
  20215. {
  20216. ;
  20217. return 0;
  20218. }
  20219. _ACEOF
  20220. if ac_fn_c_try_compile "$LINENO"
  20221. then :
  20222. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20223. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20224. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20225. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20226. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20227. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20228. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20229. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20230. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20231. SUMMARY_audio="${SUMMARY_audio} nacl"
  20232. have_audio=yes
  20233. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20234. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20235. have_video=yes
  20236. fi
  20237. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20238. }
  20239. CheckRPI()
  20240. {
  20241. # Check whether --enable-video-rpi was given.
  20242. if test ${enable_video_rpi+y}
  20243. then :
  20244. enableval=$enable_video_rpi;
  20245. else $as_nop
  20246. enable_video_rpi=yes
  20247. fi
  20248. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20249. pkg_failed=no
  20250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20251. printf %s "checking for bcm_host brcmegl... " >&6; }
  20252. if test -n "$RPI_CFLAGS"; then
  20253. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20254. elif test -n "$PKG_CONFIG"; then
  20255. if test -n "$PKG_CONFIG" && \
  20256. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20257. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20258. ac_status=$?
  20259. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20260. test $ac_status = 0; }; then
  20261. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20262. test "x$?" != "x0" && pkg_failed=yes
  20263. else
  20264. pkg_failed=yes
  20265. fi
  20266. else
  20267. pkg_failed=untried
  20268. fi
  20269. if test -n "$RPI_LIBS"; then
  20270. pkg_cv_RPI_LIBS="$RPI_LIBS"
  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_LIBS=`$PKG_CONFIG --libs "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 $pkg_failed = yes; then
  20287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20288. printf "%s\n" "no" >&6; }
  20289. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20290. _pkg_short_errors_supported=yes
  20291. else
  20292. _pkg_short_errors_supported=no
  20293. fi
  20294. if test $_pkg_short_errors_supported = yes; then
  20295. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20296. else
  20297. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20298. fi
  20299. # Put the nasty error message in config.log where it belongs
  20300. echo "$RPI_PKG_ERRORS" >&5
  20301. video_rpi=no
  20302. elif test $pkg_failed = untried; then
  20303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20304. printf "%s\n" "no" >&6; }
  20305. video_rpi=no
  20306. else
  20307. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20308. RPI_LIBS=$pkg_cv_RPI_LIBS
  20309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20310. printf "%s\n" "yes" >&6; }
  20311. video_rpi=yes
  20312. fi
  20313. if test x$video_rpi = xno; then
  20314. if test x$ARCH = xnetbsd; then
  20315. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20316. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20317. else
  20318. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20319. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20320. fi
  20321. fi
  20322. # Save the original compiler flags and libraries
  20323. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20324. # Add the Raspberry Pi compiler flags and libraries
  20325. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20327. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20328. have_video_rpi=no
  20329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20330. /* end confdefs.h. */
  20331. #include <bcm_host.h>
  20332. #include <EGL/eglplatform.h>
  20333. int
  20334. main (void)
  20335. {
  20336. EGL_DISPMANX_WINDOW_T window;
  20337. bcm_host_init();
  20338. ;
  20339. return 0;
  20340. }
  20341. _ACEOF
  20342. if ac_fn_c_try_link "$LINENO"
  20343. then :
  20344. have_video_rpi=yes
  20345. fi
  20346. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20347. conftest$ac_exeext conftest.$ac_ext
  20348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20349. printf "%s\n" "$have_video_rpi" >&6; }
  20350. # Restore the compiler flags and libraries
  20351. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20352. if test x$have_video_rpi = xyes; then
  20353. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20354. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20355. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20356. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20357. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20358. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20359. SUMMARY_video="${SUMMARY_video} rpi"
  20360. have_video=yes
  20361. fi
  20362. fi
  20363. }
  20364. CheckX11()
  20365. {
  20366. # Check whether --enable-video-x11 was given.
  20367. if test ${enable_video_x11+y}
  20368. then :
  20369. enableval=$enable_video_x11;
  20370. else $as_nop
  20371. enable_video_x11=yes
  20372. case "$host" in
  20373. *-*-darwin*|*-ios-*)
  20374. enable_video_x11=no
  20375. ;;
  20376. esac
  20377. fi
  20378. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20379. case "$host" in
  20380. *-*-darwin*)
  20381. # This isn't necessary for X11, but fixes GLX detection
  20382. if test "x$x_includes" = xNONE && \
  20383. test "x$x_libraries" = xNONE && \
  20384. test -d /opt/X11/include && \
  20385. test -d /opt/X11/lib; then
  20386. x_includes="/opt/X11/include"
  20387. x_libraries="/opt/X11/lib"
  20388. fi
  20389. ;;
  20390. esac
  20391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20392. printf %s "checking for X... " >&6; }
  20393. # Check whether --with-x was given.
  20394. if test ${with_x+y}
  20395. then :
  20396. withval=$with_x;
  20397. fi
  20398. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20399. if test "x$with_x" = xno; then
  20400. # The user explicitly disabled X.
  20401. have_x=disabled
  20402. else
  20403. case $x_includes,$x_libraries in #(
  20404. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20405. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20406. then :
  20407. printf %s "(cached) " >&6
  20408. else $as_nop
  20409. # One or both of the vars are not set, and there is no cached value.
  20410. ac_x_includes=no
  20411. ac_x_libraries=no
  20412. # Do we need to do anything special at all?
  20413. ac_save_LIBS=$LIBS
  20414. LIBS="-lX11 $LIBS"
  20415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20416. /* end confdefs.h. */
  20417. #include <X11/Xlib.h>
  20418. int
  20419. main (void)
  20420. {
  20421. XrmInitialize ()
  20422. ;
  20423. return 0;
  20424. }
  20425. _ACEOF
  20426. if ac_fn_c_try_link "$LINENO"
  20427. then :
  20428. # We can compile and link X programs with no special options.
  20429. ac_x_includes=
  20430. ac_x_libraries=
  20431. fi
  20432. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20433. conftest$ac_exeext conftest.$ac_ext
  20434. LIBS="$ac_save_LIBS"
  20435. # If that didn't work, only try xmkmf and file system searches
  20436. # for native compilation.
  20437. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20438. then :
  20439. rm -f -r conftest.dir
  20440. if mkdir conftest.dir; then
  20441. cd conftest.dir
  20442. cat >Imakefile <<'_ACEOF'
  20443. incroot:
  20444. @echo incroot='${INCROOT}'
  20445. usrlibdir:
  20446. @echo usrlibdir='${USRLIBDIR}'
  20447. libdir:
  20448. @echo libdir='${LIBDIR}'
  20449. _ACEOF
  20450. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20451. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20452. for ac_var in incroot usrlibdir libdir; do
  20453. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20454. done
  20455. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20456. for ac_extension in a so sl dylib la dll; do
  20457. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20458. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20459. ac_im_usrlibdir=$ac_im_libdir; break
  20460. fi
  20461. done
  20462. # Screen out bogus values from the imake configuration. They are
  20463. # bogus both because they are the default anyway, and because
  20464. # using them would break gcc on systems where it needs fixed includes.
  20465. case $ac_im_incroot in
  20466. /usr/include) ac_x_includes= ;;
  20467. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20468. esac
  20469. case $ac_im_usrlibdir in
  20470. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20471. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20472. esac
  20473. fi
  20474. cd ..
  20475. rm -f -r conftest.dir
  20476. fi
  20477. # Standard set of common directories for X headers.
  20478. # Check X11 before X11Rn because it is often a symlink to the current release.
  20479. ac_x_header_dirs='
  20480. /usr/X11/include
  20481. /usr/X11R7/include
  20482. /usr/X11R6/include
  20483. /usr/X11R5/include
  20484. /usr/X11R4/include
  20485. /usr/include/X11
  20486. /usr/include/X11R7
  20487. /usr/include/X11R6
  20488. /usr/include/X11R5
  20489. /usr/include/X11R4
  20490. /usr/local/X11/include
  20491. /usr/local/X11R7/include
  20492. /usr/local/X11R6/include
  20493. /usr/local/X11R5/include
  20494. /usr/local/X11R4/include
  20495. /usr/local/include/X11
  20496. /usr/local/include/X11R7
  20497. /usr/local/include/X11R6
  20498. /usr/local/include/X11R5
  20499. /usr/local/include/X11R4
  20500. /opt/X11/include
  20501. /usr/X386/include
  20502. /usr/x386/include
  20503. /usr/XFree86/include/X11
  20504. /usr/include
  20505. /usr/local/include
  20506. /usr/unsupported/include
  20507. /usr/athena/include
  20508. /usr/local/x11r5/include
  20509. /usr/lpp/Xamples/include
  20510. /usr/openwin/include
  20511. /usr/openwin/share/include'
  20512. if test "$ac_x_includes" = no; then
  20513. # Guess where to find include files, by looking for Xlib.h.
  20514. # First, try using that file with no special directory specified.
  20515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20516. /* end confdefs.h. */
  20517. #include <X11/Xlib.h>
  20518. _ACEOF
  20519. if ac_fn_c_try_cpp "$LINENO"
  20520. then :
  20521. # We can compile using X headers with no special include directory.
  20522. ac_x_includes=
  20523. else $as_nop
  20524. for ac_dir in $ac_x_header_dirs; do
  20525. if test -r "$ac_dir/X11/Xlib.h"; then
  20526. ac_x_includes=$ac_dir
  20527. break
  20528. fi
  20529. done
  20530. fi
  20531. rm -f conftest.err conftest.i conftest.$ac_ext
  20532. fi # $ac_x_includes = no
  20533. if test "$ac_x_libraries" = no; then
  20534. # Check for the libraries.
  20535. # See if we find them without any special options.
  20536. # Don't add to $LIBS permanently.
  20537. ac_save_LIBS=$LIBS
  20538. LIBS="-lX11 $LIBS"
  20539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20540. /* end confdefs.h. */
  20541. #include <X11/Xlib.h>
  20542. int
  20543. main (void)
  20544. {
  20545. XrmInitialize ()
  20546. ;
  20547. return 0;
  20548. }
  20549. _ACEOF
  20550. if ac_fn_c_try_link "$LINENO"
  20551. then :
  20552. LIBS=$ac_save_LIBS
  20553. # We can link X programs with no special library path.
  20554. ac_x_libraries=
  20555. else $as_nop
  20556. LIBS=$ac_save_LIBS
  20557. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20558. do
  20559. # Don't even attempt the hair of trying to link an X program!
  20560. for ac_extension in a so sl dylib la dll; do
  20561. if test -r "$ac_dir/libX11.$ac_extension"; then
  20562. ac_x_libraries=$ac_dir
  20563. break 2
  20564. fi
  20565. done
  20566. done
  20567. fi
  20568. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20569. conftest$ac_exeext conftest.$ac_ext
  20570. fi # $ac_x_libraries = no
  20571. fi
  20572. # Record the results.
  20573. case $ac_x_includes,$ac_x_libraries in #(
  20574. no,* | *,no | *\'*) :
  20575. # Didn't find X, or a directory has "'" in its name.
  20576. ac_cv_have_x="have_x=no" ;; #(
  20577. *) :
  20578. # Record where we found X for the cache.
  20579. ac_cv_have_x="have_x=yes\
  20580. ac_x_includes='$ac_x_includes'\
  20581. ac_x_libraries='$ac_x_libraries'" ;;
  20582. esac
  20583. fi
  20584. ;; #(
  20585. *) have_x=yes;;
  20586. esac
  20587. eval "$ac_cv_have_x"
  20588. fi # $with_x != no
  20589. if test "$have_x" != yes; then
  20590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20591. printf "%s\n" "$have_x" >&6; }
  20592. no_x=yes
  20593. else
  20594. # If each of the values was on the command line, it overrides each guess.
  20595. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20596. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20597. # Update the cache value to reflect the command line values.
  20598. ac_cv_have_x="have_x=yes\
  20599. ac_x_includes='$x_includes'\
  20600. ac_x_libraries='$x_libraries'"
  20601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20602. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20603. fi
  20604. if test "$no_x" = yes; then
  20605. # Not all programs may use this symbol, but it does not hurt to define it.
  20606. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20607. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20608. else
  20609. if test -n "$x_includes"; then
  20610. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20611. fi
  20612. # It would also be nice to do this for all -L options, not just this one.
  20613. if test -n "$x_libraries"; then
  20614. X_LIBS="$X_LIBS -L$x_libraries"
  20615. # For Solaris; some versions of Sun CC require a space after -R and
  20616. # others require no space. Words are not sufficient . . . .
  20617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20618. printf %s "checking whether -R must be followed by a space... " >&6; }
  20619. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20620. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20621. ac_c_werror_flag=yes
  20622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20623. /* end confdefs.h. */
  20624. int
  20625. main (void)
  20626. {
  20627. ;
  20628. return 0;
  20629. }
  20630. _ACEOF
  20631. if ac_fn_c_try_link "$LINENO"
  20632. then :
  20633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20634. printf "%s\n" "no" >&6; }
  20635. X_LIBS="$X_LIBS -R$x_libraries"
  20636. else $as_nop
  20637. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20639. /* end confdefs.h. */
  20640. int
  20641. main (void)
  20642. {
  20643. ;
  20644. return 0;
  20645. }
  20646. _ACEOF
  20647. if ac_fn_c_try_link "$LINENO"
  20648. then :
  20649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20650. printf "%s\n" "yes" >&6; }
  20651. X_LIBS="$X_LIBS -R $x_libraries"
  20652. else $as_nop
  20653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20654. printf "%s\n" "neither works" >&6; }
  20655. fi
  20656. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20657. conftest$ac_exeext conftest.$ac_ext
  20658. fi
  20659. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20660. conftest$ac_exeext conftest.$ac_ext
  20661. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20662. LIBS=$ac_xsave_LIBS
  20663. fi
  20664. # Check for system-dependent libraries X programs must link with.
  20665. # Do this before checking for the system-independent R6 libraries
  20666. # (-lICE), since we may need -lsocket or whatever for X linking.
  20667. if test "$ISC" = yes; then
  20668. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20669. else
  20670. # Martyn Johnson says this is needed for Ultrix, if the X
  20671. # libraries were built with DECnet support. And Karl Berry says
  20672. # the Alpha needs dnet_stub (dnet does not exist).
  20673. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20675. /* end confdefs.h. */
  20676. /* Override any GCC internal prototype to avoid an error.
  20677. Use char because int might match the return type of a GCC
  20678. builtin and then its argument prototype would still apply. */
  20679. char XOpenDisplay ();
  20680. int
  20681. main (void)
  20682. {
  20683. return XOpenDisplay ();
  20684. ;
  20685. return 0;
  20686. }
  20687. _ACEOF
  20688. if ac_fn_c_try_link "$LINENO"
  20689. then :
  20690. else $as_nop
  20691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20692. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20693. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20694. then :
  20695. printf %s "(cached) " >&6
  20696. else $as_nop
  20697. ac_check_lib_save_LIBS=$LIBS
  20698. LIBS="-ldnet $LIBS"
  20699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20700. /* end confdefs.h. */
  20701. /* Override any GCC internal prototype to avoid an error.
  20702. Use char because int might match the return type of a GCC
  20703. builtin and then its argument prototype would still apply. */
  20704. char dnet_ntoa ();
  20705. int
  20706. main (void)
  20707. {
  20708. return dnet_ntoa ();
  20709. ;
  20710. return 0;
  20711. }
  20712. _ACEOF
  20713. if ac_fn_c_try_link "$LINENO"
  20714. then :
  20715. ac_cv_lib_dnet_dnet_ntoa=yes
  20716. else $as_nop
  20717. ac_cv_lib_dnet_dnet_ntoa=no
  20718. fi
  20719. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20720. conftest$ac_exeext conftest.$ac_ext
  20721. LIBS=$ac_check_lib_save_LIBS
  20722. fi
  20723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20724. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20725. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20726. then :
  20727. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20728. fi
  20729. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20731. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20732. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20733. then :
  20734. printf %s "(cached) " >&6
  20735. else $as_nop
  20736. ac_check_lib_save_LIBS=$LIBS
  20737. LIBS="-ldnet_stub $LIBS"
  20738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20739. /* end confdefs.h. */
  20740. /* Override any GCC internal prototype to avoid an error.
  20741. Use char because int might match the return type of a GCC
  20742. builtin and then its argument prototype would still apply. */
  20743. char dnet_ntoa ();
  20744. int
  20745. main (void)
  20746. {
  20747. return dnet_ntoa ();
  20748. ;
  20749. return 0;
  20750. }
  20751. _ACEOF
  20752. if ac_fn_c_try_link "$LINENO"
  20753. then :
  20754. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20755. else $as_nop
  20756. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20757. fi
  20758. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20759. conftest$ac_exeext conftest.$ac_ext
  20760. LIBS=$ac_check_lib_save_LIBS
  20761. fi
  20762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20763. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20764. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20765. then :
  20766. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20767. fi
  20768. fi
  20769. fi
  20770. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20771. conftest$ac_exeext conftest.$ac_ext
  20772. LIBS="$ac_xsave_LIBS"
  20773. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20774. # to get the SysV transport functions.
  20775. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20776. # needs -lnsl.
  20777. # The nsl library prevents programs from opening the X display
  20778. # on Irix 5.2, according to T.E. Dickey.
  20779. # The functions gethostbyname, getservbyname, and inet_addr are
  20780. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20781. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20782. if test "x$ac_cv_func_gethostbyname" = xyes
  20783. then :
  20784. fi
  20785. if test $ac_cv_func_gethostbyname = no; then
  20786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20787. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20788. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20789. then :
  20790. printf %s "(cached) " >&6
  20791. else $as_nop
  20792. ac_check_lib_save_LIBS=$LIBS
  20793. LIBS="-lnsl $LIBS"
  20794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20795. /* end confdefs.h. */
  20796. /* Override any GCC internal prototype to avoid an error.
  20797. Use char because int might match the return type of a GCC
  20798. builtin and then its argument prototype would still apply. */
  20799. char gethostbyname ();
  20800. int
  20801. main (void)
  20802. {
  20803. return gethostbyname ();
  20804. ;
  20805. return 0;
  20806. }
  20807. _ACEOF
  20808. if ac_fn_c_try_link "$LINENO"
  20809. then :
  20810. ac_cv_lib_nsl_gethostbyname=yes
  20811. else $as_nop
  20812. ac_cv_lib_nsl_gethostbyname=no
  20813. fi
  20814. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20815. conftest$ac_exeext conftest.$ac_ext
  20816. LIBS=$ac_check_lib_save_LIBS
  20817. fi
  20818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20819. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20820. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20821. then :
  20822. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20823. fi
  20824. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20826. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20827. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20828. then :
  20829. printf %s "(cached) " >&6
  20830. else $as_nop
  20831. ac_check_lib_save_LIBS=$LIBS
  20832. LIBS="-lbsd $LIBS"
  20833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20834. /* end confdefs.h. */
  20835. /* Override any GCC internal prototype to avoid an error.
  20836. Use char because int might match the return type of a GCC
  20837. builtin and then its argument prototype would still apply. */
  20838. char gethostbyname ();
  20839. int
  20840. main (void)
  20841. {
  20842. return gethostbyname ();
  20843. ;
  20844. return 0;
  20845. }
  20846. _ACEOF
  20847. if ac_fn_c_try_link "$LINENO"
  20848. then :
  20849. ac_cv_lib_bsd_gethostbyname=yes
  20850. else $as_nop
  20851. ac_cv_lib_bsd_gethostbyname=no
  20852. fi
  20853. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20854. conftest$ac_exeext conftest.$ac_ext
  20855. LIBS=$ac_check_lib_save_LIBS
  20856. fi
  20857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20858. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20859. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20860. then :
  20861. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20862. fi
  20863. fi
  20864. fi
  20865. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20866. # socket/setsockopt and other routines are undefined under SCO ODT
  20867. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20868. # on later versions), says Simon Leinen: it contains gethostby*
  20869. # variants that don't use the name server (or something). -lsocket
  20870. # must be given before -lnsl if both are needed. We assume that
  20871. # if connect needs -lnsl, so does gethostbyname.
  20872. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20873. if test "x$ac_cv_func_connect" = xyes
  20874. then :
  20875. fi
  20876. if test $ac_cv_func_connect = no; then
  20877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20878. printf %s "checking for connect in -lsocket... " >&6; }
  20879. if test ${ac_cv_lib_socket_connect+y}
  20880. then :
  20881. printf %s "(cached) " >&6
  20882. else $as_nop
  20883. ac_check_lib_save_LIBS=$LIBS
  20884. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20886. /* end confdefs.h. */
  20887. /* Override any GCC internal prototype to avoid an error.
  20888. Use char because int might match the return type of a GCC
  20889. builtin and then its argument prototype would still apply. */
  20890. char connect ();
  20891. int
  20892. main (void)
  20893. {
  20894. return connect ();
  20895. ;
  20896. return 0;
  20897. }
  20898. _ACEOF
  20899. if ac_fn_c_try_link "$LINENO"
  20900. then :
  20901. ac_cv_lib_socket_connect=yes
  20902. else $as_nop
  20903. ac_cv_lib_socket_connect=no
  20904. fi
  20905. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20906. conftest$ac_exeext conftest.$ac_ext
  20907. LIBS=$ac_check_lib_save_LIBS
  20908. fi
  20909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20910. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20911. if test "x$ac_cv_lib_socket_connect" = xyes
  20912. then :
  20913. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20914. fi
  20915. fi
  20916. # Guillermo Gomez says -lposix is necessary on A/UX.
  20917. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20918. if test "x$ac_cv_func_remove" = xyes
  20919. then :
  20920. fi
  20921. if test $ac_cv_func_remove = no; then
  20922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20923. printf %s "checking for remove in -lposix... " >&6; }
  20924. if test ${ac_cv_lib_posix_remove+y}
  20925. then :
  20926. printf %s "(cached) " >&6
  20927. else $as_nop
  20928. ac_check_lib_save_LIBS=$LIBS
  20929. LIBS="-lposix $LIBS"
  20930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20931. /* end confdefs.h. */
  20932. /* Override any GCC internal prototype to avoid an error.
  20933. Use char because int might match the return type of a GCC
  20934. builtin and then its argument prototype would still apply. */
  20935. char remove ();
  20936. int
  20937. main (void)
  20938. {
  20939. return remove ();
  20940. ;
  20941. return 0;
  20942. }
  20943. _ACEOF
  20944. if ac_fn_c_try_link "$LINENO"
  20945. then :
  20946. ac_cv_lib_posix_remove=yes
  20947. else $as_nop
  20948. ac_cv_lib_posix_remove=no
  20949. fi
  20950. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20951. conftest$ac_exeext conftest.$ac_ext
  20952. LIBS=$ac_check_lib_save_LIBS
  20953. fi
  20954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20955. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20956. if test "x$ac_cv_lib_posix_remove" = xyes
  20957. then :
  20958. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20959. fi
  20960. fi
  20961. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20962. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20963. if test "x$ac_cv_func_shmat" = xyes
  20964. then :
  20965. fi
  20966. if test $ac_cv_func_shmat = no; then
  20967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20968. printf %s "checking for shmat in -lipc... " >&6; }
  20969. if test ${ac_cv_lib_ipc_shmat+y}
  20970. then :
  20971. printf %s "(cached) " >&6
  20972. else $as_nop
  20973. ac_check_lib_save_LIBS=$LIBS
  20974. LIBS="-lipc $LIBS"
  20975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20976. /* end confdefs.h. */
  20977. /* Override any GCC internal prototype to avoid an error.
  20978. Use char because int might match the return type of a GCC
  20979. builtin and then its argument prototype would still apply. */
  20980. char shmat ();
  20981. int
  20982. main (void)
  20983. {
  20984. return shmat ();
  20985. ;
  20986. return 0;
  20987. }
  20988. _ACEOF
  20989. if ac_fn_c_try_link "$LINENO"
  20990. then :
  20991. ac_cv_lib_ipc_shmat=yes
  20992. else $as_nop
  20993. ac_cv_lib_ipc_shmat=no
  20994. fi
  20995. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20996. conftest$ac_exeext conftest.$ac_ext
  20997. LIBS=$ac_check_lib_save_LIBS
  20998. fi
  20999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21000. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  21001. if test "x$ac_cv_lib_ipc_shmat" = xyes
  21002. then :
  21003. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21004. fi
  21005. fi
  21006. fi
  21007. # Check for libraries that X11R6 Xt/Xaw programs need.
  21008. ac_save_LDFLAGS=$LDFLAGS
  21009. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21010. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21011. # check for ICE first), but we must link in the order -lSM -lICE or
  21012. # we get undefined symbols. So assume we have SM if we have ICE.
  21013. # These have to be linked with before -lX11, unlike the other
  21014. # libraries we check for below, so use a different variable.
  21015. # John Interrante, Karl Berry
  21016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21017. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21018. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21019. then :
  21020. printf %s "(cached) " >&6
  21021. else $as_nop
  21022. ac_check_lib_save_LIBS=$LIBS
  21023. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21025. /* end confdefs.h. */
  21026. /* Override any GCC internal prototype to avoid an error.
  21027. Use char because int might match the return type of a GCC
  21028. builtin and then its argument prototype would still apply. */
  21029. char IceConnectionNumber ();
  21030. int
  21031. main (void)
  21032. {
  21033. return IceConnectionNumber ();
  21034. ;
  21035. return 0;
  21036. }
  21037. _ACEOF
  21038. if ac_fn_c_try_link "$LINENO"
  21039. then :
  21040. ac_cv_lib_ICE_IceConnectionNumber=yes
  21041. else $as_nop
  21042. ac_cv_lib_ICE_IceConnectionNumber=no
  21043. fi
  21044. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21045. conftest$ac_exeext conftest.$ac_ext
  21046. LIBS=$ac_check_lib_save_LIBS
  21047. fi
  21048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21049. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21050. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21051. then :
  21052. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21053. fi
  21054. LDFLAGS=$ac_save_LDFLAGS
  21055. fi
  21056. if test x$have_x = xyes; then
  21057. # Check whether --enable-x11-shared was given.
  21058. if test ${enable_x11_shared+y}
  21059. then :
  21060. enableval=$enable_x11_shared;
  21061. else $as_nop
  21062. enable_x11_shared=maybe
  21063. fi
  21064. case "$host" in
  21065. *-*-darwin*)
  21066. # Apple now puts this in /opt/X11
  21067. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21068. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21069. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21070. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21071. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21072. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21073. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21074. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21075. ;;
  21076. *-*-openbsd*)
  21077. x11_lib='libX11.so'
  21078. x11ext_lib='libXext.so'
  21079. xcursor_lib='libXcursor.so'
  21080. xinput_lib='libXi.so'
  21081. xfixes_lib='libXfixes.so'
  21082. xrandr_lib='libXrandr.so'
  21083. xrender_lib='libXrender.so'
  21084. xss_lib='libXss.so'
  21085. ;;
  21086. *)
  21087. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21088. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21089. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21090. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21091. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21092. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21093. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21094. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21095. ;;
  21096. esac
  21097. if test x$ac_cv_func_shmat != xyes; then
  21098. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21099. fi
  21100. CFLAGS="$CFLAGS $X_CFLAGS"
  21101. LDFLAGS="$LDFLAGS $X_LIBS"
  21102. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21103. #include <X11/Xproto.h>
  21104. "
  21105. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21106. then :
  21107. have_xext_h_hdr=yes
  21108. else $as_nop
  21109. have_xext_h_hdr=no
  21110. fi
  21111. if test x$have_xext_h_hdr != xyes; then
  21112. as_fn_error $? "
  21113. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21114. " "$LINENO" 5
  21115. fi
  21116. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21117. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21118. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21119. # Needed so SDL applications can include SDL_syswm.h
  21120. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21121. if test x$enable_x11_shared = xmaybe; then
  21122. enable_x11_shared=yes
  21123. fi
  21124. if test x$have_loadso != xyes && \
  21125. test x$enable_x11_shared = xyes; then
  21126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21127. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21128. enable_x11_shared=no
  21129. fi
  21130. if test x$have_loadso = xyes && \
  21131. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21132. echo "-- dynamic libX11 -> $x11_lib"
  21133. echo "-- dynamic libX11ext -> $x11ext_lib"
  21134. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21135. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21136. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21137. else
  21138. enable_x11_shared=no
  21139. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21140. SUMMARY_video="${SUMMARY_video} x11"
  21141. fi
  21142. have_video=yes
  21143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21144. printf %s "checking for XGenericEvent... " >&6; }
  21145. have_XGenericEvent=no
  21146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21147. /* end confdefs.h. */
  21148. #include <X11/Xlib.h>
  21149. int
  21150. main (void)
  21151. {
  21152. Display *display;
  21153. XEvent event;
  21154. XGenericEventCookie *cookie = &event.xcookie;
  21155. XNextEvent(display, &event);
  21156. XGetEventData(display, cookie);
  21157. XFreeEventData(display, cookie);
  21158. ;
  21159. return 0;
  21160. }
  21161. _ACEOF
  21162. if ac_fn_c_try_compile "$LINENO"
  21163. then :
  21164. have_XGenericEvent=yes
  21165. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21166. fi
  21167. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21169. printf "%s\n" "$have_XGenericEvent" >&6; }
  21170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21171. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21172. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21173. then :
  21174. printf %s "(cached) " >&6
  21175. else $as_nop
  21176. ac_check_lib_save_LIBS=$LIBS
  21177. LIBS="-lX11 $LIBS"
  21178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21179. /* end confdefs.h. */
  21180. /* Override any GCC internal prototype to avoid an error.
  21181. Use char because int might match the return type of a GCC
  21182. builtin and then its argument prototype would still apply. */
  21183. char XkbKeycodeToKeysym ();
  21184. int
  21185. main (void)
  21186. {
  21187. return XkbKeycodeToKeysym ();
  21188. ;
  21189. return 0;
  21190. }
  21191. _ACEOF
  21192. if ac_fn_c_try_link "$LINENO"
  21193. then :
  21194. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21195. else $as_nop
  21196. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21197. fi
  21198. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21199. conftest$ac_exeext conftest.$ac_ext
  21200. LIBS=$ac_check_lib_save_LIBS
  21201. fi
  21202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21203. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21204. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21205. then :
  21206. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21207. fi
  21208. # Check whether --enable-video-x11-xcursor was given.
  21209. if test ${enable_video_x11_xcursor+y}
  21210. then :
  21211. enableval=$enable_video_x11_xcursor;
  21212. else $as_nop
  21213. enable_video_x11_xcursor=yes
  21214. fi
  21215. if test x$enable_video_x11_xcursor = xyes; then
  21216. definitely_enable_video_x11_xcursor=no
  21217. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21218. "
  21219. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21220. then :
  21221. have_xcursor_h_hdr=yes
  21222. else $as_nop
  21223. have_xcursor_h_hdr=no
  21224. fi
  21225. if test x$have_xcursor_h_hdr = xyes; then
  21226. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21227. echo "-- dynamic libXcursor -> $xcursor_lib"
  21228. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21229. definitely_enable_video_x11_xcursor=yes
  21230. else
  21231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21232. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21233. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21234. then :
  21235. printf %s "(cached) " >&6
  21236. else $as_nop
  21237. ac_check_lib_save_LIBS=$LIBS
  21238. LIBS="-lXcursor $LIBS"
  21239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21240. /* end confdefs.h. */
  21241. /* Override any GCC internal prototype to avoid an error.
  21242. Use char because int might match the return type of a GCC
  21243. builtin and then its argument prototype would still apply. */
  21244. char XcursorImageCreate ();
  21245. int
  21246. main (void)
  21247. {
  21248. return XcursorImageCreate ();
  21249. ;
  21250. return 0;
  21251. }
  21252. _ACEOF
  21253. if ac_fn_c_try_link "$LINENO"
  21254. then :
  21255. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21256. else $as_nop
  21257. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21258. fi
  21259. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21260. conftest$ac_exeext conftest.$ac_ext
  21261. LIBS=$ac_check_lib_save_LIBS
  21262. fi
  21263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21264. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21265. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21266. then :
  21267. have_xcursor_lib=yes
  21268. fi
  21269. if test x$have_xcursor_lib = xyes ; then
  21270. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21271. definitely_enable_video_x11_xcursor=yes
  21272. fi
  21273. fi
  21274. fi
  21275. fi
  21276. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21277. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21278. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21279. fi
  21280. # Check whether --enable-video-x11-xdbe was given.
  21281. if test ${enable_video_x11_xdbe+y}
  21282. then :
  21283. enableval=$enable_video_x11_xdbe;
  21284. else $as_nop
  21285. enable_video_x11_xdbe=yes
  21286. fi
  21287. if test x$enable_video_x11_xdbe = xyes; then
  21288. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21289. "
  21290. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21291. then :
  21292. have_dbe_h_hdr=yes
  21293. else $as_nop
  21294. have_dbe_h_hdr=no
  21295. fi
  21296. if test x$have_dbe_h_hdr = xyes; then
  21297. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21298. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21299. fi
  21300. fi
  21301. # Check whether --enable-video-x11-xinput was given.
  21302. if test ${enable_video_x11_xinput+y}
  21303. then :
  21304. enableval=$enable_video_x11_xinput;
  21305. else $as_nop
  21306. enable_video_x11_xinput=yes
  21307. fi
  21308. if test x$enable_video_x11_xinput = xyes; then
  21309. definitely_enable_video_x11_xinput=no
  21310. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21311. "
  21312. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21313. then :
  21314. have_xinput_h_hdr=yes
  21315. else $as_nop
  21316. have_xinput_h_hdr=no
  21317. fi
  21318. if test x$have_xinput_h_hdr = xyes; then
  21319. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21320. echo "-- dynamic libXi -> $xinput_lib"
  21321. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21322. definitely_enable_video_x11_xinput=yes
  21323. else
  21324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21325. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21326. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21327. then :
  21328. printf %s "(cached) " >&6
  21329. else $as_nop
  21330. ac_check_lib_save_LIBS=$LIBS
  21331. LIBS="-lXi $LIBS"
  21332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21333. /* end confdefs.h. */
  21334. /* Override any GCC internal prototype to avoid an error.
  21335. Use char because int might match the return type of a GCC
  21336. builtin and then its argument prototype would still apply. */
  21337. char XOpenDevice ();
  21338. int
  21339. main (void)
  21340. {
  21341. return XOpenDevice ();
  21342. ;
  21343. return 0;
  21344. }
  21345. _ACEOF
  21346. if ac_fn_c_try_link "$LINENO"
  21347. then :
  21348. ac_cv_lib_Xi_XOpenDevice=yes
  21349. else $as_nop
  21350. ac_cv_lib_Xi_XOpenDevice=no
  21351. fi
  21352. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21353. conftest$ac_exeext conftest.$ac_ext
  21354. LIBS=$ac_check_lib_save_LIBS
  21355. fi
  21356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21357. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21358. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21359. then :
  21360. have_xinput_lib=yes
  21361. fi
  21362. if test x$have_xinput_lib = xyes ; then
  21363. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21364. definitely_enable_video_x11_xinput=yes
  21365. fi
  21366. fi
  21367. fi
  21368. fi
  21369. if test x$definitely_enable_video_x11_xinput = xyes; then
  21370. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21371. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21373. printf %s "checking for xinput2 multitouch... " >&6; }
  21374. have_xinput2_multitouch=no
  21375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21376. /* end confdefs.h. */
  21377. #include <X11/Xlib.h>
  21378. #include <X11/Xproto.h>
  21379. #include <X11/extensions/XInput2.h>
  21380. int
  21381. main (void)
  21382. {
  21383. int event_type = XI_TouchBegin;
  21384. XITouchClassInfo *t;
  21385. ;
  21386. return 0;
  21387. }
  21388. _ACEOF
  21389. if ac_fn_c_try_compile "$LINENO"
  21390. then :
  21391. have_xinput2_multitouch=yes
  21392. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21393. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21394. fi
  21395. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21397. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21398. fi
  21399. # Check whether --enable-video-x11-xfixes was given.
  21400. if test ${enable_video_x11_xfixes+y}
  21401. then :
  21402. enableval=$enable_video_x11_xfixes;
  21403. else $as_nop
  21404. enable_video_x11_xfixes=yes
  21405. fi
  21406. if test x$enable_video_x11_xfixes = xyes; then
  21407. definitely_enable_video_x11_xfixes=no
  21408. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21410. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21412. /* end confdefs.h. */
  21413. #include <X11/Xlib.h>
  21414. #include <X11/Xproto.h>
  21415. #include <X11/extensions/XInput2.h>
  21416. #include <X11/extensions/Xfixes.h>
  21417. int
  21418. main (void)
  21419. {
  21420. BarrierEventID b;
  21421. ;
  21422. return 0;
  21423. }
  21424. _ACEOF
  21425. if ac_fn_c_try_compile "$LINENO"
  21426. then :
  21427. have_xfixes_h_hdr=yes
  21428. else $as_nop
  21429. have_xfixes_h_hdr=no
  21430. fi
  21431. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21433. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21434. if test x$have_xfixes_h_hdr = xyes; then
  21435. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21436. echo "-- dynamic libXfixes -> $xfixes_lib"
  21437. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21438. definitely_enable_video_x11_xfixes=yes
  21439. else
  21440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21441. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21442. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21443. then :
  21444. printf %s "(cached) " >&6
  21445. else $as_nop
  21446. ac_check_lib_save_LIBS=$LIBS
  21447. LIBS="-lXfixes $LIBS"
  21448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21449. /* end confdefs.h. */
  21450. /* Override any GCC internal prototype to avoid an error.
  21451. Use char because int might match the return type of a GCC
  21452. builtin and then its argument prototype would still apply. */
  21453. char XFixesCreatePointerBarrier ();
  21454. int
  21455. main (void)
  21456. {
  21457. return XFixesCreatePointerBarrier ();
  21458. ;
  21459. return 0;
  21460. }
  21461. _ACEOF
  21462. if ac_fn_c_try_link "$LINENO"
  21463. then :
  21464. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21465. else $as_nop
  21466. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21467. fi
  21468. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21469. conftest$ac_exeext conftest.$ac_ext
  21470. LIBS=$ac_check_lib_save_LIBS
  21471. fi
  21472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21473. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21474. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21475. then :
  21476. have_xfixes_lib=yes
  21477. fi
  21478. if test x$have_xfixes_lib = xyes ; then
  21479. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21480. definitely_enable_video_x11_xfixes=yes
  21481. fi
  21482. fi
  21483. fi
  21484. fi
  21485. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21486. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21487. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21488. fi
  21489. # Check whether --enable-video-x11-xrandr was given.
  21490. if test ${enable_video_x11_xrandr+y}
  21491. then :
  21492. enableval=$enable_video_x11_xrandr;
  21493. else $as_nop
  21494. enable_video_x11_xrandr=yes
  21495. fi
  21496. if test x$enable_video_x11_xrandr = xyes; then
  21497. definitely_enable_video_x11_xrandr=no
  21498. have_xrandr_h_hdr=no
  21499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21500. /* end confdefs.h. */
  21501. #include <X11/Xlib.h>
  21502. #include <X11/extensions/Xrandr.h>
  21503. int
  21504. main (void)
  21505. {
  21506. XRRScreenResources *res = NULL;
  21507. ;
  21508. return 0;
  21509. }
  21510. _ACEOF
  21511. if ac_fn_c_try_compile "$LINENO"
  21512. then :
  21513. have_xrandr_h_hdr=yes
  21514. fi
  21515. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21516. if test x$have_xrandr_h_hdr = xyes; then
  21517. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21518. echo "-- dynamic libXrandr -> $xrandr_lib"
  21519. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21520. definitely_enable_video_x11_xrandr=yes
  21521. else
  21522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21523. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21524. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21525. then :
  21526. printf %s "(cached) " >&6
  21527. else $as_nop
  21528. ac_check_lib_save_LIBS=$LIBS
  21529. LIBS="-lXrandr $LIBS"
  21530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21531. /* end confdefs.h. */
  21532. /* Override any GCC internal prototype to avoid an error.
  21533. Use char because int might match the return type of a GCC
  21534. builtin and then its argument prototype would still apply. */
  21535. char XRRQueryExtension ();
  21536. int
  21537. main (void)
  21538. {
  21539. return XRRQueryExtension ();
  21540. ;
  21541. return 0;
  21542. }
  21543. _ACEOF
  21544. if ac_fn_c_try_link "$LINENO"
  21545. then :
  21546. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21547. else $as_nop
  21548. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21549. fi
  21550. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21551. conftest$ac_exeext conftest.$ac_ext
  21552. LIBS=$ac_check_lib_save_LIBS
  21553. fi
  21554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21555. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21556. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21557. then :
  21558. have_xrandr_lib=yes
  21559. fi
  21560. if test x$have_xrandr_lib = xyes ; then
  21561. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21562. definitely_enable_video_x11_xrandr=yes
  21563. fi
  21564. fi
  21565. fi
  21566. fi
  21567. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21568. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21569. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21570. fi
  21571. # Check whether --enable-video-x11-scrnsaver was given.
  21572. if test ${enable_video_x11_scrnsaver+y}
  21573. then :
  21574. enableval=$enable_video_x11_scrnsaver;
  21575. else $as_nop
  21576. enable_video_x11_scrnsaver=yes
  21577. fi
  21578. if test x$enable_video_x11_scrnsaver = xyes; then
  21579. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21580. "
  21581. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21582. then :
  21583. have_scrnsaver_h_hdr=yes
  21584. else $as_nop
  21585. have_scrnsaver_h_hdr=no
  21586. fi
  21587. if test x$have_scrnsaver_h_hdr = xyes; then
  21588. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21589. echo "-- dynamic libXss -> $xss_lib"
  21590. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21591. definitely_enable_video_x11_scrnsaver=yes
  21592. else
  21593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21594. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21595. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21596. then :
  21597. printf %s "(cached) " >&6
  21598. else $as_nop
  21599. ac_check_lib_save_LIBS=$LIBS
  21600. LIBS="-lXss $LIBS"
  21601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21602. /* end confdefs.h. */
  21603. /* Override any GCC internal prototype to avoid an error.
  21604. Use char because int might match the return type of a GCC
  21605. builtin and then its argument prototype would still apply. */
  21606. char XScreenSaverSuspend ();
  21607. int
  21608. main (void)
  21609. {
  21610. return XScreenSaverSuspend ();
  21611. ;
  21612. return 0;
  21613. }
  21614. _ACEOF
  21615. if ac_fn_c_try_link "$LINENO"
  21616. then :
  21617. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21618. else $as_nop
  21619. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21620. fi
  21621. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21622. conftest$ac_exeext conftest.$ac_ext
  21623. LIBS=$ac_check_lib_save_LIBS
  21624. fi
  21625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21626. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21627. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21628. then :
  21629. have_xss_lib=yes
  21630. fi
  21631. if test x$have_xss_lib = xyes ; then
  21632. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21633. definitely_enable_video_x11_scrnsaver=yes
  21634. fi
  21635. fi
  21636. fi
  21637. fi
  21638. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21639. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21640. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21641. fi
  21642. # Check whether --enable-video-x11-xshape was given.
  21643. if test ${enable_video_x11_xshape+y}
  21644. then :
  21645. enableval=$enable_video_x11_xshape;
  21646. else $as_nop
  21647. enable_video_x11_xshape=yes
  21648. fi
  21649. if test x$enable_video_x11_xshape = xyes; then
  21650. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21651. "
  21652. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21653. then :
  21654. have_shape_h_hdr=yes
  21655. else $as_nop
  21656. have_shape_h_hdr=no
  21657. fi
  21658. if test x$have_shape_h_hdr = xyes; then
  21659. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21660. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21661. fi
  21662. fi
  21663. fi
  21664. fi
  21665. if test x$have_x != xyes; then
  21666. # Prevent Mesa from including X11 headers
  21667. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21668. fi
  21669. }
  21670. CheckVivanteVideo()
  21671. {
  21672. # Check whether --enable-video-vivante was given.
  21673. if test ${enable_video_vivante+y}
  21674. then :
  21675. enableval=$enable_video_vivante;
  21676. else $as_nop
  21677. enable_video_vivante=yes
  21678. fi
  21679. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21681. printf %s "checking for Vivante VDK API... " >&6; }
  21682. have_vivante_vdk=no
  21683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21684. /* end confdefs.h. */
  21685. #define LINUX
  21686. #define EGL_API_FB
  21687. #include <gc_vdk.h>
  21688. int
  21689. main (void)
  21690. {
  21691. ;
  21692. return 0;
  21693. }
  21694. _ACEOF
  21695. if ac_fn_c_try_compile "$LINENO"
  21696. then :
  21697. have_vivante_vdk=yes
  21698. fi
  21699. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21701. printf "%s\n" "$have_vivante_vdk" >&6; }
  21702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21703. printf %s "checking for Vivante FB API... " >&6; }
  21704. have_vivante_egl=no
  21705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21706. /* end confdefs.h. */
  21707. #define LINUX
  21708. #define EGL_API_FB
  21709. #include <EGL/eglvivante.h>
  21710. int
  21711. main (void)
  21712. {
  21713. ;
  21714. return 0;
  21715. }
  21716. _ACEOF
  21717. if ac_fn_c_try_compile "$LINENO"
  21718. then :
  21719. have_vivante_egl=yes
  21720. fi
  21721. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21723. printf "%s\n" "$have_vivante_egl" >&6; }
  21724. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21725. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21726. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21727. if test x$have_vivante_vdk = xyes; then
  21728. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21729. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21730. fi
  21731. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21732. SUMMARY_video="${SUMMARY_video} vivante"
  21733. have_video=yes
  21734. fi
  21735. fi
  21736. }
  21737. CheckHaikuVideo()
  21738. {
  21739. if test x$enable_video = xyes; then
  21740. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21741. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21742. have_video=yes
  21743. SUMMARY_video="${SUMMARY_video} haiku"
  21744. fi
  21745. }
  21746. CheckCOCOA()
  21747. {
  21748. # Check whether --enable-video-cocoa was given.
  21749. if test ${enable_video_cocoa+y}
  21750. then :
  21751. enableval=$enable_video_cocoa;
  21752. else $as_nop
  21753. enable_video_cocoa=yes
  21754. fi
  21755. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21756. save_CFLAGS="$CFLAGS"
  21757. CFLAGS="$CFLAGS -x objective-c"
  21758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21759. printf %s "checking for Cocoa framework... " >&6; }
  21760. have_cocoa=no
  21761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21762. /* end confdefs.h. */
  21763. #import <Cocoa/Cocoa.h>
  21764. int
  21765. main (void)
  21766. {
  21767. ;
  21768. return 0;
  21769. }
  21770. _ACEOF
  21771. if ac_fn_c_try_compile "$LINENO"
  21772. then :
  21773. have_cocoa=yes
  21774. fi
  21775. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21777. printf "%s\n" "$have_cocoa" >&6; }
  21778. CFLAGS="$save_CFLAGS"
  21779. if test x$have_cocoa = xyes; then
  21780. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21781. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21782. SUMMARY_video="${SUMMARY_video} cocoa"
  21783. have_video=yes
  21784. fi
  21785. fi
  21786. }
  21787. CheckMETAL()
  21788. {
  21789. # Check whether --enable-video-metal was given.
  21790. if test ${enable_video_metal+y}
  21791. then :
  21792. enableval=$enable_video_metal;
  21793. else $as_nop
  21794. enable_video_metal=yes
  21795. fi
  21796. # Check whether --enable-render-metal was given.
  21797. if test ${enable_render_metal+y}
  21798. then :
  21799. enableval=$enable_render_metal;
  21800. else $as_nop
  21801. enable_render_metal=yes
  21802. fi
  21803. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21804. save_CFLAGS="$CFLAGS"
  21805. CFLAGS="$CFLAGS -x objective-c"
  21806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21807. printf %s "checking for Metal framework... " >&6; }
  21808. have_metal=no
  21809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21810. /* end confdefs.h. */
  21811. #import <Cocoa/Cocoa.h>
  21812. #import <Metal/Metal.h>
  21813. #import <QuartzCore/CAMetalLayer.h>
  21814. #if TARGET_CPU_X86
  21815. #error Metal doesn't work on this configuration
  21816. #endif
  21817. int
  21818. main (void)
  21819. {
  21820. ;
  21821. return 0;
  21822. }
  21823. _ACEOF
  21824. if ac_fn_c_try_compile "$LINENO"
  21825. then :
  21826. have_metal=yes
  21827. fi
  21828. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21829. CFLAGS="$save_CFLAGS"
  21830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21831. printf "%s\n" "$have_metal" >&6; }
  21832. if test x$have_metal = xyes; then
  21833. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21834. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21835. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21836. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21837. fi
  21838. SUMMARY_video="${SUMMARY_video} metal"
  21839. else
  21840. enable_video_metal=no
  21841. enable_render_metal=no
  21842. fi
  21843. fi
  21844. }
  21845. CheckDirectFB()
  21846. {
  21847. # Check whether --enable-video-directfb was given.
  21848. if test ${enable_video_directfb+y}
  21849. then :
  21850. enableval=$enable_video_directfb;
  21851. else $as_nop
  21852. enable_video_directfb=no
  21853. fi
  21854. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21855. pkg_failed=no
  21856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21857. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21858. if test -n "$DIRECTFB_CFLAGS"; then
  21859. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21860. elif test -n "$PKG_CONFIG"; then
  21861. if test -n "$PKG_CONFIG" && \
  21862. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21863. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21864. ac_status=$?
  21865. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21866. test $ac_status = 0; }; then
  21867. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21868. test "x$?" != "x0" && pkg_failed=yes
  21869. else
  21870. pkg_failed=yes
  21871. fi
  21872. else
  21873. pkg_failed=untried
  21874. fi
  21875. if test -n "$DIRECTFB_LIBS"; then
  21876. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  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_LIBS=`$PKG_CONFIG --libs "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 $pkg_failed = yes; then
  21893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21894. printf "%s\n" "no" >&6; }
  21895. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21896. _pkg_short_errors_supported=yes
  21897. else
  21898. _pkg_short_errors_supported=no
  21899. fi
  21900. if test $_pkg_short_errors_supported = yes; then
  21901. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21902. else
  21903. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21904. fi
  21905. # Put the nasty error message in config.log where it belongs
  21906. echo "$DIRECTFB_PKG_ERRORS" >&5
  21907. video_directfb=no
  21908. elif test $pkg_failed = untried; then
  21909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21910. printf "%s\n" "no" >&6; }
  21911. video_directfb=no
  21912. else
  21913. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21914. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21916. printf "%s\n" "yes" >&6; }
  21917. video_directfb=yes
  21918. fi
  21919. if test x$video_directfb = xyes; then
  21920. # SuSE 11.1 installs directfb-config without directfb-devel
  21921. save_CPPFLAGS="$CPPFLAGS"
  21922. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21923. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21924. if test "x$ac_cv_header_directfb_h" = xyes
  21925. then :
  21926. have_directfb_hdr=yes
  21927. else $as_nop
  21928. have_directfb_hdr=no
  21929. fi
  21930. CPPFLAGS="$save_CPPFLAGS"
  21931. video_directfb=$have_directfb_hdr
  21932. fi
  21933. if test x$video_directfb = xyes; then
  21934. # Check whether --enable-directfb-shared was given.
  21935. if test ${enable_directfb_shared+y}
  21936. then :
  21937. enableval=$enable_directfb_shared;
  21938. else $as_nop
  21939. enable_directfb_shared=yes
  21940. fi
  21941. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  21942. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  21943. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  21944. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  21945. directfb_shared=no
  21946. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  21947. if test x$have_loadso != xyes && \
  21948. test x$enable_directfb_shared = xyes; then
  21949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  21950. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  21951. fi
  21952. if test x$have_loadso = xyes && \
  21953. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21954. directfb_shared=yes
  21955. echo "-- dynamic libdirectfb -> $directfb_lib"
  21956. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21957. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21958. else
  21959. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21960. SUMMARY_video="${SUMMARY_video} directfb"
  21961. fi
  21962. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21963. have_video=yes
  21964. fi
  21965. fi
  21966. }
  21967. CheckKMSDRM()
  21968. {
  21969. # Check whether --enable-video-kmsdrm was given.
  21970. if test ${enable_video_kmsdrm+y}
  21971. then :
  21972. enableval=$enable_video_kmsdrm;
  21973. else $as_nop
  21974. enable_video_kmsdrm=yes
  21975. fi
  21976. if test x$enable_video = xyes && \
  21977. test x$enable_video_kmsdrm = xyes && \
  21978. test x$video_opengl_egl = xyes; then
  21979. video_kmsdrm=no
  21980. pkg_failed=no
  21981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21982. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21983. if test -n "$LIBDRM_CFLAGS"; then
  21984. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21985. elif test -n "$PKG_CONFIG"; then
  21986. if test -n "$PKG_CONFIG" && \
  21987. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21988. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21989. ac_status=$?
  21990. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21991. test $ac_status = 0; }; then
  21992. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21993. test "x$?" != "x0" && pkg_failed=yes
  21994. else
  21995. pkg_failed=yes
  21996. fi
  21997. else
  21998. pkg_failed=untried
  21999. fi
  22000. if test -n "$LIBDRM_LIBS"; then
  22001. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  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_LIBS=`$PKG_CONFIG --libs "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 $pkg_failed = yes; then
  22018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22019. printf "%s\n" "no" >&6; }
  22020. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22021. _pkg_short_errors_supported=yes
  22022. else
  22023. _pkg_short_errors_supported=no
  22024. fi
  22025. if test $_pkg_short_errors_supported = yes; then
  22026. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22027. else
  22028. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22029. fi
  22030. # Put the nasty error message in config.log where it belongs
  22031. echo "$LIBDRM_PKG_ERRORS" >&5
  22032. libdrm_avail=no
  22033. elif test $pkg_failed = untried; then
  22034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22035. printf "%s\n" "no" >&6; }
  22036. libdrm_avail=no
  22037. else
  22038. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22039. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22041. printf "%s\n" "yes" >&6; }
  22042. libdrm_avail=yes
  22043. fi
  22044. pkg_failed=no
  22045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22046. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22047. if test -n "$LIBGBM_CFLAGS"; then
  22048. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22049. elif test -n "$PKG_CONFIG"; then
  22050. if test -n "$PKG_CONFIG" && \
  22051. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22052. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22053. ac_status=$?
  22054. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22055. test $ac_status = 0; }; then
  22056. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22057. test "x$?" != "x0" && pkg_failed=yes
  22058. else
  22059. pkg_failed=yes
  22060. fi
  22061. else
  22062. pkg_failed=untried
  22063. fi
  22064. if test -n "$LIBGBM_LIBS"; then
  22065. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  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_LIBS=`$PKG_CONFIG --libs "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 $pkg_failed = yes; then
  22082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22083. printf "%s\n" "no" >&6; }
  22084. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22085. _pkg_short_errors_supported=yes
  22086. else
  22087. _pkg_short_errors_supported=no
  22088. fi
  22089. if test $_pkg_short_errors_supported = yes; then
  22090. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22091. else
  22092. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22093. fi
  22094. # Put the nasty error message in config.log where it belongs
  22095. echo "$LIBGBM_PKG_ERRORS" >&5
  22096. libgbm_avail=no
  22097. elif test $pkg_failed = untried; then
  22098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22099. printf "%s\n" "no" >&6; }
  22100. libgbm_avail=no
  22101. else
  22102. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22103. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22105. printf "%s\n" "yes" >&6; }
  22106. libgbm_avail=yes
  22107. fi
  22108. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22109. video_kmsdrm=yes
  22110. fi
  22111. if test x$video_kmsdrm = xyes; then
  22112. # Check whether --enable-kmsdrm-shared was given.
  22113. if test ${enable_kmsdrm_shared+y}
  22114. then :
  22115. enableval=$enable_kmsdrm_shared;
  22116. else $as_nop
  22117. enable_kmsdrm_shared=yes
  22118. fi
  22119. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22120. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22121. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22123. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22124. kmsdrm_shared=no
  22125. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22126. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22127. if test x$have_loadso != xyes && \
  22128. test x$enable_kmsdrm_shared = xyes; then
  22129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22130. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22131. fi
  22132. if test x$have_loadso = xyes && \
  22133. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22134. kmsdrm_shared=yes
  22135. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22136. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22137. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22138. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22139. else
  22140. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22141. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22142. fi
  22143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22144. printf "%s\n" "$kmsdrm_shared" >&6; }
  22145. if test x$kmsdrm_shared = xyes; then
  22146. echo "-- dynamic libdrm -> $drm_lib"
  22147. echo "-- dynamic libgbm -> $gbm_lib"
  22148. fi
  22149. have_video=yes
  22150. fi
  22151. fi
  22152. }
  22153. CheckDummyVideo()
  22154. {
  22155. # Check whether --enable-video-dummy was given.
  22156. if test ${enable_video_dummy+y}
  22157. then :
  22158. enableval=$enable_video_dummy;
  22159. else $as_nop
  22160. enable_video_dummy=yes
  22161. fi
  22162. if test x$enable_video_dummy = xyes; then
  22163. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22164. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22165. have_video=yes
  22166. SUMMARY_video="${SUMMARY_video} dummy"
  22167. fi
  22168. }
  22169. CheckOffscreenVideo()
  22170. {
  22171. # Check whether --enable-video-offscreen was given.
  22172. if test ${enable_video_offscreen+y}
  22173. then :
  22174. enableval=$enable_video_offscreen;
  22175. else $as_nop
  22176. enable_video_offscreen=yes
  22177. fi
  22178. if test x$enable_video_offscreen = xyes; then
  22179. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22180. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22181. have_video=yes
  22182. SUMMARY_video="${SUMMARY_video} offscreen"
  22183. fi
  22184. }
  22185. CheckQNXVideo()
  22186. {
  22187. if test x$enable_video = xyes; then
  22188. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22189. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22190. have_video=yes
  22191. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22192. SUMMARY_video="${SUMMARY_video} qnx"
  22193. fi
  22194. }
  22195. CheckQNXAudio()
  22196. {
  22197. if test x$enable_audio = xyes; then
  22198. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22199. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22200. have_audio=yes
  22201. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22202. SUMMARY_audio="${SUMMARY_audio} qsa"
  22203. fi
  22204. }
  22205. # Check whether --enable-video-opengl was given.
  22206. if test ${enable_video_opengl+y}
  22207. then :
  22208. enableval=$enable_video_opengl;
  22209. else $as_nop
  22210. enable_video_opengl=yes
  22211. fi
  22212. CheckGLX()
  22213. {
  22214. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22216. printf %s "checking for GLX support... " >&6; }
  22217. video_opengl_glx=no
  22218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22219. /* end confdefs.h. */
  22220. #include <GL/glx.h>
  22221. int
  22222. main (void)
  22223. {
  22224. ;
  22225. return 0;
  22226. }
  22227. _ACEOF
  22228. if ac_fn_c_try_compile "$LINENO"
  22229. then :
  22230. video_opengl_glx=yes
  22231. fi
  22232. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22234. printf "%s\n" "$video_opengl_glx" >&6; }
  22235. if test x$video_opengl_glx = xyes; then
  22236. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22237. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22238. fi
  22239. fi
  22240. }
  22241. # Check whether --enable-video-opengles was given.
  22242. if test ${enable_video_opengles+y}
  22243. then :
  22244. enableval=$enable_video_opengles;
  22245. else $as_nop
  22246. enable_video_opengles=yes
  22247. fi
  22248. # Check whether --enable-video-opengles1 was given.
  22249. if test ${enable_video_opengles1+y}
  22250. then :
  22251. enableval=$enable_video_opengles1;
  22252. else $as_nop
  22253. enable_video_opengles1=yes
  22254. fi
  22255. # Check whether --enable-video-opengles2 was given.
  22256. if test ${enable_video_opengles2+y}
  22257. then :
  22258. enableval=$enable_video_opengles2;
  22259. else $as_nop
  22260. enable_video_opengles2=yes
  22261. fi
  22262. CheckEGL()
  22263. {
  22264. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22266. printf %s "checking for EGL support... " >&6; }
  22267. video_opengl_egl=no
  22268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22269. /* end confdefs.h. */
  22270. #define LINUX
  22271. #define EGL_API_FB
  22272. #define MESA_EGL_NO_X11_HEADERS
  22273. #define EGL_NO_X11
  22274. #include <EGL/egl.h>
  22275. #include <EGL/eglext.h>
  22276. int
  22277. main (void)
  22278. {
  22279. ;
  22280. return 0;
  22281. }
  22282. _ACEOF
  22283. if ac_fn_c_try_compile "$LINENO"
  22284. then :
  22285. video_opengl_egl=yes
  22286. fi
  22287. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22289. printf "%s\n" "$video_opengl_egl" >&6; }
  22290. if test x$video_opengl_egl = xyes; then
  22291. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22292. fi
  22293. fi
  22294. }
  22295. CheckOpenGL()
  22296. {
  22297. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22299. printf %s "checking for OpenGL headers... " >&6; }
  22300. video_opengl=no
  22301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22302. /* end confdefs.h. */
  22303. #include <GL/gl.h>
  22304. #include <GL/glext.h>
  22305. int
  22306. main (void)
  22307. {
  22308. ;
  22309. return 0;
  22310. }
  22311. _ACEOF
  22312. if ac_fn_c_try_compile "$LINENO"
  22313. then :
  22314. video_opengl=yes
  22315. fi
  22316. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22318. printf "%s\n" "$video_opengl" >&6; }
  22319. if test x$video_opengl = xyes; then
  22320. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22321. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22322. SUMMARY_video="${SUMMARY_video} opengl"
  22323. fi
  22324. fi
  22325. }
  22326. CheckOpenGLES()
  22327. {
  22328. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22329. if test x$enable_video_opengles1 = xyes; then
  22330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22331. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22332. video_opengles_v1=no
  22333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22334. /* end confdefs.h. */
  22335. #include <GLES/gl.h>
  22336. #include <GLES/glext.h>
  22337. int
  22338. main (void)
  22339. {
  22340. ;
  22341. return 0;
  22342. }
  22343. _ACEOF
  22344. if ac_fn_c_try_compile "$LINENO"
  22345. then :
  22346. video_opengles_v1=yes
  22347. fi
  22348. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22350. printf "%s\n" "$video_opengles_v1" >&6; }
  22351. if test x$video_opengles_v1 = xyes; then
  22352. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22353. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22354. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22355. fi
  22356. fi
  22357. if test x$enable_video_opengles2 = xyes; then
  22358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22359. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22360. video_opengles_v2=no
  22361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22362. /* end confdefs.h. */
  22363. #include <GLES2/gl2.h>
  22364. #include <GLES2/gl2ext.h>
  22365. int
  22366. main (void)
  22367. {
  22368. ;
  22369. return 0;
  22370. }
  22371. _ACEOF
  22372. if ac_fn_c_try_compile "$LINENO"
  22373. then :
  22374. video_opengles_v2=yes
  22375. fi
  22376. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22378. printf "%s\n" "$video_opengles_v2" >&6; }
  22379. if test x$video_opengles_v2 = xyes; then
  22380. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22381. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22382. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22383. fi
  22384. fi
  22385. fi
  22386. }
  22387. CheckWINDOWSGL()
  22388. {
  22389. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22390. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22391. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22392. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22393. SUMMARY_video="${SUMMARY_video} opengl"
  22394. fi
  22395. }
  22396. CheckWINDOWSGLES()
  22397. {
  22398. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22400. printf %s "checking for EGL support... " >&6; }
  22401. video_opengl_egl=no
  22402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22403. /* end confdefs.h. */
  22404. #include <EGL/egl.h>
  22405. int
  22406. main (void)
  22407. {
  22408. ;
  22409. return 0;
  22410. }
  22411. _ACEOF
  22412. if ac_fn_c_try_compile "$LINENO"
  22413. then :
  22414. video_opengl_egl=yes
  22415. fi
  22416. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22418. printf "%s\n" "$video_opengl_egl" >&6; }
  22419. if test x$video_opengl_egl = xyes; then
  22420. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22421. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22422. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22423. fi
  22424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22425. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22426. video_opengles_v2=no
  22427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22428. /* end confdefs.h. */
  22429. #include <GLES2/gl2.h>
  22430. #include <GLES2/gl2ext.h>
  22431. int
  22432. main (void)
  22433. {
  22434. ;
  22435. return 0;
  22436. }
  22437. _ACEOF
  22438. if ac_fn_c_try_compile "$LINENO"
  22439. then :
  22440. video_opengles_v2=yes
  22441. fi
  22442. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22444. printf "%s\n" "$video_opengles_v2" >&6; }
  22445. if test x$video_opengles_v2 = xyes; then
  22446. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22447. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22448. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22449. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22450. fi
  22451. fi
  22452. }
  22453. CheckHaikuGL()
  22454. {
  22455. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22456. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22457. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22458. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22459. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22460. SUMMARY_video="${SUMMARY_video} opengl"
  22461. fi
  22462. }
  22463. CheckMacGL()
  22464. {
  22465. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22466. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22467. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22468. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22469. SUMMARY_video="${SUMMARY_video} opengl"
  22470. fi
  22471. }
  22472. CheckMacGLES()
  22473. {
  22474. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22475. video_opengl_egl=yes
  22476. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22477. video_opengles_v2=yes
  22478. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22479. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22480. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22481. fi
  22482. }
  22483. CheckEmscriptenGLES()
  22484. {
  22485. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22487. printf %s "checking for EGL support... " >&6; }
  22488. video_opengl_egl=no
  22489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22490. /* end confdefs.h. */
  22491. #include <EGL/egl.h>
  22492. int
  22493. main (void)
  22494. {
  22495. ;
  22496. return 0;
  22497. }
  22498. _ACEOF
  22499. if ac_fn_c_try_compile "$LINENO"
  22500. then :
  22501. video_opengl_egl=yes
  22502. fi
  22503. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22505. printf "%s\n" "$video_opengl_egl" >&6; }
  22506. if test x$video_opengl_egl = xyes; then
  22507. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22508. fi
  22509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22510. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22511. video_opengles_v2=no
  22512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22513. /* end confdefs.h. */
  22514. #include <GLES2/gl2.h>
  22515. #include <GLES2/gl2ext.h>
  22516. int
  22517. main (void)
  22518. {
  22519. ;
  22520. return 0;
  22521. }
  22522. _ACEOF
  22523. if ac_fn_c_try_compile "$LINENO"
  22524. then :
  22525. video_opengles_v2=yes
  22526. fi
  22527. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22529. printf "%s\n" "$video_opengles_v2" >&6; }
  22530. if test x$video_opengles_v2 = xyes; then
  22531. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22532. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22533. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22534. fi
  22535. fi
  22536. }
  22537. # Check whether --enable-video-vulkan was given.
  22538. if test ${enable_video_vulkan+y}
  22539. then :
  22540. enableval=$enable_video_vulkan;
  22541. else $as_nop
  22542. enable_video_vulkan=yes
  22543. fi
  22544. CheckVulkan()
  22545. {
  22546. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22547. case "$host" in
  22548. *-*-android*)
  22549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22550. /* end confdefs.h. */
  22551. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22552. #error Vulkan doesn't work on this configuration
  22553. #endif
  22554. int
  22555. main (void)
  22556. {
  22557. ;
  22558. return 0;
  22559. }
  22560. _ACEOF
  22561. if ac_fn_c_try_compile "$LINENO"
  22562. then :
  22563. else $as_nop
  22564. enable_video_vulkan=no
  22565. fi
  22566. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22567. ;;
  22568. *-*-darwin*)
  22569. save_CFLAGS="$CFLAGS"
  22570. CFLAGS="$CFLAGS -x objective-c"
  22571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22572. /* end confdefs.h. */
  22573. #include <Cocoa/Cocoa.h>
  22574. #include <Metal/Metal.h>
  22575. #include <QuartzCore/CAMetalLayer.h>
  22576. #if TARGET_CPU_X86
  22577. #error Vulkan doesn't work on this configuration
  22578. #endif
  22579. int
  22580. main (void)
  22581. {
  22582. ;
  22583. return 0;
  22584. }
  22585. _ACEOF
  22586. if ac_fn_c_try_compile "$LINENO"
  22587. then :
  22588. else $as_nop
  22589. enable_video_vulkan=no
  22590. fi
  22591. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22592. CFLAGS="$save_CFLAGS"
  22593. ;;
  22594. *)
  22595. ;;
  22596. esac
  22597. if test x$enable_video_vulkan = xno; then
  22598. # For reasons I am totally unable to see, I get an undefined macro error if
  22599. # I put this in the AC_TRY_COMPILE.
  22600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22601. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22602. fi
  22603. fi
  22604. if test x$have_loadso != xyes; then
  22605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22606. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22607. enable_video_vulkan=no
  22608. fi
  22609. if test x$enable_video_vulkan = xyes; then
  22610. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22611. SUMMARY_video="${SUMMARY_video} vulkan"
  22612. fi
  22613. }
  22614. CheckInputEvents()
  22615. {
  22616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22617. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22618. use_input_events=no
  22619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22620. /* end confdefs.h. */
  22621. #include <linux/input.h>
  22622. int
  22623. main (void)
  22624. {
  22625. #ifndef EVIOCGNAME
  22626. #error EVIOCGNAME() ioctl not available
  22627. #endif
  22628. ;
  22629. return 0;
  22630. }
  22631. _ACEOF
  22632. if ac_fn_c_try_compile "$LINENO"
  22633. then :
  22634. use_input_events=yes
  22635. fi
  22636. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22638. printf "%s\n" "$use_input_events" >&6; }
  22639. if test x$use_input_events = xyes; then
  22640. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22641. SUMMARY_input="${SUMMARY_input} linuxev"
  22642. fi
  22643. }
  22644. CheckInputKD()
  22645. {
  22646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22647. printf %s "checking for Linux kd.h... " >&6; }
  22648. use_input_kd=no
  22649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22650. /* end confdefs.h. */
  22651. #include <linux/kd.h>
  22652. #include <linux/keyboard.h>
  22653. #include <sys/ioctl.h>
  22654. int
  22655. main (void)
  22656. {
  22657. struct kbentry kbe;
  22658. kbe.kb_table = KG_CTRL;
  22659. ioctl(0, KDGKBENT, &kbe);
  22660. ;
  22661. return 0;
  22662. }
  22663. _ACEOF
  22664. if ac_fn_c_try_compile "$LINENO"
  22665. then :
  22666. use_input_kd=yes
  22667. fi
  22668. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22670. printf "%s\n" "$use_input_kd" >&6; }
  22671. if test x$use_input_kd = xyes; then
  22672. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22673. SUMMARY_input="${SUMMARY_input} linuxkd"
  22674. fi
  22675. }
  22676. CheckInputKBIO()
  22677. {
  22678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22679. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22680. use_input_kbio=no
  22681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22682. /* end confdefs.h. */
  22683. #include <sys/kbio.h>
  22684. #include <sys/ioctl.h>
  22685. int
  22686. main (void)
  22687. {
  22688. accentmap_t accTable;
  22689. ioctl(0, KDENABIO, 1);
  22690. ;
  22691. return 0;
  22692. }
  22693. _ACEOF
  22694. if ac_fn_c_try_compile "$LINENO"
  22695. then :
  22696. use_input_kbio=yes
  22697. fi
  22698. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22700. printf "%s\n" "$use_input_kbio" >&6; }
  22701. if test x$use_input_kbio = xyes; then
  22702. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22703. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22704. fi
  22705. }
  22706. CheckInputWSCONS()
  22707. {
  22708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22709. printf %s "checking for OpenBSD wscons... " >&6; }
  22710. use_input_wscons=no
  22711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22712. /* end confdefs.h. */
  22713. #include <sys/time.h>
  22714. #include <dev/wscons/wsconsio.h>
  22715. #include <dev/wscons/wsksymdef.h>
  22716. #include <dev/wscons/wsksymvar.h>
  22717. #include <sys/ioctl.h>
  22718. int
  22719. main (void)
  22720. {
  22721. struct wskbd_map_data data;
  22722. ioctl(0, WSKBDIO_GETMAP, &data);
  22723. ;
  22724. return 0;
  22725. }
  22726. _ACEOF
  22727. if ac_fn_c_try_compile "$LINENO"
  22728. then :
  22729. use_input_wscons=yes
  22730. fi
  22731. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22733. printf "%s\n" "$use_input_wscons" >&6; }
  22734. if test x$use_input_wscons = xyes; then
  22735. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22736. SUMMARY_input="${SUMMARY_input} wscons"
  22737. fi
  22738. }
  22739. CheckLibUDev()
  22740. {
  22741. # Check whether --enable-libudev was given.
  22742. if test ${enable_libudev+y}
  22743. then :
  22744. enableval=$enable_libudev;
  22745. else $as_nop
  22746. enable_libudev=yes
  22747. fi
  22748. if test x$enable_libudev = xyes; then
  22749. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22750. if test "x$ac_cv_header_libudev_h" = xyes
  22751. then :
  22752. have_libudev_h_hdr=yes
  22753. else $as_nop
  22754. have_libudev_h_hdr=no
  22755. fi
  22756. if test x$have_libudev_h_hdr = xyes; then
  22757. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22758. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22759. if test x$udev_lib != x; then
  22760. echo "-- dynamic udev -> $udev_lib"
  22761. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22762. fi
  22763. fi
  22764. fi
  22765. }
  22766. CheckDBus()
  22767. {
  22768. # Check whether --enable-dbus was given.
  22769. if test ${enable_dbus+y}
  22770. then :
  22771. enableval=$enable_dbus;
  22772. else $as_nop
  22773. enable_dbus=yes
  22774. fi
  22775. if test x$enable_dbus = xyes; then
  22776. pkg_failed=no
  22777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22778. printf %s "checking for dbus-1... " >&6; }
  22779. if test -n "$DBUS_CFLAGS"; then
  22780. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22781. elif test -n "$PKG_CONFIG"; then
  22782. if test -n "$PKG_CONFIG" && \
  22783. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22784. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22785. ac_status=$?
  22786. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22787. test $ac_status = 0; }; then
  22788. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22789. test "x$?" != "x0" && pkg_failed=yes
  22790. else
  22791. pkg_failed=yes
  22792. fi
  22793. else
  22794. pkg_failed=untried
  22795. fi
  22796. if test -n "$DBUS_LIBS"; then
  22797. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  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_LIBS=`$PKG_CONFIG --libs "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 $pkg_failed = yes; then
  22814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22815. printf "%s\n" "no" >&6; }
  22816. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22817. _pkg_short_errors_supported=yes
  22818. else
  22819. _pkg_short_errors_supported=no
  22820. fi
  22821. if test $_pkg_short_errors_supported = yes; then
  22822. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22823. else
  22824. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22825. fi
  22826. # Put the nasty error message in config.log where it belongs
  22827. echo "$DBUS_PKG_ERRORS" >&5
  22828. have_dbus=no
  22829. elif test $pkg_failed = untried; then
  22830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22831. printf "%s\n" "no" >&6; }
  22832. have_dbus=no
  22833. else
  22834. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22835. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22837. printf "%s\n" "yes" >&6; }
  22838. have_dbus=yes
  22839. fi
  22840. save_CPPFLAGS="$CPPFLAGS"
  22841. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22842. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22843. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22844. then :
  22845. have_dbus_dbus_h_hdr=yes
  22846. else $as_nop
  22847. have_dbus_dbus_h_hdr=no
  22848. fi
  22849. CPPFLAGS="$save_CPPFLAGS"
  22850. if test x$have_dbus_dbus_h_hdr = xyes; then
  22851. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22852. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22853. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22854. fi
  22855. fi
  22856. }
  22857. CheckIME()
  22858. {
  22859. # Check whether --enable-ime was given.
  22860. if test ${enable_ime+y}
  22861. then :
  22862. enableval=$enable_ime;
  22863. else $as_nop
  22864. enable_ime=yes
  22865. fi
  22866. if test x$enable_ime = xyes; then
  22867. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22868. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22869. fi
  22870. }
  22871. CheckInotify()
  22872. {
  22873. save_LIBS="$LIBS"
  22874. case "$host" in
  22875. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22876. ;;
  22877. esac
  22878. for ac_header in sys/inotify.h
  22879. do :
  22880. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22881. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22882. then :
  22883. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22884. have_inotify_inotify_h_hdr=yes
  22885. fi
  22886. done
  22887. for ac_func in inotify_init
  22888. do :
  22889. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22890. if test "x$ac_cv_func_inotify_init" = xyes
  22891. then :
  22892. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22893. have_inotify=yes
  22894. fi
  22895. done
  22896. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22897. if test "x$ac_cv_func_inotify_init1" = xyes
  22898. then :
  22899. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22900. fi
  22901. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22902. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22903. case "$host" in
  22904. *-*-freebsd*|*-*-dragonfly*)
  22905. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22906. ;;
  22907. esac
  22908. fi
  22909. LIBS="$save_LIBS"
  22910. }
  22911. CheckIBus()
  22912. {
  22913. # Check whether --enable-ibus was given.
  22914. if test ${enable_ibus+y}
  22915. then :
  22916. enableval=$enable_ibus;
  22917. else $as_nop
  22918. enable_ibus=yes
  22919. fi
  22920. if test x$enable_ibus = xyes; then
  22921. pkg_failed=no
  22922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22923. printf %s "checking for ibus-1.0... " >&6; }
  22924. if test -n "$IBUS_CFLAGS"; then
  22925. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22926. elif test -n "$PKG_CONFIG"; then
  22927. if test -n "$PKG_CONFIG" && \
  22928. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22929. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22930. ac_status=$?
  22931. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22932. test $ac_status = 0; }; then
  22933. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22934. test "x$?" != "x0" && pkg_failed=yes
  22935. else
  22936. pkg_failed=yes
  22937. fi
  22938. else
  22939. pkg_failed=untried
  22940. fi
  22941. if test -n "$IBUS_LIBS"; then
  22942. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  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_LIBS=`$PKG_CONFIG --libs "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 $pkg_failed = yes; then
  22959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22960. printf "%s\n" "no" >&6; }
  22961. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22962. _pkg_short_errors_supported=yes
  22963. else
  22964. _pkg_short_errors_supported=no
  22965. fi
  22966. if test $_pkg_short_errors_supported = yes; then
  22967. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22968. else
  22969. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22970. fi
  22971. # Put the nasty error message in config.log where it belongs
  22972. echo "$IBUS_PKG_ERRORS" >&5
  22973. have_ibus=no
  22974. elif test $pkg_failed = untried; then
  22975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22976. printf "%s\n" "no" >&6; }
  22977. have_ibus=no
  22978. else
  22979. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22980. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22982. printf "%s\n" "yes" >&6; }
  22983. have_ibus=yes
  22984. fi
  22985. save_CPPFLAGS="$CPPFLAGS"
  22986. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22987. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22988. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22989. then :
  22990. have_ibus_ibus_h_hdr=yes
  22991. else $as_nop
  22992. have_ibus_ibus_h_hdr=no
  22993. fi
  22994. CPPFLAGS="$save_CPPFLAGS"
  22995. if test x$have_ibus_ibus_h_hdr = xyes; then
  22996. if test x$enable_ime != xyes; then
  22997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22998. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22999. have_ibus_ibus_h_hdr=no
  23000. elif test x$enable_dbus != xyes; then
  23001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  23002. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  23003. have_ibus_ibus_h_hdr=no
  23004. elif test x$have_inotify_inotify_h_hdr != xyes; then
  23005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23006. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23007. have_ibus_ibus_h_hdr=no
  23008. else
  23009. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23010. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23011. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23012. fi
  23013. fi
  23014. fi
  23015. }
  23016. CheckFcitx()
  23017. {
  23018. # Check whether --enable-fcitx was given.
  23019. if test ${enable_fcitx+y}
  23020. then :
  23021. enableval=$enable_fcitx;
  23022. else $as_nop
  23023. enable_fcitx=yes
  23024. fi
  23025. if test x$enable_fcitx = xyes; then
  23026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23027. printf %s "checking for fcitx support... " >&6; }
  23028. have_fcitx=no
  23029. if test x$enable_ime != xyes; then
  23030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23031. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23032. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23034. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23035. else
  23036. have_fcitx=yes
  23037. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23038. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23039. fi
  23040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23041. printf "%s\n" "$have_fcitx" >&6; }
  23042. fi
  23043. }
  23044. CheckJoystickMFI()
  23045. {
  23046. # Check whether --enable-joystick-mfi was given.
  23047. if test ${enable_joystick_mfi+y}
  23048. then :
  23049. enableval=$enable_joystick_mfi;
  23050. else $as_nop
  23051. enable_joystick_mfi=yes
  23052. fi
  23053. if test x$enable_joystick_mfi = xyes; then
  23054. save_CFLAGS="$CFLAGS"
  23055. save_LDFLAGS="$LDFLAGS"
  23056. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23057. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23059. printf %s "checking for GameController framework... " >&6; }
  23060. enable_joystick_mfi=no
  23061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23062. /* end confdefs.h. */
  23063. #include <AvailabilityMacros.h>
  23064. #include <TargetConditionals.h>
  23065. #import <GameController/GameController.h>
  23066. int
  23067. main (void)
  23068. {
  23069. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23070. #error GameController framework doesn't work on this configuration
  23071. #endif
  23072. #if TARGET_CPU_X86
  23073. #error GameController framework doesn't work on this configuration
  23074. #endif
  23075. ;
  23076. return 0;
  23077. }
  23078. _ACEOF
  23079. if ac_fn_c_try_link "$LINENO"
  23080. then :
  23081. enable_joystick_mfi=yes
  23082. fi
  23083. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23084. conftest$ac_exeext conftest.$ac_ext
  23085. CFLAGS="$save_CFLAGS"
  23086. LDFLAGS="$save_LDFLAGS"
  23087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23088. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23089. if test x$enable_joystick_mfi = xyes; then
  23090. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23091. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23092. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23093. fi
  23094. fi
  23095. }
  23096. CheckPTHREAD()
  23097. {
  23098. case "$host" in
  23099. *-*-emscripten*)
  23100. enable_pthreads_default=no
  23101. ;;
  23102. *)
  23103. enable_pthreads_default=yes
  23104. ;;
  23105. esac
  23106. # Check whether --enable-pthreads was given.
  23107. if test ${enable_pthreads+y}
  23108. then :
  23109. enableval=$enable_pthreads;
  23110. else $as_nop
  23111. enable_pthreads=maybe
  23112. fi
  23113. # Check whether --enable-pthread-sem was given.
  23114. if test ${enable_pthread_sem+y}
  23115. then :
  23116. enableval=$enable_pthread_sem;
  23117. else $as_nop
  23118. enable_pthread_sem=maybe
  23119. fi
  23120. if test x$enable_pthreads = xmaybe; then
  23121. enable_pthreads=$enable_pthreads_default
  23122. fi
  23123. if test x$enable_pthread_sem = xmaybe; then
  23124. enable_pthread_sem=$enable_pthreads
  23125. fi
  23126. case "$host" in
  23127. *-*-android*)
  23128. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23129. pthread_lib=""
  23130. ;;
  23131. *-*-linux*|*-*-uclinux*)
  23132. pthread_cflags="-D_REENTRANT"
  23133. pthread_lib="-lpthread"
  23134. ;;
  23135. *-*-bsdi*)
  23136. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23137. pthread_lib=""
  23138. ;;
  23139. *-*-darwin*)
  23140. pthread_cflags="-D_THREAD_SAFE"
  23141. # causes Carbon.p complaints?
  23142. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23143. ;;
  23144. *-*-freebsd*|*-*-dragonfly*)
  23145. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23146. pthread_lib="-pthread"
  23147. ;;
  23148. *-*-netbsd*)
  23149. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23150. pthread_lib="-lpthread"
  23151. ;;
  23152. *-*-openbsd*)
  23153. pthread_cflags="-D_REENTRANT"
  23154. pthread_lib="-lpthread"
  23155. ;;
  23156. *-*-solaris2.9)
  23157. # From Solaris 9+, posix4's preferred name is rt.
  23158. pthread_cflags="-D_REENTRANT"
  23159. pthread_lib="-lpthread -lrt"
  23160. ;;
  23161. *-*-solaris2.10)
  23162. # Solaris 10+ merged pthread into libc.
  23163. pthread_cflags="-D_REENTRANT"
  23164. pthread_lib="-lrt"
  23165. ;;
  23166. *-*-solaris*)
  23167. # Solaris 11+ merged rt into libc.
  23168. pthread_cflags="-D_REENTRANT"
  23169. pthread_lib=""
  23170. ;;
  23171. *-*-sysv5*)
  23172. pthread_cflags="-D_REENTRANT -Kthread"
  23173. pthread_lib=""
  23174. ;;
  23175. *-*-aix*)
  23176. pthread_cflags="-D_REENTRANT -mthreads"
  23177. pthread_lib="-lpthread"
  23178. ;;
  23179. *-*-hpux11*)
  23180. pthread_cflags="-D_REENTRANT"
  23181. pthread_lib="-L/usr/lib -lpthread"
  23182. ;;
  23183. *-*-haiku*)
  23184. pthread_cflags="-D_REENTRANT"
  23185. pthread_lib=""
  23186. ;;
  23187. *-*-nto*)
  23188. pthread_cflags="-D_REENTRANT"
  23189. pthread_lib=""
  23190. ;;
  23191. *-*-emscripten*)
  23192. pthread_cflags="-D_REENTRANT -pthread"
  23193. pthread_lib="-pthread"
  23194. ;;
  23195. *)
  23196. pthread_cflags="-D_REENTRANT"
  23197. pthread_lib="-lpthread"
  23198. ;;
  23199. esac
  23200. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23201. # Save the original compiler flags and libraries
  23202. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23203. # Add the pthread compiler flags and libraries
  23204. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23205. # Check to see if we have pthread support on this system
  23206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23207. printf %s "checking for pthreads... " >&6; }
  23208. use_pthreads=no
  23209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23210. /* end confdefs.h. */
  23211. #include <pthread.h>
  23212. int
  23213. main (void)
  23214. {
  23215. pthread_attr_t type;
  23216. pthread_attr_init(&type);
  23217. ;
  23218. return 0;
  23219. }
  23220. _ACEOF
  23221. if ac_fn_c_try_link "$LINENO"
  23222. then :
  23223. use_pthreads=yes
  23224. fi
  23225. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23226. conftest$ac_exeext conftest.$ac_ext
  23227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23228. printf "%s\n" "$use_pthreads" >&6; }
  23229. # Restore the compiler flags and libraries
  23230. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23231. # Do futher testing if we have pthread support...
  23232. if test x$use_pthreads = xyes; then
  23233. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23234. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23235. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23236. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23237. # Save the original compiler flags and libraries
  23238. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23239. # Add the pthread compiler flags and libraries
  23240. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23241. # Check to see if recursive mutexes are available
  23242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23243. printf %s "checking for recursive mutexes... " >&6; }
  23244. has_recursive_mutexes=no
  23245. if test x$has_recursive_mutexes = xno; then
  23246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23247. /* end confdefs.h. */
  23248. #define _GNU_SOURCE 1
  23249. #include <pthread.h>
  23250. int
  23251. main (void)
  23252. {
  23253. pthread_mutexattr_t attr;
  23254. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23255. ;
  23256. return 0;
  23257. }
  23258. _ACEOF
  23259. if ac_fn_c_try_link "$LINENO"
  23260. then :
  23261. has_recursive_mutexes=yes
  23262. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23263. fi
  23264. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23265. conftest$ac_exeext conftest.$ac_ext
  23266. fi
  23267. if test x$has_recursive_mutexes = xno; then
  23268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23269. /* end confdefs.h. */
  23270. #define _GNU_SOURCE 1
  23271. #include <pthread.h>
  23272. int
  23273. main (void)
  23274. {
  23275. pthread_mutexattr_t attr;
  23276. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23277. ;
  23278. return 0;
  23279. }
  23280. _ACEOF
  23281. if ac_fn_c_try_link "$LINENO"
  23282. then :
  23283. has_recursive_mutexes=yes
  23284. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23285. fi
  23286. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23287. conftest$ac_exeext conftest.$ac_ext
  23288. fi
  23289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23290. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23291. # Check to see if pthread semaphore support is missing
  23292. if test x$enable_pthread_sem = xyes; then
  23293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23294. printf %s "checking for pthread semaphores... " >&6; }
  23295. have_pthread_sem=no
  23296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23297. /* end confdefs.h. */
  23298. #include <pthread.h>
  23299. #include <semaphore.h>
  23300. int
  23301. main (void)
  23302. {
  23303. ;
  23304. return 0;
  23305. }
  23306. _ACEOF
  23307. if ac_fn_c_try_compile "$LINENO"
  23308. then :
  23309. have_pthread_sem=yes
  23310. fi
  23311. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23313. printf "%s\n" "$have_pthread_sem" >&6; }
  23314. fi
  23315. if test x$have_pthread_sem = xyes; then
  23316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23317. printf %s "checking for sem_timedwait... " >&6; }
  23318. have_sem_timedwait=no
  23319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23320. /* end confdefs.h. */
  23321. #include <pthread.h>
  23322. #include <semaphore.h>
  23323. int
  23324. main (void)
  23325. {
  23326. sem_timedwait(NULL, NULL);
  23327. ;
  23328. return 0;
  23329. }
  23330. _ACEOF
  23331. if ac_fn_c_try_link "$LINENO"
  23332. then :
  23333. have_sem_timedwait=yes
  23334. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23335. fi
  23336. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23337. conftest$ac_exeext conftest.$ac_ext
  23338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23339. printf "%s\n" "$have_sem_timedwait" >&6; }
  23340. fi
  23341. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23342. "
  23343. if test "x$ac_cv_header_pthread_np_h" = xyes
  23344. then :
  23345. have_pthread_np_h=yes
  23346. else $as_nop
  23347. have_pthread_np_h=no
  23348. fi
  23349. if test x$have_pthread_np_h = xyes; then
  23350. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23351. fi
  23352. # Check to see if pthread naming is available
  23353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23354. printf %s "checking for pthread_setname_np... " >&6; }
  23355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23356. /* end confdefs.h. */
  23357. /* Override any GCC internal prototype to avoid an error.
  23358. Use char because int might match the return type of a GCC
  23359. builtin and then its argument prototype would still apply. */
  23360. char pthread_setname_np ();
  23361. int
  23362. main (void)
  23363. {
  23364. return pthread_setname_np ();
  23365. ;
  23366. return 0;
  23367. }
  23368. _ACEOF
  23369. if ac_fn_c_try_link "$LINENO"
  23370. then :
  23371. has_pthread_setname_np=yes
  23372. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23373. else $as_nop
  23374. has_pthread_setname_np=no
  23375. fi
  23376. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23377. conftest$ac_exeext conftest.$ac_ext
  23378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23379. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23381. printf %s "checking for pthread_set_name_np... " >&6; }
  23382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23383. /* end confdefs.h. */
  23384. /* Override any GCC internal prototype to avoid an error.
  23385. Use char because int might match the return type of a GCC
  23386. builtin and then its argument prototype would still apply. */
  23387. char pthread_set_name_np ();
  23388. int
  23389. main (void)
  23390. {
  23391. return pthread_set_name_np ();
  23392. ;
  23393. return 0;
  23394. }
  23395. _ACEOF
  23396. if ac_fn_c_try_link "$LINENO"
  23397. then :
  23398. has_pthread_set_name_np=yes
  23399. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23400. else $as_nop
  23401. has_pthread_set_name_np=no
  23402. fi
  23403. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23404. conftest$ac_exeext conftest.$ac_ext
  23405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23406. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23407. # Restore the compiler flags and libraries
  23408. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23409. # Basic thread creation functions
  23410. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23411. # Semaphores
  23412. # We can fake these with mutexes and condition variables if necessary
  23413. if test x$have_pthread_sem = xyes; then
  23414. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23415. else
  23416. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23417. fi
  23418. # Mutexes
  23419. # We can fake these with semaphores if necessary
  23420. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23421. # Condition variables
  23422. # We can fake these with semaphores and mutexes if necessary
  23423. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23424. # Thread local storage
  23425. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23426. have_threads=yes
  23427. fi
  23428. fi
  23429. }
  23430. CheckWINDOWS()
  23431. {
  23432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23433. printf %s "checking Windows compiler... " >&6; }
  23434. have_win32_gcc=no
  23435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23436. /* end confdefs.h. */
  23437. #include <windows.h>
  23438. int
  23439. main (void)
  23440. {
  23441. ;
  23442. return 0;
  23443. }
  23444. _ACEOF
  23445. if ac_fn_c_try_compile "$LINENO"
  23446. then :
  23447. have_win32_gcc=yes
  23448. fi
  23449. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23451. printf "%s\n" "$have_win32_gcc" >&6; }
  23452. if test x$have_win32_gcc != xyes; then
  23453. as_fn_error $? "
  23454. *** Your compiler ($CC) does not produce Windows executables!
  23455. " "$LINENO" 5
  23456. fi
  23457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23458. printf %s "checking Windows CE... " >&6; }
  23459. have_wince=no
  23460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23461. /* end confdefs.h. */
  23462. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23463. #error This is not Windows CE
  23464. #endif
  23465. int
  23466. main (void)
  23467. {
  23468. ;
  23469. return 0;
  23470. }
  23471. _ACEOF
  23472. if ac_fn_c_try_compile "$LINENO"
  23473. then :
  23474. have_wince=yes
  23475. as_fn_error $? "
  23476. *** Sorry, Windows CE is no longer supported.
  23477. " "$LINENO" 5
  23478. fi
  23479. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23481. printf "%s\n" "$have_wince" >&6; }
  23482. # This fixes Windows stack alignment with newer GCC
  23483. CheckStackBoundary
  23484. # headers needed elsewhere
  23485. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23486. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23487. then :
  23488. have_tpcshrd_h=yes
  23489. fi
  23490. if test x$have_tpcshrd_h = xyes; then
  23491. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23492. fi
  23493. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23494. if test "x$ac_cv_header_roapi_h" = xyes
  23495. then :
  23496. have_roapi_h=yes
  23497. fi
  23498. if test x$have_roapi_h = xyes; then
  23499. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23500. fi
  23501. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23502. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23503. then :
  23504. have_shellscalingapi_h=yes
  23505. fi
  23506. if test x$shellscalingapi_h = xyes; then
  23507. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23508. fi
  23509. }
  23510. CheckOS2()
  23511. {
  23512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23513. printf %s "checking OS/2 compiler... " >&6; }
  23514. have_os2_gcc=no
  23515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23516. /* end confdefs.h. */
  23517. #include <os2.h>
  23518. int
  23519. main (void)
  23520. {
  23521. ;
  23522. return 0;
  23523. }
  23524. _ACEOF
  23525. if ac_fn_c_try_compile "$LINENO"
  23526. then :
  23527. have_os2_gcc=yes
  23528. fi
  23529. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23531. printf "%s\n" "$have_os2_gcc" >&6; }
  23532. if test x$have_os2_gcc != xyes; then
  23533. as_fn_error $? "
  23534. *** Your compiler ($CC) does not produce OS/2 executables!
  23535. " "$LINENO" 5
  23536. fi
  23537. }
  23538. CheckDIRECTX()
  23539. {
  23540. # Check whether --enable-directx was given.
  23541. if test ${enable_directx+y}
  23542. then :
  23543. enableval=$enable_directx;
  23544. else $as_nop
  23545. enable_directx=yes
  23546. fi
  23547. if test x$enable_directx = xyes; then
  23548. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23549. if test "x$ac_cv_header_d3d9_h" = xyes
  23550. then :
  23551. have_d3d=yes
  23552. fi
  23553. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23554. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23555. then :
  23556. have_d3d11=yes
  23557. fi
  23558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23559. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23561. /* end confdefs.h. */
  23562. #include <winsdkver.h>
  23563. #include <sdkddkver.h>
  23564. #include <d3d12.h>
  23565. ID3D12Device1 *device;
  23566. #if WDK_NTDDI_VERSION <= 0x0A000008
  23567. asdf
  23568. #endif
  23569. int
  23570. main (void)
  23571. {
  23572. ;
  23573. return 0;
  23574. }
  23575. _ACEOF
  23576. if ac_fn_c_try_compile "$LINENO"
  23577. then :
  23578. have_d3d12=yes
  23579. else $as_nop
  23580. have_d3d12=no
  23581. fi
  23582. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23584. printf "%s\n" "$have_d3d12" >&6; }
  23585. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23586. if test "x$ac_cv_header_ddraw_h" = xyes
  23587. then :
  23588. have_ddraw=yes
  23589. fi
  23590. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23591. if test "x$ac_cv_header_dsound_h" = xyes
  23592. then :
  23593. have_dsound=yes
  23594. fi
  23595. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23596. if test "x$ac_cv_header_dinput_h" = xyes
  23597. then :
  23598. have_dinput=yes
  23599. fi
  23600. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23601. if test "x$ac_cv_header_dxgi_h" = xyes
  23602. then :
  23603. have_dxgi=yes
  23604. fi
  23605. if test x$have_ddraw = xyes; then
  23606. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23607. fi
  23608. if test x$have_dinput = xyes; then
  23609. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23610. fi
  23611. if test x$have_dsound = xyes; then
  23612. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23613. fi
  23614. if test x$have_dxgi = xyes; then
  23615. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23616. fi
  23617. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23618. # FIXME: ...so force it off for now.
  23619. case "$host" in
  23620. *-*-cygwin*)
  23621. have_dinput=false
  23622. ;;
  23623. esac
  23624. fi
  23625. # Check whether --enable-xinput was given.
  23626. if test ${enable_xinput+y}
  23627. then :
  23628. enableval=$enable_xinput;
  23629. else $as_nop
  23630. enable_xinput=yes
  23631. fi
  23632. if test x$enable_xinput = xyes; then
  23633. have_xinput_gamepadex=no
  23634. have_xinput_stateex=no
  23635. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23636. if test "x$ac_cv_header_xinput_h" = xyes
  23637. then :
  23638. have_xinput=yes
  23639. fi
  23640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23641. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23643. /* end confdefs.h. */
  23644. #include <windows.h>
  23645. #include <xinput.h>
  23646. XINPUT_GAMEPAD_EX x1;
  23647. int
  23648. main (void)
  23649. {
  23650. ;
  23651. return 0;
  23652. }
  23653. _ACEOF
  23654. if ac_fn_c_try_compile "$LINENO"
  23655. then :
  23656. have_xinput_gamepadex=yes
  23657. fi
  23658. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23660. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23662. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23664. /* end confdefs.h. */
  23665. #include <windows.h>
  23666. #include <xinput.h>
  23667. XINPUT_STATE_EX s1;
  23668. int
  23669. main (void)
  23670. {
  23671. ;
  23672. return 0;
  23673. }
  23674. _ACEOF
  23675. if ac_fn_c_try_compile "$LINENO"
  23676. then :
  23677. have_xinput_stateex=yes
  23678. fi
  23679. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23681. printf "%s\n" "$have_xinput_stateex" >&6; }
  23682. if test x$have_xinput = xyes; then
  23683. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23684. fi
  23685. if test x$have_xinput_gamepadex = xyes; then
  23686. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23687. fi
  23688. if test x$have_xinput_stateex = xyes; then
  23689. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23690. fi
  23691. fi
  23692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23693. printf %s "checking for windows.gaming.input.h... " >&6; }
  23694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23695. /* end confdefs.h. */
  23696. #define COBJMACROS
  23697. #include <windows.gaming.input.h>
  23698. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23699. int
  23700. main (void)
  23701. {
  23702. ;
  23703. return 0;
  23704. }
  23705. _ACEOF
  23706. if ac_fn_c_try_compile "$LINENO"
  23707. then :
  23708. have_wgi=yes
  23709. else $as_nop
  23710. have_wgi=no
  23711. fi
  23712. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23714. printf "%s\n" "$have_wgi" >&6; }
  23715. if test x$have_wgi = xyes; then
  23716. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23717. fi
  23718. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23719. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23720. then :
  23721. have_wasapi=yes
  23722. fi
  23723. if test x$have_wasapi = xyes; then
  23724. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23725. fi
  23726. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23727. if test "x$ac_cv_header_audioclient_h" = xyes
  23728. then :
  23729. else $as_nop
  23730. have_wasapi=no
  23731. fi
  23732. if test x$have_wasapi = xyes; then
  23733. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23734. fi
  23735. # Check whether --enable-wasapi was given.
  23736. if test ${enable_wasapi+y}
  23737. then :
  23738. enableval=$enable_wasapi;
  23739. else $as_nop
  23740. enable_wasapi=yes
  23741. fi
  23742. }
  23743. CheckDLOPEN()
  23744. {
  23745. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23746. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23747. if test "x$ac_cv_header_dlfcn_h" = xyes
  23748. then :
  23749. have_dlfcn_h=yes
  23750. else $as_nop
  23751. have_dlfcn_h=no
  23752. fi
  23753. have_dlopen=no
  23754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23755. printf %s "checking for dlopen in -lc... " >&6; }
  23756. if test ${ac_cv_lib_c_dlopen+y}
  23757. then :
  23758. printf %s "(cached) " >&6
  23759. else $as_nop
  23760. ac_check_lib_save_LIBS=$LIBS
  23761. LIBS="-lc $LIBS"
  23762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23763. /* end confdefs.h. */
  23764. /* Override any GCC internal prototype to avoid an error.
  23765. Use char because int might match the return type of a GCC
  23766. builtin and then its argument prototype would still apply. */
  23767. char dlopen ();
  23768. int
  23769. main (void)
  23770. {
  23771. return dlopen ();
  23772. ;
  23773. return 0;
  23774. }
  23775. _ACEOF
  23776. if ac_fn_c_try_link "$LINENO"
  23777. then :
  23778. ac_cv_lib_c_dlopen=yes
  23779. else $as_nop
  23780. ac_cv_lib_c_dlopen=no
  23781. fi
  23782. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23783. conftest$ac_exeext conftest.$ac_ext
  23784. LIBS=$ac_check_lib_save_LIBS
  23785. fi
  23786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23787. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23788. if test "x$ac_cv_lib_c_dlopen" = xyes
  23789. then :
  23790. have_dlopen=yes
  23791. else $as_nop
  23792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23793. printf %s "checking for dlopen in -ldl... " >&6; }
  23794. if test ${ac_cv_lib_dl_dlopen+y}
  23795. then :
  23796. printf %s "(cached) " >&6
  23797. else $as_nop
  23798. ac_check_lib_save_LIBS=$LIBS
  23799. LIBS="-ldl $LIBS"
  23800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23801. /* end confdefs.h. */
  23802. /* Override any GCC internal prototype to avoid an error.
  23803. Use char because int might match the return type of a GCC
  23804. builtin and then its argument prototype would still apply. */
  23805. char dlopen ();
  23806. int
  23807. main (void)
  23808. {
  23809. return dlopen ();
  23810. ;
  23811. return 0;
  23812. }
  23813. _ACEOF
  23814. if ac_fn_c_try_link "$LINENO"
  23815. then :
  23816. ac_cv_lib_dl_dlopen=yes
  23817. else $as_nop
  23818. ac_cv_lib_dl_dlopen=no
  23819. fi
  23820. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23821. conftest$ac_exeext conftest.$ac_ext
  23822. LIBS=$ac_check_lib_save_LIBS
  23823. fi
  23824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23825. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23826. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23827. then :
  23828. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23829. fi
  23830. fi
  23831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23832. printf %s "checking for dlopen... " >&6; }
  23833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23834. printf "%s\n" "$have_dlopen" >&6; }
  23835. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23836. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23837. if test x$enable_loadso = xyes; then
  23838. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23839. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23840. have_loadso=yes
  23841. fi
  23842. fi
  23843. }
  23844. CheckO_CLOEXEC()
  23845. {
  23846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23847. printf %s "checking for O_CLOEXEC... " >&6; }
  23848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23849. /* end confdefs.h. */
  23850. #include <fcntl.h>
  23851. int flag = O_CLOEXEC;
  23852. int
  23853. main (void)
  23854. {
  23855. ;
  23856. return 0;
  23857. }
  23858. _ACEOF
  23859. if ac_fn_c_try_compile "$LINENO"
  23860. then :
  23861. have_o_cloexec=yes
  23862. else $as_nop
  23863. have_o_cloexec=no
  23864. fi
  23865. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23867. printf "%s\n" "$have_o_cloexec" >&6; }
  23868. if test $have_o_cloexec = yes; then
  23869. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23870. fi
  23871. }
  23872. CheckUSBHID()
  23873. {
  23874. case "$host" in
  23875. *-*-*bsd*|*-*-dragonfly*)
  23876. if test x$enable_joystick = xyes; then
  23877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23878. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23879. if test ${ac_cv_lib_usbhid_hid_init+y}
  23880. then :
  23881. printf %s "(cached) " >&6
  23882. else $as_nop
  23883. ac_check_lib_save_LIBS=$LIBS
  23884. LIBS="-lusbhid $LIBS"
  23885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23886. /* end confdefs.h. */
  23887. /* Override any GCC internal prototype to avoid an error.
  23888. Use char because int might match the return type of a GCC
  23889. builtin and then its argument prototype would still apply. */
  23890. char hid_init ();
  23891. int
  23892. main (void)
  23893. {
  23894. return hid_init ();
  23895. ;
  23896. return 0;
  23897. }
  23898. _ACEOF
  23899. if ac_fn_c_try_link "$LINENO"
  23900. then :
  23901. ac_cv_lib_usbhid_hid_init=yes
  23902. else $as_nop
  23903. ac_cv_lib_usbhid_hid_init=no
  23904. fi
  23905. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23906. conftest$ac_exeext conftest.$ac_ext
  23907. LIBS=$ac_check_lib_save_LIBS
  23908. fi
  23909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23910. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23911. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23912. then :
  23913. have_libusbhid=yes
  23914. fi
  23915. if test x$have_libusbhid = xyes; then
  23916. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23917. if test "x$ac_cv_header_usbhid_h" = xyes
  23918. then :
  23919. USB_CFLAGS="-DHAVE_USBHID_H"
  23920. fi
  23921. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23922. if test "x$ac_cv_header_libusbhid_h" = xyes
  23923. then :
  23924. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23925. fi
  23926. USB_LIBS="$USB_LIBS -lusbhid"
  23927. else
  23928. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23929. if test "x$ac_cv_header_usb_h" = xyes
  23930. then :
  23931. USB_CFLAGS="-DHAVE_USB_H"
  23932. fi
  23933. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23934. if test "x$ac_cv_header_libusb_h" = xyes
  23935. then :
  23936. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23937. fi
  23938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23939. printf %s "checking for hid_init in -lusb... " >&6; }
  23940. if test ${ac_cv_lib_usb_hid_init+y}
  23941. then :
  23942. printf %s "(cached) " >&6
  23943. else $as_nop
  23944. ac_check_lib_save_LIBS=$LIBS
  23945. LIBS="-lusb $LIBS"
  23946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23947. /* end confdefs.h. */
  23948. /* Override any GCC internal prototype to avoid an error.
  23949. Use char because int might match the return type of a GCC
  23950. builtin and then its argument prototype would still apply. */
  23951. char hid_init ();
  23952. int
  23953. main (void)
  23954. {
  23955. return hid_init ();
  23956. ;
  23957. return 0;
  23958. }
  23959. _ACEOF
  23960. if ac_fn_c_try_link "$LINENO"
  23961. then :
  23962. ac_cv_lib_usb_hid_init=yes
  23963. else $as_nop
  23964. ac_cv_lib_usb_hid_init=no
  23965. fi
  23966. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23967. conftest$ac_exeext conftest.$ac_ext
  23968. LIBS=$ac_check_lib_save_LIBS
  23969. fi
  23970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23971. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23972. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23973. then :
  23974. USB_LIBS="$USB_LIBS -lusb"
  23975. fi
  23976. fi
  23977. save_CFLAGS="$CFLAGS"
  23978. CFLAGS="$CFLAGS $USB_CFLAGS"
  23979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23980. printf %s "checking for usbhid... " >&6; }
  23981. have_usbhid=no
  23982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23983. /* end confdefs.h. */
  23984. #include <sys/types.h>
  23985. #if defined(HAVE_USB_H)
  23986. #include <usb.h>
  23987. #endif
  23988. #ifdef __DragonFly__
  23989. # include <bus/u4b/usb.h>
  23990. # include <bus/u4b/usbhid.h>
  23991. #else
  23992. # include <dev/usb/usb.h>
  23993. # include <dev/usb/usbhid.h>
  23994. #endif
  23995. #if defined(HAVE_USBHID_H)
  23996. #include <usbhid.h>
  23997. #elif defined(HAVE_LIBUSB_H)
  23998. #include <libusb.h>
  23999. #elif defined(HAVE_LIBUSBHID_H)
  24000. #include <libusbhid.h>
  24001. #endif
  24002. int
  24003. main (void)
  24004. {
  24005. struct report_desc *repdesc;
  24006. struct usb_ctl_report *repbuf;
  24007. hid_kind_t hidkind;
  24008. ;
  24009. return 0;
  24010. }
  24011. _ACEOF
  24012. if ac_fn_c_try_compile "$LINENO"
  24013. then :
  24014. have_usbhid=yes
  24015. fi
  24016. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24018. printf "%s\n" "$have_usbhid" >&6; }
  24019. if test x$have_usbhid = xyes; then
  24020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24021. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24022. have_usbhid_ucr_data=no
  24023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24024. /* end confdefs.h. */
  24025. #include <sys/types.h>
  24026. #if defined(HAVE_USB_H)
  24027. #include <usb.h>
  24028. #endif
  24029. #ifdef __DragonFly__
  24030. # include <bus/u4b/usb.h>
  24031. # include <bus/u4b/usbhid.h>
  24032. #else
  24033. # include <dev/usb/usb.h>
  24034. # include <dev/usb/usbhid.h>
  24035. #endif
  24036. #if defined(HAVE_USBHID_H)
  24037. #include <usbhid.h>
  24038. #elif defined(HAVE_LIBUSB_H)
  24039. #include <libusb.h>
  24040. #elif defined(HAVE_LIBUSBHID_H)
  24041. #include <libusbhid.h>
  24042. #endif
  24043. int
  24044. main (void)
  24045. {
  24046. struct usb_ctl_report buf;
  24047. if (buf.ucr_data) { }
  24048. ;
  24049. return 0;
  24050. }
  24051. _ACEOF
  24052. if ac_fn_c_try_compile "$LINENO"
  24053. then :
  24054. have_usbhid_ucr_data=yes
  24055. fi
  24056. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24057. if test x$have_usbhid_ucr_data = xyes; then
  24058. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24059. fi
  24060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24061. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24063. printf %s "checking for new usbhid API... " >&6; }
  24064. have_usbhid_new=no
  24065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24066. /* end confdefs.h. */
  24067. #include <sys/types.h>
  24068. #if defined(HAVE_USB_H)
  24069. #include <usb.h>
  24070. #endif
  24071. #ifdef __DragonFly__
  24072. #include <bus/u4b/usb.h>
  24073. #include <bus/u4b/usbhid.h>
  24074. #else
  24075. #include <dev/usb/usb.h>
  24076. #include <dev/usb/usbhid.h>
  24077. #endif
  24078. #if defined(HAVE_USBHID_H)
  24079. #include <usbhid.h>
  24080. #elif defined(HAVE_LIBUSB_H)
  24081. #include <libusb.h>
  24082. #elif defined(HAVE_LIBUSBHID_H)
  24083. #include <libusbhid.h>
  24084. #endif
  24085. int
  24086. main (void)
  24087. {
  24088. report_desc_t d;
  24089. hid_start_parse(d, 1, 1);
  24090. ;
  24091. return 0;
  24092. }
  24093. _ACEOF
  24094. if ac_fn_c_try_compile "$LINENO"
  24095. then :
  24096. have_usbhid_new=yes
  24097. fi
  24098. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24099. if test x$have_usbhid_new = xyes; then
  24100. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24101. fi
  24102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24103. printf "%s\n" "$have_usbhid_new" >&6; }
  24104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24105. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24106. have_machine_joystick=no
  24107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24108. /* end confdefs.h. */
  24109. #include <machine/joystick.h>
  24110. int
  24111. main (void)
  24112. {
  24113. struct joystick t;
  24114. ;
  24115. return 0;
  24116. }
  24117. _ACEOF
  24118. if ac_fn_c_try_compile "$LINENO"
  24119. then :
  24120. have_machine_joystick=yes
  24121. fi
  24122. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24123. if test x$have_machine_joystick = xyes; then
  24124. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24125. fi
  24126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24127. printf "%s\n" "$have_machine_joystick" >&6; }
  24128. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24129. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24130. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24131. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24132. have_joystick=yes
  24133. fi
  24134. CFLAGS="$save_CFLAGS"
  24135. fi
  24136. ;;
  24137. esac
  24138. }
  24139. CheckHIDAPI()
  24140. {
  24141. # Check whether --enable-hidapi-joystick was given.
  24142. if test ${enable_hidapi_joystick+y}
  24143. then :
  24144. enableval=$enable_hidapi_joystick;
  24145. else $as_nop
  24146. enable_hidapi_joystick=yes
  24147. fi
  24148. # Check whether --enable-hidapi-libusb was given.
  24149. if test ${enable_hidapi_libusb+y}
  24150. then :
  24151. enableval=$enable_hidapi_libusb;
  24152. else $as_nop
  24153. enable_hidapi_libusb=maybe
  24154. fi
  24155. if test x$enable_hidapi = xyes; then
  24156. case "$host" in
  24157. # libusb does not support iOS
  24158. *-ios-* )
  24159. enable_hidapi_libusb=no
  24160. ;;
  24161. # On the other hand, *BSD specifically uses libusb only
  24162. *-*-*bsd* )
  24163. enable_hidapi_libusb=yes
  24164. require_hidapi_libusb=yes
  24165. ;;
  24166. *-*-os2* )
  24167. enable_hidapi_libusb=yes
  24168. ;;
  24169. esac
  24170. hidapi_support=yes
  24171. if test x$enable_hidapi_libusb = xyes; then
  24172. pkg_failed=no
  24173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24174. printf %s "checking for libusb-1.0... " >&6; }
  24175. if test -n "$LIBUSB_CFLAGS"; then
  24176. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24177. elif test -n "$PKG_CONFIG"; then
  24178. if test -n "$PKG_CONFIG" && \
  24179. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24180. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24181. ac_status=$?
  24182. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24183. test $ac_status = 0; }; then
  24184. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24185. test "x$?" != "x0" && pkg_failed=yes
  24186. else
  24187. pkg_failed=yes
  24188. fi
  24189. else
  24190. pkg_failed=untried
  24191. fi
  24192. if test -n "$LIBUSB_LIBS"; then
  24193. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  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_LIBS=`$PKG_CONFIG --libs "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 $pkg_failed = yes; then
  24210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24211. printf "%s\n" "no" >&6; }
  24212. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24213. _pkg_short_errors_supported=yes
  24214. else
  24215. _pkg_short_errors_supported=no
  24216. fi
  24217. if test $_pkg_short_errors_supported = yes; then
  24218. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24219. else
  24220. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24221. fi
  24222. # Put the nasty error message in config.log where it belongs
  24223. echo "$LIBUSB_PKG_ERRORS" >&5
  24224. have_libusb=no
  24225. elif test $pkg_failed = untried; then
  24226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24227. printf "%s\n" "no" >&6; }
  24228. have_libusb=no
  24229. else
  24230. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24231. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24233. printf "%s\n" "yes" >&6; }
  24234. have_libusb=yes
  24235. fi
  24236. save_CPPFLAGS="$CPPFLAGS"
  24237. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24238. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24239. if test "x$ac_cv_header_libusb_h" = xyes
  24240. then :
  24241. have_libusb_h=yes
  24242. else $as_nop
  24243. have_libusb_h=no
  24244. fi
  24245. CPPFLAGS="$save_CPPFLAGS"
  24246. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24247. hidapi_support=no
  24248. fi
  24249. fi
  24250. if test x$hidapi_support = xyes; then
  24251. if test x$have_libusb_h = xyes; then
  24252. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24253. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24254. if test x$require_hidapi_libusb = xyes; then
  24255. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24256. else
  24257. if test x$have_loadso != xyes; then
  24258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24259. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24260. fi
  24261. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24262. libusb_lib=""
  24263. case "$host" in
  24264. *-*-darwin* )
  24265. libusb_lib="libusb-1.0.0.dylib"
  24266. ;;
  24267. *-*-cygwin* | *-*-mingw* )
  24268. libusb_lib="libusb-1.0.dll"
  24269. ;;
  24270. *-*-os2* )
  24271. libusb_lib="usb100.dll"
  24272. ;;
  24273. esac
  24274. if test x$libusb_lib = x; then
  24275. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24276. fi
  24277. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24278. fi
  24279. fi
  24280. fi
  24281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24282. printf %s "checking for hidapi joystick support... " >&6; }
  24283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24284. printf "%s\n" "$hidapi_support" >&6; }
  24285. fi
  24286. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24287. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24288. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24289. fi
  24290. }
  24291. CheckClockGettime()
  24292. {
  24293. # Check whether --enable-clock_gettime was given.
  24294. if test ${enable_clock_gettime+y}
  24295. then :
  24296. enableval=$enable_clock_gettime;
  24297. else $as_nop
  24298. enable_clock_gettime=yes
  24299. fi
  24300. if test x$enable_clock_gettime = xyes; then
  24301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24302. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24303. if test ${ac_cv_lib_rt_clock_gettime+y}
  24304. then :
  24305. printf %s "(cached) " >&6
  24306. else $as_nop
  24307. ac_check_lib_save_LIBS=$LIBS
  24308. LIBS="-lrt $LIBS"
  24309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24310. /* end confdefs.h. */
  24311. /* Override any GCC internal prototype to avoid an error.
  24312. Use char because int might match the return type of a GCC
  24313. builtin and then its argument prototype would still apply. */
  24314. char clock_gettime ();
  24315. int
  24316. main (void)
  24317. {
  24318. return clock_gettime ();
  24319. ;
  24320. return 0;
  24321. }
  24322. _ACEOF
  24323. if ac_fn_c_try_link "$LINENO"
  24324. then :
  24325. ac_cv_lib_rt_clock_gettime=yes
  24326. else $as_nop
  24327. ac_cv_lib_rt_clock_gettime=no
  24328. fi
  24329. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24330. conftest$ac_exeext conftest.$ac_ext
  24331. LIBS=$ac_check_lib_save_LIBS
  24332. fi
  24333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24334. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24335. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24336. then :
  24337. have_clock_gettime=yes
  24338. fi
  24339. if test x$have_clock_gettime = xyes; then
  24340. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24341. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24342. else
  24343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24344. printf %s "checking for clock_gettime in -lc... " >&6; }
  24345. if test ${ac_cv_lib_c_clock_gettime+y}
  24346. then :
  24347. printf %s "(cached) " >&6
  24348. else $as_nop
  24349. ac_check_lib_save_LIBS=$LIBS
  24350. LIBS="-lc $LIBS"
  24351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24352. /* end confdefs.h. */
  24353. /* Override any GCC internal prototype to avoid an error.
  24354. Use char because int might match the return type of a GCC
  24355. builtin and then its argument prototype would still apply. */
  24356. char clock_gettime ();
  24357. int
  24358. main (void)
  24359. {
  24360. return clock_gettime ();
  24361. ;
  24362. return 0;
  24363. }
  24364. _ACEOF
  24365. if ac_fn_c_try_link "$LINENO"
  24366. then :
  24367. ac_cv_lib_c_clock_gettime=yes
  24368. else $as_nop
  24369. ac_cv_lib_c_clock_gettime=no
  24370. fi
  24371. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24372. conftest$ac_exeext conftest.$ac_ext
  24373. LIBS=$ac_check_lib_save_LIBS
  24374. fi
  24375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24376. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24377. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24378. then :
  24379. have_clock_gettime=yes
  24380. fi
  24381. if test x$have_clock_gettime = xyes; then
  24382. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24383. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24384. fi
  24385. fi
  24386. fi
  24387. }
  24388. CheckLinuxVersion()
  24389. {
  24390. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24391. if test "x$ac_cv_header_linux_version_h" = xyes
  24392. then :
  24393. have_linux_version_h=yes
  24394. fi
  24395. if test x$have_linux_version_h = xyes; then
  24396. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24397. fi
  24398. }
  24399. CheckRPATH()
  24400. {
  24401. # Check whether --enable-rpath was given.
  24402. if test ${enable_rpath+y}
  24403. then :
  24404. enableval=$enable_rpath;
  24405. else $as_nop
  24406. enable_rpath=yes
  24407. fi
  24408. }
  24409. CheckEventSignals()
  24410. {
  24411. # Check whether --enable-backgrounding-signal was given.
  24412. if test ${enable_backgrounding_signal+y}
  24413. then :
  24414. enableval=$enable_backgrounding_signal;
  24415. else $as_nop
  24416. enable_backgrounding_signal=no
  24417. fi
  24418. if test x$enable_backgrounding_signal != xno; then
  24419. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24420. fi
  24421. # Check whether --enable-foregrounding-signal was given.
  24422. if test ${enable_foregrounding_signal+y}
  24423. then :
  24424. enableval=$enable_foregrounding_signal;
  24425. else $as_nop
  24426. enable_foregrounding_signal=no
  24427. fi
  24428. if test x$enable_foregrounding_signal != xno; then
  24429. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24430. fi
  24431. }
  24432. CheckVirtualJoystick()
  24433. {
  24434. # Check whether --enable-joystick-virtual was given.
  24435. if test ${enable_joystick_virtual+y}
  24436. then :
  24437. enableval=$enable_joystick_virtual;
  24438. else $as_nop
  24439. enable_joystick_virtual=yes
  24440. fi
  24441. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24442. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24443. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24444. have_joystick_virtual=yes
  24445. fi
  24446. }
  24447. CheckWarnAll
  24448. CheckNoStrictAliasing
  24449. CheckEventSignals
  24450. have_locale=no
  24451. case "$host" in
  24452. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24453. case "$host" in
  24454. *-*-android*)
  24455. # Android
  24456. ARCH=android
  24457. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24458. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24459. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24460. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24461. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24462. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24463. if test x$enable_video = xyes; then
  24464. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24465. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24466. SUMMARY_video="${SUMMARY_video} android"
  24467. have_video=yes
  24468. fi
  24469. ;;
  24470. *-*-linux*) ARCH=linux ;;
  24471. *-*-uclinux*) ARCH=linux ;;
  24472. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24473. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24474. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24475. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24476. *-*-bsdi*) ARCH=bsdi ;;
  24477. *-*-freebsd*) ARCH=freebsd ;;
  24478. *-*-dragonfly*) ARCH=freebsd ;;
  24479. *-*-netbsd*) ARCH=netbsd ;;
  24480. *-*-openbsd*) ARCH=openbsd ;;
  24481. *-*-sysv5*) ARCH=sysv5 ;;
  24482. *-*-solaris*) ARCH=solaris ;;
  24483. *-*-hpux*) ARCH=hpux ;;
  24484. *-*-aix*) ARCH=aix ;;
  24485. *-*-minix*) ARCH=minix ;;
  24486. *-*-nto*) ARCH=nto
  24487. CheckQNXVideo
  24488. ;;
  24489. esac
  24490. CheckVisibilityHidden
  24491. CheckWerror
  24492. CheckDeclarationAfterStatement
  24493. CheckDummyVideo
  24494. CheckOffscreenVideo
  24495. CheckDiskAudio
  24496. CheckDummyAudio
  24497. CheckDLOPEN
  24498. CheckARM
  24499. CheckNEON
  24500. CheckO_CLOEXEC
  24501. CheckOSS
  24502. CheckALSA
  24503. CheckPipewire
  24504. CheckPulseAudio
  24505. CheckJACK
  24506. CheckARTSC
  24507. CheckESD
  24508. CheckNAS
  24509. CheckSNDIO
  24510. CheckFusionSound
  24511. CheckLibSampleRate
  24512. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24513. CheckRPI
  24514. CheckX11
  24515. CheckDirectFB
  24516. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24517. CheckEGL
  24518. CheckKMSDRM
  24519. CheckGLX
  24520. CheckOpenGL
  24521. CheckOpenGLES
  24522. CheckVulkan
  24523. CheckWayland
  24524. CheckInputEvents
  24525. CheckLibUDev
  24526. CheckDBus
  24527. CheckIME
  24528. CheckInotify
  24529. CheckIBus
  24530. CheckFcitx
  24531. case $ARCH in
  24532. linux)
  24533. CheckInputKD
  24534. ;;
  24535. freebsd)
  24536. CheckInputKBIO
  24537. ;;
  24538. openbsd|netbsd)
  24539. CheckInputWSCONS
  24540. ;;
  24541. esac
  24542. CheckUSBHID
  24543. CheckHIDAPI
  24544. CheckPTHREAD
  24545. CheckClockGettime
  24546. CheckLinuxVersion
  24547. CheckRPATH
  24548. CheckVivanteVideo
  24549. # Set up files for the misc library
  24550. if test x$enable_misc = xyes; then
  24551. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24552. have_misc=yes
  24553. fi
  24554. # Set up files for the locale library
  24555. if test x$enable_locale = xyes; then
  24556. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24557. have_locale=yes
  24558. fi
  24559. # Set up files for the audio library
  24560. if test x$enable_audio = xyes; then
  24561. case $ARCH in
  24562. sysv5|solaris|hpux)
  24563. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24564. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24565. SUMMARY_audio="${SUMMARY_audio} sun"
  24566. have_audio=yes
  24567. ;;
  24568. netbsd) # Don't use this on OpenBSD, it's busted.
  24569. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24570. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24571. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24572. have_audio=yes
  24573. ;;
  24574. aix)
  24575. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24576. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24577. SUMMARY_audio="${SUMMARY_audio} paudio"
  24578. have_audio=yes
  24579. ;;
  24580. android)
  24581. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24582. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24583. SUMMARY_audio="${SUMMARY_audio} android"
  24584. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24585. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24586. SUMMARY_audio="${SUMMARY_audio} openslES"
  24587. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24588. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24589. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24590. have_audio=yes
  24591. ;;
  24592. nto)
  24593. CheckQNXAudio
  24594. ;;
  24595. esac
  24596. fi
  24597. # Set up files for the joystick library
  24598. if test x$enable_joystick = xyes; then
  24599. case $ARCH in
  24600. linux)
  24601. if test "x$ac_cv_header_linux_input_h" = xyes; then
  24602. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24603. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24604. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24605. have_joystick=yes
  24606. fi
  24607. ;;
  24608. freebsd)
  24609. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  24610. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24611. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24612. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24613. have_joystick=yes
  24614. fi
  24615. ;;
  24616. android)
  24617. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24618. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24619. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24620. have_joystick=yes
  24621. ;;
  24622. esac
  24623. fi
  24624. # Set up files for the haptic library
  24625. if test x$enable_haptic = xyes; then
  24626. case $ARCH in
  24627. linux|freebsd)
  24628. if test x$use_input_events = xyes; then
  24629. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24630. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24631. have_haptic=yes
  24632. fi
  24633. ;;
  24634. android)
  24635. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24636. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24637. have_haptic=yes
  24638. ;;
  24639. esac
  24640. fi
  24641. # Set up files for the sensor library
  24642. if test x$enable_sensor = xyes; then
  24643. case $ARCH in
  24644. android)
  24645. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24646. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24647. have_sensor=yes
  24648. ;;
  24649. esac
  24650. fi
  24651. # Set up files for the power library
  24652. if test x$enable_power = xyes; then
  24653. case $ARCH in
  24654. linux)
  24655. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24656. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24657. have_power=yes
  24658. ;;
  24659. android)
  24660. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24661. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24662. have_power=yes
  24663. ;;
  24664. esac
  24665. fi
  24666. # Set up files for the filesystem library
  24667. if test x$enable_filesystem = xyes; then
  24668. case $ARCH in
  24669. android)
  24670. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24671. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24672. have_filesystem=yes
  24673. ;;
  24674. *)
  24675. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24676. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24677. have_filesystem=yes
  24678. ;;
  24679. esac
  24680. fi
  24681. # Set up files for the timer library
  24682. if test x$enable_timers = xyes; then
  24683. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24684. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24685. have_timers=yes
  24686. fi
  24687. # Set up files for udev hotplugging support
  24688. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24689. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24690. fi
  24691. # Set up files for evdev input
  24692. if test x$use_input_events = xyes; then
  24693. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24694. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24695. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24696. fi
  24697. # Set up files for wscons input
  24698. if test x$use_input_wscons = xyes; then
  24699. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24700. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24701. fi
  24702. # Set up other core UNIX files
  24703. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24704. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24705. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24706. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24707. ;;
  24708. *-*-cygwin* | *-*-mingw*)
  24709. ARCH=win32
  24710. if test "$build" != "$host"; then # cross-compiling
  24711. # Default cross-compile location
  24712. ac_default_prefix=/usr/local/cross-tools/$host
  24713. else
  24714. # Look for the location of the tools and install there
  24715. if test "$BUILD_PREFIX" != ""; then
  24716. ac_default_prefix=$BUILD_PREFIX
  24717. fi
  24718. fi
  24719. if test x$enable_loadso = xyes; then
  24720. have_loadso=yes
  24721. fi
  24722. CheckGDwarf4
  24723. CheckWerror
  24724. CheckDeclarationAfterStatement
  24725. CheckDummyVideo
  24726. CheckOffscreenVideo
  24727. CheckDiskAudio
  24728. CheckDummyAudio
  24729. CheckWINDOWS
  24730. CheckWINDOWSGL
  24731. CheckWINDOWSGLES
  24732. CheckVulkan
  24733. CheckDIRECTX
  24734. CheckHIDAPI
  24735. # Set up the core platform files
  24736. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24737. # Set up files for the misc library
  24738. if test x$enable_misc = xyes; then
  24739. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24740. have_misc=yes
  24741. fi
  24742. # Use the Windows locale APIs.
  24743. if test x$enable_locale = xyes; then
  24744. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24745. have_locale=yes
  24746. fi
  24747. # Set up files for the video library
  24748. if test x$enable_video = xyes; then
  24749. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24750. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24751. have_video=yes
  24752. # Check whether --enable-render-d3d was given.
  24753. if test ${enable_render_d3d+y}
  24754. then :
  24755. enableval=$enable_render_d3d;
  24756. else $as_nop
  24757. enable_render_d3d=yes
  24758. fi
  24759. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24760. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24761. SUMMARY_video="${SUMMARY_video} d3d9"
  24762. fi
  24763. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24764. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24765. SUMMARY_video="${SUMMARY_video} d3d11"
  24766. fi
  24767. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24768. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24769. SUMMARY_video="${SUMMARY_video} d3d12"
  24770. fi
  24771. fi
  24772. # Set up files for the audio library
  24773. if test x$enable_audio = xyes; then
  24774. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24775. SUMMARY_audio="${SUMMARY_audio} winmm"
  24776. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24777. if test x$have_dsound = xyes; then
  24778. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24779. SUMMARY_audio="${SUMMARY_audio} directsound"
  24780. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24781. fi
  24782. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24783. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24784. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24785. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24786. fi
  24787. have_audio=yes
  24788. fi
  24789. # Set up files for the joystick library
  24790. if test x$enable_joystick = xyes; then
  24791. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24792. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24793. if test x$have_xinput = xyes; then
  24794. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24795. fi
  24796. if test x$have_wgi = xyes; then
  24797. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24798. fi
  24799. if test x$have_dinput = xyes; then
  24800. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24801. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24802. fi
  24803. fi
  24804. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24805. have_joystick=yes
  24806. fi
  24807. if test x$enable_haptic = xyes; then
  24808. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24809. if test x$have_xinput = xyes; then
  24810. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24811. fi
  24812. if test x$have_dinput = xyes; then
  24813. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24814. fi
  24815. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24816. have_haptic=yes
  24817. fi
  24818. fi
  24819. # Set up files for the sensor library
  24820. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24821. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24822. then :
  24823. have_winsensors=yes
  24824. else $as_nop
  24825. have_winsensors=no
  24826. fi
  24827. if test x$have_winsensors = xyes; then
  24828. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24829. fi
  24830. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24831. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24832. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24833. have_sensor=yes
  24834. fi
  24835. # Set up files for the power library
  24836. if test x$enable_power = xyes; then
  24837. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24838. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24839. have_power=yes
  24840. fi
  24841. # Set up files for the filesystem library
  24842. if test x$enable_filesystem = xyes; then
  24843. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24844. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24845. have_filesystem=yes
  24846. fi
  24847. # Set up files for the thread library
  24848. if test x$enable_threads = xyes; then
  24849. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24850. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24851. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24852. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24853. have_threads=yes
  24854. fi
  24855. # Set up files for the timer library
  24856. if test x$enable_timers = xyes; then
  24857. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24858. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24859. have_timers=yes
  24860. fi
  24861. # Set up files for the shared object loading library
  24862. if test x$enable_loadso = xyes; then
  24863. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24864. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24865. fi
  24866. # Set up the system libraries we need
  24867. if test -f /lib/w32api/libuuid.a; then
  24868. LIBUUID=/lib/w32api/libuuid.a
  24869. else
  24870. LIBUUID=-luuid
  24871. fi
  24872. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24873. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24874. # The Windows platform requires special setup
  24875. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24876. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24877. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24878. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24879. # Check to see if this is a mingw or cygwin build
  24880. have_mingw32=
  24881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24882. printf %s "checking for main in -lmingw32... " >&6; }
  24883. if test ${ac_cv_lib_mingw32_main+y}
  24884. then :
  24885. printf %s "(cached) " >&6
  24886. else $as_nop
  24887. ac_check_lib_save_LIBS=$LIBS
  24888. LIBS="-lmingw32 $LIBS"
  24889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24890. /* end confdefs.h. */
  24891. int
  24892. main (void)
  24893. {
  24894. return main ();
  24895. ;
  24896. return 0;
  24897. }
  24898. _ACEOF
  24899. if ac_fn_c_try_link "$LINENO"
  24900. then :
  24901. ac_cv_lib_mingw32_main=yes
  24902. else $as_nop
  24903. ac_cv_lib_mingw32_main=no
  24904. fi
  24905. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24906. conftest$ac_exeext conftest.$ac_ext
  24907. LIBS=$ac_check_lib_save_LIBS
  24908. fi
  24909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24910. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24911. if test "x$ac_cv_lib_mingw32_main" = xyes
  24912. then :
  24913. have_mingw32=yes
  24914. fi
  24915. if test x$have_mingw32 = xyes; then
  24916. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24917. else
  24918. SDL_LIBS="-lcygwin $SDL_LIBS"
  24919. fi
  24920. ;;
  24921. *-*-beos*)
  24922. as_fn_error $? "
  24923. *** BeOS support has been removed as of SDL 2.0.2.
  24924. " "$LINENO" 5
  24925. ;;
  24926. *-*-haiku*)
  24927. ARCH=haiku
  24928. ac_default_prefix=/boot/system
  24929. CheckDummyVideo
  24930. CheckOffscreenVideo
  24931. CheckDiskAudio
  24932. CheckDummyAudio
  24933. CheckDLOPEN
  24934. CheckO_CLOEXEC
  24935. CheckHaikuVideo
  24936. CheckHaikuGL
  24937. CheckPTHREAD
  24938. # Set up files for the audio library
  24939. if test x$enable_audio = xyes; then
  24940. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24941. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24942. SUMMARY_audio="${SUMMARY_audio} haiku"
  24943. have_audio=yes
  24944. fi
  24945. # Set up files for the joystick library
  24946. if test x$enable_joystick = xyes; then
  24947. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24948. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24949. have_joystick=yes
  24950. fi
  24951. # Set up files for the timer library
  24952. if test x$enable_timers = xyes; then
  24953. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24954. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24955. have_timers=yes
  24956. fi
  24957. # Set up files for the system power library
  24958. if test x$enable_power = xyes; then
  24959. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24960. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24961. have_power=yes
  24962. fi
  24963. # Set up files for the system filesystem library
  24964. if test x$enable_filesystem = xyes; then
  24965. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24966. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24967. have_filesystem=yes
  24968. fi
  24969. # Set up files for the misc library
  24970. if test x$enable_misc = xyes; then
  24971. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24972. have_misc=yes
  24973. fi
  24974. # Set up files for the locale library
  24975. if test x$enable_locale = xyes; then
  24976. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24977. have_locale=yes
  24978. fi
  24979. # The Haiku platform requires special setup.
  24980. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24981. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24982. ;;
  24983. *-ios-*)
  24984. ARCH=ios
  24985. CheckVisibilityHidden
  24986. CheckWerror
  24987. CheckNoErrorDeprecatedDeclarationsWerror
  24988. CheckDeclarationAfterStatement
  24989. CheckDummyVideo
  24990. CheckOffscreenVideo
  24991. CheckDiskAudio
  24992. CheckDummyAudio
  24993. CheckDLOPEN
  24994. CheckO_CLOEXEC
  24995. CheckMETAL
  24996. CheckVulkan
  24997. CheckPTHREAD
  24998. # Set up files for the misc library
  24999. if test x$enable_misc = xyes; then
  25000. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  25001. have_misc=yes
  25002. fi
  25003. # Set up files for the locale library
  25004. if test x$enable_locale = xyes; then
  25005. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25006. have_locale=yes
  25007. fi
  25008. # Set up files for the audio library
  25009. if test x$enable_audio = xyes; then
  25010. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25011. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25012. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25013. have_audio=yes
  25014. fi
  25015. # Set up files for the joystick library
  25016. if test x$enable_joystick = xyes; then
  25017. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25018. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25019. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25020. have_joystick=yes
  25021. else
  25022. # Need this code for accelerometer as joystick support
  25023. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25024. fi
  25025. # Set up files for the haptic library
  25026. #if test x$enable_haptic = xyes; then
  25027. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25028. # have_haptic=yes
  25029. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25030. #fi
  25031. # Set up files for the sensor library
  25032. if test x$enable_sensor = xyes; then
  25033. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25034. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25035. have_sensor=yes
  25036. fi
  25037. # Set up files for the power library
  25038. if test x$enable_power = xyes; then
  25039. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25040. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25041. have_power=yes
  25042. fi
  25043. # Set up files for the filesystem library
  25044. if test x$enable_filesystem = xyes; then
  25045. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25046. have_filesystem=yes
  25047. fi
  25048. # Set up additional files for the file library
  25049. if test x$enable_file = xyes; then
  25050. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25051. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25052. fi
  25053. # Set up files for the timer library
  25054. if test x$enable_timers = xyes; then
  25055. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25056. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25057. have_timers=yes
  25058. fi
  25059. # Set up other core UNIX files
  25060. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25061. # The iOS platform requires special setup.
  25062. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25063. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25064. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25065. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25066. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25067. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25068. SUMMARY_video="${SUMMARY_video} uikit"
  25069. have_video=yes
  25070. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25071. if test x$enable_system_iconv = xyes; then
  25072. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25073. fi
  25074. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25075. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25076. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25077. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25078. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25079. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25080. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25081. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25082. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25083. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25084. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25085. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25086. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25087. fi
  25088. ;;
  25089. *-*-darwin* )
  25090. # This could be either full "Mac OS X", or plain "Darwin" which is
  25091. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25092. # Next line is broken, and a few files below require Mac OS X (full)
  25093. ARCH=macosx
  25094. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25095. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25096. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25097. CheckObjectiveCARC
  25098. CheckVisibilityHidden
  25099. CheckWerror
  25100. CheckNoErrorDeprecatedDeclarationsWerror
  25101. CheckDeclarationAfterStatement
  25102. CheckDummyVideo
  25103. CheckOffscreenVideo
  25104. CheckDiskAudio
  25105. CheckDummyAudio
  25106. CheckDLOPEN
  25107. CheckO_CLOEXEC
  25108. CheckCOCOA
  25109. CheckMETAL
  25110. CheckX11
  25111. CheckMacGL
  25112. CheckMacGLES
  25113. CheckGLX
  25114. CheckOpenGL
  25115. CheckVulkan
  25116. CheckPTHREAD
  25117. CheckHIDAPI
  25118. # Set up files for the misc library
  25119. if test x$enable_misc = xyes; then
  25120. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25121. have_misc=yes
  25122. fi
  25123. # Set up files for the locale library
  25124. if test x$enable_locale = xyes; then
  25125. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25126. have_locale=yes
  25127. fi
  25128. # Set up files for the audio library
  25129. if test x$enable_audio = xyes; then
  25130. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25131. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25132. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25133. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25134. have_audio=yes
  25135. fi
  25136. # Set up files for the joystick library
  25137. if test x$enable_joystick = xyes; then
  25138. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25139. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25140. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25141. CheckJoystickMFI
  25142. have_joystick=yes
  25143. fi
  25144. # Set up files for the haptic library
  25145. if test x$enable_haptic = xyes; then
  25146. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25147. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25148. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25149. have_haptic=yes
  25150. fi
  25151. # Set up files for the power library
  25152. if test x$enable_power = xyes; then
  25153. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25154. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25155. have_power=yes
  25156. fi
  25157. # Set up files for the filesystem library
  25158. if test x$enable_filesystem = xyes; then
  25159. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25160. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25161. have_filesystem=yes
  25162. fi
  25163. # Set up files for the timer library
  25164. if test x$enable_timers = xyes; then
  25165. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25166. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25167. have_timers=yes
  25168. fi
  25169. # Set up additional files for the file library
  25170. if test x$enable_file = xyes; then
  25171. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25172. fi
  25173. # Set up other core UNIX files
  25174. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25175. # The Mac OS X platform requires special setup.
  25176. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25177. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25178. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25179. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25180. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25181. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25182. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25183. fi
  25184. ;;
  25185. *-nacl|*-pnacl)
  25186. ARCH=nacl
  25187. CheckNativeClient
  25188. CheckDummyAudio
  25189. CheckDummyVideo
  25190. CheckOffscreenVideo
  25191. CheckInputEvents
  25192. CheckPTHREAD
  25193. CheckO_CLOEXEC
  25194. # Set up files for the timer library
  25195. if test x$enable_timers = xyes; then
  25196. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25197. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25198. have_timers=yes
  25199. fi
  25200. if test x$enable_filesystem = xyes; then
  25201. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25202. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25203. have_filesystem=yes
  25204. fi
  25205. ;;
  25206. *-*-emscripten* )
  25207. if test x$enable_video = xyes; then
  25208. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25209. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25210. have_video=yes
  25211. SUMMARY_video="${SUMMARY_video} emscripten"
  25212. fi
  25213. if test x$enable_audio = xyes; then
  25214. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25215. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25216. have_audio=yes
  25217. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25218. fi
  25219. CheckVisibilityHidden
  25220. CheckWerror
  25221. CheckDeclarationAfterStatement
  25222. CheckDummyVideo
  25223. CheckOffscreenVideo
  25224. CheckDiskAudio
  25225. CheckDummyAudio
  25226. CheckPTHREAD
  25227. CheckDLOPEN
  25228. CheckClockGettime
  25229. CheckEmscriptenGLES
  25230. # Set up files for the misc library
  25231. if test x$enable_misc = xyes; then
  25232. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25233. have_misc=yes
  25234. fi
  25235. # Set up files for the power library
  25236. if test x$enable_power = xyes; then
  25237. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25238. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25239. have_power=yes
  25240. fi
  25241. # Set up files for the joystick library
  25242. if test x$enable_joystick = xyes; then
  25243. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25244. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25245. have_joystick=yes
  25246. fi
  25247. # Set up files for the filesystem library
  25248. if test x$enable_filesystem = xyes; then
  25249. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25250. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25251. have_filesystem=yes
  25252. fi
  25253. # Set up files for the timer library
  25254. if test x$enable_timers = xyes; then
  25255. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25256. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25257. have_timers=yes
  25258. fi
  25259. # Set up files for the locale library
  25260. if test x$enable_locale = xyes; then
  25261. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25262. have_locale=yes
  25263. fi
  25264. ;;
  25265. *-*-riscos*)
  25266. ARCH=riscos
  25267. CheckVisibilityHidden
  25268. CheckWerror
  25269. CheckDeclarationAfterStatement
  25270. CheckDummyVideo
  25271. CheckOffscreenVideo
  25272. CheckDiskAudio
  25273. CheckDummyAudio
  25274. CheckDLOPEN
  25275. CheckO_CLOEXEC
  25276. CheckOSS
  25277. CheckPTHREAD
  25278. CheckClockGettime
  25279. # Set up files for the misc library
  25280. if test x$enable_misc = xyes; then
  25281. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25282. have_misc=yes
  25283. fi
  25284. # Set up files for the video library
  25285. if test x$enable_video = xyes; then
  25286. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25287. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25288. have_video=yes
  25289. SUMMARY_video="${SUMMARY_video} riscos"
  25290. fi
  25291. # Set up files for the filesystem library
  25292. if test x$enable_filesystem = xyes; then
  25293. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25294. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25295. have_filesystem=yes
  25296. fi
  25297. # Set up files for the timer library
  25298. if test x$enable_timers = xyes; then
  25299. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25300. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25301. have_timers=yes
  25302. fi
  25303. ;;
  25304. *-*-os2*)
  25305. ARCH=os2
  25306. if test "$build" != "$host"; then # cross-compiling
  25307. # Default cross-compile location
  25308. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25309. else
  25310. # Look for the location of the tools and install there
  25311. if test "$BUILD_PREFIX" != ""; then
  25312. ac_default_prefix=$BUILD_PREFIX
  25313. fi
  25314. fi
  25315. enable_static=no # disable static builds
  25316. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25317. CheckOS2
  25318. CheckWerror
  25319. CheckDeclarationAfterStatement
  25320. CheckDummyVideo
  25321. CheckDiskAudio
  25322. CheckDummyAudio
  25323. CheckHIDAPI
  25324. # Set up the core platform files
  25325. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25326. if test x$enable_system_iconv = xyes; then
  25327. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25328. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25329. fi
  25330. fi
  25331. # Use the Unix locale APIs.
  25332. if test x$enable_locale = xyes; then
  25333. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25334. have_locale=yes
  25335. fi
  25336. # Set up files for the video library
  25337. if test x$enable_video = xyes; then
  25338. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25339. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25340. have_video=yes
  25341. SUMMARY_video="${SUMMARY_video} os/2"
  25342. fi
  25343. # Set up files for the audio library
  25344. if test x$enable_audio = xyes; then
  25345. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25346. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25347. have_audio=yes
  25348. SUMMARY_audio="${SUMMARY_audio} os/2"
  25349. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25350. fi
  25351. # Set up files for the thread library
  25352. if test x$enable_threads = xyes; then
  25353. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25354. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25355. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25356. have_threads=yes
  25357. fi
  25358. # Set up files for the timer library
  25359. if test x$enable_timers = xyes; then
  25360. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25361. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25362. have_timers=yes
  25363. fi
  25364. # Set up files for the shared object loading library
  25365. if test x$enable_loadso = xyes; then
  25366. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25367. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25368. have_loadso=yes
  25369. fi
  25370. # Set up files for the filesystem library
  25371. if test x$enable_filesystem = xyes; then
  25372. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25373. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25374. have_filesystem=yes
  25375. fi
  25376. # Set up files for the joystick library
  25377. if test x$enable_joystick = xyes; then
  25378. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25379. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25380. have_joystick=yes
  25381. fi
  25382. ;;
  25383. *)
  25384. as_fn_error $? "
  25385. *** Unsupported host: Please add to configure.ac
  25386. " "$LINENO" 5
  25387. ;;
  25388. esac
  25389. CheckVirtualJoystick
  25390. # Check whether to install sdl2-config
  25391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25392. printf %s "checking whether to install sdl2-config... " >&6; }
  25393. # Check whether --enable-sdl2-config was given.
  25394. if test ${enable_sdl2_config+y}
  25395. then :
  25396. enableval=$enable_sdl2_config; case "${enableval}" in
  25397. yes) enable_sdl2_config="TRUE" ;;
  25398. no) enable_sdl2_config="FALSE" ;;
  25399. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25400. esac
  25401. else $as_nop
  25402. enable_sdl2_config="TRUE"
  25403. fi
  25404. if test "$enable_sdl2_config" = "TRUE"; then
  25405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25406. printf "%s\n" "yes" >&6; }
  25407. else
  25408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25409. printf "%s\n" "no" >&6; }
  25410. fi
  25411. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25412. # Check whether --enable-vendor-info was given.
  25413. if test ${enable_vendor_info+y}
  25414. then :
  25415. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  25416. else $as_nop
  25417. enable_vendor_info=
  25418. fi
  25419. if test "$enable_vendor_info" = no
  25420. then :
  25421. enable_vendor_info=
  25422. fi
  25423. SDL_VENDOR_INFO=$enable_vendor_info
  25424. # Verify that we have all the platform specific files we need
  25425. if test x$have_audio != xyes; then
  25426. if test x$enable_audio = xyes; then
  25427. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25428. fi
  25429. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25430. fi
  25431. if test x$have_video != xyes; then
  25432. if test x$enable_video = xyes; then
  25433. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25434. fi
  25435. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25436. fi
  25437. if test x$have_misc != xyes; then
  25438. if test x$enable_misc = xyes; then
  25439. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25440. fi
  25441. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25442. fi
  25443. if test x$have_locale != xyes; then
  25444. if test x$enable_locale = xyes; then
  25445. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25446. fi
  25447. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25448. fi
  25449. if test x$have_joystick != xyes; then
  25450. if test x$enable_joystick = xyes; then
  25451. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25452. fi
  25453. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25454. fi
  25455. if test x$have_haptic != xyes; then
  25456. if test x$enable_haptic = xyes; then
  25457. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25458. fi
  25459. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25460. fi
  25461. if test x$have_sensor != xyes; then
  25462. if test x$enable_sensor = xyes; then
  25463. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25464. fi
  25465. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25466. fi
  25467. if test x$have_threads != xyes; then
  25468. if test x$enable_threads = xyes; then
  25469. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25470. fi
  25471. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25472. fi
  25473. if test x$have_timers != xyes; then
  25474. if test x$enable_timers = xyes; then
  25475. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25476. fi
  25477. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25478. fi
  25479. if test x$have_filesystem != xyes; then
  25480. if test x$enable_filesystem = xyes; then
  25481. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25482. fi
  25483. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25484. fi
  25485. if test x$have_loadso != xyes; then
  25486. if test x$enable_loadso = xyes; then
  25487. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25488. fi
  25489. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25490. fi
  25491. if test x$SDLMAIN_SOURCES = x; then
  25492. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25493. fi
  25494. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25495. if test x$video_wayland = xyes; then
  25496. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25497. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25498. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25499. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25500. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25501. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25502. echo ;\
  25503. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25504. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25505. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25506. echo ;\
  25507. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25508. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25509. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25510. echo ;\
  25511. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25512. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25513. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25514. done ;\
  25515. echo ;\
  25516. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25517. fi
  25518. OBJECTS=`echo $SOURCES`
  25519. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25520. for EXT in asm cc m c S; do
  25521. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25522. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25523. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25524. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25525. done
  25526. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25527. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25528. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25529. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25530. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25531. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25532. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25533. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25534. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25535. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25536. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25537. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25538. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25539. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25540. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25541. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25542. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25543. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25544. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25545. # Set runtime shared library paths as needed
  25546. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25547. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25548. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25550. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25551. have_enable_new_dtags=no
  25552. save_LDFLAGS="$LDFLAGS"
  25553. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25555. /* end confdefs.h. */
  25556. int
  25557. main (void)
  25558. {
  25559. ;
  25560. return 0;
  25561. }
  25562. _ACEOF
  25563. if ac_fn_c_try_link "$LINENO"
  25564. then :
  25565. have_enable_new_dtags=yes
  25566. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25567. fi
  25568. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25569. conftest$ac_exeext conftest.$ac_ext
  25570. LDFLAGS="$save_LDFLAGS"
  25571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25572. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25573. fi
  25574. if test $ARCH = solaris; then
  25575. SDL_RLD_FLAGS="-R\${libdir}"
  25576. fi
  25577. else
  25578. SDL_RLD_FLAGS=""
  25579. fi
  25580. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25581. pkg_cmakedir='$libdir/cmake/SDL2'
  25582. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25583. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25584. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25585. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25586. _lcl_receval="$_lcl_from"
  25587. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25588. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25589. _lcl_receval_old=''
  25590. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25591. _lcl_receval_old="$_lcl_receval"
  25592. eval _lcl_receval="\"$_lcl_receval\""
  25593. done
  25594. echo "$_lcl_receval")`
  25595. _lcl_receval="$_lcl_to"
  25596. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25597. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25598. _lcl_receval_old=''
  25599. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25600. _lcl_receval_old="$_lcl_receval"
  25601. eval _lcl_receval="\"$_lcl_receval\""
  25602. done
  25603. echo "$_lcl_receval")`
  25604. _lcl_notation="$_lcl_from$_lcl_to"
  25605. case ":$_lcl_from:" in
  25606. # change empty paths to '.'
  25607. ::) _lcl_from='.' ;;
  25608. # strip trailing slashes
  25609. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25610. :*:) ;;
  25611. esac
  25612. # squeeze repeated slashes
  25613. case '/' in
  25614. # if the path contains any backslashes, turn slashes into backslashes
  25615. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25616. # if the path contains slashes, also turn backslashes into slashes
  25617. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25618. esac
  25619. case ":$_lcl_to:" in
  25620. # change empty paths to '.'
  25621. ::) _lcl_to='.' ;;
  25622. # strip trailing slashes
  25623. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25624. :*:) ;;
  25625. esac
  25626. # squeeze repeated slashes
  25627. case '/' in
  25628. # if the path contains any backslashes, turn slashes into backslashes
  25629. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25630. # if the path contains slashes, also turn backslashes into slashes
  25631. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25632. esac
  25633. _lcl_common_prefix=''
  25634. _lcl_second_prefix_match=''
  25635. while test "$_lcl_second_prefix_match" != 0; do
  25636. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25637. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25638. if test "$_lcl_second_prefix_match" != 0; then
  25639. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25640. _lcl_common_prefix="$_lcl_first_prefix"
  25641. else
  25642. _lcl_second_prefix_match=0
  25643. fi
  25644. fi
  25645. done
  25646. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25647. _lcl_first_rel=''
  25648. _lcl_tmp='xxx'
  25649. while test "$_lcl_tmp" != ''; do
  25650. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25651. if test "$_lcl_first_suffix" != ''; then
  25652. _lcl_first_suffix="$_lcl_tmp"
  25653. _lcl_first_rel="../$_lcl_first_rel"
  25654. fi
  25655. done
  25656. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25657. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25658. case ":$_lcl_result_tmp:" in
  25659. # change empty paths to '.'
  25660. ::) _lcl_result_tmp='.' ;;
  25661. # strip trailing slashes
  25662. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25663. :*:) ;;
  25664. esac
  25665. # squeeze repeated slashes
  25666. case "$_lcl_notation" in
  25667. # if the path contains any backslashes, turn slashes into backslashes
  25668. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25669. # if the path contains slashes, also turn backslashes into slashes
  25670. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25671. esac
  25672. eval $_lcl_result_var='$_lcl_result_tmp'
  25673. done
  25674. if test x$enable_shared = xyes; then
  25675. PKGCONFIG_LIBS_PRIV="
  25676. Libs.private:"
  25677. ENABLE_SHARED_TRUE=
  25678. ENABLE_SHARED_FALSE="#"
  25679. else
  25680. PKGCONFIG_LIBS_PRIV=
  25681. ENABLE_SHARED_TRUE="#"
  25682. ENABLE_SHARED_FALSE=
  25683. fi
  25684. if test x$enable_static = xyes; then
  25685. ENABLE_STATIC_TRUE=
  25686. ENABLE_STATIC_FALSE="#"
  25687. else
  25688. ENABLE_STATIC_TRUE="#"
  25689. ENABLE_STATIC_FALSE=
  25690. fi
  25691. cat >Makefile.rules <<__EOF__
  25692. # Build rules for objects
  25693. -include \$(OBJECTS:.lo=.d)
  25694. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25695. $srcdir/src/SDL.c: update-revision
  25696. $DEPENDS
  25697. $VERSION_DEPENDS
  25698. $SDLMAIN_DEPENDS
  25699. $SDLTEST_DEPENDS
  25700. $WAYLAND_PROTOCOLS_DEPENDS
  25701. __EOF__
  25702. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25703. ac_config_commands="$ac_config_commands sdl2_config"
  25704. SUMMARY="SDL2 Configure Summary:\n"
  25705. if test x$enable_shared = xyes; then
  25706. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25707. fi
  25708. if test x$enable_static = xyes; then
  25709. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25710. fi
  25711. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25712. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25713. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25714. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25715. if test x$have_x = xyes; then
  25716. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25717. fi
  25718. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25719. if test x$have_joystick_virtual = xyes; then
  25720. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25721. else
  25722. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25723. fi
  25724. if test x$have_samplerate_h_hdr = xyes; then
  25725. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25726. else
  25727. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25728. fi
  25729. if test x$have_libudev_h_hdr = xyes; then
  25730. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25731. else
  25732. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25733. fi
  25734. if test x$have_dbus_dbus_h_hdr = xyes; then
  25735. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25736. else
  25737. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25738. fi
  25739. if test x$enable_ime = xyes; then
  25740. SUMMARY="${SUMMARY}Using ime : YES\n"
  25741. else
  25742. SUMMARY="${SUMMARY}Using ime : NO\n"
  25743. fi
  25744. if test x$have_ibus_ibus_h_hdr = xyes; then
  25745. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25746. else
  25747. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25748. fi
  25749. if test x$have_fcitx = xyes; then
  25750. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25751. else
  25752. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25753. fi
  25754. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25755. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25756. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25757. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25758. SUMMARY="${SUMMARY}configure script with:\n"
  25759. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25760. fi
  25761. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25762. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25763. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25764. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25765. SUMMARY="${SUMMARY}configure script with:\n"
  25766. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25767. fi
  25768. ac_config_commands="$ac_config_commands summary"
  25769. cat >confcache <<\_ACEOF
  25770. # This file is a shell script that caches the results of configure
  25771. # tests run on this system so they can be shared between configure
  25772. # scripts and configure runs, see configure's option --config-cache.
  25773. # It is not useful on other systems. If it contains results you don't
  25774. # want to keep, you may remove or edit it.
  25775. #
  25776. # config.status only pays attention to the cache file if you give it
  25777. # the --recheck option to rerun configure.
  25778. #
  25779. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25780. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25781. # following values.
  25782. _ACEOF
  25783. # The following way of writing the cache mishandles newlines in values,
  25784. # but we know of no workaround that is simple, portable, and efficient.
  25785. # So, we kill variables containing newlines.
  25786. # Ultrix sh set writes to stderr and can't be redirected directly,
  25787. # and sets the high bit in the cache file unless we assign to the vars.
  25788. (
  25789. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25790. eval ac_val=\$$ac_var
  25791. case $ac_val in #(
  25792. *${as_nl}*)
  25793. case $ac_var in #(
  25794. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25795. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25796. esac
  25797. case $ac_var in #(
  25798. _ | IFS | as_nl) ;; #(
  25799. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25800. *) { eval $ac_var=; unset $ac_var;} ;;
  25801. esac ;;
  25802. esac
  25803. done
  25804. (set) 2>&1 |
  25805. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25806. *${as_nl}ac_space=\ *)
  25807. # `set' does not quote correctly, so add quotes: double-quote
  25808. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25809. sed -n \
  25810. "s/'/'\\\\''/g;
  25811. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25812. ;; #(
  25813. *)
  25814. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25815. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25816. ;;
  25817. esac |
  25818. sort
  25819. ) |
  25820. sed '
  25821. /^ac_cv_env_/b end
  25822. t clear
  25823. :clear
  25824. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25825. t end
  25826. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25827. :end' >>confcache
  25828. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25829. if test -w "$cache_file"; then
  25830. if test "x$cache_file" != "x/dev/null"; then
  25831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25832. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25833. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25834. cat confcache >"$cache_file"
  25835. else
  25836. case $cache_file in #(
  25837. */* | ?:*)
  25838. mv -f confcache "$cache_file"$$ &&
  25839. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25840. *)
  25841. mv -f confcache "$cache_file" ;;
  25842. esac
  25843. fi
  25844. fi
  25845. else
  25846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25847. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25848. fi
  25849. fi
  25850. rm -f confcache
  25851. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25852. # Let make expand exec_prefix.
  25853. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25854. DEFS=-DHAVE_CONFIG_H
  25855. ac_libobjs=
  25856. ac_ltlibobjs=
  25857. U=
  25858. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25859. # 1. Remove the extension, and $U if already installed.
  25860. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25861. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25862. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25863. # will be set to the directory where LIBOBJS objects are built.
  25864. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25865. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25866. done
  25867. LIBOBJS=$ac_libobjs
  25868. LTLIBOBJS=$ac_ltlibobjs
  25869. : "${CONFIG_STATUS=./config.status}"
  25870. ac_write_fail=0
  25871. ac_clean_files_save=$ac_clean_files
  25872. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25874. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25875. as_write_fail=0
  25876. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25877. #! $SHELL
  25878. # Generated by $as_me.
  25879. # Run this file to recreate the current configuration.
  25880. # Compiler output produced by configure, useful for debugging
  25881. # configure, is in config.log if it exists.
  25882. debug=false
  25883. ac_cs_recheck=false
  25884. ac_cs_silent=false
  25885. SHELL=\${CONFIG_SHELL-$SHELL}
  25886. export SHELL
  25887. _ASEOF
  25888. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25889. ## -------------------- ##
  25890. ## M4sh Initialization. ##
  25891. ## -------------------- ##
  25892. # Be more Bourne compatible
  25893. DUALCASE=1; export DUALCASE # for MKS sh
  25894. as_nop=:
  25895. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25896. then :
  25897. emulate sh
  25898. NULLCMD=:
  25899. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25900. # is contrary to our usage. Disable this feature.
  25901. alias -g '${1+"$@"}'='"$@"'
  25902. setopt NO_GLOB_SUBST
  25903. else $as_nop
  25904. case `(set -o) 2>/dev/null` in #(
  25905. *posix*) :
  25906. set -o posix ;; #(
  25907. *) :
  25908. ;;
  25909. esac
  25910. fi
  25911. # Reset variables that may have inherited troublesome values from
  25912. # the environment.
  25913. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25914. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25915. # side effect of setting IFS to empty, thus disabling word splitting.)
  25916. # Quoting is to prevent editors from complaining about space-tab.
  25917. as_nl='
  25918. '
  25919. export as_nl
  25920. IFS=" "" $as_nl"
  25921. PS1='$ '
  25922. PS2='> '
  25923. PS4='+ '
  25924. # Ensure predictable behavior from utilities with locale-dependent output.
  25925. LC_ALL=C
  25926. export LC_ALL
  25927. LANGUAGE=C
  25928. export LANGUAGE
  25929. # We cannot yet rely on "unset" to work, but we need these variables
  25930. # to be unset--not just set to an empty or harmless value--now, to
  25931. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  25932. # also avoids known problems related to "unset" and subshell syntax
  25933. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  25934. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  25935. do eval test \${$as_var+y} \
  25936. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25937. done
  25938. # Ensure that fds 0, 1, and 2 are open.
  25939. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  25940. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  25941. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  25942. # The user is always right.
  25943. if ${PATH_SEPARATOR+false} :; then
  25944. PATH_SEPARATOR=:
  25945. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25946. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25947. PATH_SEPARATOR=';'
  25948. }
  25949. fi
  25950. # Find who we are. Look in the path if we contain no directory separator.
  25951. as_myself=
  25952. case $0 in #((
  25953. *[\\/]* ) as_myself=$0 ;;
  25954. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25955. for as_dir in $PATH
  25956. do
  25957. IFS=$as_save_IFS
  25958. case $as_dir in #(((
  25959. '') as_dir=./ ;;
  25960. */) ;;
  25961. *) as_dir=$as_dir/ ;;
  25962. esac
  25963. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  25964. done
  25965. IFS=$as_save_IFS
  25966. ;;
  25967. esac
  25968. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25969. # in which case we are not to be found in the path.
  25970. if test "x$as_myself" = x; then
  25971. as_myself=$0
  25972. fi
  25973. if test ! -f "$as_myself"; then
  25974. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25975. exit 1
  25976. fi
  25977. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25978. # ----------------------------------------
  25979. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25980. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25981. # script with STATUS, using 1 if that was 0.
  25982. as_fn_error ()
  25983. {
  25984. as_status=$1; test $as_status -eq 0 && as_status=1
  25985. if test "$4"; then
  25986. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25987. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25988. fi
  25989. printf "%s\n" "$as_me: error: $2" >&2
  25990. as_fn_exit $as_status
  25991. } # as_fn_error
  25992. # as_fn_set_status STATUS
  25993. # -----------------------
  25994. # Set $? to STATUS, without forking.
  25995. as_fn_set_status ()
  25996. {
  25997. return $1
  25998. } # as_fn_set_status
  25999. # as_fn_exit STATUS
  26000. # -----------------
  26001. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26002. as_fn_exit ()
  26003. {
  26004. set +e
  26005. as_fn_set_status $1
  26006. exit $1
  26007. } # as_fn_exit
  26008. # as_fn_unset VAR
  26009. # ---------------
  26010. # Portably unset VAR.
  26011. as_fn_unset ()
  26012. {
  26013. { eval $1=; unset $1;}
  26014. }
  26015. as_unset=as_fn_unset
  26016. # as_fn_append VAR VALUE
  26017. # ----------------------
  26018. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26019. # advantage of any shell optimizations that allow amortized linear growth over
  26020. # repeated appends, instead of the typical quadratic growth present in naive
  26021. # implementations.
  26022. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26023. then :
  26024. eval 'as_fn_append ()
  26025. {
  26026. eval $1+=\$2
  26027. }'
  26028. else $as_nop
  26029. as_fn_append ()
  26030. {
  26031. eval $1=\$$1\$2
  26032. }
  26033. fi # as_fn_append
  26034. # as_fn_arith ARG...
  26035. # ------------------
  26036. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26037. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26038. # must be portable across $(()) and expr.
  26039. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26040. then :
  26041. eval 'as_fn_arith ()
  26042. {
  26043. as_val=$(( $* ))
  26044. }'
  26045. else $as_nop
  26046. as_fn_arith ()
  26047. {
  26048. as_val=`expr "$@" || test $? -eq 1`
  26049. }
  26050. fi # as_fn_arith
  26051. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26052. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26053. as_expr=expr
  26054. else
  26055. as_expr=false
  26056. fi
  26057. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26058. as_basename=basename
  26059. else
  26060. as_basename=false
  26061. fi
  26062. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26063. as_dirname=dirname
  26064. else
  26065. as_dirname=false
  26066. fi
  26067. as_me=`$as_basename -- "$0" ||
  26068. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26069. X"$0" : 'X\(//\)$' \| \
  26070. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26071. printf "%s\n" X/"$0" |
  26072. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26073. s//\1/
  26074. q
  26075. }
  26076. /^X\/\(\/\/\)$/{
  26077. s//\1/
  26078. q
  26079. }
  26080. /^X\/\(\/\).*/{
  26081. s//\1/
  26082. q
  26083. }
  26084. s/.*/./; q'`
  26085. # Avoid depending upon Character Ranges.
  26086. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26087. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26088. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26089. as_cr_digits='0123456789'
  26090. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26091. # Determine whether it's possible to make 'echo' print without a newline.
  26092. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26093. # for compatibility with existing Makefiles.
  26094. ECHO_C= ECHO_N= ECHO_T=
  26095. case `echo -n x` in #(((((
  26096. -n*)
  26097. case `echo 'xy\c'` in
  26098. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26099. xy) ECHO_C='\c';;
  26100. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26101. ECHO_T=' ';;
  26102. esac;;
  26103. *)
  26104. ECHO_N='-n';;
  26105. esac
  26106. # For backward compatibility with old third-party macros, we provide
  26107. # the shell variables $as_echo and $as_echo_n. New code should use
  26108. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26109. as_echo='printf %s\n'
  26110. as_echo_n='printf %s'
  26111. rm -f conf$$ conf$$.exe conf$$.file
  26112. if test -d conf$$.dir; then
  26113. rm -f conf$$.dir/conf$$.file
  26114. else
  26115. rm -f conf$$.dir
  26116. mkdir conf$$.dir 2>/dev/null
  26117. fi
  26118. if (echo >conf$$.file) 2>/dev/null; then
  26119. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26120. as_ln_s='ln -s'
  26121. # ... but there are two gotchas:
  26122. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26123. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26124. # In both cases, we have to default to `cp -pR'.
  26125. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26126. as_ln_s='cp -pR'
  26127. elif ln conf$$.file conf$$ 2>/dev/null; then
  26128. as_ln_s=ln
  26129. else
  26130. as_ln_s='cp -pR'
  26131. fi
  26132. else
  26133. as_ln_s='cp -pR'
  26134. fi
  26135. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26136. rmdir conf$$.dir 2>/dev/null
  26137. # as_fn_mkdir_p
  26138. # -------------
  26139. # Create "$as_dir" as a directory, including parents if necessary.
  26140. as_fn_mkdir_p ()
  26141. {
  26142. case $as_dir in #(
  26143. -*) as_dir=./$as_dir;;
  26144. esac
  26145. test -d "$as_dir" || eval $as_mkdir_p || {
  26146. as_dirs=
  26147. while :; do
  26148. case $as_dir in #(
  26149. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26150. *) as_qdir=$as_dir;;
  26151. esac
  26152. as_dirs="'$as_qdir' $as_dirs"
  26153. as_dir=`$as_dirname -- "$as_dir" ||
  26154. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26155. X"$as_dir" : 'X\(//\)[^/]' \| \
  26156. X"$as_dir" : 'X\(//\)$' \| \
  26157. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26158. printf "%s\n" X"$as_dir" |
  26159. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26160. s//\1/
  26161. q
  26162. }
  26163. /^X\(\/\/\)[^/].*/{
  26164. s//\1/
  26165. q
  26166. }
  26167. /^X\(\/\/\)$/{
  26168. s//\1/
  26169. q
  26170. }
  26171. /^X\(\/\).*/{
  26172. s//\1/
  26173. q
  26174. }
  26175. s/.*/./; q'`
  26176. test -d "$as_dir" && break
  26177. done
  26178. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26179. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26180. } # as_fn_mkdir_p
  26181. if mkdir -p . 2>/dev/null; then
  26182. as_mkdir_p='mkdir -p "$as_dir"'
  26183. else
  26184. test -d ./-p && rmdir ./-p
  26185. as_mkdir_p=false
  26186. fi
  26187. # as_fn_executable_p FILE
  26188. # -----------------------
  26189. # Test if FILE is an executable regular file.
  26190. as_fn_executable_p ()
  26191. {
  26192. test -f "$1" && test -x "$1"
  26193. } # as_fn_executable_p
  26194. as_test_x='test -x'
  26195. as_executable_p=as_fn_executable_p
  26196. # Sed expression to map a string onto a valid CPP name.
  26197. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26198. # Sed expression to map a string onto a valid variable name.
  26199. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26200. exec 6>&1
  26201. ## ----------------------------------- ##
  26202. ## Main body of $CONFIG_STATUS script. ##
  26203. ## ----------------------------------- ##
  26204. _ASEOF
  26205. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26206. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26207. # Save the log message, to keep $0 and so on meaningful, and to
  26208. # report actual input values of CONFIG_FILES etc. instead of their
  26209. # values after options handling.
  26210. ac_log="
  26211. This file was extended by $as_me, which was
  26212. generated by GNU Autoconf 2.71. Invocation command line was
  26213. CONFIG_FILES = $CONFIG_FILES
  26214. CONFIG_HEADERS = $CONFIG_HEADERS
  26215. CONFIG_LINKS = $CONFIG_LINKS
  26216. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26217. $ $0 $@
  26218. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26219. "
  26220. _ACEOF
  26221. case $ac_config_files in *"
  26222. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26223. esac
  26224. case $ac_config_headers in *"
  26225. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26226. esac
  26227. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26228. # Files that config.status was made for.
  26229. config_files="$ac_config_files"
  26230. config_headers="$ac_config_headers"
  26231. config_commands="$ac_config_commands"
  26232. _ACEOF
  26233. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26234. ac_cs_usage="\
  26235. \`$as_me' instantiates files and other configuration actions
  26236. from templates according to the current configuration. Unless the files
  26237. and actions are specified as TAGs, all are instantiated by default.
  26238. Usage: $0 [OPTION]... [TAG]...
  26239. -h, --help print this help, then exit
  26240. -V, --version print version number and configuration settings, then exit
  26241. --config print configuration, then exit
  26242. -q, --quiet, --silent
  26243. do not print progress messages
  26244. -d, --debug don't remove temporary files
  26245. --recheck update $as_me by reconfiguring in the same conditions
  26246. --file=FILE[:TEMPLATE]
  26247. instantiate the configuration file FILE
  26248. --header=FILE[:TEMPLATE]
  26249. instantiate the configuration header FILE
  26250. Configuration files:
  26251. $config_files
  26252. Configuration headers:
  26253. $config_headers
  26254. Configuration commands:
  26255. $config_commands
  26256. Report bugs to the package provider."
  26257. _ACEOF
  26258. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26259. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26260. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26261. ac_cs_config='$ac_cs_config_escaped'
  26262. ac_cs_version="\\
  26263. config.status
  26264. configured by $0, generated by GNU Autoconf 2.71,
  26265. with options \\"\$ac_cs_config\\"
  26266. Copyright (C) 2021 Free Software Foundation, Inc.
  26267. This config.status script is free software; the Free Software Foundation
  26268. gives unlimited permission to copy, distribute and modify it."
  26269. ac_pwd='$ac_pwd'
  26270. srcdir='$srcdir'
  26271. INSTALL='$INSTALL'
  26272. AWK='$AWK'
  26273. test -n "\$AWK" || AWK=awk
  26274. _ACEOF
  26275. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26276. # The default lists apply if the user does not specify any file.
  26277. ac_need_defaults=:
  26278. while test $# != 0
  26279. do
  26280. case $1 in
  26281. --*=?*)
  26282. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26283. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26284. ac_shift=:
  26285. ;;
  26286. --*=)
  26287. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26288. ac_optarg=
  26289. ac_shift=:
  26290. ;;
  26291. *)
  26292. ac_option=$1
  26293. ac_optarg=$2
  26294. ac_shift=shift
  26295. ;;
  26296. esac
  26297. case $ac_option in
  26298. # Handling of the options.
  26299. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26300. ac_cs_recheck=: ;;
  26301. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26302. printf "%s\n" "$ac_cs_version"; exit ;;
  26303. --config | --confi | --conf | --con | --co | --c )
  26304. printf "%s\n" "$ac_cs_config"; exit ;;
  26305. --debug | --debu | --deb | --de | --d | -d )
  26306. debug=: ;;
  26307. --file | --fil | --fi | --f )
  26308. $ac_shift
  26309. case $ac_optarg in
  26310. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26311. '') as_fn_error $? "missing file argument" ;;
  26312. esac
  26313. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26314. ac_need_defaults=false;;
  26315. --header | --heade | --head | --hea )
  26316. $ac_shift
  26317. case $ac_optarg in
  26318. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26319. esac
  26320. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26321. ac_need_defaults=false;;
  26322. --he | --h)
  26323. # Conflict between --help and --header
  26324. as_fn_error $? "ambiguous option: \`$1'
  26325. Try \`$0 --help' for more information.";;
  26326. --help | --hel | -h )
  26327. printf "%s\n" "$ac_cs_usage"; exit ;;
  26328. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26329. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26330. ac_cs_silent=: ;;
  26331. # This is an error.
  26332. -*) as_fn_error $? "unrecognized option: \`$1'
  26333. Try \`$0 --help' for more information." ;;
  26334. *) as_fn_append ac_config_targets " $1"
  26335. ac_need_defaults=false ;;
  26336. esac
  26337. shift
  26338. done
  26339. ac_configure_extra_args=
  26340. if $ac_cs_silent; then
  26341. exec 6>/dev/null
  26342. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26343. fi
  26344. _ACEOF
  26345. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26346. if \$ac_cs_recheck; then
  26347. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26348. shift
  26349. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26350. CONFIG_SHELL='$SHELL'
  26351. export CONFIG_SHELL
  26352. exec "\$@"
  26353. fi
  26354. _ACEOF
  26355. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26356. exec 5>>config.log
  26357. {
  26358. echo
  26359. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26360. ## Running $as_me. ##
  26361. _ASBOX
  26362. printf "%s\n" "$ac_log"
  26363. } >&5
  26364. _ACEOF
  26365. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26366. #
  26367. # INIT-COMMANDS
  26368. #
  26369. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26370. # if CDPATH is set.
  26371. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26372. sed_quote_subst='$sed_quote_subst'
  26373. double_quote_subst='$double_quote_subst'
  26374. delay_variable_subst='$delay_variable_subst'
  26375. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26376. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26377. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26378. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26379. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26380. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26381. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26382. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26383. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26384. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26385. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26386. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26387. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26388. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26389. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26390. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26391. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26392. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26393. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26394. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26395. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26396. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26397. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26398. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26399. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26400. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26401. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26402. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26403. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26404. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26405. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26406. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26407. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26408. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26409. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26410. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26411. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26412. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26413. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26414. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26415. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26416. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26417. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26418. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26419. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26420. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26421. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26422. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26423. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26424. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26425. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26426. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26427. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26428. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26429. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26430. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26431. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26432. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26433. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26434. 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"`'
  26435. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26436. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26437. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26438. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26439. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26440. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26441. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26442. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26443. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26444. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26445. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26446. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26447. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26448. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26449. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26450. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26451. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26452. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26453. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26454. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26455. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26456. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26457. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26458. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26459. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26460. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26461. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26462. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26463. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26464. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26465. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26466. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26467. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26468. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26469. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26470. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26471. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26472. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26473. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26474. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26475. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26476. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26477. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26478. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26479. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26480. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26481. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26482. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26483. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26484. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26485. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26486. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26487. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26488. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26489. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26490. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26491. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26492. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26493. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26494. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26495. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26496. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26497. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26498. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26499. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26500. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26501. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26502. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26503. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26504. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26505. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26506. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26507. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26508. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26509. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26510. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26511. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26512. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26513. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26514. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26515. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26516. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26517. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26518. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26519. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26520. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26521. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26522. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26523. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26524. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26525. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26526. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26527. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26528. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26529. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26530. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26531. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26532. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26533. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26534. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26535. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26536. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26537. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26538. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26539. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26540. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26541. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26542. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26543. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26544. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26545. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26546. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26547. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26548. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26549. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26550. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26551. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26552. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26553. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26554. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26555. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26556. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26557. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26558. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26559. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26560. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26561. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26562. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26563. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26564. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26565. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26566. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26567. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26568. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26569. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26570. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26571. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26572. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26573. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26574. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26575. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26576. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26577. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26578. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26579. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26580. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26581. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26582. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26583. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26584. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26585. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26586. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26587. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26588. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26589. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26590. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26591. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26592. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26593. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26594. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26595. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26596. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26597. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26598. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26599. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26600. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26601. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26602. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26603. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26604. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26605. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26606. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26607. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26608. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26609. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26610. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26611. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26612. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26613. LTCC='$LTCC'
  26614. LTCFLAGS='$LTCFLAGS'
  26615. compiler='$compiler_DEFAULT'
  26616. # A function that is used when there is no print builtin or printf.
  26617. func_fallback_echo ()
  26618. {
  26619. eval 'cat <<_LTECHO_EOF
  26620. \$1
  26621. _LTECHO_EOF'
  26622. }
  26623. # Quote evaled strings.
  26624. for var in AS \
  26625. DLLTOOL \
  26626. OBJDUMP \
  26627. SHELL \
  26628. ECHO \
  26629. PATH_SEPARATOR \
  26630. SED \
  26631. GREP \
  26632. EGREP \
  26633. FGREP \
  26634. LD \
  26635. NM \
  26636. LN_S \
  26637. lt_SP2NL \
  26638. lt_NL2SP \
  26639. reload_flag \
  26640. deplibs_check_method \
  26641. file_magic_cmd \
  26642. file_magic_glob \
  26643. want_nocaseglob \
  26644. sharedlib_from_linklib_cmd \
  26645. AR \
  26646. AR_FLAGS \
  26647. archiver_list_spec \
  26648. STRIP \
  26649. RANLIB \
  26650. CC \
  26651. CFLAGS \
  26652. compiler \
  26653. lt_cv_sys_global_symbol_pipe \
  26654. lt_cv_sys_global_symbol_to_cdecl \
  26655. lt_cv_sys_global_symbol_to_import \
  26656. lt_cv_sys_global_symbol_to_c_name_address \
  26657. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26658. lt_cv_nm_interface \
  26659. nm_file_list_spec \
  26660. lt_cv_truncate_bin \
  26661. lt_prog_compiler_no_builtin_flag \
  26662. lt_prog_compiler_pic \
  26663. lt_prog_compiler_wl \
  26664. lt_prog_compiler_static \
  26665. lt_cv_prog_compiler_c_o \
  26666. need_locks \
  26667. MANIFEST_TOOL \
  26668. DSYMUTIL \
  26669. NMEDIT \
  26670. LIPO \
  26671. OTOOL \
  26672. OTOOL64 \
  26673. shrext_cmds \
  26674. export_dynamic_flag_spec \
  26675. whole_archive_flag_spec \
  26676. compiler_needs_object \
  26677. with_gnu_ld \
  26678. allow_undefined_flag \
  26679. no_undefined_flag \
  26680. hardcode_libdir_flag_spec \
  26681. hardcode_libdir_separator \
  26682. exclude_expsyms \
  26683. include_expsyms \
  26684. file_list_spec \
  26685. variables_saved_for_relink \
  26686. libname_spec \
  26687. library_names_spec \
  26688. soname_spec \
  26689. install_override_mode \
  26690. finish_eval \
  26691. old_striplib \
  26692. striplib \
  26693. compiler_lib_search_dirs \
  26694. predep_objects \
  26695. postdep_objects \
  26696. predeps \
  26697. postdeps \
  26698. compiler_lib_search_path \
  26699. LD_RC \
  26700. LD_CXX \
  26701. reload_flag_RC \
  26702. reload_flag_CXX \
  26703. compiler_RC \
  26704. compiler_CXX \
  26705. lt_prog_compiler_no_builtin_flag_RC \
  26706. lt_prog_compiler_no_builtin_flag_CXX \
  26707. lt_prog_compiler_pic_RC \
  26708. lt_prog_compiler_pic_CXX \
  26709. lt_prog_compiler_wl_RC \
  26710. lt_prog_compiler_wl_CXX \
  26711. lt_prog_compiler_static_RC \
  26712. lt_prog_compiler_static_CXX \
  26713. lt_cv_prog_compiler_c_o_RC \
  26714. lt_cv_prog_compiler_c_o_CXX \
  26715. export_dynamic_flag_spec_RC \
  26716. export_dynamic_flag_spec_CXX \
  26717. whole_archive_flag_spec_RC \
  26718. whole_archive_flag_spec_CXX \
  26719. compiler_needs_object_RC \
  26720. compiler_needs_object_CXX \
  26721. with_gnu_ld_RC \
  26722. with_gnu_ld_CXX \
  26723. allow_undefined_flag_RC \
  26724. allow_undefined_flag_CXX \
  26725. no_undefined_flag_RC \
  26726. no_undefined_flag_CXX \
  26727. hardcode_libdir_flag_spec_RC \
  26728. hardcode_libdir_flag_spec_CXX \
  26729. hardcode_libdir_separator_RC \
  26730. hardcode_libdir_separator_CXX \
  26731. exclude_expsyms_RC \
  26732. exclude_expsyms_CXX \
  26733. include_expsyms_RC \
  26734. include_expsyms_CXX \
  26735. file_list_spec_RC \
  26736. file_list_spec_CXX \
  26737. compiler_lib_search_dirs_RC \
  26738. compiler_lib_search_dirs_CXX \
  26739. predep_objects_RC \
  26740. predep_objects_CXX \
  26741. postdep_objects_RC \
  26742. postdep_objects_CXX \
  26743. predeps_RC \
  26744. predeps_CXX \
  26745. postdeps_RC \
  26746. postdeps_CXX \
  26747. compiler_lib_search_path_RC \
  26748. compiler_lib_search_path_CXX; do
  26749. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26750. *[\\\\\\\`\\"\\\$]*)
  26751. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26752. ;;
  26753. *)
  26754. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26755. ;;
  26756. esac
  26757. done
  26758. # Double-quote double-evaled strings.
  26759. for var in reload_cmds \
  26760. old_postinstall_cmds \
  26761. old_postuninstall_cmds \
  26762. old_archive_cmds \
  26763. extract_expsyms_cmds \
  26764. old_archive_from_new_cmds \
  26765. old_archive_from_expsyms_cmds \
  26766. archive_cmds \
  26767. archive_expsym_cmds \
  26768. module_cmds \
  26769. module_expsym_cmds \
  26770. export_symbols_cmds \
  26771. prelink_cmds \
  26772. postlink_cmds \
  26773. postinstall_cmds \
  26774. postuninstall_cmds \
  26775. finish_cmds \
  26776. sys_lib_search_path_spec \
  26777. configure_time_dlsearch_path \
  26778. configure_time_lt_sys_library_path \
  26779. reload_cmds_RC \
  26780. reload_cmds_CXX \
  26781. old_archive_cmds_RC \
  26782. old_archive_cmds_CXX \
  26783. old_archive_from_new_cmds_RC \
  26784. old_archive_from_new_cmds_CXX \
  26785. old_archive_from_expsyms_cmds_RC \
  26786. old_archive_from_expsyms_cmds_CXX \
  26787. archive_cmds_RC \
  26788. archive_cmds_CXX \
  26789. archive_expsym_cmds_RC \
  26790. archive_expsym_cmds_CXX \
  26791. module_cmds_RC \
  26792. module_cmds_CXX \
  26793. module_expsym_cmds_RC \
  26794. module_expsym_cmds_CXX \
  26795. export_symbols_cmds_RC \
  26796. export_symbols_cmds_CXX \
  26797. prelink_cmds_RC \
  26798. prelink_cmds_CXX \
  26799. postlink_cmds_RC \
  26800. postlink_cmds_CXX; do
  26801. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26802. *[\\\\\\\`\\"\\\$]*)
  26803. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26804. ;;
  26805. *)
  26806. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26807. ;;
  26808. esac
  26809. done
  26810. ac_aux_dir='$ac_aux_dir'
  26811. # See if we are running on zsh, and set the options that allow our
  26812. # commands through without removal of \ escapes INIT.
  26813. if test -n "\${ZSH_VERSION+set}"; then
  26814. setopt NO_GLOB_SUBST
  26815. fi
  26816. PACKAGE='$PACKAGE'
  26817. VERSION='$VERSION'
  26818. RM='$RM'
  26819. ofile='$ofile'
  26820. SUMMARY="$SUMMARY"
  26821. _ACEOF
  26822. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26823. # Handling of arguments.
  26824. for ac_config_target in $ac_config_targets
  26825. do
  26826. case $ac_config_target in
  26827. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26828. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26829. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26830. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26831. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26832. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26833. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26834. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26835. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26836. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26837. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26838. esac
  26839. done
  26840. # If the user did not use the arguments to specify the items to instantiate,
  26841. # then the envvar interface is used. Set only those that are not.
  26842. # We use the long form for the default assignment because of an extremely
  26843. # bizarre bug on SunOS 4.1.3.
  26844. if $ac_need_defaults; then
  26845. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26846. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26847. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26848. fi
  26849. # Have a temporary directory for convenience. Make it in the build tree
  26850. # simply because there is no reason against having it here, and in addition,
  26851. # creating and moving files from /tmp can sometimes cause problems.
  26852. # Hook for its removal unless debugging.
  26853. # Note that there is a small window in which the directory will not be cleaned:
  26854. # after its creation but before its name has been assigned to `$tmp'.
  26855. $debug ||
  26856. {
  26857. tmp= ac_tmp=
  26858. trap 'exit_status=$?
  26859. : "${ac_tmp:=$tmp}"
  26860. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26861. ' 0
  26862. trap 'as_fn_exit 1' 1 2 13 15
  26863. }
  26864. # Create a (secure) tmp directory for tmp files.
  26865. {
  26866. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26867. test -d "$tmp"
  26868. } ||
  26869. {
  26870. tmp=./conf$$-$RANDOM
  26871. (umask 077 && mkdir "$tmp")
  26872. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26873. ac_tmp=$tmp
  26874. # Set up the scripts for CONFIG_FILES section.
  26875. # No need to generate them if there are no CONFIG_FILES.
  26876. # This happens for instance with `./config.status config.h'.
  26877. if test -n "$CONFIG_FILES"; then
  26878. ac_cr=`echo X | tr X '\015'`
  26879. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26880. # But we know of no other shell where ac_cr would be empty at this
  26881. # point, so we can use a bashism as a fallback.
  26882. if test "x$ac_cr" = x; then
  26883. eval ac_cr=\$\'\\r\'
  26884. fi
  26885. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26886. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26887. ac_cs_awk_cr='\\r'
  26888. else
  26889. ac_cs_awk_cr=$ac_cr
  26890. fi
  26891. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26892. _ACEOF
  26893. {
  26894. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26895. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26896. echo "_ACEOF"
  26897. } >conf$$subs.sh ||
  26898. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26899. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26900. ac_delim='%!_!# '
  26901. for ac_last_try in false false false false false :; do
  26902. . ./conf$$subs.sh ||
  26903. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26904. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26905. if test $ac_delim_n = $ac_delim_num; then
  26906. break
  26907. elif $ac_last_try; then
  26908. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26909. else
  26910. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26911. fi
  26912. done
  26913. rm -f conf$$subs.sh
  26914. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26915. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26916. _ACEOF
  26917. sed -n '
  26918. h
  26919. s/^/S["/; s/!.*/"]=/
  26920. p
  26921. g
  26922. s/^[^!]*!//
  26923. :repl
  26924. t repl
  26925. s/'"$ac_delim"'$//
  26926. t delim
  26927. :nl
  26928. h
  26929. s/\(.\{148\}\)..*/\1/
  26930. t more1
  26931. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26932. p
  26933. n
  26934. b repl
  26935. :more1
  26936. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26937. p
  26938. g
  26939. s/.\{148\}//
  26940. t nl
  26941. :delim
  26942. h
  26943. s/\(.\{148\}\)..*/\1/
  26944. t more2
  26945. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26946. p
  26947. b
  26948. :more2
  26949. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26950. p
  26951. g
  26952. s/.\{148\}//
  26953. t delim
  26954. ' <conf$$subs.awk | sed '
  26955. /^[^""]/{
  26956. N
  26957. s/\n//
  26958. }
  26959. ' >>$CONFIG_STATUS || ac_write_fail=1
  26960. rm -f conf$$subs.awk
  26961. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26962. _ACAWK
  26963. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26964. for (key in S) S_is_set[key] = 1
  26965. FS = ""
  26966. }
  26967. {
  26968. line = $ 0
  26969. nfields = split(line, field, "@")
  26970. substed = 0
  26971. len = length(field[1])
  26972. for (i = 2; i < nfields; i++) {
  26973. key = field[i]
  26974. keylen = length(key)
  26975. if (S_is_set[key]) {
  26976. value = S[key]
  26977. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26978. len += length(value) + length(field[++i])
  26979. substed = 1
  26980. } else
  26981. len += 1 + keylen
  26982. }
  26983. print line
  26984. }
  26985. _ACAWK
  26986. _ACEOF
  26987. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26988. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26989. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26990. else
  26991. cat
  26992. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26993. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26994. _ACEOF
  26995. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26996. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26997. # trailing colons and then remove the whole line if VPATH becomes empty
  26998. # (actually we leave an empty line to preserve line numbers).
  26999. if test "x$srcdir" = x.; then
  27000. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27001. h
  27002. s///
  27003. s/^/:/
  27004. s/[ ]*$/:/
  27005. s/:\$(srcdir):/:/g
  27006. s/:\${srcdir}:/:/g
  27007. s/:@srcdir@:/:/g
  27008. s/^:*//
  27009. s/:*$//
  27010. x
  27011. s/\(=[ ]*\).*/\1/
  27012. G
  27013. s/\n//
  27014. s/^[^=]*=[ ]*$//
  27015. }'
  27016. fi
  27017. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27018. fi # test -n "$CONFIG_FILES"
  27019. # Set up the scripts for CONFIG_HEADERS section.
  27020. # No need to generate them if there are no CONFIG_HEADERS.
  27021. # This happens for instance with `./config.status Makefile'.
  27022. if test -n "$CONFIG_HEADERS"; then
  27023. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27024. BEGIN {
  27025. _ACEOF
  27026. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27027. # here-document in config.status, that substitutes the proper values into
  27028. # config.h.in to produce config.h.
  27029. # Create a delimiter string that does not exist in confdefs.h, to ease
  27030. # handling of long lines.
  27031. ac_delim='%!_!# '
  27032. for ac_last_try in false false :; do
  27033. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27034. if test -z "$ac_tt"; then
  27035. break
  27036. elif $ac_last_try; then
  27037. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27038. else
  27039. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27040. fi
  27041. done
  27042. # For the awk script, D is an array of macro values keyed by name,
  27043. # likewise P contains macro parameters if any. Preserve backslash
  27044. # newline sequences.
  27045. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27046. sed -n '
  27047. s/.\{148\}/&'"$ac_delim"'/g
  27048. t rset
  27049. :rset
  27050. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27051. t def
  27052. d
  27053. :def
  27054. s/\\$//
  27055. t bsnl
  27056. s/["\\]/\\&/g
  27057. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27058. D["\1"]=" \3"/p
  27059. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27060. d
  27061. :bsnl
  27062. s/["\\]/\\&/g
  27063. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27064. D["\1"]=" \3\\\\\\n"\\/p
  27065. t cont
  27066. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27067. t cont
  27068. d
  27069. :cont
  27070. n
  27071. s/.\{148\}/&'"$ac_delim"'/g
  27072. t clear
  27073. :clear
  27074. s/\\$//
  27075. t bsnlc
  27076. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27077. d
  27078. :bsnlc
  27079. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27080. b cont
  27081. ' <confdefs.h | sed '
  27082. s/'"$ac_delim"'/"\\\
  27083. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27084. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27085. for (key in D) D_is_set[key] = 1
  27086. FS = ""
  27087. }
  27088. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27089. line = \$ 0
  27090. split(line, arg, " ")
  27091. if (arg[1] == "#") {
  27092. defundef = arg[2]
  27093. mac1 = arg[3]
  27094. } else {
  27095. defundef = substr(arg[1], 2)
  27096. mac1 = arg[2]
  27097. }
  27098. split(mac1, mac2, "(") #)
  27099. macro = mac2[1]
  27100. prefix = substr(line, 1, index(line, defundef) - 1)
  27101. if (D_is_set[macro]) {
  27102. # Preserve the white space surrounding the "#".
  27103. print prefix "define", macro P[macro] D[macro]
  27104. next
  27105. } else {
  27106. # Replace #undef with comments. This is necessary, for example,
  27107. # in the case of _POSIX_SOURCE, which is predefined and required
  27108. # on some systems where configure will not decide to define it.
  27109. if (defundef == "undef") {
  27110. print "/*", prefix defundef, macro, "*/"
  27111. next
  27112. }
  27113. }
  27114. }
  27115. { print }
  27116. _ACAWK
  27117. _ACEOF
  27118. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27119. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27120. fi # test -n "$CONFIG_HEADERS"
  27121. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27122. shift
  27123. for ac_tag
  27124. do
  27125. case $ac_tag in
  27126. :[FHLC]) ac_mode=$ac_tag; continue;;
  27127. esac
  27128. case $ac_mode$ac_tag in
  27129. :[FHL]*:*);;
  27130. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27131. :[FH]-) ac_tag=-:-;;
  27132. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27133. esac
  27134. ac_save_IFS=$IFS
  27135. IFS=:
  27136. set x $ac_tag
  27137. IFS=$ac_save_IFS
  27138. shift
  27139. ac_file=$1
  27140. shift
  27141. case $ac_mode in
  27142. :L) ac_source=$1;;
  27143. :[FH])
  27144. ac_file_inputs=
  27145. for ac_f
  27146. do
  27147. case $ac_f in
  27148. -) ac_f="$ac_tmp/stdin";;
  27149. *) # Look for the file first in the build tree, then in the source tree
  27150. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27151. # because $ac_f cannot contain `:'.
  27152. test -f "$ac_f" ||
  27153. case $ac_f in
  27154. [\\/$]*) false;;
  27155. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27156. esac ||
  27157. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27158. esac
  27159. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27160. as_fn_append ac_file_inputs " '$ac_f'"
  27161. done
  27162. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27163. # use $as_me), people would be surprised to read:
  27164. # /* config.h. Generated by config.status. */
  27165. configure_input='Generated from '`
  27166. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27167. `' by configure.'
  27168. if test x"$ac_file" != x-; then
  27169. configure_input="$ac_file. $configure_input"
  27170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27171. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27172. fi
  27173. # Neutralize special characters interpreted by sed in replacement strings.
  27174. case $configure_input in #(
  27175. *\&* | *\|* | *\\* )
  27176. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27177. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27178. *) ac_sed_conf_input=$configure_input;;
  27179. esac
  27180. case $ac_tag in
  27181. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27182. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27183. esac
  27184. ;;
  27185. esac
  27186. ac_dir=`$as_dirname -- "$ac_file" ||
  27187. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27188. X"$ac_file" : 'X\(//\)[^/]' \| \
  27189. X"$ac_file" : 'X\(//\)$' \| \
  27190. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27191. printf "%s\n" X"$ac_file" |
  27192. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27193. s//\1/
  27194. q
  27195. }
  27196. /^X\(\/\/\)[^/].*/{
  27197. s//\1/
  27198. q
  27199. }
  27200. /^X\(\/\/\)$/{
  27201. s//\1/
  27202. q
  27203. }
  27204. /^X\(\/\).*/{
  27205. s//\1/
  27206. q
  27207. }
  27208. s/.*/./; q'`
  27209. as_dir="$ac_dir"; as_fn_mkdir_p
  27210. ac_builddir=.
  27211. case "$ac_dir" in
  27212. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27213. *)
  27214. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27215. # A ".." for each directory in $ac_dir_suffix.
  27216. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27217. case $ac_top_builddir_sub in
  27218. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27219. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27220. esac ;;
  27221. esac
  27222. ac_abs_top_builddir=$ac_pwd
  27223. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27224. # for backward compatibility:
  27225. ac_top_builddir=$ac_top_build_prefix
  27226. case $srcdir in
  27227. .) # We are building in place.
  27228. ac_srcdir=.
  27229. ac_top_srcdir=$ac_top_builddir_sub
  27230. ac_abs_top_srcdir=$ac_pwd ;;
  27231. [\\/]* | ?:[\\/]* ) # Absolute name.
  27232. ac_srcdir=$srcdir$ac_dir_suffix;
  27233. ac_top_srcdir=$srcdir
  27234. ac_abs_top_srcdir=$srcdir ;;
  27235. *) # Relative name.
  27236. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27237. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27238. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27239. esac
  27240. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27241. case $ac_mode in
  27242. :F)
  27243. #
  27244. # CONFIG_FILE
  27245. #
  27246. case $INSTALL in
  27247. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27248. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27249. esac
  27250. _ACEOF
  27251. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27252. # If the template does not know about datarootdir, expand it.
  27253. # FIXME: This hack should be removed a few years after 2.60.
  27254. ac_datarootdir_hack=; ac_datarootdir_seen=
  27255. ac_sed_dataroot='
  27256. /datarootdir/ {
  27257. p
  27258. q
  27259. }
  27260. /@datadir@/p
  27261. /@docdir@/p
  27262. /@infodir@/p
  27263. /@localedir@/p
  27264. /@mandir@/p'
  27265. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27266. *datarootdir*) ac_datarootdir_seen=yes;;
  27267. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27269. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27270. _ACEOF
  27271. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27272. ac_datarootdir_hack='
  27273. s&@datadir@&$datadir&g
  27274. s&@docdir@&$docdir&g
  27275. s&@infodir@&$infodir&g
  27276. s&@localedir@&$localedir&g
  27277. s&@mandir@&$mandir&g
  27278. s&\\\${datarootdir}&$datarootdir&g' ;;
  27279. esac
  27280. _ACEOF
  27281. # Neutralize VPATH when `$srcdir' = `.'.
  27282. # Shell code in configure.ac might set extrasub.
  27283. # FIXME: do we really want to maintain this feature?
  27284. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27285. ac_sed_extra="$ac_vpsub
  27286. $extrasub
  27287. _ACEOF
  27288. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27289. :t
  27290. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27291. s|@configure_input@|$ac_sed_conf_input|;t t
  27292. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27293. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27294. s&@srcdir@&$ac_srcdir&;t t
  27295. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27296. s&@top_srcdir@&$ac_top_srcdir&;t t
  27297. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27298. s&@builddir@&$ac_builddir&;t t
  27299. s&@abs_builddir@&$ac_abs_builddir&;t t
  27300. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27301. s&@INSTALL@&$ac_INSTALL&;t t
  27302. $ac_datarootdir_hack
  27303. "
  27304. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27305. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27306. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27307. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27308. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27309. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27311. which seems to be undefined. Please make sure it is defined" >&5
  27312. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27313. which seems to be undefined. Please make sure it is defined" >&2;}
  27314. rm -f "$ac_tmp/stdin"
  27315. case $ac_file in
  27316. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27317. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27318. esac \
  27319. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27320. ;;
  27321. :H)
  27322. #
  27323. # CONFIG_HEADER
  27324. #
  27325. if test x"$ac_file" != x-; then
  27326. {
  27327. printf "%s\n" "/* $configure_input */" >&1 \
  27328. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27329. } >"$ac_tmp/config.h" \
  27330. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27331. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27333. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27334. else
  27335. rm -f "$ac_file"
  27336. mv "$ac_tmp/config.h" "$ac_file" \
  27337. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27338. fi
  27339. else
  27340. printf "%s\n" "/* $configure_input */" >&1 \
  27341. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27342. || as_fn_error $? "could not create -" "$LINENO" 5
  27343. fi
  27344. ;;
  27345. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27346. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27347. ;;
  27348. esac
  27349. case $ac_file$ac_mode in
  27350. "libtool":C)
  27351. # See if we are running on zsh, and set the options that allow our
  27352. # commands through without removal of \ escapes.
  27353. if test -n "${ZSH_VERSION+set}"; then
  27354. setopt NO_GLOB_SUBST
  27355. fi
  27356. cfgfile=${ofile}T
  27357. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27358. $RM "$cfgfile"
  27359. cat <<_LT_EOF >> "$cfgfile"
  27360. #! $SHELL
  27361. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27362. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27363. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27364. # Provide generalized library-building support services.
  27365. # Written by Gordon Matzigkeit, 1996
  27366. # Copyright (C) 2014 Free Software Foundation, Inc.
  27367. # This is free software; see the source for copying conditions. There is NO
  27368. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27369. # GNU Libtool is free software; you can redistribute it and/or modify
  27370. # it under the terms of the GNU General Public License as published by
  27371. # the Free Software Foundation; either version 2 of of the License, or
  27372. # (at your option) any later version.
  27373. #
  27374. # As a special exception to the GNU General Public License, if you
  27375. # distribute this file as part of a program or library that is built
  27376. # using GNU Libtool, you may include this file under the same
  27377. # distribution terms that you use for the rest of that program.
  27378. #
  27379. # GNU Libtool is distributed in the hope that it will be useful, but
  27380. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27381. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27382. # GNU General Public License for more details.
  27383. #
  27384. # You should have received a copy of the GNU General Public License
  27385. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27386. # The names of the tagged configurations supported by this script.
  27387. available_tags='RC CXX '
  27388. # Configured defaults for sys_lib_dlsearch_path munging.
  27389. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27390. # ### BEGIN LIBTOOL CONFIG
  27391. # Which release of libtool.m4 was used?
  27392. macro_version=$macro_version
  27393. macro_revision=$macro_revision
  27394. # Assembler program.
  27395. AS=$lt_AS
  27396. # DLL creation program.
  27397. DLLTOOL=$lt_DLLTOOL
  27398. # Object dumper program.
  27399. OBJDUMP=$lt_OBJDUMP
  27400. # Whether or not to build shared libraries.
  27401. build_libtool_libs=$enable_shared
  27402. # Whether or not to build static libraries.
  27403. build_old_libs=$enable_static
  27404. # What type of objects to build.
  27405. pic_mode=$pic_mode
  27406. # Whether or not to optimize for fast installation.
  27407. fast_install=$enable_fast_install
  27408. # Shared archive member basename,for filename based shared library versioning on AIX.
  27409. shared_archive_member_spec=$shared_archive_member_spec
  27410. # Shell to use when invoking shell scripts.
  27411. SHELL=$lt_SHELL
  27412. # An echo program that protects backslashes.
  27413. ECHO=$lt_ECHO
  27414. # The PATH separator for the build system.
  27415. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27416. # The host system.
  27417. host_alias=$host_alias
  27418. host=$host
  27419. host_os=$host_os
  27420. # The build system.
  27421. build_alias=$build_alias
  27422. build=$build
  27423. build_os=$build_os
  27424. # A sed program that does not truncate output.
  27425. SED=$lt_SED
  27426. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27427. Xsed="\$SED -e 1s/^X//"
  27428. # A grep program that handles long lines.
  27429. GREP=$lt_GREP
  27430. # An ERE matcher.
  27431. EGREP=$lt_EGREP
  27432. # A literal string matcher.
  27433. FGREP=$lt_FGREP
  27434. # A BSD- or MS-compatible name lister.
  27435. NM=$lt_NM
  27436. # Whether we need soft or hard links.
  27437. LN_S=$lt_LN_S
  27438. # What is the maximum length of a command?
  27439. max_cmd_len=$max_cmd_len
  27440. # Object file suffix (normally "o").
  27441. objext=$ac_objext
  27442. # Executable file suffix (normally "").
  27443. exeext=$exeext
  27444. # whether the shell understands "unset".
  27445. lt_unset=$lt_unset
  27446. # turn spaces into newlines.
  27447. SP2NL=$lt_lt_SP2NL
  27448. # turn newlines into spaces.
  27449. NL2SP=$lt_lt_NL2SP
  27450. # convert \$build file names to \$host format.
  27451. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27452. # convert \$build files to toolchain format.
  27453. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27454. # Method to check whether dependent libraries are shared objects.
  27455. deplibs_check_method=$lt_deplibs_check_method
  27456. # Command to use when deplibs_check_method = "file_magic".
  27457. file_magic_cmd=$lt_file_magic_cmd
  27458. # How to find potential files when deplibs_check_method = "file_magic".
  27459. file_magic_glob=$lt_file_magic_glob
  27460. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27461. want_nocaseglob=$lt_want_nocaseglob
  27462. # Command to associate shared and link libraries.
  27463. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27464. # The archiver.
  27465. AR=$lt_AR
  27466. # Flags to create an archive.
  27467. AR_FLAGS=$lt_AR_FLAGS
  27468. # How to feed a file listing to the archiver.
  27469. archiver_list_spec=$lt_archiver_list_spec
  27470. # A symbol stripping program.
  27471. STRIP=$lt_STRIP
  27472. # Commands used to install an old-style archive.
  27473. RANLIB=$lt_RANLIB
  27474. old_postinstall_cmds=$lt_old_postinstall_cmds
  27475. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27476. # Whether to use a lock for old archive extraction.
  27477. lock_old_archive_extraction=$lock_old_archive_extraction
  27478. # A C compiler.
  27479. LTCC=$lt_CC
  27480. # LTCC compiler flags.
  27481. LTCFLAGS=$lt_CFLAGS
  27482. # Take the output of nm and produce a listing of raw symbols and C names.
  27483. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27484. # Transform the output of nm in a proper C declaration.
  27485. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27486. # Transform the output of nm into a list of symbols to manually relocate.
  27487. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27488. # Transform the output of nm in a C name address pair.
  27489. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27490. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27491. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27492. # The name lister interface.
  27493. nm_interface=$lt_lt_cv_nm_interface
  27494. # Specify filename containing input files for \$NM.
  27495. nm_file_list_spec=$lt_nm_file_list_spec
  27496. # The root where to search for dependent libraries,and where our libraries should be installed.
  27497. lt_sysroot=$lt_sysroot
  27498. # Command to truncate a binary pipe.
  27499. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27500. # The name of the directory that contains temporary libtool files.
  27501. objdir=$objdir
  27502. # Used to examine libraries when file_magic_cmd begins with "file".
  27503. MAGIC_CMD=$MAGIC_CMD
  27504. # Must we lock files when doing compilation?
  27505. need_locks=$lt_need_locks
  27506. # Manifest tool.
  27507. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27508. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27509. DSYMUTIL=$lt_DSYMUTIL
  27510. # Tool to change global to local symbols on Mac OS X.
  27511. NMEDIT=$lt_NMEDIT
  27512. # Tool to manipulate fat objects and archives on Mac OS X.
  27513. LIPO=$lt_LIPO
  27514. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27515. OTOOL=$lt_OTOOL
  27516. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27517. OTOOL64=$lt_OTOOL64
  27518. # Old archive suffix (normally "a").
  27519. libext=$libext
  27520. # Shared library suffix (normally ".so").
  27521. shrext_cmds=$lt_shrext_cmds
  27522. # The commands to extract the exported symbol list from a shared archive.
  27523. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27524. # Variables whose values should be saved in libtool wrapper scripts and
  27525. # restored at link time.
  27526. variables_saved_for_relink=$lt_variables_saved_for_relink
  27527. # Do we need the "lib" prefix for modules?
  27528. need_lib_prefix=$need_lib_prefix
  27529. # Do we need a version for libraries?
  27530. need_version=$need_version
  27531. # Library versioning type.
  27532. version_type=$version_type
  27533. # Shared library runtime path variable.
  27534. runpath_var=$runpath_var
  27535. # Shared library path variable.
  27536. shlibpath_var=$shlibpath_var
  27537. # Is shlibpath searched before the hard-coded library search path?
  27538. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27539. # Format of library name prefix.
  27540. libname_spec=$lt_libname_spec
  27541. # List of archive names. First name is the real one, the rest are links.
  27542. # The last name is the one that the linker finds with -lNAME
  27543. library_names_spec=$lt_library_names_spec
  27544. # The coded name of the library, if different from the real name.
  27545. soname_spec=$lt_soname_spec
  27546. # Permission mode override for installation of shared libraries.
  27547. install_override_mode=$lt_install_override_mode
  27548. # Command to use after installation of a shared archive.
  27549. postinstall_cmds=$lt_postinstall_cmds
  27550. # Command to use after uninstallation of a shared archive.
  27551. postuninstall_cmds=$lt_postuninstall_cmds
  27552. # Commands used to finish a libtool library installation in a directory.
  27553. finish_cmds=$lt_finish_cmds
  27554. # As "finish_cmds", except a single script fragment to be evaled but
  27555. # not shown.
  27556. finish_eval=$lt_finish_eval
  27557. # Whether we should hardcode library paths into libraries.
  27558. hardcode_into_libs=$hardcode_into_libs
  27559. # Compile-time system search path for libraries.
  27560. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27561. # Detected run-time system search path for libraries.
  27562. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27563. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27564. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27565. # Whether dlopen is supported.
  27566. dlopen_support=$enable_dlopen
  27567. # Whether dlopen of programs is supported.
  27568. dlopen_self=$enable_dlopen_self
  27569. # Whether dlopen of statically linked programs is supported.
  27570. dlopen_self_static=$enable_dlopen_self_static
  27571. # Commands to strip libraries.
  27572. old_striplib=$lt_old_striplib
  27573. striplib=$lt_striplib
  27574. # The linker used to build libraries.
  27575. LD=$lt_LD
  27576. # How to create reloadable object files.
  27577. reload_flag=$lt_reload_flag
  27578. reload_cmds=$lt_reload_cmds
  27579. # Commands used to build an old-style archive.
  27580. old_archive_cmds=$lt_old_archive_cmds
  27581. # A language specific compiler.
  27582. CC=$lt_compiler
  27583. # Is the compiler the GNU compiler?
  27584. with_gcc=$GCC
  27585. # Compiler flag to turn off builtin functions.
  27586. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27587. # Additional compiler flags for building library objects.
  27588. pic_flag=$lt_lt_prog_compiler_pic
  27589. # How to pass a linker flag through the compiler.
  27590. wl=$lt_lt_prog_compiler_wl
  27591. # Compiler flag to prevent dynamic linking.
  27592. link_static_flag=$lt_lt_prog_compiler_static
  27593. # Does compiler simultaneously support -c and -o options?
  27594. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27595. # Whether or not to add -lc for building shared libraries.
  27596. build_libtool_need_lc=$archive_cmds_need_lc
  27597. # Whether or not to disallow shared libs when runtime libs are static.
  27598. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27599. # Compiler flag to allow reflexive dlopens.
  27600. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27601. # Compiler flag to generate shared objects directly from archives.
  27602. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27603. # Whether the compiler copes with passing no objects directly.
  27604. compiler_needs_object=$lt_compiler_needs_object
  27605. # Create an old-style archive from a shared archive.
  27606. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27607. # Create a temporary old-style archive to link instead of a shared archive.
  27608. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27609. # Commands used to build a shared archive.
  27610. archive_cmds=$lt_archive_cmds
  27611. archive_expsym_cmds=$lt_archive_expsym_cmds
  27612. # Commands used to build a loadable module if different from building
  27613. # a shared archive.
  27614. module_cmds=$lt_module_cmds
  27615. module_expsym_cmds=$lt_module_expsym_cmds
  27616. # Whether we are building with GNU ld or not.
  27617. with_gnu_ld=$lt_with_gnu_ld
  27618. # Flag that allows shared libraries with undefined symbols to be built.
  27619. allow_undefined_flag=$lt_allow_undefined_flag
  27620. # Flag that enforces no undefined symbols.
  27621. no_undefined_flag=$lt_no_undefined_flag
  27622. # Flag to hardcode \$libdir into a binary during linking.
  27623. # This must work even if \$libdir does not exist
  27624. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27625. # Whether we need a single "-rpath" flag with a separated argument.
  27626. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27627. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27628. # DIR into the resulting binary.
  27629. hardcode_direct=$hardcode_direct
  27630. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27631. # DIR into the resulting binary and the resulting library dependency is
  27632. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27633. # library is relocated.
  27634. hardcode_direct_absolute=$hardcode_direct_absolute
  27635. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27636. # into the resulting binary.
  27637. hardcode_minus_L=$hardcode_minus_L
  27638. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27639. # into the resulting binary.
  27640. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27641. # Set to "yes" if building a shared library automatically hardcodes DIR
  27642. # into the library and all subsequent libraries and executables linked
  27643. # against it.
  27644. hardcode_automatic=$hardcode_automatic
  27645. # Set to yes if linker adds runtime paths of dependent libraries
  27646. # to runtime path list.
  27647. inherit_rpath=$inherit_rpath
  27648. # Whether libtool must link a program against all its dependency libraries.
  27649. link_all_deplibs=$link_all_deplibs
  27650. # Set to "yes" if exported symbols are required.
  27651. always_export_symbols=$always_export_symbols
  27652. # The commands to list exported symbols.
  27653. export_symbols_cmds=$lt_export_symbols_cmds
  27654. # Symbols that should not be listed in the preloaded symbols.
  27655. exclude_expsyms=$lt_exclude_expsyms
  27656. # Symbols that must always be exported.
  27657. include_expsyms=$lt_include_expsyms
  27658. # Commands necessary for linking programs (against libraries) with templates.
  27659. prelink_cmds=$lt_prelink_cmds
  27660. # Commands necessary for finishing linking programs.
  27661. postlink_cmds=$lt_postlink_cmds
  27662. # Specify filename containing input files.
  27663. file_list_spec=$lt_file_list_spec
  27664. # How to hardcode a shared library path into an executable.
  27665. hardcode_action=$hardcode_action
  27666. # The directories searched by this compiler when creating a shared library.
  27667. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27668. # Dependencies to place before and after the objects being linked to
  27669. # create a shared library.
  27670. predep_objects=$lt_predep_objects
  27671. postdep_objects=$lt_postdep_objects
  27672. predeps=$lt_predeps
  27673. postdeps=$lt_postdeps
  27674. # The library search path used internally by the compiler when linking
  27675. # a shared library.
  27676. compiler_lib_search_path=$lt_compiler_lib_search_path
  27677. # ### END LIBTOOL CONFIG
  27678. _LT_EOF
  27679. cat <<'_LT_EOF' >> "$cfgfile"
  27680. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27681. # func_munge_path_list VARIABLE PATH
  27682. # -----------------------------------
  27683. # VARIABLE is name of variable containing _space_ separated list of
  27684. # directories to be munged by the contents of PATH, which is string
  27685. # having a format:
  27686. # "DIR[:DIR]:"
  27687. # string "DIR[ DIR]" will be prepended to VARIABLE
  27688. # ":DIR[:DIR]"
  27689. # string "DIR[ DIR]" will be appended to VARIABLE
  27690. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27691. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27692. # "DIRA[ DIRA]" will be appended to VARIABLE
  27693. # "DIR[:DIR]"
  27694. # VARIABLE will be replaced by "DIR[ DIR]"
  27695. func_munge_path_list ()
  27696. {
  27697. case x$2 in
  27698. x)
  27699. ;;
  27700. *:)
  27701. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27702. ;;
  27703. x:*)
  27704. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27705. ;;
  27706. *::*)
  27707. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27708. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27709. ;;
  27710. *)
  27711. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27712. ;;
  27713. esac
  27714. }
  27715. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27716. func_cc_basename ()
  27717. {
  27718. for cc_temp in $*""; do
  27719. case $cc_temp in
  27720. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27721. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27722. \-*) ;;
  27723. *) break;;
  27724. esac
  27725. done
  27726. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27727. }
  27728. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27729. _LT_EOF
  27730. case $host_os in
  27731. aix3*)
  27732. cat <<\_LT_EOF >> "$cfgfile"
  27733. # AIX sometimes has problems with the GCC collect2 program. For some
  27734. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27735. # vanish in a puff of smoke.
  27736. if test set != "${COLLECT_NAMES+set}"; then
  27737. COLLECT_NAMES=
  27738. export COLLECT_NAMES
  27739. fi
  27740. _LT_EOF
  27741. ;;
  27742. esac
  27743. ltmain=$ac_aux_dir/ltmain.sh
  27744. # We use sed instead of cat because bash on DJGPP gets confused if
  27745. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27746. # text mode, it properly converts lines to CR/LF. This bash problem
  27747. # is reportedly fixed, but why not run on old versions too?
  27748. sed '$q' "$ltmain" >> "$cfgfile" \
  27749. || (rm -f "$cfgfile"; exit 1)
  27750. mv -f "$cfgfile" "$ofile" ||
  27751. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27752. chmod +x "$ofile"
  27753. cat <<_LT_EOF >> "$ofile"
  27754. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27755. # The linker used to build libraries.
  27756. LD=$lt_LD_RC
  27757. # How to create reloadable object files.
  27758. reload_flag=$lt_reload_flag_RC
  27759. reload_cmds=$lt_reload_cmds_RC
  27760. # Commands used to build an old-style archive.
  27761. old_archive_cmds=$lt_old_archive_cmds_RC
  27762. # A language specific compiler.
  27763. CC=$lt_compiler_RC
  27764. # Is the compiler the GNU compiler?
  27765. with_gcc=$GCC_RC
  27766. # Compiler flag to turn off builtin functions.
  27767. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27768. # Additional compiler flags for building library objects.
  27769. pic_flag=$lt_lt_prog_compiler_pic_RC
  27770. # How to pass a linker flag through the compiler.
  27771. wl=$lt_lt_prog_compiler_wl_RC
  27772. # Compiler flag to prevent dynamic linking.
  27773. link_static_flag=$lt_lt_prog_compiler_static_RC
  27774. # Does compiler simultaneously support -c and -o options?
  27775. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27776. # Whether or not to add -lc for building shared libraries.
  27777. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27778. # Whether or not to disallow shared libs when runtime libs are static.
  27779. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27780. # Compiler flag to allow reflexive dlopens.
  27781. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27782. # Compiler flag to generate shared objects directly from archives.
  27783. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27784. # Whether the compiler copes with passing no objects directly.
  27785. compiler_needs_object=$lt_compiler_needs_object_RC
  27786. # Create an old-style archive from a shared archive.
  27787. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27788. # Create a temporary old-style archive to link instead of a shared archive.
  27789. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27790. # Commands used to build a shared archive.
  27791. archive_cmds=$lt_archive_cmds_RC
  27792. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27793. # Commands used to build a loadable module if different from building
  27794. # a shared archive.
  27795. module_cmds=$lt_module_cmds_RC
  27796. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27797. # Whether we are building with GNU ld or not.
  27798. with_gnu_ld=$lt_with_gnu_ld_RC
  27799. # Flag that allows shared libraries with undefined symbols to be built.
  27800. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27801. # Flag that enforces no undefined symbols.
  27802. no_undefined_flag=$lt_no_undefined_flag_RC
  27803. # Flag to hardcode \$libdir into a binary during linking.
  27804. # This must work even if \$libdir does not exist
  27805. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27806. # Whether we need a single "-rpath" flag with a separated argument.
  27807. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27808. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27809. # DIR into the resulting binary.
  27810. hardcode_direct=$hardcode_direct_RC
  27811. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27812. # DIR into the resulting binary and the resulting library dependency is
  27813. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27814. # library is relocated.
  27815. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27816. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27817. # into the resulting binary.
  27818. hardcode_minus_L=$hardcode_minus_L_RC
  27819. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27820. # into the resulting binary.
  27821. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27822. # Set to "yes" if building a shared library automatically hardcodes DIR
  27823. # into the library and all subsequent libraries and executables linked
  27824. # against it.
  27825. hardcode_automatic=$hardcode_automatic_RC
  27826. # Set to yes if linker adds runtime paths of dependent libraries
  27827. # to runtime path list.
  27828. inherit_rpath=$inherit_rpath_RC
  27829. # Whether libtool must link a program against all its dependency libraries.
  27830. link_all_deplibs=$link_all_deplibs_RC
  27831. # Set to "yes" if exported symbols are required.
  27832. always_export_symbols=$always_export_symbols_RC
  27833. # The commands to list exported symbols.
  27834. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27835. # Symbols that should not be listed in the preloaded symbols.
  27836. exclude_expsyms=$lt_exclude_expsyms_RC
  27837. # Symbols that must always be exported.
  27838. include_expsyms=$lt_include_expsyms_RC
  27839. # Commands necessary for linking programs (against libraries) with templates.
  27840. prelink_cmds=$lt_prelink_cmds_RC
  27841. # Commands necessary for finishing linking programs.
  27842. postlink_cmds=$lt_postlink_cmds_RC
  27843. # Specify filename containing input files.
  27844. file_list_spec=$lt_file_list_spec_RC
  27845. # How to hardcode a shared library path into an executable.
  27846. hardcode_action=$hardcode_action_RC
  27847. # The directories searched by this compiler when creating a shared library.
  27848. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27849. # Dependencies to place before and after the objects being linked to
  27850. # create a shared library.
  27851. predep_objects=$lt_predep_objects_RC
  27852. postdep_objects=$lt_postdep_objects_RC
  27853. predeps=$lt_predeps_RC
  27854. postdeps=$lt_postdeps_RC
  27855. # The library search path used internally by the compiler when linking
  27856. # a shared library.
  27857. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27858. # ### END LIBTOOL TAG CONFIG: RC
  27859. _LT_EOF
  27860. cat <<_LT_EOF >> "$ofile"
  27861. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27862. # The linker used to build libraries.
  27863. LD=$lt_LD_CXX
  27864. # How to create reloadable object files.
  27865. reload_flag=$lt_reload_flag_CXX
  27866. reload_cmds=$lt_reload_cmds_CXX
  27867. # Commands used to build an old-style archive.
  27868. old_archive_cmds=$lt_old_archive_cmds_CXX
  27869. # A language specific compiler.
  27870. CC=$lt_compiler_CXX
  27871. # Is the compiler the GNU compiler?
  27872. with_gcc=$GCC_CXX
  27873. # Compiler flag to turn off builtin functions.
  27874. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27875. # Additional compiler flags for building library objects.
  27876. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27877. # How to pass a linker flag through the compiler.
  27878. wl=$lt_lt_prog_compiler_wl_CXX
  27879. # Compiler flag to prevent dynamic linking.
  27880. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27881. # Does compiler simultaneously support -c and -o options?
  27882. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27883. # Whether or not to add -lc for building shared libraries.
  27884. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27885. # Whether or not to disallow shared libs when runtime libs are static.
  27886. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27887. # Compiler flag to allow reflexive dlopens.
  27888. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27889. # Compiler flag to generate shared objects directly from archives.
  27890. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27891. # Whether the compiler copes with passing no objects directly.
  27892. compiler_needs_object=$lt_compiler_needs_object_CXX
  27893. # Create an old-style archive from a shared archive.
  27894. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27895. # Create a temporary old-style archive to link instead of a shared archive.
  27896. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27897. # Commands used to build a shared archive.
  27898. archive_cmds=$lt_archive_cmds_CXX
  27899. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27900. # Commands used to build a loadable module if different from building
  27901. # a shared archive.
  27902. module_cmds=$lt_module_cmds_CXX
  27903. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27904. # Whether we are building with GNU ld or not.
  27905. with_gnu_ld=$lt_with_gnu_ld_CXX
  27906. # Flag that allows shared libraries with undefined symbols to be built.
  27907. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27908. # Flag that enforces no undefined symbols.
  27909. no_undefined_flag=$lt_no_undefined_flag_CXX
  27910. # Flag to hardcode \$libdir into a binary during linking.
  27911. # This must work even if \$libdir does not exist
  27912. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27913. # Whether we need a single "-rpath" flag with a separated argument.
  27914. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27915. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27916. # DIR into the resulting binary.
  27917. hardcode_direct=$hardcode_direct_CXX
  27918. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27919. # DIR into the resulting binary and the resulting library dependency is
  27920. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27921. # library is relocated.
  27922. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27923. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27924. # into the resulting binary.
  27925. hardcode_minus_L=$hardcode_minus_L_CXX
  27926. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27927. # into the resulting binary.
  27928. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27929. # Set to "yes" if building a shared library automatically hardcodes DIR
  27930. # into the library and all subsequent libraries and executables linked
  27931. # against it.
  27932. hardcode_automatic=$hardcode_automatic_CXX
  27933. # Set to yes if linker adds runtime paths of dependent libraries
  27934. # to runtime path list.
  27935. inherit_rpath=$inherit_rpath_CXX
  27936. # Whether libtool must link a program against all its dependency libraries.
  27937. link_all_deplibs=$link_all_deplibs_CXX
  27938. # Set to "yes" if exported symbols are required.
  27939. always_export_symbols=$always_export_symbols_CXX
  27940. # The commands to list exported symbols.
  27941. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27942. # Symbols that should not be listed in the preloaded symbols.
  27943. exclude_expsyms=$lt_exclude_expsyms_CXX
  27944. # Symbols that must always be exported.
  27945. include_expsyms=$lt_include_expsyms_CXX
  27946. # Commands necessary for linking programs (against libraries) with templates.
  27947. prelink_cmds=$lt_prelink_cmds_CXX
  27948. # Commands necessary for finishing linking programs.
  27949. postlink_cmds=$lt_postlink_cmds_CXX
  27950. # Specify filename containing input files.
  27951. file_list_spec=$lt_file_list_spec_CXX
  27952. # How to hardcode a shared library path into an executable.
  27953. hardcode_action=$hardcode_action_CXX
  27954. # The directories searched by this compiler when creating a shared library.
  27955. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27956. # Dependencies to place before and after the objects being linked to
  27957. # create a shared library.
  27958. predep_objects=$lt_predep_objects_CXX
  27959. postdep_objects=$lt_postdep_objects_CXX
  27960. predeps=$lt_predeps_CXX
  27961. postdeps=$lt_postdeps_CXX
  27962. # The library search path used internally by the compiler when linking
  27963. # a shared library.
  27964. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27965. # ### END LIBTOOL TAG CONFIG: CXX
  27966. _LT_EOF
  27967. ;;
  27968. "sdl2_config":C) chmod a+x sdl2-config ;;
  27969. "summary":C) printf "$SUMMARY" ;;
  27970. esac
  27971. done # for ac_tag
  27972. as_fn_exit 0
  27973. _ACEOF
  27974. ac_clean_files=$ac_clean_files_save
  27975. test $ac_write_fail = 0 ||
  27976. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27977. # configure is writing to config.log, and then calls config.status.
  27978. # config.status does its own redirection, appending to config.log.
  27979. # Unfortunately, on DOS this fails, as config.log is still kept open
  27980. # by configure, so config.status won't be able to write to it; its
  27981. # output is simply discarded. So we exec the FD to /dev/null,
  27982. # effectively closing config.log, so it can be properly (re)opened and
  27983. # appended to by config.status. When coming back to configure, we
  27984. # need to make the FD available again.
  27985. if test "$no_create" != yes; then
  27986. ac_cs_success=:
  27987. ac_config_status_args=
  27988. test "$silent" = yes &&
  27989. ac_config_status_args="$ac_config_status_args --quiet"
  27990. exec 5>/dev/null
  27991. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27992. exec 5>>config.log
  27993. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27994. # would make configure fail if this is the last instruction.
  27995. $ac_cs_success || as_fn_exit 1
  27996. fi
  27997. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  27998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  27999. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28000. fi